@10yun/cv-pc-ui 0.3.52 → 0.3.54

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/lib/cv-ui.js CHANGED
@@ -1,19 +1,19 @@
1
- import { ElBadge as Ra, ElButton as Fe, ElAutocomplete as vl, ElForm as Je, ElFormItem as Ua, ElInput as No, ElInputNumber as Jl, ElRadioGroup as en, ElCheckbox as tn, ElCheckboxButton as on, ElCheckboxGroup as an, ElMessage as q, ElOption as Wa, ElSelect as bl, ElCascader as ln, ElTimePicker as nn, ElDatePicker as sn, ElSwitch as rn, ElMessageBox as $a, ElTag as cn, ElTable as dn, ElTableColumn as Z, ElPopover as Oa, ElScrollbar as Fa, ElImage as Ma, ClickOutside as hn, ElAvatar as yl, ElPagination as pn, ElIcon as Cl, ElDialog as un, ElDrawer as mn } from "element-plus";
2
- import { resolveComponent as C, createBlock as V, openBlock as d, mergeProps as O, withCtx as v, renderSlot as D, resolveDirective as re, withDirectives as M, createElementBlock as u, createVNode as b, createCommentVNode as w, normalizeProps as U, withModifiers as wl, createTextVNode as L, toHandlers as kl, guardReactiveProps as Y, createSlots as _e, createElementVNode as r, normalizeClass as z, toDisplayString as T, Fragment as F, renderList as E, normalizeStyle as H, defineComponent as xl, vShow as A, TransitionGroup as gn, withKeys as Oe, ref as B, unref as $, reactive as Ao, computed as G, inject as ne, watch as ae, onMounted as Ne, Transition as fn, nextTick as Be, useCssVars as vn, onUnmounted as bn, h as Ea, shallowRef as se, shallowReadonly as yn, toValue as De, getCurrentScope as Cn, onScopeDispose as wn, getCurrentInstance as kn, toRaw as Sl, toRefs as xn, provide as Te, useSlots as Sn, resolveDynamicComponent as Vl, onBeforeUnmount as Vn, vModelText as _n, render as zo } from "vue";
1
+ import { ElBadge as Ua, ElButton as Fe, ElAutocomplete as bl, ElForm as Je, ElFormItem as Wa, ElInput as Bo, ElInputNumber as Jl, ElRadioGroup as en, ElCheckbox as tn, ElCheckboxButton as on, ElCheckboxGroup as an, ElMessage as q, ElOption as Ya, ElSelect as yl, ElCascader as ln, ElTimePicker as nn, ElDatePicker as sn, ElSwitch as rn, ElMessageBox as Oa, ElTag as cn, ElTable as dn, ElTableColumn as Z, ElPopover as Fa, ElScrollbar as Ma, ElImage as Ea, ClickOutside as hn, ElAvatar as Cl, ElPagination as pn, ElIcon as wl, ElDialog as un, ElDrawer as mn } from "element-plus";
2
+ import { resolveComponent as C, createBlock as V, openBlock as d, mergeProps as O, withCtx as v, renderSlot as D, resolveDirective as re, withDirectives as M, createElementBlock as u, createVNode as b, createCommentVNode as w, normalizeProps as U, withModifiers as kl, createTextVNode as L, toHandlers as xl, guardReactiveProps as Y, createSlots as _e, createElementVNode as r, normalizeClass as z, toDisplayString as T, Fragment as F, renderList as E, normalizeStyle as H, defineComponent as Sl, vShow as A, TransitionGroup as gn, withKeys as Oe, ref as N, unref as $, reactive as Ao, computed as G, inject as ne, watch as ae, onMounted as Be, Transition as fn, nextTick as Ne, useCssVars as vn, onUnmounted as bn, h as Na, shallowRef as se, shallowReadonly as yn, toValue as De, getCurrentScope as Cn, onScopeDispose as wn, getCurrentInstance as kn, toRaw as Vl, toRefs as xn, provide as Te, useSlots as Sn, resolveDynamicComponent as _l, onBeforeUnmount as Vn, vModelText as _n, render as zo } from "vue";
3
3
  import { basicSetup as In } from "codemirror";
4
4
  import { EditorState as Ve, Compartment as Tn, StateEffect as Ln, EditorSelection as Dn } from "@codemirror/state";
5
5
  import { EditorView as X, keymap as $n, placeholder as On } from "@codemirror/view";
6
6
  import { indentWithTab as Fn } from "@codemirror/commands";
7
7
  import { indentUnit as Mn, syntaxHighlighting as Q, HighlightStyle as J } from "@codemirror/language";
8
8
  import { tags as s } from "@lezer/highlight";
9
- import { javascript as Ya } from "@codemirror/lang-javascript";
9
+ import { javascript as Xa } from "@codemirror/lang-javascript";
10
10
  import { html as En } from "@codemirror/lang-html";
11
- import { json as Bn } from "@codemirror/lang-json";
12
- import { markdown as Nn } from "@codemirror/lang-markdown";
11
+ import { json as Nn } from "@codemirror/lang-json";
12
+ import { markdown as Bn } from "@codemirror/lang-markdown";
13
13
  import { vue as zn } from "@codemirror/lang-vue";
14
14
  import { php as Hn } from "@codemirror/lang-php";
15
15
  import { java as An } from "@codemirror/lang-java";
16
- import { sql as Xa } from "@codemirror/lang-sql";
16
+ import { sql as qa } from "@codemirror/lang-sql";
17
17
  import { python as Pn } from "@codemirror/lang-python";
18
18
  import { xml as jn } from "@codemirror/lang-xml";
19
19
  import { go as Rn } from "@codemirror/lang-go";
