foucui 2.3.6 → 2.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/foucui.js CHANGED
@@ -13751,7 +13751,7 @@ var pm = { class: "badge-editor-header page-header" }, mm = { class: "badge-edit
13751
13751
  return A(async () => {
13752
13752
  if (i.embedded || i.mode === "banner" || !Number.isFinite(f) || f <= 0 || !Number.isFinite(h) || h <= 0) {
13753
13753
  if (!J.value) {
13754
- let { createBannerDoc: e, createBadgeDoc: t } = await Promise.resolve().then(() => DA);
13754
+ let { createBannerDoc: e, createBadgeDoc: t } = await Promise.resolve().then(() => EA);
13755
13755
  J.value = i.mode === "banner" ? e() : t({ mode: i.mode || (g.value ? "desk" : "badge") }), M.value = M.value || (i.mode === "banner" ? "Banner 草稿" : "模板草稿"), ue.value = J.value.canvas.widthMm, de.value = J.value.canvas.heightMm, ae.value = !1;
13756
13756
  }
13757
13757
  } else await eo();
@@ -24504,7 +24504,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24504
24504
  ]);
24505
24505
  };
24506
24506
  }
24507
- }), RO = /* @__PURE__ */ X({ default: () => zO }), zO = /*#__PURE__*/ Z(LO, [["__scopeId", "data-v-adf8d40f"]]), BO = ["onKeydown"], VO = { class: "fou-tree-select__suffix" }, HO = { class: "fou-tree-select__dropdown" }, UO = /*@__PURE__*/ h({
24507
+ }), RO = /* @__PURE__ */ X({ default: () => zO }), zO = /*#__PURE__*/ Z(LO, [["__scopeId", "data-v-adf8d40f"]]), BO = ["onKeydown"], VO = { class: "fou-tree-select__suffix" }, HO = /*@__PURE__*/ h({
24508
24508
  name: "FouTreeSelect",
24509
24509
  __name: "index",
24510
24510
  props: {
@@ -24519,6 +24519,10 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24519
24519
  disabled: {
24520
24520
  type: Boolean,
24521
24521
  default: !1
24522
+ },
24523
+ teleported: {
24524
+ type: Boolean,
24525
+ default: !0
24522
24526
  }
24523
24527
  },
24524
24528
  emits: [
@@ -24527,75 +24531,114 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24527
24531
  "clear"
24528
24532
  ],
24529
24533
  setup(e, { emit: t }) {
24530
- let n = e, r = t, o = F(null), s = F(!1), d = a(() => n.props), f = a(() => n.modelValue !== null && n.modelValue !== void 0 && n.modelValue !== ""), p = (e, t) => {
24531
- for (let r of e) {
24532
- if (cd(r, n.props) === t) return r;
24533
- let e = r[n.props?.children ?? "children"];
24534
+ let r = e, o = t, d = F(null), f = F(null), p = F(!1), h = F(3e3), g = F({}), _ = a(() => r.props), v = a(() => r.modelValue !== null && r.modelValue !== void 0 && r.modelValue !== ""), y = (e, t) => {
24535
+ for (let n of e) {
24536
+ if (cd(n, r.props) === t) return n;
24537
+ let e = n[r.props?.children ?? "children"];
24534
24538
  if (Array.isArray(e)) {
24535
- let n = p(e, t);
24539
+ let n = y(e, t);
24536
24540
  if (n) return n;
24537
24541
  }
24538
24542
  }
24539
24543
  return null;
24540
- }, h = a(() => {
24541
- if (!f.value) return "";
24542
- let e = p(n.data, n.modelValue);
24543
- return e ? ld(e, n.props) : String(n.modelValue);
24544
- }), g = () => {
24545
- n.disabled || (s.value = !0);
24546
- }, _ = () => {
24547
- s.value = !1;
24548
- }, v = () => {
24549
- n.disabled || (s.value ? _() : g());
24550
- }, y = (e) => {
24551
- let t = cd(e, n.props);
24552
- r("update:modelValue", t), r("change", t), _();
24553
- }, b = () => {
24554
- r("update:modelValue", null), r("change", null), r("clear");
24555
- }, x = (e) => {
24556
- o.value?.contains(e.target) || _();
24544
+ }, b = a(() => {
24545
+ if (!v.value) return "";
24546
+ let e = y(r.data, r.modelValue);
24547
+ return e ? ld(e, r.props) : String(r.modelValue);
24548
+ }), x = () => {
24549
+ let e = d.value, t = f.value;
24550
+ if (!e) return;
24551
+ if (!r.teleported) {
24552
+ g.value = {
24553
+ position: "absolute",
24554
+ top: "calc(100% + 4px)",
24555
+ left: "0",
24556
+ width: "100%",
24557
+ zIndex: h.value
24558
+ };
24559
+ return;
24560
+ }
24561
+ let n = e.getBoundingClientRect(), i = t?.offsetHeight || 280, a = window.innerWidth, o = window.innerHeight, s = n.bottom + 4, c = n.left, l = Math.max(n.width, 120);
24562
+ s + i > o - 4 && (s = Math.max(4, n.top - i - 4)), c + l > a - 4 && (c = Math.max(4, a - l - 4)), g.value = {
24563
+ position: "fixed",
24564
+ top: `${Math.round(s)}px`,
24565
+ left: `${Math.round(c)}px`,
24566
+ width: `${Math.round(l)}px`,
24567
+ zIndex: h.value
24568
+ };
24569
+ }, S = async () => {
24570
+ r.disabled || (h.value = st(3e3), p.value = !0, await C(), x(), requestAnimationFrame(() => x()));
24571
+ }, T = () => {
24572
+ p.value = !1;
24573
+ }, D = () => {
24574
+ r.disabled || (p.value ? T() : S());
24575
+ }, O = (e) => {
24576
+ let t = cd(e, r.props);
24577
+ o("update:modelValue", t), o("change", t), T();
24578
+ }, A = () => {
24579
+ o("update:modelValue", null), o("change", null), o("clear");
24580
+ }, j = (e) => {
24581
+ if (!p.value) return;
24582
+ let t = e.target;
24583
+ d.value?.contains(t) || f.value?.contains(t) || T();
24584
+ }, M = () => {
24585
+ p.value && x();
24557
24586
  };
24558
- return A(() => document.addEventListener("mousedown", x)), j(() => document.removeEventListener("mousedown", x)), (t, n) => (N(), l("div", {
24587
+ return W(p, (e) => {
24588
+ e ? (document.addEventListener("mousedown", j, !0), window.addEventListener("scroll", M, !0), window.addEventListener("resize", M)) : (document.removeEventListener("mousedown", j, !0), window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M));
24589
+ }), k(() => {
24590
+ document.removeEventListener("mousedown", j, !0), window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
24591
+ }), (t, r) => (N(), l("div", {
24559
24592
  ref_key: "rootRef",
24560
- ref: o,
24593
+ ref: d,
24561
24594
  class: w(["fou-tree-select", {
24562
24595
  "is-disabled": e.disabled,
24563
- "is-focused": U(s)
24596
+ "is-focused": U(p)
24564
24597
  }])
24565
24598
  }, [u("div", {
24566
24599
  class: "fou-tree-select__wrapper",
24567
24600
  tabindex: "0",
24568
- onClick: v,
24601
+ onClick: D,
24569
24602
  onKeydown: [
24570
- K(q(v, ["prevent"]), ["enter"]),
24571
- K(q(v, ["prevent"]), ["space"]),
24572
- K(_, ["esc"])
24603
+ K(q(D, ["prevent"]), ["enter"]),
24604
+ K(q(D, ["prevent"]), ["space"]),
24605
+ K(T, ["esc"])
24573
24606
  ]
24574
- }, [u("span", { class: w(["fou-tree-select__selected", { "is-placeholder": !U(h) }]) }, V(U(h) || e.placeholder), 3), u("span", VO, [e.clearable && U(f) && !e.disabled ? (N(), l("button", {
24607
+ }, [u("span", { class: w(["fou-tree-select__selected", { "is-placeholder": !U(b) }]) }, V(U(b) || e.placeholder), 3), u("span", VO, [e.clearable && U(v) && !e.disabled ? (N(), l("button", {
24575
24608
  key: 0,
24576
24609
  type: "button",
24577
24610
  class: "fou-tree-select__clear",
24578
24611
  tabindex: "-1",
24579
- onMousedown: n[0] ||= q(() => {}, ["prevent"]),
24580
- onClick: q(b, ["stop"])
24581
- }, " × ", 32)) : c("", !0), u("span", { class: w(["fou-tree-select__caret", { "is-open": U(s) }]) }, "▾", 2)])], 40, BO), m(i, { name: "fou-tree-select-fade" }, {
24582
- default: G(() => [ce(u("div", HO, [m(Md, {
24612
+ onMousedown: r[0] ||= q(() => {}, ["prevent"]),
24613
+ onClick: q(A, ["stop"])
24614
+ }, " × ", 32)) : c("", !0), u("span", { class: w(["fou-tree-select__caret", { "is-open": U(p) }]) }, "▾", 2)])], 40, BO), (N(), s(n, {
24615
+ to: "body",
24616
+ disabled: !e.teleported
24617
+ }, [m(i, { name: "fou-tree-select-fade" }, {
24618
+ default: G(() => [U(p) ? (N(), l("div", {
24619
+ key: 0,
24620
+ ref_key: "dropdownRef",
24621
+ ref: f,
24622
+ class: "fou-tree-select__dropdown",
24623
+ style: E(U(g)),
24624
+ onMousedown: r[1] ||= q(() => {}, ["stop"])
24625
+ }, [m(Md, {
24583
24626
  data: e.data,
24584
- props: U(d),
24627
+ props: U(_),
24585
24628
  "highlight-current": "",
24586
24629
  "default-expand-all": "",
24587
- onNodeClick: y
24588
- }, null, 8, ["data", "props"])], 512), [[se, U(s)]])]),
24630
+ onNodeClick: O
24631
+ }, null, 8, ["data", "props"])], 36)) : c("", !0)]),
24589
24632
  _: 1
24590
- })], 2));
24633
+ })], 8, ["disabled"]))], 2));
24591
24634
  }
24592
- }), WO = /* @__PURE__ */ X({ default: () => GO }), GO = /*#__PURE__*/ Z(UO, [["__scopeId", "data-v-53f707f4"]]), KO = {
24635
+ }), UO = /* @__PURE__ */ X({ default: () => WO }), WO = /*#__PURE__*/ Z(HO, [["__scopeId", "data-v-6eb6dc5e"]]), GO = {
24593
24636
  class: "fou-tree-v2",
24594
24637
  role: "tree"
24595
- }, qO = ["onClick"], JO = ["onClick"], YO = { key: 0 }, XO = { class: "fou-tree-v2__label" }, ZO = {
24638
+ }, KO = ["onClick"], qO = ["onClick"], JO = { key: 0 }, YO = { class: "fou-tree-v2__label" }, XO = {
24596
24639
  key: 1,
24597
24640
  class: "fou-tree-v2__empty"
24598
- }, QO = /*@__PURE__*/ h({
24641
+ }, ZO = /*@__PURE__*/ h({
24599
24642
  name: "FouTreeV2",
24600
24643
  __name: "index",
24601
24644
  props: {
@@ -24672,7 +24715,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24672
24715
  }), i;
24673
24716
  };
24674
24717
  r(i.data), f.value = n;
24675
- } }), (n, r) => (N(), l("div", KO, [U(h).length ? (N(), l("div", {
24718
+ } }), (n, r) => (N(), l("div", GO, [U(h).length ? (N(), l("div", {
24676
24719
  key: 0,
24677
24720
  ref_key: "listRef",
24678
24721
  ref: s,
@@ -24698,9 +24741,9 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24698
24741
  "is-open": t.expanded
24699
24742
  }]),
24700
24743
  onClick: q((e) => y(t), ["stop"])
24701
- }, [t.isLeaf ? c("", !0) : (N(), l("span", YO, "›"))], 10, JO), u("span", XO, V(t.label), 1)], 14, qO))), 128))], 4)], 36)) : (N(), l("div", ZO, "无数据"))]));
24744
+ }, [t.isLeaf ? c("", !0) : (N(), l("span", JO, "›"))], 10, qO), u("span", YO, V(t.label), 1)], 14, KO))), 128))], 4)], 36)) : (N(), l("div", XO, "无数据"))]));
24702
24745
  }
