@emoo-ai/ui-vue 0.1.9 → 0.1.11

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,17 @@
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";
1
+ import { defineComponent as N, 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 R, 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 Fe, vShow as tt, normalizeProps as Ne, guardReactiveProps as qe, onUnmounted as Ct, useSlots as Et, withKeys as je, h as ve, useId as oo, onScopeDispose as _t } from "vue";
2
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 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";
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 Bt, PhMagnifyingGlass as bo, PhSlidersHorizontal as go, PhDotsThree as Mt, 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 { fileIconGlyph as Eo, fileIconViewBox as To } from "@emoo-ai/brand/file-icons";
6
+ import { primaryColorVars as xo } from "@emoo-ai/brand/colors";
7
+ import { AVATAR_TINT_PALETTE as ki, PRESET_COLORS as $i, avatarTintOf as _i, hexToRgbString as wi, mixColor as Si, primaryColorVars as Ci } from "@emoo-ai/brand/colors";
7
8
  import "element-plus/es/components/message-box/style/css";
8
- import { emoouiMessages as _i } from "./locales.js";
9
+ import { emoouiMessages as Ti } from "./locales.js";
9
10
  import "element-plus/es/components/message/style/css";
10
- const To = { class: "emoo-action-pill__label" }, xo = {
11
+ const Io = { class: "emoo-action-pill__label" }, zo = {
11
12
  key: 1,
12
13
  class: "emoo-action-pill__kbd"
13
- }, Io = /* @__PURE__ */ F({
14
+ }, Ro = /* @__PURE__ */ N({
14
15
  __name: "EmooActionPill",
15
16
  props: {
16
17
  icon: {},
@@ -29,8 +30,8 @@ const To = { class: "emoo-action-pill__label" }, xo = {
29
30
  key: 0,
30
31
  class: "emoo-action-pill__icon"
31
32
  })) : S("", !0),
32
- u("span", To, k(e.label), 1),
33
- e.kbd ? (t(), s("kbd", xo, k(e.kbd), 1)) : S("", !0)
33
+ u("span", Io, k(e.label), 1),
34
+ e.kbd ? (t(), s("kbd", zo, k(e.kbd), 1)) : S("", !0)
34
35
  ]));
35
36
  }
36
37
  }), Y = (e, n) => {
@@ -38,7 +39,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
38
39
  for (const [l, r] of n)
39
40
  o[l] = r;
40
41
  return o;
41
- }, Bn = /* @__PURE__ */ Y(Io, [["__scopeId", "data-v-f9e9873a"]]), zo = /* @__PURE__ */ F({
42
+ }, Ln = /* @__PURE__ */ Y(Ro, [["__scopeId", "data-v-f9e9873a"]]), Vo = /* @__PURE__ */ N({
42
43
  __name: "SheetDragHandle",
43
44
  props: {
44
45
  dragging: { type: Boolean },
@@ -54,10 +55,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
54
55
  u("span", { class: "sheet-drag-handle__bar" }, null, -1)
55
56
  ])], 34));
56
57
  }
57
- }), At = /* @__PURE__ */ Y(zo, [["__scopeId", "data-v-ef0108a1"]]), Ro = { class: "emoo-asheet" }, Vo = {
58
+ }), At = /* @__PURE__ */ Y(Vo, [["__scopeId", "data-v-ef0108a1"]]), Bo = { class: "emoo-asheet" }, Mo = {
58
59
  key: 0,
59
60
  class: "emoo-asheet__title"
60
- }, Mo = { class: "emoo-asheet__list" }, Bo = ["disabled", "data-testid", "onClick"], Dn = /* @__PURE__ */ F({
61
+ }, Do = { class: "emoo-asheet__list" }, Po = ["disabled", "data-testid", "onClick"], On = /* @__PURE__ */ N({
61
62
  inheritAttrs: !1,
62
63
  __name: "EmooActionSheet",
63
64
  props: {
@@ -68,7 +69,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
68
69
  },
69
70
  emits: ["update:modelValue", "select", "cancel"],
70
71
  setup(e, { emit: n }) {
71
- const o = e, l = n, r = V({
72
+ const o = e, l = n, r = R({
72
73
  get: () => o.modelValue,
73
74
  set: (v) => l("update:modelValue", v)
74
75
  });
@@ -87,10 +88,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
87
88
  class: "emoo-action-sheet"
88
89
  }), {
89
90
  default: w(() => [
90
- u("div", Ro, [
91
+ u("div", Bo, [
91
92
  P(At),
92
- e.title ? (t(), s("p", Vo, k(e.title), 1)) : S("", !0),
93
- u("div", Mo, [
93
+ e.title ? (t(), s("p", Mo, k(e.title), 1)) : S("", !0),
94
+ u("div", Do, [
94
95
  A(v.$slots, "default"),
95
96
  v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
96
97
  key: c.key,
@@ -105,7 +106,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
105
106
  class: "emoo-asheet__ic"
106
107
  })) : S("", !0),
107
108
  u("span", null, k(c.label), 1)
108
- ], 10, Bo))), 128))
109
+ ], 10, Po))), 128))
109
110
  ]),
110
111
  e.cancelText ? (t(), s("button", {
111
112
  key: 1,
@@ -119,7 +120,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
119
120
  _: 3
120
121
  }, 16, ["modelValue"]));
121
122
  }
122
- }), he = /* @__PURE__ */ F({
123
+ }), he = /* @__PURE__ */ N({
123
124
  __name: "EmooTooltip",
124
125
  props: {
125
126
  showAfter: { default: 300 },
@@ -127,7 +128,7 @@ const To = { class: "emoo-action-pill__label" }, xo = {
127
128
  popperClass: { default: "" }
128
129
  },
129
130
  setup(e) {
130
- const n = e, o = V(() => ["emo-tip", n.popperClass].filter(Boolean).join(" "));
131
+ const n = e, o = R(() => ["emo-tip", n.popperClass].filter(Boolean).join(" "));
131
132
  return (l, r) => (t(), x(a(ao), Xe(l.$attrs, {
132
133
  placement: e.placement,
133
134
  "show-after": e.showAfter,
@@ -147,10 +148,10 @@ const To = { class: "emoo-action-pill__label" }, xo = {
147
148
  } : void 0
148
149
  ]), 1040, ["placement", "show-after", "popper-class"]));
149
150
  }
150
- }), Do = { class: "emoo-mtags" }, Po = ["src", "onError"], Ao = { class: "emoo-mtag__name" }, Lo = ["aria-label", "onClick"], Oo = {
151
+ }), Ao = { class: "emoo-mtags" }, Lo = ["src", "onError"], Oo = { class: "emoo-mtag__name" }, Uo = ["aria-label", "onClick"], Ho = {
151
152
  class: "emoo-mtag emoo-mtag--more",
152
153
  "data-testid": "emoo-mtag-more"
153
- }, Uo = /* @__PURE__ */ F({
154
+ }, Ko = /* @__PURE__ */ N({
154
155
  __name: "EmooMemberTag",
155
156
  props: {
156
157
  items: {},
@@ -160,8 +161,8 @@ const To = { class: "emoo-action-pill__label" }, xo = {
160
161
  },
161
162
  emits: ["remove"],
162
163
  setup(e) {
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", Do, [
164
+ const { t: n } = me(), o = e, l = R(() => o.items.slice(0, o.max)), r = St(/* @__PURE__ */ new Set()), i = R(() => Math.max(0, o.items.length - o.max)), p = R(() => o.items.slice(o.max).map((v) => v.name).join("、"));
165
+ return (v, g) => (t(), s("span", Ao, [
165
166
  (t(!0), s(D, null, Z(l.value, (c, b) => (t(), s("span", {
166
167
  key: `${c.name}-${b}`,
167
168
  class: "emoo-mtag",
@@ -177,11 +178,11 @@ const To = { class: "emoo-action-pill__label" }, xo = {
177
178
  alt: "",
178
179
  class: "emoo-mtag__img",
179
180
  onError: (_) => r.add(b)
180
- }, null, 40, Po)) : (t(), s(D, { key: 1 }, [
181
+ }, null, 40, Lo)) : (t(), s(D, { key: 1 }, [
181
182
  J(k(c.name[0]), 1)
182
183
  ], 64))
183
184
  ], 2),
184
- u("span", Ao, k(c.name), 1),
185
+ u("span", Oo, k(c.name), 1),
185
186
  e.removable ? (t(), s("button", {
186
187
  key: 0,
187
188
  type: "button",
@@ -190,23 +191,23 @@ const To = { class: "emoo-action-pill__label" }, xo = {
190
191
  onClick: (_) => v.$emit("remove", b)
191
192
  }, [
192
193
  P(a(it), { size: 10 })
193
- ], 8, Lo)) : S("", !0)
194
+ ], 8, Uo)) : S("", !0)
194
195
  ], 4))), 128)),
195
196
  i.value > 0 ? (t(), x(he, {
196
197
  key: 0,
197
198
  content: p.value
198
199
  }, {
199
200
  default: w(() => [
200
- u("span", Oo, "+" + k(i.value), 1)
201
+ u("span", Ho, "+" + k(i.value), 1)
201
202
  ]),
202
203
  _: 1
203
204
  }, 8, ["content"])) : S("", !0)
204
205
  ]));
205
206
  }
