bi-components-library 1.2.65 → 1.2.67

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/index.es.js CHANGED
@@ -12557,7 +12557,7 @@ function mm(e) {
12557
12557
  Hs(t, (e || {}).mdastExtensions || []);
12558
12558
  const a = {};
12559
12559
  return l;
12560
- function l(X) {
12560
+ function l(Q) {
12561
12561
  let ne = {
12562
12562
  type: "root",
12563
12563
  children: []
@@ -12573,31 +12573,31 @@ function mm(e) {
12573
12573
  data: a
12574
12574
  }, Ce = [];
12575
12575
  let ke = -1;
12576
- for (; ++ke < X.length; )
12577
- if (X[ke][1].type === "listOrdered" || X[ke][1].type === "listUnordered")
12578
- if (X[ke][0] === "enter")
12576
+ for (; ++ke < Q.length; )
12577
+ if (Q[ke][1].type === "listOrdered" || Q[ke][1].type === "listUnordered")
12578
+ if (Q[ke][0] === "enter")
12579
12579
  Ce.push(ke);
12580
12580
  else {
12581
12581
  const Ke = Ce.pop();
12582
- ke = n(X, Ke, ke);
12582
+ ke = n(Q, Ke, ke);
12583
12583
  }
12584
- for (ke = -1; ++ke < X.length; ) {
12585
- const Ke = t[X[ke][0]];
12586
- Fs.call(Ke, X[ke][1].type) && Ke[X[ke][1].type].call(Object.assign({
12587
- sliceSerialize: X[ke][2].sliceSerialize
12588
- }, be), X[ke][1]);
12584
+ for (ke = -1; ++ke < Q.length; ) {
12585
+ const Ke = t[Q[ke][0]];
12586
+ Fs.call(Ke, Q[ke][1].type) && Ke[Q[ke][1].type].call(Object.assign({
12587
+ sliceSerialize: Q[ke][2].sliceSerialize
12588
+ }, be), Q[ke][1]);
12589
12589
  }
12590
12590
  if (be.tokenStack.length > 0) {
12591
12591
  const Ke = be.tokenStack[be.tokenStack.length - 1];
12592
12592
  (Ke[1] || Yi).call(be, void 0, Ke[0]);
12593
12593
  }
12594
12594
  for (ne.position = {
12595
- start: kt(X.length > 0 ? X[0][1].start : {
12595
+ start: kt(Q.length > 0 ? Q[0][1].start : {
12596
12596
  line: 1,
12597
12597
  column: 1,
12598
12598
  offset: 0
12599
12599
  }),
12600
- end: kt(X.length > 0 ? X[X.length - 2][1].end : {
12600
+ end: kt(Q.length > 0 ? Q[Q.length - 2][1].end : {
12601
12601
  line: 1,
12602
12602
  column: 1,
12603
12603
  offset: 0
@@ -12606,10 +12606,10 @@ function mm(e) {
12606
12606
  ne = t.transforms[ke](ne) || ne;
12607
12607
  return ne;
12608
12608
  }
12609
- function n(X, ne, be) {
12609
+ function n(Q, ne, be) {
12610
12610
  let Ce = ne - 1, ke = -1, Ke = !1, yt, Ve, Ft, Ht;
12611
12611
  for (; ++Ce <= be; ) {
12612
- const He = X[Ce];
12612
+ const He = Q[Ce];
12613
12613
  switch (He[1].type) {
12614
12614
  case "listUnordered":
12615
12615
  case "listOrdered":
@@ -12634,13 +12634,13 @@ function mm(e) {
12634
12634
  if (yt) {
12635
12635
  let Tt = Ce;
12636
12636
  for (Ve = void 0; Tt--; ) {
12637
- const ot = X[Tt];
12637
+ const ot = Q[Tt];
12638
12638
  if (ot[1].type === "lineEnding" || ot[1].type === "lineEndingBlank") {
12639
12639
  if (ot[0] === "exit") continue;
12640
- Ve && (X[Ve][1].type = "lineEndingBlank", Ke = !0), ot[1].type = "lineEnding", Ve = Tt;
12640
+ Ve && (Q[Ve][1].type = "lineEndingBlank", Ke = !0), ot[1].type = "lineEnding", Ve = Tt;
12641
12641
  } else if (!(ot[1].type === "linePrefix" || ot[1].type === "blockQuotePrefix" || ot[1].type === "blockQuotePrefixWhitespace" || ot[1].type === "blockQuoteMarker" || ot[1].type === "listItemIndent")) break;
12642
12642
  }
12643
- Ft && (!Ve || Ft < Ve) && (yt._spread = !0), yt.end = Object.assign({}, Ve ? X[Ve][1].start : He[1].end), X.splice(Ve || Ce, 0, ["exit", yt, He[2]]), Ce++, be++;
12643
+ Ft && (!Ve || Ft < Ve) && (yt._spread = !0), yt.end = Object.assign({}, Ve ? Q[Ve][1].start : He[1].end), Q.splice(Ve || Ce, 0, ["exit", yt, He[2]]), Ce++, be++;
12644
12644
  }
12645
12645
  if (He[1].type === "listItemPrefix") {
12646
12646
  const Tt = {
@@ -12650,16 +12650,16 @@ function mm(e) {
12650
12650
  // @ts-expect-error: we’ll add `end` in a second.
12651
12651
  end: void 0
12652
12652
  };
12653
- yt = Tt, X.splice(Ce, 0, ["enter", Tt, He[2]]), Ce++, be++, Ft = void 0, Ht = !0;
12653
+ yt = Tt, Q.splice(Ce, 0, ["enter", Tt, He[2]]), Ce++, be++, Ft = void 0, Ht = !0;
12654
12654
  }
12655
12655
  }
12656
12656
  }
12657
- return X[ne][1]._spread = Ke, be;
12657
+ return Q[ne][1]._spread = Ke, be;
12658
12658
  }
12659
- function r(X, ne) {
12659
+ function r(Q, ne) {
12660
12660
  return be;
12661
12661
  function be(Ce) {
12662
- u.call(this, X(Ce), Ce), ne && ne.call(this, Ce);
12662
+ u.call(this, Q(Ce), Ce), ne && ne.call(this, Ce);
12663
12663
  }
12664
12664
  }
12665
12665
  function i() {
@@ -12668,28 +12668,28 @@ function mm(e) {
12668
12668
  children: []
12669
12669
  });
12670
12670
  }
12671
- function u(X, ne, be) {
12672
- this.stack[this.stack.length - 1].children.push(X), this.stack.push(X), this.tokenStack.push([ne, be || void 0]), X.position = {
12671
+ function u(Q, ne, be) {
12672
+ this.stack[this.stack.length - 1].children.push(Q), this.stack.push(Q), this.tokenStack.push([ne, be || void 0]), Q.position = {
12673
12673
  start: kt(ne.start),
12674
12674
  // @ts-expect-error: `end` will be patched later.
12675
12675
  end: void 0
12676
12676
  };
12677
12677
  }
12678
- function s(X) {
12678
+ function s(Q) {
12679
12679
  return ne;
12680
12680
  function ne(be) {
12681
- X && X.call(this, be), o.call(this, be);
12681
+ Q && Q.call(this, be), o.call(this, be);
12682
12682
  }
12683
12683
  }
12684
- function o(X, ne) {
12684
+ function o(Q, ne) {
12685
12685
  const be = this.stack.pop(), Ce = this.tokenStack.pop();
12686
12686
  if (Ce)
12687
- Ce[0].type !== X.type && (ne ? ne.call(this, X, Ce[0]) : (Ce[1] || Yi).call(this, X, Ce[0]));
12688
- else throw new Error("Cannot close `" + X.type + "` (" + Ra({
12689
- start: X.start,
12690
- end: X.end
12687
+ Ce[0].type !== Q.type && (ne ? ne.call(this, Q, Ce[0]) : (Ce[1] || Yi).call(this, Q, Ce[0]));
12688
+ else throw new Error("Cannot close `" + Q.type + "` (" + Ra({
12689
+ start: Q.start,
12690
+ end: Q.end
12691
12691
  }) + "): it’s not open");
12692
- be.position.end = kt(X.end);
12692
+ be.position.end = kt(Q.end);
12693
12693
  }
12694
12694
  function c() {
12695
12695
  return mh(this.stack.pop());
@@ -12697,134 +12697,134 @@ function mm(e) {
12697
12697
  function d() {
12698
12698
  this.data.expectingFirstListItemValue = !0;
12699
12699
  }
12700
- function h(X) {
12700
+ function h(Q) {
12701
12701
  if (this.data.expectingFirstListItemValue) {
12702
12702
  const ne = this.stack[this.stack.length - 2];
12703
- ne.start = Number.parseInt(this.sliceSerialize(X), 10), this.data.expectingFirstListItemValue = void 0;
12703
+ ne.start = Number.parseInt(this.sliceSerialize(Q), 10), this.data.expectingFirstListItemValue = void 0;
12704
12704
  }
12705
12705
  }
12706
12706
  function f() {
12707
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12708
- ne.lang = X;
12707
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12708
+ ne.lang = Q;
12709
12709
  }
12710
12710
  function y() {
12711
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12712
- ne.meta = X;
12711
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12712
+ ne.meta = Q;
12713
12713
  }
12714
12714
  function E() {
12715
12715
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
12716
12716
  }
12717
12717
  function v() {
12718
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12719
- ne.value = X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
12718
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12719
+ ne.value = Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
12720
12720
  }
12721
12721
  function g() {
12722
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12723
- ne.value = X.replace(/(\r?\n|\r)$/g, "");
12722
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12723
+ ne.value = Q.replace(/(\r?\n|\r)$/g, "");
12724
12724
  }
12725
- function m(X) {
12725
+ function m(Q) {
12726
12726
  const ne = this.resume(), be = this.stack[this.stack.length - 1];
12727
- be.label = ne, be.identifier = ua(this.sliceSerialize(X)).toLowerCase();
12727
+ be.label = ne, be.identifier = ua(this.sliceSerialize(Q)).toLowerCase();
12728
12728
  }
12729
12729
  function b() {
12730
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12731
- ne.title = X;
12730
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12731
+ ne.title = Q;
12732
12732
  }
12733
12733
  function x() {
12734
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12735
- ne.url = X;
12734
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12735
+ ne.url = Q;
12736
12736
  }
12737
- function C(X) {
12737
+ function C(Q) {
12738
12738
  const ne = this.stack[this.stack.length - 1];
12739
12739
  if (!ne.depth) {
12740
- const be = this.sliceSerialize(X).length;
12740
+ const be = this.sliceSerialize(Q).length;
12741
12741
  ne.depth = be;
12742
12742
  }
12743
12743
  }
12744
12744
  function S() {
12745
12745
  this.data.setextHeadingSlurpLineEnding = !0;
12746
12746
  }
12747
- function L(X) {
12747
+ function L(Q) {
12748
12748
  const ne = this.stack[this.stack.length - 1];
12749
- ne.depth = this.sliceSerialize(X).codePointAt(0) === 61 ? 1 : 2;
12749
+ ne.depth = this.sliceSerialize(Q).codePointAt(0) === 61 ? 1 : 2;
12750
12750
  }
12751
12751
  function k() {
12752
12752
  this.data.setextHeadingSlurpLineEnding = void 0;
12753
12753
  }
12754
- function A(X) {
12754
+ function A(Q) {
12755
12755
  const be = this.stack[this.stack.length - 1].children;
12756
12756
  let Ce = be[be.length - 1];
12757
12757
  (!Ce || Ce.type !== "text") && (Ce = st(), Ce.position = {
12758
- start: kt(X.start),
12758
+ start: kt(Q.start),
12759
12759
  // @ts-expect-error: we’ll add `end` later.
12760
12760
  end: void 0
12761
12761
  }, be.push(Ce)), this.stack.push(Ce);
12762
12762
  }
12763
- function I(X) {
12763
+ function I(Q) {
12764
12764
  const ne = this.stack.pop();
12765
- ne.value += this.sliceSerialize(X), ne.position.end = kt(X.end);
12765
+ ne.value += this.sliceSerialize(Q), ne.position.end = kt(Q.end);
12766
12766
  }
12767
- function N(X) {
12767
+ function N(Q) {
12768
12768
  const ne = this.stack[this.stack.length - 1];
12769
12769
  if (this.data.atHardBreak) {
12770
12770
  const be = ne.children[ne.children.length - 1];
12771
- be.position.end = kt(X.end), this.data.atHardBreak = void 0;
12771
+ be.position.end = kt(Q.end), this.data.atHardBreak = void 0;
12772
12772
  return;
12773
12773
  }
12774
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ne.type) && (A.call(this, X), I.call(this, X));
12774
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ne.type) && (A.call(this, Q), I.call(this, Q));
12775
12775
  }
12776
12776
  function P() {
12777
12777
  this.data.atHardBreak = !0;
12778
12778
  }
12779
12779
  function O() {
12780
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12781
- ne.value = X;
12780
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12781
+ ne.value = Q;
12782
12782
  }
12783
12783
  function w() {
12784
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12785
- ne.value = X;
12784
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12785
+ ne.value = Q;
12786
12786
  }
12787
12787
  function T() {
12788
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12789
- ne.value = X;
12788
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12789
+ ne.value = Q;
12790
12790
  }
12791
12791
  function M() {
12792
- const X = this.stack[this.stack.length - 1];
12792
+ const Q = this.stack[this.stack.length - 1];
12793
12793
  if (this.data.inReference) {
12794
12794
  const ne = this.data.referenceType || "shortcut";
12795
- X.type += "Reference", X.referenceType = ne, delete X.url, delete X.title;
12795
+ Q.type += "Reference", Q.referenceType = ne, delete Q.url, delete Q.title;
12796
12796
  } else
12797
- delete X.identifier, delete X.label;
12797
+ delete Q.identifier, delete Q.label;
12798
12798
  this.data.referenceType = void 0;
12799
12799
  }
12800
12800
  function q() {
12801
- const X = this.stack[this.stack.length - 1];
12801
+ const Q = this.stack[this.stack.length - 1];
12802
12802
  if (this.data.inReference) {
12803
12803
  const ne = this.data.referenceType || "shortcut";
12804
- X.type += "Reference", X.referenceType = ne, delete X.url, delete X.title;
12804
+ Q.type += "Reference", Q.referenceType = ne, delete Q.url, delete Q.title;
12805
12805
  } else
12806
- delete X.identifier, delete X.label;
12806
+ delete Q.identifier, delete Q.label;
12807
12807
  this.data.referenceType = void 0;
12808
12808
  }
12809
- function H(X) {
12810
- const ne = this.sliceSerialize(X), be = this.stack[this.stack.length - 2];
12809
+ function H(Q) {
12810
+ const ne = this.sliceSerialize(Q), be = this.stack[this.stack.length - 2];
12811
12811
  be.label = pm(ne), be.identifier = ua(ne).toLowerCase();
12812
12812
  }
12813
12813
  function F() {
12814
- const X = this.stack[this.stack.length - 1], ne = this.resume(), be = this.stack[this.stack.length - 1];
12814
+ const Q = this.stack[this.stack.length - 1], ne = this.resume(), be = this.stack[this.stack.length - 1];
12815
12815
  if (this.data.inReference = !0, be.type === "link") {
12816
- const Ce = X.children;
12816
+ const Ce = Q.children;
12817
12817
  be.children = Ce;
12818
12818
  } else
12819
12819
  be.alt = ne;
12820
12820
  }
12821
12821
  function _() {
12822
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12823
- ne.url = X;
12822
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12823
+ ne.url = Q;
12824
12824
  }
12825
12825
  function z() {
12826
- const X = this.resume(), ne = this.stack[this.stack.length - 1];
12827
- ne.title = X;
12826
+ const Q = this.resume(), ne = this.stack[this.stack.length - 1];
12827
+ ne.title = Q;
12828
12828
  }
12829
12829
  function W() {
12830
12830
  this.data.inReference = void 0;
@@ -12832,33 +12832,33 @@ function mm(e) {
12832
12832
  function D() {
12833
12833
  this.data.referenceType = "collapsed";
12834
12834
  }
12835
- function $(X) {
12835
+ function $(Q) {
12836
12836
  const ne = this.resume(), be = this.stack[this.stack.length - 1];
12837
- be.label = ne, be.identifier = ua(this.sliceSerialize(X)).toLowerCase(), this.data.referenceType = "full";
12837
+ be.label = ne, be.identifier = ua(this.sliceSerialize(Q)).toLowerCase(), this.data.referenceType = "full";
12838
12838
  }
12839
- function K(X) {
12840
- this.data.characterReferenceType = X.type;
12839
+ function K(Q) {
12840
+ this.data.characterReferenceType = Q.type;
12841
12841
  }
12842
- function J(X) {
12843
- const ne = this.sliceSerialize(X), be = this.data.characterReferenceType;
12842
+ function J(Q) {
12843
+ const ne = this.sliceSerialize(Q), be = this.data.characterReferenceType;
12844
12844
  let Ce;
12845
12845
  be ? (Ce = ks(ne, be === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Ce = Ka(ne);
12846
12846
  const ke = this.stack[this.stack.length - 1];
12847
12847
  ke.value += Ce;
12848
12848
  }
12849
- function Y(X) {
12849
+ function Y(Q) {
12850
12850
  const ne = this.stack.pop();
12851
- ne.position.end = kt(X.end);
12851
+ ne.position.end = kt(Q.end);
12852
12852
  }
12853
- function le(X) {
12854
- I.call(this, X);
12853
+ function le(Q) {
12854
+ I.call(this, Q);
12855
12855
  const ne = this.stack[this.stack.length - 1];
12856
- ne.url = this.sliceSerialize(X);
12856
+ ne.url = this.sliceSerialize(Q);
12857
12857
  }
12858
- function fe(X) {
12859
- I.call(this, X);
12858
+ function fe(Q) {
12859
+ I.call(this, Q);
12860
12860
  const ne = this.stack[this.stack.length - 1];
12861
- ne.url = "mailto:" + this.sliceSerialize(X);
12861
+ ne.url = "mailto:" + this.sliceSerialize(Q);
12862
12862
  }
12863
12863
  function me() {
12864
12864
  return {
@@ -12930,19 +12930,19 @@ function mm(e) {
12930
12930
  children: []
12931
12931
  };
12932
12932
  }
12933
- function ul(X) {
12933
+ function ul(Q) {
12934
12934
  return {
12935
12935
  type: "list",
12936
- ordered: X.type === "listOrdered",
12936
+ ordered: Q.type === "listOrdered",
12937
12937
  start: null,
12938
- spread: X._spread,
12938
+ spread: Q._spread,
12939
12939
  children: []
12940
12940
  };
12941
12941
  }
12942
- function sl(X) {
12942
+ function sl(Q) {
12943
12943
  return {
12944
12944
  type: "listItem",
12945
- spread: X._spread,
12945
+ spread: Q._spread,
12946
12946
  checked: null,
12947
12947
  children: []
12948
12948
  };
@@ -30326,8 +30326,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30326
30326
  }) => {
30327
30327
  const [W, D] = Bc.useMessage(), $ = Z(null), K = Z(null), J = Z(null), Y = Z(null), le = Z(null), fe = Z(null), [me, Ee] = ie(!1), je = Z("");
30328
30328
  if (!je.current) {
30329
- const Q = Math.random().toString(36).slice(2, 8);
30330
- je.current = `rte_${Q}`;
30329
+ const X = Math.random().toString(36).slice(2, 8);
30330
+ je.current = `rte_${X}`;
30331
30331
  }
30332
30332
  const [Me, Bt] = ie({});
30333
30333
  re(() => {
@@ -30357,7 +30357,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30357
30357
  }
30358
30358
  P?.(nt);
30359
30359
  }, [nt, P]);
30360
- const [Ql, ha] = ie(null), [ul, sl] = ie(null), [Jl, ol] = ie(null), [st, ba] = ie({}), [X, ne] = ie(""), [be, Ce] = ie(!1), ke = Z(null), Ke = Z(null), { tooltipPortal: yt, setPopoverVisible: Ve } = ay({
30360
+ const [Ql, ha] = ie(null), [ul, sl] = ie(null), [Jl, ol] = ie(null), [st, ba] = ie({}), [Q, ne] = ie(""), [be, Ce] = ie(!1), ke = Z(null), Ke = Z(null), { tooltipPortal: yt, setPopoverVisible: Ve } = ay({
30361
30361
  config: e,
30362
30362
  files: Me,
30363
30363
  debugTooltipSticky: A,
@@ -30373,14 +30373,14 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30373
30373
  setActiveBatchStartIndex: ol,
30374
30374
  setFiles: Bt
30375
30375
  }), He = Z(null), [Tt, ot] = ie({ showLeft: !1, showRight: !1 }), ma = ue(() => {
30376
- const Q = He.current;
30377
- Q && ot({
30378
- showLeft: Q.scrollLeft > 0,
30379
- showRight: Q.scrollLeft + Q.clientWidth < Q.scrollWidth - 1
30376
+ const X = He.current;
30377
+ X && ot({
30378
+ showLeft: X.scrollLeft > 0,
30379
+ showRight: X.scrollLeft + X.clientWidth < X.scrollWidth - 1
30380
30380
  });
30381
- }, []), Yo = ue((Q) => {
30382
- if (!Q.target.files || Q.target.files.length === 0) return;
30383
- const oe = 10 * 1024 * 1024, se = 50 * 1024 * 1024, ve = (ce) => ce.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ce.name || ""), ye = Array.from(Q.target.files).filter((ce) => ve(ce) && ce.size > oe ? (W.error("图片大小不能超过 10MB"), !1) : !0);
30381
+ }, []), Yo = ue((X) => {
30382
+ if (!X.target.files || X.target.files.length === 0) return;
30383
+ const oe = 10 * 1024 * 1024, se = 50 * 1024 * 1024, ve = (ce) => ce.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(ce.name || ""), ye = Array.from(X.target.files).filter((ce) => ve(ce) && ce.size > oe ? (W.error("图片大小不能超过 10MB"), !1) : !0);
30384
30384
  Et((ce) => {
30385
30385
  const ge = ce.reduce((Ne, De) => Ne + De.size, 0), xe = [];
30386
30386
  let Se = ge;
@@ -30392,22 +30392,22 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30392
30392
  xe.push(Ne), Se += Ne.size;
30393
30393
  }
30394
30394
  return xe.length > 0 ? [...ce, ...xe] : ce;
30395
- }), Q.target.value = "", setTimeout(ma, 0);
30396
- }, [W, ma]), Wo = ue((Q) => {
30397
- Et((oe) => oe.filter((se, ve) => ve !== Q)), setTimeout(ma, 0);
30395
+ }), X.target.value = "", setTimeout(ma, 0);
30396
+ }, [W, ma]), Wo = ue((X) => {
30397
+ Et((oe) => oe.filter((se, ve) => ve !== X)), setTimeout(ma, 0);
30398
30398
  }, [ma]), jo = ue(() => {
30399
- const Q = He.current;
30400
- Q && Q.scrollBy({ left: 200, behavior: "smooth" });
30399
+ const X = He.current;
30400
+ X && X.scrollBy({ left: 200, behavior: "smooth" });
30401
30401
  }, []), Ko = ue(() => {
30402
- const Q = He.current;
30403
- Q && Q.scrollBy({ left: -200, behavior: "smooth" });
30402
+ const X = He.current;
30403
+ X && X.scrollBy({ left: -200, behavior: "smooth" });
30404
30404
  }, []), Wr = ue(() => {
30405
30405
  l || Ee(!0);
30406
30406
  }, [l]);
30407
30407
  re(() => {
30408
30408
  l && Ee(!1);
30409
30409
  }, [l]), re(() => {
30410
- const Q = (ve) => ve instanceof Element ? !!ve.closest(
30410
+ const X = (ve) => ve instanceof Element ? !!ve.closest(
30411
30411
  [
30412
30412
  ".rte-agent-dropdown",
30413
30413
  ".rte-report-dropdown-overlay",
@@ -30418,7 +30418,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30418
30418
  ].join(",")
30419
30419
  ) : !1, oe = (ve) => {
30420
30420
  const ye = $.current, ce = ve.target;
30421
- ye && (ce instanceof Node && ye.contains(ce) || Q(ce) || Ee(!1));
30421
+ ye && (ce instanceof Node && ye.contains(ce) || X(ce) || Ee(!1));
30422
30422
  }, se = (ve) => {
30423
30423
  const ye = $.current, ce = ve.target;
30424
30424
  if (ye) {
@@ -30426,7 +30426,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30426
30426
  l || Ee(!0);
30427
30427
  return;
30428
30428
  }
30429
- Q(ce) || Ee(!1);
30429
+ X(ce) || Ee(!1);
30430
30430
  }
30431
30431
  };
30432
30432
  return document.addEventListener("mousedown", oe, !0), document.addEventListener("focusin", se, !0), () => {
@@ -30461,10 +30461,10 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30461
30461
  ti.current = qt;
30462
30462
  }, [qt]);
30463
30463
  const [xt, Ta] = ie(() => {
30464
- const Q = {};
30464
+ const X = {};
30465
30465
  return e.forEach((oe) => {
30466
- Ge(oe.type) && oe.key && (Q[oe.key] = 1);
30467
- }), Q;
30466
+ Ge(oe.type) && oe.key && (X[oe.key] = 1);
30467
+ }), X;
30468
30468
  });
30469
30469
  Hd({
30470
30470
  config: e,
@@ -30484,17 +30484,17 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30484
30484
  });
30485
30485
  const ai = Z(I);
30486
30486
  if (I !== ai.current && (ai.current = I, I)) {
30487
- const Q = {};
30487
+ const X = {};
30488
30488
  let oe = !1;
30489
30489
  e.forEach((se) => {
30490
30490
  if (Ge(se.type) && se.key) {
30491
30491
  const ve = I[se.key], ye = Array.isArray(ve) ? ve.filter((ce) => ce.trim().length > 0) : ve;
30492
30492
  if (Array.isArray(ye) && ye.length > 0) {
30493
30493
  const ce = se.maxCount ?? 9, ge = Math.min(ye.length + 1, ce);
30494
- xt[se.key] !== ge && (Q[se.key] = ge, oe = !0);
30494
+ xt[se.key] !== ge && (X[se.key] = ge, oe = !0);
30495
30495
  }
30496
30496
  }
30497
- }), oe && (ya(), Ta((se) => ({ ...se, ...Q })));
30497
+ }), oe && (ya(), Ta((se) => ({ ...se, ...X })));
30498
30498
  }
30499
30499
  const Oe = Vd({
30500
30500
  config: e,
@@ -30522,8 +30522,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30522
30522
  applyReportNameChipRef: hl
30523
30523
  });
30524
30524
  Td(Y, uc, [Oe]), Id(Y, oc, [Oe]), Ld(Y, sc, [Oe]), re(() => {
30525
- const Q = Y.current;
30526
- if (!Q || !z) return;
30525
+ const X = Y.current;
30526
+ if (!X || !z) return;
30527
30527
  const oe = (se) => {
30528
30528
  const ve = se.target;
30529
30529
  if (!ve) return;
@@ -30532,25 +30532,25 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30532
30532
  const ce = ye.dataset.key;
30533
30533
  if (!ce) return;
30534
30534
  const ge = en.current?.key === ce;
30535
- if (an.current && (ge || !Q.contains(ye)))
30535
+ if (an.current && (ge || !X.contains(ye)))
30536
30536
  return;
30537
- const xe = Q.contains(ye) ? ye : Q.querySelector(
30537
+ const xe = X.contains(ye) ? ye : X.querySelector(
30538
30538
  `[data-type="variable"][data-key="${ce}"]`
30539
30539
  );
30540
30540
  if (!xe || xe.getAttribute("data-report-url")) return;
30541
30541
  const Se = (xe.innerText || "").replace(/[\u200B\n]/g, "").trim(), Ne = xe.dataset.multiKey, ze = (Ne ? Oe.find((ct) => Ge(ct.type) && ct.key === Ne) : void 0)?.type === "multi-variable-select" ? "multi-variable-select" : "multi-variable";
30542
30542
  li(ce, Se, ze);
30543
30543
  };
30544
- return Q.addEventListener("focusout", oe), () => Q.removeEventListener("focusout", oe);
30545
- }, [Y, li, Oe, z]), yd(Y, [Oe]), hl.current = (Q, oe, se, ve) => {
30544
+ return X.addEventListener("focusout", oe), () => X.removeEventListener("focusout", oe);
30545
+ }, [Y, li, Oe, z]), yd(Y, [Oe]), hl.current = (X, oe, se, ve) => {
30546
30546
  const ye = Y.current;
30547
30547
  if (!ye) return;
30548
30548
  let ce = ye.querySelector(
30549
- `[data-type="variable"][data-key="${Q}"]`
30549
+ `[data-type="variable"][data-key="${X}"]`
30550
30550
  );
30551
30551
  if (ce && !document.body.contains(ce)) {
30552
30552
  const Se = document.querySelectorAll(
30553
- `.rte-editor [data-type="variable"][data-key="${Q}"]`
30553
+ `.rte-editor [data-type="variable"][data-key="${X}"]`
30554
30554
  );
30555
30555
  let Ne = null;
30556
30556
  Se.forEach((De) => {
@@ -30558,39 +30558,39 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30558
30558
  }), ce = Ne;
30559
30559
  }
30560
30560
  if (!ce) {
30561
- $t.current[Q] = { name: oe, url: se };
30561
+ $t.current[X] = { name: oe, url: se };
30562
30562
  return;
30563
30563
  }
30564
30564
  if (ce.getAttribute("data-report-url") === se) {
30565
- $t.current[Q] = { name: oe, url: se };
30565
+ $t.current[X] = { name: oe, url: se };
30566
30566
  return;
30567
30567
  }
30568
30568
  if (!ve?.forceApply) {
30569
30569
  const Se = ce.getAttribute("data-report-url"), Ne = (ce.innerText || "").replace(/[\u200B\n]/g, "").trim();
30570
30570
  if (!(!Se && Ne === "") && !(Se === se || Ne === se)) return;
30571
30571
  }
30572
- $t.current[Q] = { name: oe, url: se };
30572
+ $t.current[X] = { name: oe, url: se };
30573
30573
  const ge = ce.querySelector(".rte-report-dropdown-host");
30574
30574
  ge && (ge.style.display = "", ge.style.visibility = "", ge.classList.remove("hidden"), ge.classList.add("rte-report-dropdown-host-quiet"));
30575
30575
  const xe = [document.createTextNode(oe)];
30576
30576
  ge && xe.push(ge), ce.classList.remove("show-placeholder", "rte-variable-with-icon"), ce.classList.add("rte-report-name-chip"), ce.setAttribute("data-report-url", se), ce.setAttribute("data-report-name", oe), ce.contentEditable = "false", ce.replaceChildren(...xe), Qn(ce), document.dispatchEvent(
30577
30577
  new CustomEvent("rte-report-dropdown-force-close", {
30578
- detail: { key: Q }
30578
+ detail: { key: X }
30579
30579
  })
30580
30580
  ), setTimeout(() => {
30581
30581
  sn.current();
30582
30582
  }, 0);
30583
30583
  };
30584
30584
  const cc = ue(
30585
- (Q, oe, se) => {
30586
- Y.current && (oe === "report-url" ? (hl.current(Q, se.name, se.url, { forceApply: !0 }), setTimeout(() => {
30587
- _t.current(Q, se.url);
30588
- }, 0)) : (oe === "multi-variable" || oe === "multi-variable-select") && (hl.current(Q, se.name, se.url, { forceApply: !0 }), oe === "multi-variable-select" && setTimeout(() => {
30589
- _t.current(Q, se.url);
30585
+ (X, oe, se) => {
30586
+ Y.current && (oe === "report-url" ? (hl.current(X, se.name, se.url, { forceApply: !0 }), setTimeout(() => {
30587
+ _t.current(X, se.url);
30588
+ }, 0)) : (oe === "multi-variable" || oe === "multi-variable-select") && (hl.current(X, se.name, se.url, { forceApply: !0 }), oe === "multi-variable-select" && setTimeout(() => {
30589
+ _t.current(X, se.url);
30590
30590
  }, 0)));
30591
30591
  },
30592
30592
  [Y, _t]
30593
- ), dc = Oe.map((Q) => `${Q.type}:${Q.key ?? ""}:${Q.placeholder ?? ""}`).join("|"), fc = wd(
30593
+ ), dc = Oe.map((X) => `${X.type}:${X.key ?? ""}:${X.placeholder ?? ""}`).join("|"), fc = wd(
30594
30594
  Y,
30595
30595
  q,
30596
30596
  cc,
@@ -30603,12 +30603,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30603
30603
  const rn = Z(/* @__PURE__ */ new Set()), ni = Z(Oe), ri = Z(I);
30604
30604
  (ni.current !== Oe || ri.current !== I) && (ni.current = Oe, ri.current = I, rn.current = /* @__PURE__ */ new Set()), re(() => {
30605
30605
  if (!I || !Oe || Oe.length === 0) return;
30606
- const Q = Oe.filter((ge) => ge.type === "upload" && ge.key);
30607
- if (Q.length === 0) return;
30606
+ const X = Oe.filter((ge) => ge.type === "upload" && ge.key);
30607
+ if (X.length === 0) return;
30608
30608
  const oe = {}, se = (ge, xe) => {
30609
30609
  xe && (xe instanceof File ? oe[ge] = xe : typeof xe == "string" && xe.trim() && (oe[ge] = xe.trim()));
30610
30610
  };
30611
- for (const ge of Q) {
30611
+ for (const ge of X) {
30612
30612
  const xe = ge.key;
30613
30613
  if (rn.current.has(xe)) continue;
30614
30614
  const Se = I[xe], Ne = typeof ge.maxCount == "number" && ge.maxCount > 1;
@@ -30628,12 +30628,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30628
30628
  }
30629
30629
  }
30630
30630
  if (Object.keys(oe).length === 0) return;
30631
- for (const ge of Q)
30631
+ for (const ge of X)
30632
30632
  I[ge.key] !== void 0 && rn.current.add(ge.key);
30633
30633
  Bt((ge) => {
30634
30634
  const xe = { ...ge };
30635
30635
  let Se = !1;
30636
- for (const Ne of Q) {
30636
+ for (const Ne of X) {
30637
30637
  const De = Ne.key;
30638
30638
  if (I[De] === void 0) continue;
30639
30639
  if (typeof Ne.maxCount == "number" && Ne.maxCount > 1)
@@ -30684,12 +30684,12 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30684
30684
  ce = !0;
30685
30685
  };
30686
30686
  }, [I, Oe]);
30687
- const xa = Z(/* @__PURE__ */ new Set()), ii = Z(""), ui = (e || []).filter((Q) => Q.key && Q.type !== "report-module" && Q.type !== "markdown-module").map((Q) => `${Q.type}:${Q.key}`).join("|");
30687
+ const xa = Z(/* @__PURE__ */ new Set()), ii = Z(""), ui = (e || []).filter((X) => X.key && X.type !== "report-module" && X.type !== "markdown-module").map((X) => `${X.type}:${X.key}`).join("|");
30688
30688
  ii.current !== ui && (ii.current = ui, xa.current = /* @__PURE__ */ new Set()), re(() => {
30689
30689
  if (!I || !e || e.length === 0) return;
30690
- const Q = e.filter((se) => se.type === "report-url" && se.key), oe = e.filter((se) => se.type === "multi-variable-select" && se.key);
30691
- if (!(Q.length === 0 && oe.length === 0)) {
30692
- for (const se of Q) {
30690
+ const X = e.filter((se) => se.type === "report-url" && se.key), oe = e.filter((se) => se.type === "multi-variable-select" && se.key);
30691
+ if (!(X.length === 0 && oe.length === 0)) {
30692
+ for (const se of X) {
30693
30693
  const ve = se.key;
30694
30694
  if (xa.current.has(ve)) continue;
30695
30695
  const ye = I[ve] ?? I[`${ve}__url`];
@@ -30751,18 +30751,18 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30751
30751
  variablePortalsLength: oi.length
30752
30752
  }), mc = () => {
30753
30753
  if (b) return;
30754
- const Q = J.current;
30755
- if (!Q) return;
30756
- const oe = Math.ceil(Q.getBoundingClientRect().height || 0);
30754
+ const X = J.current;
30755
+ if (!X) return;
30756
+ const oe = Math.ceil(X.getBoundingClientRect().height || 0);
30757
30757
  oe > 0 && tn(oe), va.current = !0, ga.current = !1, ft.current && (window.clearTimeout(ft.current), ft.current = null);
30758
30758
  };
30759
30759
  re(() => {
30760
- const Q = () => {
30760
+ const X = () => {
30761
30761
  va.current && (ga.current = !0, ft.current && window.clearTimeout(ft.current), ft.current = window.setTimeout(() => {
30762
30762
  ft.current = null, va.current = !1, ga.current = !1, tn(null), window.requestAnimationFrame(() => Ca());
30763
30763
  }, 450));
30764
30764
  };
30765
- return window.addEventListener("focus", Q), () => window.removeEventListener("focus", Q);
30765
+ return window.addEventListener("focus", X), () => window.removeEventListener("focus", X);
30766
30766
  }, [Ca]), re(() => {
30767
30767
  !va.current || !ga.current || (ft.current && (window.clearTimeout(ft.current), ft.current = null), window.requestAnimationFrame(() => {
30768
30768
  window.requestAnimationFrame(() => {
@@ -30797,8 +30797,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30797
30797
  setVideoState: ba,
30798
30798
  videoFileInputRef: ke,
30799
30799
  activeVideoKeyRef: Ke,
30800
- onImagePreview: (Q) => {
30801
- ne(Q), Ce(!0);
30800
+ onImagePreview: (X) => {
30801
+ ne(X), Ce(!0);
30802
30802
  }
30803
30803
  }), Aa = jd({
30804
30804
  config: e,
@@ -30851,16 +30851,16 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30851
30851
  reportAnalyzeState: Zt,
30852
30852
  requireReportUrlAnalyze: un
30853
30853
  });
30854
- const on = ue((Q, oe) => {
30855
- delete $t.current[Q], Pa({ keys: [Q] }), oe === "report-url" && Ea((se) => ({
30854
+ const on = ue((X, oe) => {
30855
+ delete $t.current[X], Pa({ keys: [X] }), oe === "report-url" && Ea((se) => ({
30856
30856
  ...se,
30857
- [Q]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
30857
+ [X]: { status: "idle", modules: [], lastParsedUrl: void 0, error: void 0 }
30858
30858
  }));
30859
30859
  }, [Ea]), Ec = ue(
30860
- (Q) => {
30860
+ (X) => {
30861
30861
  ya();
30862
- const { nodeKey: oe, nodeType: se } = Nd(Q);
30863
- on(oe, se), Q.focus(), sn.current();
30862
+ const { nodeKey: oe, nodeType: se } = Nd(X);
30863
+ on(oe, se), X.focus(), sn.current();
30864
30864
  },
30865
30865
  [on, ya]
30866
30866
  ), yc = kd(
@@ -30943,8 +30943,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30943
30943
  className: "rte-footer-files-list",
30944
30944
  ref: He,
30945
30945
  onScroll: ma,
30946
- children: nt.map((Q, oe) => {
30947
- const se = Q.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(Q.name || ""), ve = Q.size < 1024 ? `${Q.size}B` : Q.size < 1024 * 1024 ? `${Math.round(Q.size / 1024)}KB` : `${(Q.size / (1024 * 1024)).toFixed(1)}MB`, ye = se ? URL.createObjectURL(Q) : "";
30946
+ children: nt.map((X, oe) => {
30947
+ const se = X.type?.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(X.name || ""), ve = X.size < 1024 ? `${X.size}B` : X.size < 1024 * 1024 ? `${Math.round(X.size / 1024)}KB` : `${(X.size / (1024 * 1024)).toFixed(1)}MB`, ye = se ? URL.createObjectURL(X) : "";
30948
30948
  return /* @__PURE__ */ he(
30949
30949
  "div",
30950
30950
  {
@@ -30964,14 +30964,14 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30964
30964
  },
30965
30965
  className: "rte-footer-file-thumb",
30966
30966
  src: ye,
30967
- alt: Q.name
30967
+ alt: X.name
30968
30968
  }
30969
30969
  ) : /* @__PURE__ */ V("div", { className: "rte-footer-file-icon", children: /* @__PURE__ */ V("svg", { style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ V("use", { xlinkHref: `#${(() => {
30970
- const ce = (Q.name || "").split(".").pop()?.toLowerCase() || "";
30970
+ const ce = (X.name || "").split(".").pop()?.toLowerCase() || "";
30971
30971
  return ["xls", "xla", "xlb", "xlc", "xlm", "xlsx", "xlt", "xlw", "csv", "tsv", "iif"].includes(ce) ? "icon-a-xlsxcsv" : ["doc", "docx", "dot", "odt", "rtf", "wiz"].includes(ce) ? "icon-docx" : ["ppt", "pptx", "pot", "ppa", "pps", "pwz"].includes(ce) ? "icon-ppt" : ["txt", "asm", "bat", "c", "cc", "conf", "cpp", "css", "cxx", "def", "dic", "eml", "h", "hh", "in", "js", "ksh", "php", "pkl", "rb", "tar", "tex", "ts", "xml"].includes(ce) ? "icon-txt" : ce === "pdf" ? "icon-pdf" : ["html", "htm", "json", "ics", "ifb"].includes(ce) ? "icon-a-htmljson" : ce === "md" ? "icon-md" : "icon-lianjie";
30972
30972
  })()}` }) }) }),
30973
30973
  /* @__PURE__ */ he("div", { className: "rte-footer-file-info", children: [
30974
- /* @__PURE__ */ V("span", { className: "rte-footer-file-name", title: Q.name, children: Q.name }),
30974
+ /* @__PURE__ */ V("span", { className: "rte-footer-file-name", title: X.name, children: X.name }),
30975
30975
  /* @__PURE__ */ V("span", { className: "rte-footer-file-size", children: ve })
30976
30976
  ] }),
30977
30977
  /* @__PURE__ */ V(
@@ -30998,7 +30998,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
30998
30998
  )
30999
30999
  ]
31000
31000
  },
31001
- `${Q.name}-${Q.size}-${oe}`
31001
+ `${X.name}-${X.size}-${oe}`
31002
31002
  );
31003
31003
  })
31004
31004
  }
@@ -31016,7 +31016,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31016
31016
  "div",
31017
31017
  {
31018
31018
  ref: Y,
31019
- className: `rte-editor ${e.length === 0 ? "rte-editor-default" : ""} ${Kr && c ? "rte-editor-empty" : ""}`,
31019
+ className: `rte-editor ${e.length === 0 ? "rte-editor-default" : ""} ${Kr && c ? "rte-editor-empty" : ""} ${e.some((X) => X.type === "tag") ? "rte-editor-with-agent" : ""}`,
31020
31020
  contentEditable: e.length === 0,
31021
31021
  suppressContentEditableWarning: !0,
31022
31022
  "data-placeholder": c,
@@ -31029,8 +31029,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31029
31029
  ya(), Aa();
31030
31030
  },
31031
31031
  onKeyDown: Tc,
31032
- onPaste: (Q) => {
31033
- ya(), gc(Q);
31032
+ onPaste: (X) => {
31033
+ ya(), gc(X);
31034
31034
  }
31035
31035
  }
31036
31036
  ),
@@ -31051,8 +31051,8 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31051
31051
  ref: ke,
31052
31052
  className: "rte-file-input",
31053
31053
  accept: "video/*",
31054
- onChange: (Q) => {
31055
- const oe = Q.target.files?.[0], se = Ke.current;
31054
+ onChange: (X) => {
31055
+ const oe = X.target.files?.[0], se = Ke.current;
31056
31056
  oe && oe.size > 1024 * 1024 * 1024 ? W.warning("视频文件不能超过1GB") : oe && se && pc(se, oe), Ke.current = null, ke.current && (ke.current.value = "");
31057
31057
  }
31058
31058
  }
@@ -31070,14 +31070,14 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31070
31070
  {
31071
31071
  placement: "topLeft",
31072
31072
  menu: {
31073
- items: i.filter((Q) => Q.isShowNew !== 1).map((Q) => ({
31074
- key: Q.key,
31073
+ items: i.filter((X) => X.isShowNew !== 1).map((X) => ({
31074
+ key: X.key,
31075
31075
  label: /* @__PURE__ */ he("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
31076
- Q.icon && /* @__PURE__ */ V("i", { className: Q.icon }),
31077
- /* @__PURE__ */ V("span", { children: Q.label })
31076
+ X.icon && /* @__PURE__ */ V("i", { className: X.icon }),
31077
+ /* @__PURE__ */ V("span", { children: X.label })
31078
31078
  ] }),
31079
31079
  onClick: () => {
31080
- u?.(Q);
31080
+ u?.(X);
31081
31081
  }
31082
31082
  }))
31083
31083
  },
@@ -31090,7 +31090,7 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31090
31090
  ] })
31091
31091
  }
31092
31092
  ) }),
31093
- !e.find((Q) => Q.type === "tag") && /* @__PURE__ */ he($l, { children: [
31093
+ !e.find((X) => X.type === "tag") && /* @__PURE__ */ he($l, { children: [
31094
31094
  /* @__PURE__ */ V(
31095
31095
  "div",
31096
31096
  {
@@ -31119,9 +31119,9 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31119
31119
  /* @__PURE__ */ V("span", { className: "rte-brand-text", style: { marginLeft: "4px" }, children: "SealSeek 2.0" })
31120
31120
  ] }),
31121
31121
  (() => {
31122
- const Q = e.find((se) => se.type === "tag");
31123
- if (!Q || !Q.text) return null;
31124
- const oe = i.find((se) => se.label === Q.text);
31122
+ const X = e.find((se) => se.type === "tag");
31123
+ if (!X || !X.text) return null;
31124
+ const oe = i.find((se) => se.label === X.text);
31125
31125
  return !oe || oe.points === void 0 || oe.points === null ? null : /* @__PURE__ */ he("div", { className: "rte-points-badge", style: { position: "relative" }, children: [
31126
31126
  /* @__PURE__ */ V("i", { className: "iconfont icon-jifen", style: { marginRight: "4px", fontSize: "16px" } }),
31127
31127
  /* @__PURE__ */ he("span", { style: { fontSize: "16px", lineHeight: "22px" }, children: [
@@ -31148,10 +31148,10 @@ const { RangePicker: Zy } = Rc, eT = ({ host: e, onChange: t }) => {
31148
31148
  Xn,
31149
31149
  {
31150
31150
  style: { display: "none" },
31151
- src: X,
31151
+ src: Q,
31152
31152
  preview: {
31153
31153
  visible: be,
31154
- onVisibleChange: (Q) => Ce(Q)
31154
+ onVisibleChange: (X) => Ce(X)
31155
31155
  }
31156
31156
  }
31157
31157
  ),