@matechat/core 1.11.0-alpha.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Input/index.js CHANGED
@@ -1,20 +1,11 @@
1
- import "./index.css";
2
- import { ref as w, defineComponent as X, inject as oe, computed as ae, watch as Y, onMounted as te, withDirectives as be, createElementBlock as x, openBlock as m, normalizeClass as q, normalizeStyle as ce, unref as g, isRef as ye, vModelText as xe, nextTick as pe, createElementVNode as $, withModifiers as le, toDisplayString as Z, resolveComponent as Ce, createCommentVNode as _, createBlock as O, withCtx as de, renderSlot as A, Fragment as ee, renderList as Te, createTextVNode as Le, reactive as Se, provide as _e, createVNode as ie } from "vue";
3
- import { useMcI18n as fe } from "@matechat/core/Locale";
4
- var V = /* @__PURE__ */ ((n) => (n.Simple = "simple", n.Full = "full", n))(V || {}), me = /* @__PURE__ */ ((n) => (n.Bordered = "bordered", n.BorderLess = "borderless", n))(me || {}), ne = /* @__PURE__ */ ((n) => (n.Simple = "simple", n.Full = "full", n))(ne || {}), K = /* @__PURE__ */ ((n) => (n.Enter = "enter", n.ShiftEnter = "shiftEnter", n))(K || {});
5
- const we = {
6
- minRows: 1,
7
- maxRows: 5
8
- }, ke = {
1
+ import { defineComponent as E, inject as Z, computed as N, withDirectives as D, createElementBlock as d, openBlock as c, normalizeClass as S, unref as n, isRef as F, vModelText as j, nextTick as z, createElementVNode as f, ref as w, reactive as W, createCommentVNode as _, createBlock as $, toDisplayString as x, normalizeStyle as A, watch as O, provide as R, renderSlot as h, createVNode as b } from "vue";
2
+ import { useMcI18n as B } from "@matechat/core/Locale";
3
+ var g = /* @__PURE__ */ ((t) => (t.Simple = "simple", t.Full = "full", t))(g || {}), v = /* @__PURE__ */ ((t) => (t.Enter = "enter", t.ShiftEnter = "shiftEnter", t))(v || {});
4
+ const U = {
9
5
  value: {
10
6
  type: String,
11
7
  default: ""
12
8
  },
13
- formatContentOptions: {
14
- type: Object,
15
- default: () => {
16
- }
17
- },
18
9
  placeholder: {
19
10
  type: String
20
11
  },
@@ -27,16 +18,6 @@ const we = {
27
18
  default: "full"
28
19
  /* Full */
29
20
  },
30
- variant: {
31
- type: String,
32
- default: "bordered"
33
- /* Bordered */
34
- },
35
- sendBtnVariant: {
36
- type: String,
37
- default: "full"
38
- /* Full */
39
- },
40
21
  loading: {
41
22
  type: Boolean,
42
23
  default: !1
@@ -52,527 +33,68 @@ const we = {
52
33
  type: [String, null],
53
34
  default: "enter"
54
35
  /* Enter */
55
- },
56
- autofocus: {
57
- type: Boolean,
58
- default: !1
59
- },
60
- autosize: {
61
- type: [Boolean, Object],
62
- default: !1
63
- },
64
- autoClear: {
65
- type: Boolean,
66
- default: !0
67
- }
68
- }, Ee = ["change", "submit", "cancel", "focus", "blur"], Q = "mc-input", Ie = [
69
- "letter-spacing",
70
- "line-height",
71
- "padding-top",
72
- "padding-bottom",
73
- "font-family",
74
- "font-weight",
75
- "font-size",
76
- "font-variant",
77
- "text-rendering",
78
- "text-transform",
79
- "width",
80
- "text-indent",
81
- "padding-left",
82
- "padding-right",
83
- "border-width",
84
- "box-sizing",
85
- "word-break",
86
- "white-space"
87
- ], Be = `
88
- min-height:0 !important;
89
- max-height:none !important;
90
- height:0 !important;
91
- visibility:hidden !important;
92
- overflow:hidden !important;
93
- position:absolute !important;
94
- z-index:-1000 !important;
95
- top:0 !important;
96
- right:0 !important;
97
- pointer-events: none !important;
98
- `;
99
- function $e(n) {
100
- const a = window.getComputedStyle(n), s = a.getPropertyValue("box-sizing"), t = Number.parseFloat(a.getPropertyValue("padding-top")) + Number.parseFloat(a.getPropertyValue("padding-bottom")), l = Number.parseFloat(a.getPropertyValue("border-top-width")) + Number.parseFloat(a.getPropertyValue("border-bottom-width"));
101
- return { contextStyle: Ie.map(
102
- (r) => `${r}:${a.getPropertyValue(r)}`
103
- ).join(";"), paddingSize: t, borderSize: l, boxSizing: s };
104
- }
105
- function Ne(n, a = 1, s) {
106
- const { contextStyle: t, paddingSize: l, borderSize: i, boxSizing: r } = $e(n), u = document.createElement("textarea");
107
- u.setAttribute("style", `${t};${Be}`), u.value = n.value || n.placeholder || "", document.body.appendChild(u);
108
- let f = u.scrollHeight;
109
- const h = {
110
- height: `${f}px`
111
- };
112
- if (a !== void 0 || s !== void 0) {
113
- u.value = " ";
114
- const C = u.scrollHeight - l;
115
- if (a !== void 0) {
116
- let p = C * a;
117
- r === "border-box" && (p = p + l + i), f = Math.max(p, f), h.minHeight = `${p}px`;
118
- }
119
- if (s !== void 0) {
120
- let p = C * s;
121
- r === "border-box" && (p = p + l + i), f > p ? (f = p, h.overflowY = "auto") : h.overflowY = "hidden";
122
- }
123
36
  }
124
- return h.height = `${f}px`, u.remove(), h;
125
- }
126
- function Me(n) {
127
- const { textareaRef: a, autosize: s } = n, t = w({}), l = () => typeof s == "boolean" ? we : s;
128
- return {
129
- textareaStyle: t,
130
- updateTextareaStyle: () => {
131
- if (!a.value || s === !1) {
132
- t.value = {};
133
- return;
134
- }
135
- const r = l(), u = Ne(
136
- a.value,
137
- r.minRows,
138
- r.maxRows
139
- );
140
- t.value = {
141
- ...u,
142
- resize: "none"
143
- };
144
- }
145
- };
146
- }
147
- const De = ["placeholder", "disabled", "maxlength"], Re = /* @__PURE__ */ X({
37
+ }, X = ["change", "submit", "cancel", "focus", "blur"], M = "mc-input", Y = ["placeholder", "disabled", "maxlength"], q = /* @__PURE__ */ E({
148
38
  __name: "textarea",
149
- setup(n) {
150
- const { t: a } = fe(), s = w(null), { inputValue: t, rootProps: l, rootEmits: i, clearInputAfterSubmit: r } = oe(Q), u = ae(() => {
151
- let v = "", E = "";
152
- return l.submitShortKey === K.Enter && (v = "Enter", E = "Shift + Enter"), l.submitShortKey === K.ShiftEnter && (v = "Shift + Enter", E = "Enter"), l.placeholder ?? (v ? a("Input.pleaseEnterPlaceholder", { enterKey: v, shiftEnterKey: E }) : a("Input.pleaseEnter"));
153
- }), { textareaStyle: f, updateTextareaStyle: h } = Me({
154
- textareaRef: s,
155
- autosize: l.autosize
156
- });
157
- Y(
158
- () => t.value,
159
- () => {
160
- h();
161
- }
162
- ), te(() => {
163
- h();
39
+ setup(t) {
40
+ const { t: o } = B(), { inputValue: s, rootProps: e, rootEmits: a } = Z(M), r = N(() => {
41
+ let i = "", C = "";
42
+ return e.submitShortKey === v.Enter && (i = "Enter", C = "Shift + Enter"), e.submitShortKey === v.ShiftEnter && (i = "Shift + Enter", C = "Enter"), e.placeholder ?? (i ? o("Input.pleaseEnterPlaceholder", { enterKey: i, shiftEnterKey: C }) : o("Input.pleaseEnter"));
164
43
  });
165
- let C = !1;
44
+ let u = !1;
166
45
  const p = () => {
167
- pe(() => {
168
- i("change", t.value);
46
+ z(() => {
47
+ a("change", s.value);
169
48
  });
170
- }, T = () => {
171
- C || p();
172
- }, b = () => {
173
- C = !0;
174
- }, B = () => {
175
- setTimeout(() => {
176
- C = !1, p();
177
- }, 10);
178
- }, z = (v) => {
179
- if (l.submitShortKey === null)
49
+ }, l = () => {
50
+ u || p();
51
+ }, y = () => {
52
+ u = !0;
53
+ }, m = () => {
54
+ u = !1, p();
55
+ }, L = (i) => {
56
+ if (e.submitShortKey === null)
180
57
  return;
181
- (l.submitShortKey === K.Enter ? !v.shiftKey : l.submitShortKey === K.ShiftEnter ? v.shiftKey : !1) && v.key === "Enter" && !C && (v.preventDefault(), i("submit", t.value), r(), i("change", t.value));
182
- }, F = (v) => {
183
- i("focus", v);
184
- }, k = (v) => {
185
- i("blur", v);
58
+ (e.submitShortKey === v.Enter ? !i.shiftKey : e.submitShortKey === v.ShiftEnter ? i.shiftKey : !1) && i.key === "Enter" && !u && (i.preventDefault(), a("submit", s.value), s.value = "");
59
+ }, V = (i) => {
60
+ a("focus", i);
61
+ }, T = (i) => {
62
+ a("blur", i);
186
63
  };
187
- return te(() => {
188
- l.autofocus && s.value && !l.disabled && s.value.focus();
189
- }), (v, E) => be((m(), x("textarea", {
190
- ref_key: "textareaRef",
191
- ref: s,
192
- "onUpdate:modelValue": E[0] || (E[0] = (H) => ye(t) ? t.value = H : null),
193
- placeholder: u.value,
194
- disabled: g(l).disabled,
195
- maxlength: g(l).maxLength,
196
- style: ce(g(f)),
197
- class: q([
64
+ return (i, C) => D((c(), d("textarea", {
65
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => F(s) ? s.value = P : null),
66
+ placeholder: r.value,
67
+ disabled: n(e).disabled,
68
+ maxlength: n(e).maxLength,
69
+ class: S([
198
70
  "mc-textarea",
199
- { "mc-textarea-simple": g(l).displayType === g(V).Simple, "mc-textarea-disabled": g(l).disabled }
71
+ { "mc-textarea-simple": n(e).displayType === n(g).Simple, "mc-textarea-disabled": n(e).disabled }
200
72
  ]),
201
- onInput: T,
202
- onCompositionstart: b,
203
- onCompositionend: B,
204
- onKeydown: z,
205
- onFocus: F,
206
- onBlur: k
207
- }, null, 46, De)), [
208
- [xe, g(t)]
73
+ onInput: l,
74
+ onCompositionstart: y,
75
+ onCompositionend: m,
76
+ onKeydown: L,
77
+ onFocus: V,
78
+ onBlur: T
79
+ }, null, 42, Y)), [
80
+ [j, n(s)]
209
81
  ]);
210
82
  }
211
- });
212
- function he(n) {
213
- const a = window.getSelection();
214
- if (a && a.rangeCount > 0) {
215
- const s = a.getRangeAt(0);
216
- s.deleteContents();
217
- const t = document.createTextNode(n);
218
- s.insertNode(t), s.setStartAfter(t), s.setEndAfter(t), a.removeAllRanges(), a.addRange(s);
219
- }
220
- }
221
- const Ae = (n) => {
222
- var t;
223
- n.preventDefault();
224
- const s = (((t = n.clipboardData) == null ? void 0 : t.getData("text/plain")) || "").replace(/[\r\n]+/g, " ");
225
- s && he(s);
226
- }, Ke = (n) => {
227
- if (n) {
228
- const a = document.createRange(), s = window.getSelection();
229
- a.selectNodeContents(n), a.collapse(!1), s == null || s.removeAllRanges(), s == null || s.addRange(a);
230
- }
231
- }, Pe = {
232
- class: "editable-span",
233
- contenteditable: "false"
234
- }, ze = ["contenteditable", "placeholder"], Fe = /* @__PURE__ */ X({
235
- __name: "InputTag",
236
- props: {
237
- content: String,
238
- placeholder: {
239
- type: String,
240
- default: ""
241
- },
242
- disabled: {
243
- type: Boolean,
244
- default: !1
245
- }
246
- },
247
- emits: ["change"],
248
- setup(n, { emit: a }) {
249
- const s = a, t = n, l = w(!1), i = w(t.content), r = w(null);
250
- Y(() => t.content, (p) => {
251
- i.value = p;
252
- });
253
- const u = () => {
254
- l.value = !t.disabled;
255
- }, f = () => {
256
- l.value = !1;
257
- }, h = (p) => {
258
- var b;
259
- const T = ((b = r.value) == null ? void 0 : b.textContent) || "";
260
- i.value = T, s("change", T);
261
- }, C = (p) => {
262
- Ae(p), h();
263
- };
264
- return (p, T) => {
265
- var b, B;
266
- return m(), x("span", Pe, [
267
- $("span", {
268
- ref_key: "editableSpanRef",
269
- ref: r,
270
- contenteditable: l.value,
271
- placeholder: n.placeholder,
272
- class: q(["input-custom-item", { "input-custom-placeholder": !((b = i.value) != null && b.length), "inline-text": (B = i.value) == null ? void 0 : B.length }]),
273
- tabindex: "0",
274
- onInput: le(h, ["stop"]),
275
- onFocus: u,
276
- onBlur: f,
277
- onPaste: le(C, ["stop"])
278
- }, Z(n.content), 43, ze)
279
- ]);
280
- };
281
- }
282
- }), W = (n, a) => {
283
- const s = n.__vccOpts || n;
284
- for (const [t, l] of a)
285
- s[t] = l;
83
+ }), k = (t, o) => {
84
+ const s = t.__vccOpts || t;
85
+ for (const [e, a] of o)
86
+ s[e] = a;
286
87
  return s;
287
- }, Ve = /* @__PURE__ */ W(Fe, [["__scopeId", "data-v-967e21e0"]]), Ze = ["contenteditable", "placeholder"], Oe = { contenteditable: "false" }, He = {
288
- id: "ai-input-prefix",
289
- class: "ai-input-prefix"
290
- }, Ue = /* @__PURE__ */ X({
291
- __name: "EditableBlock",
292
- props: {
293
- templateParts: {
294
- type: Array,
295
- default: () => []
296
- },
297
- placeholder: {
298
- type: String,
299
- default: ""
300
- },
301
- maxLength: {
302
- type: Number,
303
- default: 2e3
304
- },
305
- disabled: {
306
- type: Boolean,
307
- default: !1
308
- },
309
- submitShortKey: {
310
- type: [String, null],
311
- default: K.Enter
312
- },
313
- autofocus: {
314
- type: Boolean,
315
- default: !1
316
- }
317
- },
318
- emits: ["send", "input", "blur", "focus", "onBlockKeyArrowUp"],
319
- setup(n, { expose: a, emit: s }) {
320
- const { rootProps: t } = oe(Q), l = s, i = n, r = w({
321
- themeTagText: "",
322
- clearInput: !1,
323
- popoverContent: "",
324
- type: "themeTag"
325
- }), u = w(null), f = w([...i.templateParts]);
326
- Y(() => i.templateParts, (e) => {
327
- f.value = [...e];
328
- });
329
- const h = () => {
330
- const e = u.value;
331
- e && (e.innerHTML = "", k());
332
- }, C = () => {
333
- var d;
334
- const e = (d = u.value) == null ? void 0 : d.textContent;
335
- e.length > i.maxLength || (l("send", e), h());
336
- }, p = () => {
337
- var e;
338
- (e = u.value) == null || e.focus(), Ke(u.value);
339
- }, T = (e) => {
340
- l("blur", e);
341
- }, b = (e) => {
342
- l("focus", e);
343
- }, B = w(!1), z = () => {
344
- B.value = !0;
345
- }, F = () => {
346
- B.value = !1, k();
347
- }, k = () => {
348
- B.value || E();
349
- }, v = () => {
350
- var d, c;
351
- let e = (d = u.value) == null ? void 0 : d.textContent;
352
- if (r.value.themeTagText) {
353
- const y = (c = u.value) == null ? void 0 : c.querySelector(".ai-input-prefix-wrapper");
354
- if (y) {
355
- const D = y.textContent || "";
356
- e = e.replace(D, " ");
357
- }
358
- }
359
- return e;
360
- }, E = () => {
361
- setTimeout(() => {
362
- const e = v();
363
- l("input", e);
364
- }, 50);
365
- }, H = (e) => {
366
- const d = i.submitShortKey === K.Enter ? !e.shiftKey : i.submitShortKey === K.ShiftEnter ? e.shiftKey : !1;
367
- if (e.key === "Enter" && d && (e.preventDefault(), C()), ["ArrowLeft", "ArrowRight", "Backspace", "Delete"].includes(e.key)) {
368
- const c = window.getSelection();
369
- if (!(c != null && c.rangeCount) || !c.isCollapsed)
370
- return;
371
- const y = c.getRangeAt(0), { startContainer: D, startOffset: J } = y, S = e.key === "ArrowLeft" || e.key === "Backspace" ? "previous" : "next", P = L(D, J, S);
372
- if (P && P.nodeType === Node.ELEMENT_NODE) {
373
- const N = P.querySelector(".input-custom-item");
374
- if (!N)
375
- return;
376
- if (e.preventDefault(), N.contentEditable = "true", e.key === "ArrowLeft" || e.key === "ArrowRight") {
377
- const R = document.createRange();
378
- R.setStart(N, S === "previous" ? N.childNodes.length : 0), R.collapse(!1), c.removeAllRanges(), c.addRange(R);
379
- } else if (e.key === "Backspace" || e.key === "Delete")
380
- if (N.textContent.trim()) {
381
- const R = document.createRange();
382
- R.setStart(N, S === "previous" ? N.childNodes.length : 0), R.collapse(!1), c.removeAllRanges(), c.addRange(R);
383
- } else
384
- P.remove();
385
- }
386
- }
387
- e.key === "ArrowUp" && o() && l("onBlockKeyArrowUp", e);
388
- };
389
- function o() {
390
- var y;
391
- const e = window.getSelection();
392
- if (!(e != null && e.rangeCount))
393
- return !0;
394
- const d = e.getRangeAt(0);
395
- if (d.startOffset !== 0)
396
- return !1;
397
- let c = d.startContainer;
398
- for (; c && !((y = c.classList) != null && y.contains("editable-container")); ) {
399
- if (c.previousSibling)
400
- return !1;
401
- c = c.parentNode;
402
- }
403
- return !0;
404
- }
405
- function L(e, d, c) {
406
- var P;
407
- if (!e)
408
- return null;
409
- let y = e;
410
- const D = (P = e.classList) == null ? void 0 : P.contains("editable-container");
411
- if (D) {
412
- const N = e.childNodes, R = Math.min(d, N.length - 1);
413
- y = N[R];
414
- }
415
- if (!D && c === "previous" && d !== 0 || !D && c === "next" && d !== e.textContent.length)
416
- return null;
417
- let J = null, S = y;
418
- for (; S; )
419
- if (S = c === "next" ? S.nextSibling : S.previousSibling, !!S && S.nodeType !== Node.COMMENT_NODE && (S.nodeType !== Node.TEXT_NODE || S.nodeType === Node.TEXT_NODE && S.nodeValue.trim() !== "")) {
420
- J = S;
421
- break;
422
- }
423
- return J;
424
- }
425
- const I = (e) => {
426
- var c;
427
- e.preventDefault();
428
- const d = (c = (e.originalEvent || e).clipboardData) == null ? void 0 : c.getData("text/plain");
429
- he(d), k();
430
- }, M = (e, d, c) => {
431
- i.disabled || (f.value.push({
432
- key: e,
433
- type: "input",
434
- placeholder: d,
435
- content: c
436
- }), G(), k());
437
- }, U = (e) => {
438
- i.disabled || (f.value = [...e], G(), k());
439
- }, ge = (e) => {
440
- i.disabled || (f.value.push({
441
- type: "text",
442
- content: e
443
- }), G(), k());
444
- }, ve = (e, d, c) => {
445
- i.disabled || (r.value = {
446
- themeTagText: e,
447
- clearInput: c || !1,
448
- popoverContent: d,
449
- type: "themeTag"
450
- });
451
- }, se = () => {
452
- r.value.themeTagText && r.value.clearInput ? h() : (r.value = {
453
- themeTagText: "",
454
- clearInput: !1,
455
- popoverContent: "",
456
- type: "themeTag"
457
- }, E());
458
- }, G = () => {
459
- pe(() => {
460
- p();
461
- });
462
- };
463
- return te(() => {
464
- i.autofocus && u.value && !i.disabled && G();
465
- }), a({
466
- clearInput: h,
467
- getInput: v,
468
- focusInput: p,
469
- setMixTags: U,
470
- setText: ge,
471
- setInputTag: M,
472
- openTipTag: ve,
473
- closeTipTag: se
474
- }), (e, d) => {
475
- const c = Ce("d-popover");
476
- return m(), x("div", {
477
- ref_key: "editableDivRef",
478
- ref: u,
479
- class: q(["editable-container", { "mc-input-disabled": i.disabled, "mc-input-simple": g(t).displayType === g(V).Simple }]),
480
- contenteditable: !i.disabled,
481
- spellcheck: "false",
482
- placeholder: i.placeholder,
483
- onInput: k,
484
- onKeydown: H,
485
- onPaste: I,
486
- onCompositionstart: z,
487
- onCompositionend: F,
488
- onBlur: T,
489
- onFocus: b
490
- }, [
491
- _(" 前置标签 "),
492
- r.value.themeTagText ? (m(), O(c, {
493
- key: 0,
494
- trigger: "hover",
495
- content: r.value.popoverContent
496
- }, {
497
- default: de(() => [
498
- $("span", Oe, [
499
- r.value.themeTagText ? (m(), x("span", {
500
- key: 0,
501
- class: "ai-input-prefix-wrapper",
502
- onClick: se,
503
- contenteditable: "false"
504
- }, [
505
- A(e.$slots, "themeTag", { themeTag: r.value }, () => [
506
- $(
507
- "span",
508
- He,
509
- Z(r.value.themeTagText),
510
- 1
511
- /* TEXT */
512
- )
513
- ], !0)
514
- ])) : _("v-if", !0),
515
- d[0] || (d[0] = $(
516
- "span",
517
- {
518
- contenteditable: "false",
519
- style: { display: "inline-block", width: "4px" }
520
- },
521
- null,
522
- -1
523
- /* HOISTED */
524
- ))
525
- ])
526
- ]),
527
- _: 3
528
- /* FORWARDED */
529
- }, 8, ["content"])) : _("v-if", !0),
530
- (m(!0), x(
531
- ee,
532
- null,
533
- Te(f.value, (y, D) => (m(), x(
534
- ee,
535
- null,
536
- [
537
- y.type === "text" ? (m(), x(
538
- ee,
539
- { key: 0 },
540
- [
541
- Le(
542
- Z(y.content),
543
- 1
544
- /* TEXT */
545
- )
546
- ],
547
- 64
548
- /* STABLE_FRAGMENT */
549
- )) : y.type === "input" ? (m(), O(Ve, {
550
- key: `input${D}`,
551
- content: y.content,
552
- placeholder: y.placeholder,
553
- disabled: i.disabled,
554
- onChange: k
555
- }, null, 8, ["content", "placeholder", "disabled"])) : _("v-if", !0)
556
- ],
557
- 64
558
- /* STABLE_FRAGMENT */
559
- ))),
560
- 256
561
- /* UNKEYED_FRAGMENT */
562
- ))
563
- ], 42, Ze);
564
- };
565
- }
566
- }), je = /* @__PURE__ */ W(Ue, [["__scopeId", "data-v-86573c82"]]), Ye = {}, Xe = {
88
+ }, G = {}, H = {
567
89
  width: "16px",
568
90
  height: "16px",
569
91
  viewBox: "0 0 16 16",
570
92
  version: "1.1",
571
93
  xmlns: "http://www.w3.org/2000/svg"
572
94
  };
573
- function qe(n, a) {
574
- return m(), x("svg", Xe, a[0] || (a[0] = [
575
- $(
95
+ function J(t, o) {
96
+ return c(), d("svg", H, o[0] || (o[0] = [
97
+ f(
576
98
  "g",
577
99
  {
578
100
  stroke: "none",
@@ -581,23 +103,23 @@ function qe(n, a) {
581
103
  "fill-rule": "evenodd"
582
104
  },
583
105
  [
584
- $("path", { d: "M8,12 C8.27614237,12 8.5,12.2238576 8.5,12.5 L8.5,14.5 C8.5,14.7761424 8.27614237,15 8,15 C7.72385763,15 7.5,14.7761424 7.5,14.5 L7.5,12.5 C7.5,12.2238576 7.72385763,12 8,12 Z M11.0495421,11.3466838 L12.2251126,12.9647178 C12.3874251,13.1881217 12.3379006,13.5008065 12.1144968,13.663119 C11.8910929,13.8254314 11.5784081,13.775907 11.4160956,13.5525031 L10.2405251,11.9344691 C10.0782127,11.7110652 10.1277371,11.3983804 10.351141,11.236068 C10.5745449,11.0737556 10.8872297,11.12328 11.0495421,11.3466838 Z M5.64885899,11.236068 C5.87226287,11.3983804 5.92178728,11.7110652 5.75947486,11.9344691 L4.58390436,13.5525031 C4.42159194,13.775907 4.10890711,13.8254314 3.88550323,13.663119 C3.66209936,13.5008065 3.61257495,13.1881217 3.77488736,12.9647178 L4.95045787,11.3466838 C5.11277028,11.12328 5.42545512,11.0737556 5.64885899,11.236068 Z M12.4342628,8.91504822 L14.3363759,9.53308221 C14.5990029,9.61841489 14.7427283,9.90049196 14.6573956,10.163119 C14.5720629,10.425746 14.2899859,10.5694714 14.0273589,10.4841387 L12.1252458,9.86610473 C11.8626188,9.78077205 11.7188934,9.49869498 11.8042261,9.23606798 C11.8895588,8.97344097 12.1716358,8.82971553 12.4342628,8.91504822 Z M4.19577393,9.23606798 C4.28110662,9.49869498 4.13738118,9.78077205 3.87475417,9.86610473 L1.97264114,10.4841387 C1.71001414,10.5694714 1.42793707,10.425746 1.34260439,10.163119 C1.2572717,9.90049196 1.40099714,9.61841489 1.66362415,9.53308221 L3.56573718,8.91504822 C3.82836418,8.82971553 4.11044125,8.97344097 4.19577393,9.23606798 Z M14.6573956,5.83688104 C14.7427283,6.09950804 14.5990029,6.38158511 14.3363759,6.46691779 L12.4342628,7.08495178 C12.1716358,7.17028447 11.8895588,7.02655903 11.8042261,6.76393202 C11.7188934,6.50130502 11.8626188,6.21922795 12.1252458,6.13389527 L14.0273589,5.51586128 C14.2899859,5.43052859 14.5720629,5.57425403 14.6573956,5.83688104 Z M1.97264114,5.51586128 L3.87475417,6.13389527 C4.13738118,6.21922795 4.28110662,6.50130502 4.19577393,6.76393202 C4.11044125,7.02655903 3.82836418,7.17028447 3.56573718,7.08495178 L1.66362415,6.46691779 C1.40099714,6.38158511 1.2572717,6.09950804 1.34260439,5.83688104 C1.42793707,5.57425403 1.71001414,5.43052859 1.97264114,5.51586128 Z M12.1144968,2.33688104 C12.3379006,2.49919345 12.3874251,2.81187829 12.2251126,3.03528216 L11.0495421,4.65331615 C10.8872297,4.87672003 10.5745449,4.92624444 10.351141,4.76393202 C10.1277371,4.60161961 10.0782127,4.28893477 10.2405251,4.0655309 L11.4160956,2.44749691 C11.5784081,2.22409304 11.8910929,2.17456862 12.1144968,2.33688104 Z M4.58390436,2.44749691 L5.75947486,4.0655309 C5.92178728,4.28893477 5.87226287,4.60161961 5.64885899,4.76393202 C5.42545512,4.92624444 5.11277028,4.87672003 4.95045787,4.65331615 L3.77488736,3.03528216 C3.61257495,2.81187829 3.66209936,2.49919345 3.88550323,2.33688104 C4.10890711,2.17456862 4.42159194,2.22409304 4.58390436,2.44749691 Z M8,1 C8.27614237,1 8.5,1.22385763 8.5,1.5 L8.5,3.5 C8.5,3.77614237 8.27614237,4 8,4 C7.72385763,4 7.5,3.77614237 7.5,3.5 L7.5,1.5 C7.5,1.22385763 7.72385763,1 8,1 Z" })
106
+ f("path", { d: "M8,12 C8.27614237,12 8.5,12.2238576 8.5,12.5 L8.5,14.5 C8.5,14.7761424 8.27614237,15 8,15 C7.72385763,15 7.5,14.7761424 7.5,14.5 L7.5,12.5 C7.5,12.2238576 7.72385763,12 8,12 Z M11.0495421,11.3466838 L12.2251126,12.9647178 C12.3874251,13.1881217 12.3379006,13.5008065 12.1144968,13.663119 C11.8910929,13.8254314 11.5784081,13.775907 11.4160956,13.5525031 L10.2405251,11.9344691 C10.0782127,11.7110652 10.1277371,11.3983804 10.351141,11.236068 C10.5745449,11.0737556 10.8872297,11.12328 11.0495421,11.3466838 Z M5.64885899,11.236068 C5.87226287,11.3983804 5.92178728,11.7110652 5.75947486,11.9344691 L4.58390436,13.5525031 C4.42159194,13.775907 4.10890711,13.8254314 3.88550323,13.663119 C3.66209936,13.5008065 3.61257495,13.1881217 3.77488736,12.9647178 L4.95045787,11.3466838 C5.11277028,11.12328 5.42545512,11.0737556 5.64885899,11.236068 Z M12.4342628,8.91504822 L14.3363759,9.53308221 C14.5990029,9.61841489 14.7427283,9.90049196 14.6573956,10.163119 C14.5720629,10.425746 14.2899859,10.5694714 14.0273589,10.4841387 L12.1252458,9.86610473 C11.8626188,9.78077205 11.7188934,9.49869498 11.8042261,9.23606798 C11.8895588,8.97344097 12.1716358,8.82971553 12.4342628,8.91504822 Z M4.19577393,9.23606798 C4.28110662,9.49869498 4.13738118,9.78077205 3.87475417,9.86610473 L1.97264114,10.4841387 C1.71001414,10.5694714 1.42793707,10.425746 1.34260439,10.163119 C1.2572717,9.90049196 1.40099714,9.61841489 1.66362415,9.53308221 L3.56573718,8.91504822 C3.82836418,8.82971553 4.11044125,8.97344097 4.19577393,9.23606798 Z M14.6573956,5.83688104 C14.7427283,6.09950804 14.5990029,6.38158511 14.3363759,6.46691779 L12.4342628,7.08495178 C12.1716358,7.17028447 11.8895588,7.02655903 11.8042261,6.76393202 C11.7188934,6.50130502 11.8626188,6.21922795 12.1252458,6.13389527 L14.0273589,5.51586128 C14.2899859,5.43052859 14.5720629,5.57425403 14.6573956,5.83688104 Z M1.97264114,5.51586128 L3.87475417,6.13389527 C4.13738118,6.21922795 4.28110662,6.50130502 4.19577393,6.76393202 C4.11044125,7.02655903 3.82836418,7.17028447 3.56573718,7.08495178 L1.66362415,6.46691779 C1.40099714,6.38158511 1.2572717,6.09950804 1.34260439,5.83688104 C1.42793707,5.57425403 1.71001414,5.43052859 1.97264114,5.51586128 Z M12.1144968,2.33688104 C12.3379006,2.49919345 12.3874251,2.81187829 12.2251126,3.03528216 L11.0495421,4.65331615 C10.8872297,4.87672003 10.5745449,4.92624444 10.351141,4.76393202 C10.1277371,4.60161961 10.0782127,4.28893477 10.2405251,4.0655309 L11.4160956,2.44749691 C11.5784081,2.22409304 11.8910929,2.17456862 12.1144968,2.33688104 Z M4.58390436,2.44749691 L5.75947486,4.0655309 C5.92178728,4.28893477 5.87226287,4.60161961 5.64885899,4.76393202 C5.42545512,4.92624444 5.11277028,4.87672003 4.95045787,4.65331615 L3.77488736,3.03528216 C3.61257495,2.81187829 3.66209936,2.49919345 3.88550323,2.33688104 C4.10890711,2.17456862 4.42159194,2.22409304 4.58390436,2.44749691 Z M8,1 C8.27614237,1 8.5,1.22385763 8.5,1.5 L8.5,3.5 C8.5,3.77614237 8.27614237,4 8,4 C7.72385763,4 7.5,3.77614237 7.5,3.5 L7.5,1.5 C7.5,1.22385763 7.72385763,1 8,1 Z" })
585
107
  ],
586
108
  -1
587
109
  /* HOISTED */
588
110
  )
589
111
  ]));
590
112
  }
591
- const We = /* @__PURE__ */ W(Ye, [["render", qe]]), Ge = {}, Je = {
113
+ const Q = /* @__PURE__ */ k(G, [["render", J]]), e1 = {}, t1 = {
592
114
  width: "16px",
593
115
  height: "16px",
594
116
  viewBox: "0 0 16 16",
595
117
  version: "1.1",
596
118
  xmlns: "http://www.w3.org/2000/svg"
597
119
  };
598
- function Qe(n, a) {
599
- return m(), x("svg", Je, a[0] || (a[0] = [
600
- $(
120
+ function n1(t, o) {
121
+ return c(), d("svg", t1, o[0] || (o[0] = [
122
+ f(
601
123
  "g",
602
124
  {
603
125
  stroke: "none",
@@ -606,191 +128,103 @@ function Qe(n, a) {
606
128
  "fill-rule": "evenodd"
607
129
  },
608
130
  [
609
- $("path", { d: "M13.5105149,2.56164948 C14.1211149,2.35546948 14.7829149,2.68328948 14.9892149,3.29376948 C15.0349149,3.42925948 15.0552149,3.57159948 15.0495149,3.71368948 L15.0495149,3.71368948 L15.0351149,3.85546948 L13.6575149,12.2717195 C13.5237149,13.0892195 12.7524149,13.6435195 11.9348149,13.5097195 C11.8542149,13.4965195 11.7751149,13.4768195 11.6980149,13.4508195 L11.6980149,13.4508195 L11.5840149,13.4071195 L9.3049349,12.4260195 L8.4482449,13.5422195 C8.1958049,13.8708195 7.8205549,14.0786195 7.4128449,14.1207195 L7.4128449,14.1207195 L7.2585449,14.1286195 C6.4787649,14.1286195 5.8381349,13.5337195 5.7653849,12.7731195 L5.7653849,12.7731195 L5.7585449,12.6286195 L5.7602549,10.5258195 L5.7756349,10.4384195 L5.7944349,10.3824195 L5.8266649,10.3168995 L5.8735349,10.2503695 L5.9177249,10.2039195 L12.6909149,3.89392948 L2.3403349,7.38903948 C2.2329149,7.42529948 2.1418449,7.49676948 2.0808149,7.59063948 L2.0808149,7.59063948 L2.0412649,7.66497948 C1.9440949,7.89044948 2.0258749,8.14788948 2.2236349,8.27917948 L2.2236349,8.27917948 L2.3029749,8.32214948 L4.4799849,9.26177948 C4.7333949,9.37121948 4.8503449,9.66546948 4.7409649,9.91894948 C4.6435549,10.1443495 4.4003949,10.2616595 4.1694349,10.2081295 L4.1694349,10.2081295 L4.0837449,10.1798795 L1.9072249,9.24047948 C1.1462449,8.91284948 0.795166898,8.03039948 1.1225549,7.26953948 C1.2700249,6.92755948 1.5380849,6.65435948 1.8730449,6.50018948 L1.8730449,6.50018948 L2.0205049,6.44158948 Z M6.7578149,11.3299195 L6.7585449,12.6286195 L6.7666013,12.7185103 C6.80894095,12.9517898 7.0131049,13.1286195 7.2585449,13.1286195 C7.3828149,13.1286195 7.5014649,13.0824195 7.5925349,13.0008195 L7.5925349,13.0008195 L7.6550349,12.9332195 L8.3569349,12.0179195 L6.7578149,11.3299195 Z M13.9888149,4.05090948 L7.1599149,10.4129195 L11.9795149,12.4886195 C11.9980149,12.4966195 12.0173149,12.5035195 12.0369149,12.5093195 L12.0369149,12.5093195 L12.0964149,12.5228195 C12.3386149,12.5624195 12.5686149,12.4209195 12.6482149,12.1975195 L12.6482149,12.1975195 L12.6706149,12.1101195 L13.9888149,4.05090948 Z" })
131
+ f("path", { d: "M13.5105149,2.56164948 C14.1211149,2.35546948 14.7829149,2.68328948 14.9892149,3.29376948 C15.0349149,3.42925948 15.0552149,3.57159948 15.0495149,3.71368948 L15.0495149,3.71368948 L15.0351149,3.85546948 L13.6575149,12.2717195 C13.5237149,13.0892195 12.7524149,13.6435195 11.9348149,13.5097195 C11.8542149,13.4965195 11.7751149,13.4768195 11.6980149,13.4508195 L11.6980149,13.4508195 L11.5840149,13.4071195 L9.3049349,12.4260195 L8.4482449,13.5422195 C8.1958049,13.8708195 7.8205549,14.0786195 7.4128449,14.1207195 L7.4128449,14.1207195 L7.2585449,14.1286195 C6.4787649,14.1286195 5.8381349,13.5337195 5.7653849,12.7731195 L5.7653849,12.7731195 L5.7585449,12.6286195 L5.7602549,10.5258195 L5.7756349,10.4384195 L5.7944349,10.3824195 L5.8266649,10.3168995 L5.8735349,10.2503695 L5.9177249,10.2039195 L12.6909149,3.89392948 L2.3403349,7.38903948 C2.2329149,7.42529948 2.1418449,7.49676948 2.0808149,7.59063948 L2.0808149,7.59063948 L2.0412649,7.66497948 C1.9440949,7.89044948 2.0258749,8.14788948 2.2236349,8.27917948 L2.2236349,8.27917948 L2.3029749,8.32214948 L4.4799849,9.26177948 C4.7333949,9.37121948 4.8503449,9.66546948 4.7409649,9.91894948 C4.6435549,10.1443495 4.4003949,10.2616595 4.1694349,10.2081295 L4.1694349,10.2081295 L4.0837449,10.1798795 L1.9072249,9.24047948 C1.1462449,8.91284948 0.795166898,8.03039948 1.1225549,7.26953948 C1.2700249,6.92755948 1.5380849,6.65435948 1.8730449,6.50018948 L1.8730449,6.50018948 L2.0205049,6.44158948 Z M6.7578149,11.3299195 L6.7585449,12.6286195 L6.7666013,12.7185103 C6.80894095,12.9517898 7.0131049,13.1286195 7.2585449,13.1286195 C7.3828149,13.1286195 7.5014649,13.0824195 7.5925349,13.0008195 L7.5925349,13.0008195 L7.6550349,12.9332195 L8.3569349,12.0179195 L6.7578149,11.3299195 Z M13.9888149,4.05090948 L7.1599149,10.4129195 L11.9795149,12.4886195 C11.9980149,12.4966195 12.0173149,12.5035195 12.0369149,12.5093195 L12.0369149,12.5093195 L12.0964149,12.5228195 C12.3386149,12.5624195 12.5686149,12.4209195 12.6482149,12.1975195 L12.6482149,12.1975195 L12.6706149,12.1101195 L13.9888149,4.05090948 Z" })
610
132
  ],
611
133
  -1
612
134
  /* HOISTED */
613
135
  )
614
136
  ]));
615
137
  }
616
- const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { class: "mc-button-content" }, ot = { key: 2 }, at = /* @__PURE__ */ X({
138
+ const o1 = /* @__PURE__ */ k(e1, [["render", n1]]), s1 = ["disabled"], l1 = { class: "mc-button-content" }, i1 = /* @__PURE__ */ E({
617
139
  __name: "button",
618
- setup(n) {
619
- const { t: a } = fe(), { inputValue: s, rootProps: t, rootEmits: l, clearInputAfterSubmit: i } = oe(
620
- Q
621
- ), r = w(!1), u = w(!1), f = Se({
140
+ setup(t) {
141
+ const { t: o } = B(), { inputValue: s, rootProps: e, rootEmits: a } = Z(M), r = w(!1), u = w(!1), p = W({
622
142
  top: "0px",
623
143
  left: "0px"
624
- }), h = ae(() => ({
625
- "mc-button": !0,
626
- "mc-button-loading": t.loading,
627
- mousedown: r.value,
628
- "mc-button-simple": t.sendBtnVariant === ne.Simple
629
- })), C = (T) => {
630
- f.left = T.offsetX + "px", f.top = T.offsetY + "px", u.value = !0, setTimeout(() => {
144
+ }), l = (m) => {
145
+ p.left = m.offsetX + "px", p.top = m.offsetY + "px", u.value = !0, setTimeout(() => {
631
146
  u.value = !1;
632
147
  }, 300);
633
- }, p = (T) => {
634
- C(T), t.loading ? l("cancel") : (l("submit", s.value), i(), l("change", s.value));
148
+ }, y = (m) => {
149
+ l(m), e.loading ? a("cancel") : (a("submit", s.value), s.value = "");
635
150
  };
636
- return (T, b) => (m(), x("button", {
637
- disabled: g(t).disabled || !g(t).loading && !g(s),
638
- class: q(h.value),
639
- onClick: p,
640
- onMousedown: b[0] || (b[0] = () => r.value = !0),
641
- onMouseup: b[1] || (b[1] = () => r.value = !1)
151
+ return (m, L) => (c(), d("button", {
152
+ disabled: n(e).disabled || !n(e).loading && !n(s),
153
+ class: S(["mc-button", { "mc-button-loading": n(e).loading, mousedown: r.value }]),
154
+ onClick: y,
155
+ onMousedown: L[0] || (L[0] = () => r.value = !0),
156
+ onMouseup: L[1] || (L[1] = () => r.value = !1)
642
157
  }, [
643
- $("span", nt, [
644
- g(t).loading ? (m(), O(We, { key: 0 })) : (m(), O(et, { key: 1 })),
645
- g(t).sendBtnVariant === g(ne).Full ? (m(), x(
158
+ f("span", l1, [
159
+ n(e).loading ? (c(), $(Q, { key: 0 })) : (c(), $(o1, { key: 1 })),
160
+ f(
646
161
  "span",
647
- ot,
648
- Z(g(t).loading ? g(a)("Input.pauseAnswer") : g(a)("Input.send")),
162
+ null,
163
+ x(n(e).loading ? n(o)("Input.pauseAnswer") : n(o)("Input.send")),
649
164
  1
650
165
  /* TEXT */
651
- )) : _("v-if", !0)
166
+ )
652
167
  ]),
653
- u.value ? (m(), x(
168
+ u.value ? (c(), d(
654
169
  "div",
655
170
  {
656
171
  key: 0,
657
172
  class: "mc-button-water-wave",
658
- style: ce(f)
173
+ style: A(p)
659
174
  },
660
175
  null,
661
176
  4
662
177
  /* STYLE */
663
178
  )) : _("v-if", !0)
664
- ], 42, tt));
179
+ ], 42, s1));
665
180
  }
666
- }), re = /* @__PURE__ */ W(at, [["__scopeId", "data-v-dbbf3b38"]]), st = { class: "mc-input-content" }, lt = {
667
- key: 0,
668
- class: "editable-block-container"
669
- }, it = {
181
+ }), I = /* @__PURE__ */ k(i1, [["__scopeId", "data-v-8051c2d3"]]), a1 = { class: "mc-input-content" }, r1 = {
670
182
  key: 0,
671
183
  class: "mc-input-foot"
672
- }, rt = { class: "mc-input-foot-left" }, ut = {
184
+ }, u1 = { class: "mc-input-foot-left" }, c1 = {
673
185
  key: 0,
674
186
  class: "mc-input-foot-count"
675
- }, j = 50, ue = /* @__PURE__ */ X({
187
+ }, K = /* @__PURE__ */ E({
676
188
  __name: "Input",
677
- props: ke,
678
- emits: Ee,
679
- setup(n, { expose: a, emit: s }) {
680
- const t = n, l = s, i = w(null), r = w(!1), u = w(""), f = ae(() => ({
681
- "mc-input": !0,
682
- "mc-input-disabled": t.disabled,
683
- "mc-input-simple": t.displayType === V.Simple,
684
- "mc-input-borderless": t.variant === me.BorderLess
685
- })), h = () => {
686
- var o;
687
- r.value ? (o = i.value) == null || o.clearInput() : u.value = "";
688
- }, C = () => {
689
- t.autoClear && h();
690
- }, p = () => {
691
- var o;
692
- return r.value ? (o = i.value) == null ? void 0 : o.getInput() : u.value;
693
- }, T = (o, L, I) => {
694
- t.disabled || (r.value = !0, setTimeout(() => {
695
- var M;
696
- (M = i.value) == null || M.setInputTag(o, L, I);
697
- }, j));
698
- }, b = (o) => {
699
- t.disabled || (r.value = !0, setTimeout(() => {
700
- var L;
701
- (L = i.value) == null || L.setText(o);
702
- }, j));
703
- }, B = (o) => {
704
- t.disabled || (r.value = !0, setTimeout(() => {
705
- var L;
706
- (L = i.value) == null || L.setMixTags(o);
707
- }, j));
708
- }, z = (o, L, I) => {
709
- t.disabled || (r.value = !0, setTimeout(() => {
710
- var M;
711
- (M = i.value) == null || M.openTipTag(o, L, I);
712
- }, j));
713
- }, F = () => {
714
- var o;
715
- r.value && ((o = i.value) == null || o.closeTipTag());
716
- }, k = (o) => {
717
- o || setTimeout(() => {
718
- r.value = !1;
719
- }, j), u.value = o, l("change", o);
720
- }, v = (o) => {
721
- l("submit", o);
722
- }, E = (o) => {
723
- l("blur", o);
724
- }, H = (o) => {
725
- l("focus", o);
726
- };
727
- return Y(
728
- () => t.value,
189
+ props: U,
190
+ emits: X,
191
+ setup(t, { expose: o, emit: s }) {
192
+ const e = t, a = s, r = w(""), u = () => {
193
+ r.value = "";
194
+ }, p = () => r.value;
195
+ return O(
196
+ () => e.value,
729
197
  () => {
730
- u.value = t.value;
198
+ r.value = e.value;
731
199
  },
732
200
  { immediate: !0 }
733
- ), Y(
734
- () => t.formatContentOptions,
735
- (o) => {
736
- const L = o == null ? void 0 : o.formatContent, I = L.filter((U) => U.type === "themeTag");
737
- I.length ? z(I[0].themeTagText, I[0].popoverContent, I[0].clearInput) : F();
738
- const M = L.filter((U) => U.type !== "themeTag");
739
- B(M);
740
- },
741
- { deep: !0 }
742
- ), a({ clearInput: h, getInput: p, setInputTag: T, setText: b, setMixTags: B, openTipTag: z, closeTipTag: F }), _e(Q, { inputValue: u, rootProps: t, rootEmits: l, clearInputAfterSubmit: C }), (o, L) => (m(), x(
201
+ ), o({ clearInput: u, getInput: p }), R(M, { inputValue: r, rootProps: e, rootEmits: a }), (l, y) => (c(), d(
743
202
  "div",
744
203
  {
745
- class: q(f.value)
204
+ class: S(["mc-input", { "mc-input-disabled": l.disabled }])
746
205
  },
747
206
  [
748
- A(o.$slots, "head"),
749
- $("div", st, [
750
- A(o.$slots, "prefix"),
751
- _(" 替换Textarea "),
752
- r.value ? (m(), x("div", lt, [
753
- _(" 可编辑块 "),
754
- r.value ? (m(), O(je, {
755
- key: 0,
756
- ref_key: "editableBlockRef",
757
- ref: i,
758
- placeholder: t.placeholder,
759
- maxLength: t.maxLength,
760
- disabled: t.disabled,
761
- "submit-short-key": t.submitShortKey,
762
- autofocus: t.autofocus,
763
- onInput: k,
764
- onSend: v,
765
- onBlur: E,
766
- onFocus: H
767
- }, {
768
- themeTag: de(({ themeTag: I }) => [
769
- A(o.$slots, "themeTag", { themeTag: I })
770
- ]),
771
- _: 3
772
- /* FORWARDED */
773
- }, 8, ["placeholder", "maxLength", "disabled", "submit-short-key", "autofocus"])) : _("v-if", !0)
774
- ])) : _("v-if", !0),
775
- r.value ? _("v-if", !0) : (m(), O(Re, { key: 1 })),
776
- A(o.$slots, "suffix"),
777
- o.displayType === g(V).Simple ? A(o.$slots, "button", { key: 2 }, () => [
778
- ie(re)
207
+ h(l.$slots, "head"),
208
+ f("div", a1, [
209
+ h(l.$slots, "prefix"),
210
+ b(q),
211
+ l.displayType === n(g).Simple ? h(l.$slots, "button", { key: 0 }, () => [
212
+ b(I)
779
213
  ]) : _("v-if", !0)
780
214
  ]),
781
- o.displayType === g(V).Full ? (m(), x("div", it, [
782
- $("div", rt, [
783
- A(o.$slots, "extra"),
784
- o.showCount ? (m(), x(
215
+ l.displayType === n(g).Full ? (c(), d("div", r1, [
216
+ f("div", u1, [
217
+ h(l.$slots, "extra"),
218
+ l.showCount ? (c(), d(
785
219
  "span",
786
- ut,
787
- Z(u.value.length) + Z(o.maxLength ?? !1 ? `/${o.maxLength}` : ""),
220
+ c1,
221
+ x(r.value.length) + x(l.maxLength ?? !1 ? `/${l.maxLength}` : ""),
788
222
  1
789
223
  /* TEXT */
790
224
  )) : _("v-if", !0)
791
225
  ]),
792
- A(o.$slots, "button", {}, () => [
793
- ie(re)
226
+ h(l.$slots, "button", {}, () => [
227
+ b(I)
794
228
  ])
795
229
  ])) : _("v-if", !0)
796
230
  ],
@@ -799,9 +233,9 @@ const et = /* @__PURE__ */ W(Ge, [["render", Qe]]), tt = ["disabled"], nt = { cl
799
233
  ));
800
234
  }
801
235
  });
802
- ue.install = (n) => {
803
- n.component("McInput", ue);
236
+ K.install = (t) => {
237
+ t.component("McInput", K);
804
238
  };
805
239
  export {
806
- ue as McInput
240
+ K as McInput
807
241
  };