206
- }), xe = /* @__PURE__ */ Y(Uo, [["__scopeId", "data-v-33f4fffc"]]);
207
- function Me(e, n) {
207
+ }), xe = /* @__PURE__ */ Y(Ko, [["__scopeId", "data-v-33f4fffc"]]);
208
+ function Be(e, n) {
208
209
  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, c = "", b, _ = null, y = 0, R = null;
210
+ let g = 1, c = "", b, _ = null, y = 0, V = null;
210
211
  const E = (q) => new Promise((de) => setTimeout(de, q)), $ = () => {
211
212
  y++, l.value = !1, _ && (clearTimeout(_), _ = null);
212
213
  }, I = async (q, de, ce) => {
@@ -215,11 +216,11 @@ function Me(e, n) {
215
216
  const te = ++y;
216
217
  l.value = !0, i.value = null;
217
218
  try {
218
- const N = await H(de, q);
219
+ const F = await H(de, q);
219
220
  if (te !== y || e() !== H) return;
220
- g = q, c = de, b = H, o.value = z(ce ? o.value : [], N.items), r.value = N.hasMore, R = null;
221
- } catch (N) {
222
- te === y && e() === H && (i.value = N, R = { target: q, keyword: de, append: ce }, console.error("选择器远程选项加载失败:", N));
221
+ g = q, c = de, b = H, o.value = z(ce ? o.value : [], F.items), r.value = F.hasMore, V = null;
222
+ } catch (F) {
223
+ te === y && e() === H && (i.value = F, V = { target: q, keyword: de, append: ce }, console.error("选择器远程选项加载失败:", F));
223
224
  } finally {
224
225
  te === y && (l.value = !1);
225
226
  }
@@ -236,8 +237,8 @@ function Me(e, n) {
236
237
  const q = e();
237
238
  l.value || !q || (b !== q || o.value.length === 0 || c !== "") && I(1, "", !1);
238
239
  }, ie = () => {
239
- if (!R || l.value) return;
240
- const { target: q, keyword: de, append: ce } = R;
240
+ if (!V || l.value) return;
241
+ const { target: q, keyword: de, append: ce } = V;
241
242
  I(q, de, ce);
242
243
  }, ee = () => {
243
244
  const q = e();
@@ -247,7 +248,7 @@ function Me(e, n) {
247
248
  }
248
249
  };
249
250
  let d = null, T = null;
250
- const B = () => {
251
+ const M = () => {
251
252
  const q = document.querySelector(`.${p}`);
252
253
  return q?.querySelector(".el-select-dropdown__wrap") || q?.querySelector(".el-scrollbar__wrap");
253
254
  }, se = () => {
@@ -255,7 +256,7 @@ function Me(e, n) {
255
256
  }, ne = async () => {
256
257
  await ke();
257
258
  let q = null;
258
- for (let de = 0; de < 6 && (q = B(), !q); de++)
259
+ for (let de = 0; de < 6 && (q = M(), !q); de++)
259
260
  await E(50);
260
261
  !q || q === d || (se(), d = q, T = () => {
261
262
  d && d.scrollTop + d.clientHeight >= d.scrollHeight - 16 && ee();
@@ -271,26 +272,26 @@ function Me(e, n) {
271
272
  $(), se();
272
273
  }), { items: o, loading: l, hasMore: r, error: i, search: j, retry: ie, ensureFirstPage: X, loadMore: ee, onVisibleChange: ye, popperClass: v };
273
274
  }
274
- function Be(e, n, o) {
275
+ function Me(e, n, o) {
275
276
  const l = to([]), r = (g) => Array.isArray(g) ? g : g == null ? [] : [g], i = (g) => {
276
277
  const c = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
277
278
  return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
278
279
  };
279
280
  we(() => [e(), n(), o()], () => i(e()), { immediate: !0, deep: !0, flush: "sync" });
280
- const p = V(() => {
281
+ const p = R(() => {
281
282
  const g = n();
282
283
  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
+ }), v = R(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
284
285
  return { mergedOptions: p, selectedOptions: v, remember: i };
285
286
  }
286
- const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo = ["src"], No = { class: "emoo-asel__name" }, Fo = {
287
+ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No = ["src"], qo = { class: "emoo-asel__name" }, jo = {
287
288
  key: 0,
288
289
  class: "emoo-asel__sub"
289
- }, qo = {
290
+ }, Go = {
290
291
  class: "emoo-sel-remote-error",
291
292
  role: "alert",
292
293
  "data-testid": "remote-error"
293
- }, jo = /* @__PURE__ */ F({
294
+ }, Xo = /* @__PURE__ */ N({
294
295
  __name: "EmooAgentSelect",
295
296
  props: {
296
297
  modelValue: {},
@@ -304,21 +305,21 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
304
305
  },
305
306
  emits: ["update:modelValue"],
306
307
  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: c, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: R } = Me(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Be(
308
+ const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, ensureFirstPage: _, onVisibleChange: y, popperClass: V } = Be(() => o.source, "emoo-asel-popper"), { mergedOptions: E, selectedOptions: $, remember: I } = Me(
308
309
  () => o.modelValue,
309
310
  () => i.value ? p.value : o.options ?? [],
310
311
  () => o.selected ?? []
311
- ), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = V(() => j.disabled !== void 0 && j.disabled !== !1);
312
+ ), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = R(() => j.disabled !== void 0 && j.disabled !== !1);
312
313
  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)) && _();
314
+ const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, M = Array.isArray(d) ? d : [d];
315
+ i.value && T && M.some((se) => se !== null && !z(se)) && _();
315
316
  });
316
317
  const ie = (d) => {
317
318
  I(d), l("update:modelValue", d);
318
319
  }, ee = (d) => {
319
320
  if (X.value) return;
320
321
  const T = $.value[d]?.id;
321
- T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
322
+ T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
322
323
  };
323
324
  return (d, T) => (t(), x(a(Ae), {
324
325
  class: "emoo-asel",
@@ -331,30 +332,30 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
331
332
  remote: i.value,
332
333
  "remote-method": a(b),
333
334
  loading: a(v),
334
- "popper-class": a(R),
335
+ "popper-class": a(V),
335
336
  "onUpdate:modelValue": ie,
336
337
  onVisibleChange: a(y)
337
338
  }, Se({
338
339
  default: w(() => [
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
340
+ (t(!0), s(D, null, Z(a(E), (M) => (t(), x(a(ze), {
341
+ key: M.id,
342
+ label: M.name,
343
+ value: M.id
343
344
  }, {
344
345
  default: w(() => [
345
- u("span", Ho, [
346
- u("span", Ko, [
347
- B.avatar ? (t(), s("img", {
346
+ u("span", Wo, [
347
+ u("span", Fo, [
348
+ M.avatar ? (t(), s("img", {
348
349
  key: 0,
349
- src: B.avatar,
350
+ src: M.avatar,
350
351
  alt: "",
351
352
  class: "emoo-asel__img"
352
- }, null, 8, Wo)) : (t(), s(D, { key: 1 }, [
353
- J(k(B.name[0]), 1)
353
+ }, null, 8, No)) : (t(), s(D, { key: 1 }, [
354
+ J(k(M.name[0]), 1)
354
355
  ], 64))
355
356
  ]),
356
- u("span", No, k(B.name), 1),
357
- B.sub ? (t(), s("span", Fo, k(B.sub), 1)) : S("", !0)
357
+ u("span", qo, k(M.name), 1),
358
+ M.sub ? (t(), s("span", jo, k(M.sub), 1)) : S("", !0)
358
359
  ])
359
360
  ]),
360
361
  _: 2
@@ -376,11 +377,11 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
376
377
  key: "1"
377
378
  } : {
378
379
  name: "label",
379
- fn: w(({ value: B }) => [
380
- z(B) ? (t(), x(xe, {
380
+ fn: w(({ value: M }) => [
381
+ z(M) ? (t(), x(xe, {
381
382
  key: 0,
382
383
  square: "",
383
- items: [z(B)]
384
+ items: [z(M)]
384
385
  }, null, 8, ["items"])) : S("", !0)
385
386
  ]),
386
387
  key: "0"
@@ -388,13 +389,13 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
388
389
  a(g) ? {
389
390
  name: "footer",
390
391
  fn: w(() => [
391
- u("div", qo, [
392
+ u("div", Go, [
392
393
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
393
394
  u("button", {
394
395
  type: "button",
395
396
  "data-testid": "remote-retry",
396
397
  onClick: T[0] || (T[0] = //@ts-ignore
397
- (...B) => a(c) && a(c)(...B))
398
+ (...M) => a(c) && a(c)(...M))
398
399
  }, k(a(r)("common.emooSelect.retry")), 1)
399
400
  ])
400
401
  ]),
@@ -402,11 +403,11 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
402
403
  } : void 0
403
404
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
404
405
  }
405
- }), Pn = /* @__PURE__ */ Y(jo, [["__scopeId", "data-v-465d3a49"]]), Go = ["type", "disabled", "aria-busy"], Xo = {
406
+ }), Un = /* @__PURE__ */ Y(Xo, [["__scopeId", "data-v-465d3a49"]]), Zo = ["type", "disabled", "aria-busy"], Jo = {
406
407
  key: 0,
407
408
  class: "emoo-button__icon",
408
409
  "aria-hidden": "true"
409
- }, Zo = /* @__PURE__ */ F({
410
+ }, Yo = /* @__PURE__ */ N({
410
411
  __name: "EmooButton",
411
412
  props: {
412
413
  variant: { default: "secondary" },
@@ -428,29 +429,29 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
428
429
  disabled: e.disabled || e.loading,
429
430
  "aria-busy": e.loading || void 0
430
431
  }, [
431
- e.loading || n.$slots.icon ? (t(), s("span", Xo, [
432
+ e.loading || n.$slots.icon ? (t(), s("span", Jo, [
432
433
  e.loading ? (t(), x(a(vo), {
433
434
  key: 0,
434
435
  class: "emoo-button__spinner"
435
436
  })) : A(n.$slots, "icon", {}, void 0, !0, 1)
436
437
  ])) : S("", !0),
437
438
  A(n.$slots, "default", {}, void 0, !0)
438
- ], 10, Go));
439
+ ], 10, Zo));
439
440
  }
440
- }), De = /* @__PURE__ */ Y(Zo, [["__scopeId", "data-v-6415e495"]]), Jo = { class: "emoo-card" }, Yo = {
441
+ }), De = /* @__PURE__ */ Y(Yo, [["__scopeId", "data-v-6415e495"]]), Qo = { class: "emoo-card" }, ea = {
441
442
  key: 0,
442
443
  class: "emoo-card__header"
443
- }, Qo = {
444
+ }, ta = {
444
445
  key: 1,
445
446
  class: "emoo-card__footer"
446
- }, ea = /* @__PURE__ */ F({
447
+ }, oa = /* @__PURE__ */ N({
447
448
  __name: "EmooCard",
448
449
  props: {
449
450
  flush: { type: Boolean, default: !1 }
450
451
  },
451
452
  setup(e) {
452
- return (n, o) => (t(), s("div", Jo, [
453
- n.$slots.header ? (t(), s("div", Yo, [
453
+ return (n, o) => (t(), s("div", Qo, [
454
+ n.$slots.header ? (t(), s("div", ea, [
454
455
  A(n.$slots, "header", {}, void 0, !0)
455
456
  ])) : S("", !0),
456
457
  u("div", {
@@ -458,36 +459,36 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
458
459
  }, [
459
460
  A(n.$slots, "default", {}, void 0, !0)
460
461
  ], 2),
461
- n.$slots.footer ? (t(), s("div", Qo, [
462
+ n.$slots.footer ? (t(), s("div", ta, [
462
463
  A(n.$slots, "footer", {}, void 0, !0)
463
464
  ])) : S("", !0)
464
465
  ]));
465
466
  }
466
- }), An = /* @__PURE__ */ Y(ea, [["__scopeId", "data-v-4fffe6bc"]]), ta = ["data-testid"], oa = {
467
+ }), Hn = /* @__PURE__ */ Y(oa, [["__scopeId", "data-v-4fffe6bc"]]), aa = ["data-testid"], la = {
467
468
  key: 0,
468
469
  class: "emoo-chips__more",
469
470
  "data-testid": "emoo-chips-more"
470
- }, aa = { name: "EmooChips" }, la = /* @__PURE__ */ F({
471
- ...aa,
471
+ }, sa = { name: "EmooChips" }, na = /* @__PURE__ */ N({
472
+ ...sa,
472
473
  props: {
473
474
  items: {},
474
475
  labelOf: {},
475
476
  gap: { default: 10 }
476
477
  },
477
478
  setup(e) {
478
- const n = e, o = U(), l = U([]), r = U(n.items.length), i = U(0), p = V(() => n.items.map(n.labelOf).join("、")), v = 40, g = () => {
479
+ const n = e, o = U(), l = U([]), r = U(n.items.length), i = U(0), p = R(() => n.items.map(n.labelOf).join("、")), v = 40, g = () => {
479
480
  const _ = l.value, y = o.value?.clientWidth ?? 0;
480
481
  if (!_.length || y <= 0) {
481
482
  r.value = n.items.length, i.value = 0;
482
483
  return;
483
484
  }
484
- const R = _.map((z) => z.offsetWidth);
485
- if (R.reduce((z, j) => z + j, 0) + n.gap * (_.length - 1) <= y) {
485
+ const V = _.map((z) => z.offsetWidth);
486
+ if (V.reduce((z, j) => z + j, 0) + n.gap * (_.length - 1) <= y) {
486
487
  r.value = _.length, i.value = 0;
487
488
  return;
488
489
  }
489
490
  let $ = 0, I = 0;
490
- for (const z of R) {
491
+ for (const z of V) {
491
492
  const j = I === 0 ? z : $ + n.gap + z;
492
493
  if (j > y - v) break;
493
494
  $ = j, I++;
@@ -510,7 +511,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
510
511
  class: "emoo-chips",
511
512
  style: pe({ gap: `${e.gap}px` })
512
513
  }, [
513
- (t(!0), s(D, null, Z(e.items, (R, E) => Ne((t(), s("span", {
514
+ (t(!0), s(D, null, Z(e.items, (V, E) => Fe((t(), s("span", {
514
515
  key: E,
515
516
  ref_for: !0,
516
517
  ref_key: "chipRefs",
@@ -519,19 +520,19 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
519
520
  "data-testid": `emoo-chips-chip-${E}`
520
521
  }, [
521
522
  A(_.$slots, "default", {
522
- item: R,
523
+ item: V,
523
524
  index: E
524
525
  }, void 0, !0)
525
- ], 8, ta)), [
526
+ ], 8, aa)), [
526
527
  [tt, E < r.value]
527
528
  ])), 128)),
528
- i.value > 0 ? (t(), s("span", oa, "+" + k(i.value), 1)) : S("", !0)
529
+ i.value > 0 ? (t(), s("span", la, "+" + k(i.value), 1)) : S("", !0)
529
530
  ], 4)
530
531
  ]),
531
532
  _: 3
532
533
  }, 8, ["content", "disabled"]));
533
534
  }
534
- }), Ln = /* @__PURE__ */ Y(la, [["__scopeId", "data-v-1c5db445"]]), sa = /* @__PURE__ */ F({
535
+ }), Kn = /* @__PURE__ */ Y(na, [["__scopeId", "data-v-1c5db445"]]), ia = /* @__PURE__ */ N({
535
536
  __name: "EmooChoice",
536
537
  props: {
537
538
  options: {},
@@ -545,7 +546,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
545
546
  },
546
547
  emits: ["update:modelValue"],
547
548
  setup(e, { emit: n }) {
548
- const o = e, l = n, r = Pe(), i = V(() => Array.isArray(o.modelValue) ? o.modelValue.length > 0 : o.modelValue !== void 0 && o.modelValue !== null), p = (b) => {
549
+ const o = e, l = n, r = Pe(), i = R(() => Array.isArray(o.modelValue) ? o.modelValue.length > 0 : o.modelValue !== void 0 && o.modelValue !== null), p = (b) => {
549
550
  !b.currentTarget.contains(b.relatedTarget) && typeof r.onBlur == "function" && r.onBlur(b);
550
551
  }, v = () => {
551
552
  const b = o.multiple ? [] : void 0;
@@ -594,7 +595,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
594
595
  b.$slots.label ? {
595
596
  name: "label",
596
597
  fn: w((y) => [
597
- A(b.$slots, "label", Fe(qe(y)), void 0, !0)
598
+ A(b.$slots, "label", Ne(qe(y)), void 0, !0)
598
599
  ]),
599
600
  key: "0"
600
601
  } : void 0,
@@ -608,7 +609,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
608
609
  b.$slots.tag ? {
609
610
  name: "tag",
610
611
  fn: w((y) => [
611
- A(b.$slots, "tag", Fe(qe(y)), void 0, !0)
612
+ A(b.$slots, "tag", Ne(qe(y)), void 0, !0)
612
613
  ]),
613
614
  key: "2"
614
615
  } : void 0
@@ -666,7 +667,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
666
667
  value: y.value,
667
668
  disabled: y.disabled,
668
669
  "data-testid": e.testid ? `${e.testid}-${String(y.value)}` : void 0,
669
- onClickCapture: (R) => g(y, R)
670
+ onClickCapture: (V) => g(y, V)
670
671
  }, {
671
672
  default: w(() => [
672
673
  A(b.$slots, "option", { option: y }, () => [
@@ -679,7 +680,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
679
680
  _: 3
680
681
  }, 8, ["model-value", "disabled", "aria-label"]));
681
682
  }
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
+ }), ra = /* @__PURE__ */ Y(ia, [["__scopeId", "data-v-d18fb571"]]), da = { class: "emt-colmenu__list" }, ua = ["data-testid"], ca = ["data-testid"], ma = ["data-testid"], va = ["data-testid"], fa = ["data-testid"], ha = ["disabled", "data-testid"], pa = { class: "emt-colmenu__section" }, ya = ["data-testid", "onClick"], ba = /* @__PURE__ */ N({
683
684
  __name: "EmooColumnMenu",
684
685
  props: {
685
686
  colKey: {},
@@ -700,7 +701,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
700
701
  "popper-class": "emt-colmenu"
701
702
  }, {
702
703
  dropdown: w(() => [
703
- u("div", ia, [
704
+ u("div", da, [
704
705
  e.sortable ? (t(), s(D, { key: 0 }, [
705
706
  u("button", {
706
707
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
@@ -714,7 +715,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
714
715
  "aria-hidden": "true"
715
716
  }),
716
717
  J(k(a(l)("common.emooTable.sortAsc")), 1)
717
- ], 10, ra),
718
+ ], 10, ua),
718
719
  u("button", {
719
720
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
720
721
  type: "button",
@@ -727,7 +728,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
727
728
  "aria-hidden": "true"
728
729
  }),
729
730
  J(k(a(l)("common.emooTable.sortDesc")), 1)
730
- ], 10, da),
731
+ ], 10, ca),
731
732
  i[7] || (i[7] = u("div", { class: "emt-colmenu__divider" }, null, -1))
732
733
  ], 64)) : S("", !0),
733
734
  e.pinsEnabled ? (t(), s(D, { key: 1 }, [
@@ -743,7 +744,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
743
744
  "aria-hidden": "true"
744
745
  }),
745
746
  J(k(a(l)("common.emooTable.unpin")), 1)
746
- ], 8, ua)) : (t(), s(D, { key: 1 }, [
747
+ ], 8, ma)) : (t(), s(D, { key: 1 }, [
747
748
  u("button", {
748
749
  class: "emt-colmenu__item",
749
750
  type: "button",
@@ -755,7 +756,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
755
756
  "aria-hidden": "true"
756
757
  }),
757
758
  J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
758
- ], 8, ca),
759
+ ], 8, va),
759
760
  u("button", {
760
761
  class: "emt-colmenu__item",
761
762
  type: "button",
@@ -767,7 +768,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
767
768
  "aria-hidden": "true"
768
769
  }),
769
770
  J(k(a(l)("common.emooTable.pinRightFrom")), 1)
770
- ], 8, ma)
771
+ ], 8, fa)
771
772
  ], 64)),
772
773
  i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
773
774
  ], 64)) : S("", !0),
@@ -784,10 +785,10 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
784
785
  "aria-hidden": "true"
785
786
  }),
786
787
  J(k(a(l)("common.emooTable.hideColumn")), 1)
787
- ], 8, va),
788
+ ], 8, ha),
788
789
  e.hidden.length ? (t(), s(D, { key: 2 }, [
789
790
  i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
790
- u("div", fa, k(a(l)("common.emooTable.hiddenColumns")), 1),
791
+ u("div", pa, k(a(l)("common.emooTable.hiddenColumns")), 1),
791
792
  (t(!0), s(D, null, Z(e.hidden, (p) => (t(), s("button", {
792
793
  key: p.key,
793
794
  class: "emt-colmenu__item",
@@ -800,7 +801,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
800
801
  "aria-hidden": "true"
801
802
  }),
802
803
  J(k(p.label), 1)
803
- ], 8, ha))), 128))
804
+ ], 8, ya))), 128))
804
805
  ], 64)) : S("", !0),
805
806
  e.resettable ? (t(), s(D, { key: 3 }, [
806
807
  i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
@@ -810,7 +811,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
810
811
  "data-testid": "emt-reset-prefs",
811
812
  onClick: i[6] || (i[6] = le((p) => o("reset"), ["stop"]))
812
813
  }, [
813
- P(a(Mt), {
814
+ P(a(Bt), {
814
815
  size: 14,
815
816
  "aria-hidden": "true"
816
817
  }),
@@ -828,7 +829,7 @@ const Ho = { class: "emoo-asel__opt" }, Ko = { class: "emoo-asel__avatar" }, Wo
828
829
  }), Je = {
829
830
  DRAWER_WIDTHS: "emoo-drawer-widths",
830
831
  DRAWER_HEIGHTS: "emoo-drawer-heights"
831
- }, ya = 360, Lt = 0.98;
832
+ }, ga = 360, Lt = 0.98;
832
833
  function Ot() {
833
834
  try {
834
835
  const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
@@ -837,11 +838,11 @@ function Ot() {
837
838
  return {};
838
839
  }
839
840
  }
840
- function ba(e, n) {
841
+ function ka(e, n) {
841
842
  const o = Ot()[e];
842
- return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ya), window.innerWidth * Lt))}px`;
843
+ return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ga), window.innerWidth * Lt))}px`;
843
844
  }
844
- function ga(e, n) {
845
+ function $a(e, n) {
845
846
  try {
846
847
  const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
847
848
  localStorage.setItem(
@@ -851,7 +852,7 @@ function ga(e, n) {
851
852
  } catch {
852
853
  }
853
854
  }
854
- const Ut = [0.6, 0.85, 1], ka = 0.08, $a = 250;
855
+ const Ut = [0.6, 0.85, 1], _a = 0.08, wa = 250;
855
856
  function Ht() {
856
857
  try {
857
858
  const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
@@ -860,7 +861,7 @@ function Ht() {
860
861
  return {};
861
862
  }
862
863
  }
863
- function _a(e, n) {
864
+ function Sa(e, n) {
864
865
  try {
865
866
  localStorage.setItem(
866
867
  Je.DRAWER_HEIGHTS,
@@ -869,13 +870,13 @@ function _a(e, n) {
869
870
  } catch {
870
871
  }
871
872
  }
872
- function wa(e) {
873
+ function Ca(e) {
873
874
  return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
874
875
  }
875
- function Sa(e, n) {
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);
876
+ function Ea(e, n) {
877
+ const o = Ht()[e], l = typeof o == "number" && o > 0 && o <= 1 ? o : n, r = U(l), i = U(null), p = R(() => i.value === null ? `${Math.round(r.value * 100)}%` : `${i.value}px`), v = U(!1), g = U(!1);
877
878
  let c = 0, b = 0, _ = !1, y;
878
- function R() {
879
+ function V() {
879
880
  y !== void 0 && clearTimeout(y), y = void 0, g.value = !1, i.value = null;
880
881
  }
881
882
  function E(z) {
@@ -888,26 +889,26 @@ function Sa(e, n) {
888
889
  i.value = null;
889
890
  return;
890
891
  }
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) {
892
+ const z = i.value / window.innerHeight, j = Ca(z), X = Math.abs(j - z) <= _a;
893
+ if (r.value = X ? j : Math.round(z * 100) / 100, Sa(e, r.value), !X) {
893
894
  i.value = null;
894
895
  return;
895
896
  }
896
897
  g.value = !0, requestAnimationFrame(() => {
897
- i.value = Math.round(j * window.innerHeight), y = setTimeout(R, $a);
898
+ i.value = Math.round(j * window.innerHeight), y = setTimeout(V, wa);
898
899
  });
899
900
  }
900
901
  function I(z) {
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
+ z.button !== void 0 && z.button !== 0 || (V(), 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
903
  }
903
904
  return Ct(() => {
904
905
  window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
905
906
  }), { size: p, dragging: v, animating: g, onDragStart: I };
906
907
  }
907
- const Ca = {
908
+ const Ta = {
908
909
  key: 0,
909
910
  class: "emoo-drawer__sheet"
910
- }, Ea = { class: "emoo-drawer__sheet-content" }, On = /* @__PURE__ */ F({
911
+ }, xa = { class: "emoo-drawer__sheet-content" }, Wn = /* @__PURE__ */ N({
911
912
  inheritAttrs: !1,
912
913
  __name: "EmooDrawer",
913
914
  props: {
@@ -922,19 +923,19 @@ const Ca = {
922
923
  },
923
924
  emits: ["update:modelValue", "resize-end"],
924
925
  setup(e, { emit: n }) {
925
- const o = e, l = n, r = V({
926
+ const o = e, l = n, r = R({
926
927
  get: () => o.modelValue,
927
928
  set: (y) => l("update:modelValue", y)
928
- }), i = V(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Sa(
929
+ }), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Ea(
929
930
  o.scene ?? "__emoo-no-scene__",
930
931
  o.mobileRatio
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
- function _(y, R) {
933
- o.scene && ga(o.scene, R), l("resize-end", y, R);
932
+ ), b = R(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ka(o.scene, o.size) : o.size);
933
+ function _(y, V) {
934
+ o.scene && $a(o.scene, V), l("resize-end", y, V);
934
935
  }
935
- return (y, R) => (t(), x(a(Tt), Xe(y.$attrs, {
936
+ return (y, V) => (t(), x(a(Tt), Xe(y.$attrs, {
936
937
  modelValue: r.value,
937
- "onUpdate:modelValue": R[0] || (R[0] = (E) => r.value = E),
938
+ "onUpdate:modelValue": V[0] || (V[0] = (E) => r.value = E),
938
939
  class: ["emoo-drawer", {
939
940
  "emoo-drawer--flush": e.flush,
940
941
  "is-sheet": i.value,
@@ -946,12 +947,12 @@ const Ca = {
946
947
  onResizeEnd: _
947
948
  }), Se({
948
949
  default: w(() => [
949
- i.value ? (t(), s("div", Ca, [
950
+ i.value ? (t(), s("div", Ta, [
950
951
  P(At, {
951
952
  dragging: a(v),
952
953
  onDragstart: a(c)
953
954
  }, null, 8, ["dragging", "onDragstart"]),
954
- u("div", Ea, [
955
+ u("div", xa, [
955
956
  A(y.$slots, "default")
956
957
  ])
957
958
  ])) : A(y.$slots, "default", {}, void 0, void 0, 1)
@@ -974,20 +975,20 @@ const Ca = {
974
975
  } : void 0
975
976
  ]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
976
977
  }
977
- }), Ta = {
978
+ }), Ia = {
978
979
  key: 0,
979
980
  class: "emoo-empty__stage",
980
981
  "aria-hidden": "true"
981
- }, xa = {
982
+ }, za = {
982
983
  key: 1,
983
984
  class: "emoo-empty__title"
984
- }, Ia = {
985
+ }, Ra = {
985
986
  key: 2,
986
987
  class: "emoo-empty__desc"
987
- }, za = {
988
+ }, Va = {
988
989
  key: 3,
989
990
  class: "emoo-empty__actions"
990
- }, Ra = /* @__PURE__ */ F({
991
+ }, Ba = /* @__PURE__ */ N({
991
992
  __name: "EmooEmpty",
992
993
  props: {
993
994
  variant: { default: "stage" },
@@ -1003,12 +1004,12 @@ const Ca = {
1003
1004
  "data-testid": "emoo-empty"
1004
1005
  }, [
1005
1006
  e.variant === "stage" ? (t(), s(D, { key: 0 }, [
1006
- e.icon ? (t(), s("span", Ta, [
1007
+ e.icon ? (t(), s("span", Ia, [
1007
1008
  (t(), x(Ie(e.icon), { weight: "duotone" }))
1008
1009
  ])) : S("", !0),
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, [
1010
+ e.title ? (t(), s("p", za, k(e.title), 1)) : S("", !0),
1011
+ e.description ? (t(), s("p", Ra, k(e.description), 1)) : S("", !0),
1012
+ n.$slots.actions ? (t(), s("div", Va, [
1012
1013
  A(n.$slots, "actions", {}, void 0, !0)
1013
1014
  ])) : S("", !0)
1014
1015
  ], 64)) : (t(), s(D, { key: 1 }, [
@@ -1016,7 +1017,7 @@ const Ca = {
1016
1017
  ], 64))
1017
1018
  ], 2));
1018
1019
  }
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
+ }), Ma = /* @__PURE__ */ Y(Ba, [["__scopeId", "data-v-e50a5864"]]), Da = ["id", "for"], Pa = { class: "emoo-field__body" }, Aa = ["data-testid"], La = ["id"], Oa = ["id", "data-testid"], Ua = /* @__PURE__ */ N({
1020
1021
  __name: "EmooField",
1021
1022
  props: {
1022
1023
  id: {},
@@ -1031,9 +1032,9 @@ const Ca = {
1031
1032
  testid: {}
1032
1033
  },
1033
1034
  setup(e) {
1034
- const n = e, o = V(() => n.id ? `${n.id}-control` : void 0), l = V(() => n.id ? `${n.id}-label` : void 0), r = V(() => n.id ? `${n.id}-help` : void 0), i = V(() => n.id ? `${n.id}-error` : void 0), p = V(
1035
+ const n = e, o = R(() => n.id ? `${n.id}-control` : void 0), l = R(() => n.id ? `${n.id}-label` : void 0), r = R(() => n.id ? `${n.id}-help` : void 0), i = R(() => n.id ? `${n.id}-error` : void 0), p = R(
1035
1036
  () => [n.error && i.value, n.help && r.value].filter(Boolean).join(" ") || void 0
1036
- ), v = V(() => {
1037
+ ), v = R(() => {
1037
1038
  if (!(n.span === 1 || n.span === void 0))
1038
1039
  return n.span === "full" ? "is-span-full" : `is-span-${Math.min(4, Math.max(1, n.span))}`;
1039
1040
  });
@@ -1050,8 +1051,8 @@ const Ca = {
1050
1051
  A(g.$slots, "label", {}, () => [
1051
1052
  J(k(e.label), 1)
1052
1053
  ], !0)
1053
- ], 10, Ma)) : S("", !0),
1054
- u("div", Ba, [
1054
+ ], 10, Da)) : S("", !0),
1055
+ u("div", Pa, [
1055
1056
  e.mode === "view" ? (t(), s("div", {
1056
1057
  key: 0,
1057
1058
  class: "emoo-field__value",
@@ -1060,7 +1061,7 @@ const Ca = {
1060
1061
  A(g.$slots, "view", {}, () => [
1061
1062
  J(k(e.text), 1)
1062
1063
  ], !0)
1063
- ], 8, Da)) : A(g.$slots, "default", {
1064
+ ], 8, Aa)) : A(g.$slots, "default", {
1064
1065
  id: o.value || void 0,
1065
1066
  describedBy: p.value,
1066
1067
  invalid: !!e.error,
@@ -1070,18 +1071,18 @@ const Ca = {
1070
1071
  key: 2,
1071
1072
  id: r.value,
1072
1073
  class: "emoo-field__help"
1073
- }, k(e.help), 9, Pa)) : S("", !0),
1074
+ }, k(e.help), 9, La)) : S("", !0),
1074
1075
  e.error && e.mode === "edit" ? (t(), s("p", {
1075
1076
  key: 3,
1076
1077
  id: i.value,
1077
1078
  class: "emoo-field__error",
1078
1079
  role: "alert",
1079
1080
  "data-testid": e.testid ? `${e.testid}-error` : void 0
1080
- }, k(e.error), 9, Aa)) : S("", !0)
1081
+ }, k(e.error), 9, Oa)) : S("", !0)
1081
1082
  ])
1082
1083
  ], 2)) : S("", !0);
1083
1084
  }
1084
- }), Un = /* @__PURE__ */ Y(La, [["__scopeId", "data-v-1b6ea0e7"]]), Oa = ["aria-label"], Ua = /* @__PURE__ */ F({
1085
+ }), Fn = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-1b6ea0e7"]]), Ha = ["aria-label"], Ka = /* @__PURE__ */ N({
1085
1086
  __name: "EmooFieldGrid",
1086
1087
  props: {
1087
1088
  ariaLabel: {},
@@ -1094,9 +1095,30 @@ const Ca = {
1094
1095
  "aria-label": e.ariaLabel
1095
1096
  }, [
1096
1097
  A(n.$slots, "default", {}, void 0, !0)
1097
- ], 10, Oa));
1098
+ ], 10, Ha));
1099
+ }
1100
+ }), Nn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-12f1e7e0"]]), Wa = ["width", "height", "viewBox", "data-type", "innerHTML"], qn = /* @__PURE__ */ N({
1101
+ __name: "EmooFileTypeIcon",
1102
+ props: {
1103
+ type: {},
1104
+ size: {}
1105
+ },
1106
+ setup(e) {
1107
+ const n = e, o = R(() => n.size ?? "1em"), l = R(() => Eo(n.type)), r = R(() => To(n.type));
1108
+ return (i, p) => (t(), s("svg", {
1109
+ class: "emoo-file-icon",
1110
+ width: o.value,
1111
+ height: o.value,
1112
+ viewBox: r.value,
1113
+ fill: "none",
1114
+ "aria-hidden": "true",
1115
+ focusable: "false",
1116
+ "data-testid": "emoo-file-type-icon",
1117
+ "data-type": e.type,
1118
+ innerHTML: l.value
1119
+ }, null, 8, Wa));
1098
1120
  }
1099
- }), Hn = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-12f1e7e0"]]), Ha = /* @__PURE__ */ F({
1121
+ }), Fa = /* @__PURE__ */ N({
1100
1122
  __name: "EmooGhostButton",
1101
1123
  props: {
1102
1124
  pill: { type: Boolean },
@@ -1110,7 +1132,7 @@ const Ca = {
1110
1132
  A(n.$slots, "default", {}, void 0, !0)
1111
1133
  ], 2));
1112
1134
  }
1113
- }), Kn = /* @__PURE__ */ Y(Ha, [["__scopeId", "data-v-d0346949"]]), Ka = /* @__PURE__ */ F({
1135
+ }), jn = /* @__PURE__ */ Y(Fa, [["__scopeId", "data-v-d0346949"]]), Na = /* @__PURE__ */ N({
1114
1136
  __name: "EmooGroupLabel",
1115
1137
  props: {
1116
1138
  title: {},
@@ -1124,10 +1146,10 @@ const Ca = {
1124
1146
  u("span", null, k(a(n)(e.title)), 1)
1125
1147
  ], 2));
1126
1148
  }
1127
- }), Wn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-0135d501"]]), Wa = { class: "emoo-skel__lines" }, Na = { class: "emoo-skel__head" }, Fa = {
1149
+ }), Gn = /* @__PURE__ */ Y(Na, [["__scopeId", "data-v-0135d501"]]), qa = { class: "emoo-skel__lines" }, ja = { class: "emoo-skel__head" }, Ga = {
1128
1150
  key: 4,
1129
1151
  class: "emoo-skel__pill-row"
1130
- }, qa = { class: "emoo-skel__detail" }, ja = { class: "emoo-skel__lines" }, Ga = /* @__PURE__ */ F({
1152
+ }, Xa = { class: "emoo-skel__detail" }, Za = { class: "emoo-skel__lines" }, Ja = /* @__PURE__ */ N({
1131
1153
  __name: "EmooSkeleton",
1132
1154
  props: {
1133
1155
  variant: { default: "lines" },
@@ -1152,7 +1174,7 @@ const Ca = {
1152
1174
  class: "emoo-skel__item"
1153
1175
  }, [
1154
1176
  o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
1155
- u("span", Wa, [
1177
+ u("span", qa, [
1156
1178
  u("span", {
1157
1179
  class: "emoo-skel__bone emoo-skel__line",
1158
1180
  style: pe({ width: `${52 - l * 8}%` })
@@ -1163,7 +1185,7 @@ const Ca = {
1163
1185
  }, null, 4)
1164
1186
  ])
1165
1187
  ]))), 128)) : e.variant === "table" ? (t(), s(D, { key: 2 }, [
1166
- u("span", Na, [
1188
+ u("span", ja, [
1167
1189
  (t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
1168
1190
  key: r,
1169
1191
  class: "emoo-skel__bone emoo-skel__cell",
@@ -1189,7 +1211,7 @@ const Ca = {
1189
1211
  style: { width: "56%" }
1190
1212
  }, null, -1),
1191
1213
  u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
1192
- ])]))), 128)) : e.variant === "pills" ? (t(), s("div", Fa, [
1214
+ ])]))), 128)) : e.variant === "pills" ? (t(), s("div", Ga, [
1193
1215
  (t(!0), s(D, null, Z(e.pills, (l) => (t(), s("span", {
1194
1216
  key: l,
1195
1217
  class: "emoo-skel__bone emoo-skel__pill"
@@ -1214,8 +1236,8 @@ const Ca = {
1214
1236
  }, null, 4)
1215
1237
  ], 64)) : (t(), s(D, { key: 7 }, [
1216
1238
  o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1217
- u("span", qa, [
1218
- u("span", ja, [
1239
+ u("span", Xa, [
1240
+ u("span", Za, [
1219
1241
  (t(!0), s(D, null, Z(e.lines, (l) => (t(), s("span", {
1220
1242
  key: l,
1221
1243
  class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
@@ -1226,7 +1248,7 @@ const Ca = {
1226
1248
  ], 64))
1227
1249
  ], 2));
1228
1250
  }
1229
- }), Xa = /* @__PURE__ */ Y(Ga, [["__scopeId", "data-v-9e0a33de"]]), Za = ["aria-label"], Ja = /* @__PURE__ */ F({
1251
+ }), Ya = /* @__PURE__ */ Y(Ja, [["__scopeId", "data-v-9e0a33de"]]), Qa = ["aria-label"], el = /* @__PURE__ */ N({
1230
1252
  __name: "EmooSpinner",
1231
1253
  props: {
1232
1254
  size: { default: 20 },
@@ -1252,22 +1274,22 @@ const Ca = {
1252
1274
  "stroke-dasharray": "37.7 12.57"
1253
1275
  })
1254
1276
  ], -1)
1255
- ])], 12, Za));
1277
+ ])], 12, Qa));
1256
1278
  }
1257
- }), Kt = /* @__PURE__ */ Y(Ja, [["__scopeId", "data-v-d168f9f3"]]), Ya = {
1279
+ }), Kt = /* @__PURE__ */ Y(el, [["__scopeId", "data-v-d168f9f3"]]), tl = {
1258
1280
  class: "emoo-history-list",
1259
1281
  "data-testid": "emoo-history-list"
1260
- }, Qa = {
1282
+ }, ol = {
1261
1283
  key: 0,
1262
1284
  class: "history-float"
1263
- }, el = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], tl = { class: "history-name" }, ol = { key: 0 }, al = {
1285
+ }, al = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], ll = { class: "history-name" }, sl = { key: 0 }, nl = {
1264
1286
  key: 1,
1265
1287
  class: "status-indicator",
1266
1288
  "data-testid": "chat-status-indicator"
1267
- }, ll = {
1289
+ }, il = {
1268
1290
  key: 1,
1269
1291
  class: "status-dot"
1270
- }, sl = /* @__PURE__ */ F({
1292
+ }, rl = /* @__PURE__ */ N({
1271
1293
  __name: "EmooHistoryList",
1272
1294
  props: {
1273
1295
  groups: {},
@@ -1285,63 +1307,63 @@ const Ca = {
1285
1307
  },
1286
1308
  emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
1287
1309
  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")), 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
- _.value = !0, await ke(), R.value?.focus();
1310
+ const l = e, r = o, { t: i } = me(), p = R(() => l.searchPlaceholder ?? i("common.emooHistory.searchPlaceholder")), v = R(() => l.selectLabel ?? i("common.emooHistory.select")), g = R(() => l.emptyTitle ?? i("common.emooHistory.empty")), c = R(() => l.noMatchTitle ?? i("common.emooHistory.noMatch")), b = R(() => l.groups.some((B) => B.items.length > 0)), _ = U(!1), y = U(!1), V = U(null), E = async () => {
1311
+ _.value = !0, await ke(), V.value?.focus();
1290
1312
  }, $ = () => {
1291
1313
  !l.keyword && !y.value && (_.value = !1);
1292
1314
  }, I = () => {
1293
1315
  y.value = !1, $();
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;
1316
+ }, z = U(null), j = U(null), X = R(() => l.groups.flatMap((B) => B.items)), ie = (B) => B.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (B) => {
1317
+ B !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${B}"]`)?.focus();
1318
+ }, d = () => ee(X.value[0]?.id), T = (B, O) => {
1319
+ if (B.target !== B.currentTarget) return;
1298
1320
  const G = X.value, oe = G.findIndex((re) => re.id === O.id);
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") {
1321
+ if (B.key === "ArrowDown")
1322
+ B.preventDefault(), oe < G.length - 1 && ee(G[oe + 1].id);
1323
+ else if (B.key === "ArrowUp")
1324
+ B.preventDefault(), oe > 0 && ee(G[oe - 1].id);
1325
+ else if (B.key === "Enter")
1326
+ B.preventDefault(), L(O);
1327
+ else if (B.key === "Backspace" || B.key === "Delete") {
1306
1328
  if (se.value || H.value || !ae) return;
1307
- M.preventDefault(), r("delete", O);
1329
+ B.preventDefault(), r("delete", O);
1308
1330
  }
1309
- }, B = (M) => {
1310
- if ((M.metaKey || M.ctrlKey) && M.key.toLowerCase() === "k") {
1331
+ }, M = (B) => {
1332
+ if ((B.metaKey || B.ctrlKey) && B.key.toLowerCase() === "k") {
1311
1333
  if (!l.anyRecord) return;
1312
- M.preventDefault(), E();
1334
+ B.preventDefault(), E();
1313
1335
  }
1314
- }, se = U(null), ne = U(""), ye = U(!1), q = (M) => {
1315
- se.value = M.id, ne.value = M.title;
1336
+ }, se = U(null), ne = U(""), ye = U(!1), q = (B) => {
1337
+ se.value = B.id, ne.value = B.title;
1316
1338
  }, de = () => {
1317
1339
  se.value = null, ne.value = "";
1318
1340
  }, ce = () => {
1319
1341
  se.value !== null && r("rename", { id: se.value, title: ne.value });
1320
- }, H = U(!1), te = (M, O) => {
1342
+ }, H = U(!1), te = (B, O) => {
1321
1343
  r(
1322
1344
  "update:selectedIds",
1323
- O ? [...l.selectedIds, M] : l.selectedIds.filter((G) => G !== M)
1345
+ O ? [...l.selectedIds, B] : l.selectedIds.filter((G) => G !== B)
1324
1346
  );
1325
- }, N = () => {
1347
+ }, F = () => {
1326
1348
  H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
1327
1349
  }, C = () => {
1328
1350
  H.value && (H.value = !1, r("update:selectedIds", []));
1329
- }, L = (M) => {
1351
+ }, L = (B) => {
1330
1352
  if (H.value) {
1331
- te(M.id, !l.selectedIds.includes(M.id));
1353
+ te(B.id, !l.selectedIds.includes(B.id));
1332
1354
  return;
1333
1355
  }
1334
- r("select", M);
1335
- }, Q = (M) => {
1336
- const O = M.target;
1356
+ r("select", B);
1357
+ }, Q = (B) => {
1358
+ const O = B.target;
1337
1359
  O.scrollTop + O.clientHeight >= O.scrollHeight - 60 && r("load-more");
1338
1360
  }, ae = !!Et()["row-action"];
1339
1361
  return Ze(() => {
1340
- window.addEventListener("keydown", B);
1362
+ window.addEventListener("keydown", M);
1341
1363
  }), Ct(() => {
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, [
1364
+ window.removeEventListener("keydown", M);
1365
+ }), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (B, O) => (t(), s("div", tl, [
1366
+ e.anyRecord ? (t(), s("div", ol, [
1345
1367
  u("div", {
1346
1368
  class: W(["search-area", { expanded: _.value }]),
1347
1369
  onMouseenter: O[2] || (O[2] = (G) => _.value = !0),
@@ -1367,7 +1389,7 @@ const Ca = {
1367
1389
  }, 8, ["content"]),
1368
1390
  P(a(ot), {
1369
1391
  ref_key: "searchInputRef",
1370
- ref: R,
1392
+ ref: V,
1371
1393
  "model-value": e.keyword,
1372
1394
  size: "small",
1373
1395
  clearable: "",
@@ -1388,14 +1410,14 @@ const Ca = {
1388
1410
  class: "float-toggle",
1389
1411
  "data-testid": "chat-history-select-cancel",
1390
1412
  disabled: e.batchBusy,
1391
- onClick: N
1413
+ onClick: F
1392
1414
  }, {
1393
1415
  default: w(() => [
1394
1416
  J(k(a(i)("common.emooHistory.cancel")), 1)
1395
1417
  ]),
1396
1418
  _: 1
1397
1419
  }, 8, ["disabled"]),
1398
- A(M.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1420
+ A(B.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1399
1421
  ], 64)) : (t(), x(he, {
1400
1422
  key: 0,
1401
1423
  content: v.value
@@ -1408,7 +1430,7 @@ const Ca = {
1408
1430
  "data-testid": "chat-history-select-toggle",
1409
1431
  "aria-label": v.value,
1410
1432
  disabled: e.batchBusy,
1411
- onClick: N
1433
+ onClick: F
1412
1434
  }, {
1413
1435
  default: w(() => [
1414
1436
  P(a(go), { size: 14 })
@@ -1420,13 +1442,13 @@ const Ca = {
1420
1442
  }, 8, ["content"]))
1421
1443
  ], 64)) : S("", !0)
1422
1444
  ])) : S("", !0),
1423
- Ne((t(), s("div", {
1445
+ Fe((t(), s("div", {
1424
1446
  ref_key: "historyScrollRef",
1425
1447
  ref: z,
1426
1448
  class: "history-scroll",
1427
1449
  onScroll: Q
1428
1450
  }, [
1429
- e.loading && !b.value ? (t(), x(Xa, {
1451
+ e.loading && !b.value ? (t(), x(Ya, {
1430
1452
  key: 0,
1431
1453
  variant: "lines",
1432
1454
  lines: 4,
@@ -1464,8 +1486,8 @@ const Ca = {
1464
1486
  }, ["stop"])),
1465
1487
  "onUpdate:modelValue": (re) => te(oe.id, !!re)
1466
1488
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
1467
- u("span", tl, [
1468
- se.value !== oe.id ? (t(), s("span", ol, k(oe.title), 1)) : (t(), x(a(ot), {
1489
+ u("span", ll, [
1490
+ se.value !== oe.id ? (t(), s("span", sl, k(oe.title), 1)) : (t(), x(a(ot), {
1469
1491
  key: 1,
1470
1492
  modelValue: ne.value,
1471
1493
  "onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
@@ -1479,12 +1501,12 @@ const Ca = {
1479
1501
  onBlur: le(ce, ["stop"])
1480
1502
  }, null, 8, ["modelValue"]))
1481
1503
  ]),
1482
- se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", al, [
1504
+ se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", nl, [
1483
1505
  oe.status === "generating" ? (t(), x(Kt, {
1484
1506
  key: 0,
1485
1507
  size: 14,
1486
1508
  label: a(i)("common.loading")
1487
- }, null, 8, ["label"])) : (t(), s("span", ll))
1509
+ }, null, 8, ["label"])) : (t(), s("span", il))
1488
1510
  ])) : S("", !0),
1489
1511
  se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
1490
1512
  key: 2,
@@ -1500,7 +1522,7 @@ const Ca = {
1500
1522
  dropdown: w(() => [
1501
1523
  P(a(lo), null, {
1502
1524
  default: w(() => [
1503
- A(M.$slots, "row-action", { item: oe }, void 0, !0)
1525
+ A(B.$slots, "row-action", { item: oe }, void 0, !0)
1504
1526
  ]),
1505
1527
  _: 2
1506
1528
  }, 1024)
@@ -1514,18 +1536,18 @@ const Ca = {
1514
1536
  }, ["stop"]))
1515
1537
  }, {
1516
1538
  default: w(() => [
1517
- P(a(Bt), { class: "ic" })
1539
+ P(a(Mt), { class: "ic" })
1518
1540
  ]),
1519
1541
  _: 1
1520
1542
  })
1521
1543
  ]),
1522
1544
  _: 2
1523
1545
  }, 1024)) : S("", !0)
1524
- ], 42, el)
1546
+ ], 42, al)
1525
1547
  ]),
1526
1548
  _: 2
1527
1549
  }, 1032, ["content", "disabled"]))), 128))
1528
- ]))), 128)) : (t(), x(Va, {
1550
+ ]))), 128)) : (t(), x(Ma, {
1529
1551
  key: 2,
1530
1552
  variant: "mini",
1531
1553
  title: e.keyword.trim() ? c.value : g.value
@@ -1535,20 +1557,20 @@ const Ca = {
1535
1557
  ])
1536
1558
  ]));
1537
1559
  }
1538
- }), Nn = /* @__PURE__ */ Y(sl, [["__scopeId", "data-v-862f7ee9"]]), nl = {
1560
+ }), Xn = /* @__PURE__ */ Y(rl, [["__scopeId", "data-v-862f7ee9"]]), dl = {
1539
1561
  class: "emoo-mrsel__tabs",
1540
1562
  role: "tablist"
1541
- }, il = ["aria-selected", "onClick"], rl = { class: "emoo-mrsel__count" }, dl = {
1563
+ }, ul = ["aria-selected", "onClick"], cl = { class: "emoo-mrsel__count" }, ml = {
1542
1564
  class: "emoo-sel-remote-error",
1543
1565
  role: "alert",
1544
1566
  "data-testid": "remote-error"
1545
- }, ul = { class: "emoo-mrsel__opt" }, cl = ["src"], ml = { class: "emoo-mrsel__name" }, vl = {
1567
+ }, vl = { class: "emoo-mrsel__opt" }, fl = ["src"], hl = { class: "emoo-mrsel__name" }, pl = {
1546
1568
  key: 0,
1547
1569
  class: "emoo-mrsel__dept"
1548
- }, fl = { class: "emoo-mrsel__opt" }, hl = ["src"], pl = { class: "emoo-mrsel__col" }, yl = { class: "emoo-mrsel__name" }, bl = {
1570
+ }, yl = { class: "emoo-mrsel__opt" }, bl = ["src"], gl = { class: "emoo-mrsel__col" }, kl = { class: "emoo-mrsel__name" }, $l = {
1549
1571
  key: 0,
1550
1572
  class: "emoo-mrsel__desc"
1551
- }, gl = /* @__PURE__ */ F({
1573
+ }, _l = /* @__PURE__ */ N({
1552
1574
  __name: "EmooMemberRoleSelect",
1553
1575
  props: {
1554
1576
  modelValue: {},
@@ -1563,29 +1585,29 @@ const Ca = {
1563
1585
  },
1564
1586
  emits: ["update:modelValue"],
1565
1587
  setup(e, { emit: n }) {
1566
- const o = e, l = n, { t: r } = me(), i = U("member"), p = V(() => o.modelValue?.memberIds ?? []), v = V(() => o.modelValue?.roleIds ?? []), g = V(() => [
1588
+ const o = e, l = n, { t: r } = me(), i = U("member"), p = R(() => o.modelValue?.memberIds ?? []), v = R(() => o.modelValue?.roleIds ?? []), g = R(() => [
1567
1589
  { key: "member", label: r("common.emooSelect.memberTab"), count: p.value.length },
1568
1590
  { key: "role", label: r("common.emooSelect.roleTab"), count: v.value.length }
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(
1591
+ ]), c = R(() => 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 : _, V = R(() => `${b.popperClass} ${_.popperClass}`), E = R(() => i.value === "member" ? p.value : v.value), $ = Me(
1570
1592
  () => p.value,
1571
1593
  () => c.value ? b.items.value : o.members ?? [],
1572
1594
  () => o.selectedMembers ?? []
1573
- ), I = Be(
1595
+ ), I = Me(
1574
1596
  () => v.value,
1575
1597
  () => c.value ? _.items.value : o.roles ?? [],
1576
1598
  () => o.selectedRoles ?? []
1577
- ), z = $.mergedOptions, j = I.mergedOptions, X = V(() => [
1599
+ ), z = $.mergedOptions, j = I.mergedOptions, X = R(() => [
1578
1600
  ...$.selectedOptions.value,
1579
1601
  ...I.selectedOptions.value.map((H) => ({ ...H, square: !0 }))
1580
- ]), ie = Pe(), ee = V(() => ie.disabled !== void 0 && ie.disabled !== !1), d = U(!1), T = (H) => {
1602
+ ]), ie = Pe(), ee = R(() => ie.disabled !== void 0 && ie.disabled !== !1), d = U(!1), T = (H) => {
1581
1603
  if (d.value = H, !H) {
1582
1604
  b.onVisibleChange(!1), _.onVisibleChange(!1);
1583
1605
  return;
1584
1606
  }
1585
1607
  c.value && y(i.value).onVisibleChange(!0);
1586
- }, B = (H) => {
1608
+ }, M = (H) => {
1587
1609
  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) => {
1610
+ }, se = R(() => c.value ? y(i.value).loading.value : !1), ne = R(() => c.value ? y(i.value).error.value : null), ye = () => y(i.value).retry(), q = (H) => {
1589
1611
  i.value !== H && (i.value = H, c.value && d.value && y(H).onVisibleChange(!0));
1590
1612
  }, de = (H) => {
1591
1613
  const te = Array.isArray(H) ? [...H] : H == null || H === "" ? [] : [H];
@@ -1597,9 +1619,9 @@ const Ca = {
1597
1619
  if (ee.value) return;
1598
1620
  const te = X.value[H];
1599
1621
  if (!te) return;
1600
- const N = H < $.selectedOptions.value.length, C = {
1601
- memberIds: N ? p.value.filter((L) => L !== te.id) : [...p.value],
1602
- roleIds: N ? [...v.value] : v.value.filter((L) => L !== te.id)
1622
+ const F = H < $.selectedOptions.value.length, C = {
1623
+ memberIds: F ? p.value.filter((L) => L !== te.id) : [...p.value],
1624
+ roleIds: F ? [...v.value] : v.value.filter((L) => L !== te.id)
1603
1625
  };
1604
1626
  $.remember(C.memberIds), I.remember(C.roleIds), l("update:modelValue", C);
1605
1627
  };
@@ -1611,9 +1633,9 @@ const Ca = {
1611
1633
  filterable: "",
1612
1634
  "fit-input-width": "",
1613
1635
  remote: c.value,
1614
- "remote-method": B,
1636
+ "remote-method": M,
1615
1637
  loading: se.value,
1616
- "popper-class": R.value,
1638
+ "popper-class": V.value,
1617
1639
  "onUpdate:modelValue": de,
1618
1640
  onVisibleChange: T
1619
1641
  }, Se({
@@ -1626,68 +1648,68 @@ const Ca = {
1626
1648
  }, null, 8, ["items", "max", "removable"])
1627
1649
  ]),
1628
1650
  header: w(() => [
1629
- u("div", nl, [
1630
- (t(!0), s(D, null, Z(g.value, (N) => (t(), s("button", {
1631
- key: N.key,
1651
+ u("div", dl, [
1652
+ (t(!0), s(D, null, Z(g.value, (F) => (t(), s("button", {
1653
+ key: F.key,
1632
1654
  type: "button",
1633
- class: W(["emoo-mrsel__tab", { "is-active": i.value === N.key }]),
1634
- "aria-selected": i.value === N.key,
1635
- onClick: (C) => q(N.key)
1655
+ class: W(["emoo-mrsel__tab", { "is-active": i.value === F.key }]),
1656
+ "aria-selected": i.value === F.key,
1657
+ onClick: (C) => q(F.key)
1636
1658
  }, [
1637
- J(k(N.label) + " ", 1),
1638
- u("span", rl, k(N.count), 1)
1639
- ], 10, il))), 128))
1659
+ J(k(F.label) + " ", 1),
1660
+ u("span", cl, k(F.count), 1)
1661
+ ], 10, ul))), 128))
1640
1662
  ])
1641
1663
  ]),
1642
1664
  default: w(() => [
1643
- i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (N) => (t(), x(a(ze), {
1644
- key: N.id,
1645
- label: N.name,
1646
- value: N.id
1665
+ i.value === "member" ? (t(!0), s(D, { key: 0 }, Z(a(z), (F) => (t(), x(a(ze), {
1666
+ key: F.id,
1667
+ label: F.name,
1668
+ value: F.id
1647
1669
  }, {
1648
1670
  default: w(() => [
1649
- u("span", ul, [
1671
+ u("span", vl, [
1650
1672
  u("span", {
1651
1673
  class: "emoo-mrsel__avatar",
1652
- style: pe({ "--tint": N.color || "var(--el-color-primary)" })
1674
+ style: pe({ "--tint": F.color || "var(--el-color-primary)" })
1653
1675
  }, [
1654
- N.avatar ? (t(), s("img", {
1676
+ F.avatar ? (t(), s("img", {
1655
1677
  key: 0,
1656
- src: N.avatar,
1678
+ src: F.avatar,
1657
1679
  alt: "",
1658
1680
  class: "emoo-mrsel__img"
1659
- }, null, 8, cl)) : (t(), s(D, { key: 1 }, [
1660
- J(k(N.name[0]), 1)
1681
+ }, null, 8, fl)) : (t(), s(D, { key: 1 }, [
1682
+ J(k(F.name[0]), 1)
1661
1683
  ], 64))
1662
1684
  ], 4),
1663
- u("span", ml, k(N.name), 1),
1664
- N.dept ? (t(), s("span", vl, k(N.dept), 1)) : S("", !0)
1685
+ u("span", hl, k(F.name), 1),
1686
+ F.dept ? (t(), s("span", pl, k(F.dept), 1)) : S("", !0)
1665
1687
  ])
1666
1688
  ]),
1667
1689
  _: 2
1668
- }, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (N) => (t(), x(a(ze), {
1669
- key: N.id,
1670
- label: N.name,
1671
- value: N.id
1690
+ }, 1032, ["label", "value"]))), 128)) : (t(!0), s(D, { key: 1 }, Z(a(j), (F) => (t(), x(a(ze), {
1691
+ key: F.id,
1692
+ label: F.name,
1693
+ value: F.id
1672
1694
  }, {
1673
1695
  default: w(() => [
1674
- u("span", fl, [
1696
+ u("span", yl, [
1675
1697
  u("span", {
1676
1698
  class: "emoo-mrsel__avatar is-square",
1677
- style: pe({ "--tint": N.color || "var(--el-color-primary)" })
1699
+ style: pe({ "--tint": F.color || "var(--el-color-primary)" })
1678
1700
  }, [
1679
- N.avatar ? (t(), s("img", {
1701
+ F.avatar ? (t(), s("img", {
1680
1702
  key: 0,
1681
- src: N.avatar,
1703
+ src: F.avatar,
1682
1704
  alt: "",
1683
1705
  class: "emoo-mrsel__img"
1684
- }, null, 8, hl)) : (t(), s(D, { key: 1 }, [
1685
- J(k(N.name[0]), 1)
1706
+ }, null, 8, bl)) : (t(), s(D, { key: 1 }, [
1707
+ J(k(F.name[0]), 1)
1686
1708
  ], 64))
1687
1709
  ], 4),
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)
1710
+ u("span", gl, [
1711
+ u("span", kl, k(F.name), 1),
1712
+ F.desc ? (t(), s("span", $l, k(F.desc), 1)) : S("", !0)
1691
1713
  ])
1692
1714
  ])
1693
1715
  ]),
@@ -1699,12 +1721,12 @@ const Ca = {
1699
1721
  ne.value ? {
1700
1722
  name: "footer",
1701
1723
  fn: w(() => [
1702
- u("div", dl, [
1724
+ u("div", ml, [
1703
1725
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1704
1726
  u("button", {
1705
1727
  type: "button",
1706
1728
  "data-testid": "remote-retry",
1707
- onClick: te[0] || (te[0] = (N) => ye())
1729
+ onClick: te[0] || (te[0] = (F) => ye())
1708
1730
  }, k(a(r)("common.emooSelect.retry")), 1)
1709
1731
  ])
1710
1732
  ]),
@@ -1712,14 +1734,14 @@ const Ca = {
1712
1734
  } : void 0
1713
1735
  ]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
1714
1736
  }
1715
- }), Fn = /* @__PURE__ */ Y(gl, [["__scopeId", "data-v-ff057c7b"]]), kl = { class: "emoo-msel__opt" }, $l = ["src"], _l = { class: "emoo-msel__name" }, wl = {
1737
+ }), Zn = /* @__PURE__ */ Y(_l, [["__scopeId", "data-v-ff057c7b"]]), wl = { class: "emoo-msel__opt" }, Sl = ["src"], Cl = { class: "emoo-msel__name" }, El = {
1716
1738
  key: 0,
1717
1739
  class: "emoo-msel__dept"
1718
- }, Sl = {
1740
+ }, Tl = {
1719
1741
  class: "emoo-sel-remote-error",
1720
1742
  role: "alert",
1721
1743
  "data-testid": "remote-error"
1722
- }, Cl = /* @__PURE__ */ F({
1744
+ }, xl = /* @__PURE__ */ N({
1723
1745
  __name: "EmooMemberSelect",
1724
1746
  props: {
1725
1747
  modelValue: {},
@@ -1733,11 +1755,11 @@ const Ca = {
1733
1755
  },
1734
1756
  emits: ["update:modelValue"],
1735
1757
  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: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-msel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
1758
+ const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Be(() => o.source, "emoo-msel-popper"), { mergedOptions: V, selectedOptions: E, remember: $ } = Me(
1737
1759
  () => o.modelValue,
1738
1760
  () => i.value ? p.value : o.options ?? [],
1739
1761
  () => o.selected ?? []
1740
- ), I = (ee) => R.value.find((d) => d.id === ee), z = Pe(), j = V(() => z.disabled !== void 0 && z.disabled !== !1), X = (ee) => {
1762
+ ), I = (ee) => V.value.find((d) => d.id === ee), z = Pe(), j = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (ee) => {
1741
1763
  $(ee), l("update:modelValue", ee);
1742
1764
  }, ie = (ee) => {
1743
1765
  if (j.value) return;
@@ -1760,13 +1782,13 @@ const Ca = {
1760
1782
  onVisibleChange: a(_)
1761
1783
  }, Se({
1762
1784
  default: w(() => [
1763
- (t(!0), s(D, null, Z(a(R), (T) => (t(), x(a(ze), {
1785
+ (t(!0), s(D, null, Z(a(V), (T) => (t(), x(a(ze), {
1764
1786
  key: T.id,
1765
1787
  label: T.name,
1766
1788
  value: T.id
1767
1789
  }, {
1768
1790
  default: w(() => [
1769
- u("span", kl, [
1791
+ u("span", wl, [
1770
1792
  u("span", {
1771
1793
  class: "emoo-msel__avatar",
1772
1794
  style: pe({ "--tint": T.color || "var(--el-color-primary)" })
@@ -1776,12 +1798,12 @@ const Ca = {
1776
1798
  src: T.avatar,
1777
1799
  alt: "",
1778
1800
  class: "emoo-msel__img"
1779
- }, null, 8, $l)) : (t(), s(D, { key: 1 }, [
1801
+ }, null, 8, Sl)) : (t(), s(D, { key: 1 }, [
1780
1802
  J(k(T.name[0]), 1)
1781
1803
  ], 64))
1782
1804
  ], 4),
1783
- u("span", _l, k(T.name), 1),
1784
- T.dept ? (t(), s("span", wl, k(T.dept), 1)) : S("", !0)
1805
+ u("span", Cl, k(T.name), 1),
1806
+ T.dept ? (t(), s("span", El, k(T.dept), 1)) : S("", !0)
1785
1807
  ])
1786
1808
  ]),
1787
1809
  _: 2
@@ -1813,7 +1835,7 @@ const Ca = {
1813
1835
  a(g) ? {
1814
1836
  name: "footer",
1815
1837
  fn: w(() => [
1816
- u("div", Sl, [
1838
+ u("div", Tl, [
1817
1839
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1818
1840
  u("button", {
1819
1841
  type: "button",
@@ -1827,45 +1849,45 @@ const Ca = {
1827
1849
  } : void 0
1828
1850
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
1829
1851
  }
1830
- }), qn = /* @__PURE__ */ Y(Cl, [["__scopeId", "data-v-f6059e7c"]]), El = ["data-testid", "data-role"], Tl = {
1852
+ }), Jn = /* @__PURE__ */ Y(xl, [["__scopeId", "data-v-f6059e7c"]]), Il = ["data-testid", "data-role"], zl = {
1831
1853
  key: 0,
1832
1854
  class: "emoo-message__side"
1833
- }, xl = {
1855
+ }, Rl = {
1834
1856
  key: 0,
1835
1857
  class: "emoo-message__avatar"
1836
- }, Il = ["src"], zl = { class: "emoo-message__main" }, Rl = {
1858
+ }, Vl = ["src"], Bl = { class: "emoo-message__main" }, Ml = {
1837
1859
  key: 0,
1838
1860
  class: "emoo-message__name"
1839
- }, Vl = ["data-status"], Ml = {
1861
+ }, Dl = ["data-status"], Pl = {
1840
1862
  key: 0,
1841
1863
  class: "emoo-message__dots",
1842
1864
  "aria-label": "loading",
1843
1865
  role: "status"
1844
- }, Bl = {
1866
+ }, Al = {
1845
1867
  key: 1,
1846
1868
  class: "emoo-message__stopped"
1847
- }, Dl = {
1869
+ }, Ll = {
1848
1870
  key: 2,
1849
1871
  class: "emoo-message__error"
1850
- }, Pl = {
1872
+ }, Ol = {
1851
1873
  key: 4,
1852
1874
  class: "emoo-message__attachments"
1853
- }, Al = {
1875
+ }, Ul = {
1854
1876
  key: 1,
1855
1877
  class: "emoo-message__foot"
1856
- }, Ll = {
1878
+ }, Hl = {
1857
1879
  key: 0,
1858
1880
  class: "emoo-message__time"
1859
- }, Ol = {
1881
+ }, Kl = {
1860
1882
  key: 1,
1861
1883
  class: "emoo-message__actions"
1862
- }, Ul = {
1884
+ }, Wl = {
1863
1885
  key: 1,
1864
1886
  class: "emoo-message__side"
1865
- }, Hl = {
1887
+ }, Fl = {
1866
1888
  key: 0,
1867
1889
  class: "emoo-message__avatar"
1868
- }, Kl = ["src"], Wl = /* @__PURE__ */ F({
1890
+ }, Nl = ["src"], ql = /* @__PURE__ */ N({
1869
1891
  __name: "EmooMessage",
1870
1892
  props: {
1871
1893
  role: {},
@@ -1883,53 +1905,53 @@ const Ca = {
1883
1905
  "data-testid": e.testid,
1884
1906
  "data-role": e.role
1885
1907
  }, [
1886
- e.role === "assistant" || e.role === "system" ? (t(), s("div", Tl, [
1908
+ e.role === "assistant" || e.role === "system" ? (t(), s("div", zl, [
1887
1909
  A(o.$slots, "avatar", {}, () => [
1888
- e.avatar ? (t(), s("span", xl, [
1910
+ e.avatar ? (t(), s("span", Rl, [
1889
1911
  u("img", {
1890
1912
  src: e.avatar,
1891
1913
  alt: ""
1892
- }, null, 8, Il)
1914
+ }, null, 8, Vl)
1893
1915
  ])) : S("", !0)
1894
1916
  ], !0)
1895
1917
  ])) : S("", !0),
1896
- u("div", zl, [
1897
- e.role === "system" && e.name ? (t(), s("div", Rl, k(e.name), 1)) : S("", !0),
1918
+ u("div", Bl, [
1919
+ e.role === "system" && e.name ? (t(), s("div", Ml, k(e.name), 1)) : S("", !0),
1898
1920
  u("div", {
1899
1921
  class: "emoo-message__body",
1900
1922
  "data-status": e.status
1901
1923
  }, [
1902
- e.status === "loading" ? (t(), s("span", Ml, [...l[0] || (l[0] = [
1924
+ e.status === "loading" ? (t(), s("span", Pl, [...l[0] || (l[0] = [
1903
1925
  u("i", null, null, -1),
1904
1926
  u("i", null, null, -1),
1905
1927
  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", {}, () => [
1928
+ ])])) : e.status === "stopped" ? (t(), s("span", Al, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Ll, k(e.text || a(n)("common.emooMessage.failed")), 1)) : A(o.$slots, "default", {}, () => [
1907
1929
  J(k(e.text), 1)
1908
1930
  ], !0, 3),
1909
- o.$slots.attachments ? (t(), s("div", Pl, [
1931
+ o.$slots.attachments ? (t(), s("div", Ol, [
1910
1932
  A(o.$slots, "attachments", {}, void 0, !0)
1911
1933
  ])) : S("", !0)
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, [
1934
+ ], 8, Dl),
1935
+ e.time || o.$slots.actions ? (t(), s("div", Ul, [
1936
+ e.time ? (t(), s("span", Hl, k(e.time), 1)) : S("", !0),
1937
+ o.$slots.actions ? (t(), s("span", Kl, [
1916
1938
  A(o.$slots, "actions", {}, void 0, !0)
1917
1939
  ])) : S("", !0)
1918
1940
  ])) : S("", !0)
1919
1941
  ]),
1920
- e.role === "user" ? (t(), s("div", Ul, [
1942
+ e.role === "user" ? (t(), s("div", Wl, [
1921
1943
  A(o.$slots, "avatar", {}, () => [
1922
- e.avatar ? (t(), s("span", Hl, [
1944
+ e.avatar ? (t(), s("span", Fl, [
1923
1945
  u("img", {
1924
1946
  src: e.avatar,
1925
1947
  alt: ""
1926
- }, null, 8, Kl)
1948
+ }, null, 8, Nl)
1927
1949
  ])) : S("", !0)
1928
1950
  ], !0)
1929
1951
  ])) : S("", !0)
1930
- ], 10, El));
1952
+ ], 10, Il));
1931
1953
  }
1932
- }), jn = /* @__PURE__ */ Y(Wl, [["__scopeId", "data-v-fca7a127"]]), Nl = /* @__PURE__ */ F({
1954
+ }), Yn = /* @__PURE__ */ Y(ql, [["__scopeId", "data-v-fca7a127"]]), jl = /* @__PURE__ */ N({
1933
1955
  __name: "EmooNavMenu",
1934
1956
  props: {
1935
1957
  items: {},
@@ -1940,9 +1962,9 @@ const Ca = {
1940
1962
  },
1941
1963
  emits: ["select", "group-select"],
1942
1964
  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), c = V(
1965
+ 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 = R(
1944
1966
  () => o.items.filter((d) => !d.hidden && o.canShow(d))
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) => {
1967
+ ), b = (d) => (d.children ?? []).filter((T) => !T.hidden && o.canShow(T)), _ = R(() => o.activePath ?? ""), y = (d) => !!d.action && !d.path && !d.children, V = (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
1968
  const T = !$(d);
1947
1969
  p.set(d.key, T), T && d.path && o.navigate?.(d.path), l("group-select", d, T);
1948
1970
  }, j = (d) => {
@@ -1952,12 +1974,12 @@ const Ca = {
1952
1974
  return T === 0 ? ve("button", {
1953
1975
  type: "button",
1954
1976
  class: ["single-menu-item", {
1955
- "is-active": R(d),
1977
+ "is-active": V(d),
1956
1978
  "functional-button": y(d) && d.active !== !0
1957
1979
  }],
1958
1980
  "data-testid": d.testid,
1959
1981
  "aria-pressed": typeof d.active == "boolean" ? d.active : void 0,
1960
- "aria-current": R(d) && d.path ? "page" : void 0,
1982
+ "aria-current": V(d) && d.path ? "page" : void 0,
1961
1983
  onClick: (ne) => {
1962
1984
  ne.stopPropagation(), j(d);
1963
1985
  }
@@ -1968,9 +1990,9 @@ const Ca = {
1968
1990
  X(d)
1969
1991
  ]) : ve("button", {
1970
1992
  type: "button",
1971
- class: ["child-menu-item", { "is-active": R(d) }],
1993
+ class: ["child-menu-item", { "is-active": V(d) }],
1972
1994
  "data-testid": d.testid,
1973
- "aria-current": R(d) && d.path ? "page" : void 0,
1995
+ "aria-current": V(d) && d.path ? "page" : void 0,
1974
1996
  onClick: (ne) => {
1975
1997
  ne.stopPropagation(), j(d);
1976
1998
  }
@@ -1979,10 +2001,10 @@ const Ca = {
1979
2001
  ie(d),
1980
2002
  X(d)
1981
2003
  ]);
1982
- const B = $(d), se = T === 0 ? ve("button", {
2004
+ const M = $(d), se = T === 0 ? ve("button", {
1983
2005
  type: "button",
1984
- class: ["menu-group-title", { "is-open": B }],
1985
- "aria-expanded": String(B),
2006
+ class: ["menu-group-title", { "is-open": M }],
2007
+ "aria-expanded": String(M),
1986
2008
  "aria-controls": I(d),
1987
2009
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
1988
2010
  onClick: (ne) => {
@@ -1995,8 +2017,8 @@ const Ca = {
1995
2017
  ve(Ge, { class: "tree-caret" })
1996
2018
  ]) : ve("button", {
1997
2019
  type: "button",
1998
- class: ["child-menu-item", "menu-group-child-title", { "is-open": B }],
1999
- "aria-expanded": String(B),
2020
+ class: ["child-menu-item", "menu-group-child-title", { "is-open": M }],
2021
+ "aria-expanded": String(M),
2000
2022
  "aria-controls": I(d),
2001
2023
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
2002
2024
  onClick: (ne) => {
@@ -2010,7 +2032,7 @@ const Ca = {
2010
2032
  se,
2011
2033
  ve("div", {
2012
2034
  id: I(d),
2013
- class: ["children-container", { expanded: B }],
2035
+ class: ["children-container", { expanded: M }],
2014
2036
  role: "group",
2015
2037
  "aria-label": v(d)
2016
2038
  }, b(d).map((ne) => [
@@ -2022,12 +2044,12 @@ const Ca = {
2022
2044
  return (d, T) => (t(), s("nav", {
2023
2045
  class: W(["emoo-nav", { "is-touch": e.touch }])
2024
2046
  }, [
2025
- (t(!0), s(D, null, Z(c.value, (B) => (t(), x(Ie(ee(B, 0)), {
2026
- key: B.key
2047
+ (t(!0), s(D, null, Z(c.value, (M) => (t(), x(Ie(ee(M, 0)), {
2048
+ key: M.key
2027
2049
  }))), 128))
2028
2050
  ], 2));
2029
2051
  }
2030
- }), Gn = /* @__PURE__ */ Y(Nl, [["__scopeId", "data-v-ebbf674d"]]), Fl = { class: "emoo-nav-segmented" }, ql = ["onClick"], jl = /* @__PURE__ */ F({
2052
+ }), Qn = /* @__PURE__ */ Y(jl, [["__scopeId", "data-v-ebbf674d"]]), Gl = { class: "emoo-nav-segmented" }, Xl = ["onClick"], Zl = /* @__PURE__ */ N({
2031
2053
  __name: "EmooNavSegmented",
2032
2054
  props: {
2033
2055
  items: {},
@@ -2039,7 +2061,7 @@ const Ca = {
2039
2061
  const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
2040
2062
  l("select", v), v.path && o.navigate?.(v.path);
2041
2063
  };
2042
- return (v, g) => (t(), s("nav", Fl, [
2064
+ return (v, g) => (t(), s("nav", Gl, [
2043
2065
  (t(!0), s(D, null, Z(e.items, (c) => (t(), s("button", {
2044
2066
  key: c.key,
2045
2067
  type: "button",
@@ -2051,10 +2073,10 @@ const Ca = {
2051
2073
  "aria-hidden": "true"
2052
2074
  })) : S("", !0),
2053
2075
  u("span", null, k(i(c)), 1)
2054
- ], 10, ql))), 128))
2076
+ ], 10, Xl))), 128))
2055
2077
  ]));
2056
2078
  }
2057
- }), Xn = /* @__PURE__ */ Y(jl, [["__scopeId", "data-v-a88dea1a"]]), Gl = /* @__PURE__ */ F({
2079
+ }), ei = /* @__PURE__ */ Y(Zl, [["__scopeId", "data-v-a88dea1a"]]), Jl = /* @__PURE__ */ N({
2058
2080
  __name: "EmooOptionRows",
2059
2081
  props: {
2060
2082
  options: {},
@@ -2082,7 +2104,7 @@ const Ca = {
2082
2104
  key: 0,
2083
2105
  class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
2084
2106
  }, [
2085
- P(na, {
2107
+ P(ra, {
2086
2108
  class: "emoo-option-rows__select",
2087
2109
  options: e.options,
2088
2110
  "model-value": e.modelValue,
@@ -2139,21 +2161,21 @@ const Ca = {
2139
2161
  A(v.$slots, "append", {}, void 0, !0)
2140
2162
  ], 2));
2141
2163
  }
2142
- }), Zn = /* @__PURE__ */ Y(Gl, [["__scopeId", "data-v-44e7d258"]]), Xl = {
2164
+ }), ti = /* @__PURE__ */ Y(Jl, [["__scopeId", "data-v-44e7d258"]]), Yl = {
2143
2165
  key: 0,
2144
2166
  class: "emt-foot",
2145
2167
  "data-testid": "emt-foot"
2146
- }, Zl = { class: "emt-foot__info" }, Jl = { class: "emt-foot__right" }, Yl = ["aria-label"], Ql = {
2168
+ }, Ql = { class: "emt-foot__info" }, es = { class: "emt-foot__right" }, ts = ["aria-label"], os = {
2147
2169
  class: "emt-foot__size",
2148
2170
  type: "button",
2149
2171
  "data-testid": "emt-pagesize"
2150
- }, es = { class: "emt-colmenu__list" }, ts = { class: "emt-tick" }, os = {
2172
+ }, as = { class: "emt-colmenu__list" }, ls = { class: "emt-tick" }, ss = {
2151
2173
  class: "emt-pager",
2152
2174
  "data-testid": "emt-pager"
2153
- }, as = ["disabled", "aria-label"], ls = ["data-testid", "onClick"], ss = {
2175
+ }, ns = ["disabled", "aria-label"], is = ["data-testid", "onClick"], rs = {
2154
2176
  key: 1,
2155
2177
  class: "emt-pager__btn is-ellipsis"
2156
- }, ns = ["disabled", "aria-label"], is = /* @__PURE__ */ F({
2178
+ }, ds = ["disabled", "aria-label"], us = /* @__PURE__ */ N({
2157
2179
  __name: "EmooPagination",
2158
2180
  props: {
2159
2181
  total: {},
@@ -2165,7 +2187,7 @@ const Ca = {
2165
2187
  },
2166
2188
  emits: ["update:page", "update:pageSize", "update:density"],
2167
2189
  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)), c = (E) => E.toLocaleString(), b = V(() => {
2190
+ const o = e, l = n, { t: r } = me(), i = R(() => o.page), p = R(() => Math.max(1, Math.ceil(o.total / o.pageSize))), v = R(() => (i.value - 1) * o.pageSize + 1), g = R(() => Math.min(o.total, i.value * o.pageSize)), c = (E) => E.toLocaleString(), b = R(() => {
2169
2191
  const E = p.value, $ = i.value;
2170
2192
  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
2193
  }), _ = (E) => {
@@ -2177,22 +2199,22 @@ const Ca = {
2177
2199
  we(p, (E) => {
2178
2200
  o.page > E && l("update:page", E);
2179
2201
  });
2180
- const R = V(
2202
+ const V = R(
2181
2203
  () => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
2182
2204
  );
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, [
2205
+ return (E, $) => e.total > 0 ? (t(), s("footer", Yl, [
2206
+ u("span", Ql, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
2207
+ u("div", es, [
2186
2208
  e.density ? (t(), x(he, {
2187
2209
  key: 0,
2188
- content: R.value,
2210
+ content: V.value,
2189
2211
  placement: "top"
2190
2212
  }, {
2191
2213
  default: w(() => [
2192
2214
  u("button", {
2193
2215
  class: W(["emt-foot__dens", { "is-on": e.density === "compact" }]),
2194
2216
  type: "button",
2195
- "aria-label": R.value,
2217
+ "aria-label": V.value,
2196
2218
  "data-testid": "emt-density",
2197
2219
  onClick: $[0] || ($[0] = (I) => l("update:density", e.density === "compact" ? "default" : "compact"))
2198
2220
  }, [
@@ -2200,7 +2222,7 @@ const Ca = {
2200
2222
  size: 14,
2201
2223
  "aria-hidden": "true"
2202
2224
  })
2203
- ], 10, Yl)
2225
+ ], 10, ts)
2204
2226
  ]),
2205
2227
  _: 1
2206
2228
  }, 8, ["content"])) : S("", !0),
@@ -2211,7 +2233,7 @@ const Ca = {
2211
2233
  onCommand: $[1] || ($[1] = (I) => y(Number(I)))
2212
2234
  }, {
2213
2235
  dropdown: w(() => [
2214
- u("div", es, [
2236
+ u("div", as, [
2215
2237
  (t(!0), s(D, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
2216
2238
  key: I,
2217
2239
  class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
@@ -2219,7 +2241,7 @@ const Ca = {
2219
2241
  "data-testid": `emt-pagesize-${I}`
2220
2242
  }, {
2221
2243
  default: w(() => [
2222
- u("span", ts, [
2244
+ u("span", ls, [
2223
2245
  I === e.pageSize ? (t(), x(a(Dt), {
2224
2246
  key: 0,
2225
2247
  size: 13,
@@ -2233,7 +2255,7 @@ const Ca = {
2233
2255
  ])
2234
2256
  ]),
2235
2257
  default: w(() => [
2236
- u("button", Ql, [
2258
+ u("button", os, [
2237
2259
  J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
2238
2260
  P(a(rt), {
2239
2261
  size: 11,
@@ -2243,7 +2265,7 @@ const Ca = {
2243
2265
  ]),
2244
2266
  _: 1
2245
2267
  }),
2246
- u("div", os, [
2268
+ u("div", ss, [
2247
2269
  u("button", {
2248
2270
  class: "emt-pager__btn",
2249
2271
  type: "button",
@@ -2256,7 +2278,7 @@ const Ca = {
2256
2278
  size: 14,
2257
2279
  "aria-hidden": "true"
2258
2280
  })
2259
- ], 8, as),
2281
+ ], 8, ns),
2260
2282
  (t(!0), s(D, null, Z(b.value, (I, z) => (t(), s(D, { key: z }, [
2261
2283
  typeof I == "number" ? (t(), s("button", {
2262
2284
  key: 0,
@@ -2264,7 +2286,7 @@ const Ca = {
2264
2286
  type: "button",
2265
2287
  "data-testid": `emt-page-${I}`,
2266
2288
  onClick: (j) => _(I)
2267
- }, k(I), 11, ls)) : (t(), s("span", ss, "…"))
2289
+ }, k(I), 11, is)) : (t(), s("span", rs, "…"))
2268
2290
  ], 64))), 128)),
2269
2291
  u("button", {
2270
2292
  class: "emt-pager__btn",
@@ -2278,19 +2300,19 @@ const Ca = {
2278
2300
  size: 14,
2279
2301
  "aria-hidden": "true"
2280
2302
  })
2281
- ], 8, ns)
2303
+ ], 8, ds)
2282
2304
  ])
2283
2305
  ])
2284
2306
  ])) : S("", !0);
2285
2307
  }
2286
- }), rs = /* @__PURE__ */ Y(is, [["__scopeId", "data-v-fc98e78c"]]), Jn = /* @__PURE__ */ F({
2308
+ }), cs = /* @__PURE__ */ Y(us, [["__scopeId", "data-v-fc98e78c"]]), oi = /* @__PURE__ */ N({
2287
2309
  __name: "EmooPopover",
2288
2310
  props: {
2289
2311
  popperClass: { default: "" },
2290
2312
  showArrow: { type: Boolean, default: !1 }
2291
2313
  },
2292
2314
  setup(e) {
2293
- const n = e, o = V(() => ["emo-pop", n.popperClass].filter(Boolean).join(" "));
2315
+ const n = e, o = R(() => ["emo-pop", n.popperClass].filter(Boolean).join(" "));
2294
2316
  return (l, r) => (t(), x(a(io), Xe(l.$attrs, {
2295
2317
  "show-arrow": e.showArrow,
2296
2318
  "popper-class": o.value
@@ -2309,13 +2331,13 @@ const Ca = {
2309
2331
  } : void 0
2310
2332
  ]), 1040, ["show-arrow", "popper-class"]));
2311
2333
  }
2312
- }), ds = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], us = {
2334
+ }), ms = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], vs = {
2313
2335
  class: "emoo-progress__track",
2314
2336
  "aria-hidden": "true"
2315
- }, cs = {
2337
+ }, fs = {
2316
2338
  key: 0,
2317
2339
  class: "emoo-progress__label"
2318
- }, ms = /* @__PURE__ */ F({
2340
+ }, hs = /* @__PURE__ */ N({
2319
2341
  __name: "EmooProgress",
2320
2342
  props: {
2321
2343
  value: { default: null },
@@ -2325,11 +2347,11 @@ const Ca = {
2325
2347
  ariaLabel: {}
2326
2348
  },
2327
2349
  setup(e) {
2328
- const n = e, o = V(
2350
+ const n = e, o = R(
2329
2351
  () => typeof n.value == "number" && Number.isFinite(n.value) ? n.value : null
2330
- ), l = V(() => o.value == null), r = V(() => Math.min(100, Math.max(0, o.value ?? 0))), i = V(
2352
+ ), l = R(() => o.value == null), r = R(() => Math.min(100, Math.max(0, o.value ?? 0))), i = R(
2331
2353
  () => l.value ? void 0 : { width: `${r.value}%` }
2332
- ), p = V(() => {
2354
+ ), p = R(() => {
2333
2355
  if (!l.value)
2334
2356
  return n.label || `${Math.round(r.value)}%`;
2335
2357
  });
@@ -2342,23 +2364,23 @@ const Ca = {
2342
2364
  "aria-valuenow": l.value ? void 0 : r.value,
2343
2365
  "aria-valuetext": p.value
2344
2366
  }, [
2345
- u("span", us, [
2367
+ u("span", vs, [
2346
2368
  u("span", {
2347
2369
  class: "emoo-progress__fill",
2348
2370
  style: pe(i.value)
2349
2371
  }, null, 4)
2350
2372
  ]),
2351
- e.label ? (t(), s("span", cs, k(e.label), 1)) : S("", !0)
2352
- ], 10, ds));
2373
+ e.label ? (t(), s("span", fs, k(e.label), 1)) : S("", !0)
2374
+ ], 10, ms));
2353
2375
  }
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 = {
2376
+ }), ps = /* @__PURE__ */ Y(hs, [["__scopeId", "data-v-cab4f706"]]), ys = { class: "emoo-rsel__opt" }, bs = ["src"], gs = { class: "emoo-rsel__col" }, ks = { class: "emoo-rsel__name" }, $s = {
2355
2377
  key: 0,
2356
2378
  class: "emoo-rsel__desc"
2357
- }, gs = {
2379
+ }, _s = {
2358
2380
  class: "emoo-sel-remote-error",
2359
2381
  role: "alert",
2360
2382
  "data-testid": "remote-error"
2361
- }, ks = /* @__PURE__ */ F({
2383
+ }, ws = /* @__PURE__ */ N({
2362
2384
  __name: "EmooRoleSelect",
2363
2385
  props: {
2364
2386
  modelValue: {},
@@ -2372,16 +2394,16 @@ const Ca = {
2372
2394
  },
2373
2395
  emits: ["update:modelValue", "update:selected"],
2374
2396
  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: c, search: b, onVisibleChange: _, popperClass: y } = Me(() => o.source, "emoo-rsel-popper"), { mergedOptions: R, selectedOptions: E, remember: $ } = Be(
2397
+ const o = e, l = n, { t: r } = me(), i = R(() => o.source !== void 0), { items: p, loading: v, error: g, retry: c, search: b, onVisibleChange: _, popperClass: y } = Be(() => o.source, "emoo-rsel-popper"), { mergedOptions: V, selectedOptions: E, remember: $ } = Me(
2376
2398
  () => o.modelValue,
2377
2399
  () => i.value ? p.value : o.options ?? [],
2378
2400
  () => o.selected ?? []
2379
- ), I = (d) => R.value.find((T) => T.id === d), z = Pe(), j = V(() => z.disabled !== void 0 && z.disabled !== !1), X = (d) => ({ ...d, square: !0 }), ie = (d) => {
2401
+ ), I = (d) => V.value.find((T) => T.id === d), z = Pe(), j = R(() => z.disabled !== void 0 && z.disabled !== !1), X = (d) => ({ ...d, square: !0 }), ie = (d) => {
2380
2402
  const T = $(d);
2381
2403
  l("update:modelValue", d), l("update:selected", T);
2382
2404
  }, ee = (d) => {
2383
2405
  const T = E.value[d]?.id;
2384
- T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
2406
+ T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
2385
2407
  };
2386
2408
  return (d, T) => (t(), x(a(Ae), {
2387
2409
  class: "emoo-rsel",
@@ -2399,29 +2421,29 @@ const Ca = {
2399
2421
  onVisibleChange: a(_)
2400
2422
  }, Se({
2401
2423
  default: w(() => [
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
2424
+ (t(!0), s(D, null, Z(a(V), (M) => (t(), x(a(ze), {
2425
+ key: M.id,
2426
+ label: M.name,
2427
+ value: M.id
2406
2428
  }, {
2407
2429
  default: w(() => [
2408
- u("span", fs, [
2430
+ u("span", ys, [
2409
2431
  u("span", {
2410
2432
  class: "emoo-rsel__avatar",
2411
- style: pe({ "--tint": B.color || "var(--el-color-primary)" })
2433
+ style: pe({ "--tint": M.color || "var(--el-color-primary)" })
2412
2434
  }, [
2413
- B.avatar ? (t(), s("img", {
2435
+ M.avatar ? (t(), s("img", {
2414
2436
  key: 0,
2415
- src: B.avatar,
2437
+ src: M.avatar,
2416
2438
  alt: "",
2417
2439
  class: "emoo-rsel__img"
2418
- }, null, 8, hs)) : (t(), s(D, { key: 1 }, [
2419
- J(k(B.name[0]), 1)
2440
+ }, null, 8, bs)) : (t(), s(D, { key: 1 }, [
2441
+ J(k(M.name[0]), 1)
2420
2442
  ], 64))
2421
2443
  ], 4),
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)
2444
+ u("span", gs, [
2445
+ u("span", ks, k(M.name), 1),
2446
+ M.desc ? (t(), s("span", $s, k(M.desc), 1)) : S("", !0)
2425
2447
  ])
2426
2448
  ])
2427
2449
  ]),
@@ -2443,10 +2465,10 @@ const Ca = {
2443
2465
  key: "1"
2444
2466
  } : {
2445
2467
  name: "label",
2446
- fn: w(({ value: B }) => [
2447
- I(B) ? (t(), x(xe, {
2468
+ fn: w(({ value: M }) => [
2469
+ I(M) ? (t(), x(xe, {
2448
2470
  key: 0,
2449
- items: [X(I(B))]
2471
+ items: [X(I(M))]
2450
2472
  }, null, 8, ["items"])) : S("", !0)
2451
2473
  ]),
2452
2474
  key: "0"
@@ -2454,13 +2476,13 @@ const Ca = {
2454
2476
  a(g) ? {
2455
2477
  name: "footer",
2456
2478
  fn: w(() => [
2457
- u("div", gs, [
2479
+ u("div", _s, [
2458
2480
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
2459
2481
  u("button", {
2460
2482
  type: "button",
2461
2483
  "data-testid": "remote-retry",
2462
2484
  onClick: T[0] || (T[0] = //@ts-ignore
2463
- (...B) => a(c) && a(c)(...B))
2485
+ (...M) => a(c) && a(c)(...M))
2464
2486
  }, k(a(r)("common.emooSelect.retry")), 1)
2465
2487
  ])
2466
2488
  ]),
@@ -2468,19 +2490,19 @@ const Ca = {
2468
2490
  } : void 0
2469
2491
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
2470
2492
  }
2471
- }), Yn = /* @__PURE__ */ Y(ks, [["__scopeId", "data-v-6c4ae65a"]]), $s = {
2493
+ }), ai = /* @__PURE__ */ Y(ws, [["__scopeId", "data-v-6c4ae65a"]]), Ss = {
2472
2494
  key: 1,
2473
2495
  class: "emoo-search-box__top"
2474
- }, _s = {
2496
+ }, Cs = {
2475
2497
  key: 2,
2476
2498
  class: "emoo-search-box__extras"
2477
- }, ws = { class: "emoo-search-box__field" }, Ss = {
2499
+ }, Es = { class: "emoo-search-box__field" }, Ts = {
2478
2500
  key: 3,
2479
2501
  class: "emoo-search-box__bar"
2480
- }, Cs = {
2502
+ }, xs = {
2481
2503
  key: 0,
2482
2504
  class: "emoo-search-box__trailing"
2483
- }, Es = /* @__PURE__ */ F({
2505
+ }, Is = /* @__PURE__ */ N({
2484
2506
  __name: "EmooSearchBox",
2485
2507
  props: {
2486
2508
  variant: { default: "composer" },
@@ -2509,27 +2531,27 @@ const Ca = {
2509
2531
  ]),
2510
2532
  _: 1
2511
2533
  }, 8, ["content"])) : S("", !0),
2512
- r.$slots.top ? (t(), s("div", $s, [
2534
+ r.$slots.top ? (t(), s("div", Ss, [
2513
2535
  A(r.$slots, "top", {}, void 0, !0)
2514
2536
  ])) : S("", !0),
2515
- r.$slots.extras ? (t(), s("div", _s, [
2537
+ r.$slots.extras ? (t(), s("div", Cs, [
2516
2538
  A(r.$slots, "extras", {}, void 0, !0)
2517
2539
  ])) : S("", !0),
2518
- u("div", ws, [
2540
+ u("div", Es, [
2519
2541
  A(r.$slots, "default", {}, void 0, !0)
2520
2542
  ]),
2521
- r.$slots.bar || r.$slots.trailing ? (t(), s("div", Ss, [
2543
+ r.$slots.bar || r.$slots.trailing ? (t(), s("div", Ts, [
2522
2544
  A(r.$slots, "bar", {}, void 0, !0),
2523
- r.$slots.trailing ? (t(), s("div", Cs, [
2545
+ r.$slots.trailing ? (t(), s("div", xs, [
2524
2546
  A(r.$slots, "trailing", {}, void 0, !0)
2525
2547
  ])) : S("", !0)
2526
2548
  ])) : S("", !0)
2527
2549
  ], 2));
2528
2550
  }
2529
- }), Qn = /* @__PURE__ */ Y(Es, [["__scopeId", "data-v-98479d22"]]), Ts = ["aria-label"], xs = ["aria-pressed", "aria-label", "disabled", "onClick"], Is = { key: 1 }, zs = {
2551
+ }), li = /* @__PURE__ */ Y(Is, [["__scopeId", "data-v-98479d22"]]), zs = ["aria-label"], Rs = ["aria-pressed", "aria-label", "disabled", "onClick"], Vs = { key: 1 }, Bs = {
2530
2552
  key: 2,
2531
2553
  class: "emoo-segmented__count"
2532
- }, Rs = /* @__PURE__ */ F({
2554
+ }, Ms = /* @__PURE__ */ N({
2533
2555
  __name: "EmooSegmented",
2534
2556
  props: {
2535
2557
  options: {},
@@ -2540,7 +2562,7 @@ const Ca = {
2540
2562
  },
2541
2563
  emits: ["update:modelValue", "change"],
2542
2564
  setup(e, { emit: n }) {
2543
- const { t: o } = me(), l = e, r = V(() => l.size === "small" ? 12 : l.size === "large" ? 16 : 14), i = n;
2565
+ const { t: o } = me(), l = e, r = R(() => l.size === "small" ? 12 : l.size === "large" ? 16 : 14), i = n;
2544
2566
  function p(v) {
2545
2567
  l.disabled || v.disabled || v.value === l.modelValue || (i("update:modelValue", v.value), i("change", v.value));
2546
2568
  }
@@ -2563,12 +2585,12 @@ const Ca = {
2563
2585
  size: r.value,
2564
2586
  "aria-hidden": "true"
2565
2587
  }, null, 8, ["size"])) : S("", !0),
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));
2588
+ c.label ? (t(), s("span", Vs, k(c.label), 1)) : S("", !0),
2589
+ c.count !== void 0 ? (t(), s("span", Bs, k(c.count), 1)) : S("", !0)
2590
+ ], 10, Rs))), 128))
2591
+ ], 10, zs));
2570
2592
  }
2571
- }), ei = /* @__PURE__ */ Y(Rs, [["__scopeId", "data-v-bcd69b5a"]]), Vs = /* @__PURE__ */ F({
2593
+ }), si = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-bcd69b5a"]]), Ds = /* @__PURE__ */ N({
2572
2594
  __name: "EmooSidebarShell",
2573
2595
  props: {
2574
2596
  collapsed: { type: Boolean, default: !1 },
@@ -2578,7 +2600,7 @@ const Ca = {
2578
2600
  width: { default: void 0 }
2579
2601
  },
2580
2602
  setup(e) {
2581
- const n = e, o = V(() => {
2603
+ const n = e, o = R(() => {
2582
2604
  if (n.width !== void 0)
2583
2605
  return { width: typeof n.width == "number" ? `${n.width}px` : n.width };
2584
2606
  });
@@ -2591,7 +2613,7 @@ const Ca = {
2591
2613
  A(l.$slots, "footer", {}, void 0, !0)
2592
2614
  ], 6));
2593
2615
  }
2594
- }), ti = /* @__PURE__ */ Y(Vs, [["__scopeId", "data-v-8f94cc28"]]), Ms = /* @__PURE__ */ F({
2616
+ }), ni = /* @__PURE__ */ Y(Ds, [["__scopeId", "data-v-8f94cc28"]]), Ps = /* @__PURE__ */ N({
2595
2617
  __name: "EmooStatusTag",
2596
2618
  props: {
2597
2619
  tone: {},
@@ -2604,10 +2626,10 @@ const Ca = {
2604
2626
  A(n.$slots, "default", {}, void 0, !0)
2605
2627
  ], 2));
2606
2628
  }
2607
- }), Bs = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-9c6a9ab7"]]), Ds = { class: "emoo-switcher" }, Ps = {
2629
+ }), As = /* @__PURE__ */ Y(Ps, [["__scopeId", "data-v-9c6a9ab7"]]), Ls = { class: "emoo-switcher" }, Os = {
2608
2630
  key: 0,
2609
2631
  class: "switcher-title"
2610
- }, As = ["data-testid", "onClick"], Ls = ["src", "alt"], Os = { class: "switcher-label" }, Us = /* @__PURE__ */ F({
2632
+ }, Us = ["data-testid", "onClick"], Hs = ["src", "alt"], Ks = { class: "switcher-label" }, Ws = /* @__PURE__ */ N({
2611
2633
  __name: "EmooSwitcherPanel",
2612
2634
  props: {
2613
2635
  title: {},
@@ -2616,11 +2638,11 @@ const Ca = {
2616
2638
  },
2617
2639
  emits: ["select"],
2618
2640
  setup(e, { emit: n }) {
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) => {
2641
+ const o = e, l = n, { t: r } = me(), i = (c) => r(c.title), p = R(() => o.title ? r(o.title) : ""), v = R(() => o.items.filter((c) => !c.hidden)), g = (c) => {
2620
2642
  l("select", c), c.action?.();
2621
2643
  };
2622
- return (c, b) => (t(), s("div", Ds, [
2623
- e.title ? (t(), s("p", Ps, k(p.value), 1)) : S("", !0),
2644
+ return (c, b) => (t(), s("div", Ls, [
2645
+ e.title ? (t(), s("p", Os, k(p.value), 1)) : S("", !0),
2624
2646
  u("div", {
2625
2647
  class: W(["switcher-list", { "is-scrollable": e.scrollable }])
2626
2648
  }, [
@@ -2636,20 +2658,20 @@ const Ca = {
2636
2658
  src: _.image,
2637
2659
  alt: i(_),
2638
2660
  class: "switcher-image"
2639
- }, null, 8, Ls)) : _.icon ? (t(), x(Ie(_.icon), {
2661
+ }, null, 8, Hs)) : _.icon ? (t(), x(Ie(_.icon), {
2640
2662
  key: 1,
2641
2663
  class: "ic"
2642
2664
  })) : S("", !0),
2643
- u("span", Os, k(i(_)), 1),
2665
+ u("span", Ks, k(i(_)), 1),
2644
2666
  _.active ? (t(), x(a(Dt), {
2645
2667
  key: 2,
2646
2668
  class: "switcher-check"
2647
2669
  })) : S("", !0)
2648
- ], 10, As))), 128))
2670
+ ], 10, Us))), 128))
2649
2671
  ], 2)
2650
2672
  ]));
2651
2673
  }
2652
- }), oi = /* @__PURE__ */ Y(Us, [["__scopeId", "data-v-a2309e72"]]), Hs = /* @__PURE__ */ F({
2674
+ }), ii = /* @__PURE__ */ Y(Ws, [["__scopeId", "data-v-a2309e72"]]), Fs = /* @__PURE__ */ N({
2653
2675
  __name: "EmooTagsInput",
2654
2676
  props: {
2655
2677
  modelValue: { default: () => [] },
@@ -2666,7 +2688,7 @@ const Ca = {
2666
2688
  }, y = () => {
2667
2689
  const E = i.value;
2668
2690
  E !== "" && !o.modelValue.includes(E) && l("update:modelValue", [...o.modelValue, E]), p.value = !1, i.value = "", setTimeout(() => c.value?.$el?.focus?.(), 0);
2669
- }, R = (E) => {
2691
+ }, V = (E) => {
2670
2692
  !(E instanceof KeyboardEvent) || E.key !== "Enter" || !v.value && !E.isComposing && y();
2671
2693
  };
2672
2694
  return (E, $) => (t(), s("div", {
@@ -2698,7 +2720,7 @@ const Ca = {
2698
2720
  "data-testid": "tags-input",
2699
2721
  onCompositionstart: $[1] || ($[1] = (I) => v.value = !0),
2700
2722
  onCompositionend: $[2] || ($[2] = (I) => v.value = !1),
2701
- onKeydown: R,
2723
+ onKeydown: V,
2702
2724
  onBlur: y
2703
2725
  }, null, 8, ["modelValue", "placeholder"])) : (t(), x(De, {
2704
2726
  key: 1,
@@ -2717,8 +2739,8 @@ const Ca = {
2717
2739
  ], 64)) : S("", !0)
2718
2740
  ], 2));
2719
2741
  }
2720
- }), ai = /* @__PURE__ */ Y(Hs, [["__scopeId", "data-v-2b248a6f"]]), Ks = 140, at = 64;
2721
- function Ws(e) {
2742
+ }), ri = /* @__PURE__ */ Y(Fs, [["__scopeId", "data-v-2b248a6f"]]), Ns = 140, at = 64;
2743
+ function qs(e) {
2722
2744
  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
2745
  if (!Array.isArray(C)) return l();
2724
2746
  const L = /* @__PURE__ */ new Map(), Q = [];
@@ -2727,7 +2749,7 @@ function Ws(e) {
2727
2749
  const G = O;
2728
2750
  !G.key || !e.columns().some((oe) => oe.key === G.key) || (L.set(G.key, G), Q.push(G.key));
2729
2751
  }
2730
- const ae = new Map(Q.map((O, G) => [O, G])), M = e.columns().map((O) => {
2752
+ const ae = new Map(Q.map((O, G) => [O, G])), B = e.columns().map((O) => {
2731
2753
  const G = L.get(O.key);
2732
2754
  return {
2733
2755
  key: O.key,
@@ -2736,7 +2758,7 @@ function Ws(e) {
2736
2758
  width: typeof G?.width == "number" && G.width >= n ? Math.round(G.width) : void 0
2737
2759
  };
2738
2760
  });
2739
- return !Q.length || e.persistOrder === !1 ? M : [...M].sort((O, G) => (ae.get(O.key) ?? M.length) - (ae.get(G.key) ?? M.length));
2761
+ return !Q.length || e.persistOrder === !1 ? B : [...B].sort((O, G) => (ae.get(O.key) ?? B.length) - (ae.get(G.key) ?? B.length));
2740
2762
  }, i = (C) => !!C && typeof C == "object" && typeof C.key == "string" && (C.order === "ascending" || C.order === "descending"), p = () => {
2741
2763
  if (!e.storageKey) return { columns: l() };
2742
2764
  try {
@@ -2761,7 +2783,7 @@ function Ws(e) {
2761
2783
  const C = {
2762
2784
  columns: g.value,
2763
2785
  pageSize: c.value,
2764
- sort: T.value && B.value ? { key: T.value, order: B.value } : void 0,
2786
+ sort: T.value && M.value ? { key: T.value, order: M.value } : void 0,
2765
2787
  density: b.value
2766
2788
  };
2767
2789
  localStorage.setItem(e.storageKey, JSON.stringify(C));
@@ -2773,12 +2795,12 @@ function Ws(e) {
2773
2795
  },
2774
2796
  { deep: !0 }
2775
2797
  );
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
- R.value <= 1 || (C.visible = !1);
2798
+ const y = R(() => g.value.filter((C) => C.visible)), V = R(() => y.value.length), E = R(() => 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) >= Ns, j = (C) => {
2799
+ V.value <= 1 || (C.visible = !1);
2778
2800
  }, X = () => {
2779
2801
  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 ?? ""), B = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
2781
- we([c, b, T, B], _), we(
2802
+ }, 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;
2803
+ we([c, b, T, M], _), we(
2782
2804
  () => e.columns().map((C) => C.key).join(","),
2783
2805
  () => {
2784
2806
  g.value = p().columns;
@@ -2793,29 +2815,29 @@ function Ws(e) {
2793
2815
  ae.fixed === "left" ? L && (ae.fixed = "") : L = !0;
2794
2816
  let Q = !1;
2795
2817
  for (let ae = C.length - 1; ae >= 0; ae--) {
2796
- const M = C[ae];
2797
- M.fixed === "right" ? Q && (M.fixed = "") : Q = !0;
2818
+ const B = C[ae];
2819
+ B.fixed === "right" ? Q && (B.fixed = "") : Q = !0;
2798
2820
  }
2799
2821
  }, q = (C) => {
2800
2822
  for (const L of g.value) L.fixed === C && (L.fixed = "");
2801
2823
  }, de = (C) => {
2802
2824
  C.fixed && q(C.fixed);
2803
2825
  }, ce = (C, L) => {
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 = "");
2826
+ const Q = y.value, ae = Q.findIndex((B) => B.key === C.key);
2827
+ ae < 0 || (Q.forEach((B, O) => {
2828
+ (L === "left" ? O <= ae : O >= ae) ? B.fixed = L : B.fixed === L && (B.fixed = "");
2807
2829
  }), ye());
2808
2830
  }, H = (C) => {
2809
2831
  const L = y.value;
2810
2832
  if (C === "left") {
2811
2833
  let Q = -1;
2812
- return L.forEach((ae, M) => {
2813
- ae.fixed === "left" && (Q = M);
2834
+ return L.forEach((ae, B) => {
2835
+ ae.fixed === "left" && (Q = B);
2814
2836
  }), Q;
2815
2837
  }
2816
2838
  return L.findIndex((Q) => Q.fixed === "right");
2817
2839
  }, te = (C, L) => {
2818
- const ae = y.value.findIndex((M) => M.key === C.key);
2840
+ const ae = y.value.findIndex((B) => B.key === C.key);
2819
2841
  if (C.fixed !== L) {
2820
2842
  ce(C, L);
2821
2843
  return;
@@ -2828,7 +2850,7 @@ function Ws(e) {
2828
2850
  pageSize: c,
2829
2851
  density: b,
2830
2852
  sortKey: T,
2831
- sortOrder: B,
2853
+ sortOrder: M,
2832
2854
  effectiveStoredSort: se,
2833
2855
  prefs: v,
2834
2856
  storageSort: ee,
@@ -2839,7 +2861,7 @@ function Ws(e) {
2839
2861
  // 派生
2840
2862
  visibleCols: y,
2841
2863
  hiddenCols: E,
2842
- visibleCount: R,
2864
+ visibleCount: V,
2843
2865
  defOf: o,
2844
2866
  colWidth: $,
2845
2867
  colMinWidth: I,
@@ -2863,7 +2885,7 @@ function Ws(e) {
2863
2885
  }
2864
2886
  };
2865
2887
  }
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({
2888
+ const js = ["aria-label", "data-testid", "onDragstart"], Gs = ["onDragover", "onDragleave", "onDrop"], Xs = ["aria-label", "data-testid", "onDragstart"], Zs = { class: "emt-th__label" }, Js = ["data-testid", "onClick"], Ys = { class: "emt-th__tools" }, Qs = ["data-testid", "onClick"], en = ["disabled", "data-testid", "onClick"], tn = ["title", "aria-label", "data-testid"], on = ["data-testid", "onMousedown"], an = ["aria-label"], ln = ["aria-label"], sn = ["aria-label"], nn = /* @__PURE__ */ N({
2867
2889
  __name: "EmooTable",
2868
2890
  props: {
2869
2891
  data: {},
@@ -2888,7 +2910,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2888
2910
  },
2889
2911
  emits: ["sort-change", "selection-change", "update:page", "size-change", "row-click", "row-move"],
2890
2912
  setup(e, { expose: n, emit: o }) {
2891
- const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g = V(() => {
2913
+ const { t: l } = me(), r = e, i = o, p = U(), v = (h) => r.columns.find((m) => m.key === h), g = R(() => {
2892
2914
  const h = r.rowKey;
2893
2915
  return typeof h != "function" ? h : (m) => String(h(m));
2894
2916
  }), c = (h) => v(h)?.sortBy, b = (h) => {
@@ -2897,7 +2919,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2897
2919
  }, {
2898
2920
  colState: _,
2899
2921
  pageSize: y,
2900
- density: R,
2922
+ density: V,
2901
2923
  sortKey: E,
2902
2924
  sortOrder: $,
2903
2925
  storageSort: I,
@@ -2908,7 +2930,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2908
2930
  visibleCount: ee,
2909
2931
  colWidth: d,
2910
2932
  colMinWidth: T,
2911
- isWide: B,
2933
+ isWide: M,
2912
2934
  hideColumn: se,
2913
2935
  resetColumns: ne,
2914
2936
  normalizeColumns: ye,
@@ -2916,7 +2938,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2916
2938
  pinEdge: de,
2917
2939
  togglePinSide: ce,
2918
2940
  togglePinSmart: H
2919
- } = Ws({
2941
+ } = qs({
2920
2942
  columns: () => r.columns,
2921
2943
  storageKey: r.storageKey,
2922
2944
  defaultPageSize: r.defaultPageSize,
@@ -2933,12 +2955,12 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2933
2955
  }), i("size-change", y.value), ke(() => {
2934
2956
  p.value?.doLayout(), Te();
2935
2957
  });
2936
- }, N = (h) => {
2958
+ }, F = (h) => {
2937
2959
  const m = X.value, f = m.findIndex((K) => K.key === h.key);
2938
2960
  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
2961
  }, C = U(""), L = U(""), Q = U("left"), ae = (h, m) => {
2940
2962
  C.value = h.key, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", h.key));
2941
- }, M = () => {
2963
+ }, B = () => {
2942
2964
  C.value = "", L.value = "";
2943
2965
  }, O = (h, m) => {
2944
2966
  if (!C.value) return;
@@ -2955,7 +2977,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2955
2977
  !f || f.contains(m.relatedTarget) || (L.value = "");
2956
2978
  }, oe = (h) => {
2957
2979
  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;
2980
+ if (B(), m < 0 || f < 0 || m === f) return;
2959
2981
  let ue = K === "left" ? f : f + 1;
2960
2982
  const [fe] = _.value.splice(m, 1);
2961
2983
  m < ue && (ue -= 1), _.value.splice(ue, 0, fe), ye();
@@ -2970,7 +2992,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2970
2992
  if (K < 0) return null;
2971
2993
  const ue = m.getBoundingClientRect();
2972
2994
  return { idx: K, side: h.clientY < ue.top + ue.height / 2 ? "above" : "below" };
2973
- }, Nt = (h) => {
2995
+ }, Ft = (h) => {
2974
2996
  if (re.value < 0) return;
2975
2997
  h.preventDefault(), h.dataTransfer && (h.dataTransfer.dropEffect = "move");
2976
2998
  const m = ut(h);
@@ -2979,7 +3001,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
2979
3001
  return;
2980
3002
  }
2981
3003
  Ce.value = m.idx, Ye.value = m.side;
2982
- }, Ft = (h) => {
3004
+ }, Nt = (h) => {
2983
3005
  if (re.value < 0) return;
2984
3006
  const m = h.relatedTarget;
2985
3007
  m && h.currentTarget.contains(m) || (Ce.value = -1);
@@ -3082,7 +3104,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3082
3104
  }), n({
3083
3105
  colState: _,
3084
3106
  pageSize: y,
3085
- density: R,
3107
+ density: V,
3086
3108
  resetColumns: ne,
3087
3109
  resetTablePrefs: te,
3088
3110
  normalizeColumns: ye,
@@ -3092,14 +3114,14 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3092
3114
  toggleRowSelection: (h, m) => p.value?.toggleRowSelection(h, m),
3093
3115
  toggleRowExpansion: (h, m) => p.value?.toggleRowExpansion(h, m)
3094
3116
  }), (h, m) => (t(), s("div", {
3095
- class: W(["emt", { "is-compact": a(R) === "compact", "is-comfort": a(R) !== "compact" && e.defaultDensity === "comfort" }])
3117
+ class: W(["emt", { "is-compact": a(V) === "compact", "is-comfort": a(V) !== "compact" && e.defaultDensity === "comfort" }])
3096
3118
  }, [
3097
3119
  u("div", {
3098
3120
  ref_key: "scrollWrapRef",
3099
3121
  ref: yt,
3100
3122
  class: W(["emt-scroll", { "is-dragging": !!C.value, "is-rowdragging": re.value >= 0 }]),
3101
- onDragover: Nt,
3102
- onDragleave: Ft,
3123
+ onDragover: Ft,
3124
+ onDragleave: Nt,
3103
3125
  onDrop: qt
3104
3126
  }, [
3105
3127
  P(a(uo), {
@@ -3126,7 +3148,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3126
3148
  type: "expand"
3127
3149
  }, {
3128
3150
  default: w((f) => [
3129
- f.$index !== -1 ? A(h.$slots, "expand", Fe(qe(f)), void 0, !0, 0) : S("", !0)
3151
+ f.$index !== -1 ? A(h.$slots, "expand", Ne(qe(f)), void 0, !0, 0) : S("", !0)
3130
3152
  ]),
3131
3153
  _: 3
3132
3154
  })) : S("", !0),
@@ -3160,7 +3182,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3160
3182
  size: 12,
3161
3183
  "aria-hidden": "true"
3162
3184
  })
3163
- ], 40, Ns)
3185
+ ], 40, js)
3164
3186
  ]),
3165
3187
  _: 2
3166
3188
  }, 1032, ["content"])
@@ -3210,17 +3232,17 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3210
3232
  onClick: m[1] || (m[1] = le(() => {
3211
3233
  }, ["stop"])),
3212
3234
  onDragstart: (K) => ae(f, K),
3213
- onDragend: M
3235
+ onDragend: B
3214
3236
  }, [
3215
3237
  P(a(wt), {
3216
3238
  size: 12,
3217
3239
  "aria-hidden": "true"
3218
3240
  })
3219
- ], 40, qs)
3241
+ ], 40, Xs)
3220
3242
  ]),
3221
3243
  _: 2
3222
3244
  }, 1032, ["content"]),
3223
- u("span", js, k(v(f.key)?.label), 1),
3245
+ u("span", Zs, k(v(f.key)?.label), 1),
3224
3246
  A(h.$slots, `${f.key}-header`, {
3225
3247
  col: v(f.key)
3226
3248
  }, void 0, !0),
@@ -3251,15 +3273,15 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3251
3273
  class: "emt-th__sortidle",
3252
3274
  "aria-hidden": "true"
3253
3275
  }))
3254
- ], 8, Gs)
3276
+ ], 8, Js)
3255
3277
  ]),
3256
3278
  _: 2
3257
3279
  }, 1032, ["content"])) : S("", !0),
3258
3280
  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, {
3281
+ u("span", Ys, [
3282
+ a(M)(f) || f.fixed ? (t(), x(he, {
3261
3283
  key: 0,
3262
- content: N(f)
3284
+ content: F(f)
3263
3285
  }, {
3264
3286
  default: w(() => [
3265
3287
  u("button", {
@@ -3273,11 +3295,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3273
3295
  weight: f.fixed ? "fill" : void 0,
3274
3296
  "aria-hidden": "true"
3275
3297
  }, null, 8, ["weight"])
3276
- ], 10, Zs)
3298
+ ], 10, Qs)
3277
3299
  ]),
3278
3300
  _: 2
3279
3301
  }, 1032, ["content"])) : S("", !0),
3280
- a(B)(f) ? (t(), x(he, {
3302
+ a(M)(f) ? (t(), x(he, {
3281
3303
  key: 1,
3282
3304
  content: a(l)("common.emooTable.hideColumn")
3283
3305
  }, {
@@ -3293,11 +3315,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3293
3315
  size: 13,
3294
3316
  "aria-hidden": "true"
3295
3317
  })
3296
- ], 8, Js)
3318
+ ], 8, en)
3297
3319
  ]),
3298
3320
  _: 2
3299
3321
  }, 1032, ["content"])) : S("", !0),
3300
- P(pa, {
3322
+ P(ba, {
3301
3323
  "col-key": f.key,
3302
3324
  sortable: v(f.key)?.sortable,
3303
3325
  sorted: a(E) === f.key ? a($) : null,
@@ -3328,12 +3350,12 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3328
3350
  onMousedown: m[3] || (m[3] = le(() => {
3329
3351
  }, ["stop"]))
3330
3352
  }, [
3331
- P(a(Bt), {
3353
+ P(a(Mt), {
3332
3354
  size: 14,
3333
3355
  weight: "bold",
3334
3356
  "aria-hidden": "true"
3335
3357
  })
3336
- ], 40, Ys)
3358
+ ], 40, tn)
3337
3359
  ]),
3338
3360
  _: 2
3339
3361
  }, 1032, ["col-key", "sortable", "sorted", "fixed", "can-hide", "hidden", "onSort", "onUnpin", "onPin", "onHide"])
@@ -3349,11 +3371,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3349
3371
  onMousedown: (K) => jt(f.key, K),
3350
3372
  onClick: m[5] || (m[5] = le(() => {
3351
3373
  }, ["stop"]))
3352
- }, null, 40, Qs)
3374
+ }, null, 40, on)
3353
3375
  ]),
3354
3376
  _: 2
3355
3377
  }, 1032, ["content"])) : S("", !0)
3356
- ], 42, Fs)
3378
+ ], 42, Gs)
3357
3379
  ]),
3358
3380
  default: w(({ row: K, $index: ue }) => [
3359
3381
  ue !== -1 ? A(h.$slots, f.key, {
@@ -3373,7 +3395,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3373
3395
  "class-name": "emt-col-actions"
3374
3396
  }, {
3375
3397
  default: w((f) => [
3376
- f.$index !== -1 ? A(h.$slots, "actions", Fe(qe(f)), void 0, !0, 0) : S("", !0)
3398
+ f.$index !== -1 ? A(h.$slots, "actions", Ne(qe(f)), void 0, !0, 0) : S("", !0)
3377
3399
  ]),
3378
3400
  _: 3
3379
3401
  }, 8, ["width"])) : S("", !0)
@@ -3384,7 +3406,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3384
3406
  content: a(l)("common.emooTable.scrollLeft")
3385
3407
  }, {
3386
3408
  default: w(() => [
3387
- Ne(u("button", {
3409
+ Fe(u("button", {
3388
3410
  class: W(["emt-scrollbtn is-left", { "is-live": Ke.value === "left" }]),
3389
3411
  type: "button",
3390
3412
  "aria-label": a(l)("common.emooTable.scrollLeft"),
@@ -3395,7 +3417,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3395
3417
  size: 14,
3396
3418
  "aria-hidden": "true"
3397
3419
  })
3398
- ], 10, en), [
3420
+ ], 10, an), [
3399
3421
  [tt, bt.value]
3400
3422
  ])
3401
3423
  ]),
@@ -3405,7 +3427,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3405
3427
  content: a(l)("common.emooTable.scrollRight")
3406
3428
  }, {
3407
3429
  default: w(() => [
3408
- Ne(u("button", {
3430
+ Fe(u("button", {
3409
3431
  class: W(["emt-scrollbtn is-right", { "is-live": Ke.value === "right" }]),
3410
3432
  type: "button",
3411
3433
  "aria-label": a(l)("common.emooTable.scrollRight"),
@@ -3416,7 +3438,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3416
3438
  size: 14,
3417
3439
  "aria-hidden": "true"
3418
3440
  })
3419
- ], 10, tn), [
3441
+ ], 10, ln), [
3420
3442
  [tt, gt.value]
3421
3443
  ])
3422
3444
  ]),
@@ -3430,33 +3452,33 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3430
3452
  "data-testid": "emt-loading"
3431
3453
  }, [
3432
3454
  P(Kt, { size: 18 })
3433
- ], 8, on)) : S("", !0)
3455
+ ], 8, sn)) : S("", !0)
3434
3456
  ], 34),
3435
- P(rs, {
3457
+ P(cs, {
3436
3458
  total: e.total ?? 0,
3437
3459
  page: e.page ?? 1,
3438
3460
  "page-size": a(y),
3439
3461
  "page-sizes": e.pageSizes,
3440
- density: a(R),
3462
+ density: a(V),
3441
3463
  "density-base": e.defaultDensity,
3442
3464
  "onUpdate:page": m[9] || (m[9] = (f) => i("update:page", f)),
3443
3465
  "onUpdate:pageSize": m[10] || (m[10] = (f) => {
3444
3466
  y.value = f, i("size-change", f);
3445
3467
  }),
3446
- "onUpdate:density": m[11] || (m[11] = (f) => R.value = f)
3468
+ "onUpdate:density": m[11] || (m[11] = (f) => V.value = f)
3447
3469
  }, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
3448
3470
  ], 2));
3449
3471
  }
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 = {
3472
+ }), di = /* @__PURE__ */ Y(nn, [["__scopeId", "data-v-bbdd9cda"]]), rn = { class: "emoo-upload" }, dn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], un = { class: "emoo-upload__title" }, cn = { class: "emoo-upload__browse" }, mn = {
3451
3473
  key: 0,
3452
3474
  class: "emoo-upload__hint"
3453
- }, un = ["accept", "multiple"], cn = ["data-testid"], mn = { class: "emoo-upload__meta" }, vn = ["disabled", "data-testid", "onClick"], fn = {
3475
+ }, vn = ["accept", "multiple"], fn = ["data-testid"], hn = { class: "emoo-upload__meta" }, pn = ["disabled", "data-testid", "onClick"], yn = {
3454
3476
  key: 0,
3455
3477
  class: "emoo-upload__sub"
3456
- }, hn = { class: "emoo-upload__err" }, pn = {
3478
+ }, bn = { class: "emoo-upload__err" }, gn = {
3457
3479
  key: 2,
3458
3480
  class: "emoo-upload__pct"
3459
- }, yn = /* @__PURE__ */ F({
3481
+ }, kn = /* @__PURE__ */ N({
3460
3482
  __name: "EmooUpload",
3461
3483
  props: {
3462
3484
  files: {},
@@ -3478,10 +3500,10 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3478
3500
  }, y = ($) => {
3479
3501
  const I = $.target;
3480
3502
  _(Array.from(I.files ?? [])), I.value = "";
3481
- }, R = ($) => {
3503
+ }, V = ($) => {
3482
3504
  p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
3483
3505
  }, 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", ln, [
3506
+ return ($, I) => (t(), s("div", rn, [
3485
3507
  e.readonly ? S("", !0) : (t(), s("div", {
3486
3508
  key: 0,
3487
3509
  class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
@@ -3491,7 +3513,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3491
3513
  "aria-label": a(r)("common.emooUpload.dropTitle"),
3492
3514
  onDragover: le(b, ["prevent"]),
3493
3515
  onDragleave: I[0] || (I[0] = (z) => p.value = !1),
3494
- onDrop: le(R, ["prevent"]),
3516
+ onDrop: le(V, ["prevent"]),
3495
3517
  onClick: c,
3496
3518
  onKeydown: [
3497
3519
  je(le(c, ["prevent"]), ["enter"]),
@@ -3502,11 +3524,11 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3502
3524
  class: "emoo-upload__ico",
3503
3525
  "aria-hidden": "true"
3504
3526
  }),
3505
- u("p", nn, [
3527
+ u("p", un, [
3506
3528
  J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
3507
- u("span", rn, k(a(r)("common.emooUpload.browse")), 1)
3529
+ u("span", cn, k(a(r)("common.emooUpload.browse")), 1)
3508
3530
  ]),
3509
- e.hint ? (t(), s("p", dn, k(e.hint), 1)) : S("", !0),
3531
+ e.hint ? (t(), s("p", mn, k(e.hint), 1)) : S("", !0),
3510
3532
  u("input", {
3511
3533
  ref_key: "inputRef",
3512
3534
  ref: i,
@@ -3515,8 +3537,8 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3515
3537
  accept: e.accept,
3516
3538
  multiple: e.multiple,
3517
3539
  onChange: y
3518
- }, null, 40, un)
3519
- ], 42, sn)),
3540
+ }, null, 40, vn)
3541
+ ], 42, dn)),
3520
3542
  e.files.length ? (t(), s("ul", {
3521
3543
  key: 1,
3522
3544
  class: "emoo-upload__list",
@@ -3530,16 +3552,16 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3530
3552
  class: "emoo-upload__file-ico",
3531
3553
  "aria-hidden": "true"
3532
3554
  }),
3533
- u("div", mn, [
3555
+ u("div", hn, [
3534
3556
  u("button", {
3535
3557
  type: "button",
3536
3558
  class: "emoo-upload__name",
3537
3559
  disabled: e.disabled,
3538
3560
  "data-testid": `upload-preview-${j}`,
3539
3561
  onClick: (X) => l("preview", z)
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, {
3562
+ }, k(z.name), 9, pn),
3563
+ z.size != null ? (t(), s("span", yn, k(E(z.size)), 1)) : S("", !0),
3564
+ v(z) === "uploading" ? (t(), x(ps, {
3543
3565
  key: 1,
3544
3566
  class: "emoo-upload__progress",
3545
3567
  size: "mini",
@@ -3547,7 +3569,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3547
3569
  value: z.progress ?? null
3548
3570
  }, null, 8, ["value"])) : S("", !0)
3549
3571
  ]),
3550
- v(z) === "done" ? (t(), x(Bs, {
3572
+ v(z) === "done" ? (t(), x(As, {
3551
3573
  key: 0,
3552
3574
  tone: "success"
3553
3575
  }, {
@@ -3556,7 +3578,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3556
3578
  ]),
3557
3579
  _: 1
3558
3580
  })) : v(z) === "failed" ? (t(), s(D, { key: 1 }, [
3559
- u("span", hn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3581
+ u("span", bn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3560
3582
  e.readonly ? S("", !0) : (t(), x(De, {
3561
3583
  key: 0,
3562
3584
  variant: "text",
@@ -3564,14 +3586,14 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3564
3586
  onClick: (X) => l("retry", z)
3565
3587
  }, {
3566
3588
  icon: w(() => [
3567
- P(a(Mt))
3589
+ P(a(Bt))
3568
3590
  ]),
3569
3591
  default: w(() => [
3570
3592
  J(" " + k(a(r)("common.emooUpload.retry")), 1)
3571
3593
  ]),
3572
3594
  _: 1
3573
3595
  }, 8, ["onClick"]))
3574
- ], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", pn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
3596
+ ], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", gn, k(Math.round(z.progress)) + "% ", 1)) : S("", !0),
3575
3597
  e.readonly ? S("", !0) : (t(), x(De, {
3576
3598
  key: 3,
3577
3599
  variant: "text",
@@ -3586,20 +3608,20 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3586
3608
  _: 1
3587
3609
  }, 8, ["aria-label", "onClick"]))
3588
3610
  ]))), 128))
3589
- ], 8, cn)) : S("", !0)
3611
+ ], 8, fn)) : S("", !0)
3590
3612
  ]));
3591
3613
  }
3592
- }), si = /* @__PURE__ */ Y(yn, [["__scopeId", "data-v-65eda28b"]]), bn = { class: "emoo-value-diff" }, gn = { class: "emoo-value-diff__old" }, kn = /* @__PURE__ */ F({
3614
+ }), ui = /* @__PURE__ */ Y(kn, [["__scopeId", "data-v-65eda28b"]]), $n = { class: "emoo-value-diff" }, _n = { class: "emoo-value-diff__old" }, wn = /* @__PURE__ */ N({
3593
3615
  __name: "EmooValueDiff",
3594
3616
  props: {
3595
3617
  value: {},
3596
3618
  old: {}
3597
3619
  },
3598
3620
  setup(e) {
3599
- const n = e, o = V(() => !!n.old && n.old !== n.value);
3600
- return (l, r) => (t(), s("span", bn, [
3621
+ const n = e, o = R(() => !!n.old && n.old !== n.value);
3622
+ return (l, r) => (t(), s("span", $n, [
3601
3623
  o.value ? (t(), s(D, { key: 0 }, [
3602
- u("span", gn, k(e.old), 1),
3624
+ u("span", _n, k(e.old), 1),
3603
3625
  P(a(Co), {
3604
3626
  class: "emoo-value-diff__arrow",
3605
3627
  "aria-hidden": "true"
@@ -3610,21 +3632,21 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3610
3632
  }, k(e.value), 3)
3611
3633
  ]));
3612
3634
  }
3613
- }), ni = /* @__PURE__ */ Y(kn, [["__scopeId", "data-v-40f98722"]]), $n = {
3635
+ }), ci = /* @__PURE__ */ Y(wn, [["__scopeId", "data-v-40f98722"]]), Sn = {
3614
3636
  xmlns: "http://www.w3.org/2000/svg",
3615
3637
  viewBox: "0 0 256 256",
3616
3638
  width: "1em",
3617
3639
  height: "1em",
3618
3640
  fill: "currentColor"
3619
- }, ii = /* @__PURE__ */ F({
3641
+ }, mi = /* @__PURE__ */ N({
3620
3642
  __name: "IconChatCirclePlus",
3621
3643
  setup(e) {
3622
- return (n, o) => (t(), s("svg", $n, [...o[0] || (o[0] = [
3644
+ return (n, o) => (t(), s("svg", Sn, [...o[0] || (o[0] = [
3623
3645
  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
3646
  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
3647
  ])]));
3626
3648
  }
3627
- }), _n = ["width", "height"], wn = ["id"], Sn = ["mask"], ri = /* @__PURE__ */ F({
3649
+ }), Cn = ["width", "height"], En = ["id"], Tn = ["mask"], vi = /* @__PURE__ */ N({
3628
3650
  __name: "IconPaperPlanes",
3629
3651
  props: {
3630
3652
  size: { default: "1em" }
@@ -3665,7 +3687,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3665
3687
  "stroke-width": "3.5",
3666
3688
  "stroke-linejoin": "round"
3667
3689
  }, null, -1)
3668
- ])], 8, wn)
3690
+ ])], 8, En)
3669
3691
  ]),
3670
3692
  u("g", {
3671
3693
  mask: `url(#${a(n)})`,
@@ -3676,7 +3698,7 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3676
3698
  }, [...l[1] || (l[1] = [
3677
3699
  u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
3678
3700
  u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
3679
- ])], 8, Sn),
3701
+ ])], 8, Tn),
3680
3702
  l[2] || (l[2] = u("g", {
3681
3703
  stroke: "currentColor",
3682
3704
  "stroke-width": "1.5",
@@ -3686,20 +3708,20 @@ const Ns = ["aria-label", "data-testid", "onDragstart"], Fs = ["onDragover", "on
3686
3708
  u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
3687
3709
  u("path", { d: "m13.9 15.1 3.4-3.6" })
3688
3710
  ], -1))
3689
- ], 8, _n));
3711
+ ], 8, Cn));
3690
3712
  }
3691
3713
  });
3692
- function di(e, n = {}) {
3714
+ function fi(e, n = {}) {
3693
3715
  const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
3694
3716
  let p = null;
3695
3717
  const v = () => {
3696
- const R = p;
3697
- if (!R) return;
3698
- const E = R.scrollHeight - R.scrollTop - R.clientHeight;
3718
+ const V = p;
3719
+ if (!V) return;
3720
+ const E = V.scrollHeight - V.scrollTop - V.clientHeight;
3699
3721
  E <= o ? (!r.value || i.value) && (r.value = !0, i.value = !1, n.onDockUpdate?.(!0)) : E > l && (r.value || !i.value) && (r.value = !1, i.value = !0, n.onDockUpdate?.(!1));
3700
3722
  }, g = () => {
3701
- const R = e();
3702
- !R || R === p || (p && p.removeEventListener("scroll", v), p = R, R.addEventListener("scroll", v, { passive: !0 }), v());
3723
+ const V = e();
3724
+ !V || V === p || (p && p.removeEventListener("scroll", v), p = V, V.addEventListener("scroll", v, { passive: !0 }), v());
3703
3725
  }, c = () => {
3704
3726
  p?.removeEventListener("scroll", v), p = null;
3705
3727
  }, b = () => typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches, _ = () => {
@@ -3712,16 +3734,16 @@ function di(e, n = {}) {
3712
3734
  };
3713
3735
  return typeof _t == "function" && _t(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
3714
3736
  }
3715
- const Cn = 3e3, En = 5e3;
3737
+ const xn = 3e3, In = 5e3;
3716
3738
  function We(e, n, o = {}) {
3717
3739
  return co({
3718
3740
  type: e,
3719
3741
  message: n,
3720
- duration: o.duration ?? (e === "error" ? En : Cn),
3742
+ duration: o.duration ?? (e === "error" ? In : xn),
3721
3743
  showClose: o.showClose ?? e === "error"
3722
3744
  });
3723
3745
  }
3724
- const ui = {
3746
+ const hi = {
3725
3747
  /** 成功反馈:3s,无按钮 */
3726
3748
  success: (e, n) => We("success", e, n),
3727
3749
  /** 中性信息:3s,无按钮 */
@@ -3731,7 +3753,7 @@ const ui = {
3731
3753
  /** 错误:5s + 关闭钮(默认)——读错要够久 */
3732
3754
  error: (e, n) => We("error", e, n)
3733
3755
  };
3734
- async function ci(e, n) {
3756
+ async function pi(e, n) {
3735
3757
  const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
3736
3758
  try {
3737
3759
  return await mo.confirm(e, o, {
@@ -3744,72 +3766,73 @@ async function ci(e, n) {
3744
3766
  return !1;
3745
3767
  }
3746
3768
  }
3747
- function mi(e, n = !1) {
3748
- const o = Eo(e, n), l = {};
3769
+ function yi(e, n = !1) {
3770
+ const o = xo(e, n), l = {};
3749
3771
  for (const [r, i] of Object.entries(o))
3750
3772
  l[r.replace("--emoo-", "--el-")] = i;
3751
3773
  return l;
3752
3774
  }
3753
3775
  export {
3754
- hi as AVATAR_TINT_PALETTE,
3755
- Bn as EmooActionPill,
3756
- Dn as EmooActionSheet,
3757
- Pn as EmooAgentSelect,
3776
+ ki as AVATAR_TINT_PALETTE,
3777
+ Ln as EmooActionPill,
3778
+ On as EmooActionSheet,
3779
+ Un as EmooAgentSelect,
3758
3780
  De as EmooButton,
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,
3781
+ Hn as EmooCard,
3782
+ Kn as EmooChips,
3783
+ ra as EmooChoice,
3784
+ ba as EmooColumnMenu,
3785
+ Wn as EmooDrawer,
3786
+ Ma as EmooEmpty,
3787
+ Fn as EmooField,
3788
+ Nn as EmooFieldGrid,
3789
+ qn as EmooFileTypeIcon,
3790
+ jn as EmooGhostButton,
3791
+ Gn as EmooGroupLabel,
3792
+ Xn as EmooHistoryList,
3793
+ Zn as EmooMemberRoleSelect,
3794
+ Jn as EmooMemberSelect,
3772
3795
  xe as EmooMemberTag,
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,
3796
+ Yn as EmooMessage,
3797
+ Qn as EmooNavMenu,
3798
+ ei as EmooNavSegmented,
3799
+ ti as EmooOptionRows,
3800
+ cs as EmooPagination,
3801
+ oi as EmooPopover,
3802
+ ps as EmooProgress,
3803
+ ai as EmooRoleSelect,
3804
+ li as EmooSearchBox,
3805
+ si as EmooSegmented,
3806
+ ni as EmooSidebarShell,
3807
+ Ya as EmooSkeleton,
3785
3808
  Kt as EmooSpinner,
3786
- Bs as EmooStatusTag,
3787
- oi as EmooSwitcherPanel,
3788
- li as EmooTable,
3789
- ai as EmooTagsInput,
3809
+ As as EmooStatusTag,
3810
+ ii as EmooSwitcherPanel,
3811
+ di as EmooTable,
3812
+ ri as EmooTagsInput,
3790
3813
  he as EmooTooltip,
3791
- si as EmooUpload,
3792
- ni as EmooValueDiff,
3793
- Ks as INLINE_TOOLS_MIN_WIDTH,
3794
- ii as IconChatCirclePlus,
3795
- ri as IconPaperPlanes,
3814
+ ui as EmooUpload,
3815
+ ci as EmooValueDiff,
3816
+ Ns as INLINE_TOOLS_MIN_WIDTH,
3817
+ mi as IconChatCirclePlus,
3818
+ vi as IconPaperPlanes,
3796
3819
  at as MIN_COL_WIDTH,
3797
- pi as PRESET_COLORS,
3820
+ $i as PRESET_COLORS,
3798
3821
  At as SheetDragHandle,
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
3822
+ _i as avatarTintOf,
3823
+ yi as elementPlusColorVars,
3824
+ pi as emooConfirm,
3825
+ Ti as emoouiMessages,
3826
+ ka as getDrawerWidth,
3827
+ wi as hexToRgbString,
3828
+ Si as mixColor,
3829
+ Ca as nearestSheetTier,
3830
+ Ci as primaryColorVars,
3831
+ $a as saveDrawerWidth,
3832
+ hi as toast,
3833
+ qs as useColumnPrefs,
3834
+ fi as useMessageScroll,
3835
+ Be as useRemoteOptions,
3836
+ Me as useSelectedOptions,
3837
+ Ea as useSheetHeightDrag
3815
3838
  };