@univerjs/sheets-conditional-formatting-ui 0.8.0-nightly.202505261607 → 0.8.0-nightly.202505281606

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/es/index.js CHANGED
@@ -1,116 +1,116 @@
1
- var cr = Object.defineProperty;
2
- var ur = (t, e, r) => e in t ? cr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Se = (t, e, r) => ur(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { CommandType as me, ICommandService as te, IUniverInstanceService as z, ColorKit as mn, BooleanNumber as le, LocaleService as re, UniverInstanceType as D, Tools as Bt, get as dr, set as hr, createInterceptorKey as fn, InterceptorManager as vr, Inject as O, Disposable as ue, Injector as fe, Rectangle as ye, generateRandomId as gr, ObjectMatrix as Me, Range as be, toDisposable as pn, InterceptorEffectEnum as mr, DependentOn as Cn, IConfigService as yn, Plugin as bn, merge as In, registerDependencies as fr, touchDependencies as kt } from "@univerjs/core";
5
- import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as U, AddConditionalRuleMutation as se, CFNumberOperator as P, getColorScaleFromValue as pr, iconMap as Ve, DEFAULT_BG_COLOR as Cr, DEFAULT_FONT_COLOR as yr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as $, createDefaultValueByValueType as Je, removeUndefinedAttr as br, createDefaultValue as mt, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as Ir, getOppositeOperator as Ht, compareWithNumber as Sr, EMPTY_ICON_TYPE as _r, SetCfCommand as Rr, AddCfCommand as Sn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as Re, MoveConditionalRuleMutation as _n, ClearWorksheetCfCommand as Rn, DeleteCfCommand as Yt, MoveCfCommand as Tr, ClearRangeCfCommand as xr, createDefaultRule as we, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, DeleteConditionalRuleMutationUndoFactory as Ae, AddConditionalRuleMutationUndoFactory as Tn, setConditionalRuleMutationUndoFactory as De, isRangesEqual as wr, ConditionalFormattingService as xn, DEFAULT_PADDING as Er, DEFAULT_WIDTH as Nr, UniverSheetsConditionalFormattingPlugin as wn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Mr } from "@univerjs/sheets-conditional-formatting";
6
- import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as Vr, SetWorksheetActiveOperation as Wt, setEndForRange as kr, SetSelectionsOperation as Fr, checkRangesEditablePermission as ft, rangeToDiscreteRange as Ur, findAllRectangle as pt, createTopMatrixFromMatrix as Ct, SheetPermissionCheckController as Pr, WorksheetEditPermission as En, WorksheetSetCellStylePermission as Nn, RangeProtectionPermissionEditPoint as Mn, WorkbookEditablePermission as Vn, RefRangeService as Or, handleDefaultRangeChangeWithEffectRefCommands as Lr, SheetInterceptorService as qt, INTERCEPTOR_POINT as $r, ClearSelectionFormatCommand as Ar, ClearSelectionAllCommand as Dr, RangeMergeUtil as Hr, AFTER_CELL_EDIT as jr } from "@univerjs/sheets";
7
- import { useDependency as q, useSidebarClick as Nt, ComponentManager as kn, ILayoutService as Br, useScrollYOverContainer as Wr, ISidebarService as Fn, useObservable as qr, getMenuHiddenObservable as Gr, MenuItemType as zr, RibbonDataGroup as Zr, IMenuManagerService as Yr } from "@univerjs/ui";
1
+ var lr = Object.defineProperty;
2
+ var cr = (t, e, r) => e in t ? lr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var Se = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { CommandType as me, ICommandService as te, IUniverInstanceService as Z, ColorKit as mn, BooleanNumber as le, LocaleService as re, UniverInstanceType as A, Tools as Bt, get as ur, set as dr, createInterceptorKey as fn, InterceptorManager as hr, Inject as P, Disposable as ue, Injector as fe, Rectangle as ye, generateRandomId as vr, ObjectMatrix as Me, Range as be, toDisposable as pn, InterceptorEffectEnum as gr, DependentOn as Cn, IConfigService as yn, Plugin as bn, merge as In, registerDependencies as mr, touchDependencies as kt } from "@univerjs/core";
5
+ import { ConditionalFormattingRuleModel as Q, CFSubRuleType as F, CFRuleType as L, AddConditionalRuleMutation as se, CFNumberOperator as U, getColorScaleFromValue as fr, iconMap as Ve, DEFAULT_BG_COLOR as pr, DEFAULT_FONT_COLOR as Cr, defaultDataBarPositiveColor as Ke, defaultDataBarNativeColor as Xe, CFValueType as D, createDefaultValueByValueType as Je, removeUndefinedAttr as yr, createDefaultValue as mt, CFTextOperator as H, CFTimePeriodOperator as ve, iconGroup as br, getOppositeOperator as Ht, compareWithNumber as Ir, EMPTY_ICON_TYPE as Sr, SetCfCommand as _r, AddCfCommand as Sn, SetConditionalRuleMutation as _e, DeleteConditionalRuleMutation as we, MoveConditionalRuleMutation as _n, ClearWorksheetCfCommand as wn, DeleteCfCommand as Yt, MoveCfCommand as wr, ClearRangeCfCommand as Rr, createDefaultRule as xe, ConditionalFormattingViewModel as it, SHEET_CONDITIONAL_FORMATTING_PLUGIN as st, DeleteConditionalRuleMutationUndoFactory as $e, AddConditionalRuleMutationUndoFactory as Rn, setConditionalRuleMutationUndoFactory as Ae, isRangesEqual as Tr, ConditionalFormattingService as Tn, DEFAULT_PADDING as xr, DEFAULT_WIDTH as Er, UniverSheetsConditionalFormattingPlugin as xn, CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH as Nr } from "@univerjs/sheets-conditional-formatting";
6
+ import { getSheetCommandTarget as Ie, SheetsSelectionsService as je, RemoveSheetMutation as Mr, SetWorksheetActiveOperation as Wt, setEndForRange as Vr, SetSelectionsOperation as kr, checkRangesEditablePermission as ft, rangeToDiscreteRange as Fr, findAllRectangle as pt, createTopMatrixFromMatrix as Ct, SheetPermissionCheckController as Lr, WorksheetEditPermission as En, WorksheetSetCellStylePermission as Nn, RangeProtectionPermissionEditPoint as Mn, WorkbookEditablePermission as Vn, RefRangeService as Ur, handleDefaultRangeChangeWithEffectRefCommands as Pr, SheetInterceptorService as qt, INTERCEPTOR_POINT as Or, ClearSelectionFormatCommand as Dr, ClearSelectionAllCommand as $r, RangeMergeUtil as Ar, AFTER_CELL_EDIT as Hr } from "@univerjs/sheets";
7
+ import { useDependency as q, useSidebarClick as Nt, ILayoutService as jr, useScrollYOverContainer as Br, ISidebarService as kn, useObservable as Wr, ComponentManager as qr, getMenuHiddenObservable as Gr, MenuItemType as Zr, RibbonDataGroup as zr, IMenuManagerService as Yr } from "@univerjs/ui";
8
8
  import { jsx as c, jsxs as k, Fragment as jt } from "react/jsx-runtime";
9
9
  import { forwardRef as oe, useRef as ge, createElement as de, useMemo as J, useState as N, useEffect as K } from "react";
10
10
  import { Dropdown as Gt, clsx as X, ColorPicker as Kr, borderClassName as Be, Select as ce, InputNumber as ke, RadioGroup as Xr, Radio as Kt, Checkbox as yt, Input as Jr, Button as Xt, Tooltip as Jt, ReactGridLayout as Qr } from "@univerjs/design";
11
- import { serializeRange as Un, deserializeRangeWithSheet as ei } from "@univerjs/engine-formula";
11
+ import { serializeRange as Fn, deserializeRangeWithSheet as ei } from "@univerjs/engine-formula";
12
12
  import { FormulaEditor as Mt, RangeSelector as ti } from "@univerjs/sheets-formula-ui";
13
- import { useHighlightRange as ni, ISheetClipboardService as ri, COPY_TYPE as Qt, PREDEFINED_HOOK_NAME as Ft, virtualizeDiscreteRanges as Pn, getRepeatRange as ii, SheetSkeletonManagerService as On, IAutoFillService as si, APPLY_TYPE as Ut, getAutoFillRepeatRange as oi, getCurrentRangeDisable$ as ai, IFormatPainterService as li, FormatPainterStatus as Pt } from "@univerjs/sheets-ui";
14
- import { Observable as Ne, debounceTime as en, merge as Ln } from "rxjs";
15
- import { IRenderManagerService as $n } from "@univerjs/engine-render";
13
+ import { useHighlightRange as ni, ISheetClipboardService as ri, COPY_TYPE as Qt, PREDEFINED_HOOK_NAME as Ft, virtualizeDiscreteRanges as Ln, getRepeatRange as ii, SheetSkeletonManagerService as Un, IAutoFillService as si, APPLY_TYPE as Lt, getAutoFillRepeatRange as oi, getCurrentRangeDisable$ as ai, IFormatPainterService as li, FormatPainterStatus as Ut } from "@univerjs/sheets-ui";
14
+ import { Observable as Ne, debounceTime as en, merge as Pn } from "rxjs";
15
+ import { IRenderManagerService as On } from "@univerjs/engine-render";
16
16
  import { bufferTime as ci, filter as tn, debounceTime as nn } from "rxjs/operators";