24703
- }), $O = /* @__PURE__ */ X({ default: () => ek }), ek = /*#__PURE__*/ Z(QO, [["__scopeId", "data-v-409607df"]]), tk = ["title"], nk = { class: "fou-trend__value" }, rk = /*@__PURE__*/ h({
24746
+ }), QO = /* @__PURE__ */ X({ default: () => $O }), $O = /*#__PURE__*/ Z(ZO, [["__scopeId", "data-v-409607df"]]), ek = ["title"], tk = { class: "fou-trend__value" }, nk = /*@__PURE__*/ h({
24704
24747
  name: "FouTrend",
24705
24748
  __name: "index",
24706
24749
  props: {
@@ -24728,44 +24771,44 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24728
24771
  key: 0,
24729
24772
  icon: i.value,
24730
24773
  class: "fou-trend__icon"
24731
- }, null, 8, ["icon"])) : c("", !0), u("span", nk, [L(t.$slots, "default", {}, () => [p(V(o.value), 1)], !0)])], 10, tk);
24774
+ }, null, 8, ["icon"])) : c("", !0), u("span", tk, [L(t.$slots, "default", {}, () => [p(V(o.value), 1)], !0)])], 10, ek);
24732
24775
  };
24733
24776
  }
24734
- }), ik = /* @__PURE__ */ X({ default: () => ak }), ak = /*#__PURE__*/ Z(rk, [["__scopeId", "data-v-899e84d1"]]), ok = [
24777
+ }), rk = /* @__PURE__ */ X({ default: () => ik }), ik = /*#__PURE__*/ Z(nk, [["__scopeId", "data-v-899e84d1"]]), ak = [
24735
24778
  "accept",
24736
24779
  "multiple",
24737
24780
  "disabled"
24738
- ], sk = {
24781
+ ], ok = {
24739
24782
  key: 0,
24740
24783
  class: "fou-upload__card-list"
24741
- }, ck = ["src"], lk = {
24784
+ }, sk = ["src"], ck = {
24742
24785
  key: 1,
24743
24786
  class: "fou-upload__card-name"
24744
- }, uk = {
24787
+ }, lk = {
24745
24788
  key: 2,
24746
24789
  class: "fou-upload__card-progress"
24747
- }, dk = ["disabled", "onClick"], fk = {
24790
+ }, uk = ["disabled", "onClick"], dk = {
24748
24791
  key: 0,
24749
24792
  class: "fou-upload__tip"
24750
- }, pk = {
24793
+ }, fk = {
24751
24794
  key: 1,
24752
24795
  class: "fou-upload__trigger"
24753
- }, mk = {
24796
+ }, pk = {
24754
24797
  key: 0,
24755
24798
  class: "fou-upload__tip"
24756
- }, hk = {
24799
+ }, mk = {
24757
24800
  key: 2,
24758
24801
  class: "fou-upload__list"
24759
- }, gk = { class: "fou-upload__item-main" }, _k = ["src"], vk = ["title"], yk = { class: "fou-upload__size" }, bk = ["disabled", "onClick"], xk = {
24802
+ }, hk = { class: "fou-upload__item-main" }, gk = ["src"], _k = ["title"], vk = { class: "fou-upload__size" }, yk = ["disabled", "onClick"], bk = {
24760
24803
  key: 0,
24761
24804
  class: "fou-upload__progress"
24762
- }, Sk = {
24805
+ }, xk = {
24763
24806
  key: 1,
24764
24807
  class: "fou-upload__fail"
24765
- }, Ck = {
24808
+ }, Sk = {
24766
24809
  key: 2,
24767
24810
  class: "fou-upload__response"
24768
- }, wk = /*@__PURE__*/ h({
24811
+ }, Ck = /*@__PURE__*/ h({
24769
24812
  name: "FouUpload",
24770
24813
  __name: "index",
24771
24814
  props: {
@@ -24969,7 +25012,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24969
25012
  multiple: e.multiple,
24970
25013
  disabled: e.disabled,
24971
25014
  onChange: R
24972
- }, null, 40, ok), e.listType === "picture-card" ? (N(), l("div", sk, [(N(!0), l(t, null, I(U(v), (t) => (N(), l("div", {
25015
+ }, null, 40, ak), e.listType === "picture-card" ? (N(), l("div", ok, [(N(!0), l(t, null, I(U(v), (t) => (N(), l("div", {
24973
25016
  key: t.uid,
24974
25017
  class: "fou-upload__card",
24975
25018
  style: E(U(S))
@@ -24979,14 +25022,14 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
24979
25022
  src: D(t),
24980
25023
  class: "fou-upload__card-img",
24981
25024
  alt: ""
24982
- }, null, 8, ck)) : (N(), l("div", lk, V(t.name), 1)),
24983
- t.status === "uploading" ? (N(), l("div", uk, V(t.percentage || 0) + "% ", 1)) : c("", !0),
25025
+ }, null, 8, sk)) : (N(), l("div", ck, V(t.name), 1)),
25026
+ t.status === "uploading" ? (N(), l("div", lk, V(t.percentage || 0) + "% ", 1)) : c("", !0),
24984
25027
  u("button", {
24985
25028
  type: "button",
24986
25029
  class: "fou-upload__card-remove",
24987
25030
  disabled: e.disabled,
24988
25031
  onClick: (e) => B(t)
24989
- }, " × ", 8, dk)
25032
+ }, " × ", 8, uk)
24990
25033
  ], 4))), 128)), !e.disabled && (!e.limit || U(v).length < e.limit) ? (N(), l("button", {
24991
25034
  key: 0,
24992
25035
  type: "button",
@@ -25006,8 +25049,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25006
25049
  class: "fou-upload__drag-icon"
25007
25050
  }),
25008
25051
  r[1] ||= u("p", null, [p("将文件拖到此处,或 "), u("em", null, "点击上传")], -1),
25009
- e.tip ? (N(), l("p", fk, V(e.tip), 1)) : c("", !0)
25010
- ], 32)) : (N(), l("div", pk, [m(a, {
25052
+ e.tip ? (N(), l("p", dk, V(e.tip), 1)) : c("", !0)
25053
+ ], 32)) : (N(), l("div", fk, [m(a, {
25011
25054
  type: "primary",
25012
25055
  disabled: e.disabled,
25013
25056
  icon: "upload-2-line",
@@ -25015,54 +25058,54 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25015
25058
  }, {
25016
25059
  default: G(() => [p(V(e.buttonText), 1)]),
25017
25060
  _: 1
25018
- }, 8, ["disabled"]), e.tip ? (N(), l("p", mk, V(e.tip), 1)) : c("", !0)])), U(v).length ? (N(), l("ul", hk, [(N(!0), l(t, null, I(U(v), (t) => (N(), l("li", {
25061
+ }, 8, ["disabled"]), e.tip ? (N(), l("p", pk, V(e.tip), 1)) : c("", !0)])), U(v).length ? (N(), l("ul", mk, [(N(!0), l(t, null, I(U(v), (t) => (N(), l("li", {
25019
25062
  key: t.uid,
25020
25063
  class: "fou-upload__item"
25021
25064
  }, [
25022
- u("div", gk, [
25065
+ u("div", hk, [
25023
25066
  e.showPreview && D(t) ? (N(), l("img", {
25024
25067
  key: 0,
25025
25068
  src: D(t),
25026
25069
  class: "fou-upload__thumb",
25027
25070
  style: E(U(x)),
25028
25071
  alt: ""
25029
- }, null, 12, _k)) : (N(), s(i, {
25072
+ }, null, 12, gk)) : (N(), s(i, {
25030
25073
  key: 1,
25031
25074
  icon: T(t.name) ? "image-line" : "file-line"
25032
25075
  }, null, 8, ["icon"])),
25033
25076
  u("span", {
25034
25077
  class: "fou-upload__name",
25035
25078
  title: t.name
25036
- }, V(t.name), 9, vk),
25037
- u("span", yk, V(C(t.size)), 1),
25079
+ }, V(t.name), 9, _k),
25080
+ u("span", vk, V(C(t.size)), 1),
25038
25081
  u("button", {
25039
25082
  type: "button",
25040
25083
  class: "fou-upload__remove",
25041
25084
  disabled: e.disabled,
25042
25085
  onClick: (e) => B(t)
25043
- }, [m(i, { icon: "close-line" })], 8, bk)
25086
+ }, [m(i, { icon: "close-line" })], 8, yk)
25044
25087
  ]),
25045
- t.status === "uploading" ? (N(), l("div", xk, [u("div", {
25088
+ t.status === "uploading" ? (N(), l("div", bk, [u("div", {
25046
25089
  class: "fou-upload__progress-bar",
25047
25090
  style: E({ width: `${t.percentage || 0}%` })
25048
- }, null, 4)])) : t.status === "fail" ? (N(), l("div", Sk, "上传失败")) : c("", !0),
25049
- e.showResponse && t.response != null ? (N(), l("pre", Ck, V(O(t.response)), 1)) : c("", !0)
25091
+ }, null, 4)])) : t.status === "fail" ? (N(), l("div", xk, "上传失败")) : c("", !0),
25092
+ e.showResponse && t.response != null ? (N(), l("pre", Sk, V(O(t.response)), 1)) : c("", !0)
25050
25093
  ]))), 128))])) : c("", !0)], 64))], 2);
25051
25094
  };
