@emoo-ai/ui-vue 0.1.10 → 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.
Files changed (2) hide show
  1. package/dist/index.js +448 -448
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
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 { fileIconGlyph as Eo } from "@emoo-ai/brand/file-icons";
6
- import { primaryColorVars as To } from "@emoo-ai/brand/colors";
7
- import { AVATAR_TINT_PALETTE as gi, PRESET_COLORS as ki, avatarTintOf as $i, hexToRgbString as _i, mixColor as wi, primaryColorVars as Si } 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";
8
8
  import "element-plus/es/components/message-box/style/css";
9
- import { emoouiMessages as Ei } from "./locales.js";
9
+ import { emoouiMessages as Ti } from "./locales.js";
10
10
  import "element-plus/es/components/message/style/css";
11
- const xo = { class: "emoo-action-pill__label" }, Io = {
11
+ const Io = { class: "emoo-action-pill__label" }, zo = {
12
12
  key: 1,
13
13
  class: "emoo-action-pill__kbd"
14
- }, zo = /* @__PURE__ */ N({
14
+ }, Ro = /* @__PURE__ */ N({
15
15
  __name: "EmooActionPill",
16
16
  props: {
17
17
  icon: {},
@@ -30,8 +30,8 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
30
30
  key: 0,
31
31
  class: "emoo-action-pill__icon"
32
32
  })) : S("", !0),
33
- u("span", xo, k(e.label), 1),
34
- e.kbd ? (t(), s("kbd", Io, 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)
35
35
  ]));
36
36
  }
37
37
  }), Y = (e, n) => {
@@ -39,7 +39,7 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
39
39
  for (const [l, r] of n)
40
40
  o[l] = r;
41
41
  return o;
42
- }, An = /* @__PURE__ */ Y(zo, [["__scopeId", "data-v-f9e9873a"]]), Ro = /* @__PURE__ */ N({
42
+ }, Ln = /* @__PURE__ */ Y(Ro, [["__scopeId", "data-v-f9e9873a"]]), Vo = /* @__PURE__ */ N({
43
43
  __name: "SheetDragHandle",
44
44
  props: {
45
45
  dragging: { type: Boolean },
@@ -55,10 +55,10 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
55
55
  u("span", { class: "sheet-drag-handle__bar" }, null, -1)
56
56
  ])], 34));
57
57
  }
58
- }), At = /* @__PURE__ */ Y(Ro, [["__scopeId", "data-v-ef0108a1"]]), Vo = { class: "emoo-asheet" }, Mo = {
58
+ }), At = /* @__PURE__ */ Y(Vo, [["__scopeId", "data-v-ef0108a1"]]), Bo = { class: "emoo-asheet" }, Mo = {
59
59
  key: 0,
60
60
  class: "emoo-asheet__title"
61
- }, Bo = { class: "emoo-asheet__list" }, Do = ["disabled", "data-testid", "onClick"], Ln = /* @__PURE__ */ N({
61
+ }, Do = { class: "emoo-asheet__list" }, Po = ["disabled", "data-testid", "onClick"], On = /* @__PURE__ */ N({
62
62
  inheritAttrs: !1,
63
63
  __name: "EmooActionSheet",
64
64
  props: {
@@ -88,10 +88,10 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
88
88
  class: "emoo-action-sheet"
89
89
  }), {
90
90
  default: w(() => [
91
- u("div", Vo, [
91
+ u("div", Bo, [
92
92
  P(At),
93
93
  e.title ? (t(), s("p", Mo, k(e.title), 1)) : S("", !0),
94
- u("div", Bo, [
94
+ u("div", Do, [
95
95
  A(v.$slots, "default"),
96
96
  v.$slots.default ? S("", !0) : (t(!0), s(D, { key: 0 }, Z(e.items, (c, b) => (t(), s("button", {
97
97
  key: c.key,
@@ -106,7 +106,7 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
106
106
  class: "emoo-asheet__ic"
107
107
  })) : S("", !0),
108
108
  u("span", null, k(c.label), 1)
109
- ], 10, Do))), 128))
109
+ ], 10, Po))), 128))
110
110
  ]),
111
111
  e.cancelText ? (t(), s("button", {
112
112
  key: 1,
@@ -148,10 +148,10 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
148
148
  } : void 0
149
149
  ]), 1040, ["placement", "show-after", "popper-class"]));
150
150
  }
151
- }), Po = { class: "emoo-mtags" }, Ao = ["src", "onError"], Lo = { class: "emoo-mtag__name" }, Oo = ["aria-label", "onClick"], Uo = {
151
+ }), Ao = { class: "emoo-mtags" }, Lo = ["src", "onError"], Oo = { class: "emoo-mtag__name" }, Uo = ["aria-label", "onClick"], Ho = {
152
152
  class: "emoo-mtag emoo-mtag--more",
153
153
  "data-testid": "emoo-mtag-more"
154
- }, Ho = /* @__PURE__ */ N({
154
+ }, Ko = /* @__PURE__ */ N({
155
155
  __name: "EmooMemberTag",
156
156
  props: {
157
157
  items: {},
@@ -162,7 +162,7 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
162
162
  emits: ["remove"],
163
163
  setup(e) {
164
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", Po, [
165
+ return (v, g) => (t(), s("span", Ao, [
166
166
  (t(!0), s(D, null, Z(l.value, (c, b) => (t(), s("span", {
167
167
  key: `${c.name}-${b}`,
168
168
  class: "emoo-mtag",
@@ -178,11 +178,11 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
178
178
  alt: "",
179
179
  class: "emoo-mtag__img",
180
180
  onError: (_) => r.add(b)
181
- }, null, 40, Ao)) : (t(), s(D, { key: 1 }, [
181
+ }, null, 40, Lo)) : (t(), s(D, { key: 1 }, [
182
182
  J(k(c.name[0]), 1)
183
183
  ], 64))
184
184
  ], 2),
185
- u("span", Lo, k(c.name), 1),
185
+ u("span", Oo, k(c.name), 1),
186
186
  e.removable ? (t(), s("button", {
187
187
  key: 0,
188
188
  type: "button",
@@ -191,21 +191,21 @@ const xo = { class: "emoo-action-pill__label" }, Io = {
191
191
  onClick: (_) => v.$emit("remove", b)
192
192
  }, [
193
193
  P(a(it), { size: 10 })
194
- ], 8, Oo)) : S("", !0)
194
+ ], 8, Uo)) : S("", !0)
195
195
  ], 4))), 128)),
196
196
  i.value > 0 ? (t(), x(he, {
197
197
  key: 0,
198
198
  content: p.value
199
199
  }, {
200
200
  default: w(() => [
201
- u("span", Uo, "+" + k(i.value), 1)
201
+ u("span", Ho, "+" + k(i.value), 1)
202
202
  ]),
203
203
  _: 1
204
204
  }, 8, ["content"])) : S("", !0)
205
205
  ]));
206
206
  }
