@10yun/cv-pc-ui 0.4.8 → 0.4.10

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,4 +1,4 @@
1
- /*! cvPcUI v0.4.8 */
1
+ /*! cvPcUI v0.4.10 */
2
2
  import { ClickOutside as e, ElAutocomplete as t, ElAvatar as n, ElBadge as r, ElButton as i, ElButton as a, ElCascader as o, ElCheckbox as s, ElCheckboxButton as c, ElCheckboxGroup as l, ElDatePicker as u, ElDialog as d, ElDrawer as f, ElForm as p, ElFormItem as m, ElIcon as ee, ElImage as te, ElInput as ne, ElInput as h, ElInputNumber as re, ElMessage as ie, ElMessage as g, ElMessageBox as ae, ElMessageBox as oe, ElOption as se, ElPagination as ce, ElPopover as le, ElScrollbar as ue, ElSelect as de, ElSwitch as fe, ElTable as pe, ElTableColumn as _, ElTag as me, ElTimePicker as he } from "element-plus";
3
3
  import { Fragment as v, Transition as ge, TransitionGroup as _e, computed as ve, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as ye, createTextVNode as C, createVNode as w, defineComponent as be, getCurrentInstance as xe, getCurrentScope as Se, guardReactiveProps as T, h as Ce, inject as we, markRaw as Te, mergeProps as E, nextTick as Ee, normalizeClass as D, normalizeProps as O, normalizeStyle as k, onBeforeUnmount as De, onMounted as Oe, onScopeDispose as ke, onUnmounted as Ae, openBlock as A, provide as je, reactive as Me, ref as j, render as Ne, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as Pe, resolveDynamicComponent as Fe, shallowReadonly as Ie, shallowRef as Le, toDisplayString as F, toHandlers as Re, toRaw as ze, toRefs as Be, toValue as Ve, unref as I, useCssVars as He, useSlots as Ue, vModelText as We, vShow as L, watch as Ge, withCtx as R, withDirectives as z, withKeys as Ke, withModifiers as qe } from "vue";
4
4
  import { basicSetup as Je } from "codemirror";
@@ -3656,7 +3656,7 @@ var ia = {
3656
3656
  this.$message(e);
3657
3657
  },