25052
25095
  }
25053
- }), Tk = /* @__PURE__ */ X({ default: () => Ek }), Ek = /*#__PURE__*/ Z(wk, [["__scopeId", "data-v-7d68c9d2"]]), Dk = ["accept", "disabled"], Ok = {
25096
+ }), wk = /* @__PURE__ */ X({ default: () => Tk }), Tk = /*#__PURE__*/ Z(Ck, [["__scopeId", "data-v-7d68c9d2"]]), Ek = ["accept", "disabled"], Dk = {
25054
25097
  key: 0,
25055
25098
  class: "fou-upload-crop__avatar-row"
25056
- }, kk = ["src"], Ak = {
25099
+ }, Ok = ["src"], kk = {
25057
25100
  key: 2,
25058
25101
  class: "fou-upload-crop__mask fou-upload-crop__mask--avatar"
25059
- }, jk = ["disabled"], Mk = ["disabled"], Nk = { class: "fou-upload-crop__trigger-text" }, Pk = {
25102
+ }, Ak = ["disabled"], jk = ["disabled"], Mk = { class: "fou-upload-crop__trigger-text" }, Nk = {
25060
25103
  key: 0,
25061
25104
  class: "fou-upload-crop__tip"
25062
- }, Fk = { class: "fou-upload-crop__trigger-text" }, Ik = {
25105
+ }, Pk = { class: "fou-upload-crop__trigger-text" }, Fk = {
25063
25106
  key: 0,
25064
25107
  class: "fou-upload-crop__tip"
25065
- }, Lk = ["src"], Rk = { class: "fou-upload-crop__mask fou-upload-crop__mask--always" }, zk = ["disabled"], Bk = ["disabled"], Vk = ["disabled"], Hk = ["aria-label"], Uk = { class: "fou-upload-crop__dialog-box" }, Wk = { class: "fou-upload-crop__dialog-head" }, Gk = ["src"], Kk = ["onPointerdown"], qk = { class: "fou-upload-crop__toolbar" }, Jk = { class: "fou-upload-crop__field" }, Yk = { class: "fou-upload-crop__field" }, Xk = { class: "fou-upload-crop__quality" }, Zk = ["src"], Qk = /*@__PURE__*/ h({
25108
+ }, Ik = ["src"], Lk = { class: "fou-upload-crop__mask fou-upload-crop__mask--always" }, Rk = ["disabled"], zk = ["disabled"], Bk = ["disabled"], Vk = ["aria-label"], Hk = { class: "fou-upload-crop__dialog-box" }, Uk = { class: "fou-upload-crop__dialog-head" }, Wk = ["src"], Gk = ["onPointerdown"], Kk = { class: "fou-upload-crop__toolbar" }, qk = { class: "fou-upload-crop__field" }, Jk = { class: "fou-upload-crop__field" }, Yk = { class: "fou-upload-crop__quality" }, Xk = ["src"], Zk = /*@__PURE__*/ h({
25066
25109
  name: "FouUploadCrop",
25067
25110
  __name: "index",
25068
25111
  props: {
@@ -25510,8 +25553,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25510
25553
  accept: e.accept,
25511
25554
  disabled: e.disabled,
25512
25555
  onChange: Ee
25513
- }, null, 40, Dk),
25514
- U(le) ? (N(), l("div", Ok, [u("div", {
25556
+ }, null, 40, Ek),
25557
+ U(le) ? (N(), l("div", Dk, [u("div", {
25515
25558
  class: w(["fou-upload-crop__avatar-preview", { "is-empty": !U(T) }]),
25516
25559
  style: E(U(me)),
25517
25560
  onMouseenter: i[0] ||= (e) => g.value = !0,
@@ -25520,21 +25563,21 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25520
25563
  key: 0,
25521
25564
  src: U(S),
25522
25565
  alt: ""
25523
- }, null, 8, kk)) : (N(), s(a, {
25566
+ }, null, 8, Ok)) : (N(), s(a, {
25524
25567
  key: 1,
25525
25568
  icon: "user-line",
25526
25569
  class: "fou-upload-crop__avatar-placeholder"
25527
- })), U(T) && U(g) ? (N(), l("div", Ak, [u("button", {
25570
+ })), U(T) && U(g) ? (N(), l("div", kk, [u("button", {
25528
25571
  type: "button",
25529
25572
  disabled: e.disabled,
25530
25573
  title: "重新裁切",
25531
25574
  onClick: Z
25532
- }, [m(a, { icon: "crop-line" })], 8, jk), u("button", {
25575
+ }, [m(a, { icon: "crop-line" })], 8, Ak), u("button", {
25533
25576
  type: "button",
25534
25577
  disabled: e.disabled,
25535
25578
  title: "删除",
25536
25579
  onClick: Qe
25537
- }, [m(a, { icon: "delete-bin-line" })], 8, Mk)])) : c("", !0)], 38), u("div", {
25580
+ }, [m(a, { icon: "delete-bin-line" })], 8, jk)])) : c("", !0)], 38), u("div", {
25538
25581
  class: w(["fou-upload-crop__trigger fou-upload-crop__trigger--dashed", { "is-dragover": U(_) }]),
25539
25582
  style: E(U(he)),
25540
25583
  role: "button",
@@ -25549,8 +25592,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25549
25592
  icon: "image-add-line",
25550
25593
  class: "fou-upload-crop__trigger-icon"
25551
25594
  }),
25552
- u("p", Nk, V(U(ue)), 1),
25553
- U(de) ? (N(), l("p", Pk, V(U(de)), 1)) : c("", !0)
25595
+ u("p", Mk, V(U(ue)), 1),
25596
+ U(de) ? (N(), l("p", Nk, V(U(de)), 1)) : c("", !0)
25554
25597
  ], 38)])) : (N(), l(t, { key: 1 }, [!U(T) && !U(v) ? (N(), l("div", {
25555
25598
  key: 0,
25556
25599
  class: w(["fou-upload-crop__trigger", { "is-dragover": U(_) }]),
@@ -25567,8 +25610,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25567
25610
  icon: "image-add-line",
25568
25611
  class: "fou-upload-crop__trigger-icon"
25569
25612
  }),
25570
- u("p", Fk, V(U(ue)), 1),
25571
- U(de) ? (N(), l("p", Ik, V(U(de)), 1)) : c("", !0)
25613
+ u("p", Pk, V(U(ue)), 1),
25614
+ U(de) ? (N(), l("p", Fk, V(U(de)), 1)) : c("", !0)
25572
25615
  ], 38)) : !U(v) && U(S) ? (N(), l("div", {
25573
25616
  key: 1,
25574
25617
  class: "fou-upload-crop__result",
@@ -25578,25 +25621,25 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25578
25621
  class: "fou-upload-crop__result-img",
25579
25622
  alt: "",
25580
25623
  style: E(U(ge))
25581
- }, null, 12, Lk), u("div", Rk, [
25624
+ }, null, 12, Ik), u("div", Lk, [
25582
25625
  u("button", {
25583
25626
  type: "button",
25584
25627
  disabled: e.disabled,
25585
25628
  title: "重新裁切",
25586
25629
  onClick: Z
25587
- }, [m(a, { icon: "crop-line" })], 8, zk),
25630
+ }, [m(a, { icon: "crop-line" })], 8, Rk),
25588
25631
  u("button", {
25589
25632
  type: "button",
25590
25633
  disabled: e.disabled,
25591
25634
  title: "查看原图",
25592
25635
  onClick: i[2] ||= (e) => y.value = !0
25593
- }, [m(a, { icon: "zoom-in-line" })], 8, Bk),
25636
+ }, [m(a, { icon: "zoom-in-line" })], 8, zk),
25594
25637
  u("button", {
25595
25638
  type: "button",
25596
25639
  disabled: e.disabled,
25597
25640
  title: "删除",
25598
25641
  onClick: Qe
25599
- }, [m(a, { icon: "delete-bin-line" })], 8, Vk)
25642
+ }, [m(a, { icon: "delete-bin-line" })], 8, Bk)
25600
25643
  ])], 4)) : c("", !0)], 64)),