17
- const An = {
17
+ const Dn = {
18
18
  type: me.COMMAND,
19
19
  id: "sheet.command.add-average-conditional-rule",
20
20
  handler(t, e) {
21
21
  if (!e)
22
22
  return !1;
23
- const { ranges: r, style: n, stopIfTrue: i, operator: s } = e, o = t.get(Q), d = t.get(te), a = t.get(z), h = Ie(a);
23
+ const { ranges: r, style: n, stopIfTrue: i, operator: s } = e, o = t.get(Q), u = t.get(te), a = t.get(Z), h = Ie(a);
24
24
  if (!h) return !1;
25
- const { unitId: l, subUnitId: u } = h, v = o.createCfId(l, u), p = {
25
+ const { unitId: l, subUnitId: d } = h, v = o.createCfId(l, d), p = {
26
26
  ranges: r,
27
27
  cfId: v,
28
28
  stopIfTrue: !!i,
29
29
  rule: {
30
- type: U.highlightCell,
30
+ type: L.highlightCell,
31
31
  subType: F.average,
32
32
  operator: s,
33
33
  style: n
34
34
  }
35
35
  };
36
- return d.executeCommand(se.id, { unitId: l, subUnitId: u, rule: p });
36
+ return u.executeCommand(se.id, { unitId: l, subUnitId: d, rule: p });
37
37
  }
38
- }, Dn = {
38
+ }, $n = {
39
39
  type: me.COMMAND,
40
40
  id: "sheet.command.add-color-scale-conditional-rule",
41
41
  handler(t, e) {
42
42
  if (!e)
43
43
  return !1;
44
- const { ranges: r, config: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(te), d = t.get(z), a = Ie(d);
44
+ const { ranges: r, config: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(te), u = t.get(Z), a = Ie(u);
45
45
  if (!a) return !1;
46
- const { unitId: h, subUnitId: l } = a, u = s.createCfId(h, l), v = {
46
+ const { unitId: h, subUnitId: l } = a, d = s.createCfId(h, l), v = {
47
47
  ranges: r,
48
- cfId: u,
48
+ cfId: d,
49
49
  stopIfTrue: !!i,
50
50
  rule: {
51
- type: U.colorScale,
51
+ type: L.colorScale,
52
52
  config: n
53
53
  }
54
54
  };
55
55
  return o.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
56
56
  }
57
- }, Hn = {
57
+ }, An = {
58
58
  type: me.COMMAND,
59
59
  id: "sheet.command.add-data-bar-conditional-rule",
60
60
  handler(t, e) {
61
61
  if (!e)
62
62
  return !1;
63
- const { ranges: r, min: n, max: i, nativeColor: s, positiveColor: o, isGradient: d, stopIfTrue: a, isShowValue: h } = e, l = t.get(Q), u = t.get(z), v = Ie(u);
63
+ const { ranges: r, min: n, max: i, nativeColor: s, positiveColor: o, isGradient: u, stopIfTrue: a, isShowValue: h } = e, l = t.get(Q), d = t.get(Z), v = Ie(d);
64
64
  if (!v) return !1;
65
- const { unitId: p, subUnitId: y } = v, f = t.get(te), R = l.createCfId(p, y), I = {
65
+ const { unitId: p, subUnitId: y } = v, f = t.get(te), w = l.createCfId(p, y), I = {
66
66
  ranges: r,
67
- cfId: R,
67
+ cfId: w,
68
68
  stopIfTrue: !!a,
69
69
  rule: {
70
- type: U.dataBar,
70
+ type: L.dataBar,
71
71
  isShowValue: h,
72
72
  config: {
73
73
  min: n,
74
74
  max: i,
75
75
  nativeColor: s,
76
76
  positiveColor: o,
77
- isGradient: d
77
+ isGradient: u
78
78
  }
79
79
  }
80
80
  };
81
81
  return f.executeCommand(se.id, { unitId: p, subUnitId: y, rule: I });
82
82
  }
83
- }, jn = {
83
+ }, Hn = {
84
84
  type: me.COMMAND,
85
85
  id: "sheet.command.add-duplicate-values-conditional-rule",
86
86
  handler(t, e) {
87
87
  if (!e)
88
88
  return !1;
89
- const { ranges: r, style: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(te), d = t.get(z), a = Ie(d);
89
+ const { ranges: r, style: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(te), u = t.get(Z), a = Ie(u);
90
90
  if (!a) return !1;
91
- const { unitId: h, subUnitId: l } = a, u = s.createCfId(h, l), v = {
91
+ const { unitId: h, subUnitId: l } = a, d = s.createCfId(h, l), v = {
92
92
  ranges: r,
93
- cfId: u,
93
+ cfId: d,
94
94
  stopIfTrue: !!i,
95
95
  rule: {
96
- type: U.highlightCell,
96
+ type: L.highlightCell,
97
97
  subType: F.duplicateValues,
98
98
  style: n
99
99
  }
100
100
  };
101
101
  return o.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
102
102
  }
103
- }, Bn = {
103
+ }, jn = {
104
104
  type: me.COMMAND,
105
105
  id: "sheet.command.add-number-conditional-rule",
106
106
  handler(t, e) {
107
107
  if (!e)
108
108
  return !1;
109
- const { ranges: r, style: n, stopIfTrue: i, operator: s, value: o } = e, d = t.get(Q), a = t.get(te), h = t.get(z), l = Ie(h);
109
+ const { ranges: r, style: n, stopIfTrue: i, operator: s, value: o } = e, u = t.get(Q), a = t.get(te), h = t.get(Z), l = Ie(h);
110
110
  if (!l) return !1;
111
- const { unitId: u, subUnitId: v } = l, p = d.createCfId(u, v);
111
+ const { unitId: d, subUnitId: v } = l, p = u.createCfId(d, v);
112
112
  let y;
113
- if ([P.between, P.notBetween].includes(s)) {
113
+ if ([U.between, U.notBetween].includes(s)) {
114
114
  const f = o;
115
115
  if (f.length !== 2 || !Array.isArray(f))
116
116
  return !1;
@@ -119,7 +119,7 @@ const An = {
119
119
  cfId: p,
120
120
  stopIfTrue: !!i,
121
121
  rule: {
122
- type: U.highlightCell,
122
+ type: L.highlightCell,
123
123
  subType: F.number,
124
124
  operator: s,
125
125
  style: n,
@@ -135,7 +135,7 @@ const An = {
135
135
  cfId: p,
136
136
  stopIfTrue: !!i,
137
137
  rule: {
138
- type: U.highlightCell,
138
+ type: L.highlightCell,
139
139
  subType: F.number,
140
140
  operator: s,
141
141
  style: n,
@@ -143,93 +143,93 @@ const An = {
143
143
  }
144
144
  };
145
145
  }
146
- return a.executeCommand(se.id, { unitId: u, subUnitId: v, rule: y });
146
+ return a.executeCommand(se.id, { unitId: d, subUnitId: v, rule: y });
147
147
  }
148
- }, Wn = {
148
+ }, Bn = {
149
149
  type: me.COMMAND,
150
150
  id: "sheet.command.add-rank-conditional-rule",
151
151
  handler(t, e) {
152
152
  if (!e)
153
153
  return !1;
154
- const { ranges: r, style: n, stopIfTrue: i, isPercent: s, isBottom: o, value: d } = e, a = t.get(Q), h = t.get(z), l = t.get(te), u = Ie(h);
155
- if (!u) return !1;
156
- const { unitId: v, subUnitId: p } = u, y = a.createCfId(v, p), f = {
154
+ const { ranges: r, style: n, stopIfTrue: i, isPercent: s, isBottom: o, value: u } = e, a = t.get(Q), h = t.get(Z), l = t.get(te), d = Ie(h);
155
+ if (!d) return !1;
156
+ const { unitId: v, subUnitId: p } = d, y = a.createCfId(v, p), f = {
157
157
  ranges: r,
158
158
  cfId: y,
159
159
  stopIfTrue: !!i,
160
160
  rule: {
161
- type: U.highlightCell,
161
+ type: L.highlightCell,
162
162
  subType: F.rank,
163
163
  isPercent: s,
164
164
  isBottom: o,
165
165
  style: n,
166
- value: d
166
+ value: u
167
167
  }
168
168
  };
169
169
  return l.executeCommand(se.id, { unitId: v, subUnitId: p, rule: f });
170
170
  }
171
- }, qn = {
171
+ }, Wn = {
172
172
  type: me.COMMAND,
173
173
  id: "sheet.command.add-text-conditional-rule",
174
174
  handler(t, e) {
175
175
  if (!e)
176
176
  return !1;
177
- const { ranges: r, style: n, stopIfTrue: i, operator: s, value: o } = e, d = t.get(Q), a = t.get(z), h = Ie(a);
177
+ const { ranges: r, style: n, stopIfTrue: i, operator: s, value: o } = e, u = t.get(Q), a = t.get(Z), h = Ie(a);
178
178
  if (!h) return !1;
179
- const { unitId: l, subUnitId: u } = h, v = t.get(te), p = d.createCfId(l, u), y = {
179
+ const { unitId: l, subUnitId: d } = h, v = t.get(te), p = u.createCfId(l, d), y = {
180
180
  ranges: r,
181
181
  cfId: p,
182
182
  stopIfTrue: !!i,
183
183
  rule: {
184
- type: U.highlightCell,
184
+ type: L.highlightCell,
185
185
  subType: F.text,
186
186
  operator: s,
187
187
  style: n,
188
188
  value: o
189
189
  }
190
190
  };
191
- return v.executeCommand(se.id, { unitId: l, subUnitId: u, rule: y });
191
+ return v.executeCommand(se.id, { unitId: l, subUnitId: d, rule: y });
192
192
  }
193
- }, Gn = {
193
+ }, qn = {
194
194
  type: me.COMMAND,
195
195
  id: "sheet.command.add-time-period-conditional-rule",
196
196
  handler(t, e) {
197
197
  if (!e)
198
198
  return !1;
199
- const { ranges: r, style: n, stopIfTrue: i, operator: s } = e, o = t.get(Q), d = t.get(z), a = t.get(te), h = Ie(d);
199
+ const { ranges: r, style: n, stopIfTrue: i, operator: s } = e, o = t.get(Q), u = t.get(Z), a = t.get(te), h = Ie(u);
200
200
  if (!h) return !1;
201
- const { unitId: l, subUnitId: u } = h, v = o.createCfId(l, u), p = {
201
+ const { unitId: l, subUnitId: d } = h, v = o.createCfId(l, d), p = {
202
202
  ranges: r,
203
203
  cfId: v,
204
204
  stopIfTrue: !!i,
205
205
  rule: {
206
- type: U.highlightCell,
206
+ type: L.highlightCell,
207
207
  subType: F.timePeriod,
208
208
  operator: s,
209
209
  style: n
210
210
  }
211
211
  };
212
- return a.executeCommand(se.id, { unitId: l, subUnitId: u, rule: p });
212
+ return a.executeCommand(se.id, { unitId: l, subUnitId: d, rule: p });
213
213
  }
214
- }, zn = {
214
+ }, Gn = {
215
215
  type: me.COMMAND,
216
216
  id: "sheet.command.add-uniqueValues-conditional-rule",
217
217
  handler(t, e) {
218
218
  if (!e)
219
219
  return !1;
220
- const { ranges: r, style: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(z), d = t.get(te), a = Ie(o);
220
+ const { ranges: r, style: n, stopIfTrue: i } = e, s = t.get(Q), o = t.get(Z), u = t.get(te), a = Ie(o);
221
221
  if (!a) return !1;
222
- const { unitId: h, subUnitId: l } = a, u = s.createCfId(h, l), v = {
222
+ const { unitId: h, subUnitId: l } = a, d = s.createCfId(h, l), v = {
223
223
  ranges: r,
224
- cfId: u,
224
+ cfId: d,
225
225
  stopIfTrue: !!i,
226
226
  rule: {
227
- type: U.highlightCell,
227
+ type: L.highlightCell,
228
228
  subType: F.uniqueValues,
229
229
  style: n
230
230
  }
231
231
  };
232
- return d.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
232
+ return u.executeCommand(se.id, { unitId: h, subUnitId: l, rule: v });
233
233
  }
234
234
  };
235
235
  var ae = function() {
@@ -248,8 +248,8 @@ var ae = function() {
248
248
  e.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[i]) && (r[n[i]] = t[n[i]]);
249
249
  return r;
250
250
  }, he = oe(function(t, e) {
251
- var r = t.icon, n = t.id, i = t.className, s = t.extend, o = ui(t, ["icon", "id", "className", "extend"]), d = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = ge("_".concat(vi()));
252
- return Zn(r, "".concat(n), { defIds: r.defIds, idSuffix: a.current }, ae({ ref: e, className: d }, o), s);
251
+ var r = t.icon, n = t.id, i = t.className, s = t.extend, o = ui(t, ["icon", "id", "className", "extend"]), u = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = ge("_".concat(vi()));
252
+ return Zn(r, "".concat(n), { defIds: r.defIds, idSuffix: a.current }, ae({ ref: e, className: u }, o), s);
253
253
  });
254
254
  function Zn(t, e, r, n, i) {
255
255
  return de(t.tag, ae(ae({ key: e }, di(t, r, i)), n), (hi(t, r).children || []).map(function(s, o) {
@@ -259,122 +259,122 @@ function Zn(t, e, r, n, i) {
259
259
  function di(t, e, r) {
260
260
  var n = ae({}, t.attrs);
261
261
  r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), t.tag === "mask" && n.id && (n.id = n.id + e.idSuffix), Object.entries(n).forEach(function(s) {
262
- var o = s[0], d = s[1];
263
- o === "mask" && typeof d == "string" && (n[o] = d.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
262
+ var o = s[0], u = s[1];
263
+ o === "mask" && typeof u == "string" && (n[o] = u.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
264
264
  });
265
265
  var i = e.defIds;
266
266
  return !i || i.length === 0 || (t.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + e.idSuffix), Object.entries(n).forEach(function(s) {
267
- var o = s[0], d = s[1];
268
- typeof d == "string" && (n[o] = d.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
267
+ var o = s[0], u = s[1];
268
+ typeof u == "string" && (n[o] = u.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
269
269
  })), n;
270
270
  }
271
271
  function hi(t, e) {
272
272
  var r, n = e.defIds;
273
273
  return !n || n.length === 0 ? t : t.tag === "defs" && (!((r = t.children) === null || r === void 0) && r.length) ? ae(ae({}, t), { children: t.children.map(function(i) {
274
- return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ? ae(ae({}, i), { attrs: ae(ae({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
274
+ return typeof i.attrs.id == "string" && n && n.includes(i.attrs.id) ? ae(ae({}, i), { attrs: ae(ae({}, i.attrs), { id: i.attrs.id + e.idSuffix }) }) : i;
275
275
  }) }) : t;
276
276
  }
277
277
  function vi() {
278
278
  return Math.random().toString(36).substring(2, 8);
279
279
  }
280
280
  he.displayName = "UniverIcon";
281
- var gi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Yn = oe(function(t, e) {
281
+ var gi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.65791 1.30005C3.77355 1.30005 3.05664 2.01696 3.05664 2.90132V12.8588C3.05664 13.8755 3.88086 14.6998 4.89759 14.6998H9.1016C11.2233 14.6998 12.9433 12.9798 12.9433 10.8581C12.9433 9.13925 11.8145 7.68407 10.2578 7.1934C10.8806 6.56856 11.2655 5.70659 11.2655 4.75472C11.2655 2.84676 9.71883 1.30005 7.81087 1.30005H4.65791ZM4.25664 2.90132C4.25664 2.6797 4.4363 2.50005 4.65791 2.50005H7.81087C9.05609 2.50005 10.0655 3.5095 10.0655 4.75472C10.0655 5.99993 9.05609 7.00938 7.81087 7.00938H4.25664V2.90132ZM4.25664 12.8588V8.21636H9.1016C10.5606 8.21636 11.7433 9.39909 11.7433 10.8581C11.7433 12.317 10.5606 13.4998 9.1016 13.4998H4.89759C4.5436 13.4998 4.25664 13.2128 4.25664 12.8588Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, zn = oe(function(t, e) {
282
282
  return de(he, Object.assign({}, t, {
283
- id: "bold-single",
283
+ id: "bold-icon",
284
284
  ref: e,
285
285
  icon: gi
286
286
  }));
287
287
  });
288
- Yn.displayName = "BoldSingle";
289
- var mi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993.866699 5.9313.866699H10.069C10.4004.866699 10.669 1.13533 10.669 1.4667 10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667zM1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443 14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443zM6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928 9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171 10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778 9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539 9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263 6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539 5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778 6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gt = oe(function(t, e) {
288
+ zn.displayName = "BoldIcon";
289
+ var mi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.12398 8.30171C6.35829 8.0674 6.73819 8.0674 6.97251 8.30171L8.00007 9.32928L9.02764 8.30171C9.26195 8.0674 9.64185 8.0674 9.87617 8.30171C10.1105 8.53603 10.1105 8.91593 9.87617 9.15024L8.8486 10.1778L9.87617 11.2054C10.1105 11.4397 10.1105 11.8196 9.87617 12.0539C9.64185 12.2882 9.26195 12.2882 9.02764 12.0539L8.00007 11.0263L6.97251 12.0539C6.73819 12.2882 6.35829 12.2882 6.12398 12.0539C5.88966 11.8196 5.88966 11.4397 6.12398 11.2054L7.15154 10.1778L6.12398 9.15024C5.88966 8.91593 5.88966 8.53603 6.12398 8.30171Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V12.5331C3.15332 13.9691 4.31738 15.1332 5.75332 15.1332H10.2465C11.6825 15.1332 12.8465 13.9691 12.8465 12.5331V6.82217C12.8465 5.93851 12.1302 5.22217 11.2465 5.22217H4.75332ZM4.35332 6.82217C4.35332 6.60125 4.53241 6.42217 4.75332 6.42217H11.2465C11.4674 6.42217 11.6465 6.60125 11.6465 6.82217V12.5331C11.6465 13.3063 11.0197 13.9332 10.2465 13.9332H5.75332C4.98012 13.9332 4.35332 13.3063 4.35332 12.5331V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, gt = oe(function(t, e) {
290
290
  return de(he, Object.assign({}, t, {
291
- id: "delete-single",
291
+ id: "delete-icon",
292
292
  ref: e,
293
293
  icon: mi
294
294
  }));
295
295
  });
296
- gt.displayName = "DeleteSingle";
297
- var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M10.3014 1.70389C9.85268 0.479568 8.12109 0.479557 7.67238 1.70389L4.72235 9.75326C4.60832 10.0644 4.76811 10.4091 5.07924 10.5231C5.39038 10.6371 5.73504 10.4773 5.84907 10.1662L6.99975 7.02646C7.03588 7.03324 7.07314 7.03679 7.11123 7.03679H10.9778L12.1247 10.1662C12.2387 10.4773 12.5834 10.6371 12.8945 10.5231C13.2057 10.4091 13.3654 10.0644 13.2514 9.75326L10.3014 1.70389ZM10.538 5.83679L9.17467 2.11682C9.11057 1.94192 8.8632 1.94192 8.7991 2.11682L7.43576 5.83679H10.538Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Kn = oe(function(t, e) {
296
+ gt.displayName = "DeleteIcon";
297
+ var fi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M10.3014 1.70389C9.85268 0.479568 8.12109 0.479557 7.67238 1.70389L4.72235 9.75326C4.60832 10.0644 4.76811 10.4091 5.07924 10.5231C5.39038 10.6371 5.73504 10.4773 5.84907 10.1662L6.99975 7.02646C7.03588 7.03324 7.07314 7.03679 7.11123 7.03679H10.9778L12.1247 10.1662C12.2387 10.4773 12.5834 10.6371 12.8945 10.5231C13.2057 10.4091 13.3654 10.0644 13.2514 9.75326L10.3014 1.70389ZM10.538 5.83679L9.17467 2.11682C9.11057 1.94192 8.8632 1.94192 8.7991 2.11682L7.43576 5.83679H10.538Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Yn = oe(function(t, e) {
298
298
  return de(he, Object.assign({}, t, {
299
- id: "font-color",
299
+ id: "font-color-double-icon",
300
300
  ref: e,
301
301
  icon: fi
302
302
  }));
303
303
  });
304
- Kn.displayName = "FontColor";
305
- var pi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, Xn = oe(function(t, e) {
304
+ Yn.displayName = "FontColorDoubleIcon";
305
+ var pi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, Kn = oe(function(t, e) {
306
306
  return de(he, Object.assign({}, t, {
307
- id: "increase-single",
307
+ id: "increase-icon",
308
308
  ref: e,
309
309
  icon: pi
310
310
  }));
311
311
  });
312
- Xn.displayName = "IncreaseSingle";
313
- var Ci = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z" } }] }, Jn = oe(function(t, e) {
312
+ Kn.displayName = "IncreaseIcon";
313
+ var Ci = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.80385 1.40005H11.9997C12.3311 1.40005 12.5997 1.66868 12.5997 2.00005C12.5997 2.33143 12.3311 2.60005 11.9997 2.60005H10.1185L7.12251 13.4001H9.33324C9.66461 13.4001 9.93324 13.6687 9.93324 14.0001C9.93324 14.3314 9.66461 14.6001 9.33324 14.6001H6.34785C6.33847 14.6003 6.32905 14.6003 6.31962 14.6001H3.9999C3.66853 14.6001 3.3999 14.3314 3.3999 14.0001C3.3999 13.6687 3.66853 13.4001 3.9999 13.4001H5.87719L8.87322 2.60005H6.66641C6.33504 2.60005 6.06641 2.33143 6.06641 2.00005C6.06641 1.66868 6.33504 1.40005 6.66641 1.40005H9.52916C9.61698 1.37929 9.71064 1.3781 9.80385 1.40005Z" } }] }, Xn = oe(function(t, e) {
314
314
  return de(he, Object.assign({}, t, {
315
- id: "italic-single",
315
+ id: "italic-icon",
316
316
  ref: e,
317
317
  icon: Ci
318
318
  }));
319
319
  });
320
- Jn.displayName = "ItalicSingle";
321
- var yi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, zt = oe(function(t, e) {
320
+ Xn.displayName = "ItalicIcon";
321
+ var yi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Zt = oe(function(t, e) {
322
322
  return de(he, Object.assign({}, t, {
323
- id: "more-down-single",
323
+ id: "more-down-icon",
324
324
  ref: e,
325
325
  icon: yi
326
326
  }));
327
327
  });
328
- zt.displayName = "MoreDownSingle";
329
- var bi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Qn = oe(function(t, e) {
328
+ Zt.displayName = "MoreDownIcon";
329
+ var bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, Jn = oe(function(t, e) {
330
330
  return de(he, Object.assign({}, t, {
331
- id: "paint-bucket",
331
+ id: "paint-bucket-double-icon",
332
332
  ref: e,
333
333
  icon: bi
334
334
  }));
335
335
  });
336
- Qn.displayName = "PaintBucket";
337
- var Ii = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4 7 3.44772 6.55228 3 6 3 5.44772 3 5 3.44772 5 4 5 4.55228 5.44772 5 6 5zM6 9C6.55228 9 7 8.55229 7 8 7 7.44772 6.55228 7 6 7 5.44772 7 5 7.44772 5 8 5 8.55229 5.44772 9 6 9zM7 12C7 12.5523 6.55228 13 6 13 5.44772 13 5 12.5523 5 12 5 11.4477 5.44772 11 6 11 6.55228 11 7 11.4477 7 12zM10 5C10.5523 5 11 4.55228 11 4 11 3.44772 10.5523 3 10 3 9.44771 3 9 3.44772 9 4 9 4.55228 9.44771 5 10 5zM11 8C11 8.55229 10.5523 9 10 9 9.44771 9 9 8.55229 9 8 9 7.44772 9.44771 7 10 7 10.5523 7 11 7.44772 11 8zM10 13C10.5523 13 11 12.5523 11 12 11 11.4477 10.5523 11 10 11 9.44771 11 9 11.4477 9 12 9 12.5523 9.44771 13 10 13z" } }] }] }, er = oe(function(t, e) {
336
+ Jn.displayName = "PaintBucketDoubleIcon";
337
+ var Ii = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z" } }, { tag: "path", attrs: { d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z" } }, { tag: "path", attrs: { d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z" } }, { tag: "path", attrs: { d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z" } }, { tag: "path", attrs: { d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z" } }, { tag: "path", attrs: { d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z" } }] }] }, Qn = oe(function(t, e) {
338
338
  return de(he, Object.assign({}, t, {
339
- id: "sequence-single",
339
+ id: "sequence-icon",
340
340
  ref: e,
341
341
  icon: Ii
342
342
  }));
343
343
  });
344
- er.displayName = "SequenceSingle";
345
- var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_436_41", style: { maskType: "alpha" }, width: 17, height: 17, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0.35 0.48H16.35V16.48H0.35z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_436_41)", fillRule: "evenodd", clipRule: "evenodd" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.27177 13.714L13.5855 2.40025L14.434 3.24878L3.1203 14.5625L2.27177 13.714Z" } }, { tag: "path", attrs: { fill: "#E5E5E5", d: "M4.2603 1.82495L2.89617 1.82495C2.23343 1.82495 1.69617 2.36221 1.69617 3.02495L1.69617 4.38908L3.02617 4.38908L3.02617 3.15495L4.2603 3.15495L4.2603 1.82495ZM15.0092 4.38908L15.0092 3.02495C15.0092 2.36221 14.4719 1.82495 13.8092 1.82495L12.4451 1.82495L12.4451 3.15495L13.6792 3.15495L13.6792 4.38908L15.0092 4.38908ZM6.98856 1.82495L6.98856 3.15495L9.71681 3.15495L9.71681 1.82495L6.98856 1.82495ZM15.0092 7.11734L13.6792 7.11734L13.6792 9.84559L15.0092 9.84559L15.0092 7.11734ZM15.0092 12.5739L13.6792 12.5739L13.6792 13.808L12.4451 13.808L12.4451 15.138L13.8092 15.138C14.4719 15.138 15.0092 14.6007 15.0092 13.938L15.0092 12.5739ZM9.71681 15.138L9.71681 13.808L6.98856 13.808L6.98856 15.138L9.71681 15.138ZM4.2603 15.138L4.2603 13.808L3.02617 13.808L3.02617 12.5739L1.69617 12.5739L1.69617 13.938C1.69617 14.6007 2.23343 15.138 2.89617 15.138L4.2603 15.138ZM1.69617 9.8456L3.02617 9.8456L3.02617 7.11734L1.69617 7.11734L1.69617 9.8456Z" } }] }] }, ot = oe(function(t, e) {
344
+ Qn.displayName = "SequenceIcon";
345
+ var Si = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 17", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_436_41", width: 17, height: 17, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M.35.48H16.35V16.48H.35z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_436_41)", fillRule: "evenodd", clipRule: "evenodd" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.27177 13.714L13.5855 2.40025L14.434 3.24878L3.1203 14.5625L2.27177 13.714Z" } }, { tag: "path", attrs: { fill: "#E5E5E5", d: "M4.2603 1.82495L2.89617 1.82495C2.23343 1.82495 1.69617 2.36221 1.69617 3.02495L1.69617 4.38908L3.02617 4.38908L3.02617 3.15495L4.2603 3.15495L4.2603 1.82495ZM15.0092 4.38908L15.0092 3.02495C15.0092 2.36221 14.4719 1.82495 13.8092 1.82495L12.4451 1.82495L12.4451 3.15495L13.6792 3.15495L13.6792 4.38908L15.0092 4.38908ZM6.98856 1.82495L6.98856 3.15495L9.71681 3.15495L9.71681 1.82495L6.98856 1.82495ZM15.0092 7.11734L13.6792 7.11734L13.6792 9.84559L15.0092 9.84559L15.0092 7.11734ZM15.0092 12.5739L13.6792 12.5739L13.6792 13.808L12.4451 13.808L12.4451 15.138L13.8092 15.138C14.4719 15.138 15.0092 14.6007 15.0092 13.938L15.0092 12.5739ZM9.71681 15.138L9.71681 13.808L6.98856 13.808L6.98856 15.138L9.71681 15.138ZM4.2603 15.138L4.2603 13.808L3.02617 13.808L3.02617 12.5739L1.69617 12.5739L1.69617 13.938C1.69617 14.6007 2.23343 15.138 2.89617 15.138L4.2603 15.138ZM1.69617 9.8456L3.02617 9.8456L3.02617 7.11734L1.69617 7.11734L1.69617 9.8456Z" } }] }] }, ot = oe(function(t, e) {
346
346
  return de(he, Object.assign({}, t, {
347
- id: "slash-single",
347
+ id: "slash-icon",
348
348
  ref: e,
349
349
  icon: Si
350
350
  }));
351
351
  });
352
- ot.displayName = "SlashSingle";
353
- var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304 4.06338 3.99943 4.15123 5.32084 4.90099 6.47062 5.08199 6.7482 5.45374 6.82648 5.73131 6.64548 6.00888 6.46448 6.08716 6.09273 5.90616 5.81516 5.36418 4.98402 5.35768 4.13897 5.69797 3.52412 6.035 2.91515 6.78176 2.40996 8.00033 2.40996 9.19423 2.40996 10.0017 2.93409 10.5236 3.46755 10.7871 3.73682 10.9756 4.00712 11.0974 4.20903 11.158 4.30951 11.2013 4.39164 11.2284 4.44625 11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992 12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437 12.3685 4.05298 12.367 4.04953 12.3629 4.03993 12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282 12.2632 3.83203 12.2043 3.72072 12.1249 3.58908 11.9666 3.32674 11.7235 2.97805 11.3814 2.62834 10.6921 1.92381 9.59192 1.20996 8.00033 1.20996zM2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869 10.2475 12.703 9.26939 13.5898 8.00009 13.5898 6.63323 13.5898 5.77631 13.0502 5.25534 12.528 4.99021 12.2623 4.80823 11.9965 4.69365 11.7993 4.63659 11.7011 4.59698 11.6211 4.5727 11.5686 4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516 3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247 3.42118 11.9263 3.42262 11.9301 3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713 3.44956 11.9965 3.46418 12.0304 3.48334 12.0719 3.52161 12.1547 3.57828 12.2682 3.65608 12.4021 3.81124 12.6692 4.0534 13.0223 4.40584 13.3756 5.12 14.0914 6.27196 14.7898 8.00009 14.7898 9.82574 14.7898 11.3236 13.5101 11.6085 11.8955 11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999 14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999 1.51953 8.33127 1.78816 8.5999 2.11953 8.5999z" } }] }, tr = oe(function(t, e) {
352
+ ot.displayName = "SlashIcon";
353
+ var _i = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.00033 1.20996C6.43345 1.20996 5.23596 1.88077 4.64804 2.94304C4.06338 3.99943 4.15123 5.32084 4.90099 6.47062C5.08199 6.7482 5.45374 6.82648 5.73131 6.64548C6.00888 6.46448 6.08716 6.09273 5.90616 5.81516C5.36418 4.98402 5.35768 4.13897 5.69797 3.52412C6.035 2.91515 6.78176 2.40996 8.00033 2.40996C9.19423 2.40996 10.0017 2.93409 10.5236 3.46755C10.7871 3.73682 10.9756 4.00712 11.0974 4.20903C11.158 4.30951 11.2013 4.39164 11.2284 4.44625C11.2419 4.47351 11.2514 4.49377 11.2568 4.50588L11.2621 4.51771C11.3901 4.82216 11.7407 4.96686 12.046 4.83992C12.3519 4.71267 12.4968 4.36149 12.3695 4.05552L11.8231 4.28278C12.3695 4.05552 12.3697 4.0558 12.3695 4.05552L12.3691 4.05437L12.3685 4.05298L12.367 4.04953L12.3629 4.03993L12.3498 4.01036C12.3388 3.98619 12.3234 3.95326 12.3033 3.91282C12.2632 3.83203 12.2043 3.72072 12.1249 3.58908C11.9666 3.32674 11.7235 2.97805 11.3814 2.62834C10.6921 1.92381 9.59192 1.20996 8.00033 1.20996Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.11953 8.5999H7.88935C10.1109 9.46549 10.5895 10.7649 10.4268 11.6869C10.2475 12.703 9.26939 13.5898 8.00009 13.5898C6.63323 13.5898 5.77631 13.0502 5.25534 12.528C4.99021 12.2623 4.80823 11.9965 4.69365 11.7993C4.63659 11.7011 4.59698 11.6211 4.5727 11.5686C4.56059 11.5424 4.55236 11.5231 4.54774 11.512L4.54352 11.5016C4.4267 11.193 4.0823 11.0363 3.77279 11.1516C3.46228 11.2673 3.30438 11.6129 3.4201 11.9234L3.9649 11.7203C3.4201 11.9234 3.41998 11.9231 3.4201 11.9234L3.4206 11.9247L3.42118 11.9263L3.42262 11.9301L3.42661 11.9403C3.42977 11.9484 3.43394 11.9588 3.43914 11.9713C3.44956 11.9965 3.46418 12.0304 3.48334 12.0719C3.52161 12.1547 3.57828 12.2682 3.65608 12.4021C3.81124 12.6692 4.0534 13.0223 4.40584 13.3756C5.12 14.0914 6.27196 14.7898 8.00009 14.7898C9.82574 14.7898 11.3236 13.5101 11.6085 11.8955C11.812 10.7422 11.3901 9.55402 10.2665 8.5999H13.8804C14.2117 8.5999 14.4803 8.33127 14.4803 7.9999C14.4803 7.66853 14.2117 7.3999 13.8804 7.3999H8.01411C8.0048 7.39968 7.99551 7.39969 7.98625 7.3999H2.11953C1.78816 7.3999 1.51953 7.66853 1.51953 7.9999C1.51953 8.33127 1.78816 8.5999 2.11953 8.5999Z" } }] }, er = oe(function(t, e) {
354
354
  return de(he, Object.assign({}, t, {
355
- id: "strikethrough-single",
355
+ id: "strikethrough-icon",
356
356
  ref: e,
357
357
  icon: _i
358
358
  }));
359
359
  });
360
- tr.displayName = "StrikethroughSingle";
361
- var Ri = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237 3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667 10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237 11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667 6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237zM2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663 2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663 13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641z" } }] }, nr = oe(function(t, e) {
360
+ er.displayName = "StrikethroughIcon";
361
+ var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.46416 2.03237C4.46416 1.701 4.19553 1.43237 3.86416 1.43237C3.53279 1.43237 3.26416 1.701 3.26416 2.03237V7.33338C3.26416 10.0313 5.35834 12.2667 7.9999 12.2667C10.6415 12.2667 12.7356 10.0313 12.7356 7.33338V2.03237C12.7356 1.701 12.467 1.43237 12.1356 1.43237C11.8043 1.43237 11.5356 1.701 11.5356 2.03237V7.33338C11.5356 9.42194 9.92656 11.0667 7.9999 11.0667C6.07325 11.0667 4.46416 9.42194 4.46416 7.33338V2.03237Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.66641 13.4663C2.33504 13.4663 2.06641 13.7349 2.06641 14.0663C2.06641 14.3977 2.33504 14.6663 2.66641 14.6663H13.3331C13.6644 14.6663 13.9331 14.3977 13.9331 14.0663C13.9331 13.7349 13.6644 13.4663 13.3331 13.4663H2.66641Z" } }] }, tr = oe(function(t, e) {
362
362
  return de(he, Object.assign({}, t, {
363
- id: "underline-single",
363
+ id: "underline-icon",
364
364
  ref: e,
365
- icon: Ri
365
+ icon: wi
366
366
  }));
367
367
  });
368
- nr.displayName = "UnderlineSingle";
368
+ tr.displayName = "UnderlineIcon";
369
369
  const Fe = (t) => {
370
- const { color: e, onChange: r, disable: n = !1, Icon: i = Qn, className: s } = t, o = J(() => new mn(e), [e]), d = () => {
370
+ const { color: e, onChange: r, disable: n = !1, Icon: i = Jn, className: s } = t, o = J(() => new mn(e), [e]), u = () => {
371
371
  const a = {
372
372
  className: X("univer-fill-primary-600", n && s),
373
373
  extend: { colorChannel1: o.isValid ? e : "" }
374
374
  };
375
375
  return /* @__PURE__ */ c(i, { ...a });
376
376
  };
377
- return n ? d() : /* @__PURE__ */ c(
377
+ return n ? u() : /* @__PURE__ */ c(
378
378
  Gt,
379
379
  {
380
380
  overlay: /* @__PURE__ */ c("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ c(Kr, { value: e, onChange: r }) }),
@@ -382,31 +382,31 @@ const Fe = (t) => {
382
382
  "span",
383
383
  {
384
384
  className: X("univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-p-1 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100", s),
385
- children: d()
385
+ children: u()
386
386
  }
387
387
  )
388
388
  }
389
389
  );
390
390
  }, We = (t) => {
391
- var s, o, d, a, h;
391
+ var s, o, u, a, h;
392
392
  const e = t.rule;
393
393
  if (!e) return null;
394
394
  const r = J(() => {
395
- if (e.type === U.colorScale) {
396
- const l = e.config.map((p, y) => ({ color: new mn(p.color), value: y })), u = l.length - 1;
397
- return new Array(5).fill("").map((p, y, f) => y * u / (f.length - 1)).map((p) => pr(l, p));
395
+ if (e.type === L.colorScale) {
396
+ const l = e.config.map((p, y) => ({ color: new mn(p.color), value: y })), d = l.length - 1;
397
+ return new Array(5).fill("").map((p, y, f) => y * d / (f.length - 1)).map((p) => fr(l, p));
398
398
  }
399
399
  return null;
400
400
  }, [e]), n = J(() => {
401
- if (e.type === U.iconSet)
401
+ if (e.type === L.iconSet)
402
402
  return e.config.map((l) => {
403
- const u = Ve[l.iconType];
404
- return u && u[Number(l.iconId)];
403
+ const d = Ve[l.iconType];
404
+ return d && d[Number(l.iconId)];
405
405
  });
406
406
  }, [e]), i = "univer-pointer-events-none univer-flex univer-h-5 univer-min-w-[72px] univer-items-center univer-justify-center univer-text-xs";
407
407
  switch (e.type) {
408
- case U.dataBar: {
409
- const { isGradient: l } = e.config, u = l ? `linear-gradient(to right, ${e.config.positiveColor || Ke}, rgb(255 255 255))` : e.config.positiveColor, v = l ? `linear-gradient(to right, rgb(255 255 255),${e.config.nativeColor || Xe})` : e.config.nativeColor;
408
+ case L.dataBar: {
409
+ const { isGradient: l } = e.config, d = l ? `linear-gradient(to right, ${e.config.positiveColor || Ke}, rgb(255 255 255))` : e.config.positiveColor, v = l ? `linear-gradient(to right, rgb(255 255 255),${e.config.nativeColor || Xe})` : e.config.nativeColor;
410
410
  return /* @__PURE__ */ k("div", { className: i, children: [
411
411
  /* @__PURE__ */ c(
412
412
  "div",
@@ -423,36 +423,36 @@ const Fe = (t) => {
423
423
  {
424
424
  className: "univer-h-full univer-w-1/2 univer-border univer-border-solid",
425
425
  style: {
426
- background: u,
426
+ background: d,
427
427
  borderColor: (o = e.config.positiveColor) != null ? o : Ke
428
428
  }
429
429
  }
430
430
  )
431
431
  ] });
432
432
  }
433
- case U.colorScale:
434
- return r && /* @__PURE__ */ c("div", { className: i, children: r.map((l, u) => /* @__PURE__ */ c(
433
+ case L.colorScale:
434
+ return r && /* @__PURE__ */ c("div", { className: i, children: r.map((l, d) => /* @__PURE__ */ c(
435
435
  "div",
436
436
  {
437
437
  className: "univer-h-full",
438
438
  style: { width: `${100 / r.length}%`, background: l }
439
439
  },
440
- u
440
+ d
441
441
  )) });
442
- case U.iconSet:
443
- return n && /* @__PURE__ */ c("div", { className: i, children: n.map((l, u) => l ? /* @__PURE__ */ c("img", { className: "univer-h-full", src: l, draggable: !1 }, u) : /* @__PURE__ */ c(ot, {}, u)) });
444
- case U.highlightCell: {
445
- const { ul: l, st: u, it: v, bl: p, bg: y, cl: f } = e.style, R = (l == null ? void 0 : l.s) === le.TRUE, I = (u == null ? void 0 : u.s) === le.TRUE, T = v === le.TRUE, w = p === le.TRUE, x = (d = y == null ? void 0 : y.rgb) != null ? d : Cr, g = (a = f == null ? void 0 : f.rgb) != null ? a : yr, b = {
446
- textDecoration: (h = `${R ? "underline" : ""} ${I ? "line-through" : ""}`.replace(/^ /, "")) != null ? h : void 0,
447
- backgroundColor: x,
442
+ case L.iconSet:
443
+ return n && /* @__PURE__ */ c("div", { className: i, children: n.map((l, d) => l ? /* @__PURE__ */ c("img", { className: "univer-h-full", src: l, draggable: !1 }, d) : /* @__PURE__ */ c(ot, {}, d)) });
444
+ case L.highlightCell: {
445
+ const { ul: l, st: d, it: v, bl: p, bg: y, cl: f } = e.style, w = (l == null ? void 0 : l.s) === le.TRUE, I = (d == null ? void 0 : d.s) === le.TRUE, R = v === le.TRUE, x = p === le.TRUE, T = (u = y == null ? void 0 : y.rgb) != null ? u : pr, g = (a = f == null ? void 0 : f.rgb) != null ? a : Cr, b = {
446
+ textDecoration: (h = `${w ? "underline" : ""} ${I ? "line-through" : ""}`.replace(/^ /, "")) != null ? h : void 0,
447
+ backgroundColor: T,
448
448
  color: g
449
449
  };
450
450
  return /* @__PURE__ */ c(
451
451
  "div",
452
452
  {
453
453
  className: X(i, {
454
- "univer-font-bold": w,
455
- "univer-italic": T
454
+ "univer-font-bold": x,
455
+ "univer-italic": R
456
456
  }),
457
457
  style: b,
458
458
  children: "123"
@@ -460,25 +460,25 @@ const Fe = (t) => {
460
460
  );
461
461
  }
462
462
  }
463
- }, at = X("univer-mt-5 univer-px-1 univer-py-2 univer-rounded", Be), Ee = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), Ot = (t) => {
463
+ }, at = X("univer-mt-5 univer-px-1 univer-py-2 univer-rounded", Be), Ee = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), Pt = (t) => {
464
464
  var y;
465
- const { type: e, className: r, onChange: n, id: i, value: s } = t, o = q(z), d = o.getCurrentUnitForType(D.UNIVER_SHEET).getUnitId(), a = (y = o.getCurrentUnitForType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : y.getSheetId(), h = J(() => String(s).startsWith("=") ? String(s) : "=", [s]), l = J(() => [$.max, $.min, "none"].includes(e) ? { disabled: !0 } : [$.percent, $.percentile].includes(e) ? {
465
+ const { type: e, className: r, onChange: n, id: i, value: s } = t, o = q(Z), u = o.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), a = (y = o.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : y.getSheetId(), h = J(() => String(s).startsWith("=") ? String(s) : "=", [s]), l = J(() => [D.max, D.min, "none"].includes(e) ? { disabled: !0 } : [D.percent, D.percentile].includes(e) ? {
466
466
  min: 0,
467
467
  max: 100
468
468
  } : {
469
469
  min: Number.MIN_SAFE_INTEGER,
470
470
  max: Number.MAX_SAFE_INTEGER
471
- }, [e]), u = ge(null), [v, p] = N(!1);
471
+ }, [e]), d = ge(null), [v, p] = N(!1);
472
472
  return Nt((f) => {
473
473
  var I;
474
- ((I = u.current) == null ? void 0 : I.isClickOutSide(f)) && p(!1);
475
- }), e === $.formula ? /* @__PURE__ */ c("div", { className: "univer-ml-1 univer-w-full", children: /* @__PURE__ */ c(
474
+ ((I = d.current) == null ? void 0 : I.isClickOutSide(f)) && p(!1);
475
+ }), e === D.formula ? /* @__PURE__ */ c("div", { className: "univer-ml-1 univer-w-full", children: /* @__PURE__ */ c(
476
476
  Mt,
477
477
  {
478
- ref: u,
478
+ ref: d,
479
479
  className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent dark:!univer-bg-gray-700 dark:!univer-text-white hover:univer-border-primary-600", Be),
480
480
  initValue: h,
481
- unitId: d,
481
+ unitId: u,
482
482
  subUnitId: a,
483
483
  isFocus: v,
484
484
  onChange: (f = "") => {
@@ -487,38 +487,38 @@ const Fe = (t) => {
487
487
  onFocus: () => p(!0)
488
488
  }
489
489
  ) }) : /* @__PURE__ */ c(ke, { className: r, value: Number(t.value) || 0, onChange: (f) => t.onChange(f || 0), ...l });
490
- }, Ti = (t) => {
491
- var L;
492
- const { interceptorManager: e } = t, r = q(re), n = ((L = t.rule) == null ? void 0 : L.type) === U.colorScale ? t.rule : void 0, i = [Ee($.num, r), Ee($.percent, r), Ee($.percentile, r), Ee($.formula, r)], s = [Ee($.min, r), ...i], o = [Ee("none", r), ...i], d = [Ee($.max, r), ...i], [a, h] = N(() => {
490
+ }, Ri = (t) => {
491
+ var O;
492
+ const { interceptorManager: e } = t, r = q(re), n = ((O = t.rule) == null ? void 0 : O.type) === L.colorScale ? t.rule : void 0, i = [Ee(D.num, r), Ee(D.percent, r), Ee(D.percentile, r), Ee(D.formula, r)], s = [Ee(D.min, r), ...i], o = [Ee("none", r), ...i], u = [Ee(D.max, r), ...i], [a, h] = N(() => {
493
493
  var _;
494
- const m = $.min;
494
+ const m = D.min;
495
495
  return n && ((_ = n.config[0]) == null ? void 0 : _.value.type) || m;
496
- }), [l, u] = N(() => {
496
+ }), [l, d] = N(() => {
497
497
  var _;
498
498
  const m = "none";
499
499
  return !n || n.config.length !== 3 ? m : ((_ = n.config[1]) == null ? void 0 : _.value.type) || m;
500
500
  }), [v, p] = N(() => {
501
501
  var _;
502
- const m = $.max;
502
+ const m = D.max;
503
503
  return n && ((_ = n.config[n.config.length - 1]) == null ? void 0 : _.value.type) || m;
504
504
  }), [y, f] = N(() => {
505
505
  if (!n)
506
506
  return 10;
507
507
  const _ = n.config[0];
508
508
  return (_ == null ? void 0 : _.value.value) === void 0 ? 10 : _ == null ? void 0 : _.value.value;
509
- }), [R, I] = N(() => {
509
+ }), [w, I] = N(() => {
510
510
  var j;
511
511
  if (!n || n.config.length !== 3)
512
512
  return 50;
513
513
  const _ = (j = n.config[1]) == null ? void 0 : j.value.value;
514
514
  return _ === void 0 ? 50 : _;
515
- }), [T, w] = N(() => {
515
+ }), [R, x] = N(() => {
516
516
  var j;
517
517
  if (!n)
518
518
  return 90;
519
519
  const _ = (j = n.config[n.config.length - 1]) == null ? void 0 : j.value.value;
520
520
  return _ === void 0 ? 90 : _;
521
- }), [x, g] = N(() => {
521
+ }), [T, g] = N(() => {
522
522
  var _;
523
523
  const m = "#d0d9fb";
524
524
  return n && ((_ = n.config[0]) == null ? void 0 : _.color) || m;
@@ -531,14 +531,14 @@ const Fe = (t) => {
531
531
  const m = "#2e55ef";
532
532
  return n && ((_ = n.config[n.config.length - 1]) == null ? void 0 : _.color) || m;
533
533
  }), E = J(() => (m) => {
534
- const { minType: _, medianType: j, maxType: Y, minValue: pe, medianValue: Ce, maxValue: Ue, minColor: Pe, medianColor: A, maxColor: B } = m, G = [];
535
- return G.push({ color: Pe, value: { type: _, value: pe } }), j !== "none" && G.push({ color: A, value: { type: j, value: Ce } }), G.push({ color: B, value: { type: Y, value: Ue } }), { config: G.map((ee, ne) => ({ ...ee, index: ne })), type: U.colorScale };
534
+ const { minType: _, medianType: j, maxType: Y, minValue: pe, medianValue: Ce, maxValue: Le, minColor: Ue, medianColor: $, maxColor: B } = m, G = [];
535
+ return G.push({ color: Ue, value: { type: _, value: pe } }), j !== "none" && G.push({ color: $, value: { type: j, value: Ce } }), G.push({ color: B, value: { type: Y, value: Le } }), { config: G.map((ee, ne) => ({ ...ee, index: ne })), type: L.colorScale };
536
536
  }, []);
537
537
  K(() => e.intercept(e.getInterceptPoints().submit, {
538
538
  handler() {
539
- return E({ minType: a, medianType: l, maxType: v, minValue: y, medianValue: R, maxValue: T, minColor: x, medianColor: b, maxColor: C });
539
+ return E({ minType: a, medianType: l, maxType: v, minValue: y, medianValue: w, maxValue: R, minColor: T, medianColor: b, maxColor: C });
540
540
  }
541
- }), [E, a, l, v, y, R, T, x, b, C, e]);
541
+ }), [E, a, l, v, y, w, R, T, b, C, e]);
542
542
  const V = (m) => {
543
543
  t.onChange(E(m));
544
544
  };
@@ -550,7 +550,7 @@ const Fe = (t) => {
550
550
  children: r.t("sheet.cf.panel.styleRule")
551
551
  }
552
552
  ),
553
- /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: E({ minType: a, medianType: l, maxType: v, minValue: y, medianValue: R, maxValue: T, minColor: x, medianColor: b, maxColor: C }) }) }),
553
+ /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: E({ minType: a, medianType: l, maxType: v, minValue: y, medianValue: w, maxValue: R, minColor: T, medianColor: b, maxColor: C }) }) }),
554
554
  /* @__PURE__ */ c(
555
555
  "div",
556
556
  {
@@ -573,9 +573,9 @@ const Fe = (t) => {
573
573
  medianType: l,
574
574
  maxType: v,
575
575
  minValue: _,
576
- medianValue: R,
577
- maxValue: T,
578
- minColor: x,
576
+ medianValue: w,
577
+ maxValue: R,
578
+ minColor: T,
579
579
  medianColor: b,
580
580
  maxColor: C
581
581
  });
@@ -583,7 +583,7 @@ const Fe = (t) => {
583
583
  }
584
584
  ),
585
585
  /* @__PURE__ */ c(
586
- Ot,
586
+ Pt,
587
587
  {
588
588
  id: "min",
589
589
  className: "univer-ml-1",
@@ -595,9 +595,9 @@ const Fe = (t) => {
595
595
  medianType: l,
596
596
  maxType: v,
597
597
  minValue: m,
598
- medianValue: R,
599
- maxValue: T,
600
- minColor: x,
598
+ medianValue: w,
599
+ maxValue: R,
600
+ minColor: T,
601
601
  medianColor: b,
602
602
  maxColor: C
603
603
  });
@@ -608,15 +608,15 @@ const Fe = (t) => {
608
608
  Fe,
609
609
  {
610
610
  className: "univer-ml-1",
611
- color: x,
611
+ color: T,
612
612
  onChange: (m) => {
613
613
  g(m), V({
614
614
  minType: a,
615
615
  medianType: l,
616
616
  maxType: v,
617
617
  minValue: y,
618
- medianValue: R,
619
- maxValue: T,
618
+ medianValue: w,
619
+ maxValue: R,
620
620
  minColor: m,
621
621
  medianColor: b,
622
622
  maxColor: C
@@ -640,7 +640,7 @@ const Fe = (t) => {
640
640
  options: o,
641
641
  value: l,
642
642
  onChange: (m) => {
643
- u(m);
643
+ d(m);
644
644
  const _ = Je(m, 50);
645
645
  I(_), V({
646
646
  minType: a,
@@ -648,8 +648,8 @@ const Fe = (t) => {
648
648
  maxType: v,
649
649
  minValue: y,
650
650
  medianValue: _,
651
- maxValue: T,
652
- minColor: x,
651
+ maxValue: R,
652
+ minColor: T,
653
653
  medianColor: b,
654
654
  maxColor: C
655
655
  });
@@ -657,11 +657,11 @@ const Fe = (t) => {
657
657
  }
658
658
  ),
659
659
  /* @__PURE__ */ c(
660
- Ot,
660
+ Pt,
661
661
  {
662
662
  id: "median",
663
663
  className: "univer-ml-1",
664
- value: R,
664
+ value: w,
665
665
  type: l,
666
666
  onChange: (m) => {
667
667
  I(m), V({
@@ -670,8 +670,8 @@ const Fe = (t) => {
670
670
  maxType: v,
671
671
  minValue: y,
672
672
  medianValue: m,
673
- maxValue: T,
674
- minColor: x,
673
+ maxValue: R,
674
+ minColor: T,
675
675
  medianColor: b,
676
676
  maxColor: C
677
677
  });
@@ -689,9 +689,9 @@ const Fe = (t) => {
689
689
  medianType: l,
690
690
  maxType: v,
691
691
  minValue: y,
692
- medianValue: R,
693
- maxValue: T,
694
- minColor: x,
692
+ medianValue: w,
693
+ maxValue: R,
694
+ minColor: T,
695
695
  medianColor: m,
696
696
  maxColor: C
697
697
  });
@@ -711,19 +711,19 @@ const Fe = (t) => {
711
711
  ce,
712
712
  {
713
713
  className: "univer-flex-shrink-0",
714
- options: d,
714
+ options: u,
715
715
  value: v,
716
716
  onChange: (m) => {
717
717
  p(m);
718
718
  const _ = Je(m, 90);
719
- w(_), V({
719
+ x(_), V({
720
720
  minType: a,
721
721
  medianType: l,
722
722
  maxType: m,
723
723
  minValue: y,
724
- medianValue: R,
724
+ medianValue: w,
725
725
  maxValue: _,
726
- minColor: x,
726
+ minColor: T,
727
727
  medianColor: b,
728
728
  maxColor: C
729
729
  });
@@ -731,21 +731,21 @@ const Fe = (t) => {
731
731
  }
732
732
  ),
733
733
  /* @__PURE__ */ c(
734
- Ot,
734
+ Pt,
735
735
  {
736
736
  id: "max",
737
737
  className: "univer-ml-1",
738
- value: T,
738
+ value: R,
739
739
  type: v,
740
740
  onChange: (m) => {
741
- w(m), V({
741
+ x(m), V({
742
742
  minType: a,
743
743
  medianType: l,
744
744
  maxType: v,
745
745
  minValue: y,
746
- medianValue: R,
746
+ medianValue: w,
747
747
  maxValue: m,
748
- minColor: x,
748
+ minColor: T,
749
749
  medianColor: b,
750
750
  maxColor: C
751
751
  });
@@ -763,9 +763,9 @@ const Fe = (t) => {
763
763
  medianType: l,
764
764
  maxType: v,
765
765
  minValue: y,
766
- medianValue: R,
767
- maxValue: T,
768
- minColor: x,
766
+ medianValue: w,
767
+ maxValue: R,
768
+ minColor: T,
769
769
  medianColor: b,
770
770
  maxColor: m
771
771
  });
@@ -774,31 +774,31 @@ const Fe = (t) => {
774
774
  )
775
775
  ] })
776
776
  ] });
777
- }, Oe = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), rn = (t) => {
777
+ }, Pe = (t, e) => ({ label: e.t(`sheet.cf.valueType.${t}`), value: t }), rn = (t) => {
778
778
  var f;
779
- const { onChange: e, className: r, value: n, type: i, id: s, disabled: o = !1 } = t, d = q(z), a = d.getCurrentUnitOfType(D.UNIVER_SHEET).getUnitId(), h = (f = d.getCurrentUnitOfType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), l = ge(null), [u, v] = N(!1);
780
- Nt((R) => {
781
- var T;
782
- ((T = l.current) == null ? void 0 : T.isClickOutSide(R)) && v(!1);
779
+ const { onChange: e, className: r, value: n, type: i, id: s, disabled: o = !1 } = t, u = q(Z), a = u.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId(), h = (f = u.getCurrentUnitOfType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : f.getSheetId(), l = ge(null), [d, v] = N(!1);
780
+ Nt((w) => {
781
+ var R;
782
+ ((R = l.current) == null ? void 0 : R.isClickOutSide(w)) && v(!1);
783
783
  });
784
- const p = ge(n), y = J(() => [$.percentile, $.percent].includes(i) ? {
784
+ const p = ge(n), y = J(() => [D.percentile, D.percent].includes(i) ? {
785
785
  max: 100,
786
786
  min: 0
787
787
  } : {
788
788
  min: Number.MIN_SAFE_INTEGER,
789
789
  max: Number.MAX_SAFE_INTEGER
790
790
  }, [i]);
791
- if (i === $.formula) {
792
- const R = String(p.current).startsWith("=") ? String(p.current) || "" : "=";
791
+ if (i === D.formula) {
792
+ const w = String(p.current).startsWith("=") ? String(p.current) || "" : "=";
793
793
  return /* @__PURE__ */ c("div", { className: "univer-ml-3 univer-w-full", children: /* @__PURE__ */ c(
794
794
  Mt,
795
795
  {
796
796
  ref: l,
797
797
  className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent dark:!univer-bg-gray-700 dark:!univer-text-white hover:univer-border-primary-600", Be),
798
- initValue: R,
798
+ initValue: w,
799
799
  unitId: a,
800
800
  subUnitId: h,
801
- isFocus: u,
801
+ isFocus: d,
802
802
  onChange: (I = "") => {
803
803
  e(I || "");
804
804
  },
@@ -812,69 +812,69 @@ const Fe = (t) => {
812
812
  className: r,
813
813
  value: Number(n) || 0,
814
814
  disabled: o,
815
- onChange: (R) => {
816
- e(R || 0);
815
+ onChange: (w) => {
816
+ e(w || 0);
817
817
  },
818
818
  ...y
819
819
  }
820
820
  );
821
- }, xi = (t) => {
822
- var L;
823
- const { interceptorManager: e } = t, r = q(re), n = ((L = t.rule) == null ? void 0 : L.type) === U.dataBar ? t.rule : void 0, [i, s] = N(() => {
821
+ }, Ti = (t) => {
822
+ var O;
823
+ const { interceptorManager: e } = t, r = q(re), n = ((O = t.rule) == null ? void 0 : O.type) === L.dataBar ? t.rule : void 0, [i, s] = N(() => {
824
824
  var _;
825
825
  const m = "0";
826
826
  return n ? (_ = n.config) != null && _.isGradient ? "1" : "0" : m;
827
- }), [o, d] = N(() => {
827
+ }), [o, u] = N(() => {
828
828
  var m;
829
829
  return n ? ((m = n.config) == null ? void 0 : m.positiveColor) || Ke : Ke;
830
830
  }), [a, h] = N(() => {
831
831
  var m;
832
832
  return n ? ((m = n.config) == null ? void 0 : m.nativeColor) || Xe : Xe;
833
833
  }), l = [
834
- Oe($.num, r),
835
- Oe($.percent, r),
836
- Oe($.percentile, r),
837
- Oe($.formula, r)
838
- ], u = [Oe($.min, r), ...l], v = [Oe($.max, r), ...l], [p, y] = N(() => {
834
+ Pe(D.num, r),
835
+ Pe(D.percent, r),
836
+ Pe(D.percentile, r),
837
+ Pe(D.formula, r)
838
+ ], d = [Pe(D.min, r), ...l], v = [Pe(D.max, r), ...l], [p, y] = N(() => {
839
839
  var _;
840
- const m = u[0].value;
840
+ const m = d[0].value;
841
841
  return n && ((_ = n.config) == null ? void 0 : _.min.type) || m;
842
- }), [f, R] = N(() => {
842
+ }), [f, w] = N(() => {
843
843
  var _;
844
844
  const m = v[0].value;
845
845
  return n && ((_ = n.config) == null ? void 0 : _.max.type) || m;
846
- }), [I, T] = N(() => {
846
+ }), [I, R] = N(() => {
847
847
  var j;
848
848
  if (!n)
849
849
  return 0;
850
850
  const _ = ((j = n.config) == null ? void 0 : j.min) || {};
851
- return _.type === $.formula ? _.value || "=" : _.value || 0;
852
- }), [w, x] = N(() => {
851
+ return _.type === D.formula ? _.value || "=" : _.value || 0;
852
+ }), [x, T] = N(() => {
853
853
  var j;
854
854
  if (!n)
855
855
  return 100;
856
856
  const _ = ((j = n.config) == null ? void 0 : j.max) || {};
857
- return _.type === $.formula ? _.value || "=" : _.value === void 0 ? 100 : _.value;
857
+ return _.type === D.formula ? _.value || "=" : _.value === void 0 ? 100 : _.value;
858
858
  }), [g, b] = N(() => n ? n.isShowValue === void 0 ? !0 : !!n.isShowValue : !0), S = (m) => ({ config: {
859
859
  min: { type: m.minValueType, value: m.minValue },
860
860
  max: { type: m.maxValueType, value: m.maxValue },
861
861
  isGradient: m.isGradient === "1",
862
862
  positiveColor: m.positiveColor || Ke,
863
863
  nativeColor: m.nativeColor || Xe
864
- }, type: U.dataBar, isShowValue: m.isShowValue });
864
+ }, type: L.dataBar, isShowValue: m.isShowValue });
865
865
  K(() => e.intercept(e.getInterceptPoints().submit, {
866
866
  handler() {
867
- return S({ isGradient: i, minValue: I, minValueType: p, maxValue: w, maxValueType: f, positiveColor: o, nativeColor: a, isShowValue: g });
867
+ return S({ isGradient: i, minValue: I, minValueType: p, maxValue: x, maxValueType: f, positiveColor: o, nativeColor: a, isShowValue: g });
868
868
  }
869
- }), [i, I, p, w, f, o, a, e, g]);
869
+ }), [i, I, p, x, f, o, a, e, g]);
870
870
  const C = (m) => {
871
871
  t.onChange(S(m));
872
872
  }, M = (m) => {
873
- d(m), C({
873
+ u(m), C({
874
874
  isGradient: i,
875
875
  minValue: I,
876
876
  minValueType: p,
877
- maxValue: w,
877
+ maxValue: x,
878
878
  maxValueType: f,
879
879
  positiveColor: m,
880
880
  nativeColor: a,
@@ -885,7 +885,7 @@ const Fe = (t) => {
885
885
  isGradient: i,
886
886
  minValue: I,
887
887
  minValueType: p,
888
- maxValue: w,
888
+ maxValue: x,
889
889
  maxValueType: f,
890
890
  positiveColor: o,
891
891
  nativeColor: m,
@@ -907,7 +907,7 @@ const Fe = (t) => {
907
907
  isGradient: i,
908
908
  minValue: I,
909
909
  minValueType: p,
910
- maxValue: w,
910
+ maxValue: x,
911
911
  maxValueType: f,
912
912
  positiveColor: o,
913
913
  nativeColor: a,
@@ -933,7 +933,7 @@ const Fe = (t) => {
933
933
  isGradient: m,
934
934
  minValue: I,
935
935
  minValueType: p,
936
- maxValue: w,
936
+ maxValue: x,
937
937
  maxValueType: f,
938
938
  positiveColor: o,
939
939
  nativeColor: a,
@@ -956,7 +956,7 @@ const Fe = (t) => {
956
956
  isGradient: m,
957
957
  minValue: I,
958
958
  minValueType: p,
959
- maxValue: w,
959
+ maxValue: x,
960
960
  maxValueType: f,
961
961
  positiveColor: o,
962
962
  nativeColor: a,
@@ -1013,16 +1013,16 @@ const Fe = (t) => {
1013
1013
  ce,
1014
1014
  {
1015
1015
  className: "univer-w-1/2 univer-flex-shrink-0",
1016
- options: u,
1016
+ options: d,
1017
1017
  value: p,
1018
1018
  onChange: (m) => {
1019
1019
  y(m);
1020
1020
  const _ = Je(m, 10);
1021
- T(_), C({
1021
+ R(_), C({
1022
1022
  isGradient: i,
1023
1023
  minValue: _,
1024
1024
  minValueType: m,
1025
- maxValue: w,
1025
+ maxValue: x,
1026
1026
  maxValueType: f,
1027
1027
  positiveColor: o,
1028
1028
  nativeColor: a,
@@ -1040,11 +1040,11 @@ const Fe = (t) => {
1040
1040
  type: p,
1041
1041
  value: I,
1042
1042
  onChange: (m) => {
1043
- T(m || 0), C({
1043
+ R(m || 0), C({
1044
1044
  isGradient: i,
1045
1045
  minValue: m || 0,
1046
1046
  minValueType: p,
1047
- maxValue: w,
1047
+ maxValue: x,
1048
1048
  maxValueType: f,
1049
1049
  positiveColor: o,
1050
1050
  nativeColor: a,
@@ -1069,9 +1069,9 @@ const Fe = (t) => {
1069
1069
  options: v,
1070
1070
  value: f,
1071
1071
  onChange: (m) => {
1072
- R(m);
1072
+ w(m);
1073
1073
  const _ = Je(m, 90);
1074
- x(_), C({
1074
+ T(_), C({
1075
1075
  isGradient: i,
1076
1076
  minValue: I,
1077
1077
  minValueType: p,
@@ -1091,9 +1091,9 @@ const Fe = (t) => {
1091
1091
  disabled: !V(f),
1092
1092
  id: "max",
1093
1093
  type: f,
1094
- value: w,
1094
+ value: x,
1095
1095
  onChange: (m) => {
1096
- x(m || 0), C({
1096
+ T(m || 0), C({
1097
1097
  isGradient: i,
1098
1098
  minValue: I,
1099
1099
  minValueType: p,
@@ -1109,103 +1109,101 @@ const Fe = (t) => {
1109
1109
  ] })
1110
1110
  ] })
1111
1111
  ] });
1112
- }, ct = (t) => [le.FALSE, void 0].includes(t) ? le.TRUE : le.FALSE, ut = (t) => t !== le.FALSE, Zt = (t) => {
1113
- const { style: e, onChange: r, className: n } = t;
1114
- q(kn);
1115
- const [i, s] = N(() => {
1112
+ }, ct = (t) => [le.FALSE, void 0].includes(t) ? le.TRUE : le.FALSE, ut = (t) => t !== le.FALSE, zt = (t) => {
1113
+ const { style: e, onChange: r, className: n } = t, [i, s] = N(() => {
1116
1114
  if (e != null && e.bl)
1117
1115
  return e.bl;
1118
- }), [o, d] = N(() => {
1116
+ }), [o, u] = N(() => {
1119
1117
  if (e != null && e.it)
1120
1118
  return e.it;
1121
1119
  }), [a, h] = N(() => {
1122
1120
  if (e != null && e.ul)
1123
1121
  return e.ul.s;
1124
- }), [l, u] = N(() => {
1122
+ }), [l, d] = N(() => {
1125
1123
  if (e != null && e.st)
1126
1124
  return e.st.s;
1127
1125
  }), [v, p] = N(() => {
1128
- var T;
1126
+ var R;
1129
1127
  const I = "#2f56ef";
1130
- return (T = e == null ? void 0 : e.cl) != null && T.rgb ? e.cl.rgb : I;
1128
+ return (R = e == null ? void 0 : e.cl) != null && R.rgb ? e.cl.rgb : I;
1131
1129
  }), [y, f] = N(() => {
1132
- var T;
1130
+ var R;
1133
1131
  const I = "#e8ecfc";
1134
- return (T = e == null ? void 0 : e.bg) != null && T.rgb ? e.bg.rgb : I;
1132
+ return (R = e == null ? void 0 : e.bg) != null && R.rgb ? e.bg.rgb : I;
1135
1133
  });
1136
1134
  K(() => {
1137
1135
  const I = {
1138
1136
  bl: i,
1139
1137
  it: o
1140
1138
  };
1141
- v !== void 0 && (I.cl = { rgb: v }), y !== void 0 && (I.bg = { rgb: y }), l !== void 0 && (I.st = { s: l }), a !== void 0 && (I.ul = { s: a }), r(br(I));
1139
+ v !== void 0 && (I.cl = { rgb: v }), y !== void 0 && (I.bg = { rgb: y }), l !== void 0 && (I.st = { s: l }), a !== void 0 && (I.ul = { s: a }), r(yr(I));
1142
1140
  }, [i, o, a, l, v, y]);
1143
- const R = "univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-px-1";
1141
+ const w = "univer-flex univer-cursor-pointer univer-items-center univer-rounded univer-px-1";
1144
1142
  return /* @__PURE__ */ k("div", { className: X("univer-my-2.5 univer-flex univer-justify-between", n), children: [
1145
1143
  /* @__PURE__ */ c(
1146
1144
  "div",
1147
1145
  {
1148
- className: X(R, {
1149
- "univer-bg-gray-100 dark:univer-bg-gray-700": ut(i || le.FALSE)
1146
+ className: X(w, {
1147
+ "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(i || le.FALSE)
1150
1148
  }),
1151
1149
  onClick: () => s(ct(i)),
1152
- children: /* @__PURE__ */ c(Yn, {})
1150
+ children: /* @__PURE__ */ c(zn, {})
1153
1151
  }
1154
1152
  ),
1155
1153
  /* @__PURE__ */ c(
1156
1154
  "div",
1157
1155
  {
1158
- className: X(R, {
1159
- "univer-bg-gray-100 dark:univer-bg-gray-700": ut(o || le.FALSE)
1156
+ className: X(w, {
1157
+ "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(o || le.FALSE)
1160
1158
  }),
1161
- onClick: () => d(ct(o)),
1162
- children: /* @__PURE__ */ c(Jn, {})
1159
+ onClick: () => u(ct(o)),
1160
+ children: /* @__PURE__ */ c(Xn, {})
1163
1161
  }
1164
1162
  ),
1165
1163
  /* @__PURE__ */ c(
1166
1164
  "div",
1167
1165
  {
1168
- className: X(R, {
1169
- "univer-bg-gray-100 dark:univer-bg-gray-700": ut(a || le.FALSE)
1166
+ className: X(w, {
1167
+ "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(a || le.FALSE)
1170
1168
  }),
1171
1169
  onClick: () => h(ct(a)),
1172
- children: /* @__PURE__ */ c(nr, {})
1170
+ children: /* @__PURE__ */ c(tr, {})
1173
1171
  }
1174
1172
  ),
1175
1173
  /* @__PURE__ */ c(
1176
1174
  "div",
1177
1175
  {
1178
- className: X(R, {
1179
- "univer-bg-gray-100 dark:univer-bg-gray-700": ut(l || le.FALSE)
1176
+ className: X(w, {
1177
+ "univer-bg-gray-100 dark:!univer-bg-gray-700": ut(l || le.FALSE)
1180
1178
  }),
1181
- onClick: () => u(ct(l)),
1182
- children: /* @__PURE__ */ c(tr, {})
1179
+ onClick: () => d(ct(l)),
1180
+ children: /* @__PURE__ */ c(er, {})
1183
1181
  }
1184
1182
  ),
1185
- /* @__PURE__ */ c(Fe, { color: v, onChange: p, Icon: Kn }),
1183
+ /* @__PURE__ */ c(Fe, { color: v, onChange: p, Icon: Yn }),
1186
1184
  /* @__PURE__ */ c(Fe, { color: y, onChange: f })
1187
1185
  ] });
1188
- }, wi = (t) => {
1189
- var x;
1190
- const { onChange: e, interceptorManager: r } = t, n = q(re), s = q(z).getCurrentUnitForType(D.UNIVER_SHEET), o = s.getActiveSheet(), d = ((x = t.rule) == null ? void 0 : x.type) === U.highlightCell ? t.rule : void 0, a = ge(null), [h, l] = N(!1), u = ge(null), [v, p] = N({}), [y, f] = N(() => (d == null ? void 0 : d.subType) === F.formula ? d.value : "="), [R, I] = N(void 0), T = (g) => ({
1186
+ }, xi = (t) => {
1187
+ var T;
1188
+ const { onChange: e, interceptorManager: r } = t, n = q(re), s = q(Z).getCurrentUnitForType(A.UNIVER_SHEET), o = s.getActiveSheet(), u = ((T = t.rule) == null ? void 0 : T.type) === L.highlightCell ? t.rule : void 0, a = ge(null), [h, l] = N(!1), d = ge(null), [v, p] = N({}), [y, f] = N(() => (u == null ? void 0 : u.subType) === F.formula ? u.value : "="), [w, I] = N(void 0), R = (g) => ({
1191
1189
  style: g.style,
1192
1190
  value: y,
1193
- type: U.highlightCell,
1191
+ type: L.highlightCell,
1194
1192
  subType: F.formula
1195
1193
  });
1196
1194
  K(() => r.intercept(r.getInterceptPoints().submit, {
1197
1195
  handler() {
1198
- return T({ style: v });
1196
+ return R({ style: v });
1199
1197
  }
1200
1198
  }), [v, y, r]), K(() => r.intercept(r.getInterceptPoints().beforeSubmit, {
1201
- handler: (b, S, C) => R || y.length === 1 || !y.startsWith("=") ? (I(n.t("sheet.cf.errorMessage.formulaError")), !1) : C(b)
1202
- }), [R, y]);
1203
- const w = (g) => {
1204
- e(T(g));
1199
+ handler: (b, S, C) => w || y.length === 1 || !y.startsWith("=") ? (I(n.t("sheet.cf.errorMessage.formulaError")), !1) : C(b)
1200
+ }), [w, y]);
1201
+ const x = (g) => {
1202
+ e(R(g));
1205
1203
  };
1206
1204
  return Nt((g) => {
1207
1205
  var S;
1208
- ((S = u.current) == null ? void 0 : S.isClickOutSide(g)) && l(!1);
1206
+ ((S = d.current) == null ? void 0 : S.isClickOutSide(g)) && l(!1);
1209
1207
  }), /* @__PURE__ */ k("div", { ref: a, children: [
1210
1208
  /* @__PURE__ */ c(
1211
1209
  "div",
@@ -1217,9 +1215,9 @@ const Fe = (t) => {
1217
1215
  /* @__PURE__ */ c("div", { className: "univer-mt-3", children: /* @__PURE__ */ c(
1218
1216
  Mt,
1219
1217
  {
1220
- ref: u,
1218
+ ref: d,
1221
1219
  className: X("univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors [&>div:first-child]:univer-px-2.5 [&>div]:univer-h-5 [&>div]:univer-ring-transparent dark:!univer-bg-gray-700 dark:!univer-text-white hover:univer-border-primary-600", Be),
1222
- errorText: R,
1220
+ errorText: w,
1223
1221
  isFocus: h,
1224
1222
  initValue: y,
1225
1223
  unitId: s.getUnitId(),
@@ -1228,21 +1226,21 @@ const Fe = (t) => {
1228
1226
  l(!0);
1229
1227
  },
1230
1228
  onChange: (g) => {
1231
- f(g), w({ style: v });
1229
+ f(g), x({ style: v });
1232
1230
  },
1233
1231
  onVerify: (g, b) => {
1234
1232
  !g || b.length === 1 ? I(n.t("sheet.cf.errorMessage.formulaError")) : I(void 0);
1235
1233
  }
1236
1234
  }
1237
1235
  ) }),
1238
- /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: T({ style: v }) }) }),
1236
+ /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: R({ style: v }) }) }),
1239
1237
  /* @__PURE__ */ c(
1240
- Zt,
1238
+ zt,
1241
1239
  {
1242
- style: d == null ? void 0 : d.style,
1240
+ style: u == null ? void 0 : u.style,
1243
1241
  className: "univer-mt-3",
1244
1242
  onChange: (g) => {
1245
- p(g), w({ style: g });
1243
+ p(g), x({ style: g });
1246
1244
  }
1247
1245
  }
1248
1246
  )
@@ -1257,15 +1255,15 @@ const Fe = (t) => {
1257
1255
  ),
1258
1256
  t.children
1259
1257
  ] }), W = (t, e) => ({ label: e.t(`sheet.cf.operator.${t}`), value: t }), Ei = (t) => {
1260
- const { type: e, operator: r, onChange: n, value: i, interceptorManager: s } = t, o = q(re), [d, a] = N(() => typeof i == "number" ? i : 0), [h, l] = N(""), [u, v] = N(() => typeof i == "string" ? i : ""), [p, y] = N(""), [f, R] = N(() => Array.isArray(i) ? i[0] === void 0 ? 0 : i[0] : 0), [I, T] = N(""), [w, x] = N(() => Array.isArray(i) ? i[1] === void 0 ? 100 : i[1] : 100), [g, b] = N("");
1258
+ const { type: e, operator: r, onChange: n, value: i, interceptorManager: s } = t, o = q(re), [u, a] = N(() => typeof i == "number" ? i : 0), [h, l] = N(""), [d, v] = N(() => typeof i == "string" ? i : ""), [p, y] = N(""), [f, w] = N(() => Array.isArray(i) ? i[0] === void 0 ? 0 : i[0] : 0), [I, R] = N(""), [x, T] = N(() => Array.isArray(i) ? i[1] === void 0 ? 100 : i[1] : 100), [g, b] = N("");
1261
1259
  switch (K(() => {
1262
1260
  switch (e) {
1263
1261
  case F.text: {
1264
- [H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(r) && n(u);
1262
+ [H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(r) && n(d);
1265
1263
  break;
1266
1264
  }
1267
1265
  case F.number: {
1268
- [P.equal, P.notEqual, P.greaterThan, P.greaterThanOrEqual, P.lessThan, P.lessThanOrEqual].includes(r) && n(d), [P.between, P.notBetween].includes(r) && n([f, w]);
1266
+ [U.equal, U.notEqual, U.greaterThan, U.greaterThanOrEqual, U.lessThan, U.lessThanOrEqual].includes(r) && n(u), [U.between, U.notBetween].includes(r) && n([f, x]);
1269
1267
  break;
1270
1268
  }
1271
1269
  }
@@ -1275,7 +1273,7 @@ const Fe = (t) => {
1275
1273
  switch (e) {
1276
1274
  case F.text:
1277
1275
  if ([H.beginsWith, H.containsText, H.endsWith, H.notEqual, H.notContainsText, H.equal].includes(r))
1278
- return u ? E(C) : (y(o.t("sheet.cf.errorMessage.notBlank")), !1);
1276
+ return d ? E(C) : (y(o.t("sheet.cf.errorMessage.notBlank")), !1);
1279
1277
  }
1280
1278
  return E(C);
1281
1279
  }
@@ -1283,7 +1281,7 @@ const Fe = (t) => {
1283
1281
  return () => {
1284
1282
  S();
1285
1283
  };
1286
- }, [e, d, u, r]), e) {
1284
+ }, [e, u, d, r]), e) {
1287
1285
  case F.text: {
1288
1286
  if ([H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(r)) {
1289
1287
  const S = (C) => {
@@ -1292,7 +1290,7 @@ const Fe = (t) => {
1292
1290
  return /* @__PURE__ */ c("div", { className: "univer-mt-3", children: /* @__PURE__ */ c(dt, { errorText: p, children: /* @__PURE__ */ c(
1293
1291
  Jr,
1294
1292
  {
1295
- value: u,
1293
+ value: d,
1296
1294
  onChange: (C) => {
1297
1295
  y(""), S(C);
1298
1296
  }
@@ -1302,7 +1300,7 @@ const Fe = (t) => {
1302
1300
  break;
1303
1301
  }
1304
1302
  case F.number: {
1305
- if ([P.equal, P.notEqual, P.greaterThan, P.greaterThanOrEqual, P.lessThan, P.lessThanOrEqual].includes(r)) {
1303
+ if ([U.equal, U.notEqual, U.greaterThan, U.greaterThanOrEqual, U.lessThan, U.lessThanOrEqual].includes(r)) {
1306
1304
  const S = (C) => {
1307
1305
  a(C || 0), n(C || 0), l("");
1308
1306
  };
@@ -1312,16 +1310,16 @@ const Fe = (t) => {
1312
1310
  className: "univer-w-full",
1313
1311
  min: Number.MIN_SAFE_INTEGER,
1314
1312
  max: Number.MAX_SAFE_INTEGER,
1315
- value: d,
1313
+ value: u,
1316
1314
  onChange: S
1317
1315
  }
1318
1316
  ) }) });
1319
1317
  }
1320
- if ([P.between, P.notBetween].includes(r)) {
1318
+ if ([U.between, U.notBetween].includes(r)) {
1321
1319
  const S = (M) => {
1322
- R(M || 0), n([M || 0, w]), T("");
1320
+ w(M || 0), n([M || 0, x]), R("");
1323
1321
  }, C = (M) => {
1324
- x(M || 0), n([f, M || 0]), b("");
1322
+ T(M || 0), n([f, M || 0]), b("");
1325
1323
  };
1326
1324
  return /* @__PURE__ */ k("div", { className: "univer-mt-3 univer-flex univer-items-center", children: [
1327
1325
  /* @__PURE__ */ c(dt, { errorText: I, children: /* @__PURE__ */ c(ke, { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER, value: f, onChange: S }) }),
@@ -1331,7 +1329,7 @@ const Fe = (t) => {
1331
1329
  className: "univer-ml-3",
1332
1330
  min: Number.MIN_SAFE_INTEGER,
1333
1331
  max: Number.MAX_SAFE_INTEGER,
1334
- value: w,
1332
+ value: x,
1335
1333
  onChange: C
1336
1334
  }
1337
1335
  ) })
@@ -1357,14 +1355,14 @@ const Fe = (t) => {
1357
1355
  ];
1358
1356
  case F.number:
1359
1357
  return [
1360
- W(P.between, e),
1361
- W(P.notBetween, e),
1362
- W(P.equal, e),
1363
- W(P.notEqual, e),
1364
- W(P.greaterThan, e),
1365
- W(P.greaterThanOrEqual, e),
1366
- W(P.lessThan, e),
1367
- W(P.lessThanOrEqual, e)
1358
+ W(U.between, e),
1359
+ W(U.notBetween, e),
1360
+ W(U.equal, e),
1361
+ W(U.notEqual, e),
1362
+ W(U.greaterThan, e),
1363
+ W(U.greaterThanOrEqual, e),
1364
+ W(U.lessThan, e),
1365
+ W(U.lessThanOrEqual, e)
1368
1366
  ];
1369
1367
  case F.timePeriod:
1370
1368
  return [
@@ -1381,11 +1379,11 @@ const Fe = (t) => {
1381
1379
  ];
1382
1380
  }
1383
1381
  }, on = (t) => {
1384
- var x;
1385
- const { interceptorManager: e, onChange: r } = t, n = q(re), i = ((x = t.rule) == null ? void 0 : x.type) === U.highlightCell ? t.rule : void 0, [s, o] = N(() => {
1382
+ var T;
1383
+ const { interceptorManager: e, onChange: r } = t, n = q(re), i = ((T = t.rule) == null ? void 0 : T.type) === L.highlightCell ? t.rule : void 0, [s, o] = N(() => {
1386
1384
  const g = F.text;
1387
1385
  return i && i.subType || g;
1388
- }), d = [{
1386
+ }), u = [{
1389
1387
  value: F.text,
1390
1388
  label: n.t("sheet.cf.subRuleType.text")
1391
1389
  }, {
@@ -1403,67 +1401,67 @@ const Fe = (t) => {
1403
1401
  }], a = J(() => sn(s, n), [s]), [h, l] = N(() => {
1404
1402
  const g = a ? a[0].value : void 0;
1405
1403
  return i && i.operator || g;
1406
- }), [u, v] = N(() => {
1404
+ }), [d, v] = N(() => {
1407
1405
  var S;
1408
1406
  const g = "";
1409
1407
  return i ? (S = i.value) != null ? S : mt(i.subType, i.operator) : g;
1410
1408
  }), [p, y] = N({}), f = J(() => (g) => {
1411
- var b, S, C, M, E, V, L, m, _, j, Y, pe, Ce, Ue, Pe;
1409
+ var b, S, C, M, E, V, O, m, _, j, Y, pe, Ce, Le, Ue;
1412
1410
  switch (g.subType || s) {
1413
1411
  case F.text: {
1414
1412
  if ([H.beginsWith, H.endsWith, H.containsText, H.notContainsText, H.equal, H.notEqual].includes(h))
1415
1413
  return {
1416
- type: U.highlightCell,
1414
+ type: L.highlightCell,
1417
1415
  subType: (b = g.subType) != null ? b : s,
1418
1416
  operator: (S = g.operator) != null ? S : h,
1419
1417
  style: (C = g.style) != null ? C : p,
1420
- value: (M = g.value) != null ? M : u
1418
+ value: (M = g.value) != null ? M : d
1421
1419
  };
1422
1420
  break;
1423
1421
  }
1424
1422
  case F.number: {
1425
- if ([P.equal, P.notEqual, P.greaterThan, P.greaterThanOrEqual, P.lessThan, P.lessThanOrEqual].includes(h))
1423
+ if ([U.equal, U.notEqual, U.greaterThan, U.greaterThanOrEqual, U.lessThan, U.lessThanOrEqual].includes(h))
1426
1424
  return {
1427
- type: U.highlightCell,
1425
+ type: L.highlightCell,
1428
1426
  subType: (E = g.subType) != null ? E : s,
1429
1427
  operator: (V = g.operator) != null ? V : h,
1430
- style: (L = g.style) != null ? L : p,
1431
- value: (m = g.value) != null ? m : u
1428
+ style: (O = g.style) != null ? O : p,
1429
+ value: (m = g.value) != null ? m : d
1432
1430
  };
1433
- if ([P.between, P.notBetween].includes(h))
1431
+ if ([U.between, U.notBetween].includes(h))
1434
1432
  return {
1435
- type: U.highlightCell,
1433
+ type: L.highlightCell,
1436
1434
  subType: (_ = g.subType) != null ? _ : s,
1437
1435
  operator: (j = g.operator) != null ? j : h,
1438
1436
  style: (Y = g.style) != null ? Y : p,
1439
- value: (pe = g.value) != null ? pe : u
1437
+ value: (pe = g.value) != null ? pe : d
1440
1438
  };
1441
1439
  break;
1442
1440
  }
1443
1441
  }
1444
1442
  return {
1445
- type: U.highlightCell,
1443
+ type: L.highlightCell,
1446
1444
  subType: (Ce = g.subType) != null ? Ce : s,
1447
- operator: (Ue = g.operator) != null ? Ue : h,
1448
- style: (Pe = g.style) != null ? Pe : p
1445
+ operator: (Le = g.operator) != null ? Le : h,
1446
+ style: (Ue = g.style) != null ? Ue : p
1449
1447
  };
1450
- }, [s, h, u, p]);
1448
+ }, [s, h, d, p]);
1451
1449
  K(() => e.intercept(e.getInterceptPoints().submit, {
1452
1450
  handler() {
1453
1451
  return f({});
1454
1452
  }
1455
1453
  }), [f, e]), K(() => {
1456
- d.some((g) => g.value === s) || o(d[0].value);
1457
- }, [d]);
1458
- const R = (g) => {
1454
+ u.some((g) => g.value === s) || o(u[0].value);
1455
+ }, [u]);
1456
+ const w = (g) => {
1459
1457
  const b = g, S = sn(b, n), C = S && S[0].value;
1460
1458
  o(b), l(C), C && v(mt(b, C)), r(f({ subType: b, operator: C }));
1461
1459
  }, I = (g) => {
1462
1460
  const b = g;
1463
1461
  l(b), r(f({ operator: b }));
1464
- }, T = (g) => {
1462
+ }, R = (g) => {
1465
1463
  v(g), r(f({ value: g }));
1466
- }, w = J(() => `${s}_${h}_${Math.random()}`, [s, h]);
1464
+ }, x = J(() => `${s}_${h}_${Math.random()}`, [s, h]);
1467
1465
  return /* @__PURE__ */ k("div", { children: [
1468
1466
  /* @__PURE__ */ c(
1469
1467
  "div",
@@ -1477,9 +1475,9 @@ const Fe = (t) => {
1477
1475
  ce,
1478
1476
  {
1479
1477
  className: "univer-mt-3 univer-w-full",
1480
- onChange: R,
1478
+ onChange: w,
1481
1479
  value: s,
1482
- options: d
1480
+ options: u
1483
1481
  }
1484
1482
  ),
1485
1483
  (a == null ? void 0 : a.length) && /* @__PURE__ */ c(
@@ -1495,18 +1493,18 @@ const Fe = (t) => {
1495
1493
  /* @__PURE__ */ c(
1496
1494
  Ei,
1497
1495
  {
1498
- value: u,
1496
+ value: d,
1499
1497
  interceptorManager: e,
1500
1498
  type: s,
1501
1499
  operator: h,
1502
1500
  rule: i,
1503
- onChange: T
1501
+ onChange: R
1504
1502
  },
1505
- w
1503
+ x
1506
1504
  ),
1507
1505
  /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: f({}) }) }),
1508
1506
  /* @__PURE__ */ c(
1509
- Zt,
1507
+ zt,
1510
1508
  {
1511
1509
  style: i == null ? void 0 : i.style,
1512
1510
  className: "univer-ml-1",
@@ -1516,13 +1514,13 @@ const Fe = (t) => {
1516
1514
  }
1517
1515
  )
1518
1516
  ] });
1519
- }, rr = (t, e) => (Ve[t] || [])[Number(e)] || "", Ni = (t) => {
1517
+ }, nr = (t, e) => (Ve[t] || [])[Number(e)] || "", Ni = (t) => {
1520
1518
  var l;
1521
- const { error: e, type: r, onChange: n } = t, i = q(z), s = i.getCurrentUnitForType(D.UNIVER_SHEET).getUnitId(), o = (l = i.getCurrentUnitForType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : l.getSheetId(), d = ge(null), [a, h] = N(!1);
1522
- return Nt((u) => {
1519
+ const { error: e, type: r, onChange: n } = t, i = q(Z), s = i.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), o = (l = i.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : l.getSheetId(), u = ge(null), [a, h] = N(!1);
1520
+ return Nt((d) => {
1523
1521
  var p;
1524
- ((p = d.current) == null ? void 0 : p.isClickOutSide(u)) && h(!1);
1525
- }), /* @__PURE__ */ c("div", { className: "univer-relative", children: r !== $.formula ? /* @__PURE__ */ k(jt, { children: [
1522
+ ((p = u.current) == null ? void 0 : p.isClickOutSide(d)) && h(!1);
1523
+ }), /* @__PURE__ */ c("div", { className: "univer-relative", children: r !== D.formula ? /* @__PURE__ */ k(jt, { children: [
1526
1524
  /* @__PURE__ */ c(
1527
1525
  ke,
1528
1526
  {
@@ -1530,47 +1528,47 @@ const Fe = (t) => {
1530
1528
  "univer-border-red-500": e
1531
1529
  }),
1532
1530
  value: Number(t.value) || 0,
1533
- onChange: (u) => n(u != null ? u : 0)
1531
+ onChange: (d) => n(d != null ? d : 0)
1534
1532
  }
1535
1533
  ),
1536
1534
  e && /* @__PURE__ */ c("div", { className: "univer-absolute univer-text-xs univer-text-red-500", children: e })
1537
1535
  ] }) : /* @__PURE__ */ c("div", { className: "univer-w-full", children: /* @__PURE__ */ c(
1538
1536
  Mt,
1539
1537
  {
1540
- ref: d,
1538
+ ref: u,
1541
1539
  initValue: String(t.value),
1542
1540
  unitId: s,
1543
1541
  subUnitId: o,
1544
1542
  isFocus: a,
1545
- onChange: (u = "") => {
1546
- n(u || "");
1543
+ onChange: (d = "") => {
1544
+ n(d || "");
1547
1545
  },
1548
1546
  onFocus: () => h(!0)
1549
1547
  }
1550
1548
  ) }) });
1551
1549
  }, an = (t, e, r) => ({
1552
- operator: P.greaterThan,
1553
- value: { type: $.num, value: (r.length - 1 - e) * 10 },
1550
+ operator: U.greaterThan,
1551
+ value: { type: D.num, value: (r.length - 1 - e) * 10 },
1554
1552
  iconType: t,
1555
1553
  iconId: String(e)
1556
1554
  }), Mi = oe((t, e) => {
1557
1555
  const { onClick: r } = t, n = q(re), i = (s) => {
1558
1556
  r(s);
1559
1557
  };
1560
- return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children: Ir.map((s, o) => /* @__PURE__ */ k("div", { className: "univer-mb-3", children: [
1558
+ return /* @__PURE__ */ c("div", { ref: e, className: "univer-w-80", children: br.map((s, o) => /* @__PURE__ */ k("div", { className: "univer-mb-3", children: [
1561
1559
  /* @__PURE__ */ c("div", { className: "univer-mb-1 univer-text-sm", children: n.t(s.title) }),
1562
- /* @__PURE__ */ c("div", { className: "univer-flex univer-flex-wrap", children: s.group.map((d) => /* @__PURE__ */ c(
1560
+ /* @__PURE__ */ c("div", { className: "univer-flex univer-flex-wrap", children: s.group.map((u) => /* @__PURE__ */ c(
1563
1561
  "div",
1564
1562
  {
1565
1563
  className: "univer-mb-1 univer-flex univer-w-1/2 univer-items-center",
1566
1564
  onClick: () => {
1567
- i(d.name);
1565
+ i(u.name);
1568
1566
  },
1569
1567
  children: /* @__PURE__ */ c(
1570
1568
  "a",
1571
1569
  {
1572
1570
  className: "univer-cursor-pointer univer-rounded dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
1573
- children: d.list.map((a, h) => /* @__PURE__ */ c(
1571
+ children: u.list.map((a, h) => /* @__PURE__ */ c(
1574
1572
  "img",
1575
1573
  {
1576
1574
  className: "univer-size-5",
@@ -1582,17 +1580,17 @@ const Fe = (t) => {
1582
1580
  }
1583
1581
  )
1584
1582
  },
1585
- d.name
1583
+ u.name
1586
1584
  )) })
1587
1585
  ] }, o)) });
1588
1586
  }), Vi = (t) => {
1589
1587
  const { onClick: e } = t, r = J(() => {
1590
1588
  const i = [];
1591
1589
  for (const s in Ve) {
1592
- const o = Ve[s], d = s;
1590
+ const o = Ve[s], u = s;
1593
1591
  o.forEach((a, h) => {
1594
1592
  i.push({
1595
- iconType: d,
1593
+ iconType: u,
1596
1594
  base64: a,
1597
1595
  iconId: String(h)
1598
1596
  });
@@ -1607,7 +1605,7 @@ const Fe = (t) => {
1607
1605
  "div",
1608
1606
  {
1609
1607
  className: "univer-mb-2.5 univer-flex univer-cursor-pointer univer-items-center univer-pl-1",
1610
- onClick: () => n({ iconType: _r, iconId: "" }),
1608
+ onClick: () => n({ iconType: Sr, iconId: "" }),
1611
1609
  children: [
1612
1610
  /* @__PURE__ */ c(ot, { className: "univer-size-5" }),
1613
1611
  /* @__PURE__ */ c("span", { className: "univer-ml-2", children: "无单元格图标" })
@@ -1632,25 +1630,25 @@ const Fe = (t) => {
1632
1630
  )) })
1633
1631
  ] });
1634
1632
  }, ki = (t) => {
1635
- const { onChange: e, configList: r, errorMap: n = {} } = t, i = q(re), s = [{ label: i.t(`sheet.cf.symbol.${P.greaterThan}`), value: P.greaterThan }, { label: i.t(`sheet.cf.symbol.${P.greaterThanOrEqual}`), value: P.greaterThanOrEqual }], o = [
1636
- { label: i.t(`sheet.cf.valueType.${$.num}`), value: $.num },
1637
- { label: i.t(`sheet.cf.valueType.${$.percent}`), value: $.percent },
1638
- { label: i.t(`sheet.cf.valueType.${$.percentile}`), value: $.percentile },
1639
- { label: i.t(`sheet.cf.valueType.${$.formula}`), value: $.formula }
1640
- ], d = (u, v) => {
1641
- e([String(v), "value", "value"], u);
1642
- }, a = (u, v) => {
1643
- e([String(v), "operator"], u);
1644
- const p = mt(F.number, u);
1645
- d(p, v);
1646
- }, h = (u, v) => {
1647
- e([String(v), "value", "type"], u);
1633
+ const { onChange: e, configList: r, errorMap: n = {} } = t, i = q(re), s = [{ label: i.t(`sheet.cf.symbol.${U.greaterThan}`), value: U.greaterThan }, { label: i.t(`sheet.cf.symbol.${U.greaterThanOrEqual}`), value: U.greaterThanOrEqual }], o = [
1634
+ { label: i.t(`sheet.cf.valueType.${D.num}`), value: D.num },
1635
+ { label: i.t(`sheet.cf.valueType.${D.percent}`), value: D.percent },
1636
+ { label: i.t(`sheet.cf.valueType.${D.percentile}`), value: D.percentile },
1637
+ { label: i.t(`sheet.cf.valueType.${D.formula}`), value: D.formula }
1638
+ ], u = (d, v) => {
1639
+ e([String(v), "value", "value"], d);
1640
+ }, a = (d, v) => {
1641
+ e([String(v), "operator"], d);
1642
+ const p = mt(F.number, d);
1643
+ u(p, v);
1644
+ }, h = (d, v) => {
1645
+ e([String(v), "value", "type"], d);
1648
1646
  const p = r[v], y = mt(F.number, p.operator);
1649
- d(y, v);
1647
+ u(y, v);
1650
1648
  };
1651
- return J(() => r.map((u, v) => {
1652
- const p = n[v], y = rr(u.iconType, u.iconId), f = v === r.length - 1, R = v === 0, I = r[v - 1], T = (I == null ? void 0 : I.value.type) === $.formula ? i.t("sheet.cf.valueType.formula") : I == null ? void 0 : I.value.value, w = (x, g) => {
1653
- const b = { ...u, iconId: g, iconType: x };
1649
+ return J(() => r.map((d, v) => {
1650
+ const p = n[v], y = nr(d.iconType, d.iconId), f = v === r.length - 1, w = v === 0, I = r[v - 1], R = (I == null ? void 0 : I.value.type) === D.formula ? i.t("sheet.cf.valueType.formula") : I == null ? void 0 : I.value.value, x = (T, g) => {
1651
+ const b = { ...d, iconId: g, iconType: T };
1654
1652
  e([String(v)], b);
1655
1653
  };
1656
1654
  return /* @__PURE__ */ k(
@@ -1674,8 +1672,8 @@ const Fe = (t) => {
1674
1672
  }
1675
1673
  ),
1676
1674
  /* @__PURE__ */ c("div", { className: "univer-w-[45%]", children: /* @__PURE__ */ k(jt, { children: [
1677
- !R && !f && i.t("sheet.cf.iconSet.rule"),
1678
- !R && !f && /* @__PURE__ */ k(
1675
+ !w && !f && i.t("sheet.cf.iconSet.rule"),
1676
+ !w && !f && /* @__PURE__ */ k(
1679
1677
  "span",
1680
1678
  {
1681
1679
  className: "univer-font-medium univer-text-gray-600 dark:!univer-text-gray-200",
@@ -1683,7 +1681,7 @@ const Fe = (t) => {
1683
1681
  "(",
1684
1682
  i.t("sheet.cf.iconSet.when"),
1685
1683
  i.t(`sheet.cf.symbol.${Ht(I.operator)}`),
1686
- T,
1684
+ R,
1687
1685
  f ? "" : ` ${i.t("sheet.cf.iconSet.and")} `,
1688
1686
  ")"
1689
1687
  ]
@@ -1697,7 +1695,7 @@ const Fe = (t) => {
1697
1695
  /* @__PURE__ */ c("div", { className: "univer-flex univer-items-center", children: /* @__PURE__ */ c(
1698
1696
  Gt,
1699
1697
  {
1700
- overlay: /* @__PURE__ */ c("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ c(Vi, { onClick: w, iconId: u.iconId, iconType: u.iconType }) }),
1698
+ overlay: /* @__PURE__ */ c("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ c(Vi, { onClick: x, iconId: d.iconId, iconType: d.iconType }) }),
1701
1699
  children: /* @__PURE__ */ k(
1702
1700
  "div",
1703
1701
  {
@@ -1709,7 +1707,7 @@ const Fe = (t) => {
1709
1707
  className: "univer-size-4"
1710
1708
  }
1711
1709
  ),
1712
- /* @__PURE__ */ c(zt, {})
1710
+ /* @__PURE__ */ c(Zt, {})
1713
1711
  ]
1714
1712
  }
1715
1713
  )
@@ -1724,7 +1722,7 @@ const Fe = (t) => {
1724
1722
  /* @__PURE__ */ k("span", { className: "univer-font-medium", children: [
1725
1723
  i.t("sheet.cf.iconSet.when"),
1726
1724
  i.t(`sheet.cf.symbol.${Ht(I.operator)}`),
1727
- T,
1725
+ R,
1728
1726
  f ? "" : ` ${i.t("sheet.cf.iconSet.and")} `
1729
1727
  ] })
1730
1728
  ]
@@ -1733,9 +1731,9 @@ const Fe = (t) => {
1733
1731
  ce,
1734
1732
  {
1735
1733
  options: s,
1736
- value: u.operator,
1737
- onChange: (x) => {
1738
- a(x, v);
1734
+ value: d.operator,
1735
+ onChange: (T) => {
1736
+ a(T, v);
1739
1737
  }
1740
1738
  }
1741
1739
  )
@@ -1761,9 +1759,9 @@ const Fe = (t) => {
1761
1759
  {
1762
1760
  className: "univer-flex-shrink-0",
1763
1761
  options: o,
1764
- value: u.value.type,
1765
- onChange: (x) => {
1766
- h(x, v);
1762
+ value: d.value.type,
1763
+ onChange: (T) => {
1764
+ h(T, v);
1767
1765
  }
1768
1766
  }
1769
1767
  ),
@@ -1771,11 +1769,11 @@ const Fe = (t) => {
1771
1769
  Ni,
1772
1770
  {
1773
1771
  id: v,
1774
- type: u.value.type,
1772
+ type: d.value.type,
1775
1773
  error: p,
1776
- value: u.value.value || "",
1777
- onChange: (x) => {
1778
- d(x, v);
1774
+ value: d.value.value || "",
1775
+ onChange: (T) => {
1776
+ u(T, v);
1779
1777
  }
1780
1778
  }
1781
1779
  ) })
@@ -1789,8 +1787,8 @@ const Fe = (t) => {
1789
1787
  );
1790
1788
  }), [r, n]);
1791
1789
  }, Fi = (t) => {
1792
- var x;
1793
- const { interceptorManager: e } = t, r = ((x = t.rule) == null ? void 0 : x.type) === U.iconSet ? t.rule : void 0, n = q(re), [i, s] = N({}), [o, d] = N(() => {
1790
+ var T;
1791
+ const { interceptorManager: e } = t, r = ((T = t.rule) == null ? void 0 : T.type) === L.iconSet ? t.rule : void 0, n = q(re), [i, s] = N({}), [o, u] = N(() => {
1794
1792
  const g = Object.keys(Ve)[0];
1795
1793
  if (r && r.config.length) {
1796
1794
  const b = r.config[0].iconType;
@@ -1803,13 +1801,13 @@ const Fe = (t) => {
1803
1801
  return Bt.deepClone(r == null ? void 0 : r.config);
1804
1802
  const g = Ve[o] || [];
1805
1803
  return new Array(g.length).fill("").map((b, S, C) => S === C.length - 1 ? {
1806
- operator: P.lessThanOrEqual,
1807
- value: { type: $.num, value: Number.MAX_SAFE_INTEGER },
1804
+ operator: U.lessThanOrEqual,
1805
+ value: { type: D.num, value: Number.MAX_SAFE_INTEGER },
1808
1806
  iconType: o,
1809
1807
  iconId: String(S)
1810
1808
  } : an(o, S, C));
1811
- }), [l, u] = N(() => r ? !!r.isShowValue : !0), v = J(() => {
1812
- const g = a.map((b) => rr(b.iconType, b.iconId));
1809
+ }), [l, d] = N(() => r ? !!r.isShowValue : !0), v = J(() => {
1810
+ const g = a.map((b) => nr(b.iconType, b.iconId));
1813
1811
  return /* @__PURE__ */ c("div", { className: "univer-flex univer-items-center", children: g.map((b, S) => b ? /* @__PURE__ */ c(
1814
1812
  "img",
1815
1813
  {
@@ -1819,8 +1817,8 @@ const Fe = (t) => {
1819
1817
  S
1820
1818
  ) : /* @__PURE__ */ c(ot, { className: "univer-size-5" }, S)) });
1821
1819
  }, [a]), p = (g) => {
1822
- if (g.reduce((S, C, M) => S.preType && !S.result || g.length - 1 === M ? S : C.value.type === $.formula ? {
1823
- preType: $.formula,
1820
+ if (g.reduce((S, C, M) => S.preType && !S.result || g.length - 1 === M ? S : C.value.type === D.formula ? {
1821
+ preType: D.formula,
1824
1822
  result: !1
1825
1823
  } : S.preType ? {
1826
1824
  result: S.preType === C.value.type,
@@ -1828,27 +1826,27 @@ const Fe = (t) => {
1828
1826
  } : {
1829
1827
  result: !0,
1830
1828
  preType: C.value.type
1831
- }, { result: !0, preType: "" }).result && [$.num, $.percent, $.percentile].includes(g[0].value.type)) {
1829
+ }, { result: !0, preType: "" }).result && [D.num, D.percent, D.percentile].includes(g[0].value.type)) {
1832
1830
  const S = {};
1833
1831
  return g.forEach((C, M, E) => {
1834
1832
  if (M - 1 < 0 || M === E.length - 1)
1835
1833
  return;
1836
- const L = g[M - 1], m = Ht(L.operator);
1837
- Sr({ operator: m, value: L.value.value }, C.value.value) || (S[M] = `${n.t(`sheet.cf.form.${m}`, String(L.value.value))} `);
1834
+ const O = g[M - 1], m = Ht(O.operator);
1835
+ Ir({ operator: m, value: O.value.value }, C.value.value) || (S[M] = `${n.t(`sheet.cf.form.${m}`, String(O.value.value))} `);
1838
1836
  }), S;
1839
1837
  }
1840
1838
  return {};
1841
1839
  }, y = (g, b) => {
1842
- dr(a, g) !== b && (hr(a, g, b), h([...a]), s(p(a)));
1840
+ ur(a, g) !== b && (dr(a, g, b), h([...a]), s(p(a)));
1843
1841
  }, f = (g) => {
1844
- d(g);
1842
+ u(g);
1845
1843
  const b = Ve[g] || [], S = new Array(b.length).fill("").map((C, M, E) => an(g, M, E));
1846
1844
  h(S), s(p(S));
1847
1845
  };
1848
1846
  K(() => {
1849
1847
  const g = e.intercept(e.getInterceptPoints().submit, {
1850
1848
  handler() {
1851
- return { type: U.iconSet, isShowValue: l, config: a };
1849
+ return { type: L.iconSet, isShowValue: l, config: a };
1852
1850
  }
1853
1851
  });
1854
1852
  return () => {
@@ -1864,14 +1862,14 @@ const Fe = (t) => {
1864
1862
  g();
1865
1863
  };
1866
1864
  }, [l, a, e, i]);
1867
- const R = () => {
1865
+ const w = () => {
1868
1866
  const g = a.map((b) => ({ ...b }));
1869
1867
  a.forEach((b, S) => {
1870
1868
  const C = a.length - 1 - S, M = g[C];
1871
1869
  b.iconId = M.iconId, b.iconType = M.iconType;
1872
1870
  }), h([...a]);
1873
- }, I = q(Br), [T, w] = N();
1874
- return Wr(T, I.rootContainerElement), /* @__PURE__ */ k("div", { children: [
1871
+ }, I = q(jr), [R, x] = N();
1872
+ return Br(R, I.rootContainerElement), /* @__PURE__ */ k("div", { children: [
1875
1873
  /* @__PURE__ */ c("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-600", children: n.t("sheet.cf.panel.styleRule") }),
1876
1874
  /* @__PURE__ */ c("div", { className: "univer-mt-3", children: /* @__PURE__ */ c(
1877
1875
  Gt,
@@ -1880,7 +1878,7 @@ const Fe = (t) => {
1880
1878
  Mi,
1881
1879
  {
1882
1880
  ref: (g) => {
1883
- !T && g && w(g);
1881
+ !R && g && x(g);
1884
1882
  },
1885
1883
  iconType: o,
1886
1884
  onClick: f
@@ -1892,7 +1890,7 @@ const Fe = (t) => {
1892
1890
  className: X("univer-box-border univer-flex univer-h-8 univer-w-full univer-items-center univer-justify-between univer-rounded-md univer-bg-white univer-px-4 univer-py-2 univer-text-xs univer-text-gray-600 univer-transition-all hover:univer-border-primary-600", Be),
1893
1891
  children: [
1894
1892
  v,
1895
- /* @__PURE__ */ c(zt, {})
1893
+ /* @__PURE__ */ c(Zt, {})
1896
1894
  ]
1897
1895
  }
1898
1896
  )
@@ -1900,52 +1898,52 @@ const Fe = (t) => {
1900
1898
  ) }),
1901
1899
  /* @__PURE__ */ k("div", { className: "univer-mt-3 univer-flex univer-items-center univer-text-xs", children: [
1902
1900
  /* @__PURE__ */ k("div", { className: "univer-flex univer-items-center univer-text-xs", children: [
1903
- /* @__PURE__ */ c(yt, { onChange: R }),
1901
+ /* @__PURE__ */ c(yt, { onChange: w }),
1904
1902
  n.t("sheet.cf.iconSet.reverseIconOrder")
1905
1903
  ] }),
1906
1904
  /* @__PURE__ */ k("div", { className: "univer-ml-6 univer-flex univer-items-center univer-text-xs", children: [
1907
1905
  /* @__PURE__ */ c(yt, { checked: !l, onChange: (g) => {
1908
- u(!g);
1906
+ d(!g);
1909
1907
  } }),
1910
1908
  n.t("sheet.cf.iconSet.onlyShowIcon")
1911
1909
  ] })
1912
1910
  ] }),
1913
1911
  /* @__PURE__ */ c(ki, { errorMap: i, onChange: y, configList: a })
1914
1912
  ] });
1915
- }, Ui = (t) => {
1916
- var R;
1917
- const { onChange: e, interceptorManager: r } = t, n = q(re), i = ((R = t.rule) == null ? void 0 : R.type) === U.highlightCell ? t.rule : void 0, s = [{ label: n.t("sheet.cf.panel.isNotBottom"), value: "isNotBottom" }, { label: n.t("sheet.cf.panel.isBottom"), value: "isBottom" }, { label: n.t("sheet.cf.panel.greaterThanAverage"), value: "greaterThanAverage" }, { label: n.t("sheet.cf.panel.lessThanAverage"), value: "lessThanAverage" }], [o, d] = N(() => {
1918
- const I = s[0].value, T = i == null ? void 0 : i.type;
1913
+ }, Li = (t) => {
1914
+ var w;
1915
+ const { onChange: e, interceptorManager: r } = t, n = q(re), i = ((w = t.rule) == null ? void 0 : w.type) === L.highlightCell ? t.rule : void 0, s = [{ label: n.t("sheet.cf.panel.isNotBottom"), value: "isNotBottom" }, { label: n.t("sheet.cf.panel.isBottom"), value: "isBottom" }, { label: n.t("sheet.cf.panel.greaterThanAverage"), value: "greaterThanAverage" }, { label: n.t("sheet.cf.panel.lessThanAverage"), value: "lessThanAverage" }], [o, u] = N(() => {
1916
+ const I = s[0].value, R = i == null ? void 0 : i.type;
1919
1917
  if (!i)
1920
1918
  return I;
1921
- switch (T) {
1922
- case U.highlightCell:
1919
+ switch (R) {
1920
+ case L.highlightCell:
1923
1921
  switch (i.subType) {
1924
1922
  case F.average:
1925
- return [P.greaterThan, P.greaterThanOrEqual].includes(i.operator) ? "greaterThanAverage" : [P.lessThan, P.lessThanOrEqual].includes(i.operator) ? "lessThanAverage" : I;
1923
+ return [U.greaterThan, U.greaterThanOrEqual].includes(i.operator) ? "greaterThanAverage" : [U.lessThan, U.lessThanOrEqual].includes(i.operator) ? "lessThanAverage" : I;
1926
1924
  case F.rank:
1927
1925
  return i.isBottom ? "isBottom" : "isNotBottom";
1928
1926
  }
1929
1927
  }
1930
1928
  return I;
1931
1929
  }), [a, h] = N(() => {
1932
- const T = i == null ? void 0 : i.type;
1930
+ const R = i == null ? void 0 : i.type;
1933
1931
  if (!i)
1934
1932
  return 10;
1935
- switch (T) {
1936
- case U.highlightCell:
1933
+ switch (R) {
1934
+ case L.highlightCell:
1937
1935
  switch (i.subType) {
1938
1936
  case F.rank:
1939
1937
  return i.value || 10;
1940
1938
  }
1941
1939
  }
1942
1940
  return 10;
1943
- }), [l, u] = N(() => {
1944
- const T = i == null ? void 0 : i.type;
1941
+ }), [l, d] = N(() => {
1942
+ const R = i == null ? void 0 : i.type;
1945
1943
  if (!i)
1946
1944
  return !1;
1947
- switch (T) {
1948
- case U.highlightCell:
1945
+ switch (R) {
1946
+ case L.highlightCell:
1949
1947
  switch (i.subType) {
1950
1948
  case F.rank:
1951
1949
  return i.isPercent || !1;
@@ -1953,15 +1951,15 @@ const Fe = (t) => {
1953
1951
  }
1954
1952
  return !1;
1955
1953
  }), [v, p] = N({}), y = (I) => {
1956
- const { type: T, isPercent: w, value: x, style: g } = I;
1957
- if (T === "isNotBottom")
1958
- return { type: U.highlightCell, subType: F.rank, isPercent: w, isBottom: !1, value: x, style: g };
1959
- if (T === "isBottom")
1960
- return { type: U.highlightCell, subType: F.rank, isPercent: w, isBottom: !0, value: x, style: g };
1961
- if (T === "greaterThanAverage")
1962
- return { type: U.highlightCell, subType: F.average, operator: P.greaterThan, style: g };
1963
- if (T === "lessThanAverage")
1964
- return { type: U.highlightCell, subType: F.average, operator: P.lessThan, style: g };
1954
+ const { type: R, isPercent: x, value: T, style: g } = I;
1955
+ if (R === "isNotBottom")
1956
+ return { type: L.highlightCell, subType: F.rank, isPercent: x, isBottom: !1, value: T, style: g };
1957
+ if (R === "isBottom")
1958
+ return { type: L.highlightCell, subType: F.rank, isPercent: x, isBottom: !0, value: T, style: g };
1959
+ if (R === "greaterThanAverage")
1960
+ return { type: L.highlightCell, subType: F.average, operator: U.greaterThan, style: g };
1961
+ if (R === "lessThanAverage")
1962
+ return { type: L.highlightCell, subType: F.average, operator: U.lessThan, style: g };
1965
1963
  };
1966
1964
  K(() => r.intercept(r.getInterceptPoints().submit, {
1967
1965
  handler() {
@@ -1986,7 +1984,7 @@ const Fe = (t) => {
1986
1984
  value: o,
1987
1985
  options: s,
1988
1986
  onChange: (I) => {
1989
- d(I), f({ type: I, isPercent: l, value: a, style: v });
1987
+ u(I), f({ type: I, isPercent: l, value: a, style: v });
1990
1988
  }
1991
1989
  }
1992
1990
  ),
@@ -1998,8 +1996,8 @@ const Fe = (t) => {
1998
1996
  max: 1e3,
1999
1997
  value: a,
2000
1998
  onChange: (I) => {
2001
- const T = I || 0;
2002
- h(T), f({ type: o, isPercent: l, value: T, style: v });
1999
+ const R = I || 0;
2000
+ h(R), f({ type: o, isPercent: l, value: R, style: v });
2003
2001
  }
2004
2002
  }
2005
2003
  ),
@@ -2013,7 +2011,7 @@ const Fe = (t) => {
2013
2011
  {
2014
2012
  checked: l,
2015
2013
  onChange: (I) => {
2016
- u(!!I), f({ type: o, isPercent: !!I, value: a, style: v });
2014
+ d(!!I), f({ type: o, isPercent: !!I, value: a, style: v });
2017
2015
  }
2018
2016
  }
2019
2017
  ),
@@ -2024,7 +2022,7 @@ const Fe = (t) => {
2024
2022
  ] }),
2025
2023
  /* @__PURE__ */ c("div", { className: at, children: /* @__PURE__ */ c(We, { rule: y({ type: o, isPercent: l, value: a, style: v }) }) }),
2026
2024
  /* @__PURE__ */ c(
2027
- Zt,
2025
+ zt,
2028
2026
  {
2029
2027
  style: i == null ? void 0 : i.style,
2030
2028
  className: "univer-mt-3",
@@ -2034,16 +2032,16 @@ const Fe = (t) => {
2034
2032
  }
2035
2033
  )
2036
2034
  ] });
2037
- }, Pi = fn("beforeSubmit"), Oi = fn("submit"), ln = (t) => t.getCurrentUnitForType(D.UNIVER_SHEET).getUnitId(), cn = (t) => {
2035
+ }, Ui = fn("beforeSubmit"), Pi = fn("submit"), ln = (t) => t.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), cn = (t) => {
2038
2036
  var e;
2039
- return (e = t.getCurrentUnitForType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : e.getSheetId();
2040
- }, Li = (t) => {
2037
+ return (e = t.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : e.getSheetId();
2038
+ }, Oi = (t) => {
2041
2039
  var S, C, M;
2042
- const e = q(re), r = q(te), n = q(z), i = q(Q), s = q(je), o = ln(n), d = cn(n), [a, h] = N(void 0), l = ge((C = (S = t.rule) == null ? void 0 : S.ranges) != null ? C : []), u = J(() => {
2043
- var V, L, m;
2040
+ const e = q(re), r = q(te), n = q(Z), i = q(Q), s = q(je), o = ln(n), u = cn(n), [a, h] = N(void 0), l = ge((C = (S = t.rule) == null ? void 0 : S.ranges) != null ? C : []), d = J(() => {
2041
+ var V, O, m;
2044
2042
  let E = (V = t.rule) == null ? void 0 : V.ranges;
2045
- return E != null && E.length || (E = (m = (L = s.getCurrentSelections()) == null ? void 0 : L.map((_) => _.range)) != null ? m : []), l.current = E, E != null && E.length ? E.map((_) => {
2046
- const j = Un(_);
2043
+ return E != null && E.length || (E = (m = (O = s.getCurrentSelections()) == null ? void 0 : O.map((_) => _.range)) != null ? m : []), l.current = E, E != null && E.length ? E.map((_) => {
2044
+ const j = Fn(_);
2047
2045
  return j === "NaN" ? "" : j;
2048
2046
  }).filter((_) => !!_).join(",") : "";
2049
2047
  }, [t.rule]), v = [
@@ -2054,12 +2052,12 @@ const Fe = (t) => {
2054
2052
  { label: e.t("sheet.cf.ruleType.formula"), value: "5" },
2055
2053
  { label: e.t("sheet.cf.ruleType.iconSet"), value: "6" }
2056
2054
  ], [p, y] = N(() => {
2057
- var L, m;
2058
- const E = (L = t.rule) == null ? void 0 : L.rule.type, V = v[0].value;
2055
+ var O, m;
2056
+ const E = (O = t.rule) == null ? void 0 : O.rule.type, V = v[0].value;
2059
2057
  if (!E)
2060
2058
  return V;
2061
2059
  switch (E) {
2062
- case U.highlightCell: {
2060
+ case L.highlightCell: {
2063
2061
  switch ((m = t.rule) == null ? void 0 : m.rule.subType) {
2064
2062
  case F.number:
2065
2063
  case F.text:
@@ -2075,26 +2073,26 @@ const Fe = (t) => {
2075
2073
  }
2076
2074
  break;
2077
2075
  }
2078
- case U.dataBar:
2076
+ case L.dataBar:
2079
2077
  return "3";
2080
- case U.colorScale:
2078
+ case L.colorScale:
2081
2079
  return "4";
2082
- case U.iconSet:
2080
+ case L.iconSet:
2083
2081
  return "6";
2084
2082
  }
2085
2083
  return V;
2086
- }), f = ge(void 0), R = J(() => new vr({ beforeSubmit: Pi, submit: Oi }), []), I = J(() => {
2084
+ }), f = ge(void 0), w = J(() => new hr({ beforeSubmit: Ui, submit: Pi }), []), I = J(() => {
2087
2085
  switch (p) {
2088
2086
  case "1":
2089
2087
  return on;
2090
2088
  case "2":
2091
- return Ui;
2089
+ return Li;
2092
2090
  case "3":
2093
- return xi;
2094
- case "4":
2095
2091
  return Ti;
2092
+ case "4":
2093
+ return Ri;
2096
2094
  case "5":
2097
- return wi;
2095
+ return xi;
2098
2096
  case "6":
2099
2097
  return Fi;
2100
2098
  default:
@@ -2103,36 +2101,36 @@ const Fe = (t) => {
2103
2101
  }, [p]);
2104
2102
  K(() => {
2105
2103
  const E = r.onCommandExecuted((V) => {
2106
- if (V.id === Vr.id) {
2107
- const L = V.params;
2108
- L.subUnitId === d && L.unitId === o && t.onCancel();
2104
+ if (V.id === Mr.id) {
2105
+ const O = V.params;
2106
+ O.subUnitId === u && O.unitId === o && t.onCancel();
2109
2107
  }
2110
2108
  V.id === Wt.id && t.onCancel();
2111
2109
  });
2112
2110
  return () => E.dispose();
2113
2111
  }, []);
2114
- const T = (E) => {
2112
+ const R = (E) => {
2115
2113
  f.current = E;
2116
- }, w = (E) => {
2117
- const V = E.split(",").filter((L) => !!L).map(ei).map((L) => L.range);
2114
+ }, x = (E) => {
2115
+ const V = E.split(",").filter((O) => !!O).map(ei).map((O) => O.range);
2118
2116
  l.current = V;
2119
- }, x = () => {
2117
+ }, T = () => {
2120
2118
  if (a)
2121
2119
  return;
2122
2120
  const V = (() => {
2123
- const m = n.getCurrentUnitForType(D.UNIVER_SHEET).getActiveSheet();
2121
+ const m = n.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet();
2124
2122
  if (!m)
2125
2123
  throw new Error("No active sheet found");
2126
- return l.current.map((Y) => kr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
2124
+ return l.current.map((Y) => Vr(Y, m.getRowCount(), m.getColumnCount())).filter((Y) => !(Number.isNaN(Y.startRow) || Number.isNaN(Y.startColumn)));
2127
2125
  })();
2128
- if (R.fetchThroughInterceptors(R.getInterceptPoints().beforeSubmit)(!0, null)) {
2129
- const m = R.fetchThroughInterceptors(R.getInterceptPoints().submit)(null, null);
2126
+ if (w.fetchThroughInterceptors(w.getInterceptPoints().beforeSubmit)(!0, null)) {
2127
+ const m = w.fetchThroughInterceptors(w.getInterceptPoints().submit)(null, null);
2130
2128
  if (m) {
2131
2129
  const _ = ln(n), j = cn(n);
2132
2130
  if (!_ || !j)
2133
2131
  throw new Error("No active sheet found");
2134
2132
  let Y = {};
2135
- t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(Rr.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel()) : (Y = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Sn.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel());
2133
+ t.rule && t.rule.cfId ? (Y = { ...t.rule, ranges: V, rule: m }, r.executeCommand(_r.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel()) : (Y = { cfId: i.createCfId(_, j), ranges: V, rule: m, stopIfTrue: !1 }, r.executeCommand(Sn.id, { unitId: _, subUnitId: j, rule: Y }), t.onCancel());
2136
2134
  }
2137
2135
  }
2138
2136
  }, g = () => {
@@ -2153,9 +2151,9 @@ const Fe = (t) => {
2153
2151
  ti,
2154
2152
  {
2155
2153
  unitId: o,
2156
- subUnitId: d,
2157
- initialValue: u,
2158
- onChange: (E, V) => w(V),
2154
+ subUnitId: u,
2155
+ initialValue: d,
2156
+ onChange: (E, V) => x(V),
2159
2157
  onVerify: b
2160
2158
  }
2161
2159
  ),
@@ -2180,22 +2178,22 @@ const Fe = (t) => {
2180
2178
  /* @__PURE__ */ c(
2181
2179
  I,
2182
2180
  {
2183
- interceptorManager: R,
2181
+ interceptorManager: w,
2184
2182
  rule: (M = t.rule) == null ? void 0 : M.rule,
2185
- onChange: T
2183
+ onChange: R
2186
2184
  }
2187
2185
  ),
2188
2186
  /* @__PURE__ */ k("div", { className: "univer-mt-4 univer-flex univer-justify-end", children: [
2189
2187
  /* @__PURE__ */ c(Xt, { onClick: g, children: e.t("sheet.cf.panel.cancel") }),
2190
- /* @__PURE__ */ c(Xt, { className: "univer-ml-3", variant: "primary", onClick: x, children: e.t("sheet.cf.panel.submit") })
2188
+ /* @__PURE__ */ c(Xt, { className: "univer-ml-3", variant: "primary", onClick: T, children: e.t("sheet.cf.panel.submit") })
2191
2189
  ] })
2192
2190
  ] });
2193
2191
  };
2194
- var $i = Object.getOwnPropertyDescriptor, Ai = (t, e, r, n) => {
2195
- for (var i = n > 1 ? void 0 : n ? $i(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2192
+ var Di = Object.getOwnPropertyDescriptor, $i = (t, e, r, n) => {
2193
+ for (var i = n > 1 ? void 0 : n ? Di(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2196
2194
  (o = t[s]) && (i = o(i) || i);
2197
2195
  return i;
2198
- }, Di = (t, e) => (r, n) => e(r, n, t);
2196
+ }, Ai = (t, e) => (r, n) => e(r, n, t);
2199
2197
  let He = class extends ue {
2200
2198
  constructor(e) {
2201
2199
  super();
@@ -2218,34 +2216,34 @@ let He = class extends ue {
2218
2216
  const n = this._localeService.getLocales(), i = e.split("."), s = n && this._localeService.resolveKeyPath(n, i);
2219
2217
  if (typeof s == "string") {
2220
2218
  const o = [];
2221
- return this._findReplaceIndex(s).forEach((d, a, h) => {
2219
+ return this._findReplaceIndex(s).forEach((u, a, h) => {
2222
2220
  const l = h[a - 1] || { endIndex: -1 };
2223
- if (l.endIndex + 1 < d.startIndex) {
2224
- const u = s.slice(l.endIndex + 1, d.startIndex);
2225
- u && o.push(u);
2221
+ if (l.endIndex + 1 < u.startIndex) {
2222
+ const d = s.slice(l.endIndex + 1, u.startIndex);
2223
+ d && o.push(d);
2226
2224
  }
2227
- if (r[d.key] && o.push(r[d.key]), a === h.length - 1) {
2228
- const u = s.slice(d.endIndex + 1);
2229
- u && o.push(u);
2225
+ if (r[u.key] && o.push(r[u.key]), a === h.length - 1) {
2226
+ const d = s.slice(u.endIndex + 1);
2227
+ d && o.push(d);
2230
2228
  }
2231
2229
  }), o;
2232
2230
  }
2233
2231
  return [];
2234
2232
  }
2235
2233
  };
2236
- He = Ai([
2237
- Di(0, O(re))
2234
+ He = $i([
2235
+ Ai(0, P(re))
2238
2236
  ], He);
2239
2237
  const Hi = (t, e) => {
2240
2238
  const r = t.rule;
2241
2239
  switch (r.type) {
2242
- case U.colorScale:
2240
+ case L.colorScale:
2243
2241
  return e.t("sheet.cf.ruleType.colorScale");
2244
- case U.dataBar:
2242
+ case L.dataBar:
2245
2243
  return e.t("sheet.cf.ruleType.dataBar");
2246
- case U.iconSet:
2244
+ case L.iconSet:
2247
2245
  return e.t("sheet.cf.ruleType.iconSet");
2248
- case U.highlightCell:
2246
+ case L.highlightCell:
2249
2247
  switch (r.subType) {
2250
2248
  case F.average: {
2251
2249
  const n = r.operator;
@@ -2276,116 +2274,116 @@ const Hi = (t, e) => {
2276
2274
  };
2277
2275
  let un = 0;
2278
2276
  const ji = (t) => {
2279
- const { onClick: e } = t, r = q(Q), n = q(z), i = q(je), s = q(te), o = q(re), d = q(fe), a = q(Fn), h = q(He), l = qr(() => n.getCurrentTypeOfUnit$(D.UNIVER_SHEET), void 0, void 0, []), u = l.getUnitId(), v = l.getActiveSheet();
2277
+ const { onClick: e } = t, r = q(Q), n = q(Z), i = q(je), s = q(te), o = q(re), u = q(fe), a = q(kn), h = q(He), l = Wr(() => n.getCurrentTypeOfUnit$(A.UNIVER_SHEET), void 0, void 0, []), d = l.getUnitId(), v = l.getActiveSheet();
2280
2278
  if (!v)
2281
2279
  throw new Error("No active sheet found");
2282
- const p = v.getSheetId(), [y, f] = N([]), [R, I] = N("2"), [T, w] = N(0), [x, g] = N(-1), [b, S] = N(un), C = ge(null), M = [
2280
+ const p = v.getSheetId(), [y, f] = N([]), [w, I] = N("2"), [R, x] = N(0), [T, g] = N(-1), [b, S] = N(un), C = ge(null), M = [
2283
2281
  { label: o.t("sheet.cf.panel.workSheet"), value: "2" },
2284
2282
  { label: o.t("sheet.cf.panel.selectedRange"), value: "1" }
2285
2283
  ], E = () => {
2286
- const A = r.getSubunitRules(u, p);
2287
- if (!A || !A.length)
2284
+ const $ = r.getSubunitRules(d, p);
2285
+ if (!$ || !$.length)
2288
2286
  return [];
2289
- if (R === "1") {
2287
+ if (w === "1") {
2290
2288
  const B = i.getCurrentLastSelection();
2291
2289
  if (!B)
2292
2290
  return [];
2293
2291
  const G = B.range;
2294
- return A.filter((ee) => ee.ranges.some((ne) => ye.intersects(ne, G)));
2295
- } else if (R === "2")
2296
- return [...A];
2292
+ return $.filter((ee) => ee.ranges.some((ne) => ye.intersects(ne, G)));
2293
+ } else if (w === "2")
2294
+ return [...$];
2297
2295
  return [];
2298
- }, [V, L] = N(E);
2296
+ }, [V, O] = N(E);
2299
2297
  ni(y), K(() => {
2300
- const A = s.onCommandExecuted((B) => {
2301
- B.id === Wt.id && w(Math.random());
2298
+ const $ = s.onCommandExecuted((B) => {
2299
+ B.id === Wt.id && x(Math.random());
2302
2300
  });
2303
- return () => A.dispose();
2301
+ return () => $.dispose();
2304
2302
  }), K(() => {
2305
- L(E);
2306
- }, [R, T, u, p]), K(() => {
2307
- if (R === "2")
2303
+ O(E);
2304
+ }, [w, R, d, p]), K(() => {
2305
+ if (w === "2")
2308
2306
  return;
2309
- const A = new Ne((B) => {
2310
- const G = [Fr.id, se.id, _e.id, Re.id, _n.id], Z = s.onCommandExecuted((ee) => {
2311
- const { id: ne, params: Te } = ee, xe = n.getCurrentUnitOfType(D.UNIVER_SHEET).getUnitId();
2312
- G.includes(ne) && Te.unitId === xe && B.next(null);
2307
+ const $ = new Ne((B) => {
2308
+ const G = [kr.id, se.id, _e.id, we.id, _n.id], z = s.onCommandExecuted((ee) => {
2309
+ const { id: ne, params: Re } = ee, Te = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId();
2310
+ G.includes(ne) && Re.unitId === Te && B.next(null);
2313
2311
  });
2314
- return () => Z.dispose();
2312
+ return () => z.dispose();
2315
2313
  }).pipe(en(16)).subscribe(() => {
2316
- L(E);
2314
+ O(E);
2317
2315
  });
2318
2316
  return () => {
2319
- A.unsubscribe();
2317
+ $.unsubscribe();
2320
2318
  };
2321
- }, [n, R, u, p]), K(() => {
2322
- const A = r.$ruleChange.subscribe(() => {
2323
- w(Math.random());
2319
+ }, [n, w, d, p]), K(() => {
2320
+ const $ = r.$ruleChange.subscribe(() => {
2321
+ x(Math.random());
2324
2322
  });
2325
- return () => A.unsubscribe();
2323
+ return () => $.unsubscribe();
2326
2324
  }, [r]), K(() => {
2327
- const A = () => {
2325
+ const $ = () => {
2328
2326
  var ee, ne;
2329
- const Z = Math.max(0, ((ne = (ee = C.current) == null ? void 0 : ee.getBoundingClientRect().width) != null ? ne : 0) - 8);
2330
- return un = Z, Z;
2331
- }, G = new Ne((Z) => {
2327
+ const z = Math.max(0, ((ne = (ee = C.current) == null ? void 0 : ee.getBoundingClientRect().width) != null ? ne : 0) - 8);
2328
+ return un = z, z;
2329
+ }, G = new Ne((z) => {
2332
2330
  const ee = a.getContainer();
2333
2331
  if (ee) {
2334
2332
  let ne = setTimeout(() => {
2335
- Z.next(void 0);
2333
+ z.next(void 0);
2336
2334
  }, 150);
2337
- const Te = () => {
2335
+ const Re = () => {
2338
2336
  ne && clearTimeout(ne), ne = null;
2339
- }, xe = (lt) => {
2340
- lt.propertyName === "width" && (Te(), Z.next(void 0));
2337
+ }, Te = (lt) => {
2338
+ lt.propertyName === "width" && (Re(), z.next(void 0));
2341
2339
  };
2342
- return ee.addEventListener("transitionend", xe), () => {
2343
- Te(), ee.removeEventListener("transitionend", xe);
2340
+ return ee.addEventListener("transitionend", Te), () => {
2341
+ Re(), ee.removeEventListener("transitionend", Te);
2344
2342
  };
2345
2343
  }
2346
2344
  }).pipe(en(16)).subscribe(() => {
2347
- S(A());
2345
+ S($());
2348
2346
  });
2349
2347
  return () => {
2350
2348
  G.unsubscribe();
2351
2349
  };
2352
2350
  }, []);
2353
- const m = (A) => {
2354
- var Z;
2355
- const B = n.getCurrentUnitOfType(D.UNIVER_SHEET).getUnitId(), G = (Z = n.getCurrentUnitOfType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : Z.getSheetId();
2351
+ const m = ($) => {
2352
+ var z;
2353
+ const B = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId(), G = (z = n.getCurrentUnitOfType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : z.getSheetId();
2356
2354
  if (!B || !G)
2357
2355
  throw new Error("No active sheet found");
2358
- s.executeCommand(Yt.id, { unitId: B, subUnitId: G, cfId: A.cfId });
2359
- }, _ = (A, B) => {
2356
+ s.executeCommand(Yt.id, { unitId: B, subUnitId: G, cfId: $.cfId });
2357
+ }, _ = ($, B) => {
2360
2358
  g(B.y);
2361
- }, j = (A, B, G) => {
2359
+ }, j = ($, B, G) => {
2362
2360
  var lt;
2363
2361
  g(-1);
2364
- const Z = n.getCurrentUnitOfType(D.UNIVER_SHEET).getUnitId(), ee = (lt = n.getCurrentUnitOfType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : lt.getSheetId();
2365
- if (!Z || !ee)
2362
+ const z = n.getCurrentUnitOfType(A.UNIVER_SHEET).getUnitId(), ee = (lt = n.getCurrentUnitOfType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : lt.getSheetId();
2363
+ if (!z || !ee)
2366
2364
  throw new Error("No active sheet found");
2367
- const ne = (ar) => {
2368
- const lr = V.length;
2369
- return Math.min(lr - 1, Math.max(0, ar));
2370
- }, Te = V[ne(B.y)].cfId, xe = V[ne(G.y)].cfId;
2371
- Te !== xe && s.executeCommand(Tr.id, { unitId: Z, subUnitId: ee, start: { id: Te, type: "self" }, end: { id: xe, type: G.y > B.y ? "after" : "before" } });
2365
+ const ne = (or) => {
2366
+ const ar = V.length;
2367
+ return Math.min(ar - 1, Math.max(0, or));
2368
+ }, Re = V[ne(B.y)].cfId, Te = V[ne(G.y)].cfId;
2369
+ Re !== Te && s.executeCommand(wr.id, { unitId: z, subUnitId: ee, start: { id: Re, type: "self" }, end: { id: Te, type: G.y > B.y ? "after" : "before" } });
2372
2370
  }, Y = () => {
2373
2371
  t.onCreate();
2374
2372
  }, pe = () => {
2375
- R === "2" ? s.executeCommand(Rn.id) : R === "1" && V.map((B) => ({ unitId: u, subUnitId: p, cfId: B.cfId })).forEach((B) => {
2373
+ w === "2" ? s.executeCommand(wn.id) : w === "1" && V.map((B) => ({ unitId: d, subUnitId: p, cfId: B.cfId })).forEach((B) => {
2376
2374
  s.executeCommand(Yt.id, B);
2377
2375
  });
2378
2376
  }, Ce = J(() => {
2379
- const A = n.getCurrentUnitOfType(D.UNIVER_SHEET), B = A.getActiveSheet();
2377
+ const $ = n.getCurrentUnitOfType(A.UNIVER_SHEET), B = $.getActiveSheet();
2380
2378
  return V.filter((G) => {
2381
- const Z = G.ranges;
2382
- return ft(d, A.getUnitId(), B.getSheetId(), Z);
2379
+ const z = G.ranges;
2380
+ return ft(u, $.getUnitId(), B.getSheetId(), z);
2383
2381
  });
2384
- }, [V]), Ue = Ce.map((A, B) => ({ i: A.cfId, x: 0, w: 12, y: B, h: 1, isResizable: !1 })), Pe = J(() => {
2385
- const A = n.getCurrentUnitOfType(D.UNIVER_SHEET), B = A.getActiveSheet();
2382
+ }, [V]), Le = Ce.map(($, B) => ({ i: $.cfId, x: 0, w: 12, y: B, h: 1, isResizable: !1 })), Ue = J(() => {
2383
+ const $ = n.getCurrentUnitOfType(A.UNIVER_SHEET), B = $.getActiveSheet();
2386
2384
  return V.every((G) => {
2387
- const Z = G.ranges;
2388
- return ft(d, A.getUnitId(), B.getSheetId(), Z);
2385
+ const z = G.ranges;
2386
+ return ft(u, $.getUnitId(), B.getSheetId(), z);
2389
2387
  });
2390
2388
  }, [V]);
2391
2389
  return /* @__PURE__ */ k("div", { children: [
@@ -2397,23 +2395,23 @@ const ji = (t) => {
2397
2395
  {
2398
2396
  className: "univer-w-36",
2399
2397
  options: M,
2400
- value: R,
2401
- onChange: (A) => {
2402
- I(A);
2398
+ value: w,
2399
+ onChange: ($) => {
2400
+ I($);
2403
2401
  }
2404
2402
  }
2405
2403
  )
2406
- ).map((A, B) => /* @__PURE__ */ c("span", { children: A }, B)) }),
2404
+ ).map(($, B) => /* @__PURE__ */ c("span", { children: $ }, B)) }),
2407
2405
  /* @__PURE__ */ k("div", { className: "univer-flex univer-justify-end", children: [
2408
2406
  /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.createRule"), placement: "bottom", children: /* @__PURE__ */ c(
2409
2407
  "a",
2410
2408
  {
2411
2409
  className: "univer-size-5 univer-cursor-pointer",
2412
2410
  onClick: Y,
2413
- children: /* @__PURE__ */ c(Xn, {})
2411
+ children: /* @__PURE__ */ c(Kn, {})
2414
2412
  }
2415
2413
  ) }),
2416
- V.length && Pe ? /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ c(
2414
+ V.length && Ue ? /* @__PURE__ */ c(Jt, { title: o.t("sheet.cf.panel.clear"), placement: "bottom", children: /* @__PURE__ */ c(
2417
2415
  "a",
2418
2416
  {
2419
2417
  className: "univer-size-5 univer-cursor-pointer",
@@ -2428,25 +2426,25 @@ const ji = (t) => {
2428
2426
  {
2429
2427
  className: "[&_.react-grid-item]:univer-transition-none [&_.react-grid-placeholder]:univer-rounded [&_.react-grid-placeholder]:!univer-bg-gray-200",
2430
2428
  draggableHandle: ".draggableHandle",
2431
- layout: Ue,
2429
+ layout: Le,
2432
2430
  cols: 12,
2433
2431
  rowHeight: 60,
2434
2432
  width: b,
2435
2433
  margin: [0, 10],
2436
2434
  onDragStop: j,
2437
2435
  onDragStart: _,
2438
- children: Ce == null ? void 0 : Ce.map((A, B) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ k(
2436
+ children: Ce == null ? void 0 : Ce.map(($, B) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ k(
2439
2437
  "div",
2440
2438
  {
2441
2439
  className: X("univer-group univer-relative univer-flex univer-items-center univer-justify-between univer-rounded univer-py-2 univer-pl-5 univer-pr-8 dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100", {
2442
- "univer-bg-gray-100 dark:!univer-bg-gray-700": x === B
2440
+ "univer-bg-gray-100 dark:!univer-bg-gray-700": T === B
2443
2441
  }),
2444
2442
  onMouseMove: () => {
2445
- A.ranges !== y && f(A.ranges);
2443
+ $.ranges !== y && f($.ranges);
2446
2444
  },
2447
2445
  onMouseLeave: () => f([]),
2448
2446
  onClick: () => {
2449
- e(A);
2447
+ e($);
2450
2448
  },
2451
2449
  children: [
2452
2450
  /* @__PURE__ */ c(
@@ -2454,7 +2452,7 @@ const ji = (t) => {
2454
2452
  {
2455
2453
  className: X("univer-absolute univer-left-0 univer-hidden univer-size-5 univer-cursor-grab univer-items-center univer-justify-center univer-rounded group-hover:univer-flex", "draggableHandle"),
2456
2454
  onClick: (G) => G.stopPropagation(),
2457
- children: /* @__PURE__ */ c(er, {})
2455
+ children: /* @__PURE__ */ c(Qn, {})
2458
2456
  }
2459
2457
  ),
2460
2458
  /* @__PURE__ */ k(
@@ -2466,35 +2464,35 @@ const ji = (t) => {
2466
2464
  "div",
2467
2465
  {
2468
2466
  className: "univer-text-sm univer-text-gray-900 dark:!univer-text-white",
2469
- children: Hi(A, o)
2467
+ children: Hi($, o)
2470
2468
  }
2471
2469
  ),
2472
- /* @__PURE__ */ c("div", { className: "univer-text-xs univer-text-gray-400", children: A.ranges.map((G) => Un(G)).join(",") })
2470
+ /* @__PURE__ */ c("div", { className: "univer-text-xs univer-text-gray-400", children: $.ranges.map((G) => Fn(G)).join(",") })
2473
2471
  ]
2474
2472
  }
2475
2473
  ),
2476
- /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(We, { rule: A.rule }) }),
2474
+ /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(We, { rule: $.rule }) }),
2477
2475
  /* @__PURE__ */ c(
2478
2476
  "div",
2479
2477
  {
2480
2478
  className: X("univer-absolute univer-right-1 univer-hidden univer-size-6 univer-cursor-pointer univer-items-center univer-justify-center univer-rounded group-hover:univer-flex hover:univer-bg-gray-200", {
2481
- "univer-flex univer-items-center univer-justify-center": x === B
2479
+ "univer-flex univer-items-center univer-justify-center": T === B
2482
2480
  }),
2483
2481
  onClick: (G) => {
2484
- G.stopPropagation(), m(A), f([]);
2482
+ G.stopPropagation(), m($), f([]);
2485
2483
  },
2486
2484
  children: /* @__PURE__ */ c(gt, {})
2487
2485
  }
2488
2486
  )
2489
2487
  ]
2490
2488
  }
2491
- ) }, `${A.cfId}`))
2489
+ ) }, `${$.cfId}`))
2492
2490
  }
2493
2491
  ) })
2494
2492
  ] });
2495
2493
  }, Bi = (t) => {
2496
2494
  const [e, r] = N(t.rule), [n, i] = N(!!t.rule);
2497
- return /* @__PURE__ */ c("div", { className: "univer-flex univer-h-full univer-flex-col univer-justify-between", children: n ? /* @__PURE__ */ c(Li, { onCancel: () => {
2495
+ return /* @__PURE__ */ c("div", { className: "univer-flex univer-h-full univer-flex-col univer-justify-between", children: n ? /* @__PURE__ */ c(Oi, { onCancel: () => {
2498
2496
  i(!1), r(void 0);
2499
2497
  }, rule: e }) : /* @__PURE__ */ c(ji, { onClick: (a) => {
2500
2498
  r(a), i(!0);
@@ -2513,9 +2511,9 @@ let Qe = class extends ue {
2513
2511
  super();
2514
2512
  Se(this, "_sidebarDisposable", null);
2515
2513
  this._univerInstanceService = e, this._injector = r, this._componentManager = n, this._sidebarService = i, this._localeService = s, this._initPanel(), this.disposeWithMe(
2516
- this._univerInstanceService.getCurrentTypeOfUnit$(D.UNIVER_SHEET).subscribe((o) => {
2517
- var d;
2518
- o || (d = this._sidebarDisposable) == null || d.dispose();
2514
+ this._univerInstanceService.getCurrentTypeOfUnit$(A.UNIVER_SHEET).subscribe((o) => {
2515
+ var u;
2516
+ o || (u = this._sidebarDisposable) == null || u.dispose();
2519
2517
  })
2520
2518
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((o) => {
2521
2519
  o.id === ht && (o.visible || setTimeout(() => {
@@ -2530,7 +2528,7 @@ let Qe = class extends ue {
2530
2528
  children: {
2531
2529
  label: ht,
2532
2530
  rule: e,
2533
- key: gr(4)
2531
+ key: vr(4)
2534
2532
  },
2535
2533
  onClose: () => this._sidebarDisposable = null
2536
2534
  };
@@ -2543,30 +2541,30 @@ let Qe = class extends ue {
2543
2541
  }
2544
2542
  };
2545
2543
  Qe = qi([
2546
- qe(0, z),
2547
- qe(1, O(fe)),
2548
- qe(2, O(kn)),
2549
- qe(3, O(Fn)),
2550
- qe(4, O(re))
2544
+ qe(0, Z),
2545
+ qe(1, P(fe)),
2546
+ qe(2, P(qr)),
2547
+ qe(3, P(kn)),
2548
+ qe(4, P(re))
2551
2549
  ], Qe);
2552
2550
  var ie = /* @__PURE__ */ ((t) => (t[t.createRule = 1] = "createRule", t[t.viewRule = 2] = "viewRule", t[t.highlightCell = 3] = "highlightCell", t[t.rank = 4] = "rank", t[t.formula = 5] = "formula", t[t.colorScale = 6] = "colorScale", t[t.dataBar = 7] = "dataBar", t[t.icon = 8] = "icon", t[t.clearRangeRules = 9] = "clearRangeRules", t[t.clearWorkSheetRules = 10] = "clearWorkSheetRules", t))(ie || {});
2553
2551
  const Vt = {
2554
2552
  id: "sheet.operation.open.conditional.formatting.panel",
2555
2553
  type: me.OPERATION,
2556
2554
  handler: (t, e) => {
2557
- var d;
2558
- const r = t.get(Qe), n = t.get(je), i = t.get(te), s = ((d = n.getCurrentSelections()) == null ? void 0 : d.map((a) => a.range)) || [];
2555
+ var u;
2556
+ const r = t.get(Qe), n = t.get(je), i = t.get(te), s = ((u = n.getCurrentSelections()) == null ? void 0 : u.map((a) => a.range)) || [];
2559
2557
  switch (e.value) {
2560
2558
  case 3: {
2561
- r.openPanel({ ...we(), ranges: s });
2559
+ r.openPanel({ ...xe(), ranges: s });
2562
2560
  break;
2563
2561
  }
2564
2562
  case 4: {
2565
2563
  const a = {
2566
- ...we,
2564
+ ...xe,
2567
2565
  ranges: s,
2568
2566
  rule: {
2569
- type: U.highlightCell,
2567
+ type: L.highlightCell,
2570
2568
  subType: F.rank
2571
2569
  }
2572
2570
  };
@@ -2575,10 +2573,10 @@ const Vt = {
2575
2573
  }
2576
2574
  case 5: {
2577
2575
  const a = {
2578
- ...we,
2576
+ ...xe,
2579
2577
  ranges: s,
2580
2578
  rule: {
2581
- type: U.highlightCell,
2579
+ type: L.highlightCell,
2582
2580
  subType: F.formula,
2583
2581
  value: "="
2584
2582
  }
@@ -2588,10 +2586,10 @@ const Vt = {
2588
2586
  }
2589
2587
  case 6: {
2590
2588
  const a = {
2591
- ...we,
2589
+ ...xe,
2592
2590
  ranges: s,
2593
2591
  rule: {
2594
- type: U.colorScale,
2592
+ type: L.colorScale,
2595
2593
  config: []
2596
2594
  }
2597
2595
  };
@@ -2600,10 +2598,10 @@ const Vt = {
2600
2598
  }
2601
2599
  case 7: {
2602
2600
  const a = {
2603
- ...we,
2601
+ ...xe,
2604
2602
  ranges: s,
2605
2603
  rule: {
2606
- type: U.dataBar,
2604
+ type: L.dataBar,
2607
2605
  isShowValue: !0
2608
2606
  }
2609
2607
  };
@@ -2612,10 +2610,10 @@ const Vt = {
2612
2610
  }
2613
2611
  case 8: {
2614
2612
  const a = {
2615
- ...we,
2613
+ ...xe,
2616
2614
  ranges: s,
2617
2615
  rule: {
2618
- type: U.iconSet,
2616
+ type: L.iconSet,
2619
2617
  config: [],
2620
2618
  isShowValue: !0
2621
2619
  }
@@ -2628,22 +2626,22 @@ const Vt = {
2628
2626
  break;
2629
2627
  }
2630
2628
  case 1: {
2631
- r.openPanel({ ...we(), ranges: s });
2629
+ r.openPanel({ ...xe(), ranges: s });
2632
2630
  break;
2633
2631
  }
2634
2632
  case 9: {
2635
- i.executeCommand(xr.id, { ranges: s });
2633
+ i.executeCommand(Rr.id, { ranges: s });
2636
2634
  break;
2637
2635
  }
2638
2636
  case 10: {
2639
- i.executeCommand(Rn.id);
2637
+ i.executeCommand(wn.id);
2640
2638
  break;
2641
2639
  }
2642
2640
  }
2643
2641
  return !0;
2644
2642
  }
2645
2643
  };
2646
- var Gi = Object.getOwnPropertyDescriptor, zi = (t, e, r, n) => {
2644
+ var Gi = Object.getOwnPropertyDescriptor, Zi = (t, e, r, n) => {
2647
2645
  for (var i = n > 1 ? void 0 : n ? Gi(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2648
2646
  (o = t[s]) && (i = o(i) || i);
2649
2647
  return i;
@@ -2660,8 +2658,8 @@ let et = class extends ue {
2660
2658
  id: st,
2661
2659
  onBeforeCopy: (e, r, n) => this._collectConditionalRule(e, r, n),
2662
2660
  onPasteCells: (e, r, n, i) => {
2663
- const { copyType: s = Qt.COPY, pasteType: o } = i, { range: d } = e || {}, { range: a } = r;
2664
- return this._generateConditionalFormattingMutations(a, { copyType: s, pasteType: o, copyRange: d });
2661
+ const { copyType: s = Qt.COPY, pasteType: o } = i, { range: u } = e || {}, { range: a } = r;
2662
+ return this._generateConditionalFormattingMutations(a, { copyType: s, pasteType: o, copyRange: u });
2665
2663
  }
2666
2664
  })
2667
2665
  );
@@ -2676,23 +2674,23 @@ let et = class extends ue {
2676
2674
  cfMap: s
2677
2675
  }
2678
2676
  };
2679
- const o = this._injector.invoke((l) => Ur(n, l, e, r));
2677
+ const o = this._injector.invoke((l) => Fr(n, l, e, r));
2680
2678
  if (!o)
2681
2679
  return;
2682
- const { rows: d, cols: a } = o, h = /* @__PURE__ */ new Set();
2683
- d.forEach((l, u) => {
2680
+ const { rows: u, cols: a } = o, h = /* @__PURE__ */ new Set();
2681
+ u.forEach((l, d) => {
2684
2682
  a.forEach((v, p) => {
2685
2683
  const y = this._conditionalFormattingViewModel.getCellCfs(e, r, l, v);
2686
- y && (y.forEach((f) => h.add(f.cfId)), i.setValue(u, p, y.map((f) => f.cfId)));
2684
+ y && (y.forEach((f) => h.add(f.cfId)), i.setValue(d, p, y.map((f) => f.cfId)));
2687
2685
  });
2688
2686
  }), h.forEach((l) => {
2689
- const u = this._conditionalFormattingRuleModel.getRule(e, r, l);
2690
- u && (s[l] = u.rule);
2687
+ const d = this._conditionalFormattingRuleModel.getRule(e, r, l);
2688
+ d && (s[l] = d.rule);
2691
2689
  });
2692
2690
  }
2693
2691
  // eslint-disable-next-line max-lines-per-function
2694
2692
  _generateConditionalFormattingMutations(e, r) {
2695
- const n = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET), i = n.getActiveSheet(), s = n.getUnitId();
2693
+ const n = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), i = n.getActiveSheet(), s = n.getUnitId();
2696
2694
  if (!i) return { redos: [], undos: [] };
2697
2695
  const o = i.getSheetId();
2698
2696
  if (r.copyType === Qt.CUT)
@@ -2707,15 +2705,15 @@ let et = class extends ue {
2707
2705
  r.pasteType
2708
2706
  ))
2709
2707
  return { redos: [], undos: [] };
2710
- const { ranges: [a, h], mapFunc: l } = Pn([r.copyRange, e]), u = ii(a, h, !0), v = {};
2708
+ const { ranges: [a, h], mapFunc: l } = Ln([r.copyRange, e]), d = ii(a, h, !0), v = {};
2711
2709
  be.foreach(h, (g, b) => {
2712
2710
  const { row: S, col: C } = l(g, b), M = this._conditionalFormattingViewModel.getCellCfs(s, o, S, C);
2713
2711
  M && M.forEach((E) => {
2714
2712
  if (!v[E.cfId]) {
2715
2713
  const V = new Me();
2716
2714
  v[E.cfId] = V;
2717
- const L = this._conditionalFormattingRuleModel.getRule(s, o, E.cfId);
2718
- L == null || L.ranges.forEach((m) => {
2715
+ const O = this._conditionalFormattingRuleModel.getRule(s, o, E.cfId);
2716
+ O == null || O.ranges.forEach((m) => {
2719
2717
  be.foreach(m, (_, j) => {
2720
2718
  V.setValue(_, j, 1);
2721
2719
  });
@@ -2725,8 +2723,8 @@ let et = class extends ue {
2725
2723
  });
2726
2724
  });
2727
2725
  const { matrix: p, info: y } = this._copyInfo, f = [];
2728
- let R = this._conditionalFormattingRuleModel.createCfId(s, o);
2729
- const I = {}, T = (g) => {
2726
+ let w = this._conditionalFormattingRuleModel.createCfId(s, o);
2727
+ const I = {}, R = (g) => {
2730
2728
  if (I[g])
2731
2729
  return I[g];
2732
2730
  const b = y == null ? void 0 : y.cfMap[g], S = [...this._conditionalFormattingRuleModel.getSubunitRules(s, o) || [], ...f].find((C) => Bt.diffValue(C.rule, b));
@@ -2735,14 +2733,14 @@ let et = class extends ue {
2735
2733
  {
2736
2734
  const C = {
2737
2735
  rule: b,
2738
- cfId: R,
2736
+ cfId: w,
2739
2737
  ranges: [],
2740
2738
  stopIfTrue: !1
2741
2739
  };
2742
- return I[g] = C, f.push(C), R = `${Number(R) + 1}`, C;
2740
+ return I[g] = C, f.push(C), w = `${Number(w) + 1}`, C;
2743
2741
  }
2744
2742
  };
2745
- u.forEach((g) => {
2743
+ d.forEach((g) => {
2746
2744
  p && p.forValue((b, S, C) => {
2747
2745
  const M = ye.getPositionRange(
2748
2746
  {
@@ -2753,20 +2751,20 @@ let et = class extends ue {
2753
2751
  },
2754
2752
  g.startRange
2755
2753
  ), { row: E, col: V } = l(M.startRow, M.startColumn);
2756
- C.forEach((L) => {
2757
- if (!v[L]) {
2758
- const m = T(L), _ = new Me();
2759
- v[L] = _, m.ranges.forEach((j) => {
2754
+ C.forEach((O) => {
2755
+ if (!v[O]) {
2756
+ const m = R(O), _ = new Me();
2757
+ v[O] = _, m.ranges.forEach((j) => {
2760
2758
  be.foreach(j, (Y, pe) => {
2761
2759
  _.setValue(Y, pe, 1);
2762
2760
  });
2763
2761
  });
2764
2762
  }
2765
- v[L].setValue(E, V, 1);
2763
+ v[O].setValue(E, V, 1);
2766
2764
  });
2767
2765
  });
2768
2766
  });
2769
- const w = [], x = [];
2767
+ const x = [], T = [];
2770
2768
  for (const g in v) {
2771
2769
  const b = v[g], S = pt(Ct(b));
2772
2770
  if (!S.length) {
@@ -2775,15 +2773,15 @@ let et = class extends ue {
2775
2773
  subUnitId: o,
2776
2774
  cfId: g
2777
2775
  };
2778
- w.push({ id: Re.id, params: C }), x.push(...Ae(this._injector, C));
2776
+ x.push({ id: we.id, params: C }), T.push(...$e(this._injector, C));
2779
2777
  }
2780
2778
  if (f.some((C) => C.cfId === g)) {
2781
- const C = T(g), M = {
2779
+ const C = R(g), M = {
2782
2780
  unitId: s,
2783
2781
  subUnitId: o,
2784
2782
  rule: { ...C, ranges: S }
2785
2783
  };
2786
- w.push({ id: se.id, params: M }), x.push(Tn(this._injector, M));
2784
+ x.push({ id: se.id, params: M }), T.push(Rn(this._injector, M));
2787
2785
  } else {
2788
2786
  const C = this._conditionalFormattingRuleModel.getRule(s, o, g);
2789
2787
  if (!C)
@@ -2793,27 +2791,27 @@ let et = class extends ue {
2793
2791
  subUnitId: o,
2794
2792
  rule: { ...C, ranges: S }
2795
2793
  };
2796
- w.push({ id: _e.id, params: M }), x.push(...De(this._injector, M));
2794
+ x.push({ id: _e.id, params: M }), T.push(...Ae(this._injector, M));
2797
2795
  }
2798
2796
  }
2799
2797
  return {
2800
- redos: w,
2801
- undos: x
2798
+ redos: x,
2799
+ undos: T
2802
2800
  };
2803
2801
  }
2804
2802
  };
2805
- et = zi([
2806
- Ge(0, O(ri)),
2807
- Ge(1, O(Q)),
2808
- Ge(2, O(fe)),
2809
- Ge(3, O(it)),
2810
- Ge(4, O(z))
2803
+ et = Zi([
2804
+ Ge(0, P(ri)),
2805
+ Ge(1, P(Q)),
2806
+ Ge(2, P(fe)),
2807
+ Ge(3, P(it)),
2808
+ Ge(4, P(Z))
2811
2809
  ], et);
2812
- var Zi = Object.getOwnPropertyDescriptor, Yi = (t, e, r, n) => {
2813
- for (var i = n > 1 ? void 0 : n ? Zi(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2810
+ var zi = Object.getOwnPropertyDescriptor, Yi = (t, e, r, n) => {
2811
+ for (var i = n > 1 ? void 0 : n ? zi(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2814
2812
  (o = t[s]) && (i = o(i) || i);
2815
2813
  return i;
2816
- }, Lt = (t, e) => (r, n) => e(r, n, t);
2814
+ }, Ot = (t, e) => (r, n) => e(r, n, t);
2817
2815
  let tt = class extends ue {
2818
2816
  constructor(t, e, r) {
2819
2817
  super(), this._localeService = t, this._commandService = e, this._sheetPermissionCheckController = r, this._commandExecutedListener();
@@ -2831,9 +2829,9 @@ let tt = class extends ue {
2831
2829
  }
2832
2830
  };
2833
2831
  tt = Yi([
2834
- Lt(0, O(re)),
2835
- Lt(1, te),
2836
- Lt(2, O(Pr))
2832
+ Ot(0, P(re)),
2833
+ Ot(1, te),
2834
+ Ot(2, P(Lr))
2837
2835
  ], tt);
2838
2836
  var Ki = Object.getOwnPropertyDescriptor, Xi = (t, e, r, n) => {
2839
2837
  for (var i = n > 1 ? void 0 : n ? Ki(e, r) : e, s = t.length - 1, o; s >= 0; s--)
@@ -2847,25 +2845,25 @@ let nt = class extends ue {
2847
2845
  _initRefRange() {
2848
2846
  const t = /* @__PURE__ */ new Map(), e = (n, i, s) => `${n}_${i}_${s}`, r = (n, i, s) => {
2849
2847
  const o = (a) => {
2850
- const h = [...s.ranges], l = h.map((v) => Lr(v, a)).filter((v) => !!v);
2851
- if (wr(l, h))
2848
+ const h = [...s.ranges], l = h.map((v) => Pr(v, a)).filter((v) => !!v);
2849
+ if (Tr(l, h))
2852
2850
  return { redos: [], undos: [] };
2853
2851
  if (l.length) {
2854
- const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = De(this._injector, v);
2852
+ const v = { unitId: n, subUnitId: i, rule: { ...s, ranges: l } }, p = [{ id: _e.id, params: v }], y = Ae(this._injector, v);
2855
2853
  return { redos: p, undos: y };
2856
2854
  } else {
2857
- const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: Re.id, params: v }], y = Ae(this._injector, v);
2855
+ const v = { unitId: n, subUnitId: i, cfId: s.cfId }, p = [{ id: we.id, params: v }], y = $e(this._injector, v);
2858
2856
  return { redos: p, undos: y };
2859
2857
  }
2860
- }, d = [];
2858
+ }, u = [];
2861
2859
  s.ranges.forEach((a) => {
2862
2860
  const h = this._refRangeService.registerRefRange(a, o);
2863
- d.push(() => h.dispose());
2864
- }), t.set(e(n, i, s.cfId), () => d.forEach((a) => a()));
2861
+ u.push(() => h.dispose());
2862
+ }), t.set(e(n, i, s.cfId), () => u.forEach((a) => a()));
2865
2863
  };
2866
2864
  this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe((n) => {
2867
- const { unitId: i, subUnitId: s, rule: o } = n, d = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET), a = d.getActiveSheet();
2868
- if (!(n.unitId !== d.getUnitId() || n.subUnitId !== (a == null ? void 0 : a.getSheetId())))
2865
+ const { unitId: i, subUnitId: s, rule: o } = n, u = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), a = u.getActiveSheet();
2866
+ if (!(n.unitId !== u.getUnitId() || n.subUnitId !== (a == null ? void 0 : a.getSheetId())))
2869
2867
  switch (n.type) {
2870
2868
  case "add": {
2871
2869
  r(n.unitId, n.subUnitId, n.rule);
@@ -2889,16 +2887,16 @@ let nt = class extends ue {
2889
2887
  }
2890
2888
  };
2891
2889
  nt = Xi([
2892
- vt(0, O(Q)),
2893
- vt(1, O(z)),
2894
- vt(2, O(fe)),
2895
- vt(3, O(Or))
2890
+ vt(0, P(Q)),
2891
+ vt(1, P(Z)),
2892
+ vt(2, P(fe)),
2893
+ vt(3, P(Ur))
2896
2894
  ], nt);
2897
2895
  var Ji = Object.getOwnPropertyDescriptor, Qi = (t, e, r, n) => {
2898
2896
  for (var i = n > 1 ? void 0 : n ? Ji(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2899
2897
  (o = t[s]) && (i = o(i) || i);
2900
2898
  return i;
2901
- }, Le = (t, e) => (r, n) => e(r, n, t);
2899
+ }, Oe = (t, e) => (r, n) => e(r, n, t);
2902
2900
  let rt = class extends ue {
2903
2901
  constructor(e, r, n, i, s, o) {
2904
2902
  super();
@@ -2913,15 +2911,15 @@ let rt = class extends ue {
2913
2911
  }
2914
2912
  _markDirtySkeleton() {
2915
2913
  var r, n, i;
2916
- const e = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET).getUnitId();
2917
- (r = this._renderManagerService.getRenderById(e)) == null || r.with(On).reCalculate(), (i = (n = this._renderManagerService.getRenderById(e)) == null ? void 0 : n.mainComponent) == null || i.makeDirty();
2914
+ const e = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId();
2915
+ (r = this._renderManagerService.getRenderById(e)) == null || r.with(Un).reCalculate(), (i = (n = this._renderManagerService.getRenderById(e)) == null ? void 0 : n.mainComponent) == null || i.makeDirty();
2918
2916
  }
2919
2917
  _initSkeleton() {
2920
- this.disposeWithMe(Ln(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe(
2918
+ this.disposeWithMe(Pn(this._conditionalFormattingRuleModel.$ruleChange, this._conditionalFormattingViewModel.markDirty$).pipe(
2921
2919
  ci(16),
2922
2920
  tn((e) => !!e.length),
2923
2921
  tn((e) => {
2924
- const r = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET);
2922
+ const r = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET);
2925
2923
  if (!r) return !1;
2926
2924
  const n = r.getActiveSheet();
2927
2925
  return n ? e.filter((i) => i.unitId === r.getUnitId() && i.subUnitId === n.getSheetId()).length > 0 : !1;
@@ -2929,33 +2927,33 @@ let rt = class extends ue {
2929
2927
  ).subscribe(() => this._markDirtySkeleton()));
2930
2928
  }
2931
2929
  _initViewModelInterceptor() {
2932
- this.disposeWithMe(this._sheetInterceptorService.intercept($r.CELL_CONTENT, {
2933
- effect: mr.Style,
2930
+ this.disposeWithMe(this._sheetInterceptorService.intercept(Or.CELL_CONTENT, {
2931
+ effect: gr.Style,
2934
2932
  handler: (e, r, n) => {
2935
2933
  const i = this._conditionalFormattingService.composeStyle(r.unitId, r.subUnitId, r.row, r.col);
2936
2934
  if (!i)
2937
2935
  return n(e);
2938
- const s = r.workbook.getStyles(), d = { ...(typeof (e == null ? void 0 : e.s) == "string" ? s.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {} }, a = { ...e, s: d };
2939
- return i.style && Object.assign(d, i.style), a.fontRenderExtension || (a.fontRenderExtension = {}, i.isShowValue !== void 0 && (a.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (a.dataBar = i.dataBar), i.iconSet && (a.iconSet = i.iconSet, a.fontRenderExtension.leftOffset = Er + Nr), n(a);
2936
+ const s = r.workbook.getStyles(), o = (typeof (e == null ? void 0 : e.s) == "string" ? s.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {}, u = e === r.rawData ? { ...r.rawData } : e;
2937
+ return i.style && Object.assign(u, o), u.fontRenderExtension || (u.fontRenderExtension = {}, i.isShowValue !== void 0 && (u.fontRenderExtension.isSkip = !i.isShowValue)), i.dataBar && (u.dataBar = i.dataBar), i.iconSet && (u.iconSet = i.iconSet, u.fontRenderExtension.leftOffset = xr + Er), n(u);
2940
2938
  },
2941
2939
  priority: 10
2942
2940
  }));
2943
2941
  }
2944
2942
  };
2945
2943
  rt = Qi([
2946
- Le(0, O(qt)),
2947
- Le(1, O(xn)),
2948
- Le(2, O(z)),
2949
- Le(3, O($n)),
2950
- Le(4, O(it)),
2951
- Le(5, O(Q))
2944
+ Oe(0, P(qt)),
2945
+ Oe(1, P(Tn)),
2946
+ Oe(2, P(Z)),
2947
+ Oe(3, P(On)),
2948
+ Oe(4, P(it)),
2949
+ Oe(5, P(Q))
2952
2950
  ], rt);
2953
- const ir = "sheets-conditional-formatting-ui.config", bt = {};
2951
+ const rr = "sheets-conditional-formatting-ui.config", bt = {};
2954
2952
  var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ns = (t, e, r) => e in t ? es(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, rs = (t, e, r, n) => {
2955
2953
  for (var i = n > 1 ? void 0 : n ? ts(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2956
2954
  (o = t[s]) && (i = o(i) || i);
2957
2955
  return i;
2958
- }, $t = (t, e) => (r, n) => e(r, n, t), sr = (t, e, r) => ns(t, typeof e != "symbol" ? e + "" : e, r);
2956
+ }, Dt = (t, e) => (r, n) => e(r, n, t), ir = (t, e, r) => ns(t, typeof e != "symbol" ? e + "" : e, r);
2959
2957
  let It = class extends bn {
2960
2958
  constructor(t = bt, e, r, n) {
2961
2959
  super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
@@ -2964,50 +2962,50 @@ let It = class extends bn {
2964
2962
  bt,
2965
2963
  this._config
2966
2964
  );
2967
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(ir, s), this._initCommand(), this._injector.add([rt]), this._injector.add([nt]), this._injector.add([et]), this._injector.add([tt]), this._injector.add([He]);
2965
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand(), this._injector.add([rt]), this._injector.add([nt]), this._injector.add([et]), this._injector.add([tt]), this._injector.add([He]);
2968
2966
  }
2969
2967
  _initCommand() {
2970
2968
  [
2971
- An,
2972
2969
  Dn,
2970
+ $n,
2971
+ An,
2973
2972
  Hn,
2974
2973
  jn,
2975
2974
  Bn,
2976
2975
  Wn,
2977
2976
  qn,
2978
2977
  Gn,
2979
- zn,
2980
2978
  Vt
2981
2979
  ].forEach((t) => {
2982
2980
  this._commandService.registerCommand(t);
2983
2981
  });
2984
2982
  }
2985
2983
  };
2986
- sr(It, "pluginName", `${st}_MOBILE_UI_PLUGIN`);
2987
- sr(It, "type", D.UNIVER_SHEET);
2984
+ ir(It, "pluginName", `${st}_MOBILE_UI_PLUGIN`);
2985
+ ir(It, "type", A.UNIVER_SHEET);
2988
2986
  It = rs([
2989
- Cn(wn),
2990
- $t(1, O(fe)),
2991
- $t(2, O(te)),
2992
- $t(3, yn)
2987
+ Cn(xn),
2988
+ Dt(1, P(fe)),
2989
+ Dt(2, P(te)),
2990
+ Dt(3, yn)
2993
2991
  ], It);
2994
2992
  var is = Object.getOwnPropertyDescriptor, ss = (t, e, r, n) => {
2995
2993
  for (var i = n > 1 ? void 0 : n ? is(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2996
2994
  (o = t[s]) && (i = o(i) || i);
2997
2995
  return i;
2998
- }, ze = (t, e) => (r, n) => e(r, n, t);
2996
+ }, Ze = (t, e) => (r, n) => e(r, n, t);
2999
2997
  let St = class extends ue {
3000
2998
  constructor(t, e, r, n, i) {
3001
2999
  super(), this._injector = t, this._univerInstanceService = e, this._autoFillService = r, this._conditionalFormattingRuleModel = n, this._conditionalFormattingViewModel = i, this._initAutoFill();
3002
3000
  }
3003
3001
  // eslint-disable-next-line max-lines-per-function
3004
3002
  _initAutoFill() {
3005
- const t = () => ({ redos: [], undos: [] }), e = (i, s, o, d, a) => {
3003
+ const t = () => ({ redos: [], undos: [] }), e = (i, s, o, u, a) => {
3006
3004
  var p;
3007
- const h = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET).getUnitId(), l = (p = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : p.getSheetId();
3005
+ const h = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET).getUnitId(), l = (p = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET).getActiveSheet()) == null ? void 0 : p.getSheetId();
3008
3006
  if (!h || !l)
3009
3007
  return;
3010
- const u = {
3008
+ const d = {
3011
3009
  startRow: i.row,
3012
3010
  startColumn: i.col,
3013
3011
  endColumn: i.col,
@@ -3019,14 +3017,14 @@ let St = class extends ue {
3019
3017
  endRow: s.row
3020
3018
  };
3021
3019
  be.foreach(o, (y, f) => {
3022
- const R = ye.getPositionRange(
3020
+ const w = ye.getPositionRange(
3023
3021
  {
3024
3022
  startRow: y,
3025
3023
  startColumn: f,
3026
3024
  endColumn: f,
3027
3025
  endRow: y
3028
3026
  },
3029
- u
3027
+ d
3030
3028
  ), I = ye.getPositionRange(
3031
3029
  {
3032
3030
  startRow: y,
@@ -3035,11 +3033,11 @@ let St = class extends ue {
3035
3033
  endRow: y
3036
3034
  },
3037
3035
  v
3038
- ), { row: T, col: w } = a(R.startRow, R.startColumn), x = this._conditionalFormattingViewModel.getCellCfs(
3036
+ ), { row: R, col: x } = a(w.startRow, w.startColumn), T = this._conditionalFormattingViewModel.getCellCfs(
3039
3037
  h,
3040
3038
  l,
3041
- T,
3042
- w
3039
+ R,
3040
+ x
3043
3041
  ), { row: g, col: b } = a(I.startRow, I.startColumn), S = this._conditionalFormattingViewModel.getCellCfs(
3044
3042
  h,
3045
3043
  l,
@@ -3047,63 +3045,63 @@ let St = class extends ue {
3047
3045
  b
3048
3046
  );
3049
3047
  S && S.forEach((C) => {
3050
- let M = d.get(C.cfId);
3051
- if (!d.get(C.cfId)) {
3048
+ let M = u.get(C.cfId);
3049
+ if (!u.get(C.cfId)) {
3052
3050
  const E = this._conditionalFormattingRuleModel.getRule(h, l, C.cfId);
3053
3051
  if (!E)
3054
3052
  return;
3055
3053
  M = new Me(), E.ranges.forEach((V) => {
3056
- be.foreach(V, (L, m) => {
3057
- M.setValue(L, m, 1);
3054
+ be.foreach(V, (O, m) => {
3055
+ M.setValue(O, m, 1);
3058
3056
  });
3059
- }), d.set(C.cfId, M);
3057
+ }), u.set(C.cfId, M);
3060
3058
  }
3061
3059
  M.realDeleteValue(g, b);
3062
- }), x && x.forEach((C) => {
3063
- let M = d.get(C.cfId);
3064
- if (!d.get(C.cfId)) {
3060
+ }), T && T.forEach((C) => {
3061
+ let M = u.get(C.cfId);
3062
+ if (!u.get(C.cfId)) {
3065
3063
  const E = this._conditionalFormattingRuleModel.getRule(h, l, C.cfId);
3066
3064
  if (!E)
3067
3065
  return;
3068
3066
  M = new Me(), E.ranges.forEach((V) => {
3069
- be.foreach(V, (L, m) => {
3070
- M.setValue(L, m, 1);
3067
+ be.foreach(V, (O, m) => {
3068
+ M.setValue(O, m, 1);
3071
3069
  });
3072
- }), d.set(C.cfId, M);
3070
+ }), u.set(C.cfId, M);
3073
3071
  }
3074
3072
  M.setValue(g, b, 1);
3075
3073
  });
3076
3074
  });
3077
3075
  }, r = (i, s) => {
3078
- var I, T, w;
3079
- const o = (I = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : I.getUnitId(), d = (w = (T = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : T.getActiveSheet()) == null ? void 0 : w.getSheetId(), a = /* @__PURE__ */ new Map(), h = [], l = [];
3080
- if (!o || !d)
3076
+ var I, R, x;
3077
+ const o = (I = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : I.getUnitId(), u = (x = (R = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : R.getActiveSheet()) == null ? void 0 : x.getSheetId(), a = /* @__PURE__ */ new Map(), h = [], l = [];
3078
+ if (!o || !u)
3081
3079
  return t();
3082
- const u = Pn([i, s]), [v, p] = u.ranges, { mapFunc: y } = u, f = {
3080
+ const d = Ln([i, s]), [v, p] = d.ranges, { mapFunc: y } = d, f = {
3083
3081
  row: v.startRow,
3084
3082
  col: v.startColumn
3085
3083
  };
3086
- return oi(v, p).forEach((x) => {
3087
- e(f, x.repeatStartCell, x.relativeRange, a, y);
3088
- }), a.forEach((x, g) => {
3089
- const b = this._conditionalFormattingRuleModel.getRule(o, d, g);
3084
+ return oi(v, p).forEach((T) => {
3085
+ e(f, T.repeatStartCell, T.relativeRange, a, y);
3086
+ }), a.forEach((T, g) => {
3087
+ const b = this._conditionalFormattingRuleModel.getRule(o, u, g);
3090
3088
  if (!b)
3091
3089
  return;
3092
- const S = pt(Ct(x));
3090
+ const S = pt(Ct(T));
3093
3091
  if (S.length) {
3094
3092
  const C = {
3095
3093
  unitId: o,
3096
- subUnitId: d,
3094
+ subUnitId: u,
3097
3095
  rule: { ...b, ranges: S }
3098
3096
  };
3099
- h.push({ id: _e.id, params: C }), l.push(...De(this._injector, C));
3097
+ h.push({ id: _e.id, params: C }), l.push(...Ae(this._injector, C));
3100
3098
  } else {
3101
3099
  const C = {
3102
3100
  unitId: o,
3103
- subUnitId: d,
3101
+ subUnitId: u,
3104
3102
  cfId: b.cfId
3105
3103
  };
3106
- h.push({ id: Re.id, params: C }), l.push(...Ae(this._injector, C));
3104
+ h.push({ id: we.id, params: C }), l.push(...$e(this._injector, C));
3107
3105
  }
3108
3106
  }), {
3109
3107
  undos: l,
@@ -3112,9 +3110,9 @@ let St = class extends ue {
3112
3110
  }, n = {
3113
3111
  id: st,
3114
3112
  onFillData: (i, s, o) => {
3115
- if (o === Ut.COPY || o === Ut.ONLY_FORMAT || o === Ut.SERIES) {
3116
- const { source: d, target: a } = i;
3117
- return r(d, a);
3113
+ if (o === Lt.COPY || o === Lt.ONLY_FORMAT || o === Lt.SERIES) {
3114
+ const { source: u, target: a } = i;
3115
+ return r(u, a);
3118
3116
  }
3119
3117
  return t();
3120
3118
  }
@@ -3123,17 +3121,17 @@ let St = class extends ue {
3123
3121
  }
3124
3122
  };
3125
3123
  St = ss([
3126
- ze(0, O(fe)),
3127
- ze(1, O(z)),
3128
- ze(2, O(si)),
3129
- ze(3, O(Q)),
3130
- ze(4, O(it))
3124
+ Ze(0, P(fe)),
3125
+ Ze(1, P(Z)),
3126
+ Ze(2, P(si)),
3127
+ Ze(3, P(Q)),
3128
+ Ze(4, P(it))
3131
3129
  ], St);
3132
3130
  var os = Object.getOwnPropertyDescriptor, as = (t, e, r, n) => {
3133
3131
  for (var i = n > 1 ? void 0 : n ? os(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3134
3132
  (o = t[s]) && (i = o(i) || i);
3135
3133
  return i;
3136
- }, Ze = (t, e) => (r, n) => e(r, n, t);
3134
+ }, ze = (t, e) => (r, n) => e(r, n, t);
3137
3135
  let _t = class extends ue {
3138
3136
  constructor(t, e, r, n, i) {
3139
3137
  super(), this._injector = t, this._univerInstanceService = e, this._sheetInterceptorService = r, this._selectionManagerService = n, this._conditionalFormattingRuleModel = i, this._init();
@@ -3143,18 +3141,18 @@ let _t = class extends ue {
3143
3141
  getMutations: (t) => {
3144
3142
  var i;
3145
3143
  const e = [], r = [], n = { redos: e, undos: r };
3146
- if ([Ar.id, Dr.id].includes(t.id)) {
3144
+ if ([Dr.id, $r.id].includes(t.id)) {
3147
3145
  const s = (i = this._selectionManagerService.getCurrentSelections()) == null ? void 0 : i.map((p) => p.range);
3148
3146
  if (!s)
3149
3147
  return n;
3150
- const o = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET), d = o.getActiveSheet();
3151
- if (!d)
3148
+ const o = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), u = o.getActiveSheet();
3149
+ if (!u)
3152
3150
  return n;
3153
- const a = o.getUnitId(), h = d.getSheetId(), l = this._conditionalFormattingRuleModel.getSubunitRules(a, h);
3151
+ const a = o.getUnitId(), h = u.getSheetId(), l = this._conditionalFormattingRuleModel.getSubunitRules(a, h);
3154
3152
  if (!l || !l.length)
3155
3153
  return n;
3156
- const { redos: u, undos: v } = dn(this._injector, l, s, a, h);
3157
- e.push(...u), r.push(...v);
3154
+ const { redos: d, undos: v } = dn(this._injector, l, s, a, h);
3155
+ e.push(...d), r.push(...v);
3158
3156
  }
3159
3157
  return n;
3160
3158
  }
@@ -3166,43 +3164,43 @@ let _t = class extends ue {
3166
3164
  const o = this._conditionalFormattingRuleModel.getSubunitRules(t, e);
3167
3165
  if (!o || !o.length)
3168
3166
  return s;
3169
- const { redos: d, undos: a } = dn(this._injector, o, r, t, e);
3170
- return n.push(...d), i.push(...a), s;
3167
+ const { redos: u, undos: a } = dn(this._injector, o, r, t, e);
3168
+ return n.push(...u), i.push(...a), s;
3171
3169
  }
3172
3170
  }));
3173
3171
  }
3174
3172
  };
3175
3173
  _t = as([
3176
- Ze(0, O(fe)),
3177
- Ze(1, O(z)),
3178
- Ze(2, O(qt)),
3179
- Ze(3, O(je)),
3180
- Ze(4, O(Q))
3174
+ ze(0, P(fe)),
3175
+ ze(1, P(Z)),
3176
+ ze(2, P(qt)),
3177
+ ze(3, P(je)),
3178
+ ze(4, P(Q))
3181
3179
  ], _t);
3182
3180
  function dn(t, e, r, n, i) {
3183
3181
  const s = [], o = [];
3184
- return e.filter((d) => r.some((a) => d.ranges.some((h) => ye.getIntersects(h, a)))).forEach((d) => {
3185
- const h = new Hr().add(...d.ranges).subtract(...r).merge();
3182
+ return e.filter((u) => r.some((a) => u.ranges.some((h) => ye.getIntersects(h, a)))).forEach((u) => {
3183
+ const h = new Ar().add(...u.ranges).subtract(...r).merge();
3186
3184
  if (h.length) {
3187
3185
  const l = {
3188
3186
  id: _e.id,
3189
3187
  params: {
3190
3188
  unitId: n,
3191
3189
  subUnitId: i,
3192
- rule: { ...d, ranges: h }
3190
+ rule: { ...u, ranges: h }
3193
3191
  }
3194
- }, u = De(t, l.params);
3195
- s.push(l), o.push(...u);
3192
+ }, d = Ae(t, l.params);
3193
+ s.push(l), o.push(...d);
3196
3194
  } else {
3197
3195
  const l = {
3198
- id: Re.id,
3196
+ id: we.id,
3199
3197
  params: {
3200
3198
  unitId: n,
3201
3199
  subUnitId: i,
3202
- cfId: d.cfId
3200
+ cfId: u.cfId
3203
3201
  }
3204
- }, u = Ae(t, l.params);
3205
- s.push(l), o.push(...u);
3202
+ }, d = $e(t, l.params);
3203
+ s.push(l), o.push(...d);
3206
3204
  }
3207
3205
  }), { redos: s, undos: o };
3208
3206
  }
@@ -3211,7 +3209,7 @@ var ls = Object.getOwnPropertyDescriptor, cs = (t, e, r, n) => {
3211
3209
  (o = t[s]) && (i = o(i) || i);
3212
3210
  return i;
3213
3211
  }, hn = (t, e) => (r, n) => e(r, n, t);
3214
- let Rt = class extends ue {
3212
+ let wt = class extends ue {
3215
3213
  constructor(t, e) {
3216
3214
  super(), this._sheetInterceptorService = t, this._conditionalFormattingService = e, this._initInterceptorEditorEnd();
3217
3215
  }
@@ -3224,23 +3222,23 @@ let Rt = class extends ue {
3224
3222
  this.disposeWithMe(
3225
3223
  pn(
3226
3224
  this._sheetInterceptorService.writeCellInterceptor.intercept(
3227
- jr,
3225
+ Hr,
3228
3226
  {
3229
3227
  handler: (t, e, r) => {
3230
- var o, d, a;
3228
+ var o, u, a;
3231
3229
  t || r(t);
3232
3230
  const n = this._conditionalFormattingService.composeStyle(e.unitId, e.subUnitId, e.row, e.col), i = (o = n == null ? void 0 : n.style) != null ? o : {}, s = Object.keys(i);
3233
3231
  if (t != null && t.p)
3234
- return (a = (d = t.p.body) == null ? void 0 : d.textRuns) == null || a.forEach((h) => {
3232
+ return (a = (u = t.p.body) == null ? void 0 : u.textRuns) == null || a.forEach((h) => {
3235
3233
  h.ts && s.forEach((l) => {
3236
- var u;
3237
- (u = h.ts) == null || delete u[l];
3234
+ var d;
3235
+ (d = h.ts) == null || delete d[l];
3238
3236
  });
3239
3237
  }), r(t);
3240
3238
  {
3241
3239
  const h = { ...(typeof (t == null ? void 0 : t.s) == "string" ? e.workbook.getStyles().get(t.s) : t == null ? void 0 : t.s) || {} };
3242
- s.forEach((u) => {
3243
- delete h[u];
3240
+ s.forEach((d) => {
3241
+ delete h[d];
3244
3242
  });
3245
3243
  const l = { ...t, s: { ...h } };
3246
3244
  return r(l);
@@ -3252,15 +3250,15 @@ let Rt = class extends ue {
3252
3250
  );
3253
3251
  }
3254
3252
  };
3255
- Rt = cs([
3256
- hn(0, O(qt)),
3257
- hn(1, O(xn))
3258
- ], Rt);
3253
+ wt = cs([
3254
+ hn(0, P(qt)),
3255
+ hn(1, P(Tn))
3256
+ ], wt);
3259
3257
  const vn = [
3260
3258
  Wt.id,
3261
3259
  se.id,
3262
3260
  _e.id,
3263
- Re.id,
3261
+ we.id,
3264
3262
  _n.id
3265
3263
  ], Ye = [
3266
3264
  {
@@ -3335,64 +3333,64 @@ const vn = [
3335
3333
  value: ie.clearWorkSheetRules
3336
3334
  }
3337
3335
  ], us = (t) => {
3338
- const e = t.get(je), r = t.get(te), n = t.get(z), i = t.get(Q), s = new Ne((a) => Ln(
3336
+ const e = t.get(je), r = t.get(te), n = t.get(Z), i = t.get(Q), s = new Ne((a) => Pn(
3339
3337
  e.selectionMoveEnd$,
3340
3338
  e.selectionSet$,
3341
3339
  new Ne((h) => {
3342
- const l = r.onCommandExecuted((u) => {
3340
+ const l = r.onCommandExecuted((d) => {
3343
3341
  var f;
3344
- const { id: v, params: p } = u, y = (f = n.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : f.getUnitId();
3342
+ const { id: v, params: p } = d, y = (f = n.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : f.getUnitId();
3345
3343
  vn.includes(v) && p.unitId === y && h.next(null);
3346
3344
  });
3347
3345
  return () => l.dispose();
3348
3346
  })
3349
3347
  ).pipe(nn(16)).subscribe(() => {
3350
3348
  var f;
3351
- const h = ((f = e.getCurrentSelections()) == null ? void 0 : f.map((R) => R.range)) || [], l = n.getCurrentUnitForType(D.UNIVER_SHEET);
3349
+ const h = ((f = e.getCurrentSelections()) == null ? void 0 : f.map((w) => w.range)) || [], l = n.getCurrentUnitForType(A.UNIVER_SHEET);
3352
3350
  if (!l) return;
3353
- const u = l.getActiveSheet();
3354
- if (!u) return;
3355
- const y = (i.getSubunitRules(l.getUnitId(), u.getSheetId()) || []).filter((R) => R.ranges.some((I) => h.some((T) => ye.intersects(T, I)))).map((R) => R.ranges).every((R) => ft(t, l.getUnitId(), u.getSheetId(), R));
3351
+ const d = l.getActiveSheet();
3352
+ if (!d) return;
3353
+ const y = (i.getSubunitRules(l.getUnitId(), d.getSheetId()) || []).filter((w) => w.ranges.some((I) => h.some((R) => ye.intersects(R, I)))).map((w) => w.ranges).every((w) => ft(t, l.getUnitId(), d.getSheetId(), w));
3356
3354
  a.next(y);
3357
3355
  })), o = new Ne(
3358
3356
  (a) => new Ne((h) => {
3359
- const l = r.onCommandExecuted((u) => {
3357
+ const l = r.onCommandExecuted((d) => {
3360
3358
  var f;
3361
- const { id: v, params: p } = u, y = (f = n.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : f.getUnitId();
3359
+ const { id: v, params: p } = d, y = (f = n.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : f.getUnitId();
3362
3360
  vn.includes(v) && p.unitId === y && h.next(null);
3363
3361
  });
3364
3362
  return () => l.dispose();
3365
3363
  }).pipe(nn(16)).subscribe(() => {
3366
- const h = n.getCurrentUnitForType(D.UNIVER_SHEET);
3364
+ const h = n.getCurrentUnitForType(A.UNIVER_SHEET);
3367
3365
  if (!h) return;
3368
3366
  const l = h.getActiveSheet();
3369
3367
  if (!l) return;
3370
- const u = i.getSubunitRules(h.getUnitId(), l.getSheetId()) || [];
3371
- if (!u.length)
3368
+ const d = i.getSubunitRules(h.getUnitId(), l.getSheetId()) || [];
3369
+ if (!d.length)
3372
3370
  return a.next(!1), !1;
3373
- const v = u.map((p) => p.ranges).every((p) => ft(t, h.getUnitId(), l.getSheetId(), p));
3371
+ const v = d.map((p) => p.ranges).every((p) => ft(t, h.getUnitId(), l.getSheetId(), p));
3374
3372
  a.next(v);
3375
3373
  })
3376
- ), d = new Ne((a) => {
3374
+ ), u = new Ne((a) => {
3377
3375
  s.subscribe((h) => {
3378
- const l = Ye.find((u) => u.value === ie.clearRangeRules);
3376
+ const l = Ye.find((d) => d.value === ie.clearRangeRules);
3379
3377
  l && (l.disabled = !h, a.next(Ye));
3380
3378
  }), o.subscribe((h) => {
3381
- const l = Ye.find((u) => u.value === ie.clearWorkSheetRules);
3379
+ const l = Ye.find((d) => d.value === ie.clearWorkSheetRules);
3382
3380
  l && (l.disabled = !h, a.next(Ye));
3383
3381
  }), a.next(Ye);
3384
3382
  });
3385
3383
  return {
3386
3384
  id: Vt.id,
3387
- type: zr.SELECTOR,
3388
- icon: "Conditions",
3385
+ type: Zr.SELECTOR,
3386
+ icon: "ConditionsDoubleIcon",
3389
3387
  tooltip: "sheet.cf.title",
3390
- selections: d,
3391
- hidden$: Gr(t, D.UNIVER_SHEET),
3388
+ selections: u,
3389
+ hidden$: Gr(t, A.UNIVER_SHEET),
3392
3390
  disabled$: ai(t, { workbookTypes: [Vn], worksheetTypes: [Nn, En], rangeTypes: [Mn] })
3393
3391
  };
3394
3392
  }, ds = {
3395
- [Zr.RULES]: {
3393
+ [zr.RULES]: {
3396
3394
  [Vt.id]: {
3397
3395
  order: 1,
3398
3396
  menuItemFactory: us
@@ -3404,24 +3402,24 @@ var hs = Object.getOwnPropertyDescriptor, vs = (t, e, r, n) => {
3404
3402
  (o = t[s]) && (i = o(i) || i);
3405
3403
  return i;
3406
3404
  }, gn = (t, e) => (r, n) => e(r, n, t);
3407
- let Tt = class extends ue {
3405
+ let Rt = class extends ue {
3408
3406
  constructor(e, r) {
3409
3407
  super();
3410
3408
  Se(this, "_sidebarDisposable", null);
3411
3409
  this._injector = e, this._menuManagerService = r, this._menuManagerService.mergeMenu(ds);
3412
3410
  }
3413
3411
  };
3414
- Tt = vs([
3415
- gn(0, O(fe)),
3412
+ Rt = vs([
3413
+ gn(0, P(fe)),
3416
3414
  gn(1, Yr)
3417
- ], Tt);
3415
+ ], Rt);
3418
3416
  var gs = Object.getOwnPropertyDescriptor, ms = (t, e, r, n) => {
3419
3417
  for (var i = n > 1 ? void 0 : n ? gs(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3420
3418
  (o = t[s]) && (i = o(i) || i);
3421
3419
  return i;
3422
- }, $e = (t, e) => (r, n) => e(r, n, t);
3420
+ }, De = (t, e) => (r, n) => e(r, n, t);
3423
3421
  const fs = (t, e) => {
3424
- const r = (l) => l.endRow - l.startRow + 1, n = (l) => l.endColumn - l.startColumn + 1, i = r(e) % r(t), s = n(e) % n(t), o = Math.floor(r(e) / r(t)), d = Math.floor(n(e) / n(t)), a = [], h = {
3422
+ const r = (l) => l.endRow - l.startRow + 1, n = (l) => l.endColumn - l.startColumn + 1, i = r(e) % r(t), s = n(e) % n(t), o = Math.floor(r(e) / r(t)), u = Math.floor(n(e) / n(t)), a = [], h = {
3425
3423
  startRow: 0,
3426
3424
  endRow: r(t) - 1,
3427
3425
  startColumn: 0,
@@ -3437,19 +3435,19 @@ const fs = (t, e) => {
3437
3435
  return a.push({ repeatRelativeRange: h, startRange: l }), a;
3438
3436
  }
3439
3437
  for (let l = 0; l < o + (i ? 0.1 : 0); l++)
3440
- for (let u = 0; u < d + (s ? 0.1 : 0); u++) {
3441
- const v = r(t) * l, p = n(t) * u, y = {
3438
+ for (let d = 0; d < u + (s ? 0.1 : 0); d++) {
3439
+ const v = r(t) * l, p = n(t) * d, y = {
3442
3440
  startRow: v + e.startRow,
3443
3441
  endRow: v + e.startRow,
3444
3442
  startColumn: p + e.startColumn,
3445
3443
  endColumn: p + e.startColumn
3446
3444
  };
3447
3445
  let f = h;
3448
- l === o && i && (f = { ...f }, f.endRow = f.endRow - (r(t) - i)), u === d && s && (f = { ...f }, f.endColumn = f.endColumn - (n(t) - s)), a.push({ repeatRelativeRange: f, startRange: y });
3446
+ l === o && i && (f = { ...f }, f.endRow = f.endRow - (r(t) - i)), d === u && s && (f = { ...f }, f.endColumn = f.endColumn - (n(t) - s)), a.push({ repeatRelativeRange: f, startRange: y });
3449
3447
  }
3450
3448
  return a;
3451
3449
  };
3452
- let xt = class extends ue {
3450
+ let Tt = class extends ue {
3453
3451
  constructor(e, r, n, i, s, o) {
3454
3452
  super();
3455
3453
  Se(this, "_painterConfig", null);
@@ -3457,8 +3455,8 @@ let xt = class extends ue {
3457
3455
  }
3458
3456
  // eslint-disable-next-line max-lines-per-function
3459
3457
  _initFormattingPainter() {
3460
- const e = () => ({ redos: [], undos: [] }), r = (s, o, d, a, h) => {
3461
- const { unitId: l, subUnitId: u } = this._painterConfig, { targetUnitId: v, targetSubUnitId: p } = h, y = {
3458
+ const e = () => ({ redos: [], undos: [] }), r = (s, o, u, a, h) => {
3459
+ const { unitId: l, subUnitId: d } = this._painterConfig, { targetUnitId: v, targetSubUnitId: p } = h, y = {
3462
3460
  startRow: s.row,
3463
3461
  startColumn: s.col,
3464
3462
  endColumn: s.col,
@@ -3469,33 +3467,33 @@ let xt = class extends ue {
3469
3467
  endColumn: o.col,
3470
3468
  endRow: o.row
3471
3469
  };
3472
- be.foreach(d, (R, I) => {
3473
- const T = ye.getPositionRange(
3470
+ be.foreach(u, (w, I) => {
3471
+ const R = ye.getPositionRange(
3474
3472
  {
3475
- startRow: R,
3473
+ startRow: w,
3476
3474
  startColumn: I,
3477
3475
  endColumn: I,
3478
- endRow: R
3476
+ endRow: w
3479
3477
  },
3480
3478
  y
3481
- ), w = ye.getPositionRange(
3479
+ ), x = ye.getPositionRange(
3482
3480
  {
3483
- startRow: R,
3481
+ startRow: w,
3484
3482
  startColumn: I,
3485
3483
  endColumn: I,
3486
- endRow: R
3484
+ endRow: w
3487
3485
  },
3488
3486
  f
3489
- ), x = this._conditionalFormattingViewModel.getCellCfs(
3487
+ ), T = this._conditionalFormattingViewModel.getCellCfs(
3490
3488
  l,
3491
- u,
3492
- T.startRow,
3493
- T.startColumn
3489
+ d,
3490
+ R.startRow,
3491
+ R.startColumn
3494
3492
  ), g = this._conditionalFormattingViewModel.getCellCfs(
3495
3493
  v,
3496
3494
  p,
3497
- w.startRow,
3498
- w.startColumn
3495
+ x.startRow,
3496
+ x.startColumn
3499
3497
  );
3500
3498
  g && g.forEach((b) => {
3501
3499
  let S = a.get(b.cfId);
@@ -3509,38 +3507,38 @@ let xt = class extends ue {
3509
3507
  });
3510
3508
  }), a.set(b.cfId, S);
3511
3509
  }
3512
- S.realDeleteValue(w.startRow, w.startColumn);
3513
- }), x && x.forEach((b) => {
3510
+ S.realDeleteValue(x.startRow, x.startColumn);
3511
+ }), T && T.forEach((b) => {
3514
3512
  const S = a.get(b.cfId);
3515
- S && S.setValue(w.startRow, w.startColumn, 1);
3513
+ S && S.setValue(x.startRow, x.startColumn, 1);
3516
3514
  });
3517
3515
  });
3518
- }, n = (s, o, d) => {
3519
- var T;
3520
- const { range: a, unitId: h, subUnitId: l } = this._painterConfig, u = s !== h || l !== o, v = /* @__PURE__ */ new Map(), p = [], y = [];
3516
+ }, n = (s, o, u) => {
3517
+ var R;
3518
+ const { range: a, unitId: h, subUnitId: l } = this._painterConfig, d = s !== h || l !== o, v = /* @__PURE__ */ new Map(), p = [], y = [];
3521
3519
  if (!s || !o || !h || !l)
3522
3520
  return e();
3523
- const f = (T = this._conditionalFormattingRuleModel.getSubunitRules(h, l)) != null ? T : [];
3524
- f == null || f.forEach((w) => {
3525
- const { ranges: x, cfId: g } = w;
3526
- if (x.some((b) => ye.intersects(a, b))) {
3521
+ const f = (R = this._conditionalFormattingRuleModel.getSubunitRules(h, l)) != null ? R : [];
3522
+ f == null || f.forEach((x) => {
3523
+ const { ranges: T, cfId: g } = x;
3524
+ if (T.some((b) => ye.intersects(a, b))) {
3527
3525
  const b = new Me();
3528
- u || x.forEach((S) => {
3526
+ d || T.forEach((S) => {
3529
3527
  be.foreach(S, (C, M) => {
3530
3528
  b.setValue(C, M, 1);
3531
3529
  });
3532
3530
  }), v.set(g, b);
3533
3531
  }
3534
3532
  });
3535
- const R = {
3533
+ const w = {
3536
3534
  row: a.startRow,
3537
3535
  col: a.startColumn
3538
3536
  };
3539
- return fs(a, d).forEach((w) => {
3540
- r(R, { row: w.startRange.startRow, col: w.startRange.startColumn }, w.repeatRelativeRange, v, { targetUnitId: s, targetSubUnitId: o });
3541
- }), v.forEach((w, x) => {
3542
- if (u) {
3543
- const g = this._conditionalFormattingRuleModel.getRule(s, o, x), b = pt(Ct(w));
3537
+ return fs(a, u).forEach((x) => {
3538
+ r(w, { row: x.startRange.startRow, col: x.startRange.startColumn }, x.repeatRelativeRange, v, { targetUnitId: s, targetSubUnitId: o });
3539
+ }), v.forEach((x, T) => {
3540
+ if (d) {
3541
+ const g = this._conditionalFormattingRuleModel.getRule(s, o, T), b = pt(Ct(x));
3544
3542
  if (g)
3545
3543
  if (b.length) {
3546
3544
  const S = {
@@ -3548,17 +3546,17 @@ let xt = class extends ue {
3548
3546
  subUnitId: o,
3549
3547
  rule: { ...g, ranges: b }
3550
3548
  };
3551
- p.push({ id: _e.id, params: S }), y.push(...De(this._injector, S));
3549
+ p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3552
3550
  } else {
3553
3551
  const S = {
3554
3552
  unitId: s,
3555
3553
  subUnitId: o,
3556
3554
  cfId: g.cfId
3557
3555
  };
3558
- p.push({ id: Re.id, params: S }), y.push(...Ae(this._injector, S));
3556
+ p.push({ id: we.id, params: S }), y.push(...$e(this._injector, S));
3559
3557
  }
3560
3558
  else if (b.length) {
3561
- const S = this._conditionalFormattingRuleModel.getRule(h, l, x);
3559
+ const S = this._conditionalFormattingRuleModel.getRule(h, l, T);
3562
3560
  if (S) {
3563
3561
  const C = {
3564
3562
  unitId: s,
@@ -3569,28 +3567,28 @@ let xt = class extends ue {
3569
3567
  ranges: b
3570
3568
  }
3571
3569
  };
3572
- p.push({ id: se.id, params: C }), y.push(Tn(this._injector, C));
3570
+ p.push({ id: se.id, params: C }), y.push(Rn(this._injector, C));
3573
3571
  }
3574
3572
  }
3575
3573
  } else {
3576
- const g = this._conditionalFormattingRuleModel.getRule(h, l, x);
3574
+ const g = this._conditionalFormattingRuleModel.getRule(h, l, T);
3577
3575
  if (!g)
3578
3576
  return;
3579
- const b = pt(Ct(w));
3577
+ const b = pt(Ct(x));
3580
3578
  if (b.length) {
3581
3579
  const S = {
3582
3580
  unitId: h,
3583
3581
  subUnitId: l,
3584
3582
  rule: { ...g, ranges: b }
3585
3583
  };
3586
- p.push({ id: _e.id, params: S }), y.push(...De(this._injector, S));
3584
+ p.push({ id: _e.id, params: S }), y.push(...Ae(this._injector, S));
3587
3585
  } else {
3588
3586
  const S = {
3589
3587
  unitId: h,
3590
3588
  subUnitId: l,
3591
3589
  cfId: g.cfId
3592
3590
  };
3593
- p.push({ id: Re.id, params: S }), y.push(...Ae(this._injector, S));
3591
+ p.push({ id: we.id, params: S }), y.push(...$e(this._injector, S));
3594
3592
  }
3595
3593
  }
3596
3594
  }), {
@@ -3600,21 +3598,21 @@ let xt = class extends ue {
3600
3598
  }, i = {
3601
3599
  id: st,
3602
3600
  onStatusChange: (s) => {
3603
- var o, d, a;
3601
+ var o, u, a;
3604
3602
  switch (s) {
3605
- case Pt.INFINITE:
3606
- case Pt.ONCE: {
3607
- const h = (o = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : o.getUnitId(), l = (a = (d = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET)) == null ? void 0 : d.getActiveSheet()) == null ? void 0 : a.getSheetId(), u = this._sheetsSelectionsService.getCurrentLastSelection(), v = u == null ? void 0 : u.range;
3603
+ case Ut.INFINITE:
3604
+ case Ut.ONCE: {
3605
+ const h = (o = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : o.getUnitId(), l = (a = (u = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET)) == null ? void 0 : u.getActiveSheet()) == null ? void 0 : a.getSheetId(), d = this._sheetsSelectionsService.getCurrentLastSelection(), v = d == null ? void 0 : d.range;
3608
3606
  h && l && v && (this._painterConfig = { unitId: h, subUnitId: l, range: v });
3609
3607
  break;
3610
3608
  }
3611
- case Pt.OFF: {
3609
+ case Ut.OFF: {
3612
3610
  this._painterConfig = null;
3613
3611
  break;
3614
3612
  }
3615
3613
  }
3616
3614
  },
3617
- onApply: (s, o, d) => this._painterConfig ? n(s, o, d) : {
3615
+ onApply: (s, o, u) => this._painterConfig ? n(s, o, u) : {
3618
3616
  redos: [],
3619
3617
  undos: []
3620
3618
  }
@@ -3622,51 +3620,51 @@ let xt = class extends ue {
3622
3620
  this._formatPainterService.addHook(i);
3623
3621
  }
3624
3622
  };
3625
- xt = ms([
3626
- $e(0, O(fe)),
3627
- $e(1, O(z)),
3628
- $e(2, O(li)),
3629
- $e(3, O(je)),
3630
- $e(4, O(Q)),
3631
- $e(5, O(it))
3632
- ], xt);
3623
+ Tt = ms([
3624
+ De(0, P(fe)),
3625
+ De(1, P(Z)),
3626
+ De(2, P(li)),
3627
+ De(3, P(je)),
3628
+ De(4, P(Q)),
3629
+ De(5, P(it))
3630
+ ], Tt);
3633
3631
  var ps = Object.getOwnPropertyDescriptor, Cs = (t, e, r, n) => {
3634
3632
  for (var i = n > 1 ? void 0 : n ? ps(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3635
3633
  (o = t[s]) && (i = o(i) || i);
3636
3634
  return i;
3637
- }, At = (t, e) => (r, n) => e(r, n, t);
3638
- let wt = class extends ue {
3635
+ }, $t = (t, e) => (r, n) => e(r, n, t);
3636
+ let xt = class extends ue {
3639
3637
  constructor(t, e, r) {
3640
3638
  super(), this._conditionalFormattingViewModel = t, this._univerInstanceService = e, this._renderManagerService = r, this._init();
3641
3639
  }
3642
3640
  _init() {
3643
- const t = this._univerInstanceService.getCurrentUnitForType(D.UNIVER_SHEET), e = (r) => {
3641
+ const t = this._univerInstanceService.getCurrentUnitForType(A.UNIVER_SHEET), e = (r) => {
3644
3642
  const n = r.getUnitId(), i = this._renderManagerService.getRenderById(n);
3645
3643
  if (!i)
3646
3644
  return;
3647
- const s = i.with(On);
3645
+ const s = i.with(Un);
3648
3646
  this.disposeWithMe(s.currentSkeleton$.subscribe((o) => {
3649
3647
  if (o) {
3650
- const d = o.skeleton.rowColumnSegment, a = d.endColumn - d.startColumn + 1, l = (d.endRow - d.startRow + 1) * a * 9, u = Math.max(Mr, l);
3651
- this._conditionalFormattingViewModel.setCacheLength(u);
3648
+ const u = o.skeleton.rowColumnSegment, a = u.endColumn - u.startColumn + 1, l = (u.endRow - u.startRow + 1) * a * 9, d = Math.max(Nr, l);
3649
+ this._conditionalFormattingViewModel.setCacheLength(d);
3652
3650
  }
3653
3651
  }));
3654
3652
  };
3655
- t && e(t), this._univerInstanceService.getCurrentTypeOfUnit$(D.UNIVER_SHEET).subscribe((r) => {
3653
+ t && e(t), this._univerInstanceService.getCurrentTypeOfUnit$(A.UNIVER_SHEET).subscribe((r) => {
3656
3654
  r && e(r);
3657
3655
  });
3658
3656
  }
3659
3657
  };
3660
- wt = Cs([
3661
- At(0, O(it)),
3662
- At(1, z),
3663
- At(2, $n)
3664
- ], wt);
3658
+ xt = Cs([
3659
+ $t(0, P(it)),
3660
+ $t(1, Z),
3661
+ $t(2, On)
3662
+ ], xt);
3665
3663
  var ys = Object.defineProperty, bs = Object.getOwnPropertyDescriptor, Is = (t, e, r) => e in t ? ys(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ss = (t, e, r, n) => {
3666
3664
  for (var i = n > 1 ? void 0 : n ? bs(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3667
3665
  (o = t[s]) && (i = o(i) || i);
3668
3666
  return i;
3669
- }, Dt = (t, e) => (r, n) => e(r, n, t), or = (t, e, r) => Is(t, typeof e != "symbol" ? e + "" : e, r);
3667
+ }, At = (t, e) => (r, n) => e(r, n, t), sr = (t, e, r) => Is(t, typeof e != "symbol" ? e + "" : e, r);
3670
3668
  let Et = class extends bn {
3671
3669
  constructor(t = bt, e, r, n) {
3672
3670
  super(), this._config = t, this._injector = e, this._commandService = r, this._configService = n;
@@ -3675,29 +3673,29 @@ let Et = class extends bn {
3675
3673
  bt,
3676
3674
  this._config
3677
3675
  );
3678
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(ir, s), this._initCommand();
3676
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(rr, s), this._initCommand();
3679
3677
  }
3680
3678
  onStarting() {
3681
- fr(this._injector, [
3679
+ mr(this._injector, [
3682
3680
  [rt],
3683
3681
  [nt],
3684
3682
  [et],
3685
3683
  [St],
3686
3684
  [tt],
3687
3685
  [Qe],
3688
- [Tt],
3689
- [He],
3690
3686
  [Rt],
3687
+ [He],
3688
+ [wt],
3691
3689
  [_t],
3692
- [xt],
3693
- [wt]
3690
+ [Tt],
3691
+ [xt]
3694
3692
  ]), kt(this._injector, [
3695
3693
  [rt]
3696
3694
  ]);
3697
3695
  }
3698
3696
  onReady() {
3699
3697
  kt(this._injector, [
3700
- [Tt],
3698
+ [Rt],
3701
3699
  [Qe]
3702
3700
  ]);
3703
3701
  }
@@ -3706,49 +3704,49 @@ let Et = class extends bn {
3706
3704
  [St],
3707
3705
  [_t],
3708
3706
  [et],
3709
- [Rt],
3707
+ [wt],
3710
3708
  [He],
3711
- [xt],
3709
+ [Tt],
3712
3710
  [tt],
3713
3711
  [nt],
3714
- [wt]
3712
+ [xt]
3715
3713
  ]);
3716
3714
  }
3717
3715
  _initCommand() {
3718
3716
  [
3719
- An,
3720
3717
  Dn,
3718
+ $n,
3719
+ An,
3721
3720
  Hn,
3722
3721
  jn,
3723
3722
  Bn,
3724
3723
  Wn,
3725
3724
  qn,
3726
3725
  Gn,
3727
- zn,
3728
3726
  Vt
3729
3727
  ].forEach((t) => {
3730
3728
  this._commandService.registerCommand(t);
3731
3729
  });
3732
3730
  }
3733
3731
  };
3734
- or(Et, "pluginName", `${st}_UI_PLUGIN`);
3735
- or(Et, "type", D.UNIVER_SHEET);
3732
+ sr(Et, "pluginName", `${st}_UI_PLUGIN`);
3733
+ sr(Et, "type", A.UNIVER_SHEET);
3736
3734
  Et = Ss([
3737
- Cn(wn),
3738
- Dt(1, O(fe)),
3739
- Dt(2, O(te)),
3740
- Dt(3, yn)
3735
+ Cn(xn),
3736
+ At(1, P(fe)),
3737
+ At(2, P(te)),
3738
+ At(3, yn)
3741
3739
  ], Et);
3742
3740
  export {
3743
- An as AddAverageCfCommand,
3744
- Dn as AddColorScaleConditionalRuleCommand,
3745
- Hn as AddDataBarConditionalRuleCommand,
3746
- jn as AddDuplicateValuesCfCommand,
3747
- Bn as AddNumberCfCommand,
3748
- Wn as AddRankCfCommand,
3749
- qn as AddTextCfCommand,
3750
- Gn as AddTimePeriodCfCommand,
3751
- zn as AddUniqueValuesCfCommand,
3741
+ Dn as AddAverageCfCommand,
3742
+ $n as AddColorScaleConditionalRuleCommand,
3743
+ An as AddDataBarConditionalRuleCommand,
3744
+ Hn as AddDuplicateValuesCfCommand,
3745
+ jn as AddNumberCfCommand,
3746
+ Bn as AddRankCfCommand,
3747
+ Wn as AddTextCfCommand,
3748
+ qn as AddTimePeriodCfCommand,
3749
+ Gn as AddUniqueValuesCfCommand,
3752
3750
  _t as ConditionalFormattingClearController,
3753
3751
  Vt as OpenConditionalFormattingOperator,
3754
3752
  It as UniverSheetsConditionalFormattingMobileUIPlugin,