207
- }), xe = /* @__PURE__ */ Y(Ho, [["__scopeId", "data-v-33f4fffc"]]);
208
- function Me(e, n) {
207
+ }), xe = /* @__PURE__ */ Y(Ko, [["__scopeId", "data-v-33f4fffc"]]);
208
+ function Be(e, n) {
209
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}`;
210
210
  let g = 1, c = "", b, _ = null, y = 0, V = null;
211
211
  const E = (q) => new Promise((de) => setTimeout(de, q)), $ = () => {
@@ -248,7 +248,7 @@ function Me(e, n) {
248
248
  }
249
249
  };
250
250
  let d = null, T = null;
251
- const B = () => {
251
+ const M = () => {
252
252
  const q = document.querySelector(`.${p}`);
253
253
  return q?.querySelector(".el-select-dropdown__wrap") || q?.querySelector(".el-scrollbar__wrap");
254
254
  }, se = () => {
@@ -256,7 +256,7 @@ function Me(e, n) {
256
256
  }, ne = async () => {
257
257
  await ke();
258
258
  let q = null;
259
- for (let de = 0; de < 6 && (q = B(), !q); de++)
259
+ for (let de = 0; de < 6 && (q = M(), !q); de++)
260
260
  await E(50);
261
261
  !q || q === d || (se(), d = q, T = () => {
262
262
  d && d.scrollTop + d.clientHeight >= d.scrollHeight - 16 && ee();
@@ -272,7 +272,7 @@ function Me(e, n) {
272
272
  $(), se();
273
273
  }), { items: o, loading: l, hasMore: r, error: i, search: j, retry: ie, ensureFirstPage: X, loadMore: ee, onVisibleChange: ye, popperClass: v };
274
274
  }
275
- function Be(e, n, o) {
275
+ function Me(e, n, o) {
276
276
  const l = to([]), r = (g) => Array.isArray(g) ? g : g == null ? [] : [g], i = (g) => {
277
277
  const c = new Map([...l.value, ...o(), ...n()].map((b) => [b.id, b]));
278
278
  return l.value = r(g).map((b) => c.get(b)).filter((b) => b !== void 0), l.value;
@@ -284,14 +284,14 @@ function Be(e, n, o) {
284
284
  }), v = R(() => r(e()).map((g) => l.value.find((c) => c.id === g)).filter((g) => g !== void 0));
285
285
  return { mergedOptions: p, selectedOptions: v, remember: i };
286
286
  }
287
- const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo = ["src"], No = { class: "emoo-asel__name" }, qo = {
287
+ const Wo = { class: "emoo-asel__opt" }, Fo = { class: "emoo-asel__avatar" }, No = ["src"], qo = { class: "emoo-asel__name" }, jo = {
288
288
  key: 0,
289
289
  class: "emoo-asel__sub"
290
- }, jo = {
290
+ }, Go = {
291
291
  class: "emoo-sel-remote-error",
292
292
  role: "alert",
293
293
  "data-testid": "remote-error"
294
- }, Go = /* @__PURE__ */ N({
294
+ }, Xo = /* @__PURE__ */ N({
295
295
  __name: "EmooAgentSelect",
296
296
  props: {
297
297
  modelValue: {},
@@ -305,21 +305,21 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
305
305
  },
306
306
  emits: ["update:modelValue"],
307
307
  setup(e, { emit: n }) {
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 } = 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(
309
309
  () => o.modelValue,
310
310
  () => i.value ? p.value : o.options ?? [],
311
311
  () => o.selected ?? []
312
312
  ), z = (d) => E.value.find((T) => T.id === d), j = Pe(), X = R(() => j.disabled !== void 0 && j.disabled !== !1);
313
313
  Ze(() => {
314
- const d = o.modelValue, T = Array.isArray(d) ? d.length > 0 : d != null, B = Array.isArray(d) ? d : [d];
315
- 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)) && _();
316
316
  });
317
317
  const ie = (d) => {
318
318
  I(d), l("update:modelValue", d);
319
319
  }, ee = (d) => {
320
320
  if (X.value) return;
321
321
  const T = $.value[d]?.id;
322
- T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
322
+ T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
323
323
  };
324
324
  return (d, T) => (t(), x(a(Ae), {
325
325
  class: "emoo-asel",
@@ -337,25 +337,25 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
337
337
  onVisibleChange: a(y)
338
338
  }, Se({
339
339
  default: w(() => [
340
- (t(!0), s(D, null, Z(a(E), (B) => (t(), x(a(ze), {
341
- key: B.id,
342
- label: B.name,
343
- 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
344
344
  }, {
345
345
  default: w(() => [
346
- u("span", Ko, [
347
- u("span", Wo, [
348
- B.avatar ? (t(), s("img", {
346
+ u("span", Wo, [
347
+ u("span", Fo, [
348
+ M.avatar ? (t(), s("img", {
349
349
  key: 0,
350
- src: B.avatar,
350
+ src: M.avatar,
351
351
  alt: "",
352
352
  class: "emoo-asel__img"
353
- }, null, 8, Fo)) : (t(), s(D, { key: 1 }, [
354
- J(k(B.name[0]), 1)
353
+ }, null, 8, No)) : (t(), s(D, { key: 1 }, [
354
+ J(k(M.name[0]), 1)
355
355
  ], 64))
356
356
  ]),
357
- u("span", No, k(B.name), 1),
358
- B.sub ? (t(), s("span", qo, 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)
359
359
  ])
360
360
  ]),
361
361
  _: 2
@@ -377,11 +377,11 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
377
377
  key: "1"
378
378
  } : {
379
379
  name: "label",
380
- fn: w(({ value: B }) => [
381
- z(B) ? (t(), x(xe, {
380
+ fn: w(({ value: M }) => [
381
+ z(M) ? (t(), x(xe, {
382
382
  key: 0,
383
383
  square: "",
384
- items: [z(B)]
384
+ items: [z(M)]
385
385
  }, null, 8, ["items"])) : S("", !0)
386
386
  ]),
387
387
  key: "0"
@@ -389,13 +389,13 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
389
389
  a(g) ? {
390
390
  name: "footer",
391
391
  fn: w(() => [
392
- u("div", jo, [
392
+ u("div", Go, [
393
393
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
394
394
  u("button", {
395
395
  type: "button",
396
396
  "data-testid": "remote-retry",
397
397
  onClick: T[0] || (T[0] = //@ts-ignore
398
- (...B) => a(c) && a(c)(...B))
398
+ (...M) => a(c) && a(c)(...M))
399
399
  }, k(a(r)("common.emooSelect.retry")), 1)
400
400
  ])
401
401
  ]),
@@ -403,11 +403,11 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
403
403
  } : void 0
404
404
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
405
405
  }
406
- }), On = /* @__PURE__ */ Y(Go, [["__scopeId", "data-v-465d3a49"]]), Xo = ["type", "disabled", "aria-busy"], Zo = {
406
+ }), Un = /* @__PURE__ */ Y(Xo, [["__scopeId", "data-v-465d3a49"]]), Zo = ["type", "disabled", "aria-busy"], Jo = {
407
407
  key: 0,
408
408
  class: "emoo-button__icon",
409
409
  "aria-hidden": "true"
410
- }, Jo = /* @__PURE__ */ N({
410
+ }, Yo = /* @__PURE__ */ N({
411
411
  __name: "EmooButton",
412
412
  props: {
413
413
  variant: { default: "secondary" },
@@ -429,29 +429,29 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
429
429
  disabled: e.disabled || e.loading,
430
430
  "aria-busy": e.loading || void 0
431
431
  }, [
432
- e.loading || n.$slots.icon ? (t(), s("span", Zo, [
432
+ e.loading || n.$slots.icon ? (t(), s("span", Jo, [
433
433
  e.loading ? (t(), x(a(vo), {
434
434
  key: 0,
435
435
  class: "emoo-button__spinner"
436
436
  })) : A(n.$slots, "icon", {}, void 0, !0, 1)
437
437
  ])) : S("", !0),
438
438
  A(n.$slots, "default", {}, void 0, !0)
439
- ], 10, Xo));
439
+ ], 10, Zo));
440
440
  }
441
- }), De = /* @__PURE__ */ Y(Jo, [["__scopeId", "data-v-6415e495"]]), Yo = { class: "emoo-card" }, Qo = {
441
+ }), De = /* @__PURE__ */ Y(Yo, [["__scopeId", "data-v-6415e495"]]), Qo = { class: "emoo-card" }, ea = {
442
442
  key: 0,
443
443
  class: "emoo-card__header"
444
- }, ea = {
444
+ }, ta = {
445
445
  key: 1,
446
446
  class: "emoo-card__footer"
447
- }, ta = /* @__PURE__ */ N({
447
+ }, oa = /* @__PURE__ */ N({
448
448
  __name: "EmooCard",
449
449
  props: {
450
450
  flush: { type: Boolean, default: !1 }
451
451
  },
452
452
  setup(e) {
453
- return (n, o) => (t(), s("div", Yo, [
454
- n.$slots.header ? (t(), s("div", Qo, [
453
+ return (n, o) => (t(), s("div", Qo, [
454
+ n.$slots.header ? (t(), s("div", ea, [
455
455
  A(n.$slots, "header", {}, void 0, !0)
456
456
  ])) : S("", !0),
457
457
  u("div", {
@@ -459,17 +459,17 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
459
459
  }, [
460
460
  A(n.$slots, "default", {}, void 0, !0)
461
461
  ], 2),
462
- n.$slots.footer ? (t(), s("div", ea, [
462
+ n.$slots.footer ? (t(), s("div", ta, [
463
463
  A(n.$slots, "footer", {}, void 0, !0)
464
464
  ])) : S("", !0)
465
465
  ]));
466
466
  }
467
- }), Un = /* @__PURE__ */ Y(ta, [["__scopeId", "data-v-4fffe6bc"]]), oa = ["data-testid"], aa = {
467
+ }), Hn = /* @__PURE__ */ Y(oa, [["__scopeId", "data-v-4fffe6bc"]]), aa = ["data-testid"], la = {
468
468
  key: 0,
469
469
  class: "emoo-chips__more",
470
470
  "data-testid": "emoo-chips-more"
471
- }, la = { name: "EmooChips" }, sa = /* @__PURE__ */ N({
472
- ...la,
471
+ }, sa = { name: "EmooChips" }, na = /* @__PURE__ */ N({
472
+ ...sa,
473
473
  props: {
474
474
  items: {},
475
475
  labelOf: {},
@@ -523,16 +523,16 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
523
523
  item: V,
524
524
  index: E
525
525
  }, void 0, !0)
526
- ], 8, oa)), [
526
+ ], 8, aa)), [
527
527
  [tt, E < r.value]
528
528
  ])), 128)),
529
- i.value > 0 ? (t(), s("span", aa, "+" + k(i.value), 1)) : S("", !0)
529
+ i.value > 0 ? (t(), s("span", la, "+" + k(i.value), 1)) : S("", !0)
530
530
  ], 4)
531
531
  ]),
532
532
  _: 3
533
533
  }, 8, ["content", "disabled"]));
534
534
  }
535
- }), Hn = /* @__PURE__ */ Y(sa, [["__scopeId", "data-v-1c5db445"]]), na = /* @__PURE__ */ N({
535
+ }), Kn = /* @__PURE__ */ Y(na, [["__scopeId", "data-v-1c5db445"]]), ia = /* @__PURE__ */ N({
536
536
  __name: "EmooChoice",
537
537
  props: {
538
538
  options: {},
@@ -680,7 +680,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
680
680
  _: 3
681
681
  }, 8, ["model-value", "disabled", "aria-label"]));
682
682
  }
683
- }), ia = /* @__PURE__ */ Y(na, [["__scopeId", "data-v-d18fb571"]]), ra = { class: "emt-colmenu__list" }, da = ["data-testid"], ua = ["data-testid"], ca = ["data-testid"], ma = ["data-testid"], va = ["data-testid"], fa = ["disabled", "data-testid"], ha = { class: "emt-colmenu__section" }, pa = ["data-testid", "onClick"], ya = /* @__PURE__ */ N({
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({
684
684
  __name: "EmooColumnMenu",
685
685
  props: {
686
686
  colKey: {},
@@ -701,7 +701,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
701
701
  "popper-class": "emt-colmenu"
702
702
  }, {
703
703
  dropdown: w(() => [
704
- u("div", ra, [
704
+ u("div", da, [
705
705
  e.sortable ? (t(), s(D, { key: 0 }, [
706
706
  u("button", {
707
707
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "ascending" }]),
@@ -715,7 +715,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
715
715
  "aria-hidden": "true"
716
716
  }),
717
717
  J(k(a(l)("common.emooTable.sortAsc")), 1)
718
- ], 10, da),
718
+ ], 10, ua),
719
719
  u("button", {
720
720
  class: W(["emt-colmenu__item", { "is-on": e.sorted === "descending" }]),
721
721
  type: "button",
@@ -728,7 +728,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
728
728
  "aria-hidden": "true"
729
729
  }),
730
730
  J(k(a(l)("common.emooTable.sortDesc")), 1)
731
- ], 10, ua),
731
+ ], 10, ca),
732
732
  i[7] || (i[7] = u("div", { class: "emt-colmenu__divider" }, null, -1))
733
733
  ], 64)) : S("", !0),
734
734
  e.pinsEnabled ? (t(), s(D, { key: 1 }, [
@@ -744,7 +744,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
744
744
  "aria-hidden": "true"
745
745
  }),
746
746
  J(k(a(l)("common.emooTable.unpin")), 1)
747
- ], 8, ca)) : (t(), s(D, { key: 1 }, [
747
+ ], 8, ma)) : (t(), s(D, { key: 1 }, [
748
748
  u("button", {
749
749
  class: "emt-colmenu__item",
750
750
  type: "button",
@@ -756,7 +756,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
756
756
  "aria-hidden": "true"
757
757
  }),
758
758
  J(k(a(l)("common.emooTable.pinLeftThrough")), 1)
759
- ], 8, ma),
759
+ ], 8, va),
760
760
  u("button", {
761
761
  class: "emt-colmenu__item",
762
762
  type: "button",
@@ -768,7 +768,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
768
768
  "aria-hidden": "true"
769
769
  }),
770
770
  J(k(a(l)("common.emooTable.pinRightFrom")), 1)
771
- ], 8, va)
771
+ ], 8, fa)
772
772
  ], 64)),
773
773
  i[8] || (i[8] = u("div", { class: "emt-colmenu__divider" }, null, -1))
774
774
  ], 64)) : S("", !0),
@@ -785,10 +785,10 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
785
785
  "aria-hidden": "true"
786
786
  }),
787
787
  J(k(a(l)("common.emooTable.hideColumn")), 1)
788
- ], 8, fa),
788
+ ], 8, ha),
789
789
  e.hidden.length ? (t(), s(D, { key: 2 }, [
790
790
  i[9] || (i[9] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
791
- u("div", ha, k(a(l)("common.emooTable.hiddenColumns")), 1),
791
+ u("div", pa, k(a(l)("common.emooTable.hiddenColumns")), 1),
792
792
  (t(!0), s(D, null, Z(e.hidden, (p) => (t(), s("button", {
793
793
  key: p.key,
794
794
  class: "emt-colmenu__item",
@@ -801,7 +801,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
801
801
  "aria-hidden": "true"
802
802
  }),
803
803
  J(k(p.label), 1)
804
- ], 8, pa))), 128))
804
+ ], 8, ya))), 128))
805
805
  ], 64)) : S("", !0),
806
806
  e.resettable ? (t(), s(D, { key: 3 }, [
807
807
  i[10] || (i[10] = u("div", { class: "emt-colmenu__divider" }, null, -1)),
@@ -811,7 +811,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
811
811
  "data-testid": "emt-reset-prefs",
812
812
  onClick: i[6] || (i[6] = le((p) => o("reset"), ["stop"]))
813
813
  }, [
814
- P(a(Mt), {
814
+ P(a(Bt), {
815
815
  size: 14,
816
816
  "aria-hidden": "true"
817
817
  }),
@@ -829,7 +829,7 @@ const Ko = { class: "emoo-asel__opt" }, Wo = { class: "emoo-asel__avatar" }, Fo
829
829
  }), Je = {
830
830
  DRAWER_WIDTHS: "emoo-drawer-widths",
831
831
  DRAWER_HEIGHTS: "emoo-drawer-heights"
832
- }, ba = 360, Lt = 0.98;
832
+ }, ga = 360, Lt = 0.98;
833
833
  function Ot() {
834
834
  try {
835
835
  const e = localStorage.getItem(Je.DRAWER_WIDTHS), n = e ? JSON.parse(e) : {};
@@ -838,11 +838,11 @@ function Ot() {
838
838
  return {};
839
839
  }
840
840
  }
841
- function ga(e, n) {
841
+ function ka(e, n) {
842
842
  const o = Ot()[e];
843
- return typeof o != "number" || Number.isNaN(o) ? n : `${Math.round(Math.min(Math.max(o, ba), 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`;
844
844
  }
845
- function ka(e, n) {
845
+ function $a(e, n) {
846
846
  try {
847
847
  const o = Math.min(Math.round(n), Math.round(window.innerWidth * Lt));
848
848
  localStorage.setItem(
@@ -852,7 +852,7 @@ function ka(e, n) {
852
852
  } catch {
853
853
  }
854
854
  }
855
- const Ut = [0.6, 0.85, 1], $a = 0.08, _a = 250;
855
+ const Ut = [0.6, 0.85, 1], _a = 0.08, wa = 250;
856
856
  function Ht() {
857
857
  try {
858
858
  const e = localStorage.getItem(Je.DRAWER_HEIGHTS), n = e ? JSON.parse(e) : {};
@@ -861,7 +861,7 @@ function Ht() {
861
861
  return {};
862
862
  }
863
863
  }
864
- function wa(e, n) {
864
+ function Sa(e, n) {
865
865
  try {
866
866
  localStorage.setItem(
867
867
  Je.DRAWER_HEIGHTS,
@@ -870,10 +870,10 @@ function wa(e, n) {
870
870
  } catch {
871
871
  }
872
872
  }
873
- function Sa(e) {
873
+ function Ca(e) {
874
874
  return Ut.reduce((n, o) => Math.abs(o - e) < Math.abs(n - e) ? o : n);
875
875
  }
876
- function Ca(e, n) {
876
+ function Ea(e, n) {
877
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);
878
878
  let c = 0, b = 0, _ = !1, y;
879
879
  function V() {
@@ -889,13 +889,13 @@ function Ca(e, n) {
889
889
  i.value = null;
890
890
  return;
891
891
  }
892
- const z = i.value / window.innerHeight, j = Sa(z), X = Math.abs(j - z) <= $a;
893
- if (r.value = X ? j : Math.round(z * 100) / 100, wa(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) {
894
894
  i.value = null;
895
895
  return;
896
896
  }
897
897
  g.value = !0, requestAnimationFrame(() => {
898
- i.value = Math.round(j * window.innerHeight), y = setTimeout(V, _a);
898
+ i.value = Math.round(j * window.innerHeight), y = setTimeout(V, wa);
899
899
  });
900
900
  }
901
901
  function I(z) {
@@ -905,10 +905,10 @@ function Ca(e, n) {
905
905
  window.removeEventListener("pointermove", E), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $), y !== void 0 && clearTimeout(y);
906
906
  }), { size: p, dragging: v, animating: g, onDragStart: I };
907
907
  }
908
- const Ea = {
908
+ const Ta = {
909
909
  key: 0,
910
910
  class: "emoo-drawer__sheet"
911
- }, Ta = { class: "emoo-drawer__sheet-content" }, Kn = /* @__PURE__ */ N({
911
+ }, xa = { class: "emoo-drawer__sheet-content" }, Wn = /* @__PURE__ */ N({
912
912
  inheritAttrs: !1,
913
913
  __name: "EmooDrawer",
914
914
  props: {
@@ -926,12 +926,12 @@ const Ea = {
926
926
  const o = e, l = n, r = R({
927
927
  get: () => o.modelValue,
928
928
  set: (y) => l("update:modelValue", y)
929
- }), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Ca(
929
+ }), i = R(() => o.isMobile && !!o.scene && !o.mobileFull), { size: p, dragging: v, animating: g, onDragStart: c } = Ea(
930
930
  o.scene ?? "__emoo-no-scene__",
931
931
  o.mobileRatio
932
- ), b = R(() => o.isMobile ? i.value ? p.value : o.direction === "rtl" || o.direction === "ltr" ? o.size : "100%" : o.scene ? ga(o.scene, o.size) : o.size);
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
933
  function _(y, V) {
934
- o.scene && ka(o.scene, V), l("resize-end", y, V);
934
+ o.scene && $a(o.scene, V), l("resize-end", y, V);
935
935
  }
936
936
  return (y, V) => (t(), x(a(Tt), Xe(y.$attrs, {
937
937
  modelValue: r.value,
@@ -947,12 +947,12 @@ const Ea = {
947
947
  onResizeEnd: _
948
948
  }), Se({
949
949
  default: w(() => [
950
- i.value ? (t(), s("div", Ea, [
950
+ i.value ? (t(), s("div", Ta, [
951
951
  P(At, {
952
952
  dragging: a(v),
953
953
  onDragstart: a(c)
954
954
  }, null, 8, ["dragging", "onDragstart"]),
955
- u("div", Ta, [
955
+ u("div", xa, [
956
956
  A(y.$slots, "default")
957
957
  ])
958
958
  ])) : A(y.$slots, "default", {}, void 0, void 0, 1)
@@ -975,20 +975,20 @@ const Ea = {
975
975
  } : void 0
976
976
  ]), 1040, ["modelValue", "class", "size", "direction", "resizable"]));
977
977
  }
978
- }), xa = {
978
+ }), Ia = {
979
979
  key: 0,
980
980
  class: "emoo-empty__stage",
981
981
  "aria-hidden": "true"
982
- }, Ia = {
982
+ }, za = {
983
983
  key: 1,
984
984
  class: "emoo-empty__title"
985
- }, za = {
985
+ }, Ra = {
986
986
  key: 2,
987
987
  class: "emoo-empty__desc"
988
- }, Ra = {
988
+ }, Va = {
989
989
  key: 3,
990
990
  class: "emoo-empty__actions"
991
- }, Va = /* @__PURE__ */ N({
991
+ }, Ba = /* @__PURE__ */ N({
992
992
  __name: "EmooEmpty",
993
993
  props: {
994
994
  variant: { default: "stage" },
@@ -1004,12 +1004,12 @@ const Ea = {
1004
1004
  "data-testid": "emoo-empty"
1005
1005
  }, [
1006
1006
  e.variant === "stage" ? (t(), s(D, { key: 0 }, [
1007
- e.icon ? (t(), s("span", xa, [
1007
+ e.icon ? (t(), s("span", Ia, [
1008
1008
  (t(), x(Ie(e.icon), { weight: "duotone" }))
1009
1009
  ])) : S("", !0),
1010
- e.title ? (t(), s("p", Ia, k(e.title), 1)) : S("", !0),
1011
- e.description ? (t(), s("p", za, k(e.description), 1)) : S("", !0),
1012
- n.$slots.actions ? (t(), s("div", Ra, [
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, [
1013
1013
  A(n.$slots, "actions", {}, void 0, !0)
1014
1014
  ])) : S("", !0)
1015
1015
  ], 64)) : (t(), s(D, { key: 1 }, [
@@ -1017,7 +1017,7 @@ const Ea = {
1017
1017
  ], 64))
1018
1018
  ], 2));
1019
1019
  }
1020
- }), Ma = /* @__PURE__ */ Y(Va, [["__scopeId", "data-v-e50a5864"]]), Ba = ["id", "for"], Da = { class: "emoo-field__body" }, Pa = ["data-testid"], Aa = ["id"], La = ["id", "data-testid"], Oa = /* @__PURE__ */ N({
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({
1021
1021
  __name: "EmooField",
1022
1022
  props: {
1023
1023
  id: {},
@@ -1051,8 +1051,8 @@ const Ea = {
1051
1051
  A(g.$slots, "label", {}, () => [
1052
1052
  J(k(e.label), 1)
1053
1053
  ], !0)
1054
- ], 10, Ba)) : S("", !0),
1055
- u("div", Da, [
1054
+ ], 10, Da)) : S("", !0),
1055
+ u("div", Pa, [
1056
1056
  e.mode === "view" ? (t(), s("div", {
1057
1057
  key: 0,
1058
1058
  class: "emoo-field__value",
@@ -1061,7 +1061,7 @@ const Ea = {
1061
1061
  A(g.$slots, "view", {}, () => [
1062
1062
  J(k(e.text), 1)
1063
1063
  ], !0)
1064
- ], 8, Pa)) : A(g.$slots, "default", {
1064
+ ], 8, Aa)) : A(g.$slots, "default", {
1065
1065
  id: o.value || void 0,
1066
1066
  describedBy: p.value,
1067
1067
  invalid: !!e.error,
@@ -1071,18 +1071,18 @@ const Ea = {
1071
1071
  key: 2,
1072
1072
  id: r.value,
1073
1073
  class: "emoo-field__help"
1074
- }, k(e.help), 9, Aa)) : S("", !0),
1074
+ }, k(e.help), 9, La)) : S("", !0),
1075
1075
  e.error && e.mode === "edit" ? (t(), s("p", {
1076
1076
  key: 3,
1077
1077
  id: i.value,
1078
1078
  class: "emoo-field__error",
1079
1079
  role: "alert",
1080
1080
  "data-testid": e.testid ? `${e.testid}-error` : void 0
1081
- }, k(e.error), 9, La)) : S("", !0)
1081
+ }, k(e.error), 9, Oa)) : S("", !0)
1082
1082
  ])
1083
1083
  ], 2)) : S("", !0);
1084
1084
  }
1085
- }), Wn = /* @__PURE__ */ Y(Oa, [["__scopeId", "data-v-1b6ea0e7"]]), Ua = ["aria-label"], Ha = /* @__PURE__ */ N({
1085
+ }), Fn = /* @__PURE__ */ Y(Ua, [["__scopeId", "data-v-1b6ea0e7"]]), Ha = ["aria-label"], Ka = /* @__PURE__ */ N({
1086
1086
  __name: "EmooFieldGrid",
1087
1087
  props: {
1088
1088
  ariaLabel: {},
@@ -1095,30 +1095,30 @@ const Ea = {
1095
1095
  "aria-label": e.ariaLabel
1096
1096
  }, [
1097
1097
  A(n.$slots, "default", {}, void 0, !0)
1098
- ], 10, Ua));
1098
+ ], 10, Ha));
1099
1099
  }
1100
- }), Fn = /* @__PURE__ */ Y(Ha, [["__scopeId", "data-v-12f1e7e0"]]), Ka = ["width", "height", "data-type", "innerHTML"], Nn = /* @__PURE__ */ N({
1100
+ }), Nn = /* @__PURE__ */ Y(Ka, [["__scopeId", "data-v-12f1e7e0"]]), Wa = ["width", "height", "viewBox", "data-type", "innerHTML"], qn = /* @__PURE__ */ N({
1101
1101
  __name: "EmooFileTypeIcon",
1102
1102
  props: {
1103
1103
  type: {},
1104
1104
  size: {}
1105
1105
  },
1106
1106
  setup(e) {
1107
- const n = e, o = R(() => n.size ?? "1em"), l = R(() => Eo(n.type));
1108
- return (r, i) => (t(), s("svg", {
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
1109
  class: "emoo-file-icon",
1110
1110
  width: o.value,
1111
1111
  height: o.value,
1112
- viewBox: "0 0 24 24",
1112
+ viewBox: r.value,
1113
1113
  fill: "none",
1114
1114
  "aria-hidden": "true",
1115
1115
  focusable: "false",
1116
1116
  "data-testid": "emoo-file-type-icon",
1117
1117
  "data-type": e.type,
1118
1118
  innerHTML: l.value
1119
- }, null, 8, Ka));
1119
+ }, null, 8, Wa));
1120
1120
  }
1121
- }), Wa = /* @__PURE__ */ N({
1121
+ }), Fa = /* @__PURE__ */ N({
1122
1122
  __name: "EmooGhostButton",
1123
1123
  props: {
1124
1124
  pill: { type: Boolean },
@@ -1132,7 +1132,7 @@ const Ea = {
1132
1132
  A(n.$slots, "default", {}, void 0, !0)
1133
1133
  ], 2));
1134
1134
  }
1135
- }), qn = /* @__PURE__ */ Y(Wa, [["__scopeId", "data-v-d0346949"]]), Fa = /* @__PURE__ */ N({
1135
+ }), jn = /* @__PURE__ */ Y(Fa, [["__scopeId", "data-v-d0346949"]]), Na = /* @__PURE__ */ N({
1136
1136
  __name: "EmooGroupLabel",
1137
1137
  props: {
1138
1138
  title: {},
@@ -1146,10 +1146,10 @@ const Ea = {
1146
1146
  u("span", null, k(a(n)(e.title)), 1)
1147
1147
  ], 2));
1148
1148
  }
1149
- }), jn = /* @__PURE__ */ Y(Fa, [["__scopeId", "data-v-0135d501"]]), Na = { class: "emoo-skel__lines" }, qa = { class: "emoo-skel__head" }, ja = {
1149
+ }), Gn = /* @__PURE__ */ Y(Na, [["__scopeId", "data-v-0135d501"]]), qa = { class: "emoo-skel__lines" }, ja = { class: "emoo-skel__head" }, Ga = {
1150
1150
  key: 4,
1151
1151
  class: "emoo-skel__pill-row"
1152
- }, Ga = { class: "emoo-skel__detail" }, Xa = { class: "emoo-skel__lines" }, Za = /* @__PURE__ */ N({
1152
+ }, Xa = { class: "emoo-skel__detail" }, Za = { class: "emoo-skel__lines" }, Ja = /* @__PURE__ */ N({
1153
1153
  __name: "EmooSkeleton",
1154
1154
  props: {
1155
1155
  variant: { default: "lines" },
@@ -1174,7 +1174,7 @@ const Ea = {
1174
1174
  class: "emoo-skel__item"
1175
1175
  }, [
1176
1176
  o[0] || (o[0] = u("span", { class: "emoo-skel__bone emoo-skel__avatar" }, null, -1)),
1177
- u("span", Na, [
1177
+ u("span", qa, [
1178
1178
  u("span", {
1179
1179
  class: "emoo-skel__bone emoo-skel__line",
1180
1180
  style: pe({ width: `${52 - l * 8}%` })
@@ -1185,7 +1185,7 @@ const Ea = {
1185
1185
  }, null, 4)
1186
1186
  ])
1187
1187
  ]))), 128)) : e.variant === "table" ? (t(), s(D, { key: 2 }, [
1188
- u("span", qa, [
1188
+ u("span", ja, [
1189
1189
  (t(), s(D, null, Z(["18%", "26%", "14%", "22%"], (l, r) => u("span", {
1190
1190
  key: r,
1191
1191
  class: "emoo-skel__bone emoo-skel__cell",
@@ -1211,7 +1211,7 @@ const Ea = {
1211
1211
  style: { width: "56%" }
1212
1212
  }, null, -1),
1213
1213
  u("span", { class: "emoo-skel__bone emoo-skel__tile-value" }, null, -1)
1214
- ])]))), 128)) : e.variant === "pills" ? (t(), s("div", ja, [
1214
+ ])]))), 128)) : e.variant === "pills" ? (t(), s("div", Ga, [
1215
1215
  (t(!0), s(D, null, Z(e.pills, (l) => (t(), s("span", {
1216
1216
  key: l,
1217
1217
  class: "emoo-skel__bone emoo-skel__pill"
@@ -1236,8 +1236,8 @@ const Ea = {
1236
1236
  }, null, 4)
1237
1237
  ], 64)) : (t(), s(D, { key: 7 }, [
1238
1238
  o[5] || (o[5] = u("span", { class: "emoo-skel__bone emoo-skel__title" }, null, -1)),
1239
- u("span", Ga, [
1240
- u("span", Xa, [
1239
+ u("span", Xa, [
1240
+ u("span", Za, [
1241
1241
  (t(!0), s(D, null, Z(e.lines, (l) => (t(), s("span", {
1242
1242
  key: l,
1243
1243
  class: W(["emoo-skel__bone emoo-skel__line", { "is-tail": l === e.lines }])
@@ -1248,7 +1248,7 @@ const Ea = {
1248
1248
  ], 64))
1249
1249
  ], 2));
1250
1250
  }
1251
- }), Ja = /* @__PURE__ */ Y(Za, [["__scopeId", "data-v-9e0a33de"]]), Ya = ["aria-label"], Qa = /* @__PURE__ */ N({
1251
+ }), Ya = /* @__PURE__ */ Y(Ja, [["__scopeId", "data-v-9e0a33de"]]), Qa = ["aria-label"], el = /* @__PURE__ */ N({
1252
1252
  __name: "EmooSpinner",
1253
1253
  props: {
1254
1254
  size: { default: 20 },
@@ -1274,22 +1274,22 @@ const Ea = {
1274
1274
  "stroke-dasharray": "37.7 12.57"
1275
1275
  })
1276
1276
  ], -1)
1277
- ])], 12, Ya));
1277
+ ])], 12, Qa));
1278
1278
  }
1279
- }), Kt = /* @__PURE__ */ Y(Qa, [["__scopeId", "data-v-d168f9f3"]]), el = {
1279
+ }), Kt = /* @__PURE__ */ Y(el, [["__scopeId", "data-v-d168f9f3"]]), tl = {
1280
1280
  class: "emoo-history-list",
1281
1281
  "data-testid": "emoo-history-list"
1282
- }, tl = {
1282
+ }, ol = {
1283
1283
  key: 0,
1284
1284
  class: "history-float"
1285
- }, ol = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], al = { class: "history-name" }, ll = { key: 0 }, sl = {
1285
+ }, al = ["data-item-id", "tabindex", "onClick", "onFocus", "onKeydown"], ll = { class: "history-name" }, sl = { key: 0 }, nl = {
1286
1286
  key: 1,
1287
1287
  class: "status-indicator",
1288
1288
  "data-testid": "chat-status-indicator"
1289
- }, nl = {
1289
+ }, il = {
1290
1290
  key: 1,
1291
1291
  class: "status-dot"
1292
- }, il = /* @__PURE__ */ N({
1292
+ }, rl = /* @__PURE__ */ N({
1293
1293
  __name: "EmooHistoryList",
1294
1294
  props: {
1295
1295
  groups: {},
@@ -1307,63 +1307,63 @@ const Ea = {
1307
1307
  },
1308
1308
  emits: ["update:keyword", "update:selectedIds", "select", "load-more", "delete", "rename"],
1309
1309
  setup(e, { expose: n, emit: o }) {
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((M) => M.items.length > 0)), _ = U(!1), y = U(!1), V = U(null), E = async () => {
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
1311
  _.value = !0, await ke(), V.value?.focus();
1312
1312
  }, $ = () => {
1313
1313
  !l.keyword && !y.value && (_.value = !1);
1314
1314
  }, I = () => {
1315
1315
  y.value = !1, $();
1316
- }, z = U(null), j = U(null), X = R(() => l.groups.flatMap((M) => M.items)), ie = (M) => M.id === (j.value ?? X.value[0]?.id) ? 0 : -1, ee = (M) => {
1317
- M !== void 0 && z.value?.querySelector(`.history-item[data-item-id="${M}"]`)?.focus();
1318
- }, d = () => ee(X.value[0]?.id), T = (M, O) => {
1319
- 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;
1320
1320
  const G = X.value, oe = G.findIndex((re) => re.id === O.id);
1321
- if (M.key === "ArrowDown")
1322
- M.preventDefault(), oe < G.length - 1 && ee(G[oe + 1].id);
1323
- else if (M.key === "ArrowUp")
1324
- M.preventDefault(), oe > 0 && ee(G[oe - 1].id);
1325
- else if (M.key === "Enter")
1326
- M.preventDefault(), L(O);
1327
- 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") {
1328
1328
  if (se.value || H.value || !ae) return;
1329
- M.preventDefault(), r("delete", O);
1329
+ B.preventDefault(), r("delete", O);
1330
1330
  }
1331
- }, B = (M) => {
1332
- if ((M.metaKey || M.ctrlKey) && M.key.toLowerCase() === "k") {
1331
+ }, M = (B) => {
1332
+ if ((B.metaKey || B.ctrlKey) && B.key.toLowerCase() === "k") {
1333
1333
  if (!l.anyRecord) return;
1334
- M.preventDefault(), E();
1334
+ B.preventDefault(), E();
1335
1335
  }
1336
- }, se = U(null), ne = U(""), ye = U(!1), q = (M) => {
1337
- 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;
1338
1338
  }, de = () => {
1339
1339
  se.value = null, ne.value = "";
1340
1340
  }, ce = () => {
1341
1341
  se.value !== null && r("rename", { id: se.value, title: ne.value });
1342
- }, H = U(!1), te = (M, O) => {
1342
+ }, H = U(!1), te = (B, O) => {
1343
1343
  r(
1344
1344
  "update:selectedIds",
1345
- O ? [...l.selectedIds, M] : l.selectedIds.filter((G) => G !== M)
1345
+ O ? [...l.selectedIds, B] : l.selectedIds.filter((G) => G !== B)
1346
1346
  );
1347
1347
  }, F = () => {
1348
1348
  H.value = !H.value, H.value ? de() : r("update:selectedIds", []);
1349
1349
  }, C = () => {
1350
1350
  H.value && (H.value = !1, r("update:selectedIds", []));
1351
- }, L = (M) => {
1351
+ }, L = (B) => {
1352
1352
  if (H.value) {
1353
- te(M.id, !l.selectedIds.includes(M.id));
1353
+ te(B.id, !l.selectedIds.includes(B.id));
1354
1354
  return;
1355
1355
  }
1356
- r("select", M);
1357
- }, Q = (M) => {
1358
- const O = M.target;
1356
+ r("select", B);
1357
+ }, Q = (B) => {
1358
+ const O = B.target;
1359
1359
  O.scrollTop + O.clientHeight >= O.scrollHeight - 60 && r("load-more");
1360
1360
  }, ae = !!Et()["row-action"];
1361
1361
  return Ze(() => {
1362
- window.addEventListener("keydown", B);
1362
+ window.addEventListener("keydown", M);
1363
1363
  }), Ct(() => {
1364
- window.removeEventListener("keydown", B);
1365
- }), n({ startRename: q, cancelRename: de, exitSelectMode: C, focusSearch: E }), (M, O) => (t(), s("div", el, [
1366
- e.anyRecord ? (t(), s("div", tl, [
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, [
1367
1367
  u("div", {
1368
1368
  class: W(["search-area", { expanded: _.value }]),
1369
1369
  onMouseenter: O[2] || (O[2] = (G) => _.value = !0),
@@ -1417,7 +1417,7 @@ const Ea = {
1417
1417
  ]),
1418
1418
  _: 1
1419
1419
  }, 8, ["disabled"]),
1420
- A(M.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1420
+ A(B.$slots, "batch-actions", { selectedIds: e.selectedIds }, void 0, !0)
1421
1421
  ], 64)) : (t(), x(he, {
1422
1422
  key: 0,
1423
1423
  content: v.value
@@ -1448,7 +1448,7 @@ const Ea = {
1448
1448
  class: "history-scroll",
1449
1449
  onScroll: Q
1450
1450
  }, [
1451
- e.loading && !b.value ? (t(), x(Ja, {
1451
+ e.loading && !b.value ? (t(), x(Ya, {
1452
1452
  key: 0,
1453
1453
  variant: "lines",
1454
1454
  lines: 4,
@@ -1486,8 +1486,8 @@ const Ea = {
1486
1486
  }, ["stop"])),
1487
1487
  "onUpdate:modelValue": (re) => te(oe.id, !!re)
1488
1488
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
1489
- u("span", al, [
1490
- se.value !== oe.id ? (t(), s("span", ll, 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), {
1491
1491
  key: 1,
1492
1492
  modelValue: ne.value,
1493
1493
  "onUpdate:modelValue": O[4] || (O[4] = (re) => ne.value = re),
@@ -1501,12 +1501,12 @@ const Ea = {
1501
1501
  onBlur: le(ce, ["stop"])
1502
1502
  }, null, 8, ["modelValue"]))
1503
1503
  ]),
1504
- se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", sl, [
1504
+ se.value !== oe.id && oe.id !== e.activeId && oe.status ? (t(), s("span", nl, [
1505
1505
  oe.status === "generating" ? (t(), x(Kt, {
1506
1506
  key: 0,
1507
1507
  size: 14,
1508
1508
  label: a(i)("common.loading")
1509
- }, null, 8, ["label"])) : (t(), s("span", nl))
1509
+ }, null, 8, ["label"])) : (t(), s("span", il))
1510
1510
  ])) : S("", !0),
1511
1511
  se.value !== oe.id && !H.value && ae ? (t(), x(a(nt), {
1512
1512
  key: 2,
@@ -1522,7 +1522,7 @@ const Ea = {
1522
1522
  dropdown: w(() => [
1523
1523
  P(a(lo), null, {
1524
1524
  default: w(() => [
1525
- A(M.$slots, "row-action", { item: oe }, void 0, !0)
1525
+ A(B.$slots, "row-action", { item: oe }, void 0, !0)
1526
1526
  ]),
1527
1527
  _: 2
1528
1528
  }, 1024)
@@ -1536,14 +1536,14 @@ const Ea = {
1536
1536
  }, ["stop"]))
1537
1537
  }, {
1538
1538
  default: w(() => [
1539
- P(a(Bt), { class: "ic" })
1539
+ P(a(Mt), { class: "ic" })
1540
1540
  ]),
1541
1541
  _: 1
1542
1542
  })
1543
1543
  ]),
1544
1544
  _: 2
1545
1545
  }, 1024)) : S("", !0)
1546
- ], 42, ol)
1546
+ ], 42, al)
1547
1547
  ]),
1548
1548
  _: 2
1549
1549
  }, 1032, ["content", "disabled"]))), 128))
@@ -1557,20 +1557,20 @@ const Ea = {
1557
1557
  ])
1558
1558
  ]));
1559
1559
  }
1560
- }), Gn = /* @__PURE__ */ Y(il, [["__scopeId", "data-v-862f7ee9"]]), rl = {
1560
+ }), Xn = /* @__PURE__ */ Y(rl, [["__scopeId", "data-v-862f7ee9"]]), dl = {
1561
1561
  class: "emoo-mrsel__tabs",
1562
1562
  role: "tablist"
1563
- }, dl = ["aria-selected", "onClick"], ul = { class: "emoo-mrsel__count" }, cl = {
1563
+ }, ul = ["aria-selected", "onClick"], cl = { class: "emoo-mrsel__count" }, ml = {
1564
1564
  class: "emoo-sel-remote-error",
1565
1565
  role: "alert",
1566
1566
  "data-testid": "remote-error"
1567
- }, ml = { class: "emoo-mrsel__opt" }, vl = ["src"], fl = { class: "emoo-mrsel__name" }, hl = {
1567
+ }, vl = { class: "emoo-mrsel__opt" }, fl = ["src"], hl = { class: "emoo-mrsel__name" }, pl = {
1568
1568
  key: 0,
1569
1569
  class: "emoo-mrsel__dept"
1570
- }, pl = { class: "emoo-mrsel__opt" }, yl = ["src"], bl = { class: "emoo-mrsel__col" }, gl = { class: "emoo-mrsel__name" }, kl = {
1570
+ }, yl = { class: "emoo-mrsel__opt" }, bl = ["src"], gl = { class: "emoo-mrsel__col" }, kl = { class: "emoo-mrsel__name" }, $l = {
1571
1571
  key: 0,
1572
1572
  class: "emoo-mrsel__desc"
1573
- }, $l = /* @__PURE__ */ N({
1573
+ }, _l = /* @__PURE__ */ N({
1574
1574
  __name: "EmooMemberRoleSelect",
1575
1575
  props: {
1576
1576
  modelValue: {},
@@ -1588,11 +1588,11 @@ const Ea = {
1588
1588
  const o = e, l = n, { t: r } = me(), i = U("member"), p = R(() => o.modelValue?.memberIds ?? []), v = R(() => o.modelValue?.roleIds ?? []), g = R(() => [
1589
1589
  { key: "member", label: r("common.emooSelect.memberTab"), count: p.value.length },
1590
1590
  { key: "role", label: r("common.emooSelect.roleTab"), count: v.value.length }
1591
- ]), c = R(() => 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 : _, V = R(() => `${b.popperClass} ${_.popperClass}`), E = R(() => 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(
1592
1592
  () => p.value,
1593
1593
  () => c.value ? b.items.value : o.members ?? [],
1594
1594
  () => o.selectedMembers ?? []
1595
- ), I = Be(
1595
+ ), I = Me(
1596
1596
  () => v.value,
1597
1597
  () => c.value ? _.items.value : o.roles ?? [],
1598
1598
  () => o.selectedRoles ?? []
@@ -1605,7 +1605,7 @@ const Ea = {
1605
1605
  return;
1606
1606
  }
1607
1607
  c.value && y(i.value).onVisibleChange(!0);
1608
- }, B = (H) => {
1608
+ }, M = (H) => {
1609
1609
  c.value && y(i.value).search(H);
1610
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) => {
1611
1611
  i.value !== H && (i.value = H, c.value && d.value && y(H).onVisibleChange(!0));
@@ -1633,7 +1633,7 @@ const Ea = {
1633
1633
  filterable: "",
1634
1634
  "fit-input-width": "",
1635
1635
  remote: c.value,
1636
- "remote-method": B,
1636
+ "remote-method": M,
1637
1637
  loading: se.value,
1638
1638
  "popper-class": V.value,
1639
1639
  "onUpdate:modelValue": de,
@@ -1648,7 +1648,7 @@ const Ea = {
1648
1648
  }, null, 8, ["items", "max", "removable"])
1649
1649
  ]),
1650
1650
  header: w(() => [
1651
- u("div", rl, [
1651
+ u("div", dl, [
1652
1652
  (t(!0), s(D, null, Z(g.value, (F) => (t(), s("button", {
1653
1653
  key: F.key,
1654
1654
  type: "button",
@@ -1657,8 +1657,8 @@ const Ea = {
1657
1657
  onClick: (C) => q(F.key)
1658
1658
  }, [
1659
1659
  J(k(F.label) + " ", 1),
1660
- u("span", ul, k(F.count), 1)
1661
- ], 10, dl))), 128))
1660
+ u("span", cl, k(F.count), 1)
1661
+ ], 10, ul))), 128))
1662
1662
  ])
1663
1663
  ]),
1664
1664
  default: w(() => [
@@ -1668,7 +1668,7 @@ const Ea = {
1668
1668
  value: F.id
1669
1669
  }, {
1670
1670
  default: w(() => [
1671
- u("span", ml, [
1671
+ u("span", vl, [
1672
1672
  u("span", {
1673
1673
  class: "emoo-mrsel__avatar",
1674
1674
  style: pe({ "--tint": F.color || "var(--el-color-primary)" })
@@ -1678,12 +1678,12 @@ const Ea = {
1678
1678
  src: F.avatar,
1679
1679
  alt: "",
1680
1680
  class: "emoo-mrsel__img"
1681
- }, null, 8, vl)) : (t(), s(D, { key: 1 }, [
1681
+ }, null, 8, fl)) : (t(), s(D, { key: 1 }, [
1682
1682
  J(k(F.name[0]), 1)
1683
1683
  ], 64))
1684
1684
  ], 4),
1685
- u("span", fl, k(F.name), 1),
1686
- F.dept ? (t(), s("span", hl, k(F.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)
1687
1687
  ])
1688
1688
  ]),
1689
1689
  _: 2
@@ -1693,7 +1693,7 @@ const Ea = {
1693
1693
  value: F.id
1694
1694
  }, {
1695
1695
  default: w(() => [
1696
- u("span", pl, [
1696
+ u("span", yl, [
1697
1697
  u("span", {
1698
1698
  class: "emoo-mrsel__avatar is-square",
1699
1699
  style: pe({ "--tint": F.color || "var(--el-color-primary)" })
@@ -1703,13 +1703,13 @@ const Ea = {
1703
1703
  src: F.avatar,
1704
1704
  alt: "",
1705
1705
  class: "emoo-mrsel__img"
1706
- }, null, 8, yl)) : (t(), s(D, { key: 1 }, [
1706
+ }, null, 8, bl)) : (t(), s(D, { key: 1 }, [
1707
1707
  J(k(F.name[0]), 1)
1708
1708
  ], 64))
1709
1709
  ], 4),
1710
- u("span", bl, [
1711
- u("span", gl, k(F.name), 1),
1712
- F.desc ? (t(), s("span", kl, k(F.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)
1713
1713
  ])
1714
1714
  ])
1715
1715
  ]),
@@ -1721,7 +1721,7 @@ const Ea = {
1721
1721
  ne.value ? {
1722
1722
  name: "footer",
1723
1723
  fn: w(() => [
1724
- u("div", cl, [
1724
+ u("div", ml, [
1725
1725
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1726
1726
  u("button", {
1727
1727
  type: "button",
@@ -1734,14 +1734,14 @@ const Ea = {
1734
1734
  } : void 0
1735
1735
  ]), 1032, ["model-value", "placeholder", "remote", "loading", "popper-class"]));
1736
1736
  }
1737
- }), Xn = /* @__PURE__ */ Y($l, [["__scopeId", "data-v-ff057c7b"]]), _l = { class: "emoo-msel__opt" }, wl = ["src"], Sl = { class: "emoo-msel__name" }, Cl = {
1737
+ }), Zn = /* @__PURE__ */ Y(_l, [["__scopeId", "data-v-ff057c7b"]]), wl = { class: "emoo-msel__opt" }, Sl = ["src"], Cl = { class: "emoo-msel__name" }, El = {
1738
1738
  key: 0,
1739
1739
  class: "emoo-msel__dept"
1740
- }, El = {
1740
+ }, Tl = {
1741
1741
  class: "emoo-sel-remote-error",
1742
1742
  role: "alert",
1743
1743
  "data-testid": "remote-error"
1744
- }, Tl = /* @__PURE__ */ N({
1744
+ }, xl = /* @__PURE__ */ N({
1745
1745
  __name: "EmooMemberSelect",
1746
1746
  props: {
1747
1747
  modelValue: {},
@@ -1755,7 +1755,7 @@ const Ea = {
1755
1755
  },
1756
1756
  emits: ["update:modelValue"],
1757
1757
  setup(e, { emit: n }) {
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 } = Me(() => o.source, "emoo-msel-popper"), { mergedOptions: V, 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(
1759
1759
  () => o.modelValue,
1760
1760
  () => i.value ? p.value : o.options ?? [],
1761
1761
  () => o.selected ?? []
@@ -1788,7 +1788,7 @@ const Ea = {
1788
1788
  value: T.id
1789
1789
  }, {
1790
1790
  default: w(() => [
1791
- u("span", _l, [
1791
+ u("span", wl, [
1792
1792
  u("span", {
1793
1793
  class: "emoo-msel__avatar",
1794
1794
  style: pe({ "--tint": T.color || "var(--el-color-primary)" })
@@ -1798,12 +1798,12 @@ const Ea = {
1798
1798
  src: T.avatar,
1799
1799
  alt: "",
1800
1800
  class: "emoo-msel__img"
1801
- }, null, 8, wl)) : (t(), s(D, { key: 1 }, [
1801
+ }, null, 8, Sl)) : (t(), s(D, { key: 1 }, [
1802
1802
  J(k(T.name[0]), 1)
1803
1803
  ], 64))
1804
1804
  ], 4),
1805
- u("span", Sl, k(T.name), 1),
1806
- T.dept ? (t(), s("span", Cl, 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)
1807
1807
  ])
1808
1808
  ]),
1809
1809
  _: 2
@@ -1835,7 +1835,7 @@ const Ea = {
1835
1835
  a(g) ? {
1836
1836
  name: "footer",
1837
1837
  fn: w(() => [
1838
- u("div", El, [
1838
+ u("div", Tl, [
1839
1839
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
1840
1840
  u("button", {
1841
1841
  type: "button",
@@ -1849,45 +1849,45 @@ const Ea = {
1849
1849
  } : void 0
1850
1850
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
1851
1851
  }
1852
- }), Zn = /* @__PURE__ */ Y(Tl, [["__scopeId", "data-v-f6059e7c"]]), xl = ["data-testid", "data-role"], Il = {
1852
+ }), Jn = /* @__PURE__ */ Y(xl, [["__scopeId", "data-v-f6059e7c"]]), Il = ["data-testid", "data-role"], zl = {
1853
1853
  key: 0,
1854
1854
  class: "emoo-message__side"
1855
- }, zl = {
1855
+ }, Rl = {
1856
1856
  key: 0,
1857
1857
  class: "emoo-message__avatar"
1858
- }, Rl = ["src"], Vl = { class: "emoo-message__main" }, Ml = {
1858
+ }, Vl = ["src"], Bl = { class: "emoo-message__main" }, Ml = {
1859
1859
  key: 0,
1860
1860
  class: "emoo-message__name"
1861
- }, Bl = ["data-status"], Dl = {
1861
+ }, Dl = ["data-status"], Pl = {
1862
1862
  key: 0,
1863
1863
  class: "emoo-message__dots",
1864
1864
  "aria-label": "loading",
1865
1865
  role: "status"
1866
- }, Pl = {
1866
+ }, Al = {
1867
1867
  key: 1,
1868
1868
  class: "emoo-message__stopped"
1869
- }, Al = {
1869
+ }, Ll = {
1870
1870
  key: 2,
1871
1871
  class: "emoo-message__error"
1872
- }, Ll = {
1872
+ }, Ol = {
1873
1873
  key: 4,
1874
1874
  class: "emoo-message__attachments"
1875
- }, Ol = {
1875
+ }, Ul = {
1876
1876
  key: 1,
1877
1877
  class: "emoo-message__foot"
1878
- }, Ul = {
1878
+ }, Hl = {
1879
1879
  key: 0,
1880
1880
  class: "emoo-message__time"
1881
- }, Hl = {
1881
+ }, Kl = {
1882
1882
  key: 1,
1883
1883
  class: "emoo-message__actions"
1884
- }, Kl = {
1884
+ }, Wl = {
1885
1885
  key: 1,
1886
1886
  class: "emoo-message__side"
1887
- }, Wl = {
1887
+ }, Fl = {
1888
1888
  key: 0,
1889
1889
  class: "emoo-message__avatar"
1890
- }, Fl = ["src"], Nl = /* @__PURE__ */ N({
1890
+ }, Nl = ["src"], ql = /* @__PURE__ */ N({
1891
1891
  __name: "EmooMessage",
1892
1892
  props: {
1893
1893
  role: {},
@@ -1905,53 +1905,53 @@ const Ea = {
1905
1905
  "data-testid": e.testid,
1906
1906
  "data-role": e.role
1907
1907
  }, [
1908
- e.role === "assistant" || e.role === "system" ? (t(), s("div", Il, [
1908
+ e.role === "assistant" || e.role === "system" ? (t(), s("div", zl, [
1909
1909
  A(o.$slots, "avatar", {}, () => [
1910
- e.avatar ? (t(), s("span", zl, [
1910
+ e.avatar ? (t(), s("span", Rl, [
1911
1911
  u("img", {
1912
1912
  src: e.avatar,
1913
1913
  alt: ""
1914
- }, null, 8, Rl)
1914
+ }, null, 8, Vl)
1915
1915
  ])) : S("", !0)
1916
1916
  ], !0)
1917
1917
  ])) : S("", !0),
1918
- u("div", Vl, [
1918
+ u("div", Bl, [
1919
1919
  e.role === "system" && e.name ? (t(), s("div", Ml, k(e.name), 1)) : S("", !0),
1920
1920
  u("div", {
1921
1921
  class: "emoo-message__body",
1922
1922
  "data-status": e.status
1923
1923
  }, [
1924
- e.status === "loading" ? (t(), s("span", Dl, [...l[0] || (l[0] = [
1924
+ e.status === "loading" ? (t(), s("span", Pl, [...l[0] || (l[0] = [
1925
1925
  u("i", null, null, -1),
1926
1926
  u("i", null, null, -1),
1927
1927
  u("i", null, null, -1)
1928
- ])])) : e.status === "stopped" ? (t(), s("span", Pl, k(a(n)("common.emooMessage.stopped")), 1)) : e.status === "error" ? (t(), s("span", Al, 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", {}, () => [
1929
1929
  J(k(e.text), 1)
1930
1930
  ], !0, 3),
1931
- o.$slots.attachments ? (t(), s("div", Ll, [
1931
+ o.$slots.attachments ? (t(), s("div", Ol, [
1932
1932
  A(o.$slots, "attachments", {}, void 0, !0)
1933
1933
  ])) : S("", !0)
1934
- ], 8, Bl),
1935
- e.time || o.$slots.actions ? (t(), s("div", Ol, [
1936
- e.time ? (t(), s("span", Ul, k(e.time), 1)) : S("", !0),
1937
- o.$slots.actions ? (t(), s("span", Hl, [
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, [
1938
1938
  A(o.$slots, "actions", {}, void 0, !0)
1939
1939
  ])) : S("", !0)
1940
1940
  ])) : S("", !0)
1941
1941
  ]),
1942
- e.role === "user" ? (t(), s("div", Kl, [
1942
+ e.role === "user" ? (t(), s("div", Wl, [
1943
1943
  A(o.$slots, "avatar", {}, () => [
1944
- e.avatar ? (t(), s("span", Wl, [
1944
+ e.avatar ? (t(), s("span", Fl, [
1945
1945
  u("img", {
1946
1946
  src: e.avatar,
1947
1947
  alt: ""
1948
- }, null, 8, Fl)
1948
+ }, null, 8, Nl)
1949
1949
  ])) : S("", !0)
1950
1950
  ], !0)
1951
1951
  ])) : S("", !0)
1952
- ], 10, xl));
1952
+ ], 10, Il));
1953
1953
  }
1954
- }), Jn = /* @__PURE__ */ Y(Nl, [["__scopeId", "data-v-fca7a127"]]), ql = /* @__PURE__ */ N({
1954
+ }), Yn = /* @__PURE__ */ Y(ql, [["__scopeId", "data-v-fca7a127"]]), jl = /* @__PURE__ */ N({
1955
1955
  __name: "EmooNavMenu",
1956
1956
  props: {
1957
1957
  items: {},
@@ -2001,10 +2001,10 @@ const Ea = {
2001
2001
  ie(d),
2002
2002
  X(d)
2003
2003
  ]);
2004
- const B = $(d), se = T === 0 ? ve("button", {
2004
+ const M = $(d), se = T === 0 ? ve("button", {
2005
2005
  type: "button",
2006
- class: ["menu-group-title", { "is-open": B }],
2007
- "aria-expanded": String(B),
2006
+ class: ["menu-group-title", { "is-open": M }],
2007
+ "aria-expanded": String(M),
2008
2008
  "aria-controls": I(d),
2009
2009
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
2010
2010
  onClick: (ne) => {
@@ -2017,8 +2017,8 @@ const Ea = {
2017
2017
  ve(Ge, { class: "tree-caret" })
2018
2018
  ]) : ve("button", {
2019
2019
  type: "button",
2020
- class: ["child-menu-item", "menu-group-child-title", { "is-open": B }],
2021
- "aria-expanded": String(B),
2020
+ class: ["child-menu-item", "menu-group-child-title", { "is-open": M }],
2021
+ "aria-expanded": String(M),
2022
2022
  "aria-controls": I(d),
2023
2023
  "data-testid": d.testid ? `${d.testid}-group` : void 0,
2024
2024
  onClick: (ne) => {
@@ -2032,7 +2032,7 @@ const Ea = {
2032
2032
  se,
2033
2033
  ve("div", {
2034
2034
  id: I(d),
2035
- class: ["children-container", { expanded: B }],
2035
+ class: ["children-container", { expanded: M }],
2036
2036
  role: "group",
2037
2037
  "aria-label": v(d)
2038
2038
  }, b(d).map((ne) => [
@@ -2044,12 +2044,12 @@ const Ea = {
2044
2044
  return (d, T) => (t(), s("nav", {
2045
2045
  class: W(["emoo-nav", { "is-touch": e.touch }])
2046
2046
  }, [
2047
- (t(!0), s(D, null, Z(c.value, (B) => (t(), x(Ie(ee(B, 0)), {
2048
- key: B.key
2047
+ (t(!0), s(D, null, Z(c.value, (M) => (t(), x(Ie(ee(M, 0)), {
2048
+ key: M.key
2049
2049
  }))), 128))
2050
2050
  ], 2));
2051
2051
  }
2052
- }), Yn = /* @__PURE__ */ Y(ql, [["__scopeId", "data-v-ebbf674d"]]), jl = { class: "emoo-nav-segmented" }, Gl = ["onClick"], Xl = /* @__PURE__ */ N({
2052
+ }), Qn = /* @__PURE__ */ Y(jl, [["__scopeId", "data-v-ebbf674d"]]), Gl = { class: "emoo-nav-segmented" }, Xl = ["onClick"], Zl = /* @__PURE__ */ N({
2053
2053
  __name: "EmooNavSegmented",
2054
2054
  props: {
2055
2055
  items: {},
@@ -2061,7 +2061,7 @@ const Ea = {
2061
2061
  const o = e, l = n, { t: r } = me(), i = (v) => typeof v.title == "string" ? r(v.title) : v.title, p = (v) => {
2062
2062
  l("select", v), v.path && o.navigate?.(v.path);
2063
2063
  };
2064
- return (v, g) => (t(), s("nav", jl, [
2064
+ return (v, g) => (t(), s("nav", Gl, [
2065
2065
  (t(!0), s(D, null, Z(e.items, (c) => (t(), s("button", {
2066
2066
  key: c.key,
2067
2067
  type: "button",
@@ -2073,10 +2073,10 @@ const Ea = {
2073
2073
  "aria-hidden": "true"
2074
2074
  })) : S("", !0),
2075
2075
  u("span", null, k(i(c)), 1)
2076
- ], 10, Gl))), 128))
2076
+ ], 10, Xl))), 128))
2077
2077
  ]));
2078
2078
  }
2079
- }), Qn = /* @__PURE__ */ Y(Xl, [["__scopeId", "data-v-a88dea1a"]]), Zl = /* @__PURE__ */ N({
2079
+ }), ei = /* @__PURE__ */ Y(Zl, [["__scopeId", "data-v-a88dea1a"]]), Jl = /* @__PURE__ */ N({
2080
2080
  __name: "EmooOptionRows",
2081
2081
  props: {
2082
2082
  options: {},
@@ -2104,7 +2104,7 @@ const Ea = {
2104
2104
  key: 0,
2105
2105
  class: W(["emoo-option-rows__choices", { "emoo-option-rows__choices--inline": e.inline }])
2106
2106
  }, [
2107
- P(ia, {
2107
+ P(ra, {
2108
2108
  class: "emoo-option-rows__select",
2109
2109
  options: e.options,
2110
2110
  "model-value": e.modelValue,
@@ -2161,21 +2161,21 @@ const Ea = {
2161
2161
  A(v.$slots, "append", {}, void 0, !0)
2162
2162
  ], 2));
2163
2163
  }
2164
- }), ei = /* @__PURE__ */ Y(Zl, [["__scopeId", "data-v-44e7d258"]]), Jl = {
2164
+ }), ti = /* @__PURE__ */ Y(Jl, [["__scopeId", "data-v-44e7d258"]]), Yl = {
2165
2165
  key: 0,
2166
2166
  class: "emt-foot",
2167
2167
  "data-testid": "emt-foot"
2168
- }, Yl = { class: "emt-foot__info" }, Ql = { class: "emt-foot__right" }, es = ["aria-label"], ts = {
2168
+ }, Ql = { class: "emt-foot__info" }, es = { class: "emt-foot__right" }, ts = ["aria-label"], os = {
2169
2169
  class: "emt-foot__size",
2170
2170
  type: "button",
2171
2171
  "data-testid": "emt-pagesize"
2172
- }, os = { class: "emt-colmenu__list" }, as = { class: "emt-tick" }, ls = {
2172
+ }, as = { class: "emt-colmenu__list" }, ls = { class: "emt-tick" }, ss = {
2173
2173
  class: "emt-pager",
2174
2174
  "data-testid": "emt-pager"
2175
- }, ss = ["disabled", "aria-label"], ns = ["data-testid", "onClick"], is = {
2175
+ }, ns = ["disabled", "aria-label"], is = ["data-testid", "onClick"], rs = {
2176
2176
  key: 1,
2177
2177
  class: "emt-pager__btn is-ellipsis"
2178
- }, rs = ["disabled", "aria-label"], ds = /* @__PURE__ */ N({
2178
+ }, ds = ["disabled", "aria-label"], us = /* @__PURE__ */ N({
2179
2179
  __name: "EmooPagination",
2180
2180
  props: {
2181
2181
  total: {},
@@ -2202,9 +2202,9 @@ const Ea = {
2202
2202
  const V = R(
2203
2203
  () => o.density === "compact" ? r(o.densityBase === "comfort" ? "common.emooTable.switchToComfort" : "common.emooTable.switchToStandard") : r("common.emooTable.switchToCompact")
2204
2204
  );
2205
- return (E, $) => e.total > 0 ? (t(), s("footer", Jl, [
2206
- u("span", Yl, k(a(r)("common.emooTable.totalInfo", { total: c(e.total), from: c(v.value), to: c(g.value) })), 1),
2207
- u("div", Ql, [
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, [
2208
2208
  e.density ? (t(), x(he, {
2209
2209
  key: 0,
2210
2210
  content: V.value,
@@ -2222,7 +2222,7 @@ const Ea = {
2222
2222
  size: 14,
2223
2223
  "aria-hidden": "true"
2224
2224
  })
2225
- ], 10, es)
2225
+ ], 10, ts)
2226
2226
  ]),
2227
2227
  _: 1
2228
2228
  }, 8, ["content"])) : S("", !0),
@@ -2233,7 +2233,7 @@ const Ea = {
2233
2233
  onCommand: $[1] || ($[1] = (I) => y(Number(I)))
2234
2234
  }, {
2235
2235
  dropdown: w(() => [
2236
- u("div", os, [
2236
+ u("div", as, [
2237
2237
  (t(!0), s(D, null, Z(e.pageSizes, (I) => (t(), x(a(no), {
2238
2238
  key: I,
2239
2239
  class: W(["emt-colmenu__item", { "is-on": I === e.pageSize }]),
@@ -2241,7 +2241,7 @@ const Ea = {
2241
2241
  "data-testid": `emt-pagesize-${I}`
2242
2242
  }, {
2243
2243
  default: w(() => [
2244
- u("span", as, [
2244
+ u("span", ls, [
2245
2245
  I === e.pageSize ? (t(), x(a(Dt), {
2246
2246
  key: 0,
2247
2247
  size: 13,
@@ -2255,7 +2255,7 @@ const Ea = {
2255
2255
  ])
2256
2256
  ]),
2257
2257
  default: w(() => [
2258
- u("button", ts, [
2258
+ u("button", os, [
2259
2259
  J(k(a(r)("common.emooTable.perPage", { n: e.pageSize })) + " ", 1),
2260
2260
  P(a(rt), {
2261
2261
  size: 11,
@@ -2265,7 +2265,7 @@ const Ea = {
2265
2265
  ]),
2266
2266
  _: 1
2267
2267
  }),
2268
- u("div", ls, [
2268
+ u("div", ss, [
2269
2269
  u("button", {
2270
2270
  class: "emt-pager__btn",
2271
2271
  type: "button",
@@ -2278,7 +2278,7 @@ const Ea = {
2278
2278
  size: 14,
2279
2279
  "aria-hidden": "true"
2280
2280
  })
2281
- ], 8, ss),
2281
+ ], 8, ns),
2282
2282
  (t(!0), s(D, null, Z(b.value, (I, z) => (t(), s(D, { key: z }, [
2283
2283
  typeof I == "number" ? (t(), s("button", {
2284
2284
  key: 0,
@@ -2286,7 +2286,7 @@ const Ea = {
2286
2286
  type: "button",
2287
2287
  "data-testid": `emt-page-${I}`,
2288
2288
  onClick: (j) => _(I)
2289
- }, k(I), 11, ns)) : (t(), s("span", is, "…"))
2289
+ }, k(I), 11, is)) : (t(), s("span", rs, "…"))
2290
2290
  ], 64))), 128)),
2291
2291
  u("button", {
2292
2292
  class: "emt-pager__btn",
@@ -2300,12 +2300,12 @@ const Ea = {
2300
2300
  size: 14,
2301
2301
  "aria-hidden": "true"
2302
2302
  })
2303
- ], 8, rs)
2303
+ ], 8, ds)
2304
2304
  ])
2305
2305
  ])
2306
2306
  ])) : S("", !0);
2307
2307
  }
2308
- }), us = /* @__PURE__ */ Y(ds, [["__scopeId", "data-v-fc98e78c"]]), ti = /* @__PURE__ */ N({
2308
+ }), cs = /* @__PURE__ */ Y(us, [["__scopeId", "data-v-fc98e78c"]]), oi = /* @__PURE__ */ N({
2309
2309
  __name: "EmooPopover",
2310
2310
  props: {
2311
2311
  popperClass: { default: "" },
@@ -2331,13 +2331,13 @@ const Ea = {
2331
2331
  } : void 0
2332
2332
  ]), 1040, ["show-arrow", "popper-class"]));
2333
2333
  }
2334
- }), cs = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], ms = {
2334
+ }), ms = ["aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], vs = {
2335
2335
  class: "emoo-progress__track",
2336
2336
  "aria-hidden": "true"
2337
- }, vs = {
2337
+ }, fs = {
2338
2338
  key: 0,
2339
2339
  class: "emoo-progress__label"
2340
- }, fs = /* @__PURE__ */ N({
2340
+ }, hs = /* @__PURE__ */ N({
2341
2341
  __name: "EmooProgress",
2342
2342
  props: {
2343
2343
  value: { default: null },
@@ -2364,23 +2364,23 @@ const Ea = {
2364
2364
  "aria-valuenow": l.value ? void 0 : r.value,
2365
2365
  "aria-valuetext": p.value
2366
2366
  }, [
2367
- u("span", ms, [
2367
+ u("span", vs, [
2368
2368
  u("span", {
2369
2369
  class: "emoo-progress__fill",
2370
2370
  style: pe(i.value)
2371
2371
  }, null, 4)
2372
2372
  ]),
2373
- e.label ? (t(), s("span", vs, k(e.label), 1)) : S("", !0)
2374
- ], 10, cs));
2373
+ e.label ? (t(), s("span", fs, k(e.label), 1)) : S("", !0)
2374
+ ], 10, ms));
2375
2375
  }
2376
- }), hs = /* @__PURE__ */ Y(fs, [["__scopeId", "data-v-cab4f706"]]), ps = { class: "emoo-rsel__opt" }, ys = ["src"], bs = { class: "emoo-rsel__col" }, gs = { class: "emoo-rsel__name" }, ks = {
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 = {
2377
2377
  key: 0,
2378
2378
  class: "emoo-rsel__desc"
2379
- }, $s = {
2379
+ }, _s = {
2380
2380
  class: "emoo-sel-remote-error",
2381
2381
  role: "alert",
2382
2382
  "data-testid": "remote-error"
2383
- }, _s = /* @__PURE__ */ N({
2383
+ }, ws = /* @__PURE__ */ N({
2384
2384
  __name: "EmooRoleSelect",
2385
2385
  props: {
2386
2386
  modelValue: {},
@@ -2394,7 +2394,7 @@ const Ea = {
2394
2394
  },
2395
2395
  emits: ["update:modelValue", "update:selected"],
2396
2396
  setup(e, { emit: n }) {
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 } = Me(() => o.source, "emoo-rsel-popper"), { mergedOptions: V, 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(
2398
2398
  () => o.modelValue,
2399
2399
  () => i.value ? p.value : o.options ?? [],
2400
2400
  () => o.selected ?? []
@@ -2403,7 +2403,7 @@ const Ea = {
2403
2403
  l("update:modelValue", d), l("update:selected", T);
2404
2404
  }, ee = (d) => {
2405
2405
  const T = E.value[d]?.id;
2406
- T !== void 0 && ie(o.modelValue.filter((B) => B !== T));
2406
+ T !== void 0 && ie(o.modelValue.filter((M) => M !== T));
2407
2407
  };
2408
2408
  return (d, T) => (t(), x(a(Ae), {
2409
2409
  class: "emoo-rsel",
@@ -2421,29 +2421,29 @@ const Ea = {
2421
2421
  onVisibleChange: a(_)
2422
2422
  }, Se({
2423
2423
  default: w(() => [
2424
- (t(!0), s(D, null, Z(a(V), (B) => (t(), x(a(ze), {
2425
- key: B.id,
2426
- label: B.name,
2427
- 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
2428
2428
  }, {
2429
2429
  default: w(() => [
2430
- u("span", ps, [
2430
+ u("span", ys, [
2431
2431
  u("span", {
2432
2432
  class: "emoo-rsel__avatar",
2433
- style: pe({ "--tint": B.color || "var(--el-color-primary)" })
2433
+ style: pe({ "--tint": M.color || "var(--el-color-primary)" })
2434
2434
  }, [
2435
- B.avatar ? (t(), s("img", {
2435
+ M.avatar ? (t(), s("img", {
2436
2436
  key: 0,
2437
- src: B.avatar,
2437
+ src: M.avatar,
2438
2438
  alt: "",
2439
2439
  class: "emoo-rsel__img"
2440
- }, null, 8, ys)) : (t(), s(D, { key: 1 }, [
2441
- J(k(B.name[0]), 1)
2440
+ }, null, 8, bs)) : (t(), s(D, { key: 1 }, [
2441
+ J(k(M.name[0]), 1)
2442
2442
  ], 64))
2443
2443
  ], 4),
2444
- u("span", bs, [
2445
- u("span", gs, k(B.name), 1),
2446
- B.desc ? (t(), s("span", ks, 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)
2447
2447
  ])
2448
2448
  ])
2449
2449
  ]),
@@ -2465,10 +2465,10 @@ const Ea = {
2465
2465
  key: "1"
2466
2466
  } : {
2467
2467
  name: "label",
2468
- fn: w(({ value: B }) => [
2469
- I(B) ? (t(), x(xe, {
2468
+ fn: w(({ value: M }) => [
2469
+ I(M) ? (t(), x(xe, {
2470
2470
  key: 0,
2471
- items: [X(I(B))]
2471
+ items: [X(I(M))]
2472
2472
  }, null, 8, ["items"])) : S("", !0)
2473
2473
  ]),
2474
2474
  key: "0"
@@ -2476,13 +2476,13 @@ const Ea = {
2476
2476
  a(g) ? {
2477
2477
  name: "footer",
2478
2478
  fn: w(() => [
2479
- u("div", $s, [
2479
+ u("div", _s, [
2480
2480
  u("span", null, k(a(r)("common.emooSelect.loadFailed")), 1),
2481
2481
  u("button", {
2482
2482
  type: "button",
2483
2483
  "data-testid": "remote-retry",
2484
2484
  onClick: T[0] || (T[0] = //@ts-ignore
2485
- (...B) => a(c) && a(c)(...B))
2485
+ (...M) => a(c) && a(c)(...M))
2486
2486
  }, k(a(r)("common.emooSelect.retry")), 1)
2487
2487
  ])
2488
2488
  ]),
@@ -2490,19 +2490,19 @@ const Ea = {
2490
2490
  } : void 0
2491
2491
  ]), 1032, ["model-value", "multiple", "placeholder", "clearable", "remote", "remote-method", "loading", "popper-class", "onVisibleChange"]));
2492
2492
  }
2493
- }), oi = /* @__PURE__ */ Y(_s, [["__scopeId", "data-v-6c4ae65a"]]), ws = {
2493
+ }), ai = /* @__PURE__ */ Y(ws, [["__scopeId", "data-v-6c4ae65a"]]), Ss = {
2494
2494
  key: 1,
2495
2495
  class: "emoo-search-box__top"
2496
- }, Ss = {
2496
+ }, Cs = {
2497
2497
  key: 2,
2498
2498
  class: "emoo-search-box__extras"
2499
- }, Cs = { class: "emoo-search-box__field" }, Es = {
2499
+ }, Es = { class: "emoo-search-box__field" }, Ts = {
2500
2500
  key: 3,
2501
2501
  class: "emoo-search-box__bar"
2502
- }, Ts = {
2502
+ }, xs = {
2503
2503
  key: 0,
2504
2504
  class: "emoo-search-box__trailing"
2505
- }, xs = /* @__PURE__ */ N({
2505
+ }, Is = /* @__PURE__ */ N({
2506
2506
  __name: "EmooSearchBox",
2507
2507
  props: {
2508
2508
  variant: { default: "composer" },
@@ -2531,24 +2531,24 @@ const Ea = {
2531
2531
  ]),
2532
2532
  _: 1
2533
2533
  }, 8, ["content"])) : S("", !0),
2534
- r.$slots.top ? (t(), s("div", ws, [
2534
+ r.$slots.top ? (t(), s("div", Ss, [
2535
2535
  A(r.$slots, "top", {}, void 0, !0)
2536
2536
  ])) : S("", !0),
2537
- r.$slots.extras ? (t(), s("div", Ss, [
2537
+ r.$slots.extras ? (t(), s("div", Cs, [
2538
2538
  A(r.$slots, "extras", {}, void 0, !0)
2539
2539
  ])) : S("", !0),
2540
- u("div", Cs, [
2540
+ u("div", Es, [
2541
2541
  A(r.$slots, "default", {}, void 0, !0)
2542
2542
  ]),
2543
- r.$slots.bar || r.$slots.trailing ? (t(), s("div", Es, [
2543
+ r.$slots.bar || r.$slots.trailing ? (t(), s("div", Ts, [
2544
2544
  A(r.$slots, "bar", {}, void 0, !0),
2545
- r.$slots.trailing ? (t(), s("div", Ts, [
2545
+ r.$slots.trailing ? (t(), s("div", xs, [
2546
2546
  A(r.$slots, "trailing", {}, void 0, !0)
2547
2547
  ])) : S("", !0)
2548
2548
  ])) : S("", !0)
2549
2549
  ], 2));
2550
2550
  }
2551
- }), ai = /* @__PURE__ */ Y(xs, [["__scopeId", "data-v-98479d22"]]), Is = ["aria-label"], zs = ["aria-pressed", "aria-label", "disabled", "onClick"], Rs = { key: 1 }, Vs = {
2551
+ }), li = /* @__PURE__ */ Y(Is, [["__scopeId", "data-v-98479d22"]]), zs = ["aria-label"], Rs = ["aria-pressed", "aria-label", "disabled", "onClick"], Vs = { key: 1 }, Bs = {
2552
2552
  key: 2,
2553
2553
  class: "emoo-segmented__count"
2554
2554
  }, Ms = /* @__PURE__ */ N({
@@ -2585,12 +2585,12 @@ const Ea = {
2585
2585
  size: r.value,
2586
2586
  "aria-hidden": "true"
2587
2587
  }, null, 8, ["size"])) : S("", !0),
2588
- c.label ? (t(), s("span", Rs, k(c.label), 1)) : S("", !0),
2589
- c.count !== void 0 ? (t(), s("span", Vs, k(c.count), 1)) : S("", !0)
2590
- ], 10, zs))), 128))
2591
- ], 10, Is));
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));
2592
2592
  }
2593
- }), li = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-bcd69b5a"]]), Bs = /* @__PURE__ */ N({
2593
+ }), si = /* @__PURE__ */ Y(Ms, [["__scopeId", "data-v-bcd69b5a"]]), Ds = /* @__PURE__ */ N({
2594
2594
  __name: "EmooSidebarShell",
2595
2595
  props: {
2596
2596
  collapsed: { type: Boolean, default: !1 },
@@ -2613,7 +2613,7 @@ const Ea = {
2613
2613
  A(l.$slots, "footer", {}, void 0, !0)
2614
2614
  ], 6));
2615
2615
  }
2616
- }), si = /* @__PURE__ */ Y(Bs, [["__scopeId", "data-v-8f94cc28"]]), Ds = /* @__PURE__ */ N({
2616
+ }), ni = /* @__PURE__ */ Y(Ds, [["__scopeId", "data-v-8f94cc28"]]), Ps = /* @__PURE__ */ N({
2617
2617
  __name: "EmooStatusTag",
2618
2618
  props: {
2619
2619
  tone: {},
@@ -2626,10 +2626,10 @@ const Ea = {
2626
2626
  A(n.$slots, "default", {}, void 0, !0)
2627
2627
  ], 2));
2628
2628
  }
2629
- }), Ps = /* @__PURE__ */ Y(Ds, [["__scopeId", "data-v-9c6a9ab7"]]), As = { class: "emoo-switcher" }, Ls = {
2629
+ }), As = /* @__PURE__ */ Y(Ps, [["__scopeId", "data-v-9c6a9ab7"]]), Ls = { class: "emoo-switcher" }, Os = {
2630
2630
  key: 0,
2631
2631
  class: "switcher-title"
2632
- }, Os = ["data-testid", "onClick"], Us = ["src", "alt"], Hs = { class: "switcher-label" }, Ks = /* @__PURE__ */ N({
2632
+ }, Us = ["data-testid", "onClick"], Hs = ["src", "alt"], Ks = { class: "switcher-label" }, Ws = /* @__PURE__ */ N({
2633
2633
  __name: "EmooSwitcherPanel",
2634
2634
  props: {
2635
2635
  title: {},
@@ -2641,8 +2641,8 @@ const Ea = {
2641
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) => {
2642
2642
  l("select", c), c.action?.();
2643
2643
  };
2644
- return (c, b) => (t(), s("div", As, [
2645
- e.title ? (t(), s("p", Ls, 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),
2646
2646
  u("div", {
2647
2647
  class: W(["switcher-list", { "is-scrollable": e.scrollable }])
2648
2648
  }, [
@@ -2658,20 +2658,20 @@ const Ea = {
2658
2658
  src: _.image,
2659
2659
  alt: i(_),
2660
2660
  class: "switcher-image"
2661
- }, null, 8, Us)) : _.icon ? (t(), x(Ie(_.icon), {
2661
+ }, null, 8, Hs)) : _.icon ? (t(), x(Ie(_.icon), {
2662
2662
  key: 1,
2663
2663
  class: "ic"
2664
2664
  })) : S("", !0),
2665
- u("span", Hs, k(i(_)), 1),
2665
+ u("span", Ks, k(i(_)), 1),
2666
2666
  _.active ? (t(), x(a(Dt), {
2667
2667
  key: 2,
2668
2668
  class: "switcher-check"
2669
2669
  })) : S("", !0)
2670
- ], 10, Os))), 128))
2670
+ ], 10, Us))), 128))
2671
2671
  ], 2)
2672
2672
  ]));
2673
2673
  }
2674
- }), ni = /* @__PURE__ */ Y(Ks, [["__scopeId", "data-v-a2309e72"]]), Ws = /* @__PURE__ */ N({
2674
+ }), ii = /* @__PURE__ */ Y(Ws, [["__scopeId", "data-v-a2309e72"]]), Fs = /* @__PURE__ */ N({
2675
2675
  __name: "EmooTagsInput",
2676
2676
  props: {
2677
2677
  modelValue: { default: () => [] },
@@ -2739,8 +2739,8 @@ const Ea = {
2739
2739
  ], 64)) : S("", !0)
2740
2740
  ], 2));
2741
2741
  }
2742
- }), ii = /* @__PURE__ */ Y(Ws, [["__scopeId", "data-v-2b248a6f"]]), Fs = 140, at = 64;
2743
- function Ns(e) {
2742
+ }), ri = /* @__PURE__ */ Y(Fs, [["__scopeId", "data-v-2b248a6f"]]), Ns = 140, at = 64;
2743
+ function qs(e) {
2744
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) => {
2745
2745
  if (!Array.isArray(C)) return l();
2746
2746
  const L = /* @__PURE__ */ new Map(), Q = [];
@@ -2749,7 +2749,7 @@ function Ns(e) {
2749
2749
  const G = O;
2750
2750
  !G.key || !e.columns().some((oe) => oe.key === G.key) || (L.set(G.key, G), Q.push(G.key));
2751
2751
  }
2752
- 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) => {
2753
2753
  const G = L.get(O.key);
2754
2754
  return {
2755
2755
  key: O.key,
@@ -2758,7 +2758,7 @@ function Ns(e) {
2758
2758
  width: typeof G?.width == "number" && G.width >= n ? Math.round(G.width) : void 0
2759
2759
  };
2760
2760
  });
2761
- 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));
2762
2762
  }, i = (C) => !!C && typeof C == "object" && typeof C.key == "string" && (C.order === "ascending" || C.order === "descending"), p = () => {
2763
2763
  if (!e.storageKey) return { columns: l() };
2764
2764
  try {
@@ -2783,7 +2783,7 @@ function Ns(e) {
2783
2783
  const C = {
2784
2784
  columns: g.value,
2785
2785
  pageSize: c.value,
2786
- 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,
2787
2787
  density: b.value
2788
2788
  };
2789
2789
  localStorage.setItem(e.storageKey, JSON.stringify(C));
@@ -2795,12 +2795,12 @@ function Ns(e) {
2795
2795
  },
2796
2796
  { deep: !0 }
2797
2797
  );
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) >= Fs, j = (C) => {
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
2799
  V.value <= 1 || (C.visible = !1);
2800
2800
  }, X = () => {
2801
2801
  g.value = l();
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 ?? ""), B = U(d?.order ?? null), se = () => v.sort && ie(v.sort) ? v.sort : null;
2803
- 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(
2804
2804
  () => e.columns().map((C) => C.key).join(","),
2805
2805
  () => {
2806
2806
  g.value = p().columns;
@@ -2815,29 +2815,29 @@ function Ns(e) {
2815
2815
  ae.fixed === "left" ? L && (ae.fixed = "") : L = !0;
2816
2816
  let Q = !1;
2817
2817
  for (let ae = C.length - 1; ae >= 0; ae--) {
2818
- const M = C[ae];
2819
- M.fixed === "right" ? Q && (M.fixed = "") : Q = !0;
2818
+ const B = C[ae];
2819
+ B.fixed === "right" ? Q && (B.fixed = "") : Q = !0;
2820
2820
  }
2821
2821
  }, q = (C) => {
2822
2822
  for (const L of g.value) L.fixed === C && (L.fixed = "");
2823
2823
  }, de = (C) => {
2824
2824
  C.fixed && q(C.fixed);
2825
2825
  }, ce = (C, L) => {
2826
- const Q = y.value, ae = Q.findIndex((M) => M.key === C.key);
2827
- ae < 0 || (Q.forEach((M, O) => {
2828
- (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 = "");
2829
2829
  }), ye());
2830
2830
  }, H = (C) => {
2831
2831
  const L = y.value;
2832
2832
  if (C === "left") {
2833
2833
  let Q = -1;
2834
- return L.forEach((ae, M) => {
2835
- ae.fixed === "left" && (Q = M);
2834
+ return L.forEach((ae, B) => {
2835
+ ae.fixed === "left" && (Q = B);
2836
2836
  }), Q;
2837
2837
  }
2838
2838
  return L.findIndex((Q) => Q.fixed === "right");
2839
2839
  }, te = (C, L) => {
2840
- const ae = y.value.findIndex((M) => M.key === C.key);
2840
+ const ae = y.value.findIndex((B) => B.key === C.key);
2841
2841
  if (C.fixed !== L) {
2842
2842
  ce(C, L);
2843
2843
  return;
@@ -2850,7 +2850,7 @@ function Ns(e) {
2850
2850
  pageSize: c,
2851
2851
  density: b,
2852
2852
  sortKey: T,
2853
- sortOrder: B,
2853
+ sortOrder: M,
2854
2854
  effectiveStoredSort: se,
2855
2855
  prefs: v,
2856
2856
  storageSort: ee,
@@ -2885,7 +2885,7 @@ function Ns(e) {
2885
2885
  }
2886
2886
  };
2887
2887
  }
2888
- const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "onDragleave", "onDrop"], Gs = ["aria-label", "data-testid", "onDragstart"], Xs = { class: "emt-th__label" }, Zs = ["data-testid", "onClick"], Js = { class: "emt-th__tools" }, Ys = ["data-testid", "onClick"], Qs = ["disabled", "data-testid", "onClick"], en = ["title", "aria-label", "data-testid"], tn = ["data-testid", "onMousedown"], on = ["aria-label"], an = ["aria-label"], ln = ["aria-label"], sn = /* @__PURE__ */ N({
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({
2889
2889
  __name: "EmooTable",
2890
2890
  props: {
2891
2891
  data: {},
@@ -2930,7 +2930,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
2930
2930
  visibleCount: ee,
2931
2931
  colWidth: d,
2932
2932
  colMinWidth: T,
2933
- isWide: B,
2933
+ isWide: M,
2934
2934
  hideColumn: se,
2935
2935
  resetColumns: ne,
2936
2936
  normalizeColumns: ye,
@@ -2938,7 +2938,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
2938
2938
  pinEdge: de,
2939
2939
  togglePinSide: ce,
2940
2940
  togglePinSmart: H
2941
- } = Ns({
2941
+ } = qs({
2942
2942
  columns: () => r.columns,
2943
2943
  storageKey: r.storageKey,
2944
2944
  defaultPageSize: r.defaultPageSize,
@@ -2960,7 +2960,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
2960
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");
2961
2961
  }, C = U(""), L = U(""), Q = U("left"), ae = (h, m) => {
2962
2962
  C.value = h.key, m.dataTransfer && (m.dataTransfer.effectAllowed = "move", m.dataTransfer.setData("text/plain", h.key));
2963
- }, M = () => {
2963
+ }, B = () => {
2964
2964
  C.value = "", L.value = "";
2965
2965
  }, O = (h, m) => {
2966
2966
  if (!C.value) return;
@@ -2977,7 +2977,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
2977
2977
  !f || f.contains(m.relatedTarget) || (L.value = "");
2978
2978
  }, oe = (h) => {
2979
2979
  const m = _.value.findIndex((_e) => _e.key === C.value), f = _.value.findIndex((_e) => _e.key === h.key), K = Q.value;
2980
- if (M(), m < 0 || f < 0 || m === f) return;
2980
+ if (B(), m < 0 || f < 0 || m === f) return;
2981
2981
  let ue = K === "left" ? f : f + 1;
2982
2982
  const [fe] = _.value.splice(m, 1);
2983
2983
  m < ue && (ue -= 1), _.value.splice(ue, 0, fe), ye();
@@ -3182,7 +3182,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3182
3182
  size: 12,
3183
3183
  "aria-hidden": "true"
3184
3184
  })
3185
- ], 40, qs)
3185
+ ], 40, js)
3186
3186
  ]),
3187
3187
  _: 2
3188
3188
  }, 1032, ["content"])
@@ -3232,17 +3232,17 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3232
3232
  onClick: m[1] || (m[1] = le(() => {
3233
3233
  }, ["stop"])),
3234
3234
  onDragstart: (K) => ae(f, K),
3235
- onDragend: M
3235
+ onDragend: B
3236
3236
  }, [
3237
3237
  P(a(wt), {
3238
3238
  size: 12,
3239
3239
  "aria-hidden": "true"
3240
3240
  })
3241
- ], 40, Gs)
3241
+ ], 40, Xs)
3242
3242
  ]),
3243
3243
  _: 2
3244
3244
  }, 1032, ["content"]),
3245
- u("span", Xs, k(v(f.key)?.label), 1),
3245
+ u("span", Zs, k(v(f.key)?.label), 1),
3246
3246
  A(h.$slots, `${f.key}-header`, {
3247
3247
  col: v(f.key)
3248
3248
  }, void 0, !0),
@@ -3273,13 +3273,13 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3273
3273
  class: "emt-th__sortidle",
3274
3274
  "aria-hidden": "true"
3275
3275
  }))
3276
- ], 8, Zs)
3276
+ ], 8, Js)
3277
3277
  ]),
3278
3278
  _: 2
3279
3279
  }, 1032, ["content"])) : S("", !0),
3280
3280
  m[13] || (m[13] = u("span", { class: "emt-th__spacer" }, null, -1)),
3281
- u("span", Js, [
3282
- a(B)(f) || f.fixed ? (t(), x(he, {
3281
+ u("span", Ys, [
3282
+ a(M)(f) || f.fixed ? (t(), x(he, {
3283
3283
  key: 0,
3284
3284
  content: F(f)
3285
3285
  }, {
@@ -3295,11 +3295,11 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3295
3295
  weight: f.fixed ? "fill" : void 0,
3296
3296
  "aria-hidden": "true"
3297
3297
  }, null, 8, ["weight"])
3298
- ], 10, Ys)
3298
+ ], 10, Qs)
3299
3299
  ]),
3300
3300
  _: 2
3301
3301
  }, 1032, ["content"])) : S("", !0),
3302
- a(B)(f) ? (t(), x(he, {
3302
+ a(M)(f) ? (t(), x(he, {
3303
3303
  key: 1,
3304
3304
  content: a(l)("common.emooTable.hideColumn")
3305
3305
  }, {
@@ -3315,11 +3315,11 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3315
3315
  size: 13,
3316
3316
  "aria-hidden": "true"
3317
3317
  })
3318
- ], 8, Qs)
3318
+ ], 8, en)
3319
3319
  ]),
3320
3320
  _: 2
3321
3321
  }, 1032, ["content"])) : S("", !0),
3322
- P(ya, {
3322
+ P(ba, {
3323
3323
  "col-key": f.key,
3324
3324
  sortable: v(f.key)?.sortable,
3325
3325
  sorted: a(E) === f.key ? a($) : null,
@@ -3350,12 +3350,12 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3350
3350
  onMousedown: m[3] || (m[3] = le(() => {
3351
3351
  }, ["stop"]))
3352
3352
  }, [
3353
- P(a(Bt), {
3353
+ P(a(Mt), {
3354
3354
  size: 14,
3355
3355
  weight: "bold",
3356
3356
  "aria-hidden": "true"
3357
3357
  })
3358
- ], 40, en)
3358
+ ], 40, tn)
3359
3359
  ]),
3360
3360
  _: 2
3361
3361
  }, 1032, ["col-key", "sortable", "sorted", "fixed", "can-hide", "hidden", "onSort", "onUnpin", "onPin", "onHide"])
@@ -3371,11 +3371,11 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3371
3371
  onMousedown: (K) => jt(f.key, K),
3372
3372
  onClick: m[5] || (m[5] = le(() => {
3373
3373
  }, ["stop"]))
3374
- }, null, 40, tn)
3374
+ }, null, 40, on)
3375
3375
  ]),
3376
3376
  _: 2
3377
3377
  }, 1032, ["content"])) : S("", !0)
3378
- ], 42, js)
3378
+ ], 42, Gs)
3379
3379
  ]),
3380
3380
  default: w(({ row: K, $index: ue }) => [
3381
3381
  ue !== -1 ? A(h.$slots, f.key, {
@@ -3417,7 +3417,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3417
3417
  size: 14,
3418
3418
  "aria-hidden": "true"
3419
3419
  })
3420
- ], 10, on), [
3420
+ ], 10, an), [
3421
3421
  [tt, bt.value]
3422
3422
  ])
3423
3423
  ]),
@@ -3438,7 +3438,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3438
3438
  size: 14,
3439
3439
  "aria-hidden": "true"
3440
3440
  })
3441
- ], 10, an), [
3441
+ ], 10, ln), [
3442
3442
  [tt, gt.value]
3443
3443
  ])
3444
3444
  ]),
@@ -3452,9 +3452,9 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3452
3452
  "data-testid": "emt-loading"
3453
3453
  }, [
3454
3454
  P(Kt, { size: 18 })
3455
- ], 8, ln)) : S("", !0)
3455
+ ], 8, sn)) : S("", !0)
3456
3456
  ], 34),
3457
- P(us, {
3457
+ P(cs, {
3458
3458
  total: e.total ?? 0,
3459
3459
  page: e.page ?? 1,
3460
3460
  "page-size": a(y),
@@ -3469,16 +3469,16 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3469
3469
  }, null, 8, ["total", "page", "page-size", "page-sizes", "density", "density-base"])
3470
3470
  ], 2));
3471
3471
  }
3472
- }), ri = /* @__PURE__ */ Y(sn, [["__scopeId", "data-v-bbdd9cda"]]), nn = { class: "emoo-upload" }, rn = ["tabindex", "aria-disabled", "aria-label", "onKeydown"], dn = { class: "emoo-upload__title" }, un = { class: "emoo-upload__browse" }, cn = {
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 = {
3473
3473
  key: 0,
3474
3474
  class: "emoo-upload__hint"
3475
- }, mn = ["accept", "multiple"], vn = ["data-testid"], fn = { class: "emoo-upload__meta" }, hn = ["disabled", "data-testid", "onClick"], pn = {
3475
+ }, vn = ["accept", "multiple"], fn = ["data-testid"], hn = { class: "emoo-upload__meta" }, pn = ["disabled", "data-testid", "onClick"], yn = {
3476
3476
  key: 0,
3477
3477
  class: "emoo-upload__sub"
3478
- }, yn = { class: "emoo-upload__err" }, bn = {
3478
+ }, bn = { class: "emoo-upload__err" }, gn = {
3479
3479
  key: 2,
3480
3480
  class: "emoo-upload__pct"
3481
- }, gn = /* @__PURE__ */ N({
3481
+ }, kn = /* @__PURE__ */ N({
3482
3482
  __name: "EmooUpload",
3483
3483
  props: {
3484
3484
  files: {},
@@ -3503,7 +3503,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3503
3503
  }, V = ($) => {
3504
3504
  p.value = !1, _(Array.from($.dataTransfer?.files ?? []));
3505
3505
  }, E = ($) => $ < 1024 ? `${$} B` : $ < 1024 * 1024 ? `${Math.round($ / 1024)} KB` : $ < 1024 * 1024 * 1024 ? `${($ / 1024 / 1024).toFixed(1)} MB` : `${($ / 1024 / 1024 / 1024).toFixed(1)} GB`;
3506
- return ($, I) => (t(), s("div", nn, [
3506
+ return ($, I) => (t(), s("div", rn, [
3507
3507
  e.readonly ? S("", !0) : (t(), s("div", {
3508
3508
  key: 0,
3509
3509
  class: W(["emoo-upload__drop", { "is-over": p.value, "is-disabled": e.disabled }]),
@@ -3524,11 +3524,11 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3524
3524
  class: "emoo-upload__ico",
3525
3525
  "aria-hidden": "true"
3526
3526
  }),
3527
- u("p", dn, [
3527
+ u("p", un, [
3528
3528
  J(k(a(r)("common.emooUpload.dropTitle")) + " ", 1),
3529
- u("span", un, k(a(r)("common.emooUpload.browse")), 1)
3529
+ u("span", cn, k(a(r)("common.emooUpload.browse")), 1)
3530
3530
  ]),
3531
- e.hint ? (t(), s("p", cn, k(e.hint), 1)) : S("", !0),
3531
+ e.hint ? (t(), s("p", mn, k(e.hint), 1)) : S("", !0),
3532
3532
  u("input", {
3533
3533
  ref_key: "inputRef",
3534
3534
  ref: i,
@@ -3537,8 +3537,8 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3537
3537
  accept: e.accept,
3538
3538
  multiple: e.multiple,
3539
3539
  onChange: y
3540
- }, null, 40, mn)
3541
- ], 42, rn)),
3540
+ }, null, 40, vn)
3541
+ ], 42, dn)),
3542
3542
  e.files.length ? (t(), s("ul", {
3543
3543
  key: 1,
3544
3544
  class: "emoo-upload__list",
@@ -3552,16 +3552,16 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3552
3552
  class: "emoo-upload__file-ico",
3553
3553
  "aria-hidden": "true"
3554
3554
  }),
3555
- u("div", fn, [
3555
+ u("div", hn, [
3556
3556
  u("button", {
3557
3557
  type: "button",
3558
3558
  class: "emoo-upload__name",
3559
3559
  disabled: e.disabled,
3560
3560
  "data-testid": `upload-preview-${j}`,
3561
3561
  onClick: (X) => l("preview", z)
3562
- }, k(z.name), 9, hn),
3563
- z.size != null ? (t(), s("span", pn, k(E(z.size)), 1)) : S("", !0),
3564
- v(z) === "uploading" ? (t(), x(hs, {
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, {
3565
3565
  key: 1,
3566
3566
  class: "emoo-upload__progress",
3567
3567
  size: "mini",
@@ -3569,7 +3569,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3569
3569
  value: z.progress ?? null
3570
3570
  }, null, 8, ["value"])) : S("", !0)
3571
3571
  ]),
3572
- v(z) === "done" ? (t(), x(Ps, {
3572
+ v(z) === "done" ? (t(), x(As, {
3573
3573
  key: 0,
3574
3574
  tone: "success"
3575
3575
  }, {
@@ -3578,7 +3578,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3578
3578
  ]),
3579
3579
  _: 1
3580
3580
  })) : v(z) === "failed" ? (t(), s(D, { key: 1 }, [
3581
- u("span", yn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3581
+ u("span", bn, k(z.error || a(r)("common.emooUpload.failed")), 1),
3582
3582
  e.readonly ? S("", !0) : (t(), x(De, {
3583
3583
  key: 0,
3584
3584
  variant: "text",
@@ -3586,14 +3586,14 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3586
3586
  onClick: (X) => l("retry", z)
3587
3587
  }, {
3588
3588
  icon: w(() => [
3589
- P(a(Mt))
3589
+ P(a(Bt))
3590
3590
  ]),
3591
3591
  default: w(() => [
3592
3592
  J(" " + k(a(r)("common.emooUpload.retry")), 1)
3593
3593
  ]),
3594
3594
  _: 1
3595
3595
  }, 8, ["onClick"]))
3596
- ], 64)) : v(z) === "uploading" && z.progress != null ? (t(), s("span", bn, 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),
3597
3597
  e.readonly ? S("", !0) : (t(), x(De, {
3598
3598
  key: 3,
3599
3599
  variant: "text",
@@ -3608,10 +3608,10 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3608
3608
  _: 1
3609
3609
  }, 8, ["aria-label", "onClick"]))
3610
3610
  ]))), 128))
3611
- ], 8, vn)) : S("", !0)
3611
+ ], 8, fn)) : S("", !0)
3612
3612
  ]));
3613
3613
  }
3614
- }), di = /* @__PURE__ */ Y(gn, [["__scopeId", "data-v-65eda28b"]]), kn = { class: "emoo-value-diff" }, $n = { class: "emoo-value-diff__old" }, _n = /* @__PURE__ */ N({
3614
+ }), ui = /* @__PURE__ */ Y(kn, [["__scopeId", "data-v-65eda28b"]]), $n = { class: "emoo-value-diff" }, _n = { class: "emoo-value-diff__old" }, wn = /* @__PURE__ */ N({
3615
3615
  __name: "EmooValueDiff",
3616
3616
  props: {
3617
3617
  value: {},
@@ -3619,9 +3619,9 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3619
3619
  },
3620
3620
  setup(e) {
3621
3621
  const n = e, o = R(() => !!n.old && n.old !== n.value);
3622
- return (l, r) => (t(), s("span", kn, [
3622
+ return (l, r) => (t(), s("span", $n, [
3623
3623
  o.value ? (t(), s(D, { key: 0 }, [
3624
- u("span", $n, k(e.old), 1),
3624
+ u("span", _n, k(e.old), 1),
3625
3625
  P(a(Co), {
3626
3626
  class: "emoo-value-diff__arrow",
3627
3627
  "aria-hidden": "true"
@@ -3632,21 +3632,21 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3632
3632
  }, k(e.value), 3)
3633
3633
  ]));
3634
3634
  }
3635
- }), ui = /* @__PURE__ */ Y(_n, [["__scopeId", "data-v-40f98722"]]), wn = {
3635
+ }), ci = /* @__PURE__ */ Y(wn, [["__scopeId", "data-v-40f98722"]]), Sn = {
3636
3636
  xmlns: "http://www.w3.org/2000/svg",
3637
3637
  viewBox: "0 0 256 256",
3638
3638
  width: "1em",
3639
3639
  height: "1em",
3640
3640
  fill: "currentColor"
3641
- }, ci = /* @__PURE__ */ N({
3641
+ }, mi = /* @__PURE__ */ N({
3642
3642
  __name: "IconChatCirclePlus",
3643
3643
  setup(e) {
3644
- return (n, o) => (t(), s("svg", wn, [...o[0] || (o[0] = [
3644
+ return (n, o) => (t(), s("svg", Sn, [...o[0] || (o[0] = [
3645
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),
3646
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)
3647
3647
  ])]));
3648
3648
  }
3649
- }), Sn = ["width", "height"], Cn = ["id"], En = ["mask"], mi = /* @__PURE__ */ N({
3649
+ }), Cn = ["width", "height"], En = ["id"], Tn = ["mask"], vi = /* @__PURE__ */ N({
3650
3650
  __name: "IconPaperPlanes",
3651
3651
  props: {
3652
3652
  size: { default: "1em" }
@@ -3687,7 +3687,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3687
3687
  "stroke-width": "3.5",
3688
3688
  "stroke-linejoin": "round"
3689
3689
  }, null, -1)
3690
- ])], 8, Cn)
3690
+ ])], 8, En)
3691
3691
  ]),
3692
3692
  u("g", {
3693
3693
  mask: `url(#${a(n)})`,
@@ -3698,7 +3698,7 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3698
3698
  }, [...l[1] || (l[1] = [
3699
3699
  u("path", { d: "M2 7.5 17 2.8 12.3 17.8 8.9 11.1Z" }, null, -1),
3700
3700
  u("path", { d: "m8.9 11.1 3.4-3.6" }, null, -1)
3701
- ])], 8, En),
3701
+ ])], 8, Tn),
3702
3702
  l[2] || (l[2] = u("g", {
3703
3703
  stroke: "currentColor",
3704
3704
  "stroke-width": "1.5",
@@ -3708,10 +3708,10 @@ const qs = ["aria-label", "data-testid", "onDragstart"], js = ["onDragover", "on
3708
3708
  u("path", { d: "M7 11.5 22 6.8 17.3 21.8 13.9 15.1Z" }),
3709
3709
  u("path", { d: "m13.9 15.1 3.4-3.6" })
3710
3710
  ], -1))
3711
- ], 8, Sn));
3711
+ ], 8, Cn));
3712
3712
  }