25601
25644
  (N(), s(n, { to: "body" }, [U(v) ? (N(), l("div", {
25602
25645
  key: 0,
@@ -25605,8 +25648,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25605
25648
  "aria-modal": "true",
25606
25649
  "aria-label": e.dialogTitle,
25607
25650
  onClick: q(We, ["self"])
25608
- }, [u("div", Uk, [
25609
- u("div", Wk, [u("span", null, V(e.dialogTitle), 1), u("button", {
25651
+ }, [u("div", Hk, [
25652
+ u("div", Uk, [u("span", null, V(e.dialogTitle), 1), u("button", {
25610
25653
  type: "button",
25611
25654
  class: "fou-upload-crop__close",
25612
25655
  onClick: Ge
@@ -25625,7 +25668,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25625
25668
  style: E(U(_e)),
25626
25669
  alt: "",
25627
25670
  draggable: "false"
25628
- }, null, 12, Gk), u("div", {
25671
+ }, null, 12, Wk), u("div", {
25629
25672
  class: w(["fou-upload-crop__crop", { "is-round": U(K) }]),
25630
25673
  style: E(U(ve)),
25631
25674
  onPointerdown: q(Ve, ["stop"])
@@ -25633,8 +25676,8 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25633
25676
  key: e,
25634
25677
  class: w(["fou-upload-crop__handle", `fou-upload-crop__handle--${e}`]),
25635
25678
  onPointerdown: q((t) => Ue(t, e), ["stop"])
25636
- }, null, 42, Kk)), 64))], 38)], 544),
25637
- u("div", qk, [
25679
+ }, null, 42, Gk)), 64))], 38)], 544),
25680
+ u("div", Kk, [
25638
25681
  e.showZoom ? (N(), l("button", {
25639
25682
  key: 0,
25640
25683
  type: "button",
@@ -25678,7 +25721,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25678
25721
  }, [m(a, { icon: "refresh-line" })]),
25679
25722
  e.showSizeInputs && !U(J) ? (N(), l(t, { key: 6 }, [
25680
25723
  i[18] ||= u("span", { class: "fou-upload-crop__divider" }, null, -1),
25681
- u("label", Jk, [i[16] ||= u("span", null, "宽", -1), ce(u("input", {
25724
+ u("label", qk, [i[16] ||= u("span", null, "宽", -1), ce(u("input", {
25682
25725
  "onUpdate:modelValue": i[9] ||= (e) => b(ie) ? ie.value = e : null,
25683
25726
  type: "number",
25684
25727
  min: "20",
@@ -25689,7 +25732,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25689
25732
  void 0,
25690
25733
  { number: !0 }
25691
25734
  ]])]),
25692
- u("label", Yk, [i[17] ||= u("span", null, "高", -1), ce(u("input", {
25735
+ u("label", Jk, [i[17] ||= u("span", null, "高", -1), ce(u("input", {
25693
25736
  "onUpdate:modelValue": i[11] ||= (e) => b(ae) ? ae.value = e : null,
25694
25737
  type: "number",
25695
25738
  min: "20",
@@ -25707,7 +25750,7 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25707
25750
  }, "应用")
25708
25751
  ], 64)) : c("", !0),
25709
25752
  i[19] ||= u("span", { class: "fou-upload-crop__divider" }, null, -1),
25710
- u("label", Xk, [u("span", null, "质量 " + V(U(se)), 1), ce(u("input", {
25753
+ u("label", Yk, [u("span", null, "质量 " + V(U(se)), 1), ce(u("input", {
25711
25754
  "onUpdate:modelValue": i[14] ||= (e) => b(se) ? se.value = e : null,
25712
25755
  type: "range",
25713
25756
  min: "0.1",
@@ -25727,18 +25770,18 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25727
25770
  onClick: Je
25728
25771
  }, [m(a, { icon: "check-line" }), p(" " + V(e.confirmText), 1)])
25729
25772
  ])
25730
- ])], 8, Hk)) : c("", !0), U(y) ? (N(), l("div", {
25773
+ ])], 8, Vk)) : c("", !0), U(y) ? (N(), l("div", {
25731
25774
  key: 1,
25732
25775
  class: "fou-upload-crop__preview",
25733
25776
  onClick: i[15] ||= (e) => y.value = !1
25734
25777
  }, [u("img", {
25735
25778
  src: U(S) || U(x),
25736
25779
  alt: ""
25737
- }, null, 8, Zk)])) : c("", !0)]))
25780
+ }, null, 8, Xk)])) : c("", !0)]))
25738
25781
  ], 2);
25739
25782
  };
25740
25783
  }
25741
- }), $k = /* @__PURE__ */ X({ default: () => eA }), eA = /*#__PURE__*/ Z(Qk, [["__scopeId", "data-v-55bac23f"]]), tA = { class: "fou-watermark__content" }, nA = /*@__PURE__*/ h({
25784
+ }), Qk = /* @__PURE__ */ X({ default: () => $k }), $k = /*#__PURE__*/ Z(Zk, [["__scopeId", "data-v-55bac23f"]]), eA = { class: "fou-watermark__content" }, tA = /*@__PURE__*/ h({
25742
25785
  name: "FouWatermark",
25743
25786
  __name: "index",
25744
25787
  props: {
@@ -25791,9 +25834,9 @@ var EE = ["aria-expanded", "aria-disabled"], DE = {
25791
25834
  class: "fou-watermark__layer",
25792
25835
  style: E(U(s)),
25793
25836
  "aria-hidden": "true"
25794
- }, null, 4), u("div", tA, [L(e.$slots, "default", {}, void 0, !0)])], 512));
25837
+ }, null, 4), u("div", eA, [L(e.$slots, "default", {}, void 0, !0)])], 512));
25795
25838
  }