3658
3658
  getCode() {
3659
- this.localAccountVal ? /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localAccountVal) ? this.apiFunc ? (this.btnDisabled = !0, !this.btnIntervalObj && this.btnDisabled && (this.btnText = "请稍后...", this.apiFunc ? this.apiFunc({
3659
+ this.localAccountVal ? /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localAccountVal) ? this.apiFunc ? (this.btnDisabled = !0, this.btnIntervalObj || this.btnDisabled && (this.btnText = "请稍后...", this.apiFunc ? this.apiFunc({
3660
3660
  cto_sms_type: "alterMobile",
3661
3661
  sendCode: "发送验证码",
3662
3662
  [this.accountFiled]: this.localAccountVal
@@ -3865,21 +3865,28 @@ var fa = {
3865
3865
  };
3866
3866
  // packages/upload/libs/utils.js
3867
3867
  function pa(e) {
3868
- let t = [], n = Object.prototype.toString.call(e);
3869
- if (n === "[object String]") t.push(ma(e));
3870
- else if (n === "[object Object]") e.name && e.url && t.push(e);
3871
- else if (n === "[object Array]") for (let n in e) {
3872
- let r = e[n], i = Object.prototype.toString.call(r);
3873
- i === "[object String]" ? t.push(ma(r)) : i === "[object Object]" && r.name && r.url && t.push(r);
3874
- }
3875
- return t;
3868
+ let t = [], n = (e) => {
3869
+ let r = Object.prototype.toString.call(e);
3870
+ if (r === "[object String]") e && t.push(ma(e));
3871
+ else if (r === "[object Object]") {
3872
+ if (!e.url) return;
3873
+ let n = ma(e.url);
3874
+ t.push({
3875
+ ...e,
3876
+ name: e.name || n.name,
3877
+ type: e.type || n.type,
3878
+ status: e.status || "success"
3879
+ });
3880
+ } else r === "[object Array]" && e.forEach(n);
3881
+ };
3882
+ return n(e), t;
3876
3883
  }
3877
3884
  function ma(e) {
3878
- let t = e.lastIndexOf("/"), n = e.substring(t + 1, e.length), r = "";
3879
- return n.lastIndexOf(".") > -1 && (r = n.slice(n.lastIndexOf(".") + 1), r = "image/" + r), {
3880
- name: n,
3881
- url: e,
3882
- type: r,
3885
+ let t = String(e || ""), n = t.lastIndexOf("/"), r = t.substring(n + 1, t.length), i = "";
3886
+ return r.lastIndexOf(".") > -1 && (i = $r(r.slice(r.lastIndexOf(".") + 1))), {
3887
+ name: r,
3888
+ url: t,
3889
+ type: i,
3883
3890
  status: "success"
3884
3891
  };
3885
3892
  }
@@ -3971,15 +3978,16 @@ async function xa(e, t, n, r, i) {
3971
3978
  if (!n || typeof n != "function") return g.error("签名方法错误"), Promise.reject();
3972
3979
  if (Ca(t) === Sa.sts) return g.error(`签名类型 ${t} 不支持普通上传组件(仅分片组件 cvUploadOss 可用)`), Promise.reject(/* @__PURE__ */ Error(`unsupported signature type: ${t}`));
3973
3980
  try {
3974
- let a = ei(), o = Qr(e.type), s = `${a}.${o}`, c = await n({
3981
+ let a = ei(), o = Qr(e.type), s = `${a}.${o}`, c = e && e.name || r && r.original_name || "", l = await n({
3975
3982
  upload_type: t,
3976
3983
  ...r,
3984
+ original_name: c,
3977
3985
  save_extension: o
3978
3986
  }).then((e) => e.data || {}).catch((e) => (g.error("签名失败"), Promise.reject()));
3979
- return c ? (c.name && (s = `${c.name}.${o}`), e instanceof Blob && (e = new File([e], s, {
3987
+ return l ? (l.name && (s = `${l.name}.${o}`), e instanceof Blob && (e = new File([e], s, {
3980
3988
  type: e.type,
3981
3989
  lastModified: Date.now()
3982
- })), e ? await ba(e, c, null, i) : Promise.reject(/* @__PURE__ */ Error("无有效上传文件"))) : Promise.reject();
3990
+ })), e ? await ba(e, l, null, i) : Promise.reject(/* @__PURE__ */ Error("无有效上传文件"))) : Promise.reject();
3983
3991
  } catch {
3984
3992
  return Promise.reject();
3985
3993
  }
@@ -3991,8 +3999,22 @@ var Sa = {
3991
3999
  function Ca(e) {
3992
4000
  return e == null || e === "" ? Sa.form : e === Sa.sts || e === "oss_upload1" || e === 1 || e === "1" ? Sa.sts : e === Sa.form || e === 2 || e === "2" ? Sa.form : e;
3993
4001
  }
4002
+ function wa(e, t) {
4003
+ return pa(e || []).concat(pa(t || []));
4004
+ }
4005
+ function Ta(e, t) {
4006
+ let n = e || {}, r = t || {}, i = n.cdn_full_path || n.url || n.full_path || "", a = ma(i);
4007
+ return {
4008
+ name: n.name || n.filelog_original_name || r.name || a.name,
4009
+ url: i,
4010
+ size: n.size ?? n.filelog_size ?? r.size ?? "",
4011
+ type: n.type || n.filelog_type || r.type || a.type,
4012
+ ...n.size_auto ? { size_auto: n.size_auto } : {},
4013
+ status: "success"
4014
+ };
4015
+ }
3994
4016
  // packages/upload/comp/UploadCrop.vue
3995
- var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box" }, Ea = { class: "cv-upload-crop-left-opt" }, Da = { class: "cv-upload-crop-right-box" }, Oa = { class: "cv-upload-crop-preview" }, ka = {
4017
+ var Ea = { class: "cv-upload-crop-box" }, Da = { class: "cv-upload-crop-left-box" }, Oa = { class: "cv-upload-crop-left-opt" }, ka = { class: "cv-upload-crop-right-box" }, Aa = { class: "cv-upload-crop-preview" }, ja = {
3996
4018
  title: "头像上传",
3997
4019
  name: "cvUploadAvatar",
3998
4020
  mixins: [fa],
@@ -4119,7 +4141,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4119
4141
  "loading",
4120
4142
  "disabled"
4121
4143
  ])]),
4122
- default: R(() => [z((A(), x("div", wa, [S("div", Ta, [t.cropVisible && t.CropperComp ? (A(), y(Fe(t.CropperComp), {
4144
+ default: R(() => [z((A(), x("div", Ea, [S("div", Da, [t.cropVisible && t.CropperComp ? (A(), y(Fe(t.CropperComp), {
4123
4145
  key: 0,
4124
4146
  ref: "cvAvatartCropper",
4125
4147
  class: "cv-advanced-cropper",
@@ -4137,7 +4159,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4137
4159
  "src",
4138
4160
  "stencil-size",
4139
4161
  "onChange"
4140
- ])) : b("", !0), S("div", Ea, [
4162
+ ])) : b("", !0), S("div", Oa, [
4141
4163
  N(t.$slots, "default"),
4142
4164
  w(a, {
4143
4165
  effect: "dark",
@@ -4194,7 +4216,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4194
4216
  })]),
4195
4217
  _: 1
4196
4218
  })
4197
- ])]), S("div", Da, [S("div", Oa, [t.PreviewComp && t.cropPreviews.image ? (A(), y(Fe(t.PreviewComp), {
4219
+ ])]), S("div", ka, [S("div", Aa, [t.PreviewComp && t.cropPreviews.image ? (A(), y(Fe(t.PreviewComp), {
4198
4220
  key: 0,
4199
4221
  image: t.cropPreviews.image,
4200
4222
  coordinates: t.cropPreviews.coordinates,
@@ -4222,7 +4244,11 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4222
4244
  default: ""
4223
4245
  },
4224
4246
  initValue: {
4225
- type: [String],
4247
+ type: [
4248
+ String,
4249
+ Object,
4250
+ Array
4251
+ ],
4226
4252
  default: ""
4227
4253
  },
4228
4254
  allowFileSize: {
@@ -4255,6 +4281,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4255
4281
  return {
4256
4282
  localValue: "",
4257
4283
  localList: [],
4284
+ cropFileName: "",
4258
4285
  upAccept: "image/*"
4259
4286
  };
4260
4287
  },
@@ -4273,6 +4300,10 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4273
4300
  showFileList: !1
4274
4301
  };
4275
4302
  },
4303
+ avatarSrc() {
4304
+ let e = this.initValue;
4305
+ return e ? typeof e == "string" ? e : Array.isArray(e) ? e[0] && e[0].url || "" : e.url || "" : "";
4306
+ },
4276
4307
  showStyle() {
4277
4308
  return {
4278
4309
  width: this.showSize + "px",
@@ -4289,7 +4320,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4289
4320
  },
4290
4321
  methods: {
4291
4322
  _init_parse() {
4292
- this.localValue = this.initValue || "";
4323
+ this.localValue = this.avatarSrc || "";
4293
4324
  },
4294
4325
  cropDialogOpen() {
4295
4326
  this.cropShow = !0, this.$nextTick(() => {
@@ -4297,7 +4328,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4297
4328
  });
4298
4329
  },
4299
4330
  initBeforeUpload(e) {
4300
- if (!this._commonBeforeUpload(e)) return this.upIngLoading = !1, !1;
4331
+ if (this.cropFileName = e && e.name || "", !this._commonBeforeUpload(e)) return this.upIngLoading = !1, !1;
4301
4332
  if (this.crop) {
4302
4333
  let t = new FileReader();
4303
4334
  t.readAsDataURL(e), t.onload = () => {
@@ -4306,7 +4337,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4306
4337
  }
4307
4338
  },
4308
4339
  async onHttpRequest(e) {
4309
- let { file: t } = e;
4340
+ let t = this._with_crop_name(e.file);
4310
4341
  this.upIngLoading = !0, this.upIngPercent = 0;
4311
4342
  let n = this.mergeAttrs.upResponseFn || null, r = this.mergeAttrs.signatureType || null, i = this.mergeAttrs.signatureFn || null, a = this.mergeAttrs.signatureParam || {};
4312
4343
  try {
@@ -4314,7 +4345,7 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4314
4345
  this.upIngPercent = e;
4315
4346
  }).then((e) => {
4316
4347
  n && typeof n == "function" && (e = n(e, t, this.localList) || e), this.$nextTick(() => {
4317
- this.$emit("update:modelValue", e.filelog_id), this.$emit("update:initValue", e.cdn_full_path);
4348
+ this.$emit("update:modelValue", e.filelog_id), this.$emit("update:initValue", Ta(e, t));
4318
4349
  }), g.success("上传成功"), this.upIngPercent = 0, this.cropShow = !1;
4319
4350
  }).catch(() => {
4320
4351
  g.error("上传失败"), this.upIngPercent = 0;
@@ -4322,28 +4353,34 @@ var wa = { class: "cv-upload-crop-box" }, Ta = { class: "cv-upload-crop-left-box
4322
4353
  } finally {
4323
4354
  this.upIngLoading = !1, this._clearUploadFiles();
4324
4355
  }
4356
+ },
4357
+ _with_crop_name(e) {
4358
+ return !e || e.name || !this.cropFileName ? e : new File([e], this.cropFileName, {
4359
+ type: e.type,
4360
+ lastModified: Date.now()
4361
+ });
4325
4362
  }
4326
4363
  }
4327
- }, Aa = ["src"];
4328
- function ja(e, t, n, r, i, a) {
4364
+ }, Ma = ["src"];
4365
+ function Na(e, t, n, r, i, a) {
4329
4366
  let o = P("upload-tip"), s = P("cv-icons"), c = P("el-button"), l = P("el-tooltip"), u = P("el-upload"), d = P("upload-crop");
4330
4367
  return A(), x("div", {
4331
4368
  class: "cv-upload-avatar-wrap",
4332
4369
  onClick: t[2] ||= (...e) => a.cropDialogOpen && a.cropDialogOpen(...e)
4333
4370
  }, [
4334
- n.initValue ? b("", !0) : (A(), x("div", {
4371
+ a.avatarSrc ? b("", !0) : (A(), x("div", {
4335
4372
  key: 0,
4336
4373
  class: "cv-upload-avatar-box cv-upload-avatar-empty",
4337
4374
  style: k(a.showStyle)
4338
4375
  }, [...t[3] ||= [S("div", { class: "cv-upload-avatar__text" }, "上传头像", -1)]], 4)),
4339
- n.initValue ? (A(), x("div", {
4376
+ a.avatarSrc ? (A(), x("div", {
4340
4377
  key: 1,
4341
4378
  class: "cv-upload-avatar-box",
4342
4379
  style: k(a.showStyle)
4343
4380
  }, [S("img", {
4344
4381
  class: "cv-upload-avatar__img",
4345
- src: n.initValue
4346
- }, null, 8, Aa)], 4)) : b("", !0),
4382
+ src: a.avatarSrc
4383
+ }, null, 8, Ma)], 4)) : b("", !0),
4347
4384
  w(o, E(e.tipAttr, {
4348
4385
  multiple: !1,
4349
4386
  limit: 1
@@ -4397,12 +4434,12 @@ function ja(e, t, n, r, i, a) {
4397
4434
  ])) : b("", !0)
4398
4435
  ]);
4399
4436
  }
4400
- var Ma = /*#__PURE__*/ H(ka, [["render", ja]]);
4437
+ var Pa = /*#__PURE__*/ H(ja, [["render", Na]]);
4401
4438
  // src/utils/value.js
4402
- function Na(e) {
4439
+ function Fa(e) {
4403
4440
  return e ? typeof e == "string" || typeof e == "number" ? [e] : Object.prototype.toString.call(e) === "[object Object]" ? [] : [...e] : [];
4404
4441
  }
4405
- function Pa(e, t) {
4442
+ function Ia(e, t) {
4406
4443
  let n = [];
4407
4444
  Array.isArray(e) && e.length > 0 && n.push(...e), Array.isArray(t) && t.length > 0 && n.push(...t), (typeof t == "string" || typeof t == "number") && n.push(t);
4408
4445
  let r = [];
@@ -4413,7 +4450,7 @@ function Pa(e, t) {
4413
4450
  return r;
4414
4451
  }
4415
4452
  // packages/upload/src/upload-image.vue
4416
- var Fa = {
4453
+ var La = {
4417
4454
  title: "图片上传",
4418
4455
  name: "cvUploadImage",
4419
4456
  mixins: [fa],
@@ -4432,7 +4469,8 @@ var Fa = {
4432
4469
  type: [
4433
4470
  String,
4434
4471
  Number,
4435
- Array
4472
+ Array,
4473
+ Object
4436
4474
  ],
4437
4475
  default: () => ""
4438
4476
  },
@@ -4532,8 +4570,8 @@ var Fa = {
4532
4570
  if (this.modelValue) {
4533
4571
  if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
4534
4572
  let e = String(this.modelValue).split(",").map((e) => e.trim());
4535
- this.localValue = Na(e);
4536
- } else this.localValue = Na(this.modelValue);
4573
+ this.localValue = Fa(e);
4574
+ } else this.localValue = Fa(this.modelValue);
4537
4575
  } else this.localValue = [];
4538
4576
  },
4539
4577
  _init_parse_list() {
@@ -4552,7 +4590,7 @@ var Fa = {
4552
4590
  this.upIngPercent = e;
4553
4591
  }).then((e) => {
4554
4592
  n && typeof n == "function" && (e = n(e, t, this.localList) || e), this.$nextTick(() => {
4555
- this.updateValue(e.filelog_id, e.cdn_full_path);
4593
+ this.updateValue(e.filelog_id, Ta(e, t));
4556
4594
  }), g.success("上传成功"), this.upIngLoading = !1, this.upIngPercent = 0;
4557
4595
  }).catch((e) => (this.upIngLoading = !1, this.upIngPercent = 0, Promise.reject(e)));
4558
4596
  } finally {
@@ -4561,16 +4599,12 @@ var Fa = {
4561
4599
  },
4562
4600
  updateValue(e, t) {
4563
4601
  if (this.isMultiValue) {
4564
- let t = Pa(this.localValue, e).join(",");
4565
- this.$emit("update:modelValue", t);
4566
- } else this.$emit("update:modelValue", e);
4567
- if (this.isMultiValue) {
4568
- let e = Pa(this.localList, t);
4569
- this.$emit("update:initValue", e);
4570
- } else this.$emit("update:initValue", t);
4602
+ let n = Ia(this.localValue, e).join(",");
4603
+ this.$emit("update:modelValue", n), this.$emit("update:initValue", wa(this.localList, t));
4604
+ } else this.$emit("update:modelValue", e), this.$emit("update:initValue", t);
4571
4605
  },
4572
4606
  handleItemPreview(e, t) {
4573
- e.raw, e.type.includes("image") ? (this.previewTitle = e.name, this.previewUrl = e.url, this.previewShow = !0) : window.open(e.url);
4607
+ e.raw, String(e.type || "").includes("image") ? (this.previewTitle = e.name, this.previewUrl = e.url, this.previewShow = !0) : window.open(e.url);
4574
4608
  },
4575
4609
  doRemove(e) {
4576
4610
  this.isMultiValue ? (this.localValue = this.localValue.filter((t, n) => n !== e), this.localList = this.localList.filter((t, n) => n !== e)) : (this.localValue = "", this.localList = []), this.updateValue(null, null);
@@ -4610,11 +4644,11 @@ var Fa = {
4610
4644
  },
4611
4645
  handleItemCrop(e, t) {}
4612
4646
  }
4613
- }, Ia = { class: "cv-upload-image cv-upload-common" }, La = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, Ra = ["tabindex"], za = { class: "el-upload-list__item-status-label" }, Ba = { class: "el-upload-list__item-actions" }, Va = ["onClick"], Ha = { class: "el-upload-list__item-delete" }, Ua = { class: "el-upload-list__item-delete" }, Wa = ["onClick"], Ga = { style: { margin: "0 auto" } }, Ka = ["src"];
4614
- function qa(e, t, n, r, i, a) {
4647
+ }, Ra = { class: "cv-upload-image cv-upload-common" }, za = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, Ba = ["tabindex"], Va = { class: "el-upload-list__item-status-label" }, Ha = { class: "el-upload-list__item-actions" }, Ua = ["onClick"], Wa = { class: "el-upload-list__item-delete" }, Ga = { class: "el-upload-list__item-delete" }, Ka = ["onClick"], qa = { style: { margin: "0 auto" } }, Ja = ["src"];
4648
+ function Ya(e, t, n, r, i, a) {
4615
4649
  let o = P("el-image"), s = P("cv-icons"), c = P("el-progress"), l = P("el-upload"), u = P("upload-tip"), d = P("el-dialog"), f = Pe("loading");
4616
- return A(), x("div", Ia, [
4617
- S("div", La, [(A(!0), x(v, null, M(i.localList, (e, t) => (A(), x("section", {
4650
+ return A(), x("div", Ra, [
4651
+ S("div", za, [(A(!0), x(v, null, M(i.localList, (e, t) => (A(), x("section", {
4618
4652
  class: "el-upload-list__item is-success",
4619
4653
  key: t,
4620
4654
  tabindex: t,
@@ -4631,25 +4665,25 @@ function qa(e, t, n, r, i, a) {
4631
4665
  "src",
4632
4666
  "style"
4633
4667
  ]),
4634
- S("label", za, [w(s, {
4668
+ S("label", Va, [w(s, {
4635
4669
  type: "actionCheck",
4636
4670
  color: "#ffffff",
4637
4671
  size: "12"
4638
4672
  })]),
4639
- S("span", Ba, [
4673
+ S("span", Ha, [
4640
4674
  S("span", {
4641
4675
  class: "el-upload-list__item-preview",
4642
4676
  onClick: (t) => a.handleItemPreview(e)
4643
4677
  }, [w(s, {
4644
4678
  type: "viewZoomIn",
4645
4679
  size: "20"
4646
- })], 8, Va),
4647
- S("span", Ha, [w(s, {
4680
+ })], 8, Ua),
4681
+ S("span", Wa, [w(s, {
4648
4682
  type: "actionDelete",
4649
4683
  size: "20",
4650
4684
  onClick: (n) => a.handleItemRemove(e, t)
4651
4685
  }, null, 8, ["onClick"])]),
4652
- S("span", Ua, [w(s, {
4686
+ S("span", Ga, [w(s, {
4653
4687
  type: "actionEdit",
4654
4688
  size: "20",
4655
4689
  onClick: (n) => a.handleItemEdit(e, t)
@@ -4661,9 +4695,9 @@ function qa(e, t, n, r, i, a) {
4661
4695
  }, [w(s, {
4662
4696
  type: "actionCrop",
4663
4697
  size: "20"
4664
- })], 8, Wa)) : b("", !0)
4698
+ })], 8, Ka)) : b("", !0)
4665
4699
  ])
4666
- ], 12, Ra))), 128)), a.showUpload ? (A(), y(l, E({
4700
+ ], 12, Ba))), 128)), a.showUpload ? (A(), y(l, E({
4667
4701
  key: 0,
4668
4702
  ref: "uploadHandleRef",
4669
4703
  class: "cv-upload-common-handle"
@@ -4705,16 +4739,16 @@ function qa(e, t, n, r, i, a) {
4705
4739
  title: i.previewTitle,
4706
4740
  "append-to-body": ""
4707
4741
  }, {
4708
- default: R(() => [S("div", Ga, [S("img", {
4742
+ default: R(() => [S("div", qa, [S("img", {
4709
4743
  width: "100%",
4710
4744
  src: i.previewUrl,
4711
4745
  style: { "max-width": "300px" }
4712
- }, null, 8, Ka)])]),
4746
+ }, null, 8, Ja)])]),
4713
4747
  _: 1
4714
4748
  }, 8, ["modelValue", "title"])
4715
4749
  ]);
4716
4750
  }
4717
- var Ja = /*#__PURE__*/ H(Fa, [["render", qa]]), Ya = {
4751
+ var Xa = /*#__PURE__*/ H(La, [["render", Ya]]), Za = {
4718
4752
  mdb: "access",
4719
4753
  accdb: "access",
4720
4754
  ai: "ai",
@@ -4799,11 +4833,11 @@ var Ja = /*#__PURE__*/ H(Fa, [["render", qa]]), Ya = {
4799
4833
  file: "file",
4800
4834
  css: "css"
4801
4835
  };
4802
- function Xa(e) {
4803
- return `https://10ui.cn/ions/type/${Ya[e]}.svg`;
4836
+ function Qa(e) {
4837
+ return `https://10ui.cn/ions/type/${Za[e]}.svg`;
4804
4838
  }
4805
4839
  // packages/upload/comp/UploadList.vue
4806
- var Za = {
4840
+ var $a = {
4807
4841
  name: "uploadList",
4808
4842
  props: {
4809
4843
  files: {
@@ -4827,10 +4861,10 @@ var Za = {
4827
4861
  },
4828
4862
  methods: {
4829
4863
  getExtension(e) {
4830
- return e.lastIndexOf(".") > -1 && Xa[e.slice(e.lastIndexOf(".") + 1).toLowerCase()] || Xa.file;
4864
+ return e && e.lastIndexOf(".") > -1 && Qa[e.slice(e.lastIndexOf(".") + 1).toLowerCase()] || Qa.file;
4831
4865
  },
4832
- getSize(e) {
4833
- return e && !isNaN(Number(e)) ? e : "";
4866
+ showSize(e) {
4867
+ return e && e.size_auto ? e.size_auto : e && e.size ? ga(e.size) : "";
4834
4868
  },
4835
4869
  parsePercentage(e) {
4836
4870
  return parseInt(e, 10);
@@ -4844,8 +4878,8 @@ var Za = {
4844
4878
  }).catch(() => {});
4845
4879
  }
4846
4880
  }
4847
- }, Qa = ["src"], $a = { class: "cv-upload-list__item-content-action" };
4848
- function eo(e, t, n, r, i, a) {
4881
+ }, eo = ["src"], to = { class: "cv-upload-list__item-content-action" };
4882
+ function no(e, t, n, r, i, a) {
4849
4883
  let o = P("el-link");
4850
4884
  return A(), y(_e, {
4851
4885
  class: "cv-upload-file-list el-upload-list el-upload-list--text",
@@ -4863,11 +4897,11 @@ function eo(e, t, n, r, i, a) {
4863
4897
  default: R(() => [S("img", {
4864
4898
  src: a.getExtension(e.name),
4865
4899
  class: "el-upload-list__item-content-name-icon"
4866
- }, null, 8, Qa), S("span", null, F(e.name), 1)]),
4900
+ }, null, 8, eo), S("span", null, F(e.name), 1)]),
4867
4901
  _: 2
4868
- }, 1032, ["href"]), S("div", $a, [
4902
+ }, 1032, ["href"]), S("div", to, [
4869
4903
  w(o, { underline: "never" }, {
4870
- default: R(() => [C(F(a.getSize(e.size)), 1)]),
4904
+ default: R(() => [C(F(a.showSize(e)), 1)]),
4871
4905
  _: 2
4872
4906
  }, 1024),
4873
4907
  n.isCanDownload ? (A(), y(o, {
@@ -4892,12 +4926,12 @@ function eo(e, t, n, r, i, a) {
4892
4926
  });
4893
4927
  }
4894
4928
  // packages/upload/src/upload-file.vue
4895
- var to = {
4929
+ var ro = {
4896
4930
  title: "文件上传",
4897
4931
  inheritAttrs: !1,
4898
4932
  name: "cvUploadFile",
4899
4933
  mixins: [fa],
4900
- components: { uploadList: /* @__PURE__ */ H(Za, [["render", eo]]) },
4934
+ components: { uploadList: /* @__PURE__ */ H($a, [["render", no]]) },
4901
4935
  props: {
4902
4936
  modelValue: {
4903
4937
  type: [
@@ -4980,7 +5014,7 @@ var to = {
4980
5014
  },
4981
5015
  methods: {
4982
5016
  _init_parse_value() {
4983
- this.localValue = this.modelValue ? Na(this.modelValue) : [];
5017
+ this.localValue = this.modelValue ? Fa(this.modelValue) : [];
4984
5018
  },
4985
5019
  _init_parse_list() {
4986
5020
  this.localList = this.initValue ? pa(this.initValue) : [];
@@ -4997,7 +5031,7 @@ var to = {
4997
5031
  this.upIngPercent = e;
4998
5032
  }).then((e) => {
4999
5033
  n && typeof n == "function" && (e = n(e, t, this.localList) || e), this.$nextTick(() => {
5000
- this.updateValue(e.filelog_id, e.cdn_full_path);
5034
+ this.updateValue(e.filelog_id, Ta(e, t));
5001
5035
  }), g.success("上传成功"), this.upIngLoading = !1, this.upIngPercent = 0, this.$emit("success", e, this.localList);
5002
5036
  }).catch((e) => (g.error("上传失败, 请重试"), this.upIngLoading = !1, this.upIngPercent = 0, this.$emit("error", e), Promise.reject(e)));
5003
5037
  } finally {
@@ -5006,7 +5040,7 @@ var to = {
5006
5040
  },
5007
5041
  updateValue(e, t) {
5008
5042
  if (this.isMultiValue) {
5009
- let n = Pa(this.localValue, e), r = Pa(this.localList, t);
5043
+ let n = Ia(this.localValue, e), r = wa(this.localList, t);
5010
5044
  this.$emit("update:modelValue", n), this.$emit("update:initValue", r);
5011
5045
  } else this.$emit("update:modelValue", e || ""), this.$emit("update:initValue", t || "");
5012
5046
  },
@@ -5021,15 +5055,15 @@ var to = {
5021
5055
  _do_remove(e) {
5022
5056
  let t = this.localList[e];
5023
5057
  if (this.$emit("remove", t, this.localList), this.isMultiValue) {
5024
- let t = this.localValue.filter((t, n) => n !== e), n = this.localList.filter((t, n) => n !== e).map((e) => e.url);
5058
+ let t = this.localValue.filter((t, n) => n !== e), n = this.localList.filter((t, n) => n !== e);
5025
5059
  this.$emit("update:modelValue", t), this.$emit("update:initValue", n);
5026
5060
  } else this.$emit("update:modelValue", ""), this.$emit("update:initValue", "");
5027
5061
  }
5028
5062
  }
5029
- }, no = { class: "cv-upload-file" };
5030
- function ro(e, t, n, r, i, a) {
5063
+ }, io = { class: "cv-upload-file" };
5064
+ function ao(e, t, n, r, i, a) {
5031
5065
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress"), u = P("upload-tip"), d = P("upload-list");
5032
- return A(), x("div", no, [
5066
+ return A(), x("div", io, [
5033
5067
  w(c, E({
5034
5068
  ref: "uploadHandleRef",
5035
5069
  class: "cv-upload-file-uploader"
@@ -5072,7 +5106,7 @@ function ro(e, t, n, r, i, a) {
5072
5106
  ])
5073
5107
  ]);
5074
5108
  }
5075
- var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5109
+ var oo = /*#__PURE__*/ H(ro, [["render", ao]]), so = {
5076
5110
  title: "视频上传",
5077
5111
  name: "cvUploadVideo",
5078
5112
  mixins: [fa],
@@ -5083,7 +5117,11 @@ var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5083
5117
  default: ""
5084
5118
  },
5085
5119
  initValue: {
5086
- type: [String],
5120
+ type: [
5121
+ String,
5122
+ Object,
5123
+ Array
5124
+ ],
5087
5125
  default: ""
5088
5126
  },
5089
5127
  allowFileSize: {
@@ -5149,7 +5187,7 @@ var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5149
5187
  },
5150
5188
  methods: {
5151
5189
  _init_parse_value() {
5152
- this.localValue = this.modelValue ? Na(this.modelValue) : "";
5190
+ this.localValue = this.modelValue ? Fa(this.modelValue) : "";
5153
5191
  },
5154
5192
  _init_parse_list() {
5155
5193
  this.localList = this.initValue ? pa(this.initValue) : "";
@@ -5166,7 +5204,7 @@ var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5166
5204
  this.upIngPercent = e;
5167
5205
  }).then((e) => {
5168
5206
  n && typeof n == "function" && (e = n(e, t, this.localList) || e), this.$nextTick(() => {
5169
- this.updateValue(e.filelog_id, e.cdn_full_path);
5207
+ this.updateValue(e.filelog_id, Ta(e, t));
5170
5208
  }), g.success("上传成功"), this.upIngLoading = !1, this.upIngPercent = 0;
5171
5209
  }).catch((e) => (g.error("上传失败"), this.upIngLoading = !1, this.upIngPercent = 0, Promise.reject(e)));
5172
5210
  } finally {
@@ -5202,7 +5240,7 @@ var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5202
5240
  uid: Date.now(),
5203
5241
  url: i
5204
5242
  };
5205
- this.localList = [a], this.$emit("update:initValue", i);
5243
+ this.localList = [a], this.$emit("update:initValue", a);
5206
5244
  }).catch(() => {});
5207
5245
  },
5208
5246
  doRemove(e) {
@@ -5217,18 +5255,18 @@ var io = /*#__PURE__*/ H(to, [["render", ro]]), ao = {
5217
5255
  } else this.doRemove(t);
5218
5256
  }
5219
5257
  }
5220
- }, oo = { class: "cv-upload-video" }, so = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, co = ["tabindex"], lo = ["src"], uo = { class: "el-upload-list__item-status-label" }, fo = { class: "el-upload-list__item-actions" }, po = ["onClick"], mo = { class: "el-upload-list__item-delete" }, ho = { class: "el-upload-list__item-delete" }, go = {
5258
+ }, co = { class: "cv-upload-video" }, lo = { class: "cv-upload-list-box el-upload-list el-upload-list--picture-card" }, uo = ["tabindex"], fo = ["src"], po = { class: "el-upload-list__item-status-label" }, mo = { class: "el-upload-list__item-actions" }, ho = ["onClick"], go = { class: "el-upload-list__item-delete" }, _o = { class: "el-upload-list__item-delete" }, vo = {
5221
5259
  key: 0,
5222
5260
  style: {
5223
5261
  width: "500px",
5224
5262
  height: "300px",
5225
5263
  margin: "0 auto"
5226
5264
  }
5227
- }, _o = ["src"];
5228
- function vo(e, t, n, r, i, a) {
5265
+ }, yo = ["src"];
5266
+ function bo(e, t, n, r, i, a) {
5229
5267
  let o = P("cv-icons"), s = P("el-progress"), c = P("el-upload"), l = P("upload-tip"), u = P("el-dialog"), d = Pe("loading");
5230
- return A(), x("div", oo, [
5231
- S("div", so, [i.localList ? (A(!0), x(v, { key: 0 }, M(i.localList, (e, t) => (A(), x("section", {
5268
+ return A(), x("div", co, [
5269
+ S("div", lo, [i.localList ? (A(!0), x(v, { key: 0 }, M(i.localList, (e, t) => (A(), x("section", {
5232
5270
  class: "el-upload-list__item is-success",
5233
5271
  key: t,
5234
5272
  tabindex: t,
@@ -5239,32 +5277,32 @@ function vo(e, t, n, r, i, a) {
5239
5277
  autoplay: !1,
5240
5278
  src: e.url,
5241
5279
  style: k(a.showStyle)
5242
- }, " 您的浏览器不支持视频播放 ", 12, lo),
5243
- S("label", uo, [w(o, {
5280
+ }, " 您的浏览器不支持视频播放 ", 12, fo),
5281
+ S("label", po, [w(o, {
5244
5282
  type: "actionCheck",
5245
5283
  color: "#ffffff",
5246
5284
  size: "12"
5247
5285
  })]),
5248
- S("span", fo, [
5286
+ S("span", mo, [
5249
5287
  S("span", {
5250
5288
  class: "el-upload-list__item-preview",
5251
5289
  onClick: (t) => a.handleItemPreview(e)
5252
5290
  }, [w(o, {
5253
5291
  type: "medcirclePlay",
5254
5292
  size: "20"
5255
- })], 8, po),
5256
- S("span", mo, [w(o, {
5293
+ })], 8, ho),
5294
+ S("span", go, [w(o, {
5257
5295
  type: "actionDelete",
5258
5296
  size: "20",
5259
5297
  onClick: (n) => a.handleItemRemove(e, t)
5260
5298
  }, null, 8, ["onClick"])]),
5261
- S("span", ho, [w(o, {
5299
+ S("span", _o, [w(o, {
5262
5300
  type: "actionEdit",
5263
5301
  size: "20",
5264
5302
  onClick: (n) => a.handleItemEdit(e, t)
5265
5303
  }, null, 8, ["onClick"])])
5266
5304
  ])
5267
- ], 12, co))), 128)) : b("", !0), a.showUpload ? (A(), y(c, E({
5305
+ ], 12, uo))), 128)) : b("", !0), a.showUpload ? (A(), y(c, E({
5268
5306
  key: 1,
5269
5307
  ref: "uploadHandleRef",
5270
5308
  class: "cv-upload-handler"
@@ -5301,7 +5339,7 @@ function vo(e, t, n, r, i, a) {
5301
5339
  title: i.previewTitle,
5302
5340
  "append-to-body": ""
5303
5341
  }, {
5304
- default: R(() => [i.previewShow ? (A(), x("div", go, [S("video", {
5342
+ default: R(() => [i.previewShow ? (A(), x("div", vo, [S("video", {
5305
5343
  autoplay: !0,
5306
5344
  src: i.previewUrl,
5307
5345
  controls: "controls",
@@ -5309,12 +5347,12 @@ function vo(e, t, n, r, i, a) {
5309
5347
  width: "500px",
5310
5348
  height: "300px"
5311
5349
  }
5312
- }, " 您的浏览器不支持视频播放 ", 8, _o)])) : b("", !0)]),
5350
+ }, " 您的浏览器不支持视频播放 ", 8, yo)])) : b("", !0)]),
5313
5351
  _: 1
5314
5352
  }, 8, ["modelValue", "title"])
5315
5353
  ]);
5316
5354
  }
5317
- var yo = /*#__PURE__*/ H(ao, [["render", vo]]), bo = {
5355
+ var xo = /*#__PURE__*/ H(so, [["render", bo]]), So = {
5318
5356
  name: "cvUploadOss",
5319
5357
  mixins: [{
5320
5358
  emits: [
@@ -5620,22 +5658,22 @@ var yo = /*#__PURE__*/ H(ao, [["render", vo]]), bo = {
5620
5658
  }
5621
5659
  }
5622
5660
  }]
5623
- }, xo = { class: "oss-upload" }, So = { class: "cv-upload-task-hd-title" }, Co = { class: "cv-upload-task-hd-num" }, wo = { class: "cv-upload-task-opts" }, To = { class: "cv-upload-task-lists" }, Eo = { class: "cv-upload-task-item-name" }, Do = { class: "name" }, Oo = { class: "file-name-item" }, ko = {
5661
+ }, Co = { class: "oss-upload" }, wo = { class: "cv-upload-task-hd-title" }, To = { class: "cv-upload-task-hd-num" }, Eo = { class: "cv-upload-task-opts" }, Do = { class: "cv-upload-task-lists" }, Oo = { class: "cv-upload-task-item-name" }, ko = { class: "name" }, Ao = { class: "file-name-item" }, jo = {
5624
5662
  key: 0,
5625
5663
  class: "speed"
5626
- }, Ao = {
5664
+ }, Mo = {
5627
5665
  key: 1,
5628
5666
  class: "speed"
5629
- }, jo = {
5667
+ }, No = {
5630
5668
  key: 2,
5631
5669
  class: "success"
5632
- }, Mo = { class: "total" }, No = {
5670
+ }, Po = { class: "total" }, Fo = {
5633
5671
  key: 0,
5634
5672
  class: "name error"
5635
- }, Po = { class: "cv-upload-task-item-tool" }, Fo = ["onClick"], Io = ["onClick"];
5636
- function Lo(e, t, n, r, i, a) {
5673
+ }, Io = { class: "cv-upload-task-item-tool" }, Lo = ["onClick"], Ro = ["onClick"];
5674
+ function zo(e, t, n, r, i, a) {
5637
5675
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress"), u = P("el-dialog");
5638
- return A(), x("div", xo, [w(c, {
5676
+ return A(), x("div", Co, [w(c, {
5639
5677
  ref: "upload",
5640
5678
  action: "",
5641
5679
  "show-file-list": !1,
@@ -5670,8 +5708,8 @@ function Lo(e, t, n, r, i, a) {
5670
5708
  "before-close": e.handleClose,
5671
5709
  style: { height: "500px" }
5672
5710
  }, {
5673
- header: R(() => [S("div", So, [t[2] ||= S("span", null, "上传", -1), S("span", Co, F(e.fileList.length - e.unList.length) + "/" + F(e.fileList.length), 1)])]),
5674
- default: R(() => [S("div", wo, [
5711
+ header: R(() => [S("div", wo, [t[2] ||= S("span", null, "上传", -1), S("span", To, F(e.fileList.length - e.unList.length) + "/" + F(e.fileList.length), 1)])]),
5712
+ default: R(() => [S("div", Eo, [
5675
5713
  w(s, {
5676
5714
  type: "primary",
5677
5715
  disabled: e.uploadDisabled,
@@ -5696,18 +5734,18 @@ function Lo(e, t, n, r, i, a) {
5696
5734
  default: R(() => [w(o, { type: "medcirclePause" }), t[5] ||= C(" 暂停 ", -1)]),
5697
5735
  _: 1
5698
5736
  }, 8, ["disabled", "onClick"])
5699
- ]), S("div", To, [(A(!0), x(v, null, M(e.fileList, (t, n) => (A(), x("div", {
5737
+ ]), S("div", Do, [(A(!0), x(v, null, M(e.fileList, (t, n) => (A(), x("div", {
5700
5738
  class: "cv-upload-task-item-box",
5701
5739
  key: n
5702
- }, [S("div", Eo, [
5703
- S("div", Do, [
5704
- S("span", Oo, F(n + 1) + "." + F(t.name), 1),
5705
- t.isLoading && !t.isPlay ? (A(), x("span", ko, "准备就绪")) : b("", !0),
5706
- t.isPlay && t.percentage !== 100 ? (A(), x("span", Ao, F(t.speed) + "/s", 1)) : b("", !0),
5707
- t.percentage === 100 ? (A(), x("span", jo, "完成")) : b("", !0),
5708
- S("div", Mo, F(e.filterSize(t.size)), 1)
5740
+ }, [S("div", Oo, [
5741
+ S("div", ko, [
5742
+ S("span", Ao, F(n + 1) + "." + F(t.name), 1),
5743
+ t.isLoading && !t.isPlay ? (A(), x("span", jo, "准备就绪")) : b("", !0),
5744
+ t.isPlay && t.percentage !== 100 ? (A(), x("span", Mo, F(t.speed) + "/s", 1)) : b("", !0),
5745
+ t.percentage === 100 ? (A(), x("span", No, "完成")) : b("", !0),
5746
+ S("div", Po, F(e.filterSize(t.size)), 1)
5709
5747
  ]),
5710
- t.errMsg ? (A(), x("span", No, F(t.errMsg), 1)) : b("", !0),
5748
+ t.errMsg ? (A(), x("span", Fo, F(t.errMsg), 1)) : b("", !0),
5711
5749
  t.percentage < 100 && !t.errMsg ? (A(), y(l, {
5712
5750
  key: 1,
5713
5751
  percentage: t.percentage
@@ -5716,11 +5754,11 @@ function Lo(e, t, n, r, i, a) {
5716
5754
  percentage: t.percentage,
5717
5755
  status: t.errMsg ? "exception" : "success"
5718
5756
  }, null, 8, ["percentage", "status"]))
5719
- ]), S("div", Po, [!t.percentage || 0 < t.percentage < 100 && !t.isPlay ? (A(), x("span", {
5757
+ ]), S("div", Io, [!t.percentage || 0 < t.percentage < 100 && !t.isPlay ? (A(), x("span", {
5720
5758
  key: 0,
5721
5759
  class: "icon delete",
5722
5760
  onClick: (t) => e.handleDeleteChangeFile(n)
5723
- }, [w(o, { type: "actionClose" })], 8, Fo)) : b("", !0), t.percentage && t.percentage !== 100 ? (A(), x("span", {
5761
+ }, [w(o, { type: "actionClose" })], 8, Lo)) : b("", !0), t.percentage && t.percentage !== 100 ? (A(), x("span", {
5724
5762
  key: 1,
5725
5763
  class: D(["icon", t.isPlay ? "delete" : "success"]),
5726
5764
  onClick: (r) => e.handleStopChangeFile(n, t)
@@ -5730,11 +5768,11 @@ function Lo(e, t, n, r, i, a) {
5730
5768
  })) : (A(), y(o, {
5731
5769
  key: 1,
5732
5770
  type: "arrowCaretRight"
5733
- }))], 10, Io)) : b("", !0)])]))), 128))])]),
5771
+ }))], 10, Ro)) : b("", !0)])]))), 128))])]),
5734
5772
  _: 1
5735
5773
  }, 8, ["modelValue", "before-close"])]);
5736
5774
  }
5737
- var Ro = /*#__PURE__*/ H(bo, [["render", Lo], ["__scopeId", "data-v-ae9dfc45"]]), zo = {
5775
+ var Bo = /*#__PURE__*/ H(So, [["render", zo], ["__scopeId", "data-v-ae9dfc45"]]), Vo = {
5738
5776
  mixins: [fa],
5739
5777
  props: {
5740
5778
  allowFileSize: {
@@ -5806,10 +5844,10 @@ var Ro = /*#__PURE__*/ H(bo, [["render", Lo], ["__scopeId", "data-v-ae9dfc45"]])
5806
5844
  }
5807
5845
  }
5808
5846
  }
5809
- }, Bo = {
5847
+ }, Ho = {
5810
5848
  title: "图片上传(迷你触发器)",
5811
5849
  name: "cvUploadImageMini",
5812
- mixins: [zo],
5850
+ mixins: [Vo],
5813
5851
  props: {
5814
5852
  allowFileSize: {
5815
5853
  type: [Number],
@@ -5840,10 +5878,10 @@ var Ro = /*#__PURE__*/ H(bo, [["render", Lo], ["__scopeId", "data-v-ae9dfc45"]])
5840
5878
  default: () => ({ save_sign: "image" })
5841
5879
  }
5842
5880
  }
5843
- }, Vo = { class: "cv-upload-image-mini" };
5844
- function Ho(e, t, n, r, i, a) {
5881
+ }, Uo = { class: "cv-upload-image-mini" };
5882
+ function Wo(e, t, n, r, i, a) {
5845
5883
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress");
5846
- return A(), x("div", Vo, [w(c, E({
5884
+ return A(), x("div", Uo, [w(c, E({
5847
5885
  ref: "uploadHandleRef",
5848
5886
  class: "cv-upload-image-mini__uploader"
5849
5887
  }, e.handlerAttr, {
@@ -5877,10 +5915,10 @@ function Ho(e, t, n, r, i, a) {
5877
5915
  style: { margin: "8px 0" }
5878
5916
  }, null, 8, ["percentage"])) : b("", !0)]);
5879
5917
  }
5880
- var Uo = /*#__PURE__*/ H(Bo, [["render", Ho]]), Wo = {
5918
+ var Go = /*#__PURE__*/ H(Ho, [["render", Wo]]), Ko = {
5881
5919
  title: "文件上传(迷你触发器)",
5882
5920
  name: "cvUploadFileMini",
5883
- mixins: [zo],
5921
+ mixins: [Vo],
5884
5922
  props: {
5885
5923
  allowFileSize: {
5886
5924
  type: [Number],
@@ -5903,10 +5941,10 @@ var Uo = /*#__PURE__*/ H(Bo, [["render", Ho]]), Wo = {
5903
5941
  default: () => ({ save_sign: "file" })
5904
5942
  }
5905
5943
  }
5906
- }, Go = { class: "cv-upload-file-mini" };
5907
- function Ko(e, t, n, r, i, a) {
5944
+ }, qo = { class: "cv-upload-file-mini" };
5945
+ function Jo(e, t, n, r, i, a) {
5908
5946
  let o = P("cv-icons"), s = P("el-button"), c = P("el-upload"), l = P("el-progress");
5909
- return A(), x("div", Go, [w(c, E({
5947
+ return A(), x("div", qo, [w(c, E({
5910
5948
  ref: "uploadHandleRef",
5911
5949
  class: "cv-upload-file-mini__uploader"
5912
5950
  }, e.handlerAttr, {
@@ -5940,24 +5978,24 @@ function Ko(e, t, n, r, i, a) {
5940
5978
  style: { margin: "8px 0" }
5941
5979
  }, null, 8, ["percentage"])) : b("", !0)]);
5942
5980
  }
5943
- var qo = /*#__PURE__*/ H(Wo, [["render", Ko]]);
5944
- Ma.install = function(e) {
5945
- e.component(Ma.name, Ma);
5946
- }, Ja.install = function(e) {
5947
- e.component(Ja.name, Ja);
5948
- }, io.install = function(e) {
5949
- e.component(io.name, io);
5950
- }, yo.install = function(e) {
5951
- e.component(yo.name, yo);
5952
- }, Ro.install = function(e) {
5953
- e.component(Ro.name, Ro);
5954
- }, Uo.install = function(e) {
5955
- e.component(Uo.name, Uo);
5956
- }, qo.install = function(e) {
5957
- e.component(qo.name, qo);
5981
+ var Yo = /*#__PURE__*/ H(Ko, [["render", Jo]]);
5982
+ Pa.install = function(e) {
5983
+ e.component(Pa.name, Pa);
5984
+ }, Xa.install = function(e) {
5985
+ e.component(Xa.name, Xa);
5986
+ }, oo.install = function(e) {
5987
+ e.component(oo.name, oo);
5988
+ }, xo.install = function(e) {
5989
+ e.component(xo.name, xo);
5990
+ }, Bo.install = function(e) {
5991
+ e.component(Bo.name, Bo);
5992
+ }, Go.install = function(e) {
5993
+ e.component(Go.name, Go);
5994
+ }, Yo.install = function(e) {
5995
+ e.component(Yo.name, Yo);
5958
5996
  };
5959
5997
  // packages/tabs/src/tabs.vue
5960
- var Jo = {
5998
+ var Xo = {
5961
5999
  name: "cvTabsJump",
5962
6000
  props: { tabPosition: {
5963
6001
  type: String,
@@ -5983,11 +6021,11 @@ var Jo = {
5983
6021
  } },
5984
6022
  created() {},
5985
6023
  mounted() {}
5986
- }, Yo = { class: "tabs-header" };
5987
- function Xo(e, t, n, r, i, a) {
5988
- return A(), x("div", { class: D(["cv-tabs-jump", a.tabPositionClass]) }, [S("div", Yo, [N(e.$slots, "default")])], 2);
6024
+ }, Zo = { class: "tabs-header" };
6025
+ function Qo(e, t, n, r, i, a) {
6026
+ return A(), x("div", { class: D(["cv-tabs-jump", a.tabPositionClass]) }, [S("div", Zo, [N(e.$slots, "default")])], 2);
5989
6027
  }
5990
- var Zo = /*#__PURE__*/ H(Jo, [["render", Xo]]), Qo = {
6028
+ var $o = /*#__PURE__*/ H(Xo, [["render", Qo]]), es = {
5991
6029
  name: "cvTabPane",
5992
6030
  emits: ["click"],
5993
6031
  inject: ["addChildComponents", "clearChildClass"],
@@ -6019,21 +6057,21 @@ var Zo = /*#__PURE__*/ H(Jo, [["render", Xo]]), Qo = {
6019
6057
  this.clearChildClass(), this.className = "active", this.$emit("click");
6020
6058
  }
6021
6059
  }
6022
- }, $o = { key: 1 };
6023
- function es(e, t, n, r, i, a) {
6060
+ }, ts = { key: 1 };
6061
+ function ns(e, t, n, r, i, a) {
6024
6062
  return z((A(), x("div", {
6025
6063
  class: D(["cv-tab-pane", i.className]),
6026
6064
  onClick: t[0] ||= (...e) => a.handleClick && a.handleClick(...e)
6027
- }, [e.$slots.label ? N(e.$slots, "label", {}, void 0, void 0, 0) : (A(), x("span", $o, F(n.label), 1))], 2)), [[L, i.isshow]]);
6065
+ }, [e.$slots.label ? N(e.$slots, "label", {}, void 0, void 0, 0) : (A(), x("span", ts, F(n.label), 1))], 2)), [[L, i.isshow]]);
6028
6066
  }
6029
- var ts = /*#__PURE__*/ H(Qo, [["render", es]]);
6030
- Zo.install = function(e) {
6031
- e.component(Zo.name, Zo);
6032
- }, ts.install = function(e) {
6033
- e.component(ts.name, ts);
6067
+ var rs = /*#__PURE__*/ H(es, [["render", ns]]);
6068
+ $o.install = function(e) {
6069
+ e.component($o.name, $o);
6070
+ }, rs.install = function(e) {
6071
+ e.component(rs.name, rs);
6034
6072
  };
6035
6073
  // packages/draw/src/captcha.vue
6036
- var ns = {
6074
+ var is = {
6037
6075
  name: "cvDrawCaptcha",
6038
6076
  props: {
6039
6077
  modelValue: {
@@ -6147,32 +6185,32 @@ var ns = {
6147
6185
  for (let t = 0; t < 80; t++) e.fillStyle = this.randomColor(0, 255), e.beginPath(), e.arc(this.randomNum(0, this.contentWidth), this.randomNum(0, this.contentHeight), 1, 0, 2 * Math.PI), e.fill();
6148
6186
  }
6149
6187
  }
6150
- }, rs = { class: "cv-draw-captcha" }, is = ["width", "height"];
6151
- function as(e, t, n, r, i, a) {
6152
- return A(), x("div", rs, [S("canvas", {
6188
+ }, as = { class: "cv-draw-captcha" }, os = ["width", "height"];
6189
+ function ss(e, t, n, r, i, a) {
6190
+ return A(), x("div", as, [S("canvas", {
6153
6191
  id: "cv-draw-captcha",
6154
6192
  width: n.contentWidth,
6155
6193
  height: n.contentHeight,
6156
6194
  onClick: t[0] ||= (...e) => a.refreshCode && a.refreshCode(...e)
6157
- }, null, 8, is)]);
6195
+ }, null, 8, os)]);
6158
6196
  }
6159
- var os = /*#__PURE__*/ H(ns, [["render", as]]), ss = {
6197
+ var cs = /*#__PURE__*/ H(is, [["render", ss]]), ls = {
6160
6198
  name: "cvDrawQrcode",
6161
6199
  data() {
6162
6200
  return {};
6163
6201
  }
6164
6202
  };
6165
- function cs(e, t, n, r, i, a) {
6203
+ function us(e, t, n, r, i, a) {
6166
6204
  return A(), x("div", null, "二维码");
6167
6205
  }
6168
- var ls = /*#__PURE__*/ H(ss, [["render", cs]]);
6169
- os.install = function(e) {
6170
- e.component(os.name, os);
6171
- }, ls.install = function(e) {
6172
- e.component(ls.name, ls);
6206
+ var ds = /*#__PURE__*/ H(ls, [["render", us]]);
6207
+ cs.install = function(e) {
6208
+ e.component(cs.name, cs);
6209
+ }, ds.install = function(e) {
6210
+ e.component(ds.name, ds);
6173
6211
  };
6174
6212
  // packages/tag/src/base.vue
6175
- var us = {
6213
+ var fs = {
6176
6214
  name: "cvTagBase",
6177
6215
  mixins: [],
6178
6216
  components: {},
@@ -6240,8 +6278,8 @@ var us = {
6240
6278
  if (this.modelValue) {
6241
6279
  if (typeof this.modelValue == "string" && this.modelValue.includes(",")) {
6242
6280
  let e = String(this.modelValue).split(",").map((e) => e.trim());
6243
- this.localVal = Na(e);
6244
- } else this.localVal = Na(this.modelValue);
6281
+ this.localVal = Fa(e);
6282
+ } else this.localVal = Fa(this.modelValue);
6245
6283
  }
6246
6284
  },
6247
6285
  _parse_last() {
@@ -6263,17 +6301,17 @@ var us = {
6263
6301
  this.disabled || (this.localVal.splice(e, 1), this._parse_last());
6264
6302
  }
6265
6303
  }
6266
- }, ds = { class: "cv-tag-base" }, fs = [
6304
+ }, ps = { class: "cv-tag-base" }, ms = [
6267
6305
  "contenteditable",
6268
6306
  "onKeyup",
6269
6307
  "onBlur"
6270
- ], ps = {
6308
+ ], hs = {
6271
6309
  key: 1,
6272
6310
  class: "cv-tag-maxlength-hint"
6273
6311
  };
6274
- function ms(e, t, n, r, i, a) {
6312
+ function gs(e, t, n, r, i, a) {
6275
6313
  let o = P("el-tag"), s = P("cv-icons");
6276
- return A(), x("div", ds, [
6314
+ return A(), x("div", ps, [
6277
6315
  (A(!0), x(v, null, M(i.localVal, (e, t) => (A(), y(o, E({ class: "cv-tag-content" }, { ref_for: !0 }, {
6278
6316
  closable: !n.disabled && n.closable,
6279
6317
  disableTransitions: n.disableTransitions,
@@ -6294,7 +6332,7 @@ function ms(e, t, n, r, i, a) {
6294
6332
  ref: `newTag${t}`,
6295
6333
  onKeyup: Ke((e) => !n.disabled && a.checkTag(t), ["enter"]),
6296
6334
  onBlur: (e) => !n.disabled && a.checkTag(t)
6297
- }, F(e), 41, fs)]),
6335
+ }, F(e), 41, ms)]),
6298
6336
  _: 2
6299
6337
  }, 1040, ["onClose", "disabled"]))), 128)),
6300
6338
  !n.disabled && i.localVal.length < n.maxlength ? (A(), y(s, {
@@ -6303,16 +6341,16 @@ function ms(e, t, n, r, i, a) {
6303
6341
  size: "20",
6304
6342
  onClick: t[0] ||= (e) => a.addTag()
6305
6343
  })) : b("", !0),
6306
- !n.disabled && i.localVal.length >= n.maxlength ? (A(), x("span", ps, "已达到最大数量 (" + F(n.maxlength) + ")", 1)) : b("", !0)
6344
+ !n.disabled && i.localVal.length >= n.maxlength ? (A(), x("span", hs, "已达到最大数量 (" + F(n.maxlength) + ")", 1)) : b("", !0)
6307
6345
  ]);
6308
6346
  }
6309
- var hs = /*#__PURE__*/ H(us, [["render", ms]]);
6347
+ var _s = /*#__PURE__*/ H(fs, [["render", gs]]);
6310
6348
  // packages/tag/index.js
6311
- hs.install = function(e) {
6312
- e.component(hs.name, hs);
6349
+ _s.install = function(e) {
6350
+ e.component(_s.name, _s);
6313
6351
  };
6314
6352
  // packages/transfer/src/table.vue
6315
- var gs = {
6353
+ var vs = {
6316
6354
  name: "cvTransferTable",
6317
6355
  props: {
6318
6356
  modelValue: {
@@ -6500,19 +6538,19 @@ var gs = {
6500
6538
  this.pageIndex = 1, this.handlePaginationCallBack();
6501
6539
  }
6502
6540
  }
6503
- }, _s = { class: "cv-transfer-table" }, vs = { class: "transfer-panel" }, ys = { class: "transfer-panel-header" }, bs = { key: 0 }, xs = { style: { padding: "5px" } }, Ss = { class: "transfer-buttons" }, Cs = {
6541
+ }, ys = { class: "cv-transfer-table" }, bs = { class: "transfer-panel" }, xs = { class: "transfer-panel-header" }, Ss = { key: 0 }, Cs = { style: { padding: "5px" } }, ws = { class: "transfer-buttons" }, Ts = {
6504
6542
  key: 0,
6505
6543
  class: "button-text"
6506
- }, ws = {
6544
+ }, Es = {
6507
6545
  key: 0,
6508
6546
  class: "button-text"
6509
- }, Ts = { class: "transfer-panel" }, Es = { class: "transfer-panel-header" }, Ds = { key: 0 }, Os = { style: { padding: "5px" } };
6510
- function ks(e, t, n, r, i, a) {
6547
+ }, Ds = { class: "transfer-panel" }, Os = { class: "transfer-panel-header" }, ks = { key: 0 }, As = { style: { padding: "5px" } };
6548
+ function js(e, t, n, r, i, a) {
6511
6549
  let o = P("el-button"), s = P("el-form-item"), c = P("el-form"), l = P("el-table-column"), u = P("el-table"), d = P("el-pagination"), f = P("cv-icons");
6512
- return A(), x("div", _s, [
6513
- S("div", vs, [
6514
- S("p", ys, [S("span", null, F(n.titleTexts && n.titleTexts[0]), 1), S("span", null, F(i.leftSelection.length) + "/" + F(i.leftTableData.length), 1)]),
6515
- n.showQuery ? (A(), x("div", bs, [w(c, {
6550
+ return A(), x("div", ys, [
6551
+ S("div", bs, [
6552
+ S("p", xs, [S("span", null, F(n.titleTexts && n.titleTexts[0]), 1), S("span", null, F(i.leftSelection.length) + "/" + F(i.leftTableData.length), 1)]),
6553
+ n.showQuery ? (A(), x("div", Ss, [w(c, {
6516
6554
  inline: !0,
6517
6555
  model: i.leftQueryCondition,
6518
6556
  class: "cv-transfer-form"
@@ -6571,7 +6609,7 @@ function ks(e, t, n, r, i, a) {
6571
6609
  "onRowClick",
6572
6610
  "onSelectionChange"
6573
6611
  ]),
6574
- S("div", xs, [n.showPagination ? (A(), y(d, {
6612
+ S("div", Cs, [n.showPagination ? (A(), y(d, {
6575
6613
  key: 0,
6576
6614
  onSizeChange: a.handleSizeChange,
6577
6615
  onCurrentChange: a.handleCurrentChange,
@@ -6594,13 +6632,13 @@ function ks(e, t, n, r, i, a) {
6594
6632
  "total"
6595
6633
  ])) : b("", !0)])
6596
6634
  ]),
6597
- S("div", Ss, [w(o, {
6635
+ S("div", ws, [w(o, {
6598
6636
  type: "primary",
6599
6637
  class: D(a.buttonClasses),
6600
6638
  disabled: a.disabledLeftButton,
6601
6639
  onClick: a.addToRight
6602
6640
  }, {
6603
- default: R(() => [n.buttonTexts[0] === void 0 ? b("", !0) : (A(), x("span", Cs, F(n.buttonTexts[0]), 1)), w(f, { type: "arrlineRight" })]),
6641
+ default: R(() => [n.buttonTexts[0] === void 0 ? b("", !0) : (A(), x("span", Ts, F(n.buttonTexts[0]), 1)), w(f, { type: "arrlineRight" })]),
6604
6642
  _: 1
6605
6643
  }, 8, [
6606
6644
  "class",
@@ -6612,16 +6650,16 @@ function ks(e, t, n, r, i, a) {
6612
6650
  disabled: i.rightSelection.length === 0,
6613
6651
  onClick: a.addToLeft
6614
6652
  }, {
6615
- default: R(() => [w(f, { type: "arrlineLeft" }), n.buttonTexts[1] === void 0 ? b("", !0) : (A(), x("span", ws, F(n.buttonTexts[1]), 1))]),
6653
+ default: R(() => [w(f, { type: "arrlineLeft" }), n.buttonTexts[1] === void 0 ? b("", !0) : (A(), x("span", Es, F(n.buttonTexts[1]), 1))]),
6616
6654
  _: 1
6617
6655
  }, 8, [
6618
6656
  "class",
6619
6657
  "disabled",
6620
6658
  "onClick"
6621
6659
  ])]),
6622
- S("div", Ts, [
6623
- S("p", Es, [S("span", null, F(n.titleTexts && n.titleTexts[1]), 1), S("span", null, F(i.rightSelection.length) + "/" + F(i.rightTableData.length), 1)]),
6624
- n.showQuery ? (A(), x("div", Ds, [w(c, {
6660
+ S("div", Ds, [
6661
+ S("p", Os, [S("span", null, F(n.titleTexts && n.titleTexts[1]), 1), S("span", null, F(i.rightSelection.length) + "/" + F(i.rightTableData.length), 1)]),
6662
+ n.showQuery ? (A(), x("div", ks, [w(c, {
6625
6663
  inline: !0,
6626
6664
  model: i.rightQueryCondition,
6627
6665
  class: "cv-transfer-form"
@@ -6677,7 +6715,7 @@ function ks(e, t, n, r, i, a) {
6677
6715
  "onRowClick",
6678
6716
  "onSelectionChange"
6679
6717
  ]),
6680
- S("div", Os, [n.showPagination ? (A(), y(d, {
6718
+ S("div", As, [n.showPagination ? (A(), y(d, {
6681
6719
  key: 0,
6682
6720
  total: i.rightTableData.length,
6683
6721
  layout: "total"
@@ -6685,13 +6723,13 @@ function ks(e, t, n, r, i, a) {
6685
6723
  ])
6686
6724
  ]);
6687
6725
  }
6688
- var As = /*#__PURE__*/ H(gs, [["render", ks]]);
6726
+ var Ms = /*#__PURE__*/ H(vs, [["render", js]]);
6689
6727
  // packages/transfer/index.js
6690
- As.install = function(e) {
6691
- e.component(As.name, As);
6728
+ Ms.install = function(e) {
6729
+ e.component(Ms.name, Ms);
6692
6730
  };
6693
6731
  // packages/table-list/util/tableMixin.js
6694
- var js = {
6732
+ var Ns = {
6695
6733
  provide() {
6696
6734
  return {
6697
6735
  pageCurr: this.loadConfigSetting.pageCurr || 1,
@@ -6739,9 +6777,9 @@ var js = {
6739
6777
  this.loadPageLimit = e, this.getData();
6740
6778
  }
6741
6779
  }
6742
- }, Ms = {
6780
+ }, Ps = {
6743
6781
  name: "cvTableBase",
6744
- mixins: [It, js],
6782
+ mixins: [It, Ns],
6745
6783
  props: {
6746
6784
  align: {
6747
6785
  type: String,
@@ -6806,20 +6844,20 @@ var js = {
6806
6844
  this.getData();
6807
6845
  }
6808
6846
  }
6809
- }, Ns = { class: "cv-table-list" }, Ps = {
6847
+ }, Fs = { class: "cv-table-list" }, Is = {
6810
6848
  key: 0,
6811
6849
  class: "cv-tablie-list-page page"
6812
6850
  };
6813
- function Fs(e, t, n, r, i, a) {
6851
+ function Ls(e, t, n, r, i, a) {
6814
6852
  let o = P("el-table"), s = P("cv-icons"), c = P("el-button"), l = P("el-pagination"), u = Pe("loading");
6815
- return A(), x("div", Ns, [z((A(), y(o, E(e.$props, {
6853
+ return A(), x("div", Fs, [z((A(), y(o, E(e.$props, {
6816
6854
  data: e.loadDataList,
6817
6855
  style: { width: "100%" },
6818
6856
  onSelectionChange: a.handleSelectionChange
6819
6857
  }), {
6820
6858
  default: R(() => [N(e.$slots, "default")]),
6821
6859
  _: 3
6822
- }, 16, ["data", "onSelectionChange"])), [[u, e.loadDataLoading]]), n.showPagebreak ? z((A(), x("div", Ps, [w(c, {
6860
+ }, 16, ["data", "onSelectionChange"])), [[u, e.loadDataLoading]]), n.showPagebreak ? z((A(), x("div", Is, [w(c, {
6823
6861
  onClick: a.refresh,
6824
6862
  style: {
6825
6863
  float: "left",
@@ -6852,9 +6890,9 @@ function Fs(e, t, n, r, i, a) {
6852
6890
  "total"
6853
6891
  ])], 512)), [[L, e.loadDataLoading === !1]]) : b("", !0)]);
6854
6892
  }
6855
- var Is = /*#__PURE__*/ H(Ms, [["render", Fs]]), Ls = {
6893
+ var Rs = /*#__PURE__*/ H(Ps, [["render", Ls]]), zs = {
6856
6894
  name: "cvTableTree",
6857
- mixins: [It, js],
6895
+ mixins: [It, Ns],
6858
6896
  props: {
6859
6897
  modelValue: {
6860
6898
  type: [Array],
@@ -6904,10 +6942,10 @@ var Is = /*#__PURE__*/ H(Ms, [["render", Fs]]), Ls = {
6904
6942
  this.getData();
6905
6943
  }
6906
6944
  }
6907
- }, Rs = { class: "cv-table-tree" };
6908
- function zs(e, t, n, r, i, a) {
6945
+ }, Bs = { class: "cv-table-tree" };
6946
+ function Vs(e, t, n, r, i, a) {
6909
6947
  let o = P("el-table"), s = Pe("loading");
6910
- return A(), x("div", Rs, [z((A(), y(o, E(e.$props, {
6948
+ return A(), x("div", Bs, [z((A(), y(o, E(e.$props, {
6911
6949
  data: e.loadDataList,
6912
6950
  style: { width: "100%" },
6913
6951
  onSelectionChange: a.handleSelectionChange,
@@ -6926,9 +6964,9 @@ function zs(e, t, n, r, i, a) {
6926
6964
  "tree-props"
6927
6965
  ])), [[s, e.loadDataLoading]])]);
6928
6966
  }
6929
- var Bs = /*#__PURE__*/ H(Ls, [["render", zs]]), Vs = {
6967
+ var Hs = /*#__PURE__*/ H(zs, [["render", Vs]]), Us = {
6930
6968
  name: "cvTableEditor",
6931
- mixins: [It, js],
6969
+ mixins: [It, Ns],
6932
6970
  props: {
6933
6971
  border: {
6934
6972
  type: [Boolean],
@@ -6969,10 +7007,10 @@ var Bs = /*#__PURE__*/ H(Ls, [["render", zs]]), Vs = {
6969
7007
  },
6970
7008
  handleChangeTData(e) {}
6971
7009
  }
6972
- }, Hs = { class: "cv-table-editor" };
6973
- function Us(e, t, n, r, i, a) {
7010
+ }, Ws = { class: "cv-table-editor" };
7011
+ function Gs(e, t, n, r, i, a) {
6974
7012
  let o = P("el-table"), s = Pe("loading");
6975
- return A(), x("div", Hs, [z((A(), y(o, E(e.$props, {
7013
+ return A(), x("div", Ws, [z((A(), y(o, E(e.$props, {
6976
7014
  data: e.loadDataList,
6977
7015
  style: { width: "100%" },
6978
7016
  "row-class-name": "cv-tbed-tr"
@@ -6981,7 +7019,7 @@ function Us(e, t, n, r, i, a) {
6981
7019
  _: 3
6982
7020
  }, 16, ["data"])), [[s, e.loadDataLoading]])]);
6983
7021
  }
6984
- var Ws = /*#__PURE__*/ H(Vs, [["render", Us]]), Gs = {
7022
+ var Ks = /*#__PURE__*/ H(Us, [["render", Gs]]), qs = {
6985
7023
  name: "cvTbColumnIndex",
6986
7024
  inject: {
6987
7025
  pageCurr: { default: 1 },
@@ -7014,14 +7052,14 @@ var Ws = /*#__PURE__*/ H(Vs, [["render", Us]]), Gs = {
7014
7052
  return this.continuity && this.pageCurr && this.pageLimit ? e + 1 + (this.pageCurr - 1) * this.pageLimit : e + 1;
7015
7053
  } }
7016
7054
  };
7017
- function Ks(e, t, n, r, i, a) {
7055
+ function Js(e, t, n, r, i, a) {
7018
7056
  let o = P("el-table-column");
7019
7057
  return A(), y(o, E(e.$props, {
7020
7058
  type: "index",
7021
7059
  index: a.indexMethod
7022
7060
  }), null, 16, ["index"]);
7023
7061
  }
7024
- var qs = /*#__PURE__*/ H(Gs, [["render", Ks]]), Js = {
7062
+ var Ys = /*#__PURE__*/ H(qs, [["render", Js]]), Xs = {
7025
7063
  name: "cvTbColumnCheck",
7026
7064
  props: {
7027
7065
  ..._.props,
@@ -7043,11 +7081,11 @@ var qs = /*#__PURE__*/ H(Gs, [["render", Ks]]), Js = {
7043
7081
  },
7044
7082
  created() {}
7045
7083
  };
7046
- function Ys(e, t, n, r, i, a) {
7084
+ function Zs(e, t, n, r, i, a) {
7047
7085
  let o = P("el-table-column");
7048
7086
  return A(), y(o, E(e.$props, { type: "selection" }), null, 16);
7049
7087
  }
7050
- var Xs = /*#__PURE__*/ H(Js, [["render", Ys]]), Zs = {
7088
+ var Qs = /*#__PURE__*/ H(Xs, [["render", Zs]]), $s = {
7051
7089
  name: "cvTbColumnText",
7052
7090
  props: { ..._.props },
7053
7091
  data() {
@@ -7058,15 +7096,15 @@ var Xs = /*#__PURE__*/ H(Js, [["render", Ys]]), Zs = {
7058
7096
  let t = e.row[this.prop];
7059
7097
  return this.formatter && (t = this.formatter(e.row, e.column)), t;
7060
7098
  } }
7061
- }, Qs = { style: { display: "contents" } };
7062
- function $s(e, t, n, r, i, a) {
7099
+ }, ec = { style: { display: "contents" } };
7100
+ function tc(e, t, n, r, i, a) {
7063
7101
  let o = P("el-table-column");
7064
7102
  return A(), y(o, O(T(e.$props)), {
7065
- default: R((t) => [S("div", Qs, F(t.row[e.prop]), 1)]),
7103
+ default: R((t) => [S("div", ec, F(t.row[e.prop]), 1)]),
7066
7104
  _: 1
7067
7105
  }, 16);
7068
7106
  }
7069
- var ec = /*#__PURE__*/ H(Zs, [["render", $s]]), tc = {
7107
+ var nc = /*#__PURE__*/ H($s, [["render", tc]]), rc = {
7070
7108
  name: "cvTbColumnImg",
7071
7109
  props: {
7072
7110
  ..._.props,
@@ -7113,11 +7151,11 @@ var ec = /*#__PURE__*/ H(Zs, [["render", $s]]), tc = {
7113
7151
  } else return 0;
7114
7152
  }
7115
7153
  }
7116
- }, nc = {
7154
+ }, ic = {
7117
7155
  key: 0,
7118
7156
  class: "cv-table-column-img-mark"
7119
- }, rc = { class: "cv-table-column-img-text" };
7120
- function ic(e, t, n, r, i, a) {
7157
+ }, ac = { class: "cv-table-column-img-text" };
7158
+ function oc(e, t, n, r, i, a) {
7121
7159
  let o = P("el-image"), s = P("el-table-column");
7122
7160
  return A(), y(s, O(T(e.$props)), {
7123
7161
  default: R((e) => [S("div", {
@@ -7147,11 +7185,11 @@ function ic(e, t, n, r, i, a) {
7147
7185
  "style",
7148
7186
  "src",
7149
7187
  "preview-src-list"
7150
- ]), a.handleImgLeng(e.row) > 1 ? (A(), x("p", nc, [S("span", rc, F(a.handleImgLeng(e.row)) + "张", 1)])) : b("", !0)], 4)]),
7188
+ ]), a.handleImgLeng(e.row) > 1 ? (A(), x("p", ic, [S("span", ac, F(a.handleImgLeng(e.row)) + "张", 1)])) : b("", !0)], 4)]),
7151
7189
  _: 1
7152
7190
  }, 16);
7153
7191
  }
7154
- var ac = /*#__PURE__*/ H(tc, [["render", ic]]), oc = {
7192
+ var sc = /*#__PURE__*/ H(rc, [["render", oc]]), cc = {
7155
7193
  name: "cvTbColumnOpt",
7156
7194
  props: {
7157
7195
  ..._.props,
@@ -7169,7 +7207,7 @@ var ac = /*#__PURE__*/ H(tc, [["render", ic]]), oc = {
7169
7207
  },
7170
7208
  created() {}
7171
7209
  };
7172
- function sc(e, t, n, r, i, a) {
7210
+ function lc(e, t, n, r, i, a) {
7173
7211
  let o = P("el-table-column");
7174
7212
  return A(), y(o, O(T(e.$props)), {
7175
7213
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7180,7 +7218,7 @@ function sc(e, t, n, r, i, a) {
7180
7218
  _: 3
7181
7219
  }, 16);
7182
7220
  }
7183
- var cc = /*#__PURE__*/ H(oc, [["render", sc]]), lc = {
7221
+ var uc = /*#__PURE__*/ H(cc, [["render", lc]]), dc = {
7184
7222
  name: "cvTbColumnBase",
7185
7223
  props: {
7186
7224
  ..._.props,
@@ -7194,7 +7232,7 @@ var cc = /*#__PURE__*/ H(oc, [["render", sc]]), lc = {
7194
7232
  },
7195
7233
  created() {}
7196
7234
  };
7197
- function uc(e, t, n, r, i, a) {
7235
+ function fc(e, t, n, r, i, a) {
7198
7236
  let o = P("el-table-column");
7199
7237
  return A(), y(o, O(T(e.$props)), {
7200
7238
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7205,7 +7243,7 @@ function uc(e, t, n, r, i, a) {
7205
7243
  _: 3
7206
7244
  }, 16);
7207
7245
  }
7208
- var dc = /*#__PURE__*/ H(lc, [["render", uc]]), fc = {
7246
+ var pc = /*#__PURE__*/ H(dc, [["render", fc]]), mc = {
7209
7247
  name: "cvTbColumnExpand",
7210
7248
  props: { ..._.props },
7211
7249
  data() {
@@ -7213,7 +7251,7 @@ var dc = /*#__PURE__*/ H(lc, [["render", uc]]), fc = {
7213
7251
  },
7214
7252
  created() {}
7215
7253
  };
7216
- function pc(e, t, n, r, i, a) {
7254
+ function hc(e, t, n, r, i, a) {
7217
7255
  let o = P("el-table-column");
7218
7256
  return A(), y(o, E(e.$props, { type: "expand" }), {
7219
7257
  default: R((t) => [N(e.$slots, "default", O(T({
@@ -7224,7 +7262,7 @@ function pc(e, t, n, r, i, a) {
7224
7262
  _: 3
7225
7263
  }, 16);
7226
7264
  }
7227
- var mc = /*#__PURE__*/ H(fc, [["render", pc]]), hc = {
7265
+ var gc = /*#__PURE__*/ H(mc, [["render", hc]]), _c = {
7228
7266
  name: "cvTbColumnEnum",
7229
7267
  props: {
7230
7268
  ..._.props,
@@ -7242,14 +7280,14 @@ var mc = /*#__PURE__*/ H(fc, [["render", pc]]), hc = {
7242
7280
  return e[this.prop] ? this.dataLists[e[this.prop]] || "" : this.dataLists[t[0]] || "";
7243
7281
  } }
7244
7282
  };
7245
- function gc(e, t, n, r, i, a) {
7283
+ function vc(e, t, n, r, i, a) {
7246
7284
  let o = P("el-table-column");
7247
7285
  return A(), y(o, O(T(e.$props)), {
7248
7286
  default: R((e) => [S("span", null, F(a.dealTypeEnum(e.row)), 1)]),
7249
7287
  _: 1
7250
7288
  }, 16);
7251
7289
  }
7252
- var _c = /*#__PURE__*/ H(hc, [["render", gc]]), vc = {
7290
+ var yc = /*#__PURE__*/ H(_c, [["render", vc]]), bc = {
7253
7291
  name: "cvTbEditSearch",
7254
7292
  props: {
7255
7293
  ..._.props,
@@ -7350,11 +7388,11 @@ var _c = /*#__PURE__*/ H(hc, [["render", gc]]), vc = {
7350
7388
  this.isEditIndex = null;
7351
7389
  }
7352
7390
  }
7353
- }, yc = { class: "name" }, bc = { class: "addr" }, xc = { class: "addr" }, Sc = { class: "droplist-item" }, Cc = { class: "name" }, wc = {
7391
+ }, xc = { class: "name" }, Sc = { class: "addr" }, Cc = { class: "addr" }, wc = { class: "droplist-item" }, Tc = { class: "name" }, Ec = {
7354
7392
  key: 0,
7355
7393
  class: "attr"
7356
- }, Tc = { class: "price" }, Ec = { class: "rest" }, Dc = ["onClick"];
7357
- function Oc(e, t, n, r, i, a) {
7394
+ }, Dc = { class: "price" }, Oc = { class: "rest" }, kc = ["onClick"];
7395
+ function Ac(e, t, n, r, i, a) {
7358
7396
  let o = P("cv-icons"), s = P("el-icon"), c = P("el-autocomplete"), l = P("el-table-column");
7359
7397
  return A(), y(l, E(e.$props, { "class-name": "cv-table-editor-search-column" }), {
7360
7398
  default: R((t) => [i.isEditIndex == t.$index ? (A(), y(c, E({
@@ -7377,13 +7415,13 @@ function Oc(e, t, n, r, i, a) {
7377
7415
  _: 2
7378
7416
  }, 1024)]),
7379
7417
  default: R(({ item: t }) => [N(e.$slots, "default", { item: t }, () => [
7380
- S("div", yc, F(t.row_name), 1),
7381
- S("span", bc, "价格:" + F(t.row_price), 1),
7382
- S("span", xc, F(t.row_rest), 1),
7383
- S("div", Sc, [
7384
- S("div", Cc, [C(F(t.row_name) + " ", 1), t.row_attr ? (A(), x("div", wc, "[ " + F(t.row_attr) + "]", 1)) : b("", !0)]),
7385
- S("div", Tc, "¥ " + F(t.row_price), 1),
7386
- S("div", Ec, F(t.attr_stock), 1)
7418
+ S("div", xc, F(t.row_name), 1),
7419
+ S("span", Sc, "价格:" + F(t.row_price), 1),
7420
+ S("span", Cc, F(t.row_rest), 1),
7421
+ S("div", wc, [
7422
+ S("div", Tc, [C(F(t.row_name) + " ", 1), t.row_attr ? (A(), x("div", Ec, "[ " + F(t.row_attr) + "]", 1)) : b("", !0)]),
7423
+ S("div", Dc, "¥ " + F(t.row_price), 1),
7424
+ S("div", Oc, F(t.attr_stock), 1)
7387
7425
  ])
7388
7426
  ], !0)]),
7389
7427
  _: 2
@@ -7399,11 +7437,11 @@ function Oc(e, t, n, r, i, a) {
7399
7437
  key: 1,
7400
7438
  class: "showtext",
7401
7439
  onClick: (e) => a.searchEdit(t.row, t.$index)
7402
- }, F(t.row[e.prop]), 9, Dc))]),
7440
+ }, F(t.row[e.prop]), 9, kc))]),
7403
7441
  _: 3
7404
7442
  }, 16);
7405
7443
  }
7406
- var kc = /*#__PURE__*/ H(vc, [["render", Oc], ["__scopeId", "data-v-2b56be3e"]]), Ac = {
7444
+ var jc = /*#__PURE__*/ H(bc, [["render", Ac], ["__scopeId", "data-v-2b56be3e"]]), Mc = {
7407
7445
  name: "cvTbEditOpt",
7408
7446
  props: {
7409
7447
  tableData: {
@@ -7454,7 +7492,7 @@ var kc = /*#__PURE__*/ H(vc, [["render", Oc], ["__scopeId", "data-v-2b56be3e"]])
7454
7492
  }
7455
7493
  }
7456
7494
  };
7457
- function jc(e, t, n, r, i, a) {
7495
+ function Nc(e, t, n, r, i, a) {
7458
7496
  let o = P("cv-icons"), s = P("el-button"), c = P("el-table-column");
7459
7497
  return A(), y(c, O(T(e.$props)), {
7460
7498
  default: R((e) => [n.btnAdd ? (A(), y(s, {
@@ -7485,7 +7523,7 @@ function jc(e, t, n, r, i, a) {
7485
7523
  _: 1
7486
7524
  }, 16);
7487
7525
  }
7488
- var Mc = /*#__PURE__*/ H(Ac, [["render", jc]]), Nc = {
7526
+ var Pc = /*#__PURE__*/ H(Mc, [["render", Nc]]), Fc = {
7489
7527
  name: "cvTbEditText",
7490
7528
  props: {
7491
7529
  ..._.props,
@@ -7599,8 +7637,8 @@ var Mc = /*#__PURE__*/ H(Ac, [["render", jc]]), Nc = {
7599
7637
  } }
7600
7638
  });
7601
7639
  }
7602
- }, Pc = ["onClick"];
7603
- function Fc(e, t, n, r, i, a) {
7640
+ }, Ic = ["onClick"];
7641
+ function Lc(e, t, n, r, i, a) {
7604
7642
  let o = P("el-input"), s = P("el-table-column"), c = Pe("edfocus");
7605
7643
  return A(), y(s, E(e.$props, { "class-name": "cv-table-editor-text-column" }), {
7606
7644
  default: R((t) => [i.isEditIndex == t.$index && !n.editAttr.disabled ? z((A(), y(o, E({ key: 0 }, n.editAttr, {
@@ -7623,11 +7661,11 @@ function Fc(e, t, n, r, i, a) {
7623
7661
  key: 1,
7624
7662
  class: "showtext",
7625
7663
  onClick: (e) => a.textHdEdit(t.row, t.$index)
7626
- }, F(t.row[e.prop]), 9, Pc))]),
7664
+ }, F(t.row[e.prop]), 9, Ic))]),
7627
7665
  _: 1
7628
7666
  }, 16);
7629
7667
  }
7630
- var Ic = /*#__PURE__*/ H(Nc, [["render", Fc]]), Lc = {
7668
+ var Rc = /*#__PURE__*/ H(Fc, [["render", Lc]]), zc = {
7631
7669
  name: "cvTbEditRadio",
7632
7670
  props: {
7633
7671
  ..._.props,
@@ -7668,7 +7706,7 @@ var Ic = /*#__PURE__*/ H(Nc, [["render", Fc]]), Lc = {
7668
7706
  },
7669
7707
  created() {}
7670
7708
  };
7671
- function Rc(e, t, n, r, i, a) {
7709
+ function Bc(e, t, n, r, i, a) {
7672
7710
  let o = P("el-radio"), s = P("el-radio-group"), c = P("el-table-column");
7673
7711
  return A(), y(c, O(T(e.$props)), {
7674
7712
  default: R((t) => [w(s, E({
@@ -7695,7 +7733,7 @@ function Rc(e, t, n, r, i, a) {
7695
7733
  _: 1
7696
7734
  }, 16);
7697
7735
  }
7698
- var zc = /*#__PURE__*/ H(Lc, [["render", Rc]]), Bc = {
7736
+ var Vc = /*#__PURE__*/ H(zc, [["render", Bc]]), Hc = {
7699
7737
  name: "cvTbEditCheckbox",
7700
7738
  props: {
7701
7739
  ..._.props,
@@ -7739,7 +7777,7 @@ var zc = /*#__PURE__*/ H(Lc, [["render", Rc]]), Bc = {
7739
7777
  this.localVal = [];
7740
7778
  } }
7741
7779
  };
7742
- function Vc(e, t, n, r, i, a) {
7780
+ function Uc(e, t, n, r, i, a) {
7743
7781
  let o = P("el-checkbox"), s = P("el-checkbox-group"), c = P("el-table-column");
7744
7782
  return A(), y(c, O(T(e.$props)), {
7745
7783
  default: R((t) => [t.row[e.prop] ? (A(), y(s, E({
@@ -7767,7 +7805,7 @@ function Vc(e, t, n, r, i, a) {
7767
7805
  _: 1
7768
7806
  }, 16);
7769
7807
  }
7770
- var Hc = /*#__PURE__*/ H(Bc, [["render", Vc]]), Uc = {
7808
+ var Wc = /*#__PURE__*/ H(Hc, [["render", Uc]]), Gc = {
7771
7809
  name: "cvTbEditSelect",
7772
7810
  props: {
7773
7811
  ..._.props,
@@ -7808,7 +7846,7 @@ var Hc = /*#__PURE__*/ H(Bc, [["render", Vc]]), Uc = {
7808
7846
  },
7809
7847
  created() {}
7810
7848
  };
7811
- function Wc(e, t, n, r, i, a) {
7849
+ function Kc(e, t, n, r, i, a) {
7812
7850
  let o = P("el-option"), s = P("el-select"), c = P("el-table-column");
7813
7851
  return A(), y(c, O(T(e.$props)), {
7814
7852
  default: R((t) => [w(s, E({
@@ -7835,52 +7873,52 @@ function Wc(e, t, n, r, i, a) {
7835
7873
  _: 1
7836
7874
  }, 16);
7837
7875
  }
7838
- var Gc = /*#__PURE__*/ H(Uc, [["render", Wc]]);
7839
- Is.install = function(e) {
7840
- e.component(Is.name, Is);
7841
- }, Bs.install = function(e) {
7842
- e.component(Bs.name, Bs);
7843
- }, Ws.install = function(e) {
7844
- e.component(Ws.name, Ws);
7845
- }, qs.install = function(e) {
7846
- e.component(qs.name, qs);
7847
- }, Xs.install = function(e) {
7848
- e.component(Xs.name, Xs);
7849
- }, ec.install = function(e) {
7850
- e.component(ec.name, ec);
7851
- }, ac.install = function(e) {
7852
- e.component(ac.name, ac);
7853
- }, cc.install = function(e) {
7854
- e.component(cc.name, cc);
7855
- }, dc.install = function(e) {
7856
- e.component(dc.name, dc);
7857
- }, mc.install = function(e) {
7858
- e.component(mc.name, mc);
7859
- }, _c.install = function(e) {
7860
- e.component(_c.name, _c);
7861
- }, kc.install = function(e) {
7862
- e.component(kc.name, kc);
7863
- }, Mc.install = function(e) {
7864
- e.component(Mc.name, Mc);
7865
- }, Ic.install = function(e) {
7866
- e.component(Ic.name, Ic);
7867
- }, zc.install = function(e) {
7868
- e.component(zc.name, zc);
7869
- }, Hc.install = function(e) {
7870
- e.component(Hc.name, Hc);
7871
- }, Gc.install = function(e) {
7872
- e.component(Gc.name, Gc);
7876
+ var qc = /*#__PURE__*/ H(Gc, [["render", Kc]]);
7877
+ Rs.install = function(e) {
7878
+ e.component(Rs.name, Rs);
7879
+ }, Hs.install = function(e) {
7880
+ e.component(Hs.name, Hs);
7881
+ }, Ks.install = function(e) {
7882
+ e.component(Ks.name, Ks);
7883
+ }, Ys.install = function(e) {
7884
+ e.component(Ys.name, Ys);
7885
+ }, Qs.install = function(e) {
7886
+ e.component(Qs.name, Qs);
7887
+ }, nc.install = function(e) {
7888
+ e.component(nc.name, nc);
7889
+ }, sc.install = function(e) {
7890
+ e.component(sc.name, sc);
7891
+ }, uc.install = function(e) {
7892
+ e.component(uc.name, uc);
7893
+ }, pc.install = function(e) {
7894
+ e.component(pc.name, pc);
7895
+ }, gc.install = function(e) {
7896
+ e.component(gc.name, gc);
7897
+ }, yc.install = function(e) {
7898
+ e.component(yc.name, yc);
7899
+ }, jc.install = function(e) {
7900
+ e.component(jc.name, jc);
7901
+ }, Pc.install = function(e) {
7902
+ e.component(Pc.name, Pc);
7903
+ }, Rc.install = function(e) {
7904
+ e.component(Rc.name, Rc);
7905
+ }, Vc.install = function(e) {
7906
+ e.component(Vc.name, Vc);
7907
+ }, Wc.install = function(e) {
7908
+ e.component(Wc.name, Wc);
7909
+ }, qc.install = function(e) {
7910
+ e.component(qc.name, qc);
7873
7911
  };
7874
7912
  // packages/comment/icons/icon-clear.vue
7875
- var Kc = {}, qc = {
7913
+ var Jc = {}, Yc = {
7876
7914
  width: "12",
7877
7915
  height: "12",
7878
7916
  viewBox: "0 0 12 12",
7879
7917
  fill: "none",
7880
7918
  xmlns: "http://www.w3.org/2000/svg"
7881
7919
  };
7882
- function Jc(e, t) {
7883
- return A(), x("svg", qc, [...t[0] ||= [S("rect", {
7920
+ function Xc(e, t) {
7921
+ return A(), x("svg", Yc, [...t[0] ||= [S("rect", {
7884
7922
  width: "12",
7885
7923
  height: "12",
7886
7924
  rx: "2",
@@ -7892,7 +7930,7 @@ function Jc(e, t) {
7892
7930
  fill: "white"
7893
7931
  }, null, -1)]]);
7894
7932
  }
7895
- var Yc = /*#__PURE__*/ H(Kc, [["render", Jc]]), Xc = {}, Zc = {
7933
+ var Zc = /*#__PURE__*/ H(Jc, [["render", Xc]]), Qc = {}, $c = {
7896
7934
  width: "16",
7897
7935
  height: "16",
7898
7936
  viewBox: "0 0 16 16",
@@ -7900,16 +7938,16 @@ var Yc = /*#__PURE__*/ H(Kc, [["render", Jc]]), Xc = {}, Zc = {
7900
7938
  xmlns: "http://www.w3.org/2000/svg",
7901
7939
  class: "icon"
7902
7940
  };
7903
- function Qc(e, t) {
7904
- return A(), x("svg", Zc, [...t[0] ||= [S("path", {
7941
+ function el(e, t) {
7942
+ return A(), x("svg", $c, [...t[0] ||= [S("path", {
7905
7943
  "fill-rule": "evenodd",
7906
7944
  "clip-rule": "evenodd",
7907
7945
  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"
7908
7946
  }, null, -1)]]);
7909
7947
  }
7910
- var $c = /*#__PURE__*/ H(Xc, [["render", Qc]]), el = {}, tl = { class: "comment-common-icon" };
7911
- function nl(e, t) {
7912
- return A(), x("i", tl, [...t[0] ||= [S("svg", {
7948
+ var tl = /*#__PURE__*/ H(Qc, [["render", el]]), nl = {}, rl = { class: "comment-common-icon" };
7949
+ function il(e, t) {
7950
+ return A(), x("i", rl, [...t[0] ||= [S("svg", {
7913
7951
  width: "12",
7914
7952
  height: "12",
7915
7953
  viewBox: "0 0 12 12",
@@ -7918,7 +7956,7 @@ function nl(e, t) {
7918
7956
  class: ""
7919
7957
  }, [S("path", { d: "M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z" })], -1)]]);
7920
7958
  }
7921
- var rl = /*#__PURE__*/ H(el, [["render", nl]]), il = {}, al = {
7959
+ var al = /*#__PURE__*/ H(nl, [["render", il]]), ol = {}, sl = {
7922
7960
  width: "16",
7923
7961
  height: "16",
7924
7962
  viewBox: "0 0 16 16",
@@ -7926,16 +7964,16 @@ var rl = /*#__PURE__*/ H(el, [["render", nl]]), il = {}, al = {
7926
7964
  xmlns: "http://www.w3.org/2000/svg",
7927
7965
  class: "icon"
7928
7966
  };
7929
- function ol(e, t) {
7930
- return A(), x("svg", al, [...t[0] ||= [S("path", {
7967
+ function cl(e, t) {
7968
+ return A(), x("svg", sl, [...t[0] ||= [S("path", {
7931
7969
  "fill-rule": "evenodd",
7932
7970
  "clip-rule": "evenodd",
7933
7971
  d: "M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"
7934
7972
  }, null, -1)]]);
7935
7973
  }
7936
- var sl = /*#__PURE__*/ H(il, [["render", ol]]), cl = {}, ll = { class: "comment-common-icon" };
7937
- function ul(e, t) {
7938
- return A(), x("i", ll, [...t[0] ||= [S("svg", {
7974
+ var ll = /*#__PURE__*/ H(ol, [["render", cl]]), ul = {}, dl = { class: "comment-common-icon" };
7975
+ function fl(e, t) {
7976
+ return A(), x("i", dl, [...t[0] ||= [S("svg", {
7939
7977
  viewBox: "0 0 1024 1024",
7940
7978
  version: "1.1",
7941
7979
  xmlns: "http://www.w3.org/2000/svg"
@@ -7944,12 +7982,12 @@ function ul(e, t) {
7944
7982
  fill: "currentColor"
7945
7983
  })], -1)]]);
7946
7984
  }
7947
- var dl = /*#__PURE__*/ H(cl, [["render", ul]]), fl = {}, pl = {
7985
+ var pl = /*#__PURE__*/ H(ul, [["render", fl]]), ml = {}, hl = {
7948
7986
  class: "comment-common-icon",
7949
7987
  style: { color: "#1e80ff" }
7950
7988
  };
7951
- function ml(e, t) {
7952
- return A(), x("i", pl, [...t[0] ||= [S("svg", {
7989
+ function gl(e, t) {
7990
+ return A(), x("i", hl, [...t[0] ||= [S("svg", {
7953
7991
  viewBox: "0 0 1024 1024",
7954
7992
  version: "1.1",
7955
7993
  xmlns: "http://www.w3.org/2000/svg",
@@ -7959,9 +7997,9 @@ function ml(e, t) {
7959
7997
  "p-id": "1535"
7960
7998
  })], -1)]]);
7961
7999
  }
7962
- var hl = /*#__PURE__*/ H(fl, [["render", ml]]), gl = {}, _l = { class: "comment-common-icon" };
7963
- function vl(e, t) {
7964
- return A(), x("i", _l, [...t[0] ||= [S("svg", {
8000
+ var _l = /*#__PURE__*/ H(ml, [["render", gl]]), vl = {}, yl = { class: "comment-common-icon" };
8001
+ function bl(e, t) {
8002
+ return A(), x("i", yl, [...t[0] ||= [S("svg", {
7965
8003
  t: "1650360973068",
7966
8004
  viewBox: "0 0 1024 1024",
7967
8005
  version: "1.1",
@@ -7974,7 +8012,7 @@ function vl(e, t) {
7974
8012
  "p-id": "1169"
7975
8013
  })], -1)]]);
7976
8014
  }
7977
- var yl = /*#__PURE__*/ H(gl, [["render", vl]]), bl = {}, xl = {
8015
+ var xl = /*#__PURE__*/ H(vl, [["render", bl]]), Sl = {}, Cl = {
7978
8016
  width: "12",
7979
8017
  height: "12",
7980
8018
  viewBox: "0 0 12 12",
@@ -7982,17 +8020,17 @@ var yl = /*#__PURE__*/ H(gl, [["render", vl]]), bl = {}, xl = {
7982
8020
  xmlns: "http://www.w3.org/2000/svg",
7983
8021
  class: ""
7984
8022
  };
7985
- function Sl(e, t) {
7986
- return A(), x("svg", xl, [...t[0] ||= [S("path", {
8023
+ function wl(e, t) {
8024
+ return A(), x("svg", Cl, [...t[0] ||= [S("path", {
7987
8025
  "data-v-d6f79dbc": "",
7988
8026
  "fill-rule": "evenodd",
7989
8027
  "clip-rule": "evenodd",
7990
8028
  d: "M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"
7991
8029
  }, null, -1)]]);
7992
8030
  }
7993
- var Cl = /*#__PURE__*/ H(bl, [["render", Sl]]), wl = {}, Tl = { class: "comment-common-icon" };
7994
- function El(e, t) {
7995
- return A(), x("i", Tl, [...t[0] ||= [S("svg", {
8031
+ var Tl = /*#__PURE__*/ H(Sl, [["render", wl]]), El = {}, Dl = { class: "comment-common-icon" };
8032
+ function Ol(e, t) {
8033
+ return A(), x("i", Dl, [...t[0] ||= [S("svg", {
7996
8034
  width: "12",
7997
8035
  height: "12",
7998
8036
  viewBox: "0 0 12 12",
@@ -8005,9 +8043,9 @@ function El(e, t) {
8005
8043
  d: "M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"
8006
8044
  })], -1)]]);
8007
8045
  }
8008
- var Dl = /*#__PURE__*/ H(wl, [["render", El]]), Ol = {}, kl = { class: "comment-common-icon" };
8009
- function Al(e, t) {
8010
- return A(), x("i", kl, [...t[0] ||= [S("svg", {
8046
+ var kl = /*#__PURE__*/ H(El, [["render", Ol]]), Al = {}, jl = { class: "comment-common-icon" };
8047
+ function Ml(e, t) {
8048
+ return A(), x("i", jl, [...t[0] ||= [S("svg", {
8011
8049
  viewBox: "0 0 1024 1024",
8012
8050
  version: "1.1",
8013
8051
  xmlns: "http://www.w3.org/2000/svg",
@@ -8019,7 +8057,7 @@ function Al(e, t) {
8019
8057
  "p-id": "1321"
8020
8058
  })], -1)]]);
8021
8059
  }
8022
- var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji" }, Nl = { class: "face-tooltip-head select-none" }, Pl = ["onClick"], Fl = ["src"], Il = { class: "emoji-body select-none" }, Ll = { style: { padding: "0 5px" } }, Rl = ["onClick"], zl = { class: "emoji-btn select-none" }, Bl = { key: 0 }, Vl = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "CompInputEmoji" }, {
8060
+ var Nl = /*#__PURE__*/ H(Al, [["render", Ml]]), Pl = { class: "cv-comment-emoji" }, Fl = { class: "face-tooltip-head select-none" }, Il = ["onClick"], Ll = ["src"], Rl = { class: "emoji-body select-none" }, zl = { style: { padding: "0 5px" } }, Bl = ["onClick"], Vl = { class: "emoji-btn select-none" }, Hl = { key: 0 }, Ul = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "CompInputEmoji" }, {
8023
8061
  __name: "input-emoji",
8024
8062
  props: {
8025
8063
  emoji: {
@@ -8043,29 +8081,29 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8043
8081
  function l() {
8044
8082
  a.value[0] = o[0];
8045
8083
  }
8046
- return (t, n) => (A(), x("div", Ml, [w(I(le), {
8084
+ return (t, n) => (A(), x("div", Pl, [w(I(le), {
8047
8085
  placement: e.placement,
8048
8086
  "popper-class": "emoji-popover",
8049
8087
  width: 250,
8050
8088
  trigger: "click",
8051
8089
  onBeforeEnter: l
8052
8090
  }, {
8053
- reference: R(() => [S("div", zl, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Bl, [w(I($c)), n[0] ||= S("span", null, "表情", -1)]))])]),
8054
- default: R(() => [S("div", Nl, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
8091
+ reference: R(() => [S("div", Vl, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Hl, [w(I(tl)), n[0] ||= S("span", null, "表情", -1)]))])]),
8092
+ default: R(() => [S("div", Fl, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
8055
8093
  key: t,
8056
8094
  class: D(r.value == t ? "active" : ""),
8057
8095
  onClick: (e) => c(t)
8058
8096
  }, [S("img", {
8059
8097
  src: e,
8060
8098
  alt: ""
8061
- }, null, 8, Fl)], 10, Pl))), 128))]), S("div", Il, [S("div", {
8099
+ }, null, 8, Ll)], 10, Il))), 128))]), S("div", Rl, [S("div", {
8062
8100
  class: "emjio-container",
8063
8101
  style: k({ transform: `translateX(${i.value}%)` })
8064
8102
  }, [(A(!0), x(v, null, M(a.value, (e, n) => (A(), x("div", {
8065
8103
  key: n,
8066
8104
  class: "emoji-wrapper"
8067
8105
  }, [w(I(ue), null, {
8068
- default: R(() => [S("div", Ll, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
8106
+ default: R(() => [S("div", zl, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
8069
8107
  key: n,
8070
8108
  class: "emoji-item",
8071
8109
  onClick: (e) => t.$emit("addEmoji", n)
@@ -8079,16 +8117,16 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8079
8117
  margin: "5px"
8080
8118
  },
8081
8119
  lazy: ""
8082
- }, null, 8, ["src", "title"])], 8, Rl))), 128))])]),
8120
+ }, null, 8, ["src", "title"])], 8, Bl))), 128))])]),
8083
8121
  _: 2
8084
8122
  }, 1024)]))), 128))], 4)])]),
8085
8123
  _: 3
8086
8124
  }, 8, ["placement"])]));
8087
8125
  }
8088
- }), [["__scopeId", "data-v-2fb59975"]]), Hl = { class: "cv-comment-editor" }, Ul = ["placeholder", "innerHTML"], Wl = ["src"], Gl = ["onClick"], Kl = {
8126
+ }), [["__scopeId", "data-v-2fb59975"]]), Wl = { class: "cv-comment-editor" }, Gl = ["placeholder", "innerHTML"], Kl = ["src"], ql = ["onClick"], Jl = {
8089
8127
  key: 0,
8090
8128
  class: "cv-comment-editor__action"
8091
- }, ql = /*#__PURE__*/ H({
8129
+ }, Yl = /*#__PURE__*/ H({
8092
8130
  __name: "input-box",
8093
8131
  props: {
8094
8132
  placeholder: "",
@@ -8169,7 +8207,7 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8169
8207
  let t = e.target;
8170
8208
  t.innerHTML == "<br>" && (t.innerHTML = "");
8171
8209
  });
8172
- }), n({ focus: () => ye() }), (t, n) => z((A(), x("div", Hl, [S("div", { class: D(["cv-comment-editor__box", {
8210
+ }), n({ focus: () => ye() }), (t, n) => z((A(), x("div", Wl, [S("div", { class: D(["cv-comment-editor__box", {
8173
8211
  active: c.value,
8174
8212
  "input-active": l.value
8175
8213
  }]) }, [S("div", {
@@ -8187,7 +8225,7 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8187
8225
  minHeight: ae.value,
8188
8226
  padding: oe.value
8189
8227
  })
8190
- }, null, 44, Ul), S("div", {
8228
+ }, null, 44, Gl), S("div", {
8191
8229
  ref_key: "imageRef",
8192
8230
  ref: g,
8193
8231
  class: "image-preview-box"
@@ -8197,18 +8235,18 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8197
8235
  }, [S("img", {
8198
8236
  src: e,
8199
8237
  alt: ""
8200
- }, null, 8, Wl), S("div", {
8238
+ }, null, 8, Kl), S("div", {
8201
8239
  class: "clean-btn",
8202
8240
  onClick: (e) => T(t)
8203
- }, [w(I(Yc))], 8, Gl)]))), 128))], 512)], 2), w(ge, { name: "fade" }, {
8204
- default: R(() => [l.value ? (A(), x("div", Kl, [S("div", null, [w(Vl, {
8241
+ }, [w(I(Zc))], 8, ql)]))), 128))], 512)], 2), w(ge, { name: "fade" }, {
8242
+ default: R(() => [l.value ? (A(), x("div", Jl, [S("div", null, [w(Ul, {
8205
8243
  emoji: I(de),
8206
8244
  onAddEmoji: n[0] ||= (e) => _e(e)
8207
8245
  }, null, 8, ["emoji"]), S("div", {
8208
8246
  class: "picture",
8209
8247
  onClick: n[1] ||= (...e) => p.value?.click && p.value?.click(...e)
8210
8248
  }, [
8211
- w(I(sl)),
8249
+ w(I(ll)),
8212
8250
  n[2] ||= S("span", null, "图片", -1),
8213
8251
  S("input", {
8214
8252
  id: "comment-upload",
@@ -8236,7 +8274,7 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8236
8274
  f.value
8237
8275
  ]]);
8238
8276
  }
8239
- }, [["__scopeId", "data-v-e3fd437e"]]), Jl = { class: "u-fold" }, Yl = { class: "action-box select-none" }, Xl = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "UFold" }, {
8277
+ }, [["__scopeId", "data-v-e3fd437e"]]), Xl = { class: "u-fold" }, Zl = { class: "action-box select-none" }, Ql = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "UFold" }, {
8240
8278
  __name: "fold",
8241
8279
  props: { line: {
8242
8280
  type: [Number, String],
@@ -8254,16 +8292,16 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8254
8292
  }), o.observe(a.value);
8255
8293
  }), Ae(() => {
8256
8294
  o.disconnect();
8257
- }), (e, t) => (A(), x("div", Jl, [S("div", { class: D(["txt-box", { "over-hidden": r.value }]) }, [S("div", {
8295
+ }), (e, t) => (A(), x("div", Xl, [S("div", { class: D(["txt-box", { "over-hidden": r.value }]) }, [S("div", {
8258
8296
  ref_key: "divBox",
8259
8297
  ref: a
8260
- }, [N(e.$slots, "default", {}, void 0, !0)], 512)], 2), S("div", Yl, [i.value && e.unfold ? (A(), x("div", {
8298
+ }, [N(e.$slots, "default", {}, void 0, !0)], 512)], 2), S("div", Zl, [i.value && e.unfold ? (A(), x("div", {
8261
8299
  key: 0,
8262
8300
  class: "expand-btn",
8263
8301
  onClick: t[0] ||= (e) => r.value = !r.value
8264
8302
  }, F(r.value ? "展开" : "收起"), 1)) : b("", !0)])]));
8265
8303
  }
8266
- }), [["__scopeId", "data-v-94334818"]]), Zl = {
8304
+ }), [["__scopeId", "data-v-94334818"]]), $l = {
8267
8305
  __name: "user-card",
8268
8306
  props: { uid: "" },
8269
8307
  setup(e) {
@@ -8282,13 +8320,13 @@ var jl = /*#__PURE__*/ H(Ol, [["render", Al]]), Ml = { class: "cv-comment-emoji"
8282
8320
  }
8283
8321
  };
8284
8322
  // node_modules/.pnpm/@vueuse+shared@15.0.0_vue@3.5.44_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
8285
- function Ql(e, t) {
8323
+ function eu(e, t) {
8286
8324
  return Se() ? (ke(e, t), !0) : !1;
8287
8325
  }
8288
- var $l = typeof window < "u" && typeof document < "u";
8326
+ var tu = typeof window < "u" && typeof document < "u";
8289
8327
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8290
- var eu = Object.prototype.toString, tu = (e) => eu.call(e) === "[object Object]";
8291
- function nu(e) {
8328
+ var nu = Object.prototype.toString, ru = (e) => nu.call(e) === "[object Object]";
8329
+ function iu(e) {
8292
8330
  let t;
8293
8331
  function n() {
8294
8332
  return t ||= e(), t;
@@ -8298,10 +8336,10 @@ function nu(e) {
8298
8336
  t = void 0, e && await e;
8299
8337
  }, n;
8300
8338
  }
8301
- function ru(e) {
8339
+ function au(e) {
8302
8340
  return Array.isArray(e) ? e : [e];
8303
8341
  }
8304
- function iu(e, t, n = {}) {
8342
+ function ou(e, t, n = {}) {
8305
8343
  let { immediate: r = !0, immediateCallback: i = !1 } = n, a = Le(!1), o;
8306
8344
  function s() {
8307
8345
  o &&= (clearTimeout(o), void 0);
@@ -8314,63 +8352,63 @@ function iu(e, t, n = {}) {
8314
8352
  a.value = !1, o = void 0, e(...n);
8315
8353
  }, Ve(t));
8316
8354
  }
8317
- return r && (a.value = !0, $l && l()), Ql(c), {
8355
+ return r && (a.value = !0, tu && l()), eu(c), {
8318
8356
  isPending: Ie(a),
8319
8357
  start: l,
8320
8358
  stop: c
8321
8359
  };
8322
8360
  }
8323
- function au(e, t, n) {
8361
+ function su(e, t, n) {
8324
8362
  return Ge(e, t, {
8325
8363
  ...n,
8326
8364
  immediate: !0
8327
8365
  });
8328
8366
  }
8329
8367
  // node_modules/.pnpm/@vueuse+core@15.0.0_vue@3.5.44_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
8330
- var ou = $l ? window : void 0;
8331
- $l && window.document;
8332
- var su = $l ? window.navigator : void 0;
8333
- $l && window.location;
8334
- function cu(e) {
8368
+ var cu = tu ? window : void 0;
8369
+ tu && window.document;
8370
+ var lu = tu ? window.navigator : void 0;
8371
+ tu && window.location;
8372
+ function uu(e) {
8335
8373
  let t = Ve(e);
8336
8374
  return t?.$el ?? t;
8337
8375
  }
8338
- function lu(...e) {
8376
+ function du(...e) {
8339
8377
  let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = ve(() => {
8340
- let t = ru(Ve(e[0])).filter((e) => e != null);
8378
+ let t = au(Ve(e[0])).filter((e) => e != null);
8341
8379
  return t.every((e) => typeof e != "string") ? t : void 0;
8342
8380
  });
8343
- return au(() => [
8344
- n.value?.map((e) => cu(e)) ?? [ou].filter((e) => e != null),
8345
- ru(Ve(n.value ? e[1] : e[0])),
8346
- ru(I(n.value ? e[2] : e[1])),
8381
+ return su(() => [
8382
+ n.value?.map((e) => uu(e)) ?? [cu].filter((e) => e != null),
8383
+ au(Ve(n.value ? e[1] : e[0])),
8384
+ au(I(n.value ? e[2] : e[1])),
8347
8385
  Ve(n.value ? e[3] : e[2])
8348
8386
  ], ([e, n, r, i], a, o) => {
8349
8387
  if (!e?.length || !n?.length || !r?.length) return;
8350
- let s = tu(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
8388
+ let s = ru(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
8351
8389
  o(() => {
8352
8390
  c.forEach((e) => e());
8353
8391
  });
8354
8392
  }, { flush: "post" });
8355
8393
  }
8356
- function uu() {
8394
+ function fu() {
8357
8395
  let e = Le(!1), t = xe();
8358
8396
  return t && Oe(() => {
8359
8397
  e.value = !0;
8360
8398
  }, t), e;
8361
8399
  }
8362
8400
  /* @__NO_SIDE_EFFECTS__ */
8363
- function du(e) {
8364
- let t = uu();
8401
+ function pu(e) {
8402
+ let t = fu();
8365
8403
  return ve(() => (t.value, !!e()));
8366
8404
  }
8367
8405
  /* @__NO_SIDE_EFFECTS__ */
8368
- function fu(e, t = {}) {
8369
- let { controls: n = !1, navigator: r = su } = t, i = /* @__PURE__ */ du(() => r && "permissions" in r), a = Le(), o = typeof e == "string" ? { name: e } : e, s = Le(), c = () => {
8406
+ function mu(e, t = {}) {
8407
+ let { controls: n = !1, navigator: r = lu } = t, i = /* @__PURE__ */ pu(() => r && "permissions" in r), a = Le(), o = typeof e == "string" ? { name: e } : e, s = Le(), c = () => {
8370
8408
  s.value = a.value?.state ?? "prompt";
8371
8409
  };
8372
- lu(a, "change", c, { passive: !0 });
8373
- let l = nu(async () => {
8410
+ du(a, "change", c, { passive: !0 });
8411
+ let l = iu(async () => {
8374
8412
  if (i.value) {
8375
8413
  if (!a.value) try {
8376
8414
  a.value = await r.permissions.query(o);
@@ -8389,8 +8427,8 @@ function fu(e, t = {}) {
8389
8427
  } : s;
8390
8428
  }
8391
8429
  /* @__NO_SIDE_EFFECTS__ */
8392
- function pu(e = {}) {
8393
- let { navigator: t = su, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ du(() => t && "clipboard" in t), s = /* @__PURE__ */ fu("clipboard-read"), c = /* @__PURE__ */ fu("clipboard-write"), l = ve(() => o.value || a), u = Le(""), d = Le(!1), f = Le(!1), p = iu(() => d.value = !1, i, { immediate: !1 }), m = 0;
8430
+ function hu(e = {}) {
8431
+ let { navigator: t = lu, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ pu(() => t && "clipboard" in t), s = /* @__PURE__ */ mu("clipboard-read"), c = /* @__PURE__ */ mu("clipboard-write"), l = ve(() => o.value || a), u = Le(""), d = Le(!1), f = Le(!1), p = ou(() => d.value = !1, i, { immediate: !1 }), m = 0;
8394
8432
  async function ee() {
8395
8433
  let e = !(o.value && ie(s.value));
8396
8434
  if (!e) try {
@@ -8400,7 +8438,7 @@ function pu(e = {}) {
8400
8438
  }
8401
8439
  e && (u.value = re());
8402
8440
  }
8403
- l.value && n && lu(["copy", "cut"], ee, { passive: !0 });
8441
+ l.value && n && du(["copy", "cut"], ee, { passive: !0 });
8404
8442
  async function te(e) {
8405
8443
  let n = e ?? Ve(r);
8406
8444
  if (l.value && n != null) {
@@ -8445,14 +8483,14 @@ function pu(e = {}) {
8445
8483
  };
8446
8484
  }
8447
8485
  // packages/comment/src/comment-operate.vue
8448
- var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp" }, gu = { class: "dialog-footer" }, _u = {
8486
+ var gu = { class: "comment-list-actbox__right" }, _u = { class: "operation-warp" }, vu = { class: "dialog-footer" }, yu = {
8449
8487
  __name: "comment-operate",
8450
8488
  props: { data: {
8451
8489
  type: [Object],
8452
8490
  default: () => ({})
8453
8491
  } },
8454
8492
  setup(e) {
8455
- let { copy: t } = /* @__PURE__ */ pu(), n = j(!1), r = j({
8493
+ let { copy: t } = /* @__PURE__ */ hu(), n = j(!1), r = j({
8456
8494
  report_type: "",
8457
8495
  report_content: ""
8458
8496
  }), i = e;
@@ -8482,7 +8520,7 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8482
8520
  }
8483
8521
  return (e, t) => {
8484
8522
  let i = P("el-dropdown-item"), s = P("el-dropdown-menu"), c = P("el-dropdown"), l = P("el-radio"), u = P("el-radio-group"), d = P("el-form-item"), f = P("el-input"), p = P("el-form"), m = P("el-button"), ee = P("el-dialog");
8485
- return A(), x("div", mu, [w(c, {
8523
+ return A(), x("div", gu, [w(c, {
8486
8524
  trigger: "click",
8487
8525
  onCommand: t[0] ||= (e) => o(e)
8488
8526
  }, {
@@ -8506,7 +8544,7 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8506
8544
  ]),
8507
8545
  _: 1
8508
8546
  })]),
8509
- default: R(() => [S("div", hu, [w(I(dl))])]),
8547
+ default: R(() => [S("div", _u, [w(I(pl))])]),
8510
8548
  _: 1
8511
8549
  }), w(ee, {
8512
8550
  title: "举报",
@@ -8518,7 +8556,7 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8518
8556
  "max-width": "400px"
8519
8557
  }
8520
8558
  }, {
8521
- footer: R(() => [S("span", gu, [w(m, { onClick: t[3] ||= (e) => n.value = !1 }, {
8559
+ footer: R(() => [S("span", vu, [w(m, { onClick: t[3] ||= (e) => n.value = !1 }, {
8522
8560
  default: R(() => [...t[13] ||= [C("取消", -1)]]),
8523
8561
  _: 1
8524
8562
  }), w(m, {
@@ -8576,25 +8614,25 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8576
8614
  }, 8, ["modelValue"])]);
8577
8615
  };
8578
8616
  }
8579
- }, vu = { class: "comment-sub" }, yu = ["href"], bu = { class: "comment-primary" }, xu = { class: "comment-main" }, Su = {
8617
+ }, bu = { class: "comment-sub" }, xu = ["href"], Su = { class: "comment-primary" }, Cu = { class: "comment-main" }, wu = {
8580
8618
  key: 1,
8581
8619
  class: "user-info"
8582
- }, Cu = ["href"], wu = { class: "username" }, Tu = {
8620
+ }, Tu = ["href"], Eu = { class: "username" }, Du = {
8583
8621
  class: "name",
8584
8622
  style: { "max-width": "10em" }
8585
- }, Eu = {
8623
+ }, Ou = {
8586
8624
  blank: "true",
8587
8625
  class: "rank"
8588
- }, Du = ["innerHTML"], Ou = {
8626
+ }, ku = ["innerHTML"], Au = {
8589
8627
  class: "address",
8590
8628
  style: {
8591
8629
  color: "#939393",
8592
8630
  "font-size": "12px"
8593
8631
  }
8594
- }, ku = { class: "time" }, Au = { class: "content" }, ju = ["innerHTML"], Mu = {
8632
+ }, ju = { class: "time" }, Mu = { class: "content" }, Nu = ["innerHTML"], Pu = {
8595
8633
  class: "imgbox",
8596
8634
  style: { display: "flex" }
8597
- }, Nu = { class: "comment-list-actbox select-none" }, Pu = { class: "comment-list-actbox__left" }, Fu = { key: 2 }, Iu = { class: "comment-list-actbox__right" }, Lu = { key: 2 }, Ru = /*#__PURE__*/ H({
8635
+ }, Fu = { class: "comment-list-actbox select-none" }, Iu = { class: "comment-list-actbox__left" }, Lu = { key: 2 }, Ru = { class: "comment-list-actbox__right" }, zu = { key: 2 }, Bu = /*#__PURE__*/ H({
8598
8636
  __name: "content-box",
8599
8637
  props: {
8600
8638
  reply: {
@@ -8647,7 +8685,7 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8647
8685
  default: return "";
8648
8686
  }
8649
8687
  };
8650
- return (s, ee) => (A(), x("div", { class: D(["comment", { reply: t.reply }]) }, [S("div", vu, [w(Zl, { uid: I(Yr)(e.data.uid) }, {
8688
+ return (s, ee) => (A(), x("div", { class: D(["comment", { reply: t.reply }]) }, [S("div", bu, [w($l, { uid: I(Yr)(e.data.uid) }, {
8651
8689
  default: R(() => [S("a", {
8652
8690
  href: e.data.user.homeLink,
8653
8691
  target: "_blank",
@@ -8661,28 +8699,28 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8661
8699
  }, {
8662
8700
  default: R(() => [...ee[2] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
8663
8701
  _: 1
8664
- }, 8, ["src"])], 8, yu)]),
8702
+ }, 8, ["src"])], 8, xu)]),
8665
8703
  _: 1
8666
- }, 8, ["uid"])]), S("div", bu, [S("div", xu, [
8667
- I(p).info ? (A(), y(m, { key: 0 })) : (A(), x("div", Su, [
8668
- w(Zl, { uid: I(Yr)(e.data.uid) }, {
8704
+ }, 8, ["uid"])]), S("div", Su, [S("div", Cu, [
8705
+ I(p).info ? (A(), y(m, { key: 0 })) : (A(), x("div", wu, [
8706
+ w($l, { uid: I(Yr)(e.data.uid) }, {
8669
8707
  default: R(() => [S("a", {
8670
8708
  href: e.data.user.homeLink,
8671
8709
  target: "_blank",
8672
8710
  class: "no-underline",
8673
8711
  style: { display: "block" }
8674
- }, [S("div", wu, [S("span", Tu, F(e.data.user.username), 1), S("span", Eu, [S("i", {
8712
+ }, [S("div", Eu, [S("span", Du, F(e.data.user.username), 1), S("span", Ou, [S("i", {
8675
8713
  class: "comment-common-icon",
8676
8714
  style: { "font-size": "24px" },
8677
8715
  innerHTML: h(e.data.user.level)
8678
- }, null, 8, Du)])])], 8, Cu)]),
8716
+ }, null, 8, ku)])])], 8, Tu)]),
8679
8717
  _: 1
8680
8718
  }, 8, ["uid"]),
8681
- S("span", Ou, "\xA0\xA0" + F(e.data.address), 1),
8682
- S("time", ku, F(I(u) ? I(Br)(e.data.createTime) : e.data.createTime), 1)
8719
+ S("span", Au, "\xA0\xA0" + F(e.data.address), 1),
8720
+ S("time", ju, F(I(u) ? I(Br)(e.data.createTime) : e.data.createTime), 1)
8683
8721
  ])),
8684
- S("div", Au, [w(Xl, { unfold: "" }, {
8685
- default: R(() => [S("div", { innerHTML: ne.value }, null, 8, ju), S("div", Mu, [(A(!0), x(v, null, M(o.value, (e, t) => (A(), y(I(te), {
8722
+ S("div", Mu, [w(Ql, { unfold: "" }, {
8723
+ default: R(() => [S("div", { innerHTML: ne.value }, null, 8, Nu), S("div", Pu, [(A(!0), x(v, null, M(o.value, (e, t) => (A(), y(I(te), {
8686
8724
  key: t,
8687
8725
  src: e,
8688
8726
  style: {
@@ -8699,18 +8737,18 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8699
8737
  ]))), 128))])]),
8700
8738
  _: 1
8701
8739
  })]),
8702
- S("div", Nu, [S("div", Pu, [S("div", {
8740
+ S("div", Fu, [S("div", Iu, [S("div", {
8703
8741
  "data-tip": "点赞",
8704
8742
  class: "item",
8705
8743
  onClick: ee[0] ||= (t) => I(c)(I(Yr)(e.data.id))
8706
- }, [I(l).likeIds.map(String).indexOf(I(Yr)(e.data.id)) == -1 ? (A(), y(I(yl), { key: 0 })) : (A(), y(I(hl), { key: 1 })), e.data.likes == 0 ? b("", !0) : (A(), x("span", Fu, F(e.data.likes), 1))]), S("div", {
8744
+ }, [I(l).likeIds.map(String).indexOf(I(Yr)(e.data.id)) == -1 ? (A(), y(I(xl), { key: 0 })) : (A(), y(I(_l), { key: 1 })), e.data.likes == 0 ? b("", !0) : (A(), x("span", Lu, F(e.data.likes), 1))]), S("div", {
8707
8745
  "data-tip": "回复",
8708
8746
  ref_key: "btnRef",
8709
8747
  ref: a,
8710
8748
  class: D(["item", { active: r.active }]),
8711
8749
  onClick: d
8712
- }, [w(I(jl)), S("span", null, F(r.active ? "取消回复" : "回复"), 1)], 2)]), S("div", Iu, [N(s.$slots, "operate", {}, () => [w(_u, { data: t.data }, null, 8, ["data"])], !0)])]),
8713
- r.active ? (A(), x("div", Lu, [w(ql, {
8750
+ }, [w(I(Nl)), S("span", null, F(r.active ? "取消回复" : "回复"), 1)], 2)]), S("div", Ru, [N(s.$slots, "operate", {}, () => [w(yu, { data: t.data }, null, 8, ["data"])], !0)])]),
8751
+ r.active ? (A(), x("div", zu, [w(Yl, {
8714
8752
  ref_key: "commentRef",
8715
8753
  ref: i,
8716
8754
  "parent-id": I(Yr)(e.id),
@@ -8727,16 +8765,16 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8727
8765
  ])])) : b("", !0)
8728
8766
  ]), N(s.$slots, "default", {}, void 0, !0)])], 2));
8729
8767
  }
8730
- }, [["__scopeId", "data-v-cfe79df7"]]), zu = {
8768
+ }, [["__scopeId", "data-v-cfe79df7"]]), Vu = {
8731
8769
  key: 0,
8732
8770
  class: "reply-box"
8733
- }, Bu = { class: "reply-list" }, Vu = {
8771
+ }, Hu = { class: "reply-list" }, Uu = {
8734
8772
  key: 0,
8735
8773
  class: "fetch-more"
8736
- }, Hu = { key: 0 }, Uu = { key: 1 }, Wu = { key: 0 }, Gu = {
8774
+ }, Wu = { key: 0 }, Gu = { key: 1 }, Ku = { key: 0 }, qu = {
8737
8775
  key: 1,
8738
8776
  class: "fetch-more"
8739
- }, Ku = /*#__PURE__*/ H({
8777
+ }, Ju = /*#__PURE__*/ H({
8740
8778
  __name: "reply-box",
8741
8779
  props: {
8742
8780
  data: {
@@ -8784,18 +8822,18 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8784
8822
  }, d = (e) => {
8785
8823
  n.pageSize = e, r(t.id, n.pageNum, e, (e) => l(e));
8786
8824
  };
8787
- return (t, r) => s.value.length > 0 ? (A(), x("div", zu, [S("div", Bu, [
8788
- (A(!0), x(v, null, M(s.value.list, (t, n) => (A(), y(Ru, {
8825
+ return (t, r) => s.value.length > 0 ? (A(), x("div", Vu, [S("div", Hu, [
8826
+ (A(!0), x(v, null, M(s.value.list, (t, n) => (A(), y(Bu, {
8789
8827
  id: e.id,
8790
8828
  key: n,
8791
8829
  data: t,
8792
8830
  reply: ""
8793
8831
  }, null, 8, ["id", "data"]))), 128)),
8794
- s.value.length > I(i) ? (A(), x("div", Vu, [n.loading ? (A(), x("span", Hu, "加载中...")) : (A(), x("div", Uu, [n.over ? b("", !0) : (A(), x("div", Wu, [C(" 共" + F(s.value.total) + "条回复, ", 1), S("span", {
8832
+ s.value.length > I(i) ? (A(), x("div", Uu, [n.loading ? (A(), x("span", Wu, "加载中...")) : (A(), x("div", Gu, [n.over ? b("", !0) : (A(), x("div", Ku, [C(" 共" + F(s.value.total) + "条回复, ", 1), S("span", {
8795
8833
  class: "fetch-more-comment select-none",
8796
8834
  onClick: c
8797
- }, [r[0] ||= C(" 点击查看 ", -1), w(I(Cl))])]))]))])) : b("", !0),
8798
- n.over && I(o) ? (A(), x("div", Gu, [w(I(ce), {
8835
+ }, [r[0] ||= C(" 点击查看 ", -1), w(I(Tl))])]))]))])) : b("", !0),
8836
+ n.over && I(o) ? (A(), x("div", qu, [w(I(ce), {
8799
8837
  small: "",
8800
8838
  "hide-on-single-page": "",
8801
8839
  layout: "total, prev, pager, next",
@@ -8806,10 +8844,10 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8806
8844
  }, null, 8, ["total", "page-size"])])) : b("", !0)
8807
8845
  ])])) : b("", !0);
8808
8846
  }
8809
- }, [["__scopeId", "data-v-16e0a50b"]]), qu = {
8847
+ }, [["__scopeId", "data-v-16e0a50b"]]), Yu = {
8810
8848
  key: 0,
8811
8849
  class: "comment-list"
8812
- }, Ju = {
8850
+ }, Xu = {
8813
8851
  __name: "comment-list",
8814
8852
  props: {
8815
8853
  data: {
@@ -8826,19 +8864,19 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8826
8864
  }
8827
8865
  },
8828
8866
  setup(e) {
8829
- return (t, n) => e.data ? (A(), x("div", qu, [(A(!0), x(v, null, M(e.data, (e, t) => (A(), y(Ru, {
8867
+ return (t, n) => e.data ? (A(), x("div", Yu, [(A(!0), x(v, null, M(e.data, (e, t) => (A(), y(Bu, {
8830
8868
  id: I(Yr)(e.id),
8831
8869
  key: t,
8832
8870
  data: e
8833
8871
  }, {
8834
- default: R(() => [w(Ku, {
8872
+ default: R(() => [w(Ju, {
8835
8873
  id: I(Yr)(e.id),
8836
8874
  data: e.reply
8837
8875
  }, null, 8, ["id", "data"])]),
8838
8876
  _: 2
8839
8877
  }, 1032, ["id", "data"]))), 128))])) : b("", !0);
8840
8878
  }
8841
- }, Yu = { class: "cv-comment-base" }, Xu = { class: "cv-comment-form" }, Zu = { class: "cv-comment-form__content" }, Qu = { class: "cv-comment-form__avatar" }, $u = { class: "cv-comment-list-wrapper" }, ed = /*@__PURE__*/ Object.assign({ name: "cvCommentBase" }, {
8879
+ }, Zu = { class: "cv-comment-base" }, Qu = { class: "cv-comment-form" }, $u = { class: "cv-comment-form__content" }, ed = { class: "cv-comment-form__avatar" }, td = { class: "cv-comment-list-wrapper" }, nd = /*@__PURE__*/ Object.assign({ name: "cvCommentBase" }, {
8842
8880
  __name: "comment",
8843
8881
  props: {
8844
8882
  config: {},
@@ -8925,19 +8963,19 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8925
8963
  }
8926
8964
  } }), (t, n) => {
8927
8965
  let r = P("el-avatar");
8928
- return A(), x("div", Yu, [
8929
- S("div", Xu, [n[1] ||= S("div", { class: "cv-comment-form__header" }, [S("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1), S("div", Zu, [S("div", Qu, [w(r, {
8966
+ return A(), x("div", Zu, [
8967
+ S("div", Qu, [n[1] ||= S("div", { class: "cv-comment-form__header" }, [S("span", { class: "cv-comment-form__hdtitle" }, "评论")], -1), S("div", $u, [S("div", ed, [w(r, {
8930
8968
  size: 40,
8931
8969
  src: e.config.user.avatar
8932
8970
  }, {
8933
8971
  default: R(() => [...n[0] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
8934
8972
  _: 1
8935
- }, 8, ["src"])]), w(ql, {
8973
+ }, 8, ["src"])]), w(Yl, {
8936
8974
  placeholder: "输入评论(Enter换行,Ctrl + Enter发送)",
8937
8975
  "content-btn": "发表评论"
8938
8976
  })])]),
8939
8977
  N(t.$slots, "default", {}, () => [n[2] ||= S("div", { class: "title" }, "全部评论", -1)]),
8940
- S("div", $u, [w(Ju, {
8978
+ S("div", td, [w(Xu, {
8941
8979
  data: I(a),
8942
8980
  total: I(c),
8943
8981
  "show-size": I(Kr)(I(o), 5)
@@ -8949,7 +8987,7 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8949
8987
  ]);
8950
8988
  };
8951
8989
  }
8952
- }), td = { class: "comment-scroll" }, nd = ["infinite-scroll-disabled"], rd = { class: "scroll-btn" }, id = { key: 1 }, ad = { key: 2 }, od = /*@__PURE__*/ Object.assign({ name: "cvCommentScroll" }, {
8990
+ }), rd = { class: "comment-scroll" }, id = ["infinite-scroll-disabled"], ad = { class: "scroll-btn" }, od = { key: 1 }, sd = { key: 2 }, cd = /*@__PURE__*/ Object.assign({ name: "cvCommentScroll" }, {
8953
8991
  __name: "comment-scroll",
8954
8992
  props: {
8955
8993
  disable: {
@@ -8970,10 +9008,10 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8970
9008
  };
8971
9009
  return (e, t) => {
8972
9010
  let n = P("el-link"), a = Pe("infinite-scroll");
8973
- return A(), x("div", td, [z((A(), x("div", {
9011
+ return A(), x("div", rd, [z((A(), x("div", {
8974
9012
  "infinite-scroll-disabled": s.value,
8975
9013
  "infinite-scroll-distance": "2"
8976
- }, [N(e.$slots, "default"), S("div", rd, [
9014
+ }, [N(e.$slots, "default"), S("div", ad, [
8977
9015
  i.value ? b("", !0) : (A(), y(n, {
8978
9016
  key: 0,
8979
9017
  type: "primary",
@@ -8983,12 +9021,12 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
8983
9021
  default: R(() => [...t[1] ||= [C("加载更多", -1)]]),
8984
9022
  _: 1
8985
9023
  })),
8986
- r.value ? (A(), x("p", id, "加载中...")) : b("", !0),
8987
- o.value ? (A(), x("p", ad, "没有更多了")) : b("", !0)
8988
- ])], 8, nd)), [[a, l]])]);
9024
+ r.value ? (A(), x("p", od, "加载中...")) : b("", !0),
9025
+ o.value ? (A(), x("p", sd, "没有更多了")) : b("", !0)
9026
+ ])], 8, id)), [[a, l]])]);
8989
9027
  };
8990
9028
  }
8991
- }), sd = { class: "cv-comment-nav-wrap" }, cd = { class: "cv-comment-nav__sort" }, ld = /*@__PURE__*/ Object.assign({ name: "cvCommentNav" }, {
9029
+ }), ld = { class: "cv-comment-nav-wrap" }, ud = { class: "cv-comment-nav__sort" }, dd = /*@__PURE__*/ Object.assign({ name: "cvCommentNav" }, {
8992
9030
  __name: "comment-nav",
8993
9031
  props: { modelValue: !1 },
8994
9032
  emits: ["update:modelValue", "sorted"],
@@ -9001,24 +9039,24 @@ var mu = { class: "comment-list-actbox__right" }, hu = { class: "operation-warp"
9001
9039
  r("update:modelValue", e), r("sorted", e);
9002
9040
  }
9003
9041
  });
9004
- return (e, t) => (A(), x("div", sd, [t[4] ||= S("span", { class: "cv-comment-nav__title" }, "全部评论", -1), S("div", cd, [S("div", {
9042
+ return (e, t) => (A(), x("div", ld, [t[4] ||= S("span", { class: "cv-comment-nav__title" }, "全部评论", -1), S("div", ud, [S("div", {
9005
9043
  class: D(["item select-none", { active: i.value }]),
9006
9044
  onClick: t[0] ||= (e) => i.value = !0
9007
- }, [w(I(Dl)), t[2] ||= C(" 最新 ", -1)], 2), S("div", {
9045
+ }, [w(I(kl)), t[2] ||= C(" 最新 ", -1)], 2), S("div", {
9008
9046
  class: D(["item select-none", { active: !i.value }]),
9009
9047
  onClick: t[1] ||= (e) => i.value = !1
9010
- }, [w(I(rl)), t[3] ||= C(" 最热 ", -1)], 2)])]));
9048
+ }, [w(I(al)), t[3] ||= C(" 最热 ", -1)], 2)])]));
9011
9049
  }
9012
9050
  });
9013
- ed.install = function(e) {
9014
- e.component(ed.name, ed);
9015
- }, od.install = function(e) {
9016
- e.component(od.name, od);
9017
- }, ld.install = function(e) {
9018
- e.component(ld.name, ld);
9051
+ nd.install = function(e) {
9052
+ e.component(nd.name, nd);
9053
+ }, cd.install = function(e) {
9054
+ e.component(cd.name, cd);
9055
+ }, dd.install = function(e) {
9056
+ e.component(dd.name, dd);
9019
9057
  };
9020
9058
  // packages/icons/src/icons.vue
9021
- var ud = {
9059
+ var fd = {
9022
9060
  name: "cvIcons",
9023
9061
  props: {
9024
9062
  type: {
@@ -9053,13 +9091,13 @@ var ud = {
9053
9091
  created() {},
9054
9092
  methods: {}
9055
9093
  };
9056
- function dd(e, t, n, r, i, a) {
9094
+ function pd(e, t, n, r, i, a) {
9057
9095
  return A(), x("i", {
9058
9096
  style: k(a.mergeIconStyle),
9059
9097
  class: D(["cv-icon", n.rotate ? "cv-icons-turn" : "cv-icon-" + n.type])
9060
9098
  }, null, 6);
9061
9099
  }
9062
- var fd = /*#__PURE__*/ H(ud, [["render", dd]]), pd = {
9100
+ var md = /*#__PURE__*/ H(fd, [["render", pd]]), hd = {
9063
9101
  name: "cvIconSvg",
9064
9102
  props: {
9065
9103
  ...ee.prop,
@@ -9087,24 +9125,24 @@ var fd = /*#__PURE__*/ H(ud, [["render", dd]]), pd = {
9087
9125
  } },
9088
9126
  created() {},
9089
9127
  methods: {}
9090
- }, md = {
9128
+ }, gd = {
9091
9129
  key: 0,
9092
9130
  "aria-hidden": "true"
9093
- }, hd = ["xlink:href"];
9094
- function gd(e, t, n, r, i, a) {
9131
+ }, _d = ["xlink:href"];
9132
+ function vd(e, t, n, r, i, a) {
9095
9133
  let o = P("el-icon");
9096
9134
  return A(), y(o, O(T(e.$props)), {
9097
- default: R(() => [N(e.$slots, "default", {}, () => [(A(), y(Fe(n.type)))]), n.name ? (A(), x("svg", md, [S("use", { "xlink:href": n.name }, null, 8, hd)])) : b("", !0)]),
9135
+ default: R(() => [N(e.$slots, "default", {}, () => [(A(), y(Fe(n.type)))]), n.name ? (A(), x("svg", gd, [S("use", { "xlink:href": n.name }, null, 8, _d)])) : b("", !0)]),
9098
9136
  _: 3
9099
9137
  }, 16);
9100
9138
  }
9101
- var _d = /*#__PURE__*/ H(pd, [["render", gd]]);
9139
+ var yd = /*#__PURE__*/ H(hd, [["render", vd]]);
9102
9140
  // packages/icons/src/mixins.js
9103
- function vd(e) {
9141
+ function bd(e) {
9104
9142
  let t = e.trim();
9105
9143
  return /^https?:\/\//.test(t);
9106
9144
  }
9107
- var yd = {
9145
+ var xd = {
9108
9146
  emits: ["click"],
9109
9147
  props: {
9110
9148
  name: {
@@ -9134,7 +9172,7 @@ var yd = {
9134
9172
  },
9135
9173
  computed: {
9136
9174
  maskIconUrl() {
9137
- if (vd(this.name)) return this.name;
9175
+ if (bd(this.name)) return this.name;
9138
9176
  let e = "https://10ui.cn/icons", t = this.name || "", n = "";
9139
9177
  t = t.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`), t = t.replace(/^-|-$/g, ""), t = t.toLowerCase().trim();
9140
9178
  let r = /-(filled|bold)$/;
@@ -9168,49 +9206,49 @@ var yd = {
9168
9206
  return this.hoverEffect && (e.transition = "background-color 0.2s ease"), e;
9169
9207
  }
9170
9208
  }
9171
- }, bd = {
9209
+ }, Sd = {
9172
9210
  name: "cvMaskSvg",
9173
- mixins: [yd]
9174
- }, xd = () => {
9211
+ mixins: [xd]
9212
+ }, Cd = () => {
9175
9213
  He((e) => ({ v4d7c194c: e.hoverColor }));
9176
- }, Sd = bd.setup;
9177
- bd.setup = Sd ? (e, t) => (xd(), Sd(e, t)) : xd;
9178
- function Cd(e, t, n, r, i, a) {
9214
+ }, wd = Sd.setup;
9215
+ Sd.setup = wd ? (e, t) => (Cd(), wd(e, t)) : Cd;
9216
+ function Td(e, t, n, r, i, a) {
9179
9217
  return A(), x("div", {
9180
9218
  class: "cv-mask-icon",
9181
9219
  style: k(e.iconStyle),
9182
9220
  onClick: t[0] ||= (t) => e.$emit("click", t)
9183
9221
  }, null, 4);
9184
9222
  }
9185
- var wd = /*#__PURE__*/ H(bd, [["render", Cd], ["__scopeId", "data-v-bff5bc9b"]]), Td = {
9223
+ var Ed = /*#__PURE__*/ H(Sd, [["render", Td], ["__scopeId", "data-v-bff5bc9b"]]), Dd = {
9186
9224
  name: "cvMaskPng",
9187
- mixins: [yd],
9225
+ mixins: [xd],
9188
9226
  data() {
9189
9227
  return { iconType: "png" };
9190
9228
  }
9191
- }, Ed = () => {
9229
+ }, Od = () => {
9192
9230
  He((e) => ({ v6bb780e0: e.hoverColor }));
9193
- }, Dd = Td.setup;
9194
- Td.setup = Dd ? (e, t) => (Ed(), Dd(e, t)) : Ed;
9195
- function Od(e, t, n, r, i, a) {
9231
+ }, kd = Dd.setup;
9232
+ Dd.setup = kd ? (e, t) => (Od(), kd(e, t)) : Od;
9233
+ function Ad(e, t, n, r, i, a) {
9196
9234
  return A(), x("div", {
9197
9235
  class: "cv-mask-icon",
9198
9236
  style: k(e.iconStyle),
9199
9237
  onTap: t[0] ||= (t) => e.$emit("click", t)
9200
9238
  }, null, 36);
9201
9239
  }
9202
- var kd = /*#__PURE__*/ H(Td, [["render", Od], ["__scopeId", "data-v-4f8ce869"]]);
9203
- fd.install = function(e) {
9204
- e.component(fd.name, fd);
9205
- }, _d.install = function(e) {
9206
- e.component(_d.name, _d);
9207
- }, wd.install = function(e) {
9208
- e.component(wd.name, wd);
9209
- }, kd.install = function(e) {
9210
- e.component(kd.name, kd);
9240
+ var jd = /*#__PURE__*/ H(Dd, [["render", Ad], ["__scopeId", "data-v-4f8ce869"]]);
9241
+ md.install = function(e) {
9242
+ e.component(md.name, md);
9243
+ }, yd.install = function(e) {
9244
+ e.component(yd.name, yd);
9245
+ }, Ed.install = function(e) {
9246
+ e.component(Ed.name, Ed);
9247
+ }, jd.install = function(e) {
9248
+ e.component(jd.name, jd);
9211
9249
  };
9212
9250
  // packages/chat/comp/emoji.vue
9213
- var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" }, Md = ["onClick"], Nd = ["src"], Pd = { class: "emoji-body select-none" }, Fd = { style: { padding: "0 5px" } }, Id = ["onClick"], Ld = { class: "emoji-btn select-none" }, Rd = { key: 0 }, zd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvEmoji" }, {
9251
+ var Md = { class: "u-emoji" }, Nd = { class: "face-tooltip-head select-none" }, Pd = ["onClick"], Fd = ["src"], Id = { class: "emoji-body select-none" }, Ld = { style: { padding: "0 5px" } }, Rd = ["onClick"], zd = { class: "emoji-btn select-none" }, Bd = { key: 0 }, Vd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvEmoji" }, {
9214
9252
  __name: "emoji",
9215
9253
  props: {
9216
9254
  emoji: {
@@ -9234,14 +9272,14 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9234
9272
  function l() {
9235
9273
  a.value[0] = o[0];
9236
9274
  }
9237
- return (t, n) => (A(), x("div", Ad, [w(I(le), {
9275
+ return (t, n) => (A(), x("div", Md, [w(I(le), {
9238
9276
  placement: e.placement,
9239
9277
  "popper-class": "emoji-popover",
9240
9278
  width: 250,
9241
9279
  trigger: "click",
9242
9280
  onBeforeEnter: l
9243
9281
  }, {
9244
- reference: R(() => [S("div", Ld, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Rd, [...n[0] ||= [S("svg", {
9282
+ reference: R(() => [S("div", zd, [t.$slots.default ? N(t.$slots, "default", {}, void 0, !0, 1) : (A(), x("div", Bd, [...n[0] ||= [S("svg", {
9245
9283
  width: "16",
9246
9284
  height: "16",
9247
9285
  viewBox: "0 0 16 16",
@@ -9253,21 +9291,21 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9253
9291
  "clip-rule": "evenodd",
9254
9292
  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"
9255
9293
  })], -1), S("span", null, "表情", -1)]]))])]),
9256
- default: R(() => [S("div", jd, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
9294
+ default: R(() => [S("div", Nd, [(A(!0), x(v, null, M(I(s), (e, t) => (A(), x("label", {
9257
9295
  key: t,
9258
9296
  class: D(r.value == t ? "active" : ""),
9259
9297
  onClick: (e) => c(t)
9260
9298
  }, [S("img", {
9261
9299
  src: e,
9262
9300
  alt: ""
9263
- }, null, 8, Nd)], 10, Md))), 128))]), S("div", Pd, [S("div", {
9301
+ }, null, 8, Fd)], 10, Pd))), 128))]), S("div", Id, [S("div", {
9264
9302
  class: "emjio-container",
9265
9303
  style: k({ transform: `translateX(${i.value}%)` })
9266
9304
  }, [(A(!0), x(v, null, M(a.value, (e, n) => (A(), x("div", {
9267
9305
  key: n,
9268
9306
  class: "emoji-wrapper"
9269
9307
  }, [w(I(ue), null, {
9270
- default: R(() => [S("div", Fd, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
9308
+ default: R(() => [S("div", Ld, [(A(!0), x(v, null, M(e, (e, n) => (A(), x("span", {
9271
9309
  key: n,
9272
9310
  class: "emoji-item",
9273
9311
  onClick: (e) => t.$emit("addEmoji", n)
@@ -9281,16 +9319,16 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9281
9319
  margin: "5px"
9282
9320
  },
9283
9321
  lazy: ""
9284
- }, null, 8, ["src", "title"])], 8, Id))), 128))])]),
9322
+ }, null, 8, ["src", "title"])], 8, Rd))), 128))])]),
9285
9323
  _: 2
9286
9324
  }, 1024)]))), 128))], 4)])]),
9287
9325
  _: 3
9288
9326
  }, 8, ["placement"])]));
9289
9327
  }
9290
- }), [["__scopeId", "data-v-da53b6ed"]]), Bd = { class: "cv-chat-message" }, Vd = { class: "chat-list" }, Hd = { class: "content" }, Ud = {
9328
+ }), [["__scopeId", "data-v-da53b6ed"]]), Hd = { class: "cv-chat-message" }, Ud = { class: "chat-list" }, Wd = { class: "content" }, Gd = {
9291
9329
  key: 0,
9292
9330
  class: "username"
9293
- }, Wd = ["innerHTML"], Gd = {
9331
+ }, Kd = ["innerHTML"], qd = {
9294
9332
  __name: "message",
9295
9333
  props: {
9296
9334
  data: {
@@ -9323,11 +9361,11 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9323
9361
  "/>"
9324
9362
  ].join("") : t;
9325
9363
  }), t);
9326
- return (t, o) => (A(), x("div", Bd, [w(I(ue), {
9364
+ return (t, o) => (A(), x("div", Hd, [w(I(ue), {
9327
9365
  ref_key: "scrollbarRef",
9328
9366
  ref: i
9329
9367
  }, {
9330
- default: R(() => [S("div", Vd, [(A(!0), x(v, null, M(e.data, (t, i) => (A(), x("div", {
9368
+ default: R(() => [S("div", Ud, [(A(!0), x(v, null, M(e.data, (t, i) => (A(), x("div", {
9331
9369
  key: i,
9332
9370
  class: D([{ self: e.userId == t.id }, "chat-item"])
9333
9371
  }, [
@@ -9335,19 +9373,19 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9335
9373
  default: R(() => [...o[0] ||= [S("img", { src: "https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" }, null, -1)]]),
9336
9374
  _: 1
9337
9375
  })]),
9338
- S("div", Hd, [e.userId == t.id ? b("", !0) : (A(), x("div", Ud, F(t.username), 1)), S("div", {
9376
+ S("div", Wd, [e.userId == t.id ? b("", !0) : (A(), x("div", Gd, F(t.username), 1)), S("div", {
9339
9377
  class: "card-box",
9340
9378
  innerHTML: a(I(r), t.content)
9341
- }, null, 8, Wd)]),
9379
+ }, null, 8, Kd)]),
9342
9380
  o[1] ||= S("div", { class: "date" }, null, -1)
9343
9381
  ], 2))), 128))])]),
9344
9382
  _: 1
9345
9383
  }, 512)]));
9346
9384
  }
9347
- }, Kd = { class: "cv-chat-wrap" }, qd = { class: "header" }, Jd = {
9385
+ }, Jd = { class: "cv-chat-wrap" }, Yd = { class: "header" }, Xd = {
9348
9386
  id: "chat-footer",
9349
9387
  class: "footer"
9350
- }, Yd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvChat" }, {
9388
+ }, Zd = /*#__PURE__*/ H(/* @__PURE__ */ Object.assign({ name: "cvChat" }, {
9351
9389
  __name: "chat",
9352
9390
  props: {
9353
9391
  data: {
@@ -9387,8 +9425,8 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9387
9425
  };
9388
9426
  return je("InjectionEmojiApi", n.emoji), (t, n) => {
9389
9427
  let c = P("cvIcons");
9390
- return A(), x("div", Kd, [S("div", { class: D([{ active: r.value }, "chat-container translate"]) }, [
9391
- S("div", qd, [w(c, { size: "32" }, {
9428
+ return A(), x("div", Jd, [S("div", { class: D([{ active: r.value }, "chat-container translate"]) }, [
9429
+ S("div", Yd, [w(c, { size: "32" }, {
9392
9430
  default: R(() => [...n[2] ||= [S("svg", {
9393
9431
  viewBox: "0 0 1318 1024",
9394
9432
  version: "1.1",
@@ -9424,13 +9462,13 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9424
9462
  ], -1)]]),
9425
9463
  _: 1
9426
9464
  }), n[3] ||= S("div", { style: { "margin-left": "12px" } }, [S("div", null, "聊天室"), S("div", { style: { "font-size": "12px" } }, "当前2人在线")], -1)]),
9427
- w(Gd, {
9465
+ w(qd, {
9428
9466
  ref_key: "messageRef",
9429
9467
  ref: o,
9430
9468
  data: I(s),
9431
9469
  "user-id": e.userId
9432
9470
  }, null, 8, ["data", "user-id"]),
9433
- S("div", Jd, [
9471
+ S("div", Xd, [
9434
9472
  w(I(ne), {
9435
9473
  id: "emojiInput",
9436
9474
  modelValue: a.value,
@@ -9443,7 +9481,7 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9443
9481
  placeholder: "请输入内容",
9444
9482
  onKeydown: Ke(l, ["enter"])
9445
9483
  }, null, 8, ["modelValue"]),
9446
- w(zd, {
9484
+ w(Vd, {
9447
9485
  style: { margin: "0 8px 0" },
9448
9486
  emoji: e.emoji,
9449
9487
  placement: "top-end",
@@ -9491,11 +9529,11 @@ var Ad = { class: "u-emoji" }, jd = { class: "face-tooltip-head select-none" },
9491
9529
  }
9492
9530
  }), [["__scopeId", "data-v-c77a9347"]]);
9493
9531
  // packages/chat/index.js
9494
- Yd.install = function(e) {
9495
- e.component(Yd.name, Yd);
9532
+ Zd.install = function(e) {
9533
+ e.component(Zd.name, Zd);
9496
9534
  };
9497
9535
  // packages/notice-bar/src/notice-bar.vue
9498
- var Xd = { key: 0 }, Zd = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9536
+ var Qd = { key: 0 }, $d = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9499
9537
  __name: "notice-bar",
9500
9538
  props: {
9501
9539
  data: {
@@ -9571,7 +9609,7 @@ var Xd = { key: 0 }, Zd = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9571
9609
  background: I(d),
9572
9610
  height: `${I(s)}px`
9573
9611
  })
9574
- }, [I(r) ? (A(), x("div", Xd, [w(l, {
9612
+ }, [I(r) ? (A(), x("div", Qd, [w(l, {
9575
9613
  height: "40px",
9576
9614
  direction: "vertical",
9577
9615
  autoplay: !0,
@@ -9613,11 +9651,11 @@ var Xd = { key: 0 }, Zd = /*@__PURE__*/ Object.assign({ name: "cvNoticeBar" }, {
9613
9651
  }
9614
9652
  });
9615
9653
  // packages/notice-bar/index.js
9616
- Zd.install = function(e) {
9617
- e.component(Zd.name, Zd);
9654
+ $d.install = function(e) {
9655
+ e.component($d.name, $d);
9618
9656
  };
9619
9657
  // packages/editor/codemirror/component.js
9620
- var Qd = Object.freeze({
9658
+ var ef = Object.freeze({
9621
9659
  autofocus: !1,
9622
9660
  disabled: !1,
9623
9661
  indentWithTab: !0,
@@ -9625,20 +9663,20 @@ var Qd = Object.freeze({
9625
9663
  placeholder: "",
9626
9664
  autoDestroy: !0,
9627
9665
  extensions: [Je]
9628
- }), $d = {
9666
+ }), tf = {
9629
9667
  Change: "change",
9630
9668
  Update: "update",
9631
9669
  Focus: "focus",
9632
9670
  Blur: "blur",
9633
9671
  Ready: "ready",
9634
9672
  ModelUpdate: "update:modelValue"
9635
- }, ef = ({ onUpdate: e, onChange: t, onFocus: n, onBlur: r, ...i }) => Ze.create({
9673
+ }, nf = ({ onUpdate: e, onChange: t, onFocus: n, onBlur: r, ...i }) => Ze.create({
9636
9674
  doc: i.doc,
9637
9675
  selection: i.selection,
9638
9676
  extensions: [...Array.isArray(i.extensions) ? i.extensions : [i.extensions], B.updateListener.of((i) => {
9639
9677
  e(i), i.docChanged && t(i.state.doc.toString(), i), i.focusChanged && (i.view.hasFocus ? n(i) : r(i));
9640
9678
  })]
9641
- }), tf = (e) => {
9679
+ }), rf = (e) => {
9642
9680
  let t = new Ye();
9643
9681
  return {
9644
9682
  compartment: t,
@@ -9646,26 +9684,26 @@ var Qd = Object.freeze({
9646
9684
  t.get(e.state) ? e.dispatch({ effects: t.reconfigure(n) }) : e.dispatch({ effects: Qe.appendConfig.of(t.of(n)) });
9647
9685
  }
9648
9686
  };
9649
- }, nf = (e, t) => {
9650
- let { compartment: n, run: r } = tf(e);
9687
+ }, af = (e, t) => {
9688
+ let { compartment: n, run: r } = rf(e);
9651
9689
  return (i) => {
9652
9690
  let a = n.get(e.state);
9653
9691
  r(i ?? a !== t ? t : []);
9654
9692
  };
9655
- }, rf = (e) => {
9693
+ }, of = (e) => {
9656
9694
  let t = () => e.state.doc.toString(), n = (n) => {
9657
9695
  n !== t() && e.dispatch({ changes: {
9658
9696
  from: 0,
9659
9697
  to: e.state.doc.length,
9660
9698
  insert: n
9661
9699
  } });
9662
- }, r = () => e.focus(), { run: i } = tf(e), a = nf(e, [B.editable.of(!1), Ze.readOnly.of(!0)]), o = nf(e, $e.of([tt])), { run: s } = tf(e), c = (e) => {
9700
+ }, r = () => e.focus(), { run: i } = rf(e), a = af(e, [B.editable.of(!1), Ze.readOnly.of(!0)]), o = af(e, $e.of([tt])), { run: s } = rf(e), c = (e) => {
9663
9701
  s([Ze.tabSize.of(e), rt.of(" ".repeat(e))]);
9664
- }, { run: l } = tf(e), u = (e) => {
9702
+ }, { run: l } = rf(e), u = (e) => {
9665
9703
  l([Ze.phrases.of(e)]);
9666
- }, { run: d } = tf(e), f = (e) => {
9704
+ }, { run: d } = rf(e), f = (e) => {
9667
9705
  d(et(e));
9668
- }, { run: p } = tf(e);
9706
+ }, { run: p } = rf(e);
9669
9707
  return {
9670
9708
  focus: r,
9671
9709
  getDoc: t,
@@ -9680,7 +9718,7 @@ var Qd = Object.freeze({
9680
9718
  p(B.theme({ "&": { ...e } }));
9681
9719
  }
9682
9720
  };
9683
- }, af = be({
9721
+ }, sf = be({
9684
9722
  name: "VueCodemirror",
9685
9723
  props: {
9686
9724
  modelValue: {
@@ -9712,40 +9750,40 @@ var Qd = Object.freeze({
9712
9750
  selection: Object
9713
9751
  },
9714
9752
  emits: {
9715
- [$d.Change]: (e, t) => !0,
9716
- [$d.Update]: (e) => !0,
9717
- [$d.Focus]: (e) => !0,
9718
- [$d.Blur]: (e) => !0,
9719
- [$d.Ready]: (e) => !0,
9720
- [$d.ModelUpdate]: (e, t) => !0
9753
+ [tf.Change]: (e, t) => !0,
9754
+ [tf.Update]: (e) => !0,
9755
+ [tf.Focus]: (e) => !0,
9756
+ [tf.Blur]: (e) => !0,
9757
+ [tf.Ready]: (e) => !0,
9758
+ [tf.ModelUpdate]: (e, t) => !0
9721
9759
  },
9722
9760
  setup(e, t) {
9723
- let n = Le(), r = Le(), i = Le(), a = { ...Qd }, o = ve(() => {
9761
+ let n = Le(), r = Le(), i = Le(), a = { ...ef }, o = ve(() => {
9724
9762
  let t = {};
9725
9763
  return Object.keys(ze(e)).forEach((n) => {
9726
9764
  n !== "modelValue" && (t[n] = e[n] ?? a[n]);
9727
9765
  }), t;
9728
9766
  });
9729
9767
  return Oe(() => {
9730
- r.value = ef({
9768
+ r.value = nf({
9731
9769
  doc: e.modelValue,
9732
9770
  selection: o.value.selection,
9733
9771
  extensions: a.extensions ?? [],
9734
- onFocus: (e) => t.emit($d.Focus, e),
9735
- onBlur: (e) => t.emit($d.Blur, e),
9736
- onUpdate: (e) => t.emit($d.Update, e),
9772
+ onFocus: (e) => t.emit(tf.Focus, e),
9773
+ onBlur: (e) => t.emit(tf.Blur, e),
9774
+ onUpdate: (e) => t.emit(tf.Update, e),
9737
9775
  onChange: (n, r) => {
9738
- n !== e.modelValue && (t.emit($d.Change, n, r), t.emit($d.ModelUpdate, n, r));
9776
+ n !== e.modelValue && (t.emit(tf.Change, n, r), t.emit(tf.ModelUpdate, n, r));
9739
9777
  }
9740
9778
  }), i.value = new B({
9741
9779
  state: r.value,
9742
9780
  parent: n.value,
9743
9781
  root: o.value.root
9744
9782
  }), i.value.contentDOM.addEventListener("scroll", (e) => {});
9745
- let s = rf(i.value);
9783
+ let s = of(i.value);
9746
9784
  Ge(() => e.modelValue, (e) => {
9747
9785
  e !== s.getDoc() && s.setDoc(e);
9748
- }), Ge(() => e.extensions, (e) => s.reExtensions(e || []), { immediate: !0 }), Ge(() => o.value.disabled, (e) => s.toggleDisabled(e), { immediate: !0 }), Ge(() => o.value.indentWithTab, (e) => s.toggleIndentWithTab(e), { immediate: !0 }), Ge(() => o.value.tabSize, (e) => s.setTabSize(e), { immediate: !0 }), Ge(() => o.value.phrases, (e) => s.setPhrases(e || {}), { immediate: !0 }), Ge(() => o.value.placeholder, (e) => s.setPlaceholder(e), { immediate: !0 }), Ge(() => o.value.style, (e) => s.setStyle(e), { immediate: !0 }), o.value.autofocus && s.focus(), t.emit($d.Ready, {
9786
+ }), Ge(() => e.extensions, (e) => s.reExtensions(e || []), { immediate: !0 }), Ge(() => o.value.disabled, (e) => s.toggleDisabled(e), { immediate: !0 }), Ge(() => o.value.indentWithTab, (e) => s.toggleIndentWithTab(e), { immediate: !0 }), Ge(() => o.value.tabSize, (e) => s.setTabSize(e), { immediate: !0 }), Ge(() => o.value.phrases, (e) => s.setPhrases(e || {}), { immediate: !0 }), Ge(() => o.value.placeholder, (e) => s.setPlaceholder(e), { immediate: !0 }), Ge(() => o.value.style, (e) => s.setStyle(e), { immediate: !0 }), o.value.autofocus && s.focus(), t.emit(tf.Ready, {
9749
9787
  state: r.value,
9750
9788
  view: i.value,
9751
9789
  container: n.value,
@@ -9758,17 +9796,17 @@ var Qd = Object.freeze({
9758
9796
  ref: n
9759
9797
  });
9760
9798
  }
9761
- }), of = "#e5c07b", sf = "#e06c75", cf = "#56b6c2", lf = "#ffffff", uf = "#abb2bf", df = "#7d8799", ff = "#61afef", pf = "#98c379", mf = "#d19a66", hf = "#c678dd", gf = "#21252b", _f = "#2c313a", vf = "#282c34", yf = "#353a42", bf = "#3E4451", xf = "#528bff", Sf = /*@__PURE__*/ B.theme({
9799
+ }), cf = "#e5c07b", lf = "#e06c75", uf = "#56b6c2", df = "#ffffff", ff = "#abb2bf", pf = "#7d8799", mf = "#61afef", hf = "#98c379", gf = "#d19a66", _f = "#c678dd", vf = "#21252b", yf = "#2c313a", bf = "#282c34", xf = "#353a42", Sf = "#3E4451", Cf = "#528bff", wf = /*@__PURE__*/ B.theme({
9762
9800
  "&": {
9763
- color: uf,
9764
- backgroundColor: vf
9801
+ color: ff,
9802
+ backgroundColor: bf
9765
9803
  },
9766
- ".cm-content": { caretColor: xf },
9767
- ".cm-cursor, .cm-dropCursor": { borderLeftColor: xf },
9768
- "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: bf },
9804
+ ".cm-content": { caretColor: Cf },
9805
+ ".cm-cursor, .cm-dropCursor": { borderLeftColor: Cf },
9806
+ "&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: Sf },
9769
9807
  ".cm-panels": {
9770
- backgroundColor: gf,
9771
- color: uf
9808
+ backgroundColor: vf,
9809
+ color: ff
9772
9810
  },
9773
9811
  ".cm-panels.cm-panels-top": { borderBottom: "2px solid black" },
9774
9812
  ".cm-panels.cm-panels-bottom": { borderTop: "2px solid black" },
@@ -9781,11 +9819,11 @@ var Qd = Object.freeze({
9781
9819
  ".cm-selectionMatch": { backgroundColor: "#aafe661a" },
9782
9820
  "&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bad0f847" },
9783
9821
  ".cm-gutters": {
9784
- backgroundColor: vf,
9785
- color: df,
9822
+ backgroundColor: bf,
9823
+ color: pf,
9786
9824
  border: "none"
9787
9825
  },
9788
- ".cm-activeLineGutter": { backgroundColor: _f },
9826
+ ".cm-activeLineGutter": { backgroundColor: yf },
9789
9827
  ".cm-foldPlaceholder": {
9790
9828
  backgroundColor: "transparent",
9791
9829
  border: "none",
@@ -9793,24 +9831,24 @@ var Qd = Object.freeze({
9793
9831
  },
9794
9832
  ".cm-tooltip": {
9795
9833
  border: "none",
9796
- backgroundColor: yf
9834
+ backgroundColor: xf
9797
9835
  },
9798
9836
  ".cm-tooltip .cm-tooltip-arrow:before": {
9799
9837
  borderTopColor: "transparent",
9800
9838
  borderBottomColor: "transparent"
9801
9839
  },
9802
9840
  ".cm-tooltip .cm-tooltip-arrow:after": {
9803
- borderTopColor: yf,
9804
- borderBottomColor: yf
9841
+ borderTopColor: xf,
9842
+ borderBottomColor: xf
9805
9843
  },
9806
9844
  ".cm-tooltip-autocomplete": { "& > ul > li[aria-selected]": {
9807
- backgroundColor: _f,
9808
- color: uf
9845
+ backgroundColor: yf,
9846
+ color: ff
9809
9847
  } }
9810
- }, { dark: !0 }), Cf = /*@__PURE__*/ nt.define([
9848
+ }, { dark: !0 }), Tf = /*@__PURE__*/ nt.define([
9811
9849
  {
9812
9850
  tag: V.keyword,
9813
- color: hf
9851
+ color: _f
9814
9852
  },
9815
9853
  {
9816
9854
  tag: [
@@ -9820,11 +9858,11 @@ var Qd = Object.freeze({
9820
9858
  V.propertyName,
9821
9859
  V.macroName
9822
9860
  ],
9823
- color: sf
9861
+ color: lf
9824
9862
  },
9825
9863
  {
9826
9864
  tag: [/*@__PURE__*/ V.function(V.variableName), V.labelName],
9827
- color: ff
9865
+ color: mf
9828
9866
  },
9829
9867
  {
9830
9868
  tag: [
@@ -9832,11 +9870,11 @@ var Qd = Object.freeze({
9832
9870
  /*@__PURE__*/ V.constant(V.name),
9833
9871
  /*@__PURE__*/ V.standard(V.name)
9834
9872
  ],
9835
- color: mf
9873
+ color: gf
9836
9874
  },
9837
9875
  {
9838
9876
  tag: [/*@__PURE__*/ V.definition(V.name), V.separator],
9839
- color: uf
9877
+ color: ff
9840
9878
  },
9841
9879
  {
9842
9880
  tag: [
@@ -9849,7 +9887,7 @@ var Qd = Object.freeze({
9849
9887
  V.self,
9850
9888
  V.namespace
9851
9889
  ],
9852
- color: of
9890
+ color: cf
9853
9891
  },
9854
9892
  {
9855
9893
  tag: [
@@ -9861,11 +9899,11 @@ var Qd = Object.freeze({
9861
9899
  V.link,
9862
9900
  /*@__PURE__*/ V.special(V.string)
9863
9901
  ],
9864
- color: cf
9902
+ color: uf
9865
9903
  },
9866
9904
  {
9867
9905
  tag: [V.meta, V.comment],
9868
- color: df
9906
+ color: pf
9869
9907
  },
9870
9908
  {
9871
9909
  tag: V.strong,
@@ -9881,13 +9919,13 @@ var Qd = Object.freeze({
9881
9919
  },
9882
9920
  {
9883
9921
  tag: V.link,
9884
- color: df,
9922
+ color: pf,
9885
9923
  textDecoration: "underline"
9886
9924
  },
9887
9925
  {
9888
9926
  tag: V.heading,
9889
9927
  fontWeight: "bold",
9890
- color: sf
9928
+ color: lf
9891
9929
  },
9892
9930
  {
9893
9931
  tag: [
@@ -9895,7 +9933,7 @@ var Qd = Object.freeze({
9895
9933
  V.bool,
9896
9934
  /*@__PURE__*/ V.special(V.variableName)
9897
9935
  ],
9898
- color: mf
9936
+ color: gf
9899
9937
  },
9900
9938
  {
9901
9939
  tag: [
@@ -9903,13 +9941,13 @@ var Qd = Object.freeze({
9903
9941
  V.string,
9904
9942
  V.inserted
9905
9943
  ],
9906
- color: pf
9944
+ color: hf
9907
9945
  },
9908
9946
  {
9909
9947
  tag: V.invalid,
9910
- color: lf
9948
+ color: df
9911
9949
  }
9912
- ]), wf = [Sf, /*@__PURE__*/ it(Cf)], U = {
9950
+ ]), Ef = [wf, /*@__PURE__*/ it(Tf)], U = {
9913
9951
  name: "materialLight",
9914
9952
  dark: !1,
9915
9953
  background: "#FAFAFA",
@@ -9936,7 +9974,7 @@ var Qd = Object.freeze({
9936
9974
  heading: "#91B859",
9937
9975
  invalid: "#E53935",
9938
9976
  regexp: "#39ADB5"
9939
- }, Tf = B.theme({
9977
+ }, Df = B.theme({
9940
9978
  "&": {
9941
9979
  color: U.foreground,
9942
9980
  backgroundColor: U.background
@@ -9991,7 +10029,7 @@ var Qd = Object.freeze({
9991
10029
  background: U.selection,
9992
10030
  color: U.foreground
9993
10031
  } }
9994
- }, { dark: U.dark }), Ef = nt.define([
10032
+ }, { dark: U.dark }), Of = nt.define([
9995
10033
  {
9996
10034
  tag: V.keyword,
9997
10035
  color: U.keyword
@@ -10104,7 +10142,7 @@ var Qd = Object.freeze({
10104
10142
  tag: V.strikethrough,
10105
10143
  textDecoration: "line-through"
10106
10144
  }
10107
- ]), Df = [Tf, it(Ef)], W = {
10145
+ ]), kf = [Df, it(Of)], W = {
10108
10146
  name: "materialDark",
10109
10147
  dark: !0,
10110
10148
  background: "#263238",
@@ -10131,7 +10169,7 @@ var Qd = Object.freeze({
10131
10169
  heading: "#C3E88D",
10132
10170
  invalid: "#FF5370",
10133
10171
  regexp: "#89DDFF"
10134
- }, Of = B.theme({
10172
+ }, Af = B.theme({
10135
10173
  "&": {
10136
10174
  color: W.foreground,
10137
10175
  backgroundColor: W.background
@@ -10186,7 +10224,7 @@ var Qd = Object.freeze({
10186
10224
  background: W.selection,
10187
10225
  color: W.foreground
10188
10226
  } }
10189
- }, { dark: W.dark }), kf = nt.define([
10227
+ }, { dark: W.dark }), jf = nt.define([
10190
10228
  {
10191
10229
  tag: V.keyword,
10192
10230
  color: W.keyword
@@ -10299,7 +10337,7 @@ var Qd = Object.freeze({
10299
10337
  tag: V.strikethrough,
10300
10338
  textDecoration: "line-through"
10301
10339
  }
10302
- ]), Af = [Of, it(kf)], G = {
10340
+ ]), Mf = [Af, it(jf)], G = {
10303
10341
  name: "solarizedLight",
10304
10342
  dark: !1,
10305
10343
  background: "#FDF6E3",
@@ -10326,7 +10364,7 @@ var Qd = Object.freeze({
10326
10364
  heading: "#268BD2",
10327
10365
  invalid: "#DC322F",
10328
10366
  regexp: "#DC322F"
10329
- }, jf = B.theme({
10367
+ }, Nf = B.theme({
10330
10368
  "&": {
10331
10369
  color: G.foreground,
10332
10370
  backgroundColor: G.background
@@ -10381,7 +10419,7 @@ var Qd = Object.freeze({
10381
10419
  background: G.selection,
10382
10420
  color: G.foreground
10383
10421
  } }
10384
- }, { dark: G.dark }), Mf = nt.define([
10422
+ }, { dark: G.dark }), Pf = nt.define([
10385
10423
  {
10386
10424
  tag: V.keyword,
10387
10425
  color: G.keyword
@@ -10494,7 +10532,7 @@ var Qd = Object.freeze({
10494
10532
  tag: V.strikethrough,
10495
10533
  textDecoration: "line-through"
10496
10534
  }
10497
- ]), Nf = [jf, it(Mf)], K = {
10535
+ ]), Ff = [Nf, it(Pf)], K = {
10498
10536
  name: "solarizedDark",
10499
10537
  dark: !0,
10500
10538
  background: "#002B36",
@@ -10521,7 +10559,7 @@ var Qd = Object.freeze({
10521
10559
  heading: "#268BD2",
10522
10560
  invalid: "#DC322F",
10523
10561
  regexp: "#DC322F"
10524
- }, Pf = B.theme({
10562
+ }, If = B.theme({
10525
10563
  "&": {
10526
10564
  color: K.foreground,
10527
10565
  backgroundColor: K.background
@@ -10576,7 +10614,7 @@ var Qd = Object.freeze({
10576
10614
  background: K.selection,
10577
10615
  color: K.foreground
10578
10616
  } }
10579
- }, { dark: K.dark }), Ff = nt.define([
10617
+ }, { dark: K.dark }), Lf = nt.define([
10580
10618
  {
10581
10619
  tag: V.keyword,
10582
10620
  color: K.keyword
@@ -10689,7 +10727,7 @@ var Qd = Object.freeze({
10689
10727
  tag: V.strikethrough,
10690
10728
  textDecoration: "line-through"
10691
10729
  }
10692
- ]), If = [Pf, it(Ff)], q = {
10730
+ ]), Rf = [If, it(Lf)], q = {
10693
10731
  name: "dracula",
10694
10732
  dark: !0,
10695
10733
  background: "#282A36",
@@ -10716,7 +10754,7 @@ var Qd = Object.freeze({
10716
10754
  heading: "#BD93F9",
10717
10755
  invalid: "#FF5555",
10718
10756
  regexp: "#F1FA8C"
10719
- }, Lf = B.theme({
10757
+ }, zf = B.theme({
10720
10758
  "&": {
10721
10759
  color: q.foreground,
10722
10760
  backgroundColor: q.background
@@ -10771,7 +10809,7 @@ var Qd = Object.freeze({
10771
10809
  background: q.selection,
10772
10810
  color: q.foreground
10773
10811
  } }
10774
- }, { dark: q.dark }), Rf = nt.define([
10812
+ }, { dark: q.dark }), Bf = nt.define([
10775
10813
  {
10776
10814
  tag: V.keyword,
10777
10815
  color: q.keyword
@@ -10884,7 +10922,7 @@ var Qd = Object.freeze({
10884
10922
  tag: V.strikethrough,
10885
10923
  textDecoration: "line-through"
10886
10924
  }
10887
- ]), zf = [Lf, it(Rf)], J = {
10925
+ ]), Vf = [zf, it(Bf)], J = {
10888
10926
  name: "githubLight",
10889
10927
  dark: !1,
10890
10928
  background: "#fff",
@@ -10911,7 +10949,7 @@ var Qd = Object.freeze({
10911
10949
  heading: "#005cc5",
10912
10950
  invalid: "#cb2431",
10913
10951
  regexp: "#032f62"
10914
- }, Bf = B.theme({
10952
+ }, Hf = B.theme({
10915
10953
  "&": {
10916
10954
  color: J.foreground,
10917
10955
  backgroundColor: J.background
@@ -10966,7 +11004,7 @@ var Qd = Object.freeze({
10966
11004
  background: J.selection,
10967
11005
  color: J.foreground
10968
11006
  } }
10969
- }, { dark: J.dark }), Vf = nt.define([
11007
+ }, { dark: J.dark }), Uf = nt.define([
10970
11008
  {
10971
11009
  tag: V.keyword,
10972
11010
  color: J.keyword
@@ -11079,7 +11117,7 @@ var Qd = Object.freeze({
11079
11117
  tag: V.strikethrough,
11080
11118
  textDecoration: "line-through"
11081
11119
  }
11082
- ]), Hf = [Bf, it(Vf)], Y = {
11120
+ ]), Wf = [Hf, it(Uf)], Y = {
11083
11121
  name: "githubDark",
11084
11122
  dark: !0,
11085
11123
  background: "#24292e",
@@ -11106,7 +11144,7 @@ var Qd = Object.freeze({
11106
11144
  heading: "#79b8ff",
11107
11145
  invalid: "#f97583",
11108
11146
  regexp: "#9ecbff"
11109
- }, Uf = B.theme({
11147
+ }, Gf = B.theme({
11110
11148
  "&": {
11111
11149
  color: Y.foreground,
11112
11150
  backgroundColor: Y.background
@@ -11161,7 +11199,7 @@ var Qd = Object.freeze({
11161
11199
  background: Y.selection,
11162
11200
  color: Y.foreground
11163
11201
  } }
11164
- }, { dark: Y.dark }), Wf = nt.define([
11202
+ }, { dark: Y.dark }), Kf = nt.define([
11165
11203
  {
11166
11204
  tag: V.keyword,
11167
11205
  color: Y.keyword
@@ -11274,7 +11312,7 @@ var Qd = Object.freeze({
11274
11312
  tag: V.strikethrough,
11275
11313
  textDecoration: "line-through"
11276
11314
  }
11277
- ]), Gf = [Uf, it(Wf)], X = {
11315
+ ]), qf = [Gf, it(Kf)], X = {
11278
11316
  name: "aura",
11279
11317
  dark: !0,
11280
11318
  background: "#21202e",
@@ -11301,7 +11339,7 @@ var Qd = Object.freeze({
11301
11339
  heading: "#a277ff",
11302
11340
  invalid: "#ff6767",
11303
11341
  regexp: "#61ffca"
11304
- }, Kf = B.theme({
11342
+ }, Jf = B.theme({
11305
11343
  "&": {
11306
11344
  color: X.foreground,
11307
11345
  backgroundColor: X.background
@@ -11356,7 +11394,7 @@ var Qd = Object.freeze({
11356
11394
  background: X.selection,
11357
11395
  color: X.foreground
11358
11396
  } }
11359
- }, { dark: X.dark }), qf = nt.define([
11397
+ }, { dark: X.dark }), Yf = nt.define([
11360
11398
  {
11361
11399
  tag: V.keyword,
11362
11400
  color: X.keyword
@@ -11469,7 +11507,7 @@ var Qd = Object.freeze({
11469
11507
  tag: V.strikethrough,
11470
11508
  textDecoration: "line-through"
11471
11509
  }
11472
- ]), Jf = [Kf, it(qf)], Z = {
11510
+ ]), Xf = [Jf, it(Yf)], Z = {
11473
11511
  name: "tokyoNight",
11474
11512
  dark: !0,
11475
11513
  background: "#1a1b26",
@@ -11496,7 +11534,7 @@ var Qd = Object.freeze({
11496
11534
  heading: "#89ddff",
11497
11535
  invalid: "#ff5370",
11498
11536
  regexp: "#b4f9f8"
11499
- }, Yf = B.theme({
11537
+ }, Zf = B.theme({
11500
11538
  "&": {
11501
11539
  color: Z.foreground,
11502
11540
  backgroundColor: Z.background
@@ -11551,7 +11589,7 @@ var Qd = Object.freeze({
11551
11589
  background: Z.selection,
11552
11590
  color: Z.foreground
11553
11591
  } }
11554
- }, { dark: Z.dark }), Xf = nt.define([
11592
+ }, { dark: Z.dark }), Qf = nt.define([
11555
11593
  {
11556
11594
  tag: V.keyword,
11557
11595
  color: Z.keyword
@@ -11664,7 +11702,7 @@ var Qd = Object.freeze({
11664
11702
  tag: V.strikethrough,
11665
11703
  textDecoration: "line-through"
11666
11704
  }
11667
- ]), Zf = [Yf, it(Xf)], Q = {
11705
+ ]), $f = [Zf, it(Qf)], Q = {
11668
11706
  name: "tokyoNightStorm",
11669
11707
  dark: !0,
11670
11708
  background: "#24283b",
@@ -11691,7 +11729,7 @@ var Qd = Object.freeze({
11691
11729
  heading: "#89ddff",
11692
11730
  invalid: "#ff5370",
11693
11731
  regexp: "#b4f9f8"
11694
- }, Qf = B.theme({
11732
+ }, ep = B.theme({
11695
11733
  "&": {
11696
11734
  color: Q.foreground,
11697
11735
  backgroundColor: Q.background
@@ -11746,7 +11784,7 @@ var Qd = Object.freeze({
11746
11784
  background: Q.selection,
11747
11785
  color: Q.foreground
11748
11786
  } }
11749
- }, { dark: Q.dark }), $f = nt.define([
11787
+ }, { dark: Q.dark }), tp = nt.define([
11750
11788
  {
11751
11789
  tag: V.keyword,
11752
11790
  color: Q.keyword
@@ -11859,7 +11897,7 @@ var Qd = Object.freeze({
11859
11897
  tag: V.strikethrough,
11860
11898
  textDecoration: "line-through"
11861
11899
  }
11862
- ]), ep = [Qf, it($f)], $ = {
11900
+ ]), np = [ep, it(tp)], $ = {
11863
11901
  name: "tokyoNightDay",
11864
11902
  dark: !1,
11865
11903
  background: "#e1e2e7",
@@ -11886,7 +11924,7 @@ var Qd = Object.freeze({
11886
11924
  heading: "#006a83",
11887
11925
  invalid: "#ff3e64",
11888
11926
  regexp: "#2e5857"
11889
- }, tp = B.theme({
11927
+ }, rp = B.theme({
11890
11928
  "&": {
11891
11929
  color: $.foreground,
11892
11930
  backgroundColor: $.background
@@ -11941,7 +11979,7 @@ var Qd = Object.freeze({
11941
11979
  background: $.selection,
11942
11980
  color: $.foreground
11943
11981
  } }
11944
- }, { dark: $.dark }), np = nt.define([
11982
+ }, { dark: $.dark }), ip = nt.define([
11945
11983
  {
11946
11984
  tag: V.keyword,
11947
11985
  color: $.keyword
@@ -12054,7 +12092,7 @@ var Qd = Object.freeze({
12054
12092
  tag: V.strikethrough,
12055
12093
  textDecoration: "line-through"
12056
12094
  }
12057
- ]), rp = [tp, it(np)], ip = {
12095
+ ]), ap = [rp, it(ip)], op = {
12058
12096
  disabled: !1,
12059
12097
  indentWithTab: !0,
12060
12098
  tabSize: 4,
@@ -12064,25 +12102,25 @@ var Qd = Object.freeze({
12064
12102
  language: "markdown",
12065
12103
  theme: "oneDark",
12066
12104
  phrases: "en-us"
12067
- }, ap = {
12105
+ }, sp = {
12068
12106
  emits: ["update:config"],
12069
- components: { CodemirrorEditor: af },
12107
+ components: { CodemirrorEditor: sf },
12070
12108
  data() {
12071
12109
  return {
12072
- codemrrConfig: { ...ip },
12110
+ codemrrConfig: { ...op },
12073
12111
  codemrrThemes: {
12074
- oneDark: wf,
12075
- materialLight: Df,
12076
- materialDark: Af,
12077
- solarizedLight: Nf,
12078
- solarizedDark: If,
12079
- dracula: zf,
12080
- githubLight: Hf,
12081
- githubDark: Gf,
12082
- aura: Jf,
12083
- tokyoNight: Zf,
12084
- tokyoNightStorm: ep,
12085
- tokyoNightDay: rp
12112
+ oneDark: Ef,
12113
+ materialLight: kf,
12114
+ materialDark: Mf,
12115
+ solarizedLight: Ff,
12116
+ solarizedDark: Rf,
12117
+ dracula: Vf,
12118
+ githubLight: Wf,
12119
+ githubDark: qf,
12120
+ aura: Xf,
12121
+ tokyoNight: $f,
12122
+ tokyoNightStorm: np,
12123
+ tokyoNightDay: ap
12086
12124
  },
12087
12125
  codemrrLanguages: {
12088
12126
  javascript: at(),
@@ -12165,7 +12203,7 @@ var Qd = Object.freeze({
12165
12203
  watch: { codemrrConfig(e) {
12166
12204
  this.$emit("update:config", e);
12167
12205
  } }
12168
- }, op = {
12206
+ }, cp = {
12169
12207
  props: { editorID: {
12170
12208
  type: [String],
12171
12209
  required: !1,
@@ -12181,18 +12219,18 @@ var Qd = Object.freeze({
12181
12219
  } }
12182
12220
  };
12183
12221
  // packages/editor/common/utils.js
12184
- function sp(e, t) {
12222
+ function lp(e, t) {
12185
12223
  var n = document.createElement("a");
12186
12224
  if (n.setAttribute("href", "data:text/plain;charset=UTF-8," + encodeURIComponent(e)), n.setAttribute("download", t), n.style.display = "none", document.createEvent) {
12187
12225
  let e = document.createEvent("MouseEvents");
12188
12226
  e.initEvent("click", !0, !0), n.dispatchEvent(e);
12189
12227
  } else n.click();
12190
12228
  }
12191
- function cp(e) {
12229
+ function up(e) {
12192
12230
  return e < 10 ? "0" + e : e;
12193
12231
  }
12194
12232
  // packages/editor/common/toolbar-config.js
12195
- var lp = {
12233
+ var dp = {
12196
12234
  undo: !1,
12197
12235
  redo: !1,
12198
12236
  strong: !0,
@@ -12236,7 +12274,7 @@ var lp = {
12236
12274
  disabled: !1,
12237
12275
  autofocus: !1,
12238
12276
  indentWithTab: !1
12239
- }, up = { name: "SvgImgMap" }, dp = {
12277
+ }, fp = { name: "SvgImgMap" }, pp = {
12240
12278
  t: "1713021153946",
12241
12279
  class: "icon",
12242
12280
  viewBox: "0 0 1024 1024",
@@ -12246,8 +12284,8 @@ var lp = {
12246
12284
  width: "20",
12247
12285
  height: "20"
12248
12286
  };
12249
- function fp(e, t, n, r, i, a) {
12250
- return A(), x("svg", dp, [...t[0] ||= [S("path", {
12287
+ function mp(e, t, n, r, i, a) {
12288
+ return A(), x("svg", pp, [...t[0] ||= [S("path", {
12251
12289
  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",
12252
12290
  "p-id": "1925"
12253
12291
  }, null, -1), S("path", {
@@ -12255,7 +12293,7 @@ function fp(e, t, n, r, i, a) {
12255
12293
  "p-id": "1926"
12256
12294
  }, null, -1)]]);
12257
12295
  }
12258
- var pp = /*#__PURE__*/ H(up, [["render", fp]]), mp = { name: "SvgUploadFile" }, hp = {
12296
+ var hp = /*#__PURE__*/ H(fp, [["render", mp]]), gp = { name: "SvgUploadFile" }, _p = {
12259
12297
  t: "1599285632421",
12260
12298
  class: "icon",
12261
12299
  viewBox: "0 0 1024 1024",
@@ -12265,8 +12303,8 @@ var pp = /*#__PURE__*/ H(up, [["render", fp]]), mp = { name: "SvgUploadFile" },
12265
12303
  width: "17",
12266
12304
  height: "17"
12267
12305
  };
12268
- function gp(e, t, n, r, i, a) {
12269
- return A(), x("svg", hp, [...t[0] ||= [S("path", {
12306
+ function vp(e, t, n, r, i, a) {
12307
+ return A(), x("svg", _p, [...t[0] ||= [S("path", {
12270
12308
  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",
12271
12309
  "p-id": "45641"
12272
12310
  }, null, -1), S("path", {
@@ -12274,7 +12312,7 @@ function gp(e, t, n, r, i, a) {
12274
12312
  "p-id": "45642"
12275
12313
  }, null, -1)]]);
12276
12314
  }
12277
- var _p = /*#__PURE__*/ H(mp, [["render", gp]]), vp = { name: "SvgToc" }, yp = {
12315
+ var yp = /*#__PURE__*/ H(gp, [["render", vp]]), bp = { name: "SvgToc" }, xp = {
12278
12316
  t: "1611551476626",
12279
12317
  class: "icon",
12280
12318
  viewBox: "0 0 1024 1024",
@@ -12284,8 +12322,8 @@ var _p = /*#__PURE__*/ H(mp, [["render", gp]]), vp = { name: "SvgToc" }, yp = {
12284
12322
  width: "22",
12285
12323
  height: "22"
12286
12324
  };
12287
- function bp(e, t, n, r, i, a) {
12288
- return A(), x("svg", yp, [...t[0] ||= [S("path", {
12325
+ function Sp(e, t, n, r, i, a) {
12326
+ return A(), x("svg", xp, [...t[0] ||= [S("path", {
12289
12327
  d: "M370.1 371.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7zM370.1 712.4h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.2-2.6 5.7-5.7 5.7z m333.5-7.5H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.1-2.7 5.7-5.8 5.7zM370.1 542.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7z",
12290
12328
  "p-id": "4616"
12291
12329
  }, null, -1), S("path", {
@@ -12293,7 +12331,7 @@ function bp(e, t, n, r, i, a) {
12293
12331
  "p-id": "4617"
12294
12332
  }, null, -1)]]);
12295
12333
  }
12296
- var xp = /*#__PURE__*/ H(vp, [["render", bp]]), Sp = { name: "SvgCopy" }, Cp = {
12334
+ var Cp = /*#__PURE__*/ H(bp, [["render", Sp]]), wp = { name: "SvgCopy" }, Tp = {
12297
12335
  t: "1713097613984",
12298
12336
  class: "icon",
12299
12337
  viewBox: "0 0 1024 1024",
@@ -12303,8 +12341,8 @@ var xp = /*#__PURE__*/ H(vp, [["render", bp]]), Sp = { name: "SvgCopy" }, Cp = {
12303
12341
  width: "18",
12304
12342
  height: "18"
12305
12343
  };
12306
- function wp(e, t, n, r, i, a) {
12307
- return A(), x("svg", Cp, [...t[0] ||= [
12344
+ function Ep(e, t, n, r, i, a) {
12345
+ return A(), x("svg", Tp, [...t[0] ||= [
12308
12346
  S("path", {
12309
12347
  d: "M857.373005 65.290005 469.604424 65.290005c-34.211173 0-62.044078 27.832905-62.044078 62.043055l0 10.340509-63.076594 0c-25.993001 0-48.228421 16.346293-57.001225 39.293935L166.626995 176.967504c-34.21015 0-62.043055 27.832905-62.043055 62.043055l0 657.655358c0 34.21015 27.832905 62.043055 62.043055 62.043055l550.115086 0c34.21015 0 62.043055-27.832905 62.043055-62.043055l0-49.634444 78.587869 0c34.21015 0 62.043055-27.832905 62.043055-62.043055L919.41606 127.33306C919.41606 93.122911 891.583155 65.290005 857.373005 65.290005zM344.483752 179.035606l194.402595 0c10.833743 0 19.646456 8.813736 19.646456 19.646456 0 10.833743-8.813736 19.646456-19.646456 19.646456L344.483752 218.328517c-10.833743 0-19.646456-8.813736-19.646456-19.646456C324.836273 187.849342 333.650009 179.035606 344.483752 179.035606zM737.423099 896.665917c0 11.402701-9.278317 20.681018-20.681018 20.681018L166.626995 917.346935c-11.403724 0-20.681018-9.278317-20.681018-20.681018L145.945977 239.010559c0-11.402701 9.277294-20.681018 20.681018-20.681018l120.111588 0c8.197706 24.02723 30.977525 41.362037 57.744145 41.362037l194.402595 0c26.767644 0 49.54644-17.334807 57.744145-41.362037l120.111588 0c11.402701 0 20.681018 9.278317 20.681018 20.681018L737.422076 896.665917zM878.054023 784.988418c0 11.402701-9.278317 20.681018-20.681018 20.681018l-78.587869 0L778.785136 239.010559c0-34.21015-27.832905-62.043055-62.043055-62.043055L595.886549 176.967504c-8.771781-22.947641-31.007201-39.293935-57.001225-39.293935l-89.963964 0L448.921359 127.33306c0-11.403724 9.278317-20.681018 20.683065-20.681018l387.768581 0c11.402701 0 20.681018 9.277294 20.681018 20.681018L878.054023 784.988418z",
12310
12348
  "p-id": "6857"
@@ -12323,7 +12361,7 @@ function wp(e, t, n, r, i, a) {
12323
12361
  }, null, -1)
12324
12362
  ]]);
12325
12363
  }
12326
- var Tp = /*#__PURE__*/ H(Sp, [["render", wp]]), Ep = { name: "SvgLanguage" }, Dp = {
12364
+ var Dp = /*#__PURE__*/ H(wp, [["render", Ep]]), Op = { name: "SvgLanguage" }, kp = {
12327
12365
  t: "1713109019954",
12328
12366
  class: "icon",
12329
12367
  viewBox: "0 0 1024 1024",
@@ -12333,8 +12371,8 @@ var Tp = /*#__PURE__*/ H(Sp, [["render", wp]]), Ep = { name: "SvgLanguage" }, Dp
12333
12371
  width: "18",
12334
12372
  height: "18"
12335
12373
  };
12336
- function Op(e, t, n, r, i, a) {
12337
- return A(), x("svg", Dp, [...t[0] ||= [
12374
+ function Ap(e, t, n, r, i, a) {
12375
+ return A(), x("svg", kp, [...t[0] ||= [
12338
12376
  S("path", {
12339
12377
  d: "M200.313605 806.764028h487.993851v78.708685h-487.993851z",
12340
12378
  fill: "#6C7280",
@@ -12355,13 +12393,13 @@ function Op(e, t, n, r, i, a) {
12355
12393
  ]]);
12356
12394
  }
12357
12395
  // packages/editor/common/topbar-mixin.js
12358
- var kp = {
12396
+ var jp = {
12359
12397
  components: {
12360
- SvgImgMap: pp,
12361
- SvgUploadFile: _p,
12362
- SvgToc: xp,
12363
- SvgCopy: Tp,
12364
- SvgLanguage: /* @__PURE__ */ H(Ep, [["render", Op]])
12398
+ SvgImgMap: hp,
12399
+ SvgUploadFile: yp,
12400
+ SvgToc: Cp,
12401
+ SvgCopy: Dp,
12402
+ SvgLanguage: /* @__PURE__ */ H(Op, [["render", Ap]])
12365
12403
  },
12366
12404
  emits: [
12367
12405
  "on-action",
@@ -12408,13 +12446,13 @@ var kp = {
12408
12446
  },
12409
12447
  computed: {
12410
12448
  lastExpFileName() {
12411
- let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate(), i = e.getHours(), a = e.getMinutes(), o = t + "-" + cp(n) + "-" + cp(r) + "_" + cp(i) + "-" + cp(a);
12449
+ let e = /* @__PURE__ */ new Date(), t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate(), i = e.getHours(), a = e.getMinutes(), o = t + "-" + up(n) + "-" + up(r) + "_" + up(i) + "-" + up(a);
12412
12450
  return this.exportFileName || o;
12413
12451
  },
12414
12452
  toolConfig() {
12415
12453
  let { toolbars: e = {} } = this;
12416
12454
  return {
12417
- ...lp,
12455
+ ...dp,
12418
12456
  ...e
12419
12457
  };
12420
12458
  }
@@ -12560,7 +12598,7 @@ var kp = {
12560
12598
  html: ".html",
12561
12599
  markdown: ".md"
12562
12600
  };
12563
- this.language && t[this.language] && (e = t[this.language]), sp(this.localVal, this.lastExpFileName + e);
12601
+ this.language && t[this.language] && (e = t[this.language]), lp(this.localVal, this.lastExpFileName + e);
12564
12602
  },
12565
12603
  insertCode() {
12566
12604
  let e = this.getLastPoint(), t = e.content || !1;
@@ -12591,12 +12629,12 @@ var kp = {
12591
12629
  this.$emit("on-act-custom", e);
12592
12630
  }
12593
12631
  }
12594
- }, Ap = {
12632
+ }, Mp = {
12595
12633
  name: "cvEditorCode",
12596
12634
  mixins: [
12597
- ap,
12598
- op,
12599
- kp
12635
+ sp,
12636
+ cp,
12637
+ jp
12600
12638
  ],
12601
12639
  emits: ["update:modelValue", "on-ready"],
12602
12640
  props: {
@@ -12702,28 +12740,28 @@ var kp = {
12702
12740
  },
12703
12741
  listerenEvent() {}
12704
12742
  }
12705
- }, jp = {
12743
+ }, Np = {
12706
12744
  key: 0,
12707
12745
  class: "cv-editor-code-toolbar",
12708
12746
  "data-title": "头部工具栏"
12709
- }, Mp = { class: "cv-editor-toolbars" }, Np = {
12747
+ }, Pp = { class: "cv-editor-toolbars" }, Fp = {
12710
12748
  name: "导入文件",
12711
12749
  class: "import-file"
12712
- }, Pp = { name: "保存到本地" }, Fp = {
12750
+ }, Ip = { name: "保存到本地" }, Lp = {
12713
12751
  key: 1,
12714
12752
  class: "shift-theme",
12715
12753
  name: "主题"
12716
- }, Ip = ["onClick"], Lp = {
12754
+ }, Rp = ["onClick"], zp = {
12717
12755
  class: "shift-theme",
12718
12756
  name: "语言"
12719
- }, Rp = ["onClick"], zp = { class: "icon-svg" }, Bp = {
12757
+ }, Bp = ["onClick"], Vp = { class: "icon-svg" }, Hp = {
12720
12758
  key: 5,
12721
12759
  class: "segmentation"
12722
- }, Vp = ["name"], Hp = {
12760
+ }, Up = ["name"], Wp = {
12723
12761
  title: "编辑器",
12724
12762
  class: "cv-editor-code-main"
12725
12763
  };
12726
- function Up(e, t, n, r, i, a) {
12764
+ function Gp(e, t, n, r, i, a) {
12727
12765
  let o = P("SvgLanguage"), s = P("SvgCopy"), c = P("CodemirrorEditor");
12728
12766
  return A(), x("div", {
12729
12767
  ref: a.editorWrapRefID,
@@ -12732,9 +12770,9 @@ function Up(e, t, n, r, i, a) {
12732
12770
  width: a.widthTotalPx,
12733
12771
  height: a.heightTotalPx
12734
12772
  })
12735
- }, [e.actionPreview ? b("", !0) : (A(), x("div", jp, [S("ul", Mp, [
12773
+ }, [e.actionPreview ? b("", !0) : (A(), x("div", Np, [S("ul", Pp, [
12736
12774
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title")]), t[16] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
12737
- z(S("li", Np, [S("span", {
12775
+ z(S("li", Fp, [S("span", {
12738
12776
  class: "iconfont icon-daoru",
12739
12777
  onClick: t[0] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
12740
12778
  }), S("input", {
@@ -12742,19 +12780,19 @@ function Up(e, t, n, r, i, a) {
12742
12780
  onChange: t[1] ||= (t) => e.actionImportFile(t),
12743
12781
  accept: "text/markdown"
12744
12782
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
12745
- z(S("li", Pp, [S("span", {
12783
+ z(S("li", Ip, [S("span", {
12746
12784
  class: "iconfont icon-download",
12747
12785
  onClick: t[2] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
12748
12786
  })], 512), [[L, e.toolConfig.exportmd]]),
12749
12787
  t[20] ||= S("li", { class: "segmentation" }, [S("div")], -1),
12750
- e.toolConfig.theme ? (A(), x("li", Fp, [S("span", {
12788
+ e.toolConfig.theme ? (A(), x("li", Lp, [S("span", {
12751
12789
  class: "iconfont icon-theme",
12752
12790
  onClick: t[3] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
12753
12791
  }), S("ul", {
12754
12792
  class: D({ active: e.actionThemeDropdown }),
12755
12793
  onMouseleave: t[4] ||= (t) => e.actionThemeDropdown = !1
12756
- }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, Ip))), 256))], 34)])) : b("", !0),
12757
- S("li", Lp, [S("span", {
12794
+ }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, Rp))), 256))], 34)])) : b("", !0),
12795
+ S("li", zp, [S("span", {
12758
12796
  class: "icon-svg",
12759
12797
  onClick: t[5] ||= (t) => e.actionLanguageDropdown = !e.actionLanguageDropdown
12760
12798
  }, [w(o)]), S("ul", {
@@ -12763,13 +12801,13 @@ function Up(e, t, n, r, i, a) {
12763
12801
  }, [(A(!0), x(v, null, M(e.optionLanguage, (t) => (A(), x("li", {
12764
12802
  class: D(t == n.language ? "active" : ""),
12765
12803
  onClick: (n) => e.actionLanguageSet(t)
12766
- }, F(t), 11, Rp))), 256))], 34)]),
12804
+ }, F(t), 11, Bp))), 256))], 34)]),
12767
12805
  t[21] ||= S("li", { class: "empty" }, null, -1),
12768
12806
  e.toolConfig.copy ? (A(), x("li", {
12769
12807
  key: 2,
12770
12808
  name: "复制",
12771
12809
  onClick: t[7] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
12772
- }, [S("span", zp, [w(s)])])) : b("", !0),
12810
+ }, [S("span", Vp, [w(s)])])) : b("", !0),
12773
12811
  e.toolConfig.clear ? (A(), x("li", {
12774
12812
  key: 3,
12775
12813
  name: "清空",
@@ -12780,7 +12818,7 @@ function Up(e, t, n, r, i, a) {
12780
12818
  name: "保存",
12781
12819
  onClick: t[9] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
12782
12820
  }, [...t[18] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
12783
- e.toolConfig.fullscreen ? (A(), x("li", Bp, [...t[19] ||= [S("div", null, null, -1)]])) : b("", !0),
12821
+ e.toolConfig.fullscreen ? (A(), x("li", Hp, [...t[19] ||= [S("div", null, null, -1)]])) : b("", !0),
12784
12822
  e.toolConfig.fullscreen ? (A(), x("li", {
12785
12823
  key: 6,
12786
12824
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -12790,8 +12828,8 @@ function Up(e, t, n, r, i, a) {
12790
12828
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
12791
12829
  onClick: t[11] ||= (t) => e.actionFullscreenSet(!0),
12792
12830
  class: "iconfont icon-fullscreen"
12793
- }, null, 512), [[L, !e.actionFullscreen]])], 8, Vp)) : b("", !0)
12794
- ])])), S("div", Hp, [w(c, E(e.codemrrBind, {
12831
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Up)) : b("", !0)
12832
+ ])])), S("div", Wp, [w(c, E(e.codemrrBind, {
12795
12833
  id: e.editorRefID,
12796
12834
  ref: e.editorRefID,
12797
12835
  style: {
@@ -12813,10 +12851,10 @@ function Up(e, t, n, r, i, a) {
12813
12851
  "onReady"
12814
12852
  ])])], 6);
12815
12853
  }
12816
- var Wp = /*#__PURE__*/ H(Ap, [["render", Up]]), Gp = {
12854
+ var Kp = /*#__PURE__*/ H(Mp, [["render", Gp]]), qp = {
12817
12855
  name: "cvEditorJson",
12818
12856
  components: {},
12819
- mixins: [op],
12857
+ mixins: [cp],
12820
12858
  props: {
12821
12859
  modelValue: {
12822
12860
  type: [
@@ -12937,7 +12975,7 @@ var Wp = /*#__PURE__*/ H(Ap, [["render", Up]]), Gp = {
12937
12975
  }
12938
12976
  }
12939
12977
  };
12940
- function Kp(e, t, n, r, i, a) {
12978
+ function Jp(e, t, n, r, i, a) {
12941
12979
  return A(), x("div", {
12942
12980
  class: D(["cv-editor-json", {
12943
12981
  "max-box": i.max,
@@ -12952,7 +12990,7 @@ function Kp(e, t, n, r, i, a) {
12952
12990
  class: "max-btn"
12953
12991
  })], 6);
12954
12992
  }
12955
- var qp = /*#__PURE__*/ H(Gp, [["render", Kp]]), Jp = [
12993
+ var Yp = /*#__PURE__*/ H(qp, [["render", Jp]]), Xp = [
12956
12994
  "advlist",
12957
12995
  "anchor",
12958
12996
  "autolink",
@@ -12976,22 +13014,22 @@ var qp = /*#__PURE__*/ H(Gp, [["render", Kp]]), Jp = [
12976
13014
  "visualblocks",
12977
13015
  "visualchars",
12978
13016
  "wordcount"
12979
- ], Yp = ["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ", "undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"], Xp = [];
12980
- function Zp() {
13017
+ ], Zp = ["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ", "undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"], Qp = [];
13018
+ function $p() {
12981
13019
  return window.tinymce;
12982
13020
  }
12983
- var Qp = (e, t) => {
13021
+ var em = (e, t) => {
12984
13022
  let n = document.getElementById(e), r = t || function() {};
12985
13023
  if (!n) {
12986
13024
  let t = document.createElement("script");
12987
- t.src = e, t.id = e, document.body.appendChild(t), Xp.push(r), ("onload" in t ? i : a)(t);
13025
+ t.src = e, t.id = e, document.body.appendChild(t), Qp.push(r), ("onload" in t ? i : a)(t);
12988
13026
  }
12989
- n && r && (Zp() ? r(null, n) : Xp.push(r));
13027
+ n && r && ($p() ? r(null, n) : Qp.push(r));
12990
13028
  function i(t) {
12991
13029
  t.onload = function() {
12992
13030
  this.onerror = this.onload = null;
12993
- for (let e of Xp) e(null, t);
12994
- Xp = null;
13031
+ for (let e of Qp) e(null, t);
13032
+ Qp = null;
12995
13033
  }, t.onerror = function() {
12996
13034
  this.onerror = this.onload = null, r(/* @__PURE__ */ Error("Failed to load " + e), t);
12997
13035
  };
@@ -13000,16 +13038,16 @@ var Qp = (e, t) => {
13000
13038
  e.onreadystatechange = function() {
13001
13039
  if (this.readyState === "complete" || this.readyState === "loaded") {
13002
13040
  this.onreadystatechange = null;
13003
- for (let t of Xp) t(null, e);
13004
- Xp = null;
13041
+ for (let t of Qp) t(null, e);
13042
+ Qp = null;
13005
13043
  }
13006
13044
  };
13007
13045
  }
13008
- }, $p = "https://10ui.cn/tinymce/@8.10.1/tinymce.min.js", em = {
13046
+ }, tm = "https://10ui.cn/tinymce/@8.10.1/tinymce.min.js", nm = {
13009
13047
  inheritAttrs: !1,
13010
13048
  name: "cvEditorTinymce",
13011
13049
  emits: ["update:modelValue"],
13012
- mixins: [op, si],
13050
+ mixins: [cp, si],
13013
13051
  props: {
13014
13052
  modelValue: {
13015
13053
  type: String,
@@ -13099,7 +13137,7 @@ var Qp = (e, t) => {
13099
13137
  },
13100
13138
  methods: {
13101
13139
  initLoad() {
13102
- Qp($p, (e) => {
13140
+ em(tm, (e) => {
13103
13141
  e ? this.notify("error", e.message) : this.initTinymce();
13104
13142
  });
13105
13143
  },
@@ -13114,9 +13152,9 @@ var Qp = (e, t) => {
13114
13152
  branding: !1,
13115
13153
  body_class: "panel-body ",
13116
13154
  object_resizing: !1,
13117
- toolbar: this.toolbar.length > 0 ? this.toolbar : Yp,
13155
+ toolbar: this.toolbar.length > 0 ? this.toolbar : Zp,
13118
13156
  menubar: this.menubar,
13119
- plugins: Jp,
13157
+ plugins: Xp,
13120
13158
  end_container_on_empty_block: !0,
13121
13159
  link_default_target: "_blank",
13122
13160
  link_title: !1,
@@ -13173,8 +13211,11 @@ var Qp = (e, t) => {
13173
13211
  let s = this.mergeAttrs.signatureType || this.signatureType, c = this.mergeAttrs.signatureParam || this.signatureParam, l = this.saveSignMap[n] || c.save_sign || "image", u = {
13174
13212
  ...c,
13175
13213
  save_sign: l
13176
- };
13177
- xa(e && typeof e.blob == "function" ? e.blob() : e, s, o, u, (e) => {
13214
+ }, d = e && typeof e.blob == "function" ? e.blob() : e, f = (e && typeof e.filename == "function" ? e.filename() : "") || (e && typeof e.name == "function" ? e.name() : e && e.name || "") || "";
13215
+ d && !d.name && f && (d = new File([d], f, {
13216
+ type: d.type,
13217
+ lastModified: Date.now()
13218
+ })), xa(d, s, o, u, (e) => {
13178
13219
  typeof t == "function" && t(e);
13179
13220
  }).then((e) => {
13180
13221
  let t = e && (e.cdn_full_path || e.full_path);
@@ -13210,22 +13251,22 @@ var Qp = (e, t) => {
13210
13251
  });
13211
13252
  }
13212
13253
  }
13213
- }, tm = ["id"];
13214
- function nm(e, t, n, r, i, a) {
13254
+ }, rm = ["id"];
13255
+ function im(e, t, n, r, i, a) {
13215
13256
  return A(), x("div", {
13216
13257
  class: D(["cv-editor-tinymce tinymce-container", { fullscreen: i.fullscreen }]),
13217
13258
  style: k({ width: a.containerWidth })
13218
13259
  }, [S("textarea", {
13219
13260
  id: e.editorRefID,
13220
13261
  class: "tinymce-textarea"
13221
- }, null, 8, tm)], 6);
13262
+ }, null, 8, rm)], 6);
13222
13263
  }
13223
- var rm = /*#__PURE__*/ H(em, [["render", nm], ["__scopeId", "data-v-681627a2"]]), im = {
13264
+ var am = /*#__PURE__*/ H(nm, [["render", im], ["__scopeId", "data-v-280d4f3a"]]), om = {
13224
13265
  name: "cvEditorMarkdown",
13225
13266
  mixins: [
13226
- ap,
13227
- op,
13228
- kp
13267
+ sp,
13268
+ cp,
13269
+ jp
13229
13270
  ],
13230
13271
  emits: [
13231
13272
  "update:modelValue",
@@ -13424,120 +13465,120 @@ var rm = /*#__PURE__*/ H(em, [["render", nm], ["__scopeId", "data-v-681627a2"]])
13424
13465
  }
13425
13466
  }
13426
13467
  }
13427
- }, am = {
13468
+ }, sm = {
13428
13469
  key: 0,
13429
13470
  title: "头部工具栏",
13430
13471
  class: "cv-editor-markdown-toolbar"
13431
- }, om = { class: "cv-editor-toolbars" }, sm = {
13472
+ }, cm = { class: "cv-editor-toolbars" }, lm = {
13432
13473
  key: 1,
13433
13474
  name: "插入图片"
13434
- }, cm = {
13475
+ }, um = {
13435
13476
  key: 2,
13436
13477
  name: "本地图片"
13437
- }, lm = { class: "icon-svg" }, um = {
13478
+ }, dm = { class: "icon-svg" }, fm = {
13438
13479
  key: 4,
13439
13480
  name: "上传图片"
13440
- }, dm = {
13481
+ }, pm = {
13441
13482
  key: 5,
13442
13483
  name: "上传文件"
13443
- }, fm = {
13484
+ }, mm = {
13444
13485
  name: "导入文件",
13445
13486
  class: "import-file"
13446
- }, pm = { name: "保存到本地" }, mm = {
13487
+ }, hm = { name: "保存到本地" }, gm = {
13447
13488
  key: 6,
13448
13489
  name: "代码块"
13449
- }, hm = {
13490
+ }, _m = {
13450
13491
  key: 7,
13451
13492
  class: "shift-theme",
13452
13493
  name: "主题"
13453
- }, gm = ["onClick"], _m = {
13494
+ }, vm = ["onClick"], ym = {
13454
13495
  key: 8,
13455
13496
  class: "shift-theme",
13456
13497
  name: "背景颜色"
13457
- }, vm = ["onClick"], ym = {
13498
+ }, bm = ["onClick"], xm = {
13458
13499
  key: 9,
13459
13500
  class: "shift-theme",
13460
13501
  name: "phrases"
13461
- }, bm = ["onClick"], xm = ["name"], Sm = ["name"], Cm = ["name"], wm = ["name"], Tm = {
13502
+ }, Sm = ["onClick"], Cm = ["name"], wm = ["name"], Tm = ["name"], Em = ["name"], Dm = {
13462
13503
  key: 15,
13463
13504
  name: "全屏编辑"
13464
- }, Em = {
13505
+ }, Om = {
13465
13506
  key: 16,
13466
13507
  name: "分屏显示"
13467
- }, Dm = {
13508
+ }, km = {
13468
13509
  key: 17,
13469
13510
  name: "预览"
13470
- }, Om = {
13511
+ }, Am = {
13471
13512
  key: 18,
13472
13513
  class: "segmentation"
13473
- }, km = { class: "icon-svg" }, Am = {
13514
+ }, jm = { class: "icon-svg" }, Mm = {
13474
13515
  key: 22,
13475
13516
  class: "segmentation"
13476
- }, jm = {
13517
+ }, Nm = {
13477
13518
  key: 23,
13478
13519
  name: "目录"
13479
- }, Mm = {
13520
+ }, Pm = {
13480
13521
  key: 24,
13481
13522
  class: "segmentation"
13482
- }, Nm = ["name"], Pm = { class: "cv-editor-toolbars" }, Fm = {
13523
+ }, Fm = ["name"], Im = { class: "cv-editor-toolbars" }, Lm = {
13483
13524
  key: 0,
13484
13525
  name: "撤销"
13485
- }, Im = {
13526
+ }, Rm = {
13486
13527
  key: 2,
13487
13528
  name: "粗体"
13488
- }, Lm = {
13529
+ }, zm = {
13489
13530
  key: 3,
13490
13531
  name: "斜体"
13491
- }, Rm = {
13532
+ }, Bm = {
13492
13533
  key: 4,
13493
13534
  name: "删除线"
13494
- }, zm = {
13535
+ }, Vm = {
13495
13536
  key: 5,
13496
13537
  name: "下划线"
13497
- }, Bm = {
13538
+ }, Hm = {
13498
13539
  key: 6,
13499
13540
  name: "标题1"
13500
- }, Vm = {
13541
+ }, Um = {
13501
13542
  key: 7,
13502
13543
  name: "标题2"
13503
- }, Hm = {
13544
+ }, Wm = {
13504
13545
  key: 8,
13505
13546
  name: "标题3"
13506
- }, Um = {
13547
+ }, Gm = {
13507
13548
  key: 9,
13508
13549
  name: "标题4"
13509
- }, Wm = {
13550
+ }, Km = {
13510
13551
  key: 10,
13511
13552
  name: "标题5"
13512
- }, Gm = {
13553
+ }, qm = {
13513
13554
  key: 11,
13514
13555
  name: "标题6"
13515
- }, Km = {
13556
+ }, Jm = {
13516
13557
  key: 12,
13517
13558
  name: "分割线"
13518
- }, qm = {
13559
+ }, Ym = {
13519
13560
  key: 13,
13520
13561
  name: "引用"
13521
- }, Jm = {
13562
+ }, Xm = {
13522
13563
  key: 14,
13523
13564
  name: "无序列表"
13524
- }, Ym = {
13565
+ }, Zm = {
13525
13566
  key: 15,
13526
13567
  name: "有序列表"
13527
- }, Xm = {
13568
+ }, Qm = {
13528
13569
  key: 16,
13529
13570
  name: "未完成列表"
13530
- }, Zm = {
13571
+ }, $m = {
13531
13572
  key: 17,
13532
13573
  name: "已完成列表"
13533
- }, Qm = {
13574
+ }, eh = {
13534
13575
  key: 18,
13535
13576
  name: "链接"
13536
- }, $m = {
13577
+ }, th = {
13537
13578
  key: 19,
13538
13579
  name: "表格"
13539
13580
  };
13540
- function eh(e, t, n, r, i, a) {
13581
+ function nh(e, t, n, r, i, a) {
13541
13582
  let o = P("SvgImgMap"), s = P("SvgUploadFile"), c = P("SvgCopy"), l = P("SvgToc"), u = P("CodemirrorEditor"), d = P("cv-markdown-show"), f = P("el-input"), p = P("el-button"), m = P("el-dialog");
13542
13583
  return A(), x("div", {
13543
13584
  ref: a.editorWrapRefID,
@@ -13547,13 +13588,13 @@ function eh(e, t, n, r, i, a) {
13547
13588
  height: a.heightTotalPx
13548
13589
  })
13549
13590
  }, [
13550
- e.actionPreview ? b("", !0) : (A(), x("div", am, [S("ul", om, [
13591
+ e.actionPreview ? b("", !0) : (A(), x("div", sm, [S("ul", cm, [
13551
13592
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title", {}, void 0, !0)]), t[65] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
13552
- e.toolConfig.image ? (A(), x("li", sm, [S("span", {
13593
+ e.toolConfig.image ? (A(), x("li", lm, [S("span", {
13553
13594
  onClick: t[0] ||= (...t) => e.actionInsImage && e.actionInsImage(...t),
13554
13595
  class: "iconfont icon-img"
13555
13596
  })])) : b("", !0),
13556
- e.toolConfig.uploadImage ? (A(), x("li", cm, [S("span", {
13597
+ e.toolConfig.uploadImage ? (A(), x("li", um, [S("span", {
13557
13598
  onClick: t[1] ||= (...t) => e.actionChooseImage && e.actionChooseImage(...t),
13558
13599
  class: "iconfont icon-upload-img"
13559
13600
  })])) : b("", !0),
@@ -13561,16 +13602,16 @@ function eh(e, t, n, r, i, a) {
13561
13602
  key: 3,
13562
13603
  name: "图片空间",
13563
13604
  onClick: t[2] ||= (t) => e.actionCustom("image-browse")
13564
- }, [S("span", lm, [w(o)])])) : b("", !0),
13565
- e.toolConfig.custom_uploadImage ? (A(), x("li", um, [S("span", {
13605
+ }, [S("span", dm, [w(o)])])) : b("", !0),
13606
+ e.toolConfig.custom_uploadImage ? (A(), x("li", fm, [S("span", {
13566
13607
  onClick: t[3] ||= (t) => e.actionCustom("image-upload"),
13567
13608
  class: "iconfont icon-upload-img"
13568
13609
  })])) : b("", !0),
13569
- e.toolConfig.custom_uploadFile ? (A(), x("li", dm, [S("span", {
13610
+ e.toolConfig.custom_uploadFile ? (A(), x("li", pm, [S("span", {
13570
13611
  onClick: t[4] ||= (t) => e.actionCustom("file-upload"),
13571
13612
  class: "icon-svg"
13572
13613
  }, [w(s)])])) : b("", !0),
13573
- z(S("li", fm, [S("span", {
13614
+ z(S("li", mm, [S("span", {
13574
13615
  class: "iconfont icon-daoru",
13575
13616
  onClick: t[5] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
13576
13617
  }), S("input", {
@@ -13578,23 +13619,23 @@ function eh(e, t, n, r, i, a) {
13578
13619
  onChange: t[6] ||= (t) => e.actionImportFile(t),
13579
13620
  accept: "text/markdown"
13580
13621
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
13581
- z(S("li", pm, [S("span", {
13622
+ z(S("li", hm, [S("span", {
13582
13623
  class: "iconfont icon-download",
13583
13624
  onClick: t[7] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
13584
13625
  })], 512), [[L, e.toolConfig.exportmd]]),
13585
13626
  t[72] ||= S("li", { class: "segmentation" }, [S("div")], -1),
13586
- e.toolConfig.code ? (A(), x("li", mm, [S("span", {
13627
+ e.toolConfig.code ? (A(), x("li", gm, [S("span", {
13587
13628
  onClick: t[8] ||= (...t) => e.insertCode && e.insertCode(...t),
13588
13629
  class: "iconfont icon-code"
13589
13630
  })])) : b("", !0),
13590
- e.toolConfig.theme ? (A(), x("li", hm, [S("span", {
13631
+ e.toolConfig.theme ? (A(), x("li", _m, [S("span", {
13591
13632
  class: "iconfont icon-theme",
13592
13633
  onClick: t[9] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
13593
13634
  }), S("ul", {
13594
13635
  class: D({ active: e.actionThemeDropdown }),
13595
13636
  onMouseleave: t[10] ||= (t) => e.actionThemeDropdown = !1
13596
- }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, gm))), 256))], 34)])) : b("", !0),
13597
- e.toolConfig.backgroundColor ? (A(), x("li", _m, [S("span", {
13637
+ }, [(A(!0), x(v, null, M(e.optionTheme, (t) => (A(), x("li", { onClick: (n) => e.actionThemesSet(t) }, F(t), 9, vm))), 256))], 34)])) : b("", !0),
13638
+ e.toolConfig.backgroundColor ? (A(), x("li", ym, [S("span", {
13598
13639
  class: "iconfont icon-theme",
13599
13640
  onClick: t[11] ||= (t) => e.actionBgColorDropdown = !e.actionBgColorDropdown
13600
13641
  }), S("ul", {
@@ -13607,14 +13648,14 @@ function eh(e, t, n, r, i, a) {
13607
13648
  "lawngreen",
13608
13649
  "blue",
13609
13650
  "white"
13610
- ], (t) => S("li", { onClick: (n) => e.actionBgColorSet(t) }, F(t), 9, vm)), 64))], 34)])) : b("", !0),
13611
- e.toolConfig.phrases ? (A(), x("li", ym, [S("span", {
13651
+ ], (t) => S("li", { onClick: (n) => e.actionBgColorSet(t) }, F(t), 9, bm)), 64))], 34)])) : b("", !0),
13652
+ e.toolConfig.phrases ? (A(), x("li", xm, [S("span", {
13612
13653
  class: "iconfont icon-theme",
13613
13654
  onClick: t[13] ||= (t) => e.actionPhrasesDropdown = !e.actionPhrasesDropdown
13614
13655
  }), S("ul", {
13615
13656
  class: D({ active: e.actionPhrasesDropdown }),
13616
13657
  onMouseleave: t[14] ||= (t) => e.actionPhrasesDropdown = !1
13617
- }, [(A(!0), x(v, null, M(e.optionPhrases, (t) => (A(), x("li", { onClick: (n) => e.actionPhrasesSet(t) }, F(t), 9, bm))), 256))], 34)])) : b("", !0),
13658
+ }, [(A(!0), x(v, null, M(e.optionPhrases, (t) => (A(), x("li", { onClick: (n) => e.actionPhrasesSet(t) }, F(t), 9, Sm))), 256))], 34)])) : b("", !0),
13618
13659
  e.toolConfig.html_to_markdown ? (A(), x("li", {
13619
13660
  key: 10,
13620
13661
  name: "html转markdown",
@@ -13635,7 +13676,7 @@ function eh(e, t, n, r, i, a) {
13635
13676
  }, null, 512), [[L, e.codemrrConfig.disabled]]), z(S("span", {
13636
13677
  onClick: t[17] ||= (t) => e.codemrrConfig.disabled = !e.codemrrConfig.disabled,
13637
13678
  class: "iconfont icon-off"
13638
- }, null, 512), [[L, !e.codemrrConfig.disabled]])], 8, xm)) : b("", !0),
13679
+ }, null, 512), [[L, !e.codemrrConfig.disabled]])], 8, Cm)) : b("", !0),
13639
13680
  e.toolConfig.autofocus ? (A(), x("li", {
13640
13681
  key: 12,
13641
13682
  name: e.codemrrConfig.autofocus ? "toggle autofocus:开" : "toggle autofocus:关"
@@ -13645,7 +13686,7 @@ function eh(e, t, n, r, i, a) {
13645
13686
  }, null, 512), [[L, e.codemrrConfig.autofocus]]), z(S("span", {
13646
13687
  onClick: t[19] ||= (t) => e.codemrrConfig.autofocus = !e.codemrrConfig.autofocus,
13647
13688
  class: "iconfont icon-off"
13648
- }, null, 512), [[L, !e.codemrrConfig.autofocus]])], 8, Sm)) : b("", !0),
13689
+ }, null, 512), [[L, !e.codemrrConfig.autofocus]])], 8, wm)) : b("", !0),
13649
13690
  e.toolConfig.indentWithTab ? (A(), x("li", {
13650
13691
  key: 13,
13651
13692
  name: e.codemrrConfig.indentWithTab ? "toggle indentWithTab:开" : "toggle indentWithTab:关"
@@ -13655,7 +13696,7 @@ function eh(e, t, n, r, i, a) {
13655
13696
  }, null, 512), [[L, e.codemrrConfig.indentWithTab]]), z(S("span", {
13656
13697
  onClick: t[21] ||= (t) => e.codemrrConfig.indentWithTab = !e.codemrrConfig.indentWithTab,
13657
13698
  class: "iconfont icon-off"
13658
- }, null, 512), [[L, !e.codemrrConfig.indentWithTab]])], 8, Cm)) : b("", !0),
13699
+ }, null, 512), [[L, !e.codemrrConfig.indentWithTab]])], 8, Tm)) : b("", !0),
13659
13700
  t[73] ||= S("li", { class: "empty" }, null, -1),
13660
13701
  e.toolConfig.scrollSync ? (A(), x("li", {
13661
13702
  key: 14,
@@ -13666,25 +13707,25 @@ function eh(e, t, n, r, i, a) {
13666
13707
  }, null, 512), [[L, e.actionScrollSync]]), z(S("span", {
13667
13708
  onClick: t[23] ||= (t) => e.actionScrollSync = !e.actionScrollSync,
13668
13709
  class: "iconfont icon-off"
13669
- }, null, 512), [[L, !e.actionScrollSync]])], 8, wm)) : b("", !0),
13670
- e.toolConfig.split && e.actionSplit ? (A(), x("li", Tm, [S("span", {
13710
+ }, null, 512), [[L, !e.actionScrollSync]])], 8, Em)) : b("", !0),
13711
+ e.toolConfig.split && e.actionSplit ? (A(), x("li", Dm, [S("span", {
13671
13712
  onClick: t[24] ||= (t) => e.actionSplit = !1,
13672
13713
  class: "iconfont icon-md"
13673
13714
  })])) : b("", !0),
13674
- e.toolConfig.split && !e.actionSplit ? (A(), x("li", Em, [S("span", {
13715
+ e.toolConfig.split && !e.actionSplit ? (A(), x("li", Om, [S("span", {
13675
13716
  onClick: t[25] ||= (t) => e.actionSplit = !0,
13676
13717
  class: "iconfont icon-group"
13677
13718
  })])) : b("", !0),
13678
- e.toolConfig.preview ? (A(), x("li", Dm, [S("span", {
13719
+ e.toolConfig.preview ? (A(), x("li", km, [S("span", {
13679
13720
  onClick: t[26] ||= (t) => e.actionPreview = !0,
13680
13721
  class: "iconfont icon-preview"
13681
13722
  })])) : b("", !0),
13682
- e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", Om, [...t[67] ||= [S("div", null, null, -1)]])) : b("", !0),
13723
+ e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", Am, [...t[67] ||= [S("div", null, null, -1)]])) : b("", !0),
13683
13724
  e.toolConfig.copy ? (A(), x("li", {
13684
13725
  key: 19,
13685
13726
  name: "复制",
13686
13727
  onClick: t[27] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
13687
- }, [S("span", km, [w(c)])])) : b("", !0),
13728
+ }, [S("span", jm, [w(c)])])) : b("", !0),
13688
13729
  e.toolConfig.clear ? (A(), x("li", {
13689
13730
  key: 20,
13690
13731
  name: "清空",
@@ -13695,15 +13736,15 @@ function eh(e, t, n, r, i, a) {
13695
13736
  name: "保存",
13696
13737
  onClick: t[29] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
13697
13738
  }, [...t[69] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
13698
- e.toolConfig.toc ? (A(), x("li", Am, [...t[70] ||= [S("div", null, null, -1)]])) : b("", !0),
13699
- e.toolConfig.toc ? (A(), x("li", jm, [z(S("span", {
13739
+ e.toolConfig.toc ? (A(), x("li", Mm, [...t[70] ||= [S("div", null, null, -1)]])) : b("", !0),
13740
+ e.toolConfig.toc ? (A(), x("li", Nm, [z(S("span", {
13700
13741
  onClick: t[30] ||= (t) => e.actionToc = !e.actionToc,
13701
13742
  class: "icon-svg active"
13702
13743
  }, [w(l)], 512), [[L, e.actionToc]]), z(S("span", {
13703
13744
  onClick: t[31] ||= (t) => e.actionToc = !e.actionToc,
13704
13745
  class: "icon-svg"
13705
13746
  }, [w(l)], 512), [[L, !e.actionToc]])])) : b("", !0),
13706
- e.toolConfig.fullscreen ? (A(), x("li", Mm, [...t[71] ||= [S("div", null, null, -1)]])) : b("", !0),
13747
+ e.toolConfig.fullscreen ? (A(), x("li", Pm, [...t[71] ||= [S("div", null, null, -1)]])) : b("", !0),
13707
13748
  e.toolConfig.fullscreen ? (A(), x("li", {
13708
13749
  key: 25,
13709
13750
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -13713,9 +13754,9 @@ function eh(e, t, n, r, i, a) {
13713
13754
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
13714
13755
  onClick: t[33] ||= (t) => e.actionFullscreenSet(!0),
13715
13756
  class: "iconfont icon-fullscreen"
13716
- }, null, 512), [[L, !e.actionFullscreen]])], 8, Nm)) : b("", !0)
13717
- ]), S("ul", Pm, [
13718
- e.toolConfig.undo ? (A(), x("li", Fm, [S("span", {
13757
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Fm)) : b("", !0)
13758
+ ]), S("ul", Im, [
13759
+ e.toolConfig.undo ? (A(), x("li", Lm, [S("span", {
13719
13760
  class: "iconfont icon-undo",
13720
13761
  onClick: t[34] ||= (...t) => e.actionUndo && e.actionUndo(...t)
13721
13762
  })])) : b("", !0),
@@ -13724,76 +13765,76 @@ function eh(e, t, n, r, i, a) {
13724
13765
  name: "重做",
13725
13766
  onClick: t[35] ||= (...t) => e.actionRedo && e.actionRedo(...t)
13726
13767
  }, [...t[74] ||= [S("span", { class: "iconfont icon-redo" }, null, -1)]])) : b("", !0),
13727
- e.toolConfig.strong ? (A(), x("li", Im, [S("span", {
13768
+ e.toolConfig.strong ? (A(), x("li", Rm, [S("span", {
13728
13769
  onClick: t[36] ||= (...t) => e.actionInsStrong && e.actionInsStrong(...t),
13729
13770
  class: "iconfont icon-bold"
13730
13771
  })])) : b("", !0),
13731
- e.toolConfig.italic ? (A(), x("li", Lm, [S("span", {
13772
+ e.toolConfig.italic ? (A(), x("li", zm, [S("span", {
13732
13773
  onClick: t[37] ||= (...t) => e.actionInsItalic && e.actionInsItalic(...t),
13733
13774
  class: "iconfont icon-italic"
13734
13775
  })])) : b("", !0),
13735
- e.toolConfig.overline ? (A(), x("li", Rm, [S("span", {
13776
+ e.toolConfig.overline ? (A(), x("li", Bm, [S("span", {
13736
13777
  onClick: t[38] ||= (...t) => e.actionInsOverline && e.actionInsOverline(...t),
13737
13778
  class: "iconfont icon-overline"
13738
13779
  })])) : b("", !0),
13739
- e.toolConfig.overline ? (A(), x("li", zm, [S("span", {
13780
+ e.toolConfig.overline ? (A(), x("li", Vm, [S("span", {
13740
13781
  onClick: t[39] ||= (...t) => e.actionInsUnderline && e.actionInsUnderline(...t),
13741
13782
  class: "iconfont icon-under-line"
13742
13783
  })])) : b("", !0),
13743
- e.toolConfig.h1 ? (A(), x("li", Bm, [S("span", {
13784
+ e.toolConfig.h1 ? (A(), x("li", Hm, [S("span", {
13744
13785
  style: { "font-size": "16px" },
13745
13786
  onClick: t[40] ||= (t) => e.actionInsTitle(1)
13746
13787
  }, "h1")])) : b("", !0),
13747
- e.toolConfig.h2 ? (A(), x("li", Vm, [S("span", {
13788
+ e.toolConfig.h2 ? (A(), x("li", Um, [S("span", {
13748
13789
  style: { "font-size": "16px" },
13749
13790
  onClick: t[41] ||= (t) => e.actionInsTitle(2)
13750
13791
  }, "h2")])) : b("", !0),
13751
- e.toolConfig.h3 ? (A(), x("li", Hm, [S("span", {
13792
+ e.toolConfig.h3 ? (A(), x("li", Wm, [S("span", {
13752
13793
  style: { "font-size": "16px" },
13753
13794
  onClick: t[42] ||= (t) => e.actionInsTitle(3)
13754
13795
  }, "h3")])) : b("", !0),
13755
- e.toolConfig.h4 ? (A(), x("li", Um, [S("span", {
13796
+ e.toolConfig.h4 ? (A(), x("li", Gm, [S("span", {
13756
13797
  style: { "font-size": "16px" },
13757
13798
  onClick: t[43] ||= (t) => e.actionInsTitle(4)
13758
13799
  }, "h4")])) : b("", !0),
13759
- e.toolConfig.h5 ? (A(), x("li", Wm, [S("span", {
13800
+ e.toolConfig.h5 ? (A(), x("li", Km, [S("span", {
13760
13801
  style: { "font-size": "16px" },
13761
13802
  onClick: t[44] ||= (t) => e.actionInsTitle(5)
13762
13803
  }, "h5")])) : b("", !0),
13763
- e.toolConfig.h6 ? (A(), x("li", Gm, [S("span", {
13804
+ e.toolConfig.h6 ? (A(), x("li", qm, [S("span", {
13764
13805
  style: { "font-size": "16px" },
13765
13806
  onClick: t[45] ||= (t) => e.actionInsTitle(6)
13766
13807
  }, "h6")])) : b("", !0),
13767
- e.toolConfig.hr ? (A(), x("li", Km, [S("span", {
13808
+ e.toolConfig.hr ? (A(), x("li", Jm, [S("span", {
13768
13809
  onClick: t[46] ||= (...t) => e.actionInsLine && e.actionInsLine(...t),
13769
13810
  class: "iconfont icon-horizontal"
13770
13811
  })])) : b("", !0),
13771
- e.toolConfig.quote ? (A(), x("li", qm, [S("span", {
13812
+ e.toolConfig.quote ? (A(), x("li", Ym, [S("span", {
13772
13813
  style: { "font-size": "16px" },
13773
13814
  onClick: t[47] ||= (...t) => e.actionInsQuote && e.actionInsQuote(...t),
13774
13815
  class: "iconfont icon-quote"
13775
13816
  })])) : b("", !0),
13776
- e.toolConfig.ul ? (A(), x("li", Jm, [S("span", {
13817
+ e.toolConfig.ul ? (A(), x("li", Xm, [S("span", {
13777
13818
  onClick: t[48] ||= (...t) => e.actionInsUl && e.actionInsUl(...t),
13778
13819
  class: "iconfont icon-ul"
13779
13820
  })])) : b("", !0),
13780
- e.toolConfig.ol ? (A(), x("li", Ym, [S("span", {
13821
+ e.toolConfig.ol ? (A(), x("li", Zm, [S("span", {
13781
13822
  onClick: t[49] ||= (...t) => e.actionInsOl && e.actionInsOl(...t),
13782
13823
  class: "iconfont icon-ol"
13783
13824
  })])) : b("", !0),
13784
- e.toolConfig.notChecked ? (A(), x("li", Xm, [S("span", {
13825
+ e.toolConfig.notChecked ? (A(), x("li", Qm, [S("span", {
13785
13826
  onClick: t[50] ||= (...t) => e.insertNotFinished && e.insertNotFinished(...t),
13786
13827
  class: "iconfont icon-checked-false"
13787
13828
  })])) : b("", !0),
13788
- e.toolConfig.checked ? (A(), x("li", Zm, [S("span", {
13829
+ e.toolConfig.checked ? (A(), x("li", $m, [S("span", {
13789
13830
  onClick: t[51] ||= (...t) => e.insertFinished && e.insertFinished(...t),
13790
13831
  class: "iconfont icon-checked"
13791
13832
  })])) : b("", !0),
13792
- e.toolConfig.link ? (A(), x("li", Qm, [S("span", {
13833
+ e.toolConfig.link ? (A(), x("li", eh, [S("span", {
13793
13834
  onClick: t[52] ||= (...t) => e.actionInsLink && e.actionInsLink(...t),
13794
13835
  class: "iconfont icon-link"
13795
13836
  })])) : b("", !0),
13796
- e.toolConfig.table ? (A(), x("li", $m, [S("span", {
13837
+ e.toolConfig.table ? (A(), x("li", th, [S("span", {
13797
13838
  onClick: t[53] ||= (...t) => e.actionInsTable && e.actionInsTable(...t),
13798
13839
  class: "iconfont icon-table"
13799
13840
  })])) : b("", !0)
@@ -13882,9 +13923,9 @@ function eh(e, t, n, r, i, a) {
13882
13923
  }, 8, ["modelValue"])
13883
13924
  ], 6);
13884
13925
  }
13885
- var th = /*#__PURE__*/ H(im, [["render", eh], ["__scopeId", "data-v-89e99ce8"]]), nh = {
13926
+ var rh = /*#__PURE__*/ H(om, [["render", nh], ["__scopeId", "data-v-89e99ce8"]]), ih = {
13886
13927
  name: "cvMarkdownSimple",
13887
- mixins: [op, kp],
13928
+ mixins: [cp, jp],
13888
13929
  emits: [
13889
13930
  "update:modelValue",
13890
13931
  "on-ready",
@@ -14123,112 +14164,112 @@ var th = /*#__PURE__*/ H(im, [["render", eh], ["__scopeId", "data-v-89e99ce8"]])
14123
14164
  o <= 0 || (e.scrollTop = parseInt(a / o * (t - r), 0));
14124
14165
  }
14125
14166
  }
14126
- }, rh = {
14167
+ }, ah = {
14127
14168
  key: 0,
14128
14169
  title: "头部工具栏",
14129
14170
  class: "cv-editor-markdown-toolbar"
14130
- }, ih = { class: "cv-editor-toolbars" }, ah = {
14171
+ }, oh = { class: "cv-editor-toolbars" }, sh = {
14131
14172
  key: 1,
14132
14173
  name: "插入图片"
14133
- }, oh = {
14174
+ }, ch = {
14134
14175
  key: 2,
14135
14176
  name: "本地图片"
14136
- }, sh = { class: "icon-svg" }, ch = {
14177
+ }, lh = { class: "icon-svg" }, uh = {
14137
14178
  key: 4,
14138
14179
  name: "上传图片"
14139
- }, lh = {
14180
+ }, dh = {
14140
14181
  key: 5,
14141
14182
  name: "上传文件"
14142
- }, uh = {
14183
+ }, fh = {
14143
14184
  name: "导入文件",
14144
14185
  class: "import-file"
14145
- }, dh = { name: "保存到本地" }, fh = {
14186
+ }, ph = { name: "保存到本地" }, mh = {
14146
14187
  key: 6,
14147
14188
  name: "代码块"
14148
- }, ph = {
14189
+ }, hh = {
14149
14190
  key: 7,
14150
14191
  class: "shift-theme",
14151
14192
  name: "主题"
14152
- }, mh = ["onClick"], hh = ["name"], gh = {
14193
+ }, gh = ["onClick"], _h = ["name"], vh = {
14153
14194
  key: 10,
14154
14195
  name: "全屏编辑"
14155
- }, _h = {
14196
+ }, yh = {
14156
14197
  key: 11,
14157
14198
  name: "分屏显示"
14158
- }, vh = {
14199
+ }, bh = {
14159
14200
  key: 12,
14160
14201
  name: "预览"
14161
- }, yh = {
14202
+ }, xh = {
14162
14203
  key: 13,
14163
14204
  class: "segmentation"
14164
- }, bh = { class: "icon-svg" }, xh = {
14205
+ }, Sh = { class: "icon-svg" }, Ch = {
14165
14206
  key: 17,
14166
14207
  class: "segmentation"
14167
- }, Sh = {
14208
+ }, wh = {
14168
14209
  key: 18,
14169
14210
  name: "目录"
14170
- }, Ch = {
14211
+ }, Th = {
14171
14212
  key: 19,
14172
14213
  class: "segmentation"
14173
- }, wh = ["name"], Th = { class: "cv-editor-toolbars" }, Eh = {
14214
+ }, Eh = ["name"], Dh = { class: "cv-editor-toolbars" }, Oh = {
14174
14215
  key: 0,
14175
14216
  name: "粗体"
14176
- }, Dh = {
14217
+ }, kh = {
14177
14218
  key: 1,
14178
14219
  name: "斜体"
14179
- }, Oh = {
14220
+ }, Ah = {
14180
14221
  key: 2,
14181
14222
  name: "删除线"
14182
- }, kh = {
14223
+ }, jh = {
14183
14224
  key: 3,
14184
14225
  name: "下划线"
14185
- }, Ah = {
14226
+ }, Mh = {
14186
14227
  key: 4,
14187
14228
  name: "标题1"
14188
- }, jh = {
14229
+ }, Nh = {
14189
14230
  key: 5,
14190
14231
  name: "标题2"
14191
- }, Mh = {
14232
+ }, Ph = {
14192
14233
  key: 6,
14193
14234
  name: "标题3"
14194
- }, Nh = {
14235
+ }, Fh = {
14195
14236
  key: 7,
14196
14237
  name: "标题4"
14197
- }, Ph = {
14238
+ }, Ih = {
14198
14239
  key: 8,
14199
14240
  name: "标题5"
14200
- }, Fh = {
14241
+ }, Lh = {
14201
14242
  key: 9,
14202
14243
  name: "标题6"
14203
- }, Ih = {
14244
+ }, Rh = {
14204
14245
  key: 10,
14205
14246
  name: "分割线"
14206
- }, Lh = {
14247
+ }, zh = {
14207
14248
  key: 11,
14208
14249
  name: "引用"
14209
- }, Rh = {
14250
+ }, Bh = {
14210
14251
  key: 12,
14211
14252
  name: "无序列表"
14212
- }, zh = {
14253
+ }, Vh = {
14213
14254
  key: 13,
14214
14255
  name: "有序列表"
14215
- }, Bh = {
14256
+ }, Hh = {
14216
14257
  key: 14,
14217
14258
  name: "未完成列表"
14218
- }, Vh = {
14259
+ }, Uh = {
14219
14260
  key: 15,
14220
14261
  name: "已完成列表"
14221
- }, Hh = {
14262
+ }, Wh = {
14222
14263
  key: 16,
14223
14264
  name: "链接"
14224
- }, Uh = {
14265
+ }, Gh = {
14225
14266
  key: 17,
14226
14267
  name: "表格"
14227
- }, Wh = {
14268
+ }, Kh = {
14228
14269
  class: "md-simple-gutter",
14229
14270
  ref: "gutter"
14230
- }, Gh = ["readonly"];
14231
- function Kh(e, t, n, r, i, a) {
14271
+ }, qh = ["readonly"];
14272
+ function Jh(e, t, n, r, i, a) {
14232
14273
  let o = P("SvgImgMap"), s = P("SvgUploadFile"), c = P("SvgCopy"), l = P("SvgToc"), u = P("cv-markdown-show"), d = P("el-input"), f = P("el-button"), p = P("el-dialog");
14233
14274
  return A(), x("div", {
14234
14275
  ref: a.editorWrapRefID,
@@ -14238,13 +14279,13 @@ function Kh(e, t, n, r, i, a) {
14238
14279
  height: a.heightTotalPx
14239
14280
  })
14240
14281
  }, [
14241
- e.actionPreview ? b("", !0) : (A(), x("div", rh, [S("ul", ih, [
14282
+ e.actionPreview ? b("", !0) : (A(), x("div", ah, [S("ul", oh, [
14242
14283
  e.$slots.title ? (A(), x(v, { key: 0 }, [S("li", null, [N(e.$slots, "title", {}, void 0, !0)]), t[54] ||= S("li", { class: "segmentation" }, [S("div")], -1)], 64)) : b("", !0),
14243
- e.toolConfig.image ? (A(), x("li", ah, [S("span", {
14284
+ e.toolConfig.image ? (A(), x("li", sh, [S("span", {
14244
14285
  onClick: t[0] ||= (...t) => e.actionInsImage && e.actionInsImage(...t),
14245
14286
  class: "iconfont icon-img"
14246
14287
  })])) : b("", !0),
14247
- e.toolConfig.uploadImage ? (A(), x("li", oh, [S("span", {
14288
+ e.toolConfig.uploadImage ? (A(), x("li", ch, [S("span", {
14248
14289
  onClick: t[1] ||= (...t) => e.actionChooseImage && e.actionChooseImage(...t),
14249
14290
  class: "iconfont icon-upload-img"
14250
14291
  })])) : b("", !0),
@@ -14252,16 +14293,16 @@ function Kh(e, t, n, r, i, a) {
14252
14293
  key: 3,
14253
14294
  name: "图片空间",
14254
14295
  onClick: t[2] ||= (t) => e.actionCustom("image-browse")
14255
- }, [S("span", sh, [w(o)])])) : b("", !0),
14256
- e.toolConfig.custom_uploadImage ? (A(), x("li", ch, [S("span", {
14296
+ }, [S("span", lh, [w(o)])])) : b("", !0),
14297
+ e.toolConfig.custom_uploadImage ? (A(), x("li", uh, [S("span", {
14257
14298
  onClick: t[3] ||= (t) => e.actionCustom("image-upload"),
14258
14299
  class: "iconfont icon-upload-img"
14259
14300
  })])) : b("", !0),
14260
- e.toolConfig.custom_uploadFile ? (A(), x("li", lh, [S("span", {
14301
+ e.toolConfig.custom_uploadFile ? (A(), x("li", dh, [S("span", {
14261
14302
  onClick: t[4] ||= (t) => e.actionCustom("file-upload"),
14262
14303
  class: "icon-svg"
14263
14304
  }, [w(s)])])) : b("", !0),
14264
- z(S("li", uh, [S("span", {
14305
+ z(S("li", fh, [S("span", {
14265
14306
  class: "iconfont icon-daoru",
14266
14307
  onClick: t[5] ||= (...t) => e.actionImportFile && e.actionImportFile(...t)
14267
14308
  }), S("input", {
@@ -14269,16 +14310,16 @@ function Kh(e, t, n, r, i, a) {
14269
14310
  onChange: t[6] ||= (t) => e.actionImportFile(t),
14270
14311
  accept: "text/markdown"
14271
14312
  }, null, 32)], 512), [[L, e.toolConfig.importmd]]),
14272
- z(S("li", dh, [S("span", {
14313
+ z(S("li", ph, [S("span", {
14273
14314
  class: "iconfont icon-download",
14274
14315
  onClick: t[7] ||= (...t) => e.actionExportFile && e.actionExportFile(...t)
14275
14316
  })], 512), [[L, e.toolConfig.exportmd]]),
14276
14317
  t[61] ||= S("li", { class: "segmentation" }, [S("div")], -1),
14277
- e.toolConfig.code ? (A(), x("li", fh, [S("span", {
14318
+ e.toolConfig.code ? (A(), x("li", mh, [S("span", {
14278
14319
  onClick: t[8] ||= (...t) => e.insertCode && e.insertCode(...t),
14279
14320
  class: "iconfont icon-code"
14280
14321
  })])) : b("", !0),
14281
- e.toolConfig.theme ? (A(), x("li", ph, [S("span", {
14322
+ e.toolConfig.theme ? (A(), x("li", hh, [S("span", {
14282
14323
  class: "iconfont icon-theme",
14283
14324
  onClick: t[9] ||= (t) => e.actionThemeDropdown = !e.actionThemeDropdown
14284
14325
  }), S("ul", {
@@ -14287,7 +14328,7 @@ function Kh(e, t, n, r, i, a) {
14287
14328
  }, [(A(!0), x(v, null, M(i.optionTheme, (t) => (A(), x("li", {
14288
14329
  key: t,
14289
14330
  onClick: (n) => e.actionThemesSet(t)
14290
- }, F(t), 9, mh))), 128))], 34)])) : b("", !0),
14331
+ }, F(t), 9, gh))), 128))], 34)])) : b("", !0),
14291
14332
  e.toolConfig.html_to_markdown ? (A(), x("li", {
14292
14333
  key: 8,
14293
14334
  name: "html转markdown",
@@ -14309,25 +14350,25 @@ function Kh(e, t, n, r, i, a) {
14309
14350
  }, null, 512), [[L, e.actionScrollSync]]), z(S("span", {
14310
14351
  onClick: t[13] ||= (t) => e.actionScrollSync = !e.actionScrollSync,
14311
14352
  class: "iconfont icon-off"
14312
- }, null, 512), [[L, !e.actionScrollSync]])], 8, hh)) : b("", !0),
14313
- e.toolConfig.split && e.actionSplit ? (A(), x("li", gh, [S("span", {
14353
+ }, null, 512), [[L, !e.actionScrollSync]])], 8, _h)) : b("", !0),
14354
+ e.toolConfig.split && e.actionSplit ? (A(), x("li", vh, [S("span", {
14314
14355
  onClick: t[14] ||= (t) => e.actionSplit = !1,
14315
14356
  class: "iconfont icon-md"
14316
14357
  })])) : b("", !0),
14317
- e.toolConfig.split && !e.actionSplit ? (A(), x("li", _h, [S("span", {
14358
+ e.toolConfig.split && !e.actionSplit ? (A(), x("li", yh, [S("span", {
14318
14359
  onClick: t[15] ||= (t) => e.actionSplit = !0,
14319
14360
  class: "iconfont icon-group"
14320
14361
  })])) : b("", !0),
14321
- e.toolConfig.preview ? (A(), x("li", vh, [S("span", {
14362
+ e.toolConfig.preview ? (A(), x("li", bh, [S("span", {
14322
14363
  onClick: t[16] ||= (t) => e.actionPreview = !0,
14323
14364
  class: "iconfont icon-preview"
14324
14365
  })])) : b("", !0),
14325
- e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", yh, [...t[56] ||= [S("div", null, null, -1)]])) : b("", !0),
14366
+ e.toolConfig.copy || e.toolConfig.clear || e.toolConfig.save ? (A(), x("li", xh, [...t[56] ||= [S("div", null, null, -1)]])) : b("", !0),
14326
14367
  e.toolConfig.copy ? (A(), x("li", {
14327
14368
  key: 14,
14328
14369
  name: "复制",
14329
14370
  onClick: t[17] ||= (...t) => e.actionCopySet && e.actionCopySet(...t)
14330
- }, [S("span", bh, [w(c)])])) : b("", !0),
14371
+ }, [S("span", Sh, [w(c)])])) : b("", !0),
14331
14372
  e.toolConfig.clear ? (A(), x("li", {
14332
14373
  key: 15,
14333
14374
  name: "清空",
@@ -14338,15 +14379,15 @@ function Kh(e, t, n, r, i, a) {
14338
14379
  name: "保存",
14339
14380
  onClick: t[19] ||= (...t) => e.actionSaveSet && e.actionSaveSet(...t)
14340
14381
  }, [...t[58] ||= [S("span", { class: "iconfont icon-save" }, null, -1)]])) : b("", !0),
14341
- e.toolConfig.toc ? (A(), x("li", xh, [...t[59] ||= [S("div", null, null, -1)]])) : b("", !0),
14342
- e.toolConfig.toc ? (A(), x("li", Sh, [z(S("span", {
14382
+ e.toolConfig.toc ? (A(), x("li", Ch, [...t[59] ||= [S("div", null, null, -1)]])) : b("", !0),
14383
+ e.toolConfig.toc ? (A(), x("li", wh, [z(S("span", {
14343
14384
  onClick: t[20] ||= (t) => e.actionToc = !e.actionToc,
14344
14385
  class: "icon-svg active"
14345
14386
  }, [w(l)], 512), [[L, e.actionToc]]), z(S("span", {
14346
14387
  onClick: t[21] ||= (t) => e.actionToc = !e.actionToc,
14347
14388
  class: "icon-svg"
14348
14389
  }, [w(l)], 512), [[L, !e.actionToc]])])) : b("", !0),
14349
- e.toolConfig.fullscreen ? (A(), x("li", Ch, [...t[60] ||= [S("div", null, null, -1)]])) : b("", !0),
14390
+ e.toolConfig.fullscreen ? (A(), x("li", Th, [...t[60] ||= [S("div", null, null, -1)]])) : b("", !0),
14350
14391
  e.toolConfig.fullscreen ? (A(), x("li", {
14351
14392
  key: 20,
14352
14393
  name: e.actionFullscreen ? "退出全屏" : "全屏"
@@ -14356,78 +14397,78 @@ function Kh(e, t, n, r, i, a) {
14356
14397
  }, null, 512), [[L, e.actionFullscreen]]), z(S("span", {
14357
14398
  onClick: t[23] ||= (t) => e.actionFullscreenSet(!0),
14358
14399
  class: "iconfont icon-fullscreen"
14359
- }, null, 512), [[L, !e.actionFullscreen]])], 8, wh)) : b("", !0)
14360
- ]), S("ul", Th, [
14361
- e.toolConfig.strong ? (A(), x("li", Eh, [S("span", {
14400
+ }, null, 512), [[L, !e.actionFullscreen]])], 8, Eh)) : b("", !0)
14401
+ ]), S("ul", Dh, [
14402
+ e.toolConfig.strong ? (A(), x("li", Oh, [S("span", {
14362
14403
  onClick: t[24] ||= (...t) => e.actionInsStrong && e.actionInsStrong(...t),
14363
14404
  class: "iconfont icon-bold"
14364
14405
  })])) : b("", !0),
14365
- e.toolConfig.italic ? (A(), x("li", Dh, [S("span", {
14406
+ e.toolConfig.italic ? (A(), x("li", kh, [S("span", {
14366
14407
  onClick: t[25] ||= (...t) => e.actionInsItalic && e.actionInsItalic(...t),
14367
14408
  class: "iconfont icon-italic"
14368
14409
  })])) : b("", !0),
14369
- e.toolConfig.overline ? (A(), x("li", Oh, [S("span", {
14410
+ e.toolConfig.overline ? (A(), x("li", Ah, [S("span", {
14370
14411
  onClick: t[26] ||= (...t) => e.actionInsOverline && e.actionInsOverline(...t),
14371
14412
  class: "iconfont icon-overline"
14372
14413
  })])) : b("", !0),
14373
- e.toolConfig.overline ? (A(), x("li", kh, [S("span", {
14414
+ e.toolConfig.overline ? (A(), x("li", jh, [S("span", {
14374
14415
  onClick: t[27] ||= (...t) => e.actionInsUnderline && e.actionInsUnderline(...t),
14375
14416
  class: "iconfont icon-under-line"
14376
14417
  })])) : b("", !0),
14377
- e.toolConfig.h1 ? (A(), x("li", Ah, [S("span", {
14418
+ e.toolConfig.h1 ? (A(), x("li", Mh, [S("span", {
14378
14419
  style: { "font-size": "16px" },
14379
14420
  onClick: t[28] ||= (t) => e.actionInsTitle(1)
14380
14421
  }, "h1")])) : b("", !0),
14381
- e.toolConfig.h2 ? (A(), x("li", jh, [S("span", {
14422
+ e.toolConfig.h2 ? (A(), x("li", Nh, [S("span", {
14382
14423
  style: { "font-size": "16px" },
14383
14424
  onClick: t[29] ||= (t) => e.actionInsTitle(2)
14384
14425
  }, "h2")])) : b("", !0),
14385
- e.toolConfig.h3 ? (A(), x("li", Mh, [S("span", {
14426
+ e.toolConfig.h3 ? (A(), x("li", Ph, [S("span", {
14386
14427
  style: { "font-size": "16px" },
14387
14428
  onClick: t[30] ||= (t) => e.actionInsTitle(3)
14388
14429
  }, "h3")])) : b("", !0),
14389
- e.toolConfig.h4 ? (A(), x("li", Nh, [S("span", {
14430
+ e.toolConfig.h4 ? (A(), x("li", Fh, [S("span", {
14390
14431
  style: { "font-size": "16px" },
14391
14432
  onClick: t[31] ||= (t) => e.actionInsTitle(4)
14392
14433
  }, "h4")])) : b("", !0),
14393
- e.toolConfig.h5 ? (A(), x("li", Ph, [S("span", {
14434
+ e.toolConfig.h5 ? (A(), x("li", Ih, [S("span", {
14394
14435
  style: { "font-size": "16px" },
14395
14436
  onClick: t[32] ||= (t) => e.actionInsTitle(5)
14396
14437
  }, "h5")])) : b("", !0),
14397
- e.toolConfig.h6 ? (A(), x("li", Fh, [S("span", {
14438
+ e.toolConfig.h6 ? (A(), x("li", Lh, [S("span", {
14398
14439
  style: { "font-size": "16px" },
14399
14440
  onClick: t[33] ||= (t) => e.actionInsTitle(6)
14400
14441
  }, "h6")])) : b("", !0),
14401
- e.toolConfig.hr ? (A(), x("li", Ih, [S("span", {
14442
+ e.toolConfig.hr ? (A(), x("li", Rh, [S("span", {
14402
14443
  onClick: t[34] ||= (...t) => e.actionInsLine && e.actionInsLine(...t),
14403
14444
  class: "iconfont icon-horizontal"
14404
14445
  })])) : b("", !0),
14405
- e.toolConfig.quote ? (A(), x("li", Lh, [S("span", {
14446
+ e.toolConfig.quote ? (A(), x("li", zh, [S("span", {
14406
14447
  style: { "font-size": "16px" },
14407
14448
  onClick: t[35] ||= (...t) => e.actionInsQuote && e.actionInsQuote(...t),
14408
14449
  class: "iconfont icon-quote"
14409
14450
  })])) : b("", !0),
14410
- e.toolConfig.ul ? (A(), x("li", Rh, [S("span", {
14451
+ e.toolConfig.ul ? (A(), x("li", Bh, [S("span", {
14411
14452
  onClick: t[36] ||= (...t) => e.actionInsUl && e.actionInsUl(...t),
14412
14453
  class: "iconfont icon-ul"
14413
14454
  })])) : b("", !0),
14414
- e.toolConfig.ol ? (A(), x("li", zh, [S("span", {
14455
+ e.toolConfig.ol ? (A(), x("li", Vh, [S("span", {
14415
14456
  onClick: t[37] ||= (...t) => e.actionInsOl && e.actionInsOl(...t),
14416
14457
  class: "iconfont icon-ol"
14417
14458
  })])) : b("", !0),
14418
- e.toolConfig.notChecked ? (A(), x("li", Bh, [S("span", {
14459
+ e.toolConfig.notChecked ? (A(), x("li", Hh, [S("span", {
14419
14460
  onClick: t[38] ||= (...t) => e.insertNotFinished && e.insertNotFinished(...t),
14420
14461
  class: "iconfont icon-checked-false"
14421
14462
  })])) : b("", !0),
14422
- e.toolConfig.checked ? (A(), x("li", Vh, [S("span", {
14463
+ e.toolConfig.checked ? (A(), x("li", Uh, [S("span", {
14423
14464
  onClick: t[39] ||= (...t) => e.insertFinished && e.insertFinished(...t),
14424
14465
  class: "iconfont icon-checked"
14425
14466
  })])) : b("", !0),
14426
- e.toolConfig.link ? (A(), x("li", Hh, [S("span", {
14467
+ e.toolConfig.link ? (A(), x("li", Wh, [S("span", {
14427
14468
  onClick: t[40] ||= (...t) => e.actionInsLink && e.actionInsLink(...t),
14428
14469
  class: "iconfont icon-link"
14429
14470
  })])) : b("", !0),
14430
- e.toolConfig.table ? (A(), x("li", Uh, [S("span", {
14471
+ e.toolConfig.table ? (A(), x("li", Gh, [S("span", {
14431
14472
  onClick: t[41] ||= (...t) => e.actionInsTable && e.actionInsTable(...t),
14432
14473
  class: "iconfont icon-table"
14433
14474
  })])) : b("", !0)
@@ -14440,7 +14481,7 @@ function Kh(e, t, n, r, i, a) {
14440
14481
  class: "md-simple-editor",
14441
14482
  style: k({ height: i.heightMainPx }),
14442
14483
  onMouseenter: t[47] ||= (e) => a.mousescrollSide("left")
14443
- }, [S("ul", Wh, [(A(!0), x(v, null, M(a.lineNumbers, (e) => (A(), x("li", { key: e }, F(e), 1))), 128))], 512), z(S("textarea", {
14484
+ }, [S("ul", Kh, [(A(!0), x(v, null, M(a.lineNumbers, (e) => (A(), x("li", { key: e }, F(e), 1))), 128))], 512), z(S("textarea", {
14444
14485
  class: "md-simple-textarea",
14445
14486
  ref: "textarea",
14446
14487
  "onUpdate:modelValue": t[42] ||= (e) => i.localVal = e,
@@ -14450,7 +14491,7 @@ function Kh(e, t, n, r, i, a) {
14450
14491
  onKeydown: t[44] ||= Ke((...e) => a.onTab && a.onTab(...e), ["tab"]),
14451
14492
  onKeyup: t[45] ||= Ke((...e) => a.onEnterContinue && a.onEnterContinue(...e), ["enter"]),
14452
14493
  onPaste: t[46] ||= (...e) => a.handlePaste && a.handlePaste(...e)
14453
- }, null, 40, Gh), [[We, i.localVal]])], 36), [[L, !e.actionPreview]]), z(w(u, {
14494
+ }, null, 40, qh), [[We, i.localVal]])], 36), [[L, !e.actionPreview]]), z(w(u, {
14454
14495
  html: i.lastHtml,
14455
14496
  "onUpdate:html": t[48] ||= (e) => i.lastHtml = e,
14456
14497
  ref: a.previewRefID,
@@ -14515,7 +14556,7 @@ function Kh(e, t, n, r, i, a) {
14515
14556
  }, 8, ["modelValue"])
14516
14557
  ], 6);
14517
14558
  }
14518
- var qh = /*#__PURE__*/ H(nh, [["render", Kh], ["__scopeId", "data-v-9b03adf6"]]), Jh = {
14559
+ var Yh = /*#__PURE__*/ H(ih, [["render", Jh], ["__scopeId", "data-v-9b03adf6"]]), Xh = {
14519
14560
  add(e, t) {
14520
14561
  let n = `toc${t}${++this.index}`, r = {
14521
14562
  anchor: n,
@@ -14531,49 +14572,49 @@ var qh = /*#__PURE__*/ H(nh, [["render", Kh], ["__scopeId", "data-v-9b03adf6"]])
14531
14572
  index: 0
14532
14573
  };
14533
14574
  // packages/editor/markdown/utils/marked-highlight.js
14534
- function Yh(e) {
14575
+ function Zh(e) {
14535
14576
  if (typeof e == "function" && (e = { highlight: e }), !e || typeof e.highlight != "function") throw Error("Must provide highlight function");
14536
14577
  return typeof e.langPrefix != "string" && (e.langPrefix = "language-"), {
14537
14578
  async: !!e.async,
14538
14579
  walkTokens(t) {
14539
14580
  if (t.type !== "code") return;
14540
- let n = Xh(t);
14541
- if (e.async) return Promise.resolve(e.highlight(t.text, n)).then(Zh(t));
14581
+ let n = Qh(t);
14582
+ if (e.async) return Promise.resolve(e.highlight(t.text, n)).then($h(t));
14542
14583
  let r = e.highlight(t.text, n);
14543
14584
  if (r instanceof Promise) throw 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.");
14544
- Zh(t)(r);
14585
+ $h(t)(r);
14545
14586
  },
14546
14587
  renderer: { code(t, n, r) {
14547
- let i = (n || "").match(/\S*/)[0], a = i ? ` class="${e.langPrefix}${ig(i)}"` : "";
14548
- return t = t.replace(/\n$/, ""), `<pre><code${a}>${r ? t : ig(t, !0)}\n</code></pre>`;
14588
+ let i = (n || "").match(/\S*/)[0], a = i ? ` class="${e.langPrefix}${og(i)}"` : "";
14589
+ return t = t.replace(/\n$/, ""), `<pre><code${a}>${r ? t : og(t, !0)}\n</code></pre>`;
14549
14590
  } }
14550
14591
  };
14551
14592
  }
14552
- function Xh(e) {
14593
+ function Qh(e) {
14553
14594
  return (e.lang || "").match(/\S*/)[0];
14554
14595
  }
14555
- function Zh(e) {
14596
+ function $h(e) {
14556
14597
  return (t) => {
14557
14598
  typeof t == "string" && t !== e.text && (e.escaped = !0, e.text = t);
14558
14599
  };
14559
14600
  }
14560
- var Qh = /[&<>"']/, $h = new RegExp(Qh.source, "g"), eg = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, tg = new RegExp(eg.source, "g"), ng = {
14601
+ var eg = /[&<>"']/, tg = new RegExp(eg.source, "g"), ng = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, rg = new RegExp(ng.source, "g"), ig = {
14561
14602
  "&": "&amp;",
14562
14603
  "<": "&lt;",
14563
14604
  ">": "&gt;",
14564
14605
  "\"": "&quot;",
14565
14606
  "'": "&#39;"
14566
- }, rg = (e) => ng[e];
14567
- function ig(e, t) {
14607
+ }, ag = (e) => ig[e];
14608
+ function og(e, t) {
14568
14609
  if (t) {
14569
- if (Qh.test(e)) return e.replace($h, rg);
14570
- } else if (eg.test(e)) return e.replace(tg, rg);
14610
+ if (eg.test(e)) return e.replace(tg, ag);
14611
+ } else if (ng.test(e)) return e.replace(rg, ag);
14571
14612
  return e;
14572
14613
  }
14573
14614
  // packages/editor/src/markdown-show.vue
14574
- var ag = {
14615
+ var sg = {
14575
14616
  name: "cvMarkdownShow",
14576
- mixins: [op],
14617
+ mixins: [cp],
14577
14618
  emits: ["update:html", "on-copy"],
14578
14619
  props: {
14579
14620
  html: { type: [String] },
@@ -14632,7 +14673,7 @@ var ag = {
14632
14673
  this.localVal = this.modelValue || "";
14633
14674
  },
14634
14675
  async mounted() {
14635
- Jh.reset(), await Ir(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await Lr(this.CDN_URL_UI + "/highlight.js/@11.8.0/highlight.min.js").then(() => {
14676
+ Xh.reset(), await Ir(this.CDN_URL_UI + "/highlight.js/@11.8.0/styles/default.min.css"), await Lr(this.CDN_URL_UI + "/highlight.js/@11.8.0/highlight.min.js").then(() => {
14636
14677
  setTimeout(() => {
14637
14678
  hljs.highlightAll(), this.initNewCreate();
14638
14679
  }, 30);
@@ -14642,10 +14683,10 @@ var ag = {
14642
14683
  async initNewCreate() {
14643
14684
  let { Marked: e, Renderer: t } = await import("https://10ui.cn/marked/@12.0.1/marked.esm.js");
14644
14685
  t.prototype.heading = function(e, t, n, r) {
14645
- let i = Jh.add(e, t);
14686
+ let i = Xh.add(e, t);
14646
14687
  return `<h${t} id="${n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g, "-")}" toc-id="${i}">${e}</h${t}>`;
14647
14688
  };
14648
- let n = new e(Yh({
14689
+ let n = new e(Zh({
14649
14690
  langPrefix: "hljs language-",
14650
14691
  highlight(e, t) {
14651
14692
  let n = hljs.getLanguage(t) ? t : "plaintext";
@@ -14663,7 +14704,7 @@ var ag = {
14663
14704
  sanitize: !1,
14664
14705
  ...this.markedOptions
14665
14706
  });
14666
- r = r.replace(/href="/gi, "target=\"_blank\" href=\""), this.copyCode && (r = r.replace(/<pre>/g, "<div class=\"code-block\"><span class=\"copy-code\">" + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(r) && (r = r.replace(/\[\[TOC\]\]/g, "<ul class=\"toc-anchor\"></ul>")), this.localHtml = r, this.tocLists = Jh.tocItems, this.tocTrigger, Jh.reset(), this.addCopyListener(), this.addImageClickListener();
14707
+ r = r.replace(/href="/gi, "target=\"_blank\" href=\""), this.copyCode && (r = r.replace(/<pre>/g, "<div class=\"code-block\"><span class=\"copy-code\">" + this.copyBtnText + "</span><pre>").replace(/<\/pre>/g, "</pre></div>")), /\[\[TOC\]\]/.test(r) && (r = r.replace(/\[\[TOC\]\]/g, "<ul class=\"toc-anchor\"></ul>")), this.localHtml = r, this.tocLists = Xh.tocItems, this.tocTrigger, Xh.reset(), this.addCopyListener(), this.addImageClickListener();
14667
14708
  },
14668
14709
  addCopyListener() {
14669
14710
  setTimeout(() => {
@@ -14722,8 +14763,8 @@ var ag = {
14722
14763
  }), n === 9999 ? e : e - (n - 1);
14723
14764
  }
14724
14765
  }
14725
- }, og = ["id"], sg = ["innerHTML"], cg = { class: "toc-anchor" }, lg = ["anchor", "onClick"], ug = ["anchor", "title"], dg = ["src"];
14726
- function fg(e, t, n, r, i, a) {
14766
+ }, cg = ["id"], lg = ["innerHTML"], ug = { class: "toc-anchor" }, dg = ["anchor", "onClick"], fg = ["anchor", "title"], pg = ["src"];
14767
+ function mg(e, t, n, r, i, a) {
14727
14768
  let o = P("cv-icons");
14728
14769
  return A(), x("div", {
14729
14770
  class: "cv-markdown-preview",
@@ -14736,8 +14777,8 @@ function fg(e, t, n, r, i, a) {
14736
14777
  class: D(`markdown-preview markdown-theme-base ${"markdown-theme-" + n.theme}`),
14737
14778
  onScroll: t[0] ||= (...e) => a.handleScroll && a.handleScroll(...e),
14738
14779
  innerHTML: i.localHtml
14739
- }, null, 42, sg),
14740
- z(S("ul", cg, [(A(!0), x(v, null, M(i.tocLists, (e) => (A(), x("li", {
14780
+ }, null, 42, lg),
14781
+ z(S("ul", ug, [(A(!0), x(v, null, M(i.tocLists, (e) => (A(), x("li", {
14741
14782
  class: "toc-anchor-item",
14742
14783
  anchor: e.anchor,
14743
14784
  key: e.anchor,
@@ -14746,7 +14787,7 @@ function fg(e, t, n, r, i, a) {
14746
14787
  class: D(`toc-link-${a.tocLevel(e.level)}${i.tocAction == e.anchor ? " toc-link-action" : ""}`),
14747
14788
  anchor: e.anchor,
14748
14789
  title: e.text
14749
- }, F(e.text), 11, ug)], 8, lg))), 128))], 512), [[L, n.tocShow]]),
14790
+ }, F(e.text), 11, fg)], 8, dg))), 128))], 512), [[L, n.tocShow]]),
14750
14791
  S("div", { class: D(["preview-img", i.previewImgModal ? "active" : ""]) }, [w(o, {
14751
14792
  type: "actionClose",
14752
14793
  onClick: t[1] ||= (e) => i.previewImgModal = !1
@@ -14754,10 +14795,10 @@ function fg(e, t, n, r, i, a) {
14754
14795
  src: i.previewImgSrc,
14755
14796
  class: D([i.previewImgMode]),
14756
14797
  alt: ""
14757
- }, null, 10, dg)], 2)
14758
- ], 12, og);
14798
+ }, null, 10, pg)], 2)
14799
+ ], 12, cg);
14759
14800
  }
14760
- var pg = /*#__PURE__*/ H(ag, [["render", fg]]), mg = {
14801
+ var hg = /*#__PURE__*/ H(sg, [["render", mg]]), gg = {
14761
14802
  name: "cvMarkdownNostyle",
14762
14803
  props: {
14763
14804
  modelValue: {
@@ -14788,31 +14829,31 @@ var pg = /*#__PURE__*/ H(ag, [["render", fg]]), mg = {
14788
14829
  let { Marked: e, Renderer: t } = await import("https://10ui.cn/marked/@12.0.1/marked.esm.js"), n = new e().parser(this.localVal, { sanitize: !1 });
14789
14830
  n = n.replace(/href="/gi, "target=\"_blank\" href=\""), this.localHtml = n;
14790
14831
  } }
14791
- }, hg = ["innerHTML"];
14792
- function gg(e, t, n, r, i, a) {
14832
+ }, _g = ["innerHTML"];
14833
+ function vg(e, t, n, r, i, a) {
14793
14834
  return A(), x("div", {
14794
14835
  class: "markdown-preview-nostyle",
14795
14836
  innerHTML: i.localHtml
14796
- }, null, 8, hg);
14797
- }
14798
- var _g = /*#__PURE__*/ H(mg, [["render", gg]]);
14799
- th.install = function(e) {
14800
- e.component(th.name, th);
14801
- }, qh.install = function(e) {
14802
- e.component(qh.name, qh);
14803
- }, pg.install = function(e) {
14804
- e.component(pg.name, pg);
14805
- }, _g.install = function(e) {
14806
- e.component(_g.name, _g);
14807
- }, Wp.install = function(e) {
14808
- e.component(Wp.name, Wp);
14809
- }, qp.install = function(e) {
14810
- e.component(qp.name, qp);
14811
- }, rm.install = function(e) {
14812
- e.component(rm.name, rm);
14837
+ }, null, 8, _g);
14838
+ }
14839
+ var yg = /*#__PURE__*/ H(gg, [["render", vg]]);
14840
+ rh.install = function(e) {
14841
+ e.component(rh.name, rh);
14842
+ }, Yh.install = function(e) {
14843
+ e.component(Yh.name, Yh);
14844
+ }, hg.install = function(e) {
14845
+ e.component(hg.name, hg);
14846
+ }, yg.install = function(e) {
14847
+ e.component(yg.name, yg);
14848
+ }, Kp.install = function(e) {
14849
+ e.component(Kp.name, Kp);
14850
+ }, Yp.install = function(e) {
14851
+ e.component(Yp.name, Yp);
14852
+ }, am.install = function(e) {
14853
+ e.component(am.name, am);
14813
14854
  };
14814
14855
  // packages/dialog-render/src/dialog.js
14815
- function vg(e) {
14856
+ function bg(e) {
14816
14857
  return {
14817
14858
  text: "按钮",
14818
14859
  clickFn: null,
@@ -14822,7 +14863,7 @@ function vg(e) {
14822
14863
  ...e
14823
14864
  };
14824
14865
  }
14825
- var yg = class {
14866
+ var xg = class {
14826
14867
  constructor(e, t) {
14827
14868
  this.WinVue = e, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = j(!1), this.boxProps = j({}), this.boxOptions = Vr({
14828
14869
  closeIsConfirm: !1,
@@ -14864,12 +14905,12 @@ var yg = class {
14864
14905
  onClose: () => e.close(),
14865
14906
  ...e.bodyFunc
14866
14907
  }, { default: () => "" }), n = {
14867
- ok: vg({
14908
+ ok: bg({
14868
14909
  text: "确定",
14869
14910
  type: "primary",
14870
14911
  order: 0
14871
14912
  }),
14872
- cancel: vg({
14913
+ cancel: bg({
14873
14914
  text: "取消",
14874
14915
  order: 1
14875
14916
  })
@@ -14878,7 +14919,7 @@ var yg = class {
14878
14919
  if (["ok", "cancel"].includes(t)) {
14879
14920
  let n = t === "ok" ? e.defaultFunc.onOK : e.defaultFunc.onCancel;
14880
14921
  r.clickFn = r.clickFn || n;
14881
- } else n[t] = vg(r);
14922
+ } else n[t] = bg(r);
14882
14923
  });
14883
14924
  let r = Object.values(n).filter((e) => !e.isHide);
14884
14925
  w("div", {}, r.map((e) => w(i, {
@@ -14887,14 +14928,14 @@ var yg = class {
14887
14928
  }, e.text)));
14888
14929
  let a = function(t) {
14889
14930
  t || e.close();
14890
- }, o = typeof e.boxOptions.beforeClose == "function" ? e.boxOptions.beforeClose : a;
14931
+ };
14891
14932
  return w(d, {
14892
14933
  ...e.boxProps.value,
14893
14934
  modelValue: e.boxShow.value,
14894
14935
  beforeClose: (t) => {
14895
- typeof e.boxOptions.beforeClose == "function" ? o(a) : e.boxOptions.closeIsConfirm ? ae.confirm("确认关闭?", "提示").then((e) => {
14896
- o(a);
14897
- }).catch((e) => {}) : o(a);
14936
+ typeof e.boxOptions.beforeClose == "function" ? e.boxOptions.beforeClose(a) : e.boxOptions.closeIsConfirm ? ae.confirm("确认关闭?", "提示").then((e) => {
14937
+ a();
14938
+ }).catch((e) => {}) : a();
14898
14939
  },
14899
14940
  onClosed: () => e._destroyVm()
14900
14941
  }, { default: () => t });
@@ -14920,7 +14961,7 @@ var yg = class {
14920
14961
  }
14921
14962
  };
14922
14963
  // packages/dialog-render/src/drawer.js
14923
- function bg(e) {
14964
+ function Sg(e) {
14924
14965
  return {
14925
14966
  text: "按钮",
14926
14967
  clickFn: null,
@@ -14930,7 +14971,7 @@ function bg(e) {
14930
14971
  ...e
14931
14972
  };
14932
14973
  }
14933
- var xg = class {
14974
+ var Cg = class {
14934
14975
  constructor(e, t) {
14935
14976
  this.WinVue = e, this.vmCompObj = null, this.vmComponent = null, this.vmApp = null, this.dialogObj = null, this.boxShow = j(!1), this.boxProps = j({}), this.boxOptions = Vr({
14936
14977
  closeIsConfirm: !0,
@@ -14974,12 +15015,12 @@ var xg = class {
14974
15015
  onClose: this.clearVm,
14975
15016
  ...e.bodyFunc
14976
15017
  }, { default: () => "" }), n = {
14977
- ok: bg({
15018
+ ok: Sg({
14978
15019
  text: "确定",
14979
15020
  type: "primary",
14980
15021
  order: 0
14981
15022
  }),
14982
- cancel: bg({
15023
+ cancel: Sg({
14983
15024
  text: "取消",
14984
15025
  order: 1
14985
15026
  })
@@ -14988,7 +15029,7 @@ var xg = class {
14988
15029
  if (["ok", "cancel"].includes(t)) {
14989
15030
  let n = t === "ok" ? e.defaultFunc.onOK : e.defaultFunc.onCancel;
14990
15031
  r.clickFn = r.clickFn || n;
14991
- } else n[t] = bg(r);
15032
+ } else n[t] = Sg(r);
14992
15033
  });
14993
15034
  let r = Object.values(n).filter((e) => !e.isHide);
14994
15035
  w("div", {}, r.map((e) => w(i, {
@@ -14997,14 +15038,14 @@ var xg = class {
14997
15038
  }, e.text)));
14998
15039
  let a = function(t) {
14999
15040
  t || e.close();
15000
- }, o = typeof e.boxOptions.beforeClose == "function" ? e.boxOptions.beforeClose : a;
15041
+ };
15001
15042
  return w(f, {
15002
15043
  ...e.boxProps.value,
15003
15044
  modelValue: e.boxShow.value,
15004
15045
  beforeClose: (t) => {
15005
- typeof e.boxOptions.beforeClose == "function" ? o(a) : e.boxOptions.closeIsConfirm ? ae.confirm("确认关闭?", "提示").then((e) => {
15006
- o(a);
15007
- }).catch((e) => {}) : o(a);
15046
+ typeof e.boxOptions.beforeClose == "function" ? e.boxOptions.beforeClose(a) : e.boxOptions.closeIsConfirm ? ae.confirm("确认关闭?", "提示").then((e) => {
15047
+ a();
15048
+ }).catch((e) => {}) : a();
15008
15049
  },
15009
15050
  onClosed: () => e._destroyVm()
15010
15051
  }, { default: () => t });
@@ -15030,8 +15071,8 @@ var xg = class {
15030
15071
  }
15031
15072
  };
15032
15073
  // packages/dialog-render/index.js
15033
- function Sg(e, t = null, n = {}, r = {}, i = {}) {
15034
- let a = new yg(e, {
15074
+ function wg(e, t = null, n = {}, r = {}, i = {}) {
15075
+ let a = new xg(e, {
15035
15076
  component: t,
15036
15077
  diyOpts: n,
15037
15078
  props: r,
@@ -15045,8 +15086,8 @@ function Sg(e, t = null, n = {}, r = {}, i = {}) {
15045
15086
  });
15046
15087
  return a;
15047
15088
  }
15048
- function Cg(e, t = "", n = {}, r = {}, i = null) {
15049
- let a = new xg(e, {
15089
+ function Tg(e, t = "", n = {}, r = {}, i = null) {
15090
+ let a = new Cg(e, {
15050
15091
  component: t,
15051
15092
  diyOpts: { ...n },
15052
15093
  props: r,
@@ -15061,7 +15102,7 @@ function Cg(e, t = "", n = {}, r = {}, i = null) {
15061
15102
  return a;
15062
15103
  }
15063
15104
  // src/index.js
15064
- var wg = [
15105
+ var Eg = [
15065
15106
  bt,
15066
15107
  Ct,
15067
15108
  Et,
@@ -15106,68 +15147,68 @@ var wg = [
15106
15147
  Zi,
15107
15148
  ea,
15108
15149
  ra,
15109
- Ma,
15110
- Ja,
15111
- io,
15112
- yo,
15113
- Ro,
15114
- hs,
15115
- As,
15150
+ Pa,
15151
+ Xa,
15152
+ oo,
15153
+ xo,
15154
+ Bo,
15155
+ _s,
15156
+ Ms,
15116
15157
  oa,
15117
- os,
15118
- ls,
15119
- Bs,
15120
- Is,
15121
- Ws,
15122
- kc,
15123
- Mc,
15124
- Ic,
15125
- zc,
15126
- Hc,
15127
- Gc,
15128
- qs,
15129
- Xs,
15130
- ec,
15131
- ac,
15132
- cc,
15133
- dc,
15134
- mc,
15135
- _c,
15136
- Zo,
15137
- ts,
15158
+ cs,
15159
+ ds,
15160
+ Hs,
15161
+ Rs,
15162
+ Ks,
15163
+ jc,
15164
+ Pc,
15165
+ Rc,
15166
+ Vc,
15167
+ Wc,
15168
+ qc,
15169
+ Ys,
15170
+ Qs,
15171
+ nc,
15172
+ sc,
15173
+ uc,
15174
+ pc,
15175
+ gc,
15176
+ yc,
15177
+ $o,
15178
+ rs,
15138
15179
  oi,
15139
15180
  _i,
15140
- ed,
15141
- od,
15142
- ld,
15143
- fd,
15144
- _d,
15145
- wd,
15146
- kd,
15147
- Yd,
15181
+ nd,
15182
+ cd,
15183
+ dd,
15184
+ md,
15185
+ yd,
15186
+ Ed,
15187
+ jd,
15148
15188
  Zd,
15149
- Wp,
15150
- qp,
15151
- rm,
15152
- th,
15153
- qh,
15154
- pg,
15155
- _g,
15156
- Uo,
15157
- qo
15158
- ], Tg = function(e, t = {}) {
15159
- wg.forEach((t) => {
15189
+ $d,
15190
+ Kp,
15191
+ Yp,
15192
+ am,
15193
+ rh,
15194
+ Yh,
15195
+ hg,
15196
+ yg,
15197
+ Go,
15198
+ Yo
15199
+ ], Dg = function(e, t = {}) {
15200
+ Eg.forEach((t) => {
15160
15201
  e.component(t.name, t);
15161
15202
  }), e.config.globalProperties.$cvUiParams = { ...t }, e.config.globalProperties.$cvDialogRender = function() {
15162
- return Sg(e, ...arguments);
15203
+ return wg(e, ...arguments);
15163
15204
  }, e.config.globalProperties.$cvCopy = Rr, e.config.globalProperties.$cvDrawerRender = function() {
15164
- return Cg(e, ...arguments);
15205
+ return Tg(e, ...arguments);
15165
15206
  }, e.config.globalProperties.CDN_URL_UI = "https://10ui.cn/";
15166
15207
  };
15167
15208
  /* istanbul ignore if */
15168
- typeof window < "u" && window._vueApp_ && Tg(window._vueApp_);
15169
- var Eg = {
15209
+ typeof window < "u" && window._vueApp_ && Dg(window._vueApp_);
15210
+ var Og = {
15170
15211
  version: "0.3.x",
15171
- install: Tg
15212
+ install: Dg
15172
15213
  };
15173
- export { wg as components, Sg as cvDialogRender, Cg as cvDrawerRender, Eg as default, Tg as install };
15214
+ export { Eg as components, wg as cvDialogRender, Tg as cvDrawerRender, Og as default, Dg as install };