@univerjs/sheets-data-validation-ui 0.7.0-nightly.202505071607 → 0.7.0-nightly.202505091607

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,24 +1,24 @@
1
- var Ar = Object.defineProperty;
2
- var Lr = (e, t, r) => t in e ? Ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var E = (e, t, r) => Lr(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { LocaleService as se, isFormulaString as De, DataValidationType as G, Tools as Kt, Inject as M, Injector as we, Disposable as Re, UniverInstanceType as j, toDisposable as kr, IUniverInstanceService as le, DataValidationErrorStyle as lt, DataValidationStatus as je, ICommandService as J, IConfigService as ln, DataValidationRenderMode as ie, DisposableCollection as Nr, dayjs as Rn, numfmt as Wn, CellValueType as Ur, CommandType as nt, ObjectMatrix as wt, Range as Fr, Rectangle as Rt, queryObjectMatrix as Gt, Optional as xr, RxDisposable as dn, InterceptorEffectEnum as jn, sequenceExecute as Yn, bufferDebounceTime as $r, debounce as Br, UndoCommand as Hr, RedoCommand as Wr, isUnitRangesEqual as jr, shallowEqual as yn, ThemeService as Xn, ColorKit as Yr, VerticalAlign as ae, HorizontalAlign as Ye, DEFAULT_STYLES as re, WrapStrategy as Ie, DocumentDataModel as Xr, BooleanNumber as rt, DEFAULT_EMPTY_DOCUMENT_VALUE as zr, Plugin as zn, merge as Kn } from "@univerjs/core";
5
- import { DataValidationFormulaController as Kr, deserializeListOptions as Gr, serializeListOptions as Gn, CUSTOM_FORMULA_INPUT_NAME as Zn, BASE_FORMULA_INPUT_NAME as Tt, LIST_FORMULA_INPUT_NAME as cn, CHECKBOX_FORMULA_INPUT_NAME as qn, SheetDataValidationModel as ee, SheetsDataValidationValidatorService as Zr, getDataValidationCellValue as kt, getCellValueOrigin as Q, createDefaultNewRule as Jn, AddSheetDataValidationCommand as un, DATA_VALIDATION_PLUGIN_NAME as Qn, getDataValidationDiffMutations as Zt, UpdateSheetDataValidationRangeCommand as er, DataValidationCacheService as tr, UpdateSheetDataValidationSettingCommand as bn, UpdateSheetDataValidationOptionsCommand as qr, RemoveSheetDataValidationCommand as nr, RemoveSheetAllDataValidationCommand as Jr, DataValidationFormulaService as Qr, CHECKBOX_FORMULA_2 as ei, CHECKBOX_FORMULA_1 as ti, getFormulaResult as Nt, isLegalFormulaResult as Mn, transformCheckboxValue as ni } from "@univerjs/sheets-data-validation";
6
- import { jsxs as W, Fragment as Xe, jsx as _ } from "react/jsx-runtime";
7
- import { FormLayout as K, Input as Ve, Checkbox as Pt, RadioGroup as hn, Radio as Oe, DraggableList as ri, clsx as rr, Dropdown as ii, Button as ze, Select as En } from "@univerjs/design";
8
- import { useDependency as U, useSidebarClick as ir, useObservable as Te, useEvent as qt, ISidebarService as or, IDialogService as oi, IZenZoneService as ar, KeyCode as ht, MenuItemType as gn, getMenuHiddenObservable as ai, RibbonStartGroup as si, IMenuManagerService as li, ComponentManager as pn } from "@univerjs/ui";
9
- import Dn, { useState as H, useRef as ut, forwardRef as Le, createElement as ke, useMemo as dt, useEffect as Pe } from "react";
10
- import { FormulaEditor as sr, RangeSelector as di } from "@univerjs/sheets-formula-ui";
11
- import { DataValidatorRegistryService as ye, DataValidationModel as vn, DataValidatorDropdownType as ge, DataValidatorRegistryScope as ci, TWO_FORMULA_OPERATOR_COUNT as ui, getRuleOptions as Vn, getRuleSetting as On } from "@univerjs/data-validation";
12
- import { debounceTime as lr, filter as mn, BehaviorSubject as Tn, distinctUntilChanged as hi, Subject as gi, bufferTime as dr, of as pi } from "rxjs";
13
- import { DeviceInputEventType as gt, IRenderManagerService as Ne, fixLineWidthByScale as Pn, Transform as vi, CheckboxShape as mi, getCurrentTypeOfRenderer as Ke, CURSOR_TYPE as Ge, FontCache as fi, Shape as _i, Rect as cr, getFontStyleString as Ut, getDocsSkeletonPageSize as it, Documents as Si, DocumentViewModel as Ci, DocumentSkeleton as Ii } from "@univerjs/engine-render";
14
- import { SheetInterceptorService as fn, VALIDATE_CELL as wi, SheetsSelectionsService as ur, SetRangeValuesCommand as st, getSheetCommandTarget as hr, rangeToDiscreteRange as Ri, SheetPermissionCheckController as yi, WorksheetEditPermission as Jt, WorksheetSetCellStylePermission as Qt, RangeProtectionPermissionEditPoint as en, WorkbookEditablePermission as tn, INTERCEPTOR_POINT as gr, InterceptCellContentPriority as pr, checkRangesEditablePermission as bi } from "@univerjs/sheets";
15
- import { getPatternType as Mi } from "@univerjs/sheets-numfmt";
16
- import { ISheetCellDropdownManagerService as Ei, IEditorBridgeService as vr, SetCellEditVisibleOperation as pt, HoverManagerService as Di, CellAlertManagerService as Vi, CellAlertType as Oi, IAutoFillService as Ti, APPLY_TYPE as ot, virtualizeDiscreteRanges as nn, getAutoFillRepeatRange as Pi, ISheetClipboardService as Ai, COPY_TYPE as An, PREDEFINED_HOOK_NAME as vt, getRepeatRange as Ln, getCurrentRangeDisable$ as Li, AutoHeightController as mr, SheetSkeletonManagerService as yt, IMarkSelectionService as ki } from "@univerjs/sheets-ui";
17
- import { deserializeRangeWithSheet as Ni, serializeRange as fr } from "@univerjs/engine-formula";
18
- const Ui = (e) => {
1
+ var Lr = Object.defineProperty;
2
+ var kr = (e, t, r) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var E = (e, t, r) => kr(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { LocaleService as se, isFormulaString as De, DataValidationType as G, Tools as Zt, Inject as b, Injector as we, Disposable as Re, UniverInstanceType as Y, toDisposable as Nr, IUniverInstanceService as le, DataValidationErrorStyle as lt, DataValidationStatus as je, ICommandService as J, IConfigService as cn, DataValidationRenderMode as ie, DisposableCollection as Ur, dayjs as Mn, numfmt as Yn, CellValueType as Fr, CommandType as nt, ObjectMatrix as Rt, Range as xr, Rectangle as yt, queryObjectMatrix as qt, Optional as $r, RxDisposable as un, InterceptorEffectEnum as Xn, sequenceExecute as zn, bufferDebounceTime as Br, debounce as Hr, UndoCommand as Wr, RedoCommand as jr, isUnitRangesEqual as Yr, shallowEqual as bn, ThemeService as Kn, ColorKit as Xr, VerticalAlign as ae, HorizontalAlign as Ye, DEFAULT_STYLES as re, WrapStrategy as Ie, DocumentDataModel as zr, BooleanNumber as rt, DEFAULT_EMPTY_DOCUMENT_VALUE as Kr, Plugin as Gn, merge as Zn } from "@univerjs/core";
5
+ import { DataValidationFormulaController as Gr, deserializeListOptions as Zr, serializeListOptions as qn, CUSTOM_FORMULA_INPUT_NAME as Jn, BASE_FORMULA_INPUT_NAME as At, LIST_FORMULA_INPUT_NAME as hn, CHECKBOX_FORMULA_INPUT_NAME as Qn, SheetDataValidationModel as ee, SheetsDataValidationValidatorService as qr, getDataValidationCellValue as Ut, getCellValueOrigin as Q, createDefaultNewRule as er, AddSheetDataValidationCommand as pn, DATA_VALIDATION_PLUGIN_NAME as tr, getDataValidationDiffMutations as Jt, UpdateSheetDataValidationRangeCommand as nr, DataValidationCacheService as rr, UpdateSheetDataValidationSettingCommand as En, UpdateSheetDataValidationOptionsCommand as Jr, RemoveSheetDataValidationCommand as ir, RemoveSheetAllDataValidationCommand as Qr, DataValidationFormulaService as ei, CHECKBOX_FORMULA_2 as ti, CHECKBOX_FORMULA_1 as ni, getFormulaResult as Ft, isLegalFormulaResult as Dn, transformCheckboxValue as ri } from "@univerjs/sheets-data-validation";
6
+ import { jsxs as W, Fragment as dt, jsx as _ } from "react/jsx-runtime";
7
+ import { FormLayout as j, Input as Ve, Checkbox as Lt, clsx as Xe, borderClassName as Mt, RadioGroup as gn, Radio as Oe, DraggableList as ii, Dropdown as oi, Button as ze, Select as Vn } from "@univerjs/design";
8
+ import { useDependency as U, useSidebarClick as or, useObservable as Te, useEvent as Qt, ISidebarService as ar, IDialogService as ai, IZenZoneService as sr, KeyCode as pt, MenuItemType as vn, getMenuHiddenObservable as si, RibbonStartGroup as li, IMenuManagerService as di, ComponentManager as mn } from "@univerjs/ui";
9
+ import On, { useState as H, useRef as ht, forwardRef as Le, createElement as ke, useMemo as ct, useEffect as Pe } from "react";
10
+ import { FormulaEditor as lr, RangeSelector as ci } from "@univerjs/sheets-formula-ui";
11
+ import { DataValidatorRegistryService as ye, DataValidationModel as fn, DataValidatorDropdownType as pe, DataValidatorRegistryScope as ui, TWO_FORMULA_OPERATOR_COUNT as hi, getRuleOptions as Tn, getRuleSetting as Pn } from "@univerjs/data-validation";
12
+ import { debounceTime as dr, filter as _n, BehaviorSubject as An, distinctUntilChanged as pi, Subject as gi, bufferTime as cr, of as vi } from "rxjs";
13
+ import { DeviceInputEventType as gt, IRenderManagerService as Ne, fixLineWidthByScale as Ln, Transform as mi, CheckboxShape as fi, getCurrentTypeOfRenderer as Ke, CURSOR_TYPE as Ge, FontCache as _i, Shape as Si, Rect as ur, getFontStyleString as xt, getDocsSkeletonPageSize as it, Documents as Ci, DocumentViewModel as Ii, DocumentSkeleton as wi } from "@univerjs/engine-render";
14
+ import { SheetInterceptorService as Sn, VALIDATE_CELL as Ri, SheetsSelectionsService as hr, SetRangeValuesCommand as st, getSheetCommandTarget as pr, rangeToDiscreteRange as yi, SheetPermissionCheckController as Mi, WorksheetEditPermission as en, WorksheetSetCellStylePermission as tn, RangeProtectionPermissionEditPoint as nn, WorkbookEditablePermission as rn, INTERCEPTOR_POINT as gr, InterceptCellContentPriority as vr, checkRangesEditablePermission as bi } from "@univerjs/sheets";
15
+ import { getPatternType as Ei } from "@univerjs/sheets-numfmt";
16
+ import { ISheetCellDropdownManagerService as Di, IEditorBridgeService as mr, SetCellEditVisibleOperation as vt, HoverManagerService as Vi, CellAlertManagerService as Oi, CellAlertType as Ti, IAutoFillService as Pi, APPLY_TYPE as ot, virtualizeDiscreteRanges as on, getAutoFillRepeatRange as Ai, ISheetClipboardService as Li, COPY_TYPE as kn, PREDEFINED_HOOK_NAME as mt, getRepeatRange as Nn, getCurrentRangeDisable$ as ki, AutoHeightController as fr, SheetSkeletonManagerService as bt, IMarkSelectionService as Ni } from "@univerjs/sheets-ui";
17
+ import { deserializeRangeWithSheet as Ui, serializeRange as _r } from "@univerjs/engine-formula";
18
+ const Fi = (e) => {
19
19
  const { isTwoFormula: t = !1, value: r, onChange: n, showError: i, validResult: o } = e, a = U(se), l = i ? o == null ? void 0 : o.formula1 : "", s = i ? o == null ? void 0 : o.formula2 : "";
20
- return t ? /* @__PURE__ */ W(Xe, { children: [
21
- /* @__PURE__ */ _(K, { error: l, children: /* @__PURE__ */ _(
20
+ return t ? /* @__PURE__ */ W(dt, { children: [
21
+ /* @__PURE__ */ _(j, { error: l, children: /* @__PURE__ */ _(
22
22
  Ve,
23
23
  {
24
24
  className: "univer-w-full",
@@ -33,7 +33,7 @@ const Ui = (e) => {
33
33
  }
34
34
  ) }),
35
35
  /* @__PURE__ */ _("div", { className: "-univer-mt-2 univer-mb-1 univer-text-sm univer-text-gray-400", children: a.t("dataValidation.panel.formulaAnd") }),
36
- /* @__PURE__ */ _(K, { error: s, children: /* @__PURE__ */ _(
36
+ /* @__PURE__ */ _(j, { error: s, children: /* @__PURE__ */ _(
37
37
  Ve,
38
38
  {
39
39
  className: "univer-w-full",
@@ -47,7 +47,7 @@ const Ui = (e) => {
47
47
  }
48
48
  }
49
49
  ) })
50
- ] }) : /* @__PURE__ */ _(K, { error: l, children: /* @__PURE__ */ _(
50
+ ] }) : /* @__PURE__ */ _(j, { error: l, children: /* @__PURE__ */ _(
51
51
  Ve,
52
52
  {
53
53
  className: "univer-w-full",
@@ -59,11 +59,11 @@ const Ui = (e) => {
59
59
  }
60
60
  ) });
61
61
  };
62
- function Fi(e) {
62
+ function xi(e) {
63
63
  const { value: t, onChange: r, showError: n, validResult: i } = e, o = U(se), a = n ? i == null ? void 0 : i.formula1 : "", l = n ? i == null ? void 0 : i.formula2 : "", [s, d] = H(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
64
- return /* @__PURE__ */ W(Xe, { children: [
65
- /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
66
- Pt,
64
+ return /* @__PURE__ */ W(dt, { children: [
65
+ /* @__PURE__ */ _(j, { children: /* @__PURE__ */ _(
66
+ Lt,
67
67
  {
68
68
  checked: s,
69
69
  onChange: (u) => {
@@ -76,7 +76,7 @@ function Fi(e) {
76
76
  children: o.t("dataValidation.checkbox.tips")
77
77
  }
78
78
  ) }),
79
- s ? /* @__PURE__ */ _(K, { label: o.t("dataValidation.checkbox.checked"), error: a, children: /* @__PURE__ */ _(
79
+ s ? /* @__PURE__ */ _(j, { label: o.t("dataValidation.checkbox.checked"), error: a, children: /* @__PURE__ */ _(
80
80
  Ve,
81
81
  {
82
82
  className: "univer-w-full",
@@ -90,7 +90,7 @@ function Fi(e) {
90
90
  }
91
91
  }
92
92
  ) }) : null,
93
- s ? /* @__PURE__ */ _(K, { label: o.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ _(
93
+ s ? /* @__PURE__ */ _(j, { label: o.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ _(
94
94
  Ve,
95
95
  {
96
96
  className: "univer-w-full",
@@ -106,30 +106,28 @@ function Fi(e) {
106
106
  ) }) : null
107
107
  ] });
108
108
  }
109
- function xi(e) {
109
+ function $i(e) {
110
110
  var h;
111
- const { unitId: t, subUnitId: r, value: n, onChange: i, showError: o, validResult: a } = e, l = o ? a == null ? void 0 : a.formula1 : void 0, s = ut(null), [d, u] = H(!1);
112
- return ir((c) => {
113
- var g;
114
- ((g = s.current) == null ? void 0 : g.isClickOutSide(c)) && u(!1);
115
- }), /* @__PURE__ */ _(
116
- sr,
111
+ const { unitId: t, subUnitId: r, value: n, onChange: i, showError: o, validResult: a } = e, l = o ? a == null ? void 0 : a.formula1 : void 0, s = ht(null), [d, u] = H(!1);
112
+ return or((c) => {
113
+ var p;
114
+ ((p = s.current) == null ? void 0 : p.isClickOutSide(c)) && u(!1);
115
+ }), /* @__PURE__ */ _(j, { error: l, children: /* @__PURE__ */ _(
116
+ lr,
117
117
  {
118
118
  ref: s,
119
- className: `
120
- univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg
121
- univer-border univer-border-solid univer-border-gray-200 univer-bg-white univer-pt-2
122
- univer-transition-colors
123
- [&>div:first-child]:univer-px-2.5
124
- [&>div]:univer-h-5 [&>div]:univer-ring-transparent
125
- dark:univer-border-gray-600 dark:univer-bg-gray-700 dark:univer-text-white
126
- hover:univer-border-primary-600
127
- `,
119
+ className: Xe(`
120
+ univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center univer-rounded-lg
121
+ univer-bg-white univer-pt-2 univer-transition-colors
122
+ [&>div:first-child]:univer-px-2.5
123
+ [&>div]:univer-h-5 [&>div]:univer-ring-transparent
124
+ dark:univer-bg-gray-700 dark:univer-text-white
125
+ hover:univer-border-primary-600
126
+ `, Mt),
128
127
  initValue: (h = n == null ? void 0 : n.formula1) != null ? h : "=",
129
128
  unitId: t,
130
129
  subUnitId: r,
131
130
  isFocus: d,
132
- errorText: l,
133
131
  isSupportAcrossSheet: !0,
134
132
  onChange: (c) => {
135
133
  const m = (c != null ? c : "").trim();
@@ -140,7 +138,7 @@ function xi(e) {
140
138
  },
141
139
  onFocus: () => u(!0)
142
140
  }
143
- );
141
+ ) });
144
142
  }
145
143
  var oe = function() {
146
144
  return oe = Object.assign || function(e) {
@@ -150,7 +148,7 @@ var oe = function() {
150
148
  }
151
149
  return e;
152
150
  }, oe.apply(this, arguments);
153
- }, $i = function(e, t) {
151
+ }, Bi = function(e, t) {
154
152
  var r = {};
155
153
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
156
154
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -158,15 +156,15 @@ var oe = function() {
158
156
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
159
157
  return r;
160
158
  }, Ue = Le(function(e, t) {
161
- var r = e.icon, n = e.id, i = e.className, o = e.extend, a = $i(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), s = ut("_".concat(Wi()));
162
- return _r(r, "".concat(n), { defIds: r.defIds, idSuffix: s.current }, oe({ ref: t, className: l }, a), o);
159
+ var r = e.icon, n = e.id, i = e.className, o = e.extend, a = Bi(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), s = ht("_".concat(ji()));
160
+ return Sr(r, "".concat(n), { defIds: r.defIds, idSuffix: s.current }, oe({ ref: t, className: l }, a), o);
163
161
  });
164
- function _r(e, t, r, n, i) {
165
- return ke(e.tag, oe(oe({ key: t }, Bi(e, r, i)), n), (Hi(e, r).children || []).map(function(o, a) {
166
- return _r(o, "".concat(t, "-").concat(e.tag, "-").concat(a), r, void 0, i);
162
+ function Sr(e, t, r, n, i) {
163
+ return ke(e.tag, oe(oe({ key: t }, Hi(e, r, i)), n), (Wi(e, r).children || []).map(function(o, a) {
164
+ return Sr(o, "".concat(t, "-").concat(e.tag, "-").concat(a), r, void 0, i);
167
165
  }));
168
166
  }
169
- function Bi(e, t, r) {
167
+ function Hi(e, t, r) {
170
168
  var n = oe({}, e.attrs);
171
169
  r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), e.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(function(o) {
172
170
  var a = o[0], l = o[1];
@@ -178,65 +176,65 @@ function Bi(e, t, r) {
178
176
  typeof l == "string" && (n[a] = l.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
179
177
  })), n;
180
178
  }
181
- function Hi(e, t) {
179
+ function Wi(e, t) {
182
180
  var r, n = t.defIds;
183
181
  return !n || n.length === 0 ? e : e.tag === "defs" && (!((r = e.children) === null || r === void 0) && r.length) ? oe(oe({}, e), { children: e.children.map(function(i) {
184
182
  return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ? oe(oe({}, i), { attrs: oe(oe({}, i.attrs), { id: i.attrs.id + t.idSuffix }) }) : i;
185
183
  }) }) : e;
186
184
  }
187
- function Wi() {
185
+ function ji() {
188
186
  return Math.random().toString(36).substring(2, 8);
189
187
  }
190
188
  Ue.displayName = "UniverIcon";
191
- var ji = { 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" } }] }, Sr = Le(function(e, t) {
189
+ var Yi = { 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" } }] }, Cr = Le(function(e, t) {
192
190
  return ke(Ue, Object.assign({}, e, {
193
191
  id: "data-validation-single",
194
192
  ref: t,
195
- icon: ji
193
+ icon: Yi
196
194
  }));
197
195
  });
198
- Sr.displayName = "DataValidationSingle";
199
- var Yi = { 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" } }] }, _n = Le(function(e, t) {
196
+ Cr.displayName = "DataValidationSingle";
197
+ var Xi = { 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 = Le(function(e, t) {
200
198
  return ke(Ue, Object.assign({}, e, {
201
199
  id: "delete-single",
202
200
  ref: t,
203
- icon: Yi
201
+ icon: Xi
204
202
  }));
205
203
  });
206
- _n.displayName = "DeleteSingle";
207
- var Xi = { 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" } }] }, Cr = Le(function(e, t) {
204
+ Cn.displayName = "DeleteSingle";
205
+ var zi = { 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" } }] }, Ir = Le(function(e, t) {
208
206
  return ke(Ue, Object.assign({}, e, {
209
207
  id: "increase-single",
210
208
  ref: t,
211
- icon: Xi
209
+ icon: zi
212
210
  }));
213
211
  });
214
- Cr.displayName = "IncreaseSingle";
215
- var zi = { 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" } }] }, Sn = Le(function(e, t) {
212
+ Ir.displayName = "IncreaseSingle";
213
+ var Ki = { 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" } }] }, In = Le(function(e, t) {
216
214
  return ke(Ue, Object.assign({}, e, {
217
215
  id: "more-down-single",
218
216
  ref: t,
219
- icon: zi
217
+ icon: Ki
220
218
  }));
221
219
  });
222
- Sn.displayName = "MoreDownSingle";
223
- var Ki = { 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" } }] }, Ir = Le(function(e, t) {
220
+ In.displayName = "MoreDownSingle";
221
+ var Gi = { 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" } }] }, wr = Le(function(e, t) {
224
222
  return ke(Ue, Object.assign({}, e, {
225
223
  id: "more-up-single",
226
224
  ref: t,
227
- icon: Ki
225
+ icon: Gi
228
226
  }));
229
227
  });
230
- Ir.displayName = "MoreUpSingle";
231
- var Gi = { 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" } }] }] }, wr = Le(function(e, t) {
228
+ wr.displayName = "MoreUpSingle";
229
+ var Zi = { 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" } }] }] }, Rr = Le(function(e, t) {
232
230
  return ke(Ue, Object.assign({}, e, {
233
231
  id: "sequence-single",
234
232
  ref: t,
235
- icon: Gi
233
+ icon: Zi
236
234
  }));
237
235
  });
238
- wr.displayName = "SequenceSingle";
239
- const He = "#ECECEC", Zi = [
236
+ Rr.displayName = "SequenceSingle";
237
+ const He = "#ECECEC", qi = [
240
238
  "#FFFFFF",
241
239
  "#FEE7E7",
242
240
  "#FEF0E6",
@@ -261,10 +259,10 @@ const He = "#ECECEC", Zi = [
261
259
  "#3A60F7",
262
260
  "#9E6DE3",
263
261
  "#F248A6"
264
- ], qi = (e) => {
262
+ ], Ji = (e) => {
265
263
  const { value: t, onChange: r, disabled: n } = e, [i, o] = H(!1);
266
264
  return /* @__PURE__ */ _(
267
- ii,
265
+ oi,
268
266
  {
269
267
  align: "start",
270
268
  disabled: n,
@@ -277,14 +275,11 @@ const He = "#ECECEC", Zi = [
277
275
  univer-box-border univer-grid univer-w-fit univer-grid-cols-6 univer-flex-wrap univer-gap-2
278
276
  univer-p-1.5
279
277
  `,
280
- children: Zi.map(
278
+ children: qi.map(
281
279
  (a) => /* @__PURE__ */ _(
282
280
  "div",
283
281
  {
284
- className: `
285
- univer-box-border univer-size-4 univer-cursor-pointer univer-rounded univer-border
286
- univer-border-solid univer-border-gray-200
287
- `,
282
+ className: Xe("univer-box-border univer-size-4 univer-cursor-pointer univer-rounded", Mt),
288
283
  style: { background: a },
289
284
  onClick: () => {
290
285
  r(a), o(!1);
@@ -298,36 +293,33 @@ const He = "#ECECEC", Zi = [
298
293
  children: /* @__PURE__ */ W(
299
294
  "div",
300
295
  {
301
- className: `
296
+ className: Xe(`
302
297
  univer-box-border univer-inline-flex univer-h-8 univer-w-16 univer-cursor-pointer univer-items-center
303
- univer-justify-between univer-gap-2 univer-rounded-lg univer-border univer-border-solid
304
- univer-border-gray-200 univer-bg-white univer-px-2.5 univer-transition-colors univer-duration-200
305
- dark:univer-border-gray-600 dark:univer-bg-gray-700 dark:univer-text-white
298
+ univer-justify-between univer-gap-2 univer-rounded-lg univer-bg-white univer-px-2.5
299
+ univer-transition-colors univer-duration-200
300
+ dark:univer-bg-gray-700 dark:univer-text-white
306
301
  hover:univer-border-primary-600
307
- `,
302
+ `, Mt),
308
303
  children: [
309
304
  /* @__PURE__ */ _(
310
305
  "div",
311
306
  {
312
- className: `
313
- univer-box-border univer-h-4 univer-w-4 univer-rounded univer-border univer-border-gray-200
314
- univer-text-base
315
- `,
307
+ className: "univer-box-border univer-h-4 univer-w-4 univer-rounded univer-text-base",
316
308
  style: { background: t }
317
309
  }
318
310
  ),
319
- /* @__PURE__ */ _(Sn, { className: "univer-text-gray-600" })
311
+ /* @__PURE__ */ _(In, {})
320
312
  ]
321
313
  }
322
314
  )
323
315
  }
324
316
  );
325
- }, kn = (e) => {
317
+ }, Un = (e) => {
326
318
  const { item: t, commonProps: r, style: n } = e, { onItemChange: i, onItemDelete: o } = r;
327
319
  return /* @__PURE__ */ W("div", { className: "univer-flex univer-items-center univer-gap-2", style: n, children: [
328
- t.isRef ? null : /* @__PURE__ */ _("div", { className: rr("univer-cursor-move", "draggableHandle"), children: /* @__PURE__ */ _(wr, {}) }),
320
+ t.isRef ? null : /* @__PURE__ */ _("div", { className: Xe("univer-cursor-move", "draggableHandle"), children: /* @__PURE__ */ _(Rr, {}) }),
329
321
  /* @__PURE__ */ _(
330
- qi,
322
+ Ji,
331
323
  {
332
324
  value: t.color,
333
325
  onChange: (a) => {
@@ -352,14 +344,14 @@ const He = "#ECECEC", Zi = [
352
344
  univer-ml-1 univer-cursor-pointer univer-rounded univer-text-base
353
345
  hover:univer-bg-gray-200
354
346
  `,
355
- children: /* @__PURE__ */ _(_n, { onClick: () => o(t.id) })
347
+ children: /* @__PURE__ */ _(Cn, { onClick: () => o(t.id) })
356
348
  }
357
349
  )
358
350
  ] });
359
351
  };
360
- function Ji(e) {
352
+ function Qi(e) {
361
353
  const { value: t, onChange: r = () => {
362
- }, unitId: n, subUnitId: i, validResult: o, showError: a, ruleId: l } = e, { formula1: s = "", formula2: d = "" } = t || {}, [u, h] = H(() => De(s) ? "1" : "0"), [c, m] = H(u === "1" ? s : "="), [g, b] = H(u === "1" ? s : "="), y = U(se), p = U(ye), S = U(vn), v = U(Kr), [C, w] = H(() => d.split(",")), I = p.getValidatorItem(G.LIST), [R, T] = H([]), [N, D] = H(""), P = a ? o == null ? void 0 : o.formula1 : "", A = dt(() => S.ruleChange$.pipe(lr(16)), []), L = Te(A), V = qt(r);
354
+ }, unitId: n, subUnitId: i, validResult: o, showError: a, ruleId: l } = e, { formula1: s = "", formula2: d = "" } = t || {}, [u, h] = H(() => De(s) ? "1" : "0"), [c, m] = H(u === "1" ? s : "="), [p, M] = H(u === "1" ? s : "="), y = U(se), g = U(ye), S = U(fn), v = U(Gr), [C, w] = H(() => d.split(",")), I = g.getValidatorItem(G.LIST), [R, T] = H([]), [N, D] = H(""), P = a ? o == null ? void 0 : o.formula1 : "", A = ct(() => S.ruleChange$.pipe(dr(16)), []), L = Te(A), V = Qt(r);
363
355
  Pe(() => {
364
356
  (async () => {
365
357
  await new Promise((f) => {
@@ -372,28 +364,28 @@ function Ji(e) {
372
364
  }
373
365
  })();
374
366
  }, [S, L, I, l, i, n]), Pe(() => {
375
- De(s) && s !== g && (m(s), b(g));
376
- }, [g, s]);
367
+ De(s) && s !== p && (m(s), M(p));
368
+ }, [p, s]);
377
369
  const [F, x] = H(() => {
378
- const O = u !== "1" ? Gr(s) : [], B = d.split(",");
370
+ const O = u !== "1" ? Zr(s) : [], B = d.split(",");
379
371
  return O.map((f, k) => ({
380
372
  label: f,
381
373
  color: B[k] || He,
382
374
  isRef: !1,
383
- id: Kt.generateRandomId(4)
375
+ id: Zt.generateRandomId(4)
384
376
  }));
385
- }), Y = (O, B, f) => {
377
+ }), X = (O, B, f) => {
386
378
  const k = F.find(($) => $.id === O);
387
379
  k && (k.label = B, k.color = f, x([...F]));
388
380
  }, Z = (O) => {
389
381
  const B = F.findIndex((f) => f.id === O);
390
382
  B !== -1 && (F.splice(B, 1), x([...F]));
391
- }, X = d.split(","), te = dt(() => R.map((O, B) => ({
383
+ }, z = d.split(","), te = ct(() => R.map((O, B) => ({
392
384
  label: O,
393
- color: X[B] || He,
385
+ color: z[B] || He,
394
386
  id: `${B}`,
395
387
  isRef: !0
396
- })), [X, R]), pe = (O, B, f) => {
388
+ })), [z, R]), ge = (O, B, f) => {
397
389
  const k = [...C];
398
390
  k[+O] = f, w(k), V({
399
391
  formula1: s,
@@ -406,7 +398,7 @@ function Ji(e) {
406
398
  label: "",
407
399
  color: He,
408
400
  isRef: !1,
409
- id: Kt.generateRandomId(4)
401
+ id: Zt.generateRandomId(4)
410
402
  }
411
403
  ]);
412
404
  };
@@ -425,11 +417,11 @@ function Ji(e) {
425
417
  }));
426
418
  });
427
419
  }), V({
428
- formula1: Gn(B.map((f) => f.label)),
420
+ formula1: qn(B.map((f) => f.label)),
429
421
  formula2: B.map((f) => f.color === He ? "" : f.color).join(",")
430
422
  });
431
- }, [F, V, u, g, C]);
432
- const ne = qt(async (O) => {
423
+ }, [F, V, u, p, C]);
424
+ const ne = Qt(async (O) => {
433
425
  if (!De(O)) {
434
426
  V == null || V({
435
427
  formula1: "",
@@ -444,18 +436,18 @@ function Ji(e) {
444
436
  formula1: "",
445
437
  formula2: d
446
438
  }), m("="), D(y.t("dataValidation.validFail.formulaError")));
447
- }), ce = ut(null), [Se, ve] = H(!1);
448
- return ir((O) => {
439
+ }), ce = ht(null), [Se, ve] = H(!1);
440
+ return or((O) => {
449
441
  var f;
450
442
  ((f = ce.current) == null ? void 0 : f.isClickOutSide(O)) && ve(!1);
451
- }), /* @__PURE__ */ W(Xe, { children: [
452
- /* @__PURE__ */ _(K, { label: y.t("dataValidation.list.options"), children: /* @__PURE__ */ W(
453
- hn,
443
+ }), /* @__PURE__ */ W(dt, { children: [
444
+ /* @__PURE__ */ _(j, { label: y.t("dataValidation.list.options"), children: /* @__PURE__ */ W(
445
+ gn,
454
446
  {
455
447
  value: u,
456
448
  onChange: (O) => {
457
- h(O), m(g), O === "1" && V({
458
- formula1: g === "=" ? "" : g,
449
+ h(O), m(p), O === "1" && V({
450
+ formula1: p === "=" ? "" : p,
459
451
  formula2: C.join(",")
460
452
  });
461
453
  },
@@ -465,45 +457,43 @@ function Ji(e) {
465
457
  ]
466
458
  }
467
459
  ) }),
468
- u === "1" ? /* @__PURE__ */ W(Xe, { children: [
460
+ u === "1" ? /* @__PURE__ */ W(j, { error: P || N || void 0, children: [
469
461
  /* @__PURE__ */ _(
470
- sr,
462
+ lr,
471
463
  {
472
464
  ref: ce,
473
- className: `
465
+ className: Xe(`
474
466
  univer-box-border univer-h-8 univer-w-full univer-cursor-pointer univer-items-center
475
- univer-rounded-lg univer-border univer-border-solid univer-border-gray-200 univer-bg-white
476
- univer-pt-2 univer-transition-colors
467
+ univer-rounded-lg univer-bg-white univer-pt-2 univer-transition-colors
477
468
  [&>div:first-child]:univer-px-2.5
478
469
  [&>div]:univer-h-5 [&>div]:univer-ring-transparent
479
- dark:univer-border-gray-600 dark:univer-bg-gray-700 dark:univer-text-white
470
+ dark:univer-bg-gray-700 dark:univer-text-white
480
471
  hover:univer-border-primary-600
481
- `,
472
+ `, Mt),
482
473
  initValue: c,
483
474
  unitId: n,
484
475
  subUnitId: i,
485
476
  isFocus: Se,
486
- errorText: P || N || void 0,
487
477
  isSupportAcrossSheet: !0,
488
478
  onFocus: () => ve(!0),
489
479
  onChange: (O = "") => {
490
480
  const B = (O != null ? O : "").trim();
491
- b(B), ne(B);
481
+ M(B), ne(B);
492
482
  }
493
483
  }
494
484
  ),
495
485
  te.length > 0 && /* @__PURE__ */ _("div", { style: { marginTop: "12px" }, children: te.map((O) => /* @__PURE__ */ _(
496
- kn,
486
+ Un,
497
487
  {
498
488
  item: O,
499
- commonProps: { onItemChange: pe },
489
+ commonProps: { onItemChange: ge },
500
490
  style: { marginBottom: 12 }
501
491
  },
502
492
  O.id
503
493
  )) })
504
- ] }) : /* @__PURE__ */ _(K, { error: P, children: /* @__PURE__ */ W("div", { style: { marginTop: "-12px" }, children: [
494
+ ] }) : /* @__PURE__ */ _(j, { error: P, children: /* @__PURE__ */ W("div", { style: { marginTop: "-12px" }, children: [
505
495
  /* @__PURE__ */ _(
506
- ri,
496
+ ii,
507
497
  {
508
498
  list: F,
509
499
  onListChange: x,
@@ -511,11 +501,11 @@ function Ji(e) {
511
501
  margin: [0, 12],
512
502
  draggableHandle: ".draggableHandle",
513
503
  itemRender: (O) => /* @__PURE__ */ _(
514
- kn,
504
+ Un,
515
505
  {
516
506
  item: O,
517
507
  commonProps: {
518
- onItemChange: Y,
508
+ onItemChange: X,
519
509
  onItemDelete: Z
520
510
  }
521
511
  },
@@ -534,7 +524,7 @@ function Ji(e) {
534
524
  `,
535
525
  onClick: de,
536
526
  children: [
537
- /* @__PURE__ */ _(Cr, { className: "univer-mr-1" }),
527
+ /* @__PURE__ */ _(Ir, { className: "univer-mr-1" }),
538
528
  y.t("dataValidation.list.add")
539
529
  ]
540
530
  }
@@ -542,61 +532,61 @@ function Ji(e) {
542
532
  ] }) })
543
533
  ] });
544
534
  }
545
- const Qi = [
535
+ const eo = [
546
536
  [
547
- Zn,
548
- xi
537
+ Jn,
538
+ $i
549
539
  ],
550
540
  [
551
- Tt,
552
- Ui
541
+ At,
542
+ Fi
553
543
  ],
554
544
  [
555
- cn,
556
- Ji
545
+ hn,
546
+ Qi
557
547
  ],
558
548
  [
559
- qn,
560
- Fi
549
+ Qn,
550
+ xi
561
551
  ]
562
552
  ];
563
- var eo = Object.getOwnPropertyDescriptor, to = (e, t, r, n) => {
564
- for (var i = n > 1 ? void 0 : n ? eo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
553
+ var to = Object.getOwnPropertyDescriptor, no = (e, t, r, n) => {
554
+ for (var i = n > 1 ? void 0 : n ? to(t, r) : t, o = e.length - 1, a; o >= 0; o--)
565
555
  (a = e[o]) && (i = a(i) || i);
566
556
  return i;
567
- }, no = (e, t) => (r, n) => t(r, n, e);
557
+ }, ro = (e, t) => (r, n) => t(r, n, e);
568
558
  let fe = class {
569
559
  constructor(e) {
570
560
  E(this, "canvasRender", null);
571
561
  E(this, "dropdownType");
572
562
  E(this, "optionsInput");
573
- E(this, "formulaInput", cn);
563
+ E(this, "formulaInput", hn);
574
564
  this.injector = e;
575
565
  }
576
566
  };
577
- fe = to([
578
- no(0, M(we))
567
+ fe = no([
568
+ ro(0, b(we))
579
569
  ], fe);
580
- var ro = Object.getOwnPropertyDescriptor, io = (e, t, r, n) => {
581
- for (var i = n > 1 ? void 0 : n ? ro(t, r) : t, o = e.length - 1, a; o >= 0; o--)
570
+ var io = Object.getOwnPropertyDescriptor, oo = (e, t, r, n) => {
571
+ for (var i = n > 1 ? void 0 : n ? io(t, r) : t, o = e.length - 1, a; o >= 0; o--)
582
572
  (a = e[o]) && (i = a(i) || i);
583
573
  return i;
584
- }, Nn = (e, t) => (r, n) => t(r, n, e);
574
+ }, Fn = (e, t) => (r, n) => t(r, n, e);
585
575
  let _e = class extends Re {
586
576
  constructor(t, r) {
587
577
  super();
588
- E(this, "_open$", new Tn(!1));
589
- E(this, "open$", this._open$.pipe(hi()));
578
+ E(this, "_open$", new An(!1));
579
+ E(this, "open$", this._open$.pipe(pi()));
590
580
  E(this, "_activeRule");
591
- E(this, "_activeRule$", new Tn(void 0));
581
+ E(this, "_activeRule$", new An(void 0));
592
582
  E(this, "activeRule$", this._activeRule$.asObservable());
593
583
  E(this, "_closeDisposable", null);
594
584
  this._univerInstanceService = t, this._sidebarService = r, this.disposeWithMe(
595
- this._univerInstanceService.getCurrentTypeOfUnit$(j.UNIVER_SHEET).pipe(mn((n) => !n)).subscribe(() => {
585
+ this._univerInstanceService.getCurrentTypeOfUnit$(Y.UNIVER_SHEET).pipe(_n((n) => !n)).subscribe(() => {
596
586
  this.close();
597
587
  })
598
588
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((n) => {
599
- n.id === Mt && (n.visible || setTimeout(() => {
589
+ n.id === Dt && (n.visible || setTimeout(() => {
600
590
  this._sidebarService.sidebarOptions$.next({ visible: !1 });
601
591
  }));
602
592
  }));
@@ -619,7 +609,7 @@ let _e = class extends Re {
619
609
  this._open$.next(!1), (t = this._closeDisposable) == null || t.dispose();
620
610
  }
621
611
  setCloseDisposable(t) {
622
- this._closeDisposable = kr(() => {
612
+ this._closeDisposable = Nr(() => {
623
613
  t.dispose(), this._closeDisposable = null;
624
614
  });
625
615
  }
@@ -627,13 +617,13 @@ let _e = class extends Re {
627
617
  this._activeRule = t, this._activeRule$.next(t);
628
618
  }
629
619
  };
630
- _e = io([
631
- Nn(0, le),
632
- Nn(1, or)
620
+ _e = oo([
621
+ Fn(0, le),
622
+ Fn(1, ar)
633
623
  ], _e);
634
- const Cn = "sheets-data-validation-ui.config", bt = {};
635
- var oo = Object.getOwnPropertyDescriptor, ao = (e, t, r, n) => {
636
- for (var i = n > 1 ? void 0 : n ? oo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
624
+ const wn = "sheets-data-validation-ui.config", Et = {};
625
+ var ao = Object.getOwnPropertyDescriptor, so = (e, t, r, n) => {
626
+ for (var i = n > 1 ? void 0 : n ? ao(t, r) : t, o = e.length - 1, a; o >= 0; o--)
637
627
  (a = e[o]) && (i = a(i) || i);
638
628
  return i;
639
629
  }, xe = (e, t) => (r, n) => t(r, n, e);
@@ -643,7 +633,7 @@ let Ze = class extends Re {
643
633
  }
644
634
  _initEditorBridgeInterceptor() {
645
635
  this._sheetInterceptorService.writeCellInterceptor.intercept(
646
- wi,
636
+ Ri,
647
637
  {
648
638
  handler: async (e, t, r) => {
649
639
  const n = await e, { row: i, col: o, unitId: a, subUnitId: l } = t, s = this._dataValidationModel.getRuleIdByLocation(a, l, i, o), d = s ? this._dataValidationModel.getRuleById(a, l, s) : void 0;
@@ -662,7 +652,7 @@ let Ze = class extends Re {
662
652
  title: u.getRuleFinalError(d, { row: i, col: o, unitId: a, subUnitId: l })
663
653
  },
664
654
  footer: {
665
- title: Dn.createElement(
655
+ title: On.createElement(
666
656
  ze,
667
657
  {
668
658
  variant: "primary",
@@ -690,7 +680,7 @@ let Ze = class extends Re {
690
680
  title: e
691
681
  },
692
682
  footer: {
693
- title: Dn.createElement(
683
+ title: On.createElement(
694
684
  ze,
695
685
  {
696
686
  variant: "primary",
@@ -705,30 +695,30 @@ let Ze = class extends Re {
705
695
  });
706
696
  }
707
697
  };
708
- Ze = ao([
709
- xe(0, M(fn)),
710
- xe(1, M(ee)),
711
- xe(2, M(ye)),
712
- xe(3, oi),
713
- xe(4, M(se)),
714
- xe(5, M(Zr))
698
+ Ze = so([
699
+ xe(0, b(Sn)),
700
+ xe(1, b(ee)),
701
+ xe(2, b(ye)),
702
+ xe(3, ai),
703
+ xe(4, b(se)),
704
+ xe(5, b(qr))
715
705
  ], Ze);
716
- var so = Object.getOwnPropertyDescriptor, lo = (e, t, r, n) => {
717
- for (var i = n > 1 ? void 0 : n ? so(t, r) : t, o = e.length - 1, a; o >= 0; o--)
706
+ var lo = Object.getOwnPropertyDescriptor, co = (e, t, r, n) => {
707
+ for (var i = n > 1 ? void 0 : n ? lo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
718
708
  (a = e[o]) && (i = a(i) || i);
719
709
  return i;
720
710
  }, ue = (e, t) => (r, n) => t(r, n, e);
721
- const Ft = (e) => {
711
+ const $t = (e) => {
722
712
  if (e == null || typeof e == "boolean")
723
713
  return;
724
714
  if (typeof e == "number" || !Number.isNaN(+e))
725
- return Rn(Wn.format("yyyy-MM-dd HH:mm:ss", Number(e)));
726
- const t = Rn(e);
715
+ return Mn(Yn.format("yyyy-MM-dd HH:mm:ss", Number(e)));
716
+ const t = Mn(e);
727
717
  if (t.isValid())
728
718
  return t;
729
719
  };
730
- function co(e, t) {
731
- const r = Mi(t);
720
+ function uo(e, t) {
721
+ const r = Ei(t);
732
722
  if (e === r)
733
723
  return t;
734
724
  switch (e) {
@@ -761,7 +751,7 @@ let Ae = class extends Re {
761
751
  }));
762
752
  }
763
753
  _getDropdownByCell(t, r, n, i) {
764
- const o = t ? this._univerInstanceService.getUnit(t, j.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitForType(j.UNIVER_SHEET);
754
+ const o = t ? this._univerInstanceService.getUnit(t, Y.UNIVER_SHEET) : this._univerInstanceService.getCurrentUnitForType(Y.UNIVER_SHEET);
765
755
  if (!o)
766
756
  return;
767
757
  const a = r ? o.getSheetBySheetId(r) : o.getActiveSheet();
@@ -780,7 +770,7 @@ let Ae = class extends Re {
780
770
  }
781
771
  // eslint-disable-next-line max-lines-per-function, complexity
782
772
  showDropdown(t) {
783
- var b, y, p, S;
773
+ var M, y, g, S;
784
774
  const { location: r } = t, { row: n, col: i, unitId: o, subUnitId: a, workbook: l, worksheet: s } = r;
785
775
  if (this._currentPopup && this._currentPopup.dispose(), this._zenVisible)
786
776
  return;
@@ -796,7 +786,7 @@ let Ae = class extends Re {
796
786
  var A, L, V;
797
787
  if (!v)
798
788
  return !0;
799
- const w = v, I = s.getCell(n, i), R = w.format(C === "date" ? "YYYY-MM-DD 00:00:00" : "YYYY-MM-DD HH:mm:ss"), T = (A = Wn.parseDate(R)) == null ? void 0 : A.v, N = C === "time" ? T % 1 : T, D = l.getStyles().getStyleByCell(I), P = (V = (L = D == null ? void 0 : D.n) == null ? void 0 : L.pattern) != null ? V : "";
789
+ const w = v, I = s.getCell(n, i), R = w.format(C === "date" ? "YYYY-MM-DD 00:00:00" : "YYYY-MM-DD HH:mm:ss"), T = (A = Yn.parseDate(R)) == null ? void 0 : A.v, N = C === "time" ? T % 1 : T, D = l.getStyles().getStyleByCell(I), P = (V = (L = D == null ? void 0 : D.n) == null ? void 0 : L.pattern) != null ? V : "";
800
790
  return d.errorStyle !== lt.STOP || await u.validator({
801
791
  value: N,
802
792
  unitId: o,
@@ -806,12 +796,12 @@ let Ae = class extends Re {
806
796
  worksheet: s,
807
797
  workbook: l,
808
798
  interceptValue: R.replace("Z", "").replace("T", " "),
809
- t: Ur.NUMBER
810
- }, d) ? (await this._commandService.executeCommand(pt.id, {
799
+ t: Fr.NUMBER
800
+ }, d) ? (await this._commandService.executeCommand(vt.id, {
811
801
  visible: !1,
812
802
  eventType: gt.Keyboard,
813
803
  unitId: o,
814
- keycode: ht.ESC
804
+ keycode: pt.ESC
815
805
  }), await this._commandService.executeCommand(st.id, {
816
806
  unitId: o,
817
807
  subUnitId: a,
@@ -829,7 +819,7 @@ let Ae = class extends Re {
829
819
  si: null,
830
820
  s: {
831
821
  n: {
832
- pattern: co(C, P)
822
+ pattern: uo(C, P)
833
823
  }
834
824
  }
835
825
  }
@@ -837,8 +827,8 @@ let Ae = class extends Re {
837
827
  };
838
828
  let m;
839
829
  switch (u.dropdownType) {
840
- case ge.DATE: {
841
- const v = Q(s.getCellRaw(n, i)), C = Ft(v), w = !!((b = d.bizInfo) != null && b.showTime);
830
+ case pe.DATE: {
831
+ const v = Q(s.getCellRaw(n, i)), C = $t(v), w = !!((M = d.bizInfo) != null && M.showTime);
842
832
  m = {
843
833
  location: r,
844
834
  type: "datepicker",
@@ -851,8 +841,8 @@ let Ae = class extends Re {
851
841
  };
852
842
  break;
853
843
  }
854
- case ge.TIME: {
855
- const v = Q(s.getCellRaw(n, i)), C = Ft(v);
844
+ case pe.TIME: {
845
+ const v = Q(s.getCellRaw(n, i)), C = $t(v);
856
846
  m = {
857
847
  location: r,
858
848
  type: "datepicker",
@@ -864,8 +854,8 @@ let Ae = class extends Re {
864
854
  };
865
855
  break;
866
856
  }
867
- case ge.DATETIME: {
868
- const v = Q(s.getCellRaw(n, i)), C = Ft(v);
857
+ case pe.DATETIME: {
858
+ const v = Q(s.getCellRaw(n, i)), C = $t(v);
869
859
  m = {
870
860
  location: r,
871
861
  type: "datepicker",
@@ -877,10 +867,10 @@ let Ae = class extends Re {
877
867
  };
878
868
  break;
879
869
  }
880
- case ge.LIST:
881
- case ge.MULTIPLE_LIST: {
882
- const v = u.dropdownType === ge.MULTIPLE_LIST, C = async (D) => {
883
- const P = Gn(D), A = {
870
+ case pe.LIST:
871
+ case pe.MULTIPLE_LIST: {
872
+ const v = u.dropdownType === pe.MULTIPLE_LIST, C = async (D) => {
873
+ const P = qn(D), A = {
884
874
  unitId: o,
885
875
  subUnitId: a,
886
876
  range: {
@@ -896,13 +886,13 @@ let Ae = class extends Re {
896
886
  si: null
897
887
  }
898
888
  };
899
- return this._editorBridgeService.isVisible().visible && await this._commandService.executeCommand(pt.id, {
889
+ return this._editorBridgeService.isVisible().visible && await this._commandService.executeCommand(vt.id, {
900
890
  visible: !1,
901
891
  eventType: gt.Keyboard,
902
892
  unitId: o,
903
- keycode: ht.ESC
893
+ keycode: pt.ESC
904
894
  }), this._commandService.executeCommand(st.id, A), !v;
905
- }, w = (d == null ? void 0 : d.renderMode) === ie.CUSTOM || (d == null ? void 0 : d.renderMode) === void 0, I = u.getListWithColor(d, o, a), R = kt(s.getCellRaw(n, i)), T = () => {
895
+ }, w = (d == null ? void 0 : d.renderMode) === ie.CUSTOM || (d == null ? void 0 : d.renderMode) === void 0, I = u.getListWithColor(d, o, a), R = Ut(s.getCellRaw(n, i)), T = () => {
906
896
  this._commandService.executeCommand(Fe.id, {
907
897
  ruleId: d.uid
908
898
  }), h == null || h.dispose();
@@ -920,12 +910,12 @@ let Ae = class extends Re {
920
910
  onEdit: T,
921
911
  defaultValue: R,
922
912
  multiple: v,
923
- showEdit: (p = (y = this._configService.getConfig(Cn)) == null ? void 0 : y.showEditOnDropdown) != null ? p : !0
913
+ showEdit: (g = (y = this._configService.getConfig(wn)) == null ? void 0 : y.showEditOnDropdown) != null ? g : !0
924
914
  }
925
915
  };
926
916
  break;
927
917
  }
928
- case ge.CASCADE: {
918
+ case pe.CASCADE: {
929
919
  m = {
930
920
  type: "cascader",
931
921
  props: {
@@ -946,21 +936,21 @@ let Ae = class extends Re {
946
936
  si: null
947
937
  }
948
938
  };
949
- return this._editorBridgeService.isVisible().visible && this._commandService.syncExecuteCommand(pt.id, {
939
+ return this._editorBridgeService.isVisible().visible && this._commandService.syncExecuteCommand(vt.id, {
950
940
  visible: !1,
951
941
  eventType: gt.Keyboard,
952
942
  unitId: o,
953
- keycode: ht.ESC
943
+ keycode: pt.ESC
954
944
  }), this._commandService.syncExecuteCommand(st.id, w), !0;
955
945
  },
956
- defaultValue: kt(s.getCellRaw(n, i)).split("/"),
946
+ defaultValue: Ut(s.getCellRaw(n, i)).split("/"),
957
947
  options: JSON.parse((S = d.formula1) != null ? S : "[]")
958
948
  },
959
949
  location: r
960
950
  };
961
951
  break;
962
952
  }
963
- case ge.COLOR: {
953
+ case pe.COLOR: {
964
954
  m = {
965
955
  type: "color",
966
956
  props: {
@@ -981,14 +971,14 @@ let Ae = class extends Re {
981
971
  si: null
982
972
  }
983
973
  };
984
- return this._editorBridgeService.isVisible().visible && this._commandService.syncExecuteCommand(pt.id, {
974
+ return this._editorBridgeService.isVisible().visible && this._commandService.syncExecuteCommand(vt.id, {
985
975
  visible: !1,
986
976
  eventType: gt.Keyboard,
987
977
  unitId: o,
988
- keycode: ht.ESC
978
+ keycode: pt.ESC
989
979
  }), this._commandService.syncExecuteCommand(st.id, w), !0;
990
980
  },
991
- defaultValue: kt(s.getCellRaw(n, i))
981
+ defaultValue: Ut(s.getCellRaw(n, i))
992
982
  },
993
983
  location: r
994
984
  };
@@ -999,19 +989,19 @@ let Ae = class extends Re {
999
989
  }
1000
990
  if (h = this._cellDropdownManagerService.showDropdown(m), !h)
1001
991
  throw new Error("[DataValidationDropdownManagerService]: cannot show dropdown!");
1002
- const g = new Nr();
1003
- g.add(h), g.add({
992
+ const p = new Ur();
993
+ p.add(h), p.add({
1004
994
  dispose: () => {
1005
995
  var v, C;
1006
996
  (C = (v = this._activeDropdown) == null ? void 0 : v.onHide) == null || C.call(v);
1007
997
  }
1008
- }), this._currentPopup = g;
998
+ }), this._currentPopup = p;
1009
999
  }
1010
1000
  hideDropdown() {
1011
1001
  this._activeDropdown && (this._currentPopup && this._currentPopup.dispose(), this._currentPopup = null, this._activeDropdown = null, this._activeDropdown$.next(null));
1012
1002
  }
1013
1003
  showDataValidationDropdown(t, r, n, i, o) {
1014
- const a = this._univerInstanceService.getUnit(t, j.UNIVER_SHEET);
1004
+ const a = this._univerInstanceService.getUnit(t, Y.UNIVER_SHEET);
1015
1005
  if (!a)
1016
1006
  return;
1017
1007
  const l = a.getSheetBySheetId(r);
@@ -1038,26 +1028,26 @@ let Ae = class extends Re {
1038
1028
  });
1039
1029
  }
1040
1030
  };
1041
- Ae = lo([
1031
+ Ae = co([
1042
1032
  ue(0, le),
1043
- ue(1, M(ye)),
1044
- ue(2, ar),
1045
- ue(3, M(ee)),
1046
- ue(4, M(ur)),
1047
- ue(5, M(Ei)),
1048
- ue(6, M(ee)),
1033
+ ue(1, b(ye)),
1034
+ ue(2, sr),
1035
+ ue(3, b(ee)),
1036
+ ue(4, b(hr)),
1037
+ ue(5, b(Di)),
1038
+ ue(6, b(ee)),
1049
1039
  ue(7, J),
1050
- ue(8, vr),
1051
- ue(9, M(we)),
1052
- ue(10, ln)
1040
+ ue(8, mr),
1041
+ ue(9, b(we)),
1042
+ ue(10, cn)
1053
1043
  ], Ae);
1054
- const Mt = "DataValidationPanel", Fe = {
1044
+ const Dt = "DataValidationPanel", Fe = {
1055
1045
  id: "data-validation.operation.open-validation-panel",
1056
1046
  type: nt.OPERATION,
1057
1047
  handler(e, t) {
1058
1048
  if (!t)
1059
1049
  return !1;
1060
- const { ruleId: r, isAdd: n } = t, i = e.get(_e), o = e.get(vn), a = e.get(le), l = e.get(or), s = hr(a);
1050
+ const { ruleId: r, isAdd: n } = t, i = e.get(_e), o = e.get(fn), a = e.get(le), l = e.get(ar), s = pr(a);
1061
1051
  if (!s) return !1;
1062
1052
  const { unitId: d, subUnitId: u } = s, h = r ? o.getRuleById(d, u, r) : void 0;
1063
1053
  i.open(), i.setActiveRule(h && {
@@ -1066,28 +1056,28 @@ const Mt = "DataValidationPanel", Fe = {
1066
1056
  rule: h
1067
1057
  });
1068
1058
  const c = l.open({
1069
- id: Mt,
1059
+ id: Dt,
1070
1060
  header: { title: n ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
1071
- children: { label: Mt },
1061
+ children: { label: Dt },
1072
1062
  width: 312,
1073
1063
  onClose: () => i.close()
1074
1064
  });
1075
1065
  return i.setCloseDisposable(c), !0;
1076
1066
  }
1077
- }, In = {
1067
+ }, Rn = {
1078
1068
  id: "data-validation.operation.close-validation-panel",
1079
1069
  type: nt.OPERATION,
1080
1070
  handler(e) {
1081
1071
  return e.get(_e).close(), !0;
1082
1072
  }
1083
- }, Rr = {
1073
+ }, yr = {
1084
1074
  id: "data-validation.operation.toggle-validation-panel",
1085
1075
  type: nt.OPERATION,
1086
1076
  handler(e) {
1087
1077
  const t = e.get(J), r = e.get(_e);
1088
- return r.open(), r.isOpen ? t.executeCommand(In.id) : t.executeCommand(Fe.id), !0;
1078
+ return r.open(), r.isOpen ? t.executeCommand(Rn.id) : t.executeCommand(Fe.id), !0;
1089
1079
  }
1090
- }, At = {
1080
+ }, kt = {
1091
1081
  type: nt.OPERATION,
1092
1082
  id: "sheet.operation.show-data-validation-dropdown",
1093
1083
  handler(e, t) {
@@ -1101,36 +1091,36 @@ const Mt = "DataValidationPanel", Fe = {
1101
1091
  a
1102
1092
  ), !0;
1103
1093
  }
1104
- }, yr = {
1094
+ }, Mr = {
1105
1095
  type: nt.OPERATION,
1106
1096
  id: "sheet.operation.hide-data-validation-dropdown",
1107
1097
  handler(e, t) {
1108
1098
  return t ? (e.get(Ae).hideDropdown(), !0) : !1;
1109
1099
  }
1110
- }, Lt = {
1100
+ }, Nt = {
1111
1101
  type: nt.COMMAND,
1112
1102
  id: "data-validation.command.addRuleAndOpen",
1113
1103
  handler(e) {
1114
- const t = e.get(le), r = hr(t);
1104
+ const t = e.get(le), r = pr(t);
1115
1105
  if (!r) return !1;
1116
- const { workbook: n, worksheet: i } = r, o = Jn(e), a = e.get(J), l = n.getUnitId(), s = i.getSheetId(), d = {
1106
+ const { workbook: n, worksheet: i } = r, o = er(e), a = e.get(J), l = n.getUnitId(), s = i.getSheetId(), d = {
1117
1107
  rule: o,
1118
1108
  unitId: l,
1119
1109
  subUnitId: s
1120
1110
  };
1121
- return a.syncExecuteCommand(un.id, d) ? (a.syncExecuteCommand(Fe.id, {
1111
+ return a.syncExecuteCommand(pn.id, d) ? (a.syncExecuteCommand(Fe.id, {
1122
1112
  ruleId: o.uid,
1123
1113
  isAdd: !0
1124
1114
  }), !0) : !1;
1125
1115
  }
1126
1116
  };
1127
- var uo = Object.getOwnPropertyDescriptor, ho = (e, t, r, n) => {
1128
- for (var i = n > 1 ? void 0 : n ? uo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1117
+ var ho = Object.getOwnPropertyDescriptor, po = (e, t, r, n) => {
1118
+ for (var i = n > 1 ? void 0 : n ? ho(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1129
1119
  (a = e[o]) && (i = a(i) || i);
1130
1120
  return i;
1131
1121
  }, $e = (e, t) => (r, n) => t(r, n, e);
1132
- const be = "SHEET_DATA_VALIDATION_ALERT";
1133
- let ct = class extends Re {
1122
+ const Me = "SHEET_DATA_VALIDATION_ALERT";
1123
+ let ut = class extends Re {
1134
1124
  constructor(e, t, r, n, i, o) {
1135
1125
  super(), this._hoverManagerService = e, this._cellAlertManagerService = t, this._univerInstanceService = r, this._localeService = n, this._zenZoneService = i, this._dataValidationModel = o, this._init();
1136
1126
  }
@@ -1138,61 +1128,61 @@ let ct = class extends Re {
1138
1128
  this._initCellAlertPopup(), this._initZenService();
1139
1129
  }
1140
1130
  _initCellAlertPopup() {
1141
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(lr(100)).subscribe((e) => {
1131
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(dr(100)).subscribe((e) => {
1142
1132
  var t;
1143
1133
  if (e) {
1144
- const r = this._univerInstanceService.getUnit(e.location.unitId, j.UNIVER_SHEET), n = r.getSheetBySheetId(e.location.subUnitId);
1134
+ const r = this._univerInstanceService.getUnit(e.location.unitId, Y.UNIVER_SHEET), n = r.getSheetBySheetId(e.location.subUnitId);
1145
1135
  if (!n) return;
1146
1136
  const i = this._dataValidationModel.getRuleByLocation(e.location.unitId, e.location.subUnitId, e.location.row, e.location.col);
1147
1137
  if (!i) {
1148
- this._cellAlertManagerService.removeAlert(be);
1138
+ this._cellAlertManagerService.removeAlert(Me);
1149
1139
  return;
1150
1140
  }
1151
1141
  if (this._dataValidationModel.validator(i, { ...e.location, workbook: r, worksheet: n }) === je.INVALID) {
1152
- const a = this._cellAlertManagerService.currentAlert.get(be), l = (t = a == null ? void 0 : a.alert) == null ? void 0 : t.location;
1142
+ const a = this._cellAlertManagerService.currentAlert.get(Me), l = (t = a == null ? void 0 : a.alert) == null ? void 0 : t.location;
1153
1143
  if (l && l.row === e.location.row && l.col === e.location.col && l.subUnitId === e.location.subUnitId && l.unitId === e.location.unitId) {
1154
- this._cellAlertManagerService.removeAlert(be);
1144
+ this._cellAlertManagerService.removeAlert(Me);
1155
1145
  return;
1156
1146
  }
1157
1147
  const s = this._dataValidationModel.getValidator(i.type);
1158
1148
  if (!s) {
1159
- this._cellAlertManagerService.removeAlert(be);
1149
+ this._cellAlertManagerService.removeAlert(Me);
1160
1150
  return;
1161
1151
  }
1162
1152
  this._cellAlertManagerService.showAlert({
1163
- type: Oi.ERROR,
1153
+ type: Ti.ERROR,
1164
1154
  title: this._localeService.t("dataValidation.error.title"),
1165
1155
  message: s == null ? void 0 : s.getRuleFinalError(i, e.location),
1166
1156
  location: e.location,
1167
1157
  width: 200,
1168
1158
  height: 74,
1169
- key: be
1159
+ key: Me
1170
1160
  });
1171
1161
  return;
1172
1162
  }
1173
1163
  }
1174
- this._cellAlertManagerService.removeAlert(be);
1164
+ this._cellAlertManagerService.removeAlert(Me);
1175
1165
  }));
1176
1166
  }
1177
1167
  _initZenService() {
1178
1168
  this.disposeWithMe(this._zenZoneService.visible$.subscribe((e) => {
1179
- e && this._cellAlertManagerService.removeAlert(be);
1169
+ e && this._cellAlertManagerService.removeAlert(Me);
1180
1170
  }));
1181
1171
  }
1182
1172
  };
1183
- ct = ho([
1184
- $e(0, M(Di)),
1185
- $e(1, M(Vi)),
1173
+ ut = po([
1174
+ $e(0, b(Vi)),
1175
+ $e(1, b(Oi)),
1186
1176
  $e(2, le),
1187
- $e(3, M(se)),
1188
- $e(4, ar),
1189
- $e(5, M(ee))
1190
- ], ct);
1191
- var go = Object.getOwnPropertyDescriptor, po = (e, t, r, n) => {
1177
+ $e(3, b(se)),
1178
+ $e(4, sr),
1179
+ $e(5, b(ee))
1180
+ ], ut);
1181
+ var go = Object.getOwnPropertyDescriptor, vo = (e, t, r, n) => {
1192
1182
  for (var i = n > 1 ? void 0 : n ? go(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1193
1183
  (a = e[o]) && (i = a(i) || i);
1194
1184
  return i;
1195
- }, xt = (e, t) => (r, n) => t(r, n, e);
1185
+ }, Bt = (e, t) => (r, n) => t(r, n, e);
1196
1186
  let qe = class extends Re {
1197
1187
  constructor(e, t, r) {
1198
1188
  super(), this._autoFillService = e, this._sheetDataValidationModel = t, this._injector = r, this._initAutoFill();
@@ -1200,24 +1190,24 @@ let qe = class extends Re {
1200
1190
  // eslint-disable-next-line max-lines-per-function
1201
1191
  _initAutoFill() {
1202
1192
  const e = () => ({ redos: [], undos: [] }), t = (n, i) => {
1203
- const { source: o, target: a, unitId: l, subUnitId: s } = n, d = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = nn([o, a]), [h, c] = u.ranges, { mapFunc: m } = u, g = {
1193
+ const { source: o, target: a, unitId: l, subUnitId: s } = n, d = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = on([o, a]), [h, c] = u.ranges, { mapFunc: m } = u, p = {
1204
1194
  row: h.startRow,
1205
1195
  col: h.startColumn
1206
- }, b = Pi(h, c), y = new wt(), p = /* @__PURE__ */ new Set();
1207
- b.forEach((I) => {
1196
+ }, M = Ai(h, c), y = new Rt(), g = /* @__PURE__ */ new Set();
1197
+ M.forEach((I) => {
1208
1198
  const R = I.repeatStartCell, T = I.relativeRange, N = {
1209
- startRow: g.row,
1210
- startColumn: g.col,
1211
- endColumn: g.col,
1212
- endRow: g.row
1199
+ startRow: p.row,
1200
+ startColumn: p.col,
1201
+ endColumn: p.col,
1202
+ endRow: p.row
1213
1203
  }, D = {
1214
1204
  startRow: R.row,
1215
1205
  startColumn: R.col,
1216
1206
  endColumn: R.col,
1217
1207
  endRow: R.row
1218
1208
  };
1219
- Fr.foreach(T, (P, A) => {
1220
- const L = Rt.getPositionRange(
1209
+ xr.foreach(T, (P, A) => {
1210
+ const L = yt.getPositionRange(
1221
1211
  {
1222
1212
  startRow: P,
1223
1213
  startColumn: A,
@@ -1225,7 +1215,7 @@ let qe = class extends Re {
1225
1215
  endRow: P
1226
1216
  },
1227
1217
  N
1228
- ), { row: V, col: F } = m(L.startRow, L.startColumn), x = this._sheetDataValidationModel.getRuleIdByLocation(l, s, V, F) || "", Y = Rt.getPositionRange(
1218
+ ), { row: V, col: F } = m(L.startRow, L.startColumn), x = this._sheetDataValidationModel.getRuleIdByLocation(l, s, V, F) || "", X = yt.getPositionRange(
1229
1219
  {
1230
1220
  startRow: P,
1231
1221
  startColumn: A,
@@ -1233,19 +1223,19 @@ let qe = class extends Re {
1233
1223
  endRow: P
1234
1224
  },
1235
1225
  D
1236
- ), { row: Z, col: X } = m(Y.startRow, Y.startColumn);
1237
- y.setValue(Z, X, x), p.add(x);
1226
+ ), { row: Z, col: z } = m(X.startRow, X.startColumn);
1227
+ y.setValue(Z, z, x), g.add(x);
1238
1228
  });
1239
1229
  });
1240
- const S = Array.from(p).map((I) => ({ id: I, ranges: Gt(y, (R) => R === I) }));
1230
+ const S = Array.from(g).map((I) => ({ id: I, ranges: qt(y, (R) => R === I) }));
1241
1231
  d.addRangeRules(S);
1242
- const v = d.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: C, undoMutations: w } = Zt(l, s, v, this._injector, "patched", i === ot.ONLY_FORMAT);
1232
+ const v = d.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: C, undoMutations: w } = Jt(l, s, v, this._injector, "patched", i === ot.ONLY_FORMAT);
1243
1233
  return {
1244
1234
  undos: w,
1245
1235
  redos: C
1246
1236
  };
1247
1237
  }, r = {
1248
- id: Qn,
1238
+ id: tr,
1249
1239
  onBeforeFillData: (n) => {
1250
1240
  const { source: i, unitId: o, subUnitId: a } = n;
1251
1241
  for (const l of i.rows)
@@ -1264,16 +1254,16 @@ let qe = class extends Re {
1264
1254
  this.disposeWithMe(this._autoFillService.addHook(r));
1265
1255
  }
1266
1256
  };
1267
- qe = po([
1268
- xt(0, Ti),
1269
- xt(1, M(ee)),
1270
- xt(2, M(we))
1257
+ qe = vo([
1258
+ Bt(0, Pi),
1259
+ Bt(1, b(ee)),
1260
+ Bt(2, b(we))
1271
1261
  ], qe);
1272
- var vo = Object.getOwnPropertyDescriptor, mo = (e, t, r, n) => {
1273
- for (var i = n > 1 ? void 0 : n ? vo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1262
+ var mo = Object.getOwnPropertyDescriptor, fo = (e, t, r, n) => {
1263
+ for (var i = n > 1 ? void 0 : n ? mo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1274
1264
  (a = e[o]) && (i = a(i) || i);
1275
1265
  return i;
1276
- }, $t = (e, t) => (r, n) => t(r, n, e);
1266
+ }, Ht = (e, t) => (r, n) => t(r, n, e);
1277
1267
  let Je = class extends Re {
1278
1268
  constructor(t, r, n) {
1279
1269
  super();
@@ -1282,22 +1272,22 @@ let Je = class extends Re {
1282
1272
  }
1283
1273
  _initCopyPaste() {
1284
1274
  this._sheetClipboardService.addClipboardHook({
1285
- id: Qn,
1275
+ id: tr,
1286
1276
  onBeforeCopy: (t, r, n) => this._collect(t, r, n),
1287
1277
  onPasteCells: (t, r, n, i) => {
1288
- const { copyType: o = An.COPY, pasteType: a } = i, { range: l } = t || {}, { range: s, unitId: d, subUnitId: u } = r;
1278
+ const { copyType: o = kn.COPY, pasteType: a } = i, { range: l } = t || {}, { range: s, unitId: d, subUnitId: u } = r;
1289
1279
  return this._generateMutations(s, { copyType: o, pasteType: a, copyRange: l, unitId: d, subUnitId: u });
1290
1280
  }
1291
1281
  });
1292
1282
  }
1293
1283
  _collect(t, r, n) {
1294
- const i = new wt();
1284
+ const i = new Rt();
1295
1285
  this._copyInfo = {
1296
1286
  unitId: t,
1297
1287
  subUnitId: r,
1298
1288
  matrix: i
1299
1289
  };
1300
- const o = this._injector.invoke((s) => Ri(n, s, t, r));
1290
+ const o = this._injector.invoke((s) => yi(n, s, t, r));
1301
1291
  if (!o)
1302
1292
  return;
1303
1293
  const { rows: a, cols: l } = o;
@@ -1312,40 +1302,40 @@ let Je = class extends Re {
1312
1302
  _generateMutations(t, r) {
1313
1303
  if (!this._copyInfo)
1314
1304
  return { redos: [], undos: [] };
1315
- if (r.copyType === An.CUT)
1305
+ if (r.copyType === kn.CUT)
1316
1306
  return this._copyInfo = null, { redos: [], undos: [] };
1317
1307
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !r.copyRange)
1318
1308
  return { redos: [], undos: [] };
1319
1309
  if ([
1320
- vt.SPECIAL_PASTE_COL_WIDTH,
1321
- vt.SPECIAL_PASTE_VALUE,
1322
- vt.SPECIAL_PASTE_FORMAT,
1323
- vt.SPECIAL_PASTE_FORMULA
1310
+ mt.SPECIAL_PASTE_COL_WIDTH,
1311
+ mt.SPECIAL_PASTE_VALUE,
1312
+ mt.SPECIAL_PASTE_FORMAT,
1313
+ mt.SPECIAL_PASTE_FORMULA
1324
1314
  ].includes(r.pasteType))
1325
1315
  return { redos: [], undos: [] };
1326
1316
  const { unitId: i, subUnitId: o } = this._copyInfo;
1327
1317
  if (r.unitId !== i || o !== r.subUnitId) {
1328
- const a = this._sheetDataValidationModel.getRuleObjectMatrix(r.unitId, r.subUnitId).clone(), l = new wt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = nn([r.copyRange, t]), c = Ln(d, u, !0), m = /* @__PURE__ */ new Map();
1329
- c.forEach(({ startRange: p }) => {
1318
+ const a = this._sheetDataValidationModel.getRuleObjectMatrix(r.unitId, r.subUnitId).clone(), l = new Rt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = on([r.copyRange, t]), c = Nn(d, u, !0), m = /* @__PURE__ */ new Map();
1319
+ c.forEach(({ startRange: g }) => {
1330
1320
  var S;
1331
1321
  (S = this._copyInfo) == null || S.matrix.forValue((v, C, w) => {
1332
- const I = Rt.getPositionRange(
1322
+ const I = yt.getPositionRange(
1333
1323
  {
1334
1324
  startRow: v,
1335
1325
  endRow: v,
1336
1326
  startColumn: C,
1337
1327
  endColumn: C
1338
1328
  },
1339
- p
1329
+ g
1340
1330
  ), R = `${o}-${w}`, T = this._sheetDataValidationModel.getRuleById(i, o, w);
1341
1331
  !this._sheetDataValidationModel.getRuleById(r.unitId, r.subUnitId, R) && T && m.set(R, { ...T, uid: R });
1342
1332
  const { row: N, col: D } = h(I.startRow, I.startColumn);
1343
1333
  s.add(R), l.setValue(N, D, R);
1344
1334
  });
1345
1335
  });
1346
- const g = Array.from(s).map((p) => ({ id: p, ranges: Gt(l, (S) => S === p) }));
1347
- a.addRangeRules(g);
1348
- const { redoMutations: b, undoMutations: y } = Zt(
1336
+ const p = Array.from(s).map((g) => ({ id: g, ranges: qt(l, (S) => S === g) }));
1337
+ a.addRangeRules(p);
1338
+ const { redoMutations: M, undoMutations: y } = Jt(
1349
1339
  r.unitId,
1350
1340
  r.subUnitId,
1351
1341
  a.diffWithAddition(this._sheetDataValidationModel.getRules(r.unitId, r.subUnitId), m.values()),
@@ -1354,15 +1344,15 @@ let Je = class extends Re {
1354
1344
  !1
1355
1345
  );
1356
1346
  return {
1357
- redos: b,
1347
+ redos: M,
1358
1348
  undos: y
1359
1349
  };
1360
1350
  } else {
1361
- const a = this._sheetDataValidationModel.getRuleObjectMatrix(i, o).clone(), l = new wt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = nn([r.copyRange, t]);
1362
- Ln(d, u, !0).forEach(({ startRange: y }) => {
1363
- var p;
1364
- (p = this._copyInfo) == null || p.matrix.forValue((S, v, C) => {
1365
- const w = Rt.getPositionRange(
1351
+ const a = this._sheetDataValidationModel.getRuleObjectMatrix(i, o).clone(), l = new Rt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = on([r.copyRange, t]);
1352
+ Nn(d, u, !0).forEach(({ startRange: y }) => {
1353
+ var g;
1354
+ (g = this._copyInfo) == null || g.matrix.forValue((S, v, C) => {
1355
+ const w = yt.getPositionRange(
1366
1356
  {
1367
1357
  startRow: S,
1368
1358
  endRow: S,
@@ -1374,9 +1364,9 @@ let Je = class extends Re {
1374
1364
  l.setValue(I, R, C), s.add(C);
1375
1365
  });
1376
1366
  });
1377
- const m = Array.from(s).map((y) => ({ id: y, ranges: Gt(l, (p) => p === y) }));
1367
+ const m = Array.from(s).map((y) => ({ id: y, ranges: qt(l, (g) => g === y) }));
1378
1368
  a.addRangeRules(m);
1379
- const { redoMutations: g, undoMutations: b } = Zt(
1369
+ const { redoMutations: p, undoMutations: M } = Jt(
1380
1370
  i,
1381
1371
  o,
1382
1372
  a.diff(this._sheetDataValidationModel.getRules(i, o)),
@@ -1385,22 +1375,22 @@ let Je = class extends Re {
1385
1375
  !1
1386
1376
  );
1387
1377
  return {
1388
- redos: g,
1389
- undos: b
1378
+ redos: p,
1379
+ undos: M
1390
1380
  };
1391
1381
  }
1392
1382
  }
1393
1383
  };
1394
- Je = mo([
1395
- $t(0, Ai),
1396
- $t(1, M(ee)),
1397
- $t(2, M(we))
1384
+ Je = fo([
1385
+ Ht(0, Li),
1386
+ Ht(1, b(ee)),
1387
+ Ht(2, b(we))
1398
1388
  ], Je);
1399
- var fo = Object.getOwnPropertyDescriptor, _o = (e, t, r, n) => {
1400
- for (var i = n > 1 ? void 0 : n ? fo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1389
+ var _o = Object.getOwnPropertyDescriptor, So = (e, t, r, n) => {
1390
+ for (var i = n > 1 ? void 0 : n ? _o(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1401
1391
  (a = e[o]) && (i = a(i) || i);
1402
1392
  return i;
1403
- }, Bt = (e, t) => (r, n) => t(r, n, e);
1393
+ }, Wt = (e, t) => (r, n) => t(r, n, e);
1404
1394
  let Qe = class extends Re {
1405
1395
  constructor(e, t, r) {
1406
1396
  super(), this._localeService = e, this._commandService = t, this._sheetPermissionCheckController = r, this._commandExecutedListener();
@@ -1408,82 +1398,82 @@ let Qe = class extends Re {
1408
1398
  _commandExecutedListener() {
1409
1399
  this.disposeWithMe(
1410
1400
  this._commandService.beforeCommandExecuted((e) => {
1411
- e.id === un.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1412
- workbookTypes: [tn],
1413
- rangeTypes: [en],
1414
- worksheetTypes: [Jt, Qt]
1415
- }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"))), e.id === er.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1416
- workbookTypes: [tn],
1417
- rangeTypes: [en],
1418
- worksheetTypes: [Jt, Qt]
1401
+ e.id === pn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1402
+ workbookTypes: [rn],
1403
+ rangeTypes: [nn],
1404
+ worksheetTypes: [en, tn]
1405
+ }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"))), e.id === nr.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1406
+ workbookTypes: [rn],
1407
+ rangeTypes: [nn],
1408
+ worksheetTypes: [en, tn]
1419
1409
  }, e.params.ranges) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr")));
1420
1410
  })
1421
1411
  );
1422
1412
  }
1423
1413
  };
1424
- Qe = _o([
1425
- Bt(0, M(se)),
1426
- Bt(1, J),
1427
- Bt(2, M(yi))
1414
+ Qe = So([
1415
+ Wt(0, b(se)),
1416
+ Wt(1, J),
1417
+ Wt(2, b(Mi))
1428
1418
  ], Qe);
1429
- const br = "data-validation-single", Mr = "sheet.menu.data-validation";
1430
- function So(e) {
1419
+ const br = "data-validation-single", Er = "sheet.menu.data-validation";
1420
+ function Co(e) {
1431
1421
  return {
1432
- id: Mr,
1433
- type: gn.SUBITEMS,
1422
+ id: Er,
1423
+ type: vn.SUBITEMS,
1434
1424
  icon: br,
1435
1425
  tooltip: "dataValidation.title",
1436
- hidden$: ai(e, j.UNIVER_SHEET),
1437
- disabled$: Li(e, { workbookTypes: [tn], worksheetTypes: [Qt, Jt], rangeTypes: [en] })
1426
+ hidden$: si(e, Y.UNIVER_SHEET),
1427
+ disabled$: ki(e, { workbookTypes: [rn], worksheetTypes: [tn, en], rangeTypes: [nn] })
1438
1428
  };
1439
1429
  }
1440
- function Co(e) {
1430
+ function Io(e) {
1441
1431
  return {
1442
1432
  id: Fe.id,
1443
1433
  title: "dataValidation.panel.title",
1444
- type: gn.BUTTON
1434
+ type: vn.BUTTON
1445
1435
  };
1446
1436
  }
1447
- function Io(e) {
1437
+ function wo(e) {
1448
1438
  return {
1449
- id: Lt.id,
1439
+ id: Nt.id,
1450
1440
  title: "dataValidation.panel.add",
1451
- type: gn.BUTTON
1441
+ type: vn.BUTTON
1452
1442
  };
1453
1443
  }
1454
- const wo = {
1455
- [si.FORMULAS_INSERT]: {
1456
- [Mr]: {
1444
+ const Ro = {
1445
+ [li.FORMULAS_INSERT]: {
1446
+ [Er]: {
1457
1447
  order: 9,
1458
- menuItemFactory: So,
1448
+ menuItemFactory: Co,
1459
1449
  [Fe.id]: {
1460
1450
  order: 0,
1461
- menuItemFactory: Co
1451
+ menuItemFactory: Io
1462
1452
  },
1463
- [Lt.id]: {
1453
+ [Nt.id]: {
1464
1454
  order: 1,
1465
- menuItemFactory: Io
1455
+ menuItemFactory: wo
1466
1456
  }
1467
1457
  }
1468
1458
  }
1469
1459
  };
1470
- var Ro = Object.getOwnPropertyDescriptor, Er = (e, t, r, n) => {
1471
- for (var i = n > 1 ? void 0 : n ? Ro(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1460
+ var yo = Object.getOwnPropertyDescriptor, Dr = (e, t, r, n) => {
1461
+ for (var i = n > 1 ? void 0 : n ? yo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1472
1462
  (a = e[o]) && (i = a(i) || i);
1473
1463
  return i;
1474
- }, z = (e, t) => (r, n) => t(r, n, e);
1475
- const Dr = {
1464
+ }, K = (e, t) => (r, n) => t(r, n, e);
1465
+ const Vr = {
1476
1466
  tr: {
1477
1467
  size: 6,
1478
1468
  color: "#fe4b4b"
1479
1469
  }
1480
1470
  };
1481
- let et = class extends dn {
1471
+ let et = class extends un {
1482
1472
  constructor(e, t, r, n, i, o, a, l, s, d, u) {
1483
1473
  super(), this._commandService = e, this._menuManagerService = t, this._renderManagerService = r, this._univerInstanceService = n, this._autoHeightController = i, this._dropdownManagerService = o, this._sheetDataValidationModel = a, this._dataValidatorRegistryService = l, this._sheetInterceptorService = s, this._dataValidationCacheService = d, this._editorBridgeService = u, this._initMenu(), this._initDropdown(), this._initViewModelIntercept(), this._initAutoHeight();
1484
1474
  }
1485
1475
  _initMenu() {
1486
- this._menuManagerService.mergeMenu(wo);
1476
+ this._menuManagerService.mergeMenu(Ro);
1487
1477
  }
1488
1478
  _initDropdown() {
1489
1479
  this._editorBridgeService && this.disposeWithMe(this._editorBridgeService.visible$.subscribe((e) => {
@@ -1531,36 +1521,36 @@ let et = class extends dn {
1531
1521
  this._sheetInterceptorService.intercept(
1532
1522
  gr.CELL_CONTENT,
1533
1523
  {
1534
- effect: jn.Style,
1524
+ effect: Xn.Style,
1535
1525
  // must be after numfmt
1536
- priority: pr.DATA_VALIDATION,
1526
+ priority: vr.DATA_VALIDATION,
1537
1527
  // eslint-disable-next-line max-lines-per-function, complexity
1538
1528
  handler: (e, t, r) => {
1539
- var p, S, v, C, w;
1529
+ var g, S, v, C, w;
1540
1530
  const { row: n, col: i, unitId: o, subUnitId: a, workbook: l, worksheet: s } = t, d = this._sheetDataValidationModel.getRuleIdByLocation(o, a, n, i);
1541
1531
  if (!d)
1542
1532
  return r(e);
1543
1533
  const u = this._sheetDataValidationModel.getRuleById(o, a, d);
1544
1534
  if (!u)
1545
1535
  return r(e);
1546
- const h = (p = this._dataValidationCacheService.getValue(o, a, n, i)) != null ? p : je.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), m = t.rawData;
1547
- let g;
1548
- const b = {
1536
+ const h = (g = this._dataValidationCacheService.getValue(o, a, n, i)) != null ? g : je.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), m = t.rawData;
1537
+ let p;
1538
+ const M = {
1549
1539
  get value() {
1550
1540
  var I;
1551
- return g !== void 0 || (g = (I = Q(m)) != null ? I : null), g;
1541
+ return p !== void 0 || (p = (I = Q(m)) != null ? I : null), p;
1552
1542
  }
1553
1543
  }, y = {
1554
1544
  get value() {
1555
1545
  var I;
1556
- return `${(I = b.value) != null ? I : ""}`;
1546
+ return `${(I = M.value) != null ? I : ""}`;
1557
1547
  }
1558
1548
  };
1559
1549
  return r({
1560
1550
  ...e,
1561
1551
  markers: {
1562
1552
  ...e == null ? void 0 : e.markers,
1563
- ...h === je.INVALID ? Dr : null
1553
+ ...h === je.INVALID ? Vr : null
1564
1554
  },
1565
1555
  customRender: [
1566
1556
  ...(S = e == null ? void 0 : e.customRender) != null ? S : [],
@@ -1568,7 +1558,7 @@ let et = class extends dn {
1568
1558
  ],
1569
1559
  fontRenderExtension: {
1570
1560
  ...e == null ? void 0 : e.fontRenderExtension,
1571
- isSkip: ((v = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : v.isSkip) || ((C = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : C.call(c, u, b.value, t))
1561
+ isSkip: ((v = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : v.isSkip) || ((C = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : C.call(c, u, M.value, t))
1572
1562
  },
1573
1563
  interceptorStyle: {
1574
1564
  ...e == null ? void 0 : e.interceptorStyle,
@@ -1581,7 +1571,7 @@ let et = class extends dn {
1581
1571
  },
1582
1572
  interceptorAutoHeight: () => {
1583
1573
  var N, D, P, A, L, V;
1584
- const I = (D = (N = this._renderManagerService.getRenderById(o)) == null ? void 0 : N.with(yt).getSkeletonParam(a)) == null ? void 0 : D.skeleton;
1574
+ const I = (D = (N = this._renderManagerService.getRenderById(o)) == null ? void 0 : N.with(bt).getSkeletonParam(a)) == null ? void 0 : D.skeleton;
1585
1575
  if (!I)
1586
1576
  return;
1587
1577
  const R = I.worksheet.getMergedCell(n, i), T = {
@@ -1599,7 +1589,7 @@ let et = class extends dn {
1599
1589
  },
1600
1590
  interceptorAutoWidth: () => {
1601
1591
  var N, D, P, A, L, V;
1602
- const I = (D = (N = this._renderManagerService.getRenderById(o)) == null ? void 0 : N.with(yt).getSkeletonParam(a)) == null ? void 0 : D.skeleton;
1592
+ const I = (D = (N = this._renderManagerService.getRenderById(o)) == null ? void 0 : N.with(bt).getSkeletonParam(a)) == null ? void 0 : D.skeleton;
1603
1593
  if (!I)
1604
1594
  return;
1605
1595
  const R = I.worksheet.getMergedCell(n, i), T = {
@@ -1626,8 +1616,8 @@ let et = class extends dn {
1626
1616
  this._sheetDataValidationModel.ruleChange$.pipe(
1627
1617
  // patched data-validation change don't need to re-calc row height
1628
1618
  // re-calc of row height will be triggered precisely by the origin command
1629
- mn((e) => e.source === "command"),
1630
- dr(100)
1619
+ _n((e) => e.source === "command"),
1620
+ cr(100)
1631
1621
  ).subscribe((e) => {
1632
1622
  if (e.length === 0)
1633
1623
  return;
@@ -1637,25 +1627,25 @@ let et = class extends dn {
1637
1627
  (r.rule.type === G.LIST_MULTIPLE || r.rule.type === G.LIST) && (n = r.rule) != null && n.ranges && t.push(...r.rule.ranges);
1638
1628
  }), t.length) {
1639
1629
  const r = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1640
- Yn(r.redos, this._commandService);
1630
+ zn(r.redos, this._commandService);
1641
1631
  }
1642
1632
  });
1643
1633
  }
1644
1634
  };
1645
- et = Er([
1646
- z(0, J),
1647
- z(1, li),
1648
- z(2, Ne),
1649
- z(3, le),
1650
- z(4, M(mr)),
1651
- z(5, M(Ae)),
1652
- z(6, M(ee)),
1653
- z(7, M(ye)),
1654
- z(8, M(fn)),
1655
- z(9, M(tr)),
1656
- z(10, xr(vr))
1635
+ et = Dr([
1636
+ K(0, J),
1637
+ K(1, di),
1638
+ K(2, Ne),
1639
+ K(3, le),
1640
+ K(4, b(fr)),
1641
+ K(5, b(Ae)),
1642
+ K(6, b(ee)),
1643
+ K(7, b(ye)),
1644
+ K(8, b(Sn)),
1645
+ K(9, b(rr)),
1646
+ K(10, $r(mr))
1657
1647
  ], et);
1658
- let Un = class extends dn {
1648
+ let xn = class extends un {
1659
1649
  constructor(e, t, r, n, i, o, a) {
1660
1650
  super(), this._commandService = e, this._renderManagerService = t, this._autoHeightController = r, this._dataValidatorRegistryService = n, this._sheetInterceptorService = i, this._sheetDataValidationModel = o, this._dataValidationCacheService = a, this._initViewModelIntercept(), this._initAutoHeight();
1661
1651
  }
@@ -1664,36 +1654,36 @@ let Un = class extends dn {
1664
1654
  this._sheetInterceptorService.intercept(
1665
1655
  gr.CELL_CONTENT,
1666
1656
  {
1667
- effect: jn.Style,
1657
+ effect: Xn.Style,
1668
1658
  // must be after numfmt
1669
- priority: pr.DATA_VALIDATION,
1659
+ priority: vr.DATA_VALIDATION,
1670
1660
  // eslint-disable-next-line complexity
1671
1661
  handler: (e, t, r) => {
1672
- var y, p, S, v, C;
1662
+ var y, g, S, v, C;
1673
1663
  const { row: n, col: i, unitId: o, subUnitId: a, workbook: l, worksheet: s } = t, d = this._sheetDataValidationModel.getRuleIdByLocation(o, a, n, i);
1674
1664
  if (!d)
1675
1665
  return r(e);
1676
1666
  const u = this._sheetDataValidationModel.getRuleById(o, a, d);
1677
1667
  if (!u)
1678
1668
  return r(e);
1679
- const h = (y = this._dataValidationCacheService.getValue(o, a, n, i)) != null ? y : je.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), m = s.getCellRaw(n, i), g = Q(m), b = `${g != null ? g : ""}`;
1669
+ const h = (y = this._dataValidationCacheService.getValue(o, a, n, i)) != null ? y : je.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), m = s.getCellRaw(n, i), p = Q(m), M = `${p != null ? p : ""}`;
1680
1670
  return r({
1681
1671
  ...e,
1682
1672
  markers: {
1683
1673
  ...e == null ? void 0 : e.markers,
1684
- ...h === je.INVALID ? Dr : null
1674
+ ...h === je.INVALID ? Vr : null
1685
1675
  },
1686
1676
  customRender: [
1687
- ...(p = e == null ? void 0 : e.customRender) != null ? p : [],
1677
+ ...(g = e == null ? void 0 : e.customRender) != null ? g : [],
1688
1678
  ...c != null && c.canvasRender ? [c.canvasRender] : []
1689
1679
  ],
1690
1680
  fontRenderExtension: {
1691
1681
  ...e == null ? void 0 : e.fontRenderExtension,
1692
- isSkip: ((S = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : S.isSkip) || ((v = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : v.call(c, u, g, t))
1682
+ isSkip: ((S = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : S.isSkip) || ((v = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : v.call(c, u, p, t))
1693
1683
  },
1694
1684
  interceptorStyle: {
1695
1685
  ...e == null ? void 0 : e.interceptorStyle,
1696
- ...c == null ? void 0 : c.getExtraStyle(u, b, {
1686
+ ...c == null ? void 0 : c.getExtraStyle(u, M, {
1697
1687
  get style() {
1698
1688
  const w = l.getStyles();
1699
1689
  return (typeof (e == null ? void 0 : e.s) == "string" ? w.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {};
@@ -1702,7 +1692,7 @@ let Un = class extends dn {
1702
1692
  },
1703
1693
  interceptorAutoHeight: () => {
1704
1694
  var T, N, D, P, A, L;
1705
- const w = (N = (T = this._renderManagerService.getRenderById(o)) == null ? void 0 : T.with(yt).getSkeletonParam(a)) == null ? void 0 : N.skeleton;
1695
+ const w = (N = (T = this._renderManagerService.getRenderById(o)) == null ? void 0 : T.with(bt).getSkeletonParam(a)) == null ? void 0 : N.skeleton;
1706
1696
  if (!w)
1707
1697
  return;
1708
1698
  const I = w.worksheet.getMergedCell(n, i), R = {
@@ -1727,8 +1717,8 @@ let Un = class extends dn {
1727
1717
  }
1728
1718
  _initAutoHeight() {
1729
1719
  this._sheetDataValidationModel.ruleChange$.pipe(
1730
- mn((e) => e.source === "command"),
1731
- dr(16)
1720
+ _n((e) => e.source === "command"),
1721
+ cr(16)
1732
1722
  ).subscribe((e) => {
1733
1723
  const t = [];
1734
1724
  if (e.forEach((r) => {
@@ -1736,26 +1726,26 @@ let Un = class extends dn {
1736
1726
  (n = r.rule) != null && n.ranges && t.push(...r.rule.ranges);
1737
1727
  }), t.length) {
1738
1728
  const r = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1739
- Yn(r.redos, this._commandService);
1729
+ zn(r.redos, this._commandService);
1740
1730
  }
1741
1731
  });
1742
1732
  }
1743
1733
  };
1744
- Un = Er([
1745
- z(0, J),
1746
- z(1, Ne),
1747
- z(2, M(mr)),
1748
- z(3, M(ye)),
1749
- z(4, M(fn)),
1750
- z(5, M(ee)),
1751
- z(6, M(tr))
1752
- ], Un);
1753
- var yo = Object.getOwnPropertyDescriptor, bo = (e, t, r, n) => {
1754
- for (var i = n > 1 ? void 0 : n ? yo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1734
+ xn = Dr([
1735
+ K(0, J),
1736
+ K(1, Ne),
1737
+ K(2, b(fr)),
1738
+ K(3, b(ye)),
1739
+ K(4, b(Sn)),
1740
+ K(5, b(ee)),
1741
+ K(6, b(rr))
1742
+ ], xn);
1743
+ var Mo = Object.getOwnPropertyDescriptor, bo = (e, t, r, n) => {
1744
+ for (var i = n > 1 ? void 0 : n ? Mo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
1755
1745
  (a = e[o]) && (i = a(i) || i);
1756
1746
  return i;
1757
- }, Fn = (e, t) => (r, n) => t(r, n, e);
1758
- let Et = class extends Re {
1747
+ }, $n = (e, t) => (r, n) => t(r, n, e);
1748
+ let Vt = class extends Re {
1759
1749
  constructor(e, t, r) {
1760
1750
  super(), this._context = e, this._sheetDataValidationModel = t, this._sheetSkeletonManagerService = r, this._initSkeletonChange();
1761
1751
  }
@@ -1772,38 +1762,38 @@ let Et = class extends Re {
1772
1762
  (o = this._sheetSkeletonManagerService.getSkeletonParam(i)) == null || o.skeleton.makeDirty(!0);
1773
1763
  }), (n = this._context.mainComponent) == null || n.makeForceDirty();
1774
1764
  };
1775
- this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe($r(16)).subscribe(e));
1765
+ this.disposeWithMe(this._sheetDataValidationModel.validStatusChange$.pipe(Br(16)).subscribe(e));
1776
1766
  }
1777
1767
  };
1778
- Et = bo([
1779
- Fn(1, M(ee)),
1780
- Fn(2, M(yt))
1781
- ], Et);
1782
- function Mo(e) {
1768
+ Vt = bo([
1769
+ $n(1, b(ee)),
1770
+ $n(2, b(bt))
1771
+ ], Vt);
1772
+ function Eo(e) {
1783
1773
  var d;
1784
- const t = U(se), r = U(pn), { value: n, onChange: i, extraComponent: o } = e, [a, l] = H(!1), s = o ? r.get(o) : null;
1785
- return /* @__PURE__ */ W(Xe, { children: [
1774
+ const t = U(se), r = U(mn), { value: n, onChange: i, extraComponent: o } = e, [a, l] = H(!1), s = o ? r.get(o) : null;
1775
+ return /* @__PURE__ */ W(dt, { children: [
1786
1776
  /* @__PURE__ */ W(
1787
1777
  "div",
1788
1778
  {
1789
1779
  className: `
1790
- univer-mb-3 univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-text-black
1780
+ univer-mb-3 univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-text-gray-900
1791
1781
  `,
1792
1782
  onClick: () => l(!a),
1793
1783
  children: [
1794
1784
  t.t("dataValidation.panel.options"),
1795
- a ? /* @__PURE__ */ _(Ir, { className: "univer-ml-1 univer-text-[8px]" }) : /* @__PURE__ */ _(Sn, { className: "univer-ml-1 univer-text-[8px]" })
1785
+ a ? /* @__PURE__ */ _(wr, { className: "univer-ml-1" }) : /* @__PURE__ */ _(In, { className: "univer-ml-1" })
1796
1786
  ]
1797
1787
  }
1798
1788
  ),
1799
- a && /* @__PURE__ */ W(Xe, { children: [
1789
+ a && /* @__PURE__ */ W(dt, { children: [
1800
1790
  s ? /* @__PURE__ */ _(s, { value: n, onChange: i }) : null,
1801
1791
  /* @__PURE__ */ _(
1802
- K,
1792
+ j,
1803
1793
  {
1804
1794
  label: t.t("dataValidation.panel.invalid"),
1805
1795
  children: /* @__PURE__ */ W(
1806
- hn,
1796
+ gn,
1807
1797
  {
1808
1798
  value: `${(d = n.errorStyle) != null ? d : lt.WARNING}`,
1809
1799
  onChange: (u) => i({ ...n, errorStyle: +u }),
@@ -1816,11 +1806,11 @@ function Mo(e) {
1816
1806
  }
1817
1807
  ),
1818
1808
  /* @__PURE__ */ _(
1819
- K,
1809
+ j,
1820
1810
  {
1821
1811
  label: t.t("dataValidation.panel.messageInfo"),
1822
1812
  children: /* @__PURE__ */ _(
1823
- Pt,
1813
+ Lt,
1824
1814
  {
1825
1815
  checked: n.showErrorMessage,
1826
1816
  onChange: () => i({
@@ -1832,57 +1822,57 @@ function Mo(e) {
1832
1822
  )
1833
1823
  }
1834
1824
  ),
1835
- n.showErrorMessage ? /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(Ve, { value: n.error, onChange: (u) => i({ ...n, error: u }) }) }) : null
1825
+ n.showErrorMessage ? /* @__PURE__ */ _(j, { children: /* @__PURE__ */ _(Ve, { value: n.error, onChange: (u) => i({ ...n, error: u }) }) }) : null
1836
1826
  ] })
1837
1827
  ] });
1838
1828
  }
1839
- const Eo = (e) => Br(
1829
+ const Do = (e) => Hr(
1840
1830
  async (t, r, n, i) => {
1841
1831
  const o = await e.executeCommand(t, r, n);
1842
1832
  i == null || i(o);
1843
1833
  },
1844
1834
  1e3
1845
1835
  );
1846
- function Do(e, t, r) {
1836
+ function Vo(e, t, r) {
1847
1837
  var n, i, o, a;
1848
- return t ? ((i = (n = e.getUnit(t)) == null ? void 0 : n.getSheetBySheetName(r)) == null ? void 0 : i.getSheetId()) || "" : ((a = (o = e.getCurrentUnitForType(j.UNIVER_SHEET)) == null ? void 0 : o.getSheetBySheetName(r)) == null ? void 0 : a.getSheetId()) || "";
1838
+ return t ? ((i = (n = e.getUnit(t)) == null ? void 0 : n.getSheetBySheetName(r)) == null ? void 0 : i.getSheetId()) || "" : ((a = (o = e.getCurrentUnitForType(Y.UNIVER_SHEET)) == null ? void 0 : o.getSheetBySheetName(r)) == null ? void 0 : a.getSheetId()) || "";
1849
1839
  }
1850
- function Vo() {
1840
+ function Oo() {
1851
1841
  var O, B;
1852
- const [e, t] = H(0), r = U(_e), n = Te(r.activeRule$, r.activeRule), { unitId: i, subUnitId: o, rule: a } = n || {}, l = a.uid, s = U(ye), d = U(le), u = U(pn), h = U(J), c = U(vn), m = U(se), [g, b] = H(a), y = s.getValidatorItem(g.type), [p, S] = H(!1), v = s.getValidatorsByScope(ci.SHEET), [C, w] = H(() => g.ranges.map((f) => ({ unitId: "", sheetId: "", range: f }))), I = dt(() => Eo(h), [h]), [R, T] = H(!1), [N, D] = H(!1), P = ut(null), A = U(ur);
1842
+ const [e, t] = H(0), r = U(_e), n = Te(r.activeRule$, r.activeRule), { unitId: i, subUnitId: o, rule: a } = n || {}, l = a.uid, s = U(ye), d = U(le), u = U(mn), h = U(J), c = U(fn), m = U(se), [p, M] = H(a), y = s.getValidatorItem(p.type), [g, S] = H(!1), v = s.getValidatorsByScope(ui.SHEET), [C, w] = H(() => p.ranges.map((f) => ({ unitId: "", sheetId: "", range: f }))), I = ct(() => Do(h), [h]), [R, T] = H(!1), [N, D] = H(!1), P = ht(null), A = U(hr);
1853
1843
  if (Pe(() => () => {
1854
1844
  const f = A.getCurrentLastSelection();
1855
1845
  f && A.setSelections([f]);
1856
1846
  }, [A]), Pe(() => {
1857
1847
  h.onCommandExecuted((f) => {
1858
- (f.id === Hr.id || f.id === Wr.id) && setTimeout(() => {
1848
+ (f.id === Wr.id || f.id === jr.id) && setTimeout(() => {
1859
1849
  const k = c.getRuleById(i, o, l);
1860
- t(($) => $ + 1), k && (b(k), w(k.ranges.map(($) => ({ unitId: "", sheetId: "", range: $ }))));
1850
+ t(($) => $ + 1), k && (M(k), w(k.ranges.map(($) => ({ unitId: "", sheetId: "", range: $ }))));
1861
1851
  }, 20);
1862
1852
  });
1863
1853
  }, [h, c, l, o, i]), !y)
1864
1854
  return null;
1865
- const L = y.operators, V = y.operatorNames, F = g.operator ? ui.includes(g.operator) : !1, x = () => {
1855
+ const L = y.operators, V = y.operatorNames, F = p.operator ? hi.includes(p.operator) : !1, x = () => {
1866
1856
  var f, k, $;
1867
- (k = (f = P.current) == null ? void 0 : f.editor) != null && k.isFocus() && Y(($ = P.current) == null ? void 0 : $.getValue()), !(!g.ranges.length || R) && (y.validatorFormula(g, i, o).success ? r.setActiveRule(null) : S(!0));
1868
- }, Y = qt((f) => {
1869
- const k = f.split(",").filter(Boolean).map(Ni).map((q) => {
1870
- const wn = q.sheetName;
1871
- if (wn) {
1872
- const Pr = Do(d, q.unitId, wn);
1873
- return { ...q, sheetId: Pr };
1857
+ (k = (f = P.current) == null ? void 0 : f.editor) != null && k.isFocus() && X(($ = P.current) == null ? void 0 : $.getValue()), !(!p.ranges.length || R) && (y.validatorFormula(p, i, o).success ? r.setActiveRule(null) : S(!0));
1858
+ }, X = Qt((f) => {
1859
+ const k = f.split(",").filter(Boolean).map(Ui).map((q) => {
1860
+ const yn = q.sheetName;
1861
+ if (yn) {
1862
+ const Ar = Vo(d, q.unitId, yn);
1863
+ return { ...q, sheetId: Ar };
1874
1864
  }
1875
1865
  return {
1876
1866
  ...q,
1877
1867
  sheetId: ""
1878
1868
  };
1879
1869
  });
1880
- if (jr(k, C))
1870
+ if (Yr(k, C))
1881
1871
  return;
1882
1872
  w(k);
1883
1873
  const $ = k.filter((q) => (!q.unitId || q.unitId === i) && (!q.sheetId || q.sheetId === o)).map((q) => q.range);
1884
- if (b({
1885
- ...g,
1874
+ if (M({
1875
+ ...p,
1886
1876
  ranges: $
1887
1877
  }), $.length === 0)
1888
1878
  return;
@@ -1892,12 +1882,12 @@ function Vo() {
1892
1882
  ruleId: l,
1893
1883
  ranges: $
1894
1884
  };
1895
- I(er.id, Ce);
1885
+ I(nr.id, Ce);
1896
1886
  }), Z = (f) => {
1897
- if (yn(f, On(g)))
1887
+ if (bn(f, Pn(p)))
1898
1888
  return;
1899
- b({
1900
- ...g,
1889
+ M({
1890
+ ...p,
1901
1891
  ...f
1902
1892
  });
1903
1893
  const k = {
@@ -1907,23 +1897,23 @@ function Vo() {
1907
1897
  setting: f
1908
1898
  };
1909
1899
  I(
1910
- bn.id,
1900
+ En.id,
1911
1901
  k,
1912
1902
  void 0
1913
1903
  );
1914
- }, X = async () => {
1915
- await h.executeCommand(nr.id, {
1904
+ }, z = async () => {
1905
+ await h.executeCommand(ir.id, {
1916
1906
  ruleId: l,
1917
1907
  unitId: i,
1918
1908
  subUnitId: o
1919
1909
  }), r.setActiveRule(null);
1920
1910
  }, te = {
1921
- type: g.type,
1922
- operator: g.operator,
1923
- formula1: g.formula1,
1924
- formula2: g.formula2,
1925
- allowBlank: g.allowBlank
1926
- }, pe = (f) => {
1911
+ type: p.type,
1912
+ operator: p.operator,
1913
+ formula1: p.formula1,
1914
+ formula2: p.formula2,
1915
+ allowBlank: p.allowBlank
1916
+ }, ge = (f) => {
1927
1917
  const k = s.getValidatorItem(f);
1928
1918
  if (!k)
1929
1919
  return;
@@ -1931,24 +1921,24 @@ function Vo() {
1931
1921
  ...Ce,
1932
1922
  type: f
1933
1923
  } : {
1934
- ...g,
1924
+ ...p,
1935
1925
  type: f,
1936
1926
  operator: $[0],
1937
1927
  formula1: void 0,
1938
1928
  formula2: void 0
1939
1929
  };
1940
- b(q), h.executeCommand(bn.id, {
1930
+ M(q), h.executeCommand(En.id, {
1941
1931
  unitId: i,
1942
1932
  subUnitId: o,
1943
- ruleId: g.uid,
1944
- setting: On(q)
1933
+ ruleId: p.uid,
1934
+ setting: Pn(q)
1945
1935
  });
1946
- }, de = u.get(y.formulaInput), ne = dt(() => C.map((f) => fr(f.range)).join(","), []), ce = Vn(g), Se = (f) => {
1947
- yn(f, Vn(g)) || (b({
1948
- ...g,
1936
+ }, de = u.get(y.formulaInput), ne = ct(() => C.map((f) => _r(f.range)).join(","), []), ce = Tn(p), Se = (f) => {
1937
+ bn(f, Tn(p)) || (M({
1938
+ ...p,
1949
1939
  ...f
1950
1940
  }), I(
1951
- qr.id,
1941
+ Jr.id,
1952
1942
  {
1953
1943
  unitId: i,
1954
1944
  subUnitId: o,
@@ -1956,15 +1946,15 @@ function Vo() {
1956
1946
  options: f
1957
1947
  }
1958
1948
  ));
1959
- }, ve = L.length && !g.operator;
1949
+ }, ve = L.length && !p.operator;
1960
1950
  return /* @__PURE__ */ W("div", { className: "univer-py-4", children: [
1961
1951
  /* @__PURE__ */ _(
1962
- K,
1952
+ j,
1963
1953
  {
1964
1954
  label: m.t("dataValidation.panel.range"),
1965
- error: !g.ranges.length || R ? m.t("dataValidation.panel.rangeError") : "",
1955
+ error: !p.ranges.length || R ? m.t("dataValidation.panel.rangeError") : "",
1966
1956
  children: /* @__PURE__ */ _(
1967
- di,
1957
+ ci,
1968
1958
  {
1969
1959
  selectorRef: P,
1970
1960
  unitId: i,
@@ -1972,34 +1962,34 @@ function Vo() {
1972
1962
  initialValue: ne,
1973
1963
  onChange: (f, k) => {
1974
1964
  var $;
1975
- !N && (($ = P.current) != null && $.verify()) && Y(k);
1965
+ !N && (($ = P.current) != null && $.verify()) && X(k);
1976
1966
  },
1977
1967
  onFocusChange: (f, k) => {
1978
1968
  var $;
1979
- D(f), !f && k && (($ = P.current) != null && $.verify()) && Y(k);
1969
+ D(f), !f && k && (($ = P.current) != null && $.verify()) && X(k);
1980
1970
  },
1981
1971
  onVerify: (f) => T(!f)
1982
1972
  }
1983
1973
  )
1984
1974
  }
1985
1975
  ),
1986
- /* @__PURE__ */ _(K, { label: m.t("dataValidation.panel.type"), children: /* @__PURE__ */ _(
1987
- En,
1976
+ /* @__PURE__ */ _(j, { label: m.t("dataValidation.panel.type"), children: /* @__PURE__ */ _(
1977
+ Vn,
1988
1978
  {
1989
1979
  className: "univer-w-full",
1990
- value: g.type,
1980
+ value: p.type,
1991
1981
  options: (O = v == null ? void 0 : v.sort((f, k) => f.order - k.order)) == null ? void 0 : O.map((f) => ({
1992
1982
  label: m.t(f.title),
1993
1983
  value: f.id
1994
1984
  })),
1995
- onChange: pe
1985
+ onChange: ge
1996
1986
  }
1997
1987
  ) }),
1998
- L != null && L.length ? /* @__PURE__ */ _(K, { label: m.t("dataValidation.panel.operator"), children: /* @__PURE__ */ _(
1999
- En,
1988
+ L != null && L.length ? /* @__PURE__ */ _(j, { label: m.t("dataValidation.panel.operator"), children: /* @__PURE__ */ _(
1989
+ Vn,
2000
1990
  {
2001
1991
  className: "univer-w-full",
2002
- value: `${g.operator}`,
1992
+ value: `${p.operator}`,
2003
1993
  options: [
2004
1994
  {
2005
1995
  value: "",
@@ -2018,13 +2008,13 @@ function Vo() {
2018
2008
  }
2019
2009
  }
2020
2010
  ) }) : null,
2021
- de && !ve ? /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
2011
+ de && !ve ? /* @__PURE__ */ _(
2022
2012
  de,
2023
2013
  {
2024
2014
  isTwoFormula: F,
2025
2015
  value: {
2026
- formula1: g.formula1,
2027
- formula2: g.formula2
2016
+ formula1: p.formula1,
2017
+ formula2: p.formula2
2028
2018
  },
2029
2019
  onChange: (f) => {
2030
2020
  Z({
@@ -2032,59 +2022,59 @@ function Vo() {
2032
2022
  ...f
2033
2023
  });
2034
2024
  },
2035
- showError: p,
2036
- validResult: y.validatorFormula(g, i, o),
2025
+ showError: g,
2026
+ validResult: y.validatorFormula(p, i, o),
2037
2027
  unitId: i,
2038
2028
  subUnitId: o,
2039
2029
  ruleId: l
2040
2030
  },
2041
- e + g.type
2042
- ) }) : null,
2043
- /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
2044
- Pt,
2031
+ e + p.type
2032
+ ) : null,
2033
+ /* @__PURE__ */ _(j, { children: /* @__PURE__ */ _(
2034
+ Lt,
2045
2035
  {
2046
- checked: (B = g.allowBlank) != null ? B : !0,
2036
+ checked: (B = p.allowBlank) != null ? B : !0,
2047
2037
  onChange: () => {
2048
2038
  var f;
2049
2039
  return Z({
2050
2040
  ...te,
2051
- allowBlank: !((f = g.allowBlank) == null || f)
2041
+ allowBlank: !((f = p.allowBlank) == null || f)
2052
2042
  });
2053
2043
  },
2054
2044
  children: m.t("dataValidation.panel.allowBlank")
2055
2045
  }
2056
2046
  ) }),
2057
- /* @__PURE__ */ _(Mo, { value: ce, onChange: Se, extraComponent: y.optionsInput }),
2047
+ /* @__PURE__ */ _(Eo, { value: ce, onChange: Se, extraComponent: y.optionsInput }),
2058
2048
  /* @__PURE__ */ W("div", { className: "univer-mt-5 univer-flex univer-flex-row univer-justify-end", children: [
2059
- /* @__PURE__ */ _(ze, { className: "univer-ml-3", onClick: X, children: m.t("dataValidation.panel.removeRule") }),
2049
+ /* @__PURE__ */ _(ze, { className: "univer-ml-3", onClick: z, children: m.t("dataValidation.panel.removeRule") }),
2060
2050
  /* @__PURE__ */ _(ze, { className: "univer-ml-3", variant: "primary", onClick: x, children: m.t("dataValidation.panel.done") })
2061
2051
  ] })
2062
2052
  ] });
2063
2053
  }
2064
- const Oo = (e) => {
2065
- const { rule: t, onClick: r, unitId: n, subUnitId: i, disable: o } = e, a = U(ye), l = U(J), s = U(ki), d = a.getValidatorItem(t.type), u = ut(void 0), [h, c] = H(!1), m = U(Xn), g = Te(m.currentTheme$), b = dt(() => {
2054
+ const To = (e) => {
2055
+ const { rule: t, onClick: r, unitId: n, subUnitId: i, disable: o } = e, a = U(ye), l = U(J), s = U(Ni), d = a.getValidatorItem(t.type), u = ht(void 0), [h, c] = H(!1), m = U(Kn), p = Te(m.currentTheme$), M = ct(() => {
2066
2056
  var w;
2067
- const p = m.getColorFromTheme("primary.600"), S = m.getColorFromTheme("loop-color.2"), v = (w = m.getColorFromTheme(S)) != null ? w : p, C = new Yr(v).toRgb();
2057
+ const g = m.getColorFromTheme("primary.600"), S = m.getColorFromTheme("loop-color.2"), v = (w = m.getColorFromTheme(S)) != null ? w : g, C = new Xr(v).toRgb();
2068
2058
  return {
2069
2059
  fill: `rgba(${C.r}, ${C.g}, ${C.b}, 0.1)`,
2070
2060
  stroke: v
2071
2061
  };
2072
- }, [g]), y = (p) => {
2073
- l.executeCommand(nr.id, {
2062
+ }, [p]), y = (g) => {
2063
+ l.executeCommand(ir.id, {
2074
2064
  ruleId: t.uid,
2075
2065
  unitId: n,
2076
2066
  subUnitId: i
2077
- }), p.stopPropagation();
2067
+ }), g.stopPropagation();
2078
2068
  };
2079
2069
  return Pe(() => () => {
2080
- var p;
2081
- u.current && ((p = u.current) == null || p.forEach((S) => {
2070
+ var g;
2071
+ u.current && ((g = u.current) == null || g.forEach((S) => {
2082
2072
  S && s.removeShape(S);
2083
2073
  }));
2084
2074
  }, [s]), /* @__PURE__ */ W(
2085
2075
  "div",
2086
2076
  {
2087
- className: rr(
2077
+ className: Xe(
2088
2078
  `
2089
2079
  univer-rounded-md univer-bg-secondary univer-relative univer--ml-2 univer--mr-2 univer-box-border
2090
2080
  univer-flex univer-w-[287px] univer-cursor-pointer univer-flex-col univer-justify-between
@@ -2097,15 +2087,15 @@ const Oo = (e) => {
2097
2087
  ),
2098
2088
  onClick: r,
2099
2089
  onMouseEnter: () => {
2100
- o || (c(!0), u.current = t.ranges.map((p) => s.addShape({
2101
- range: p,
2102
- style: b,
2090
+ o || (c(!0), u.current = t.ranges.map((g) => s.addShape({
2091
+ range: g,
2092
+ style: M,
2103
2093
  primary: null
2104
2094
  })));
2105
2095
  },
2106
2096
  onMouseLeave: () => {
2107
- var p;
2108
- c(!1), (p = u.current) == null || p.forEach((S) => {
2097
+ var g;
2098
+ c(!1), (g = u.current) == null || g.forEach((S) => {
2109
2099
  S && s.removeShape(S);
2110
2100
  }), u.current = void 0;
2111
2101
  },
@@ -2115,7 +2105,7 @@ const Oo = (e) => {
2115
2105
  {
2116
2106
  className: `
2117
2107
  univer-overflow-hidden univer-text-ellipsis univer-text-sm univer-font-medium univer-leading-[22px]
2118
- univer-text-black
2108
+ univer-text-gray-900
2119
2109
  `,
2120
2110
  children: d == null ? void 0 : d.generateRuleName(t)
2121
2111
  }
@@ -2126,7 +2116,7 @@ const Oo = (e) => {
2126
2116
  className: `
2127
2117
  univer-text-secondary univer-overflow-hidden univer-text-ellipsis univer-text-xs univer-leading-[18px]
2128
2118
  `,
2129
- children: t.ranges.map((p) => fr(p)).join(",")
2119
+ children: t.ranges.map((g) => _r(g)).join(",")
2130
2120
  }
2131
2121
  ),
2132
2122
  h ? /* @__PURE__ */ _(
@@ -2138,14 +2128,14 @@ const Oo = (e) => {
2138
2128
  hover:univer-bg-gray-200
2139
2129
  `,
2140
2130
  onClick: y,
2141
- children: /* @__PURE__ */ _(_n, {})
2131
+ children: /* @__PURE__ */ _(Cn, {})
2142
2132
  }
2143
2133
  ) : null
2144
2134
  ]
2145
2135
  }
2146
2136
  );
2147
2137
  };
2148
- function To(e) {
2138
+ function Po(e) {
2149
2139
  const t = U(ee), r = U(le), n = U(J), i = U(we), o = U(_e), a = U(se), [l, s] = H([]), { workbook: d } = e, u = Te(d.activeSheet$, void 0, !0), h = d.getUnitId(), c = u == null ? void 0 : u.getSheetId();
2150
2140
  Pe(() => {
2151
2141
  s(t.getRules(h, c));
@@ -2157,30 +2147,30 @@ function To(e) {
2157
2147
  };
2158
2148
  }, [h, c, t]);
2159
2149
  const m = async () => {
2160
- const S = Jn(i), v = {
2150
+ const S = er(i), v = {
2161
2151
  unitId: h,
2162
2152
  subUnitId: c,
2163
2153
  rule: S
2164
2154
  };
2165
- await n.executeCommand(un.id, v), o.setActiveRule({
2155
+ await n.executeCommand(pn.id, v), o.setActiveRule({
2166
2156
  unitId: h,
2167
2157
  subUnitId: c,
2168
2158
  rule: S
2169
2159
  });
2170
- }, g = () => {
2171
- n.executeCommand(Jr.id, {
2160
+ }, p = () => {
2161
+ n.executeCommand(Qr.id, {
2172
2162
  unitId: h,
2173
2163
  subUnitId: c
2174
2164
  });
2175
2165
  }, y = ((S) => {
2176
- const v = r.getCurrentUnitForType(j.UNIVER_SHEET), C = v.getActiveSheet(), w = v.getUnitId(), I = C.getSheetId();
2166
+ const v = r.getCurrentUnitForType(Y.UNIVER_SHEET), C = v.getActiveSheet(), w = v.getUnitId(), I = C.getSheetId();
2177
2167
  return S.map((T) => bi(i, w, I, T.ranges) ? { ...T } : { ...T, disable: !0 });
2178
- })(l), p = y == null ? void 0 : y.some((S) => S.disable);
2168
+ })(l), g = y == null ? void 0 : y.some((S) => S.disable);
2179
2169
  return /* @__PURE__ */ W("div", { className: "univer-pb-4", children: [
2180
2170
  y == null ? void 0 : y.map((S) => {
2181
2171
  var v;
2182
2172
  return /* @__PURE__ */ _(
2183
- Oo,
2173
+ To,
2184
2174
  {
2185
2175
  unitId: h,
2186
2176
  subUnitId: c,
@@ -2198,39 +2188,39 @@ function To(e) {
2198
2188
  );
2199
2189
  }),
2200
2190
  /* @__PURE__ */ W("div", { className: "univer-mt-4 univer-flex univer-flex-row univer-justify-end univer-gap-2", children: [
2201
- l.length && !p ? /* @__PURE__ */ _(ze, { onClick: g, children: a.t("dataValidation.panel.removeAll") }) : null,
2191
+ l.length && !g ? /* @__PURE__ */ _(ze, { onClick: p, children: a.t("dataValidation.panel.removeAll") }) : null,
2202
2192
  /* @__PURE__ */ _(ze, { variant: "primary", onClick: m, children: a.t("dataValidation.panel.add") })
2203
2193
  ] })
2204
2194
  ] });
2205
2195
  }
2206
- const Po = () => {
2196
+ const Ao = () => {
2207
2197
  const e = U(_e), t = Te(e.activeRule$, e.activeRule), r = U(le), n = Te(
2208
- () => r.getCurrentTypeOfUnit$(j.UNIVER_SHEET),
2198
+ () => r.getCurrentTypeOfUnit$(Y.UNIVER_SHEET),
2209
2199
  void 0,
2210
2200
  void 0,
2211
2201
  []
2212
2202
  ), i = Te(() => {
2213
2203
  var o;
2214
- return (o = n == null ? void 0 : n.activeSheet$) != null ? o : pi(null);
2204
+ return (o = n == null ? void 0 : n.activeSheet$) != null ? o : vi(null);
2215
2205
  }, void 0, void 0, []);
2216
- return !n || !i ? null : t && t.subUnitId === i.getSheetId() ? /* @__PURE__ */ _(Vo, {}, t.rule.uid) : /* @__PURE__ */ _(To, { workbook: n });
2217
- }, Ao = "LIST_RENDER_MODE_OPTION_INPUT";
2218
- function Dt(e) {
2206
+ return !n || !i ? null : t && t.subUnitId === i.getSheetId() ? /* @__PURE__ */ _(Oo, {}, t.rule.uid) : /* @__PURE__ */ _(Po, { workbook: n });
2207
+ }, Lo = "LIST_RENDER_MODE_OPTION_INPUT";
2208
+ function Ot(e) {
2219
2209
  var i;
2220
2210
  const { value: t, onChange: r } = e, n = U(se);
2221
- return /* @__PURE__ */ _(K, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ W(hn, { value: `${(i = t.renderMode) != null ? i : ie.CUSTOM}`, onChange: (o) => r({ ...t, renderMode: +o }), children: [
2211
+ return /* @__PURE__ */ _(j, { label: n.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ W(gn, { value: `${(i = t.renderMode) != null ? i : ie.CUSTOM}`, onChange: (o) => r({ ...t, renderMode: +o }), children: [
2222
2212
  /* @__PURE__ */ _(Oe, { value: `${ie.CUSTOM}`, children: n.t("dataValidation.renderMode.chip") }),
2223
2213
  /* @__PURE__ */ _(Oe, { value: `${ie.ARROW}`, children: n.t("dataValidation.renderMode.arrow") }),
2224
2214
  /* @__PURE__ */ _(Oe, { value: `${ie.TEXT}`, children: n.t("dataValidation.renderMode.text") })
2225
2215
  ] }) });
2226
2216
  }
2227
- Dt.componentKey = Ao;
2228
- const Lo = "DATE_SHOW_TIME_OPTION";
2229
- function Vt(e) {
2217
+ Ot.componentKey = Lo;
2218
+ const ko = "DATE_SHOW_TIME_OPTION";
2219
+ function Tt(e) {
2230
2220
  var i;
2231
2221
  const { value: t, onChange: r } = e, n = U(se);
2232
- return /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
2233
- Pt,
2222
+ return /* @__PURE__ */ _(j, { children: /* @__PURE__ */ _(
2223
+ Lt,
2234
2224
  {
2235
2225
  checked: (i = t.bizInfo) == null ? void 0 : i.showTime,
2236
2226
  onChange: (o) => {
@@ -2246,20 +2236,20 @@ function Vt(e) {
2246
2236
  }
2247
2237
  ) });
2248
2238
  }
2249
- Vt.componentKey = Lo;
2250
- var ko = Object.getOwnPropertyDescriptor, No = (e, t, r, n) => {
2251
- for (var i = n > 1 ? void 0 : n ? ko(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2239
+ Tt.componentKey = ko;
2240
+ var No = Object.getOwnPropertyDescriptor, Uo = (e, t, r, n) => {
2241
+ for (var i = n > 1 ? void 0 : n ? No(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2252
2242
  (a = e[o]) && (i = a(i) || i);
2253
2243
  return i;
2254
2244
  }, Be = (e, t) => (r, n) => t(r, n, e);
2255
- const mt = 6;
2256
- let rn = class {
2245
+ const ft = 6;
2246
+ let an = class {
2257
2247
  constructor(e, t, r, n, i, o) {
2258
2248
  this._commandService = e, this._univerInstanceService = t, this._formulaService = r, this._themeService = n, this._renderManagerService = i, this._dataValidationModel = o;
2259
2249
  }
2260
2250
  _calc(e, t) {
2261
2251
  var d, u, h;
2262
- const { vt: r, ht: n } = t || {}, i = e.endX - e.startX - mt * 2, o = e.endY - e.startY, a = ((d = t == null ? void 0 : t.fs) != null ? d : 10) * 1.6;
2252
+ const { vt: r, ht: n } = t || {}, i = e.endX - e.startX - ft * 2, o = e.endY - e.startY, a = ((d = t == null ? void 0 : t.fs) != null ? d : 10) * 1.6;
2263
2253
  let l = 0, s = 0;
2264
2254
  switch (r) {
2265
2255
  case ae.TOP:
@@ -2274,13 +2264,13 @@ let rn = class {
2274
2264
  }
2275
2265
  switch (n) {
2276
2266
  case Ye.LEFT:
2277
- l = mt;
2267
+ l = ft;
2278
2268
  break;
2279
2269
  case Ye.RIGHT:
2280
- l = mt + (i - a);
2270
+ l = ft + (i - a);
2281
2271
  break;
2282
2272
  default:
2283
- l = mt + (i - a) / 2;
2273
+ l = ft + (i - a) / 2;
2284
2274
  break;
2285
2275
  }
2286
2276
  return {
@@ -2301,10 +2291,10 @@ let rn = class {
2301
2291
  return ((r = t == null ? void 0 : t.fs) != null ? r : 10) * 1.6;
2302
2292
  }
2303
2293
  async _parseFormula(e, t, r) {
2304
- var d, u, h, c, m, g, b, y, p;
2305
- const { formula1: n = ti, formula2: i = ei } = e, o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), a = Nt((h = (u = (d = o == null ? void 0 : o[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : h[0]), l = Nt((g = (m = (c = o == null ? void 0 : o[1]) == null ? void 0 : c.result) == null ? void 0 : m[0]) == null ? void 0 : g[0]), s = Mn(String(a)) && Mn(String(l));
2294
+ var d, u, h, c, m, p, M, y, g;
2295
+ const { formula1: n = ni, formula2: i = ti } = e, o = await this._formulaService.getRuleFormulaResult(t, r, e.uid), a = Ft((h = (u = (d = o == null ? void 0 : o[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : h[0]), l = Ft((p = (m = (c = o == null ? void 0 : o[1]) == null ? void 0 : c.result) == null ? void 0 : m[0]) == null ? void 0 : p[0]), s = Dn(String(a)) && Dn(String(l));
2306
2296
  return {
2307
- formula1: De(n) ? Nt((p = (y = (b = o == null ? void 0 : o[0]) == null ? void 0 : b.result) == null ? void 0 : y[0]) == null ? void 0 : p[0]) : n,
2297
+ formula1: De(n) ? Ft((g = (y = (M = o == null ? void 0 : o[0]) == null ? void 0 : M.result) == null ? void 0 : y[0]) == null ? void 0 : g[0]) : n,
2308
2298
  formula2: De(i) ? l : i,
2309
2299
  isFormulaValid: s
2310
2300
  };
@@ -2317,7 +2307,7 @@ let rn = class {
2317
2307
  const c = this._dataValidationModel.getValidator(h.type);
2318
2308
  if (!c || !((P = c.skipDefaultFontRender) != null && P.call(c, h, u, { unitId: i, subUnitId: o, row: l, column: s })))
2319
2309
  return;
2320
- const m = c.parseFormulaSync(h, i, o), { formula1: g } = m, b = this._calc(d, r), { a: y, d: p } = e.getTransform(), S = Pn(b.left, y), v = Pn(b.top, p), C = vi.create().composeMatrix({
2310
+ const m = c.parseFormulaSync(h, i, o), { formula1: p } = m, M = this._calc(d, r), { a: y, d: g } = e.getTransform(), S = Ln(M.left, y), v = Ln(M.top, g), C = mi.create().composeMatrix({
2321
2311
  left: S,
2322
2312
  top: v,
2323
2313
  scaleX: 1,
@@ -2331,8 +2321,8 @@ let rn = class {
2331
2321
  e.save(), e.beginPath(), e.rect(d.startX, d.startY, w, I), e.clip();
2332
2322
  const R = C.getMatrix();
2333
2323
  e.transform(R[0], R[1], R[2], R[3], R[4], R[5]);
2334
- const T = ((A = r == null ? void 0 : r.fs) != null ? A : 10) * 1.6, N = String(u) === String(g), D = this._themeService.getColorFromTheme("primary.600");
2335
- mi.drawWith(e, {
2324
+ const T = ((A = r == null ? void 0 : r.fs) != null ? A : 10) * 1.6, N = String(u) === String(p), D = this._themeService.getColorFromTheme("primary.600");
2325
+ fi.drawWith(e, {
2336
2326
  checked: N,
2337
2327
  width: T,
2338
2328
  height: T,
@@ -2344,14 +2334,14 @@ let rn = class {
2344
2334
  return s <= l && s >= a && d <= o && d >= i;
2345
2335
  }
2346
2336
  async onPointerDown(e, t) {
2347
- var g;
2337
+ var p;
2348
2338
  if (t.button === 2)
2349
2339
  return;
2350
2340
  const { primaryWithCoord: r, unitId: n, subUnitId: i, worksheet: o, row: a, col: l } = e, s = Q(o.getCellRaw(a, l)), d = this._dataValidationModel.getRuleByLocation(n, i, a, l);
2351
2341
  if (!d)
2352
2342
  return;
2353
2343
  const u = this._dataValidationModel.getValidator(d.type);
2354
- if (!u || !((g = u.skipDefaultFontRender) != null && g.call(u, d, s, { unitId: n, subUnitId: i, row: a, column: l })))
2344
+ if (!u || !((p = u.skipDefaultFontRender) != null && p.call(u, d, s, { unitId: n, subUnitId: i, row: a, column: l })))
2355
2345
  return;
2356
2346
  const { formula1: h, formula2: c } = await this._parseFormula(d, n, i), m = {
2357
2347
  range: {
@@ -2361,7 +2351,7 @@ let rn = class {
2361
2351
  endRow: r.actualRow
2362
2352
  },
2363
2353
  value: {
2364
- v: String(s) === ni(String(h)) ? c : h,
2354
+ v: String(s) === ri(String(h)) ? c : h,
2365
2355
  p: null
2366
2356
  }
2367
2357
  };
@@ -2372,114 +2362,114 @@ let rn = class {
2372
2362
  }
2373
2363
  onPointerEnter(e, t) {
2374
2364
  var r, n;
2375
- (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.POINTER);
2365
+ (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.POINTER);
2376
2366
  }
2377
2367
  onPointerLeave(e, t) {
2378
2368
  var r, n;
2379
- (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.DEFAULT);
2369
+ (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.DEFAULT);
2380
2370
  }
2381
2371
  };
2382
- rn = No([
2372
+ an = Uo([
2383
2373
  Be(0, J),
2384
2374
  Be(1, le),
2385
- Be(2, M(Qr)),
2386
- Be(3, M(Xn)),
2387
- Be(4, M(Ne)),
2388
- Be(5, M(ee))
2389
- ], rn);
2390
- class Uo extends fe {
2375
+ Be(2, b(ei)),
2376
+ Be(3, b(Kn)),
2377
+ Be(4, b(Ne)),
2378
+ Be(5, b(ee))
2379
+ ], an);
2380
+ class Fo extends fe {
2391
2381
  constructor() {
2392
2382
  super(...arguments);
2393
2383
  E(this, "id", G.CHECKBOX);
2394
- E(this, "canvasRender", this.injector.createInstance(rn));
2395
- E(this, "formulaInput", qn);
2384
+ E(this, "canvasRender", this.injector.createInstance(an));
2385
+ E(this, "formulaInput", Qn);
2396
2386
  }
2397
2387
  }
2398
- class Fo extends fe {
2388
+ class xo extends fe {
2399
2389
  constructor() {
2400
2390
  super(...arguments);
2401
2391
  E(this, "id", G.CUSTOM);
2402
- E(this, "formulaInput", Zn);
2392
+ E(this, "formulaInput", Jn);
2403
2393
  }
2404
2394
  }
2405
- const xo = "data-validation.formula-input";
2406
- class $o extends fe {
2395
+ const $o = "data-validation.formula-input";
2396
+ class Bo extends fe {
2407
2397
  constructor() {
2408
2398
  super(...arguments);
2409
2399
  E(this, "id", G.DATE);
2410
- E(this, "formulaInput", xo);
2411
- E(this, "optionsInput", Vt.componentKey);
2412
- E(this, "dropdownType", ge.DATE);
2400
+ E(this, "formulaInput", $o);
2401
+ E(this, "optionsInput", Tt.componentKey);
2402
+ E(this, "dropdownType", pe.DATE);
2413
2403
  }
2414
2404
  }
2415
- class Bo extends fe {
2405
+ class Ho extends fe {
2416
2406
  constructor() {
2417
2407
  super(...arguments);
2418
2408
  E(this, "id", G.DECIMAL);
2419
- E(this, "formulaInput", Tt);
2409
+ E(this, "formulaInput", At);
2420
2410
  }
2421
2411
  }
2422
- const Vr = 4, Ho = 0, Ht = 4, Or = 4, on = 6, Ot = 6, Ee = 14;
2423
- function Wo(e, t) {
2424
- const r = fi.getTextSize(e, t), n = r.width + Vr * 2, { ba: i, bd: o } = r, a = i + o;
2412
+ const Or = 4, Wo = 0, jt = 4, Tr = 4, sn = 6, Pt = 6, Ee = 14;
2413
+ function jo(e, t) {
2414
+ const r = _i.getTextSize(e, t), n = r.width + Or * 2, { ba: i, bd: o } = r, a = i + o;
2425
2415
  return {
2426
2416
  width: n,
2427
- height: a + Ho * 2,
2417
+ height: a + Wo * 2,
2428
2418
  ba: i
2429
2419
  };
2430
2420
  }
2431
- function Wt(e, t, r, n) {
2432
- const i = Ee + on * 2, o = r - i, a = n - Ot * 2, l = e.map((c) => ({
2433
- layout: Wo(c, t),
2421
+ function Yt(e, t, r, n) {
2422
+ const i = Ee + sn * 2, o = r - i, a = n - Pt * 2, l = e.map((c) => ({
2423
+ layout: jo(c, t),
2434
2424
  text: c
2435
2425
  }));
2436
2426
  let s;
2437
2427
  const d = [];
2438
2428
  l.forEach((c) => {
2439
- const { layout: m } = c, { width: g, height: b } = m;
2440
- !s || s.width + g + Ht > o ? (s = {
2441
- width: g,
2442
- height: b,
2429
+ const { layout: m } = c, { width: p, height: M } = m;
2430
+ !s || s.width + p + jt > o ? (s = {
2431
+ width: p,
2432
+ height: M,
2443
2433
  items: [{
2444
2434
  ...c,
2445
2435
  left: 0
2446
2436
  }]
2447
2437
  }, d.push(s)) : (s.items.push({
2448
2438
  ...c,
2449
- left: s.width + Ht
2450
- }), s.width = s.width + g + Ht);
2439
+ left: s.width + jt
2440
+ }), s.width = s.width + p + jt);
2451
2441
  });
2452
2442
  let u = 0, h = 0;
2453
2443
  return d.forEach((c, m) => {
2454
- h = Math.max(h, c.width), m === d.length - 1 ? u += c.height : u += c.height + Or;
2444
+ h = Math.max(h, c.width), m === d.length - 1 ? u += c.height : u += c.height + Tr;
2455
2445
  }), {
2456
2446
  lines: d,
2457
2447
  totalHeight: u,
2458
2448
  contentWidth: o,
2459
2449
  contentHeight: a,
2460
- cellAutoHeight: u + Ot * 2,
2450
+ cellAutoHeight: u + Pt * 2,
2461
2451
  calcAutoWidth: h + i
2462
2452
  };
2463
2453
  }
2464
- const jo = 8;
2465
- class Yo extends _i {
2454
+ const Yo = 8;
2455
+ class Xo extends Si {
2466
2456
  static drawWith(t, r) {
2467
2457
  const { fontString: n, info: i, fill: o, color: a } = r, { layout: l, text: s } = i;
2468
- t.save(), cr.drawWith(t, {
2458
+ t.save(), ur.drawWith(t, {
2469
2459
  width: l.width,
2470
2460
  height: l.height,
2471
- radius: jo,
2461
+ radius: Yo,
2472
2462
  fill: o || He
2473
- }), t.translateWithPrecision(Vr, l.ba), t.font = n, t.fillStyle = a, t.fillText(s, 0, 0), t.restore();
2463
+ }), t.translateWithPrecision(Or, l.ba), t.font = n, t.fillStyle = a, t.fillText(s, 0, 0), t.restore();
2474
2464
  }
2475
2465
  }
2476
- var Xo = Object.getOwnPropertyDescriptor, zo = (e, t, r, n) => {
2477
- for (var i = n > 1 ? void 0 : n ? Xo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2466
+ var zo = Object.getOwnPropertyDescriptor, Ko = (e, t, r, n) => {
2467
+ for (var i = n > 1 ? void 0 : n ? zo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2478
2468
  (a = e[o]) && (i = a(i) || i);
2479
2469
  return i;
2480
- }, ft = (e, t) => (r, n) => t(r, n, e);
2481
- const Ko = 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");
2482
- let an = class {
2470
+ }, _t = (e, t) => (r, n) => t(r, n, e);
2471
+ const Go = 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");
2472
+ let ln = class {
2483
2473
  constructor(e, t, r, n) {
2484
2474
  E(this, "zIndex");
2485
2475
  E(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
@@ -2503,12 +2493,12 @@ let an = class {
2503
2493
  a = n - Ee + 4;
2504
2494
  break;
2505
2495
  }
2506
- e.save(), e.translateWithPrecision(t.startX + o, t.startY + a), e.fillStyle = "#565656", e.fill(Ko), e.restore();
2496
+ e.save(), e.translateWithPrecision(t.startX + o, t.startY + a), e.fillStyle = "#565656", e.fill(Go), e.restore();
2507
2497
  }
2508
2498
  // eslint-disable-next-line max-lines-per-function
2509
2499
  drawWith(e, t, r, n) {
2510
- var Z, X;
2511
- const { primaryWithCoord: i, row: o, col: a, style: l, data: s, subUnitId: d } = t, u = i.isMergedMainCell ? i.mergeInfo : i, h = s == null ? void 0 : s.fontRenderExtension, { leftOffset: c = 0, rightOffset: m = 0, topOffset: g = 0, downOffset: b = 0 } = h || {}, y = this._ensureMap(d), p = this._generateKey(o, a), S = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, o, a);
2500
+ var Z, z;
2501
+ const { primaryWithCoord: i, row: o, col: a, style: l, data: s, subUnitId: d } = t, u = i.isMergedMainCell ? i.mergeInfo : i, h = s == null ? void 0 : s.fontRenderExtension, { leftOffset: c = 0, rightOffset: m = 0, topOffset: p = 0, downOffset: M = 0 } = h || {}, y = this._ensureMap(d), g = this._generateKey(o, a), S = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, o, a);
2512
2502
  if (!S)
2513
2503
  return;
2514
2504
  const v = this._dataValidationModel.getValidator(S.type);
@@ -2517,20 +2507,20 @@ let an = class {
2517
2507
  const C = {
2518
2508
  startX: u.startX + c,
2519
2509
  endX: u.endX - m,
2520
- startY: u.startY + g,
2521
- endY: u.endY - b
2522
- }, w = C.endX - C.startX, I = C.endY - C.startY, { cl: R } = l || {}, T = (Z = typeof R == "object" ? R == null ? void 0 : R.rgb : R) != null ? Z : "#000", N = Ut(l != null ? l : void 0), { vt: D, ht: P } = l || {}, A = D != null ? D : ae.MIDDLE, L = (X = Q(s)) != null ? X : "", V = v.parseCellValue(L), F = v.getListWithColorMap(S), x = Wt(V, N, w, I);
2523
- this._drawDownIcon(e, C, w, I, A), e.save(), e.translateWithPrecision(C.startX, C.startY), e.beginPath(), e.rect(0, 0, w - Ee, I), e.clip(), e.translateWithPrecision(on, Ot);
2524
- let Y = 0;
2510
+ startY: u.startY + p,
2511
+ endY: u.endY - M
2512
+ }, w = C.endX - C.startX, I = C.endY - C.startY, { cl: R } = l || {}, T = (Z = typeof R == "object" ? R == null ? void 0 : R.rgb : R) != null ? Z : "#000", N = xt(l != null ? l : void 0), { vt: D, ht: P } = l || {}, A = D != null ? D : ae.MIDDLE, L = (z = Q(s)) != null ? z : "", V = v.parseCellValue(L), F = v.getListWithColorMap(S), x = Yt(V, N, w, I);
2513
+ this._drawDownIcon(e, C, w, I, A), e.save(), e.translateWithPrecision(C.startX, C.startY), e.beginPath(), e.rect(0, 0, w - Ee, I), e.clip(), e.translateWithPrecision(sn, Pt);
2514
+ let X = 0;
2525
2515
  switch (A) {
2526
2516
  case ae.MIDDLE:
2527
- Y = (x.contentHeight - x.totalHeight) / 2;
2517
+ X = (x.contentHeight - x.totalHeight) / 2;
2528
2518
  break;
2529
2519
  case ae.BOTTOM:
2530
- Y = x.contentHeight - x.totalHeight;
2520
+ X = x.contentHeight - x.totalHeight;
2531
2521
  break;
2532
2522
  }
2533
- e.translateWithPrecision(0, Y), x.lines.forEach((te, pe) => {
2523
+ e.translateWithPrecision(0, X), x.lines.forEach((te, ge) => {
2534
2524
  e.save();
2535
2525
  const { width: de, height: ne, items: ce } = te;
2536
2526
  let Se = 0;
@@ -2542,19 +2532,19 @@ let an = class {
2542
2532
  Se = (x.contentWidth - de) / 2;
2543
2533
  break;
2544
2534
  }
2545
- e.translate(Se, pe * (ne + Or)), ce.forEach((ve) => {
2546
- e.save(), e.translateWithPrecision(ve.left, 0), Yo.drawWith(e, {
2535
+ e.translate(Se, ge * (ne + Tr)), ce.forEach((ve) => {
2536
+ e.save(), e.translateWithPrecision(ve.left, 0), Xo.drawWith(e, {
2547
2537
  ...N,
2548
2538
  info: ve,
2549
2539
  color: T,
2550
2540
  fill: F[ve.text]
2551
2541
  }), e.restore();
2552
2542
  }), e.restore();
2553
- }), e.restore(), y.set(p, {
2543
+ }), e.restore(), y.set(g, {
2554
2544
  left: C.startX,
2555
2545
  top: C.startY,
2556
- width: x.contentWidth + on + Ee,
2557
- height: x.contentHeight + Ot * 2
2546
+ width: x.contentWidth + sn + Ee,
2547
+ height: x.contentHeight + Pt * 2
2558
2548
  });
2559
2549
  }
2560
2550
  calcCellAutoHeight(e) {
@@ -2567,11 +2557,11 @@ let an = class {
2567
2557
  }, m = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, i, o);
2568
2558
  if (!m)
2569
2559
  return;
2570
- const g = this._dataValidationModel.getValidator(m.type);
2571
- if (!g)
2560
+ const p = this._dataValidationModel.getValidator(m.type);
2561
+ if (!p)
2572
2562
  return;
2573
- const b = c.endX - c.startX, y = c.endY - c.startY, p = (w = Q(n)) != null ? w : "", S = g.parseCellValue(p), v = Ut(r != null ? r : void 0);
2574
- return Wt(S, v, b, y).cellAutoHeight;
2563
+ const M = c.endX - c.startX, y = c.endY - c.startY, g = (w = Q(n)) != null ? w : "", S = p.parseCellValue(g), v = xt(r != null ? r : void 0);
2564
+ return Yt(S, v, M, y).cellAutoHeight;
2575
2565
  }
2576
2566
  calcCellAutoWidth(e) {
2577
2567
  var w;
@@ -2583,11 +2573,11 @@ let an = class {
2583
2573
  }, m = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, i, o);
2584
2574
  if (!m)
2585
2575
  return;
2586
- const g = this._dataValidationModel.getValidator(m.type);
2587
- if (!g)
2576
+ const p = this._dataValidationModel.getValidator(m.type);
2577
+ if (!p)
2588
2578
  return;
2589
- const b = c.endX - c.startX, y = c.endY - c.startY, p = (w = Q(n)) != null ? w : "", S = g.parseCellValue(p), v = Ut(r != null ? r : void 0);
2590
- return Wt(S, v, b, y).calcAutoWidth;
2579
+ const M = c.endX - c.startX, y = c.endY - c.startY, g = (w = Q(n)) != null ? w : "", S = p.parseCellValue(g), v = xt(r != null ? r : void 0);
2580
+ return Yt(S, v, M, y).calcAutoWidth;
2591
2581
  }
2592
2582
  isHit(e, t) {
2593
2583
  const { primaryWithCoord: r } = t, n = r.isMergedMainCell ? r.mergeInfo : r, { endX: i } = n, { x: o } = e;
@@ -2602,43 +2592,43 @@ let an = class {
2602
2592
  row: i,
2603
2593
  column: o
2604
2594
  };
2605
- this._commandService.executeCommand(At.id, a);
2595
+ this._commandService.executeCommand(kt.id, a);
2606
2596
  }
2607
2597
  onPointerEnter(e, t) {
2608
2598
  var r, n;
2609
- return (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null ? void 0 : n.setCursor(Ge.POINTER);
2599
+ return (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null ? void 0 : n.setCursor(Ge.POINTER);
2610
2600
  }
2611
2601
  onPointerLeave(e, t) {
2612
2602
  var r, n;
2613
- return (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null ? void 0 : n.setCursor(Ge.DEFAULT);
2603
+ return (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null ? void 0 : n.setCursor(Ge.DEFAULT);
2614
2604
  }
2615
2605
  };
2616
- an = zo([
2617
- ft(0, J),
2618
- ft(1, le),
2619
- ft(2, M(Ne)),
2620
- ft(3, M(ee))
2621
- ], an);
2622
- class Go extends fe {
2606
+ ln = Ko([
2607
+ _t(0, J),
2608
+ _t(1, le),
2609
+ _t(2, b(Ne)),
2610
+ _t(3, b(ee))
2611
+ ], ln);
2612
+ class Zo extends fe {
2623
2613
  constructor() {
2624
2614
  super(...arguments);
2625
2615
  E(this, "id", G.LIST_MULTIPLE);
2626
- E(this, "canvasRender", this.injector.createInstance(an));
2627
- E(this, "dropdownType", ge.MULTIPLE_LIST);
2616
+ E(this, "canvasRender", this.injector.createInstance(ln));
2617
+ E(this, "dropdownType", pe.MULTIPLE_LIST);
2628
2618
  }
2629
2619
  }
2630
- var Zo = Object.getOwnPropertyDescriptor, qo = (e, t, r, n) => {
2631
- for (var i = n > 1 ? void 0 : n ? Zo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2620
+ var qo = Object.getOwnPropertyDescriptor, Jo = (e, t, r, n) => {
2621
+ for (var i = n > 1 ? void 0 : n ? qo(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2632
2622
  (a = e[o]) && (i = a(i) || i);
2633
2623
  return i;
2634
2624
  }, at = (e, t) => (r, n) => t(r, n, e);
2635
- const Me = 4, _t = 4, he = 14, me = 6, We = 4, jt = 8, Jo = "#565656", xn = 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");
2636
- function Qo(e, t) {
2625
+ const be = 4, St = 4, he = 14, me = 6, We = 4, Xt = 8, Qo = "#565656", Bn = 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");
2626
+ function ea(e, t) {
2637
2627
  const r = e.length;
2638
2628
  return {
2639
2629
  id: "d",
2640
2630
  body: {
2641
- dataStream: `${e}${zr}`,
2631
+ dataStream: `${e}${Kr}`,
2642
2632
  textRuns: [
2643
2633
  {
2644
2634
  ts: {
@@ -2673,22 +2663,22 @@ function Qo(e, t) {
2673
2663
  }
2674
2664
  };
2675
2665
  }
2676
- function Tr(e, t, r) {
2677
- const n = Qo(e, r), i = new Xr(n), o = new Ci(i);
2666
+ function Pr(e, t, r) {
2667
+ const n = ea(e, r), i = new zr(n), o = new Ii(i);
2678
2668
  return {
2679
- documentSkeleton: Ii.create(o, t),
2669
+ documentSkeleton: wi.create(o, t),
2680
2670
  docModel: i,
2681
2671
  docViewModel: o
2682
2672
  };
2683
2673
  }
2684
- function St(e, t, r) {
2674
+ function Ct(e, t, r) {
2685
2675
  const {
2686
2676
  documentSkeleton: n,
2687
2677
  docModel: i,
2688
2678
  docViewModel: o
2689
- } = Tr(e, t, r);
2679
+ } = Pr(e, t, r);
2690
2680
  return {
2691
- documents: new Si(`DOCUMENTS_${Kt.generateRandomId()}`, n, {
2681
+ documents: new Ci(`DOCUMENTS_${Zt.generateRandomId()}`, n, {
2692
2682
  pageMarginLeft: 0,
2693
2683
  pageMarginTop: 0
2694
2684
  }),
@@ -2697,7 +2687,7 @@ function St(e, t, r) {
2697
2687
  docViewModel: o
2698
2688
  };
2699
2689
  }
2700
- function $n(e, t, r, n, i, o, a = !0) {
2690
+ function Hn(e, t, r, n, i, o, a = !0) {
2701
2691
  let l = 0;
2702
2692
  const s = a ? We : 0;
2703
2693
  switch (i) {
@@ -2726,7 +2716,7 @@ function $n(e, t, r, n, i, o, a = !0) {
2726
2716
  paddingTop: l
2727
2717
  };
2728
2718
  }
2729
- let sn = class {
2719
+ let dn = class {
2730
2720
  constructor(e, t, r, n, i) {
2731
2721
  E(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2732
2722
  E(this, "zIndex");
@@ -2744,16 +2734,16 @@ let sn = class {
2744
2734
  let u;
2745
2735
  switch (o) {
2746
2736
  case ae.MIDDLE:
2747
- u = (n - _t) / 2;
2737
+ u = (n - St) / 2;
2748
2738
  break;
2749
2739
  case ae.BOTTOM:
2750
- u = n - s - i - We + (i / 2 - _t / 2);
2740
+ u = n - s - i - We + (i / 2 - St / 2);
2751
2741
  break;
2752
2742
  default:
2753
- u = l + We + (i / 2 - _t / 2);
2743
+ u = l + We + (i / 2 - St / 2);
2754
2744
  break;
2755
2745
  }
2756
- e.save(), e.translateWithPrecision(t.startX + d, t.startY + u), e.fillStyle = "#565656", e.fill(xn), e.restore();
2746
+ e.save(), e.translateWithPrecision(t.startX + d, t.startY + u), e.fillStyle = "#565656", e.fill(Bn), e.restore();
2757
2747
  }
2758
2748
  // eslint-disable-next-line max-lines-per-function, complexity
2759
2749
  drawWith(e, t, r) {
@@ -2763,41 +2753,41 @@ let sn = class {
2763
2753
  const h = this._dataValidationModel.getValidator(u.type);
2764
2754
  if (!h)
2765
2755
  return;
2766
- const c = l == null ? void 0 : l.fontRenderExtension, { leftOffset: m = 0, rightOffset: g = 0, topOffset: b = 0, downOffset: y = 0 } = c || {};
2756
+ const c = l == null ? void 0 : l.fontRenderExtension, { leftOffset: m = 0, rightOffset: p = 0, topOffset: M = 0, downOffset: y = 0 } = c || {};
2767
2757
  if (!u || !h || !h || h.id.indexOf(G.LIST) !== 0 || !h.skipDefaultFontRender(u))
2768
2758
  return;
2769
- const p = {
2759
+ const g = {
2770
2760
  startX: d.startX + m,
2771
- endX: d.endX - g,
2772
- startY: d.startY + b,
2761
+ endX: d.endX - p,
2762
+ startY: d.startY + M,
2773
2763
  endY: d.endY - y
2774
- }, S = p.endX - p.startX, v = p.endY - p.startY, C = this._ensureMap(s), w = this._generateKey(i, o), I = h.getListWithColor(u), R = Q(l), T = `${R != null ? R : ""}`, N = I.find((V) => V.label === T);
2764
+ }, S = g.endX - g.startX, v = g.endY - g.startY, C = this._ensureMap(s), w = this._generateKey(i, o), I = h.getListWithColor(u), R = Q(l), T = `${R != null ? R : ""}`, N = I.find((V) => V.label === T);
2775
2765
  let { tb: D, vt: P, ht: A, pd: L } = a || {};
2776
2766
  if (D = D != null ? D : Ie.WRAP, P = P != null ? P : ae.BOTTOM, A = A != null ? A : re.ht, L = L != null ? L : re.pd, u.renderMode === ie.ARROW) {
2777
- const { l: V = re.pd.l, t: F = re.pd.t, r: x = re.pd.r, b: Y = re.pd.b } = L, Z = S - V - x - he - 4, { documentSkeleton: X, documents: te, docModel: pe } = St(T, this._localeService, a);
2778
- D === Ie.WRAP && pe.updateDocumentDataPageSize(Math.max(Z, 1)), X.calculate(), X.getActualSize();
2779
- const de = it(X), { height: ne, width: ce } = de, { paddingTop: Se, paddingLeft: ve } = $n(Z, v - F - Y, ce, ne, P, A, !0);
2780
- this._drawDownIcon(e, p, S, v, ne, P, L), e.save(), e.translateWithPrecision(p.startX + V, p.startY + F), e.beginPath(), e.rect(0, 0, S - V - x, v - F - Y), e.clip(), e.translateWithPrecision(0, Se), e.save(), e.translateWithPrecision(Me, 0), e.beginPath(), e.rect(0, 0, Z, ne), e.clip(), te.render(e), e.translateWithPrecision(ve, 0), e.restore(), e.restore(), C.set(w, {
2781
- left: p.endX + V + r.rowHeaderWidth - he,
2782
- top: p.startY + F + r.columnHeaderHeight,
2767
+ const { l: V = re.pd.l, t: F = re.pd.t, r: x = re.pd.r, b: X = re.pd.b } = L, Z = S - V - x - he - 4, { documentSkeleton: z, documents: te, docModel: ge } = Ct(T, this._localeService, a);
2768
+ D === Ie.WRAP && ge.updateDocumentDataPageSize(Math.max(Z, 1)), z.calculate(), z.getActualSize();
2769
+ const de = it(z), { height: ne, width: ce } = de, { paddingTop: Se, paddingLeft: ve } = Hn(Z, v - F - X, ce, ne, P, A, !0);
2770
+ this._drawDownIcon(e, g, S, v, ne, P, L), e.save(), e.translateWithPrecision(g.startX + V, g.startY + F), e.beginPath(), e.rect(0, 0, S - V - x, v - F - X), e.clip(), e.translateWithPrecision(0, Se), e.save(), e.translateWithPrecision(be, 0), e.beginPath(), e.rect(0, 0, Z, ne), e.clip(), te.render(e), e.translateWithPrecision(ve, 0), e.restore(), e.restore(), C.set(w, {
2771
+ left: g.endX + V + r.rowHeaderWidth - he,
2772
+ top: g.startY + F + r.columnHeaderHeight,
2783
2773
  width: he,
2784
- height: v - F - Y
2774
+ height: v - F - X
2785
2775
  });
2786
2776
  } else {
2787
- e.save(), e.translateWithPrecision(p.startX, p.startY), e.beginPath(), e.rect(0, 0, S, v), e.clip();
2788
- const V = S - me * 2 - Me - he - 4, { documentSkeleton: F, documents: x, docModel: Y } = St(T, this._localeService, a);
2789
- D === Ie.WRAP && Y.updateDocumentDataPageSize(Math.max(V, 1)), F.calculate();
2790
- const Z = it(F), { height: X, width: te } = Z, { paddingTop: pe, paddingLeft: de } = $n(V, v, te, X, P, A);
2791
- e.translateWithPrecision(me, pe);
2792
- const ne = Math.max(S - me * 2, 1), ce = X;
2793
- cr.drawWith(e, {
2777
+ e.save(), e.translateWithPrecision(g.startX, g.startY), e.beginPath(), e.rect(0, 0, S, v), e.clip();
2778
+ const V = S - me * 2 - be - he - 4, { documentSkeleton: F, documents: x, docModel: X } = Ct(T, this._localeService, a);
2779
+ D === Ie.WRAP && X.updateDocumentDataPageSize(Math.max(V, 1)), F.calculate();
2780
+ const Z = it(F), { height: z, width: te } = Z, { paddingTop: ge, paddingLeft: de } = Hn(V, v, te, z, P, A);
2781
+ e.translateWithPrecision(me, ge);
2782
+ const ne = Math.max(S - me * 2, 1), ce = z;
2783
+ ur.drawWith(e, {
2794
2784
  width: ne,
2795
2785
  height: ce,
2796
2786
  fill: (N == null ? void 0 : N.color) || He,
2797
- radius: jt
2798
- }), e.save(), e.translateWithPrecision(Me, 0), e.beginPath(), e.rect(0, 0, V, X), e.clip(), e.translateWithPrecision(de, 0), x.render(e), e.restore(), e.translateWithPrecision(V + Me + 4, (X - _t) / 2), e.fillStyle = Jo, e.fill(xn), e.restore(), C.set(w, {
2799
- left: p.startX + me + r.rowHeaderWidth,
2800
- top: p.startY + pe + r.columnHeaderHeight,
2787
+ radius: Xt
2788
+ }), e.save(), e.translateWithPrecision(be, 0), e.beginPath(), e.rect(0, 0, V, z), e.clip(), e.translateWithPrecision(de, 0), x.render(e), e.restore(), e.translateWithPrecision(V + be + 4, (z - St) / 2), e.fillStyle = Qo, e.fill(Bn), e.restore(), C.set(w, {
2789
+ left: g.startX + me + r.rowHeaderWidth,
2790
+ top: g.startY + ge + r.columnHeaderHeight,
2801
2791
  width: ne,
2802
2792
  height: ce
2803
2793
  });
@@ -2812,17 +2802,17 @@ let sn = class {
2812
2802
  endX: a.endX - d,
2813
2803
  startY: a.startY + u,
2814
2804
  endY: a.endY - h
2815
- }, g = m.endX - m.startX, b = Q(n), y = `${b != null ? b : ""}`;
2816
- let { tb: p, pd: S } = r || {};
2805
+ }, p = m.endX - m.startX, M = Q(n), y = `${M != null ? M : ""}`;
2806
+ let { tb: g, pd: S } = r || {};
2817
2807
  const { t: v = re.pd.t, b: C = re.pd.b } = S != null ? S : {};
2818
- if (p = p != null ? p : Ie.WRAP, c.renderMode === ie.ARROW) {
2819
- const w = g - he, { documentSkeleton: I, docModel: R } = St(y, this._localeService, r);
2820
- p === Ie.WRAP && R.updateDocumentDataPageSize(Math.max(w, 1)), I.calculate(), I.getActualSize();
2808
+ if (g = g != null ? g : Ie.WRAP, c.renderMode === ie.ARROW) {
2809
+ const w = p - he, { documentSkeleton: I, docModel: R } = Ct(y, this._localeService, r);
2810
+ g === Ie.WRAP && R.updateDocumentDataPageSize(Math.max(w, 1)), I.calculate(), I.getActualSize();
2821
2811
  const T = it(I), { height: N } = T;
2822
2812
  return N + v + C + We * 2;
2823
2813
  } else {
2824
- const w = g - me * 2 - Me - he, { documentSkeleton: I, docModel: R } = Tr(y, this._localeService, r);
2825
- p === Ie.WRAP && R.updateDocumentDataPageSize(Math.max(w, 1)), I.calculate();
2814
+ const w = p - me * 2 - be - he, { documentSkeleton: I, docModel: R } = Pr(y, this._localeService, r);
2815
+ g === Ie.WRAP && R.updateDocumentDataPageSize(Math.max(w, 1)), I.calculate();
2826
2816
  const T = it(I), {
2827
2817
  height: N
2828
2818
  } = T;
@@ -2838,24 +2828,24 @@ let sn = class {
2838
2828
  endX: a.endX - d,
2839
2829
  startY: a.startY + u,
2840
2830
  endY: a.endY - h
2841
- }, g = m.endX - m.startX, b = Q(n), y = `${b != null ? b : ""}`;
2842
- let { tb: p, pd: S } = r || {};
2831
+ }, p = m.endX - m.startX, M = Q(n), y = `${M != null ? M : ""}`;
2832
+ let { tb: g, pd: S } = r || {};
2843
2833
  const { l: v = re.pd.l, r: C = re.pd.r } = S != null ? S : {};
2844
- p = p != null ? p : Ie.WRAP;
2834
+ g = g != null ? g : Ie.WRAP;
2845
2835
  let w = me * 2 + he;
2846
2836
  switch (c.renderMode) {
2847
2837
  case ie.ARROW:
2848
2838
  w = he + me * 2 + C + v;
2849
2839
  break;
2850
2840
  case ie.CUSTOM:
2851
- w = he + me * 2 + Me * 2 + C + v + jt / 2 + 1;
2841
+ w = he + me * 2 + be * 2 + C + v + Xt / 2 + 1;
2852
2842
  break;
2853
2843
  // default is CUSTOM
2854
2844
  default:
2855
- w = he + me * 2 + Me * 2 + C + v + jt / 2 + 1;
2845
+ w = he + me * 2 + be * 2 + C + v + Xt / 2 + 1;
2856
2846
  }
2857
- const I = g - w, { documentSkeleton: R, docModel: T } = St(y, this._localeService, r);
2858
- return p === Ie.WRAP && T.updateDocumentDataPageSize(Math.max(I, 1)), R.calculate(), R.getActualSize(), it(R).width + w;
2847
+ const I = p - w, { documentSkeleton: R, docModel: T } = Ct(y, this._localeService, r);
2848
+ return g === Ie.WRAP && T.updateDocumentDataPageSize(Math.max(I, 1)), R.calculate(), R.getActualSize(), it(R).width + w;
2859
2849
  }
2860
2850
  isHit(e, t) {
2861
2851
  const { subUnitId: r, row: n, col: i } = t, a = this._ensureMap(r).get(this._generateKey(n, i)), l = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, n, i);
@@ -2873,64 +2863,64 @@ let sn = class {
2873
2863
  row: i,
2874
2864
  column: o
2875
2865
  };
2876
- this._commandService.executeCommand(At.id, a);
2866
+ this._commandService.executeCommand(kt.id, a);
2877
2867
  }
2878
2868
  onPointerEnter(e, t) {
2879
2869
  var r, n;
2880
- (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.POINTER);
2870
+ (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.POINTER);
2881
2871
  }
2882
2872
  onPointerLeave(e, t) {
2883
2873
  var r, n;
2884
- (n = (r = Ke(j.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.DEFAULT);
2874
+ (n = (r = Ke(Y.UNIVER_SHEET, this._univerInstanceService, this._renderManagerService)) == null ? void 0 : r.mainComponent) == null || n.setCursor(Ge.DEFAULT);
2885
2875
  }
2886
2876
  };
2887
- sn = qo([
2877
+ dn = Jo([
2888
2878
  at(0, le),
2889
- at(1, M(se)),
2879
+ at(1, b(se)),
2890
2880
  at(2, J),
2891
- at(3, M(Ne)),
2892
- at(4, M(ee))
2893
- ], sn);
2894
- class ea extends fe {
2881
+ at(3, b(Ne)),
2882
+ at(4, b(ee))
2883
+ ], dn);
2884
+ class ta extends fe {
2895
2885
  constructor() {
2896
2886
  super(...arguments);
2897
2887
  E(this, "id", G.LIST);
2898
- E(this, "canvasRender", this.injector.createInstance(sn));
2899
- E(this, "dropdownType", ge.LIST);
2900
- E(this, "optionsInput", Dt.componentKey);
2901
- E(this, "formulaInput", cn);
2888
+ E(this, "canvasRender", this.injector.createInstance(dn));
2889
+ E(this, "dropdownType", pe.LIST);
2890
+ E(this, "optionsInput", Ot.componentKey);
2891
+ E(this, "formulaInput", hn);
2902
2892
  }
2903
2893
  }
2904
- class ta extends fe {
2894
+ class na extends fe {
2905
2895
  constructor() {
2906
2896
  super(...arguments);
2907
2897
  E(this, "id", G.TEXT_LENGTH);
2908
- E(this, "formulaInput", Tt);
2898
+ E(this, "formulaInput", At);
2909
2899
  }
2910
2900
  }
2911
- class na extends fe {
2901
+ class ra extends fe {
2912
2902
  constructor() {
2913
2903
  super(...arguments);
2914
2904
  E(this, "id", G.WHOLE);
2915
- E(this, "formulaInput", Tt);
2905
+ E(this, "formulaInput", At);
2916
2906
  }
2917
2907
  }
2918
- var ra = Object.getOwnPropertyDescriptor, ia = (e, t, r, n) => {
2919
- for (var i = n > 1 ? void 0 : n ? ra(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2908
+ var ia = Object.getOwnPropertyDescriptor, oa = (e, t, r, n) => {
2909
+ for (var i = n > 1 ? void 0 : n ? ia(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2920
2910
  (a = e[o]) && (i = a(i) || i);
2921
2911
  return i;
2922
- }, Yt = (e, t) => (r, n) => t(r, n, e);
2923
- let tt = class extends dn {
2912
+ }, zt = (e, t) => (r, n) => t(r, n, e);
2913
+ let tt = class extends un {
2924
2914
  constructor(e, t, r) {
2925
2915
  super(), this._injector = e, this._componentManger = t, this._dataValidatorRegistryService = r, this._initComponents(), this._registerValidatorViews();
2926
2916
  }
2927
2917
  _initComponents() {
2928
2918
  [
2929
- [br, Sr],
2930
- [Mt, Po],
2931
- [Dt.componentKey, Dt],
2932
- [Vt.componentKey, Vt],
2933
- ...Qi
2919
+ [br, Cr],
2920
+ [Dt, Ao],
2921
+ [Ot.componentKey, Ot],
2922
+ [Tt.componentKey, Tt],
2923
+ ...eo
2934
2924
  ].forEach(([e, t]) => {
2935
2925
  this.disposeWithMe(this._componentManger.register(
2936
2926
  e,
@@ -2940,47 +2930,47 @@ let tt = class extends dn {
2940
2930
  }
2941
2931
  _registerValidatorViews() {
2942
2932
  [
2943
- Bo,
2933
+ Ho,
2934
+ ra,
2944
2935
  na,
2936
+ Bo,
2937
+ Fo,
2945
2938
  ta,
2946
- $o,
2947
- Uo,
2948
- ea,
2949
- Go,
2950
- Fo
2939
+ Zo,
2940
+ xo
2951
2941
  ].forEach((e) => {
2952
2942
  const t = this._injector.createInstance(e), r = this._dataValidatorRegistryService.getValidatorItem(t.id);
2953
2943
  r && (r.formulaInput = t.formulaInput, r.canvasRender = t.canvasRender, r.dropdownType = t.dropdownType, r.optionsInput = t.optionsInput);
2954
2944
  });
2955
2945
  }
2956
2946
  };
2957
- tt = ia([
2958
- Yt(0, M(we)),
2959
- Yt(1, M(pn)),
2960
- Yt(2, M(ye))
2947
+ tt = oa([
2948
+ zt(0, b(we)),
2949
+ zt(1, b(mn)),
2950
+ zt(2, b(ye))
2961
2951
  ], tt);
2962
- var oa = Object.getOwnPropertyDescriptor, aa = (e, t, r, n) => {
2963
- for (var i = n > 1 ? void 0 : n ? oa(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2952
+ var aa = Object.getOwnPropertyDescriptor, sa = (e, t, r, n) => {
2953
+ for (var i = n > 1 ? void 0 : n ? aa(t, r) : t, o = e.length - 1, a; o >= 0; o--)
2964
2954
  (a = e[o]) && (i = a(i) || i);
2965
2955
  return i;
2966
- }, Xt = (e, t) => (r, n) => t(r, n, e);
2967
- const sa = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2968
- var Ct;
2969
- let Bn = (Ct = class extends zn {
2970
- constructor(e = bt, t, r, n) {
2956
+ }, Kt = (e, t) => (r, n) => t(r, n, e);
2957
+ const la = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2958
+ var It;
2959
+ let Wn = (It = class extends Gn {
2960
+ constructor(e = Et, t, r, n) {
2971
2961
  super(), this._config = e, this._injector = t, this._commandService = r, this._configService = n;
2972
- const { menu: i, ...o } = Kn(
2962
+ const { menu: i, ...o } = Zn(
2973
2963
  {},
2974
- bt,
2964
+ Et,
2975
2965
  this._config
2976
2966
  );
2977
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(Cn, o);
2967
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(wn, o);
2978
2968
  }
2979
2969
  onStarting() {
2980
2970
  [
2981
2971
  [_e],
2982
2972
  [Ae],
2983
- [ct],
2973
+ [ut],
2984
2974
  [qe],
2985
2975
  [et],
2986
2976
  [Qe],
@@ -2990,20 +2980,20 @@ let Bn = (Ct = class extends zn {
2990
2980
  ].forEach((e) => {
2991
2981
  this._injector.add(e);
2992
2982
  }), [
2993
- Lt,
2994
- At,
2995
- yr,
2996
- In,
2983
+ Nt,
2984
+ kt,
2985
+ Mr,
2986
+ Rn,
2997
2987
  Fe,
2998
- Rr
2988
+ yr
2999
2989
  ].forEach((e) => {
3000
2990
  this._commandService.registerCommand(e);
3001
2991
  });
3002
2992
  }
3003
2993
  onReady() {
3004
- this._injector.get(Je), this._injector.get(Qe), this._injector.get(Ze), this._injector.get(ct), this._injector.get(Ne).registerRenderModule(
3005
- j.UNIVER_SHEET,
3006
- [Et]
2994
+ this._injector.get(Je), this._injector.get(Qe), this._injector.get(Ze), this._injector.get(ut), this._injector.get(Ne).registerRenderModule(
2995
+ Y.UNIVER_SHEET,
2996
+ [Vt]
3007
2997
  );
3008
2998
  }
3009
2999
  onRendered() {
@@ -3012,34 +3002,34 @@ let Bn = (Ct = class extends zn {
3012
3002
  onSteady() {
3013
3003
  this._injector.get(qe);
3014
3004
  }
3015
- }, E(Ct, "pluginName", sa), E(Ct, "type", j.UNIVER_SHEET), Ct);
3016
- Bn = aa([
3017
- Xt(1, M(we)),
3018
- Xt(2, J),
3019
- Xt(3, ln)
3020
- ], Bn);
3021
- var la = Object.getOwnPropertyDescriptor, da = (e, t, r, n) => {
3022
- for (var i = n > 1 ? void 0 : n ? la(t, r) : t, o = e.length - 1, a; o >= 0; o--)
3005
+ }, E(It, "pluginName", la), E(It, "type", Y.UNIVER_SHEET), It);
3006
+ Wn = sa([
3007
+ Kt(1, b(we)),
3008
+ Kt(2, J),
3009
+ Kt(3, cn)
3010
+ ], Wn);
3011
+ var da = Object.getOwnPropertyDescriptor, ca = (e, t, r, n) => {
3012
+ for (var i = n > 1 ? void 0 : n ? da(t, r) : t, o = e.length - 1, a; o >= 0; o--)
3023
3013
  (a = e[o]) && (i = a(i) || i);
3024
3014
  return i;
3025
- }, zt = (e, t) => (r, n) => t(r, n, e);
3026
- const ca = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3027
- var It;
3028
- let Hn = (It = class extends zn {
3029
- constructor(e = bt, t, r, n) {
3015
+ }, Gt = (e, t) => (r, n) => t(r, n, e);
3016
+ const ua = "SHEET_DATA_VALIDATION_UI_PLUGIN";
3017
+ var wt;
3018
+ let jn = (wt = class extends Gn {
3019
+ constructor(e = Et, t, r, n) {
3030
3020
  super(), this._config = e, this._injector = t, this._commandService = r, this._configService = n;
3031
- const { menu: i, ...o } = Kn(
3021
+ const { menu: i, ...o } = Zn(
3032
3022
  {},
3033
- bt,
3023
+ Et,
3034
3024
  this._config
3035
3025
  );
3036
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(Cn, o);
3026
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(wn, o);
3037
3027
  }
3038
3028
  onStarting() {
3039
3029
  [
3040
3030
  [_e],
3041
3031
  [Ae],
3042
- [ct],
3032
+ [ut],
3043
3033
  [qe],
3044
3034
  [et],
3045
3035
  [Qe],
@@ -3048,20 +3038,20 @@ let Hn = (It = class extends zn {
3048
3038
  ].forEach((e) => {
3049
3039
  this._injector.add(e);
3050
3040
  }), [
3051
- Lt,
3052
- At,
3053
- yr,
3054
- In,
3041
+ Nt,
3042
+ kt,
3043
+ Mr,
3044
+ Rn,
3055
3045
  Fe,
3056
- Rr
3046
+ yr
3057
3047
  ].forEach((e) => {
3058
3048
  this._commandService.registerCommand(e);
3059
3049
  });
3060
3050
  }
3061
3051
  onReady() {
3062
3052
  this._injector.get(Je), this._injector.get(Qe), this._injector.get(Ne).registerRenderModule(
3063
- j.UNIVER_SHEET,
3064
- [Et]
3053
+ Y.UNIVER_SHEET,
3054
+ [Vt]
3065
3055
  );
3066
3056
  }
3067
3057
  onRendered() {
@@ -3070,14 +3060,14 @@ let Hn = (It = class extends zn {
3070
3060
  onSteady() {
3071
3061
  this._injector.get(qe);
3072
3062
  }
3073
- }, E(It, "pluginName", ca), E(It, "type", j.UNIVER_SHEET), It);
3074
- Hn = da([
3075
- zt(1, M(we)),
3076
- zt(2, J),
3077
- zt(3, ln)
3078
- ], Hn);
3063
+ }, E(wt, "pluginName", ua), E(wt, "type", Y.UNIVER_SHEET), wt);
3064
+ jn = ca([
3065
+ Gt(1, b(we)),
3066
+ Gt(2, J),
3067
+ Gt(3, cn)
3068
+ ], jn);
3079
3069
  export {
3080
3070
  fe as BaseSheetDataValidatorView,
3081
- Hn as UniverSheetsDataValidationMobileUIPlugin,
3082
- Bn as UniverSheetsDataValidationUIPlugin
3071
+ jn as UniverSheetsDataValidationMobileUIPlugin,
3072
+ Wn as UniverSheetsDataValidationUIPlugin
3083
3073
  };