25796
- }), rA = /* @__PURE__ */ X({ default: () => iA }), iA = /*#__PURE__*/ Z(nA, [["__scopeId", "data-v-52b35f95"]]);
25839
+ }), nA = /* @__PURE__ */ X({ default: () => rA }), rA = /*#__PURE__*/ Z(tA, [["__scopeId", "data-v-52b35f95"]]);
25797
25840
  //#endregion
25798
25841
  //#region virtual:svg-icons-register
25799
25842
  if (typeof window < "u") {
@@ -25805,7 +25848,7 @@ if (typeof window < "u") {
25805
25848
  }
25806
25849
  //#endregion
25807
25850
  //#region components/FouInfiniteScroll/index.ts
25808
- var aA = "__fouInfiniteScroll", oA = (e, t) => {
25851
+ var iA = "__fouInfiniteScroll", aA = (e, t) => {
25809
25852
  let n = t.value, r = typeof n == "function" ? n : n?.handler, i = (t, n) => {
25810
25853
  let r = e.getAttribute(t);
25811
25854
  return r == null ? n : Number(r);
@@ -25820,8 +25863,8 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25820
25863
  distance: typeof n == "object" && n?.distance != null ? n.distance : i("infinite-scroll-distance", 0),
25821
25864
  immediate: typeof n == "object" && n?.immediate != null ? n.immediate : a("infinite-scroll-immediate", !0)
25822
25865
  };
25823
- }, sA = async (e, t) => {
25824
- let n = oA(e, t), r = e[aA];
25866
+ }, oA = async (e, t) => {
25867
+ let n = aA(e, t), r = e[iA];
25825
25868
  if (!(!r || n.disabled || !n.handler || r.pending) && !(e.scrollHeight - e.scrollTop - e.clientHeight > n.distance)) {
25826
25869
  r.pending = !0;
25827
25870
  try {
@@ -25830,47 +25873,47 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25830
25873
  r.pending = !1;
25831
25874
  }
25832
25875
  }
25833
- }, cA = (e, t) => {
25834
- lA(e);
25835
- let n = oA(e, t), r = {
25876
+ }, sA = (e, t) => {
25877
+ cA(e);
25878
+ let n = aA(e, t), r = {
25836
25879
  pending: !1,
25837
25880
  onScroll: () => {
25838
- let n = oA(e, t);
25839
- r.timer && clearTimeout(r.timer), r.timer = setTimeout(() => sA(e, t), n.delay);
25881
+ let n = aA(e, t);
25882
+ r.timer && clearTimeout(r.timer), r.timer = setTimeout(() => oA(e, t), n.delay);
25840
25883
  }
25841
25884
  };
25842
- e.addEventListener("scroll", r.onScroll, { passive: !0 }), e[aA] = r, n.immediate && queueMicrotask(() => sA(e, t));
25843
- }, lA = (e) => {
25844
- let t = e[aA];
25845
- t && (e.removeEventListener("scroll", t.onScroll), t.timer && clearTimeout(t.timer), t.observer?.disconnect(), delete e[aA]);
25846
- }, uA = {
25847
- mounted: cA,
25885
+ e.addEventListener("scroll", r.onScroll, { passive: !0 }), e[iA] = r, n.immediate && queueMicrotask(() => oA(e, t));
25886
+ }, cA = (e) => {
25887
+ let t = e[iA];
25888
+ t && (e.removeEventListener("scroll", t.onScroll), t.timer && clearTimeout(t.timer), t.observer?.disconnect(), delete e[iA]);
25889
+ }, lA = {
25890
+ mounted: sA,
25848
25891
  updated(e, t) {
25849
- e[aA] ? oA(e, t).immediate && queueMicrotask(() => sA(e, t)) : cA(e, t);
25892
+ e[iA] ? aA(e, t).immediate && queueMicrotask(() => oA(e, t)) : sA(e, t);
25850
25893
  },
25851
- unmounted: lA
25852
- }, dA = { install(e) {
25853
- e.directive("fou-infinite-scroll", uA);
25854
- } }, fA = {
25894
+ unmounted: cA
25895
+ }, uA = { install(e) {
25896
+ e.directive("fou-infinite-scroll", lA);
25897
+ } }, dA = {
25855
25898
  "top-right": [],
25856
25899
  "top-left": [],
25857
25900
  "bottom-right": [],
25858
25901
  "bottom-left": []
25859
- }, pA = 0, mA = (e, t = 20) => {
25902
+ }, fA = 0, pA = (e, t = 20) => {
25860
25903
  let n = `fou-notify-host-${e}`, r = document.getElementById(n);
25861
25904
  return r || (r = document.createElement("div"), r.id = n, r.className = `fou-notify-host fou-notify-host--${e}`, document.body.appendChild(r)), r.style.setProperty("--fou-notify-offset", `${t}px`), r;
25862
- }, hA = (e) => {
25863
- Object.keys(fA).forEach((t) => {
25864
- let n = fA[t].findIndex((t) => t.id === e);
25905
+ }, mA = (e) => {
25906
+ Object.keys(dA).forEach((t) => {
25907
+ let n = dA[t].findIndex((t) => t.id === e);
25865
25908
  if (n >= 0) {
25866
- let [e] = fA[t].splice(n, 1);
25909
+ let [e] = dA[t].splice(n, 1);
25867
25910
  e.timer && clearTimeout(e.timer), e.app.unmount(), e.el.remove();
25868
25911
  }
25869
25912
  });
25870
- }, gA = Object.assign((e) => {
25871
- let t = typeof e == "string" ? { message: e } : { ...e }, n = t.position || "top-right", r = t.type || "info", i = t.duration ?? 4500, a = t.id || `fou-notify-${++pA}`, s = t.offset ?? 20;
25872
- hA(a);
25873
- let c = mA(n, s), l = document.createElement("div");
25913
+ }, hA = Object.assign((e) => {
25914
+ let t = typeof e == "string" ? { message: e } : { ...e }, n = t.position || "top-right", r = t.type || "info", i = t.duration ?? 4500, a = t.id || `fou-notify-${++fA}`, s = t.offset ?? 20;
25915
+ mA(a);
25916
+ let c = pA(n, s), l = document.createElement("div");
25874
25917
  l.className = "fou-notify-wrap", c.appendChild(l);
25875
25918
  let u = F(!0), d = {
25876
25919
  id: a,
@@ -25879,7 +25922,7 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25879
25922
  position: n
25880
25923
  }, f = () => {
25881
25924
  d.timer &&= (clearTimeout(d.timer), void 0), u.value = !1, setTimeout(() => {
25882
- hA(a), t.onClose?.();
25925
+ mA(a), t.onClose?.();
25883
25926
  }, 200);
25884
25927
  }, p = o({ setup() {
25885
25928
  return () => v(GC, {
@@ -25893,13 +25936,13 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25893
25936
  onClose: f
25894
25937
  });
25895
25938
  } });
25896
- return i > 0 && (d.timer = setTimeout(f, i)), p.mount(l), d.app = p, fA[n].push(d), {
25897
- close: () => hA(a),
25939
+ return i > 0 && (d.timer = setTimeout(f, i)), p.mount(l), d.app = p, dA[n].push(d), {
25940
+ close: () => mA(a),
25898
25941
  id: a
25899
25942
  };
25900
25943
  }, {
25901
25944
  success(e) {
25902
- return gA(typeof e == "string" ? {
25945
+ return hA(typeof e == "string" ? {
25903
25946
  message: e,
25904
25947
  type: "success"
25905
25948
  } : {
@@ -25908,7 +25951,7 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25908
25951
  });
25909
25952
  },
25910
25953
  warning(e) {
25911
- return gA(typeof e == "string" ? {
25954
+ return hA(typeof e == "string" ? {
25912
25955
  message: e,
25913
25956
  type: "warning"
25914
25957
  } : {
@@ -25917,7 +25960,7 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25917
25960
  });
25918
25961
  },
25919
25962
  info(e) {
25920
- return gA(typeof e == "string" ? {
25963
+ return hA(typeof e == "string" ? {
25921
25964
  message: e,
25922
25965
  type: "info"
25923
25966
  } : {
@@ -25926,7 +25969,7 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25926
25969
  });
25927
25970
  },
25928
25971
  error(e) {
25929
- return gA(typeof e == "string" ? {
25972
+ return hA(typeof e == "string" ? {
25930
25973
  message: e,
25931
25974
  type: "error"
25932
25975
  } : {
@@ -25935,16 +25978,16 @@ var aA = "__fouInfiniteScroll", oA = (e, t) => {
25935
25978
  });
25936
25979
  },
25937
25980
  closeAll: (e) => {
25938
- (e ? [e] : Object.keys(fA)).forEach((e) => {
25939
- [...fA[e]].forEach((e) => hA(e.id));
25981
+ (e ? [e] : Object.keys(dA)).forEach((e) => {
25982
+ [...dA[e]].forEach((e) => mA(e.id));
25940
25983
  });
25941
25984
  }
25942
- }), _A = { install(e) {
25943
- e.config.globalProperties.$fouNotify = gA, e.provide("$fouNotify", gA);
25985
+ }), gA = { install(e) {
25986
+ e.config.globalProperties.$fouNotify = hA, e.provide("$fouNotify", hA);
25944
25987
  } };
25945
25988
  //#endregion
25946
25989
  //#region node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/dist/mitt.mjs
25947
- function vA(e) {
25990
+ function _A(e) {
25948
25991
  return {
25949
25992
  all: e ||= /* @__PURE__ */ new Map(),
25950
25993
  on: function(t, n) {
@@ -25967,7 +26010,7 @@ function vA(e) {
25967
26010
  }
25968
26011
  //#endregion
25969
26012
  //#region plugins/fou.ts
25970
- var yA, bA = { install: (e) => {
26013
+ var vA, yA = { install: (e) => {
25971
26014
  let t = (e = tC, t) => typeof e == "object" && e ? af.service(e) : af.service({
25972
26015
  text: String(e || ""),
25973
26016
  fullscreen: !0
@@ -25976,7 +26019,7 @@ var yA, bA = { install: (e) => {
25976
26019
  }, r = (e, t, n, r, i = "确定", a = "取消") => {
25977
26020
  Id(e, t || "温馨提示", n, r, i, a);
25978
26021
  }, i = (e, t, n = "success", r, i = nC) => {
25979
- gA({
26022
+ hA({
25980
26023
  message: e,
25981
26024
  title: t,
25982
26025
  type: n,
@@ -25992,14 +26035,14 @@ var yA, bA = { install: (e) => {
25992
26035
  "bottom-left": "bottom-left"
25993
26036
  }[r || ""] || "top-right"
25994
26037
  });
25995
- }, a = vA(), o = (...e) => {
26038
+ }, a = _A(), o = (...e) => {
25996
26039
  a.emit(_e(e), e[1]);
25997
26040
  }, s = (...e) => {
25998
26041
  Reflect.apply(a.on, a, ve(e));
25999
26042
  }, c = (...e) => {
26000
26043
  Reflect.apply(a.off, a, ve(e));
26001
26044
  };
26002
- e.provide("$baseAlert", n), e.provide("$baseConfirm", r), e.provide("$baseLoading", t), e.provide("$baseNotify", i), e.provide("$pub", o), e.provide("$sub", s), e.provide("$unsub", c), yA = {
26045
+ e.provide("$baseAlert", n), e.provide("$baseConfirm", r), e.provide("$baseLoading", t), e.provide("$baseNotify", i), e.provide("$pub", o), e.provide("$sub", s), e.provide("$unsub", c), vA = {
26003
26046
  $baseAlert: n,
26004
26047
  $baseConfirm: r,
26005
26048
  $baseLoading: t,
@@ -26011,7 +26054,7 @@ var yA, bA = { install: (e) => {
26011
26054
  } };
26012
26055
  //#endregion
26013
26056
  //#region components/FouCanvasKit/modules/badgeCompat.ts
26014
- function xA(e) {
26057
+ function bA(e) {
26015
26058
  let t = String(e ?? "").trim();
26016
26059
  if (!t) return "";
26017
26060
  t = t.replace(/\s+/g, ""), t = t.replace(/^[中国中华人民共和國共和国]+/, "");
@@ -26023,8 +26066,8 @@ function xA(e) {
26023
26066
  }
26024
26067
  return t || e.trim();
26025
26068
  }
26026
- function SA(e, t) {
26027
- let n = (e.competition_name == null ? "" : String(e.competition_name)) || (t ?? ""), r = String(e.school_name ?? ""), i = String(e.school_short_name ?? e.school_name_short ?? "").trim() || xA(r);
26069
+ function xA(e, t) {
26070
+ let n = (e.competition_name == null ? "" : String(e.competition_name)) || (t ?? ""), r = String(e.school_name ?? ""), i = String(e.school_short_name ?? e.school_name_short ?? "").trim() || bA(r);
26028
26071
  return {
26029
26072
  competition_name: n,
26030
26073
  student_name: String(e.student_name ?? ""),
@@ -26053,15 +26096,15 @@ function SA(e, t) {
26053
26096
  competition_daily_end: String(e.competition_daily_end ?? "")
26054
26097
  };
26055
26098
  }
26056
- function CA(e, t) {
26057
- return SA(e, t);
26099
+ function SA(e, t) {
26100
+ return xA(e, t);
26058
26101
  }
26059
- function wA(e, t) {
26060
- return Ri(SA(e, t), t);
26102
+ function CA(e, t) {
26103
+ return Ri(xA(e, t), t);
26061
26104
  }
26062
26105
  //#endregion
26063
26106
  //#region components/FouCanvasKit/presets/badge.ts
26064
- var TA = [
26107
+ var wA = [
26065
26108
  "competition_name",
26066
26109
  "student_name",
26067
26110
  "competition_no",
@@ -26087,7 +26130,7 @@ var TA = [
26087
26130
  "venue_address",
26088
26131
  "competition_daily_start",
26089
26132
  "competition_daily_end"
26090
- ], EA = {
26133
+ ], TA = {
26091
26134
  competition_name: "比赛名称",
26092
26135
  student_name: "学生姓名",
26093
26136
  competition_no: "参赛编号",
@@ -26113,15 +26156,15 @@ var TA = [
26113
26156
  venue_address: "场地地址",
26114
26157
  competition_daily_start: "比赛当天开始时间",
26115
26158
  competition_daily_end: "比赛当天结束时间"
26116
- }, DA = /* @__PURE__ */ X({
26117
- BANNER_DEFAULT_MODULES: () => OA,
26118
- createBadgeDoc: () => AA,
26119
- createBannerDoc: () => kA
26120
- }), OA = Ni().map((e) => ({
26159
+ }, EA = /* @__PURE__ */ X({
26160
+ BANNER_DEFAULT_MODULES: () => DA,
26161
+ createBadgeDoc: () => kA,
26162
+ createBannerDoc: () => OA
26163
+ }), DA = Ni().map((e) => ({
26121
26164
  ...e,
26122
26165
  enabled: ["school", "competition"].includes(e.id)
26123
26166
  }));
26124
- function kA(e) {
26167
+ function OA(e) {
26125
26168
  return {
26126
26169
  version: 1,
26127
26170
  mode: "banner",
@@ -26163,11 +26206,11 @@ function kA(e) {
26163
26206
  fontFamily: "Microsoft YaHei, sans-serif",
26164
26207
  color: "#ccfbf1"
26165
26208
  }],
26166
- dataModules: OA,
26209
+ dataModules: DA,
26167
26210
  ...e
26168
26211
  };
26169
26212
  }
26170
- function AA(e) {
26213
+ function kA(e) {
26171
26214
  return {
26172
26215
  version: 1,
26173
26216
  mode: "badge",
@@ -26187,12 +26230,12 @@ function AA(e) {
26187
26230
  }
26188
26231
  //#endregion
26189
26232
  //#region index.ts
26190
- var jA = "2.3.6", MA = (e) => e.replace(/\B([A-Z])/g, "-$1").toLowerCase(), NA = (e, t, n) => {
26233
+ var AA = "2.3.8", jA = (e) => e.replace(/\B([A-Z])/g, "-$1").toLowerCase(), MA = (e, t, n) => {
26191
26234
  e.component(t) || e.component(t, n);
26192
- let r = MA(t);
26235
+ let r = jA(t);
26193
26236
  r !== t && !e.component(r) && e.component(r, n);
26194
- }, PA = (e) => {
26195
- e.use(rr), e.use(_A), e.use(of), e.use(dA), NA(e, "FouLoading", Jo), NA(e, "FouStatistics", lD), NA(e, "FouStatistic", lD), e.use(bA), NA(e, "FouIcon", Fe), NA(e, "FouOption", wE), NA(e, "FouDropdownMenu", js), NA(e, "FouDropdownItem", Ps), NA(e, "FouCheckboxGroup", Pa), NA(e, "FouRadioGroup", Ua), NA(e, "FouMenuRoot", eC), NA(e, "FouMenuNav", zC), NA(e, "FouMenuNavItem", AC), NA(e, "FouMenuNavSub", FC), NA(e, "FouStep", SD), NA(e, "FouTabBar", En), NA(e, "FouTabs", OD), NA(e, "FouTabPane", An), NA(e, "FouBreadcrumb", nv), NA(e, "FouBreadcrumbItem", Z_), NA(e, "FouCalendar", hv), NA(e, "FouTour", bO), NA(e, "FouTourStep", dO), NA(e, "FouLink", MS), NA(e, "FouInputTag", xS), NA(e, "FouSplitter", tD), NA(e, "FouSplitterPanel", QE), NA(e, "FouCollapseItem", Yv), NA(e, "FouCarouselItem", Dv), NA(e, "FouTimelineItem", QD), NA(e, "FouDescriptionsItem", qy), NA(e, "FouAnchorLink", Qe);
26237
+ }, NA = (e) => {
26238
+ e.use(rr), e.use(gA), e.use(of), e.use(uA), MA(e, "FouLoading", Jo), MA(e, "FouStatistics", lD), MA(e, "FouStatistic", lD), e.use(yA), MA(e, "FouIcon", Fe), MA(e, "FouOption", wE), MA(e, "FouDropdownMenu", js), MA(e, "FouDropdownItem", Ps), MA(e, "FouCheckboxGroup", Pa), MA(e, "FouRadioGroup", Ua), MA(e, "FouMenuRoot", eC), MA(e, "FouMenuNav", zC), MA(e, "FouMenuNavItem", AC), MA(e, "FouMenuNavSub", FC), MA(e, "FouStep", SD), MA(e, "FouTabBar", En), MA(e, "FouTabs", OD), MA(e, "FouTabPane", An), MA(e, "FouBreadcrumb", nv), MA(e, "FouBreadcrumbItem", Z_), MA(e, "FouCalendar", hv), MA(e, "FouTour", bO), MA(e, "FouTourStep", dO), MA(e, "FouLink", MS), MA(e, "FouInputTag", xS), MA(e, "FouSplitter", tD), MA(e, "FouSplitterPanel", QE), MA(e, "FouCollapseItem", Yv), MA(e, "FouCarouselItem", Dv), MA(e, "FouTimelineItem", QD), MA(e, "FouDescriptionsItem", qy), MA(e, "FouAnchorLink", Qe);
26196
26239
  let t = /* #__PURE__ */ Object.assign({
26197
26240
  "./components/FouAffix/index.vue": ke,
26198
26241
  "./components/FouAlert/index.vue": He,
@@ -26348,18 +26391,18 @@ var jA = "2.3.6", MA = (e) => e.replace(/\B([A-Z])/g, "-$1").toLowerCase(), NA =
26348
26391
  "./components/FouTransfer/index.vue": RO,
26349
26392
  "./components/FouTree/FouTreeNode.vue": Cd,
26350
26393
  "./components/FouTree/index.vue": jd,
26351
- "./components/FouTreeSelect/index.vue": WO,
26352
- "./components/FouTreeV2/index.vue": $O,
26353
- "./components/FouTrend/index.vue": ik,
26354
- "./components/FouUpload/index.vue": Tk,
26355
- "./components/FouUploadCrop/index.vue": $k,
26356
- "./components/FouWatermark/index.vue": rA
26394
+ "./components/FouTreeSelect/index.vue": UO,
26395
+ "./components/FouTreeV2/index.vue": QO,
26396
+ "./components/FouTrend/index.vue": rk,
26397
+ "./components/FouUpload/index.vue": wk,
26398
+ "./components/FouUploadCrop/index.vue": Qk,
26399
+ "./components/FouWatermark/index.vue": nA
26357
26400
  }), n = /\/(FouBadge\/views|FouQueryForm\/components|FouCanvasKit\/|FouMsg\/FouMsgItem|FouNotification\/FouNotificationItem|FouLoading\/spinner)/;
26358
26401
  Object.entries(t).forEach(([t, r]) => {
26359
26402
  if (n.test(t)) return;
26360
26403
  let i = r.default;
26361
- i && i.name && NA(e, i.name, i);
26404
+ i && i.name && MA(e, i.name, i);
26362
26405
  });
26363
- }, FA = PA, IA = PA;
26406
+ }, PA = NA, FA = NA;
26364
26407
  //#endregion
26365
- export { TA as BADGE_PLACEHOLDER_KEYS, EA as BADGE_PLACEHOLDER_LABELS, Mi as BUILTIN_DATA_MODULES, Jd as FOU_LOADING_EFFECTS, Pt as FouAreaPicker, W_ as FouBanner, nv as FouBreadcrumb, Z_ as FouBreadcrumbItem, Wn as FouButton, hv as FouCalendar, Qp as FouCanvasDataModulesPanel, Rg as FouCanvasEditor, ra as FouCanvasRenderer, jv as FouCheckTag, Ba as FouCheckbox, Pv as FouCode, Qv as FouColorPicker, fy as FouCombobox, hy as FouConfigProvider, Cy as FouContextMenu, Oy as FouCopy, Iy as FouCountdown, ed as FouDate, hn as FouDialog, ib as FouDigitalCard, mb as FouDrawer, vb as FouEllipsis, Ib as FouExcelImportExport, qb as FouException, ex as FouFloatButton, ix as FouFloatButtonGroup, wa as FouForm, fo as FouFormItem, _x as FouHighlight, Sx as FouHoverCard, oS as FouImage, uS as FouImagePreviewGroup, eS as FouImageViewer, So as FouInput, xa as FouInputNumber, mS as FouInputOtp, xS as FouInputTag, wS as FouKbd, DS as FouLayoutContainer, MS as FouLink, BS as FouLinkPreview, Jo as FouLoading, of as FouLoadingPlugin, YS as FouMention, gC as FouMenu, _A as FouNotification, hw as FouPageMain, li as FouPagination, vw as FouParagraph, Cw as FouPasswordStrength, CT as FouQrcode, Ya as FouRadio, cE as FouSearchBar, _E as FouSearchInput, oo as FouSelect, FE as FouSelectV2, qE as FouSparkline, tD as FouSplitter, QE as FouSplitterPanel, fD as FouStatistic, lD as FouStatistics, ja as FouSwitch, En as FouTabBar, An as FouTabPane, cu as FouTable, OD as FouTabs, as as FouTime, FD as FouTimeAgo, VD as FouTimeSelect, oO as FouTitle, bO as FouTour, dO as FouTourStep, Md as FouTree, ek as FouTreeV2, ak as FouTrend, Ek as FouUpload, eA as FouUploadCrop, ji as LEGACY_FLAT_KEY_MAP, cm as buildCanvasHtml, gc as buildSheetMatrix, Ni as cloneBuiltinModules, At as codeToText, AA as createBadgeDoc, kA as createBannerDoc, zi as createCustomModule, Db as createExcelTemplate, lm as downloadCanvasHtml, dm as downloadElementPdf, tm as downloadElementPng, Ob as downloadExcelTemplate, Eb as downloadFilledExcel, _c as exportCsv, bc as exportSheet, vc as exportXls, yc as exportXlsx, Tb as fillExcelTemplate, SA as flattenBadgeForMerge, CA as flattenDeskLabelForMerge, Fd as fouAlert, yA as fouApp, Id as fouConfirm, Rd as fouConfirmPromise, af as fouLoading, $ as fouMsg, gA as fouNotify, jb as importFromExcelTemplate, Ii as listInsertableFields, wA as mapRowToContext, Ui as mergeBadgeText, Hi as mergeTemplateText, xc as parseImportFile, kt as regionData, Pi as resolveDataModules, Li as sampleContextFromModules, PA as setupFou, IA as setupFoucui, FA as setupQiuye, uA as vFouInfiniteScroll, rf as vFouLoading, jA as version };
26408
+ export { wA as BADGE_PLACEHOLDER_KEYS, TA as BADGE_PLACEHOLDER_LABELS, Mi as BUILTIN_DATA_MODULES, Jd as FOU_LOADING_EFFECTS, Pt as FouAreaPicker, W_ as FouBanner, nv as FouBreadcrumb, Z_ as FouBreadcrumbItem, Wn as FouButton, hv as FouCalendar, Qp as FouCanvasDataModulesPanel, Rg as FouCanvasEditor, ra as FouCanvasRenderer, jv as FouCheckTag, Ba as FouCheckbox, Pv as FouCode, Qv as FouColorPicker, fy as FouCombobox, hy as FouConfigProvider, Cy as FouContextMenu, Oy as FouCopy, Iy as FouCountdown, ed as FouDate, hn as FouDialog, ib as FouDigitalCard, mb as FouDrawer, vb as FouEllipsis, Ib as FouExcelImportExport, qb as FouException, ex as FouFloatButton, ix as FouFloatButtonGroup, wa as FouForm, fo as FouFormItem, _x as FouHighlight, Sx as FouHoverCard, oS as FouImage, uS as FouImagePreviewGroup, eS as FouImageViewer, So as FouInput, xa as FouInputNumber, mS as FouInputOtp, xS as FouInputTag, wS as FouKbd, DS as FouLayoutContainer, MS as FouLink, BS as FouLinkPreview, Jo as FouLoading, of as FouLoadingPlugin, YS as FouMention, gC as FouMenu, gA as FouNotification, hw as FouPageMain, li as FouPagination, vw as FouParagraph, Cw as FouPasswordStrength, CT as FouQrcode, Ya as FouRadio, cE as FouSearchBar, _E as FouSearchInput, oo as FouSelect, FE as FouSelectV2, qE as FouSparkline, tD as FouSplitter, QE as FouSplitterPanel, fD as FouStatistic, lD as FouStatistics, ja as FouSwitch, En as FouTabBar, An as FouTabPane, cu as FouTable, OD as FouTabs, as as FouTime, FD as FouTimeAgo, VD as FouTimeSelect, oO as FouTitle, bO as FouTour, dO as FouTourStep, Md as FouTree, WO as FouTreeSelect, $O as FouTreeV2, ik as FouTrend, Tk as FouUpload, $k as FouUploadCrop, ji as LEGACY_FLAT_KEY_MAP, cm as buildCanvasHtml, gc as buildSheetMatrix, Ni as cloneBuiltinModules, At as codeToText, kA as createBadgeDoc, OA as createBannerDoc, zi as createCustomModule, Db as createExcelTemplate, lm as downloadCanvasHtml, dm as downloadElementPdf, tm as downloadElementPng, Ob as downloadExcelTemplate, Eb as downloadFilledExcel, _c as exportCsv, bc as exportSheet, vc as exportXls, yc as exportXlsx, Tb as fillExcelTemplate, xA as flattenBadgeForMerge, SA as flattenDeskLabelForMerge, Fd as fouAlert, vA as fouApp, Id as fouConfirm, Rd as fouConfirmPromise, af as fouLoading, $ as fouMsg, hA as fouNotify, jb as importFromExcelTemplate, Ii as listInsertableFields, CA as mapRowToContext, Ui as mergeBadgeText, Hi as mergeTemplateText, xc as parseImportFile, kt as regionData, Pi as resolveDataModules, Li as sampleContextFromModules, NA as setupFou, FA as setupFoucui, PA as setupQiuye, lA as vFouInfiniteScroll, rf as vFouLoading, AA as version };