@@ -23,7 +23,7 @@ const S = (e, t) => {
23
23
  const o = e.__vccOpts || e;
24
24
  for (const [l, a] of t) o[l] = a;
25
25
  return o;
26
- }, et = S({ name: "cvBadge", extends: { ExtendBadge: Ra }, props: { ...Ra.props }, created() {
26
+ }, et = S({ name: "cvBadge", extends: { ExtendBadge: Ua }, props: { ...Ua.props }, created() {
27
27
  }, computed: { isShow() {
28
28
  return !this.value || !(this.value > 0);
29
29
  } }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
@@ -76,7 +76,7 @@ at.install = function(e) {
76
76
  }, it.install = function(e) {
77
77
  e.component(it.name, it);
78
78
  };
79
- const lt = S({ name: "cvAutocompleteBase", props: { ...vl.props }, data: () => ({ localVal: "", loadingStatus: !1 }), created() {
79
+ const lt = S({ name: "cvAutocompleteBase", props: { ...bl.props }, data: () => ({ localVal: "", loadingStatus: !1 }), created() {
80
80
  }, methods: { async querySearchAsync(e, t) {
81
81
  } } }, [["render", function(e, t, o, l, a, i) {
82
82
  const n = C("el-autocomplete");
@@ -105,7 +105,7 @@ const lt = S({ name: "cvAutocompleteBase", props: { ...vl.props }, data: () => (
105
105
  o.status = e[t.statusName], o.msg = e[t.msgName], o.total = e[t.countName], l = e[t.dataName];
106
106
  for (let i in l) a[i] = l[i];
107
107
  return o.data = a, o;
108
- } } }, nt = S({ name: "cvAutocompleteLoad", mixins: [Po], emits: ["update:modelValue", "input"], props: { ...vl.props, modelValue: { type: [String, Object, Number], default: () => ({}) }, placeholder: { type: [String], default: "请输入内容" }, popperClass: { type: [String], default: "cv-autocomplete-load" }, clearable: { type: [Boolean], default: !0 }, triggerOnFocus: !1, debounce: 500, refID: { type: [String], required: !1, default: () => "cvAutocompleteLoad-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) }, compConfig: { type: [Object], default: () => ({}) } }, data: () => ({ localVal: "", searchList: [], compConfigDef: { searchField: ["value"] }, timeout: null, loadingMore: !1 }), directives: { loadmore: { mounted(e, t) {
108
+ } } }, nt = S({ name: "cvAutocompleteLoad", mixins: [Po], emits: ["update:modelValue", "input"], props: { ...bl.props, modelValue: { type: [String, Object, Number], default: () => ({}) }, placeholder: { type: [String], default: "请输入内容" }, popperClass: { type: [String], default: "cv-autocomplete-load" }, clearable: { type: [Boolean], default: !0 }, triggerOnFocus: !1, debounce: 500, refID: { type: [String], required: !1, default: () => "cvAutocompleteLoad-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) }, compConfig: { type: [Object], default: () => ({}) } }, data: () => ({ localVal: "", searchList: [], compConfigDef: { searchField: ["value"] }, timeout: null, loadingMore: !1 }), directives: { loadmore: { mounted(e, t) {
109
109
  const o = /* @__PURE__ */ ((a, i) => {
110
110
  let n = null;
111
111
  return function(...c) {
@@ -159,7 +159,7 @@ const lt = S({ name: "cvAutocompleteBase", props: { ...vl.props }, data: () => (
159
159
  this.$emit("update:modelValue", e);
160
160
  } } }, [["render", function(e, t, o, l, a, i) {
161
161
  const n = C("cv-icons"), c = C("el-autocomplete"), h = re("loadmore");
162
- return M((d(), u("div", null, [b(c, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[1] || (t[1] = (p) => a.localVal = p), "fetch-suggestions": i.querySearchAsync, onChange: i.handleChange, onSelect: i.handleSelect, teleported: !1, "popper-append-to-body": !1 }), { load: v(() => [...t[2] || (t[2] = [])]), default: v(({ item: p }) => [p.is_last_tip ? w("", !0) : D(e.$slots, "default", U(O({ key: 0 }, { item: p }))), p.is_last_tip ? (d(), u("div", { key: 1, class: "cv-autocomolete-nodata", onClick: t[0] || (t[0] = wl((...m) => i.getData && i.getData(...m), ["stop"])), disabled: "" }, [t[3] || (t[3] = L(" 没有更多数据了 ", -1)), b(n, { type: "ElIconRefreshLeft" }), t[4] || (t[4] = L(" 刷新按钮 ", -1))])) : w("", !0)]), _: 3 }, 16, ["modelValue", "fetch-suggestions", "onChange", "onSelect"])])), [[h, i.getMoreData]]);
162
+ return M((d(), u("div", null, [b(c, O(e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[1] || (t[1] = (p) => a.localVal = p), "fetch-suggestions": i.querySearchAsync, onChange: i.handleChange, onSelect: i.handleSelect, teleported: !1, "popper-append-to-body": !1 }), { load: v(() => [...t[2] || (t[2] = [])]), default: v(({ item: p }) => [p.is_last_tip ? w("", !0) : D(e.$slots, "default", U(O({ key: 0 }, { item: p }))), p.is_last_tip ? (d(), u("div", { key: 1, class: "cv-autocomolete-nodata", onClick: t[0] || (t[0] = kl((...m) => i.getData && i.getData(...m), ["stop"])), disabled: "" }, [t[3] || (t[3] = L(" 没有更多数据了 ", -1)), b(n, { type: "ElIconRefreshLeft" }), t[4] || (t[4] = L(" 刷新按钮 ", -1))])) : w("", !0)]), _: 3 }, 16, ["modelValue", "fetch-suggestions", "onChange", "onSelect"])])), [[h, i.getMoreData]]);
163
163
  }]]);
164
164
  lt.install = function(e) {
165
165
  e.component(lt.name, lt);
@@ -171,13 +171,13 @@ const st = S({ ...Je, name: "cvFormBase", extends: Je, provide() {
171
171
  }, props: { ...Je.props, labelWidth: { type: [String, Number], default: "auto" }, labelPosition: { type: String, default: "right" } }, watch: { model() {
172
172
  } }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
173
173
  const n = C("el-form");
174
- return d(), V(n, O({ class: "cv-form-base" }, { ...e.$props, ...e.$attrs }, kl(e.$attrs)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
174
+ return d(), V(n, O({ class: "cv-form-base" }, { ...e.$props, ...e.$attrs }, xl(e.$attrs)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
175
175
  }]]), rt = S({ name: "cvFormInline", provide() {
176
176
  return { elForm: this };
177
177
  }, props: { ...Je.props }, watch: {}, data: () => ({ form: {} }) }, [["render", function(e, t, o, l, a, i) {
178
178
  const n = C("el-form");
179
- return d(), V(n, O({ class: "cv-form-base" }, e.$props, kl(e.$attrs), { inline: !0 }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
180
- }]]), Yn = { name: "cvFormItem", extends: Ua, props: { ...Ua.props }, data: () => ({ localLabelWidth: "", localError: "" }), created() {
179
+ return d(), V(n, O({ class: "cv-form-base" }, e.$props, xl(e.$attrs), { inline: !0 }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
180
+ }]]), Yn = { name: "cvFormItem", extends: Wa, props: { ...Wa.props }, data: () => ({ localLabelWidth: "", localError: "" }), created() {
181
181
  }, methods: {} }, Xn = { key: 0, class: "cv-form-item__tip" }, ct = S(Yn, [["render", function(e, t, o, l, a, i) {
182
182
  const n = C("el-form-item");
183
183
  return d(), V(n, U(Y({ ...e.$props, ...e.$attrs })), { default: v(() => [D(e.$slots, "default"), e.$slots.tip ? (d(), u("div", Xn, [D(e.$slots, "tip")])) : w("", !0)]), _: 3 }, 16);
@@ -189,7 +189,7 @@ st.install = function(e) {
189
189
  }, ct.install = function(e) {
190
190
  e.component(ct.name, ct);
191
191
  };
192
- const ie = { extends: No, emits: ["update:modelValue", "change"], props: { ...No.props, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "" }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue(e) {
192
+ const ie = { extends: Bo, emits: ["update:modelValue", "change"], props: { ...Bo.props, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "" }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue(e) {
193
193
  this.localVal = e;
194
194
  }, localVal() {
195
195
  this.handleChange(), this.handleInput();
@@ -403,7 +403,7 @@ const _t = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e,
403
403
  }]]), It = S({ name: "cvCheckboxOptBtn", extends: on, props: {} }, [["render", function(e, t, o, l, a, i) {
404
404
  const n = C("el-checkbox-button");
405
405
  return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16);
406
- }]]), _l = { props: { ...an.props, modelValue: { type: [Array], default: () => [] }, dataLists: { type: Array, default: () => [] }, dataField: { type: [Object], default: () => ({}) }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue() {
406
+ }]]), Il = { props: { ...an.props, modelValue: { type: [Array], default: () => [] }, dataLists: { type: Array, default: () => [] }, dataField: { type: [Object], default: () => ({}) }, disabled: { type: Boolean, default: !1 } }, watch: { modelValue() {
407
407
  this.localVal = this.modelValue;
408
408
  }, localVal() {
409
409
  this.handleChange();
@@ -429,7 +429,7 @@ const _t = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e,
429
429
  }
430
430
  this._parseLocalOptDiy();
431
431
  }, _parseLocalOptDiy() {
432
- } } }, fs = { class: "cv-checkbox-all" }, Tt = S({ name: "cvCheckboxAll", mixins: [_l], components: {}, data: () => ({ checkAll: !1, isIndeterminate: !0, localOptAll: [] }), methods: { handleCheckAllChange(e) {
432
+ } } }, fs = { class: "cv-checkbox-all" }, Tt = S({ name: "cvCheckboxAll", mixins: [Il], components: {}, data: () => ({ checkAll: !1, isIndeterminate: !0, localOptAll: [] }), methods: { handleCheckAllChange(e) {
433
433
  this.localVal = e ? this.localOptAll : [], this.isIndeterminate = !1, this.handleChange();
434
434
  }, handleCheckedCitiesChange(e) {
435
435
  let t = e.length;
@@ -441,18 +441,18 @@ const _t = S({ name: "cvCheckboxOptBase", extends: tn }, [["render", function(e,
441
441
  } } }, [["render", function(e, t, o, l, a, i) {
442
442
  const n = C("el-checkbox"), c = C("el-checkbox-group");
443
443
  return d(), u("div", fs, [b(n, { indeterminate: a.isIndeterminate, modelValue: a.checkAll, "onUpdate:modelValue": t[0] || (t[0] = (h) => a.checkAll = h), onChange: i.handleCheckAllChange }, { default: v(() => [...t[2] || (t[2] = [L("全选", -1)])]), _: 1 }, 8, ["indeterminate", "modelValue", "onChange"]), t[3] || (t[3] = r("div", { style: { margin: "15px 0" } }, null, -1)), b(c, { modelValue: e.localVal, "onUpdate:modelValue": t[1] || (t[1] = (h) => e.localVal = h), onChange: i.handleCheckedCitiesChange }, { default: v(() => [D(e.$slots, "default", {}, () => [(d(!0), u(F, null, E(e.localOpt, (h, p) => (d(), V(n, { label: h.label, value: h.value, key: p, onChange: e.handleChange, disabled: e.disabled || h.disabled }, { default: v(() => [L(T(h.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128))])]), _: 3 }, 8, ["modelValue", "onChange"])]);
444
- }]]), Lt = S({ name: "cvCheckboxGroup", mixins: [_l], components: {}, props: { type: { type: [String], default: "base" } }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
444
+ }]]), Lt = S({ name: "cvCheckboxGroup", mixins: [Il], components: {}, props: { type: { type: [String], default: "base" } }, data: () => ({}) }, [["render", function(e, t, o, l, a, i) {
445
445
  const n = C("el-checkbox"), c = C("el-checkbox-button"), h = C("el-checkbox-group");
446
446
  return d(), V(h, O(e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (p) => e.localVal = p) }), { default: v(() => [D(e.$slots, "default", {}, () => [o.type == "base" ? (d(!0), u(F, { key: 0 }, E(e.localOpt, (p, m) => (d(), V(n, { label: p.label, value: p.value, key: m, onChange: e.handleChange, disabled: e.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128)) : w("", !0), o.type == "button" ? (d(!0), u(F, { key: 1 }, E(e.localOpt, (p, m) => (d(), V(c, { label: p.label, value: p.value, key: m, onChange: e.handleChange, disabled: e.disabled || p.disabled }, { default: v(() => [L(T(p.label), 1)]), _: 2 }, 1032, ["label", "value", "onChange", "disabled"]))), 128)) : w("", !0)])]), _: 3 }, 16, ["modelValue"]);
447
447
  }]]);
448
- function Il(e, t, o) {
448
+ function Tl(e, t, o) {
449
449
  var l = {}.atBegin;
450
450
  return function(a, i, n) {
451
451
  var c, h = n || {}, p = h.noTrailing, m = p !== void 0 && p, f = h.noLeading, g = f !== void 0 && f, k = h.debounceMode, x = k === void 0 ? void 0 : k, y = !1, _ = 0;
452
452
  function I() {
453
453
  c && clearTimeout(c);
454
454
  }
455
- function N() {
455
+ function B() {
456
456
  for (var P = arguments.length, j = new Array(P), W = 0; W < P; W++) j[W] = arguments[W];
457
457
  var ee = this, te = Date.now() - _;
458
458
  function ce() {
@@ -463,10 +463,10 @@ function Il(e, t, o) {
463
463
  }
464
464
  y || (g || !x || c || ce(), I(), x === void 0 && te > a ? g ? (_ = Date.now(), m || (c = setTimeout(x ? ze : ce, a))) : ce() : m !== !0 && (c = setTimeout(x ? ze : ce, x === void 0 ? a - te : a)));
465
465
  }
466
- return N.cancel = function(P) {
466
+ return B.cancel = function(P) {
467
467
  var j = (P || {}).upcomingOnly, W = j !== void 0 && j;
468
468
  I(), y = !W;
469
- }, N;
469
+ }, B;
470
470
  }(e, t, { debounceMode: (l !== void 0 && l) !== !1 });
471
471
  }
472
472
  function Dt(e, t = !1, o = !0) {
@@ -498,7 +498,7 @@ function bs(e) {
498
498
  function ke(e, ...t) {
499
499
  return t.reduce((o, l) => Object.keys(l).reduce((a, i) => {
500
500
  const n = l[i];
501
- return Ho(n) ? a[i] = ke(a[i] ? a[i] : {}, n) : Ll(n) ? a[i] = n.map((c, h) => {
501
+ return Ho(n) ? a[i] = ke(a[i] ? a[i] : {}, n) : Dl(n) ? a[i] = n.map((c, h) => {
502
502
  if (Ho(c)) {
503
503
  const p = a[i] ? a[i] : [];
504
504
  return ke(p[h] ? p[h] : {}, c);
@@ -507,18 +507,18 @@ function ke(e, ...t) {
507
507
  }) : a[i] = n, a;
508
508
  }, o), e);
509
509
  }
510
- function Tl(e, t) {
510
+ function Ll(e, t) {
511
511
  const { [t[0]]: o, ...l } = e;
512
512
  return Object.keys(e).reduce((a, i) => (t.includes(i) || (a[i] = e[i]), a), {});
513
513
  }
514
514
  function Ho(e) {
515
515
  return Object.prototype.toString.call(e) === "[object Object]";
516
516
  }
517
- function Ll(e) {
517
+ function Dl(e) {
518
518
  return typeof Array.isArray == "function" ? Array.isArray(e) : Object.prototype.toString.call(e) === "[object Array]";
519
519
  }
520
520
  function $e(e) {
521
- return Ll(e) ? e.length === 0 : Ho(e) ? Object.keys(e).length === 0 : e === "" || e == null;
521
+ return Dl(e) ? e.length === 0 : Ho(e) ? Object.keys(e).length === 0 : e === "" || e == null;
522
522
  }
523
523
  function Ee(e, t) {
524
524
  return $e(e) ? t : e;
@@ -539,7 +539,7 @@ _t.install = function(e) {
539
539
  }, Tt.install = function(e) {
540
540
  e.component(Tt.name, Tt);
541
541
  };
542
- const Dl = (() => {
542
+ const $l = (() => {
543
543
  const e = { svg: ["image/svg+xml", "image/svg"], jpg: ["image/jpeg", "image/jpg"], jpeg: ["image/jpeg"], png: ["image/png"], gif: ["image/gif"], webp: ["image/webp"], bmp: ["image/bmp", "image/x-bmp", "image/x-ms-bmp"], ico: ["image/x-icon", "image/vnd.microsoft.icon"], tiff: ["image/tiff", "image/tif", "image/x-tiff"], apng: ["image/apng"], avif: ["image/avif"], heic: ["image/heic"], pdf: ["application/pdf"], txt: ["text/plain"], csv: ["text/csv"], json: ["application/json"], xml: ["application/xml"], doc: ["application/msword"], docx: ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"], xls: ["application/vnd.ms-excel"], xlsx: ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"], ppt: ["application/vnd.ms-powerpoint"], pptx: ["application/vnd.openxmlformats-officedocument.presentationml.presentation"], zip: ["application/zip"], rar: ["application/x-rar-compressed"], "7z": ["application/x-7z-compressed"], mp3: ["audio/mpeg"], mp4: ["video/mp4"], mov: ["video/quicktime"], avi: ["video/x-msvideo"], wav: ["audio/wav"] }, t = {}, o = {};
544
544
  for (const [l, a] of Object.entries(e)) {
545
545
  t[l] = a[0];
@@ -603,12 +603,12 @@ const Dl = (() => {
603
603
  } } }, ws = { class: "cv-geo-city" }, ks = { key: 0 }, xs = { key: 1 }, $t = S(Cs, [["render", function(e, t, o, l, a, i) {
604
604
  const n = C("el-option"), c = C("el-select"), h = re("loading");
605
605
  return M((d(), u("div", ws, [r("div", null, [b(c, { modelValue: a.local1_code, "onUpdate:modelValue": t[0] || (t[0] = (p) => a.local1_code = p), onFocus: i.getProvinces, onChange: i.changeProvince, placeholder: "省", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.provinceList, (p, m) => (d(), V(n, { key: p.provinceCode, label: p.provinceName, value: p.provinceCode }, { default: v(() => [L(T(p.provinceName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])]), o.cityHide ? w("", !0) : (d(), u("div", ks, [b(c, { modelValue: a.local2_code, "onUpdate:modelValue": t[1] || (t[1] = (p) => a.local2_code = p), onFocus: i.getCities, onChange: i.changeCity, placeholder: "市", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.cityList, (p, m) => (d(), V(n, { key: p.cityCode, label: p.cityName, value: p.cityCode }, { default: v(() => [L(T(p.cityName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])])), o.cityHide || o.districtHide ? w("", !0) : (d(), u("div", xs, [b(c, { modelValue: a.local3_code, "onUpdate:modelValue": t[2] || (t[2] = (p) => a.local3_code = p), onFocus: i.getDistrict, onChange: i.changeDistrict, placeholder: "区/县", filterable: "" }, { default: v(() => [(d(!0), u(F, null, E(a.districtList, (p, m) => (d(), V(n, { key: p.districtCode, label: p.districtName, value: p.districtCode }, { default: v(() => [L(T(p.districtName), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onFocus", "onChange"])]))])), [[h, a.isCdnLoading]]);
606
- }]]), $l = { computed: { componentName() {
606
+ }]]), Ol = { computed: { componentName() {
607
607
  return this.$options.name;
608
608
  } }, methods: { _mergeAttrs(e) {
609
609
  const t = this.$cvUiParams || {}, o = e && t[e] || {}, l = t[this.componentName] || {}, a = Object.assign({}, o, l);
610
610
  return Object.assign({}, a, this.$attrs);
611
- } } }, Ss = { class: "cv-geo-map__wrap" }, Vs = { class: "cv-geo-map__box" }, _s = { style: { width: "100%", height: "510px" } }, Is = ["src"], Ts = { class: "cv-geo-map__info" }, Ls = { key: 0, class: "cv-geo-map__address" }, Ds = { key: 1, class: "cv-geo-map__jwd" }, Ot = S({ name: "cvGeoMap", mixins: [$l], emits: ["update:address", "update:latitude", "update:longitude", "update:name", "update:city"], props: { title: { type: [String], default: "选择经纬度地点" }, mapKey: { type: [String], default: "" }, mapType: { type: [String], default: "qq" }, address: { type: [String] }, latitude: { type: [Number, String] }, longitude: { type: [Number, String] } }, watch: { address(e) {
611
+ } } }, Ss = { class: "cv-geo-map__wrap" }, Vs = { class: "cv-geo-map__box" }, _s = { style: { width: "100%", height: "510px" } }, Is = ["src"], Ts = { class: "cv-geo-map__info" }, Ls = { key: 0, class: "cv-geo-map__address" }, Ds = { key: 1, class: "cv-geo-map__jwd" }, Ot = S({ name: "cvGeoMap", mixins: [Ol], emits: ["update:address", "update:latitude", "update:longitude", "update:name", "update:city"], props: { title: { type: [String], default: "选择经纬度地点" }, mapKey: { type: [String], default: "" }, mapSecret: { type: [String], default: "" }, mapType: { type: [String], default: "qq" }, address: { type: [String] }, name: { type: [String] }, city: { type: [String] }, latitude: { type: [Number, String] }, longitude: { type: [Number, String] } }, watch: { address(e) {
612
612
  this.localAddress = e;
613
613
  }, latitude(e) {
614
614
  this.localLatitude = e;
@@ -620,9 +620,21 @@ const Dl = (() => {
620
620
  this.localCity = e;
621
621
  } }, computed: { localMapKey() {
622
622
  return this._mergeAttrs("geo").mapKey;
623
+ }, localMapSecret() {
624
+ return this._mergeAttrs("geo").mapSecret;
623
625
  }, mapSrc() {
624
626
  let e = this.localMapKey;
625
- return this.mapType == "qq" ? `https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=${e}&referer=myapp` : (this.$message.info("目前只支持腾讯地图"), "");
627
+ if (this.mapType == "qq") {
628
+ if (!this.localMapKey) return "";
629
+ let t = "https://apis.map.qq.com/tools/locpicker";
630
+ return t += `?search=1&type=1&key=${e}&referer=myapp`, this.latitude && this.longitude && (t += `&coord=${this.latitude},${this.longitude}`), t;
631
+ }
632
+ if (this.mapType == "amap") {
633
+ if (!this.localMapKey || !this.localMapSecret) return "";
634
+ let t = "https://m.amap.com/picker/";
635
+ return t += `?zoom=15&radius=1000&total=20&key=${e}&jscode=${localMapSecret}`, this.latitude && this.longitude && (t += `&center=${this.longitude},${this.latitude}`), t;
636
+ }
637
+ return this.$message.info("目前不支持百度地图"), "";
626
638
  } }, data: () => ({ localMapShow: !1, localAddress: "", localLatitude: "", localLongitude: "", localName: "", localCity: "" }), mounted() {
627
639
  this.initData();
628
640
  }, methods: { initData() {
@@ -648,7 +660,7 @@ $t.install = function(e) {
648
660
  }, Ot.install = function(e) {
649
661
  e.component(Ot.name, Ot);
650
662
  };
651
- const Ft = { ...Wa, extends: Wa, name: "cvSelectOpt" }, Mt = S({ name: "cvSelectBase", emits: ["onChoose", "change", "update:modelValue"], props: { ...bl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({}) }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" } }, watch: { modelValue(e) {
663
+ const Ft = { ...Ya, extends: Ya, name: "cvSelectOpt" }, Mt = S({ name: "cvSelectBase", emits: ["onChoose", "change", "update:modelValue"], props: { ...yl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({}) }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" } }, watch: { modelValue(e) {
652
664
  this.localVal = e;
653
665
  }, dataLists: { handler() {
654
666
  this._parseLocalOpt();
@@ -676,7 +688,7 @@ const Ft = { ...Wa, extends: Wa, name: "cvSelectOpt" }, Mt = S({ name: "cvSelect
676
688
  } } }, [["render", function(e, t, o, l, a, i) {
677
689
  const n = C("el-option"), c = C("el-select");
678
690
  return d(), V(c, O({ class: "cv-select-base" }, e.$props, { modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (h) => a.localVal = h), size: e.size, filterable: "", clearable: "" }), { default: v(() => [D(e.$slots, "default", {}, () => [(d(!0), u(F, null, E(a.localOpt, (h, p) => (d(), V(n, { onClick: (m) => i.handleChoose(h, p), disabled: h.disabled, label: h.label, value: h.value, key: p }, null, 8, ["onClick", "disabled", "label", "value"]))), 128))])]), _: 3 }, 16, ["modelValue", "size"]);
679
- }]]), Et = S({ name: "cvSelectTree", emits: ["update:modelValue", "change"], props: { ...bl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({ value: "id", label: "title", children: "children" }) }, clearable: { type: Boolean, default: !0 }, accordion: { type: Boolean, default: !1 }, defaultExpandAll: { type: Boolean, default: !0 }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" }, showAllLevels: { type: Boolean, default: !0 }, showCheckbox: { type: Boolean, default: !1 }, filterable: { type: Boolean, default: !0 }, emitPath: { type: Boolean, default: !0 }, multiple: { type: Boolean, default: !1 }, refID: { type: [String], required: !1, default: () => "cvSelectTree-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) } }, watch: { modelValue() {
691
+ }]]), Et = S({ name: "cvSelectTree", emits: ["update:modelValue", "change"], props: { ...yl.props, modelValue: { type: [String, Array, Number], default: () => "" }, dataLists: { type: [Array], default: () => [] }, dataField: { type: [Object], default: () => ({ value: "id", label: "title", children: "children" }) }, clearable: { type: Boolean, default: !0 }, accordion: { type: Boolean, default: !1 }, defaultExpandAll: { type: Boolean, default: !0 }, dataDisabled: { type: [Array], default: () => [] }, disabled: { type: Boolean, default: !1 }, placeholder: { type: [String, Number], default: "请选择" }, showAllLevels: { type: Boolean, default: !0 }, showCheckbox: { type: Boolean, default: !1 }, filterable: { type: Boolean, default: !0 }, emitPath: { type: Boolean, default: !0 }, multiple: { type: Boolean, default: !1 }, refID: { type: [String], required: !1, default: () => "cvSelectTree-" + +/* @__PURE__ */ new Date() + (Math.random() / 1e4).toFixed(0) } }, watch: { modelValue() {
680
692
  this.localVal = this.modelValue, this.initHandle();
681
693
  }, dataLists: { handler() {
682
694
  this._parseLocalOpt();
@@ -750,14 +762,14 @@ const $s = { name: "cvCascaderBase", components: {}, props: { ...ln.props, model
750
762
  }), a[i].children && l(a[i].children);
751
763
  })(e), this.localOpt = e;
752
764
  }, getCheckedNodes() {
753
- } } }, Os = { class: "cv-cascader-base block" }, Bt = S($s, [["render", function(e, t, o, l, a, i) {
765
+ } } }, Os = { class: "cv-cascader-base block" }, Nt = S($s, [["render", function(e, t, o, l, a, i) {
754
766
  const n = C("el-cascader");
755
767
  return d(), u("div", Os, [b(n, O(e.$props, { props: i.props2, modelValue: a.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.localVal = c), options: a.localOpt, onChange: i.handleChange, onGetCheckedNodes: i.getCheckedNodes }), null, 16, ["props", "modelValue", "options", "onChange", "onGetCheckedNodes"])]);
756
768
  }]]);
757
- Bt.install = function(e) {
758
- e.component(Bt.name, Bt);
769
+ Nt.install = function(e) {
770
+ e.component(Nt.name, Nt);
759
771
  };
760
- const Ol = { props: { ...nn.props, modelValue: { type: [String, Array, Number, Object, Date], default: null } }, watch: { modelValue: { handler() {
772
+ const Fl = { props: { ...nn.props, modelValue: { type: [String, Array, Number, Object, Date], default: null } }, watch: { modelValue: { handler() {
761
773
  if (this.valueFormat != "timestamp") this.localVal = this.modelValue;
762
774
  else if (Array.isArray(this.modelValue)) {
763
775
  var e;
@@ -776,10 +788,10 @@ const Ol = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
776
788
  this.$emit("update:modelValue", e);
777
789
  } else isNaN(this.localVal) || this.localVal.toString().length != 13 || (e = parseInt(this.localVal / 1e3), this.modelValue != e && this.$emit("update:modelValue", e));
778
790
  } }, data: () => ({ localVal: "" }), created() {
779
- }, methods: {} }, Nt = S({ name: "cvTimeBase", mixins: [Ol], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, placeholder: { type: [String, Number], default: "选择时间" } } }, [["render", function(e, t, o, l, a, i) {
791
+ }, methods: {} }, Bt = S({ name: "cvTimeBase", mixins: [Fl], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, placeholder: { type: [String, Number], default: "选择时间" } } }, [["render", function(e, t, o, l, a, i) {
780
792
  const n = C("el-time-picker");
781
793
  return d(), V(n, O({ class: "cv-timePicker-base" }, e.$props, { modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), format: o.format, "picker-options": {} }), null, 16, ["modelValue", "format"]);
782
- }]]), zt = S({ name: "cvTimeRange", mixins: [Ol], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, startPlaceholder: { type: [String, Number], default: "开始时间" }, rangeSeparator: { type: [String, Number], default: "至" }, endPlaceholder: { type: [String, Number], default: "结束时间" } } }, [["render", function(e, t, o, l, a, i) {
794
+ }]]), zt = S({ name: "cvTimeRange", mixins: [Fl], props: { format: { type: String, default: "HH:mm:ss" }, valueFormat: { type: String, default: "HH:mm:ss" }, startPlaceholder: { type: [String, Number], default: "开始时间" }, rangeSeparator: { type: [String, Number], default: "至" }, endPlaceholder: { type: [String, Number], default: "结束时间" } } }, [["render", function(e, t, o, l, a, i) {
783
795
  const n = C("el-time-picker");
784
796
  return d(), V(n, O({ class: "cv-timePicker-range" }, e.$props, { "is-range": "", modelValue: e.localVal, "onUpdate:modelValue": t[0] || (t[0] = (c) => e.localVal = c), format: o.format, "range-separator": o.rangeSeparator, "start-placeholder": o.startPlaceholder, "end-placeholder": o.endPlaceholder }), null, 16, ["modelValue", "format", "range-separator", "start-placeholder", "end-placeholder"]);
785
797
  }]]), Ht = S({ name: "cvTimeSelect" }, [["render", function(e, t, o, l, a, i) {
@@ -937,8 +949,8 @@ const Ol = { props: { ...nn.props, modelValue: { type: [String, Array, Number, O
937
949
  const n = C("el-date-picker");
938
950
  return d(), V(n, { modelValue: a.internalValue, "onUpdate:modelValue": t[0] || (t[0] = (c) => a.internalValue = c), type: "datetimerange", shortcuts: i.refinedShortcuts, "range-separator": "至", "start-placeholder": "开始时间", "end-placeholder": "结束时间", "value-format": "YYYY-MM-DD HH:mm:ss", "default-time": a.defaultTime, onChange: i.handleDateChange, onCalendarChange: i.handleCalendarChange, clearable: "", class: "screen-date-picker" }, null, 8, ["modelValue", "shortcuts", "default-time", "onChange", "onCalendarChange"]);
939
951
  }]]);
940
- Nt.install = function(e) {
941
- e.component(Nt.name, Nt);
952
+ Bt.install = function(e) {
953
+ e.component(Bt.name, Bt);
942
954
  }, zt.install = function(e) {
943
955
  e.component(zt.name, zt);
944
956
  }, Ht.install = function(e) {
@@ -969,7 +981,7 @@ const Wt = S({ name: "cvSwitchBase", props: { ...rn.props, activeColor: { type:
969
981
  Wt.install = function(e) {
970
982
  e.component(Wt.name, Wt);
971
983
  };
972
- const Yt = S({ name: "cvCodeSms", mixins: [], components: {}, props: { ...No.props, maxlength: { type: [Number, String], default: 6 }, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "请输入验证码" }, disabled: { type: Boolean, default: !1 }, mobile: { type: [Number, String], default: "" }, mobileParam: { type: String, default: "mobile" }, codeUrl: { type: String, default: "" }, codeSign: { type: Boolean, default: !1 }, apiFunc: { type: Function, default: null }, waitTime: { type: [Number, String], default: 60 } }, watch: { mobile(e) {
984
+ const Yt = S({ name: "cvCodeSms", mixins: [], components: {}, props: { ...Bo.props, maxlength: { type: [Number, String], default: 6 }, modelValue: { type: [Number, String], default: "" }, placeholder: { type: [Number, String], default: "请输入验证码" }, disabled: { type: Boolean, default: !1 }, mobile: { type: [Number, String], default: "" }, mobileParam: { type: String, default: "mobile" }, codeUrl: { type: String, default: "" }, codeSign: { type: Boolean, default: !1 }, apiFunc: { type: Function, default: null }, waitTime: { type: [Number, String], default: 60 } }, watch: { mobile(e) {
973
985
  this.localMobile = e;
974
986
  }, modelValue(e) {
975
987
  this.localVal = e;
@@ -1008,9 +1020,9 @@ const Yt = S({ name: "cvCodeSms", mixins: [], components: {}, props: { ...No.pro
1008
1020
  Yt.install = function(e) {
1009
1021
  e.component(Yt.name, Yt);
1010
1022
  };
1011
- const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type: [Number], default: 2 }, fileUnit: { type: [String], default: "" }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 } } }, Ms = { class: "cv-upload-tip-box" }, Es = { key: 0 }, Bs = { key: 1 }, Ro = { inheritAttrs: !1, emits: ["update:modelValue", "update:initValue", "delete", "error", "success"], components: { uploadTip: S(Fs, [["render", function(e, t, o, l, a, i) {
1012
- return d(), u("div", Ms, [t[0] || (t[0] = r("span", null, "最多上传", -1)), r("b", null, T(o.limit), 1), r("span", null, T(o.fileUnit), 1), o.fileType.length ? (d(), u("b", Es, T(o.fileType.length ? o.fileType.join("/") : ""), 1)) : w("", !0), o.fileType.length ? (d(), u("span", Bs, "格式")) : w("", !0), r("span", null, "文件;且每" + T(o.fileUnit) + "不超过", 1), r("b", null, T(o.fileSize) + "MB", 1)]);
1013
- }]]) }, mixins: [$l], props: { multiple: { type: [Boolean], default: !1 }, limit: { type: [Number, String], default: 1 }, drag: { type: Boolean, default: !1 }, httpRequest: { type: [Function], default: () => {
1023
+ const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type: [Number], default: 2 }, fileUnit: { type: [String], default: "" }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 } } }, Ms = { class: "cv-upload-tip-box" }, Es = { key: 0 }, Ns = { key: 1 }, Ro = { inheritAttrs: !1, emits: ["update:modelValue", "update:initValue", "delete", "error", "success"], components: { uploadTip: S(Fs, [["render", function(e, t, o, l, a, i) {
1024
+ return d(), u("div", Ms, [t[0] || (t[0] = r("span", null, "最多上传", -1)), r("b", null, T(o.limit), 1), r("span", null, T(o.fileUnit), 1), o.fileType.length ? (d(), u("b", Es, T(o.fileType.length ? o.fileType.join("/") : ""), 1)) : w("", !0), o.fileType.length ? (d(), u("span", Ns, "格式")) : w("", !0), r("span", null, "文件;且每" + T(o.fileUnit) + "不超过", 1), r("b", null, T(o.fileSize) + "MB", 1)]);
1025
+ }]]) }, mixins: [Ol], props: { multiple: { type: [Boolean], default: !1 }, limit: { type: [Number, String], default: 1 }, drag: { type: Boolean, default: !1 }, httpRequest: { type: [Function], default: () => {
1014
1026
  } }, accept: String, beforeRemove: Function, upResponseFn: { type: [Function], default: null }, signatureFn: { type: Function, default: null }, signatureType: { type: [String], default: "aliyun_oss_type2" }, signatureParam: { type: [Object], default: () => ({}) } }, data: () => ({ cropShow: !1, upIngPercent: 0, upIngLoading: !1, upIngFileInfo: {} }), computed: { fileTypeStr() {
1015
1027
  return this.fileType.join(",");
1016
1028
  }, tipAttr() {
@@ -1039,17 +1051,17 @@ const Fs = { props: { fileType: { type: [Array], default: [] }, fileSize: { type
1039
1051
  }, initOnExceed() {
1040
1052
  this.$message.error(`最多上传${this.limit}个文件`);
1041
1053
  } } };
1042
- function qa(e) {
1054
+ function Ka(e) {
1043
1055
  let t = e.lastIndexOf("/"), o = e.substring(t + 1, e.length), l = "";
1044
1056
  return o.lastIndexOf(".") > -1 && (l = o.slice(o.lastIndexOf(".") + 1), l = "image/" + l), { name: o, url: e, type: l, status: "success" };
1045
1057
  }
1046
1058
  function de(e) {
1047
1059
  return Math.pow(1024, e);
1048
1060
  }
1049
- function Ka(e) {
1061
+ function Ga(e) {
1050
1062
  return e ? e < de(1) ? e + " B" : e < de(2) ? (e / de(1)).toFixed(2) + " KB" : e < de(3) ? (e / de(2)).toFixed(2) + " MB" : e < de(4) ? (e / de(3)).toFixed(2) + " GB" : (e / de(4)).toFixed(2) + " TB" : "-";
1051
1063
  }
1052
- function Ns(e) {
1064
+ function Bs(e) {
1053
1065
  if (!e) return !0;
1054
1066
  const t = e?.expiration_last;
1055
1067
  if (!t) return !0;
@@ -1062,10 +1074,10 @@ function Ns(e) {
1062
1074
  }(t), l = /* @__PURE__ */ new Date();
1063
1075
  return !!isNaN(o.getTime()) || o.getTime() - l.getTime() <= 6e4;
1064
1076
  }
1065
- function Fl(e) {
1066
- return e ? typeof e == "string" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
1077
+ function Da(e) {
1078
+ return e ? typeof e == "string" || typeof e == "number" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
1067
1079
  }
1068
- function Ga(e, t) {
1080
+ function Za(e, t) {
1069
1081
  let o = [];
1070
1082
  Array.isArray(e) && e.length > 0 && o.push(...e), Array.isArray(t) && t.length > 0 && o.push(...t), typeof t == "string" && o.push(t);
1071
1083
  let l = [];
@@ -1077,31 +1089,31 @@ function Ga(e, t) {
1077
1089
  }
1078
1090
  function Ba(e) {
1079
1091
  let t = [], o = Object.prototype.toString.call(e);
1080
- if (o === "[object String]") t.push(qa(e));
1092
+ if (o === "[object String]") t.push(Ka(e));
1081
1093
  else if (o === "[object Object]") e.name && e.url && t.push(e);
1082
1094
  else if (o === "[object Array]") for (let l in e) {
1083
1095
  let a = e[l], i = Object.prototype.toString.call(a);
1084
- i === "[object String]" ? t.push(qa(a)) : i === "[object Object]" && a.name && a.url && t.push(a);
1096
+ i === "[object String]" ? t.push(Ka(a)) : i === "[object Object]" && a.name && a.url && t.push(a);
1085
1097
  }
1086
1098
  return t;
1087
1099
  }
1088
- async function Za(e, t) {
1100
+ async function Qa(e, t) {
1089
1101
  if (!e || typeof e != "function") return !1;
1090
1102
  let o = null;
1091
- if (Ns(o)) {
1103
+ if (Bs(o)) {
1092
1104
  let l = await e({ ...t });
1093
1105
  if (!l || !l.data || l.status != 200) throw q.error("获取STS令牌失败"), new Error(`获取STS令牌失败 ${l?.message}`);
1094
1106
  o = l.data || {};
1095
1107
  }
1096
1108
  return { ...o, pass: !!o };
1097
1109
  }
1098
- async function Qa(e, t, o, l) {
1110
+ async function Ja(e, t, o, l) {
1099
1111
  e = e || "aliyun_oss_type2", l = l || {};
1100
- const a = await Za(t, { upload_type: e, ...o });
1112
+ const a = await Qa(t, { upload_type: e, ...o });
1101
1113
  if (!a.pass) return q.error("获取oss上传凭证异常");
1102
1114
  if (e == "oss_upload1") {
1103
1115
  const i = { bucket: a.bucket, region: a.endpoint.split(".")[0], accessKeyId: a.accessKeyId, accessKeySecret: a.accessKeySecret, stsToken: a.securityToken, expiration: a.expiration, ...l, refreshSTSToken: async () => {
1104
- const n = await Za(t);
1116
+ const n = await Qa(t);
1105
1117
  return { accessKeyId: n.accessKeyId, accessKeySecret: n.accessKeySecret, stsToken: n.securityToken };
1106
1118
  }, refreshSTSTokenInterval: new Date(a.expiration) - /* @__PURE__ */ new Date() - 6e4 };
1107
1119
  return new OSS(i);
@@ -1121,7 +1133,7 @@ async function Ml(e, t, o) {
1121
1133
  }).catch((i) => {
1122
1134
  });
1123
1135
  }
1124
- async function Na(e, t, o, l) {
1136
+ async function za(e, t, o, l) {
1125
1137
  if (!o || typeof o != "function") return q.error("签名方法错误"), Promise.reject();
1126
1138
  try {
1127
1139
  let a = function() {
@@ -1130,7 +1142,7 @@ async function Na(e, t, o, l) {
1130
1142
  }(), i = function(h) {
1131
1143
  if (!h) return "jpg";
1132
1144
  const p = h.toLowerCase().trim();
1133
- return Dl.mimeToExtension[p] || "jpg";
1145
+ return $l.mimeToExtension[p] || "jpg";
1134
1146
  }(e.type), n = `${a}.${i}`;
1135
1147
  const c = await o({ upload_type: t, ...l, save_extension: i }).then((h) => h.data || {}).catch((h) => (q.error("签名失败"), Promise.reject()));
1136
1148
  if (!c) return Promise.reject();
@@ -1183,9 +1195,9 @@ El.getData = (e) => new Promise((t, o) => {
1183
1195
  }
1184
1196
  x++;
1185
1197
  }
1186
- if (g && (c = g + 4, h = g + 10, function(N, P, j) {
1198
+ if (g && (c = g + 4, h = g + 10, function(B, P, j) {
1187
1199
  var W, ee = "";
1188
- for (W = P, j += P; W < j; W++) ee += String.fromCharCode(N.getUint8(W));
1200
+ for (W = P, j += P; W < j; W++) ee += String.fromCharCode(B.getUint8(W));
1189
1201
  return ee;
1190
1202
  }(_, c, 4) === "Exif" && (f = _.getUint16(h), ((m = f === 18761) || f === 19789) && _.getUint16(h + 2, m) === 42 && (p = _.getUint32(h + 4, m), p >= 8 && (k = h + p)))), k) {
1191
1203
  for (I = _.getUint16(k, m), y = 0; y < I; y++) if (x = k + 12 * y + 2, _.getUint16(x, m) === 274) {
@@ -1207,7 +1219,7 @@ const zs = (e, t) => {
1207
1219
  const o = e.__vccOpts || e;
1208
1220
  for (const [l, a] of t) o[l] = a;
1209
1221
  return o;
1210
- }, Hs = xl({ data: function() {
1222
+ }, Hs = Sl({ data: function() {
1211
1223
  return { w: 0, h: 0, scale: 1, x: 0, y: 0, loading: !0, trueWidth: 0, trueHeight: 0, move: !0, moveX: 0, moveY: 0, crop: !1, cropping: !1, cropW: 0, cropH: 0, cropOldW: 0, cropOldH: 0, canChangeX: !1, canChangeY: !1, changeCropTypeX: 1, changeCropTypeY: 1, cropX: 0, cropY: 0, cropChangeX: 0, cropChangeY: 0, cropOffsertX: 0, cropOffsertY: 0, support: "", touches: [], touchNow: !1, rotate: 0, isIos: !1, orientation: 0, imgs: "", coe: 0.2, scaling: !1, scalingSet: "", coeStatus: "", isCanShow: !0, imgIsQqualCrop: !1 };
1212
1224
  }, props: { img: { type: [String, Blob, null, File], default: "" }, outputSize: { type: Number, default: 1 }, outputType: { type: String, default: "jpeg" }, info: { type: Boolean, default: !0 }, canScale: { type: Boolean, default: !0 }, autoCrop: { type: Boolean, default: !1 }, autoCropWidth: { type: [Number, String], default: 0 }, autoCropHeight: { type: [Number, String], default: 0 }, fixed: { type: Boolean, default: !1 }, fixedNumber: { type: Array, default: () => [1, 1] }, fixedBox: { type: Boolean, default: !1 }, full: { type: Boolean, default: !1 }, canMove: { type: Boolean, default: !0 }, canMoveBox: { type: Boolean, default: !0 }, original: { type: Boolean, default: !1 }, centerBox: { type: Boolean, default: !1 }, high: { type: Boolean, default: !0 }, infoTrue: { type: Boolean, default: !1 }, maxImgSize: { type: [Number, String], default: 2e3 }, enlarge: { type: [Number, String], default: 1 }, preW: { type: [Number, String], default: 0 }, mode: { type: String, default: "contain" }, limitMinSize: { type: [Number, Array, String], default: () => 10, validator: function(e) {
1213
1225
  return Array.isArray(e) ? Number(e[0]) >= 0 && Number(e[1]) >= 0 : Number(e) >= 0;
@@ -1716,7 +1728,7 @@ const zs = (e, t) => {
1716
1728
  const { file: t } = e;
1717
1729
  this.upIngLoading = !0;
1718
1730
  const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
1719
- await Na(t, o, l, a).then((i) => {
1731
+ await za(t, o, l, a).then((i) => {
1720
1732
  this.$nextTick(() => {
1721
1733
  this.$emit("update:modelValue", i.full_path), this.$emit("update:initValue", i.cdn_full_path);
1722
1734
  }), q.success("上传成功"), this.upIngLoading = !1, this.cropShow = !1;
@@ -1726,7 +1738,7 @@ const zs = (e, t) => {
1726
1738
  } } }, tr = ["src"], Xt = S(er, [["render", function(e, t, o, l, a, i) {
1727
1739
  const n = C("upload-tip"), c = C("cv-icons"), h = C("el-button"), p = C("el-tooltip"), m = C("el-upload"), f = C("upload-crop");
1728
1740
  return d(), u("div", { class: "cv-upload-avatar-wrap", onClick: t[2] || (t[2] = (...g) => i.cropDialogOpen && i.cropDialogOpen(...g)) }, [o.initValue ? w("", !0) : (d(), u("div", { key: 0, class: "cv-upload-avatar-box cv-upload-avatar-empty", style: H(i.showStyle) }, [...t[3] || (t[3] = [r("div", { class: "cv-upload-avatar__text" }, "上传头像", -1)])], 4)), o.initValue ? (d(), u("div", { key: 1, class: "cv-upload-avatar-box", style: H(i.showStyle) }, [r("img", { class: "cv-upload-avatar__img", src: o.initValue }, null, 8, tr)], 4)) : w("", !0), b(n, O(e.tipAttr, { fileUnit: "张", multiple: !1, limit: 1 }), null, 16), o.crop ? (d(), V(f, { key: 2, modelValue: e.cropShow, "onUpdate:modelValue": t[0] || (t[0] = (g) => e.cropShow = g), title: "修改头像", size: o.showSize, onOnSubmit: i.onHttpRequest, onOnClose: t[1] || (t[1] = (g) => e.upIngLoading = !1), loading: e.upIngLoading, src: a.localValue }, { default: v(() => [b(m, O(i.handlerAttr, { "before-upload": i.initBeforeUpload, "http-request": e.initHttpRequest }), { default: v(() => [b(p, { effect: "dark", content: "选择图片", placement: "top" }, { default: v(() => [b(h, { style: { "margin-right": "10px" }, loading: e.upIngLoading, disabled: e.upIngLoading }, { default: v(() => [b(c, { type: "ElIconPlus", size: "14", style: { "margin-right": "10px" } }), t[4] || (t[4] = L(" 选择 ", -1))]), _: 1 }, 8, ["loading", "disabled"])]), _: 1 })]), _: 1 }, 16, ["before-upload", "http-request"])]), _: 1 }, 8, ["modelValue", "size", "onOnSubmit", "loading", "src"])) : w("", !0)]);
1729
- }]]), or = { title: "图片上传", name: "cvUploadImage", mixins: [Ro], components: {}, props: { modelValue: { type: [String, Array, Object], default: () => [] }, initValue: { type: [String, Array], default: () => "" }, fileSize: { type: [Number], default: 2 }, fileType: { type: [Array], default: () => ["png", "jpg", "jpeg", "gif"] }, showSize: { type: Number, default: 150 }, showBig: { type: [Boolean], default: !1 }, crop: { type: [Boolean], default: !1 }, galleryLabel: { type: String, default: "" }, lazy: { type: Boolean, default: !0 }, drag: { type: Boolean, default: !1 }, signatureParam: { type: [Object], default: () => ({ save_sign: "image" }) } }, data: () => ({ localValue: [], localList: [], previewShow: !1, previewTitle: "", previewUrl: "", upAccept: "image/*" }), computed: { localRef: () => "cvUploadImage" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
1741
+ }]]), or = { title: "图片上传", name: "cvUploadImage", mixins: [Ro], components: {}, props: { modelValue: { type: [String, Number, Array, Object], default: "" }, initValue: { type: [String, Number, Array], default: () => "" }, fileSize: { type: [Number], default: 2 }, fileType: { type: [Array], default: () => ["png", "jpg", "jpeg", "gif"] }, showSize: { type: Number, default: 150 }, showBig: { type: [Boolean], default: !1 }, crop: { type: [Boolean], default: !1 }, galleryLabel: { type: String, default: "" }, lazy: { type: Boolean, default: !0 }, drag: { type: Boolean, default: !1 }, signatureParam: { type: [Object], default: () => ({ save_sign: "image" }) } }, data: () => ({ localValue: [], localList: [], previewShow: !1, previewTitle: "", previewUrl: "", upAccept: "image/*" }), computed: { localRef: () => "cvUploadImage" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
1730
1742
  return { ref: this.localRef, action: "#", accept: this.upAccept, limit: parseInt(this.limit), multiple: this.multiple, drag: !!this.drag, disabled: this.upIngLoading, showFileList: !1 };
1731
1743
  }, showUpload() {
1732
1744
  return !(this.localList.length >= this.limit);
@@ -1739,7 +1751,11 @@ const zs = (e, t) => {
1739
1751
  this._init_parse_list();
1740
1752
  } }, mounted() {
1741
1753
  }, methods: { _init_parse_value() {
1742
- this.modelValue ? this.localValue = Fl(this.modelValue) : this.localValue = [];
1754
+ if (this.modelValue) if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
1755
+ const e = String(this.modelValue).split(",").map((t) => t.trim());
1756
+ this.localValue = Da(e);
1757
+ } else this.localValue = Da(this.modelValue);
1758
+ else this.localValue = [];
1743
1759
  }, _init_parse_list() {
1744
1760
  this.initValue ? this.localList = Ba(this.initValue) : this.localList = [];
1745
1761
  }, initOnChange(e, t) {
@@ -1749,20 +1765,20 @@ const zs = (e, t) => {
1749
1765
  const { file: t } = e;
1750
1766
  this.upIngLoading = !0, this.mergeAttrs.upResponseFn;
1751
1767
  const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
1752
- await Na(t, o, l, a).then((i) => {
1768
+ await za(t, o, l, a).then((i) => {
1753
1769
  this.$nextTick(() => {
1754
- this.updateValue(i.full_path, i.cdn_full_path);
1770
+ this.updateValue(i.filelog_id, i.cdn_full_path);
1755
1771
  }), q.success("上传成功"), this.upIngLoading = !1;
1756
1772
  }).catch(() => {
1757
1773
  this.upIngLoading = !1;
1758
1774
  });
1759
1775
  }, updateValue(e, t) {
1760
1776
  if (this.multiple) {
1761
- let o = Ga(this.localValue, e);
1777
+ let o = Za(this.localValue, e).join(",");
1762
1778
  this.$emit("update:modelValue", o);
1763
1779
  } else this.$emit("update:modelValue", e);
1764
1780
  if (this.multiple) {
1765
- let o = Ga(this.localList, t);
1781
+ let o = Za(this.localList, t);
1766
1782
  this.$emit("update:initValue", o);
1767
1783
  } else this.$emit("update:initValue", t);
1768
1784
  }, handleItemPreview(e, t) {
@@ -1778,7 +1794,7 @@ const zs = (e, t) => {
1778
1794
  }) : l !== !1 && this.doRemove(t);
1779
1795
  } else this.doRemove(t);
1780
1796
  }, handleItemEdit(e, t) {
1781
- $a.prompt("请输入文件地址", "编辑", { confirmButtonText: "OK", cancelButtonText: "Cancel", inputValue: e.url || "", inputErrorMessage: "格式不正确" }).then(({ value: o }) => {
1797
+ Oa.prompt("请输入文件地址", "编辑", { confirmButtonText: "OK", cancelButtonText: "Cancel", inputValue: e.url || "", inputErrorMessage: "格式不正确" }).then(({ value: o }) => {
1782
1798
  const l = o.split("/").pop(), a = l.split(".").pop().toLowerCase();
1783
1799
  if (!this.fileType.includes(a)) {
1784
1800
  let h = this.fileType.join("、");
@@ -1787,7 +1803,7 @@ const zs = (e, t) => {
1787
1803
  const i = function(h) {
1788
1804
  if (!h) return "";
1789
1805
  const p = h.replace(/^\./, "").toLowerCase();
1790
- return Dl.extensionToMime[p] || "";
1806
+ return $l.extensionToMime[p] || "";
1791
1807
  }(a);
1792
1808
  if (!i) return q.error("文件格式错误"), !1;
1793
1809
  var n;
@@ -1815,7 +1831,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1815
1831
  });
1816
1832
  } } }, fr = ["src"], vr = { class: "cv-upload-list__item-content-action" }, br = { title: "文件上传", inheritAttrs: !1, name: "cvUploadFile", mixins: [Ro], components: { uploadList: S(gr, [["render", function(e, t, o, l, a, i) {
1817
1833
  const n = C("el-link");
1818
- return d(), V(gn, { class: "cv-upload-file-list el-upload-list el-upload-list--text", name: "el-list", tag: "ul" }, { default: v(() => [(d(!0), u(F, null, E(o.files, (c, h) => (d(), u("li", { key: c.uid, class: "el-upload-list__item cv-upload-list__item-content" }, [b(n, { href: c.url, underline: !1, target: "_blank" }, { default: v(() => [r("img", { src: i.getExtension(c.name), class: "el-upload-list__item-content-name-icon" }, null, 8, fr), r("span", null, T(c.name), 1)]), _: 2 }, 1032, ["href"]), r("div", vr, [b(n, { underline: !1 }, { default: v(() => [L(T(i.getSize(c.size)), 1)]), _: 2 }, 1024), o.isCanDownload ? (d(), V(n, { key: 0, underline: !1, onClick: (p) => i.handleDownload(c) }, { default: v(() => [...t[0] || (t[0] = [L("下载", -1)])]), _: 2 }, 1032, ["onClick"])) : w("", !0), !o.disabled && o.isCanDelete ? (d(), V(n, { key: 1, underline: !1, onClick: (p) => i.handleDelete(h, c), type: "danger" }, { default: v(() => [...t[1] || (t[1] = [L(" 删除 ", -1)])]), _: 2 }, 1032, ["onClick"])) : w("", !0)])]))), 128))]), _: 1 });
1834
+ return d(), V(gn, { class: "cv-upload-file-list el-upload-list el-upload-list--text", name: "el-list", tag: "ul" }, { default: v(() => [(d(!0), u(F, null, E(o.files, (c, h) => (d(), u("li", { key: c.uid, class: "el-upload-list__item cv-upload-list__item-content" }, [b(n, { href: c.url, underline: !1, target: "_blank" }, { default: v(() => [r("img", { src: i.getExtension(c.name), class: "el-upload-list__item-content-name-icon" }, null, 8, fr), r("span", null, T(c.name), 1)]), _: 2 }, 1032, ["href"]), r("div", vr, [b(n, { underline: !1 }, { default: v(() => [L(T(i.getSize(c.size)), 1)]), _: 2 }, 1024), o.isCanDownload ? (d(), V(n, { key: 0, underline: !1, onClick: (p) => i.handleDownload(c) }, { default: v(() => [...t[0] || (t[0] = [L("下载", -1)])]), _: 1 }, 8, ["onClick"])) : w("", !0), !o.disabled && o.isCanDelete ? (d(), V(n, { key: 1, underline: !1, onClick: (p) => i.handleDelete(h, c), type: "danger" }, { default: v(() => [...t[1] || (t[1] = [L(" 删除 ", -1)])]), _: 1 }, 8, ["onClick"])) : w("", !0)])]))), 128))]), _: 1 });
1819
1835
  }]]) }, props: { modelValue: { type: [String, Object, Array], default: "" }, initValue: { type: [String, Object, Array], default: "" }, fileSize: { type: [Number], default: 5 }, fileType: { type: [Array], default: ["txt", "png", "jpg", "xlsx", "xls"] }, multiple: { type: [Boolean], default: !1 }, limit: { type: [Number], default: 5 }, disabled: Boolean, isCanDownload: { type: Boolean, default: !0 }, isCanDelete: { type: Boolean, default: !0 }, isCanUploadSame: { type: Boolean, default: !0 } }, data: () => ({ localValue: [], localList: [] }), computed: { localRef: () => "cvUploadFile" + +/* @__PURE__ */ new Date() + (1e3 * Math.random()).toFixed(0), handlerAttr() {
1820
1836
  return { ref: this.localRef, action: "#", limit: parseInt(this.limit), multiple: this.multiple, drag: !1, disabled: this.upIngLoading, showFileList: !0 };
1821
1837
  }, list() {
@@ -1864,7 +1880,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1864
1880
  } }, mounted() {
1865
1881
  this._init_parse_value(), this._init_parse_list();
1866
1882
  }, methods: { _init_parse_value() {
1867
- this.modelValue ? this.localValue = Fl(this.modelValue) : this.localValue = "";
1883
+ this.modelValue ? this.localValue = Da(this.modelValue) : this.localValue = "";
1868
1884
  }, _init_parse_list() {
1869
1885
  this.initValue ? this.localList = Ba(this.initValue) : this.localList = "";
1870
1886
  }, initBeforeUpload(e) {
@@ -1873,7 +1889,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1873
1889
  const { file: t } = e;
1874
1890
  this.upIngLoading = !0, this.mergeAttrs.upResponseFn;
1875
1891
  const o = this.mergeAttrs.signatureType || null, l = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
1876
- await Na(t, o, l, a).then((i) => {
1892
+ await za(t, o, l, a).then((i) => {
1877
1893
  this.$nextTick(() => {
1878
1894
  this.$emit("update:modelValue", i.full_path), this.$emit("update:initValue", i.cdn_full_path);
1879
1895
  }), ExtendMessage.success("上传成功"), this.upIngLoading = !1;
@@ -1907,7 +1923,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1907
1923
  }
1908
1924
  }, deep: !0 } }, mounted() {
1909
1925
  window.addEventListener("online", this.resumeUpload);
1910
- }, methods: { filterSize: Ka, handleExceed() {
1926
+ }, methods: { filterSize: Ga, handleExceed() {
1911
1927
  this.$confirm("上传文件数量不能超过100个,请重新选择!", "操作提示", { confirmButtonText: "确 定", cancelButtonText: "取 消", type: "warning" }).then(() => {
1912
1928
  this.fileList = [], this.dialogVisible = !1;
1913
1929
  }).catch(() => {
@@ -1951,9 +1967,9 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1951
1967
  }, handle_network_speed(e, t, o) {
1952
1968
  const l = e.rt / 1e3, a = new Date(e.headers.date).getTime(), i = a - l;
1953
1969
  let n = parseInt(t / l);
1954
- return o === 0 && (n = 0), n === 0 || this.handle_network_speed_change(i, a, n), n ? Ka(n) : 0;
1970
+ return o === 0 && (n = 0), n === 0 || this.handle_network_speed_change(i, a, n), n ? Ga(n) : 0;
1955
1971
  }, async resetUpload(e, t) {
1956
- JSON.stringify(e).indexOf("Error") !== -1 && (t.client && t.client.cancel(), t.client = await Qa(this.signatureType, this.apiFunc), await this.resumeMultipartUpload(t));
1972
+ JSON.stringify(e).indexOf("Error") !== -1 && (t.client && t.client.cancel(), t.client = await Ja(this.signatureType, this.apiFunc), await this.resumeMultipartUpload(t));
1957
1973
  }, async resumeMultipartUpload(e) {
1958
1974
  if (e) {
1959
1975
  const { tempCheckpoint: t } = e;
@@ -1980,7 +1996,7 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
1980
1996
  }, async ossUploadHandle(e) {
1981
1997
  let t = { pass: !0, filePath: "" };
1982
1998
  try {
1983
- const { raw: o, percentage: l } = e, a = o, i = await Qa(this.signatureType, this.apiFunc, {}, { secure: !0 });
1999
+ const { raw: o, percentage: l } = e, a = o, i = await Ja(this.signatureType, this.apiFunc, {}, { secure: !0 });
1984
2000
  if (this.signatureType == "aliyun_oss_type1") {
1985
2001
  if (e.client = i, e.partSize = 0, l < 100 && o.name.indexOf(".") !== -1) {
1986
2002
  const n = i.dir + a.name;
@@ -2041,9 +2057,9 @@ const gr = { name: "uploadList", props: { files: { type: Array, default: () => [
2041
2057
  const { type: t } = e.raw, o = t.indexOf("video") !== -1, l = t.indexOf("image") !== -1, a = t.indexOf("audio") !== -1;
2042
2058
  let i, n = "";
2043
2059
  return o ? n = "video" : l ? t.indexOf("adobe") === -1 && (n = "image") : a && (n = "audio"), (o || l || a) && n && (i = await this.handleMediaRes(n)(e.raw)), { ResTitle: e.name, ResDescribe: "", OssKey: e.uploadName, ContentType: t || "application/octet-stream", ContentLength: e.size, ...i };
2044
- } } }, Or = { class: "oss-upload" }, Fr = { class: "cv-upload-task-hd-title" }, Mr = { class: "cv-upload-task-hd-num" }, Er = { class: "cv-upload-task-opts" }, Br = { class: "cv-upload-task-lists" }, Nr = { class: "cv-upload-task-item-name" }, zr = { class: "name" }, Hr = { class: "file-name-item" }, Ar = { key: 0, class: "speed" }, Pr = { key: 1, class: "speed" }, jr = { key: 2, class: "success" }, Rr = { class: "total" }, Ur = { key: 0, class: "name error" }, Wr = { class: "cv-upload-task-item-tool" }, Yr = ["onClick"], Xr = ["onClick"], Zt = S({ name: "cvUploadOss", mixins: [$r] }, [["render", function(e, t, o, l, a, i) {
2060
+ } } }, Or = { class: "oss-upload" }, Fr = { class: "cv-upload-task-hd-title" }, Mr = { class: "cv-upload-task-hd-num" }, Er = { class: "cv-upload-task-opts" }, Nr = { class: "cv-upload-task-lists" }, Br = { class: "cv-upload-task-item-name" }, zr = { class: "name" }, Hr = { class: "file-name-item" }, Ar = { key: 0, class: "speed" }, Pr = { key: 1, class: "speed" }, jr = { key: 2, class: "success" }, Rr = { class: "total" }, Ur = { key: 0, class: "name error" }, Wr = { class: "cv-upload-task-item-tool" }, Yr = ["onClick"], Xr = ["onClick"], Zt = S({ name: "cvUploadOss", mixins: [$r] }, [["render", function(e, t, o, l, a, i) {
2045
2061
  const n = C("el-button"), c = C("el-upload"), h = C("el-progress"), p = C("cv-icons"), m = C("el-dialog");
2046
- return d(), u("div", Or, [b(c, { ref: "upload", action: "", "show-file-list": !1, multiple: "", "on-change": e.handleChange, "before-upload": e.handleBeforeUpload, "auto-upload": !1, limit: 100, "on-exceed": e.handleExceed, accept: e.accept }, { default: v(() => [b(n, { type: "primary", icon: "ElIconUpload", round: "" }, { default: v(() => [...t[1] || (t[1] = [L("上 传", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change", "before-upload", "on-exceed", "accept"]), b(m, { modelValue: e.dialogVisible, "onUpdate:modelValue": t[0] || (t[0] = (f) => e.dialogVisible = f), width: "650px", height: "500", "destroy-on-close": "", "close-on-click-modal": !1, "before-close": e.handleClose, style: { height: "500px" } }, { header: v(() => [r("div", Fr, [t[2] || (t[2] = r("span", null, "上传", -1)), r("span", Mr, T(e.fileList.length - e.unList.length) + "/" + T(e.fileList.length), 1)])]), default: v(() => [r("div", Er, [b(n, { type: "primary", icon: "ElIconVideoPlay", disabled: e.uploadDisabled, onClick: e.starUpload }, { default: v(() => [...t[3] || (t[3] = [L("开始上传", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "success", icon: "ElIconRefreshRight", disabled: e.resumeDisabled, onClick: e.resumeUpload }, { default: v(() => [...t[4] || (t[4] = [L("继续", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "danger", icon: "ElIconVideoPause", disabled: e.pauseDisabled, onClick: e.stopUpload }, { default: v(() => [...t[5] || (t[5] = [L("暂停", -1)])]), _: 1 }, 8, ["disabled", "onClick"])]), r("div", Br, [(d(!0), u(F, null, E(e.fileList, (f, g) => (d(), u("div", { class: "cv-upload-task-item-box", key: g }, [r("div", Nr, [r("div", zr, [r("span", Hr, T(g + 1) + "." + T(f.name), 1), f.isLoading && !f.isPlay ? (d(), u("span", Ar, "准备就绪")) : w("", !0), f.isPlay && f.percentage !== 100 ? (d(), u("span", Pr, T(f.speed) + "/s", 1)) : w("", !0), f.percentage === 100 ? (d(), u("span", jr, "完成")) : w("", !0), r("div", Rr, T(e.filterSize(f.size)), 1)]), f.errMsg ? (d(), u("span", Ur, T(f.errMsg), 1)) : w("", !0), f.percentage < 100 && !f.errMsg ? (d(), V(h, { key: 1, percentage: f.percentage }, null, 8, ["percentage"])) : (d(), V(h, { key: 2, percentage: f.percentage, status: f.errMsg ? "exception" : "success" }, null, 8, ["percentage", "status"]))]), r("div", Wr, [!f.percentage || 0 < f.percentage < 100 && !f.isPlay ? (d(), u("span", { key: 0, class: "icon delete", onClick: (k) => e.handleDeleteChangeFile(g) }, [b(p, { type: "ElIconClose" })], 8, Yr)) : w("", !0), f.percentage && f.percentage !== 100 ? (d(), u("span", { key: 1, class: z(["icon", f.isPlay ? "delete" : "success"]), onClick: (k) => e.handleStopChangeFile(g, f) }, [f.isPlay ? (d(), V(p, { key: 0, type: "ElIconVideoPause" })) : (d(), V(p, { key: 1, type: "ElIconCaretRight" }))], 10, Xr)) : w("", !0)])]))), 128))])]), _: 1 }, 8, ["modelValue", "before-close"])]);
2062
+ return d(), u("div", Or, [b(c, { ref: "upload", action: "", "show-file-list": !1, multiple: "", "on-change": e.handleChange, "before-upload": e.handleBeforeUpload, "auto-upload": !1, limit: 100, "on-exceed": e.handleExceed, accept: e.accept }, { default: v(() => [b(n, { type: "primary", icon: "ElIconUpload", round: "" }, { default: v(() => [...t[1] || (t[1] = [L("上 传", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change", "before-upload", "on-exceed", "accept"]), b(m, { modelValue: e.dialogVisible, "onUpdate:modelValue": t[0] || (t[0] = (f) => e.dialogVisible = f), width: "650px", height: "500", "destroy-on-close": "", "close-on-click-modal": !1, "before-close": e.handleClose, style: { height: "500px" } }, { header: v(() => [r("div", Fr, [t[2] || (t[2] = r("span", null, "上传", -1)), r("span", Mr, T(e.fileList.length - e.unList.length) + "/" + T(e.fileList.length), 1)])]), default: v(() => [r("div", Er, [b(n, { type: "primary", icon: "ElIconVideoPlay", disabled: e.uploadDisabled, onClick: e.starUpload }, { default: v(() => [...t[3] || (t[3] = [L("开始上传", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "success", icon: "ElIconRefreshRight", disabled: e.resumeDisabled, onClick: e.resumeUpload }, { default: v(() => [...t[4] || (t[4] = [L("继续", -1)])]), _: 1 }, 8, ["disabled", "onClick"]), b(n, { type: "danger", icon: "ElIconVideoPause", disabled: e.pauseDisabled, onClick: e.stopUpload }, { default: v(() => [...t[5] || (t[5] = [L("暂停", -1)])]), _: 1 }, 8, ["disabled", "onClick"])]), r("div", Nr, [(d(!0), u(F, null, E(e.fileList, (f, g) => (d(), u("div", { class: "cv-upload-task-item-box", key: g }, [r("div", Br, [r("div", zr, [r("span", Hr, T(g + 1) + "." + T(f.name), 1), f.isLoading && !f.isPlay ? (d(), u("span", Ar, "准备就绪")) : w("", !0), f.isPlay && f.percentage !== 100 ? (d(), u("span", Pr, T(f.speed) + "/s", 1)) : w("", !0), f.percentage === 100 ? (d(), u("span", jr, "完成")) : w("", !0), r("div", Rr, T(e.filterSize(f.size)), 1)]), f.errMsg ? (d(), u("span", Ur, T(f.errMsg), 1)) : w("", !0), f.percentage < 100 && !f.errMsg ? (d(), V(h, { key: 1, percentage: f.percentage }, null, 8, ["percentage"])) : (d(), V(h, { key: 2, percentage: f.percentage, status: f.errMsg ? "exception" : "success" }, null, 8, ["percentage", "status"]))]), r("div", Wr, [!f.percentage || 0 < f.percentage < 100 && !f.isPlay ? (d(), u("span", { key: 0, class: "icon delete", onClick: (k) => e.handleDeleteChangeFile(g) }, [b(p, { type: "ElIconClose" })], 8, Yr)) : w("", !0), f.percentage && f.percentage !== 100 ? (d(), u("span", { key: 1, class: z(["icon", f.isPlay ? "delete" : "success"]), onClick: (k) => e.handleStopChangeFile(g, f) }, [f.isPlay ? (d(), V(p, { key: 0, type: "ElIconVideoPause" })) : (d(), V(p, { key: 1, type: "ElIconCaretRight" }))], 10, Xr)) : w("", !0)])]))), 128))])]), _: 1 }, 8, ["modelValue", "before-close"])]);
2047
2063
  }], ["__scopeId", "data-v-9c3ea43c"]]);
2048
2064
  Xt.install = function(e) {
2049
2065
  e.component(Xt.name, Xt);
@@ -2233,7 +2249,7 @@ const ac = { name: "cvTransferTable", props: { modelValue: { type: [Array], defa
2233
2249
  ao.install = function(e) {
2234
2250
  e.component(ao.name, ao);
2235
2251
  };
2236
- const za = { provide() {
2252
+ const Ha = { provide() {
2237
2253
  return { pageCurr: this.loadConfigSetting.pageCurr || 1, pageLimit: this.loadConfigSetting.pageLimit || 10 };
2238
2254
  }, props: { ...dn.props, modelValue: { type: [Array, Object], default: () => [] }, headerCellStyle: { type: [Function, Object], default: () => ({}) } }, data: () => ({ loadDataList: [] }), watch: { modelValue(e) {
2239
2255
  this.loadDataList = e;
@@ -2249,7 +2265,7 @@ const za = { provide() {
2249
2265
  this.loadPageCurr = e, this.getData();
2250
2266
  }, handleSizeChange(e) {
2251
2267
  this.loadPageLimit = e, this.getData();
2252
- } } }, fc = { name: "cvTableBase", mixins: [Po, za], props: { align: { type: String, default: "left" }, showPagebreak: { type: [Boolean, String], default: !0 }, tablePagin: { type: Object, default: () => ({}) }, tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ paginationGroup: [10, 20, 30, 50, 100, 200], paginationCount: 7, searchData: {}, tableConfDef: {} }), watch: { tableRefresh(e, t) {
2268
+ } } }, fc = { name: "cvTableBase", mixins: [Po, Ha], props: { align: { type: String, default: "left" }, showPagebreak: { type: [Boolean, String], default: !0 }, tablePagin: { type: Object, default: () => ({}) }, tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ paginationGroup: [10, 20, 30, 50, 100, 200], paginationCount: 7, searchData: {}, tableConfDef: {} }), watch: { tableRefresh(e, t) {
2253
2269
  this.initConfAll(), this.refresh();
2254
2270
  } }, updated() {
2255
2271
  }, created() {
@@ -2271,7 +2287,7 @@ const za = { provide() {
2271
2287
  } } }, vc = { class: "cv-table-list" }, bc = { key: 0, class: "cv-tablie-list-page page" }, io = S(fc, [["render", function(e, t, o, l, a, i) {
2272
2288
  const n = C("el-table"), c = C("cv-icons"), h = C("el-button"), p = C("el-pagination"), m = re("loading");
2273
2289
  return d(), u("div", vc, [M((d(), V(n, O(e.$props, { data: e.loadDataList, style: { width: "100%" }, onSelectionChange: i.handleSelectionChange }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["data", "onSelectionChange"])), [[m, e.loadDataLoading]]), o.showPagebreak ? M((d(), u("div", bc, [b(h, { onClick: i.refresh, style: { float: "left", margin: "0 10px 0 0", padding: "5px 10px" } }, { default: v(() => [b(c, { type: "ElIconRefresh", size: "14" })]), _: 1 }, 8, ["onClick"]), b(p, { background: "", onSizeChange: e.handleSizeChange, onCurrentChange: e.handleCurrentChange, "pager-count": a.paginationCount, "page-sizes": a.paginationGroup, "current-page": e.loadPageCurr, "page-size": e.loadPageLimit, layout: "total, sizes, prev, pager, next, jumper", total: e.loadDataTotal }, null, 8, ["onSizeChange", "onCurrentChange", "pager-count", "page-sizes", "current-page", "page-size", "total"])], 512)), [[A, e.loadDataLoading === !1]]) : w("", !0)]);
2274
- }]]), yc = { class: "cv-table-tree" }, lo = S({ name: "cvTableTree", mixins: [Po, za], props: { tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ searchData: {}, tableConfDef: { tablePrimary: "", childName: "children" }, pager_count: 7, page: 1 }), watch: { tableRefresh(e, t) {
2290
+ }]]), yc = { class: "cv-table-tree" }, lo = S({ name: "cvTableTree", mixins: [Po, Ha], props: { tableConfig: { type: Object, default: () => ({}) }, tableRefresh: { type: Number, default: () => 0 } }, data: () => ({ searchData: {}, tableConfDef: { tablePrimary: "", childName: "children" }, pager_count: 7, page: 1 }), watch: { tableRefresh(e, t) {
2275
2291
  this.refresh();
2276
2292
  } }, created() {
2277
2293
  this.initConfAll(), this.getData();
@@ -2292,7 +2308,7 @@ const za = { provide() {
2292
2308
  } } }, [["render", function(e, t, o, l, a, i) {
2293
2309
  const n = C("el-table"), c = re("loading");
2294
2310
  return d(), u("div", yc, [M((d(), V(n, O(e.$props, { data: e.loadDataList, style: { width: "100%" }, onSelectionChange: i.handleSelectionChange, "row-key": e.loadConfigSetting.tablePrimary, "tree-props": { children: e.loadConfigSetting.childName, hasChildren: "hasChildren" } }), { default: v(() => [D(e.$slots, "default")]), _: 3 }, 16, ["data", "onSelectionChange", "row-key", "tree-props"])), [[c, e.loadDataLoading]])]);
2295
- }]]), Cc = { name: "cvTableEditor", mixins: [Po, za], props: { border: { type: [Boolean], default: !0 }, tableConfig: { type: [Array, Object], default: () => ({}) } }, data: () => ({ mergeRules: {}, apiFunc: null, tableConfDef: {}, cell_click_index: null, cell_click_label: "" }), watch: {}, created() {
2311
+ }]]), Cc = { name: "cvTableEditor", mixins: [Po, Ha], props: { border: { type: [Boolean], default: !0 }, tableConfig: { type: [Array, Object], default: () => ({}) } }, data: () => ({ mergeRules: {}, apiFunc: null, tableConfDef: {}, cell_click_index: null, cell_click_label: "" }), watch: {}, created() {
2296
2312
  this.loadConfigSetting = Object.assign({}, this.tableConfDef, this.tableConfig);
2297
2313
  }, mounted() {
2298
2314
  }, methods: { cell_click(e, t, o, l) {
@@ -2344,7 +2360,7 @@ const za = { provide() {
2344
2360
  return t ? Object.prototype.toString.call(t) === "[object Array]" ? t.length : Object.prototype.toString.call(t) === "[object String]" ? 1 : void 0 : 0;
2345
2361
  } } }, Vc = { key: 0, class: "cv-table-column-img-mark" }, _c = { class: "cv-table-column-img-text" }, ho = S(Sc, [["render", function(e, t, o, l, a, i) {
2346
2362
  const n = C("el-image"), c = C("el-table-column");
2347
- return d(), V(c, U(Y(e.$props)), { default: v((h) => [r("div", { class: "cv-table-column-img-box", style: H({ width: a.localImgWidth, height: a.localImgHeight }) }, [b(n, { style: H({ width: a.localImgWidth, height: a.localImgHeight }), fit: "scale-down", lazy: "", src: i.handleImgOne(h.row), "preview-src-list": i.handleImgArr(h.row) }, { error: v(() => [...t[0] || (t[0] = [r("span", { class: "el-image__error cv-table-column-img-err" }, [L(" 暂无 "), r("br"), L(" 图片 ")], -1)])]), _: 2 }, 1032, ["style", "src", "preview-src-list"]), i.handleImgLeng(h.row) > 1 ? (d(), u("p", Vc, [r("span", _c, T(i.handleImgLeng(h.row)) + "张", 1)])) : w("", !0)], 4)]), _: 1 }, 16);
2363
+ return d(), V(c, U(Y(e.$props)), { default: v((h) => [r("div", { class: "cv-table-column-img-box", style: H({ width: a.localImgWidth, height: a.localImgHeight }) }, [b(n, { style: H({ width: a.localImgWidth, height: a.localImgHeight }), fit: "scale-down", lazy: "", src: i.handleImgOne(h.row), "preview-src-list": i.handleImgArr(h.row) }, { error: v(() => [...t[0] || (t[0] = [r("span", { class: "el-image__error cv-table-column-img-err" }, [L(" 暂无 "), r("br"), L(" 图片 ")], -1)])]), _: 1 }, 8, ["style", "src", "preview-src-list"]), i.handleImgLeng(h.row) > 1 ? (d(), u("p", Vc, [r("span", _c, T(i.handleImgLeng(h.row)) + "张", 1)])) : w("", !0)], 4)]), _: 1 }, 16);
2348
2364
  }]]), po = S({ name: "cvTbColumnOpt", props: { ...Z.props, fixed: { type: [String], default: "right" }, label: { type: [String], default: "操作" } }, data: () => ({}), created() {
2349
2365
  } }, [["render", function(e, t, o, l, a, i) {
2350
2366
  const n = C("el-table-column");
@@ -2421,9 +2437,9 @@ const za = { provide() {
2421
2437
  }, 600);
2422
2438
  }, inputSearchFilter: (e) => (t) => t.value.toLowerCase().indexOf(e.toLowerCase()) === 0, searchIconClick() {
2423
2439
  this.isEditIndex = null;
2424
- } } }, Tc = { class: "name" }, Lc = { class: "addr" }, Dc = { class: "addr" }, $c = { class: "droplist-item" }, Oc = { class: "name" }, Fc = { key: 0, class: "attr" }, Mc = { class: "price" }, Ec = { class: "rest" }, Bc = ["onClick"], fo = S(Ic, [["render", function(e, t, o, l, a, i) {
2440
+ } } }, Tc = { class: "name" }, Lc = { class: "addr" }, Dc = { class: "addr" }, $c = { class: "droplist-item" }, Oc = { class: "name" }, Fc = { key: 0, class: "attr" }, Mc = { class: "price" }, Ec = { class: "rest" }, Nc = ["onClick"], fo = S(Ic, [["render", function(e, t, o, l, a, i) {
2425
2441
  const n = C("ElIconCircleClose"), c = C("el-icon"), h = C("el-autocomplete"), p = C("el-table-column");
2426
- return d(), V(p, O(e.$props, { "class-name": "cv-table-editor-search-column" }), { default: v((m) => [a.isEditIndex == m.$index ? (d(), V(h, O({ key: 0, ref: `cv-tbce-autocomplete${m.$index}` }, a.autocompleteAttr, { modelValue: m.row[e.prop], "onUpdate:modelValue": (f) => m.row[e.prop] = f, "popper-class": `cv-tbce-autocomplete cvtegac${m.$index}`, "fetch-suggestions": i.searchQuery, onSelect: (f) => i.searchSelect(f, m.row, m.$index), onFocus: (f) => i.searchFocus(m.$index, f), onBlur: (f) => i.searchBlur(m.row, m.$index) }), { suffix: v(() => [b(c, { onClick: (f) => i.searchIconClick(m.row, m.$index) }, { default: v(() => [b(n)]), _: 2 }, 1032, ["onClick"])]), default: v(({ item: f }) => [D(e.$slots, "default", { item: f }, () => [r("div", Tc, T(f.row_name), 1), r("span", Lc, "价格:" + T(f.row_price), 1), r("span", Dc, T(f.row_rest), 1), r("div", $c, [r("div", Oc, [L(T(f.row_name) + " ", 1), f.row_attr ? (d(), u("div", Fc, "[ " + T(f.row_attr) + "]", 1)) : w("", !0)]), r("div", Mc, "¥ " + T(f.row_price), 1), r("div", Ec, T(f.attr_stock), 1)])])]), _: 2 }, 1040, ["modelValue", "onUpdate:modelValue", "popper-class", "fetch-suggestions", "onSelect", "onFocus", "onBlur"])) : (d(), u("span", { key: 1, class: "showtext", onClick: (f) => i.searchEdit(m.row, m.$index) }, T(m.row[e.prop]), 9, Bc))]), _: 3 }, 16);
2442
+ return d(), V(p, O(e.$props, { "class-name": "cv-table-editor-search-column" }), { default: v((m) => [a.isEditIndex == m.$index ? (d(), V(h, O({ key: 0, ref: `cv-tbce-autocomplete${m.$index}` }, a.autocompleteAttr, { modelValue: m.row[e.prop], "onUpdate:modelValue": (f) => m.row[e.prop] = f, "popper-class": `cv-tbce-autocomplete cvtegac${m.$index}`, "fetch-suggestions": i.searchQuery, onSelect: (f) => i.searchSelect(f, m.row, m.$index), onFocus: (f) => i.searchFocus(m.$index, f), onBlur: (f) => i.searchBlur(m.row, m.$index) }), { suffix: v(() => [b(c, { onClick: (f) => i.searchIconClick(m.row, m.$index) }, { default: v(() => [b(n)]), _: 1 }, 8, ["onClick"])]), default: v(({ item: f }) => [D(e.$slots, "default", { item: f }, () => [r("div", Tc, T(f.row_name), 1), r("span", Lc, "价格:" + T(f.row_price), 1), r("span", Dc, T(f.row_rest), 1), r("div", $c, [r("div", Oc, [L(T(f.row_name) + " ", 1), f.row_attr ? (d(), u("div", Fc, "[ " + T(f.row_attr) + "]", 1)) : w("", !0)]), r("div", Mc, "¥ " + T(f.row_price), 1), r("div", Ec, T(f.attr_stock), 1)])])]), _: 2 }, 1040, ["modelValue", "onUpdate:modelValue", "popper-class", "fetch-suggestions", "onSelect", "onFocus", "onBlur"])) : (d(), u("span", { key: 1, class: "showtext", onClick: (f) => i.searchEdit(m.row, m.$index) }, T(m.row[e.prop]), 9, Nc))]), _: 3 }, 16);
2427
2443
  }]]), vo = S({ name: "cvTbEditOpt", props: { tableData: { type: [Array], default: () => [] }, ...Z.props, label: { type: [String], default: "操作" }, align: { type: [String], default: "center" }, width: { type: [String], default: "100" }, fixed: { type: [String], default: "left" }, btnAdd: { type: [Boolean, String], default: !0 }, btnDel: { type: [Boolean, String], default: !0 } }, data: () => ({ localTbData: [] }), watch: { tableData(e) {
2428
2444
  this.localTbData = e;
2429
2445
  } }, created() {
@@ -2434,8 +2450,8 @@ const za = { provide() {
2434
2450
  this.localTbData.push({});
2435
2451
  } } }, [["render", function(e, t, o, l, a, i) {
2436
2452
  const n = C("cv-icons"), c = C("el-button"), h = C("el-table-column");
2437
- return d(), V(h, U(Y(e.$props)), { default: v((p) => [o.btnAdd ? (d(), V(c, { key: 0, plain: "", style: { padding: "5px", width: "26px", height: "26px" }, onClick: t[0] || (t[0] = (m) => i.optHdAdd()) }, { default: v(() => [b(n, { type: "ElIconPlus" })]), _: 1 })) : w("", !0), o.btnDel ? (d(), V(c, { key: 1, plain: "", style: { padding: "5px", width: "26px", height: "26px" }, onClick: (m) => i.optHdDelete(p.$index, p.row) }, { default: v(() => [b(n, { type: "ElIconClose" })]), _: 2 }, 1032, ["onClick"])) : w("", !0)]), _: 1 }, 16);
2438
- }]]), Nc = { name: "cvTbEditText", props: { ...Z.props, width: { type: [String, Number], default: "" }, editAttr: { type: [Object], default: () => ({ placeholder: "请输入" }) }, editClearable: { type: [Boolean], default: !0 }, editStyle: { type: [Object], default: () => ({ "--el-input-border": 0, "--el-input-border-radius": 0, "--el-input-height": "36px" }) }, editClass: { type: [Object], default: () => ({}) }, editChange: { type: [Function], default: () => {
2453
+ return d(), V(h, U(Y(e.$props)), { default: v((p) => [o.btnAdd ? (d(), V(c, { key: 0, plain: "", style: { padding: "5px", width: "26px", height: "26px" }, onClick: t[0] || (t[0] = (m) => i.optHdAdd()) }, { default: v(() => [b(n, { type: "ElIconPlus" })]), _: 1 })) : w("", !0), o.btnDel ? (d(), V(c, { key: 1, plain: "", style: { padding: "5px", width: "26px", height: "26px" }, onClick: (m) => i.optHdDelete(p.$index, p.row) }, { default: v(() => [b(n, { type: "ElIconClose" })]), _: 1 }, 8, ["onClick"])) : w("", !0)]), _: 1 }, 16);
2454
+ }]]), Bc = { name: "cvTbEditText", props: { ...Z.props, width: { type: [String, Number], default: "" }, editAttr: { type: [Object], default: () => ({ placeholder: "请输入" }) }, editClearable: { type: [Boolean], default: !0 }, editStyle: { type: [Object], default: () => ({ "--el-input-border": 0, "--el-input-border-radius": 0, "--el-input-height": "36px" }) }, editClass: { type: [Object], default: () => ({}) }, editChange: { type: [Function], default: () => {
2439
2455
  } }, editFormatter: { type: [Function], default: () => {
2440
2456
  } }, toFixed: { type: [String, Number], default: "" } }, data: () => ({ currValue: "", isEditIndex: null, isErrIndex: [] }), directives: { edfocus: { mounted: (e) => {
2441
2457
  e.querySelector("input").focus();
@@ -2471,15 +2487,15 @@ const za = { provide() {
2471
2487
  this.isEditIndex = a;
2472
2488
  } } }, this.currValue);
2473
2489
  } } });
2474
- } }, zc = ["onClick"], bo = S(Nc, [["render", function(e, t, o, l, a, i) {
2490
+ } }, zc = ["onClick"], bo = S(Bc, [["render", function(e, t, o, l, a, i) {
2475
2491
  const n = C("el-input"), c = C("el-table-column"), h = re("edfocus");
2476
- return d(), V(c, O(e.$props, { "class-name": "cv-table-editor-text-column" }), { default: v((p) => [a.isEditIndex != p.$index || o.editAttr.disabled ? (d(), u("span", { key: 1, class: "showtext", onClick: (m) => i.textHdEdit(p.row, p.$index) }, T(p.row[e.prop]), 9, zc)) : M((d(), V(n, O({ key: 0 }, o.editAttr, { clearable: o.editClearable, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m, onBlur: wl((m) => i.textHdSave(p.row, p.$index), ["prevent"]), onClear: (m) => i.textHdClear(p.row, p.$index) }), null, 16, ["clearable", "style", "class", "modelValue", "onUpdate:modelValue", "onBlur", "onClear"])), [[h]])]), _: 1 }, 16);
2492
+ return d(), V(c, O(e.$props, { "class-name": "cv-table-editor-text-column" }), { default: v((p) => [a.isEditIndex != p.$index || o.editAttr.disabled ? (d(), u("span", { key: 1, class: "showtext", onClick: (m) => i.textHdEdit(p.row, p.$index) }, T(p.row[e.prop]), 9, zc)) : M((d(), V(n, O({ key: 0 }, o.editAttr, { clearable: o.editClearable, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m, onBlur: kl((m) => i.textHdSave(p.row, p.$index), ["prevent"]), onClear: (m) => i.textHdClear(p.row, p.$index) }), null, 16, ["clearable", "style", "class", "modelValue", "onUpdate:modelValue", "onBlur", "onClear"])), [[h]])]), _: 1 }, 16);
2477
2493
  }]]), yo = S({ name: "cvTbEditRadio", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
2478
2494
  } }, editFormatter: { type: [Function], default: () => {
2479
2495
  } } }, data: () => ({}), created() {
2480
2496
  } }, [["render", function(e, t, o, l, a, i) {
2481
2497
  const n = C("el-radio"), c = C("el-radio-group"), h = C("el-table-column");
2482
- return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 2 }, 1040, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
2498
+ return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
2483
2499
  }]]), Co = S({ name: "cvTbEditCheckbox", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
2484
2500
  } }, editFormatter: { type: [Function], default: () => {
2485
2501
  } } }, data: () => ({ localVal: [] }), created() {
@@ -2487,13 +2503,13 @@ const za = { provide() {
2487
2503
  this.localVal = [];
2488
2504
  } } }, [["render", function(e, t, o, l, a, i) {
2489
2505
  const n = C("el-checkbox"), c = C("el-checkbox-group"), h = C("el-table-column");
2490
- return d(), V(h, U(Y(e.$props)), { default: v((p) => [p.row[e.prop] ? (d(), V(c, O({ key: 0, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 2 }, 1040, ["style", "class", "modelValue", "onUpdate:modelValue"])) : w("", !0)]), _: 1 }, 16);
2506
+ return d(), V(h, U(Y(e.$props)), { default: v((p) => [p.row[e.prop] ? (d(), V(c, O({ key: 0, style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])) : w("", !0)]), _: 1 }, 16);
2491
2507
  }]]), wo = S({ name: "cvTbEditSelect", props: { ...Z.props, editAttr: { type: [Object], default: () => ({}) }, editStyle: { type: [Object], default: () => ({}) }, editClass: { type: [Object], default: () => ({}) }, dataLists: { type: [Object, Array], default: () => ({}) }, dataField: { type: Object, default: () => ({ label: "label", value: "value" }) }, editChange: { type: [Function], default: () => {
2492
2508
  } }, editFormatter: { type: [Function], default: () => {
2493
2509
  } } }, data: () => ({}), created() {
2494
2510
  } }, [["render", function(e, t, o, l, a, i) {
2495
2511
  const n = C("el-option"), c = C("el-select"), h = C("el-table-column");
2496
- return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 2 }, 1040, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
2512
+ return d(), V(h, U(Y(e.$props)), { default: v((p) => [b(c, O({ style: o.editStyle, class: o.editClass, modelValue: p.row[e.prop], "onUpdate:modelValue": (m) => p.row[e.prop] = m }, o.editAttr), { default: v(() => [(d(!0), u(F, null, E(o.dataLists, (m, f) => (d(), V(n, { key: f, label: m[o.dataField.label], value: m[o.dataField.value] }, { default: v(() => [L(T(m[o.dataField.label]), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 16, ["style", "class", "modelValue", "onUpdate:modelValue"])]), _: 1 }, 16);
2497
2513
  }]]);
2498
2514
  io.install = function(e) {
2499
2515
  e.component(io.name, io);
@@ -2551,11 +2567,11 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
2551
2567
  }]]), ad = { class: "comment-common-icon" }, id = S({}, [["render", function(e, t) {
2552
2568
  return d(), u("i", ad, [...t[0] || (t[0] = [r("svg", { viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "1320", width: "200", height: "200" }, [r("path", { d: "M147.264 647.296V220.928c0-49.536 40.128-89.728 89.6-89.728H793.6c49.536 0 89.728 40.192 89.728 89.728v426.368c0 49.536-40.128 89.728-89.6 89.728h-145.216a47.04 47.04 0 0 0-28.16 9.408l-194.56 145.792a3.392 3.392 0 0 1-5.12-1.984l-26.752-116.672a47.04 47.04 0 0 0-45.824-36.544H236.992a89.728 89.728 0 0 1-89.728-89.728zM236.864 64A156.928 156.928 0 0 0 80 220.928l0.064 426.368a156.928 156.928 0 0 0 156.928 156.928h94.976l23.232 101.312 0.064 0.448a70.592 70.592 0 0 0 109.696 40.832l190.208-142.592H793.6a156.928 156.928 0 0 0 156.928-156.928l-0.064-426.368A156.928 156.928 0 0 0 793.536 64H236.928z m69.44 442.496a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z m268.8-65.344a65.344 65.344 0 1 1-130.752 0 65.344 65.344 0 0 1 130.752 0z m138.368 65.344a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z", "p-id": "1321" })], -1)])]);
2553
2569
  }]]), ld = { class: "cv-comment-emoji" }, nd = { class: "face-tooltip-head select-none" }, sd = ["onClick"], rd = ["src"], cd = { class: "emoji-body select-none" }, dd = { style: { padding: "0 5px" } }, hd = ["onClick"], pd = { class: "emoji-btn select-none" }, ud = { key: 0 }, md = S(Object.assign({ name: "CompInputEmoji" }, { __name: "input-emoji", props: { emoji: { faceList: [], emojiList: [], allEmoji: {} }, placement: "bottom" }, emits: ["addEmoji"], setup(e, { emit: t }) {
2554
- const o = e, l = B(0), a = B(0), i = B(new Array(2)), { emojiList: n, faceList: c } = o.emoji;
2570
+ const o = e, l = N(0), a = N(0), i = N(new Array(2)), { emojiList: n, faceList: c } = o.emoji;
2555
2571
  function h() {
2556
2572
  i.value[0] = n[0];
2557
2573
  }
2558
- return (p, m) => (d(), u("div", ld, [b($(Oa), { placement: e.placement, "popper-class": "emoji-popover", width: 250, trigger: "click", onBeforeEnter: h }, { reference: v(() => [r("div", pd, [p.$slots.default ? D(p.$slots, "default", { key: 1 }, void 0, !0) : (d(), u("div", ud, [b($(jc)), m[0] || (m[0] = r("span", null, "表情", -1))]))])]), default: v(() => [r("div", nd, [(d(!0), u(F, null, E($(c), (f, g) => (d(), u("label", { key: g, class: z(l.value == g ? "active" : ""), onClick: (k) => function(x) {
2574
+ return (p, m) => (d(), u("div", ld, [b($(Fa), { placement: e.placement, "popper-class": "emoji-popover", width: 250, trigger: "click", onBeforeEnter: h }, { reference: v(() => [r("div", pd, [p.$slots.default ? D(p.$slots, "default", { key: 1 }, void 0, !0) : (d(), u("div", ud, [b($(jc)), m[0] || (m[0] = r("span", null, "表情", -1))]))])]), default: v(() => [r("div", nd, [(d(!0), u(F, null, E($(c), (f, g) => (d(), u("label", { key: g, class: z(l.value == g ? "active" : ""), onClick: (k) => function(x) {
2559
2575
  switch (l.value = x, x) {
2560
2576
  case 0:
2561
2577
  a.value = 0;
@@ -2563,10 +2579,10 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
2563
2579
  case 1:
2564
2580
  a.value = -50, i.value[1] = n[1];
2565
2581
  }
2566
- }(g) }, [r("img", { src: f, alt: "" }, null, 8, rd)], 10, sd))), 128))]), r("div", cd, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Fa), null, { default: v(() => [r("div", dd, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ma), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, hd))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
2582
+ }(g) }, [r("img", { src: f, alt: "" }, null, 8, rd)], 10, sd))), 128))]), r("div", cd, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Ma), null, { default: v(() => [r("div", dd, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ea), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, hd))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
2567
2583
  } }), [["__scopeId", "data-v-2fb59975"]]), gd = { class: "cv-comment-editor" }, fd = ["placeholder", "innerHTML"], vd = ["src"], bd = ["onClick"], yd = { key: 0, class: "cv-comment-editor__action" }, Cd = { __name: "input-box", props: { placeholder: "", contentBtn: "", parentId: "", reply: "" }, emits: ["hide", "close"], setup(e, { expose: t, emit: o }) {
2568
- const l = e, a = B(""), i = B(), n = B(!1), c = B(!1), h = B(), p = B(!0), m = B(), f = B(), g = B([]), k = B([]), x = Ao({ imgLength: 0 }), y = 64, _ = B(), I = B(!1), N = B(), P = G(() => y + "px"), j = G(() => "8px 12px"), W = o, { upload: ee, submit: te, focus: ce } = ne("InjectInputBox"), ze = ne("InjectionEmojiApi");
2569
- function Pa() {
2584
+ const l = e, a = N(""), i = N(), n = N(!1), c = N(!1), h = N(), p = N(!0), m = N(), f = N(), g = N([]), k = N([]), x = Ao({ imgLength: 0 }), y = 64, _ = N(), I = N(!1), B = N(), P = G(() => y + "px"), j = G(() => "8px 12px"), W = o, { upload: ee, submit: te, focus: ce } = ne("InjectInputBox"), ze = ne("InjectionEmojiApi");
2585
+ function ja() {
2570
2586
  te({ content: l.reply ? `回复 <span style="color: var(--cv-color-success-dark-2);">@${l.reply.user.username}:</span> ${a.value}` : a.value, parentId: Ee(l.parentId, null), reply: l.reply, files: k.value, clear: () => {
2571
2587
  h.value && (h.value.innerHTML = "", a.value = h.value.innerHTML, n.value = !1), g.value.length = 0, k.value = [], p.value = !0, W("close");
2572
2588
  } });
@@ -2575,7 +2591,7 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
2575
2591
  $e(a.value) && !x.imgLength && (c.value = !1, W("hide", K));
2576
2592
  }
2577
2593
  function ql(K) {
2578
- I.value = !0, n.value = !0, c.value = !0, Be(() => {
2594
+ I.value = !0, n.value = !0, c.value = !0, Ne(() => {
2579
2595
  m.value = document.querySelector("div[id^='el-popper-container']");
2580
2596
  }), ce();
2581
2597
  }
@@ -2586,13 +2602,13 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
2586
2602
  const { innerHTML: R } = K?.target || K;
2587
2603
  a.value = R || "", $e(a.value.replace(/&nbsp;|<br>| /g, "")) ? p.value = !0 : p.value = !1;
2588
2604
  }
2589
- function ja() {
2590
- Be(() => {
2605
+ function Ra() {
2606
+ Ne(() => {
2591
2607
  h.value?.focus();
2592
2608
  });
2593
2609
  }
2594
2610
  function Zl(K) {
2595
- K.ctrlKey && K.key == "Enter" && ($e(a.value.replace(/&nbsp;|<br>| /g, "")) ? q({ message: "内容不能为空", type: "info" }) : Pa());
2611
+ K.ctrlKey && K.key == "Enter" && ($e(a.value.replace(/&nbsp;|<br>| /g, "")) ? q({ message: "内容不能为空", type: "info" }) : ja());
2596
2612
  }
2597
2613
  function Ql(K) {
2598
2614
  g.value.length = 0, k.value.length = 0;
@@ -2605,45 +2621,45 @@ const Hc = { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmln
2605
2621
  }
2606
2622
  return ae(() => a.value, (K) => {
2607
2623
  I.value || (i.value = K);
2608
- }), Ne(() => {
2624
+ }), Be(() => {
2609
2625
  h.value?.addEventListener("keyup", (K) => {
2610
2626
  const R = K.target;
2611
2627
  R.innerHTML == "<br>" && (R.innerHTML = "");
2612
2628
  });
2613
- }), t({ focus: () => ja() }), (K, R) => M((d(), u("div", gd, [r("div", { class: z(["cv-comment-editor__box", { active: n.value, "input-active": c.value }]) }, [r("div", { ref_key: "editorRef", ref: h, class: "rich-input", contenteditable: "true", placeholder: l.placeholder, onFocus: ql, onInput: Gl, onBlur: Kl, onKeydown: Oe(Zl, ["enter"]), innerHTML: i.value, style: H({ minHeight: P.value, padding: j.value }) }, null, 44, fd), r("div", { ref_key: "imageRef", ref: N, class: "image-preview-box" }, [(d(!0), u(F, null, E(g.value, (le, oe) => (d(), u("div", { key: oe, class: "image-preview" }, [r("img", { src: le, alt: "" }, null, 8, vd), r("div", { class: "clean-btn", onClick: (xe) => {
2629
+ }), t({ focus: () => Ra() }), (K, R) => M((d(), u("div", gd, [r("div", { class: z(["cv-comment-editor__box", { active: n.value, "input-active": c.value }]) }, [r("div", { ref_key: "editorRef", ref: h, class: "rich-input", contenteditable: "true", placeholder: l.placeholder, onFocus: ql, onInput: Gl, onBlur: Kl, onKeydown: Oe(Zl, ["enter"]), innerHTML: i.value, style: H({ minHeight: P.value, padding: j.value }) }, null, 44, fd), r("div", { ref_key: "imageRef", ref: B, class: "image-preview-box" }, [(d(!0), u(F, null, E(g.value, (le, oe) => (d(), u("div", { key: oe, class: "image-preview" }, [r("img", { src: le, alt: "" }, null, 8, vd), r("div", { class: "clean-btn", onClick: (xe) => {
2614
2630
  return He = oe, void g?.value?.splice(He, 1);
2615
2631
  var He;
2616
2632
  } }, [b($(Ac))], 8, bd)]))), 128))], 512)], 2), b(fn, { name: "fade" }, { default: v(() => [c.value ? (d(), u("div", yd, [r("div", null, [b(md, { emoji: $(ze), onAddEmoji: R[0] || (R[0] = (le) => function(oe) {
2617
2633
  let xe = window.getSelection();
2618
- xe && (xe.removeAllRanges(), _.value || (ja(), _.value = xe.getRangeAt(0)), _.value.deleteContents(), _.value.insertNode(_.value.createContextualFragment(oe)), _.value.collapse(!1), xe.addRange(_.value), a.value = h?.value?.innerHTML || "", $e(a.value.replace(/&nbsp;|<br>| /g, "")) ? p.value = !0 : p.value = !1);
2619
- }(le)) }, null, 8, ["emoji"]), r("div", { class: "picture", onClick: R[1] || (R[1] = (...le) => f.value?.click && f.value?.click(...le)) }, [b($(Yc)), R[2] || (R[2] = r("span", null, "图片", -1)), r("input", { id: "comment-upload", ref_key: "inputRef", ref: f, type: "file", multiple: "", onChange: Ql }, null, 544)])]), r("div", null, [R[3] || (R[3] = r("span", { style: { "margin-right": "10px" } }, [L(" 文明上网理性发言,请遵守 "), r("a", { href: "###", target: "_blank" }, "《新闻评论服务协议》")], -1)), b($(Fe), { type: "primary", disabled: p.value, onClick: Pa }, { default: v(() => [L(T(l.contentBtn), 1)]), _: 1 }, 8, ["disabled"])])])) : w("", !0)]), _: 1 })])), [[$(hn), Xl, m.value]]);
2620
- } }, Bl = S(Cd, [["__scopeId", "data-v-e3fd437e"]]), wd = { class: "u-fold" }, kd = { class: "action-box select-none" }, xd = S(Object.assign({ name: "UFold" }, { __name: "fold", props: { line: { type: [Number, String], default: 5 } }, setup(e) {
2621
- vn((c) => ({ "15491e60": o.value }));
2634
+ xe && (xe.removeAllRanges(), _.value || (Ra(), _.value = xe.getRangeAt(0)), _.value.deleteContents(), _.value.insertNode(_.value.createContextualFragment(oe)), _.value.collapse(!1), xe.addRange(_.value), a.value = h?.value?.innerHTML || "", $e(a.value.replace(/&nbsp;|<br>| /g, "")) ? p.value = !0 : p.value = !1);
2635
+ }(le)) }, null, 8, ["emoji"]), r("div", { class: "picture", onClick: R[1] || (R[1] = (...le) => f.value?.click && f.value?.click(...le)) }, [b($(Yc)), R[2] || (R[2] = r("span", null, "图片", -1)), r("input", { id: "comment-upload", ref_key: "inputRef", ref: f, type: "file", multiple: "", onChange: Ql }, null, 544)])]), r("div", null, [R[3] || (R[3] = r("span", { style: { "margin-right": "10px" } }, [L(" 文明上网理性发言,请遵守 "), r("a", { href: "###", target: "_blank" }, "《新闻评论服务协议》")], -1)), b($(Fe), { type: "primary", disabled: p.value, onClick: ja }, { default: v(() => [L(T(l.contentBtn), 1)]), _: 1 }, 8, ["disabled"])])])) : w("", !0)]), _: 1 })])), [[$(hn), Xl, m.value]]);
2636
+ } }, Nl = S(Cd, [["__scopeId", "data-v-e3fd437e"]]), wd = { class: "u-fold" }, kd = { class: "action-box select-none" }, xd = S(Object.assign({ name: "UFold" }, { __name: "fold", props: { line: { type: [Number, String], default: 5 } }, setup(e) {
2637
+ vn((c) => ({ v15491e60: o.value }));
2622
2638
  const t = e, o = G(() => {
2623
2639
  let c = Math.trunc(Number(t.line));
2624
2640
  return c > 0 ? c : 1;
2625
- }), l = B(!0), a = B(!1), i = B();
2641
+ }), l = N(!0), a = N(!1), i = N();
2626
2642
  let n;
2627
- return Ne(() => {
2643
+ return Be(() => {
2628
2644
  n = new ResizeObserver((c) => {
2629
2645
  l.value && i.value && (a.value = i.value.offsetHeight < i.value.scrollHeight);
2630
2646
  }), n.observe(i.value);
2631
2647
  }), bn(() => {
2632
2648
  n.disconnect();
2633
2649
  }), (c, h) => (d(), u("div", wd, [r("div", { class: z(["txt-box", { "over-hidden": l.value }]) }, [r("div", { ref_key: "divBox", ref: i }, [D(c.$slots, "default", {}, void 0, !0)], 512)], 2), r("div", kd, [a.value && c.unfold ? (d(), u("div", { key: 0, class: "expand-btn", onClick: h[0] || (h[0] = (p) => l.value = !l.value) }, T(l.value ? "展开" : "收起"), 1)) : w("", !0)])]));
2634
- } }), [["__scopeId", "data-v-94334818"]]), Ja = { __name: "user-card", props: { uid: "" }, setup(e) {
2635
- const t = B({}), { showInfo: o } = ne("InjectContentBox"), l = ne("InjectSlots"), a = () => Ea("div", l.card(t.value));
2636
- return (i, n) => $(l).card ? (d(), V($(Oa), { key: 0, placement: "top", width: 300, "show-after": 300, onBeforeEnter: n[0] || (n[0] = () => $(o)(e.uid, (c) => t.value = c)) }, { reference: v(() => [D(i.$slots, "default")]), default: v(() => [b(a)]), _: 3 })) : D(i.$slots, "default", { key: 1 });
2650
+ } }), [["__scopeId", "data-v-94334818"]]), ei = { __name: "user-card", props: { uid: "" }, setup(e) {
2651
+ const t = N({}), { showInfo: o } = ne("InjectContentBox"), l = ne("InjectSlots"), a = () => Na("div", l.card(t.value));
2652
+ return (i, n) => $(l).card ? (d(), V($(Fa), { key: 0, placement: "top", width: 300, "show-after": 300, onBeforeEnter: n[0] || (n[0] = () => $(o)(e.uid, (c) => t.value = c)) }, { reference: v(() => [D(i.$slots, "default")]), default: v(() => [b(a)]), _: 3 })) : D(i.$slots, "default", { key: 1 });
2637
2653
  } };
2638
- function Nl(e) {
2654
+ function Bl(e) {
2639
2655
  return !!Cn() && (wn(e), !0);
2640
2656
  }
2641
- const Ha = typeof window < "u" && typeof document < "u";
2657
+ const Aa = typeof window < "u" && typeof document < "u";
2642
2658
  const Sd = Object.prototype.toString, Vd = (e) => Sd.call(e) === "[object Object]";
2643
2659
  function Xo(e) {
2644
2660
  return Array.isArray(e) ? e : [e];
2645
2661
  }
2646
- const _d = Ha ? window : void 0, zl = Ha ? window.navigator : void 0;
2662
+ const _d = Aa ? window : void 0, zl = Aa ? window.navigator : void 0;
2647
2663
  function Hl(...e) {
2648
2664
  const t = [], o = () => {
2649
2665
  t.forEach((c) => c()), t.length = 0;
@@ -2653,7 +2669,7 @@ function Hl(...e) {
2653
2669
  }), a = (i = ([c, h, p, m]) => {
2654
2670
  if (o(), !c?.length || !h?.length || !p?.length) return;
2655
2671
  const f = Vd(m) ? { ...m } : m;
2656
- t.push(...c.flatMap((g) => h.flatMap((k) => p.map((x) => ((y, _, I, N) => (y.addEventListener(_, I, N), () => y.removeEventListener(_, I, N)))(g, k, x, f)))));
2672
+ t.push(...c.flatMap((g) => h.flatMap((k) => p.map((x) => ((y, _, I, B) => (y.addEventListener(_, I, B), () => y.removeEventListener(_, I, B)))(g, k, x, f)))));
2657
2673
  }, n = { flush: "post" }, ae(() => {
2658
2674
  var c, h;
2659
2675
  return [(h = (c = l.value) == null ? void 0 : c.map((p) => function(m) {
@@ -2663,13 +2679,13 @@ function Hl(...e) {
2663
2679
  }(p))) != null ? h : [_d].filter((p) => p != null), Xo(De(l.value ? e[1] : e[0])), Xo($(l.value ? e[2] : e[1])), De(l.value ? e[3] : e[2])];
2664
2680
  }, i, { ...n, immediate: !0 }));
2665
2681
  var i, n;
2666
- return Nl(o), () => {
2682
+ return Bl(o), () => {
2667
2683
  a(), o();
2668
2684
  };
2669
2685
  }
2670
2686
  function Id() {
2671
2687
  const e = se(!1), t = kn();
2672
- return t && Ne(() => {
2688
+ return t && Be(() => {
2673
2689
  e.value = !0;
2674
2690
  }, t), e;
2675
2691
  }
@@ -2677,7 +2693,7 @@ function Al(e) {
2677
2693
  const t = Id();
2678
2694
  return G(() => (t.value, !!e()));
2679
2695
  }
2680
- function ei(e, t = {}) {
2696
+ function ti(e, t = {}) {
2681
2697
  const { controls: o = !1, navigator: l = zl } = t, a = Al(() => l && "permissions" in l), i = se(), n = typeof e == "string" ? { name: e } : e, c = se(), h = () => {
2682
2698
  var m, f;
2683
2699
  c.value = (f = (m = i.value) == null ? void 0 : m.state) != null ? f : "prompt";
@@ -2701,14 +2717,14 @@ function ei(e, t = {}) {
2701
2717
  } finally {
2702
2718
  h();
2703
2719
  }
2704
- return o ? Sl(i.value) : void 0;
2720
+ return o ? Vl(i.value) : void 0;
2705
2721
  }
2706
2722
  });
2707
2723
  return p(), o ? { state: c, isSupported: a, query: p } : c;
2708
2724
  }
2709
2725
  function Td(e = {}) {
2710
- const { navigator: t = zl, read: o = !1, source: l, copiedDuring: a = 1500, legacy: i = !1 } = e, n = Al(() => t && "clipboard" in t), c = ei("clipboard-read"), h = ei("clipboard-write"), p = G(() => n.value || i), m = se(""), f = se(!1), g = function(x, y, _ = {}) {
2711
- const { immediate: I = !0, immediateCallback: N = !1 } = _, P = se(!1);
2726
+ const { navigator: t = zl, read: o = !1, source: l, copiedDuring: a = 1500, legacy: i = !1 } = e, n = Al(() => t && "clipboard" in t), c = ti("clipboard-read"), h = ti("clipboard-write"), p = G(() => n.value || i), m = se(""), f = se(!1), g = function(x, y, _ = {}) {
2727
+ const { immediate: I = !0, immediateCallback: B = !1 } = _, P = se(!1);
2712
2728
  let j;
2713
2729
  function W() {
2714
2730
  j && (clearTimeout(j), j = void 0);
@@ -2717,11 +2733,11 @@ function Td(e = {}) {
2717
2733
  P.value = !1, W();
2718
2734
  }
2719
2735
  function te(...ce) {
2720
- N && x(), W(), P.value = !0, j = setTimeout(() => {
2736
+ B && x(), W(), P.value = !0, j = setTimeout(() => {
2721
2737
  P.value = !1, j = void 0, x(...ce);
2722
2738
  }, De(y));
2723
2739
  }
2724
- return I && (P.value = !0, Ha && te()), Nl(ee), { isPending: yn(P), start: te, stop: ee };
2740
+ return I && (P.value = !0, Aa && te()), Bl(ee), { isPending: yn(P), start: te, stop: ee };
2725
2741
  }(() => f.value = !1, a, { immediate: !1 });
2726
2742
  function k(x) {
2727
2743
  return x === "granted" || x === "prompt";
@@ -2751,14 +2767,14 @@ function Td(e = {}) {
2751
2767
  } };
2752
2768
  }
2753
2769
  const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-warp" }, $d = { class: "dialog-footer" }, Od = { __name: "comment-operate", props: { data: { type: [Object], default: () => ({}) } }, setup(e) {
2754
- const { copy: t } = Td(), o = B(!1), l = B({ report_type: "", report_content: "" }), a = e;
2770
+ const { copy: t } = Td(), o = N(!1), l = N({ report_type: "", report_content: "" }), a = e;
2755
2771
  function i() {
2756
2772
  let n = a.data || {};
2757
2773
  o.value = !1, q({ type: "info", message: "举报成功: " + n.id });
2758
2774
  }
2759
2775
  return (n, c) => {
2760
2776
  const h = C("el-dropdown-item"), p = C("el-dropdown-menu"), m = C("el-dropdown"), f = C("el-radio"), g = C("el-radio-group"), k = C("el-form-item"), x = C("el-input"), y = C("el-form"), _ = C("el-button"), I = C("el-dialog");
2761
- return d(), u("div", Ld, [b(m, { trigger: "click", onCommand: c[0] || (c[0] = (N) => function(P) {
2777
+ return d(), u("div", Ld, [b(m, { trigger: "click", onCommand: c[0] || (c[0] = (B) => function(P) {
2762
2778
  let j = a.data || {};
2763
2779
  switch (P) {
2764
2780
  case "remove":
@@ -2772,15 +2788,15 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2772
2788
  case "copy":
2773
2789
  t(j.content), q({ type: "info", message: "复制成功" });
2774
2790
  }
2775
- }(N)) }, { dropdown: v(() => [b(p, null, { default: v(() => [b(h, { command: "report" }, { default: v(() => [...c[5] || (c[5] = [L("举报", -1)])]), _: 1 }), b(h, { command: "remove" }, { default: v(() => [...c[6] || (c[6] = [L("删除", -1)])]), _: 1 }), b(h, { divided: "", command: "copy" }, { default: v(() => [...c[7] || (c[7] = [L("复制", -1)])]), _: 1 })]), _: 1 })]), default: v(() => [r("div", Dd, [b($(qc))])]), _: 1 }), b(I, { title: "举报", modelValue: o.value, "onUpdate:modelValue": c[4] || (c[4] = (N) => o.value = N), width: "400px", style: { width: "90%", "max-width": "400px" } }, { footer: v(() => [r("span", $d, [b(_, { onClick: c[3] || (c[3] = (N) => o.value = !1) }, { default: v(() => [...c[13] || (c[13] = [L("取消", -1)])]), _: 1 }), b(_, { type: "primary", onClick: i }, { default: v(() => [...c[14] || (c[14] = [L("提交", -1)])]), _: 1 })])]), default: v(() => [b(y, { "label-position": "top" }, { default: v(() => [b(k, { label: "您为什么要举报此信息?" }, { default: v(() => [b(g, { modelValue: l.value.report_type, "onUpdate:modelValue": c[1] || (c[1] = (N) => l.value.report_type = N) }, { default: v(() => [b(f, { value: "色情淫秽" }, { default: v(() => [...c[8] || (c[8] = [L("色情淫秽", -1)])]), _: 1 }), b(f, { value: "骚扰谩骂" }, { default: v(() => [...c[9] || (c[9] = [L("骚扰谩骂", -1)])]), _: 1 }), b(f, { value: "广告欺诈" }, { default: v(() => [...c[10] || (c[10] = [L("广告欺诈", -1)])]), _: 1 }), b(f, { value: "反动" }, { default: v(() => [...c[11] || (c[11] = [L("反动", -1)])]), _: 1 }), b(f, { value: "其他" }, { default: v(() => [...c[12] || (c[12] = [L("其他", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(k, { label: "举报说明(可选):" }, { default: v(() => [b(x, { type: "textarea", modelValue: l.value.report_content, "onUpdate:modelValue": c[2] || (c[2] = (N) => l.value.report_content = N), maxlength: "200", placeholder: "描述恶意行为", rows: "3" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]);
2791
+ }(B)) }, { dropdown: v(() => [b(p, null, { default: v(() => [b(h, { command: "report" }, { default: v(() => [...c[5] || (c[5] = [L("举报", -1)])]), _: 1 }), b(h, { command: "remove" }, { default: v(() => [...c[6] || (c[6] = [L("删除", -1)])]), _: 1 }), b(h, { divided: "", command: "copy" }, { default: v(() => [...c[7] || (c[7] = [L("复制", -1)])]), _: 1 })]), _: 1 })]), default: v(() => [r("div", Dd, [b($(qc))])]), _: 1 }), b(I, { title: "举报", modelValue: o.value, "onUpdate:modelValue": c[4] || (c[4] = (B) => o.value = B), width: "400px", style: { width: "90%", "max-width": "400px" } }, { footer: v(() => [r("span", $d, [b(_, { onClick: c[3] || (c[3] = (B) => o.value = !1) }, { default: v(() => [...c[13] || (c[13] = [L("取消", -1)])]), _: 1 }), b(_, { type: "primary", onClick: i }, { default: v(() => [...c[14] || (c[14] = [L("提交", -1)])]), _: 1 })])]), default: v(() => [b(y, { "label-position": "top" }, { default: v(() => [b(k, { label: "您为什么要举报此信息?" }, { default: v(() => [b(g, { modelValue: l.value.report_type, "onUpdate:modelValue": c[1] || (c[1] = (B) => l.value.report_type = B) }, { default: v(() => [b(f, { value: "色情淫秽" }, { default: v(() => [...c[8] || (c[8] = [L("色情淫秽", -1)])]), _: 1 }), b(f, { value: "骚扰谩骂" }, { default: v(() => [...c[9] || (c[9] = [L("骚扰谩骂", -1)])]), _: 1 }), b(f, { value: "广告欺诈" }, { default: v(() => [...c[10] || (c[10] = [L("广告欺诈", -1)])]), _: 1 }), b(f, { value: "反动" }, { default: v(() => [...c[11] || (c[11] = [L("反动", -1)])]), _: 1 }), b(f, { value: "其他" }, { default: v(() => [...c[12] || (c[12] = [L("其他", -1)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), b(k, { label: "举报说明(可选):" }, { default: v(() => [b(x, { type: "textarea", modelValue: l.value.report_content, "onUpdate:modelValue": c[2] || (c[2] = (B) => l.value.report_content = B), maxlength: "200", placeholder: "描述恶意行为", rows: "3" }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]);
2776
2792
  };
2777
- } }, Fd = { class: "comment-sub" }, Md = ["href"], Ed = { class: "comment-primary" }, Bd = { class: "comment-main" }, Nd = { key: 1, class: "user-info" }, zd = ["href"], Hd = { class: "username" }, Ad = { class: "name", style: { "max-width": "10em" } }, Pd = { blank: "true", class: "rank" }, jd = ["innerHTML"], Rd = { class: "address", style: { color: "#939393", "font-size": "12px" } }, Ud = { class: "time" }, Wd = { class: "content" }, Yd = ["innerHTML"], Xd = { class: "imgbox", style: { display: "flex" } }, qd = { class: "comment-list-actbox select-none" }, Kd = { class: "comment-list-actbox__left" }, Gd = { key: 2 }, Zd = { class: "comment-list-actbox__right" }, Qd = { key: 2 }, Pl = S({ __name: "content-box", props: { reply: { type: [Boolean], default: !1 }, data: { type: [Object], default: () => ({}) }, id: { type: [String], default: "" } }, setup(e) {
2778
- const t = e, o = Ao({ active: !1 }), l = B(), a = B(), i = G(() => {
2793
+ } }, Fd = { class: "comment-sub" }, Md = ["href"], Ed = { class: "comment-primary" }, Nd = { class: "comment-main" }, Bd = { key: 1, class: "user-info" }, zd = ["href"], Hd = { class: "username" }, Ad = { class: "name", style: { "max-width": "10em" } }, Pd = { blank: "true", class: "rank" }, jd = ["innerHTML"], Rd = { class: "address", style: { color: "#939393", "font-size": "12px" } }, Ud = { class: "time" }, Wd = { class: "content" }, Yd = ["innerHTML"], Xd = { class: "imgbox", style: { display: "flex" } }, qd = { class: "comment-list-actbox select-none" }, Kd = { class: "comment-list-actbox__left" }, Gd = { key: 2 }, Zd = { class: "comment-list-actbox__right" }, Qd = { key: 2 }, Pl = S({ __name: "content-box", props: { reply: { type: [Boolean], default: !1 }, data: { type: [Object], default: () => ({}) }, id: { type: [String], default: "" } }, setup(e) {
2794
+ const t = e, o = Ao({ active: !1 }), l = N(), a = N(), i = G(() => {
2779
2795
  let _ = t.data.contentImg;
2780
2796
  return $e(_) ? [] : _?.split("||");
2781
2797
  }), { allEmoji: n } = ne("InjectionEmojiApi"), { like: c, user: h, relativeTime: p } = ne("InjectContentBox");
2782
2798
  function m() {
2783
- o.active = !o.active, o.active && Be(() => {
2799
+ o.active = !o.active, o.active && Ne(() => {
2784
2800
  l.value?.focus();
2785
2801
  });
2786
2802
  }
@@ -2788,9 +2804,9 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2788
2804
  const I = _.target;
2789
2805
  a.value?.contains(I) || (o.active = !1);
2790
2806
  }
2791
- const g = ne("InjectSlots"), k = () => Ea("div", g.info(t.data)), x = G(() => ((_, I) => I.replace(/\[.+?\]/g, (N) => {
2792
- const P = _[N];
2793
- return P ? ['<img src="', P, '" width="20" height="20" alt="', N, '" title="', N, '" style="margin: 0 1px; vertical-align: text-bottom"', "/>"].join("") : N;
2807
+ const g = ne("InjectSlots"), k = () => Na("div", g.info(t.data)), x = G(() => ((_, I) => I.replace(/\[.+?\]/g, (B) => {
2808
+ const P = _[B];
2809
+ return P ? ['<img src="', P, '" width="20" height="20" alt="', B, '" title="', B, '" style="margin: 0 1px; vertical-align: text-bottom"', "/>"].join("") : B;
2794
2810
  }))(n, t.data.content)), y = (_) => {
2795
2811
  switch (_) {
2796
2812
  case 1:
@@ -2809,7 +2825,7 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2809
2825
  return "";
2810
2826
  }
2811
2827
  };
2812
- return (_, I) => (d(), u("div", { class: z(["comment", { reply: t.reply }]) }, [r("div", Fd, [b(Ja, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [b($(yl), { style: { "margin-top": "5px" }, size: 40, fit: "cover", src: e.data.user.avatar }, { default: v(() => [...I[2] || (I[2] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])], 8, Md)]), _: 1 }, 8, ["uid"])]), r("div", Ed, [r("div", Bd, [$(g).info ? (d(), V(k, { key: 0 })) : (d(), u("div", Nd, [b(Ja, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [r("div", Hd, [r("span", Ad, T(e.data.user.username), 1), r("span", Pd, [r("i", { class: "comment-common-icon", style: { "font-size": "24px" }, innerHTML: y(e.data.user.level) }, null, 8, jd)])])], 8, zd)]), _: 1 }, 8, ["uid"]), r("span", Rd, "  " + T(e.data.address), 1), r("time", Ud, T($(p) ? $(bs)(e.data.createTime) : e.data.createTime), 1)])), r("div", Wd, [b(xd, { unfold: "" }, { default: v(() => [r("div", { innerHTML: x.value }, null, 8, Yd), r("div", Xd, [(d(!0), u(F, null, E(i.value, (N, P) => (d(), V($(Ma), { key: P, src: N, style: { height: "72px", padding: "8px 4px" }, lazy: "", "preview-src-list": i.value, "initial-index": P }, null, 8, ["src", "preview-src-list", "initial-index"]))), 128))])]), _: 1 })]), r("div", qd, [r("div", Kd, [r("div", { "data-tip": "点赞", class: "item", onClick: I[0] || (I[0] = (N) => $(c)($(Se)(e.data.id))) }, [$(h).likeIds.map(String).indexOf($(Se)(e.data.id)) == -1 ? (d(), V($(Qc), { key: 0 })) : (d(), V($(Gc), { key: 1 })), e.data.likes != 0 ? (d(), u("span", Gd, T(e.data.likes), 1)) : w("", !0)]), r("div", { "data-tip": "回复", ref_key: "btnRef", ref: a, class: z(["item", { active: o.active }]), onClick: m }, [b($(id)), r("span", null, T(o.active ? "取消回复" : "回复"), 1)], 2)]), r("div", Zd, [D(_.$slots, "operate", {}, () => [b(Od, { data: t.data }, null, 8, ["data"])], !0)])]), o.active ? (d(), u("div", Qd, [b(Bl, { ref_key: "commentRef", ref: l, "parent-id": $(Se)(e.id), placeholder: `回复 @${e.data.user.username}...`, reply: e.data, "content-btn": "发布", style: { "margin-top": "12px" }, onHide: f, onClose: I[1] || (I[1] = (N) => o.active = !1) }, null, 8, ["parent-id", "placeholder", "reply"])])) : w("", !0)]), D(_.$slots, "default", {}, void 0, !0)])], 2));
2828
+ return (_, I) => (d(), u("div", { class: z(["comment", { reply: t.reply }]) }, [r("div", Fd, [b(ei, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [b($(Cl), { style: { "margin-top": "5px" }, size: 40, fit: "cover", src: e.data.user.avatar }, { default: v(() => [...I[2] || (I[2] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])], 8, Md)]), _: 1 }, 8, ["uid"])]), r("div", Ed, [r("div", Nd, [$(g).info ? (d(), V(k, { key: 0 })) : (d(), u("div", Bd, [b(ei, { uid: $(Se)(e.data.uid) }, { default: v(() => [r("a", { href: e.data.user.homeLink, target: "_blank", class: "no-underline", style: { display: "block" } }, [r("div", Hd, [r("span", Ad, T(e.data.user.username), 1), r("span", Pd, [r("i", { class: "comment-common-icon", style: { "font-size": "24px" }, innerHTML: y(e.data.user.level) }, null, 8, jd)])])], 8, zd)]), _: 1 }, 8, ["uid"]), r("span", Rd, "  " + T(e.data.address), 1), r("time", Ud, T($(p) ? $(bs)(e.data.createTime) : e.data.createTime), 1)])), r("div", Wd, [b(xd, { unfold: "" }, { default: v(() => [r("div", { innerHTML: x.value }, null, 8, Yd), r("div", Xd, [(d(!0), u(F, null, E(i.value, (B, P) => (d(), V($(Ea), { key: P, src: B, style: { height: "72px", padding: "8px 4px" }, lazy: "", "preview-src-list": i.value, "initial-index": P }, null, 8, ["src", "preview-src-list", "initial-index"]))), 128))])]), _: 1 })]), r("div", qd, [r("div", Kd, [r("div", { "data-tip": "点赞", class: "item", onClick: I[0] || (I[0] = (B) => $(c)($(Se)(e.data.id))) }, [$(h).likeIds.map(String).indexOf($(Se)(e.data.id)) == -1 ? (d(), V($(Qc), { key: 0 })) : (d(), V($(Gc), { key: 1 })), e.data.likes != 0 ? (d(), u("span", Gd, T(e.data.likes), 1)) : w("", !0)]), r("div", { "data-tip": "回复", ref_key: "btnRef", ref: a, class: z(["item", { active: o.active }]), onClick: m }, [b($(id)), r("span", null, T(o.active ? "取消回复" : "回复"), 1)], 2)]), r("div", Zd, [D(_.$slots, "operate", {}, () => [b(Od, { data: t.data }, null, 8, ["data"])], !0)])]), o.active ? (d(), u("div", Qd, [b(Nl, { ref_key: "commentRef", ref: l, "parent-id": $(Se)(e.id), placeholder: `回复 @${e.data.user.username}...`, reply: e.data, "content-btn": "发布", style: { "margin-top": "12px" }, onHide: f, onClose: I[1] || (I[1] = (B) => o.active = !1) }, null, 8, ["parent-id", "placeholder", "reply"])])) : w("", !0)]), D(_.$slots, "default", {}, void 0, !0)])], 2));
2813
2829
  } }, [["__scopeId", "data-v-cfe79df7"]]), Jd = { key: 0, class: "reply-box" }, eh = { class: "reply-list" }, th = { key: 0, class: "fetch-more" }, oh = { key: 0 }, ah = { key: 1 }, ih = { key: 0 }, lh = { key: 1, class: "fetch-more" }, nh = S({ __name: "reply-box", props: { data: { type: [Array, Object], default: () => null }, id: { type: [String], default: "" } }, setup(e) {
2814
2830
  const t = e, o = Ao({ loading: !1, over: !1, pageNum: 1, pageSize: 5 }), { replyPage: l, replyShowSize: a, comments: i, page: n } = ne("InjectReplyBox"), c = G(() => {
2815
2831
  let g = { total: 0, length: 0, list: [] };
@@ -2838,10 +2854,10 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2838
2854
  const l = e, { user: a, comments: i, showSize: n, replyShowSize: c, total: h } = xn(l.config), p = o, m = { upload: l.upload, submit: ({ content: g, parentId: k, reply: x, files: y, clear: _ }) => {
2839
2855
  p("submit", { content: g, parentId: k, reply: x, files: y, finish: (I) => {
2840
2856
  if (_(), k) {
2841
- let N = i.value.find((P) => P.id == k);
2842
- if (N) {
2843
- let P = N.reply;
2844
- P ? (P.list.unshift(I), P.total++) : N.reply = { total: 1, list: [I] };
2857
+ let B = i.value.find((P) => P.id == k);
2858
+ if (B) {
2859
+ let P = B.reply;
2860
+ P ? (P.list.unshift(I), P.total++) : B.reply = { total: 1, list: [I] };
2845
2861
  }
2846
2862
  } else i.value.unshift(I);
2847
2863
  } });
@@ -2869,7 +2885,7 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2869
2885
  if (k) {
2870
2886
  let y = i.value.find((I) => I.id == k), _ = y?.reply;
2871
2887
  if (_) {
2872
- let I = _.list.findIndex((N) => N.id == x);
2888
+ let I = _.list.findIndex((B) => B.id == x);
2873
2889
  I != -1 && (_.list.splice(I, 1), _.total--);
2874
2890
  }
2875
2891
  } else {
@@ -2878,10 +2894,10 @@ const Ld = { class: "comment-list-actbox__right" }, Dd = { class: "operation-war
2878
2894
  }
2879
2895
  } }), (g, k) => {
2880
2896
  const x = C("el-avatar");
2881
- return d(), u("div", ch, [r("div", dh, [k[1] || (k[1] = r("div", { class: "cv-comment-form__header" }, [r("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1)), r("div", hh, [r("div", ph, [b(x, { size: 40, src: e.config.user.avatar }, { default: v(() => [...k[0] || (k[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])]), b(Bl, { placeholder: "输入评论(Enter换行,Ctrl + Enter发送)", "content-btn": "发表评论" })])]), D(g.$slots, "default", {}, () => [k[2] || (k[2] = r("div", { class: "title" }, "全部评论", -1))]), r("div", uh, [b(rh, { data: $(i), total: $(h), "show-size": $(Ee)($(n), 5) }, null, 8, ["data", "total", "show-size"])])]);
2897
+ return d(), u("div", ch, [r("div", dh, [k[1] || (k[1] = r("div", { class: "cv-comment-form__header" }, [r("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1)), r("div", hh, [r("div", ph, [b(x, { size: 40, src: e.config.user.avatar }, { default: v(() => [...k[0] || (k[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 }, 8, ["src"])]), b(Nl, { placeholder: "输入评论(Enter换行,Ctrl + Enter发送)", "content-btn": "发表评论" })])]), D(g.$slots, "default", {}, () => [k[2] || (k[2] = r("div", { class: "title" }, "全部评论", -1))]), r("div", uh, [b(rh, { data: $(i), total: $(h), "show-size": $(Ee)($(n), 5) }, null, 8, ["data", "total", "show-size"])])]);
2882
2898
  };
2883
2899
  } }), mh = { class: "comment-scroll" }, gh = ["infinite-scroll-disabled"], fh = { class: "scroll-btn" }, vh = { key: 1 }, bh = { key: 2 }, xo = Object.assign({ name: "cvCommentScroll" }, { __name: "comment-scroll", props: { disable: { type: [Boolean], default: !1 }, show: { type: [Boolean], default: !1 } }, emits: ["more"], setup(e, { emit: t }) {
2884
- const o = e, l = B(!1), a = B(!1), i = t, n = G(() => a.value && o.disable), c = G(() => !a.value || l.value || n.value), h = Il(() => {
2900
+ const o = e, l = N(!1), a = N(!1), i = t, n = G(() => a.value && o.disable), c = G(() => !a.value || l.value || n.value), h = Tl(() => {
2885
2901
  i("more"), l.value = !1;
2886
2902
  }, 500), p = () => {
2887
2903
  l.value = !0, h();
@@ -2903,32 +2919,32 @@ ko.install = function(e) {
2903
2919
  }, So.install = function(e) {
2904
2920
  e.component(So.name, So);
2905
2921
  };
2906
- const wh = { name: "cvSvgs", props: { ...Cl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { svgType() {
2922
+ const wh = { name: "cvSvgs", props: { ...wl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { svgType() {
2907
2923
  return "svg" + this.type;
2908
2924
  }, style() {
2909
2925
  return { fontSize: isNaN(Number(this.size)) ? this.size + "px" : this.size, color: props.color };
2910
2926
  } }, created() {
2911
2927
  }, methods: {} }, kh = { key: 0, "aria-hidden": "true" }, xh = ["xlink:href"], Vo = S(wh, [["render", function(e, t, o, l, a, i) {
2912
2928
  const n = C("el-icon");
2913
- return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(Vl(i.svgType)))]), o.name ? (d(), u("svg", kh, [r("use", { "xlink:href": o.name }, null, 8, xh)])) : w("", !0)]), _: 3 }, 16);
2914
- }]]), Sh = { name: "cvIcons", props: { ...Cl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { style() {
2929
+ return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(i.svgType)))]), o.name ? (d(), u("svg", kh, [r("use", { "xlink:href": o.name }, null, 8, xh)])) : w("", !0)]), _: 3 }, 16);
2930
+ }]]), Sh = { name: "cvIcons", props: { ...wl.prop, type: { type: [String], default: "" }, size: { type: [String, Number], default: 12 }, name: { type: [String], default: "" } }, data: () => ({}), computed: { style() {
2915
2931
  return { fontSize: isNaN(Number(this.size)) ? this.size + "px" : this.size, color: props.color };
2916
2932
  } }, created() {
2917
2933
  }, methods: {} }, Vh = { key: 0, "aria-hidden": "true" }, _h = ["xlink:href"], _o = S(Sh, [["render", function(e, t, o, l, a, i) {
2918
2934
  const n = C("el-icon");
2919
- return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(Vl(o.type)))]), o.name ? (d(), u("svg", Vh, [r("use", { "xlink:href": o.name }, null, 8, _h)])) : w("", !0)]), _: 3 }, 16);
2935
+ return d(), V(n, U(Y(e.$props)), { default: v(() => [D(e.$slots, "default", {}, () => [(d(), V(_l(o.type)))]), o.name ? (d(), u("svg", Vh, [r("use", { "xlink:href": o.name }, null, 8, _h)])) : w("", !0)]), _: 3 }, 16);
2920
2936
  }]]);
2921
2937
  _o.install = function(e) {
2922
2938
  e.component(_o.name, _o);
2923
2939
  }, Vo.install = function(e) {
2924
2940
  e.component(Vo.name, Vo);
2925
2941
  };
2926
- const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }, Lh = ["onClick"], Dh = ["src"], $h = { class: "emoji-body select-none" }, Oh = { style: { padding: "0 5px" } }, Fh = ["onClick"], Mh = { class: "emoji-btn select-none" }, Eh = { key: 0 }, Bh = S(Object.assign({ name: "cvEmoji" }, { __name: "emoji", props: { emoji: { faceList: [], emojiList: [], allEmoji: {} }, placement: "bottom" }, emits: ["addEmoji"], setup(e, { emit: t }) {
2927
- const o = e, l = B(0), a = B(0), i = B(new Array(2)), { emojiList: n, faceList: c } = o.emoji;
2942
+ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }, Lh = ["onClick"], Dh = ["src"], $h = { class: "emoji-body select-none" }, Oh = { style: { padding: "0 5px" } }, Fh = ["onClick"], Mh = { class: "emoji-btn select-none" }, Eh = { key: 0 }, Nh = S(Object.assign({ name: "cvEmoji" }, { __name: "emoji", props: { emoji: { faceList: [], emojiList: [], allEmoji: {} }, placement: "bottom" }, emits: ["addEmoji"], setup(e, { emit: t }) {
2943
+ const o = e, l = N(0), a = N(0), i = N(new Array(2)), { emojiList: n, faceList: c } = o.emoji;
2928
2944
  function h() {
2929
2945
  i.value[0] = n[0];
2930
2946
  }
2931
- return (p, m) => (d(), u("div", Ih, [b($(Oa), { placement: e.placement, "popper-class": "emoji-popover", width: 250, trigger: "click", onBeforeEnter: h }, { reference: v(() => [r("div", Mh, [p.$slots.default ? D(p.$slots, "default", { key: 1 }, void 0, !0) : (d(), u("div", Eh, [...m[0] || (m[0] = [r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "icon" }, [r("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z" })], -1), r("span", null, "表情", -1)])]))])]), default: v(() => [r("div", Th, [(d(!0), u(F, null, E($(c), (f, g) => (d(), u("label", { key: g, class: z(l.value == g ? "active" : ""), onClick: (k) => function(x) {
2947
+ return (p, m) => (d(), u("div", Ih, [b($(Fa), { placement: e.placement, "popper-class": "emoji-popover", width: 250, trigger: "click", onBeforeEnter: h }, { reference: v(() => [r("div", Mh, [p.$slots.default ? D(p.$slots, "default", { key: 1 }, void 0, !0) : (d(), u("div", Eh, [...m[0] || (m[0] = [r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "icon" }, [r("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z" })], -1), r("span", null, "表情", -1)])]))])]), default: v(() => [r("div", Th, [(d(!0), u(F, null, E($(c), (f, g) => (d(), u("label", { key: g, class: z(l.value == g ? "active" : ""), onClick: (k) => function(x) {
2932
2948
  switch (l.value = x, x) {
2933
2949
  case 0:
2934
2950
  a.value = 0;
@@ -2936,11 +2952,11 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
2936
2952
  case 1:
2937
2953
  a.value = -50, i.value[1] = n[1];
2938
2954
  }
2939
- }(g) }, [r("img", { src: f, alt: "" }, null, 8, Dh)], 10, Lh))), 128))]), r("div", $h, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Fa), null, { default: v(() => [r("div", Oh, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ma), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, Fh))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
2940
- } }), [["__scopeId", "data-v-da53b6ed"]]), Nh = { class: "cv-chat-message" }, zh = { class: "chat-list" }, Hh = { class: "content" }, Ah = { key: 0, class: "username" }, Ph = ["innerHTML"], jh = { __name: "message", props: { data: { type: [Array], default: () => [] }, userId: { type: [Number], default: 0 } }, setup(e, { expose: t }) {
2941
- const { allEmoji: o } = ne("InjectionEmojiApi"), l = B();
2955
+ }(g) }, [r("img", { src: f, alt: "" }, null, 8, Dh)], 10, Lh))), 128))]), r("div", $h, [r("div", { class: "emjio-container", style: H({ transform: `translateX(${a.value}%)` }) }, [(d(!0), u(F, null, E(i.value, (f, g) => (d(), u("div", { key: g, class: "emoji-wrapper" }, [b($(Ma), null, { default: v(() => [r("div", Oh, [(d(!0), u(F, null, E(f, (k, x) => (d(), u("span", { key: x, class: "emoji-item", onClick: (y) => p.$emit("addEmoji", x) }, [b($(Ea), { src: k, title: String(x), class: "emoji", style: { width: "24px", height: "24px", margin: "5px" }, lazy: "" }, null, 8, ["src", "title"])], 8, Fh))), 128))])]), _: 2 }, 1024)]))), 128))], 4)])]), _: 3 }, 8, ["placement"])]));
2956
+ } }), [["__scopeId", "data-v-da53b6ed"]]), Bh = { class: "cv-chat-message" }, zh = { class: "chat-list" }, Hh = { class: "content" }, Ah = { key: 0, class: "username" }, Ph = ["innerHTML"], jh = { __name: "message", props: { data: { type: [Array], default: () => [] }, userId: { type: [Number], default: 0 } }, setup(e, { expose: t }) {
2957
+ const { allEmoji: o } = ne("InjectionEmojiApi"), l = N();
2942
2958
  t({ scroll: () => {
2943
- Be(() => {
2959
+ Ne(() => {
2944
2960
  const i = document.querySelector(".chat-item:last-child");
2945
2961
  l.value.setScrollTop(i.offsetTop);
2946
2962
  });
@@ -2949,9 +2965,9 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
2949
2965
  const h = i[c];
2950
2966
  return h ? ['<img src="', h, '" width="20" height="20" alt="', c, '" title="', c, '" style="margin: 0 1px; vertical-align: text-bottom"', "/>"].join("") : c;
2951
2967
  });
2952
- return (i, n) => (d(), u("div", Nh, [b($(Fa), { ref_key: "scrollbarRef", ref: l }, { default: v(() => [r("div", zh, [(d(!0), u(F, null, E(e.data, (c, h) => (d(), u("div", { key: h, class: z([{ self: e.userId == c.id }, "chat-item"]) }, [r("div", null, [b($(yl), null, { default: v(() => [...n[0] || (n[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 })]), r("div", Hh, [e.userId != c.id ? (d(), u("div", Ah, T(c.username), 1)) : w("", !0), r("div", { class: "card-box", innerHTML: a($(o), c.content) }, null, 8, Ph)]), n[1] || (n[1] = r("div", { class: "date" }, null, -1))], 2))), 128))])]), _: 1 }, 512)]));
2968
+ return (i, n) => (d(), u("div", Bh, [b($(Ma), { ref_key: "scrollbarRef", ref: l }, { default: v(() => [r("div", zh, [(d(!0), u(F, null, E(e.data, (c, h) => (d(), u("div", { key: h, class: z([{ self: e.userId == c.id }, "chat-item"]) }, [r("div", null, [b($(Cl), null, { default: v(() => [...n[0] || (n[0] = [r("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)])]), _: 1 })]), r("div", Hh, [e.userId != c.id ? (d(), u("div", Ah, T(c.username), 1)) : w("", !0), r("div", { class: "card-box", innerHTML: a($(o), c.content) }, null, 8, Ph)]), n[1] || (n[1] = r("div", { class: "date" }, null, -1))], 2))), 128))])]), _: 1 }, 512)]));
2953
2969
  } }, Rh = { class: "cv-chat-wrap" }, Uh = { class: "header" }, Wh = { id: "chat-footer", class: "footer" }, Io = Object.assign({ name: "cvChat" }, { __name: "chat", props: { data: { type: [Array], default: () => [] }, userId: { type: [Number], default: 0 }, emoji: { type: [Object], default: () => ({}) } }, emits: ["submit"], setup(e, { emit: t }) {
2954
- const o = e, l = B(!1), a = B(""), i = B(), { data: n } = o, c = t, h = (g) => {
2970
+ const o = e, l = N(!1), a = N(""), i = N(), { data: n } = o, c = t, h = (g) => {
2955
2971
  const { ctrlKey: k, key: x } = g;
2956
2972
  k && x == "Enter" && m();
2957
2973
  }, p = () => {
@@ -2967,27 +2983,27 @@ const Ih = { class: "u-emoji" }, Th = { class: "face-tooltip-head select-none" }
2967
2983
  };
2968
2984
  return Te("InjectionEmojiApi", o.emoji), (g, k) => {
2969
2985
  const x = C("cvIcons");
2970
- return d(), u("div", Rh, [r("div", { class: z([{ active: l.value }, "chat-container translate"]) }, [r("div", Uh, [b(x, { size: "32" }, { default: v(() => [...k[2] || (k[2] = [r("svg", { viewBox: "0 0 1318 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, [r("path", { d: "M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z", fill: "#612273", "p-id": "10993" }), r("path", { d: "M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z", fill: "#612273", opacity: ".2", "p-id": "10994" }), r("path", { d: "M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z", fill: "#EB3D72", "p-id": "10995" }), r("path", { d: "M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z", fill: "#EB3D72", opacity: ".5", "p-id": "10996" }), r("path", { d: "M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z", fill: "#FED150", "p-id": "10997" })], -1)])]), _: 1 }), k[3] || (k[3] = r("div", { style: { "margin-left": "12px" } }, [r("div", null, "聊天室"), r("div", { style: { "font-size": "12px" } }, "当前2人在线")], -1))]), b(jh, { ref_key: "messageRef", ref: i, data: $(n), "user-id": e.userId }, null, 8, ["data", "user-id"]), r("div", Wh, [b($(No), { id: "emojiInput", modelValue: a.value, "onUpdate:modelValue": k[0] || (k[0] = (y) => a.value = y), type: "textarea", autosize: { minRows: 1, maxRows: 4 }, placeholder: "请输入内容", onKeydown: Oe(h, ["enter"]) }, null, 8, ["modelValue"]), b(Bh, { style: { margin: "0 8px 0" }, emoji: e.emoji, placement: "top-end", onAddEmoji: f }, { default: v(() => [...k[4] || (k[4] = [r("svg", { width: "22", height: "22", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "7186" }, [r("path", { d: "M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z", "p-id": "7187" })], -1)])]), _: 1 }, 8, ["emoji"]), b(x, { size: "18", class: z([{ ".cv-chat-wrap submit-btn": a.value.trim() != "" }, "select-none cursor-pointer"]), style: { "padding-bottom": "5px" }, onClick: m }, { default: v(() => [...k[5] || (k[5] = [r("svg", { viewBox: "0 0 1025 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "15072" }, [r("path", { d: "M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z", "p-id": "15073" })], -1)])]), _: 1 }, 8, ["class"])])], 2), b($(Fe), { class: "chat-btn", onClick: k[1] || (k[1] = (y) => l.value = !l.value) }, { default: v(() => [...k[6] || (k[6] = [L("chat", -1)])]), _: 1 })]);
2986
+ return d(), u("div", Rh, [r("div", { class: z([{ active: l.value }, "chat-container translate"]) }, [r("div", Uh, [b(x, { size: "32" }, { default: v(() => [...k[2] || (k[2] = [r("svg", { viewBox: "0 0 1318 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, [r("path", { d: "M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z", fill: "#612273", "p-id": "10993" }), r("path", { d: "M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z", fill: "#612273", opacity: ".2", "p-id": "10994" }), r("path", { d: "M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z", fill: "#EB3D72", "p-id": "10995" }), r("path", { d: "M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z", fill: "#EB3D72", opacity: ".5", "p-id": "10996" }), r("path", { d: "M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z", fill: "#FED150", "p-id": "10997" })], -1)])]), _: 1 }), k[3] || (k[3] = r("div", { style: { "margin-left": "12px" } }, [r("div", null, "聊天室"), r("div", { style: { "font-size": "12px" } }, "当前2人在线")], -1))]), b(jh, { ref_key: "messageRef", ref: i, data: $(n), "user-id": e.userId }, null, 8, ["data", "user-id"]), r("div", Wh, [b($(Bo), { id: "emojiInput", modelValue: a.value, "onUpdate:modelValue": k[0] || (k[0] = (y) => a.value = y), type: "textarea", autosize: { minRows: 1, maxRows: 4 }, placeholder: "请输入内容", onKeydown: Oe(h, ["enter"]) }, null, 8, ["modelValue"]), b(Nh, { style: { margin: "0 8px 0" }, emoji: e.emoji, placement: "top-end", onAddEmoji: f }, { default: v(() => [...k[4] || (k[4] = [r("svg", { width: "22", height: "22", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "7186" }, [r("path", { d: "M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z", "p-id": "7187" })], -1)])]), _: 1 }, 8, ["emoji"]), b(x, { size: "18", class: z([{ ".cv-chat-wrap submit-btn": a.value.trim() != "" }, "select-none cursor-pointer"]), style: { "padding-bottom": "5px" }, onClick: m }, { default: v(() => [...k[5] || (k[5] = [r("svg", { viewBox: "0 0 1025 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "15072" }, [r("path", { d: "M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z", "p-id": "15073" })], -1)])]), _: 1 }, 8, ["class"])])], 2), b($(Fe), { class: "chat-btn", onClick: k[1] || (k[1] = (y) => l.value = !l.value) }, { default: v(() => [...k[6] || (k[6] = [L("chat", -1)])]), _: 1 })]);
2971
2987
  };
2972
2988
  } });
2973
2989
  Io.install = function(e) {
2974
2990
  e.component(Io.name, Io);
2975
2991
  };
2976
2992
  const Yh = { key: 0 }, To = Object.assign({ name: "cvNoticeBar" }, { __name: "notice-bar", props: { data: { type: [String, Array], default: () => [] }, vertical: { type: [Boolean], default: !1 }, suffixIcon: { type: [String], default: "" }, prefixIcon: { type: [String], default: "" }, size: { type: [Number], default: 14 }, height: { type: [Number], default: 40 }, delay: { type: [Number], default: 1e3 }, spped: { type: [Number], default: 100 }, color: { type: [String], default: "--color-warning" }, background: { type: [String], default: "var(--color-warning-light-9)" } }, setup(e) {
2977
- const t = e, { data: o, vertical: l, suffixIcon: a, prefixIcon: i, size: n, height: c, delay: h, spped: p, color: m, background: f } = t, g = Ao({ boxWidth: 0, textWidth: 0, oneTime: 0, twoTime: 0, order: 1 }), k = B({}), x = B({ style: { cssText: "" } }), y = G(() => t.delay > 2e3 ? t.delay : 2e3), _ = () => {
2993
+ const t = e, { data: o, vertical: l, suffixIcon: a, prefixIcon: i, size: n, height: c, delay: h, spped: p, color: m, background: f } = t, g = Ao({ boxWidth: 0, textWidth: 0, oneTime: 0, twoTime: 0, order: 1 }), k = N({}), x = N({ style: { cssText: "" } }), y = G(() => t.delay > 2e3 ? t.delay : 2e3), _ = () => {
2978
2994
  g.oneTime = g.textWidth / t.spped, g.twoTime = (g.textWidth + g.boxWidth) / t.spped;
2979
2995
  }, I = () => {
2980
2996
  g.order === 1 ? (x.value?.style && (x.value.style.cssText = `animation: oneAnimation ${g.oneTime}s linear; opactity: 1;}`), g.order = 2) : x.value?.style && (x.value.style.cssText = `animation: twoAnimation ${g.twoTime}s linear infinite; opacity: 1;`);
2981
2997
  };
2982
- return Ne(() => {
2983
- t.vertical || (Be(() => {
2998
+ return Be(() => {
2999
+ t.vertical || (Ne(() => {
2984
3000
  g.boxWidth = k.value.offsetWidth, g.textWidth = x.value.offsetWidth, document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${g.textWidth}px;}}`), document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${g.boxWidth}px;} 100% {left: -${g.textWidth}px;}}`), _(), setTimeout(() => {
2985
3001
  I();
2986
3002
  }, t.delay);
2987
3003
  }), x.value.addEventListener("animationend", () => {
2988
3004
  I();
2989
3005
  }, !1));
2990
- }), (N, P) => {
3006
+ }), (B, P) => {
2991
3007
  const j = C("el-carousel-item"), W = C("el-carousel"), ee = C("cvIcons");
2992
3008
  return d(), u("div", { class: "cv-notice-bar", style: H({ background: $(f), height: `${$(c)}px` }) }, [$(l) ? (d(), u("div", Yh, [b(W, { height: "40px", direction: "vertical", autoplay: !0, "indicator-position": "none", interval: y.value }, { default: v(() => [(d(!0), u(F, null, E($(o), (te) => (d(), V(j, { key: te }, { default: v(() => [L(T(te), 1)]), _: 2 }, 1024))), 128))]), _: 1 }, 8, ["interval"])])) : (d(), u("div", { key: 1, style: H({ color: $(m), fontSize: `${$(n)}px` }), class: "cv-notice-bar-wrap" }, [$(i) ? (d(), V(ee, { key: 0, type: $(i) }, null, 8, ["type"])) : w("", !0), r("div", { ref_key: "boxRef", ref: k, class: "text-box" }, [r("div", { ref_key: "textRef", ref: x, class: "text" }, T($(o)), 513)], 512), $(a) ? (d(), V(ee, { key: 1, type: $(a) }, null, 8, ["type"])) : w("", !0)], 4))], 4);
2993
3009
  };
@@ -2995,33 +3011,33 @@ const Yh = { key: 0 }, To = Object.assign({ name: "cvNoticeBar" }, { __name: "no
2995
3011
  To.install = function(e) {
2996
3012
  e.component(To.name, To);
2997
3013
  };
2998
- const Xh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [In] }), ti = "change", oi = "update", ai = "focus", ii = "blur", li = "ready", ni = "update:modelValue", Le = (e) => {
3014
+ const Xh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize: 2, placeholder: "", autoDestroy: !0, extensions: [In] }), oi = "change", ai = "update", ii = "focus", li = "blur", ni = "ready", si = "update:modelValue", Le = (e) => {
2999
3015
  const t = new Tn();
3000
3016
  return { compartment: t, run: (o) => {
3001
3017
  t.get(e.state) ? e.dispatch({ effects: t.reconfigure(o) }) : e.dispatch({ effects: Ln.appendConfig.of(t.of(o)) });
3002
3018
  } };
3003
- }, si = (e, t) => {
3019
+ }, ri = (e, t) => {
3004
3020
  const { compartment: o, run: l } = Le(e);
3005
3021
  return (a) => {
3006
3022
  const i = o.get(e.state);
3007
3023
  l(a ?? i !== t ? t : []);
3008
3024
  };
3009
- }, qh = xl({ name: "VueCodemirror", props: { modelValue: { type: String, default: "" }, autofocus: { type: Boolean, default: !1 }, disabled: { type: Boolean, default: !1 }, indentWithTab: { type: Boolean, default: !1 }, tabSize: Number, placeholder: String, style: Object, autoDestroy: { type: Boolean, default: !1 }, phrases: Object, root: Object, extensions: Array, selection: Object }, emits: { [ti]: (e, t) => !0, [oi]: (e) => !0, [ai]: (e) => !0, [ii]: (e) => !0, [li]: (e) => !0, [ni]: (e, t) => !0 }, setup(e, t) {
3025
+ }, qh = Sl({ name: "VueCodemirror", props: { modelValue: { type: String, default: "" }, autofocus: { type: Boolean, default: !1 }, disabled: { type: Boolean, default: !1 }, indentWithTab: { type: Boolean, default: !1 }, tabSize: Number, placeholder: String, style: Object, autoDestroy: { type: Boolean, default: !1 }, phrases: Object, root: Object, extensions: Array, selection: Object }, emits: { [oi]: (e, t) => !0, [ai]: (e) => !0, [ii]: (e) => !0, [li]: (e) => !0, [ni]: (e) => !0, [si]: (e, t) => !0 }, setup(e, t) {
3010
3026
  const o = se(), l = se(), a = se(), i = { ...Xh }, n = G(() => {
3011
3027
  const c = {};
3012
- return Object.keys(Sl(e)).forEach((h) => {
3028
+ return Object.keys(Vl(e)).forEach((h) => {
3013
3029
  h !== "modelValue" && (c[h] = e[h] ?? i[h]);
3014
3030
  }), c;
3015
3031
  });
3016
- return Ne(() => {
3032
+ return Be(() => {
3017
3033
  l.value = (({ onUpdate: h, onChange: p, onFocus: m, onBlur: f, ...g }) => Ve.create({ doc: g.doc, selection: g.selection, extensions: [...Array.isArray(g.extensions) ? g.extensions : [g.extensions], X.updateListener.of((k) => {
3018
3034
  h(k), k.docChanged && p(k.state.doc.toString(), k), k.focusChanged && (k.view.hasFocus ? m(k) : f(k));
3019
- })] }))({ doc: e.modelValue, selection: n.value.selection, extensions: i.extensions ?? [], onFocus: (h) => t.emit(ai, h), onBlur: (h) => t.emit(ii, h), onUpdate: (h) => t.emit(oi, h), onChange: (h, p) => {
3020
- h !== e.modelValue && (t.emit(ti, h, p), t.emit(ni, h, p));
3035
+ })] }))({ doc: e.modelValue, selection: n.value.selection, extensions: i.extensions ?? [], onFocus: (h) => t.emit(ii, h), onBlur: (h) => t.emit(li, h), onUpdate: (h) => t.emit(ai, h), onChange: (h, p) => {
3036
+ h !== e.modelValue && (t.emit(oi, h, p), t.emit(si, h, p));
3021
3037
  } }), a.value = new X({ state: l.value, parent: o.value, root: n.value.root }), a.value.contentDOM.addEventListener("scroll", (h) => {
3022
3038
  });
3023
3039
  const c = ((h) => {
3024
- const p = () => h.state.doc.toString(), { run: m } = Le(h), f = si(h, [X.editable.of(!1), Ve.readOnly.of(!0)]), g = si(h, $n.of([Fn])), { run: k } = Le(h), { run: x } = Le(h), { run: y } = Le(h), { run: _ } = Le(h);
3040
+ const p = () => h.state.doc.toString(), { run: m } = Le(h), f = ri(h, [X.editable.of(!1), Ve.readOnly.of(!0)]), g = ri(h, $n.of([Fn])), { run: k } = Le(h), { run: x } = Le(h), { run: y } = Le(h), { run: _ } = Le(h);
3025
3041
  return { focus: () => h.focus(), getDoc: p, setDoc: (I) => {
3026
3042
  I !== p() && h.dispatch({ changes: { from: 0, to: h.state.doc.length, insert: I } });
3027
3043
  }, reExtensions: m, toggleDisabled: f, toggleIndentWithTab: g, setTabSize: (I) => {
@@ -3036,11 +3052,11 @@ const Xh = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSi
3036
3052
  })(a.value);
3037
3053
  ae(() => e.modelValue, (h) => {
3038
3054
  h !== c.getDoc() && c.setDoc(h);
3039
- }), ae(() => e.extensions, (h) => c.reExtensions(h || []), { immediate: !0 }), ae(() => n.value.disabled, (h) => c.toggleDisabled(h), { immediate: !0 }), ae(() => n.value.indentWithTab, (h) => c.toggleIndentWithTab(h), { immediate: !0 }), ae(() => n.value.tabSize, (h) => c.setTabSize(h), { immediate: !0 }), ae(() => n.value.phrases, (h) => c.setPhrases(h || {}), { immediate: !0 }), ae(() => n.value.placeholder, (h) => c.setPlaceholder(h), { immediate: !0 }), ae(() => n.value.style, (h) => c.setStyle(h), { immediate: !0 }), n.value.autofocus && c.focus(), t.emit(li, { state: l.value, view: a.value, container: o.value, editorTools: c });
3055
+ }), ae(() => e.extensions, (h) => c.reExtensions(h || []), { immediate: !0 }), ae(() => n.value.disabled, (h) => c.toggleDisabled(h), { immediate: !0 }), ae(() => n.value.indentWithTab, (h) => c.toggleIndentWithTab(h), { immediate: !0 }), ae(() => n.value.tabSize, (h) => c.setTabSize(h), { immediate: !0 }), ae(() => n.value.phrases, (h) => c.setPhrases(h || {}), { immediate: !0 }), ae(() => n.value.placeholder, (h) => c.setPlaceholder(h), { immediate: !0 }), ae(() => n.value.style, (h) => c.setStyle(h), { immediate: !0 }), n.value.autofocus && c.focus(), t.emit(ni, { state: l.value, view: a.value, container: o.value, editorTools: c });
3040
3056
  }), Vn(() => {
3041
3057
  n.value.autoDestroy && a.value && a.value.destroy();
3042
- }), () => Ea("div", { class: "cv-editor-codemirror", ref: o });
3043
- } }), ri = "#e06c75", Lo = "#abb2bf", Da = "#7d8799", ci = "#d19a66", di = "#2c313a", hi = "#282c34", qo = "#353a42", pi = "#528bff", Kh = X.theme({ "&": { color: Lo, backgroundColor: hi }, ".cm-content": { caretColor: pi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: pi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "#3E4451" }, ".cm-panels": { backgroundColor: "#21252b", color: Lo }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: "#72a1ff59", outline: "1px solid #457dff" }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: "#6199ff2f" }, ".cm-activeLine": { backgroundColor: "#6699ff0b" }, ".cm-selectionMatch": { backgroundColor: "#aafe661a" }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" }, ".cm-gutters": { backgroundColor: hi, color: Da, border: "none" }, ".cm-activeLineGutter": { backgroundColor: di }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: "#ddd" }, ".cm-tooltip": { border: "none", backgroundColor: qo }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: qo, borderBottomColor: qo }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { backgroundColor: di, color: Lo } } }, { dark: !0 }), Gh = J.define([{ tag: s.keyword, color: "#c678dd" }, { tag: [s.name, s.deleted, s.character, s.propertyName, s.macroName], color: ri }, { tag: [s.function(s.variableName), s.labelName], color: "#61afef" }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: ci }, { tag: [s.definition(s.name), s.separator], color: Lo }, { tag: [s.typeName, s.className, s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: "#e5c07b" }, { tag: [s.operator, s.operatorKeyword, s.url, s.escape, s.regexp, s.link, s.special(s.string)], color: "#56b6c2" }, { tag: [s.meta, s.comment], color: Da }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.strikethrough, textDecoration: "line-through" }, { tag: s.link, color: Da, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ri }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ci }, { tag: [s.processingInstruction, s.string, s.inserted], color: "#98c379" }, { tag: s.invalid, color: "#ffffff" }]), Zh = [Kh, Q(Gh)], Qh = !1, Ko = "#FAFAFA", he = "#90A4AE", Ae = "#80CBC440", ui = "#272727", Go = "#FAFAFA", mi = "#00000010", Jh = "#c2c2c222", ep = "#CFD8DC", tp = "#7E939E", op = "#FAFAFA", gi = "#7C4DFF", Zo = "#90A4AE", fi = "#6182B8", ap = "#91B859", ip = "#F76D47", vi = "#8796B0", lp = "#FFB62C", np = "#F76D47", sp = "#90A4AE", rp = "#91B859", cp = "#E53935", dp = "#39ADB5", hp = X.theme({ "&": { color: he, backgroundColor: Ko }, ".cm-content": { caretColor: ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ae }, ".cm-panels": { backgroundColor: Go, color: he }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Go, outline: `1px solid ${mi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ae }, ".cm-activeLine": { backgroundColor: Jh }, ".cm-selectionMatch": { backgroundColor: Ae }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: op, outline: "none" }, ".cm-gutters": { backgroundColor: Ko, color: he, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Ko }, ".cm-lineNumbers .cm-gutterElement": { color: ep }, ".cm-lineNumbers .cm-activeLineGutter": { color: tp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: he }, ".cm-tooltip": { border: `1px solid ${mi}`, backgroundColor: Go, color: he }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: he, borderBottomColor: he }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ae, color: he } } }, { dark: Qh }), pp = J.define([{ tag: s.keyword, color: gi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Zo }, { tag: [s.propertyName], color: fi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: ap }, { tag: [s.function(s.variableName), s.labelName], color: fi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: ip }, { tag: [s.definition(s.name), s.separator], color: Zo }, { tag: [s.className], color: lp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: np }, { tag: [s.typeName], color: vi, fontStyle: vi }, { tag: [s.operator, s.operatorKeyword], color: gi }, { tag: [s.url, s.escape, s.regexp, s.link], color: dp }, { tag: [s.meta, s.comment], color: sp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: rp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Zo }, { tag: s.invalid, color: cp }, { tag: s.strikethrough, textDecoration: "line-through" }]), up = [hp, Q(pp)], mp = !0, Qo = "#263238", pe = "#EEFFFF", Pe = "#80CBC420", bi = "#FFCC00", Jo = "#263238", yi = "#FFFFFF10", gp = "#4c616c22", fp = "#37474F", vp = "#607a86", bp = "#263238", Ci = "#C792EA", ea = "#EEFFFF", wi = "#82AAFF", yp = "#C3E88D", Cp = "#F78C6C", ki = "#B2CCD6", wp = "#FFCB6B", kp = "#F78C6C", xp = "#546E7A", Sp = "#C3E88D", Vp = "#FF5370", _p = "#89DDFF", Ip = X.theme({ "&": { color: pe, backgroundColor: Qo }, ".cm-content": { caretColor: bi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: bi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Pe }, ".cm-panels": { backgroundColor: Jo, color: pe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Jo, outline: `1px solid ${yi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Pe }, ".cm-activeLine": { backgroundColor: gp }, ".cm-selectionMatch": { backgroundColor: Pe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: bp, outline: "none" }, ".cm-gutters": { backgroundColor: Qo, color: pe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Qo }, ".cm-lineNumbers .cm-gutterElement": { color: fp }, ".cm-lineNumbers .cm-activeLineGutter": { color: vp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: pe }, ".cm-tooltip": { border: `1px solid ${yi}`, backgroundColor: Jo, color: pe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: pe, borderBottomColor: pe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Pe, color: pe } } }, { dark: mp }), Tp = J.define([{ tag: s.keyword, color: Ci }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ea }, { tag: [s.propertyName], color: wi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: yp }, { tag: [s.function(s.variableName), s.labelName], color: wi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Cp }, { tag: [s.definition(s.name), s.separator], color: ea }, { tag: [s.className], color: wp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: kp }, { tag: [s.typeName], color: ki, fontStyle: ki }, { tag: [s.operator, s.operatorKeyword], color: Ci }, { tag: [s.url, s.escape, s.regexp, s.link], color: _p }, { tag: [s.meta, s.comment], color: xp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Sp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ea }, { tag: s.invalid, color: Vp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Lp = [Ip, Q(Tp)], Dp = !1, ta = "#FDF6E3", ue = "#586E75", je = "#EEE8D5", xi = "#657B83", oa = "#FDF6E3", Si = "#D3AF86", $p = "#d5bd5c22", Op = "#586E75", Fp = "#567983", Mp = "#EEE8D5", Vi = "#859900", aa = "#268BD2", _i = "#268BD2", Ep = "#2AA198", Bp = "#CB4B16", Ii = "#CB4B16", Np = "#CB4B16", zp = "#D33682", Hp = "#93A1A1", Ap = "#268BD2", Pp = "#DC322F", jp = "#DC322F", Rp = X.theme({ "&": { color: ue, backgroundColor: ta }, ".cm-content": { caretColor: xi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: xi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: je }, ".cm-panels": { backgroundColor: oa, color: ue }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: oa, outline: `1px solid ${Si}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: je }, ".cm-activeLine": { backgroundColor: $p }, ".cm-selectionMatch": { backgroundColor: je }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Mp, outline: "none" }, ".cm-gutters": { backgroundColor: ta, color: ue, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ta }, ".cm-lineNumbers .cm-gutterElement": { color: Op }, ".cm-lineNumbers .cm-activeLineGutter": { color: Fp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ue }, ".cm-tooltip": { border: `1px solid ${Si}`, backgroundColor: oa, color: ue }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ue, borderBottomColor: ue }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: je, color: ue } } }, { dark: Dp }), Up = J.define([{ tag: s.keyword, color: Vi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: aa }, { tag: [s.propertyName], color: _i }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ep }, { tag: [s.function(s.variableName), s.labelName], color: _i }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Bp }, { tag: [s.definition(s.name), s.separator], color: aa }, { tag: [s.className], color: Np }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: zp }, { tag: [s.typeName], color: Ii, fontStyle: Ii }, { tag: [s.operator, s.operatorKeyword], color: Vi }, { tag: [s.url, s.escape, s.regexp, s.link], color: jp }, { tag: [s.meta, s.comment], color: Hp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ap }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: aa }, { tag: s.invalid, color: Pp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Wp = [Rp, Q(Up)], Yp = !0, ia = "#002B36", me = "#93A1A1", Re = "#274642", Ti = "#D30102", la = "#002B36", Li = "#2AA19899", Xp = "#005b7022", qp = "#93A1A1", Kp = "#949494", Gp = "#073642", Di = "#859900", na = "#268BD2", $i = "#268BD2", Zp = "#2AA198", Qp = "#CB4B16", Oi = "#CB4B16", Jp = "#CB4B16", eu = "#D33682", tu = "#586E75", ou = "#268BD2", au = "#DC322F", iu = "#DC322F", lu = [X.theme({ "&": { color: me, backgroundColor: ia }, ".cm-content": { caretColor: Ti }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ti }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Re }, ".cm-panels": { backgroundColor: la, color: me }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: la, outline: `1px solid ${Li}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Re }, ".cm-activeLine": { backgroundColor: Xp }, ".cm-selectionMatch": { backgroundColor: Re }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Gp, outline: "none" }, ".cm-gutters": { backgroundColor: ia, color: me, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ia }, ".cm-lineNumbers .cm-gutterElement": { color: qp }, ".cm-lineNumbers .cm-activeLineGutter": { color: Kp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: me }, ".cm-tooltip": { border: `1px solid ${Li}`, backgroundColor: la, color: me }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: me, borderBottomColor: me }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Re, color: me } } }, { dark: Yp }), Q(J.define([{ tag: s.keyword, color: Di }, { tag: [s.name, s.deleted, s.character, s.macroName], color: na }, { tag: [s.propertyName], color: $i }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Zp }, { tag: [s.function(s.variableName), s.labelName], color: $i }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Qp }, { tag: [s.definition(s.name), s.separator], color: na }, { tag: [s.className], color: Jp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: eu }, { tag: [s.typeName], color: Oi, fontStyle: Oi }, { tag: [s.operator, s.operatorKeyword], color: Di }, { tag: [s.url, s.escape, s.regexp, s.link], color: iu }, { tag: [s.meta, s.comment], color: tu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ou }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: na }, { tag: s.invalid, color: au }, { tag: s.strikethrough, textDecoration: "line-through" }]))], nu = !0, sa = "#282A36", ge = "#F8F8F2", Ue = "#44475A", Fi = "#F8F8F2", ra = "#282A36", Mi = "#191A21", su = "#53576c22", ru = "#6272A4", cu = "#F8F8F2", du = "#44475A", Ei = "#FF79C6", ca = "#F8F8F2", Bi = "#50FA7B", hu = "#F1FA8C", pu = "#BD93F9", Ni = "#8BE9FD", uu = "#8BE9FD", mu = "#BD93F9", gu = "#6272A4", fu = "#BD93F9", vu = "#FF5555", bu = "#F1FA8C", yu = [X.theme({ "&": { color: ge, backgroundColor: sa }, ".cm-content": { caretColor: Fi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Fi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ue }, ".cm-panels": { backgroundColor: ra, color: ge }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ra, outline: `1px solid ${Mi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ue }, ".cm-activeLine": { backgroundColor: su }, ".cm-selectionMatch": { backgroundColor: Ue }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: du, outline: "none" }, ".cm-gutters": { backgroundColor: sa, color: ge, border: "none" }, ".cm-activeLineGutter": { backgroundColor: sa }, ".cm-lineNumbers .cm-gutterElement": { color: ru }, ".cm-lineNumbers .cm-activeLineGutter": { color: cu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ge }, ".cm-tooltip": { border: `1px solid ${Mi}`, backgroundColor: ra, color: ge }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ge, borderBottomColor: ge }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ue, color: ge } } }, { dark: nu }), Q(J.define([{ tag: s.keyword, color: Ei }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ca }, { tag: [s.propertyName], color: Bi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: hu }, { tag: [s.function(s.variableName), s.labelName], color: Bi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: pu }, { tag: [s.definition(s.name), s.separator], color: ca }, { tag: [s.className], color: uu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: mu }, { tag: [s.typeName], color: Ni, fontStyle: Ni }, { tag: [s.operator, s.operatorKeyword], color: Ei }, { tag: [s.url, s.escape, s.regexp, s.link], color: bu }, { tag: [s.meta, s.comment], color: gu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: fu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ca }, { tag: s.invalid, color: vu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Cu = !1, da = "#fff", fe = "#444d56", We = "#0366d625", zi = "#044289", ha = "#fff", Hi = "#e1e4e8", wu = "#c6c6c622", ku = "#1b1f234d", xu = "#24292e", Su = "#34d05840", Ai = "#d73a49", pa = "#e36209", Pi = "#005cc5", Vu = "#032f62", _u = "#005cc5", ji = "#005cc5", Iu = "#6f42c1", Tu = "#005cc5", Lu = "#6a737d", Du = "#005cc5", $u = "#cb2431", Ou = "#032f62", Fu = [X.theme({ "&": { color: fe, backgroundColor: da }, ".cm-content": { caretColor: zi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: zi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: We }, ".cm-panels": { backgroundColor: ha, color: fe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ha, outline: `1px solid ${Hi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: We }, ".cm-activeLine": { backgroundColor: wu }, ".cm-selectionMatch": { backgroundColor: We }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Su, outline: "none" }, ".cm-gutters": { backgroundColor: da, color: fe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: da }, ".cm-lineNumbers .cm-gutterElement": { color: ku }, ".cm-lineNumbers .cm-activeLineGutter": { color: xu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: fe }, ".cm-tooltip": { border: `1px solid ${Hi}`, backgroundColor: ha, color: fe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: fe, borderBottomColor: fe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: We, color: fe } } }, { dark: Cu }), Q(J.define([{ tag: s.keyword, color: Ai }, { tag: [s.name, s.deleted, s.character, s.macroName], color: pa }, { tag: [s.propertyName], color: Pi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Vu }, { tag: [s.function(s.variableName), s.labelName], color: Pi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: _u }, { tag: [s.definition(s.name), s.separator], color: pa }, { tag: [s.className], color: Iu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Tu }, { tag: [s.typeName], color: ji, fontStyle: ji }, { tag: [s.operator, s.operatorKeyword], color: Ai }, { tag: [s.url, s.escape, s.regexp, s.link], color: Ou }, { tag: [s.meta, s.comment], color: Lu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Du }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: pa }, { tag: s.invalid, color: $u }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Mu = !0, ua = "#24292e", ve = "#d1d5da", Ye = "#3392FF44", Ri = "#c8e1ff", ma = "#24292e", Ui = "#1b1f23", Eu = "#4d566022", Bu = "#444d56", Nu = "#e1e4e8", zu = "#17E5E650", Wi = "#f97583", ga = "#ffab70", Yi = "#79b8ff", Hu = "#9ecbff", Au = "#79b8ff", Xi = "#79b8ff", Pu = "#b392f0", ju = "#79b8ff", Ru = "#6a737d", Uu = "#79b8ff", Wu = "#f97583", Yu = "#9ecbff", Xu = [X.theme({ "&": { color: ve, backgroundColor: ua }, ".cm-content": { caretColor: Ri }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ri }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ye }, ".cm-panels": { backgroundColor: ma, color: ve }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ma, outline: `1px solid ${Ui}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ye }, ".cm-activeLine": { backgroundColor: Eu }, ".cm-selectionMatch": { backgroundColor: Ye }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: zu, outline: "none" }, ".cm-gutters": { backgroundColor: ua, color: ve, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ua }, ".cm-lineNumbers .cm-gutterElement": { color: Bu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Nu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ve }, ".cm-tooltip": { border: `1px solid ${Ui}`, backgroundColor: ma, color: ve }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ve, borderBottomColor: ve }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ye, color: ve } } }, { dark: Mu }), Q(J.define([{ tag: s.keyword, color: Wi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ga }, { tag: [s.propertyName], color: Yi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Hu }, { tag: [s.function(s.variableName), s.labelName], color: Yi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Au }, { tag: [s.definition(s.name), s.separator], color: ga }, { tag: [s.className], color: Pu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: ju }, { tag: [s.typeName], color: Xi, fontStyle: Xi }, { tag: [s.operator, s.operatorKeyword], color: Wi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Yu }, { tag: [s.meta, s.comment], color: Ru }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Uu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ga }, { tag: s.invalid, color: Wu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], qu = !0, fa = "#21202e", be = "#edecee", Xe = "#3d375e7f", qi = "#a277ff", va = "#21202e", Ki = "#3b334b", Ku = "#4d4b6622", Gu = "#a394f033", Zu = "#cdccce", Qu = "#a394f033", Gi = "#a277ff", ba = "#edecee", Zi = "#ffca85", Ju = "#61ffca", em = "#61ffca", Qi = "#82e2ff", tm = "#82e2ff", om = "#61ffca", am = "#6d6d6d", im = "#a277ff", lm = "#ff6767", nm = "#61ffca", sm = [X.theme({ "&": { color: be, backgroundColor: fa }, ".cm-content": { caretColor: qi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: qi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Xe }, ".cm-panels": { backgroundColor: va, color: be }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: va, outline: `1px solid ${Ki}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Xe }, ".cm-activeLine": { backgroundColor: Ku }, ".cm-selectionMatch": { backgroundColor: Xe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Qu, outline: "none" }, ".cm-gutters": { backgroundColor: fa, color: be, border: "none" }, ".cm-activeLineGutter": { backgroundColor: fa }, ".cm-lineNumbers .cm-gutterElement": { color: Gu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Zu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: be }, ".cm-tooltip": { border: `1px solid ${Ki}`, backgroundColor: va, color: be }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: be, borderBottomColor: be }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Xe, color: be } } }, { dark: qu }), Q(J.define([{ tag: s.keyword, color: Gi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ba }, { tag: [s.propertyName], color: Zi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ju }, { tag: [s.function(s.variableName), s.labelName], color: Zi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: em }, { tag: [s.definition(s.name), s.separator], color: ba }, { tag: [s.className], color: tm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: om }, { tag: [s.typeName], color: Qi, fontStyle: Qi }, { tag: [s.operator, s.operatorKeyword], color: Gi }, { tag: [s.url, s.escape, s.regexp, s.link], color: nm }, { tag: [s.meta, s.comment], color: am }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: im }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ba }, { tag: s.invalid, color: lm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], rm = !0, ya = "#1a1b26", ye = "#787c99", qe = "#515c7e40", Ji = "#c0caf5", Ca = "#1a1b26", el = "#787c99", cm = "#43455c22", dm = "#363b54", hm = "#737aa2", pm = "#16161e", tl = "#bb9af7", wa = "#c0caf5", ol = "#7aa2f7", um = "#9ece6a", mm = "#bb9af7", al = "#0db9d7", gm = "#c0caf5", fm = "#ff9e64", vm = "#444b6a", bm = "#89ddff", ym = "#ff5370", Cm = "#b4f9f8", wm = [X.theme({ "&": { color: ye, backgroundColor: ya }, ".cm-content": { caretColor: Ji }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ji }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: qe }, ".cm-panels": { backgroundColor: Ca, color: ye }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Ca, outline: `1px solid ${el}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: qe }, ".cm-activeLine": { backgroundColor: cm }, ".cm-selectionMatch": { backgroundColor: qe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: pm, outline: "none" }, ".cm-gutters": { backgroundColor: ya, color: ye, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ya }, ".cm-lineNumbers .cm-gutterElement": { color: dm }, ".cm-lineNumbers .cm-activeLineGutter": { color: hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ye }, ".cm-tooltip": { border: `1px solid ${el}`, backgroundColor: Ca, color: ye }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ye, borderBottomColor: ye }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: qe, color: ye } } }, { dark: rm }), Q(J.define([{ tag: s.keyword, color: tl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: wa }, { tag: [s.propertyName], color: ol }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: um }, { tag: [s.function(s.variableName), s.labelName], color: ol }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: mm }, { tag: [s.definition(s.name), s.separator], color: wa }, { tag: [s.className], color: gm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: fm }, { tag: [s.typeName], color: al, fontStyle: al }, { tag: [s.operator, s.operatorKeyword], color: tl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Cm }, { tag: [s.meta, s.comment], color: vm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: bm }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: wa }, { tag: s.invalid, color: ym }, { tag: s.strikethrough, textDecoration: "line-through" }]))], km = !0, ka = "#24283b", Ce = "#7982a9", Ke = "#6f7bb630", il = "#c0caf5", xa = "#24283b", ll = "#7982a9", xm = "#4d547722", Sm = "#3b4261", Vm = "#737aa2", _m = "#1f2335", nl = "#bb9af7", Sa = "#c0caf5", sl = "#7aa2f7", Im = "#9ece6a", Tm = "#bb9af7", rl = "#2ac3de", Lm = "#c0caf5", Dm = "#ff9e64", $m = "#565f89", Om = "#89ddff", Fm = "#ff5370", Mm = "#b4f9f8", Em = [X.theme({ "&": { color: Ce, backgroundColor: ka }, ".cm-content": { caretColor: il }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: il }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ke }, ".cm-panels": { backgroundColor: xa, color: Ce }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: xa, outline: `1px solid ${ll}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ke }, ".cm-activeLine": { backgroundColor: xm }, ".cm-selectionMatch": { backgroundColor: Ke }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: _m, outline: "none" }, ".cm-gutters": { backgroundColor: ka, color: Ce, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ka }, ".cm-lineNumbers .cm-gutterElement": { color: Sm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Vm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: Ce }, ".cm-tooltip": { border: `1px solid ${ll}`, backgroundColor: xa, color: Ce }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: Ce, borderBottomColor: Ce }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ke, color: Ce } } }, { dark: km }), Q(J.define([{ tag: s.keyword, color: nl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Sa }, { tag: [s.propertyName], color: sl }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Im }, { tag: [s.function(s.variableName), s.labelName], color: sl }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Tm }, { tag: [s.definition(s.name), s.separator], color: Sa }, { tag: [s.className], color: Lm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Dm }, { tag: [s.typeName], color: rl, fontStyle: rl }, { tag: [s.operator, s.operatorKeyword], color: nl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Mm }, { tag: [s.meta, s.comment], color: $m }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Om }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Sa }, { tag: s.invalid, color: Fm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Bm = !1, Va = "#e1e2e7", we = "#6a6f8e", Ge = "#8591b840", cl = "#3760bf", _a = "#e1e2e7", dl = "#6a6f8e", Nm = "#a7aaba22", zm = "#b3b6cd", Hm = "#68709a", Am = "#e9e9ec", hl = "#9854f1", Ia = "#3760bf", pl = "#2e7de9", Pm = "#587539", jm = "#9854f1", ul = "#07879d", Rm = "#3760bf", Um = "#b15c00", Wm = "#9da3c2", Ym = "#006a83", Xm = "#ff3e64", qm = "#2e5857", Km = [X.theme({ "&": { color: we, backgroundColor: Va }, ".cm-content": { caretColor: cl }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: cl }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ge }, ".cm-panels": { backgroundColor: _a, color: we }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: _a, outline: `1px solid ${dl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ge }, ".cm-activeLine": { backgroundColor: Nm }, ".cm-selectionMatch": { backgroundColor: Ge }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Am, outline: "none" }, ".cm-gutters": { backgroundColor: Va, color: we, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Va }, ".cm-lineNumbers .cm-gutterElement": { color: zm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: we }, ".cm-tooltip": { border: `1px solid ${dl}`, backgroundColor: _a, color: we }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: we, borderBottomColor: we }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ge, color: we } } }, { dark: Bm }), Q(J.define([{ tag: s.keyword, color: hl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Ia }, { tag: [s.propertyName], color: pl }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Pm }, { tag: [s.function(s.variableName), s.labelName], color: pl }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: jm }, { tag: [s.definition(s.name), s.separator], color: Ia }, { tag: [s.className], color: Rm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Um }, { tag: [s.typeName], color: ul, fontStyle: ul }, { tag: [s.operator, s.operatorKeyword], color: hl }, { tag: [s.url, s.escape, s.regexp, s.link], color: qm }, { tag: [s.meta, s.comment], color: Wm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ym }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Ia }, { tag: s.invalid, color: Xm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Gm = { disabled: !1, indentWithTab: !0, tabSize: 4, autofocus: !1, placeholder: "input...", backgroundColor: "white", language: "markdown", theme: "oneDark", phrases: "en-us" }, jl = { emits: ["update:config"], components: { CodemirrorEditor: qh }, data: () => ({ codemrrConfig: { ...Gm }, codemrrThemes: { oneDark: Zh, materialLight: up, materialDark: Lp, solarizedLight: Wp, solarizedDark: lu, dracula: yu, githubLight: Fu, githubDark: Xu, aura: sm, tokyoNight: wm, tokyoNightStorm: Em, tokyoNightDay: Km }, codemrrLanguages: { javascript: Ya(), js: Ya(), html: En(), markdown: Nn(), json: Bn(), vue: zn(), java: An(), php: Hn(), python: Pn(), go: Rn(), mysql: Xa(), sql: Xa(), xml: jn(), css: Un() }, codemrrPhrases: { "Control character": "Steuerzeichen", "Selection deleted": "Auswahl gelöscht", "Folded lines": "Eingeklappte Zeilen", "Unfolded lines": "Ausgeklappte Zeilen", to: "bis", "folded code": "eingeklappter Code", unfold: "ausklappen", "Fold line": "Zeile einklappen", "Unfold line": "Zeile ausklappen", "Go to line": "Springe zu Zeile", go: "OK", Find: "Suchen", Replace: "Ersetzen", next: "nächste", previous: "vorherige", all: "alle", "match case": "groß/klein beachten", "by word": "ganze Wörter", replace: "ersetzen", "replace all": "alle ersetzen", close: "schließen", "current match": "aktueller Treffer", "replaced $ matches": "$ Treffer ersetzt", "replaced match on line $": "Treffer on Zeile $ ersetzt", "on line": "auf Zeile", Completions: "Vervollständigungen", Diagnostics: "Diagnosen", "No diagnostics": "Keine Diagnosen" }, editorViewInst: null, editorStateInst: null }), computed: { optionTheme() {
3058
+ }), () => Na("div", { class: "cv-editor-codemirror", ref: o });
3059
+ } }), ci = "#e06c75", Lo = "#abb2bf", $a = "#7d8799", di = "#d19a66", hi = "#2c313a", pi = "#282c34", qo = "#353a42", ui = "#528bff", Kh = X.theme({ "&": { color: Lo, backgroundColor: pi }, ".cm-content": { caretColor: ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: "#3E4451" }, ".cm-panels": { backgroundColor: "#21252b", color: Lo }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: "#72a1ff59", outline: "1px solid #457dff" }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: "#6199ff2f" }, ".cm-activeLine": { backgroundColor: "#6699ff0b" }, ".cm-selectionMatch": { backgroundColor: "#aafe661a" }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" }, ".cm-gutters": { backgroundColor: pi, color: $a, border: "none" }, ".cm-activeLineGutter": { backgroundColor: hi }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: "#ddd" }, ".cm-tooltip": { border: "none", backgroundColor: qo }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: qo, borderBottomColor: qo }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { backgroundColor: hi, color: Lo } } }, { dark: !0 }), Gh = J.define([{ tag: s.keyword, color: "#c678dd" }, { tag: [s.name, s.deleted, s.character, s.propertyName, s.macroName], color: ci }, { tag: [s.function(s.variableName), s.labelName], color: "#61afef" }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: di }, { tag: [s.definition(s.name), s.separator], color: Lo }, { tag: [s.typeName, s.className, s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: "#e5c07b" }, { tag: [s.operator, s.operatorKeyword, s.url, s.escape, s.regexp, s.link, s.special(s.string)], color: "#56b6c2" }, { tag: [s.meta, s.comment], color: $a }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.strikethrough, textDecoration: "line-through" }, { tag: s.link, color: $a, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ci }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: di }, { tag: [s.processingInstruction, s.string, s.inserted], color: "#98c379" }, { tag: s.invalid, color: "#ffffff" }]), Zh = [Kh, Q(Gh)], Qh = !1, Ko = "#FAFAFA", he = "#90A4AE", Ae = "#80CBC440", mi = "#272727", Go = "#FAFAFA", gi = "#00000010", Jh = "#c2c2c222", ep = "#CFD8DC", tp = "#7E939E", op = "#FAFAFA", fi = "#7C4DFF", Zo = "#90A4AE", vi = "#6182B8", ap = "#91B859", ip = "#F76D47", bi = "#8796B0", lp = "#FFB62C", np = "#F76D47", sp = "#90A4AE", rp = "#91B859", cp = "#E53935", dp = "#39ADB5", hp = X.theme({ "&": { color: he, backgroundColor: Ko }, ".cm-content": { caretColor: mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ae }, ".cm-panels": { backgroundColor: Go, color: he }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Go, outline: `1px solid ${gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ae }, ".cm-activeLine": { backgroundColor: Jh }, ".cm-selectionMatch": { backgroundColor: Ae }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: op, outline: "none" }, ".cm-gutters": { backgroundColor: Ko, color: he, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Ko }, ".cm-lineNumbers .cm-gutterElement": { color: ep }, ".cm-lineNumbers .cm-activeLineGutter": { color: tp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: he }, ".cm-tooltip": { border: `1px solid ${gi}`, backgroundColor: Go, color: he }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: he, borderBottomColor: he }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ae, color: he } } }, { dark: Qh }), pp = J.define([{ tag: s.keyword, color: fi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Zo }, { tag: [s.propertyName], color: vi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: ap }, { tag: [s.function(s.variableName), s.labelName], color: vi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: ip }, { tag: [s.definition(s.name), s.separator], color: Zo }, { tag: [s.className], color: lp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: np }, { tag: [s.typeName], color: bi, fontStyle: bi }, { tag: [s.operator, s.operatorKeyword], color: fi }, { tag: [s.url, s.escape, s.regexp, s.link], color: dp }, { tag: [s.meta, s.comment], color: sp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: rp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Zo }, { tag: s.invalid, color: cp }, { tag: s.strikethrough, textDecoration: "line-through" }]), up = [hp, Q(pp)], mp = !0, Qo = "#263238", pe = "#EEFFFF", Pe = "#80CBC420", yi = "#FFCC00", Jo = "#263238", Ci = "#FFFFFF10", gp = "#4c616c22", fp = "#37474F", vp = "#607a86", bp = "#263238", wi = "#C792EA", ea = "#EEFFFF", ki = "#82AAFF", yp = "#C3E88D", Cp = "#F78C6C", xi = "#B2CCD6", wp = "#FFCB6B", kp = "#F78C6C", xp = "#546E7A", Sp = "#C3E88D", Vp = "#FF5370", _p = "#89DDFF", Ip = X.theme({ "&": { color: pe, backgroundColor: Qo }, ".cm-content": { caretColor: yi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: yi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Pe }, ".cm-panels": { backgroundColor: Jo, color: pe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Jo, outline: `1px solid ${Ci}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Pe }, ".cm-activeLine": { backgroundColor: gp }, ".cm-selectionMatch": { backgroundColor: Pe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: bp, outline: "none" }, ".cm-gutters": { backgroundColor: Qo, color: pe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Qo }, ".cm-lineNumbers .cm-gutterElement": { color: fp }, ".cm-lineNumbers .cm-activeLineGutter": { color: vp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: pe }, ".cm-tooltip": { border: `1px solid ${Ci}`, backgroundColor: Jo, color: pe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: pe, borderBottomColor: pe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Pe, color: pe } } }, { dark: mp }), Tp = J.define([{ tag: s.keyword, color: wi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ea }, { tag: [s.propertyName], color: ki }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: yp }, { tag: [s.function(s.variableName), s.labelName], color: ki }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Cp }, { tag: [s.definition(s.name), s.separator], color: ea }, { tag: [s.className], color: wp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: kp }, { tag: [s.typeName], color: xi, fontStyle: xi }, { tag: [s.operator, s.operatorKeyword], color: wi }, { tag: [s.url, s.escape, s.regexp, s.link], color: _p }, { tag: [s.meta, s.comment], color: xp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Sp }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ea }, { tag: s.invalid, color: Vp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Lp = [Ip, Q(Tp)], Dp = !1, ta = "#FDF6E3", ue = "#586E75", je = "#EEE8D5", Si = "#657B83", oa = "#FDF6E3", Vi = "#D3AF86", $p = "#d5bd5c22", Op = "#586E75", Fp = "#567983", Mp = "#EEE8D5", _i = "#859900", aa = "#268BD2", Ii = "#268BD2", Ep = "#2AA198", Np = "#CB4B16", Ti = "#CB4B16", Bp = "#CB4B16", zp = "#D33682", Hp = "#93A1A1", Ap = "#268BD2", Pp = "#DC322F", jp = "#DC322F", Rp = X.theme({ "&": { color: ue, backgroundColor: ta }, ".cm-content": { caretColor: Si }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Si }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: je }, ".cm-panels": { backgroundColor: oa, color: ue }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: oa, outline: `1px solid ${Vi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: je }, ".cm-activeLine": { backgroundColor: $p }, ".cm-selectionMatch": { backgroundColor: je }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Mp, outline: "none" }, ".cm-gutters": { backgroundColor: ta, color: ue, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ta }, ".cm-lineNumbers .cm-gutterElement": { color: Op }, ".cm-lineNumbers .cm-activeLineGutter": { color: Fp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ue }, ".cm-tooltip": { border: `1px solid ${Vi}`, backgroundColor: oa, color: ue }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ue, borderBottomColor: ue }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: je, color: ue } } }, { dark: Dp }), Up = J.define([{ tag: s.keyword, color: _i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: aa }, { tag: [s.propertyName], color: Ii }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ep }, { tag: [s.function(s.variableName), s.labelName], color: Ii }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Np }, { tag: [s.definition(s.name), s.separator], color: aa }, { tag: [s.className], color: Bp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: zp }, { tag: [s.typeName], color: Ti, fontStyle: Ti }, { tag: [s.operator, s.operatorKeyword], color: _i }, { tag: [s.url, s.escape, s.regexp, s.link], color: jp }, { tag: [s.meta, s.comment], color: Hp }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ap }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: aa }, { tag: s.invalid, color: Pp }, { tag: s.strikethrough, textDecoration: "line-through" }]), Wp = [Rp, Q(Up)], Yp = !0, ia = "#002B36", me = "#93A1A1", Re = "#274642", Li = "#D30102", la = "#002B36", Di = "#2AA19899", Xp = "#005b7022", qp = "#93A1A1", Kp = "#949494", Gp = "#073642", $i = "#859900", na = "#268BD2", Oi = "#268BD2", Zp = "#2AA198", Qp = "#CB4B16", Fi = "#CB4B16", Jp = "#CB4B16", eu = "#D33682", tu = "#586E75", ou = "#268BD2", au = "#DC322F", iu = "#DC322F", lu = [X.theme({ "&": { color: me, backgroundColor: ia }, ".cm-content": { caretColor: Li }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Li }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Re }, ".cm-panels": { backgroundColor: la, color: me }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: la, outline: `1px solid ${Di}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Re }, ".cm-activeLine": { backgroundColor: Xp }, ".cm-selectionMatch": { backgroundColor: Re }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Gp, outline: "none" }, ".cm-gutters": { backgroundColor: ia, color: me, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ia }, ".cm-lineNumbers .cm-gutterElement": { color: qp }, ".cm-lineNumbers .cm-activeLineGutter": { color: Kp }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: me }, ".cm-tooltip": { border: `1px solid ${Di}`, backgroundColor: la, color: me }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: me, borderBottomColor: me }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Re, color: me } } }, { dark: Yp }), Q(J.define([{ tag: s.keyword, color: $i }, { tag: [s.name, s.deleted, s.character, s.macroName], color: na }, { tag: [s.propertyName], color: Oi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Zp }, { tag: [s.function(s.variableName), s.labelName], color: Oi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Qp }, { tag: [s.definition(s.name), s.separator], color: na }, { tag: [s.className], color: Jp }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: eu }, { tag: [s.typeName], color: Fi, fontStyle: Fi }, { tag: [s.operator, s.operatorKeyword], color: $i }, { tag: [s.url, s.escape, s.regexp, s.link], color: iu }, { tag: [s.meta, s.comment], color: tu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: ou }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: na }, { tag: s.invalid, color: au }, { tag: s.strikethrough, textDecoration: "line-through" }]))], nu = !0, sa = "#282A36", ge = "#F8F8F2", Ue = "#44475A", Mi = "#F8F8F2", ra = "#282A36", Ei = "#191A21", su = "#53576c22", ru = "#6272A4", cu = "#F8F8F2", du = "#44475A", Ni = "#FF79C6", ca = "#F8F8F2", Bi = "#50FA7B", hu = "#F1FA8C", pu = "#BD93F9", zi = "#8BE9FD", uu = "#8BE9FD", mu = "#BD93F9", gu = "#6272A4", fu = "#BD93F9", vu = "#FF5555", bu = "#F1FA8C", yu = [X.theme({ "&": { color: ge, backgroundColor: sa }, ".cm-content": { caretColor: Mi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Mi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ue }, ".cm-panels": { backgroundColor: ra, color: ge }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ra, outline: `1px solid ${Ei}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ue }, ".cm-activeLine": { backgroundColor: su }, ".cm-selectionMatch": { backgroundColor: Ue }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: du, outline: "none" }, ".cm-gutters": { backgroundColor: sa, color: ge, border: "none" }, ".cm-activeLineGutter": { backgroundColor: sa }, ".cm-lineNumbers .cm-gutterElement": { color: ru }, ".cm-lineNumbers .cm-activeLineGutter": { color: cu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ge }, ".cm-tooltip": { border: `1px solid ${Ei}`, backgroundColor: ra, color: ge }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ge, borderBottomColor: ge }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ue, color: ge } } }, { dark: nu }), Q(J.define([{ tag: s.keyword, color: Ni }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ca }, { tag: [s.propertyName], color: Bi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: hu }, { tag: [s.function(s.variableName), s.labelName], color: Bi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: pu }, { tag: [s.definition(s.name), s.separator], color: ca }, { tag: [s.className], color: uu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: mu }, { tag: [s.typeName], color: zi, fontStyle: zi }, { tag: [s.operator, s.operatorKeyword], color: Ni }, { tag: [s.url, s.escape, s.regexp, s.link], color: bu }, { tag: [s.meta, s.comment], color: gu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: fu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ca }, { tag: s.invalid, color: vu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Cu = !1, da = "#fff", fe = "#444d56", We = "#0366d625", Hi = "#044289", ha = "#fff", Ai = "#e1e4e8", wu = "#c6c6c622", ku = "#1b1f234d", xu = "#24292e", Su = "#34d05840", Pi = "#d73a49", pa = "#e36209", ji = "#005cc5", Vu = "#032f62", _u = "#005cc5", Ri = "#005cc5", Iu = "#6f42c1", Tu = "#005cc5", Lu = "#6a737d", Du = "#005cc5", $u = "#cb2431", Ou = "#032f62", Fu = [X.theme({ "&": { color: fe, backgroundColor: da }, ".cm-content": { caretColor: Hi }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Hi }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: We }, ".cm-panels": { backgroundColor: ha, color: fe }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ha, outline: `1px solid ${Ai}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: We }, ".cm-activeLine": { backgroundColor: wu }, ".cm-selectionMatch": { backgroundColor: We }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Su, outline: "none" }, ".cm-gutters": { backgroundColor: da, color: fe, border: "none" }, ".cm-activeLineGutter": { backgroundColor: da }, ".cm-lineNumbers .cm-gutterElement": { color: ku }, ".cm-lineNumbers .cm-activeLineGutter": { color: xu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: fe }, ".cm-tooltip": { border: `1px solid ${Ai}`, backgroundColor: ha, color: fe }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: fe, borderBottomColor: fe }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: We, color: fe } } }, { dark: Cu }), Q(J.define([{ tag: s.keyword, color: Pi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: pa }, { tag: [s.propertyName], color: ji }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Vu }, { tag: [s.function(s.variableName), s.labelName], color: ji }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: _u }, { tag: [s.definition(s.name), s.separator], color: pa }, { tag: [s.className], color: Iu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Tu }, { tag: [s.typeName], color: Ri, fontStyle: Ri }, { tag: [s.operator, s.operatorKeyword], color: Pi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Ou }, { tag: [s.meta, s.comment], color: Lu }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Du }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: pa }, { tag: s.invalid, color: $u }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Mu = !0, ua = "#24292e", ve = "#d1d5da", Ye = "#3392FF44", Ui = "#c8e1ff", ma = "#24292e", Wi = "#1b1f23", Eu = "#4d566022", Nu = "#444d56", Bu = "#e1e4e8", zu = "#17E5E650", Yi = "#f97583", ga = "#ffab70", Xi = "#79b8ff", Hu = "#9ecbff", Au = "#79b8ff", qi = "#79b8ff", Pu = "#b392f0", ju = "#79b8ff", Ru = "#6a737d", Uu = "#79b8ff", Wu = "#f97583", Yu = "#9ecbff", Xu = [X.theme({ "&": { color: ve, backgroundColor: ua }, ".cm-content": { caretColor: Ui }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ui }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ye }, ".cm-panels": { backgroundColor: ma, color: ve }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: ma, outline: `1px solid ${Wi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ye }, ".cm-activeLine": { backgroundColor: Eu }, ".cm-selectionMatch": { backgroundColor: Ye }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: zu, outline: "none" }, ".cm-gutters": { backgroundColor: ua, color: ve, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ua }, ".cm-lineNumbers .cm-gutterElement": { color: Nu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Bu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ve }, ".cm-tooltip": { border: `1px solid ${Wi}`, backgroundColor: ma, color: ve }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ve, borderBottomColor: ve }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ye, color: ve } } }, { dark: Mu }), Q(J.define([{ tag: s.keyword, color: Yi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ga }, { tag: [s.propertyName], color: Xi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Hu }, { tag: [s.function(s.variableName), s.labelName], color: Xi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Au }, { tag: [s.definition(s.name), s.separator], color: ga }, { tag: [s.className], color: Pu }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: ju }, { tag: [s.typeName], color: qi, fontStyle: qi }, { tag: [s.operator, s.operatorKeyword], color: Yi }, { tag: [s.url, s.escape, s.regexp, s.link], color: Yu }, { tag: [s.meta, s.comment], color: Ru }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Uu }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ga }, { tag: s.invalid, color: Wu }, { tag: s.strikethrough, textDecoration: "line-through" }]))], qu = !0, fa = "#21202e", be = "#edecee", Xe = "#3d375e7f", Ki = "#a277ff", va = "#21202e", Gi = "#3b334b", Ku = "#4d4b6622", Gu = "#a394f033", Zu = "#cdccce", Qu = "#a394f033", Zi = "#a277ff", ba = "#edecee", Qi = "#ffca85", Ju = "#61ffca", em = "#61ffca", Ji = "#82e2ff", tm = "#82e2ff", om = "#61ffca", am = "#6d6d6d", im = "#a277ff", lm = "#ff6767", nm = "#61ffca", sm = [X.theme({ "&": { color: be, backgroundColor: fa }, ".cm-content": { caretColor: Ki }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: Ki }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Xe }, ".cm-panels": { backgroundColor: va, color: be }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: va, outline: `1px solid ${Gi}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Xe }, ".cm-activeLine": { backgroundColor: Ku }, ".cm-selectionMatch": { backgroundColor: Xe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Qu, outline: "none" }, ".cm-gutters": { backgroundColor: fa, color: be, border: "none" }, ".cm-activeLineGutter": { backgroundColor: fa }, ".cm-lineNumbers .cm-gutterElement": { color: Gu }, ".cm-lineNumbers .cm-activeLineGutter": { color: Zu }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: be }, ".cm-tooltip": { border: `1px solid ${Gi}`, backgroundColor: va, color: be }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: be, borderBottomColor: be }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Xe, color: be } } }, { dark: qu }), Q(J.define([{ tag: s.keyword, color: Zi }, { tag: [s.name, s.deleted, s.character, s.macroName], color: ba }, { tag: [s.propertyName], color: Qi }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Ju }, { tag: [s.function(s.variableName), s.labelName], color: Qi }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: em }, { tag: [s.definition(s.name), s.separator], color: ba }, { tag: [s.className], color: tm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: om }, { tag: [s.typeName], color: Ji, fontStyle: Ji }, { tag: [s.operator, s.operatorKeyword], color: Zi }, { tag: [s.url, s.escape, s.regexp, s.link], color: nm }, { tag: [s.meta, s.comment], color: am }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: im }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: ba }, { tag: s.invalid, color: lm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], rm = !0, ya = "#1a1b26", ye = "#787c99", qe = "#515c7e40", el = "#c0caf5", Ca = "#1a1b26", tl = "#787c99", cm = "#43455c22", dm = "#363b54", hm = "#737aa2", pm = "#16161e", ol = "#bb9af7", wa = "#c0caf5", al = "#7aa2f7", um = "#9ece6a", mm = "#bb9af7", il = "#0db9d7", gm = "#c0caf5", fm = "#ff9e64", vm = "#444b6a", bm = "#89ddff", ym = "#ff5370", Cm = "#b4f9f8", wm = [X.theme({ "&": { color: ye, backgroundColor: ya }, ".cm-content": { caretColor: el }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: el }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: qe }, ".cm-panels": { backgroundColor: Ca, color: ye }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: Ca, outline: `1px solid ${tl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: qe }, ".cm-activeLine": { backgroundColor: cm }, ".cm-selectionMatch": { backgroundColor: qe }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: pm, outline: "none" }, ".cm-gutters": { backgroundColor: ya, color: ye, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ya }, ".cm-lineNumbers .cm-gutterElement": { color: dm }, ".cm-lineNumbers .cm-activeLineGutter": { color: hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: ye }, ".cm-tooltip": { border: `1px solid ${tl}`, backgroundColor: Ca, color: ye }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: ye, borderBottomColor: ye }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: qe, color: ye } } }, { dark: rm }), Q(J.define([{ tag: s.keyword, color: ol }, { tag: [s.name, s.deleted, s.character, s.macroName], color: wa }, { tag: [s.propertyName], color: al }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: um }, { tag: [s.function(s.variableName), s.labelName], color: al }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: mm }, { tag: [s.definition(s.name), s.separator], color: wa }, { tag: [s.className], color: gm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: fm }, { tag: [s.typeName], color: il, fontStyle: il }, { tag: [s.operator, s.operatorKeyword], color: ol }, { tag: [s.url, s.escape, s.regexp, s.link], color: Cm }, { tag: [s.meta, s.comment], color: vm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: bm }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: wa }, { tag: s.invalid, color: ym }, { tag: s.strikethrough, textDecoration: "line-through" }]))], km = !0, ka = "#24283b", Ce = "#7982a9", Ke = "#6f7bb630", ll = "#c0caf5", xa = "#24283b", nl = "#7982a9", xm = "#4d547722", Sm = "#3b4261", Vm = "#737aa2", _m = "#1f2335", sl = "#bb9af7", Sa = "#c0caf5", rl = "#7aa2f7", Im = "#9ece6a", Tm = "#bb9af7", cl = "#2ac3de", Lm = "#c0caf5", Dm = "#ff9e64", $m = "#565f89", Om = "#89ddff", Fm = "#ff5370", Mm = "#b4f9f8", Em = [X.theme({ "&": { color: Ce, backgroundColor: ka }, ".cm-content": { caretColor: ll }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: ll }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ke }, ".cm-panels": { backgroundColor: xa, color: Ce }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: xa, outline: `1px solid ${nl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ke }, ".cm-activeLine": { backgroundColor: xm }, ".cm-selectionMatch": { backgroundColor: Ke }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: _m, outline: "none" }, ".cm-gutters": { backgroundColor: ka, color: Ce, border: "none" }, ".cm-activeLineGutter": { backgroundColor: ka }, ".cm-lineNumbers .cm-gutterElement": { color: Sm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Vm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: Ce }, ".cm-tooltip": { border: `1px solid ${nl}`, backgroundColor: xa, color: Ce }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: Ce, borderBottomColor: Ce }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ke, color: Ce } } }, { dark: km }), Q(J.define([{ tag: s.keyword, color: sl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Sa }, { tag: [s.propertyName], color: rl }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Im }, { tag: [s.function(s.variableName), s.labelName], color: rl }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: Tm }, { tag: [s.definition(s.name), s.separator], color: Sa }, { tag: [s.className], color: Lm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Dm }, { tag: [s.typeName], color: cl, fontStyle: cl }, { tag: [s.operator, s.operatorKeyword], color: sl }, { tag: [s.url, s.escape, s.regexp, s.link], color: Mm }, { tag: [s.meta, s.comment], color: $m }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Om }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Sa }, { tag: s.invalid, color: Fm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Nm = !1, Va = "#e1e2e7", we = "#6a6f8e", Ge = "#8591b840", dl = "#3760bf", _a = "#e1e2e7", hl = "#6a6f8e", Bm = "#a7aaba22", zm = "#b3b6cd", Hm = "#68709a", Am = "#e9e9ec", pl = "#9854f1", Ia = "#3760bf", ul = "#2e7de9", Pm = "#587539", jm = "#9854f1", ml = "#07879d", Rm = "#3760bf", Um = "#b15c00", Wm = "#9da3c2", Ym = "#006a83", Xm = "#ff3e64", qm = "#2e5857", Km = [X.theme({ "&": { color: we, backgroundColor: Va }, ".cm-content": { caretColor: dl }, ".cm-cursor, .cm-dropCursor": { borderLeftColor: dl }, "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Ge }, ".cm-panels": { backgroundColor: _a, color: we }, ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" }, ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" }, ".cm-searchMatch": { backgroundColor: _a, outline: `1px solid ${hl}` }, ".cm-searchMatch.cm-searchMatch-selected": { backgroundColor: Ge }, ".cm-activeLine": { backgroundColor: Bm }, ".cm-selectionMatch": { backgroundColor: Ge }, "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: Am, outline: "none" }, ".cm-gutters": { backgroundColor: Va, color: we, border: "none" }, ".cm-activeLineGutter": { backgroundColor: Va }, ".cm-lineNumbers .cm-gutterElement": { color: zm }, ".cm-lineNumbers .cm-activeLineGutter": { color: Hm }, ".cm-foldPlaceholder": { backgroundColor: "transparent", border: "none", color: we }, ".cm-tooltip": { border: `1px solid ${hl}`, backgroundColor: _a, color: we }, ".cm-tooltip .cm-tooltip-arrow:before": { borderTopColor: "transparent", borderBottomColor: "transparent" }, ".cm-tooltip .cm-tooltip-arrow:after": { borderTopColor: we, borderBottomColor: we }, ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": { background: Ge, color: we } } }, { dark: Nm }), Q(J.define([{ tag: s.keyword, color: pl }, { tag: [s.name, s.deleted, s.character, s.macroName], color: Ia }, { tag: [s.propertyName], color: ul }, { tag: [s.processingInstruction, s.string, s.inserted, s.special(s.string)], color: Pm }, { tag: [s.function(s.variableName), s.labelName], color: ul }, { tag: [s.color, s.constant(s.name), s.standard(s.name)], color: jm }, { tag: [s.definition(s.name), s.separator], color: Ia }, { tag: [s.className], color: Rm }, { tag: [s.number, s.changed, s.annotation, s.modifier, s.self, s.namespace], color: Um }, { tag: [s.typeName], color: ml, fontStyle: ml }, { tag: [s.operator, s.operatorKeyword], color: pl }, { tag: [s.url, s.escape, s.regexp, s.link], color: qm }, { tag: [s.meta, s.comment], color: Wm }, { tag: s.strong, fontWeight: "bold" }, { tag: s.emphasis, fontStyle: "italic" }, { tag: s.link, textDecoration: "underline" }, { tag: s.heading, fontWeight: "bold", color: Ym }, { tag: [s.atom, s.bool, s.special(s.variableName)], color: Ia }, { tag: s.invalid, color: Xm }, { tag: s.strikethrough, textDecoration: "line-through" }]))], Gm = { disabled: !1, indentWithTab: !0, tabSize: 4, autofocus: !1, placeholder: "input...", backgroundColor: "white", language: "markdown", theme: "oneDark", phrases: "en-us" }, jl = { emits: ["update:config"], components: { CodemirrorEditor: qh }, data: () => ({ codemrrConfig: { ...Gm }, codemrrThemes: { oneDark: Zh, materialLight: up, materialDark: Lp, solarizedLight: Wp, solarizedDark: lu, dracula: yu, githubLight: Fu, githubDark: Xu, aura: sm, tokyoNight: wm, tokyoNightStorm: Em, tokyoNightDay: Km }, codemrrLanguages: { javascript: Xa(), js: Xa(), html: En(), markdown: Bn(), json: Nn(), vue: zn(), java: An(), php: Hn(), python: Pn(), go: Rn(), mysql: qa(), sql: qa(), xml: jn(), css: Un() }, codemrrPhrases: { "Control character": "Steuerzeichen", "Selection deleted": "Auswahl gelöscht", "Folded lines": "Eingeklappte Zeilen", "Unfolded lines": "Ausgeklappte Zeilen", to: "bis", "folded code": "eingeklappter Code", unfold: "ausklappen", "Fold line": "Zeile einklappen", "Unfold line": "Zeile ausklappen", "Go to line": "Springe zu Zeile", go: "OK", Find: "Suchen", Replace: "Ersetzen", next: "nächste", previous: "vorherige", all: "alle", "match case": "groß/klein beachten", "by word": "ganze Wörter", replace: "ersetzen", "replace all": "alle ersetzen", close: "schließen", "current match": "aktueller Treffer", "replaced $ matches": "$ Treffer ersetzt", "replaced match on line $": "Treffer on Zeile $ ersetzt", "on line": "auf Zeile", Completions: "Vervollständigungen", Diagnostics: "Diagnosen", "No diagnostics": "Keine Diagnosen" }, editorViewInst: null, editorStateInst: null }), computed: { optionTheme() {
3044
3060
  let e = Object.keys(this.codemrrThemes);
3045
3061
  return ["default"].concat(e);
3046
3062
  }, optionPhrases: () => ["en-us", "de-de"], optionLanguage() {
@@ -3065,7 +3081,7 @@ function Rl(e, t) {
3065
3081
  function Ze(e) {
3066
3082
  return e < 10 ? "0" + e : e;
3067
3083
  }
3068
- const Zm = { undo: !1, redo: !1, strong: !0, italic: !0, overline: !0, h1: !0, h2: !0, h3: !0, h4: !0, h5: !0, h6: !0, hr: !0, quote: !0, ul: !0, ol: !0, notChecked: !0, checked: !0, link: !0, table: !0, image: !0, uploadImage: !0, custom_image: !0, custom_uploadImage: !0, custom_uploadFile: !0, importmd: !0, exportmd: !0, code: !0, html_to_markdown: !0, split: !0, preview: !0, scrollSync: !0, save: !0, clear: !0, copy: !0, toc: !0, fullscreen: !0, theme: !0, backgroundColor: !1, language: !1, phrases: !1, disabled: !1, autofocus: !1, indentWithTab: !1 }, Qm = { t: "1713021153946", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "1924", width: "20", height: "20" }, Jm = { t: "1599285632421", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "45640", width: "17", height: "17" }, e1 = { t: "1611551476626", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "4615", width: "22", height: "22" }, t1 = { t: "1713097613984", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "6856", width: "18", height: "18" }, o1 = { t: "1713109019954", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "13071", width: "18", height: "18" }, Aa = { components: { SvgImgMap: S({ name: "SvgImgMap" }, [["render", function(e, t, o, l, a, i) {
3084
+ const Zm = { undo: !1, redo: !1, strong: !0, italic: !0, overline: !0, h1: !0, h2: !0, h3: !0, h4: !0, h5: !0, h6: !0, hr: !0, quote: !0, ul: !0, ol: !0, notChecked: !0, checked: !0, link: !0, table: !0, image: !0, uploadImage: !0, custom_image: !0, custom_uploadImage: !0, custom_uploadFile: !0, importmd: !0, exportmd: !0, code: !0, html_to_markdown: !0, split: !0, preview: !0, scrollSync: !0, save: !0, clear: !0, copy: !0, toc: !0, fullscreen: !0, theme: !0, backgroundColor: !1, language: !1, phrases: !1, disabled: !1, autofocus: !1, indentWithTab: !1 }, Qm = { t: "1713021153946", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "1924", width: "20", height: "20" }, Jm = { t: "1599285632421", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "45640", width: "17", height: "17" }, e1 = { t: "1611551476626", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "4615", width: "22", height: "22" }, t1 = { t: "1713097613984", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "6856", width: "18", height: "18" }, o1 = { t: "1713109019954", class: "icon", viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "p-id": "13071", width: "18", height: "18" }, Pa = { components: { SvgImgMap: S({ name: "SvgImgMap" }, [["render", function(e, t, o, l, a, i) {
3069
3085
  return d(), u("svg", Qm, [...t[0] || (t[0] = [r("path", { d: "M659.456 786.432l-114.688-188.416c-4.10112-8.192-8.19712-12.28288-16.384-12.28288-4.096 0-8.19712 4.096-12.288 4.096l-57.344 57.344-61.44-90.11712c-4.096-8.192-8.192-12.28288-16.384-12.28288s-12.288 4.096-16.384 8.192l-151.552 225.28c0 4.096-4.096 8.192-4.096 12.288 0 12.28288 8.192 20.48 20.48 20.48h413.696c12.288 0 20.48-8.19712 20.48-20.48l-4.096-4.10112zM286.72 512c40.96 0 73.728-32.768 73.728-73.728S327.68 364.544 286.72 364.544s-73.728 32.768-73.728 73.728C208.896 479.232 245.76 512 286.72 512zM851.968 98.304H323.584c-40.96 0-73.728 32.768-73.728 73.728v20.48c0 12.288 8.192 20.48 20.48 20.48s16.384-12.288 16.384-20.48v-20.48c0-20.48 16.384-36.864 36.864-36.864h528.384c20.48 0 36.85888 16.384 36.85888 36.864v528.384c0 20.48-16.37888 36.864-36.85888 36.864h-20.48c-12.288 0-20.48 8.192-20.48 20.48s8.192 20.48 20.48 20.48h20.48c40.96 0 73.72288-32.768 73.72288-73.728v-532.48c0.00512-40.96-32.76288-73.728-73.72288-73.728z", "p-id": "1925" }, null, -1), r("path", { d: "M700.416 249.856H172.032c-40.96 0-73.728 32.768-73.728 73.728v528.384c0 40.96 32.768 73.72288 73.728 73.72288h528.384c40.96 0 73.728-32.76288 73.728-73.72288V323.584c0-40.96-32.768-73.728-73.728-73.728z m36.864 602.112c0 20.48-16.384 36.85888-36.864 36.85888H172.032c-20.48 0-36.864-16.37888-36.864-36.85888V323.584c0-20.48 16.384-36.864 36.864-36.864h528.384c20.48 0 36.864 16.384 36.864 36.864v528.384z", "p-id": "1926" }, null, -1)])]);
3070
3086
  }]]), SvgUploadFile: S({ name: "SvgUploadFile" }, [["render", function(e, t, o, l, a, i) {
3071
3087
  return d(), u("svg", Jm, [...t[0] || (t[0] = [r("path", { d: "M127.519 892.879v-763.34h655.448V514.69h63.612V81.831c0-8.783-7.12-15.903-15.903-15.903H79.81c-8.783 0-15.903 7.12-15.903 15.903v858.757c0 8.783 7.12 15.903 15.903 15.903h493.993v-63.612H127.519z", "p-id": "45641" }, null, -1), r("path", { d: "M231.608 228.388h447.269V292H231.608zM231.608 384.409h447.269v63.612H231.608zM231.608 540.43h245.141v63.612H231.608zM231.608 696.451h245.141v63.612H231.608zM923.269 762.938L745.315 584.984c-3.545-3.545-8.34-5.074-12.966-4.596a15.931 15.931 0 0 0-9.848 4.616L544.586 762.918c-6.248 6.248-6.248 16.379 0 22.627l22.353 22.353c6.248 6.248 16.379 6.248 22.627 0l112.555-112.555v245.148c0 8.837 7.163 16 16 16h31.612c8.837 0 16-7.163 16-16V695.363l112.555 112.555c6.248 6.248 16.379 6.248 22.627 0l22.353-22.353c6.249-6.248 6.249-16.378 0.001-22.627z", "p-id": "45642" }, null, -1)])]);
@@ -3226,7 +3242,7 @@ row 2 col 1 | row 2 col 2
3226
3242
  this.$emit("on-action", e, t);
3227
3243
  }, actionCustom(e) {
3228
3244
  this.$emit("on-act-custom", e);
3229
- } } }, a1 = { name: "cvEditorCode", mixins: [jl, Me, Aa], emits: ["update:modelValue", "on-ready"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({ autoRefresh: !0, autofocus: !1, lineNumbers: !0, tabSize: 4, indentUnit: 2, line: !0, styleActiveLine: !0 }) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "" }, theme: { type: [String], default: "oneDark" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
3245
+ } } }, a1 = { name: "cvEditorCode", mixins: [jl, Me, Pa], emits: ["update:modelValue", "on-ready"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({ autoRefresh: !0, autofocus: !1, lineNumbers: !0, tabSize: 4, indentUnit: 2, line: !0, styleActiveLine: !0 }) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "" }, theme: { type: [String], default: "oneDark" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
3230
3246
  this.$emit("update:modelValue", e);
3231
3247
  }, modelValue(e) {
3232
3248
  this.localVal != e && (this.localVal = e);
@@ -3299,7 +3315,7 @@ row 2 col 1 | row 2 col 2
3299
3315
  }, destroyView() {
3300
3316
  this.editor && (this.editorInstance.destroy(), this.editor = null);
3301
3317
  }, handleChange(e) {
3302
- this.emitData || (this.emitData = Il(400, (t) => {
3318
+ this.emitData || (this.emitData = Tl(400, (t) => {
3303
3319
  this.$emit("update:modelValue", t);
3304
3320
  })), this.emitData(e);
3305
3321
  } } }, $o = S(f1, [["render", function(e, t, o, l, a, i) {
@@ -3399,7 +3415,7 @@ const C1 = (e, t) => {
3399
3415
  } } }, [["render", function(e, t, o, l, a, i) {
3400
3416
  const n = C("EditorSlideUpload");
3401
3417
  return d(), u("div", { class: z(["cv-editor-tinymce tinymce-container", { fullscreen: a.fullscreen }]), style: H({ width: i.containerWidth }) }, [r("textarea", { id: e.editorRefID, class: "tinymce-textarea" }, null, 8, w1), r("div", k1, [b(n, O({ color: "#1890ff", class: "editor-upload-btn", onSuccessCBK: i.imageSuccessCBK }, o.uploadAttr), null, 16, ["onSuccessCBK"])])], 6);
3402
- }], ["__scopeId", "data-v-8cbc5d06"]]), x1 = { name: "cvEditorMarkdown", mixins: [jl, Me, Aa], emits: ["update:modelValue", "on-ready", "on-upload-image"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({}) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "markdown" }, theme: { type: [String], default: "light" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ lastPos: "", lastInsert: "", lastHtml: "", scrollSide: "", localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
3418
+ }], ["__scopeId", "data-v-8cbc5d06"]]), x1 = { name: "cvEditorMarkdown", mixins: [jl, Me, Pa], emits: ["update:modelValue", "on-ready", "on-upload-image"], props: { modelValue: { type: [String, Number], default: "" }, options: { type: [Object], default: () => ({}) }, toolbars: { type: [Object], default: () => ({}) }, language: { type: [String], default: "markdown" }, theme: { type: [String], default: "light" }, readOnly: { type: [Boolean], default: !1 }, autoSave: { type: [Boolean], default: !1 }, width: { type: [Number, String], default: "auto" }, height: { type: [Number, String], default: 600 }, bordered: { type: [Boolean], default: !0 } }, data: () => ({ lastPos: "", lastInsert: "", lastHtml: "", scrollSide: "", localVal: "", heightMainPx: "", editorWrapRefEL: null }), watch: { localVal(e) {
3403
3419
  this.$emit("update:modelValue", e);
3404
3420
  }, modelValue(e) {
3405
3421
  this.localVal != e && (this.localVal = e);
@@ -3479,25 +3495,25 @@ const C1 = (e, t) => {
3479
3495
  const { markdownRef: e, markdownScrollHeight: t, markdownScrollTop: o, previewRef: l, contentHeight: a, previewScrollHeight: i, previewScrollTop: n } = this.getScrollData(), c = parseInt(n / (i - a) * (t - a), 0);
3480
3496
  e.scrollTop = c;
3481
3497
  }
3482
- } } }, S1 = { key: 0, class: "cv-editor-markdown-toolbar", "data-title": "头部工具栏" }, V1 = { class: "cv-editor-toolbars" }, _1 = { key: 1, name: "插入图片" }, I1 = { key: 2, name: "本地图片" }, T1 = { class: "icon-svg" }, L1 = { key: 4, name: "上传图片" }, D1 = { key: 5, name: "上传文件" }, $1 = { name: "导入文件", class: "import-file" }, O1 = { name: "保存到本地" }, F1 = { key: 6, name: "代码块" }, M1 = { key: 7, class: "shift-theme", name: "主题" }, E1 = ["onClick"], B1 = { key: 8, class: "shift-theme", name: "背景颜色" }, N1 = ["onClick"], z1 = { key: 9, class: "shift-theme", name: "phrases" }, H1 = ["onClick"], A1 = ["name"], P1 = ["name"], j1 = ["name"], R1 = ["name"], U1 = { key: 15, name: "全屏编辑" }, W1 = { key: 16, name: "分屏显示" }, Y1 = { key: 17, name: "预览" }, X1 = { key: 18, class: "segmentation" }, q1 = { class: "icon-svg" }, K1 = { key: 22, class: "segmentation" }, G1 = { key: 23, name: "目录" }, Z1 = { key: 24, class: "segmentation" }, Q1 = ["name"], J1 = { class: "cv-editor-toolbars" }, eg = { key: 0, name: "撤销" }, tg = { key: 2, name: "粗体" }, og = { key: 3, name: "斜体" }, ag = { key: 4, name: "删除线" }, ig = { key: 5, name: "下划线" }, lg = { key: 6, name: "标题1" }, ng = { key: 7, name: "标题2" }, sg = { key: 8, name: "标题3" }, rg = { key: 9, name: "标题4" }, cg = { key: 10, name: "标题5" }, dg = { key: 11, name: "标题6" }, hg = { key: 12, name: "分割线" }, pg = { key: 13, name: "引用" }, ug = { key: 14, name: "无序列表" }, mg = { key: 15, name: "有序列表" }, gg = { key: 16, name: "未完成列表" }, fg = { key: 17, name: "已完成列表" }, vg = { key: 18, name: "链接" }, bg = { key: 19, name: "表格" }, Fo = S(x1, [["render", function(e, t, o, l, a, i) {
3498
+ } } }, S1 = { key: 0, class: "cv-editor-markdown-toolbar", "data-title": "头部工具栏" }, V1 = { class: "cv-editor-toolbars" }, _1 = { key: 1, name: "插入图片" }, I1 = { key: 2, name: "本地图片" }, T1 = { class: "icon-svg" }, L1 = { key: 4, name: "上传图片" }, D1 = { key: 5, name: "上传文件" }, $1 = { name: "导入文件", class: "import-file" }, O1 = { name: "保存到本地" }, F1 = { key: 6, name: "代码块" }, M1 = { key: 7, class: "shift-theme", name: "主题" }, E1 = ["onClick"], N1 = { key: 8, class: "shift-theme", name: "背景颜色" }, B1 = ["onClick"], z1 = { key: 9, class: "shift-theme", name: "phrases" }, H1 = ["onClick"], A1 = ["name"], P1 = ["name"], j1 = ["name"], R1 = ["name"], U1 = { key: 15, name: "全屏编辑" }, W1 = { key: 16, name: "分屏显示" }, Y1 = { key: 17, name: "预览" }, X1 = { key: 18, class: "segmentation" }, q1 = { class: "icon-svg" }, K1 = { key: 22, class: "segmentation" }, G1 = { key: 23, name: "目录" }, Z1 = { key: 24, class: "segmentation" }, Q1 = ["name"], J1 = { class: "cv-editor-toolbars" }, eg = { key: 0, name: "撤销" }, tg = { key: 2, name: "粗体" }, og = { key: 3, name: "斜体" }, ag = { key: 4, name: "删除线" }, ig = { key: 5, name: "下划线" }, lg = { key: 6, name: "标题1" }, ng = { key: 7, name: "标题2" }, sg = { key: 8, name: "标题3" }, rg = { key: 9, name: "标题4" }, cg = { key: 10, name: "标题5" }, dg = { key: 11, name: "标题6" }, hg = { key: 12, name: "分割线" }, pg = { key: 13, name: "引用" }, ug = { key: 14, name: "无序列表" }, mg = { key: 15, name: "有序列表" }, gg = { key: 16, name: "未完成列表" }, fg = { key: 17, name: "已完成列表" }, vg = { key: 18, name: "链接" }, bg = { key: 19, name: "表格" }, Fo = S(x1, [["render", function(e, t, o, l, a, i) {
3483
3499
  const n = C("SvgImgMap"), c = C("SvgUploadFile"), h = C("SvgCopy"), p = C("SvgToc"), m = C("CodemirrorEditor"), f = C("cv-markdown-show"), g = C("el-input"), k = C("el-button"), x = C("el-dialog");
3484
- return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-markdown-wrap", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div", S1, [r("ul", V1, [e.$slots.title ? (d(), u(F, { key: 0 }, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), t[65] || (t[65] = r("li", { class: "segmentation" }, [r("div")], -1))], 64)) : w("", !0), e.toolConfig.image ? (d(), u("li", _1, [r("span", { onClick: t[0] || (t[0] = (...y) => e.actionInsImage && e.actionInsImage(...y)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", I1, [r("span", { onClick: t[1] || (t[1] = (...y) => e.actionChooseImage && e.actionChooseImage(...y)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", { key: 3, name: "图片空间", onClick: t[2] || (t[2] = (y) => e.actionCustom("image-browse")) }, [r("span", T1, [b(n)])])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", L1, [r("span", { onClick: t[3] || (t[3] = (y) => e.actionCustom("image-upload")), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", D1, [r("span", { onClick: t[4] || (t[4] = (y) => e.actionCustom("file-upload")), class: "icon-svg" }, [b(c)])])) : w("", !0), M(r("li", $1, [r("span", { class: "iconfont icon-daoru", onClick: t[5] || (t[5] = (...y) => e.actionImportFile && e.actionImportFile(...y)) }), r("input", { type: "file", onChange: t[6] || (t[6] = (y) => e.actionImportFile(y)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", O1, [r("span", { class: "iconfont icon-download", onClick: t[7] || (t[7] = (...y) => e.actionExportFile && e.actionExportFile(...y)) })], 512), [[A, e.toolConfig.exportmd]]), t[72] || (t[72] = r("li", { class: "segmentation" }, [r("div")], -1)), e.toolConfig.code ? (d(), u("li", F1, [r("span", { onClick: t[8] || (t[8] = (...y) => e.insertCode && e.insertCode(...y)), class: "iconfont icon-code" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", M1, [r("span", { class: "iconfont icon-theme", onClick: t[9] || (t[9] = (y) => e.actionThemeDropdown = !e.actionThemeDropdown) }), r("ul", { class: z({ active: e.actionThemeDropdown }), onMouseleave: t[10] || (t[10] = (y) => e.actionThemeDropdown = !1) }, [(d(!0), u(F, null, E(e.optionTheme, (y) => (d(), u("li", { onClick: (_) => e.actionThemesSet(y) }, T(y), 9, E1))), 256))], 34)])) : w("", !0), e.toolConfig.backgroundColor ? (d(), u("li", B1, [r("span", { class: "iconfont icon-theme", onClick: t[11] || (t[11] = (y) => e.actionBgColorDropdown = !e.actionBgColorDropdown) }), r("ul", { class: z({ active: e.actionBgColorDropdown }), onMouseleave: t[12] || (t[12] = (y) => e.actionBgColorDropdown = !1) }, [(d(), u(F, null, E(["red", "black", "yellow", "lawngreen", "blue", "white"], (y) => r("li", { onClick: (_) => e.actionBgColorSet(y) }, T(y), 9, N1)), 64))], 34)])) : w("", !0), e.toolConfig.phrases ? (d(), u("li", z1, [r("span", { class: "iconfont icon-theme", onClick: t[13] || (t[13] = (y) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown) }), r("ul", { class: z({ active: e.actionPhrasesDropdown }), onMouseleave: t[14] || (t[14] = (y) => e.actionPhrasesDropdown = !1) }, [(d(!0), u(F, null, E(e.optionPhrases, (y) => (d(), u("li", { onClick: (_) => e.actionPhrasesSet(y) }, T(y), 9, H1))), 256))], 34)])) : w("", !0), e.toolConfig.html_to_markdown ? (d(), u("li", { key: 10, name: "html转markdown", onClick: t[15] || (t[15] = (y) => e.actionHtmlVisible(!0)) }, [...t[66] || (t[66] = [r("span", { style: { width: "auto", "font-size": "12px !important", padding: "0px 6px", margin: "0 10px", border: "1px #e2e2e2 solid" } }, " HTML2MD ", -1)])])) : w("", !0), e.toolConfig.disabled ? (d(), u("li", { key: 11, name: e.codemrrConfig.disabled ? "toggle disabled:开" : "toggle disabled:关" }, [M(r("span", { onClick: t[16] || (t[16] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.disabled]]), M(r("span", { onClick: t[17] || (t[17] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.disabled]])], 8, A1)) : w("", !0), e.toolConfig.autofocus ? (d(), u("li", { key: 12, name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关" }, [M(r("span", { onClick: t[18] || (t[18] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.autofocus]]), M(r("span", { onClick: t[19] || (t[19] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.autofocus]])], 8, P1)) : w("", !0), e.toolConfig.indentWithTab ? (d(), u("li", { key: 13, name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关" }, [M(r("span", { onClick: t[20] || (t[20] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.indentWithTab]]), M(r("span", { onClick: t[21] || (t[21] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.indentWithTab]])], 8, j1)) : w("", !0), t[73] || (t[73] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 14, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[22] || (t[22] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on active" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[23] || (t[23] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, R1)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", U1, [r("span", { onClick: t[24] || (t[24] = (y) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", W1, [r("span", { onClick: t[25] || (t[25] = (y) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Y1, [r("span", { onClick: t[26] || (t[26] = (y) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (d(), u("li", X1, [...t[67] || (t[67] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.copy ? (d(), u("li", { key: 19, name: "复制", onClick: t[27] || (t[27] = (...y) => e.actionCopySet && e.actionCopySet(...y)) }, [r("span", q1, [b(h)])])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 20, name: "清空", onClick: t[28] || (t[28] = (y) => a.localVal = "") }, [...t[68] || (t[68] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 21, name: "保存", onClick: t[29] || (t[29] = (...y) => e.actionSaveSet && e.actionSaveSet(...y)) }, [...t[69] || (t[69] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", K1, [...t[70] || (t[70] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", G1, [M(r("span", { onClick: t[30] || (t[30] = (y) => e.actionToc = !e.actionToc), class: "icon-svg active" }, [b(p)], 512), [[A, e.actionToc]]), M(r("span", { onClick: t[31] || (t[31] = (y) => e.actionToc = !e.actionToc), class: "icon-svg" }, [b(p)], 512), [[A, !e.actionToc]])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", Z1, [...t[71] || (t[71] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", { key: 25, name: e.actionFullscreen ? "退出全屏" : "全屏" }, [M(r("span", { onClick: t[32] || (t[32] = (y) => e.actionFullscreenSet(!1)), class: "iconfont icon-quite" }, null, 512), [[A, e.actionFullscreen]]), M(r("span", { onClick: t[33] || (t[33] = (y) => e.actionFullscreenSet(!0)), class: "iconfont icon-fullscreen" }, null, 512), [[A, !e.actionFullscreen]])], 8, Q1)) : w("", !0)]), r("ul", J1, [e.toolConfig.undo ? (d(), u("li", eg, [r("span", { class: "iconfont icon-undo", onClick: t[34] || (t[34] = (...y) => e.actionUndo && e.actionUndo(...y)) })])) : w("", !0), e.toolConfig.redo ? (d(), u("li", { key: 1, name: "重做", onClick: t[35] || (t[35] = (...y) => e.actionRedo && e.actionRedo(...y)) }, [...t[74] || (t[74] = [r("span", { class: "iconfont icon-redo" }, null, -1)])])) : w("", !0), e.toolConfig.strong ? (d(), u("li", tg, [r("span", { onClick: t[36] || (t[36] = (...y) => e.actionInsStrong && e.actionInsStrong(...y)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", og, [r("span", { onClick: t[37] || (t[37] = (...y) => e.actionInsItalic && e.actionInsItalic(...y)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ag, [r("span", { onClick: t[38] || (t[38] = (...y) => e.actionInsOverline && e.actionInsOverline(...y)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ig, [r("span", { onClick: t[39] || (t[39] = (...y) => e.actionInsUnderline && e.actionInsUnderline(...y)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", lg, [r("span", { style: { "font-size": "16px" }, onClick: t[40] || (t[40] = (y) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", ng, [r("span", { style: { "font-size": "16px" }, onClick: t[41] || (t[41] = (y) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", sg, [r("span", { style: { "font-size": "16px" }, onClick: t[42] || (t[42] = (y) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", rg, [r("span", { style: { "font-size": "16px" }, onClick: t[43] || (t[43] = (y) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", cg, [r("span", { style: { "font-size": "16px" }, onClick: t[44] || (t[44] = (y) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", dg, [r("span", { style: { "font-size": "16px" }, onClick: t[45] || (t[45] = (y) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", hg, [r("span", { onClick: t[46] || (t[46] = (...y) => e.actionInsLine && e.actionInsLine(...y)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", pg, [r("span", { style: { "font-size": "16px" }, onClick: t[47] || (t[47] = (...y) => e.actionInsQuote && e.actionInsQuote(...y)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", ug, [r("span", { onClick: t[48] || (t[48] = (...y) => e.actionInsUl && e.actionInsUl(...y)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", mg, [r("span", { onClick: t[49] || (t[49] = (...y) => e.actionInsOl && e.actionInsOl(...y)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", gg, [r("span", { onClick: t[50] || (t[50] = (...y) => e.insertNotFinished && e.insertNotFinished(...y)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", fg, [r("span", { onClick: t[51] || (t[51] = (...y) => e.insertFinished && e.insertFinished(...y)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", vg, [r("span", { onClick: t[52] || (t[52] = (...y) => e.actionInsLink && e.actionInsLink(...y)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", bg, [r("span", { onClick: t[53] || (t[53] = (...y) => e.actionInsTable && e.actionInsTable(...y)), class: "iconfont icon-table" })])) : w("", !0)])])), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(b(m, O(e.codemrrBind, { id: e.editorRefID, ref: e.editorRefID, style: { height: a.heightMainPx, backgroundColor: e.codemrrConfig.backgroundColor }, extensions: e.extensions, modelValue: a.localVal, "onUpdate:modelValue": t[54] || (t[54] = (y) => a.localVal = y), onReady: i.initEditorReady, onChange: t[55] || (t[55] = (y) => i.consoleLog("change", y)), onFocus: t[56] || (t[56] = (y) => i.consoleLog("focus", y)), onBlur: t[57] || (t[57] = (y) => i.consoleLog("blur", y)), onMouseenter: t[58] || (t[58] = (y) => i.mousescrollSide("left")) }), null, 16, ["id", "style", "extensions", "modelValue", "onReady"]), [[A, !e.actionPreview]]), M(b(f, { html: a.lastHtml, "onUpdate:html": t[59] || (t[59] = (y) => a.lastHtml = y), ref: i.previewRefID, editorID: i.previewRefID, modelValue: a.localVal, theme: e.codemrrConfig.theme || o.theme, language: o.language, tocShow: e.actionToc, style: H([{ flex: "1", height: "100%", "border-left": "1px solid #dedede", "overflow-y": "auto" }, { height: e.actionPreview ? "" : a.heightMainPx }]), onMouseenter: t[60] || (t[60] = (y) => i.mousescrollSide("right")) }, null, 8, ["html", "editorID", "modelValue", "theme", "language", "tocShow", "style"]), [[A, e.actionPreview ? e.actionPreview : e.actionSplit]])], 4), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[61] || (t[61] = (y) => e.actionPreview = !1) }, [...t[75] || (t[75] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), b(x, { modelValue: e.actionHtmlDiaVisible, "onUpdate:modelValue": t[64] || (t[64] = (y) => e.actionHtmlDiaVisible = y), title: "html转markdown", width: "680", "show-close": !1, "append-to-body": "" }, { footer: v(() => [b(k, { onClick: t[63] || (t[63] = (y) => e.actionHtmlVisible(!1)) }, { default: v(() => [...t[76] || (t[76] = [L("取消", -1)])]), _: 1 }), b(k, { type: "primary", onClick: e.actionHtmlToMD }, { default: v(() => [...t[77] || (t[77] = [L("转换成markdown", -1)])]), _: 1 }, 8, ["onClick"])]), default: v(() => [b(g, { type: "textarea", modelValue: e.actionHtmlText, "onUpdate:modelValue": t[62] || (t[62] = (y) => e.actionHtmlText = y), rows: 14, placeholder: "请输入html代码..." }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])], 6);
3500
+ return d(), u("div", { ref: i.editorWrapRefID, class: z(["cv-editor-markdown-wrap", o.bordered ? "border" : ""]), style: H({ width: i.widthTotalPx, height: i.heightTotalPx }) }, [e.actionPreview ? w("", !0) : (d(), u("div", S1, [r("ul", V1, [e.$slots.title ? (d(), u(F, { key: 0 }, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), t[65] || (t[65] = r("li", { class: "segmentation" }, [r("div")], -1))], 64)) : w("", !0), e.toolConfig.image ? (d(), u("li", _1, [r("span", { onClick: t[0] || (t[0] = (...y) => e.actionInsImage && e.actionInsImage(...y)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", I1, [r("span", { onClick: t[1] || (t[1] = (...y) => e.actionChooseImage && e.actionChooseImage(...y)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", { key: 3, name: "图片空间", onClick: t[2] || (t[2] = (y) => e.actionCustom("image-browse")) }, [r("span", T1, [b(n)])])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", L1, [r("span", { onClick: t[3] || (t[3] = (y) => e.actionCustom("image-upload")), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", D1, [r("span", { onClick: t[4] || (t[4] = (y) => e.actionCustom("file-upload")), class: "icon-svg" }, [b(c)])])) : w("", !0), M(r("li", $1, [r("span", { class: "iconfont icon-daoru", onClick: t[5] || (t[5] = (...y) => e.actionImportFile && e.actionImportFile(...y)) }), r("input", { type: "file", onChange: t[6] || (t[6] = (y) => e.actionImportFile(y)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", O1, [r("span", { class: "iconfont icon-download", onClick: t[7] || (t[7] = (...y) => e.actionExportFile && e.actionExportFile(...y)) })], 512), [[A, e.toolConfig.exportmd]]), t[72] || (t[72] = r("li", { class: "segmentation" }, [r("div")], -1)), e.toolConfig.code ? (d(), u("li", F1, [r("span", { onClick: t[8] || (t[8] = (...y) => e.insertCode && e.insertCode(...y)), class: "iconfont icon-code" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", M1, [r("span", { class: "iconfont icon-theme", onClick: t[9] || (t[9] = (y) => e.actionThemeDropdown = !e.actionThemeDropdown) }), r("ul", { class: z({ active: e.actionThemeDropdown }), onMouseleave: t[10] || (t[10] = (y) => e.actionThemeDropdown = !1) }, [(d(!0), u(F, null, E(e.optionTheme, (y) => (d(), u("li", { onClick: (_) => e.actionThemesSet(y) }, T(y), 9, E1))), 256))], 34)])) : w("", !0), e.toolConfig.backgroundColor ? (d(), u("li", N1, [r("span", { class: "iconfont icon-theme", onClick: t[11] || (t[11] = (y) => e.actionBgColorDropdown = !e.actionBgColorDropdown) }), r("ul", { class: z({ active: e.actionBgColorDropdown }), onMouseleave: t[12] || (t[12] = (y) => e.actionBgColorDropdown = !1) }, [(d(), u(F, null, E(["red", "black", "yellow", "lawngreen", "blue", "white"], (y) => r("li", { onClick: (_) => e.actionBgColorSet(y) }, T(y), 9, B1)), 64))], 34)])) : w("", !0), e.toolConfig.phrases ? (d(), u("li", z1, [r("span", { class: "iconfont icon-theme", onClick: t[13] || (t[13] = (y) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown) }), r("ul", { class: z({ active: e.actionPhrasesDropdown }), onMouseleave: t[14] || (t[14] = (y) => e.actionPhrasesDropdown = !1) }, [(d(!0), u(F, null, E(e.optionPhrases, (y) => (d(), u("li", { onClick: (_) => e.actionPhrasesSet(y) }, T(y), 9, H1))), 256))], 34)])) : w("", !0), e.toolConfig.html_to_markdown ? (d(), u("li", { key: 10, name: "html转markdown", onClick: t[15] || (t[15] = (y) => e.actionHtmlVisible(!0)) }, [...t[66] || (t[66] = [r("span", { style: { width: "auto", "font-size": "12px !important", padding: "0px 6px", margin: "0 10px", border: "1px #e2e2e2 solid" } }, " HTML2MD ", -1)])])) : w("", !0), e.toolConfig.disabled ? (d(), u("li", { key: 11, name: e.codemrrConfig.disabled ? "toggle disabled:开" : "toggle disabled:关" }, [M(r("span", { onClick: t[16] || (t[16] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.disabled]]), M(r("span", { onClick: t[17] || (t[17] = (y) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.disabled]])], 8, A1)) : w("", !0), e.toolConfig.autofocus ? (d(), u("li", { key: 12, name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关" }, [M(r("span", { onClick: t[18] || (t[18] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.autofocus]]), M(r("span", { onClick: t[19] || (t[19] = (y) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.autofocus]])], 8, P1)) : w("", !0), e.toolConfig.indentWithTab ? (d(), u("li", { key: 13, name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关" }, [M(r("span", { onClick: t[20] || (t[20] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-on" }, null, 512), [[A, e.codemrrConfig.indentWithTab]]), M(r("span", { onClick: t[21] || (t[21] = (y) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab), class: "iconfont icon-off" }, null, 512), [[A, !e.codemrrConfig.indentWithTab]])], 8, j1)) : w("", !0), t[73] || (t[73] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 14, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[22] || (t[22] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on active" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[23] || (t[23] = (y) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, R1)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", U1, [r("span", { onClick: t[24] || (t[24] = (y) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", W1, [r("span", { onClick: t[25] || (t[25] = (y) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Y1, [r("span", { onClick: t[26] || (t[26] = (y) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (d(), u("li", X1, [...t[67] || (t[67] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.copy ? (d(), u("li", { key: 19, name: "复制", onClick: t[27] || (t[27] = (...y) => e.actionCopySet && e.actionCopySet(...y)) }, [r("span", q1, [b(h)])])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 20, name: "清空", onClick: t[28] || (t[28] = (y) => a.localVal = "") }, [...t[68] || (t[68] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 21, name: "保存", onClick: t[29] || (t[29] = (...y) => e.actionSaveSet && e.actionSaveSet(...y)) }, [...t[69] || (t[69] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", K1, [...t[70] || (t[70] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.toc ? (d(), u("li", G1, [M(r("span", { onClick: t[30] || (t[30] = (y) => e.actionToc = !e.actionToc), class: "icon-svg active" }, [b(p)], 512), [[A, e.actionToc]]), M(r("span", { onClick: t[31] || (t[31] = (y) => e.actionToc = !e.actionToc), class: "icon-svg" }, [b(p)], 512), [[A, !e.actionToc]])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", Z1, [...t[71] || (t[71] = [r("div", null, null, -1)])])) : w("", !0), e.toolConfig.fullscreen ? (d(), u("li", { key: 25, name: e.actionFullscreen ? "退出全屏" : "全屏" }, [M(r("span", { onClick: t[32] || (t[32] = (y) => e.actionFullscreenSet(!1)), class: "iconfont icon-quite" }, null, 512), [[A, e.actionFullscreen]]), M(r("span", { onClick: t[33] || (t[33] = (y) => e.actionFullscreenSet(!0)), class: "iconfont icon-fullscreen" }, null, 512), [[A, !e.actionFullscreen]])], 8, Q1)) : w("", !0)]), r("ul", J1, [e.toolConfig.undo ? (d(), u("li", eg, [r("span", { class: "iconfont icon-undo", onClick: t[34] || (t[34] = (...y) => e.actionUndo && e.actionUndo(...y)) })])) : w("", !0), e.toolConfig.redo ? (d(), u("li", { key: 1, name: "重做", onClick: t[35] || (t[35] = (...y) => e.actionRedo && e.actionRedo(...y)) }, [...t[74] || (t[74] = [r("span", { class: "iconfont icon-redo" }, null, -1)])])) : w("", !0), e.toolConfig.strong ? (d(), u("li", tg, [r("span", { onClick: t[36] || (t[36] = (...y) => e.actionInsStrong && e.actionInsStrong(...y)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", og, [r("span", { onClick: t[37] || (t[37] = (...y) => e.actionInsItalic && e.actionInsItalic(...y)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ag, [r("span", { onClick: t[38] || (t[38] = (...y) => e.actionInsOverline && e.actionInsOverline(...y)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", ig, [r("span", { onClick: t[39] || (t[39] = (...y) => e.actionInsUnderline && e.actionInsUnderline(...y)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", lg, [r("span", { style: { "font-size": "16px" }, onClick: t[40] || (t[40] = (y) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", ng, [r("span", { style: { "font-size": "16px" }, onClick: t[41] || (t[41] = (y) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", sg, [r("span", { style: { "font-size": "16px" }, onClick: t[42] || (t[42] = (y) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", rg, [r("span", { style: { "font-size": "16px" }, onClick: t[43] || (t[43] = (y) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", cg, [r("span", { style: { "font-size": "16px" }, onClick: t[44] || (t[44] = (y) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", dg, [r("span", { style: { "font-size": "16px" }, onClick: t[45] || (t[45] = (y) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", hg, [r("span", { onClick: t[46] || (t[46] = (...y) => e.actionInsLine && e.actionInsLine(...y)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", pg, [r("span", { style: { "font-size": "16px" }, onClick: t[47] || (t[47] = (...y) => e.actionInsQuote && e.actionInsQuote(...y)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", ug, [r("span", { onClick: t[48] || (t[48] = (...y) => e.actionInsUl && e.actionInsUl(...y)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", mg, [r("span", { onClick: t[49] || (t[49] = (...y) => e.actionInsOl && e.actionInsOl(...y)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", gg, [r("span", { onClick: t[50] || (t[50] = (...y) => e.insertNotFinished && e.insertNotFinished(...y)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", fg, [r("span", { onClick: t[51] || (t[51] = (...y) => e.insertFinished && e.insertFinished(...y)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", vg, [r("span", { onClick: t[52] || (t[52] = (...y) => e.actionInsLink && e.actionInsLink(...y)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", bg, [r("span", { onClick: t[53] || (t[53] = (...y) => e.actionInsTable && e.actionInsTable(...y)), class: "iconfont icon-table" })])) : w("", !0)])])), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(b(m, O(e.codemrrBind, { id: e.editorRefID, ref: e.editorRefID, style: { height: a.heightMainPx, backgroundColor: e.codemrrConfig.backgroundColor }, extensions: e.extensions, modelValue: a.localVal, "onUpdate:modelValue": t[54] || (t[54] = (y) => a.localVal = y), onReady: i.initEditorReady, onChange: t[55] || (t[55] = (y) => i.consoleLog("change", y)), onFocus: t[56] || (t[56] = (y) => i.consoleLog("focus", y)), onBlur: t[57] || (t[57] = (y) => i.consoleLog("blur", y)), onMouseenter: t[58] || (t[58] = (y) => i.mousescrollSide("left")) }), null, 16, ["id", "style", "extensions", "modelValue", "onReady"]), [[A, !e.actionPreview]]), M(b(f, { html: a.lastHtml, "onUpdate:html": t[59] || (t[59] = (y) => a.lastHtml = y), ref: i.previewRefID, editorID: i.previewRefID, modelValue: a.localVal, theme: e.codemrrConfig.theme || o.theme, language: o.language, tocShow: e.actionToc, style: H([{ flex: "1", height: "100%", "border-left": "1px solid #dedede", "overflow-y": "auto" }, { height: e.actionPreview ? "" : a.heightMainPx }]), onMouseenter: t[60] || (t[60] = (y) => i.mousescrollSide("right")) }, null, 8, ["html", "editorID", "modelValue", "theme", "language", "tocShow", "style"]), [[A, e.actionPreview ? e.actionPreview : e.actionSplit]])], 4), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[61] || (t[61] = (y) => e.actionPreview = !1) }, [...t[75] || (t[75] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), b(x, { modelValue: e.actionHtmlDiaVisible, "onUpdate:modelValue": t[64] || (t[64] = (y) => e.actionHtmlDiaVisible = y), title: "html转markdown", width: "680", "show-close": !1, "append-to-body": "" }, { footer: v(() => [b(k, { onClick: t[63] || (t[63] = (y) => e.actionHtmlVisible(!1)) }, { default: v(() => [...t[76] || (t[76] = [L("取消", -1)])]), _: 1 }), b(k, { type: "primary", onClick: e.actionHtmlToMD }, { default: v(() => [...t[77] || (t[77] = [L("转换成markdown", -1)])]), _: 1 }, 8, ["onClick"])]), default: v(() => [b(g, { type: "textarea", modelValue: e.actionHtmlText, "onUpdate:modelValue": t[62] || (t[62] = (y) => e.actionHtmlText = y), rows: 14, placeholder: "请输入html代码..." }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])], 6);
3485
3501
  }], ["__scopeId", "data-v-a76ecd6a"]]), Qe = { add(e, t) {
3486
3502
  const o = `toc${t}${++this.index}`, l = { anchor: o, level: t, text: e }, a = this.tocItems;
3487
3503
  return l.level <= 5 && a.push(l), o;
3488
3504
  }, reset: function() {
3489
3505
  this.tocItems = [], this.index = 0;
3490
3506
  }, tocItems: [], index: 0 };
3491
- function ml(e) {
3507
+ function gl(e) {
3492
3508
  return (t) => {
3493
3509
  typeof t == "string" && t !== e.text && (e.escaped = !0, e.text = t);
3494
3510
  };
3495
3511
  }
3496
- const Ul = /[&<>"']/, yg = new RegExp(Ul.source, "g"), Wl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Cg = new RegExp(Wl.source, "g"), wg = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, gl = (e) => wg[e];
3497
- function fl(e, t) {
3512
+ const Ul = /[&<>"']/, yg = new RegExp(Ul.source, "g"), Wl = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Cg = new RegExp(Wl.source, "g"), wg = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, fl = (e) => wg[e];
3513
+ function vl(e, t) {
3498
3514
  if (t) {
3499
- if (Ul.test(e)) return e.replace(yg, gl);
3500
- } else if (Wl.test(e)) return e.replace(Cg, gl);
3515
+ if (Ul.test(e)) return e.replace(yg, fl);
3516
+ } else if (Wl.test(e)) return e.replace(Cg, fl);
3501
3517
  return e;
3502
3518
  }
3503
3519
  const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-copy"], props: { html: { type: [String] }, modelValue: { type: [String], default: "" }, markedOptions: { type: Object, default: () => ({}) }, theme: { type: String, default: "light" }, language: { type: String, default: "" }, copyCode: { type: Boolean, default: !0 }, copyBtnText: { type: String, default: "复制代码" }, tocShow: { type: [Boolean], default: !1 } }, watch: { modelValue(e) {
@@ -3528,13 +3544,13 @@ const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-co
3528
3544
  const n = function(h) {
3529
3545
  return (h.lang || "").match(/\S*/)[0];
3530
3546
  }(i);
3531
- if (a.async) return Promise.resolve(a.highlight(i.text, n)).then(ml(i));
3547
+ if (a.async) return Promise.resolve(a.highlight(i.text, n)).then(gl(i));
3532
3548
  const c = a.highlight(i.text, n);
3533
3549
  if (c instanceof Promise) throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");
3534
- ml(i)(c);
3550
+ gl(i)(c);
3535
3551
  }, renderer: { code(i, n, c) {
3536
- const h = (n || "").match(/\S*/)[0], p = h ? ` class="${a.langPrefix}${fl(h)}"` : "";
3537
- return i = i.replace(/\n$/, ""), `<pre><code${p}>${c ? i : fl(i, !0)}
3552
+ const h = (n || "").match(/\S*/)[0], p = h ? ` class="${a.langPrefix}${vl(h)}"` : "";
3553
+ return i = i.replace(/\n$/, ""), `<pre><code${p}>${c ? i : vl(i, !0)}
3538
3554
  </code></pre>`;
3539
3555
  } } };
3540
3556
  }({ langPrefix: "hljs language-", highlight(a, i) {
@@ -3595,7 +3611,7 @@ const kg = { name: "cvMarkdownShow", mixins: [Me], emits: ["update:html", "on-co
3595
3611
  } } }, xg = ["id"], Sg = ["innerHTML"], Vg = { class: "toc-anchor" }, _g = ["anchor", "onClick"], Ig = ["anchor", "title"], Tg = ["src"], Mo = S(kg, [["render", function(e, t, o, l, a, i) {
3596
3612
  const n = C("cv-icons");
3597
3613
  return d(), u("div", { class: "cv-markdown-preview", id: e.editorRefID, ref: e.editorRefID, style: H([o.tocShow ? "display:flex;" : ""]) }, [e.$slots.default ? D(e.$slots, "default", { key: 0 }, () => [L(T(a.localHtml), 1)]) : w("", !0), r("div", { class: z("markdown-preview markdown-theme-base " + ("markdown-theme-" + o.theme)), onScroll: t[0] || (t[0] = (...c) => i.handleScroll && i.handleScroll(...c)), innerHTML: a.localHtml }, null, 42, Sg), M(r("ul", Vg, [(d(!0), u(F, null, E(a.tocLists, (c) => (d(), u("li", { class: "toc-anchor-item", anchor: c.anchor, key: c.anchor, onClick: (h) => i.tocClick(c) }, [r("span", { class: z(`toc-link-${i.tocLevel(c.level)}${a.tocAction == c.anchor ? " toc-link-action" : ""}`), anchor: c.anchor, title: c.text }, T(c.text), 11, Ig)], 8, _g))), 128))], 512), [[A, o.tocShow]]), r("div", { class: z(["preview-img", a.previewImgModal ? "active" : ""]) }, [b(n, { type: "ElIconClose", onClick: t[1] || (t[1] = (c) => a.previewImgModal = !1) }), r("img", { src: a.previewImgSrc, class: z([a.previewImgMode]), alt: "" }, null, 10, Tg)], 2)], 12, xg);
3598
- }]]), Lg = { name: "cvMarkdownSimple", mixins: [Me, Aa, { methods: { toggleSlideDown() {
3614
+ }]]), Lg = { name: "cvMarkdownSimple", mixins: [Me, Pa, { methods: { toggleSlideDown() {
3599
3615
  this.slideDown = !this.slideDown;
3600
3616
  }, actionThemesSet(e) {
3601
3617
  this.codemrrConfig.theme = e, this.actionThemeDropdown = !1, this.$emit("on-act-theme", e);
@@ -3773,9 +3789,9 @@ row 2 col 1 | row 2 col 2
3773
3789
  }
3774
3790
  }, mousescrollSide(e) {
3775
3791
  this.scroll = e;
3776
- } } }, Dg = { key: 0, title: "头部工具栏" }, $g = { class: "cv-editor-toolbars" }, Og = { key: 0, name: "粗体" }, Fg = { key: 1, name: "斜体" }, Mg = { key: 2, name: "删除线" }, Eg = { key: 3, name: "下划线" }, Bg = { key: 4, name: "标题1" }, Ng = { key: 5, name: "标题2" }, zg = { key: 6, name: "标题3" }, Hg = { key: 7, name: "标题4" }, Ag = { key: 8, name: "标题5" }, Pg = { key: 9, name: "标题6" }, jg = { key: 10, name: "分割线" }, Rg = { key: 11, name: "引用" }, Ug = { key: 12, name: "无序列表" }, Wg = { key: 13, name: "有序列表" }, Yg = { key: 14, name: "未完成列表" }, Xg = { key: 15, name: "已完成列表" }, qg = { key: 16, name: "链接" }, Kg = { key: 17, name: "表格" }, Gg = ["name"], Zg = { key: 19, name: "全屏编辑" }, Qg = { key: 20, name: "分屏显示" }, Jg = { key: 21, name: "预览" }, e0 = { class: "cv-editor-toolbars" }, t0 = { key: 0, name: "图片" }, o0 = { key: 1, name: "本地图片" }, a0 = { key: 2, name: "图片空间" }, i0 = { key: 3, name: "上传图片" }, l0 = { key: 4, name: "上传文件" }, n0 = { key: 5, class: "shift-theme", name: "代码块主题" }, s0 = { name: "导入文件", class: "import-file" }, r0 = { name: "保存到本地" }, c0 = { key: 6, name: "全屏" }, d0 = { key: 7, name: "退出全屏" }, h0 = ["innerHTML"], Eo = S(Lg, [["render", function(e, t, o, l, a, i) {
3777
- return d(), u("div", { class: z(`markdown ${a.fullscreen ? "fullscreen" : ""} ${o.bordered ? "border" : ""}`), ref: "markdown", style: H({ width: o.width + (typeof o.width == "string" ? "" : "px"), height: o.height + (typeof o.height == "string" ? "" : "px") }) }, [e.actionPreview ? w("", !0) : (d(), u("div", Dg, [r("ul", $g, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), e.toolConfig.strong ? (d(), u("li", Og, [r("span", { onClick: t[0] || (t[0] = (...n) => e.actionInsStrong && e.actionInsStrong(...n)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", Fg, [r("span", { onClick: t[1] || (t[1] = (...n) => e.actionInsItalic && e.actionInsItalic(...n)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Mg, [r("span", { onClick: t[2] || (t[2] = (...n) => e.actionInsOverline && e.actionInsOverline(...n)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Eg, [r("span", { onClick: t[3] || (t[3] = (...n) => e.actionInsUnderline && e.actionInsUnderline(...n)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", Bg, [r("span", { style: { "font-size": "16px" }, onClick: t[4] || (t[4] = (n) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", Ng, [r("span", { style: { "font-size": "16px" }, onClick: t[5] || (t[5] = (n) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", zg, [r("span", { style: { "font-size": "16px" }, onClick: t[6] || (t[6] = (n) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", Hg, [r("span", { style: { "font-size": "16px" }, onClick: t[7] || (t[7] = (n) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", Ag, [r("span", { style: { "font-size": "16px" }, onClick: t[8] || (t[8] = (n) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", Pg, [r("span", { style: { "font-size": "16px" }, onClick: t[9] || (t[9] = (n) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", jg, [r("span", { onClick: t[10] || (t[10] = (...n) => e.actionInsLine && e.actionInsLine(...n)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", Rg, [r("span", { style: { "font-size": "16px" }, onClick: t[11] || (t[11] = (...n) => e.actionInsQuote && e.actionInsQuote(...n)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", Ug, [r("span", { onClick: t[12] || (t[12] = (...n) => e.actionInsUl && e.actionInsUl(...n)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", Wg, [r("span", { onClick: t[13] || (t[13] = (...n) => e.actionInsOl && e.actionInsOl(...n)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", Yg, [r("span", { onClick: t[14] || (t[14] = (...n) => e.insertNotFinished && e.insertNotFinished(...n)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", Xg, [r("span", { onClick: t[15] || (t[15] = (...n) => e.insertFinished && e.insertFinished(...n)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", qg, [r("span", { onClick: t[16] || (t[16] = (...n) => e.actionInsLink && e.actionInsLink(...n)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", Kg, [r("span", { onClick: t[17] || (t[17] = (...n) => e.actionInsTable && e.actionInsTable(...n)), class: "iconfont icon-table" })])) : w("", !0), t[53] || (t[53] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 18, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[18] || (t[18] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[19] || (t[19] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, Gg)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", Zg, [r("span", { onClick: t[20] || (t[20] = (n) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", Qg, [r("span", { onClick: t[21] || (t[21] = (n) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Jg, [r("span", { onClick: t[22] || (t[22] = (n) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 22, name: "清空", onClick: t[23] || (t[23] = (n) => a.localVal = "") }, [...t[51] || (t[51] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 23, name: "保存", onClick: t[24] || (t[24] = (...n) => e.actionSaveSet && e.actionSaveSet(...n)) }, [...t[52] || (t[52] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0)]), r("ul", e0, [e.toolConfig.image ? (d(), u("li", t0, [r("span", { onClick: t[25] || (t[25] = (...n) => e.actionInsImage && e.actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", o0, [r("span", { onClick: t[26] || (t[26] = (...n) => e.actionChooseImage && e.actionChooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", a0, [r("span", { onClick: t[27] || (t[27] = (...n) => e.custom_actionInsImage && e.custom_actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", i0, [r("span", { onClick: t[28] || (t[28] = (...n) => e.custom_chooseImage && e.custom_chooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", l0, [r("span", { onClick: t[29] || (t[29] = (...n) => e.custom_chooseFile && e.custom_chooseFile(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", n0, [r("div", null, [r("span", { class: "iconfont icon-theme", onClick: t[30] || (t[30] = (n) => a.themeSlideDown = !a.themeSlideDown) }), r("ul", { class: z({ active: a.themeSlideDown }), onMouseleave: t[35] || (t[35] = (n) => a.themeSlideDown = !1) }, [r("li", { onClick: t[31] || (t[31] = (n) => e.setThemes("light")) }, "Light"), r("li", { onClick: t[32] || (t[32] = (n) => e.setThemes("dark")) }, "VS Code"), r("li", { onClick: t[33] || (t[33] = (n) => e.setThemes("oneDark")) }, "Atom OneDark"), r("li", { onClick: t[34] || (t[34] = (n) => e.setThemes("gitHub")) }, "GitHub")], 34)])])) : w("", !0), M(r("li", s0, [r("span", { class: "iconfont icon-daoru", onClick: t[36] || (t[36] = (...n) => e.actionImportFile && e.actionImportFile(...n)) }), r("input", { type: "file", onChange: t[37] || (t[37] = (n) => e.actionImportFile(n)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", r0, [r("span", { class: "iconfont icon-download", onClick: t[38] || (t[38] = (...n) => e.actionExportFile && e.actionExportFile(...n)) })], 512), [[A, e.toolConfig.exportmd]]), t[54] || (t[54] = r("li", { class: "empty" }, null, -1)), e.toolConfig.fullscreen && !a.fullscreen ? (d(), u("li", c0, [r("span", { onClick: t[39] || (t[39] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-fullscreen" })])) : w("", !0), e.toolConfig.fullscreen && a.fullscreen ? (d(), u("li", d0, [r("span", { onClick: t[40] || (t[40] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-quite" })])) : w("", !0)])])), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[41] || (t[41] = (n) => e.actionPreview = !1) }, [...t[55] || (t[55] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(r("div", { class: "markdown-editor", ref: "markdownEditor", onScroll: t[47] || (t[47] = (...n) => i.markdownScroll && i.markdownScroll(...n)), onMouseenter: t[48] || (t[48] = (n) => i.mousescrollSide("markdown")) }, [r("ul", { class: "index", ref: "index", style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, [(d(!0), u(F, null, E(a.indexLenth, (n) => (d(), u("li", { key: n }, T(n), 1))), 128))], 4), M(r("textarea", { "onUpdate:modelValue": t[42] || (t[42] = (n) => a.localVal = n), ref: "textarea", onKeydown: t[43] || (t[43] = Oe((...n) => i.tab && i.tab(...n), ["tab"])), onKeyup: [t[44] || (t[44] = Oe((...n) => i.enter && i.enter(...n), ["enter"])), t[45] || (t[45] = Oe((...n) => i.onDelete && i.onDelete(...n), ["delete"]))], onMouseenter: t[46] || (t[46] = (n) => i.mousescrollSide("left")), style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, null, 36), [[_n, a.localVal]])], 544), [[A, !e.preview]]), M(r("div", { class: z("markdown-preview " + ("markdown-theme-" + e.codemrrConfig.theme)), ref: "preview", onScroll: t[49] || (t[49] = (...n) => i.previewScroll && i.previewScroll(...n)), onMouseenter: t[50] || (t[50] = (n) => i.mousescrollSide("right")) }, [r("div", { innerHTML: a.html, ref: "previewInner" }, null, 8, h0)], 34), [[A, e.preview ? e.preview : e.split]])], 4)], 6);
3778
- }], ["__scopeId", "data-v-36211c6f"]]), p0 = ["innerHTML"], Bo = S({ name: "cvMarkdownNostyle", props: { modelValue: { type: String, default: "" }, initValue: { type: String, default: "" } }, data: () => ({ localHtml: "", localVal: "" }), watch: { initValue() {
3792
+ } } }, Dg = { key: 0, title: "头部工具栏" }, $g = { class: "cv-editor-toolbars" }, Og = { key: 0, name: "粗体" }, Fg = { key: 1, name: "斜体" }, Mg = { key: 2, name: "删除线" }, Eg = { key: 3, name: "下划线" }, Ng = { key: 4, name: "标题1" }, Bg = { key: 5, name: "标题2" }, zg = { key: 6, name: "标题3" }, Hg = { key: 7, name: "标题4" }, Ag = { key: 8, name: "标题5" }, Pg = { key: 9, name: "标题6" }, jg = { key: 10, name: "分割线" }, Rg = { key: 11, name: "引用" }, Ug = { key: 12, name: "无序列表" }, Wg = { key: 13, name: "有序列表" }, Yg = { key: 14, name: "未完成列表" }, Xg = { key: 15, name: "已完成列表" }, qg = { key: 16, name: "链接" }, Kg = { key: 17, name: "表格" }, Gg = ["name"], Zg = { key: 19, name: "全屏编辑" }, Qg = { key: 20, name: "分屏显示" }, Jg = { key: 21, name: "预览" }, e0 = { class: "cv-editor-toolbars" }, t0 = { key: 0, name: "图片" }, o0 = { key: 1, name: "本地图片" }, a0 = { key: 2, name: "图片空间" }, i0 = { key: 3, name: "上传图片" }, l0 = { key: 4, name: "上传文件" }, n0 = { key: 5, class: "shift-theme", name: "代码块主题" }, s0 = { name: "导入文件", class: "import-file" }, r0 = { name: "保存到本地" }, c0 = { key: 6, name: "全屏" }, d0 = { key: 7, name: "退出全屏" }, h0 = ["innerHTML"], Eo = S(Lg, [["render", function(e, t, o, l, a, i) {
3793
+ return d(), u("div", { class: z(`markdown ${a.fullscreen ? "fullscreen" : ""} ${o.bordered ? "border" : ""}`), ref: "markdown", style: H({ width: o.width + (typeof o.width == "string" ? "" : "px"), height: o.height + (typeof o.height == "string" ? "" : "px") }) }, [e.actionPreview ? w("", !0) : (d(), u("div", Dg, [r("ul", $g, [r("li", null, [D(e.$slots, "title", {}, void 0, !0)]), e.toolConfig.strong ? (d(), u("li", Og, [r("span", { onClick: t[0] || (t[0] = (...n) => e.actionInsStrong && e.actionInsStrong(...n)), class: "iconfont icon-bold" })])) : w("", !0), e.toolConfig.italic ? (d(), u("li", Fg, [r("span", { onClick: t[1] || (t[1] = (...n) => e.actionInsItalic && e.actionInsItalic(...n)), class: "iconfont icon-italic" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Mg, [r("span", { onClick: t[2] || (t[2] = (...n) => e.actionInsOverline && e.actionInsOverline(...n)), class: "iconfont icon-overline" })])) : w("", !0), e.toolConfig.overline ? (d(), u("li", Eg, [r("span", { onClick: t[3] || (t[3] = (...n) => e.actionInsUnderline && e.actionInsUnderline(...n)), class: "iconfont icon-under-line" })])) : w("", !0), e.toolConfig.h1 ? (d(), u("li", Ng, [r("span", { style: { "font-size": "16px" }, onClick: t[4] || (t[4] = (n) => e.actionInsTitle(1)) }, "h1")])) : w("", !0), e.toolConfig.h2 ? (d(), u("li", Bg, [r("span", { style: { "font-size": "16px" }, onClick: t[5] || (t[5] = (n) => e.actionInsTitle(2)) }, "h2")])) : w("", !0), e.toolConfig.h3 ? (d(), u("li", zg, [r("span", { style: { "font-size": "16px" }, onClick: t[6] || (t[6] = (n) => e.actionInsTitle(3)) }, "h3")])) : w("", !0), e.toolConfig.h4 ? (d(), u("li", Hg, [r("span", { style: { "font-size": "16px" }, onClick: t[7] || (t[7] = (n) => e.actionInsTitle(4)) }, "h4")])) : w("", !0), e.toolConfig.h5 ? (d(), u("li", Ag, [r("span", { style: { "font-size": "16px" }, onClick: t[8] || (t[8] = (n) => e.actionInsTitle(5)) }, "h5")])) : w("", !0), e.toolConfig.h6 ? (d(), u("li", Pg, [r("span", { style: { "font-size": "16px" }, onClick: t[9] || (t[9] = (n) => e.actionInsTitle(6)) }, "h6")])) : w("", !0), e.toolConfig.hr ? (d(), u("li", jg, [r("span", { onClick: t[10] || (t[10] = (...n) => e.actionInsLine && e.actionInsLine(...n)), class: "iconfont icon-horizontal" })])) : w("", !0), e.toolConfig.quote ? (d(), u("li", Rg, [r("span", { style: { "font-size": "16px" }, onClick: t[11] || (t[11] = (...n) => e.actionInsQuote && e.actionInsQuote(...n)), class: "iconfont icon-quote" })])) : w("", !0), e.toolConfig.ul ? (d(), u("li", Ug, [r("span", { onClick: t[12] || (t[12] = (...n) => e.actionInsUl && e.actionInsUl(...n)), class: "iconfont icon-ul" })])) : w("", !0), e.toolConfig.ol ? (d(), u("li", Wg, [r("span", { onClick: t[13] || (t[13] = (...n) => e.actionInsOl && e.actionInsOl(...n)), class: "iconfont icon-ol" })])) : w("", !0), e.toolConfig.notChecked ? (d(), u("li", Yg, [r("span", { onClick: t[14] || (t[14] = (...n) => e.insertNotFinished && e.insertNotFinished(...n)), class: "iconfont icon-checked-false" })])) : w("", !0), e.toolConfig.checked ? (d(), u("li", Xg, [r("span", { onClick: t[15] || (t[15] = (...n) => e.insertFinished && e.insertFinished(...n)), class: "iconfont icon-checked" })])) : w("", !0), e.toolConfig.link ? (d(), u("li", qg, [r("span", { onClick: t[16] || (t[16] = (...n) => e.actionInsLink && e.actionInsLink(...n)), class: "iconfont icon-link" })])) : w("", !0), e.toolConfig.table ? (d(), u("li", Kg, [r("span", { onClick: t[17] || (t[17] = (...n) => e.actionInsTable && e.actionInsTable(...n)), class: "iconfont icon-table" })])) : w("", !0), t[53] || (t[53] = r("li", { class: "empty" }, null, -1)), e.toolConfig.scrollSync ? (d(), u("li", { key: 18, name: e.actionScrollSync ? "同步滚动:开" : "同步滚动:关" }, [M(r("span", { onClick: t[18] || (t[18] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-on" }, null, 512), [[A, e.actionScrollSync]]), M(r("span", { onClick: t[19] || (t[19] = (n) => e.actionScrollSync = !e.actionScrollSync), class: "iconfont icon-off" }, null, 512), [[A, !e.actionScrollSync]])], 8, Gg)) : w("", !0), e.toolConfig.split && e.actionSplit ? (d(), u("li", Zg, [r("span", { onClick: t[20] || (t[20] = (n) => e.actionSplit = !1), class: "iconfont icon-md" })])) : w("", !0), e.toolConfig.split && !e.actionSplit ? (d(), u("li", Qg, [r("span", { onClick: t[21] || (t[21] = (n) => e.actionSplit = !0), class: "iconfont icon-group" })])) : w("", !0), e.toolConfig.preview ? (d(), u("li", Jg, [r("span", { onClick: t[22] || (t[22] = (n) => e.actionPreview = !0), class: "iconfont icon-preview" })])) : w("", !0), e.toolConfig.clear ? (d(), u("li", { key: 22, name: "清空", onClick: t[23] || (t[23] = (n) => a.localVal = "") }, [...t[51] || (t[51] = [r("span", { class: "iconfont icon-clear" }, null, -1)])])) : w("", !0), e.toolConfig.save ? (d(), u("li", { key: 23, name: "保存", onClick: t[24] || (t[24] = (...n) => e.actionSaveSet && e.actionSaveSet(...n)) }, [...t[52] || (t[52] = [r("span", { class: "iconfont icon-save" }, null, -1)])])) : w("", !0)]), r("ul", e0, [e.toolConfig.image ? (d(), u("li", t0, [r("span", { onClick: t[25] || (t[25] = (...n) => e.actionInsImage && e.actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.uploadImage ? (d(), u("li", o0, [r("span", { onClick: t[26] || (t[26] = (...n) => e.actionChooseImage && e.actionChooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_image ? (d(), u("li", a0, [r("span", { onClick: t[27] || (t[27] = (...n) => e.custom_actionInsImage && e.custom_actionInsImage(...n)), class: "iconfont icon-img" })])) : w("", !0), e.toolConfig.custom_uploadImage ? (d(), u("li", i0, [r("span", { onClick: t[28] || (t[28] = (...n) => e.custom_chooseImage && e.custom_chooseImage(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.custom_uploadFile ? (d(), u("li", l0, [r("span", { onClick: t[29] || (t[29] = (...n) => e.custom_chooseFile && e.custom_chooseFile(...n)), class: "iconfont icon-upload-img" })])) : w("", !0), e.toolConfig.theme ? (d(), u("li", n0, [r("div", null, [r("span", { class: "iconfont icon-theme", onClick: t[30] || (t[30] = (n) => a.themeSlideDown = !a.themeSlideDown) }), r("ul", { class: z({ active: a.themeSlideDown }), onMouseleave: t[35] || (t[35] = (n) => a.themeSlideDown = !1) }, [r("li", { onClick: t[31] || (t[31] = (n) => e.setThemes("light")) }, "Light"), r("li", { onClick: t[32] || (t[32] = (n) => e.setThemes("dark")) }, "VS Code"), r("li", { onClick: t[33] || (t[33] = (n) => e.setThemes("oneDark")) }, "Atom OneDark"), r("li", { onClick: t[34] || (t[34] = (n) => e.setThemes("gitHub")) }, "GitHub")], 34)])])) : w("", !0), M(r("li", s0, [r("span", { class: "iconfont icon-daoru", onClick: t[36] || (t[36] = (...n) => e.actionImportFile && e.actionImportFile(...n)) }), r("input", { type: "file", onChange: t[37] || (t[37] = (n) => e.actionImportFile(n)), accept: "text/markdown" }, null, 32)], 512), [[A, e.toolConfig.importmd]]), M(r("li", r0, [r("span", { class: "iconfont icon-download", onClick: t[38] || (t[38] = (...n) => e.actionExportFile && e.actionExportFile(...n)) })], 512), [[A, e.toolConfig.exportmd]]), t[54] || (t[54] = r("li", { class: "empty" }, null, -1)), e.toolConfig.fullscreen && !a.fullscreen ? (d(), u("li", c0, [r("span", { onClick: t[39] || (t[39] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-fullscreen" })])) : w("", !0), e.toolConfig.fullscreen && a.fullscreen ? (d(), u("li", d0, [r("span", { onClick: t[40] || (t[40] = (n) => a.fullscreen = !a.fullscreen), class: "iconfont icon-quite" })])) : w("", !0)])])), M(r("div", { title: "关闭预览按钮", class: "close-preview", onClick: t[41] || (t[41] = (n) => e.actionPreview = !1) }, [...t[55] || (t[55] = [r("span", { class: "iconfont icon-close" }, null, -1)])], 512), [[A, e.actionPreview]]), r("div", { title: "编辑器", class: "cv-editor-markdown-main", style: H({ background: e.actionPreview ? "#fff" : "" }) }, [M(r("div", { class: "markdown-editor", ref: "markdownEditor", onScroll: t[47] || (t[47] = (...n) => i.markdownScroll && i.markdownScroll(...n)), onMouseenter: t[48] || (t[48] = (n) => i.mousescrollSide("markdown")) }, [r("ul", { class: "index", ref: "index", style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, [(d(!0), u(F, null, E(a.indexLenth, (n) => (d(), u("li", { key: n }, T(n), 1))), 128))], 4), M(r("textarea", { "onUpdate:modelValue": t[42] || (t[42] = (n) => a.localVal = n), ref: "textarea", onKeydown: t[43] || (t[43] = Oe((...n) => i.tab && i.tab(...n), ["tab"])), onKeyup: [t[44] || (t[44] = Oe((...n) => i.enter && i.enter(...n), ["enter"])), t[45] || (t[45] = Oe((...n) => i.onDelete && i.onDelete(...n), ["delete"]))], onMouseenter: t[46] || (t[46] = (n) => i.mousescrollSide("left")), style: H({ height: a.textareaHeight ? `${a.textareaHeight}px` : "100%" }) }, null, 36), [[_n, a.localVal]])], 544), [[A, !e.preview]]), M(r("div", { class: z("markdown-preview " + ("markdown-theme-" + e.codemrrConfig.theme)), ref: "preview", onScroll: t[49] || (t[49] = (...n) => i.previewScroll && i.previewScroll(...n)), onMouseenter: t[50] || (t[50] = (n) => i.mousescrollSide("right")) }, [r("div", { innerHTML: a.html, ref: "previewInner" }, null, 8, h0)], 34), [[A, e.preview ? e.preview : e.split]])], 4)], 6);
3794
+ }], ["__scopeId", "data-v-36211c6f"]]), p0 = ["innerHTML"], No = S({ name: "cvMarkdownNostyle", props: { modelValue: { type: String, default: "" }, initValue: { type: String, default: "" } }, data: () => ({ localHtml: "", localVal: "" }), watch: { initValue() {
3779
3795
  this.initNewCreate();
3780
3796
  } }, created() {
3781
3797
  this.localVal = this.initValue || "";
@@ -3797,8 +3813,8 @@ Fo.install = function(e) {
3797
3813
  e.component(Mo.name, Mo);
3798
3814
  }, Eo.install = function(e) {
3799
3815
  e.component(Eo.name, Eo);
3800
- }, Bo.install = function(e) {
3801
- e.component(Bo.name, Bo);
3816
+ }, No.install = function(e) {
3817
+ e.component(No.name, No);
3802
3818
  }, Do.install = function(e) {
3803
3819
  e.component(Do.name, Do);
3804
3820
  }, $o.install = function(e) {
@@ -3808,7 +3824,7 @@ Fo.install = function(e) {
3808
3824
  };
3809
3825
  class u0 {
3810
3826
  constructor(t, o) {
3811
- this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = B(!1), this.boxProps = B({}), this.boxOptions = ke({ closeIsConfirm: !1, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Tl(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
3827
+ this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = N(!1), this.boxProps = N({}), this.boxOptions = ke({ closeIsConfirm: !1, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Ll(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
3812
3828
  for (const l in this.bodyFunc) if (this.bodyFunc.hasOwnProperty(l) && !l.startsWith("on")) {
3813
3829
  const a = "on" + l.charAt(0).toUpperCase() + l.slice(1);
3814
3830
  this.bodyFunc[a] = this.bodyFunc[l], delete this.bodyFunc[l];
@@ -3842,7 +3858,7 @@ class u0 {
3842
3858
  t.close();
3843
3859
  }, p = typeof t.boxOptions.beforeClose == "function" ? t.boxOptions.beforeClose : h;
3844
3860
  return b(un, { ...t.boxProps.value, modelValue: t.boxShow.value, beforeClose: (m) => {
3845
- t.boxOptions.closeIsConfirm ? $a.confirm("确认关闭?", "提示").then((f) => {
3861
+ t.boxOptions.closeIsConfirm ? Oa.confirm("确认关闭?", "提示").then((f) => {
3846
3862
  p(h);
3847
3863
  }).catch((f) => {
3848
3864
  h();
@@ -3872,7 +3888,7 @@ function La(e) {
3872
3888
  }
3873
3889
  class m0 {
3874
3890
  constructor(t, o) {
3875
- this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = B(!1), this.boxProps = B({}), this.boxOptions = ke({ closeIsConfirm: !0, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Tl(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
3891
+ this.WinVue = t, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = N(!1), this.boxProps = N({}), this.boxOptions = ke({ closeIsConfirm: !0, closeIsDestroy: !0, width: "40%", title: "默认标题" }, o.diyOpts), this.boxProps.value = Ll(this.boxOptions, ["closeIsConfirm", "closeIsDestroy"]), this.bodyComponent = o.component || "", this.bodyOptions = ke({}, o.props), this.bodyFunc = ke({}, o.onFunc);
3876
3892
  for (const l in this.bodyFunc) if (this.bodyFunc.hasOwnProperty(l) && !l.startsWith("on")) {
3877
3893
  const a = "on" + l.charAt(0).toUpperCase() + l.slice(1);
3878
3894
  this.bodyFunc[a] = this.bodyFunc[l], delete this.bodyFunc[l];
@@ -3907,7 +3923,7 @@ class m0 {
3907
3923
  t.close();
3908
3924
  }, p = typeof t.boxOptions.beforeClose == "function" ? t.boxOptions.beforeClose : h;
3909
3925
  return b(mn, { ...t.boxProps.value, modelValue: t.boxShow.value, beforeClose: (m) => {
3910
- t.boxOptions.closeIsConfirm ? $a.confirm("确认关闭?", "提示").then((f) => {
3926
+ t.boxOptions.closeIsConfirm ? Oa.confirm("确认关闭?", "提示").then((f) => {
3911
3927
  p(h);
3912
3928
  }).catch((f) => {
3913
3929
  h();
@@ -3948,7 +3964,7 @@ function f0(e, t = "", o = {}, l = {}, a = null) {
3948
3964
  } });
3949
3965
  return i;
3950
3966
  }
3951
- var v0 = [et, tt, ot, at, it, lt, nt, st, rt, ct, qn, dt, ht, pt, ut, mt, gt, bt, yt, ft, vt, Ct, wt, kt, Vt, xt, St, Lt, _t, It, Tt, Ft, Mt, Et, Bt, Nt, zt, Ht, At, Pt, jt, Rt, Ut, Wt, Xt, qt, Kt, Gt, Zt, oo, ao, Yt, eo, to, lo, io, no, fo, vo, bo, yo, Co, wo, so, ro, co, ho, po, uo, mo, go, Qt, Jt, $t, Ot, ko, xo, So, _o, Vo, Io, To, Do, $o, Oo, Fo, Mo, Eo, Bo];
3967
+ var v0 = [et, tt, ot, at, it, lt, nt, st, rt, ct, qn, dt, ht, pt, ut, mt, gt, bt, yt, ft, vt, Ct, wt, kt, Vt, xt, St, Lt, _t, It, Tt, Ft, Mt, Et, Nt, Bt, zt, Ht, At, Pt, jt, Rt, Ut, Wt, Xt, qt, Kt, Gt, Zt, oo, ao, Yt, eo, to, lo, io, no, fo, vo, bo, yo, Co, wo, so, ro, co, ho, po, uo, mo, go, Qt, Jt, $t, Ot, ko, xo, So, _o, Vo, Io, To, Do, $o, Oo, Fo, Mo, Eo, No];
3952
3968
  const Yl = function(e, t = {}) {
3953
3969
  v0.forEach((o) => {
3954
3970
  e.component(o.name, o);