3713
3713
  });
3714
- function vi(e, n = {}) {
3714
+ function fi(e, n = {}) {
3715
3715
  const o = n.bottomTolerance ?? 24, l = n.awayThreshold ?? 80, r = U(!0), i = U(!1);
3716
3716
  let p = null;
3717
3717
  const v = () => {
@@ -3734,16 +3734,16 @@ function vi(e, n = {}) {
3734
3734
  };
3735
3735
  return typeof _t == "function" && _t(c), { docked: r, showScrollToBottom: i, attach: g, detach: c, notifyContentChanged: _, scrollToBottom: y, handleScroll: v };
3736
3736
  }
3737
- const Tn = 3e3, xn = 5e3;
3737
+ const xn = 3e3, In = 5e3;
3738
3738
  function We(e, n, o = {}) {
3739
3739
  return co({
3740
3740
  type: e,
3741
3741
  message: n,
3742
- duration: o.duration ?? (e === "error" ? xn : Tn),
3742
+ duration: o.duration ?? (e === "error" ? In : xn),
3743
3743
  showClose: o.showClose ?? e === "error"
3744
3744
  });
3745
3745
  }
3746
- const fi = {
3746
+ const hi = {
3747
3747
  /** 成功反馈:3s,无按钮 */
3748
3748
  success: (e, n) => We("success", e, n),
3749
3749
  /** 中性信息:3s,无按钮 */
@@ -3753,7 +3753,7 @@ const fi = {
3753
3753
  /** 错误:5s + 关闭钮(默认)——读错要够久 */
3754
3754
  error: (e, n) => We("error", e, n)
3755
3755
  };
3756
- async function hi(e, n) {
3756
+ async function pi(e, n) {
3757
3757
  const { title: o, confirmText: l = "确认", cancelButtonText: r = "取消", tone: i = "default" } = n;
3758
3758
  try {
3759
3759
  return await mo.confirm(e, o, {
@@ -3766,73 +3766,73 @@ async function hi(e, n) {
3766
3766
  return !1;
3767
3767
  }
3768
3768
  }
3769
- function pi(e, n = !1) {
3770
- const o = To(e, n), l = {};
3769
+ function yi(e, n = !1) {
3770
+ const o = xo(e, n), l = {};
3771
3771
  for (const [r, i] of Object.entries(o))
3772
3772
  l[r.replace("--emoo-", "--el-")] = i;
3773
3773
  return l;
3774
3774
  }
3775
3775
  export {
3776
- gi as AVATAR_TINT_PALETTE,
3777
- An as EmooActionPill,
3778
- Ln as EmooActionSheet,
3779
- On as EmooAgentSelect,
3776
+ ki as AVATAR_TINT_PALETTE,
3777
+ Ln as EmooActionPill,
3778
+ On as EmooActionSheet,
3779
+ Un as EmooAgentSelect,
3780
3780
  De as EmooButton,
3781
- Un as EmooCard,
3782
- Hn as EmooChips,
3783
- ia as EmooChoice,
3784
- ya as EmooColumnMenu,
3785
- Kn as EmooDrawer,
3781
+ Hn as EmooCard,
3782
+ Kn as EmooChips,
3783
+ ra as EmooChoice,
3784
+ ba as EmooColumnMenu,
3785
+ Wn as EmooDrawer,
3786
3786
  Ma as EmooEmpty,
3787
- Wn as EmooField,
3788
- Fn as EmooFieldGrid,
3789
- Nn as EmooFileTypeIcon,
3790
- qn as EmooGhostButton,
3791
- jn as EmooGroupLabel,
3792
- Gn as EmooHistoryList,
3793
- Xn as EmooMemberRoleSelect,
3794
- Zn as EmooMemberSelect,
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,
3795
3795
  xe as EmooMemberTag,
3796
- Jn as EmooMessage,
3797
- Yn as EmooNavMenu,
3798
- Qn as EmooNavSegmented,
3799
- ei as EmooOptionRows,
3800
- us as EmooPagination,
3801
- ti as EmooPopover,
3802
- hs as EmooProgress,
3803
- oi as EmooRoleSelect,
3804
- ai as EmooSearchBox,
3805
- li as EmooSegmented,
3806
- si as EmooSidebarShell,
3807
- Ja 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,
3808
3808
  Kt as EmooSpinner,
3809
- Ps as EmooStatusTag,
3810
- ni as EmooSwitcherPanel,
3811
- ri as EmooTable,
3812
- ii as EmooTagsInput,
3809
+ As as EmooStatusTag,
3810
+ ii as EmooSwitcherPanel,
3811
+ di as EmooTable,
3812
+ ri as EmooTagsInput,
3813
3813
  he as EmooTooltip,
3814
- di as EmooUpload,
3815
- ui as EmooValueDiff,
3816
- Fs as INLINE_TOOLS_MIN_WIDTH,
3817
- ci as IconChatCirclePlus,
3818
- mi 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,
3819
3819
  at as MIN_COL_WIDTH,
3820
- ki as PRESET_COLORS,
3820
+ $i as PRESET_COLORS,
3821
3821
  At as SheetDragHandle,
3822
- $i as avatarTintOf,
3823
- pi as elementPlusColorVars,
3824
- hi as emooConfirm,
3825
- Ei as emoouiMessages,
3826
- ga as getDrawerWidth,
3827
- _i as hexToRgbString,
3828
- wi as mixColor,
3829
- Sa as nearestSheetTier,
3830
- Si as primaryColorVars,
3831
- ka as saveDrawerWidth,
3832
- fi as toast,
3833
- Ns as useColumnPrefs,
3834
- vi as useMessageScroll,
3835
- Me as useRemoteOptions,
3836
- Be as useSelectedOptions,
3837
- Ca 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
3838
3838
  };