@univerjs/sheets-data-validation-ui 0.5.1 → 0.5.2

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,21 +1,21 @@
1
- var $o = Object.defineProperty;
2
- var ko = (e, t, o) => t in e ? $o(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var M = (e, t, o) => ko(e, typeof t != "symbol" ? t + "" : t, o);
4
- import Kt, { useState as W, forwardRef as we, useRef as We, createElement as Re, useMemo as Te, useEffect as Ce } from "react";
5
- import { Inject as b, LocaleService as J, Disposable as De, DataValidationErrorStyle as at, useDependency as P, ICommandService as Q, dayjs as Gt, numfmt as Zt, CellValueType as Wo, UniverInstanceType as Y, toDisposable as Ho, IUniverInstanceService as ge, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Yo, DisposableCollection as Xo, CommandType as qe, BuildTextUtils as zo, DataValidationRenderMode as de, DataValidationType as Z, IConfigService as cn, UndoCommand as Ko, RedoCommand as Go, isUnitRangesEqual as Zo, debounce as qo, shallowEqual as yn, Injector as Fe, DataValidationStatus as it, ObjectMatrix as _t, Range as Jo, Rectangle as St, queryObjectMatrix as qt, Optional as Qo, RxDisposable as un, InterceptorEffectEnum as Xn, sequenceExecute as zn, bufferDebounceTime as ea, isFormulaString as Pe, Tools as Jt, ThemeService as ta, VerticalAlign as ue, HorizontalAlign as He, DEFAULT_STYLES as le, WrapStrategy as Se, DocumentDataModel as na, DEFAULT_EMPTY_DOCUMENT_VALUE as oa, BooleanNumber as Je, Plugin as Kn } from "@univerjs/core";
6
- import { Button as je, DatePanel as aa, Scrollbar as ia, FormLayout as G, RadioGroup as hn, Radio as Ae, Checkbox as bt, Input as xe, Select as Qt, DraggableList as ra } from "@univerjs/design";
7
- import { DeviceInputEventType as en, IRenderManagerService as Ve, fixLineWidthByScale as Mn, Transform as sa, CheckboxShape as la, CURSOR_TYPE as Ye, FontCache as da, Shape as ca, Rect as Gn, getFontStyleString as At, getDocsSkeletonPageSize as Qe, DocumentViewModel as ua, DocumentSkeleton as ha, Documents as pa } from "@univerjs/engine-render";
8
- import { SheetInterceptorService as pn, AFTER_CELL_EDIT_ASYNC as ma, SetRangeValuesCommand as mn, SheetsSelectionsService as Zn, getSheetCommandTarget as qn, WorkbookEditablePermission as Ct, RangeProtectionPermissionEditPoint as It, WorksheetEditPermission as wt, checkRangesEditablePermission as fa, WorksheetSetCellStylePermission as tn, INTERCEPTOR_POINT as Jn, InterceptCellContentPriority as Qn } from "@univerjs/sheets";
9
- import { SheetDataValidationModel as oe, getCellValueOrigin as ie, getDataValidationCellValue as ga, deserializeListOptions as eo, serializeListOptions as to, UpdateSheetDataValidationRangeCommand as no, UpdateSheetDataValidationSettingCommand as bn, RemoveSheetDataValidationCommand as oo, UpdateSheetDataValidationOptionsCommand as va, createDefaultNewRule as ao, AddSheetDataValidationCommand as fn, RemoveSheetAllDataValidationCommand as _a, DATA_VALIDATION_PLUGIN_NAME as io, getDataValidationDiffMutations as nn, DataValidationCacheService as ro, DataValidationFormulaController as Sa, DataValidationFormulaService as Ca, getFormulaResult as xt, isLegalFormulaResult as En, transformCheckboxValue as Ia, CHECKBOX_FORMULA_1 as wa, CHECKBOX_FORMULA_2 as Ra } from "@univerjs/sheets-data-validation";
10
- import { getPatternType as Da } from "@univerjs/sheets-numfmt";
11
- import { SetCellEditVisibleOperation as so, SheetCanvasPopManagerService as Va, IEditorBridgeService as lo, SheetPermissionInterceptorBaseController as co, IMarkSelectionService as ya, HoverManagerService as Ma, CellAlertManagerService as ba, CellAlertType as Ea, IAutoFillService as Oa, APPLY_TYPE as et, virtualizeDiscreteRanges as on, getAutoFillRepeatRange as Pa, COPY_TYPE as On, rangeToDiscreteRange as La, PREDEFINED_HOOK_NAME as lt, getRepeatRange as Pn, ISheetClipboardService as Ta, getCurrentRangeDisable$ as Aa, AutoHeightController as uo, SheetSkeletonManagerService as Rt } from "@univerjs/sheets-ui";
12
- import { IDialogService as xa, KeyCode as an, ISidebarService as ho, useObservable as Ne, ComponentManager as Et, IZenZoneService as po, RectPopup as ja, useEvent as mo, useSidebarClick as gn, MenuItemType as vn, getMenuHiddenObservable as Fa, RibbonStartGroup as Na, IMenuManagerService as Ua } from "@univerjs/ui";
13
- import { DataValidatorRegistryService as ye, DataValidationModel as Ot, DataValidatorRegistryScope as Ba, TWO_FORMULA_OPERATOR_COUNT as $a, getRuleOptions as Ln, getRuleSetting as Tn } from "@univerjs/data-validation";
14
- import { RichTextEditingMutation as ka } from "@univerjs/docs";
15
- import { filter as _n, BehaviorSubject as An, distinctUntilChanged as Wa, Subject as Ha, debounceTime as Sn, bufferTime as fo } from "rxjs";
16
- import { deserializeRangeWithSheet as Ya, serializeRange as go } from "@univerjs/engine-formula";
17
- import { RangeSelector as Xa, FormulaEditor as vo } from "@univerjs/sheets-formula-ui";
18
- var jt = { exports: {} }, tt = {};
1
+ var ko = Object.defineProperty;
2
+ var Wo = (e, t, o) => t in e ? ko(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
+ var M = (e, t, o) => Wo(e, typeof t != "symbol" ? t + "" : t, o);
4
+ import Zt, { useState as W, forwardRef as we, useRef as He, createElement as Re, useMemo as Ae, useEffect as Ce } from "react";
5
+ import { Inject as b, LocaleService as J, Disposable as De, DataValidationErrorStyle as it, useDependency as L, ICommandService as Q, dayjs as qt, numfmt as Jt, CellValueType as Ho, UniverInstanceType as Y, toDisposable as Yo, IUniverInstanceService as ge, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as Xo, DisposableCollection as zo, CommandType as Je, BuildTextUtils as Ko, DataValidationRenderMode as de, DataValidationType as z, IConfigService as hn, UndoCommand as Go, RedoCommand as Zo, isUnitRangesEqual as qo, debounce as Jo, shallowEqual as Mn, Injector as Ne, DataValidationStatus as rt, ObjectMatrix as _t, Range as Qo, Rectangle as St, queryObjectMatrix as Qt, Optional as ea, RxDisposable as pn, InterceptorEffectEnum as zn, sequenceExecute as Kn, bufferDebounceTime as ta, isFormulaString as Pe, Tools as en, ThemeService as na, VerticalAlign as ue, HorizontalAlign as Ye, DEFAULT_STYLES as le, WrapStrategy as Se, DocumentDataModel as oa, DEFAULT_EMPTY_DOCUMENT_VALUE as aa, BooleanNumber as Qe, Plugin as Gn, merge as Zn } from "@univerjs/core";
6
+ import { Button as Fe, DatePanel as ia, Scrollbar as ra, FormLayout as Z, RadioGroup as mn, Radio as xe, Checkbox as Ot, Input as je, Select as tn, DraggableList as sa } from "@univerjs/design";
7
+ import { DeviceInputEventType as nn, IRenderManagerService as Ve, fixLineWidthByScale as bn, Transform as la, CheckboxShape as da, CURSOR_TYPE as Xe, FontCache as ca, Shape as ua, Rect as qn, getFontStyleString as jt, getDocsSkeletonPageSize as et, DocumentViewModel as ha, DocumentSkeleton as pa, Documents as ma } from "@univerjs/engine-render";
8
+ import { SheetInterceptorService as fn, AFTER_CELL_EDIT_ASYNC as fa, SetRangeValuesCommand as gn, SheetsSelectionsService as Jn, getSheetCommandTarget as Qn, WorkbookEditablePermission as Ct, RangeProtectionPermissionEditPoint as It, WorksheetEditPermission as wt, checkRangesEditablePermission as ga, WorksheetSetCellStylePermission as on, INTERCEPTOR_POINT as eo, InterceptCellContentPriority as to } from "@univerjs/sheets";
9
+ import { SheetDataValidationModel as oe, getCellValueOrigin as ie, getDataValidationCellValue as va, deserializeListOptions as no, serializeListOptions as oo, UpdateSheetDataValidationRangeCommand as ao, UpdateSheetDataValidationSettingCommand as En, RemoveSheetDataValidationCommand as io, UpdateSheetDataValidationOptionsCommand as _a, createDefaultNewRule as ro, AddSheetDataValidationCommand as vn, RemoveSheetAllDataValidationCommand as Sa, DATA_VALIDATION_PLUGIN_NAME as so, getDataValidationDiffMutations as an, DataValidationCacheService as lo, DataValidationFormulaController as Ca, DataValidationFormulaService as Ia, getFormulaResult as Ft, isLegalFormulaResult as On, transformCheckboxValue as wa, CHECKBOX_FORMULA_1 as Ra, CHECKBOX_FORMULA_2 as Da } from "@univerjs/sheets-data-validation";
10
+ import { getPatternType as Va } from "@univerjs/sheets-numfmt";
11
+ import { SetCellEditVisibleOperation as co, SheetCanvasPopManagerService as ya, IEditorBridgeService as uo, SheetPermissionInterceptorBaseController as ho, IMarkSelectionService as Ma, HoverManagerService as ba, CellAlertManagerService as Ea, CellAlertType as Oa, IAutoFillService as La, APPLY_TYPE as tt, virtualizeDiscreteRanges as rn, getAutoFillRepeatRange as Pa, COPY_TYPE as Ln, rangeToDiscreteRange as Ta, PREDEFINED_HOOK_NAME as dt, getRepeatRange as Pn, ISheetClipboardService as Aa, getCurrentRangeDisable$ as xa, AutoHeightController as po, SheetSkeletonManagerService as Rt } from "@univerjs/sheets-ui";
12
+ import { IDialogService as ja, KeyCode as sn, ISidebarService as mo, useObservable as Ue, ComponentManager as Lt, IZenZoneService as fo, RectPopup as Fa, useEvent as go, useSidebarClick as _n, MenuItemType as Sn, getMenuHiddenObservable as Na, RibbonStartGroup as Ua, IMenuManagerService as Ba } from "@univerjs/ui";
13
+ import { DataValidatorRegistryService as ye, DataValidationModel as Pt, DataValidatorRegistryScope as $a, TWO_FORMULA_OPERATOR_COUNT as ka, getRuleOptions as Tn, getRuleSetting as An } from "@univerjs/data-validation";
14
+ import { RichTextEditingMutation as Wa } from "@univerjs/docs";
15
+ import { filter as Cn, BehaviorSubject as xn, distinctUntilChanged as Ha, Subject as Ya, debounceTime as In, bufferTime as vo } from "rxjs";
16
+ import { deserializeRangeWithSheet as Xa, serializeRange as _o } from "@univerjs/engine-formula";
17
+ import { RangeSelector as za, FormulaEditor as So } from "@univerjs/sheets-formula-ui";
18
+ var Nt = { exports: {} }, nt = {};
19
19
  /**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
@@ -25,11 +25,11 @@ var jt = { exports: {} }, tt = {};
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
27
  */
28
- var xn;
29
- function za() {
30
- if (xn) return tt;
31
- xn = 1;
32
- var e = Kt, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
28
+ var jn;
29
+ function Ka() {
30
+ if (jn) return nt;
31
+ jn = 1;
32
+ var e = Zt, t = Symbol.for("react.element"), o = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
33
33
  function r(l, s, c) {
34
34
  var u, p = {}, d = null, f = null;
35
35
  c !== void 0 && (d = "" + c), s.key !== void 0 && (d = "" + s.key), s.ref !== void 0 && (f = s.ref);
@@ -37,29 +37,29 @@ function za() {
37
37
  if (l && l.defaultProps) for (u in s = l.defaultProps, s) p[u] === void 0 && (p[u] = s[u]);
38
38
  return { $$typeof: t, type: l, key: d, ref: f, props: p, _owner: a.current };
39
39
  }
40
- return tt.Fragment = o, tt.jsx = r, tt.jsxs = r, tt;
40
+ return nt.Fragment = o, nt.jsx = r, nt.jsxs = r, nt;
41
41
  }
42
- var jn;
43
- function Ka() {
44
- return jn || (jn = 1, jt.exports = za()), jt.exports;
42
+ var Fn;
43
+ function Ga() {
44
+ return Fn || (Fn = 1, Nt.exports = Ka()), Nt.exports;
45
45
  }
46
- var h = Ka(), Ga = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, qa = (e, t, o, n) => {
47
- for (var a = n > 1 ? void 0 : n ? Za(t, o) : t, i = e.length - 1, r; i >= 0; i--)
46
+ var h = Ga(), Za = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ja = (e, t, o, n) => {
47
+ for (var a = n > 1 ? void 0 : n ? qa(t, o) : t, i = e.length - 1, r; i >= 0; i--)
48
48
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
49
- return n && a && Ga(t, o, a), a;
50
- }, nt = (e, t) => (o, n) => t(o, n, e);
51
- let rt = class extends De {
49
+ return n && a && Za(t, o, a), a;
50
+ }, ot = (e, t) => (o, n) => t(o, n, e);
51
+ let st = class extends De {
52
52
  constructor(e, t, o, n, a) {
53
53
  super(), this._sheetInterceptorService = e, this._dataValidationModel = t, this._dataValidatorRegistryService = o, this._dialogService = n, this._localeService = a, this._initEditorBridgeInterceptor();
54
54
  }
55
55
  _initEditorBridgeInterceptor() {
56
56
  this._sheetInterceptorService.writeCellInterceptor.intercept(
57
- ma,
57
+ fa,
58
58
  {
59
59
  handler: async (e, t, o) => {
60
60
  var _;
61
61
  const n = await e, { worksheet: a, row: i, col: r, unitId: l, subUnitId: s, workbook: c } = t, u = this._dataValidationModel.getRuleIdByLocation(l, s, i, r), p = u ? this._dataValidationModel.getRuleById(l, s, u) : void 0;
62
- if (!p || p.errorStyle !== at.STOP)
62
+ if (!p || p.errorStyle !== it.STOP)
63
63
  return o(Promise.resolve(n));
64
64
  const d = await this._dataValidatorRegistryService.getValidatorItem(p.type);
65
65
  if (!d || await d.validator(
@@ -88,8 +88,8 @@ let rt = class extends De {
88
88
  title: d.getRuleFinalError(p, { row: i, col: r, unitId: l, subUnitId: s })
89
89
  },
90
90
  footer: {
91
- title: Kt.createElement(
92
- je,
91
+ title: Zt.createElement(
92
+ Fe,
93
93
  {
94
94
  type: "primary",
95
95
  onClick: () => this._dialogService.close("reject-input-dialog")
@@ -116,8 +116,8 @@ let rt = class extends De {
116
116
  title: e
117
117
  },
118
118
  footer: {
119
- title: Kt.createElement(
120
- je,
119
+ title: Zt.createElement(
120
+ Fe,
121
121
  {
122
122
  type: "primary",
123
123
  onClick: () => this._dialogService.close("reject-input-dialog")
@@ -131,28 +131,28 @@ let rt = class extends De {
131
131
  });
132
132
  }
133
133
  };
134
- rt = qa([
135
- nt(0, b(pn)),
136
- nt(1, b(oe)),
137
- nt(2, b(ye)),
138
- nt(3, xa),
139
- nt(4, b(J))
140
- ], rt);
141
- const Ja = "univer-dv-date-dropdown", Qa = "univer-dv-date-dropdown-btns", Fn = {
142
- dvDateDropdown: Ja,
143
- dvDateDropdownBtns: Qa
144
- }, ei = (e) => {
134
+ st = Ja([
135
+ ot(0, b(fn)),
136
+ ot(1, b(oe)),
137
+ ot(2, b(ye)),
138
+ ot(3, ja),
139
+ ot(4, b(J))
140
+ ], st);
141
+ const Qa = "univer-dv-date-dropdown", ei = "univer-dv-date-dropdown-btns", Nn = {
142
+ dvDateDropdown: Qa,
143
+ dvDateDropdownBtns: ei
144
+ }, ti = (e) => {
145
145
  if (e == null || typeof e == "boolean")
146
146
  return;
147
147
  if (typeof e == "number" || !Number.isNaN(+e))
148
- return Gt(Zt.format("yyyy-MM-dd HH:mm:ss", Number(e)));
149
- const t = Gt(e);
148
+ return qt(Jt.format("yyyy-MM-dd HH:mm:ss", Number(e)));
149
+ const t = qt(e);
150
150
  if (t.isValid())
151
151
  return t;
152
152
  };
153
- function ti(e) {
153
+ function ni(e) {
154
154
  var v;
155
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = P(Q), u = P(rt), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), f = ei(d), [m, _] = W(f), w = m && m.isValid() ? m : Gt(), S = P(J), R = P(oe), I = R.getRuleByLocation(r, l, a, i);
155
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l, workbook: s } = t, c = L(Q), u = L(st), p = n.getCell(a, i), d = ie(n.getCellRaw(a, i)), f = ti(d), [m, _] = W(f), w = m && m.isValid() ? m : qt(), S = L(J), R = L(oe), I = R.getRuleByLocation(r, l, a, i);
156
156
  if (!I)
157
157
  return null;
158
158
  const V = R.getValidator(I.type);
@@ -162,8 +162,8 @@ function ti(e) {
162
162
  var x, j, F;
163
163
  if (!w)
164
164
  return;
165
- const L = w.format(C ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (x = Zt.parseDate(L)) == null ? void 0 : x.v, T = s.getStyles().getStyleByCell(p), E = (F = (j = T == null ? void 0 : T.n) == null ? void 0 : j.pattern) != null ? F : "", A = Da(E);
166
- I.errorStyle !== at.STOP || await V.validator({
165
+ const P = w.format(C ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00"), U = (x = Jt.parseDate(P)) == null ? void 0 : x.v, T = s.getStyles().getStyleByCell(p), E = (F = (j = T == null ? void 0 : T.n) == null ? void 0 : j.pattern) != null ? F : "", A = Va(E);
166
+ I.errorStyle !== it.STOP || await V.validator({
167
167
  value: U,
168
168
  unitId: r,
169
169
  subUnitId: l,
@@ -171,14 +171,14 @@ function ti(e) {
171
171
  column: i,
172
172
  worksheet: n,
173
173
  workbook: s,
174
- interceptValue: L.replace("Z", "").replace("T", " "),
175
- t: Wo.NUMBER
176
- }, I) ? (o(), await c.executeCommand(so.id, {
174
+ interceptValue: P.replace("Z", "").replace("T", " "),
175
+ t: Ho.NUMBER
176
+ }, I) ? (o(), await c.executeCommand(co.id, {
177
177
  visible: !1,
178
- eventType: en.Keyboard,
178
+ eventType: nn.Keyboard,
179
179
  unitId: r,
180
- keycode: an.ESC
181
- }), await c.executeCommand(mn.id, {
180
+ keycode: sn.ESC
181
+ }), await c.executeCommand(gn.id, {
182
182
  unitId: r,
183
183
  subUnitId: l,
184
184
  range: {
@@ -201,9 +201,9 @@ function ti(e) {
201
201
  }
202
202
  })) : u.showReject(V.getRuleFinalError(I, { row: a, col: i, unitId: r, subUnitId: l }));
203
203
  };
204
- return /* @__PURE__ */ h.jsxs("div", { className: Fn.dvDateDropdown, children: [
204
+ return /* @__PURE__ */ h.jsxs("div", { className: Nn.dvDateDropdown, children: [
205
205
  /* @__PURE__ */ h.jsx(
206
- aa,
206
+ ia,
207
207
  {
208
208
  defaultValue: w,
209
209
  pickerValue: w,
@@ -214,10 +214,10 @@ function ti(e) {
214
214
  onPanelChange: (y) => {
215
215
  _(y);
216
216
  },
217
- disabledDate: (y) => !Zt.parseDate(y.format("YYYY-MM-DD"))
217
+ disabledDate: (y) => !Jt.parseDate(y.format("YYYY-MM-DD"))
218
218
  }
219
219
  ),
220
- /* @__PURE__ */ h.jsx("div", { className: Fn.dvDateDropdownBtns, children: /* @__PURE__ */ h.jsx(je, { size: "small", type: "primary", onClick: g, disabled: !w.isValid(), children: S.t("dataValidation.alert.ok") }) })
220
+ /* @__PURE__ */ h.jsx("div", { className: Nn.dvDateDropdownBtns, children: /* @__PURE__ */ h.jsx(Fe, { size: "small", type: "primary", onClick: g, disabled: !w.isValid(), children: S.t("dataValidation.alert.ok") }) })
221
221
  ] });
222
222
  }
223
223
  var ce = function() {
@@ -228,7 +228,7 @@ var ce = function() {
228
228
  }
229
229
  return e;
230
230
  }, ce.apply(this, arguments);
231
- }, ni = function(e, t) {
231
+ }, oi = function(e, t) {
232
232
  var o = {};
233
233
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
234
234
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -236,15 +236,15 @@ var ce = function() {
236
236
  t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (o[n[a]] = e[n[a]]);
237
237
  return o;
238
238
  }, Me = we(function(e, t) {
239
- var o = e.icon, n = e.id, a = e.className, i = e.extend, r = ni(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(a || "").trim(), s = We("_".concat(ii()));
240
- return _o(o, "".concat(n), { defIds: o.defIds, idSuffix: s.current }, ce({ ref: t, className: l }, r), i);
239
+ var o = e.icon, n = e.id, a = e.className, i = e.extend, r = oi(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(a || "").trim(), s = He("_".concat(ri()));
240
+ return Co(o, "".concat(n), { defIds: o.defIds, idSuffix: s.current }, ce({ ref: t, className: l }, r), i);
241
241
  });
242
- function _o(e, t, o, n, a) {
243
- return Re(e.tag, ce(ce({ key: t }, oi(e, o, a)), n), (ai(e, o).children || []).map(function(i, r) {
244
- return _o(i, "".concat(t, "-").concat(e.tag, "-").concat(r), o, void 0, a);
242
+ function Co(e, t, o, n, a) {
243
+ return Re(e.tag, ce(ce({ key: t }, ai(e, o, a)), n), (ii(e, o).children || []).map(function(i, r) {
244
+ return Co(i, "".concat(t, "-").concat(e.tag, "-").concat(r), o, void 0, a);
245
245
  }));
246
246
  }
247
- function oi(e, t, o) {
247
+ function ai(e, t, o) {
248
248
  var n = ce({}, e.attrs);
249
249
  o != null && o.colorChannel1 && n.fill === "colorChannel1" && (n.fill = o.colorChannel1);
250
250
  var a = t.defIds;
@@ -253,92 +253,92 @@ function oi(e, t, o) {
253
253
  typeof l == "string" && (n[r] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
254
254
  })), n;
255
255
  }
256
- function ai(e, t) {
256
+ function ii(e, t) {
257
257
  var o, n = t.defIds;
258
258
  return !n || n.length === 0 ? e : e.tag === "defs" && (!((o = e.children) === null || o === void 0) && o.length) ? ce(ce({}, e), { children: e.children.map(function(a) {
259
259
  return typeof a.attrs.id == "string" && n && n.indexOf(a.attrs.id) > -1 ? ce(ce({}, a), { attrs: ce(ce({}, a.attrs), { id: a.attrs.id + t.idSuffix }) }) : a;
260
260
  }) }) : e;
261
261
  }
262
- function ii() {
262
+ function ri() {
263
263
  return Math.random().toString(36).substring(2, 8);
264
264
  }
265
265
  Me.displayName = "UniverIcon";
266
- var ri = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, So = we(function(e, t) {
266
+ var si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Io = we(function(e, t) {
267
267
  return Re(Me, Object.assign({}, e, {
268
268
  id: "check-mark-single",
269
269
  ref: t,
270
- icon: ri
270
+ icon: si
271
271
  }));
272
272
  });
273
- So.displayName = "CheckMarkSingle";
274
- var si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Co = we(function(e, t) {
273
+ Io.displayName = "CheckMarkSingle";
274
+ var li = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.4917 3.07803C1.4917 2.19437 2.20804 1.47803 3.0917 1.47803H5.6917C6.57536 1.47803 7.2917 2.19437 7.2917 3.07803V5.67803C7.2917 6.56168 6.57535 7.27803 5.6917 7.27803H3.0917C2.20804 7.27803 1.4917 6.56168 1.4917 5.67803V3.07803ZM3.0917 2.67803C2.87078 2.67803 2.6917 2.85711 2.6917 3.07803V5.67803C2.6917 5.89894 2.87079 6.07803 3.0917 6.07803H5.6917C5.91261 6.07803 6.0917 5.89894 6.0917 5.67803V3.07803C6.0917 2.85711 5.91261 2.67803 5.6917 2.67803H3.0917Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.6175 2.45279C14.8518 2.68711 14.8518 3.06701 14.6175 3.30132L11.6151 6.30365C11.3957 6.52307 11.0451 6.53897 10.8067 6.34031L8.80915 4.67566C8.55458 4.46352 8.52019 4.08518 8.73233 3.83062 8.94447 3.57605 9.32281 3.54166 9.57737 3.7538L11.154 5.06767 13.769 2.45278C14.0033 2.21847 14.3832 2.21848 14.6175 2.45279zM14.1175 9.19746C14.3518 9.43178 14.3518 9.81168 14.1175 10.046L12.5418 11.6217 14.1175 13.1975C14.3518 13.4318 14.3518 13.8117 14.1175 14.046 13.8832 14.2803 13.5033 14.2803 13.269 14.046L11.6933 12.4703 10.1175 14.046C9.88321 14.2803 9.50331 14.2803 9.269 14.046 9.03468 13.8117 9.03468 13.4318 9.269 13.1975L10.8447 11.6217 9.269 10.046C9.03468 9.81168 9.03468 9.43178 9.269 9.19746 9.50331 8.96315 9.88321 8.96315 10.1175 9.19746L11.6933 10.7732 13.269 9.19746C13.5033 8.96315 13.8832 8.96315 14.1175 9.19746z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.0917 8.72168C2.20804 8.72168 1.4917 9.43802 1.4917 10.3217V12.9217C1.4917 13.8053 2.20804 14.5217 3.0917 14.5217H5.6917C6.57535 14.5217 7.2917 13.8053 7.2917 12.9217V10.3217C7.2917 9.43802 6.57536 8.72168 5.6917 8.72168H3.0917ZM2.6917 10.3217C2.6917 10.1008 2.87078 9.92168 3.0917 9.92168H5.6917C5.91261 9.92168 6.0917 10.1008 6.0917 10.3217V12.9217C6.0917 13.1426 5.91261 13.3217 5.6917 13.3217H3.0917C2.87079 13.3217 2.6917 13.1426 2.6917 12.9217V10.3217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, wo = we(function(e, t) {
275
275
  return Re(Me, Object.assign({}, e, {
276
276
  id: "data-validation-single",
277
277
  ref: t,
278
- icon: si
278
+ icon: li
279
279
  }));
280
280
  });
281
- Co.displayName = "DataValidationSingle";
282
- var li = { 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" } }] }, Cn = we(function(e, t) {
281
+ wo.displayName = "DataValidationSingle";
282
+ var di = { 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" } }] }, wn = we(function(e, t) {
283
283
  return Re(Me, Object.assign({}, e, {
284
284
  id: "delete-single",
285
285
  ref: t,
286
- icon: li
286
+ icon: di
287
287
  }));
288
288
  });
289
- Cn.displayName = "DeleteSingle";
290
- var di = { 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" } }] }, Io = we(function(e, t) {
289
+ wn.displayName = "DeleteSingle";
290
+ var ci = { 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" } }] }, Ro = we(function(e, t) {
291
291
  return Re(Me, Object.assign({}, e, {
292
292
  id: "increase-single",
293
293
  ref: t,
294
- icon: di
294
+ icon: ci
295
295
  }));
296
296
  });
297
- Io.displayName = "IncreaseSingle";
298
- var ci = { 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" } }] }, wo = we(function(e, t) {
297
+ Ro.displayName = "IncreaseSingle";
298
+ var ui = { 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" } }] }, Do = we(function(e, t) {
299
299
  return Re(Me, Object.assign({}, e, {
300
300
  id: "more-down-single",
301
301
  ref: t,
302
- icon: ci
302
+ icon: ui
303
303
  }));
304
304
  });
305
- wo.displayName = "MoreDownSingle";
306
- var ui = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ro = we(function(e, t) {
305
+ Do.displayName = "MoreDownSingle";
306
+ var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.64645 9.85355C4.45118 9.65829 4.45118 9.34171 4.64645 9.14645L7.64645 6.14645C7.84171 5.95118 8.15829 5.95118 8.35355 6.14645L11.3536 9.14645C11.5488 9.34171 11.5488 9.65829 11.3536 9.85355C11.1583 10.0488 10.8417 10.0488 10.6464 9.85355L8 7.20711L5.35355 9.85355C5.15829 10.0488 4.84171 10.0488 4.64645 9.85355Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vo = we(function(e, t) {
307
307
  return Re(Me, Object.assign({}, e, {
308
308
  id: "more-up-single",
309
309
  ref: t,
310
- icon: ui
310
+ icon: hi
311
311
  }));
312
312
  });
313
- Ro.displayName = "MoreUpSingle";
314
- var hi = { 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" } }] }] }, Do = we(function(e, t) {
313
+ Vo.displayName = "MoreUpSingle";
314
+ var pi = { 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" } }] }] }, yo = we(function(e, t) {
315
315
  return Re(Me, Object.assign({}, e, {
316
316
  id: "sequence-single",
317
317
  ref: t,
318
- icon: hi
318
+ icon: pi
319
319
  }));
320
320
  });
321
- Do.displayName = "SequenceSingle";
322
- var pi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, fi = (e, t, o, n) => {
323
- for (var a = n > 1 ? void 0 : n ? mi(t, o) : t, i = e.length - 1, r; i >= 0; i--)
321
+ yo.displayName = "SequenceSingle";
322
+ var mi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, gi = (e, t, o, n) => {
323
+ for (var a = n > 1 ? void 0 : n ? fi(t, o) : t, i = e.length - 1, r; i >= 0; i--)
324
324
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
325
- return n && a && pi(t, o, a), a;
326
- }, Nn = (e, t) => (o, n) => t(o, n, e);
325
+ return n && a && mi(t, o, a), a;
326
+ }, Un = (e, t) => (o, n) => t(o, n, e);
327
327
  let me = class extends De {
328
328
  constructor(t, o) {
329
329
  super();
330
- M(this, "_open$", new An(!1));
331
- M(this, "open$", this._open$.pipe(Wa()));
330
+ M(this, "_open$", new xn(!1));
331
+ M(this, "open$", this._open$.pipe(Ha()));
332
332
  M(this, "_activeRule");
333
- M(this, "_activeRule$", new An(void 0));
333
+ M(this, "_activeRule$", new xn(void 0));
334
334
  M(this, "activeRule$", this._activeRule$.asObservable());
335
335
  M(this, "_closeDisposable", null);
336
336
  this._univerInstanceService = t, this._sidebarService = o, this.disposeWithMe(
337
- this._univerInstanceService.getCurrentTypeOfUnit$(Y.UNIVER_SHEET).pipe(_n((n) => !n)).subscribe(() => {
337
+ this._univerInstanceService.getCurrentTypeOfUnit$(Y.UNIVER_SHEET).pipe(Cn((n) => !n)).subscribe(() => {
338
338
  this.close();
339
339
  })
340
340
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((n) => {
341
- n.id === In && (n.visible || setTimeout(() => {
341
+ n.id === Dt && (n.visible || setTimeout(() => {
342
342
  this._sidebarService.sidebarOptions$.next({ visible: !1 });
343
343
  }));
344
344
  }));
@@ -361,7 +361,7 @@ let me = class extends De {
361
361
  this._open$.next(!1), (t = this._closeDisposable) == null || t.dispose();
362
362
  }
363
363
  setCloseDisposable(t) {
364
- this._closeDisposable = Ho(() => {
364
+ this._closeDisposable = Yo(() => {
365
365
  t.dispose(), this._closeDisposable = null;
366
366
  });
367
367
  }
@@ -369,12 +369,12 @@ let me = class extends De {
369
369
  this._activeRule = t, this._activeRule$.next(t);
370
370
  }
371
371
  };
372
- me = fi([
373
- Nn(0, ge),
374
- Nn(1, ho)
372
+ me = gi([
373
+ Un(0, ge),
374
+ Un(1, mo)
375
375
  ], me);
376
- function gi() {
377
- const e = P(Ie), t = Ne(e.activeDropdown$, e.activeDropdown), o = P(Et);
376
+ function vi() {
377
+ const e = L(Ie), t = Ue(e.activeDropdown$, e.activeDropdown), o = L(Lt);
378
378
  if (!t)
379
379
  return null;
380
380
  const { location: n, componentKey: a } = t, i = o.get(a), r = `${n.unitId}-${n.subUnitId}-${n.row}-${n.col}`;
@@ -392,17 +392,17 @@ function gi() {
392
392
  r
393
393
  );
394
394
  }
395
- const Vo = "sheet.ui.dropdown";
396
- var vi = Object.defineProperty, _i = Object.getOwnPropertyDescriptor, Si = (e, t, o, n) => {
397
- for (var a = n > 1 ? void 0 : n ? _i(t, o) : t, i = e.length - 1, r; i >= 0; i--)
395
+ const Mo = "sheet.ui.dropdown";
396
+ var _i = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, Ci = (e, t, o, n) => {
397
+ for (var a = n > 1 ? void 0 : n ? Si(t, o) : t, i = e.length - 1, r; i >= 0; i--)
398
398
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
399
- return n && a && vi(t, o, a), a;
399
+ return n && a && _i(t, o, a), a;
400
400
  }, be = (e, t) => (o, n) => t(o, n, e);
401
401
  let Ie = class extends De {
402
402
  constructor(t, o, n, a, i, r, l) {
403
403
  super();
404
404
  M(this, "_activeDropdown");
405
- M(this, "_activeDropdown$", new Ha());
405
+ M(this, "_activeDropdown$", new Ya());
406
406
  M(this, "_currentPopup", null);
407
407
  M(this, "activeDropdown$", this._activeDropdown$.asObservable());
408
408
  M(this, "_zenVisible", !1);
@@ -441,11 +441,11 @@ let Ie = class extends De {
441
441
  if (this._currentPopup && this._currentPopup.dispose(), this._zenVisible)
442
442
  return;
443
443
  this._activeDropdown = t, this._activeDropdown$.next(this._activeDropdown);
444
- const s = this._renderManagerService.getRenderById(Yo), c = this._canvasPopupManagerService.attachPopupToCell(
444
+ const s = this._renderManagerService.getRenderById(Xo), c = this._canvasPopupManagerService.attachPopupToCell(
445
445
  a,
446
446
  i,
447
447
  {
448
- componentKey: Vo,
448
+ componentKey: Mo,
449
449
  onClickOutside: () => {
450
450
  o && this.hideDropdown();
451
451
  },
@@ -457,7 +457,7 @@ let Ie = class extends De {
457
457
  );
458
458
  if (!c)
459
459
  throw new Error("[DataValidationDropdownManagerService]: cannot show dropdown!");
460
- const u = new Xo();
460
+ const u = new zo();
461
461
  u.add(c), u.add({
462
462
  dispose: () => {
463
463
  var p, d;
@@ -497,22 +497,22 @@ let Ie = class extends De {
497
497
  });
498
498
  }
499
499
  };
500
- Ie = Si([
501
- be(0, b(Va)),
500
+ Ie = Ci([
501
+ be(0, b(ya)),
502
502
  be(1, ge),
503
503
  be(2, b(ye)),
504
- be(3, po),
504
+ be(3, fo),
505
505
  be(4, Ve),
506
506
  be(5, b(oe)),
507
- be(6, b(Zn))
507
+ be(6, b(Jn))
508
508
  ], Ie);
509
- const In = "DataValidationPanel", Ue = {
509
+ const Dt = "DataValidationPanel", Be = {
510
510
  id: "data-validation.operation.open-validation-panel",
511
- type: qe.OPERATION,
511
+ type: Je.OPERATION,
512
512
  handler(e, t) {
513
513
  if (!t)
514
514
  return !1;
515
- const { ruleId: o, isAdd: n } = t, a = e.get(me), i = e.get(Ot), r = e.get(ge), l = e.get(ho), s = qn(r);
515
+ const { ruleId: o, isAdd: n } = t, a = e.get(me), i = e.get(Pt), r = e.get(ge), l = e.get(mo), s = Qn(r);
516
516
  if (!s) return !1;
517
517
  const { unitId: c, subUnitId: u } = s, p = o ? i.getRuleById(c, u, o) : void 0;
518
518
  a.open(), a.setActiveRule(p && {
@@ -521,28 +521,29 @@ const In = "DataValidationPanel", Ue = {
521
521
  rule: p
522
522
  });
523
523
  const d = l.open({
524
+ id: Dt,
524
525
  header: { title: n ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
525
- children: { label: In },
526
+ children: { label: Dt },
526
527
  width: 312,
527
528
  onClose: () => a.close()
528
529
  });
529
530
  return a.setCloseDisposable(d), !0;
530
531
  }
531
- }, wn = {
532
+ }, Rn = {
532
533
  id: "data-validation.operation.close-validation-panel",
533
- type: qe.OPERATION,
534
+ type: Je.OPERATION,
534
535
  handler(e) {
535
536
  return e.get(me).close(), !0;
536
537
  }
537
- }, yo = {
538
+ }, bo = {
538
539
  id: "data-validation.operation.toggle-validation-panel",
539
- type: qe.OPERATION,
540
+ type: Je.OPERATION,
540
541
  handler(e) {
541
542
  const t = e.get(Q), o = e.get(me);
542
- return o.open(), o.isOpen ? t.executeCommand(wn.id) : t.executeCommand(Ue.id), !0;
543
+ return o.open(), o.isOpen ? t.executeCommand(Rn.id) : t.executeCommand(Be.id), !0;
543
544
  }
544
- }, Pt = {
545
- type: qe.OPERATION,
545
+ }, Tt = {
546
+ type: Je.OPERATION,
546
547
  id: "sheet.operation.show-data-validation-dropdown",
547
548
  handler(e, t) {
548
549
  if (!t)
@@ -555,25 +556,25 @@ const In = "DataValidationPanel", Ue = {
555
556
  r
556
557
  ), !0;
557
558
  }
558
- }, Mo = {
559
- type: qe.OPERATION,
559
+ }, Eo = {
560
+ type: Je.OPERATION,
560
561
  id: "sheet.operation.hide-data-validation-dropdown",
561
562
  handler(e, t) {
562
563
  return t ? (e.get(Ie).hideDropdown(), !0) : !1;
563
564
  }
564
- }, Le = "#ECECEC", Rn = "sheets-data-validation-ui.config", bo = {}, Ci = "univer-dv-list-dropdown", Ii = "univer-dv-list-dropdown-title", wi = "univer-dv-list-dropdown-list", Ri = "univer-dv-list-dropdown-list-container", Di = "univer-dv-list-dropdown-selected-icon", Vi = "univer-dv-list-dropdown-item-container", yi = "univer-dv-list-dropdown-item", Mi = "univer-dv-list-dropdown-split", bi = "univer-dv-list-dropdown-edit", ve = {
565
- dvListDropdown: Ci,
566
- dvListDropdownTitle: Ii,
567
- dvListDropdownList: wi,
568
- dvListDropdownListContainer: Ri,
569
- dvListDropdownSelectedIcon: Di,
570
- dvListDropdownItemContainer: Vi,
571
- dvListDropdownItem: yi,
572
- dvListDropdownSplit: Mi,
573
- dvListDropdownEdit: bi
574
- }, Ei = (e) => {
565
+ }, Te = "#ECECEC", Dn = "sheets-data-validation-ui.config", Vt = {}, Ii = "univer-dv-list-dropdown", wi = "univer-dv-list-dropdown-title", Ri = "univer-dv-list-dropdown-list", Di = "univer-dv-list-dropdown-list-container", Vi = "univer-dv-list-dropdown-selected-icon", yi = "univer-dv-list-dropdown-item-container", Mi = "univer-dv-list-dropdown-item", bi = "univer-dv-list-dropdown-split", Ei = "univer-dv-list-dropdown-edit", ve = {
566
+ dvListDropdown: Ii,
567
+ dvListDropdownTitle: wi,
568
+ dvListDropdownList: Ri,
569
+ dvListDropdownListContainer: Di,
570
+ dvListDropdownSelectedIcon: Vi,
571
+ dvListDropdownItemContainer: yi,
572
+ dvListDropdownItem: Mi,
573
+ dvListDropdownSplit: bi,
574
+ dvListDropdownEdit: Ei
575
+ }, Oi = (e) => {
575
576
  var C, g;
576
- const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = P(J), p = P(cn), d = s == null ? void 0 : s.toLowerCase(), { row: f, col: m, unitId: _, subUnitId: w } = c, S = a.filter((v) => d ? v.label.toLowerCase().includes(d) : !0), R = (g = (C = p.getConfig(Rn)) == null ? void 0 : C.showEditOnDropdown) != null ? g : !0, I = P(co), V = Te(() => I.permissionCheckWithRanges(
577
+ const { value: t, onChange: o, multiple: n, options: a, title: i, onEdit: r, style: l, filter: s, location: c } = e, u = L(J), p = L(hn), d = s == null ? void 0 : s.toLowerCase(), { row: f, col: m, unitId: _, subUnitId: w } = c, S = a.filter((v) => d ? v.label.toLowerCase().includes(d) : !0), R = (g = (C = p.getConfig(Dn)) == null ? void 0 : C.showEditOnDropdown) != null ? g : !0, I = L(ho), V = Ae(() => I.permissionCheckWithRanges(
577
578
  {
578
579
  workbookTypes: [Ct],
579
580
  rangeTypes: [It],
@@ -585,22 +586,22 @@ const In = "DataValidationPanel", Ue = {
585
586
  ), [I, m, f, _, w]);
586
587
  return /* @__PURE__ */ h.jsxs("div", { className: ve.dvListDropdown, style: l, children: [
587
588
  /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownTitle, children: i }),
588
- /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownList, children: /* @__PURE__ */ h.jsx(ia, { children: /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownListContainer, children: S.map((v, y) => {
589
- const L = t.indexOf(v.value) > -1, U = () => {
589
+ /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownList, children: /* @__PURE__ */ h.jsx(ra, { children: /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownListContainer, children: S.map((v, y) => {
590
+ const P = t.indexOf(v.value) > -1, U = () => {
590
591
  let E;
591
- L ? E = new Set(t.filter((x) => x !== v.value)) : E = new Set(n ? [...t, v.value] : [v.value]);
592
+ P ? E = new Set(t.filter((x) => x !== v.value)) : E = new Set(n ? [...t, v.value] : [v.value]);
592
593
  const A = [];
593
594
  a.forEach((x) => {
594
595
  E.has(x.value) && A.push(x.value);
595
596
  }), o(A);
596
597
  }, T = v.label.toLocaleLowerCase().indexOf(d);
597
598
  return /* @__PURE__ */ h.jsxs("div", { className: ve.dvListDropdownItemContainer, onClick: U, children: [
598
- /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownItem, style: { background: v.color || Le }, children: d && v.label.toLowerCase().includes(d) ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
599
+ /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownItem, style: { background: v.color || Te }, children: d && v.label.toLowerCase().includes(d) ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
599
600
  /* @__PURE__ */ h.jsx("span", { children: v.label.substring(0, T) }),
600
601
  /* @__PURE__ */ h.jsx("span", { style: { fontWeight: "bold" }, children: v.label.substring(T, T + d.length) }),
601
602
  /* @__PURE__ */ h.jsx("span", { children: v.label.substring(T + d.length) })
602
603
  ] }) : v.label }),
603
- /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownSelectedIcon, children: L ? /* @__PURE__ */ h.jsx(So, {}) : null })
604
+ /* @__PURE__ */ h.jsx("div", { className: ve.dvListDropdownSelectedIcon, children: P ? /* @__PURE__ */ h.jsx(Io, {}) : null })
604
605
  ] }, y);
605
606
  }) }) }, s) }),
606
607
  R && V ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
@@ -609,19 +610,19 @@ const In = "DataValidationPanel", Ue = {
609
610
  ] }) : null
610
611
  ] });
611
612
  };
612
- function Oi(e) {
613
+ function Li(e) {
613
614
  var j, F, H, X;
614
- const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = P(Ot), [c, u] = W(""), p = P(Q), d = P(J), [f, m] = W(""), _ = P(lo), w = P(ge), S = Te(() => s.ruleChange$.pipe(Sn(16)), []), R = P(oe);
615
- Ne(S);
616
- const I = ja.useContext(), V = ((F = (j = I.current) == null ? void 0 : j.right) != null ? F : 0) - ((X = (H = I.current) == null ? void 0 : H.left) != null ? X : 0);
615
+ const { location: t, hideFn: o } = e, { worksheet: n, row: a, col: i, unitId: r, subUnitId: l } = t, s = L(Pt), [c, u] = W(""), p = L(Q), d = L(J), [f, m] = W(""), _ = L(uo), w = L(ge), S = Ae(() => s.ruleChange$.pipe(In(16)), []), R = L(oe);
616
+ Ue(S);
617
+ const I = Fa.useContext(), V = ((F = (j = I.current) == null ? void 0 : j.right) != null ? F : 0) - ((X = (H = I.current) == null ? void 0 : H.left) != null ? X : 0);
617
618
  if (Ce(() => {
618
- const k = p.onCommandExecuted((z) => {
619
+ const k = p.onCommandExecuted((K) => {
619
620
  var q, ee;
620
- if (z.id === ka.id) {
621
- const te = z.params, { unitId: re } = te, ae = w.getUnit(re, Y.UNIVER_DOC);
621
+ if (K.id === Wa.id) {
622
+ const te = K.params, { unitId: re } = te, ae = w.getUnit(re, Y.UNIVER_DOC);
622
623
  if (!ae)
623
624
  return;
624
- const se = zo.transform.getPlainText((ee = (q = ae.getSnapshot().body) == null ? void 0 : q.dataStream) != null ? ee : "");
625
+ const se = Ko.transform.getPlainText((ee = (q = ae.getSnapshot().body) == null ? void 0 : q.dataStream) != null ? ee : "");
625
626
  u(se);
626
627
  }
627
628
  });
@@ -637,10 +638,10 @@ function Oi(e) {
637
638
  if (!g)
638
639
  return null;
639
640
  const v = n.getCell(a, i), y = (C == null ? void 0 : C.renderMode) === de.CUSTOM || (C == null ? void 0 : C.renderMode) === void 0;
640
- if (!v || !C || !g || g.id.indexOf(Z.LIST) !== 0)
641
+ if (!v || !C || !g || g.id.indexOf(z.LIST) !== 0)
641
642
  return;
642
- const L = C.type === Z.LIST_MULTIPLE, U = g.getListWithColor(C, r, l), T = f || ga(n.getCellRaw(a, i)), E = eo(T), A = () => {
643
- p.executeCommand(Ue.id, {
643
+ const P = C.type === z.LIST_MULTIPLE, U = g.getListWithColor(C, r, l), T = f || va(n.getCellRaw(a, i)), E = no(T), A = () => {
644
+ p.executeCommand(Be.id, {
644
645
  ruleId: C.uid
645
646
  }), o();
646
647
  }, x = U.map((k) => ({
@@ -649,14 +650,14 @@ function Oi(e) {
649
650
  color: y || k.color ? k.color : "transparent"
650
651
  }));
651
652
  return /* @__PURE__ */ h.jsx(
652
- Ei,
653
+ Oi,
653
654
  {
654
655
  style: { minWidth: V, maxWidth: Math.max(V, 200) },
655
- title: L ? d.t("dataValidation.listMultiple.dropdown") : d.t("dataValidation.list.dropdown"),
656
+ title: P ? d.t("dataValidation.listMultiple.dropdown") : d.t("dataValidation.list.dropdown"),
656
657
  value: E,
657
- multiple: L,
658
+ multiple: P,
658
659
  onChange: async (k) => {
659
- const z = to(k), q = {
660
+ const K = oo(k), q = {
660
661
  unitId: r,
661
662
  subUnitId: l,
662
663
  range: {
@@ -666,7 +667,7 @@ function Oi(e) {
666
667
  endRow: a
667
668
  },
668
669
  value: {
669
- v: z,
670
+ v: K,
670
671
  p: null,
671
672
  f: null,
672
673
  si: null
@@ -674,15 +675,15 @@ function Oi(e) {
674
675
  };
675
676
  _.isVisible() && _.changeVisible({
676
677
  visible: !1,
677
- keycode: an.ESC,
678
- eventType: en.Keyboard,
678
+ keycode: sn.ESC,
679
+ eventType: nn.Keyboard,
679
680
  unitId: r
680
- }), m(z), L || o(), _.isVisible().visible && await p.executeCommand(so.id, {
681
+ }), m(K), P || o(), _.isVisible().visible && await p.executeCommand(co.id, {
681
682
  visible: !1,
682
- eventType: en.Keyboard,
683
+ eventType: nn.Keyboard,
683
684
  unitId: r,
684
- keycode: an.ESC
685
- }), p.executeCommand(mn.id, q);
685
+ keycode: sn.ESC
686
+ }), p.executeCommand(gn.id, q);
686
687
  },
687
688
  options: x,
688
689
  onEdit: A,
@@ -691,43 +692,43 @@ function Oi(e) {
691
692
  }
692
693
  );
693
694
  }
694
- const Pi = "univer-data-validation-options-button", Li = "univer-data-validation-options-button-icon", Ft = {
695
+ const Pi = "univer-data-validation-options-button", Ti = "univer-data-validation-options-button-icon", Ut = {
695
696
  dataValidationOptionsButton: Pi,
696
- dataValidationOptionsButtonIcon: Li
697
+ dataValidationOptionsButtonIcon: Ti
697
698
  };
698
- function Ti(e) {
699
+ function Ai(e) {
699
700
  var c;
700
- const t = P(J), o = P(Et), { value: n, onChange: a, extraComponent: i } = e, [r, l] = W(!1), s = i ? o.get(i) : null;
701
+ const t = L(J), o = L(Lt), { value: n, onChange: a, extraComponent: i } = e, [r, l] = W(!1), s = i ? o.get(i) : null;
701
702
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
702
- /* @__PURE__ */ h.jsxs("div", { className: Ft.dataValidationOptionsButton, onClick: () => l(!r), children: [
703
+ /* @__PURE__ */ h.jsxs("div", { className: Ut.dataValidationOptionsButton, onClick: () => l(!r), children: [
703
704
  t.t("dataValidation.panel.options"),
704
- r ? /* @__PURE__ */ h.jsx(Ro, { className: Ft.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ h.jsx(wo, { className: Ft.dataValidationOptionsButtonIcon })
705
+ r ? /* @__PURE__ */ h.jsx(Vo, { className: Ut.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ h.jsx(Do, { className: Ut.dataValidationOptionsButtonIcon })
705
706
  ] }),
706
707
  r && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
707
708
  s ? /* @__PURE__ */ h.jsx(s, { value: n, onChange: a }) : null,
708
709
  /* @__PURE__ */ h.jsx(
709
- G,
710
+ Z,
710
711
  {
711
712
  label: t.t("dataValidation.panel.invalid"),
712
713
  children: /* @__PURE__ */ h.jsxs(
713
- hn,
714
+ mn,
714
715
  {
715
- value: `${(c = n.errorStyle) != null ? c : at.WARNING}`,
716
+ value: `${(c = n.errorStyle) != null ? c : it.WARNING}`,
716
717
  onChange: (u) => a({ ...n, errorStyle: +u }),
717
718
  children: [
718
- /* @__PURE__ */ h.jsx(Ae, { value: `${at.WARNING}`, children: t.t("dataValidation.panel.showWarning") }),
719
- /* @__PURE__ */ h.jsx(Ae, { value: `${at.STOP}`, children: t.t("dataValidation.panel.rejectInput") })
719
+ /* @__PURE__ */ h.jsx(xe, { value: `${it.WARNING}`, children: t.t("dataValidation.panel.showWarning") }),
720
+ /* @__PURE__ */ h.jsx(xe, { value: `${it.STOP}`, children: t.t("dataValidation.panel.rejectInput") })
720
721
  ]
721
722
  }
722
723
  )
723
724
  }
724
725
  ),
725
726
  /* @__PURE__ */ h.jsx(
726
- G,
727
+ Z,
727
728
  {
728
729
  label: t.t("dataValidation.panel.messageInfo"),
729
730
  children: /* @__PURE__ */ h.jsx(
730
- bt,
731
+ Ot,
731
732
  {
732
733
  checked: n.showErrorMessage,
733
734
  onChange: () => a({
@@ -739,56 +740,56 @@ function Ti(e) {
739
740
  )
740
741
  }
741
742
  ),
742
- n.showErrorMessage ? /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(xe, { value: n.error, onChange: (u) => a({ ...n, error: u }) }) }) : null
743
+ n.showErrorMessage ? /* @__PURE__ */ h.jsx(Z, { children: /* @__PURE__ */ h.jsx(je, { value: n.error, onChange: (u) => a({ ...n, error: u }) }) }) : null
743
744
  ] })
744
745
  ] });
745
746
  }
746
- const Ai = "univer-data-validation-detail", xi = "univer-data-validation-detail-form-item", ji = "univer-data-validation-detail-buttons", Fi = "univer-data-validation-detail-button", Be = {
747
- dataValidationDetail: Ai,
748
- dataValidationDetailFormItem: xi,
749
- dataValidationDetailButtons: ji,
750
- dataValidationDetailButton: Fi
751
- }, Ni = (e) => qo(
747
+ const xi = "univer-data-validation-detail", ji = "univer-data-validation-detail-form-item", Fi = "univer-data-validation-detail-buttons", Ni = "univer-data-validation-detail-button", $e = {
748
+ dataValidationDetail: xi,
749
+ dataValidationDetailFormItem: ji,
750
+ dataValidationDetailButtons: Fi,
751
+ dataValidationDetailButton: Ni
752
+ }, Ui = (e) => Jo(
752
753
  async (t, o, n, a) => {
753
754
  const i = await e.executeCommand(t, o, n);
754
755
  a == null || a(i);
755
756
  },
756
757
  1e3
757
758
  );
758
- function Ui(e, t, o) {
759
+ function Bi(e, t, o) {
759
760
  var n, a, i, r;
760
761
  return t ? ((a = (n = e.getUnit(t)) == null ? void 0 : n.getSheetBySheetName(o)) == null ? void 0 : a.getSheetId()) || "" : ((r = (i = e.getCurrentUnitForType(Y.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetName(o)) == null ? void 0 : r.getSheetId()) || "";
761
762
  }
762
- function Bi() {
763
+ function $i() {
763
764
  var se;
764
- const [e, t] = W(0), o = P(me), n = Ne(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = P(ye), c = P(ge), u = P(Et), p = P(Q), d = P(Ot), f = P(J), [m, _] = W(r), w = s.getValidatorItem(m.type), [S, R] = W(!1), I = s.getValidatorsByScope(Ba.SHEET), [V, C] = W(() => m.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), g = Te(() => Ni(p), [p]), [v, y] = W(!1), L = We({}), [U, T] = W(!1), E = P(Zn);
765
+ const [e, t] = W(0), o = L(me), n = Ue(o.activeRule$, o.activeRule), { unitId: a, subUnitId: i, rule: r } = n || {}, l = r.uid, s = L(ye), c = L(ge), u = L(Lt), p = L(Q), d = L(Pt), f = L(J), [m, _] = W(r), w = s.getValidatorItem(m.type), [S, R] = W(!1), I = s.getValidatorsByScope($a.SHEET), [V, C] = W(() => m.ranges.map((O) => ({ unitId: "", sheetId: "", range: O }))), g = Ae(() => Ui(p), [p]), [v, y] = W(!1), P = He({}), [U, T] = W(!1), E = L(Jn);
765
766
  if (Ce(() => () => {
766
767
  const O = E.getCurrentLastSelection();
767
768
  O && E.setSelections([O]);
768
769
  }, [E]), Ce(() => {
769
770
  p.onCommandExecuted((O) => {
770
- (O.id === Ko.id || O.id === Go.id) && setTimeout(() => {
771
+ (O.id === Go.id || O.id === Zo.id) && setTimeout(() => {
771
772
  const D = d.getRuleById(a, i, l);
772
773
  t((N) => N + 1), D && (_(D), C(D.ranges.map((N) => ({ unitId: "", sheetId: "", range: N }))));
773
774
  }, 20);
774
775
  });
775
776
  }, [p, d, l, i, a]), !w)
776
777
  return null;
777
- const A = w.operators, x = w.operatorNames, j = m.operator ? $a.includes(m.operator) : !1, F = () => {
778
+ const A = w.operators, x = w.operatorNames, j = m.operator ? ka.includes(m.operator) : !1, F = () => {
778
779
  !m.ranges.length || v || (w.validatorFormula(m, a, i).success ? o.setActiveRule(null) : R(!0));
779
- }, H = mo((O) => {
780
- const D = O.split(",").map(Ya).map(($) => {
780
+ }, H = go((O) => {
781
+ const D = O.split(",").filter(Boolean).map(Xa).map(($) => {
781
782
  const _e = $.sheetName;
782
783
  if (_e) {
783
- const Bo = Ui(c, $.unitId, _e);
784
- return { ...$, sheetId: Bo };
784
+ const $o = Bi(c, $.unitId, _e);
785
+ return { ...$, sheetId: $o };
785
786
  }
786
787
  return {
787
788
  ...$,
788
789
  sheetId: ""
789
790
  };
790
791
  });
791
- if (Zo(D, V))
792
+ if (qo(D, V))
792
793
  return;
793
794
  C(D);
794
795
  const N = D.filter(($) => (!$.unitId || $.unitId === a) && (!$.sheetId || $.sheetId === i)).map(($) => $.range);
@@ -803,9 +804,9 @@ function Bi() {
803
804
  ruleId: l,
804
805
  ranges: N
805
806
  };
806
- g(no.id, B);
807
+ g(ao.id, B);
807
808
  }), X = (O) => {
808
- if (yn(O, Tn(m)))
809
+ if (Mn(O, An(m)))
809
810
  return;
810
811
  _({
811
812
  ...m,
@@ -818,17 +819,17 @@ function Bi() {
818
819
  setting: O
819
820
  };
820
821
  g(
821
- bn.id,
822
+ En.id,
822
823
  D,
823
824
  void 0
824
825
  );
825
826
  }, k = async () => {
826
- await p.executeCommand(oo.id, {
827
+ await p.executeCommand(io.id, {
827
828
  ruleId: l,
828
829
  unitId: a,
829
830
  subUnitId: i
830
831
  }), o.setActiveRule(null);
831
- }, z = {
832
+ }, K = {
832
833
  type: m.type,
833
834
  operator: m.operator,
834
835
  formula1: m.formula1,
@@ -848,18 +849,18 @@ function Bi() {
848
849
  formula1: void 0,
849
850
  formula2: void 0
850
851
  };
851
- _($), p.executeCommand(bn.id, {
852
+ _($), p.executeCommand(En.id, {
852
853
  unitId: a,
853
854
  subUnitId: i,
854
855
  ruleId: m.uid,
855
- setting: Tn($)
856
+ setting: An($)
856
857
  });
857
- }, ee = u.get(w.formulaInput), te = Te(() => V.map((O) => go(O.range)).join(","), []), re = Ln(m), ae = (O) => {
858
- yn(O, Ln(m)) || (_({
858
+ }, ee = u.get(w.formulaInput), te = Ae(() => V.map((O) => _o(O.range)).join(","), []), re = Tn(m), ae = (O) => {
859
+ Mn(O, Tn(m)) || (_({
859
860
  ...m,
860
861
  ...O
861
862
  }), g(
862
- va.id,
863
+ _a.id,
863
864
  {
864
865
  unitId: a,
865
866
  subUnitId: i,
@@ -868,18 +869,18 @@ function Bi() {
868
869
  }
869
870
  ));
870
871
  };
871
- return gn((O) => {
872
+ return _n((O) => {
872
873
  var N;
873
- const D = (N = L.current) == null ? void 0 : N.handleOutClick;
874
+ const D = (N = P.current) == null ? void 0 : N.handleOutClick;
874
875
  D && D(O, () => T(!1));
875
- }), /* @__PURE__ */ h.jsxs("div", { className: Be.dataValidationDetail, children: [
876
+ }), /* @__PURE__ */ h.jsxs("div", { className: $e.dataValidationDetail, children: [
876
877
  /* @__PURE__ */ h.jsx(
877
- G,
878
+ Z,
878
879
  {
879
880
  label: f.t("dataValidation.panel.range"),
880
881
  error: !m.ranges.length || v ? f.t("dataValidation.panel.rangeError") : "",
881
882
  children: /* @__PURE__ */ h.jsx(
882
- Xa,
883
+ za,
883
884
  {
884
885
  unitId: a,
885
886
  subUnitId: i,
@@ -887,14 +888,14 @@ function Bi() {
887
888
  onChange: H,
888
889
  onFocus: () => T(!0),
889
890
  isFocus: U,
890
- actions: L.current,
891
+ actions: P.current,
891
892
  onVerify: (O) => y(!O)
892
893
  }
893
894
  )
894
895
  }
895
896
  ),
896
- /* @__PURE__ */ h.jsx(G, { label: f.t("dataValidation.panel.type"), children: /* @__PURE__ */ h.jsx(
897
- Qt,
897
+ /* @__PURE__ */ h.jsx(Z, { label: f.t("dataValidation.panel.type"), children: /* @__PURE__ */ h.jsx(
898
+ tn,
898
899
  {
899
900
  options: I == null ? void 0 : I.map((O) => ({
900
901
  label: f.t(O.title),
@@ -902,11 +903,11 @@ function Bi() {
902
903
  })),
903
904
  value: m.type,
904
905
  onChange: q,
905
- className: Be.dataValidationDetailFormItem
906
+ className: $e.dataValidationDetailFormItem
906
907
  }
907
908
  ) }),
908
- A != null && A.length ? /* @__PURE__ */ h.jsx(G, { label: f.t("dataValidation.panel.operator"), children: /* @__PURE__ */ h.jsx(
909
- Qt,
909
+ A != null && A.length ? /* @__PURE__ */ h.jsx(Z, { label: f.t("dataValidation.panel.operator"), children: /* @__PURE__ */ h.jsx(
910
+ tn,
910
911
  {
911
912
  options: A.map((O, D) => ({
912
913
  value: `${O}`,
@@ -915,11 +916,11 @@ function Bi() {
915
916
  value: `${m.operator}`,
916
917
  onChange: (O) => {
917
918
  X({
918
- ...z,
919
+ ...K,
919
920
  operator: O
920
921
  });
921
922
  },
922
- className: Be.dataValidationDetailFormItem
923
+ className: $e.dataValidationDetailFormItem
923
924
  }
924
925
  ) }) : null,
925
926
  ee ? /* @__PURE__ */ h.jsx(
@@ -932,7 +933,7 @@ function Bi() {
932
933
  },
933
934
  onChange: (O) => {
934
935
  X({
935
- ...z,
936
+ ...K,
936
937
  ...O
937
938
  });
938
939
  },
@@ -944,35 +945,35 @@ function Bi() {
944
945
  },
945
946
  e + m.type
946
947
  ) : null,
947
- /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
948
- bt,
948
+ /* @__PURE__ */ h.jsx(Z, { children: /* @__PURE__ */ h.jsx(
949
+ Ot,
949
950
  {
950
951
  checked: (se = m.allowBlank) != null ? se : !0,
951
952
  onChange: () => {
952
953
  var O;
953
954
  return X({
954
- ...z,
955
+ ...K,
955
956
  allowBlank: !((O = m.allowBlank) == null || O)
956
957
  });
957
958
  },
958
959
  children: f.t("dataValidation.panel.allowBlank")
959
960
  }
960
961
  ) }),
961
- /* @__PURE__ */ h.jsx(Ti, { value: re, onChange: ae, extraComponent: w.optionsInput }),
962
- /* @__PURE__ */ h.jsxs("div", { className: Be.dataValidationDetailButtons, children: [
963
- /* @__PURE__ */ h.jsx(je, { className: Be.dataValidationDetailButton, onClick: k, children: f.t("dataValidation.panel.removeRule") }),
964
- /* @__PURE__ */ h.jsx(je, { className: Be.dataValidationDetailButton, type: "primary", onClick: F, children: f.t("dataValidation.panel.done") })
962
+ /* @__PURE__ */ h.jsx(Ai, { value: re, onChange: ae, extraComponent: w.optionsInput }),
963
+ /* @__PURE__ */ h.jsxs("div", { className: $e.dataValidationDetailButtons, children: [
964
+ /* @__PURE__ */ h.jsx(Fe, { className: $e.dataValidationDetailButton, onClick: k, children: f.t("dataValidation.panel.removeRule") }),
965
+ /* @__PURE__ */ h.jsx(Fe, { className: $e.dataValidationDetailButton, type: "primary", onClick: F, children: f.t("dataValidation.panel.done") })
965
966
  ] })
966
967
  ] });
967
968
  }
968
- const $i = "univer-data-validation-item-container", ki = "univer-data-validation-item-title", Wi = "univer-data-validation-item-content", Hi = "univer-data-validation-item-icon", dt = {
969
- dataValidationItemContainer: $i,
970
- dataValidationItemTitle: ki,
971
- dataValidationItemContent: Wi,
972
- dataValidationItemIcon: Hi
973
- }, Yi = (e) => {
974
- const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = P(ye), l = P(Q), s = P(ya), c = r.getValidatorItem(t.type), u = We(), [p, d] = W(!1), f = (m) => {
975
- l.executeCommand(oo.id, {
969
+ const ki = "univer-data-validation-item-container", Wi = "univer-data-validation-item-title", Hi = "univer-data-validation-item-content", Yi = "univer-data-validation-item-icon", ct = {
970
+ dataValidationItemContainer: ki,
971
+ dataValidationItemTitle: Wi,
972
+ dataValidationItemContent: Hi,
973
+ dataValidationItemIcon: Yi
974
+ }, Xi = (e) => {
975
+ const { rule: t, onClick: o, unitId: n, subUnitId: a, disable: i } = e, r = L(ye), l = L(Q), s = L(Ma), c = r.getValidatorItem(t.type), u = He(), [p, d] = W(!1), f = (m) => {
976
+ l.executeCommand(io.id, {
976
977
  ruleId: t.uid,
977
978
  unitId: n,
978
979
  subUnitId: a
@@ -986,7 +987,7 @@ const $i = "univer-data-validation-item-container", ki = "univer-data-validation
986
987
  }, [s]), /* @__PURE__ */ h.jsxs(
987
988
  "div",
988
989
  {
989
- className: dt.dataValidationItemContainer,
990
+ className: ct.dataValidationItemContainer,
990
991
  onClick: o,
991
992
  onMouseEnter: () => {
992
993
  i || (d(!0), u.current = t.ranges.map((m) => s.addShape({
@@ -1008,28 +1009,28 @@ const $i = "univer-data-validation-item-container", ki = "univer-data-validation
1008
1009
  }), u.current = void 0;
1009
1010
  },
1010
1011
  children: [
1011
- /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(t) }),
1012
- /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemContent, children: t.ranges.map((m) => go(m)).join(",") }),
1013
- p ? /* @__PURE__ */ h.jsx("div", { className: dt.dataValidationItemIcon, onClick: f, children: /* @__PURE__ */ h.jsx(Cn, {}) }) : null
1012
+ /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemTitle, children: c == null ? void 0 : c.generateRuleName(t) }),
1013
+ /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemContent, children: t.ranges.map((m) => _o(m)).join(",") }),
1014
+ p ? /* @__PURE__ */ h.jsx("div", { className: ct.dataValidationItemIcon, onClick: f, children: /* @__PURE__ */ h.jsx(wn, {}) }) : null
1014
1015
  ]
1015
1016
  }
1016
1017
  );
1017
- }, Xi = "univer-data-validation-list", zi = "univer-data-validation-list-buttons", Ki = "univer-data-validation-list-button", ct = {
1018
- dataValidationList: Xi,
1019
- dataValidationListButtons: zi,
1020
- dataValidationListButton: Ki
1018
+ }, zi = "univer-data-validation-list", Ki = "univer-data-validation-list-buttons", Gi = "univer-data-validation-list-button", ut = {
1019
+ dataValidationList: zi,
1020
+ dataValidationListButtons: Ki,
1021
+ dataValidationListButton: Gi
1021
1022
  };
1022
- function Gi() {
1023
- const e = P(ge), t = Ne(
1023
+ function Zi() {
1024
+ const e = L(ge), t = Ue(
1024
1025
  () => e.getCurrentTypeOfUnit$(Y.UNIVER_SHEET),
1025
1026
  void 0,
1026
1027
  void 0,
1027
1028
  []
1028
1029
  );
1029
- return t ? /* @__PURE__ */ h.jsx(Zi, { workbook: t }) : null;
1030
+ return t ? /* @__PURE__ */ h.jsx(qi, { workbook: t }) : null;
1030
1031
  }
1031
- function Zi(e) {
1032
- const t = P(oe), o = P(ge), n = P(Q), a = P(Fe), i = P(me), r = P(J), [l, s] = W([]), { workbook: c } = e, u = Ne(c.activeSheet$, void 0, !0), p = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1032
+ function qi(e) {
1033
+ const t = L(oe), o = L(ge), n = L(Q), a = L(Ne), i = L(me), r = L(J), [l, s] = W([]), { workbook: c } = e, u = Ue(c.activeSheet$, void 0, !0), p = c.getUnitId(), d = u == null ? void 0 : u.getSheetId();
1033
1034
  Ce(() => {
1034
1035
  s(t.getRules(p, d));
1035
1036
  const R = t.ruleChange$.subscribe((I) => {
@@ -1040,30 +1041,30 @@ function Zi(e) {
1040
1041
  };
1041
1042
  }, [p, d, t]);
1042
1043
  const f = async () => {
1043
- const R = ao(a), I = {
1044
+ const R = ro(a), I = {
1044
1045
  unitId: p,
1045
1046
  subUnitId: d,
1046
1047
  rule: R
1047
1048
  };
1048
- await n.executeCommand(fn.id, I), i.setActiveRule({
1049
+ await n.executeCommand(vn.id, I), i.setActiveRule({
1049
1050
  unitId: p,
1050
1051
  subUnitId: d,
1051
1052
  rule: R
1052
1053
  });
1053
1054
  }, m = () => {
1054
- n.executeCommand(_a.id, {
1055
+ n.executeCommand(Sa.id, {
1055
1056
  unitId: p,
1056
1057
  subUnitId: d
1057
1058
  });
1058
1059
  }, w = ((R) => {
1059
1060
  const I = o.getCurrentUnitForType(Y.UNIVER_SHEET), V = I.getActiveSheet(), C = I.getUnitId(), g = V.getSheetId();
1060
- return R.map((y) => fa(a, C, g, y.ranges) ? { ...y } : { ...y, disable: !0 });
1061
+ return R.map((y) => ga(a, C, g, y.ranges) ? { ...y } : { ...y, disable: !0 });
1061
1062
  })(l), S = w == null ? void 0 : w.some((R) => R.disable);
1062
- return /* @__PURE__ */ h.jsxs("div", { className: ct.dataValidationList, children: [
1063
+ return /* @__PURE__ */ h.jsxs("div", { className: ut.dataValidationList, children: [
1063
1064
  w == null ? void 0 : w.map((R) => {
1064
1065
  var I;
1065
1066
  return /* @__PURE__ */ h.jsx(
1066
- Yi,
1067
+ Xi,
1067
1068
  {
1068
1069
  unitId: p,
1069
1070
  subUnitId: d,
@@ -1080,39 +1081,39 @@ function Zi(e) {
1080
1081
  R.uid
1081
1082
  );
1082
1083
  }),
1083
- /* @__PURE__ */ h.jsxs("div", { className: ct.dataValidationListButtons, children: [
1084
- l.length && !S ? /* @__PURE__ */ h.jsx(je, { className: ct.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1085
- /* @__PURE__ */ h.jsx(je, { className: ct.dataValidationListButton, type: "primary", onClick: f, children: r.t("dataValidation.panel.add") })
1084
+ /* @__PURE__ */ h.jsxs("div", { className: ut.dataValidationListButtons, children: [
1085
+ l.length && !S ? /* @__PURE__ */ h.jsx(Fe, { className: ut.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
1086
+ /* @__PURE__ */ h.jsx(Fe, { className: ut.dataValidationListButton, type: "primary", onClick: f, children: r.t("dataValidation.panel.add") })
1086
1087
  ] })
1087
1088
  ] });
1088
1089
  }
1089
- const qi = () => {
1090
- const e = P(me), t = Ne(e.activeRule$, e.activeRule);
1091
- return t ? /* @__PURE__ */ h.jsx(Bi, {}, t.rule.uid) : /* @__PURE__ */ h.jsx(Gi, {});
1092
- }, Dn = "data-validation.list.dropdown", Eo = "data-validation.date.dropdown", Lt = {
1093
- type: qe.COMMAND,
1090
+ const Ji = () => {
1091
+ const e = L(me), t = Ue(e.activeRule$, e.activeRule);
1092
+ return t ? /* @__PURE__ */ h.jsx($i, {}, t.rule.uid) : /* @__PURE__ */ h.jsx(Zi, {});
1093
+ }, Vn = "data-validation.list.dropdown", Oo = "data-validation.date.dropdown", At = {
1094
+ type: Je.COMMAND,
1094
1095
  id: "data-validation.command.addRuleAndOpen",
1095
1096
  handler(e) {
1096
- const t = e.get(ge), o = qn(t);
1097
+ const t = e.get(ge), o = Qn(t);
1097
1098
  if (!o) return !1;
1098
- const { workbook: n, worksheet: a } = o, i = ao(e), r = e.get(Q), l = n.getUnitId(), s = a.getSheetId(), c = {
1099
+ const { workbook: n, worksheet: a } = o, i = ro(e), r = e.get(Q), l = n.getUnitId(), s = a.getSheetId(), c = {
1099
1100
  rule: i,
1100
1101
  unitId: l,
1101
1102
  subUnitId: s
1102
1103
  };
1103
- return r.syncExecuteCommand(fn.id, c) ? (r.syncExecuteCommand(Ue.id, {
1104
+ return r.syncExecuteCommand(vn.id, c) ? (r.syncExecuteCommand(Be.id, {
1104
1105
  ruleId: i.uid,
1105
1106
  isAdd: !0
1106
1107
  }), !0) : !1;
1107
1108
  }
1108
1109
  };
1109
- var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, er = (e, t, o, n) => {
1110
- for (var a = n > 1 ? void 0 : n ? Qi(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1110
+ var Qi = Object.defineProperty, er = Object.getOwnPropertyDescriptor, tr = (e, t, o, n) => {
1111
+ for (var a = n > 1 ? void 0 : n ? er(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1111
1112
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1112
- return n && a && Ji(t, o, a), a;
1113
- }, $e = (e, t) => (o, n) => t(o, n, e);
1114
- const ut = "SHEET_DATA_VALIDATION_ALERT";
1115
- let st = class extends De {
1113
+ return n && a && Qi(t, o, a), a;
1114
+ }, ke = (e, t) => (o, n) => t(o, n, e);
1115
+ const Ee = "SHEET_DATA_VALIDATION_ALERT";
1116
+ let lt = class extends De {
1116
1117
  constructor(e, t, o, n, a, i) {
1117
1118
  super(), this._hoverManagerService = e, this._cellAlertManagerService = t, this._univerInstanceService = o, this._localeService = n, this._zenZoneService = a, this._dataValidationModel = i, this._init();
1118
1119
  }
@@ -1120,66 +1121,74 @@ let st = class extends De {
1120
1121
  this._initCellAlertPopup(), this._initZenService();
1121
1122
  }
1122
1123
  _initCellAlertPopup() {
1123
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(Sn(100)).subscribe((e) => {
1124
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(In(100)).subscribe((e) => {
1124
1125
  var t;
1125
1126
  if (e) {
1126
- if (!this._univerInstanceService.getCurrentUnitForType(Y.UNIVER_SHEET).getActiveSheet()) return;
1127
+ const o = this._univerInstanceService.getUnit(e.location.unitId, Y.UNIVER_SHEET), n = o.getSheetBySheetId(e.location.subUnitId);
1128
+ if (!n) return;
1127
1129
  const a = this._dataValidationModel.getRuleByLocation(e.location.unitId, e.location.subUnitId, e.location.row, e.location.col);
1128
- if (!a) return;
1129
- if (this._dataValidationModel.validator(a, e.location) === it.INVALID) {
1130
- const r = this._cellAlertManagerService.currentAlert.get(ut), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1131
- if (l && l.row === e.location.row && l.col === e.location.col && l.subUnitId === e.location.subUnitId && l.unitId === e.location.unitId)
1130
+ if (!a) {
1131
+ this._cellAlertManagerService.removeAlert(Ee);
1132
+ return;
1133
+ }
1134
+ if (this._dataValidationModel.validator(a, { ...e.location, workbook: o, worksheet: n }) === rt.INVALID) {
1135
+ const r = this._cellAlertManagerService.currentAlert.get(Ee), l = (t = r == null ? void 0 : r.alert) == null ? void 0 : t.location;
1136
+ if (l && l.row === e.location.row && l.col === e.location.col && l.subUnitId === e.location.subUnitId && l.unitId === e.location.unitId) {
1137
+ this._cellAlertManagerService.removeAlert(Ee);
1132
1138
  return;
1139
+ }
1133
1140
  const s = this._dataValidationModel.getValidator(a.type);
1134
- if (!s)
1141
+ if (!s) {
1142
+ this._cellAlertManagerService.removeAlert(Ee);
1135
1143
  return;
1144
+ }
1136
1145
  this._cellAlertManagerService.showAlert({
1137
- type: Ea.ERROR,
1146
+ type: Oa.ERROR,
1138
1147
  title: this._localeService.t("dataValidation.error.title"),
1139
1148
  message: s == null ? void 0 : s.getRuleFinalError(a, e.location),
1140
1149
  location: e.location,
1141
1150
  width: 200,
1142
1151
  height: 74,
1143
- key: ut
1152
+ key: Ee
1144
1153
  });
1145
1154
  return;
1146
1155
  }
1147
1156
  }
1148
- this._cellAlertManagerService.removeAlert(ut);
1157
+ this._cellAlertManagerService.removeAlert(Ee);
1149
1158
  }));
1150
1159
  }
1151
1160
  _initZenService() {
1152
1161
  this.disposeWithMe(this._zenZoneService.visible$.subscribe((e) => {
1153
- e && this._cellAlertManagerService.removeAlert(ut);
1162
+ e && this._cellAlertManagerService.removeAlert(Ee);
1154
1163
  }));
1155
1164
  }
1156
1165
  };
1157
- st = er([
1158
- $e(0, b(Ma)),
1159
- $e(1, b(ba)),
1160
- $e(2, ge),
1161
- $e(3, b(J)),
1162
- $e(4, po),
1163
- $e(5, b(oe))
1164
- ], st);
1165
- var tr = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, or = (e, t, o, n) => {
1166
- for (var a = n > 1 ? void 0 : n ? nr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1166
+ lt = tr([
1167
+ ke(0, b(ba)),
1168
+ ke(1, b(Ea)),
1169
+ ke(2, ge),
1170
+ ke(3, b(J)),
1171
+ ke(4, fo),
1172
+ ke(5, b(oe))
1173
+ ], lt);
1174
+ var nr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, ar = (e, t, o, n) => {
1175
+ for (var a = n > 1 ? void 0 : n ? or(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1167
1176
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1168
- return n && a && tr(t, o, a), a;
1169
- }, Nt = (e, t) => (o, n) => t(o, n, e);
1170
- let Xe = class extends De {
1177
+ return n && a && nr(t, o, a), a;
1178
+ }, Bt = (e, t) => (o, n) => t(o, n, e);
1179
+ let ze = class extends De {
1171
1180
  constructor(e, t, o) {
1172
1181
  super(), this._autoFillService = e, this._sheetDataValidationModel = t, this._injector = o, this._initAutoFill();
1173
1182
  }
1174
1183
  // eslint-disable-next-line max-lines-per-function
1175
1184
  _initAutoFill() {
1176
1185
  const e = () => ({ redos: [], undos: [] }), t = (n, a) => {
1177
- const { source: i, target: r, unitId: l, subUnitId: s } = n, c = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = on([i, r]), [p, d] = u.ranges, { mapFunc: f } = u, m = {
1186
+ const { source: i, target: r, unitId: l, subUnitId: s } = n, c = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = rn([i, r]), [p, d] = u.ranges, { mapFunc: f } = u, m = {
1178
1187
  row: p.startRow,
1179
1188
  col: p.startColumn
1180
1189
  }, _ = Pa(p, d), w = new _t(), S = /* @__PURE__ */ new Set();
1181
1190
  _.forEach((g) => {
1182
- const v = g.repeatStartCell, y = g.relativeRange, L = {
1191
+ const v = g.repeatStartCell, y = g.relativeRange, P = {
1183
1192
  startRow: m.row,
1184
1193
  startColumn: m.col,
1185
1194
  endColumn: m.col,
@@ -1190,7 +1199,7 @@ let Xe = class extends De {
1190
1199
  endColumn: v.col,
1191
1200
  endRow: v.row
1192
1201
  };
1193
- Jo.foreach(y, (T, E) => {
1202
+ Qo.foreach(y, (T, E) => {
1194
1203
  const A = St.getPositionRange(
1195
1204
  {
1196
1205
  startRow: T,
@@ -1198,7 +1207,7 @@ let Xe = class extends De {
1198
1207
  endColumn: E,
1199
1208
  endRow: T
1200
1209
  },
1201
- L
1210
+ P
1202
1211
  ), { row: x, col: j } = f(A.startRow, A.startColumn), F = this._sheetDataValidationModel.getRuleIdByLocation(l, s, x, j) || "", H = St.getPositionRange(
1203
1212
  {
1204
1213
  startRow: T,
@@ -1211,44 +1220,44 @@ let Xe = class extends De {
1211
1220
  w.setValue(X, k, F), S.add(F);
1212
1221
  });
1213
1222
  });
1214
- const R = Array.from(S).map((g) => ({ id: g, ranges: qt(w, (v) => v === g) }));
1223
+ const R = Array.from(S).map((g) => ({ id: g, ranges: Qt(w, (v) => v === g) }));
1215
1224
  c.addRangeRules(R);
1216
- const I = c.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: V, undoMutations: C } = nn(l, s, I, this._injector, "patched", a === et.ONLY_FORMAT);
1225
+ const I = c.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: V, undoMutations: C } = an(l, s, I, this._injector, "patched", a === tt.ONLY_FORMAT);
1217
1226
  return {
1218
1227
  undos: C,
1219
1228
  redos: V
1220
1229
  };
1221
1230
  }, o = {
1222
- id: io,
1231
+ id: so,
1223
1232
  onBeforeFillData: (n) => {
1224
1233
  const { source: a, unitId: i, subUnitId: r } = n;
1225
1234
  for (const l of a.rows)
1226
1235
  for (const s of a.cols) {
1227
1236
  const c = this._sheetDataValidationModel.getRuleByLocation(i, r, l, s);
1228
- if (c && c.type === Z.CHECKBOX) {
1229
- this._autoFillService.setDisableApplyType(et.SERIES, !0);
1237
+ if (c && c.type === z.CHECKBOX) {
1238
+ this._autoFillService.setDisableApplyType(tt.SERIES, !0);
1230
1239
  return;
1231
1240
  }
1232
1241
  }
1233
1242
  },
1234
- onFillData: (n, a, i) => i === et.COPY || i === et.ONLY_FORMAT || i === et.SERIES ? t(n, i) : e(),
1243
+ onFillData: (n, a, i) => i === tt.COPY || i === tt.ONLY_FORMAT || i === tt.SERIES ? t(n, i) : e(),
1235
1244
  onAfterFillData: () => {
1236
1245
  }
1237
1246
  };
1238
1247
  this.disposeWithMe(this._autoFillService.addHook(o));
1239
1248
  }
1240
1249
  };
1241
- Xe = or([
1242
- Nt(0, Oa),
1243
- Nt(1, b(oe)),
1244
- Nt(2, b(Fe))
1245
- ], Xe);
1246
- var ar = Object.defineProperty, ir = Object.getOwnPropertyDescriptor, rr = (e, t, o, n) => {
1247
- for (var a = n > 1 ? void 0 : n ? ir(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1250
+ ze = ar([
1251
+ Bt(0, La),
1252
+ Bt(1, b(oe)),
1253
+ Bt(2, b(Ne))
1254
+ ], ze);
1255
+ var ir = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, sr = (e, t, o, n) => {
1256
+ for (var a = n > 1 ? void 0 : n ? rr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1248
1257
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1249
- return n && a && ar(t, o, a), a;
1250
- }, Ut = (e, t) => (o, n) => t(o, n, e);
1251
- let ze = class extends De {
1258
+ return n && a && ir(t, o, a), a;
1259
+ }, $t = (e, t) => (o, n) => t(o, n, e);
1260
+ let Ke = class extends De {
1252
1261
  constructor(t, o, n) {
1253
1262
  super();
1254
1263
  M(this, "_copyInfo");
@@ -1256,10 +1265,10 @@ let ze = class extends De {
1256
1265
  }
1257
1266
  _initCopyPaste() {
1258
1267
  this._sheetClipboardService.addClipboardHook({
1259
- id: io,
1268
+ id: so,
1260
1269
  onBeforeCopy: (t, o, n) => this._collect(t, o, n),
1261
1270
  onPasteCells: (t, o, n, a) => {
1262
- const { copyType: i = On.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1271
+ const { copyType: i = Ln.COPY, pasteType: r } = a, { range: l } = t || {}, { range: s, unitId: c, subUnitId: u } = o;
1263
1272
  return this._generateMutations(s, { copyType: i, pasteType: r, copyRange: l, unitId: c, subUnitId: u });
1264
1273
  }
1265
1274
  });
@@ -1271,7 +1280,7 @@ let ze = class extends De {
1271
1280
  subUnitId: o,
1272
1281
  matrix: a
1273
1282
  };
1274
- const i = this._injector.invoke((s) => La(n, s, t, o));
1283
+ const i = this._injector.invoke((s) => Ta(n, s, t, o));
1275
1284
  if (!i)
1276
1285
  return;
1277
1286
  const { rows: r, cols: l } = i;
@@ -1286,22 +1295,22 @@ let ze = class extends De {
1286
1295
  _generateMutations(t, o) {
1287
1296
  if (!this._copyInfo)
1288
1297
  return { redos: [], undos: [] };
1289
- if (o.copyType === On.CUT)
1298
+ if (o.copyType === Ln.CUT)
1290
1299
  return this._copyInfo = null, { redos: [], undos: [] };
1291
1300
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !o.copyRange)
1292
1301
  return { redos: [], undos: [] };
1293
1302
  if ([
1294
- lt.SPECIAL_PASTE_COL_WIDTH,
1295
- lt.SPECIAL_PASTE_VALUE,
1296
- lt.SPECIAL_PASTE_FORMAT,
1297
- lt.SPECIAL_PASTE_FORMULA
1303
+ dt.SPECIAL_PASTE_COL_WIDTH,
1304
+ dt.SPECIAL_PASTE_VALUE,
1305
+ dt.SPECIAL_PASTE_FORMAT,
1306
+ dt.SPECIAL_PASTE_FORMULA
1298
1307
  ].includes(
1299
1308
  o.pasteType
1300
1309
  ))
1301
1310
  return { redos: [], undos: [] };
1302
1311
  const { unitId: n, subUnitId: a } = this._copyInfo;
1303
1312
  if (o.unitId !== n || a !== o.subUnitId) {
1304
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = on([o.copyRange, t]), p = Pn(s, c, !0), d = /* @__PURE__ */ new Map();
1313
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(o.unitId, o.subUnitId).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = rn([o.copyRange, t]), p = Pn(s, c, !0), d = /* @__PURE__ */ new Map();
1305
1314
  p.forEach(({ startRange: w }) => {
1306
1315
  var S;
1307
1316
  (S = this._copyInfo) == null || S.matrix.forValue((R, I, V) => {
@@ -1315,13 +1324,13 @@ let ze = class extends De {
1315
1324
  w
1316
1325
  ), g = `${a}-${V}`, v = this._sheetDataValidationModel.getRuleById(n, a, V);
1317
1326
  !this._sheetDataValidationModel.getRuleById(o.unitId, o.subUnitId, g) && v && d.set(g, { ...v, uid: g });
1318
- const { row: y, col: L } = u(C.startRow, C.startColumn);
1319
- l.add(g), r.setValue(y, L, g);
1327
+ const { row: y, col: P } = u(C.startRow, C.startColumn);
1328
+ l.add(g), r.setValue(y, P, g);
1320
1329
  });
1321
1330
  });
1322
- const f = Array.from(l).map((w) => ({ id: w, ranges: qt(r, (S) => S === w) }));
1331
+ const f = Array.from(l).map((w) => ({ id: w, ranges: Qt(r, (S) => S === w) }));
1323
1332
  i.addRangeRules(f);
1324
- const { redoMutations: m, undoMutations: _ } = nn(
1333
+ const { redoMutations: m, undoMutations: _ } = an(
1325
1334
  o.unitId,
1326
1335
  o.subUnitId,
1327
1336
  i.diffWithAddition(this._sheetDataValidationModel.getRules(o.unitId, o.subUnitId), d.values()),
@@ -1334,7 +1343,7 @@ let ze = class extends De {
1334
1343
  undos: _
1335
1344
  };
1336
1345
  } else {
1337
- const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, a).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = on([o.copyRange, t]);
1346
+ const i = this._sheetDataValidationModel.getRuleObjectMatrix(n, a).clone(), r = new _t(), l = /* @__PURE__ */ new Set(), { ranges: [s, c], mapFunc: u } = rn([o.copyRange, t]);
1338
1347
  Pn(s, c, !0).forEach(({ startRange: _ }) => {
1339
1348
  var w;
1340
1349
  (w = this._copyInfo) == null || w.matrix.forValue((S, R, I) => {
@@ -1350,9 +1359,9 @@ let ze = class extends De {
1350
1359
  r.setValue(C, g, I), l.add(I);
1351
1360
  });
1352
1361
  });
1353
- const d = Array.from(l).map((_) => ({ id: _, ranges: qt(r, (w) => w === _) }));
1362
+ const d = Array.from(l).map((_) => ({ id: _, ranges: Qt(r, (w) => w === _) }));
1354
1363
  i.addRangeRules(d);
1355
- const { redoMutations: f, undoMutations: m } = nn(
1364
+ const { redoMutations: f, undoMutations: m } = an(
1356
1365
  n,
1357
1366
  a,
1358
1367
  i.diff(this._sheetDataValidationModel.getRules(n, a)),
@@ -1367,99 +1376,99 @@ let ze = class extends De {
1367
1376
  }
1368
1377
  }
1369
1378
  };
1370
- ze = rr([
1371
- Ut(0, Ta),
1372
- Ut(1, b(oe)),
1373
- Ut(2, b(Fe))
1374
- ], ze);
1375
- var sr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, dr = (e, t, o, n) => {
1376
- for (var a = n > 1 ? void 0 : n ? lr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1379
+ Ke = sr([
1380
+ $t(0, Aa),
1381
+ $t(1, b(oe)),
1382
+ $t(2, b(Ne))
1383
+ ], Ke);
1384
+ var lr = Object.defineProperty, dr = Object.getOwnPropertyDescriptor, cr = (e, t, o, n) => {
1385
+ for (var a = n > 1 ? void 0 : n ? dr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1377
1386
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1378
- return n && a && sr(t, o, a), a;
1379
- }, Bt = (e, t) => (o, n) => t(o, n, e);
1380
- let Ke = class extends De {
1387
+ return n && a && lr(t, o, a), a;
1388
+ }, kt = (e, t) => (o, n) => t(o, n, e);
1389
+ let Ge = class extends De {
1381
1390
  constructor(e, t, o) {
1382
1391
  super(), this._localeService = e, this._commandService = t, this._sheetPermissionInterceptorBaseController = o, this._commandExecutedListener();
1383
1392
  }
1384
1393
  _commandExecutedListener() {
1385
1394
  this.disposeWithMe(
1386
1395
  this._commandService.beforeCommandExecuted((e) => {
1387
- e.id === fn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1396
+ e.id === vn.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1388
1397
  workbookTypes: [Ct],
1389
1398
  rangeTypes: [It],
1390
- worksheetTypes: [wt, tn]
1391
- }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), e.id === no.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1399
+ worksheetTypes: [wt, on]
1400
+ }) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr"))), e.id === ao.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1392
1401
  workbookTypes: [Ct],
1393
1402
  rangeTypes: [It],
1394
- worksheetTypes: [wt, tn]
1403
+ worksheetTypes: [wt, on]
1395
1404
  }, e.params.ranges) || this._sheetPermissionInterceptorBaseController.haveNotPermissionHandle(this._localeService.t("permission.dialog.setStyleErr")));
1396
1405
  })
1397
1406
  );
1398
1407
  }
1399
1408
  };
1400
- Ke = dr([
1401
- Bt(0, b(J)),
1402
- Bt(1, Q),
1403
- Bt(2, b(co))
1404
- ], Ke);
1405
- const Oo = "data-validation-single", Po = "sheet.menu.data-validation";
1406
- function cr(e) {
1409
+ Ge = cr([
1410
+ kt(0, b(J)),
1411
+ kt(1, Q),
1412
+ kt(2, b(ho))
1413
+ ], Ge);
1414
+ const Lo = "data-validation-single", Po = "sheet.menu.data-validation";
1415
+ function ur(e) {
1407
1416
  return {
1408
1417
  id: Po,
1409
- type: vn.SUBITEMS,
1410
- icon: Oo,
1418
+ type: Sn.SUBITEMS,
1419
+ icon: Lo,
1411
1420
  tooltip: "dataValidation.title",
1412
- hidden$: Fa(e, Y.UNIVER_SHEET),
1413
- disabled$: Aa(e, { workbookTypes: [Ct], worksheetTypes: [tn, wt], rangeTypes: [It] })
1421
+ hidden$: Na(e, Y.UNIVER_SHEET),
1422
+ disabled$: xa(e, { workbookTypes: [Ct], worksheetTypes: [on, wt], rangeTypes: [It] })
1414
1423
  };
1415
1424
  }
1416
- function ur(e) {
1425
+ function hr(e) {
1417
1426
  return {
1418
- id: Ue.id,
1427
+ id: Be.id,
1419
1428
  title: "dataValidation.panel.title",
1420
- type: vn.BUTTON
1429
+ type: Sn.BUTTON
1421
1430
  };
1422
1431
  }
1423
- function hr(e) {
1432
+ function pr(e) {
1424
1433
  return {
1425
- id: Lt.id,
1434
+ id: At.id,
1426
1435
  title: "dataValidation.panel.add",
1427
- type: vn.BUTTON
1436
+ type: Sn.BUTTON
1428
1437
  };
1429
1438
  }
1430
- const pr = {
1431
- [Na.FORMULAS_INSERT]: {
1439
+ const mr = {
1440
+ [Ua.FORMULAS_INSERT]: {
1432
1441
  [Po]: {
1433
1442
  order: 9,
1434
- menuItemFactory: cr,
1435
- [Ue.id]: {
1443
+ menuItemFactory: ur,
1444
+ [Be.id]: {
1436
1445
  order: 0,
1437
- menuItemFactory: ur
1446
+ menuItemFactory: hr
1438
1447
  },
1439
- [Lt.id]: {
1448
+ [At.id]: {
1440
1449
  order: 1,
1441
- menuItemFactory: hr
1450
+ menuItemFactory: pr
1442
1451
  }
1443
1452
  }
1444
1453
  }
1445
1454
  };
1446
- var mr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Lo = (e, t, o, n) => {
1447
- for (var a = n > 1 ? void 0 : n ? fr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1455
+ var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, To = (e, t, o, n) => {
1456
+ for (var a = n > 1 ? void 0 : n ? gr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1448
1457
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1449
- return n && a && mr(t, o, a), a;
1450
- }, K = (e, t) => (o, n) => t(o, n, e);
1451
- const To = {
1458
+ return n && a && fr(t, o, a), a;
1459
+ }, G = (e, t) => (o, n) => t(o, n, e);
1460
+ const Ao = {
1452
1461
  tr: {
1453
1462
  size: 6,
1454
1463
  color: "#fe4b4b"
1455
1464
  }
1456
1465
  };
1457
- let Ge = class extends un {
1466
+ let Ze = class extends pn {
1458
1467
  constructor(e, t, o, n, a, i, r, l, s, c, u) {
1459
1468
  super(), this._commandService = e, this._menuManagerService = t, this._renderManagerService = o, this._univerInstanceService = n, this._autoHeightController = a, this._dropdownManagerService = i, this._sheetDataValidationModel = r, this._dataValidatorRegistryService = l, this._sheetInterceptorService = s, this._dataValidationCacheService = c, this._editorBridgeService = u, this._initMenu(), this._initDropdown(), this._initViewModelIntercept(), this._initAutoHeight();
1460
1469
  }
1461
1470
  _initMenu() {
1462
- this._menuManagerService.mergeMenu(pr);
1471
+ this._menuManagerService.mergeMenu(mr);
1463
1472
  }
1464
1473
  _initDropdown() {
1465
1474
  this._editorBridgeService && this.disposeWithMe(this._editorBridgeService.visible$.subscribe((e) => {
@@ -1508,11 +1517,11 @@ let Ge = class extends un {
1508
1517
  _initViewModelIntercept() {
1509
1518
  this.disposeWithMe(
1510
1519
  this._sheetInterceptorService.intercept(
1511
- Jn.CELL_CONTENT,
1520
+ eo.CELL_CONTENT,
1512
1521
  {
1513
- effect: Xn.Style,
1522
+ effect: zn.Style,
1514
1523
  // must be after numfmt
1515
- priority: Qn.DATA_VALIDATION,
1524
+ priority: to.DATA_VALIDATION,
1516
1525
  // eslint-disable-next-line max-lines-per-function, complexity
1517
1526
  handler: (e, t, o) => {
1518
1527
  var S, R, I, V, C;
@@ -1522,7 +1531,7 @@ let Ge = class extends un {
1522
1531
  const u = this._sheetDataValidationModel.getRuleById(i, r, c);
1523
1532
  if (!u)
1524
1533
  return o(e);
1525
- const p = (S = this._dataValidationCacheService.getValue(i, r, n, a)) != null ? S : it.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), f = t.rawData;
1534
+ const p = (S = this._dataValidationCacheService.getValue(i, r, n, a)) != null ? S : rt.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), f = t.rawData;
1526
1535
  let m;
1527
1536
  const _ = {
1528
1537
  get value() {
@@ -1539,7 +1548,7 @@ let Ge = class extends un {
1539
1548
  ...e,
1540
1549
  markers: {
1541
1550
  ...e == null ? void 0 : e.markers,
1542
- ...p === it.INVALID ? To : null
1551
+ ...p === rt.INVALID ? Ao : null
1543
1552
  },
1544
1553
  customRender: [
1545
1554
  ...(R = e == null ? void 0 : e.customRender) != null ? R : [],
@@ -1559,8 +1568,8 @@ let Ge = class extends un {
1559
1568
  }, n, a)
1560
1569
  },
1561
1570
  interceptorAutoHeight: () => {
1562
- var L, U, T, E, A, x;
1563
- const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1571
+ var P, U, T, E, A, x;
1572
+ const g = (U = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1564
1573
  if (!g)
1565
1574
  return;
1566
1575
  const v = g.worksheet.getMergedCell(n, a), y = {
@@ -1577,8 +1586,8 @@ let Ge = class extends un {
1577
1586
  return (x = (A = d == null ? void 0 : d.canvasRender) == null ? void 0 : A.calcCellAutoHeight) == null ? void 0 : x.call(A, y);
1578
1587
  },
1579
1588
  interceptorAutoWidth: () => {
1580
- var L, U, T, E, A, x;
1581
- const g = (U = (L = this._renderManagerService.getRenderById(i)) == null ? void 0 : L.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1589
+ var P, U, T, E, A, x;
1590
+ const g = (U = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : U.skeleton;
1582
1591
  if (!g)
1583
1592
  return;
1584
1593
  const v = g.worksheet.getMergedCell(n, a), y = {
@@ -1594,7 +1603,7 @@ let Ge = class extends un {
1594
1603
  };
1595
1604
  return (x = (A = d == null ? void 0 : d.canvasRender) == null ? void 0 : A.calcCellAutoWidth) == null ? void 0 : x.call(A, y);
1596
1605
  },
1597
- coverable: ((C = e == null ? void 0 : e.coverable) != null ? C : !0) && !(u.type === Z.LIST || u.type === Z.LIST_MULTIPLE)
1606
+ coverable: ((C = e == null ? void 0 : e.coverable) != null ? C : !0) && !(u.type === z.LIST || u.type === z.LIST_MULTIPLE)
1598
1607
  });
1599
1608
  }
1600
1609
  }
@@ -1605,45 +1614,47 @@ let Ge = class extends un {
1605
1614
  this._sheetDataValidationModel.ruleChange$.pipe(
1606
1615
  // patched data-validation change don't need to re-calc row height
1607
1616
  // re-calc of row height will be triggered precisely by the origin command
1608
- _n((e) => e.source === "command"),
1609
- fo(16)
1617
+ Cn((e) => e.source === "command"),
1618
+ vo(100)
1610
1619
  ).subscribe((e) => {
1620
+ if (e.length === 0)
1621
+ return;
1611
1622
  const t = [];
1612
1623
  if (e.forEach((o) => {
1613
1624
  var n;
1614
- (n = o.rule) != null && n.ranges && t.push(...o.rule.ranges);
1625
+ (o.rule.type === z.LIST_MULTIPLE || o.rule.type === z.LIST) && (n = o.rule) != null && n.ranges && t.push(...o.rule.ranges);
1615
1626
  }), t.length) {
1616
1627
  const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1617
- zn(o.redos, this._commandService);
1628
+ Kn(o.redos, this._commandService);
1618
1629
  }
1619
1630
  });
1620
1631
  }
1621
1632
  };
1622
- Ge = Lo([
1623
- K(0, Q),
1624
- K(1, Ua),
1625
- K(2, Ve),
1626
- K(3, ge),
1627
- K(4, b(uo)),
1628
- K(5, b(Ie)),
1629
- K(6, b(oe)),
1630
- K(7, b(ye)),
1631
- K(8, b(pn)),
1632
- K(9, b(ro)),
1633
- K(10, Qo(lo))
1634
- ], Ge);
1635
- let Un = class extends un {
1633
+ Ze = To([
1634
+ G(0, Q),
1635
+ G(1, Ba),
1636
+ G(2, Ve),
1637
+ G(3, ge),
1638
+ G(4, b(po)),
1639
+ G(5, b(Ie)),
1640
+ G(6, b(oe)),
1641
+ G(7, b(ye)),
1642
+ G(8, b(fn)),
1643
+ G(9, b(lo)),
1644
+ G(10, ea(uo))
1645
+ ], Ze);
1646
+ let Bn = class extends pn {
1636
1647
  constructor(e, t, o, n, a, i, r) {
1637
1648
  super(), this._commandService = e, this._renderManagerService = t, this._autoHeightController = o, this._dataValidatorRegistryService = n, this._sheetInterceptorService = a, this._sheetDataValidationModel = i, this._dataValidationCacheService = r, this._initViewModelIntercept(), this._initAutoHeight();
1638
1649
  }
1639
1650
  _initViewModelIntercept() {
1640
1651
  this.disposeWithMe(
1641
1652
  this._sheetInterceptorService.intercept(
1642
- Jn.CELL_CONTENT,
1653
+ eo.CELL_CONTENT,
1643
1654
  {
1644
- effect: Xn.Style,
1655
+ effect: zn.Style,
1645
1656
  // must be after numfmt
1646
- priority: Qn.DATA_VALIDATION,
1657
+ priority: to.DATA_VALIDATION,
1647
1658
  // eslint-disable-next-line complexity
1648
1659
  handler: (e, t, o) => {
1649
1660
  var w, S, R, I, V;
@@ -1653,12 +1664,12 @@ let Un = class extends un {
1653
1664
  const u = this._sheetDataValidationModel.getRuleById(i, r, c);
1654
1665
  if (!u)
1655
1666
  return o(e);
1656
- const p = (w = this._dataValidationCacheService.getValue(i, r, n, a)) != null ? w : it.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), f = s.getCellRaw(n, a), m = ie(f), _ = `${m != null ? m : ""}`;
1667
+ const p = (w = this._dataValidationCacheService.getValue(i, r, n, a)) != null ? w : rt.VALID, d = this._dataValidatorRegistryService.getValidatorItem(u.type), f = s.getCellRaw(n, a), m = ie(f), _ = `${m != null ? m : ""}`;
1657
1668
  return o({
1658
1669
  ...e,
1659
1670
  markers: {
1660
1671
  ...e == null ? void 0 : e.markers,
1661
- ...p === it.INVALID ? To : null
1672
+ ...p === rt.INVALID ? Ao : null
1662
1673
  },
1663
1674
  customRender: [
1664
1675
  ...(S = e == null ? void 0 : e.customRender) != null ? S : [],
@@ -1678,8 +1689,8 @@ let Un = class extends un {
1678
1689
  }, n, a)
1679
1690
  },
1680
1691
  interceptorAutoHeight: () => {
1681
- var y, L, U, T, E, A;
1682
- const C = (L = (y = this._renderManagerService.getRenderById(i)) == null ? void 0 : y.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : L.skeleton;
1692
+ var y, P, U, T, E, A;
1693
+ const C = (P = (y = this._renderManagerService.getRenderById(i)) == null ? void 0 : y.with(Rt).getWorksheetSkeleton(r)) == null ? void 0 : P.skeleton;
1683
1694
  if (!C)
1684
1695
  return;
1685
1696
  const g = C.worksheet.getMergedCell(n, a), v = {
@@ -1695,7 +1706,7 @@ let Un = class extends un {
1695
1706
  };
1696
1707
  return (A = (E = d == null ? void 0 : d.canvasRender) == null ? void 0 : E.calcCellAutoHeight) == null ? void 0 : A.call(E, v);
1697
1708
  },
1698
- coverable: ((V = e == null ? void 0 : e.coverable) != null ? V : !0) && !(u.type === Z.LIST || u.type === Z.LIST_MULTIPLE)
1709
+ coverable: ((V = e == null ? void 0 : e.coverable) != null ? V : !0) && !(u.type === z.LIST || u.type === z.LIST_MULTIPLE)
1699
1710
  });
1700
1711
  }
1701
1712
  }
@@ -1704,8 +1715,8 @@ let Un = class extends un {
1704
1715
  }
1705
1716
  _initAutoHeight() {
1706
1717
  this._sheetDataValidationModel.ruleChange$.pipe(
1707
- _n((e) => e.source === "command"),
1708
- fo(16)
1718
+ Cn((e) => e.source === "command"),
1719
+ vo(16)
1709
1720
  ).subscribe((e) => {
1710
1721
  const t = [];
1711
1722
  if (e.forEach((o) => {
@@ -1713,26 +1724,26 @@ let Un = class extends un {
1713
1724
  (n = o.rule) != null && n.ranges && t.push(...o.rule.ranges);
1714
1725
  }), t.length) {
1715
1726
  const o = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1716
- zn(o.redos, this._commandService);
1727
+ Kn(o.redos, this._commandService);
1717
1728
  }
1718
1729
  });
1719
1730
  }
1720
1731
  };
1721
- Un = Lo([
1722
- K(0, Q),
1723
- K(1, Ve),
1724
- K(2, b(uo)),
1725
- K(3, b(ye)),
1726
- K(4, b(pn)),
1727
- K(5, b(oe)),
1728
- K(6, b(ro))
1729
- ], Un);
1730
- var gr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, _r = (e, t, o, n) => {
1731
- for (var a = n > 1 ? void 0 : n ? vr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1732
+ Bn = To([
1733
+ G(0, Q),
1734
+ G(1, Ve),
1735
+ G(2, b(po)),
1736
+ G(3, b(ye)),
1737
+ G(4, b(fn)),
1738
+ G(5, b(oe)),
1739
+ G(6, b(lo))
1740
+ ], Bn);
1741
+ var vr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Sr = (e, t, o, n) => {
1742
+ for (var a = n > 1 ? void 0 : n ? _r(t, o) : t, i = e.length - 1, r; i >= 0; i--)
1732
1743
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
1733
- return n && a && gr(t, o, a), a;
1734
- }, Bn = (e, t) => (o, n) => t(o, n, e);
1735
- let Dt = class extends De {
1744
+ return n && a && vr(t, o, a), a;
1745
+ }, $n = (e, t) => (o, n) => t(o, n, e);
1746
+ let yt = class extends De {
1736
1747
  constructor(e, t, o) {
1737
1748
  super(), this._context = e, this._sheetDataValidationModel = t, this._sheetSkeletonManagerService = o, this._initSkeletonChange();
1738
1749
  }
@@ -1749,28 +1760,28 @@ let Dt = class extends De {
1749
1760
  (i = this._sheetSkeletonManagerService.getWorksheetSkeleton(a)) == null || i.skeleton.makeDirty(!0);
1750
1761
  }), (n = this._context.mainComponent) == null || n.makeForceDirty();
1751
1762
  };
1752
- this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(ea(16)).subscribe(e));
1763
+ this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(ta(16)).subscribe(e));
1753
1764
  }
1754
1765
  };
1755
- Dt = _r([
1756
- Bn(1, b(oe)),
1757
- Bn(2, b(Rt))
1758
- ], Dt);
1759
- const Sr = "univer-data-validation-formula", Cr = "univer-data-validation-formula-and", Ir = "univer-data-validation-formula-list-item", wr = "univer-data-validation-formula-list-item-icon", Rr = "univer-data-validation-formula-list-item-drag", Dr = "univer-data-validation-formula-list-add", Vr = "univer-data-validation-formula-color-select", yr = "univer-data-validation-formula-color-select-panel", Mr = "univer-data-validation-formula-color-item", ne = {
1760
- dataValidationFormula: Sr,
1761
- dataValidationFormulaAnd: Cr,
1762
- dataValidationFormulaListItem: Ir,
1763
- dataValidationFormulaListItemIcon: wr,
1764
- dataValidationFormulaListItemDrag: Rr,
1765
- dataValidationFormulaListAdd: Dr,
1766
- dataValidationFormulaColorSelect: Vr,
1767
- dataValidationFormulaColorSelectPanel: yr,
1768
- dataValidationFormulaColorItem: Mr
1769
- }, br = (e) => {
1770
- const { isTwoFormula: t = !1, value: o, onChange: n, showError: a, validResult: i } = e, r = P(J), l = a ? i == null ? void 0 : i.formula1 : "", s = a ? i == null ? void 0 : i.formula2 : "";
1766
+ yt = Sr([
1767
+ $n(1, b(oe)),
1768
+ $n(2, b(Rt))
1769
+ ], yt);
1770
+ const Cr = "univer-data-validation-formula", Ir = "univer-data-validation-formula-and", wr = "univer-data-validation-formula-list-item", Rr = "univer-data-validation-formula-list-item-icon", Dr = "univer-data-validation-formula-list-item-drag", Vr = "univer-data-validation-formula-list-add", yr = "univer-data-validation-formula-color-select", Mr = "univer-data-validation-formula-color-select-panel", br = "univer-data-validation-formula-color-item", ne = {
1771
+ dataValidationFormula: Cr,
1772
+ dataValidationFormulaAnd: Ir,
1773
+ dataValidationFormulaListItem: wr,
1774
+ dataValidationFormulaListItemIcon: Rr,
1775
+ dataValidationFormulaListItemDrag: Dr,
1776
+ dataValidationFormulaListAdd: Vr,
1777
+ dataValidationFormulaColorSelect: yr,
1778
+ dataValidationFormulaColorSelectPanel: Mr,
1779
+ dataValidationFormulaColorItem: br
1780
+ }, Er = (e) => {
1781
+ const { isTwoFormula: t = !1, value: o, onChange: n, showError: a, validResult: i } = e, r = L(J), l = a ? i == null ? void 0 : i.formula1 : "", s = a ? i == null ? void 0 : i.formula2 : "";
1771
1782
  return t ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1772
- /* @__PURE__ */ h.jsx(G, { error: l, children: /* @__PURE__ */ h.jsx(
1773
- xe,
1783
+ /* @__PURE__ */ h.jsx(Z, { error: l, children: /* @__PURE__ */ h.jsx(
1784
+ je,
1774
1785
  {
1775
1786
  className: ne.dataValidationFormula,
1776
1787
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
@@ -1784,8 +1795,8 @@ const Sr = "univer-data-validation-formula", Cr = "univer-data-validation-formul
1784
1795
  }
1785
1796
  ) }),
1786
1797
  /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaAnd, children: r.t("dataValidation.panel.formulaAnd") }),
1787
- /* @__PURE__ */ h.jsx(G, { error: s, children: /* @__PURE__ */ h.jsx(
1788
- xe,
1798
+ /* @__PURE__ */ h.jsx(Z, { error: s, children: /* @__PURE__ */ h.jsx(
1799
+ je,
1789
1800
  {
1790
1801
  className: ne.dataValidationFormula,
1791
1802
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
@@ -1798,8 +1809,8 @@ const Sr = "univer-data-validation-formula", Cr = "univer-data-validation-formul
1798
1809
  }
1799
1810
  }
1800
1811
  ) })
1801
- ] }) : /* @__PURE__ */ h.jsx(G, { error: l, children: /* @__PURE__ */ h.jsx(
1802
- xe,
1812
+ ] }) : /* @__PURE__ */ h.jsx(Z, { error: l, children: /* @__PURE__ */ h.jsx(
1813
+ je,
1803
1814
  {
1804
1815
  className: ne.dataValidationFormula,
1805
1816
  placeholder: r.t("dataValidation.panel.formulaPlaceholder"),
@@ -1810,11 +1821,11 @@ const Sr = "univer-data-validation-formula", Cr = "univer-data-validation-formul
1810
1821
  }
1811
1822
  ) });
1812
1823
  };
1813
- function Er(e) {
1814
- const { value: t, onChange: o, showError: n, validResult: a } = e, i = P(J), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = W(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1824
+ function Or(e) {
1825
+ const { value: t, onChange: o, showError: n, validResult: a } = e, i = L(J), r = n ? a == null ? void 0 : a.formula1 : "", l = n ? a == null ? void 0 : a.formula2 : "", [s, c] = W(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
1815
1826
  return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
1816
- /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
1817
- bt,
1827
+ /* @__PURE__ */ h.jsx(Z, { children: /* @__PURE__ */ h.jsx(
1828
+ Ot,
1818
1829
  {
1819
1830
  checked: s,
1820
1831
  onChange: (u) => {
@@ -1827,8 +1838,8 @@ function Er(e) {
1827
1838
  children: i.t("dataValidation.checkbox.tips")
1828
1839
  }
1829
1840
  ) }),
1830
- s ? /* @__PURE__ */ h.jsx(G, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ h.jsx(
1831
- xe,
1841
+ s ? /* @__PURE__ */ h.jsx(Z, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ h.jsx(
1842
+ je,
1832
1843
  {
1833
1844
  className: ne.dataValidationFormula,
1834
1845
  placeholder: i.t("dataValidation.panel.valuePlaceholder"),
@@ -1841,8 +1852,8 @@ function Er(e) {
1841
1852
  }
1842
1853
  }
1843
1854
  ) }) : null,
1844
- s ? /* @__PURE__ */ h.jsx(G, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ h.jsx(
1845
- xe,
1855
+ s ? /* @__PURE__ */ h.jsx(Z, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ h.jsx(
1856
+ je,
1846
1857
  {
1847
1858
  className: ne.dataValidationFormula,
1848
1859
  placeholder: i.t("dataValidation.panel.valuePlaceholder"),
@@ -1857,15 +1868,15 @@ function Er(e) {
1857
1868
  ) }) : null
1858
1869
  ] });
1859
1870
  }
1860
- function Or(e) {
1871
+ function Lr(e) {
1861
1872
  var p;
1862
- const { unitId: t, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = We({}), [c, u] = W(!1);
1863
- return gn((d) => {
1873
+ const { unitId: t, subUnitId: o, value: n, onChange: a, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = He({}), [c, u] = W(!1);
1874
+ return _n((d) => {
1864
1875
  var m;
1865
1876
  const f = (m = s.current) == null ? void 0 : m.handleOutClick;
1866
1877
  f && f(d, () => u(!1));
1867
1878
  }), /* @__PURE__ */ h.jsx(
1868
- vo,
1879
+ So,
1869
1880
  {
1870
1881
  initValue: (p = n == null ? void 0 : n.formula1) != null ? p : "",
1871
1882
  unitId: t,
@@ -1885,20 +1896,20 @@ function Or(e) {
1885
1896
  }
1886
1897
  );
1887
1898
  }
1888
- function Ao(e) {
1899
+ function xo(e) {
1889
1900
  var t, o, n = "";
1890
1901
  if (typeof e == "string" || typeof e == "number") n += e;
1891
1902
  else if (typeof e == "object") if (Array.isArray(e)) {
1892
1903
  var a = e.length;
1893
- for (t = 0; t < a; t++) e[t] && (o = Ao(e[t])) && (n && (n += " "), n += o);
1904
+ for (t = 0; t < a; t++) e[t] && (o = xo(e[t])) && (n && (n += " "), n += o);
1894
1905
  } else for (o in e) e[o] && (n && (n += " "), n += o);
1895
1906
  return n;
1896
1907
  }
1897
1908
  function Pr() {
1898
- for (var e, t, o = 0, n = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (t = Ao(e)) && (n && (n += " "), n += t);
1909
+ for (var e, t, o = 0, n = "", a = arguments.length; o < a; o++) (e = arguments[o]) && (t = xo(e)) && (n && (n += " "), n += t);
1899
1910
  return n;
1900
1911
  }
1901
- const Lr = [
1912
+ const Tr = [
1902
1913
  "#FFFFFF",
1903
1914
  "#FEE7E7",
1904
1915
  "#FEF0E6",
@@ -1923,10 +1934,10 @@ const Lr = [
1923
1934
  "#3A60F7",
1924
1935
  "#9E6DE3",
1925
1936
  "#F248A6"
1926
- ], Tr = (e) => {
1937
+ ], Ar = (e) => {
1927
1938
  const { value: t, onChange: o, disabled: n } = e, [a, i] = W(!1);
1928
1939
  return /* @__PURE__ */ h.jsx(
1929
- Qt,
1940
+ tn,
1930
1941
  {
1931
1942
  disabled: n,
1932
1943
  open: a,
@@ -1943,7 +1954,7 @@ const Lr = [
1943
1954
  style: { background: r.value, marginTop: 5 }
1944
1955
  }
1945
1956
  ),
1946
- dropdownRender: () => /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaColorSelectPanel, children: Lr.map(
1957
+ dropdownRender: () => /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaColorSelectPanel, children: Tr.map(
1947
1958
  (r) => /* @__PURE__ */ h.jsx(
1948
1959
  "div",
1949
1960
  {
@@ -1958,12 +1969,12 @@ const Lr = [
1958
1969
  ) })
1959
1970
  }
1960
1971
  );
1961
- }, $n = (e) => {
1972
+ }, kn = (e) => {
1962
1973
  const { item: t, commonProps: o, style: n } = e, { onItemChange: a, onItemDelete: i } = o;
1963
1974
  return /* @__PURE__ */ h.jsxs("div", { className: ne.dataValidationFormulaListItem, style: n, children: [
1964
- t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: Pr(ne.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ h.jsx(Do, {}) }),
1975
+ t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: Pr(ne.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ h.jsx(yo, {}) }),
1965
1976
  /* @__PURE__ */ h.jsx(
1966
- Tr,
1977
+ Ar,
1967
1978
  {
1968
1979
  value: t.color,
1969
1980
  onChange: (r) => {
@@ -1972,7 +1983,7 @@ const Lr = [
1972
1983
  }
1973
1984
  ),
1974
1985
  /* @__PURE__ */ h.jsx(
1975
- xe,
1986
+ je,
1976
1987
  {
1977
1988
  disabled: t.isRef,
1978
1989
  value: t.label,
@@ -1981,12 +1992,12 @@ const Lr = [
1981
1992
  }
1982
1993
  }
1983
1994
  ),
1984
- t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ h.jsx(Cn, { onClick: () => i(t.id) }) })
1995
+ t.isRef ? null : /* @__PURE__ */ h.jsx("div", { className: ne.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ h.jsx(wn, { onClick: () => i(t.id) }) })
1985
1996
  ] });
1986
1997
  };
1987
- function Ar(e) {
1998
+ function xr(e) {
1988
1999
  const { value: t, onChange: o = () => {
1989
- }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = We(null), [p, d] = W(() => Pe(s) ? "1" : "0"), [f, m] = W(p === "1" ? s : "="), [_, w] = W(p === "1" ? s : "="), S = P(J), R = P(ye), I = P(Ot), V = P(Sa), [C, g] = W(() => c.split(",")), v = R.getValidatorItem(Z.LIST), [y, L] = W([]), [U, T] = W(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Te(() => I.ruleChange$.pipe(Sn(16)), []), x = Ne(A), j = mo(o);
2000
+ }, unitId: n, subUnitId: a, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: c = "" } = t || {}, u = He(null), [p, d] = W(() => Pe(s) ? "1" : "0"), [f, m] = W(p === "1" ? s : "="), [_, w] = W(p === "1" ? s : "="), S = L(J), R = L(ye), I = L(Pt), V = L(Ca), [C, g] = W(() => c.split(",")), v = R.getValidatorItem(z.LIST), [y, P] = W([]), [U, T] = W(""), E = r ? i == null ? void 0 : i.formula1 : "", A = Ae(() => I.ruleChange$.pipe(In(16)), []), x = Ue(A), j = go(o);
1990
2001
  Ce(() => {
1991
2002
  (async () => {
1992
2003
  await new Promise((B) => {
@@ -1995,19 +2006,19 @@ function Ar(e) {
1995
2006
  const D = I.getRuleById(n, a, l), N = D == null ? void 0 : D.formula1;
1996
2007
  if (Pe(N) && v && D) {
1997
2008
  const B = await v.getListAsync(D, n, a);
1998
- L(B);
2009
+ P(B);
1999
2010
  }
2000
2011
  })();
2001
2012
  }, [I, x, v, l, a, n]), Ce(() => {
2002
2013
  Pe(s) && s !== _ && (m(s), w(_));
2003
2014
  }, [_, s]);
2004
2015
  const [F, H] = W(() => {
2005
- const D = p !== "1" ? eo(s) : [], N = c.split(",");
2016
+ const D = p !== "1" ? no(s) : [], N = c.split(",");
2006
2017
  return D.map((B, $) => ({
2007
2018
  label: B,
2008
- color: N[$] || Le,
2019
+ color: N[$] || Te,
2009
2020
  isRef: !1,
2010
- id: Jt.generateRandomId(4)
2021
+ id: en.generateRandomId(4)
2011
2022
  }));
2012
2023
  }), X = (D, N, B) => {
2013
2024
  const $ = F.find((_e) => _e.id === D);
@@ -2015,12 +2026,12 @@ function Ar(e) {
2015
2026
  }, k = (D) => {
2016
2027
  const N = F.findIndex((B) => B.id === D);
2017
2028
  N !== -1 && (F.splice(N, 1), H([...F]));
2018
- }, z = c.split(","), q = Te(() => y.map((D, N) => ({
2029
+ }, K = c.split(","), q = Ae(() => y.map((D, N) => ({
2019
2030
  label: D,
2020
- color: z[N] || Le,
2031
+ color: K[N] || Te,
2021
2032
  id: `${N}`,
2022
2033
  isRef: !0
2023
- })), [z, y]), ee = (D, N, B) => {
2034
+ })), [K, y]), ee = (D, N, B) => {
2024
2035
  const $ = [...C];
2025
2036
  $[+D] = B, g($), j({
2026
2037
  formula1: s,
@@ -2031,9 +2042,9 @@ function Ar(e) {
2031
2042
  ...F,
2032
2043
  {
2033
2044
  label: "",
2034
- color: Le,
2045
+ color: Te,
2035
2046
  isRef: !1,
2036
- id: Jt.generateRandomId(4)
2047
+ id: en.generateRandomId(4)
2037
2048
  }
2038
2049
  ]);
2039
2050
  };
@@ -2052,11 +2063,11 @@ function Ar(e) {
2052
2063
  }));
2053
2064
  });
2054
2065
  }), j({
2055
- formula1: to(N.map((B) => B.label)),
2056
- formula2: N.map((B) => B.color === Le ? "" : B.color).join(",")
2066
+ formula1: oo(N.map((B) => B.label)),
2067
+ formula2: N.map((B) => B.color === Te ? "" : B.color).join(",")
2057
2068
  });
2058
2069
  }, [F, j, p, _, C]);
2059
- const re = Te(
2070
+ const re = Ae(
2060
2071
  () => async (D) => {
2061
2072
  if (!Pe(D)) {
2062
2073
  j == null || j({
@@ -2074,14 +2085,14 @@ function Ar(e) {
2074
2085
  }), m("="), T(S.t("dataValidation.validFail.formulaError")));
2075
2086
  },
2076
2087
  [c, j]
2077
- ), ae = We({}), [se, O] = W(!1);
2078
- return gn((D) => {
2088
+ ), ae = He({}), [se, O] = W(!1);
2089
+ return _n((D) => {
2079
2090
  var B;
2080
2091
  const N = (B = ae.current) == null ? void 0 : B.handleOutClick;
2081
2092
  N && N(D, () => O(!1));
2082
2093
  }), /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
2083
- /* @__PURE__ */ h.jsx(G, { label: S.t("dataValidation.list.options"), children: /* @__PURE__ */ h.jsxs(
2084
- hn,
2094
+ /* @__PURE__ */ h.jsx(Z, { label: S.t("dataValidation.list.options"), children: /* @__PURE__ */ h.jsxs(
2095
+ mn,
2085
2096
  {
2086
2097
  value: p,
2087
2098
  onChange: (D) => {
@@ -2091,14 +2102,14 @@ function Ar(e) {
2091
2102
  });
2092
2103
  },
2093
2104
  children: [
2094
- /* @__PURE__ */ h.jsx(Ae, { value: "0", children: S.t("dataValidation.list.customOptions") }),
2095
- /* @__PURE__ */ h.jsx(Ae, { value: "1", children: S.t("dataValidation.list.refOptions") })
2105
+ /* @__PURE__ */ h.jsx(xe, { value: "0", children: S.t("dataValidation.list.customOptions") }),
2106
+ /* @__PURE__ */ h.jsx(xe, { value: "1", children: S.t("dataValidation.list.refOptions") })
2096
2107
  ]
2097
2108
  }
2098
2109
  ) }),
2099
2110
  p === "1" ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
2100
2111
  /* @__PURE__ */ h.jsx(
2101
- vo,
2112
+ So,
2102
2113
  {
2103
2114
  initValue: f,
2104
2115
  unitId: n,
@@ -2114,10 +2125,10 @@ function Ar(e) {
2114
2125
  isSupportAcrossSheet: !0
2115
2126
  }
2116
2127
  ),
2117
- /* @__PURE__ */ h.jsx("div", { ref: u, style: { marginTop: "12px" }, children: q.map((D) => /* @__PURE__ */ h.jsx($n, { item: D, commonProps: { onItemChange: ee }, style: { marginBottom: 12 } }, D.id)) })
2118
- ] }) : /* @__PURE__ */ h.jsx(G, { error: E, children: /* @__PURE__ */ h.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
2128
+ /* @__PURE__ */ h.jsx("div", { ref: u, style: { marginTop: "12px" }, children: q.map((D) => /* @__PURE__ */ h.jsx(kn, { item: D, commonProps: { onItemChange: ee }, style: { marginBottom: 12 } }, D.id)) })
2129
+ ] }) : /* @__PURE__ */ h.jsx(Z, { error: E, children: /* @__PURE__ */ h.jsxs("div", { ref: u, style: { marginTop: "-12px" }, children: [
2119
2130
  /* @__PURE__ */ h.jsx(
2120
- ra,
2131
+ sa,
2121
2132
  {
2122
2133
  list: F,
2123
2134
  onListChange: H,
@@ -2125,7 +2136,7 @@ function Ar(e) {
2125
2136
  margin: [0, 12],
2126
2137
  draggableHandle: ".draggableHandle",
2127
2138
  itemRender: (D) => /* @__PURE__ */ h.jsx(
2128
- $n,
2139
+ kn,
2129
2140
  {
2130
2141
  item: D,
2131
2142
  commonProps: {
@@ -2139,46 +2150,46 @@ function Ar(e) {
2139
2150
  }
2140
2151
  ),
2141
2152
  /* @__PURE__ */ h.jsxs("a", { className: ne.dataValidationFormulaListAdd, onClick: te, children: [
2142
- /* @__PURE__ */ h.jsx(Io, {}),
2153
+ /* @__PURE__ */ h.jsx(Ro, {}),
2143
2154
  S.t("dataValidation.list.add")
2144
2155
  ] })
2145
2156
  ] }) })
2146
2157
  ] });
2147
2158
  }
2148
- const xo = "data-validation.custom-formula-input", Tt = "data-validation.formula-input", Vn = "data-validation.list-formula-input", jo = "data-validation.checkbox-formula-input", xr = [
2159
+ const jo = "data-validation.custom-formula-input", xt = "data-validation.formula-input", yn = "data-validation.list-formula-input", Fo = "data-validation.checkbox-formula-input", jr = [
2149
2160
  [
2150
- xo,
2151
- Or
2161
+ jo,
2162
+ Lr
2152
2163
  ],
2153
2164
  [
2154
- Tt,
2155
- br
2165
+ xt,
2166
+ Er
2156
2167
  ],
2157
2168
  [
2158
- Vn,
2159
- Ar
2169
+ yn,
2170
+ xr
2160
2171
  ],
2161
2172
  [
2162
- jo,
2163
- Er
2173
+ Fo,
2174
+ Or
2164
2175
  ]
2165
- ], jr = "LIST_RENDER_MODE_OPTION_INPUT";
2166
- function Vt(e) {
2176
+ ], Fr = "LIST_RENDER_MODE_OPTION_INPUT";
2177
+ function Mt(e) {
2167
2178
  var a;
2168
- const { value: t, onChange: o } = e, n = P(J);
2169
- return /* @__PURE__ */ h.jsx(G, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ h.jsxs(hn, { value: `${(a = t.renderMode) != null ? a : de.CUSTOM}`, onChange: (i) => o({ ...t, renderMode: +i }), children: [
2170
- /* @__PURE__ */ h.jsx(Ae, { value: `${de.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2171
- /* @__PURE__ */ h.jsx(Ae, { value: `${de.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
2172
- /* @__PURE__ */ h.jsx(Ae, { value: `${de.TEXT}`, children: n.t("dataValidation.renderMode.text") })
2179
+ const { value: t, onChange: o } = e, n = L(J);
2180
+ return /* @__PURE__ */ h.jsx(Z, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ h.jsxs(mn, { value: `${(a = t.renderMode) != null ? a : de.CUSTOM}`, onChange: (i) => o({ ...t, renderMode: +i }), children: [
2181
+ /* @__PURE__ */ h.jsx(xe, { value: `${de.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2182
+ /* @__PURE__ */ h.jsx(xe, { value: `${de.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
2183
+ /* @__PURE__ */ h.jsx(xe, { value: `${de.TEXT}`, children: n.t("dataValidation.renderMode.text") })
2173
2184
  ] }) });
2174
2185
  }
2175
- Vt.componentKey = jr;
2176
- const Fr = "DATE_SHOW_TIME_OPTION";
2177
- function yt(e) {
2186
+ Mt.componentKey = Fr;
2187
+ const Nr = "DATE_SHOW_TIME_OPTION";
2188
+ function bt(e) {
2178
2189
  var a;
2179
- const { value: t, onChange: o } = e, n = P(J);
2180
- return /* @__PURE__ */ h.jsx(G, { children: /* @__PURE__ */ h.jsx(
2181
- bt,
2190
+ const { value: t, onChange: o } = e, n = L(J);
2191
+ return /* @__PURE__ */ h.jsx(Z, { children: /* @__PURE__ */ h.jsx(
2192
+ Ot,
2182
2193
  {
2183
2194
  checked: (a = t.bizInfo) == null ? void 0 : a.showTime,
2184
2195
  onChange: (i) => {
@@ -2194,14 +2205,14 @@ function yt(e) {
2194
2205
  }
2195
2206
  ) });
2196
2207
  }
2197
- yt.componentKey = Fr;
2198
- var Nr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, Br = (e, t, o, n) => {
2199
- for (var a = n > 1 ? void 0 : n ? Ur(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2208
+ bt.componentKey = Nr;
2209
+ var Ur = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, $r = (e, t, o, n) => {
2210
+ for (var a = n > 1 ? void 0 : n ? Br(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2200
2211
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2201
- return n && a && Nr(t, o, a), a;
2202
- }, ot = (e, t) => (o, n) => t(o, n, e);
2212
+ return n && a && Ur(t, o, a), a;
2213
+ }, at = (e, t) => (o, n) => t(o, n, e);
2203
2214
  const ht = 6;
2204
- let rn = class {
2215
+ let ln = class {
2205
2216
  constructor(e, t, o, n, a) {
2206
2217
  this._commandService = e, this._formulaService = t, this._themeService = o, this._renderManagerService = n, this._dataValidationModel = a;
2207
2218
  }
@@ -2221,10 +2232,10 @@ let rn = class {
2221
2232
  break;
2222
2233
  }
2223
2234
  switch (n) {
2224
- case He.LEFT:
2235
+ case Ye.LEFT:
2225
2236
  l = ht;
2226
2237
  break;
2227
- case He.RIGHT:
2238
+ case Ye.RIGHT:
2228
2239
  l = ht + (a - r);
2229
2240
  break;
2230
2241
  default:
@@ -2250,9 +2261,9 @@ let rn = class {
2250
2261
  }
2251
2262
  async _parseFormula(e, t, o) {
2252
2263
  var c, u, p, d, f, m, _, w, S;
2253
- const { formula1: n = wa, formula2: a = Ra } = e, i = await this._formulaService.getRuleFormulaResult(t, o, e.uid), r = xt((p = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : p[0]), l = xt((m = (f = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : f[0]) == null ? void 0 : m[0]), s = En(String(r)) && En(String(l));
2264
+ const { formula1: n = Ra, formula2: a = Da } = e, i = await this._formulaService.getRuleFormulaResult(t, o, e.uid), r = Ft((p = (u = (c = i == null ? void 0 : i[0]) == null ? void 0 : c.result) == null ? void 0 : u[0]) == null ? void 0 : p[0]), l = Ft((m = (f = (d = i == null ? void 0 : i[1]) == null ? void 0 : d.result) == null ? void 0 : f[0]) == null ? void 0 : m[0]), s = On(String(r)) && On(String(l));
2254
2265
  return {
2255
- formula1: Pe(n) ? xt((S = (w = (_ = i == null ? void 0 : i[0]) == null ? void 0 : _.result) == null ? void 0 : w[0]) == null ? void 0 : S[0]) : n,
2266
+ formula1: Pe(n) ? Ft((S = (w = (_ = i == null ? void 0 : i[0]) == null ? void 0 : _.result) == null ? void 0 : w[0]) == null ? void 0 : S[0]) : n,
2256
2267
  formula2: Pe(a) ? l : a,
2257
2268
  isFormulaValid: s
2258
2269
  };
@@ -2268,7 +2279,7 @@ let rn = class {
2268
2279
  const f = this._themeService.getCurrentTheme();
2269
2280
  if (!((E = d.skipDefaultFontRender) != null && E.call(d, p, u, { unitId: a, subUnitId: i, row: l, column: s })))
2270
2281
  return;
2271
- const m = d.parseFormulaSync(p, a, i), { formula1: _ } = m, w = this._calc(c, o), { a: S, d: R } = e.getTransform(), I = Mn(w.left, S), V = Mn(w.top, R), C = sa.create().composeMatrix({
2282
+ const m = d.parseFormulaSync(p, a, i), { formula1: _ } = m, w = this._calc(c, o), { a: S, d: R } = e.getTransform(), I = bn(w.left, S), V = bn(w.top, R), C = la.create().composeMatrix({
2272
2283
  left: I,
2273
2284
  top: V,
2274
2285
  scaleX: 1,
@@ -2282,11 +2293,11 @@ let rn = class {
2282
2293
  e.save(), e.beginPath(), e.rect(c.startX, c.startY, g, v), e.clip();
2283
2294
  const y = C.getMatrix();
2284
2295
  e.transform(y[0], y[1], y[2], y[3], y[4], y[5]);
2285
- const L = ((A = o == null ? void 0 : o.fs) != null ? A : 10) * 1.6, U = String(u) === String(_), T = f.hyacinth500;
2286
- la.drawWith(e, {
2296
+ const P = ((A = o == null ? void 0 : o.fs) != null ? A : 10) * 1.6, U = String(u) === String(_), T = f.hyacinth500;
2297
+ da.drawWith(e, {
2287
2298
  checked: U,
2288
- width: L,
2289
- height: L,
2299
+ width: P,
2300
+ height: P,
2290
2301
  fill: (j = (x = o == null ? void 0 : o.cl) == null ? void 0 : x.rgb) != null ? j : T
2291
2302
  }), e.restore();
2292
2303
  }
@@ -2312,99 +2323,99 @@ let rn = class {
2312
2323
  endRow: o.actualRow
2313
2324
  },
2314
2325
  value: {
2315
- v: String(s) === Ia(String(p)) ? d : p,
2326
+ v: String(s) === wa(String(p)) ? d : p,
2316
2327
  p: null
2317
2328
  }
2318
2329
  };
2319
2330
  this._commandService.executeCommand(
2320
- mn.id,
2331
+ gn.id,
2321
2332
  f
2322
2333
  );
2323
2334
  }
2324
2335
  onPointerEnter(e, t) {
2325
2336
  var o, n;
2326
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.POINTER);
2337
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.POINTER);
2327
2338
  }
2328
2339
  onPointerLeave(e, t) {
2329
2340
  var o, n;
2330
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2341
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.DEFAULT);
2331
2342
  }
2332
2343
  };
2333
- rn = Br([
2334
- ot(0, Q),
2335
- ot(1, b(Ca)),
2336
- ot(2, b(ta)),
2337
- ot(3, b(Ve)),
2338
- ot(4, b(oe))
2339
- ], rn);
2340
- var $r = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, Wr = (e, t, o, n) => {
2341
- for (var a = n > 1 ? void 0 : n ? kr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2344
+ ln = $r([
2345
+ at(0, Q),
2346
+ at(1, b(Ia)),
2347
+ at(2, b(na)),
2348
+ at(3, b(Ve)),
2349
+ at(4, b(oe))
2350
+ ], ln);
2351
+ var kr = Object.defineProperty, Wr = Object.getOwnPropertyDescriptor, Hr = (e, t, o, n) => {
2352
+ for (var a = n > 1 ? void 0 : n ? Wr(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2342
2353
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2343
- return n && a && $r(t, o, a), a;
2344
- }, Hr = (e, t) => (o, n) => t(o, n, e);
2354
+ return n && a && kr(t, o, a), a;
2355
+ }, Yr = (e, t) => (o, n) => t(o, n, e);
2345
2356
  let fe = class {
2346
2357
  constructor(e) {
2347
2358
  M(this, "canvasRender", null);
2348
2359
  M(this, "dropdown");
2349
2360
  M(this, "optionsInput");
2350
- M(this, "formulaInput", Vn);
2361
+ M(this, "formulaInput", yn);
2351
2362
  this.injector = e;
2352
2363
  }
2353
2364
  };
2354
- fe = Wr([
2355
- Hr(0, b(Fe))
2365
+ fe = Hr([
2366
+ Yr(0, b(Ne))
2356
2367
  ], fe);
2357
- class Yr extends fe {
2368
+ class Xr extends fe {
2358
2369
  constructor() {
2359
2370
  super(...arguments);
2360
- M(this, "id", Z.CHECKBOX);
2361
- M(this, "canvasRender", this.injector.createInstance(rn));
2362
- M(this, "formulaInput", jo);
2371
+ M(this, "id", z.CHECKBOX);
2372
+ M(this, "canvasRender", this.injector.createInstance(ln));
2373
+ M(this, "formulaInput", Fo);
2363
2374
  }
2364
2375
  }
2365
- class Xr extends fe {
2376
+ class zr extends fe {
2366
2377
  constructor() {
2367
2378
  super(...arguments);
2368
- M(this, "id", Z.CUSTOM);
2369
- M(this, "formulaInput", xo);
2379
+ M(this, "id", z.CUSTOM);
2380
+ M(this, "formulaInput", jo);
2370
2381
  }
2371
2382
  }
2372
- const zr = "data-validation.formula-input";
2373
- class Kr extends fe {
2383
+ const Kr = "data-validation.formula-input";
2384
+ class Gr extends fe {
2374
2385
  constructor() {
2375
2386
  super(...arguments);
2376
- M(this, "id", Z.DATE);
2377
- M(this, "formulaInput", zr);
2378
- M(this, "optionsInput", yt.componentKey);
2379
- M(this, "dropdown", Eo);
2387
+ M(this, "id", z.DATE);
2388
+ M(this, "formulaInput", Kr);
2389
+ M(this, "optionsInput", bt.componentKey);
2390
+ M(this, "dropdown", Oo);
2380
2391
  }
2381
2392
  }
2382
- class Gr extends fe {
2393
+ class Zr extends fe {
2383
2394
  constructor() {
2384
2395
  super(...arguments);
2385
- M(this, "id", Z.DECIMAL);
2386
- M(this, "formulaInput", Tt);
2396
+ M(this, "id", z.DECIMAL);
2397
+ M(this, "formulaInput", xt);
2387
2398
  }
2388
2399
  }
2389
- const Fo = 4, Zr = 0, $t = 4, No = 4, sn = 6, Mt = 6, Oe = 14;
2390
- function qr(e, t) {
2391
- const o = da.getTextSize(e, t), n = o.width + Fo * 2, { ba: a, bd: i } = o, r = a + i;
2400
+ const No = 4, qr = 0, Wt = 4, Uo = 4, dn = 6, Et = 6, Le = 14;
2401
+ function Jr(e, t) {
2402
+ const o = ca.getTextSize(e, t), n = o.width + No * 2, { ba: a, bd: i } = o, r = a + i;
2392
2403
  return {
2393
2404
  width: n,
2394
- height: r + Zr * 2,
2405
+ height: r + qr * 2,
2395
2406
  ba: a
2396
2407
  };
2397
2408
  }
2398
- function kt(e, t, o, n) {
2399
- const a = Oe + sn * 2, i = o - a, r = n - Mt * 2, l = e.map((d) => ({
2400
- layout: qr(d, t),
2409
+ function Ht(e, t, o, n) {
2410
+ const a = Le + dn * 2, i = o - a, r = n - Et * 2, l = e.map((d) => ({
2411
+ layout: Jr(d, t),
2401
2412
  text: d
2402
2413
  }));
2403
2414
  let s;
2404
2415
  const c = [];
2405
2416
  l.forEach((d) => {
2406
2417
  const { layout: f } = d, { width: m, height: _ } = f;
2407
- !s || s.width + m + $t > i ? (s = {
2418
+ !s || s.width + m + Wt > i ? (s = {
2408
2419
  width: m,
2409
2420
  height: _,
2410
2421
  items: [{
@@ -2413,40 +2424,40 @@ function kt(e, t, o, n) {
2413
2424
  }]
2414
2425
  }, c.push(s)) : (s.items.push({
2415
2426
  ...d,
2416
- left: s.width + $t
2417
- }), s.width = s.width + m + $t);
2427
+ left: s.width + Wt
2428
+ }), s.width = s.width + m + Wt);
2418
2429
  });
2419
2430
  let u = 0, p = 0;
2420
2431
  return c.forEach((d, f) => {
2421
- p = Math.max(p, d.width), f === c.length - 1 ? u += d.height : u += d.height + No;
2432
+ p = Math.max(p, d.width), f === c.length - 1 ? u += d.height : u += d.height + Uo;
2422
2433
  }), {
2423
2434
  lines: c,
2424
2435
  totalHeight: u,
2425
2436
  contentWidth: i,
2426
2437
  contentHeight: r,
2427
- cellAutoHeight: u + Mt * 2,
2438
+ cellAutoHeight: u + Et * 2,
2428
2439
  calcAutoWidth: p + a
2429
2440
  };
2430
2441
  }
2431
- const Jr = 8;
2432
- class Qr extends ca {
2442
+ const Qr = 8;
2443
+ class es extends ua {
2433
2444
  static drawWith(t, o) {
2434
2445
  const { fontString: n, info: a, fill: i, color: r } = o, { layout: l, text: s } = a;
2435
- t.save(), Gn.drawWith(t, {
2446
+ t.save(), qn.drawWith(t, {
2436
2447
  width: l.width,
2437
2448
  height: l.height,
2438
- radius: Jr,
2439
- fill: i || Le
2440
- }), t.translateWithPrecision(Fo, l.ba), t.font = n, t.fillStyle = r, t.fillText(s, 0, 0), t.restore();
2449
+ radius: Qr,
2450
+ fill: i || Te
2451
+ }), t.translateWithPrecision(No, l.ba), t.font = n, t.fillStyle = r, t.fillText(s, 0, 0), t.restore();
2441
2452
  }
2442
2453
  }
2443
- var es = Object.defineProperty, ts = Object.getOwnPropertyDescriptor, ns = (e, t, o, n) => {
2444
- for (var a = n > 1 ? void 0 : n ? ts(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2454
+ var ts = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, os = (e, t, o, n) => {
2455
+ for (var a = n > 1 ? void 0 : n ? ns(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2445
2456
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2446
- return n && a && es(t, o, a), a;
2447
- }, Wt = (e, t) => (o, n) => t(o, n, e);
2448
- const os = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2449
- let ln = class {
2457
+ return n && a && ts(t, o, a), a;
2458
+ }, Yt = (e, t) => (o, n) => t(o, n, e);
2459
+ const as = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2460
+ let cn = class {
2450
2461
  constructor(e, t, o) {
2451
2462
  M(this, "zIndex");
2452
2463
  M(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
@@ -2460,17 +2471,17 @@ let ln = class {
2460
2471
  return `${e}.${t}`;
2461
2472
  }
2462
2473
  _drawDownIcon(e, t, o, n, a) {
2463
- const i = o - Oe + 4;
2474
+ const i = o - Le + 4;
2464
2475
  let r = 4;
2465
2476
  switch (a) {
2466
2477
  case ue.MIDDLE:
2467
- r = (n - Oe) / 2 + 4;
2478
+ r = (n - Le) / 2 + 4;
2468
2479
  break;
2469
2480
  case ue.BOTTOM:
2470
- r = n - Oe + 4;
2481
+ r = n - Le + 4;
2471
2482
  break;
2472
2483
  }
2473
- e.save(), e.translateWithPrecision(t.startX + i, t.startY + r), e.fillStyle = "#565656", e.fill(os), e.restore();
2484
+ e.save(), e.translateWithPrecision(t.startX + i, t.startY + r), e.fillStyle = "#565656", e.fill(as), e.restore();
2474
2485
  }
2475
2486
  // eslint-disable-next-line max-lines-per-function
2476
2487
  drawWith(e, t, o, n) {
@@ -2486,8 +2497,8 @@ let ln = class {
2486
2497
  endX: u.endX - f,
2487
2498
  startY: u.startY + m,
2488
2499
  endY: u.endY - _
2489
- }, C = V.endX - V.startX, g = V.endY - V.startY, { cl: v } = l || {}, y = (X = typeof v == "object" ? v == null ? void 0 : v.rgb : v) != null ? X : "#000", L = At(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : ue.MIDDLE, A = (k = ie(s)) != null ? k : "", x = I.parseCellValue(A), j = I.getListWithColorMap(R), F = kt(x, L, C, g);
2490
- this._drawDownIcon(e, V, C, g, E), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, C - Oe, g), e.clip(), e.translateWithPrecision(sn, Mt);
2500
+ }, C = V.endX - V.startX, g = V.endY - V.startY, { cl: v } = l || {}, y = (X = typeof v == "object" ? v == null ? void 0 : v.rgb : v) != null ? X : "#000", P = jt(l != null ? l : void 0), { vt: U, ht: T } = l || {}, E = U != null ? U : ue.MIDDLE, A = (k = ie(s)) != null ? k : "", x = I.parseCellValue(A), j = I.getListWithColorMap(R), F = Ht(x, P, C, g);
2501
+ this._drawDownIcon(e, V, C, g, E), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, C - Le, g), e.clip(), e.translateWithPrecision(dn, Et);
2491
2502
  let H = 0;
2492
2503
  switch (E) {
2493
2504
  case ue.MIDDLE:
@@ -2497,21 +2508,21 @@ let ln = class {
2497
2508
  H = F.contentHeight - F.totalHeight;
2498
2509
  break;
2499
2510
  }
2500
- e.translateWithPrecision(0, H), F.lines.forEach((z, q) => {
2511
+ e.translateWithPrecision(0, H), F.lines.forEach((K, q) => {
2501
2512
  e.save();
2502
- const { width: ee, height: te, items: re } = z;
2513
+ const { width: ee, height: te, items: re } = K;
2503
2514
  let ae = 0;
2504
2515
  switch (T) {
2505
- case He.RIGHT:
2516
+ case Ye.RIGHT:
2506
2517
  ae = F.contentWidth - ee;
2507
2518
  break;
2508
- case He.CENTER:
2519
+ case Ye.CENTER:
2509
2520
  ae = (F.contentWidth - ee) / 2;
2510
2521
  break;
2511
2522
  }
2512
- e.translate(ae, q * (te + No)), re.forEach((se) => {
2513
- e.save(), e.translateWithPrecision(se.left, 0), Qr.drawWith(e, {
2514
- ...L,
2523
+ e.translate(ae, q * (te + Uo)), re.forEach((se) => {
2524
+ e.save(), e.translateWithPrecision(se.left, 0), es.drawWith(e, {
2525
+ ...P,
2515
2526
  info: se,
2516
2527
  color: y,
2517
2528
  fill: j[se.text]
@@ -2520,8 +2531,8 @@ let ln = class {
2520
2531
  }), e.restore(), w.set(S, {
2521
2532
  left: V.startX,
2522
2533
  top: V.startY,
2523
- width: F.contentWidth + sn + Oe,
2524
- height: F.contentHeight + Mt * 2
2534
+ width: F.contentWidth + dn + Le,
2535
+ height: F.contentHeight + Et * 2
2525
2536
  });
2526
2537
  }
2527
2538
  calcCellAutoHeight(e) {
@@ -2537,8 +2548,8 @@ let ln = class {
2537
2548
  const m = this._dataValidationModel.getValidator(f.type);
2538
2549
  if (!m)
2539
2550
  return;
2540
- const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = At(o != null ? o : void 0);
2541
- return kt(R, I, _, w).cellAutoHeight;
2551
+ const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = jt(o != null ? o : void 0);
2552
+ return Ht(R, I, _, w).cellAutoHeight;
2542
2553
  }
2543
2554
  calcCellAutoWidth(e) {
2544
2555
  var C;
@@ -2553,12 +2564,12 @@ let ln = class {
2553
2564
  const m = this._dataValidationModel.getValidator(f.type);
2554
2565
  if (!m)
2555
2566
  return;
2556
- const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = At(o != null ? o : void 0);
2557
- return kt(R, I, _, w).calcAutoWidth;
2567
+ const _ = d.endX - d.startX, w = d.endY - d.startY, S = (C = ie(n)) != null ? C : "", R = m.parseCellValue(S), I = jt(o != null ? o : void 0);
2568
+ return Ht(R, I, _, w).calcAutoWidth;
2558
2569
  }
2559
2570
  isHit(e, t) {
2560
2571
  const { primaryWithCoord: o } = t, n = o.isMergedMainCell ? o.mergeInfo : o, { endX: a } = n, { x: i } = e;
2561
- return i >= a - Oe && i <= a;
2572
+ return i >= a - Le && i <= a;
2562
2573
  }
2563
2574
  onPointerDown(e, t) {
2564
2575
  if (t.button === 2)
@@ -2569,57 +2580,57 @@ let ln = class {
2569
2580
  row: a,
2570
2581
  column: i
2571
2582
  };
2572
- this._commandService.executeCommand(Pt.id, r);
2583
+ this._commandService.executeCommand(Tt.id, r);
2573
2584
  }
2574
2585
  onPointerEnter(e, t) {
2575
2586
  var o, n;
2576
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.POINTER);
2587
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.POINTER);
2577
2588
  }
2578
2589
  onPointerLeave(e, t) {
2579
2590
  var o, n;
2580
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2591
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.DEFAULT);
2581
2592
  }
2582
2593
  };
2583
- ln = ns([
2584
- Wt(0, Q),
2585
- Wt(1, b(Ve)),
2586
- Wt(2, b(oe))
2587
- ], ln);
2588
- class as extends fe {
2594
+ cn = os([
2595
+ Yt(0, Q),
2596
+ Yt(1, b(Ve)),
2597
+ Yt(2, b(oe))
2598
+ ], cn);
2599
+ class is extends fe {
2589
2600
  constructor() {
2590
2601
  super(...arguments);
2591
- M(this, "id", Z.LIST_MULTIPLE);
2592
- M(this, "canvasRender", this.injector.createInstance(ln));
2593
- M(this, "dropdown", Dn);
2602
+ M(this, "id", z.LIST_MULTIPLE);
2603
+ M(this, "canvasRender", this.injector.createInstance(cn));
2604
+ M(this, "dropdown", Vn);
2594
2605
  }
2595
2606
  }
2596
- var is = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, ss = (e, t, o, n) => {
2597
- for (var a = n > 1 ? void 0 : n ? rs(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2607
+ var rs = Object.defineProperty, ss = Object.getOwnPropertyDescriptor, ls = (e, t, o, n) => {
2608
+ for (var a = n > 1 ? void 0 : n ? ss(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2598
2609
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2599
- return n && a && is(t, o, a), a;
2610
+ return n && a && rs(t, o, a), a;
2600
2611
  }, pt = (e, t) => (o, n) => t(o, n, e);
2601
- const Ee = 4, mt = 4, he = 14, pe = 6, ke = 4, Ht = 8, ls = "#565656", kn = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2602
- function ds(e, t) {
2612
+ const Oe = 4, mt = 4, he = 14, pe = 6, We = 4, Xt = 8, ds = "#565656", Wn = new Path2D("M3.32201 4.84556C3.14417 5.05148 2.85583 5.05148 2.67799 4.84556L0.134292 1.90016C-0.152586 1.56798 0.0505937 1 0.456301 1L5.5437 1C5.94941 1 6.15259 1.56798 5.86571 1.90016L3.32201 4.84556Z");
2613
+ function cs(e, t) {
2603
2614
  const o = e.length;
2604
2615
  return {
2605
2616
  id: "d",
2606
2617
  body: {
2607
- dataStream: `${e}${oa}`,
2618
+ dataStream: `${e}${aa}`,
2608
2619
  textRuns: [
2609
2620
  {
2610
2621
  ts: {
2611
2622
  fs: 11,
2612
2623
  ff: void 0,
2613
- it: Je.FALSE,
2614
- bl: Je.FALSE,
2624
+ it: Qe.FALSE,
2625
+ bl: Qe.FALSE,
2615
2626
  ul: {
2616
- s: Je.FALSE
2627
+ s: Qe.FALSE
2617
2628
  },
2618
2629
  st: {
2619
- s: Je.FALSE
2630
+ s: Qe.FALSE
2620
2631
  },
2621
2632
  ol: {
2622
- s: Je.FALSE
2633
+ s: Qe.FALSE
2623
2634
  },
2624
2635
  cl: void 0,
2625
2636
  ...t,
@@ -2639,10 +2650,10 @@ function ds(e, t) {
2639
2650
  }
2640
2651
  };
2641
2652
  }
2642
- function Uo(e, t, o) {
2643
- const n = ds(e, o), a = new na(n), i = new ua(a);
2653
+ function Bo(e, t, o) {
2654
+ const n = cs(e, o), a = new oa(n), i = new ha(a);
2644
2655
  return {
2645
- documentSkeleton: ha.create(i, t),
2656
+ documentSkeleton: pa.create(i, t),
2646
2657
  docModel: a,
2647
2658
  docViewModel: i
2648
2659
  };
@@ -2652,9 +2663,9 @@ function ft(e, t, o) {
2652
2663
  documentSkeleton: n,
2653
2664
  docModel: a,
2654
2665
  docViewModel: i
2655
- } = Uo(e, t, o);
2666
+ } = Bo(e, t, o);
2656
2667
  return {
2657
- documents: new pa(`DOCUMENTS_${Jt.generateRandomId()}`, n, {
2668
+ documents: new ma(`DOCUMENTS_${en.generateRandomId()}`, n, {
2658
2669
  pageMarginLeft: 0,
2659
2670
  pageMarginTop: 0
2660
2671
  }),
@@ -2663,9 +2674,9 @@ function ft(e, t, o) {
2663
2674
  docViewModel: i
2664
2675
  };
2665
2676
  }
2666
- function Wn(e, t, o, n, a, i, r = !0) {
2677
+ function Hn(e, t, o, n, a, i, r = !0) {
2667
2678
  let l = 0;
2668
- const s = r ? ke : 0;
2679
+ const s = r ? We : 0;
2669
2680
  switch (a) {
2670
2681
  case ue.BOTTOM:
2671
2682
  l = t - n - s;
@@ -2677,13 +2688,13 @@ function Wn(e, t, o, n, a, i, r = !0) {
2677
2688
  l = s;
2678
2689
  break;
2679
2690
  }
2680
- l = Math.max(ke, l);
2691
+ l = Math.max(We, l);
2681
2692
  let c = 0;
2682
2693
  switch (i) {
2683
- case He.CENTER:
2694
+ case Ye.CENTER:
2684
2695
  c = (e - o) / 2;
2685
2696
  break;
2686
- case He.RIGHT:
2697
+ case Ye.RIGHT:
2687
2698
  c = e - o;
2688
2699
  break;
2689
2700
  }
@@ -2692,7 +2703,7 @@ function Wn(e, t, o, n, a, i, r = !0) {
2692
2703
  paddingTop: l
2693
2704
  };
2694
2705
  }
2695
- let dn = class {
2706
+ let un = class {
2696
2707
  constructor(e, t, o, n) {
2697
2708
  M(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2698
2709
  M(this, "zIndex");
@@ -2713,13 +2724,13 @@ let dn = class {
2713
2724
  u = (n - mt) / 2;
2714
2725
  break;
2715
2726
  case ue.BOTTOM:
2716
- u = n - s - a - ke + (a / 2 - mt / 2);
2727
+ u = n - s - a - We + (a / 2 - mt / 2);
2717
2728
  break;
2718
2729
  default:
2719
- u = l + ke + (a / 2 - mt / 2);
2730
+ u = l + We + (a / 2 - mt / 2);
2720
2731
  break;
2721
2732
  }
2722
- e.save(), e.translateWithPrecision(t.startX + c, t.startY + u), e.fillStyle = "#565656", e.fill(kn), e.restore();
2733
+ e.save(), e.translateWithPrecision(t.startX + c, t.startY + u), e.fillStyle = "#565656", e.fill(Wn), e.restore();
2723
2734
  }
2724
2735
  // eslint-disable-next-line max-lines-per-function, complexity
2725
2736
  drawWith(e, t, o) {
@@ -2730,20 +2741,20 @@ let dn = class {
2730
2741
  if (!p)
2731
2742
  return;
2732
2743
  const d = l == null ? void 0 : l.fontRenderExtension, { leftOffset: f = 0, rightOffset: m = 0, topOffset: _ = 0, downOffset: w = 0 } = d || {};
2733
- if (!u || !p || !p || p.id.indexOf(Z.LIST) !== 0 || !p.skipDefaultFontRender(u))
2744
+ if (!u || !p || !p || p.id.indexOf(z.LIST) !== 0 || !p.skipDefaultFontRender(u))
2734
2745
  return;
2735
2746
  const S = {
2736
2747
  startX: c.startX + f,
2737
2748
  endX: c.endX - m,
2738
2749
  startY: c.startY + _,
2739
2750
  endY: c.endY - w
2740
- }, R = S.endX - S.startX, I = S.endY - S.startY, V = this._ensureMap(s), C = this._generateKey(a, i), g = p.getListWithColor(u), v = ie(l), y = `${v != null ? v : ""}`, L = g.find((x) => x.label === y);
2751
+ }, R = S.endX - S.startX, I = S.endY - S.startY, V = this._ensureMap(s), C = this._generateKey(a, i), g = p.getListWithColor(u), v = ie(l), y = `${v != null ? v : ""}`, P = g.find((x) => x.label === y);
2741
2752
  let { tb: U, vt: T, ht: E, pd: A } = r || {};
2742
2753
  if (U = U != null ? U : Se.WRAP, T = T != null ? T : ue.BOTTOM, E = E != null ? E : le.ht, A = A != null ? A : le.pd, u.renderMode === de.ARROW) {
2743
- const { l: x = le.pd.l, t: j = le.pd.t, r: F = le.pd.r, b: H = le.pd.b } = A, X = R - x - F - he - 4, { documentSkeleton: k, documents: z, docModel: q } = ft(y, this._localeService, r);
2754
+ const { l: x = le.pd.l, t: j = le.pd.t, r: F = le.pd.r, b: H = le.pd.b } = A, X = R - x - F - he - 4, { documentSkeleton: k, documents: K, docModel: q } = ft(y, this._localeService, r);
2744
2755
  U === Se.WRAP && q.updateDocumentDataPageSize(Math.max(X, 1)), k.calculate(), k.getActualSize();
2745
- const ee = Qe(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Wn(X, I - j - H, re, te, T, E, !0);
2746
- this._drawDownIcon(e, S, R, I, te, T, A), e.save(), e.translateWithPrecision(S.startX + x, S.startY + j), e.beginPath(), e.rect(0, 0, R - x - F, I - j - H), e.clip(), e.translateWithPrecision(0, ae), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, X, te), e.clip(), z.render(e), e.translateWithPrecision(se, 0), e.restore(), e.restore(), V.set(C, {
2756
+ const ee = et(k), { height: te, width: re } = ee, { paddingTop: ae, paddingLeft: se } = Hn(X, I - j - H, re, te, T, E, !0);
2757
+ this._drawDownIcon(e, S, R, I, te, T, A), e.save(), e.translateWithPrecision(S.startX + x, S.startY + j), e.beginPath(), e.rect(0, 0, R - x - F, I - j - H), e.clip(), e.translateWithPrecision(0, ae), e.save(), e.translateWithPrecision(Oe, 0), e.beginPath(), e.rect(0, 0, X, te), e.clip(), K.render(e), e.translateWithPrecision(se, 0), e.restore(), e.restore(), V.set(C, {
2747
2758
  left: S.endX + x + o.rowHeaderWidth - he,
2748
2759
  top: S.startY + j + o.columnHeaderHeight,
2749
2760
  width: he,
@@ -2751,17 +2762,17 @@ let dn = class {
2751
2762
  });
2752
2763
  } else {
2753
2764
  e.save(), e.translateWithPrecision(S.startX, S.startY), e.beginPath(), e.rect(0, 0, R, I), e.clip();
2754
- const x = R - pe * 2 - Ee - he - 4, { documentSkeleton: j, documents: F, docModel: H } = ft(y, this._localeService, r);
2765
+ const x = R - pe * 2 - Oe - he - 4, { documentSkeleton: j, documents: F, docModel: H } = ft(y, this._localeService, r);
2755
2766
  U === Se.WRAP && H.updateDocumentDataPageSize(Math.max(x, 1)), j.calculate();
2756
- const X = Qe(j), { height: k, width: z } = X, { paddingTop: q, paddingLeft: ee } = Wn(x, I, z, k, T, E);
2767
+ const X = et(j), { height: k, width: K } = X, { paddingTop: q, paddingLeft: ee } = Hn(x, I, K, k, T, E);
2757
2768
  e.translateWithPrecision(pe, q);
2758
2769
  const te = Math.max(R - pe * 2, 1), re = k;
2759
- Gn.drawWith(e, {
2770
+ qn.drawWith(e, {
2760
2771
  width: te,
2761
2772
  height: re,
2762
- fill: (L == null ? void 0 : L.color) || Le,
2763
- radius: Ht
2764
- }), e.save(), e.translateWithPrecision(Ee, 0), e.beginPath(), e.rect(0, 0, x, k), e.clip(), e.translateWithPrecision(ee, 0), F.render(e), e.restore(), e.translateWithPrecision(x + Ee + 4, (k - mt) / 2), e.fillStyle = ls, e.fill(kn), e.restore(), V.set(C, {
2773
+ fill: (P == null ? void 0 : P.color) || Te,
2774
+ radius: Xt
2775
+ }), e.save(), e.translateWithPrecision(Oe, 0), e.beginPath(), e.rect(0, 0, x, k), e.clip(), e.translateWithPrecision(ee, 0), F.render(e), e.restore(), e.translateWithPrecision(x + Oe + 4, (k - mt) / 2), e.fillStyle = ds, e.fill(Wn), e.restore(), V.set(C, {
2765
2776
  left: S.startX + pe + o.rowHeaderWidth,
2766
2777
  top: S.startY + q + o.columnHeaderHeight,
2767
2778
  width: te,
@@ -2784,15 +2795,15 @@ let dn = class {
2784
2795
  if (S = S != null ? S : Se.WRAP, d.renderMode === de.ARROW) {
2785
2796
  const C = m - he, { documentSkeleton: g, docModel: v } = ft(w, this._localeService, o);
2786
2797
  S === Se.WRAP && v.updateDocumentDataPageSize(Math.max(C, 1)), g.calculate(), g.getActualSize();
2787
- const y = Qe(g), { height: L } = y;
2788
- return L + I + V + ke * 2;
2798
+ const y = et(g), { height: P } = y;
2799
+ return P + I + V + We * 2;
2789
2800
  } else {
2790
- const C = m - pe * 2 - Ee - he, { documentSkeleton: g, docModel: v } = Uo(w, this._localeService, o);
2801
+ const C = m - pe * 2 - Oe - he, { documentSkeleton: g, docModel: v } = Bo(w, this._localeService, o);
2791
2802
  S === Se.WRAP && v.updateDocumentDataPageSize(Math.max(C, 1)), g.calculate();
2792
- const y = Qe(g), {
2793
- height: L
2803
+ const y = et(g), {
2804
+ height: P
2794
2805
  } = y;
2795
- return L + ke * 2;
2806
+ return P + We * 2;
2796
2807
  }
2797
2808
  }
2798
2809
  calcCellAutoWidth(e) {
@@ -2814,14 +2825,14 @@ let dn = class {
2814
2825
  C = he + pe * 2 + V + I;
2815
2826
  break;
2816
2827
  case de.CUSTOM:
2817
- C = he + pe * 2 + Ee * 2 + V + I + Ht / 2 + 1;
2828
+ C = he + pe * 2 + Oe * 2 + V + I + Xt / 2 + 1;
2818
2829
  break;
2819
2830
  // default is CUSTOM
2820
2831
  default:
2821
- C = he + pe * 2 + Ee * 2 + V + I + Ht / 2 + 1;
2832
+ C = he + pe * 2 + Oe * 2 + V + I + Xt / 2 + 1;
2822
2833
  }
2823
2834
  const g = m - C, { documentSkeleton: v, docModel: y } = ft(w, this._localeService, o);
2824
- return S === Se.WRAP && y.updateDocumentDataPageSize(Math.max(g, 1)), v.calculate(), v.getActualSize(), Qe(v).width + C;
2835
+ return S === Se.WRAP && y.updateDocumentDataPageSize(Math.max(g, 1)), v.calculate(), v.getActualSize(), et(v).width + C;
2825
2836
  }
2826
2837
  isHit(e, t) {
2827
2838
  const { subUnitId: o, row: n, col: a } = t, r = this._ensureMap(o).get(this._generateKey(n, a)), l = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, n, a);
@@ -2839,66 +2850,66 @@ let dn = class {
2839
2850
  row: a,
2840
2851
  column: i
2841
2852
  };
2842
- this._commandService.executeCommand(Pt.id, r);
2853
+ this._commandService.executeCommand(Tt.id, r);
2843
2854
  }
2844
2855
  onPointerEnter(e, t) {
2845
2856
  var o, n;
2846
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.POINTER);
2857
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.POINTER);
2847
2858
  }
2848
2859
  onPointerLeave(e, t) {
2849
2860
  var o, n;
2850
- (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Ye.DEFAULT);
2861
+ (n = (o = this._renderManagerService.getCurrentTypeOfRenderer(Y.UNIVER_SHEET)) == null ? void 0 : o.mainComponent) == null || n.setCursor(Xe.DEFAULT);
2851
2862
  }
2852
2863
  };
2853
- dn = ss([
2864
+ un = ls([
2854
2865
  pt(0, b(J)),
2855
2866
  pt(1, Q),
2856
2867
  pt(2, b(Ve)),
2857
2868
  pt(3, b(oe))
2858
- ], dn);
2859
- class cs extends fe {
2869
+ ], un);
2870
+ class us extends fe {
2860
2871
  constructor() {
2861
2872
  super(...arguments);
2862
- M(this, "id", Z.LIST);
2863
- M(this, "canvasRender", this.injector.createInstance(dn));
2864
- M(this, "dropdown", Dn);
2865
- M(this, "optionsInput", Vt.componentKey);
2866
- M(this, "formulaInput", Vn);
2873
+ M(this, "id", z.LIST);
2874
+ M(this, "canvasRender", this.injector.createInstance(un));
2875
+ M(this, "dropdown", Vn);
2876
+ M(this, "optionsInput", Mt.componentKey);
2877
+ M(this, "formulaInput", yn);
2867
2878
  }
2868
2879
  }
2869
- class us extends fe {
2880
+ class hs extends fe {
2870
2881
  constructor() {
2871
2882
  super(...arguments);
2872
- M(this, "id", Z.TEXT_LENGTH);
2873
- M(this, "formulaInput", Tt);
2883
+ M(this, "id", z.TEXT_LENGTH);
2884
+ M(this, "formulaInput", xt);
2874
2885
  }
2875
2886
  }
2876
- class hs extends fe {
2887
+ class ps extends fe {
2877
2888
  constructor() {
2878
2889
  super(...arguments);
2879
- M(this, "id", Z.WHOLE);
2880
- M(this, "formulaInput", Tt);
2890
+ M(this, "id", z.WHOLE);
2891
+ M(this, "formulaInput", xt);
2881
2892
  }
2882
2893
  }
2883
- var ps = Object.defineProperty, ms = Object.getOwnPropertyDescriptor, fs = (e, t, o, n) => {
2884
- for (var a = n > 1 ? void 0 : n ? ms(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2894
+ var ms = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, gs = (e, t, o, n) => {
2895
+ for (var a = n > 1 ? void 0 : n ? fs(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2885
2896
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2886
- return n && a && ps(t, o, a), a;
2887
- }, Yt = (e, t) => (o, n) => t(o, n, e);
2888
- let Ze = class extends un {
2897
+ return n && a && ms(t, o, a), a;
2898
+ }, zt = (e, t) => (o, n) => t(o, n, e);
2899
+ let qe = class extends pn {
2889
2900
  constructor(e, t, o) {
2890
2901
  super(), this._injector = e, this._componentManger = t, this._dataValidatorRegistryService = o, this._initComponents(), this._registerValidatorViews();
2891
2902
  }
2892
2903
  _initComponents() {
2893
2904
  [
2894
- [Oo, Co],
2895
- [In, qi],
2896
- [Vo, gi],
2897
- [Dn, Oi],
2898
- [Eo, ti],
2899
- [Vt.componentKey, Vt],
2900
- [yt.componentKey, yt],
2901
- ...xr
2905
+ [Lo, wo],
2906
+ [Dt, Ji],
2907
+ [Mo, vi],
2908
+ [Vn, Li],
2909
+ [Oo, ni],
2910
+ [Mt.componentKey, Mt],
2911
+ [bt.componentKey, bt],
2912
+ ...jr
2902
2913
  ].forEach(([e, t]) => {
2903
2914
  this.disposeWithMe(this._componentManger.register(
2904
2915
  e,
@@ -2908,137 +2919,145 @@ let Ze = class extends un {
2908
2919
  }
2909
2920
  _registerValidatorViews() {
2910
2921
  [
2911
- Gr,
2922
+ Zr,
2923
+ ps,
2912
2924
  hs,
2925
+ Gr,
2926
+ Xr,
2913
2927
  us,
2914
- Kr,
2915
- Yr,
2916
- cs,
2917
- as,
2918
- Xr
2928
+ is,
2929
+ zr
2919
2930
  ].forEach((e) => {
2920
2931
  const t = this._injector.createInstance(e), o = this._dataValidatorRegistryService.getValidatorItem(t.id);
2921
2932
  o && (o.formulaInput = t.formulaInput, o.canvasRender = t.canvasRender, o.dropdown = t.dropdown, o.optionsInput = t.optionsInput);
2922
2933
  });
2923
2934
  }
2924
2935
  };
2925
- Ze = fs([
2926
- Yt(0, b(Fe)),
2927
- Yt(1, b(Et)),
2928
- Yt(2, b(ye))
2929
- ], Ze);
2930
- var gs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, _s = (e, t, o, n) => {
2931
- for (var a = n > 1 ? void 0 : n ? vs(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2936
+ qe = gs([
2937
+ zt(0, b(Ne)),
2938
+ zt(1, b(Lt)),
2939
+ zt(2, b(ye))
2940
+ ], qe);
2941
+ var vs = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Ss = (e, t, o, n) => {
2942
+ for (var a = n > 1 ? void 0 : n ? _s(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2932
2943
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2933
- return n && a && gs(t, o, a), a;
2934
- }, Xt = (e, t) => (o, n) => t(o, n, e);
2935
- const Ss = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2944
+ return n && a && vs(t, o, a), a;
2945
+ }, Kt = (e, t) => (o, n) => t(o, n, e);
2946
+ const Cs = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2936
2947
  var gt;
2937
- let Hn = (gt = class extends Kn {
2938
- constructor(e = bo, t, o, n) {
2948
+ let Yn = (gt = class extends Gn {
2949
+ constructor(e = Vt, t, o, n) {
2939
2950
  super(), this._config = e, this._injector = t, this._commandService = o, this._configService = n;
2940
- const { menu: a, ...i } = this._config;
2941
- a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Rn, i);
2951
+ const { menu: a, ...i } = Zn(
2952
+ {},
2953
+ Vt,
2954
+ this._config
2955
+ );
2956
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Dn, i);
2942
2957
  }
2943
2958
  onStarting() {
2944
2959
  [
2945
2960
  [me],
2946
2961
  [Ie],
2947
- [st],
2948
- [Xe],
2962
+ [lt],
2963
+ [ze],
2964
+ [Ze],
2949
2965
  [Ge],
2950
2966
  [Ke],
2951
- [ze],
2952
- [rt],
2953
- [Ze]
2967
+ [st],
2968
+ [qe]
2954
2969
  ].forEach((e) => {
2955
2970
  this._injector.add(e);
2956
2971
  }), [
2957
- Lt,
2958
- Pt,
2959
- Mo,
2960
- wn,
2961
- Ue,
2962
- yo
2972
+ At,
2973
+ Tt,
2974
+ Eo,
2975
+ Rn,
2976
+ Be,
2977
+ bo
2963
2978
  ].forEach((e) => {
2964
2979
  this._commandService.registerCommand(e);
2965
2980
  });
2966
2981
  }
2967
2982
  onReady() {
2968
- this._injector.get(ze), this._injector.get(Ke), this._injector.get(rt), this._injector.get(st), this._injector.get(Ve).registerRenderModule(
2983
+ this._injector.get(Ke), this._injector.get(Ge), this._injector.get(st), this._injector.get(lt), this._injector.get(Ve).registerRenderModule(
2969
2984
  Y.UNIVER_SHEET,
2970
- [Dt]
2985
+ [yt]
2971
2986
  );
2972
2987
  }
2973
2988
  onRendered() {
2974
- this._injector.get(Ze), this._injector.get(Ge);
2989
+ this._injector.get(qe), this._injector.get(Ze);
2975
2990
  }
2976
2991
  onSteady() {
2977
- this._injector.get(Xe);
2978
- }
2979
- }, M(gt, "pluginName", Ss), M(gt, "type", Y.UNIVER_SHEET), gt);
2980
- Hn = _s([
2981
- Xt(1, b(Fe)),
2982
- Xt(2, Q),
2983
- Xt(3, cn)
2984
- ], Hn);
2985
- var Cs = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, ws = (e, t, o, n) => {
2986
- for (var a = n > 1 ? void 0 : n ? Is(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2992
+ this._injector.get(ze);
2993
+ }
2994
+ }, M(gt, "pluginName", Cs), M(gt, "type", Y.UNIVER_SHEET), gt);
2995
+ Yn = Ss([
2996
+ Kt(1, b(Ne)),
2997
+ Kt(2, Q),
2998
+ Kt(3, hn)
2999
+ ], Yn);
3000
+ var Is = Object.defineProperty, ws = Object.getOwnPropertyDescriptor, Rs = (e, t, o, n) => {
3001
+ for (var a = n > 1 ? void 0 : n ? ws(t, o) : t, i = e.length - 1, r; i >= 0; i--)
2987
3002
  (r = e[i]) && (a = (n ? r(t, o, a) : r(a)) || a);
2988
- return n && a && Cs(t, o, a), a;
2989
- }, zt = (e, t) => (o, n) => t(o, n, e);
2990
- const Rs = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3003
+ return n && a && Is(t, o, a), a;
3004
+ }, Gt = (e, t) => (o, n) => t(o, n, e);
3005
+ const Ds = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2991
3006
  var vt;
2992
- let Yn = (vt = class extends Kn {
2993
- constructor(e = bo, t, o, n) {
3007
+ let Xn = (vt = class extends Gn {
3008
+ constructor(e = Vt, t, o, n) {
2994
3009
  super(), this._config = e, this._injector = t, this._commandService = o, this._configService = n;
2995
- const { menu: a, ...i } = this._config;
2996
- a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Rn, i);
3010
+ const { menu: a, ...i } = Zn(
3011
+ {},
3012
+ Vt,
3013
+ this._config
3014
+ );
3015
+ a && this._configService.setConfig("menu", a, { merge: !0 }), this._configService.setConfig(Dn, i);
2997
3016
  }
2998
3017
  onStarting() {
2999
3018
  [
3000
3019
  [me],
3001
3020
  [Ie],
3002
- [st],
3003
- [Xe],
3021
+ [lt],
3022
+ [ze],
3023
+ [Ze],
3004
3024
  [Ge],
3005
3025
  [Ke],
3006
- [ze],
3007
- [Ze]
3026
+ [qe]
3008
3027
  ].forEach((e) => {
3009
3028
  this._injector.add(e);
3010
3029
  }), [
3011
- Lt,
3012
- Pt,
3013
- Mo,
3014
- wn,
3015
- Ue,
3016
- yo
3030
+ At,
3031
+ Tt,
3032
+ Eo,
3033
+ Rn,
3034
+ Be,
3035
+ bo
3017
3036
  ].forEach((e) => {
3018
3037
  this._commandService.registerCommand(e);
3019
3038
  });
3020
3039
  }
3021
3040
  onReady() {
3022
- this._injector.get(ze), this._injector.get(Ke), this._injector.get(Ve).registerRenderModule(
3041
+ this._injector.get(Ke), this._injector.get(Ge), this._injector.get(Ve).registerRenderModule(
3023
3042
  Y.UNIVER_SHEET,
3024
- [Dt]
3043
+ [yt]
3025
3044
  );
3026
3045
  }
3027
3046
  onRendered() {
3028
- this._injector.get(Ze), this._injector.get(Ge);
3047
+ this._injector.get(qe), this._injector.get(Ze);
3029
3048
  }
3030
3049
  onSteady() {
3031
- this._injector.get(Xe);
3032
- }
3033
- }, M(vt, "pluginName", Rs), M(vt, "type", Y.UNIVER_SHEET), vt);
3034
- Yn = ws([
3035
- zt(1, b(Fe)),
3036
- zt(2, Q),
3037
- zt(3, cn)
3038
- ], Yn);
3050
+ this._injector.get(ze);
3051
+ }
3052
+ }, M(vt, "pluginName", Ds), M(vt, "type", Y.UNIVER_SHEET), vt);
3053
+ Xn = Rs([
3054
+ Gt(1, b(Ne)),
3055
+ Gt(2, Q),
3056
+ Gt(3, hn)
3057
+ ], Xn);
3039
3058
  export {
3040
- Eo as DATE_DROPDOWN_KEY,
3041
- Dn as LIST_DROPDOWN_KEY,
3042
- Yn as UniverSheetsDataValidationMobileUIPlugin,
3043
- Hn as UniverSheetsDataValidationUIPlugin
3059
+ Oo as DATE_DROPDOWN_KEY,
3060
+ Vn as LIST_DROPDOWN_KEY,
3061
+ Xn as UniverSheetsDataValidationMobileUIPlugin,
3062
+ Yn as UniverSheetsDataValidationUIPlugin
3044
3063
  };