@univerjs/sheets-data-validation-ui 0.6.10-nightly.202504181606 → 0.6.10-nightly.202504191606

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/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  var Nn = Object.defineProperty;
2
2
  var Un = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var E = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { LocaleService as le, isFormulaString as be, DataValidationType as G, Tools as Qt, Inject as M, Injector as we, Disposable as Ve, UniverInstanceType as x, toDisposable as Bn, IUniverInstanceService as de, DataValidationErrorStyle as ct, DataValidationStatus as Xe, ICommandService as Q, DataValidationRenderMode as ie, DisposableCollection as $n, dayjs as ya, numfmt as ja, CellValueType as Hn, CommandType as ot, ObjectMatrix as Mt, Range as Wn, Rectangle as Dt, queryObjectMatrix as ea, Optional as xn, RxDisposable as ma, InterceptorEffectEnum as Ya, sequenceExecute as Xa, bufferDebounceTime as jn, debounce as Yn, UndoCommand as Xn, RedoCommand as zn, isUnitRangesEqual as Kn, shallowEqual as Ma, ThemeService as za, ColorKit as Gn, VerticalAlign as se, HorizontalAlign as ze, DEFAULT_STYLES as oe, WrapStrategy as Re, DocumentDataModel as Zn, BooleanNumber as it, DEFAULT_EMPTY_DOCUMENT_VALUE as qn, Plugin as Ka, merge as Ga, IConfigService as Za } from "@univerjs/core";
5
- import { DataValidationFormulaController as Jn, deserializeListOptions as Qn, serializeListOptions as qa, CUSTOM_FORMULA_INPUT_NAME as Ja, BASE_FORMULA_INPUT_NAME as Ft, LIST_FORMULA_INPUT_NAME as pa, CHECKBOX_FORMULA_INPUT_NAME as Qa, SheetDataValidationModel as te, SheetsDataValidationValidatorService as eo, getDataValidationCellValue as Bt, getCellValueOrigin as ee, createDefaultNewRule as en, AddSheetDataValidationCommand as ga, DATA_VALIDATION_PLUGIN_NAME as tn, getDataValidationDiffMutations as ta, UpdateSheetDataValidationRangeCommand as an, DataValidationCacheService as nn, UpdateSheetDataValidationSettingCommand as Da, UpdateSheetDataValidationOptionsCommand as to, RemoveSheetDataValidationCommand as on, RemoveSheetAllDataValidationCommand as ao, DataValidationFormulaService as no, CHECKBOX_FORMULA_2 as oo, CHECKBOX_FORMULA_1 as io, getFormulaResult as $t, isLegalFormulaResult as Ea, transformCheckboxValue as ro } from "@univerjs/sheets-data-validation";
6
- import { jsxs as z, Fragment as Ke, jsx as v } from "react/jsx-runtime";
7
- import { FormLayout as K, Input as Oe, Checkbox as kt, RadioGroup as fa, Radio as Te, DraggableList as so, clsx as lo, Select as aa, Button as Ge } from "@univerjs/design";
8
- import { useDependency as N, useSidebarClick as rn, useObservable as Ae, useEvent as na, ISidebarService as sn, IDialogService as co, IZenZoneService as ln, KeyCode as pt, MenuItemType as va, getMenuHiddenObservable as uo, RibbonStartGroup as ho, IMenuManagerService as mo, ComponentManager as _a } from "@univerjs/ui";
9
- import ba, { useState as W, useRef as mt, forwardRef as Fe, createElement as ke, useMemo as ut, useEffect as Le } from "react";
10
- import { FormulaEditor as dn, RangeSelector as po } from "@univerjs/sheets-formula-ui";
11
- import { DataValidatorRegistryService as ye, DataValidationModel as Sa, DataValidatorDropdownType as me, DataValidatorRegistryScope as go, TWO_FORMULA_OPERATOR_COUNT as fo, getRuleOptions as Oa, getRuleSetting as Ta } from "@univerjs/data-validation";
12
- import { debounceTime as cn, filter as Ca, BehaviorSubject as Aa, distinctUntilChanged as vo, Subject as _o, bufferTime as un, of as So } from "rxjs";
13
- import { DeviceInputEventType as gt, IRenderManagerService as Ne, fixLineWidthByScale as La, Transform as Co, CheckboxShape as Io, getCurrentTypeOfRenderer as Ze, CURSOR_TYPE as qe, FontCache as Ro, Shape as wo, Rect as hn, getFontStyleString as Ht, getDocsSkeletonPageSize as rt, Documents as Vo, DocumentViewModel as yo, DocumentSkeleton as Mo } from "@univerjs/engine-render";
14
- import { SheetInterceptorService as Ia, VALIDATE_CELL as Do, SheetsSelectionsService as mn, SetRangeValuesCommand as dt, getSheetCommandTarget as pn, rangeToDiscreteRange as Eo, SheetPermissionCheckController as bo, WorksheetEditPermission as oa, WorksheetSetCellStylePermission as ia, RangeProtectionPermissionEditPoint as ra, WorkbookEditablePermission as sa, INTERCEPTOR_POINT as gn, InterceptCellContentPriority as fn, checkRangesEditablePermission as Oo } from "@univerjs/sheets";
3
+ var D = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { LocaleService as le, isFormulaString as be, DataValidationType as G, Tools as Qt, Inject as y, Injector as we, Disposable as Ve, UniverInstanceType as x, toDisposable as Bn, IUniverInstanceService as de, DataValidationErrorStyle as ct, DataValidationStatus as Xe, ICommandService as Q, IConfigService as ma, DataValidationRenderMode as ie, DisposableCollection as $n, dayjs as Da, numfmt as Xa, CellValueType as Hn, CommandType as ot, ObjectMatrix as Mt, Range as Wn, Rectangle as Dt, queryObjectMatrix as ea, Optional as xn, RxDisposable as pa, InterceptorEffectEnum as za, sequenceExecute as Ka, bufferDebounceTime as jn, debounce as Yn, UndoCommand as Xn, RedoCommand as zn, isUnitRangesEqual as Kn, shallowEqual as Ea, ThemeService as Ga, ColorKit as Gn, VerticalAlign as se, HorizontalAlign as ze, DEFAULT_STYLES as oe, WrapStrategy as Re, DocumentDataModel as Zn, BooleanNumber as it, DEFAULT_EMPTY_DOCUMENT_VALUE as qn, Plugin as Za, merge as qa } from "@univerjs/core";
5
+ import { DataValidationFormulaController as Jn, deserializeListOptions as Qn, serializeListOptions as Ja, CUSTOM_FORMULA_INPUT_NAME as Qa, BASE_FORMULA_INPUT_NAME as Ft, LIST_FORMULA_INPUT_NAME as ga, CHECKBOX_FORMULA_INPUT_NAME as en, SheetDataValidationModel as te, SheetsDataValidationValidatorService as eo, getDataValidationCellValue as Bt, getCellValueOrigin as ee, createDefaultNewRule as tn, AddSheetDataValidationCommand as fa, DATA_VALIDATION_PLUGIN_NAME as an, getDataValidationDiffMutations as ta, UpdateSheetDataValidationRangeCommand as nn, DataValidationCacheService as on, UpdateSheetDataValidationSettingCommand as ba, UpdateSheetDataValidationOptionsCommand as to, RemoveSheetDataValidationCommand as rn, RemoveSheetAllDataValidationCommand as ao, DataValidationFormulaService as no, CHECKBOX_FORMULA_2 as oo, CHECKBOX_FORMULA_1 as io, getFormulaResult as $t, isLegalFormulaResult as Oa, transformCheckboxValue as ro } from "@univerjs/sheets-data-validation";
6
+ import { jsxs as z, Fragment as Ke, jsx as _ } from "react/jsx-runtime";
7
+ import { FormLayout as K, Input as Oe, Checkbox as kt, RadioGroup as va, Radio as Te, DraggableList as so, clsx as lo, Select as aa, Button as Ge } from "@univerjs/design";
8
+ import { useDependency as N, useSidebarClick as sn, useObservable as Ae, useEvent as na, ISidebarService as ln, IDialogService as co, IZenZoneService as dn, KeyCode as pt, MenuItemType as _a, getMenuHiddenObservable as uo, RibbonStartGroup as ho, IMenuManagerService as mo, ComponentManager as Sa } from "@univerjs/ui";
9
+ import Ta, { useState as W, useRef as mt, forwardRef as Fe, createElement as ke, useMemo as ut, useEffect as Le } from "react";
10
+ import { FormulaEditor as cn, RangeSelector as po } from "@univerjs/sheets-formula-ui";
11
+ import { DataValidatorRegistryService as ye, DataValidationModel as Ca, DataValidatorDropdownType as pe, DataValidatorRegistryScope as go, TWO_FORMULA_OPERATOR_COUNT as fo, getRuleOptions as Aa, getRuleSetting as La } from "@univerjs/data-validation";
12
+ import { debounceTime as un, filter as Ia, BehaviorSubject as Pa, distinctUntilChanged as vo, Subject as _o, bufferTime as hn, of as So } from "rxjs";
13
+ import { DeviceInputEventType as gt, IRenderManagerService as Ne, fixLineWidthByScale as Fa, Transform as Co, CheckboxShape as Io, getCurrentTypeOfRenderer as Ze, CURSOR_TYPE as qe, FontCache as Ro, Shape as wo, Rect as mn, getFontStyleString as Ht, getDocsSkeletonPageSize as rt, Documents as Vo, DocumentViewModel as yo, DocumentSkeleton as Mo } from "@univerjs/engine-render";
14
+ import { SheetInterceptorService as Ra, VALIDATE_CELL as Do, SheetsSelectionsService as pn, SetRangeValuesCommand as dt, getSheetCommandTarget as gn, rangeToDiscreteRange as Eo, SheetPermissionCheckController as bo, WorksheetEditPermission as oa, WorksheetSetCellStylePermission as ia, RangeProtectionPermissionEditPoint as ra, WorkbookEditablePermission as sa, INTERCEPTOR_POINT as fn, InterceptCellContentPriority as vn, checkRangesEditablePermission as Oo } from "@univerjs/sheets";
15
15
  import { getPatternType as To } from "@univerjs/sheets-numfmt";
16
- import { ISheetCellDropdownManagerService as Ao, IEditorBridgeService as vn, SetCellEditVisibleOperation as ft, HoverManagerService as Lo, CellAlertManagerService as Po, CellAlertType as Fo, IAutoFillService as ko, APPLY_TYPE as st, virtualizeDiscreteRanges as la, getAutoFillRepeatRange as No, ISheetClipboardService as Uo, COPY_TYPE as Pa, PREDEFINED_HOOK_NAME as vt, getRepeatRange as Fa, getCurrentRangeDisable$ as Bo, AutoHeightController as _n, SheetSkeletonManagerService as Et, IMarkSelectionService as $o } from "@univerjs/sheets-ui";
17
- import { deserializeRangeWithSheet as Ho, serializeRange as Sn } from "@univerjs/engine-formula";
16
+ import { ISheetCellDropdownManagerService as Ao, IEditorBridgeService as _n, SetCellEditVisibleOperation as ft, HoverManagerService as Lo, CellAlertManagerService as Po, CellAlertType as Fo, IAutoFillService as ko, APPLY_TYPE as st, virtualizeDiscreteRanges as la, getAutoFillRepeatRange as No, ISheetClipboardService as Uo, COPY_TYPE as ka, PREDEFINED_HOOK_NAME as vt, getRepeatRange as Na, getCurrentRangeDisable$ as Bo, AutoHeightController as Sn, SheetSkeletonManagerService as Et, IMarkSelectionService as $o } from "@univerjs/sheets-ui";
17
+ import { deserializeRangeWithSheet as Ho, serializeRange as Cn } from "@univerjs/engine-formula";
18
18
  const Wo = "univer-data-validation-formula", xo = "univer-data-validation-formula-and", jo = "univer-data-validation-formula-list-item", Yo = "univer-data-validation-formula-list-item-icon", Xo = "univer-data-validation-formula-list-item-drag", zo = "univer-data-validation-formula-list-add", Ko = "univer-data-validation-formula-color-select", Go = "univer-data-validation-formula-color-select-panel", Zo = "univer-data-validation-formula-color-item", J = {
19
19
  dataValidationFormula: Wo,
20
20
  dataValidationFormulaAnd: xo,
@@ -28,7 +28,7 @@ const Wo = "univer-data-validation-formula", xo = "univer-data-validation-formul
28
28
  }, qo = (e) => {
29
29
  const { isTwoFormula: t = !1, value: n, onChange: a, showError: o, validResult: i } = e, r = N(le), l = o ? i == null ? void 0 : i.formula1 : "", s = o ? i == null ? void 0 : i.formula2 : "";
30
30
  return t ? /* @__PURE__ */ z(Ke, { children: [
31
- /* @__PURE__ */ v(K, { error: l, children: /* @__PURE__ */ v(
31
+ /* @__PURE__ */ _(K, { error: l, children: /* @__PURE__ */ _(
32
32
  Oe,
33
33
  {
34
34
  className: J.dataValidationFormula,
@@ -42,8 +42,8 @@ const Wo = "univer-data-validation-formula", xo = "univer-data-validation-formul
42
42
  }
43
43
  }
44
44
  ) }),
45
- /* @__PURE__ */ v("div", { className: J.dataValidationFormulaAnd, children: r.t("dataValidation.panel.formulaAnd") }),
46
- /* @__PURE__ */ v(K, { error: s, children: /* @__PURE__ */ v(
45
+ /* @__PURE__ */ _("div", { className: J.dataValidationFormulaAnd, children: r.t("dataValidation.panel.formulaAnd") }),
46
+ /* @__PURE__ */ _(K, { error: s, children: /* @__PURE__ */ _(
47
47
  Oe,
48
48
  {
49
49
  className: J.dataValidationFormula,
@@ -57,7 +57,7 @@ const Wo = "univer-data-validation-formula", xo = "univer-data-validation-formul
57
57
  }
58
58
  }
59
59
  ) })
60
- ] }) : /* @__PURE__ */ v(K, { error: l, children: /* @__PURE__ */ v(
60
+ ] }) : /* @__PURE__ */ _(K, { error: l, children: /* @__PURE__ */ _(
61
61
  Oe,
62
62
  {
63
63
  className: J.dataValidationFormula,
@@ -72,7 +72,7 @@ const Wo = "univer-data-validation-formula", xo = "univer-data-validation-formul
72
72
  function Jo(e) {
73
73
  const { value: t, onChange: n, showError: a, validResult: o } = e, i = N(le), r = a ? o == null ? void 0 : o.formula1 : "", l = a ? o == null ? void 0 : o.formula2 : "", [s, d] = W(!((t == null ? void 0 : t.formula1) === void 0 && (t == null ? void 0 : t.formula2) === void 0));
74
74
  return /* @__PURE__ */ z(Ke, { children: [
75
- /* @__PURE__ */ v(K, { children: /* @__PURE__ */ v(
75
+ /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
76
76
  kt,
77
77
  {
78
78
  checked: s,
@@ -86,7 +86,7 @@ function Jo(e) {
86
86
  children: i.t("dataValidation.checkbox.tips")
87
87
  }
88
88
  ) }),
89
- s ? /* @__PURE__ */ v(K, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ v(
89
+ s ? /* @__PURE__ */ _(K, { label: i.t("dataValidation.checkbox.checked"), error: r, children: /* @__PURE__ */ _(
90
90
  Oe,
91
91
  {
92
92
  className: J.dataValidationFormula,
@@ -100,7 +100,7 @@ function Jo(e) {
100
100
  }
101
101
  }
102
102
  ) }) : null,
103
- s ? /* @__PURE__ */ v(K, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ v(
103
+ s ? /* @__PURE__ */ _(K, { label: i.t("dataValidation.checkbox.unchecked"), error: l, children: /* @__PURE__ */ _(
104
104
  Oe,
105
105
  {
106
106
  className: J.dataValidationFormula,
@@ -117,23 +117,23 @@ function Jo(e) {
117
117
  ] });
118
118
  }
119
119
  function Qo(e) {
120
- var p;
120
+ var h;
121
121
  const { unitId: t, subUnitId: n, value: a, onChange: o, showError: i, validResult: r } = e, l = i ? r == null ? void 0 : r.formula1 : void 0, s = mt(null), [d, u] = W(!1);
122
- return rn((c) => {
123
- var h;
124
- ((h = s.current) == null ? void 0 : h.isClickOutSide(c)) && u(!1);
125
- }), /* @__PURE__ */ v(
126
- dn,
122
+ return sn((c) => {
123
+ var m;
124
+ ((m = s.current) == null ? void 0 : m.isClickOutSide(c)) && u(!1);
125
+ }), /* @__PURE__ */ _(
126
+ cn,
127
127
  {
128
- initValue: (p = a == null ? void 0 : a.formula1) != null ? p : "=",
128
+ initValue: (h = a == null ? void 0 : a.formula1) != null ? h : "=",
129
129
  unitId: t,
130
130
  subUnitId: n,
131
131
  isFocus: d,
132
132
  onChange: (c) => {
133
- const _ = (c != null ? c : "").trim();
134
- _ !== (a == null ? void 0 : a.formula1) && (o == null || o({
133
+ const S = (c != null ? c : "").trim();
134
+ S !== (a == null ? void 0 : a.formula1) && (o == null || o({
135
135
  ...a,
136
- formula1: _
136
+ formula1: S
137
137
  }));
138
138
  },
139
139
  errorText: l,
@@ -160,11 +160,11 @@ var re = function() {
160
160
  return n;
161
161
  }, Ue = Fe(function(e, t) {
162
162
  var n = e.icon, a = e.id, o = e.className, i = e.extend, r = ei(e, ["icon", "id", "className", "extend"]), l = "univerjs-icon univerjs-icon-".concat(a, " ").concat(o || "").trim(), s = mt("_".concat(ni()));
163
- return Cn(n, "".concat(a), { defIds: n.defIds, idSuffix: s.current }, re({ ref: t, className: l }, r), i);
163
+ return In(n, "".concat(a), { defIds: n.defIds, idSuffix: s.current }, re({ ref: t, className: l }, r), i);
164
164
  });
165
- function Cn(e, t, n, a, o) {
165
+ function In(e, t, n, a, o) {
166
166
  return ke(e.tag, re(re({ key: t }, ti(e, n, o)), a), (ai(e, n).children || []).map(function(i, r) {
167
- return Cn(i, "".concat(t, "-").concat(e.tag, "-").concat(r), n, void 0, o);
167
+ return In(i, "".concat(t, "-").concat(e.tag, "-").concat(r), n, void 0, o);
168
168
  }));
169
169
  }
170
170
  function ti(e, t, n) {
@@ -189,54 +189,54 @@ function ni() {
189
189
  return Math.random().toString(36).substring(2, 8);
190
190
  }
191
191
  Ue.displayName = "UniverIcon";
192
- var oi = { 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" } }] }, In = Fe(function(e, t) {
192
+ var oi = { 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" } }] }, Rn = Fe(function(e, t) {
193
193
  return ke(Ue, Object.assign({}, e, {
194
194
  id: "data-validation-single",
195
195
  ref: t,
196
196
  icon: oi
197
197
  }));
198
198
  });
199
- In.displayName = "DataValidationSingle";
200
- var ii = { 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" } }] }, Ra = Fe(function(e, t) {
199
+ Rn.displayName = "DataValidationSingle";
200
+ var ii = { 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" } }] }, wa = Fe(function(e, t) {
201
201
  return ke(Ue, Object.assign({}, e, {
202
202
  id: "delete-single",
203
203
  ref: t,
204
204
  icon: ii
205
205
  }));
206
206
  });
207
- Ra.displayName = "DeleteSingle";
208
- var ri = { 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" } }] }, Rn = Fe(function(e, t) {
207
+ wa.displayName = "DeleteSingle";
208
+ var ri = { 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" } }] }, wn = Fe(function(e, t) {
209
209
  return ke(Ue, Object.assign({}, e, {
210
210
  id: "increase-single",
211
211
  ref: t,
212
212
  icon: ri
213
213
  }));
214
214
  });
215
- Rn.displayName = "IncreaseSingle";
216
- var si = { 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" } }] }, wn = Fe(function(e, t) {
215
+ wn.displayName = "IncreaseSingle";
216
+ var si = { 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" } }] }, Vn = Fe(function(e, t) {
217
217
  return ke(Ue, Object.assign({}, e, {
218
218
  id: "more-down-single",
219
219
  ref: t,
220
220
  icon: si
221
221
  }));
222
222
  });
223
- wn.displayName = "MoreDownSingle";
224
- var li = { 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" } }] }, Vn = Fe(function(e, t) {
223
+ Vn.displayName = "MoreDownSingle";
224
+ var li = { 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" } }] }, yn = Fe(function(e, t) {
225
225
  return ke(Ue, Object.assign({}, e, {
226
226
  id: "more-up-single",
227
227
  ref: t,
228
228
  icon: li
229
229
  }));
230
230
  });
231
- Vn.displayName = "MoreUpSingle";
232
- var di = { 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" } }] }] }, yn = Fe(function(e, t) {
231
+ yn.displayName = "MoreUpSingle";
232
+ var di = { 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" } }] }] }, Mn = Fe(function(e, t) {
233
233
  return ke(Ue, Object.assign({}, e, {
234
234
  id: "sequence-single",
235
235
  ref: t,
236
236
  icon: di
237
237
  }));
238
238
  });
239
- yn.displayName = "SequenceSingle";
239
+ Mn.displayName = "SequenceSingle";
240
240
  const je = "#ECECEC", ci = [
241
241
  "#FFFFFF",
242
242
  "#FEE7E7",
@@ -264,7 +264,7 @@ const je = "#ECECEC", ci = [
264
264
  "#F248A6"
265
265
  ], ui = (e) => {
266
266
  const { value: t, onChange: n, disabled: a } = e, [o, i] = W(!1);
267
- return /* @__PURE__ */ v(
267
+ return /* @__PURE__ */ _(
268
268
  aa,
269
269
  {
270
270
  disabled: a,
@@ -275,15 +275,15 @@ const je = "#ECECEC", ci = [
275
275
  className: J.dataValidationFormulaColorSelect,
276
276
  value: t,
277
277
  onChange: n,
278
- labelRender: (r) => /* @__PURE__ */ v(
278
+ labelRender: (r) => /* @__PURE__ */ _(
279
279
  "div",
280
280
  {
281
281
  className: J.dataValidationFormulaColorItem,
282
282
  style: { background: r.value, marginTop: 5 }
283
283
  }
284
284
  ),
285
- dropdownRender: () => /* @__PURE__ */ v("div", { className: J.dataValidationFormulaColorSelectPanel, children: ci.map(
286
- (r) => /* @__PURE__ */ v(
285
+ dropdownRender: () => /* @__PURE__ */ _("div", { className: J.dataValidationFormulaColorSelectPanel, children: ci.map(
286
+ (r) => /* @__PURE__ */ _(
287
287
  "div",
288
288
  {
289
289
  onClick: () => {
@@ -297,11 +297,11 @@ const je = "#ECECEC", ci = [
297
297
  ) })
298
298
  }
299
299
  );
300
- }, ka = (e) => {
300
+ }, Ua = (e) => {
301
301
  const { item: t, commonProps: n, style: a } = e, { onItemChange: o, onItemDelete: i } = n;
302
302
  return /* @__PURE__ */ z("div", { className: J.dataValidationFormulaListItem, style: a, children: [
303
- t.isRef ? null : /* @__PURE__ */ v("div", { className: lo(J.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ v(yn, {}) }),
304
- /* @__PURE__ */ v(
303
+ t.isRef ? null : /* @__PURE__ */ _("div", { className: lo(J.dataValidationFormulaListItemDrag, "draggableHandle"), children: /* @__PURE__ */ _(Mn, {}) }),
304
+ /* @__PURE__ */ _(
305
305
  ui,
306
306
  {
307
307
  value: t.color,
@@ -310,7 +310,7 @@ const je = "#ECECEC", ci = [
310
310
  }
311
311
  }
312
312
  ),
313
- /* @__PURE__ */ v(
313
+ /* @__PURE__ */ _(
314
314
  Oe,
315
315
  {
316
316
  disabled: t.isRef,
@@ -321,50 +321,50 @@ const je = "#ECECEC", ci = [
321
321
  inputStyle: { height: 28 }
322
322
  }
323
323
  ),
324
- t.isRef ? null : /* @__PURE__ */ v("div", { className: J.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ v(Ra, { onClick: () => i(t.id) }) })
324
+ t.isRef ? null : /* @__PURE__ */ _("div", { className: J.dataValidationFormulaListItemIcon, children: /* @__PURE__ */ _(wa, { onClick: () => i(t.id) }) })
325
325
  ] });
326
326
  };
327
327
  function hi(e) {
328
328
  const { value: t, onChange: n = () => {
329
- }, unitId: a, subUnitId: o, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: d = "" } = t || {}, [u, p] = W(() => be(s) ? "1" : "0"), [c, _] = W(u === "1" ? s : "="), [h, D] = W(u === "1" ? s : "="), R = N(le), m = N(ye), g = N(Sa), S = N(Jn), [V, w] = W(() => d.split(",")), C = m.getValidatorItem(G.LIST), [I, y] = W([]), [P, k] = W(""), T = r ? i == null ? void 0 : i.formula1 : "", A = ut(() => g.ruleChange$.pipe(cn(16)), []), F = Ae(A), O = na(n);
329
+ }, unitId: a, subUnitId: o, validResult: i, showError: r, ruleId: l } = e, { formula1: s = "", formula2: d = "" } = t || {}, [u, h] = W(() => be(s) ? "1" : "0"), [c, S] = W(u === "1" ? s : "="), [m, M] = W(u === "1" ? s : "="), V = N(le), p = N(ye), f = N(Ca), g = N(Jn), [I, R] = W(() => d.split(",")), C = p.getValidatorItem(G.LIST), [w, E] = W([]), [F, b] = W(""), L = r ? i == null ? void 0 : i.formula1 : "", A = ut(() => f.ruleChange$.pipe(un(16)), []), P = Ae(A), O = na(n);
330
330
  Le(() => {
331
331
  (async () => {
332
- await new Promise((f) => {
333
- setTimeout(() => f(!0), 100);
332
+ await new Promise((v) => {
333
+ setTimeout(() => v(!0), 100);
334
334
  });
335
- const b = g.getRuleById(a, o, l), H = b == null ? void 0 : b.formula1;
336
- if (be(H) && C && b) {
337
- const f = await C.getListAsync(b, a, o);
338
- y(f);
335
+ const T = f.getRuleById(a, o, l), H = T == null ? void 0 : T.formula1;
336
+ if (be(H) && C && T) {
337
+ const v = await C.getListAsync(T, a, o);
338
+ E(v);
339
339
  }
340
340
  })();
341
- }, [g, F, C, l, o, a]), Le(() => {
342
- be(s) && s !== h && (_(s), D(h));
343
- }, [h, s]);
341
+ }, [f, P, C, l, o, a]), Le(() => {
342
+ be(s) && s !== m && (S(s), M(m));
343
+ }, [m, s]);
344
344
  const [U, B] = W(() => {
345
- const b = u !== "1" ? Qn(s) : [], H = d.split(",");
346
- return b.map((f, L) => ({
347
- label: f,
348
- color: H[L] || je,
345
+ const T = u !== "1" ? Qn(s) : [], H = d.split(",");
346
+ return T.map((v, k) => ({
347
+ label: v,
348
+ color: H[k] || je,
349
349
  isRef: !1,
350
350
  id: Qt.generateRandomId(4)
351
351
  }));
352
- }), j = (b, H, f) => {
353
- const L = U.find(($) => $.id === b);
354
- L && (L.label = H, L.color = f, B([...U]));
355
- }, Z = (b) => {
356
- const H = U.findIndex((f) => f.id === b);
352
+ }), j = (T, H, v) => {
353
+ const k = U.find(($) => $.id === T);
354
+ k && (k.label = H, k.color = v, B([...U]));
355
+ }, Z = (T) => {
356
+ const H = U.findIndex((v) => v.id === T);
357
357
  H !== -1 && (U.splice(H, 1), B([...U]));
358
- }, Y = d.split(","), ae = ut(() => I.map((b, H) => ({
359
- label: b,
358
+ }, Y = d.split(","), ae = ut(() => w.map((T, H) => ({
359
+ label: T,
360
360
  color: Y[H] || je,
361
361
  id: `${H}`,
362
362
  isRef: !0
363
- })), [Y, I]), pe = (b, H, f) => {
364
- const L = [...V];
365
- L[+b] = f, w(L), O({
363
+ })), [Y, w]), ge = (T, H, v) => {
364
+ const k = [...I];
365
+ k[+T] = v, R(k), O({
366
366
  formula1: s,
367
- formula2: L.join(",")
367
+ formula2: k.join(",")
368
368
  });
369
369
  }, ce = () => {
370
370
  B([
@@ -380,87 +380,87 @@ function hi(e) {
380
380
  Le(() => {
381
381
  if (u === "1")
382
382
  return;
383
- const b = /* @__PURE__ */ new Set(), H = [];
384
- U.map((f) => ({
385
- labelList: f.label.split(","),
386
- item: f
387
- })).forEach(({ item: f, labelList: L }) => {
388
- L.forEach(($) => {
389
- b.has($) || (b.add($), H.push({
383
+ const T = /* @__PURE__ */ new Set(), H = [];
384
+ U.map((v) => ({
385
+ labelList: v.label.split(","),
386
+ item: v
387
+ })).forEach(({ item: v, labelList: k }) => {
388
+ k.forEach(($) => {
389
+ T.has($) || (T.add($), H.push({
390
390
  label: $,
391
- color: f.color
391
+ color: v.color
392
392
  }));
393
393
  });
394
394
  }), O({
395
- formula1: qa(H.map((f) => f.label)),
396
- formula2: H.map((f) => f.color === je ? "" : f.color).join(",")
395
+ formula1: Ja(H.map((v) => v.label)),
396
+ formula2: H.map((v) => v.color === je ? "" : v.color).join(",")
397
397
  });
398
- }, [U, O, u, h, V]);
399
- const ne = na(async (b) => {
400
- if (!be(b)) {
398
+ }, [U, O, u, m, I]);
399
+ const ne = na(async (T) => {
400
+ if (!be(T)) {
401
401
  O == null || O({
402
402
  formula1: "",
403
403
  formula2: d
404
404
  });
405
405
  return;
406
406
  }
407
- S.getFormulaRefCheck(b) ? (O == null || O({
408
- formula1: be(b) ? b : "",
407
+ g.getFormulaRefCheck(T) ? (O == null || O({
408
+ formula1: be(T) ? T : "",
409
409
  formula2: d
410
- }), k("")) : (O == null || O({
410
+ }), b("")) : (O == null || O({
411
411
  formula1: "",
412
412
  formula2: d
413
- }), _("="), k(R.t("dataValidation.validFail.formulaError")));
414
- }), ue = mt(null), [Ce, ge] = W(!1);
415
- return rn((b) => {
416
- var f;
417
- ((f = ue.current) == null ? void 0 : f.isClickOutSide(b)) && ge(!1);
413
+ }), S("="), b(V.t("dataValidation.validFail.formulaError")));
414
+ }), ue = mt(null), [Ce, fe] = W(!1);
415
+ return sn((T) => {
416
+ var v;
417
+ ((v = ue.current) == null ? void 0 : v.isClickOutSide(T)) && fe(!1);
418
418
  }), /* @__PURE__ */ z(Ke, { children: [
419
- /* @__PURE__ */ v(K, { label: R.t("dataValidation.list.options"), children: /* @__PURE__ */ z(
420
- fa,
419
+ /* @__PURE__ */ _(K, { label: V.t("dataValidation.list.options"), children: /* @__PURE__ */ z(
420
+ va,
421
421
  {
422
422
  value: u,
423
- onChange: (b) => {
424
- p(b), _(h), b === "1" && O({
425
- formula1: h === "=" ? "" : h,
426
- formula2: V.join(",")
423
+ onChange: (T) => {
424
+ h(T), S(m), T === "1" && O({
425
+ formula1: m === "=" ? "" : m,
426
+ formula2: I.join(",")
427
427
  });
428
428
  },
429
429
  children: [
430
- /* @__PURE__ */ v(Te, { value: "0", children: R.t("dataValidation.list.customOptions") }),
431
- /* @__PURE__ */ v(Te, { value: "1", children: R.t("dataValidation.list.refOptions") })
430
+ /* @__PURE__ */ _(Te, { value: "0", children: V.t("dataValidation.list.customOptions") }),
431
+ /* @__PURE__ */ _(Te, { value: "1", children: V.t("dataValidation.list.refOptions") })
432
432
  ]
433
433
  }
434
434
  ) }),
435
435
  u === "1" ? /* @__PURE__ */ z(Ke, { children: [
436
- /* @__PURE__ */ v(
437
- dn,
436
+ /* @__PURE__ */ _(
437
+ cn,
438
438
  {
439
439
  initValue: c,
440
440
  unitId: a,
441
441
  subUnitId: o,
442
442
  isFocus: Ce,
443
- onChange: (b = "") => {
444
- const H = (b != null ? b : "").trim();
445
- D(H), ne(H);
443
+ onChange: (T = "") => {
444
+ const H = (T != null ? T : "").trim();
445
+ M(H), ne(H);
446
446
  },
447
- errorText: T || P || void 0,
448
- onFocus: () => ge(!0),
447
+ errorText: L || F || void 0,
448
+ onFocus: () => fe(!0),
449
449
  isSupportAcrossSheet: !0,
450
450
  ref: ue
451
451
  }
452
452
  ),
453
- ae.length > 0 && /* @__PURE__ */ v("div", { style: { marginTop: "12px" }, children: ae.map((b) => /* @__PURE__ */ v(
454
- ka,
453
+ ae.length > 0 && /* @__PURE__ */ _("div", { style: { marginTop: "12px" }, children: ae.map((T) => /* @__PURE__ */ _(
454
+ Ua,
455
455
  {
456
- item: b,
457
- commonProps: { onItemChange: pe },
456
+ item: T,
457
+ commonProps: { onItemChange: ge },
458
458
  style: { marginBottom: 12 }
459
459
  },
460
- b.id
460
+ T.id
461
461
  )) })
462
- ] }) : /* @__PURE__ */ v(K, { error: T, children: /* @__PURE__ */ z("div", { style: { marginTop: "-12px" }, children: [
463
- /* @__PURE__ */ v(
462
+ ] }) : /* @__PURE__ */ _(K, { error: L, children: /* @__PURE__ */ z("div", { style: { marginTop: "-12px" }, children: [
463
+ /* @__PURE__ */ _(
464
464
  so,
465
465
  {
466
466
  list: U,
@@ -468,30 +468,30 @@ function hi(e) {
468
468
  rowHeight: 28,
469
469
  margin: [0, 12],
470
470
  draggableHandle: ".draggableHandle",
471
- itemRender: (b) => /* @__PURE__ */ v(
472
- ka,
471
+ itemRender: (T) => /* @__PURE__ */ _(
472
+ Ua,
473
473
  {
474
- item: b,
474
+ item: T,
475
475
  commonProps: {
476
476
  onItemChange: j,
477
477
  onItemDelete: Z
478
478
  }
479
479
  },
480
- b.id
480
+ T.id
481
481
  ),
482
482
  idKey: "id"
483
483
  }
484
484
  ),
485
485
  /* @__PURE__ */ z("a", { className: J.dataValidationFormulaListAdd, onClick: ce, children: [
486
- /* @__PURE__ */ v(Rn, {}),
487
- R.t("dataValidation.list.add")
486
+ /* @__PURE__ */ _(wn, {}),
487
+ V.t("dataValidation.list.add")
488
488
  ] })
489
489
  ] }) })
490
490
  ] });
491
491
  }
492
492
  const mi = [
493
493
  [
494
- Ja,
494
+ Qa,
495
495
  Qo
496
496
  ],
497
497
  [
@@ -499,11 +499,11 @@ const mi = [
499
499
  qo
500
500
  ],
501
501
  [
502
- pa,
502
+ ga,
503
503
  hi
504
504
  ],
505
505
  [
506
- Qa,
506
+ en,
507
507
  Jo
508
508
  ]
509
509
  ];
@@ -514,36 +514,36 @@ var pi = Object.getOwnPropertyDescriptor, gi = (e, t, n, a) => {
514
514
  }, fi = (e, t) => (n, a) => t(n, a, e);
515
515
  let _e = class {
516
516
  constructor(e) {
517
- E(this, "canvasRender", null);
518
- E(this, "dropdownType");
519
- E(this, "optionsInput");
520
- E(this, "formulaInput", pa);
517
+ D(this, "canvasRender", null);
518
+ D(this, "dropdownType");
519
+ D(this, "optionsInput");
520
+ D(this, "formulaInput", ga);
521
521
  this.injector = e;
522
522
  }
523
523
  };
524
524
  _e = gi([
525
- fi(0, M(we))
525
+ fi(0, y(we))
526
526
  ], _e);
527
527
  var vi = Object.getOwnPropertyDescriptor, _i = (e, t, n, a) => {
528
528
  for (var o = a > 1 ? void 0 : a ? vi(t, n) : t, i = e.length - 1, r; i >= 0; i--)
529
529
  (r = e[i]) && (o = r(o) || o);
530
530
  return o;
531
- }, Na = (e, t) => (n, a) => t(n, a, e);
531
+ }, Ba = (e, t) => (n, a) => t(n, a, e);
532
532
  let Se = class extends Ve {
533
533
  constructor(t, n) {
534
534
  super();
535
- E(this, "_open$", new Aa(!1));
536
- E(this, "open$", this._open$.pipe(vo()));
537
- E(this, "_activeRule");
538
- E(this, "_activeRule$", new Aa(void 0));
539
- E(this, "activeRule$", this._activeRule$.asObservable());
540
- E(this, "_closeDisposable", null);
535
+ D(this, "_open$", new Pa(!1));
536
+ D(this, "open$", this._open$.pipe(vo()));
537
+ D(this, "_activeRule");
538
+ D(this, "_activeRule$", new Pa(void 0));
539
+ D(this, "activeRule$", this._activeRule$.asObservable());
540
+ D(this, "_closeDisposable", null);
541
541
  this._univerInstanceService = t, this._sidebarService = n, this.disposeWithMe(
542
- this._univerInstanceService.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(Ca((a) => !a)).subscribe(() => {
542
+ this._univerInstanceService.getCurrentTypeOfUnit$(x.UNIVER_SHEET).pipe(Ia((a) => !a)).subscribe(() => {
543
543
  this.close();
544
544
  })
545
545
  ), this.disposeWithMe(this._sidebarService.sidebarOptions$.subscribe((a) => {
546
- a.id === bt && (a.visible || setTimeout(() => {
546
+ a.id === Ot && (a.visible || setTimeout(() => {
547
547
  this._sidebarService.sidebarOptions$.next({ visible: !1 });
548
548
  }));
549
549
  }));
@@ -575,9 +575,10 @@ let Se = class extends Ve {
575
575
  }
576
576
  };
577
577
  Se = _i([
578
- Na(0, de),
579
- Na(1, sn)
578
+ Ba(0, de),
579
+ Ba(1, ln)
580
580
  ], Se);
581
+ const Va = "sheets-data-validation-ui.config", bt = {};
581
582
  var Si = Object.getOwnPropertyDescriptor, Ci = (e, t, n, a) => {
582
583
  for (var o = a > 1 ? void 0 : a ? Si(t, n) : t, i = e.length - 1, r; i >= 0; i--)
583
584
  (r = e[i]) && (o = r(o) || o);
@@ -608,7 +609,7 @@ let Je = class extends Ve {
608
609
  title: u.getRuleFinalError(d, { row: o, col: i, unitId: r, subUnitId: l })
609
610
  },
610
611
  footer: {
611
- title: ba.createElement(
612
+ title: Ta.createElement(
612
613
  Ge,
613
614
  {
614
615
  variant: "primary",
@@ -636,7 +637,7 @@ let Je = class extends Ve {
636
637
  title: e
637
638
  },
638
639
  footer: {
639
- title: ba.createElement(
640
+ title: Ta.createElement(
640
641
  Ge,
641
642
  {
642
643
  variant: "primary",
@@ -652,24 +653,24 @@ let Je = class extends Ve {
652
653
  }
653
654
  };
654
655
  Je = Ci([
655
- $e(0, M(Ia)),
656
- $e(1, M(te)),
657
- $e(2, M(ye)),
656
+ $e(0, y(Ra)),
657
+ $e(1, y(te)),
658
+ $e(2, y(ye)),
658
659
  $e(3, co),
659
- $e(4, M(le)),
660
- $e(5, M(eo))
660
+ $e(4, y(le)),
661
+ $e(5, y(eo))
661
662
  ], Je);
662
663
  var Ii = Object.getOwnPropertyDescriptor, Ri = (e, t, n, a) => {
663
664
  for (var o = a > 1 ? void 0 : a ? Ii(t, n) : t, i = e.length - 1, r; i >= 0; i--)
664
665
  (r = e[i]) && (o = r(o) || o);
665
666
  return o;
666
- }, fe = (e, t) => (n, a) => t(n, a, e);
667
+ }, he = (e, t) => (n, a) => t(n, a, e);
667
668
  const Wt = (e) => {
668
669
  if (e == null || typeof e == "boolean")
669
670
  return;
670
671
  if (typeof e == "number" || !Number.isNaN(+e))
671
- return ya(ja.format("yyyy-MM-dd HH:mm:ss", Number(e)));
672
- const t = ya(e);
672
+ return Da(Xa.format("yyyy-MM-dd HH:mm:ss", Number(e)));
673
+ const t = Da(e);
673
674
  if (t.isValid())
674
675
  return t;
675
676
  };
@@ -687,14 +688,14 @@ function wi(e, t) {
687
688
  }
688
689
  }
689
690
  let Pe = class extends Ve {
690
- constructor(t, n, a, o, i, r, l, s, d, u) {
691
+ constructor(t, n, a, o, i, r, l, s, d, u, h) {
691
692
  super();
692
- E(this, "_activeDropdown");
693
- E(this, "_activeDropdown$", new _o());
694
- E(this, "_currentPopup", null);
695
- E(this, "activeDropdown$", this._activeDropdown$.asObservable());
696
- E(this, "_zenVisible", !1);
697
- this._univerInstanceService = t, this._dataValidatorRegistryService = n, this._zenZoneService = a, this._dataValidationModel = o, this._sheetsSelectionsService = i, this._cellDropdownManagerService = r, this._sheetDataValidationModel = l, this._commandService = s, this._editorBridgeService = d, this._injector = u, this._init(), this._initSelectionChange(), this.disposeWithMe(() => {
693
+ D(this, "_activeDropdown");
694
+ D(this, "_activeDropdown$", new _o());
695
+ D(this, "_currentPopup", null);
696
+ D(this, "activeDropdown$", this._activeDropdown$.asObservable());
697
+ D(this, "_zenVisible", !1);
698
+ this._univerInstanceService = t, this._dataValidatorRegistryService = n, this._zenZoneService = a, this._dataValidationModel = o, this._sheetsSelectionsService = i, this._cellDropdownManagerService = r, this._sheetDataValidationModel = l, this._commandService = s, this._editorBridgeService = d, this._injector = u, this._configService = h, this._init(), this._initSelectionChange(), this.disposeWithMe(() => {
698
699
  this._activeDropdown$.complete();
699
700
  });
700
701
  }
@@ -724,9 +725,9 @@ let Pe = class extends Ve {
724
725
  t && t.every((n) => !(n.primary && this._getDropdownByCell(n.primary.unitId, n.primary.sheetId, n.primary.actualRow, n.primary.actualColumn))) && this.hideDropdown();
725
726
  }));
726
727
  }
727
- // eslint-disable-next-line max-lines-per-function
728
+ // eslint-disable-next-line max-lines-per-function, complexity
728
729
  showDropdown(t) {
729
- var D, R;
730
+ var M, V, p, f;
730
731
  const { location: n } = t, { row: a, col: o, unitId: i, subUnitId: r, workbook: l, worksheet: s } = n;
731
732
  if (this._currentPopup && this._currentPopup.dispose(), this._zenVisible)
732
733
  return;
@@ -737,14 +738,14 @@ let Pe = class extends Ve {
737
738
  const u = this._dataValidatorRegistryService.getValidatorItem(d.type);
738
739
  if (!(u != null && u.dropdownType))
739
740
  return;
740
- let p;
741
- const c = async (m, g) => {
742
- var k, T, A;
743
- if (!m)
741
+ let h;
742
+ const c = async (g, I) => {
743
+ var A, P, O;
744
+ if (!g)
744
745
  return !0;
745
- const S = m, V = s.getCell(a, o), w = S.format(g === "date" ? "YYYY-MM-DD 00:00:00" : "YYYY-MM-DD HH:mm:ss"), C = (k = ja.parseDate(w)) == null ? void 0 : k.v, I = g === "time" ? C % 1 : C, y = l.getStyles().getStyleByCell(V), P = (A = (T = y == null ? void 0 : y.n) == null ? void 0 : T.pattern) != null ? A : "";
746
+ const R = g, C = s.getCell(a, o), w = R.format(I === "date" ? "YYYY-MM-DD 00:00:00" : "YYYY-MM-DD HH:mm:ss"), E = (A = Xa.parseDate(w)) == null ? void 0 : A.v, F = I === "time" ? E % 1 : E, b = l.getStyles().getStyleByCell(C), L = (O = (P = b == null ? void 0 : b.n) == null ? void 0 : P.pattern) != null ? O : "";
746
747
  return d.errorStyle !== ct.STOP || await u.validator({
747
- value: I,
748
+ value: F,
748
749
  unitId: i,
749
750
  subUnitId: r,
750
751
  row: a,
@@ -768,65 +769,65 @@ let Pe = class extends Ve {
768
769
  endRow: a
769
770
  },
770
771
  value: {
771
- v: I,
772
+ v: F,
772
773
  t: 2,
773
774
  p: null,
774
775
  f: null,
775
776
  si: null,
776
777
  s: {
777
778
  n: {
778
- pattern: wi(g, P)
779
+ pattern: wi(I, L)
779
780
  }
780
781
  }
781
782
  }
782
783
  }), !0) : (this._injector.has(Je) && this._injector.get(Je).showReject(u.getRuleFinalError(d, { row: a, col: o, unitId: i, subUnitId: r })), !1);
783
784
  };
784
- let _;
785
+ let S;
785
786
  switch (u.dropdownType) {
786
- case me.DATE: {
787
- const m = ee(s.getCellRaw(a, o)), g = Wt(m), S = !!((D = d.bizInfo) != null && D.showTime);
788
- _ = {
787
+ case pe.DATE: {
788
+ const g = ee(s.getCellRaw(a, o)), I = Wt(g), R = !!((M = d.bizInfo) != null && M.showTime);
789
+ S = {
789
790
  location: n,
790
791
  type: "datepicker",
791
792
  props: {
792
- showTime: S,
793
- onChange: (V) => c(V, S ? "datetime" : "date"),
794
- defaultValue: g,
793
+ showTime: R,
794
+ onChange: (C) => c(C, R ? "datetime" : "date"),
795
+ defaultValue: I,
795
796
  patternType: "date"
796
797
  }
797
798
  };
798
799
  break;
799
800
  }
800
- case me.TIME: {
801
- const m = ee(s.getCellRaw(a, o)), g = Wt(m);
802
- _ = {
801
+ case pe.TIME: {
802
+ const g = ee(s.getCellRaw(a, o)), I = Wt(g);
803
+ S = {
803
804
  location: n,
804
805
  type: "datepicker",
805
806
  props: {
806
- onChange: (S) => c(S, "time"),
807
- defaultValue: g,
807
+ onChange: (R) => c(R, "time"),
808
+ defaultValue: I,
808
809
  patternType: "time"
809
810
  }
810
811
  };
811
812
  break;
812
813
  }
813
- case me.DATETIME: {
814
- const m = ee(s.getCellRaw(a, o)), g = Wt(m);
815
- _ = {
814
+ case pe.DATETIME: {
815
+ const g = ee(s.getCellRaw(a, o)), I = Wt(g);
816
+ S = {
816
817
  location: n,
817
818
  type: "datepicker",
818
819
  props: {
819
- onChange: (S) => c(S, "datetime"),
820
- defaultValue: g,
820
+ onChange: (R) => c(R, "datetime"),
821
+ defaultValue: I,
821
822
  patternType: "datetime"
822
823
  }
823
824
  };
824
825
  break;
825
826
  }
826
- case me.LIST:
827
- case me.MULTIPLE_LIST: {
828
- const m = u.dropdownType === me.MULTIPLE_LIST, g = async (y) => {
829
- const P = qa(y), k = {
827
+ case pe.LIST:
828
+ case pe.MULTIPLE_LIST: {
829
+ const g = u.dropdownType === pe.MULTIPLE_LIST, I = async (b) => {
830
+ const L = Ja(b), A = {
830
831
  unitId: i,
831
832
  subUnitId: r,
832
833
  range: {
@@ -836,7 +837,7 @@ let Pe = class extends Ve {
836
837
  endRow: a
837
838
  },
838
839
  value: {
839
- v: P,
840
+ v: L,
840
841
  p: null,
841
842
  f: null,
842
843
  si: null
@@ -847,35 +848,36 @@ let Pe = class extends Ve {
847
848
  eventType: gt.Keyboard,
848
849
  unitId: i,
849
850
  keycode: pt.ESC
850
- }), this._commandService.executeCommand(dt.id, k), !m;
851
- }, S = (d == null ? void 0 : d.renderMode) === ie.CUSTOM || (d == null ? void 0 : d.renderMode) === void 0, V = u.getListWithColor(d, i, r), w = Bt(s.getCellRaw(a, o)), C = () => {
851
+ }), this._commandService.executeCommand(dt.id, A), !g;
852
+ }, R = (d == null ? void 0 : d.renderMode) === ie.CUSTOM || (d == null ? void 0 : d.renderMode) === void 0, C = u.getListWithColor(d, i, r), w = Bt(s.getCellRaw(a, o)), E = () => {
852
853
  this._commandService.executeCommand(Be.id, {
853
854
  ruleId: d.uid
854
- }), p == null || p.dispose();
855
- }, I = V.map((y) => ({
856
- label: y.label,
857
- value: y.label,
858
- color: S || y.color ? y.color : "transparent"
855
+ }), h == null || h.dispose();
856
+ }, F = C.map((b) => ({
857
+ label: b.label,
858
+ value: b.label,
859
+ color: R || b.color ? b.color : "transparent"
859
860
  }));
860
- _ = {
861
+ S = {
861
862
  location: n,
862
863
  type: "list",
863
864
  props: {
864
- onChange: (y) => g(y),
865
- options: I,
866
- onEdit: C,
865
+ onChange: (b) => I(b),
866
+ options: F,
867
+ onEdit: E,
867
868
  defaultValue: w,
868
- multiple: m
869
+ multiple: g,
870
+ showEdit: (p = (V = this._configService.getConfig(Va)) == null ? void 0 : V.showEditOnDropdown) != null ? p : !0
869
871
  }
870
872
  };
871
873
  break;
872
874
  }
873
- case me.CASCADE: {
874
- _ = {
875
+ case pe.CASCADE: {
876
+ S = {
875
877
  type: "cascader",
876
878
  props: {
877
- onChange: (g) => {
878
- const S = {
879
+ onChange: (I) => {
880
+ const R = {
879
881
  unitId: i,
880
882
  subUnitId: r,
881
883
  range: {
@@ -885,7 +887,7 @@ let Pe = class extends Ve {
885
887
  endRow: a
886
888
  },
887
889
  value: {
888
- v: g.join("/"),
890
+ v: I.join("/"),
889
891
  p: null,
890
892
  f: null,
891
893
  si: null
@@ -896,21 +898,21 @@ let Pe = class extends Ve {
896
898
  eventType: gt.Keyboard,
897
899
  unitId: i,
898
900
  keycode: pt.ESC
899
- }), this._commandService.syncExecuteCommand(dt.id, S), !0;
901
+ }), this._commandService.syncExecuteCommand(dt.id, R), !0;
900
902
  },
901
903
  defaultValue: Bt(s.getCellRaw(a, o)).split("/"),
902
- options: JSON.parse((R = d.formula1) != null ? R : "[]")
904
+ options: JSON.parse((f = d.formula1) != null ? f : "[]")
903
905
  },
904
906
  location: n
905
907
  };
906
908
  break;
907
909
  }
908
- case me.COLOR: {
909
- _ = {
910
+ case pe.COLOR: {
911
+ S = {
910
912
  type: "color",
911
913
  props: {
912
- onChange: (g) => {
913
- const S = {
914
+ onChange: (I) => {
915
+ const R = {
914
916
  unitId: i,
915
917
  subUnitId: r,
916
918
  range: {
@@ -920,7 +922,7 @@ let Pe = class extends Ve {
920
922
  endRow: a
921
923
  },
922
924
  value: {
923
- v: g,
925
+ v: I,
924
926
  p: null,
925
927
  f: null,
926
928
  si: null
@@ -931,7 +933,7 @@ let Pe = class extends Ve {
931
933
  eventType: gt.Keyboard,
932
934
  unitId: i,
933
935
  keycode: pt.ESC
934
- }), this._commandService.syncExecuteCommand(dt.id, S), !0;
936
+ }), this._commandService.syncExecuteCommand(dt.id, R), !0;
935
937
  },
936
938
  defaultValue: Bt(s.getCellRaw(a, o))
937
939
  },
@@ -942,15 +944,15 @@ let Pe = class extends Ve {
942
944
  default:
943
945
  throw new Error("[DataValidationDropdownManagerService]: unknown type!");
944
946
  }
945
- if (p = this._cellDropdownManagerService.showDropdown(_), !p)
947
+ if (h = this._cellDropdownManagerService.showDropdown(S), !h)
946
948
  throw new Error("[DataValidationDropdownManagerService]: cannot show dropdown!");
947
- const h = new $n();
948
- h.add(p), h.add({
949
+ const m = new $n();
950
+ m.add(h), m.add({
949
951
  dispose: () => {
950
- var m, g;
951
- (g = (m = this._activeDropdown) == null ? void 0 : m.onHide) == null || g.call(m);
952
+ var g, I;
953
+ (I = (g = this._activeDropdown) == null ? void 0 : g.onHide) == null || I.call(g);
952
954
  }
953
- }), this._currentPopup = h;
955
+ }), this._currentPopup = m;
954
956
  }
955
957
  hideDropdown() {
956
958
  this._activeDropdown && (this._currentPopup && this._currentPopup.dispose(), this._currentPopup = null, this._activeDropdown = null, this._activeDropdown$.next(null));
@@ -984,52 +986,53 @@ let Pe = class extends Ve {
984
986
  }
985
987
  };
986
988
  Pe = Ri([
987
- fe(0, de),
988
- fe(1, M(ye)),
989
- fe(2, ln),
990
- fe(3, M(te)),
991
- fe(4, M(mn)),
992
- fe(5, M(Ao)),
993
- fe(6, M(te)),
994
- fe(7, Q),
995
- fe(8, vn),
996
- fe(9, M(we))
989
+ he(0, de),
990
+ he(1, y(ye)),
991
+ he(2, dn),
992
+ he(3, y(te)),
993
+ he(4, y(pn)),
994
+ he(5, y(Ao)),
995
+ he(6, y(te)),
996
+ he(7, Q),
997
+ he(8, _n),
998
+ he(9, y(we)),
999
+ he(10, ma)
997
1000
  ], Pe);
998
- const bt = "DataValidationPanel", Be = {
1001
+ const Ot = "DataValidationPanel", Be = {
999
1002
  id: "data-validation.operation.open-validation-panel",
1000
1003
  type: ot.OPERATION,
1001
1004
  handler(e, t) {
1002
1005
  if (!t)
1003
1006
  return !1;
1004
- const { ruleId: n, isAdd: a } = t, o = e.get(Se), i = e.get(Sa), r = e.get(de), l = e.get(sn), s = pn(r);
1007
+ const { ruleId: n, isAdd: a } = t, o = e.get(Se), i = e.get(Ca), r = e.get(de), l = e.get(ln), s = gn(r);
1005
1008
  if (!s) return !1;
1006
- const { unitId: d, subUnitId: u } = s, p = n ? i.getRuleById(d, u, n) : void 0;
1007
- o.open(), o.setActiveRule(p && {
1009
+ const { unitId: d, subUnitId: u } = s, h = n ? i.getRuleById(d, u, n) : void 0;
1010
+ o.open(), o.setActiveRule(h && {
1008
1011
  unitId: d,
1009
1012
  subUnitId: u,
1010
- rule: p
1013
+ rule: h
1011
1014
  });
1012
1015
  const c = l.open({
1013
- id: bt,
1016
+ id: Ot,
1014
1017
  header: { title: a ? "dataValidation.panel.addTitle" : "dataValidation.panel.title" },
1015
- children: { label: bt },
1018
+ children: { label: Ot },
1016
1019
  width: 312,
1017
1020
  onClose: () => o.close()
1018
1021
  });
1019
1022
  return o.setCloseDisposable(c), !0;
1020
1023
  }
1021
- }, wa = {
1024
+ }, ya = {
1022
1025
  id: "data-validation.operation.close-validation-panel",
1023
1026
  type: ot.OPERATION,
1024
1027
  handler(e) {
1025
1028
  return e.get(Se).close(), !0;
1026
1029
  }
1027
- }, Mn = {
1030
+ }, Dn = {
1028
1031
  id: "data-validation.operation.toggle-validation-panel",
1029
1032
  type: ot.OPERATION,
1030
1033
  handler(e) {
1031
1034
  const t = e.get(Q), n = e.get(Se);
1032
- return n.open(), n.isOpen ? t.executeCommand(wa.id) : t.executeCommand(Be.id), !0;
1035
+ return n.open(), n.isOpen ? t.executeCommand(ya.id) : t.executeCommand(Be.id), !0;
1033
1036
  }
1034
1037
  }, Nt = {
1035
1038
  type: ot.OPERATION,
@@ -1045,7 +1048,7 @@ const bt = "DataValidationPanel", Be = {
1045
1048
  r
1046
1049
  ), !0;
1047
1050
  }
1048
- }, Dn = {
1051
+ }, En = {
1049
1052
  type: ot.OPERATION,
1050
1053
  id: "sheet.operation.hide-data-validation-dropdown",
1051
1054
  handler(e, t) {
@@ -1055,19 +1058,19 @@ const bt = "DataValidationPanel", Be = {
1055
1058
  type: ot.COMMAND,
1056
1059
  id: "data-validation.command.addRuleAndOpen",
1057
1060
  handler(e) {
1058
- const t = e.get(de), n = pn(t);
1061
+ const t = e.get(de), n = gn(t);
1059
1062
  if (!n) return !1;
1060
- const { workbook: a, worksheet: o } = n, i = en(e), r = e.get(Q), l = a.getUnitId(), s = o.getSheetId(), d = {
1063
+ const { workbook: a, worksheet: o } = n, i = tn(e), r = e.get(Q), l = a.getUnitId(), s = o.getSheetId(), d = {
1061
1064
  rule: i,
1062
1065
  unitId: l,
1063
1066
  subUnitId: s
1064
1067
  };
1065
- return r.syncExecuteCommand(ga.id, d) ? (r.syncExecuteCommand(Be.id, {
1068
+ return r.syncExecuteCommand(fa.id, d) ? (r.syncExecuteCommand(Be.id, {
1066
1069
  ruleId: i.uid,
1067
1070
  isAdd: !0
1068
1071
  }), !0) : !1;
1069
1072
  }
1070
- }, En = "sheets-data-validation-ui.config", Ot = {};
1073
+ };
1071
1074
  var Vi = Object.getOwnPropertyDescriptor, yi = (e, t, n, a) => {
1072
1075
  for (var o = a > 1 ? void 0 : a ? Vi(t, n) : t, i = e.length - 1, r; i >= 0; i--)
1073
1076
  (r = e[i]) && (o = r(o) || o);
@@ -1082,7 +1085,7 @@ let ht = class extends Ve {
1082
1085
  this._initCellAlertPopup(), this._initZenService();
1083
1086
  }
1084
1087
  _initCellAlertPopup() {
1085
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(cn(100)).subscribe((e) => {
1088
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(un(100)).subscribe((e) => {
1086
1089
  var t;
1087
1090
  if (e) {
1088
1091
  const n = this._univerInstanceService.getUnit(e.location.unitId, x.UNIVER_SHEET), a = n.getSheetBySheetId(e.location.subUnitId);
@@ -1125,12 +1128,12 @@ let ht = class extends Ve {
1125
1128
  }
1126
1129
  };
1127
1130
  ht = yi([
1128
- He(0, M(Lo)),
1129
- He(1, M(Po)),
1131
+ He(0, y(Lo)),
1132
+ He(1, y(Po)),
1130
1133
  He(2, de),
1131
- He(3, M(le)),
1132
- He(4, ln),
1133
- He(5, M(te))
1134
+ He(3, y(le)),
1135
+ He(4, dn),
1136
+ He(5, y(te))
1134
1137
  ], ht);
1135
1138
  var Mi = Object.getOwnPropertyDescriptor, Di = (e, t, n, a) => {
1136
1139
  for (var o = a > 1 ? void 0 : a ? Mi(t, n) : t, i = e.length - 1, r; i >= 0; i--)
@@ -1144,52 +1147,52 @@ let Qe = class extends Ve {
1144
1147
  // eslint-disable-next-line max-lines-per-function
1145
1148
  _initAutoFill() {
1146
1149
  const e = () => ({ redos: [], undos: [] }), t = (a, o) => {
1147
- const { source: i, target: r, unitId: l, subUnitId: s } = a, d = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = la([i, r]), [p, c] = u.ranges, { mapFunc: _ } = u, h = {
1148
- row: p.startRow,
1149
- col: p.startColumn
1150
- }, D = No(p, c), R = new Mt(), m = /* @__PURE__ */ new Set();
1151
- D.forEach((C) => {
1152
- const I = C.repeatStartCell, y = C.relativeRange, P = {
1153
- startRow: h.row,
1154
- startColumn: h.col,
1155
- endColumn: h.col,
1156
- endRow: h.row
1157
- }, k = {
1158
- startRow: I.row,
1159
- startColumn: I.col,
1160
- endColumn: I.col,
1161
- endRow: I.row
1150
+ const { source: i, target: r, unitId: l, subUnitId: s } = a, d = this._sheetDataValidationModel.getRuleObjectMatrix(l, s).clone(), u = la([i, r]), [h, c] = u.ranges, { mapFunc: S } = u, m = {
1151
+ row: h.startRow,
1152
+ col: h.startColumn
1153
+ }, M = No(h, c), V = new Mt(), p = /* @__PURE__ */ new Set();
1154
+ M.forEach((C) => {
1155
+ const w = C.repeatStartCell, E = C.relativeRange, F = {
1156
+ startRow: m.row,
1157
+ startColumn: m.col,
1158
+ endColumn: m.col,
1159
+ endRow: m.row
1160
+ }, b = {
1161
+ startRow: w.row,
1162
+ startColumn: w.col,
1163
+ endColumn: w.col,
1164
+ endRow: w.row
1162
1165
  };
1163
- Wn.foreach(y, (T, A) => {
1164
- const F = Dt.getPositionRange(
1166
+ Wn.foreach(E, (L, A) => {
1167
+ const P = Dt.getPositionRange(
1165
1168
  {
1166
- startRow: T,
1169
+ startRow: L,
1167
1170
  startColumn: A,
1168
1171
  endColumn: A,
1169
- endRow: T
1172
+ endRow: L
1170
1173
  },
1171
- P
1172
- ), { row: O, col: U } = _(F.startRow, F.startColumn), B = this._sheetDataValidationModel.getRuleIdByLocation(l, s, O, U) || "", j = Dt.getPositionRange(
1174
+ F
1175
+ ), { row: O, col: U } = S(P.startRow, P.startColumn), B = this._sheetDataValidationModel.getRuleIdByLocation(l, s, O, U) || "", j = Dt.getPositionRange(
1173
1176
  {
1174
- startRow: T,
1177
+ startRow: L,
1175
1178
  startColumn: A,
1176
1179
  endColumn: A,
1177
- endRow: T
1180
+ endRow: L
1178
1181
  },
1179
- k
1180
- ), { row: Z, col: Y } = _(j.startRow, j.startColumn);
1181
- R.setValue(Z, Y, B), m.add(B);
1182
+ b
1183
+ ), { row: Z, col: Y } = S(j.startRow, j.startColumn);
1184
+ V.setValue(Z, Y, B), p.add(B);
1182
1185
  });
1183
1186
  });
1184
- const g = Array.from(m).map((C) => ({ id: C, ranges: ea(R, (I) => I === C) }));
1185
- d.addRangeRules(g);
1186
- const S = d.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: V, undoMutations: w } = ta(l, s, S, this._injector, "patched", o === st.ONLY_FORMAT);
1187
+ const f = Array.from(p).map((C) => ({ id: C, ranges: ea(V, (w) => w === C) }));
1188
+ d.addRangeRules(f);
1189
+ const g = d.diff(this._sheetDataValidationModel.getRules(l, s)), { redoMutations: I, undoMutations: R } = ta(l, s, g, this._injector, "patched", o === st.ONLY_FORMAT);
1187
1190
  return {
1188
- undos: w,
1189
- redos: V
1191
+ undos: R,
1192
+ redos: I
1190
1193
  };
1191
1194
  }, n = {
1192
- id: tn,
1195
+ id: an,
1193
1196
  onBeforeFillData: (a) => {
1194
1197
  const { source: o, unitId: i, subUnitId: r } = a;
1195
1198
  for (const l of o.rows)
@@ -1210,8 +1213,8 @@ let Qe = class extends Ve {
1210
1213
  };
1211
1214
  Qe = Di([
1212
1215
  xt(0, ko),
1213
- xt(1, M(te)),
1214
- xt(2, M(we))
1216
+ xt(1, y(te)),
1217
+ xt(2, y(we))
1215
1218
  ], Qe);
1216
1219
  var Ei = Object.getOwnPropertyDescriptor, bi = (e, t, n, a) => {
1217
1220
  for (var o = a > 1 ? void 0 : a ? Ei(t, n) : t, i = e.length - 1, r; i >= 0; i--)
@@ -1221,15 +1224,15 @@ var Ei = Object.getOwnPropertyDescriptor, bi = (e, t, n, a) => {
1221
1224
  let et = class extends Ve {
1222
1225
  constructor(t, n, a) {
1223
1226
  super();
1224
- E(this, "_copyInfo");
1227
+ D(this, "_copyInfo");
1225
1228
  this._sheetClipboardService = t, this._sheetDataValidationModel = n, this._injector = a, this._initCopyPaste();
1226
1229
  }
1227
1230
  _initCopyPaste() {
1228
1231
  this._sheetClipboardService.addClipboardHook({
1229
- id: tn,
1232
+ id: an,
1230
1233
  onBeforeCopy: (t, n, a) => this._collect(t, n, a),
1231
1234
  onPasteCells: (t, n, a, o) => {
1232
- const { copyType: i = Pa.COPY, pasteType: r } = o, { range: l } = t || {}, { range: s, unitId: d, subUnitId: u } = n;
1235
+ const { copyType: i = ka.COPY, pasteType: r } = o, { range: l } = t || {}, { range: s, unitId: d, subUnitId: u } = n;
1233
1236
  return this._generateMutations(s, { copyType: i, pasteType: r, copyRange: l, unitId: d, subUnitId: u });
1234
1237
  }
1235
1238
  });
@@ -1246,9 +1249,9 @@ let et = class extends Ve {
1246
1249
  return;
1247
1250
  const { rows: r, cols: l } = i;
1248
1251
  r.forEach((s, d) => {
1249
- l.forEach((u, p) => {
1252
+ l.forEach((u, h) => {
1250
1253
  const c = this._sheetDataValidationModel.getRuleIdByLocation(t, n, s, u);
1251
- o.setValue(d, p, c != null ? c : "");
1254
+ o.setValue(d, h, c != null ? c : "");
1252
1255
  });
1253
1256
  });
1254
1257
  }
@@ -1256,7 +1259,7 @@ let et = class extends Ve {
1256
1259
  _generateMutations(t, n) {
1257
1260
  if (!this._copyInfo)
1258
1261
  return { redos: [], undos: [] };
1259
- if (n.copyType === Pa.CUT)
1262
+ if (n.copyType === ka.CUT)
1260
1263
  return this._copyInfo = null, { redos: [], undos: [] };
1261
1264
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !n.copyRange)
1262
1265
  return { redos: [], undos: [] };
@@ -1269,58 +1272,58 @@ let et = class extends Ve {
1269
1272
  return { redos: [], undos: [] };
1270
1273
  const { unitId: o, subUnitId: i } = this._copyInfo;
1271
1274
  if (n.unitId !== o || i !== n.subUnitId) {
1272
- const r = this._sheetDataValidationModel.getRuleObjectMatrix(n.unitId, n.subUnitId).clone(), l = new Mt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: p } = la([n.copyRange, t]), c = Fa(d, u, !0), _ = /* @__PURE__ */ new Map();
1273
- c.forEach(({ startRange: m }) => {
1274
- var g;
1275
- (g = this._copyInfo) == null || g.matrix.forValue((S, V, w) => {
1275
+ const r = this._sheetDataValidationModel.getRuleObjectMatrix(n.unitId, n.subUnitId).clone(), l = new Mt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = la([n.copyRange, t]), c = Na(d, u, !0), S = /* @__PURE__ */ new Map();
1276
+ c.forEach(({ startRange: p }) => {
1277
+ var f;
1278
+ (f = this._copyInfo) == null || f.matrix.forValue((g, I, R) => {
1276
1279
  const C = Dt.getPositionRange(
1277
1280
  {
1278
- startRow: S,
1279
- endRow: S,
1280
- startColumn: V,
1281
- endColumn: V
1281
+ startRow: g,
1282
+ endRow: g,
1283
+ startColumn: I,
1284
+ endColumn: I
1282
1285
  },
1283
- m
1284
- ), I = `${i}-${w}`, y = this._sheetDataValidationModel.getRuleById(o, i, w);
1285
- !this._sheetDataValidationModel.getRuleById(n.unitId, n.subUnitId, I) && y && _.set(I, { ...y, uid: I });
1286
- const { row: P, col: k } = p(C.startRow, C.startColumn);
1287
- s.add(I), l.setValue(P, k, I);
1286
+ p
1287
+ ), w = `${i}-${R}`, E = this._sheetDataValidationModel.getRuleById(o, i, R);
1288
+ !this._sheetDataValidationModel.getRuleById(n.unitId, n.subUnitId, w) && E && S.set(w, { ...E, uid: w });
1289
+ const { row: F, col: b } = h(C.startRow, C.startColumn);
1290
+ s.add(w), l.setValue(F, b, w);
1288
1291
  });
1289
1292
  });
1290
- const h = Array.from(s).map((m) => ({ id: m, ranges: ea(l, (g) => g === m) }));
1291
- r.addRangeRules(h);
1292
- const { redoMutations: D, undoMutations: R } = ta(
1293
+ const m = Array.from(s).map((p) => ({ id: p, ranges: ea(l, (f) => f === p) }));
1294
+ r.addRangeRules(m);
1295
+ const { redoMutations: M, undoMutations: V } = ta(
1293
1296
  n.unitId,
1294
1297
  n.subUnitId,
1295
- r.diffWithAddition(this._sheetDataValidationModel.getRules(n.unitId, n.subUnitId), _.values()),
1298
+ r.diffWithAddition(this._sheetDataValidationModel.getRules(n.unitId, n.subUnitId), S.values()),
1296
1299
  this._injector,
1297
1300
  "patched",
1298
1301
  !1
1299
1302
  );
1300
1303
  return {
1301
- redos: D,
1302
- undos: R
1304
+ redos: M,
1305
+ undos: V
1303
1306
  };
1304
1307
  } else {
1305
- const r = this._sheetDataValidationModel.getRuleObjectMatrix(o, i).clone(), l = new Mt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: p } = la([n.copyRange, t]);
1306
- Fa(d, u, !0).forEach(({ startRange: R }) => {
1307
- var m;
1308
- (m = this._copyInfo) == null || m.matrix.forValue((g, S, V) => {
1309
- const w = Dt.getPositionRange(
1308
+ const r = this._sheetDataValidationModel.getRuleObjectMatrix(o, i).clone(), l = new Mt(), s = /* @__PURE__ */ new Set(), { ranges: [d, u], mapFunc: h } = la([n.copyRange, t]);
1309
+ Na(d, u, !0).forEach(({ startRange: V }) => {
1310
+ var p;
1311
+ (p = this._copyInfo) == null || p.matrix.forValue((f, g, I) => {
1312
+ const R = Dt.getPositionRange(
1310
1313
  {
1311
- startRow: g,
1312
- endRow: g,
1313
- startColumn: S,
1314
- endColumn: S
1314
+ startRow: f,
1315
+ endRow: f,
1316
+ startColumn: g,
1317
+ endColumn: g
1315
1318
  },
1316
- R
1317
- ), { row: C, col: I } = p(w.startRow, w.startColumn);
1318
- l.setValue(C, I, V), s.add(V);
1319
+ V
1320
+ ), { row: C, col: w } = h(R.startRow, R.startColumn);
1321
+ l.setValue(C, w, I), s.add(I);
1319
1322
  });
1320
1323
  });
1321
- const _ = Array.from(s).map((R) => ({ id: R, ranges: ea(l, (m) => m === R) }));
1322
- r.addRangeRules(_);
1323
- const { redoMutations: h, undoMutations: D } = ta(
1324
+ const S = Array.from(s).map((V) => ({ id: V, ranges: ea(l, (p) => p === V) }));
1325
+ r.addRangeRules(S);
1326
+ const { redoMutations: m, undoMutations: M } = ta(
1324
1327
  o,
1325
1328
  i,
1326
1329
  r.diff(this._sheetDataValidationModel.getRules(o, i)),
@@ -1329,16 +1332,16 @@ let et = class extends Ve {
1329
1332
  !1
1330
1333
  );
1331
1334
  return {
1332
- redos: h,
1333
- undos: D
1335
+ redos: m,
1336
+ undos: M
1334
1337
  };
1335
1338
  }
1336
1339
  }
1337
1340
  };
1338
1341
  et = bi([
1339
1342
  jt(0, Uo),
1340
- jt(1, M(te)),
1341
- jt(2, M(we))
1343
+ jt(1, y(te)),
1344
+ jt(2, y(we))
1342
1345
  ], et);
1343
1346
  var Oi = Object.getOwnPropertyDescriptor, Ti = (e, t, n, a) => {
1344
1347
  for (var o = a > 1 ? void 0 : a ? Oi(t, n) : t, i = e.length - 1, r; i >= 0; i--)
@@ -1352,11 +1355,11 @@ let tt = class extends Ve {
1352
1355
  _commandExecutedListener() {
1353
1356
  this.disposeWithMe(
1354
1357
  this._commandService.beforeCommandExecuted((e) => {
1355
- e.id === ga.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1358
+ e.id === fa.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1356
1359
  workbookTypes: [sa],
1357
1360
  rangeTypes: [ra],
1358
1361
  worksheetTypes: [oa, ia]
1359
- }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"))), e.id === an.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1362
+ }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.setStyleErr"))), e.id === nn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1360
1363
  workbookTypes: [sa],
1361
1364
  rangeTypes: [ra],
1362
1365
  worksheetTypes: [oa, ia]
@@ -1366,15 +1369,15 @@ let tt = class extends Ve {
1366
1369
  }
1367
1370
  };
1368
1371
  tt = Ti([
1369
- Yt(0, M(le)),
1372
+ Yt(0, y(le)),
1370
1373
  Yt(1, Q),
1371
- Yt(2, M(bo))
1374
+ Yt(2, y(bo))
1372
1375
  ], tt);
1373
1376
  const bn = "data-validation-single", On = "sheet.menu.data-validation";
1374
1377
  function Ai(e) {
1375
1378
  return {
1376
1379
  id: On,
1377
- type: va.SUBITEMS,
1380
+ type: _a.SUBITEMS,
1378
1381
  icon: bn,
1379
1382
  tooltip: "dataValidation.title",
1380
1383
  hidden$: uo(e, x.UNIVER_SHEET),
@@ -1385,14 +1388,14 @@ function Li(e) {
1385
1388
  return {
1386
1389
  id: Be.id,
1387
1390
  title: "dataValidation.panel.title",
1388
- type: va.BUTTON
1391
+ type: _a.BUTTON
1389
1392
  };
1390
1393
  }
1391
1394
  function Pi(e) {
1392
1395
  return {
1393
1396
  id: Ut.id,
1394
1397
  title: "dataValidation.panel.add",
1395
- type: va.BUTTON
1398
+ type: _a.BUTTON
1396
1399
  };
1397
1400
  }
1398
1401
  const Fi = {
@@ -1422,7 +1425,7 @@ const An = {
1422
1425
  color: "#fe4b4b"
1423
1426
  }
1424
1427
  };
1425
- let at = class extends ma {
1428
+ let at = class extends pa {
1426
1429
  constructor(e, t, n, a, o, i, r, l, s, d, u) {
1427
1430
  super(), this._commandService = e, this._menuManagerService = t, this._renderManagerService = n, this._univerInstanceService = a, this._autoHeightController = o, this._dropdownManagerService = i, this._sheetDataValidationModel = r, this._dataValidatorRegistryService = l, this._sheetInterceptorService = s, this._dataValidationCacheService = d, this._editorBridgeService = u, this._initMenu(), this._initDropdown(), this._initViewModelIntercept(), this._initAutoHeight();
1428
1431
  }
@@ -1449,7 +1452,7 @@ let at = class extends ma {
1449
1452
  return;
1450
1453
  const u = l.getActiveSheet();
1451
1454
  if (!u) return;
1452
- const p = this._dropdownManagerService.activeDropdown, c = p == null ? void 0 : p.location;
1455
+ const h = this._dropdownManagerService.activeDropdown, c = h == null ? void 0 : h.location;
1453
1456
  if (c && c.unitId === a && c.subUnitId === o && c.row === i && c.col === r)
1454
1457
  return;
1455
1458
  this._dropdownManagerService.showDropdown(
@@ -1473,50 +1476,50 @@ let at = class extends ma {
1473
1476
  _initViewModelIntercept() {
1474
1477
  this.disposeWithMe(
1475
1478
  this._sheetInterceptorService.intercept(
1476
- gn.CELL_CONTENT,
1479
+ fn.CELL_CONTENT,
1477
1480
  {
1478
- effect: Ya.Style,
1481
+ effect: za.Style,
1479
1482
  // must be after numfmt
1480
- priority: fn.DATA_VALIDATION,
1483
+ priority: vn.DATA_VALIDATION,
1481
1484
  // eslint-disable-next-line max-lines-per-function, complexity
1482
1485
  handler: (e, t, n) => {
1483
- var m, g, S, V, w;
1486
+ var p, f, g, I, R;
1484
1487
  const { row: a, col: o, unitId: i, subUnitId: r, workbook: l, worksheet: s } = t, d = this._sheetDataValidationModel.getRuleIdByLocation(i, r, a, o);
1485
1488
  if (!d)
1486
1489
  return n(e);
1487
1490
  const u = this._sheetDataValidationModel.getRuleById(i, r, d);
1488
1491
  if (!u)
1489
1492
  return n(e);
1490
- const p = (m = this._dataValidationCacheService.getValue(i, r, a, o)) != null ? m : Xe.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), _ = t.rawData;
1491
- let h;
1492
- const D = {
1493
+ const h = (p = this._dataValidationCacheService.getValue(i, r, a, o)) != null ? p : Xe.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), S = t.rawData;
1494
+ let m;
1495
+ const M = {
1493
1496
  get value() {
1494
1497
  var C;
1495
- return h !== void 0 || (h = (C = ee(_)) != null ? C : null), h;
1498
+ return m !== void 0 || (m = (C = ee(S)) != null ? C : null), m;
1496
1499
  }
1497
- }, R = {
1500
+ }, V = {
1498
1501
  get value() {
1499
1502
  var C;
1500
- return `${(C = D.value) != null ? C : ""}`;
1503
+ return `${(C = M.value) != null ? C : ""}`;
1501
1504
  }
1502
1505
  };
1503
1506
  return n({
1504
1507
  ...e,
1505
1508
  markers: {
1506
1509
  ...e == null ? void 0 : e.markers,
1507
- ...p === Xe.INVALID ? An : null
1510
+ ...h === Xe.INVALID ? An : null
1508
1511
  },
1509
1512
  customRender: [
1510
- ...(g = e == null ? void 0 : e.customRender) != null ? g : [],
1513
+ ...(f = e == null ? void 0 : e.customRender) != null ? f : [],
1511
1514
  ...c != null && c.canvasRender ? [c.canvasRender] : []
1512
1515
  ],
1513
1516
  fontRenderExtension: {
1514
1517
  ...e == null ? void 0 : e.fontRenderExtension,
1515
- 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, D.value, t))
1518
+ isSkip: ((g = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : g.isSkip) || ((I = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : I.call(c, u, M.value, t))
1516
1519
  },
1517
1520
  interceptorStyle: {
1518
1521
  ...e == null ? void 0 : e.interceptorStyle,
1519
- ...c == null ? void 0 : c.getExtraStyle(u, R.value, {
1522
+ ...c == null ? void 0 : c.getExtraStyle(u, V.value, {
1520
1523
  get style() {
1521
1524
  const C = l.getStyles();
1522
1525
  return (typeof (e == null ? void 0 : e.s) == "string" ? C.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {};
@@ -1524,14 +1527,14 @@ let at = class extends ma {
1524
1527
  }, a, o)
1525
1528
  },
1526
1529
  interceptorAutoHeight: () => {
1527
- var P, k, T, A, F, O;
1528
- const C = (k = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Et).getSkeletonParam(r)) == null ? void 0 : k.skeleton;
1530
+ var F, b, L, A, P, O;
1531
+ const C = (b = (F = this._renderManagerService.getRenderById(i)) == null ? void 0 : F.with(Et).getSkeletonParam(r)) == null ? void 0 : b.skeleton;
1529
1532
  if (!C)
1530
1533
  return;
1531
- const I = C.worksheet.getMergedCell(a, o), y = {
1534
+ const w = C.worksheet.getMergedCell(a, o), E = {
1532
1535
  data: e,
1533
1536
  style: C.getStyles().getStyleByCell(e),
1534
- primaryWithCoord: C.getCellWithCoordByIndex((T = I == null ? void 0 : I.startRow) != null ? T : a, (A = I == null ? void 0 : I.startColumn) != null ? A : o),
1537
+ primaryWithCoord: C.getCellWithCoordByIndex((L = w == null ? void 0 : w.startRow) != null ? L : a, (A = w == null ? void 0 : w.startColumn) != null ? A : o),
1535
1538
  unitId: i,
1536
1539
  subUnitId: r,
1537
1540
  row: a,
@@ -1539,17 +1542,17 @@ let at = class extends ma {
1539
1542
  workbook: l,
1540
1543
  worksheet: s
1541
1544
  };
1542
- return (O = (F = c == null ? void 0 : c.canvasRender) == null ? void 0 : F.calcCellAutoHeight) == null ? void 0 : O.call(F, y);
1545
+ return (O = (P = c == null ? void 0 : c.canvasRender) == null ? void 0 : P.calcCellAutoHeight) == null ? void 0 : O.call(P, E);
1543
1546
  },
1544
1547
  interceptorAutoWidth: () => {
1545
- var P, k, T, A, F, O;
1546
- const C = (k = (P = this._renderManagerService.getRenderById(i)) == null ? void 0 : P.with(Et).getSkeletonParam(r)) == null ? void 0 : k.skeleton;
1548
+ var F, b, L, A, P, O;
1549
+ const C = (b = (F = this._renderManagerService.getRenderById(i)) == null ? void 0 : F.with(Et).getSkeletonParam(r)) == null ? void 0 : b.skeleton;
1547
1550
  if (!C)
1548
1551
  return;
1549
- const I = C.worksheet.getMergedCell(a, o), y = {
1552
+ const w = C.worksheet.getMergedCell(a, o), E = {
1550
1553
  data: e,
1551
1554
  style: C.getStyles().getStyleByCell(e),
1552
- primaryWithCoord: C.getCellWithCoordByIndex((T = I == null ? void 0 : I.startRow) != null ? T : a, (A = I == null ? void 0 : I.startColumn) != null ? A : o),
1555
+ primaryWithCoord: C.getCellWithCoordByIndex((L = w == null ? void 0 : w.startRow) != null ? L : a, (A = w == null ? void 0 : w.startColumn) != null ? A : o),
1553
1556
  unitId: i,
1554
1557
  subUnitId: r,
1555
1558
  row: a,
@@ -1557,9 +1560,9 @@ let at = class extends ma {
1557
1560
  workbook: l,
1558
1561
  worksheet: s
1559
1562
  };
1560
- return (O = (F = c == null ? void 0 : c.canvasRender) == null ? void 0 : F.calcCellAutoWidth) == null ? void 0 : O.call(F, y);
1563
+ return (O = (P = c == null ? void 0 : c.canvasRender) == null ? void 0 : P.calcCellAutoWidth) == null ? void 0 : O.call(P, E);
1561
1564
  },
1562
- coverable: ((w = e == null ? void 0 : e.coverable) != null ? w : !0) && !(u.type === G.LIST || u.type === G.LIST_MULTIPLE)
1565
+ coverable: ((R = e == null ? void 0 : e.coverable) != null ? R : !0) && !(u.type === G.LIST || u.type === G.LIST_MULTIPLE)
1563
1566
  });
1564
1567
  }
1565
1568
  }
@@ -1570,8 +1573,8 @@ let at = class extends ma {
1570
1573
  this._sheetDataValidationModel.ruleChange$.pipe(
1571
1574
  // patched data-validation change don't need to re-calc row height
1572
1575
  // re-calc of row height will be triggered precisely by the origin command
1573
- Ca((e) => e.source === "command"),
1574
- un(100)
1576
+ Ia((e) => e.source === "command"),
1577
+ hn(100)
1575
1578
  ).subscribe((e) => {
1576
1579
  if (e.length === 0)
1577
1580
  return;
@@ -1581,7 +1584,7 @@ let at = class extends ma {
1581
1584
  (n.rule.type === G.LIST_MULTIPLE || n.rule.type === G.LIST) && (a = n.rule) != null && a.ranges && t.push(...n.rule.ranges);
1582
1585
  }), t.length) {
1583
1586
  const n = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1584
- Xa(n.redos, this._commandService);
1587
+ Ka(n.redos, this._commandService);
1585
1588
  }
1586
1589
  });
1587
1590
  }
@@ -1591,68 +1594,68 @@ at = Tn([
1591
1594
  X(1, mo),
1592
1595
  X(2, Ne),
1593
1596
  X(3, de),
1594
- X(4, M(_n)),
1595
- X(5, M(Pe)),
1596
- X(6, M(te)),
1597
- X(7, M(ye)),
1598
- X(8, M(Ia)),
1599
- X(9, M(nn)),
1600
- X(10, xn(vn))
1597
+ X(4, y(Sn)),
1598
+ X(5, y(Pe)),
1599
+ X(6, y(te)),
1600
+ X(7, y(ye)),
1601
+ X(8, y(Ra)),
1602
+ X(9, y(on)),
1603
+ X(10, xn(_n))
1601
1604
  ], at);
1602
- let Ua = class extends ma {
1605
+ let $a = class extends pa {
1603
1606
  constructor(e, t, n, a, o, i, r) {
1604
1607
  super(), this._commandService = e, this._renderManagerService = t, this._autoHeightController = n, this._dataValidatorRegistryService = a, this._sheetInterceptorService = o, this._sheetDataValidationModel = i, this._dataValidationCacheService = r, this._initViewModelIntercept(), this._initAutoHeight();
1605
1608
  }
1606
1609
  _initViewModelIntercept() {
1607
1610
  this.disposeWithMe(
1608
1611
  this._sheetInterceptorService.intercept(
1609
- gn.CELL_CONTENT,
1612
+ fn.CELL_CONTENT,
1610
1613
  {
1611
- effect: Ya.Style,
1614
+ effect: za.Style,
1612
1615
  // must be after numfmt
1613
- priority: fn.DATA_VALIDATION,
1616
+ priority: vn.DATA_VALIDATION,
1614
1617
  // eslint-disable-next-line complexity
1615
1618
  handler: (e, t, n) => {
1616
- var R, m, g, S, V;
1619
+ var V, p, f, g, I;
1617
1620
  const { row: a, col: o, unitId: i, subUnitId: r, workbook: l, worksheet: s } = t, d = this._sheetDataValidationModel.getRuleIdByLocation(i, r, a, o);
1618
1621
  if (!d)
1619
1622
  return n(e);
1620
1623
  const u = this._sheetDataValidationModel.getRuleById(i, r, d);
1621
1624
  if (!u)
1622
1625
  return n(e);
1623
- const p = (R = this._dataValidationCacheService.getValue(i, r, a, o)) != null ? R : Xe.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), _ = s.getCellRaw(a, o), h = ee(_), D = `${h != null ? h : ""}`;
1626
+ const h = (V = this._dataValidationCacheService.getValue(i, r, a, o)) != null ? V : Xe.VALID, c = this._dataValidatorRegistryService.getValidatorItem(u.type), S = s.getCellRaw(a, o), m = ee(S), M = `${m != null ? m : ""}`;
1624
1627
  return n({
1625
1628
  ...e,
1626
1629
  markers: {
1627
1630
  ...e == null ? void 0 : e.markers,
1628
- ...p === Xe.INVALID ? An : null
1631
+ ...h === Xe.INVALID ? An : null
1629
1632
  },
1630
1633
  customRender: [
1631
- ...(m = e == null ? void 0 : e.customRender) != null ? m : [],
1634
+ ...(p = e == null ? void 0 : e.customRender) != null ? p : [],
1632
1635
  ...c != null && c.canvasRender ? [c.canvasRender] : []
1633
1636
  ],
1634
1637
  fontRenderExtension: {
1635
1638
  ...e == null ? void 0 : e.fontRenderExtension,
1636
- isSkip: ((g = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : g.isSkip) || ((S = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : S.call(c, u, h, t))
1639
+ isSkip: ((f = e == null ? void 0 : e.fontRenderExtension) == null ? void 0 : f.isSkip) || ((g = c == null ? void 0 : c.skipDefaultFontRender) == null ? void 0 : g.call(c, u, m, t))
1637
1640
  },
1638
1641
  interceptorStyle: {
1639
1642
  ...e == null ? void 0 : e.interceptorStyle,
1640
- ...c == null ? void 0 : c.getExtraStyle(u, D, {
1643
+ ...c == null ? void 0 : c.getExtraStyle(u, M, {
1641
1644
  get style() {
1642
- const w = l.getStyles();
1643
- return (typeof (e == null ? void 0 : e.s) == "string" ? w.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {};
1645
+ const R = l.getStyles();
1646
+ return (typeof (e == null ? void 0 : e.s) == "string" ? R.get(e == null ? void 0 : e.s) : e == null ? void 0 : e.s) || {};
1644
1647
  }
1645
1648
  }, a, o)
1646
1649
  },
1647
1650
  interceptorAutoHeight: () => {
1648
- var y, P, k, T, A, F;
1649
- const w = (P = (y = this._renderManagerService.getRenderById(i)) == null ? void 0 : y.with(Et).getSkeletonParam(r)) == null ? void 0 : P.skeleton;
1650
- if (!w)
1651
+ var E, F, b, L, A, P;
1652
+ const R = (F = (E = this._renderManagerService.getRenderById(i)) == null ? void 0 : E.with(Et).getSkeletonParam(r)) == null ? void 0 : F.skeleton;
1653
+ if (!R)
1651
1654
  return;
1652
- const C = w.worksheet.getMergedCell(a, o), I = {
1655
+ const C = R.worksheet.getMergedCell(a, o), w = {
1653
1656
  data: e,
1654
- style: w.getStyles().getStyleByCell(e),
1655
- primaryWithCoord: w.getCellWithCoordByIndex((k = C == null ? void 0 : C.startRow) != null ? k : a, (T = C == null ? void 0 : C.startColumn) != null ? T : o),
1657
+ style: R.getStyles().getStyleByCell(e),
1658
+ primaryWithCoord: R.getCellWithCoordByIndex((b = C == null ? void 0 : C.startRow) != null ? b : a, (L = C == null ? void 0 : C.startColumn) != null ? L : o),
1656
1659
  unitId: i,
1657
1660
  subUnitId: r,
1658
1661
  row: a,
@@ -1660,9 +1663,9 @@ let Ua = class extends ma {
1660
1663
  workbook: l,
1661
1664
  worksheet: s
1662
1665
  };
1663
- return (F = (A = c == null ? void 0 : c.canvasRender) == null ? void 0 : A.calcCellAutoHeight) == null ? void 0 : F.call(A, I);
1666
+ return (P = (A = c == null ? void 0 : c.canvasRender) == null ? void 0 : A.calcCellAutoHeight) == null ? void 0 : P.call(A, w);
1664
1667
  },
1665
- coverable: ((V = e == null ? void 0 : e.coverable) != null ? V : !0) && !(u.type === G.LIST || u.type === G.LIST_MULTIPLE)
1668
+ coverable: ((I = e == null ? void 0 : e.coverable) != null ? I : !0) && !(u.type === G.LIST || u.type === G.LIST_MULTIPLE)
1666
1669
  });
1667
1670
  }
1668
1671
  }
@@ -1671,8 +1674,8 @@ let Ua = class extends ma {
1671
1674
  }
1672
1675
  _initAutoHeight() {
1673
1676
  this._sheetDataValidationModel.ruleChange$.pipe(
1674
- Ca((e) => e.source === "command"),
1675
- un(16)
1677
+ Ia((e) => e.source === "command"),
1678
+ hn(16)
1676
1679
  ).subscribe((e) => {
1677
1680
  const t = [];
1678
1681
  if (e.forEach((n) => {
@@ -1680,25 +1683,25 @@ let Ua = class extends ma {
1680
1683
  (a = n.rule) != null && a.ranges && t.push(...n.rule.ranges);
1681
1684
  }), t.length) {
1682
1685
  const n = this._autoHeightController.getUndoRedoParamsOfAutoHeight(t);
1683
- Xa(n.redos, this._commandService);
1686
+ Ka(n.redos, this._commandService);
1684
1687
  }
1685
1688
  });
1686
1689
  }
1687
1690
  };
1688
- Ua = Tn([
1691
+ $a = Tn([
1689
1692
  X(0, Q),
1690
1693
  X(1, Ne),
1691
- X(2, M(_n)),
1692
- X(3, M(ye)),
1693
- X(4, M(Ia)),
1694
- X(5, M(te)),
1695
- X(6, M(nn))
1696
- ], Ua);
1694
+ X(2, y(Sn)),
1695
+ X(3, y(ye)),
1696
+ X(4, y(Ra)),
1697
+ X(5, y(te)),
1698
+ X(6, y(on))
1699
+ ], $a);
1697
1700
  var Ni = Object.getOwnPropertyDescriptor, Ui = (e, t, n, a) => {
1698
1701
  for (var o = a > 1 ? void 0 : a ? Ni(t, n) : t, i = e.length - 1, r; i >= 0; i--)
1699
1702
  (r = e[i]) && (o = r(o) || o);
1700
1703
  return o;
1701
- }, Ba = (e, t) => (n, a) => t(n, a, e);
1704
+ }, Ha = (e, t) => (n, a) => t(n, a, e);
1702
1705
  let Tt = class extends Ve {
1703
1706
  constructor(e, t, n) {
1704
1707
  super(), this._context = e, this._sheetDataValidationModel = t, this._sheetSkeletonManagerService = n, this._initSkeletonChange();
@@ -1720,8 +1723,8 @@ let Tt = class extends Ve {
1720
1723
  }
1721
1724
  };
1722
1725
  Tt = Ui([
1723
- Ba(1, M(te)),
1724
- Ba(2, M(Et))
1726
+ Ha(1, y(te)),
1727
+ Ha(2, y(Et))
1725
1728
  ], Tt);
1726
1729
  const Bi = "univer-data-validation-options-button", $i = "univer-data-validation-options-button-icon", Xt = {
1727
1730
  dataValidationOptionsButton: Bi,
@@ -1729,36 +1732,36 @@ const Bi = "univer-data-validation-options-button", $i = "univer-data-validation
1729
1732
  };
1730
1733
  function Hi(e) {
1731
1734
  var d;
1732
- const t = N(le), n = N(_a), { value: a, onChange: o, extraComponent: i } = e, [r, l] = W(!1), s = i ? n.get(i) : null;
1735
+ const t = N(le), n = N(Sa), { value: a, onChange: o, extraComponent: i } = e, [r, l] = W(!1), s = i ? n.get(i) : null;
1733
1736
  return /* @__PURE__ */ z(Ke, { children: [
1734
1737
  /* @__PURE__ */ z("div", { className: Xt.dataValidationOptionsButton, onClick: () => l(!r), children: [
1735
1738
  t.t("dataValidation.panel.options"),
1736
- r ? /* @__PURE__ */ v(Vn, { className: Xt.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ v(wn, { className: Xt.dataValidationOptionsButtonIcon })
1739
+ r ? /* @__PURE__ */ _(yn, { className: Xt.dataValidationOptionsButtonIcon }) : /* @__PURE__ */ _(Vn, { className: Xt.dataValidationOptionsButtonIcon })
1737
1740
  ] }),
1738
1741
  r && /* @__PURE__ */ z(Ke, { children: [
1739
- s ? /* @__PURE__ */ v(s, { value: a, onChange: o }) : null,
1740
- /* @__PURE__ */ v(
1742
+ s ? /* @__PURE__ */ _(s, { value: a, onChange: o }) : null,
1743
+ /* @__PURE__ */ _(
1741
1744
  K,
1742
1745
  {
1743
1746
  label: t.t("dataValidation.panel.invalid"),
1744
1747
  children: /* @__PURE__ */ z(
1745
- fa,
1748
+ va,
1746
1749
  {
1747
1750
  value: `${(d = a.errorStyle) != null ? d : ct.WARNING}`,
1748
1751
  onChange: (u) => o({ ...a, errorStyle: +u }),
1749
1752
  children: [
1750
- /* @__PURE__ */ v(Te, { value: `${ct.WARNING}`, children: t.t("dataValidation.panel.showWarning") }),
1751
- /* @__PURE__ */ v(Te, { value: `${ct.STOP}`, children: t.t("dataValidation.panel.rejectInput") })
1753
+ /* @__PURE__ */ _(Te, { value: `${ct.WARNING}`, children: t.t("dataValidation.panel.showWarning") }),
1754
+ /* @__PURE__ */ _(Te, { value: `${ct.STOP}`, children: t.t("dataValidation.panel.rejectInput") })
1752
1755
  ]
1753
1756
  }
1754
1757
  )
1755
1758
  }
1756
1759
  ),
1757
- /* @__PURE__ */ v(
1760
+ /* @__PURE__ */ _(
1758
1761
  K,
1759
1762
  {
1760
1763
  label: t.t("dataValidation.panel.messageInfo"),
1761
- children: /* @__PURE__ */ v(
1764
+ children: /* @__PURE__ */ _(
1762
1765
  kt,
1763
1766
  {
1764
1767
  checked: a.showErrorMessage,
@@ -1771,7 +1774,7 @@ function Hi(e) {
1771
1774
  )
1772
1775
  }
1773
1776
  ),
1774
- a.showErrorMessage ? /* @__PURE__ */ v(K, { children: /* @__PURE__ */ v(Oe, { value: a.error, onChange: (u) => o({ ...a, error: u }) }) }) : null
1777
+ a.showErrorMessage ? /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(Oe, { value: a.error, onChange: (u) => o({ ...a, error: u }) }) }) : null
1775
1778
  ] })
1776
1779
  ] });
1777
1780
  }
@@ -1792,28 +1795,28 @@ function zi(e, t, n) {
1792
1795
  return t ? ((o = (a = e.getUnit(t)) == null ? void 0 : a.getSheetBySheetName(n)) == null ? void 0 : o.getSheetId()) || "" : ((r = (i = e.getCurrentUnitForType(x.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetName(n)) == null ? void 0 : r.getSheetId()) || "";
1793
1796
  }
1794
1797
  function Ki() {
1795
- var b, H;
1796
- const [e, t] = W(0), n = N(Se), a = Ae(n.activeRule$, n.activeRule), { unitId: o, subUnitId: i, rule: r } = a || {}, l = r.uid, s = N(ye), d = N(de), u = N(_a), p = N(Q), c = N(Sa), _ = N(le), [h, D] = W(r), R = s.getValidatorItem(h.type), [m, g] = W(!1), S = s.getValidatorsByScope(go.SHEET), [V, w] = W(() => h.ranges.map((f) => ({ unitId: "", sheetId: "", range: f }))), C = ut(() => Xi(p), [p]), [I, y] = W(!1), [P, k] = W(!1), T = mt(null), A = N(mn);
1798
+ var T, H;
1799
+ const [e, t] = W(0), n = N(Se), a = Ae(n.activeRule$, n.activeRule), { unitId: o, subUnitId: i, rule: r } = a || {}, l = r.uid, s = N(ye), d = N(de), u = N(Sa), h = N(Q), c = N(Ca), S = N(le), [m, M] = W(r), V = s.getValidatorItem(m.type), [p, f] = W(!1), g = s.getValidatorsByScope(go.SHEET), [I, R] = W(() => m.ranges.map((v) => ({ unitId: "", sheetId: "", range: v }))), C = ut(() => Xi(h), [h]), [w, E] = W(!1), [F, b] = W(!1), L = mt(null), A = N(pn);
1797
1800
  if (Le(() => () => {
1798
- const f = A.getCurrentLastSelection();
1799
- f && A.setSelections([f]);
1801
+ const v = A.getCurrentLastSelection();
1802
+ v && A.setSelections([v]);
1800
1803
  }, [A]), Le(() => {
1801
- p.onCommandExecuted((f) => {
1802
- (f.id === Xn.id || f.id === zn.id) && setTimeout(() => {
1803
- const L = c.getRuleById(o, i, l);
1804
- t(($) => $ + 1), L && (D(L), w(L.ranges.map(($) => ({ unitId: "", sheetId: "", range: $ }))));
1804
+ h.onCommandExecuted((v) => {
1805
+ (v.id === Xn.id || v.id === zn.id) && setTimeout(() => {
1806
+ const k = c.getRuleById(o, i, l);
1807
+ t(($) => $ + 1), k && (M(k), R(k.ranges.map(($) => ({ unitId: "", sheetId: "", range: $ }))));
1805
1808
  }, 20);
1806
1809
  });
1807
- }, [p, c, l, i, o]), !R)
1810
+ }, [h, c, l, i, o]), !V)
1808
1811
  return null;
1809
- const F = R.operators, O = R.operatorNames, U = h.operator ? fo.includes(h.operator) : !1, B = () => {
1810
- var f, L, $;
1811
- (L = (f = T.current) == null ? void 0 : f.editor) != null && L.isFocus() && j(($ = T.current) == null ? void 0 : $.getValue()), !(!h.ranges.length || I) && (R.validatorFormula(h, o, i).success ? n.setActiveRule(null) : g(!0));
1812
- }, j = na((f) => {
1813
- const L = f.split(",").filter(Boolean).map(Ho).map((q) => {
1814
- const Va = q.sheetName;
1815
- if (Va) {
1816
- const kn = zi(d, q.unitId, Va);
1812
+ const P = V.operators, O = V.operatorNames, U = m.operator ? fo.includes(m.operator) : !1, B = () => {
1813
+ var v, k, $;
1814
+ (k = (v = L.current) == null ? void 0 : v.editor) != null && k.isFocus() && j(($ = L.current) == null ? void 0 : $.getValue()), !(!m.ranges.length || w) && (V.validatorFormula(m, o, i).success ? n.setActiveRule(null) : f(!0));
1815
+ }, j = na((v) => {
1816
+ const k = v.split(",").filter(Boolean).map(Ho).map((q) => {
1817
+ const Ma = q.sheetName;
1818
+ if (Ma) {
1819
+ const kn = zi(d, q.unitId, Ma);
1817
1820
  return { ...q, sheetId: kn };
1818
1821
  }
1819
1822
  return {
@@ -1821,12 +1824,12 @@ function Ki() {
1821
1824
  sheetId: ""
1822
1825
  };
1823
1826
  });
1824
- if (Kn(L, V))
1827
+ if (Kn(k, I))
1825
1828
  return;
1826
- w(L);
1827
- const $ = L.filter((q) => (!q.unitId || q.unitId === o) && (!q.sheetId || q.sheetId === i)).map((q) => q.range);
1828
- if (D({
1829
- ...h,
1829
+ R(k);
1830
+ const $ = k.filter((q) => (!q.unitId || q.unitId === o) && (!q.sheetId || q.sheetId === i)).map((q) => q.range);
1831
+ if (M({
1832
+ ...m,
1830
1833
  ranges: $
1831
1834
  }), $.length === 0)
1832
1835
  return;
@@ -1836,172 +1839,172 @@ function Ki() {
1836
1839
  ruleId: l,
1837
1840
  ranges: $
1838
1841
  };
1839
- C(an.id, Ie);
1840
- }), Z = (f) => {
1841
- if (Ma(f, Ta(h)))
1842
+ C(nn.id, Ie);
1843
+ }), Z = (v) => {
1844
+ if (Ea(v, La(m)))
1842
1845
  return;
1843
- D({
1844
- ...h,
1845
- ...f
1846
+ M({
1847
+ ...m,
1848
+ ...v
1846
1849
  });
1847
- const L = {
1850
+ const k = {
1848
1851
  unitId: o,
1849
1852
  subUnitId: i,
1850
1853
  ruleId: l,
1851
- setting: f
1854
+ setting: v
1852
1855
  };
1853
1856
  C(
1854
- Da.id,
1855
- L,
1857
+ ba.id,
1858
+ k,
1856
1859
  void 0
1857
1860
  );
1858
1861
  }, Y = async () => {
1859
- await p.executeCommand(on.id, {
1862
+ await h.executeCommand(rn.id, {
1860
1863
  ruleId: l,
1861
1864
  unitId: o,
1862
1865
  subUnitId: i
1863
1866
  }), n.setActiveRule(null);
1864
1867
  }, ae = {
1865
- type: h.type,
1866
- operator: h.operator,
1867
- formula1: h.formula1,
1868
- formula2: h.formula2,
1869
- allowBlank: h.allowBlank
1870
- }, pe = (f) => {
1871
- const L = s.getValidatorItem(f);
1872
- if (!L)
1868
+ type: m.type,
1869
+ operator: m.operator,
1870
+ formula1: m.formula1,
1871
+ formula2: m.formula2,
1872
+ allowBlank: m.allowBlank
1873
+ }, ge = (v) => {
1874
+ const k = s.getValidatorItem(v);
1875
+ if (!k)
1873
1876
  return;
1874
- const $ = L.operators, Ie = c.getRuleById(o, i, l), q = f === (Ie == null ? void 0 : Ie.type) || f.includes("list") && (Ie != null && Ie.type.includes("list")) ? {
1877
+ const $ = k.operators, Ie = c.getRuleById(o, i, l), q = v === (Ie == null ? void 0 : Ie.type) || v.includes("list") && (Ie != null && Ie.type.includes("list")) ? {
1875
1878
  ...Ie,
1876
- type: f
1879
+ type: v
1877
1880
  } : {
1878
- ...h,
1879
- type: f,
1881
+ ...m,
1882
+ type: v,
1880
1883
  operator: $[0],
1881
1884
  formula1: void 0,
1882
1885
  formula2: void 0
1883
1886
  };
1884
- D(q), p.executeCommand(Da.id, {
1887
+ M(q), h.executeCommand(ba.id, {
1885
1888
  unitId: o,
1886
1889
  subUnitId: i,
1887
- ruleId: h.uid,
1888
- setting: Ta(q)
1890
+ ruleId: m.uid,
1891
+ setting: La(q)
1889
1892
  });
1890
- }, ce = u.get(R.formulaInput), ne = ut(() => V.map((f) => Sn(f.range)).join(","), []), ue = Oa(h), Ce = (f) => {
1891
- Ma(f, Oa(h)) || (D({
1892
- ...h,
1893
- ...f
1893
+ }, ce = u.get(V.formulaInput), ne = ut(() => I.map((v) => Cn(v.range)).join(","), []), ue = Aa(m), Ce = (v) => {
1894
+ Ea(v, Aa(m)) || (M({
1895
+ ...m,
1896
+ ...v
1894
1897
  }), C(
1895
1898
  to.id,
1896
1899
  {
1897
1900
  unitId: o,
1898
1901
  subUnitId: i,
1899
1902
  ruleId: l,
1900
- options: f
1903
+ options: v
1901
1904
  }
1902
1905
  ));
1903
- }, ge = F.length && !h.operator;
1906
+ }, fe = P.length && !m.operator;
1904
1907
  return /* @__PURE__ */ z("div", { className: We.dataValidationDetail, children: [
1905
- /* @__PURE__ */ v(
1908
+ /* @__PURE__ */ _(
1906
1909
  K,
1907
1910
  {
1908
- label: _.t("dataValidation.panel.range"),
1909
- error: !h.ranges.length || I ? _.t("dataValidation.panel.rangeError") : "",
1910
- children: /* @__PURE__ */ v(
1911
+ label: S.t("dataValidation.panel.range"),
1912
+ error: !m.ranges.length || w ? S.t("dataValidation.panel.rangeError") : "",
1913
+ children: /* @__PURE__ */ _(
1911
1914
  po,
1912
1915
  {
1913
- selectorRef: T,
1916
+ selectorRef: L,
1914
1917
  unitId: o,
1915
1918
  subUnitId: i,
1916
1919
  initialValue: ne,
1917
- onChange: (f, L) => {
1920
+ onChange: (v, k) => {
1918
1921
  var $;
1919
- !P && (($ = T.current) != null && $.verify()) && j(L);
1922
+ !F && (($ = L.current) != null && $.verify()) && j(k);
1920
1923
  },
1921
- onFocusChange: (f, L) => {
1924
+ onFocusChange: (v, k) => {
1922
1925
  var $;
1923
- k(f), !f && L && (($ = T.current) != null && $.verify()) && j(L);
1926
+ b(v), !v && k && (($ = L.current) != null && $.verify()) && j(k);
1924
1927
  },
1925
- onVerify: (f) => y(!f)
1928
+ onVerify: (v) => E(!v)
1926
1929
  }
1927
1930
  )
1928
1931
  }
1929
1932
  ),
1930
- /* @__PURE__ */ v(K, { label: _.t("dataValidation.panel.type"), children: /* @__PURE__ */ v(
1933
+ /* @__PURE__ */ _(K, { label: S.t("dataValidation.panel.type"), children: /* @__PURE__ */ _(
1931
1934
  aa,
1932
1935
  {
1933
- options: (b = S == null ? void 0 : S.sort((f, L) => f.order - L.order)) == null ? void 0 : b.map((f) => ({
1934
- label: _.t(f.title),
1935
- value: f.id
1936
+ options: (T = g == null ? void 0 : g.sort((v, k) => v.order - k.order)) == null ? void 0 : T.map((v) => ({
1937
+ label: S.t(v.title),
1938
+ value: v.id
1936
1939
  })),
1937
- value: h.type,
1938
- onChange: pe,
1940
+ value: m.type,
1941
+ onChange: ge,
1939
1942
  className: We.dataValidationDetailFormItem
1940
1943
  }
1941
1944
  ) }),
1942
- F != null && F.length ? /* @__PURE__ */ v(K, { label: _.t("dataValidation.panel.operator"), children: /* @__PURE__ */ v(
1945
+ P != null && P.length ? /* @__PURE__ */ _(K, { label: S.t("dataValidation.panel.operator"), children: /* @__PURE__ */ _(
1943
1946
  aa,
1944
1947
  {
1945
1948
  options: [
1946
1949
  {
1947
1950
  value: "",
1948
- label: _.t("dataValidation.operators.legal")
1951
+ label: S.t("dataValidation.operators.legal")
1949
1952
  },
1950
- ...F.map((f, L) => ({
1951
- value: `${f}`,
1952
- label: O[L]
1953
+ ...P.map((v, k) => ({
1954
+ value: `${v}`,
1955
+ label: O[k]
1953
1956
  }))
1954
1957
  ],
1955
- value: `${h.operator}`,
1956
- onChange: (f) => {
1958
+ value: `${m.operator}`,
1959
+ onChange: (v) => {
1957
1960
  Z({
1958
1961
  ...ae,
1959
- operator: f
1962
+ operator: v
1960
1963
  });
1961
1964
  },
1962
1965
  className: We.dataValidationDetailFormItem
1963
1966
  }
1964
1967
  ) }) : null,
1965
- ce && !ge ? /* @__PURE__ */ v(K, { children: /* @__PURE__ */ v(
1968
+ ce && !fe ? /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
1966
1969
  ce,
1967
1970
  {
1968
1971
  isTwoFormula: U,
1969
1972
  value: {
1970
- formula1: h.formula1,
1971
- formula2: h.formula2
1973
+ formula1: m.formula1,
1974
+ formula2: m.formula2
1972
1975
  },
1973
- onChange: (f) => {
1976
+ onChange: (v) => {
1974
1977
  Z({
1975
1978
  ...ae,
1976
- ...f
1979
+ ...v
1977
1980
  });
1978
1981
  },
1979
- showError: m,
1980
- validResult: R.validatorFormula(h, o, i),
1982
+ showError: p,
1983
+ validResult: V.validatorFormula(m, o, i),
1981
1984
  unitId: o,
1982
1985
  subUnitId: i,
1983
1986
  ruleId: l
1984
1987
  },
1985
- e + h.type
1988
+ e + m.type
1986
1989
  ) }) : null,
1987
- /* @__PURE__ */ v(K, { children: /* @__PURE__ */ v(
1990
+ /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
1988
1991
  kt,
1989
1992
  {
1990
- checked: (H = h.allowBlank) != null ? H : !0,
1993
+ checked: (H = m.allowBlank) != null ? H : !0,
1991
1994
  onChange: () => {
1992
- var f;
1995
+ var v;
1993
1996
  return Z({
1994
1997
  ...ae,
1995
- allowBlank: !((f = h.allowBlank) == null || f)
1998
+ allowBlank: !((v = m.allowBlank) == null || v)
1996
1999
  });
1997
2000
  },
1998
- children: _.t("dataValidation.panel.allowBlank")
2001
+ children: S.t("dataValidation.panel.allowBlank")
1999
2002
  }
2000
2003
  ) }),
2001
- /* @__PURE__ */ v(Hi, { value: ue, onChange: Ce, extraComponent: R.optionsInput }),
2004
+ /* @__PURE__ */ _(Hi, { value: ue, onChange: Ce, extraComponent: V.optionsInput }),
2002
2005
  /* @__PURE__ */ z("div", { className: We.dataValidationDetailButtons, children: [
2003
- /* @__PURE__ */ v(Ge, { className: We.dataValidationDetailButton, onClick: Y, children: _.t("dataValidation.panel.removeRule") }),
2004
- /* @__PURE__ */ v(Ge, { className: We.dataValidationDetailButton, variant: "primary", onClick: B, children: _.t("dataValidation.panel.done") })
2006
+ /* @__PURE__ */ _(Ge, { className: We.dataValidationDetailButton, onClick: Y, children: S.t("dataValidation.panel.removeRule") }),
2007
+ /* @__PURE__ */ _(Ge, { className: We.dataValidationDetailButton, variant: "primary", onClick: B, children: S.t("dataValidation.panel.done") })
2005
2008
  ] })
2006
2009
  ] });
2007
2010
  }
@@ -2011,24 +2014,24 @@ const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation
2011
2014
  dataValidationItemContent: qi,
2012
2015
  dataValidationItemIcon: Ji
2013
2016
  }, Qi = (e) => {
2014
- const { rule: t, onClick: n, unitId: a, subUnitId: o, disable: i } = e, r = N(ye), l = N(Q), s = N($o), d = r.getValidatorItem(t.type), u = mt(void 0), [p, c] = W(!1), _ = N(za), h = Ae(_.currentTheme$), D = ut(() => {
2015
- var S;
2016
- const m = (S = h == null ? void 0 : h.loopColor2) != null ? S : "#49B811", g = new Gn(m).toRgb();
2017
+ const { rule: t, onClick: n, unitId: a, subUnitId: o, disable: i } = e, r = N(ye), l = N(Q), s = N($o), d = r.getValidatorItem(t.type), u = mt(void 0), [h, c] = W(!1), S = N(Ga), m = Ae(S.currentTheme$), M = ut(() => {
2018
+ var g;
2019
+ const p = (g = m == null ? void 0 : m.loopColor2) != null ? g : "#49B811", f = new Gn(p).toRgb();
2017
2020
  return {
2018
- fill: `rgba(${g.r}, ${g.g}, ${g.b}, 0.1)`,
2019
- stroke: m
2021
+ fill: `rgba(${f.r}, ${f.g}, ${f.b}, 0.1)`,
2022
+ stroke: p
2020
2023
  };
2021
- }, [h]), R = (m) => {
2022
- l.executeCommand(on.id, {
2024
+ }, [m]), V = (p) => {
2025
+ l.executeCommand(rn.id, {
2023
2026
  ruleId: t.uid,
2024
2027
  unitId: a,
2025
2028
  subUnitId: o
2026
- }), m.stopPropagation();
2029
+ }), p.stopPropagation();
2027
2030
  };
2028
2031
  return Le(() => () => {
2029
- var m;
2030
- u.current && ((m = u.current) == null || m.forEach((g) => {
2031
- g && s.removeShape(g);
2032
+ var p;
2033
+ u.current && ((p = u.current) == null || p.forEach((f) => {
2034
+ f && s.removeShape(f);
2032
2035
  }));
2033
2036
  }, [s]), /* @__PURE__ */ z(
2034
2037
  "div",
@@ -2036,22 +2039,22 @@ const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation
2036
2039
  className: _t.dataValidationItemContainer,
2037
2040
  onClick: n,
2038
2041
  onMouseEnter: () => {
2039
- i || (c(!0), u.current = t.ranges.map((m) => s.addShape({
2040
- range: m,
2041
- style: D,
2042
+ i || (c(!0), u.current = t.ranges.map((p) => s.addShape({
2043
+ range: p,
2044
+ style: M,
2042
2045
  primary: null
2043
2046
  })));
2044
2047
  },
2045
2048
  onMouseLeave: () => {
2046
- var m;
2047
- c(!1), (m = u.current) == null || m.forEach((g) => {
2048
- g && s.removeShape(g);
2049
+ var p;
2050
+ c(!1), (p = u.current) == null || p.forEach((f) => {
2051
+ f && s.removeShape(f);
2049
2052
  }), u.current = void 0;
2050
2053
  },
2051
2054
  children: [
2052
- /* @__PURE__ */ v("div", { className: _t.dataValidationItemTitle, children: d == null ? void 0 : d.generateRuleName(t) }),
2053
- /* @__PURE__ */ v("div", { className: _t.dataValidationItemContent, children: t.ranges.map((m) => Sn(m)).join(",") }),
2054
- p ? /* @__PURE__ */ v("div", { className: _t.dataValidationItemIcon, onClick: R, children: /* @__PURE__ */ v(Ra, {}) }) : null
2055
+ /* @__PURE__ */ _("div", { className: _t.dataValidationItemTitle, children: d == null ? void 0 : d.generateRuleName(t) }),
2056
+ /* @__PURE__ */ _("div", { className: _t.dataValidationItemContent, children: t.ranges.map((p) => Cn(p)).join(",") }),
2057
+ h ? /* @__PURE__ */ _("div", { className: _t.dataValidationItemIcon, onClick: V, children: /* @__PURE__ */ _(wa, {}) }) : null
2055
2058
  ]
2056
2059
  }
2057
2060
  );
@@ -2061,60 +2064,60 @@ const Gi = "univer-data-validation-item-container", Zi = "univer-data-validation
2061
2064
  dataValidationListButton: ar
2062
2065
  };
2063
2066
  function nr(e) {
2064
- const t = N(te), n = N(de), a = N(Q), o = N(we), i = N(Se), r = N(le), [l, s] = W([]), { workbook: d } = e, u = Ae(d.activeSheet$, void 0, !0), p = d.getUnitId(), c = u == null ? void 0 : u.getSheetId();
2067
+ const t = N(te), n = N(de), a = N(Q), o = N(we), i = N(Se), r = N(le), [l, s] = W([]), { workbook: d } = e, u = Ae(d.activeSheet$, void 0, !0), h = d.getUnitId(), c = u == null ? void 0 : u.getSheetId();
2065
2068
  Le(() => {
2066
- s(t.getRules(p, c));
2067
- const g = t.ruleChange$.subscribe((S) => {
2068
- S.unitId === p && S.subUnitId === c && s(t.getRules(p, c));
2069
+ s(t.getRules(h, c));
2070
+ const f = t.ruleChange$.subscribe((g) => {
2071
+ g.unitId === h && g.subUnitId === c && s(t.getRules(h, c));
2069
2072
  });
2070
2073
  return () => {
2071
- g.unsubscribe();
2074
+ f.unsubscribe();
2072
2075
  };
2073
- }, [p, c, t]);
2074
- const _ = async () => {
2075
- const g = en(o), S = {
2076
- unitId: p,
2076
+ }, [h, c, t]);
2077
+ const S = async () => {
2078
+ const f = tn(o), g = {
2079
+ unitId: h,
2077
2080
  subUnitId: c,
2078
- rule: g
2081
+ rule: f
2079
2082
  };
2080
- await a.executeCommand(ga.id, S), i.setActiveRule({
2081
- unitId: p,
2083
+ await a.executeCommand(fa.id, g), i.setActiveRule({
2084
+ unitId: h,
2082
2085
  subUnitId: c,
2083
- rule: g
2086
+ rule: f
2084
2087
  });
2085
- }, h = () => {
2088
+ }, m = () => {
2086
2089
  a.executeCommand(ao.id, {
2087
- unitId: p,
2090
+ unitId: h,
2088
2091
  subUnitId: c
2089
2092
  });
2090
- }, R = ((g) => {
2091
- const S = n.getCurrentUnitForType(x.UNIVER_SHEET), V = S.getActiveSheet(), w = S.getUnitId(), C = V.getSheetId();
2092
- return g.map((y) => Oo(o, w, C, y.ranges) ? { ...y } : { ...y, disable: !0 });
2093
- })(l), m = R == null ? void 0 : R.some((g) => g.disable);
2093
+ }, V = ((f) => {
2094
+ const g = n.getCurrentUnitForType(x.UNIVER_SHEET), I = g.getActiveSheet(), R = g.getUnitId(), C = I.getSheetId();
2095
+ return f.map((E) => Oo(o, R, C, E.ranges) ? { ...E } : { ...E, disable: !0 });
2096
+ })(l), p = V == null ? void 0 : V.some((f) => f.disable);
2094
2097
  return /* @__PURE__ */ z("div", { className: St.dataValidationList, children: [
2095
- R == null ? void 0 : R.map((g) => {
2096
- var S;
2097
- return /* @__PURE__ */ v(
2098
+ V == null ? void 0 : V.map((f) => {
2099
+ var g;
2100
+ return /* @__PURE__ */ _(
2098
2101
  Qi,
2099
2102
  {
2100
- unitId: p,
2103
+ unitId: h,
2101
2104
  subUnitId: c,
2102
2105
  onClick: () => {
2103
- g.disable || i.setActiveRule({
2104
- unitId: p,
2106
+ f.disable || i.setActiveRule({
2107
+ unitId: h,
2105
2108
  subUnitId: c,
2106
- rule: g
2109
+ rule: f
2107
2110
  });
2108
2111
  },
2109
- rule: g,
2110
- disable: (S = g.disable) != null ? S : !1
2112
+ rule: f,
2113
+ disable: (g = f.disable) != null ? g : !1
2111
2114
  },
2112
- g.uid
2115
+ f.uid
2113
2116
  );
2114
2117
  }),
2115
2118
  /* @__PURE__ */ z("div", { className: St.dataValidationListButtons, children: [
2116
- l.length && !m ? /* @__PURE__ */ v(Ge, { className: St.dataValidationListButton, onClick: h, children: r.t("dataValidation.panel.removeAll") }) : null,
2117
- /* @__PURE__ */ v(Ge, { className: St.dataValidationListButton, variant: "primary", onClick: _, children: r.t("dataValidation.panel.add") })
2119
+ l.length && !p ? /* @__PURE__ */ _(Ge, { className: St.dataValidationListButton, onClick: m, children: r.t("dataValidation.panel.removeAll") }) : null,
2120
+ /* @__PURE__ */ _(Ge, { className: St.dataValidationListButton, variant: "primary", onClick: S, children: r.t("dataValidation.panel.add") })
2118
2121
  ] })
2119
2122
  ] });
2120
2123
  }
@@ -2128,15 +2131,15 @@ const or = () => {
2128
2131
  var i;
2129
2132
  return (i = a == null ? void 0 : a.activeSheet$) != null ? i : So(null);
2130
2133
  }, void 0, void 0, []);
2131
- return !a || !o ? null : t && t.subUnitId === o.getSheetId() ? /* @__PURE__ */ v(Ki, {}, t.rule.uid) : /* @__PURE__ */ v(nr, { workbook: a });
2134
+ return !a || !o ? null : t && t.subUnitId === o.getSheetId() ? /* @__PURE__ */ _(Ki, {}, t.rule.uid) : /* @__PURE__ */ _(nr, { workbook: a });
2132
2135
  }, ir = "LIST_RENDER_MODE_OPTION_INPUT";
2133
2136
  function At(e) {
2134
2137
  var o;
2135
2138
  const { value: t, onChange: n } = e, a = N(le);
2136
- return /* @__PURE__ */ v(K, { label: a.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ z(fa, { value: `${(o = t.renderMode) != null ? o : ie.CUSTOM}`, onChange: (i) => n({ ...t, renderMode: +i }), children: [
2137
- /* @__PURE__ */ v(Te, { value: `${ie.CUSTOM}`, children: a.t("dataValidation.renderMode.chip") }),
2138
- /* @__PURE__ */ v(Te, { value: `${ie.ARROW}`, children: a.t("dataValidation.renderMode.arrow") }),
2139
- /* @__PURE__ */ v(Te, { value: `${ie.TEXT}`, children: a.t("dataValidation.renderMode.text") })
2139
+ return /* @__PURE__ */ _(K, { label: a.t("dataValidation.renderMode.label"), children: /* @__PURE__ */ z(va, { value: `${(o = t.renderMode) != null ? o : ie.CUSTOM}`, onChange: (i) => n({ ...t, renderMode: +i }), children: [
2140
+ /* @__PURE__ */ _(Te, { value: `${ie.CUSTOM}`, children: a.t("dataValidation.renderMode.chip") }),
2141
+ /* @__PURE__ */ _(Te, { value: `${ie.ARROW}`, children: a.t("dataValidation.renderMode.arrow") }),
2142
+ /* @__PURE__ */ _(Te, { value: `${ie.TEXT}`, children: a.t("dataValidation.renderMode.text") })
2140
2143
  ] }) });
2141
2144
  }
2142
2145
  At.componentKey = ir;
@@ -2144,7 +2147,7 @@ const rr = "DATE_SHOW_TIME_OPTION";
2144
2147
  function Lt(e) {
2145
2148
  var o;
2146
2149
  const { value: t, onChange: n } = e, a = N(le);
2147
- return /* @__PURE__ */ v(K, { children: /* @__PURE__ */ v(
2150
+ return /* @__PURE__ */ _(K, { children: /* @__PURE__ */ _(
2148
2151
  kt,
2149
2152
  {
2150
2153
  checked: (o = t.bizInfo) == null ? void 0 : o.showTime,
@@ -2173,7 +2176,7 @@ let da = class {
2173
2176
  this._commandService = e, this._univerInstanceService = t, this._formulaService = n, this._themeService = a, this._renderManagerService = o, this._dataValidationModel = i;
2174
2177
  }
2175
2178
  _calc(e, t) {
2176
- var d, u, p;
2179
+ var d, u, h;
2177
2180
  const { vt: n, ht: a } = t || {}, o = e.endX - e.startX - Ct * 2, i = e.endY - e.startY, r = ((d = t == null ? void 0 : t.fs) != null ? d : 10) * 1.6;
2178
2181
  let l = 0, s = 0;
2179
2182
  switch (n) {
@@ -2202,7 +2205,7 @@ let da = class {
2202
2205
  left: e.startX + l,
2203
2206
  top: e.startY + s,
2204
2207
  width: ((u = t == null ? void 0 : t.fs) != null ? u : 10) * 1.6,
2205
- height: ((p = t == null ? void 0 : t.fs) != null ? p : 10) * 1.6
2208
+ height: ((h = t == null ? void 0 : t.fs) != null ? h : 10) * 1.6
2206
2209
  };
2207
2210
  }
2208
2211
  calcCellAutoHeight(e) {
@@ -2216,28 +2219,28 @@ let da = class {
2216
2219
  return ((n = t == null ? void 0 : t.fs) != null ? n : 10) * 1.6;
2217
2220
  }
2218
2221
  async _parseFormula(e, t, n) {
2219
- var d, u, p, c, _, h, D, R, m;
2220
- const { formula1: a = io, formula2: o = oo } = e, i = await this._formulaService.getRuleFormulaResult(t, n, e.uid), r = $t((p = (u = (d = i == null ? void 0 : i[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : p[0]), l = $t((h = (_ = (c = i == null ? void 0 : i[1]) == null ? void 0 : c.result) == null ? void 0 : _[0]) == null ? void 0 : h[0]), s = Ea(String(r)) && Ea(String(l));
2222
+ var d, u, h, c, S, m, M, V, p;
2223
+ const { formula1: a = io, formula2: o = oo } = e, i = await this._formulaService.getRuleFormulaResult(t, n, e.uid), r = $t((h = (u = (d = i == null ? void 0 : i[0]) == null ? void 0 : d.result) == null ? void 0 : u[0]) == null ? void 0 : h[0]), l = $t((m = (S = (c = i == null ? void 0 : i[1]) == null ? void 0 : c.result) == null ? void 0 : S[0]) == null ? void 0 : m[0]), s = Oa(String(r)) && Oa(String(l));
2221
2224
  return {
2222
- formula1: be(a) ? $t((m = (R = (D = i == null ? void 0 : i[0]) == null ? void 0 : D.result) == null ? void 0 : R[0]) == null ? void 0 : m[0]) : a,
2225
+ formula1: be(a) ? $t((p = (V = (M = i == null ? void 0 : i[0]) == null ? void 0 : M.result) == null ? void 0 : V[0]) == null ? void 0 : p[0]) : a,
2223
2226
  formula2: be(o) ? l : o,
2224
2227
  isFormulaValid: s
2225
2228
  };
2226
2229
  }
2227
2230
  drawWith(e, t) {
2228
- var A, F, O, U;
2229
- const { style: n, primaryWithCoord: a, unitId: o, subUnitId: i, worksheet: r, row: l, col: s } = t, d = a.isMergedMainCell ? a.mergeInfo : a, u = ee(r.getCellRaw(l, s)), p = this._dataValidationModel.getRuleByLocation(o, i, l, s);
2230
- if (!p)
2231
+ var A, P, O, U;
2232
+ const { style: n, primaryWithCoord: a, unitId: o, subUnitId: i, worksheet: r, row: l, col: s } = t, d = a.isMergedMainCell ? a.mergeInfo : a, u = ee(r.getCellRaw(l, s)), h = this._dataValidationModel.getRuleByLocation(o, i, l, s);
2233
+ if (!h)
2231
2234
  return;
2232
- const c = this._dataValidationModel.getValidator(p.type);
2235
+ const c = this._dataValidationModel.getValidator(h.type);
2233
2236
  if (!c)
2234
2237
  return;
2235
- const _ = this._themeService.getCurrentTheme();
2236
- if (!((A = c.skipDefaultFontRender) != null && A.call(c, p, u, { unitId: o, subUnitId: i, row: l, column: s })))
2238
+ const S = this._themeService.getCurrentTheme();
2239
+ if (!((A = c.skipDefaultFontRender) != null && A.call(c, h, u, { unitId: o, subUnitId: i, row: l, column: s })))
2237
2240
  return;
2238
- const h = c.parseFormulaSync(p, o, i), { formula1: D } = h, R = this._calc(d, n), { a: m, d: g } = e.getTransform(), S = La(R.left, m), V = La(R.top, g), w = Co.create().composeMatrix({
2239
- left: S,
2240
- top: V,
2241
+ const m = c.parseFormulaSync(h, o, i), { formula1: M } = m, V = this._calc(d, n), { a: p, d: f } = e.getTransform(), g = Fa(V.left, p), I = Fa(V.top, f), R = Co.create().composeMatrix({
2242
+ left: g,
2243
+ top: I,
2241
2244
  scaleX: 1,
2242
2245
  scaleY: 1,
2243
2246
  angle: 0,
@@ -2245,16 +2248,16 @@ let da = class {
2245
2248
  skewY: 0,
2246
2249
  flipX: !1,
2247
2250
  flipY: !1
2248
- }), C = d.endX - d.startX, I = d.endY - d.startY;
2249
- e.save(), e.beginPath(), e.rect(d.startX, d.startY, C, I), e.clip();
2250
- const y = w.getMatrix();
2251
- e.transform(y[0], y[1], y[2], y[3], y[4], y[5]);
2252
- const P = ((F = n == null ? void 0 : n.fs) != null ? F : 10) * 1.6, k = String(u) === String(D), T = _.hyacinth500;
2251
+ }), C = d.endX - d.startX, w = d.endY - d.startY;
2252
+ e.save(), e.beginPath(), e.rect(d.startX, d.startY, C, w), e.clip();
2253
+ const E = R.getMatrix();
2254
+ e.transform(E[0], E[1], E[2], E[3], E[4], E[5]);
2255
+ const F = ((P = n == null ? void 0 : n.fs) != null ? P : 10) * 1.6, b = String(u) === String(M), L = S.hyacinth500;
2253
2256
  Io.drawWith(e, {
2254
- checked: k,
2255
- width: P,
2256
- height: P,
2257
- fill: (U = (O = n == null ? void 0 : n.cl) == null ? void 0 : O.rgb) != null ? U : T
2257
+ checked: b,
2258
+ width: F,
2259
+ height: F,
2260
+ fill: (U = (O = n == null ? void 0 : n.cl) == null ? void 0 : O.rgb) != null ? U : L
2258
2261
  }), e.restore();
2259
2262
  }
2260
2263
  isHit(e, t) {
@@ -2262,16 +2265,16 @@ let da = class {
2262
2265
  return s <= l && s >= r && d <= i && d >= o;
2263
2266
  }
2264
2267
  async onPointerDown(e, t) {
2265
- var h;
2268
+ var m;
2266
2269
  if (t.button === 2)
2267
2270
  return;
2268
2271
  const { primaryWithCoord: n, unitId: a, subUnitId: o, worksheet: i, row: r, col: l } = e, s = ee(i.getCellRaw(r, l)), d = this._dataValidationModel.getRuleByLocation(a, o, r, l);
2269
2272
  if (!d)
2270
2273
  return;
2271
2274
  const u = this._dataValidationModel.getValidator(d.type);
2272
- if (!u || !((h = u.skipDefaultFontRender) != null && h.call(u, d, s, { unitId: a, subUnitId: o, row: r, column: l })))
2275
+ if (!u || !((m = u.skipDefaultFontRender) != null && m.call(u, d, s, { unitId: a, subUnitId: o, row: r, column: l })))
2273
2276
  return;
2274
- const { formula1: p, formula2: c } = await this._parseFormula(d, a, o), _ = {
2277
+ const { formula1: h, formula2: c } = await this._parseFormula(d, a, o), S = {
2275
2278
  range: {
2276
2279
  startColumn: n.actualColumn,
2277
2280
  endColumn: n.actualColumn,
@@ -2279,13 +2282,13 @@ let da = class {
2279
2282
  endRow: n.actualRow
2280
2283
  },
2281
2284
  value: {
2282
- v: String(s) === ro(String(p)) ? c : p,
2285
+ v: String(s) === ro(String(h)) ? c : h,
2283
2286
  p: null
2284
2287
  }
2285
2288
  };
2286
2289
  this._commandService.executeCommand(
2287
2290
  dt.id,
2288
- _
2291
+ S
2289
2292
  );
2290
2293
  }
2291
2294
  onPointerEnter(e, t) {
@@ -2300,41 +2303,41 @@ let da = class {
2300
2303
  da = lr([
2301
2304
  xe(0, Q),
2302
2305
  xe(1, de),
2303
- xe(2, M(no)),
2304
- xe(3, M(za)),
2305
- xe(4, M(Ne)),
2306
- xe(5, M(te))
2306
+ xe(2, y(no)),
2307
+ xe(3, y(Ga)),
2308
+ xe(4, y(Ne)),
2309
+ xe(5, y(te))
2307
2310
  ], da);
2308
2311
  class dr extends _e {
2309
2312
  constructor() {
2310
2313
  super(...arguments);
2311
- E(this, "id", G.CHECKBOX);
2312
- E(this, "canvasRender", this.injector.createInstance(da));
2313
- E(this, "formulaInput", Qa);
2314
+ D(this, "id", G.CHECKBOX);
2315
+ D(this, "canvasRender", this.injector.createInstance(da));
2316
+ D(this, "formulaInput", en);
2314
2317
  }
2315
2318
  }
2316
2319
  class cr extends _e {
2317
2320
  constructor() {
2318
2321
  super(...arguments);
2319
- E(this, "id", G.CUSTOM);
2320
- E(this, "formulaInput", Ja);
2322
+ D(this, "id", G.CUSTOM);
2323
+ D(this, "formulaInput", Qa);
2321
2324
  }
2322
2325
  }
2323
2326
  const ur = "data-validation.formula-input";
2324
2327
  class hr extends _e {
2325
2328
  constructor() {
2326
2329
  super(...arguments);
2327
- E(this, "id", G.DATE);
2328
- E(this, "formulaInput", ur);
2329
- E(this, "optionsInput", Lt.componentKey);
2330
- E(this, "dropdownType", me.DATE);
2330
+ D(this, "id", G.DATE);
2331
+ D(this, "formulaInput", ur);
2332
+ D(this, "optionsInput", Lt.componentKey);
2333
+ D(this, "dropdownType", pe.DATE);
2331
2334
  }
2332
2335
  }
2333
2336
  class mr extends _e {
2334
2337
  constructor() {
2335
2338
  super(...arguments);
2336
- E(this, "id", G.DECIMAL);
2337
- E(this, "formulaInput", Ft);
2339
+ D(this, "id", G.DECIMAL);
2340
+ D(this, "formulaInput", Ft);
2338
2341
  }
2339
2342
  }
2340
2343
  const Ln = 4, pr = 0, zt = 4, Pn = 4, ca = 6, Pt = 6, Ee = 14;
@@ -2354,10 +2357,10 @@ function Kt(e, t, n, a) {
2354
2357
  let s;
2355
2358
  const d = [];
2356
2359
  l.forEach((c) => {
2357
- const { layout: _ } = c, { width: h, height: D } = _;
2358
- !s || s.width + h + zt > i ? (s = {
2359
- width: h,
2360
- height: D,
2360
+ const { layout: S } = c, { width: m, height: M } = S;
2361
+ !s || s.width + m + zt > i ? (s = {
2362
+ width: m,
2363
+ height: M,
2361
2364
  items: [{
2362
2365
  ...c,
2363
2366
  left: 0
@@ -2365,25 +2368,25 @@ function Kt(e, t, n, a) {
2365
2368
  }, d.push(s)) : (s.items.push({
2366
2369
  ...c,
2367
2370
  left: s.width + zt
2368
- }), s.width = s.width + h + zt);
2371
+ }), s.width = s.width + m + zt);
2369
2372
  });
2370
- let u = 0, p = 0;
2371
- return d.forEach((c, _) => {
2372
- p = Math.max(p, c.width), _ === d.length - 1 ? u += c.height : u += c.height + Pn;
2373
+ let u = 0, h = 0;
2374
+ return d.forEach((c, S) => {
2375
+ h = Math.max(h, c.width), S === d.length - 1 ? u += c.height : u += c.height + Pn;
2373
2376
  }), {
2374
2377
  lines: d,
2375
2378
  totalHeight: u,
2376
2379
  contentWidth: i,
2377
2380
  contentHeight: r,
2378
2381
  cellAutoHeight: u + Pt * 2,
2379
- calcAutoWidth: p + o
2382
+ calcAutoWidth: h + o
2380
2383
  };
2381
2384
  }
2382
2385
  const fr = 8;
2383
2386
  class vr extends wo {
2384
2387
  static drawWith(t, n) {
2385
2388
  const { fontString: a, info: o, fill: i, color: r } = n, { layout: l, text: s } = o;
2386
- t.save(), hn.drawWith(t, {
2389
+ t.save(), mn.drawWith(t, {
2387
2390
  width: l.width,
2388
2391
  height: l.height,
2389
2392
  radius: fr,
@@ -2399,8 +2402,8 @@ var _r = Object.getOwnPropertyDescriptor, Sr = (e, t, n, a) => {
2399
2402
  const Cr = 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");
2400
2403
  let ua = class {
2401
2404
  constructor(e, t, n, a) {
2402
- E(this, "zIndex");
2403
- E(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2405
+ D(this, "zIndex");
2406
+ D(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2404
2407
  this._commandService = e, this._univerInstanceService = t, this._renderManagerService = n, this._dataValidationModel = a;
2405
2408
  }
2406
2409
  _ensureMap(e) {
@@ -2426,19 +2429,19 @@ let ua = class {
2426
2429
  // eslint-disable-next-line max-lines-per-function
2427
2430
  drawWith(e, t, n, a) {
2428
2431
  var Z, Y;
2429
- const { primaryWithCoord: o, row: i, col: r, style: l, data: s, subUnitId: d } = t, u = o.isMergedMainCell ? o.mergeInfo : o, p = s == null ? void 0 : s.fontRenderExtension, { leftOffset: c = 0, rightOffset: _ = 0, topOffset: h = 0, downOffset: D = 0 } = p || {}, R = this._ensureMap(d), m = this._generateKey(i, r), g = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, i, r);
2430
- if (!g)
2432
+ const { primaryWithCoord: o, row: i, col: r, style: l, data: s, subUnitId: d } = t, u = o.isMergedMainCell ? o.mergeInfo : o, h = s == null ? void 0 : s.fontRenderExtension, { leftOffset: c = 0, rightOffset: S = 0, topOffset: m = 0, downOffset: M = 0 } = h || {}, V = this._ensureMap(d), p = this._generateKey(i, r), f = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, i, r);
2433
+ if (!f)
2431
2434
  return;
2432
- const S = this._dataValidationModel.getValidator(g.type);
2433
- if (!S)
2435
+ const g = this._dataValidationModel.getValidator(f.type);
2436
+ if (!g)
2434
2437
  return;
2435
- const V = {
2438
+ const I = {
2436
2439
  startX: u.startX + c,
2437
- endX: u.endX - _,
2438
- startY: u.startY + h,
2439
- endY: u.endY - D
2440
- }, w = V.endX - V.startX, C = V.endY - V.startY, { cl: I } = l || {}, y = (Z = typeof I == "object" ? I == null ? void 0 : I.rgb : I) != null ? Z : "#000", P = Ht(l != null ? l : void 0), { vt: k, ht: T } = l || {}, A = k != null ? k : se.MIDDLE, F = (Y = ee(s)) != null ? Y : "", O = S.parseCellValue(F), U = S.getListWithColorMap(g), B = Kt(O, P, w, C);
2441
- this._drawDownIcon(e, V, w, C, A), e.save(), e.translateWithPrecision(V.startX, V.startY), e.beginPath(), e.rect(0, 0, w - Ee, C), e.clip(), e.translateWithPrecision(ca, Pt);
2440
+ endX: u.endX - S,
2441
+ startY: u.startY + m,
2442
+ endY: u.endY - M
2443
+ }, R = I.endX - I.startX, C = I.endY - I.startY, { cl: w } = l || {}, E = (Z = typeof w == "object" ? w == null ? void 0 : w.rgb : w) != null ? Z : "#000", F = Ht(l != null ? l : void 0), { vt: b, ht: L } = l || {}, A = b != null ? b : se.MIDDLE, P = (Y = ee(s)) != null ? Y : "", O = g.parseCellValue(P), U = g.getListWithColorMap(f), B = Kt(O, F, R, C);
2444
+ this._drawDownIcon(e, I, R, C, A), e.save(), e.translateWithPrecision(I.startX, I.startY), e.beginPath(), e.rect(0, 0, R - Ee, C), e.clip(), e.translateWithPrecision(ca, Pt);
2442
2445
  let j = 0;
2443
2446
  switch (A) {
2444
2447
  case se.MIDDLE:
@@ -2448,11 +2451,11 @@ let ua = class {
2448
2451
  j = B.contentHeight - B.totalHeight;
2449
2452
  break;
2450
2453
  }
2451
- e.translateWithPrecision(0, j), B.lines.forEach((ae, pe) => {
2454
+ e.translateWithPrecision(0, j), B.lines.forEach((ae, ge) => {
2452
2455
  e.save();
2453
2456
  const { width: ce, height: ne, items: ue } = ae;
2454
2457
  let Ce = 0;
2455
- switch (T) {
2458
+ switch (L) {
2456
2459
  case ze.RIGHT:
2457
2460
  Ce = B.contentWidth - ce;
2458
2461
  break;
@@ -2460,52 +2463,52 @@ let ua = class {
2460
2463
  Ce = (B.contentWidth - ce) / 2;
2461
2464
  break;
2462
2465
  }
2463
- e.translate(Ce, pe * (ne + Pn)), ue.forEach((ge) => {
2464
- e.save(), e.translateWithPrecision(ge.left, 0), vr.drawWith(e, {
2465
- ...P,
2466
- info: ge,
2467
- color: y,
2468
- fill: U[ge.text]
2466
+ e.translate(Ce, ge * (ne + Pn)), ue.forEach((fe) => {
2467
+ e.save(), e.translateWithPrecision(fe.left, 0), vr.drawWith(e, {
2468
+ ...F,
2469
+ info: fe,
2470
+ color: E,
2471
+ fill: U[fe.text]
2469
2472
  }), e.restore();
2470
2473
  }), e.restore();
2471
- }), e.restore(), R.set(m, {
2472
- left: V.startX,
2473
- top: V.startY,
2474
+ }), e.restore(), V.set(p, {
2475
+ left: I.startX,
2476
+ top: I.startY,
2474
2477
  width: B.contentWidth + ca + Ee,
2475
2478
  height: B.contentHeight + Pt * 2
2476
2479
  });
2477
2480
  }
2478
2481
  calcCellAutoHeight(e) {
2479
- var w;
2480
- const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = a == null ? void 0 : a.fontRenderExtension, { leftOffset: l = 0, rightOffset: s = 0, topOffset: d = 0, downOffset: u = 0 } = r || {}, p = t.isMergedMainCell ? t.mergeInfo : t, c = {
2481
- startX: p.startX + l,
2482
- endX: p.endX - s,
2483
- startY: p.startY + d,
2484
- endY: p.endY - u
2485
- }, _ = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2486
- if (!_)
2482
+ var R;
2483
+ const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = a == null ? void 0 : a.fontRenderExtension, { leftOffset: l = 0, rightOffset: s = 0, topOffset: d = 0, downOffset: u = 0 } = r || {}, h = t.isMergedMainCell ? t.mergeInfo : t, c = {
2484
+ startX: h.startX + l,
2485
+ endX: h.endX - s,
2486
+ startY: h.startY + d,
2487
+ endY: h.endY - u
2488
+ }, S = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2489
+ if (!S)
2487
2490
  return;
2488
- const h = this._dataValidationModel.getValidator(_.type);
2489
- if (!h)
2491
+ const m = this._dataValidationModel.getValidator(S.type);
2492
+ if (!m)
2490
2493
  return;
2491
- const D = c.endX - c.startX, R = c.endY - c.startY, m = (w = ee(a)) != null ? w : "", g = h.parseCellValue(m), S = Ht(n != null ? n : void 0);
2492
- return Kt(g, S, D, R).cellAutoHeight;
2494
+ const M = c.endX - c.startX, V = c.endY - c.startY, p = (R = ee(a)) != null ? R : "", f = m.parseCellValue(p), g = Ht(n != null ? n : void 0);
2495
+ return Kt(f, g, M, V).cellAutoHeight;
2493
2496
  }
2494
2497
  calcCellAutoWidth(e) {
2495
- var w;
2496
- const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = a == null ? void 0 : a.fontRenderExtension, { leftOffset: l = 0, rightOffset: s = 0, topOffset: d = 0, downOffset: u = 0 } = r || {}, p = t.isMergedMainCell ? t.mergeInfo : t, c = {
2497
- startX: p.startX + l,
2498
- endX: p.endX - s,
2499
- startY: p.startY + d,
2500
- endY: p.endY - u
2501
- }, _ = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2502
- if (!_)
2498
+ var R;
2499
+ const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = a == null ? void 0 : a.fontRenderExtension, { leftOffset: l = 0, rightOffset: s = 0, topOffset: d = 0, downOffset: u = 0 } = r || {}, h = t.isMergedMainCell ? t.mergeInfo : t, c = {
2500
+ startX: h.startX + l,
2501
+ endX: h.endX - s,
2502
+ startY: h.startY + d,
2503
+ endY: h.endY - u
2504
+ }, S = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2505
+ if (!S)
2503
2506
  return;
2504
- const h = this._dataValidationModel.getValidator(_.type);
2505
- if (!h)
2507
+ const m = this._dataValidationModel.getValidator(S.type);
2508
+ if (!m)
2506
2509
  return;
2507
- const D = c.endX - c.startX, R = c.endY - c.startY, m = (w = ee(a)) != null ? w : "", g = h.parseCellValue(m), S = Ht(n != null ? n : void 0);
2508
- return Kt(g, S, D, R).calcAutoWidth;
2510
+ const M = c.endX - c.startX, V = c.endY - c.startY, p = (R = ee(a)) != null ? R : "", f = m.parseCellValue(p), g = Ht(n != null ? n : void 0);
2511
+ return Kt(f, g, M, V).calcAutoWidth;
2509
2512
  }
2510
2513
  isHit(e, t) {
2511
2514
  const { primaryWithCoord: n } = t, a = n.isMergedMainCell ? n.mergeInfo : n, { endX: o } = a, { x: i } = e;
@@ -2534,15 +2537,15 @@ let ua = class {
2534
2537
  ua = Sr([
2535
2538
  It(0, Q),
2536
2539
  It(1, de),
2537
- It(2, M(Ne)),
2538
- It(3, M(te))
2540
+ It(2, y(Ne)),
2541
+ It(3, y(te))
2539
2542
  ], ua);
2540
2543
  class Ir extends _e {
2541
2544
  constructor() {
2542
2545
  super(...arguments);
2543
- E(this, "id", G.LIST_MULTIPLE);
2544
- E(this, "canvasRender", this.injector.createInstance(ua));
2545
- E(this, "dropdownType", me.MULTIPLE_LIST);
2546
+ D(this, "id", G.LIST_MULTIPLE);
2547
+ D(this, "canvasRender", this.injector.createInstance(ua));
2548
+ D(this, "dropdownType", pe.MULTIPLE_LIST);
2546
2549
  }
2547
2550
  }
2548
2551
  var Rr = Object.getOwnPropertyDescriptor, wr = (e, t, n, a) => {
@@ -2550,7 +2553,7 @@ var Rr = Object.getOwnPropertyDescriptor, wr = (e, t, n, a) => {
2550
2553
  (r = e[i]) && (o = r(o) || o);
2551
2554
  return o;
2552
2555
  }, lt = (e, t) => (n, a) => t(n, a, e);
2553
- const De = 4, Rt = 4, he = 14, ve = 6, Ye = 4, Gt = 8, Vr = "#565656", $a = 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");
2556
+ const De = 4, Rt = 4, me = 14, ve = 6, Ye = 4, Gt = 8, Vr = "#565656", Wa = 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");
2554
2557
  function yr(e, t) {
2555
2558
  const n = e.length;
2556
2559
  return {
@@ -2615,7 +2618,7 @@ function wt(e, t, n) {
2615
2618
  docViewModel: i
2616
2619
  };
2617
2620
  }
2618
- function Ha(e, t, n, a, o, i, r = !0) {
2621
+ function xa(e, t, n, a, o, i, r = !0) {
2619
2622
  let l = 0;
2620
2623
  const s = r ? Ye : 0;
2621
2624
  switch (o) {
@@ -2646,8 +2649,8 @@ function Ha(e, t, n, a, o, i, r = !0) {
2646
2649
  }
2647
2650
  let ha = class {
2648
2651
  constructor(e, t, n, a, o) {
2649
- E(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2650
- E(this, "zIndex");
2652
+ D(this, "_dropdownInfoMap", /* @__PURE__ */ new Map());
2653
+ D(this, "zIndex");
2651
2654
  this._univerInstanceService = e, this._localeService = t, this._commandService = n, this._renderManagerService = a, this._dataValidationModel = o;
2652
2655
  }
2653
2656
  _ensureMap(e) {
@@ -2658,7 +2661,7 @@ let ha = class {
2658
2661
  return `${e}.${t}`;
2659
2662
  }
2660
2663
  _drawDownIcon(e, t, n, a, o, i, r) {
2661
- const { t: l = oe.pd.t, b: s = oe.pd.b } = r, d = n - he;
2664
+ const { t: l = oe.pd.t, b: s = oe.pd.b } = r, d = n - me;
2662
2665
  let u;
2663
2666
  switch (i) {
2664
2667
  case se.MIDDLE:
@@ -2671,116 +2674,116 @@ let ha = class {
2671
2674
  u = l + Ye + (o / 2 - Rt / 2);
2672
2675
  break;
2673
2676
  }
2674
- e.save(), e.translateWithPrecision(t.startX + d, t.startY + u), e.fillStyle = "#565656", e.fill($a), e.restore();
2677
+ e.save(), e.translateWithPrecision(t.startX + d, t.startY + u), e.fillStyle = "#565656", e.fill(Wa), e.restore();
2675
2678
  }
2676
2679
  // eslint-disable-next-line max-lines-per-function, complexity
2677
2680
  drawWith(e, t, n) {
2678
2681
  const { primaryWithCoord: a, row: o, col: i, style: r, data: l, subUnitId: s } = t, d = a.isMergedMainCell ? a.mergeInfo : a, u = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, o, i);
2679
2682
  if (!u)
2680
2683
  return;
2681
- const p = this._dataValidationModel.getValidator(u.type);
2682
- if (!p)
2684
+ const h = this._dataValidationModel.getValidator(u.type);
2685
+ if (!h)
2683
2686
  return;
2684
- const c = l == null ? void 0 : l.fontRenderExtension, { leftOffset: _ = 0, rightOffset: h = 0, topOffset: D = 0, downOffset: R = 0 } = c || {};
2685
- if (!u || !p || !p || p.id.indexOf(G.LIST) !== 0 || !p.skipDefaultFontRender(u))
2687
+ const c = l == null ? void 0 : l.fontRenderExtension, { leftOffset: S = 0, rightOffset: m = 0, topOffset: M = 0, downOffset: V = 0 } = c || {};
2688
+ if (!u || !h || !h || h.id.indexOf(G.LIST) !== 0 || !h.skipDefaultFontRender(u))
2686
2689
  return;
2687
- const m = {
2688
- startX: d.startX + _,
2689
- endX: d.endX - h,
2690
- startY: d.startY + D,
2691
- endY: d.endY - R
2692
- }, g = m.endX - m.startX, S = m.endY - m.startY, V = this._ensureMap(s), w = this._generateKey(o, i), C = p.getListWithColor(u), I = ee(l), y = `${I != null ? I : ""}`, P = C.find((O) => O.label === y);
2693
- let { tb: k, vt: T, ht: A, pd: F } = r || {};
2694
- if (k = k != null ? k : Re.WRAP, T = T != null ? T : se.BOTTOM, A = A != null ? A : oe.ht, F = F != null ? F : oe.pd, u.renderMode === ie.ARROW) {
2695
- const { l: O = oe.pd.l, t: U = oe.pd.t, r: B = oe.pd.r, b: j = oe.pd.b } = F, Z = g - O - B - he - 4, { documentSkeleton: Y, documents: ae, docModel: pe } = wt(y, this._localeService, r);
2696
- k === Re.WRAP && pe.updateDocumentDataPageSize(Math.max(Z, 1)), Y.calculate(), Y.getActualSize();
2697
- const ce = rt(Y), { height: ne, width: ue } = ce, { paddingTop: Ce, paddingLeft: ge } = Ha(Z, S - U - j, ue, ne, T, A, !0);
2698
- this._drawDownIcon(e, m, g, S, ne, T, F), e.save(), e.translateWithPrecision(m.startX + O, m.startY + U), e.beginPath(), e.rect(0, 0, g - O - B, S - U - j), e.clip(), e.translateWithPrecision(0, Ce), e.save(), e.translateWithPrecision(De, 0), e.beginPath(), e.rect(0, 0, Z, ne), e.clip(), ae.render(e), e.translateWithPrecision(ge, 0), e.restore(), e.restore(), V.set(w, {
2699
- left: m.endX + O + n.rowHeaderWidth - he,
2700
- top: m.startY + U + n.columnHeaderHeight,
2701
- width: he,
2702
- height: S - U - j
2690
+ const p = {
2691
+ startX: d.startX + S,
2692
+ endX: d.endX - m,
2693
+ startY: d.startY + M,
2694
+ endY: d.endY - V
2695
+ }, f = p.endX - p.startX, g = p.endY - p.startY, I = this._ensureMap(s), R = this._generateKey(o, i), C = h.getListWithColor(u), w = ee(l), E = `${w != null ? w : ""}`, F = C.find((O) => O.label === E);
2696
+ let { tb: b, vt: L, ht: A, pd: P } = r || {};
2697
+ if (b = b != null ? b : Re.WRAP, L = L != null ? L : se.BOTTOM, A = A != null ? A : oe.ht, P = P != null ? P : oe.pd, u.renderMode === ie.ARROW) {
2698
+ const { l: O = oe.pd.l, t: U = oe.pd.t, r: B = oe.pd.r, b: j = oe.pd.b } = P, Z = f - O - B - me - 4, { documentSkeleton: Y, documents: ae, docModel: ge } = wt(E, this._localeService, r);
2699
+ b === Re.WRAP && ge.updateDocumentDataPageSize(Math.max(Z, 1)), Y.calculate(), Y.getActualSize();
2700
+ const ce = rt(Y), { height: ne, width: ue } = ce, { paddingTop: Ce, paddingLeft: fe } = xa(Z, g - U - j, ue, ne, L, A, !0);
2701
+ this._drawDownIcon(e, p, f, g, ne, L, P), e.save(), e.translateWithPrecision(p.startX + O, p.startY + U), e.beginPath(), e.rect(0, 0, f - O - B, g - U - j), e.clip(), e.translateWithPrecision(0, Ce), e.save(), e.translateWithPrecision(De, 0), e.beginPath(), e.rect(0, 0, Z, ne), e.clip(), ae.render(e), e.translateWithPrecision(fe, 0), e.restore(), e.restore(), I.set(R, {
2702
+ left: p.endX + O + n.rowHeaderWidth - me,
2703
+ top: p.startY + U + n.columnHeaderHeight,
2704
+ width: me,
2705
+ height: g - U - j
2703
2706
  });
2704
2707
  } else {
2705
- e.save(), e.translateWithPrecision(m.startX, m.startY), e.beginPath(), e.rect(0, 0, g, S), e.clip();
2706
- const O = g - ve * 2 - De - he - 4, { documentSkeleton: U, documents: B, docModel: j } = wt(y, this._localeService, r);
2707
- k === Re.WRAP && j.updateDocumentDataPageSize(Math.max(O, 1)), U.calculate();
2708
- const Z = rt(U), { height: Y, width: ae } = Z, { paddingTop: pe, paddingLeft: ce } = Ha(O, S, ae, Y, T, A);
2709
- e.translateWithPrecision(ve, pe);
2710
- const ne = Math.max(g - ve * 2, 1), ue = Y;
2711
- hn.drawWith(e, {
2708
+ e.save(), e.translateWithPrecision(p.startX, p.startY), e.beginPath(), e.rect(0, 0, f, g), e.clip();
2709
+ const O = f - ve * 2 - De - me - 4, { documentSkeleton: U, documents: B, docModel: j } = wt(E, this._localeService, r);
2710
+ b === Re.WRAP && j.updateDocumentDataPageSize(Math.max(O, 1)), U.calculate();
2711
+ const Z = rt(U), { height: Y, width: ae } = Z, { paddingTop: ge, paddingLeft: ce } = xa(O, g, ae, Y, L, A);
2712
+ e.translateWithPrecision(ve, ge);
2713
+ const ne = Math.max(f - ve * 2, 1), ue = Y;
2714
+ mn.drawWith(e, {
2712
2715
  width: ne,
2713
2716
  height: ue,
2714
- fill: (P == null ? void 0 : P.color) || je,
2717
+ fill: (F == null ? void 0 : F.color) || je,
2715
2718
  radius: Gt
2716
- }), e.save(), e.translateWithPrecision(De, 0), e.beginPath(), e.rect(0, 0, O, Y), e.clip(), e.translateWithPrecision(ce, 0), B.render(e), e.restore(), e.translateWithPrecision(O + De + 4, (Y - Rt) / 2), e.fillStyle = Vr, e.fill($a), e.restore(), V.set(w, {
2717
- left: m.startX + ve + n.rowHeaderWidth,
2718
- top: m.startY + pe + n.columnHeaderHeight,
2719
+ }), e.save(), e.translateWithPrecision(De, 0), e.beginPath(), e.rect(0, 0, O, Y), e.clip(), e.translateWithPrecision(ce, 0), B.render(e), e.restore(), e.translateWithPrecision(O + De + 4, (Y - Rt) / 2), e.fillStyle = Vr, e.fill(Wa), e.restore(), I.set(R, {
2720
+ left: p.startX + ve + n.rowHeaderWidth,
2721
+ top: p.startY + ge + n.columnHeaderHeight,
2719
2722
  width: ne,
2720
2723
  height: ue
2721
2724
  });
2722
2725
  }
2723
2726
  }
2724
2727
  calcCellAutoHeight(e) {
2725
- const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = t.isMergedMainCell ? t.mergeInfo : t, l = a == null ? void 0 : a.fontRenderExtension, { leftOffset: s = 0, rightOffset: d = 0, topOffset: u = 0, downOffset: p = 0 } = l || {}, c = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2728
+ const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = t.isMergedMainCell ? t.mergeInfo : t, l = a == null ? void 0 : a.fontRenderExtension, { leftOffset: s = 0, rightOffset: d = 0, topOffset: u = 0, downOffset: h = 0 } = l || {}, c = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2726
2729
  if (!c || c.renderMode === ie.TEXT)
2727
2730
  return;
2728
- const _ = {
2731
+ const S = {
2729
2732
  startX: r.startX + s,
2730
2733
  endX: r.endX - d,
2731
2734
  startY: r.startY + u,
2732
- endY: r.endY - p
2733
- }, h = _.endX - _.startX, D = ee(a), R = `${D != null ? D : ""}`;
2734
- let { tb: m, pd: g } = n || {};
2735
- const { t: S = oe.pd.t, b: V = oe.pd.b } = g != null ? g : {};
2736
- if (m = m != null ? m : Re.WRAP, c.renderMode === ie.ARROW) {
2737
- const w = h - he, { documentSkeleton: C, docModel: I } = wt(R, this._localeService, n);
2738
- m === Re.WRAP && I.updateDocumentDataPageSize(Math.max(w, 1)), C.calculate(), C.getActualSize();
2739
- const y = rt(C), { height: P } = y;
2740
- return P + S + V + Ye * 2;
2735
+ endY: r.endY - h
2736
+ }, m = S.endX - S.startX, M = ee(a), V = `${M != null ? M : ""}`;
2737
+ let { tb: p, pd: f } = n || {};
2738
+ const { t: g = oe.pd.t, b: I = oe.pd.b } = f != null ? f : {};
2739
+ if (p = p != null ? p : Re.WRAP, c.renderMode === ie.ARROW) {
2740
+ const R = m - me, { documentSkeleton: C, docModel: w } = wt(V, this._localeService, n);
2741
+ p === Re.WRAP && w.updateDocumentDataPageSize(Math.max(R, 1)), C.calculate(), C.getActualSize();
2742
+ const E = rt(C), { height: F } = E;
2743
+ return F + g + I + Ye * 2;
2741
2744
  } else {
2742
- const w = h - ve * 2 - De - he, { documentSkeleton: C, docModel: I } = Fn(R, this._localeService, n);
2743
- m === Re.WRAP && I.updateDocumentDataPageSize(Math.max(w, 1)), C.calculate();
2744
- const y = rt(C), {
2745
- height: P
2746
- } = y;
2747
- return P + Ye * 2;
2745
+ const R = m - ve * 2 - De - me, { documentSkeleton: C, docModel: w } = Fn(V, this._localeService, n);
2746
+ p === Re.WRAP && w.updateDocumentDataPageSize(Math.max(R, 1)), C.calculate();
2747
+ const E = rt(C), {
2748
+ height: F
2749
+ } = E;
2750
+ return F + Ye * 2;
2748
2751
  }
2749
2752
  }
2750
2753
  calcCellAutoWidth(e) {
2751
- const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = t.isMergedMainCell ? t.mergeInfo : t, l = a == null ? void 0 : a.fontRenderExtension, { leftOffset: s = 0, rightOffset: d = 0, topOffset: u = 0, downOffset: p = 0 } = l || {}, c = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2754
+ const { primaryWithCoord: t, style: n, data: a, row: o, col: i } = e, r = t.isMergedMainCell ? t.mergeInfo : t, l = a == null ? void 0 : a.fontRenderExtension, { leftOffset: s = 0, rightOffset: d = 0, topOffset: u = 0, downOffset: h = 0 } = l || {}, c = this._dataValidationModel.getRuleByLocation(e.unitId, e.subUnitId, o, i);
2752
2755
  if (!c || c.renderMode === ie.TEXT)
2753
2756
  return;
2754
- const _ = {
2757
+ const S = {
2755
2758
  startX: r.startX + s,
2756
2759
  endX: r.endX - d,
2757
2760
  startY: r.startY + u,
2758
- endY: r.endY - p
2759
- }, h = _.endX - _.startX, D = ee(a), R = `${D != null ? D : ""}`;
2760
- let { tb: m, pd: g } = n || {};
2761
- const { l: S = oe.pd.l, r: V = oe.pd.r } = g != null ? g : {};
2762
- m = m != null ? m : Re.WRAP;
2763
- let w = ve * 2 + he;
2761
+ endY: r.endY - h
2762
+ }, m = S.endX - S.startX, M = ee(a), V = `${M != null ? M : ""}`;
2763
+ let { tb: p, pd: f } = n || {};
2764
+ const { l: g = oe.pd.l, r: I = oe.pd.r } = f != null ? f : {};
2765
+ p = p != null ? p : Re.WRAP;
2766
+ let R = ve * 2 + me;
2764
2767
  switch (c.renderMode) {
2765
2768
  case ie.ARROW:
2766
- w = he + ve * 2 + V + S;
2769
+ R = me + ve * 2 + I + g;
2767
2770
  break;
2768
2771
  case ie.CUSTOM:
2769
- w = he + ve * 2 + De * 2 + V + S + Gt / 2 + 1;
2772
+ R = me + ve * 2 + De * 2 + I + g + Gt / 2 + 1;
2770
2773
  break;
2771
2774
  // default is CUSTOM
2772
2775
  default:
2773
- w = he + ve * 2 + De * 2 + V + S + Gt / 2 + 1;
2776
+ R = me + ve * 2 + De * 2 + I + g + Gt / 2 + 1;
2774
2777
  }
2775
- const C = h - w, { documentSkeleton: I, docModel: y } = wt(R, this._localeService, n);
2776
- return m === Re.WRAP && y.updateDocumentDataPageSize(Math.max(C, 1)), I.calculate(), I.getActualSize(), rt(I).width + w;
2778
+ const C = m - R, { documentSkeleton: w, docModel: E } = wt(V, this._localeService, n);
2779
+ return p === Re.WRAP && E.updateDocumentDataPageSize(Math.max(C, 1)), w.calculate(), w.getActualSize(), rt(w).width + R;
2777
2780
  }
2778
2781
  isHit(e, t) {
2779
2782
  const { subUnitId: n, row: a, col: o } = t, r = this._ensureMap(n).get(this._generateKey(a, o)), l = this._dataValidationModel.getRuleByLocation(t.unitId, t.subUnitId, a, o);
2780
2783
  if (!l || !r || l.renderMode === ie.TEXT)
2781
2784
  return !1;
2782
- const { top: s, left: d, width: u, height: p } = r, { x: c, y: _ } = e;
2783
- return c >= d && c <= d + u && _ >= s && _ <= s + p;
2785
+ const { top: s, left: d, width: u, height: h } = r, { x: c, y: S } = e;
2786
+ return c >= d && c <= d + u && S >= s && S <= s + h;
2784
2787
  }
2785
2788
  onPointerDown(e, t) {
2786
2789
  if (t.button === 2)
@@ -2804,33 +2807,33 @@ let ha = class {
2804
2807
  };
2805
2808
  ha = wr([
2806
2809
  lt(0, de),
2807
- lt(1, M(le)),
2810
+ lt(1, y(le)),
2808
2811
  lt(2, Q),
2809
- lt(3, M(Ne)),
2810
- lt(4, M(te))
2812
+ lt(3, y(Ne)),
2813
+ lt(4, y(te))
2811
2814
  ], ha);
2812
2815
  class Mr extends _e {
2813
2816
  constructor() {
2814
2817
  super(...arguments);
2815
- E(this, "id", G.LIST);
2816
- E(this, "canvasRender", this.injector.createInstance(ha));
2817
- E(this, "dropdownType", me.LIST);
2818
- E(this, "optionsInput", At.componentKey);
2819
- E(this, "formulaInput", pa);
2818
+ D(this, "id", G.LIST);
2819
+ D(this, "canvasRender", this.injector.createInstance(ha));
2820
+ D(this, "dropdownType", pe.LIST);
2821
+ D(this, "optionsInput", At.componentKey);
2822
+ D(this, "formulaInput", ga);
2820
2823
  }
2821
2824
  }
2822
2825
  class Dr extends _e {
2823
2826
  constructor() {
2824
2827
  super(...arguments);
2825
- E(this, "id", G.TEXT_LENGTH);
2826
- E(this, "formulaInput", Ft);
2828
+ D(this, "id", G.TEXT_LENGTH);
2829
+ D(this, "formulaInput", Ft);
2827
2830
  }
2828
2831
  }
2829
2832
  class Er extends _e {
2830
2833
  constructor() {
2831
2834
  super(...arguments);
2832
- E(this, "id", G.WHOLE);
2833
- E(this, "formulaInput", Ft);
2835
+ D(this, "id", G.WHOLE);
2836
+ D(this, "formulaInput", Ft);
2834
2837
  }
2835
2838
  }
2836
2839
  var br = Object.getOwnPropertyDescriptor, Or = (e, t, n, a) => {
@@ -2838,14 +2841,14 @@ var br = Object.getOwnPropertyDescriptor, Or = (e, t, n, a) => {
2838
2841
  (r = e[i]) && (o = r(o) || o);
2839
2842
  return o;
2840
2843
  }, Zt = (e, t) => (n, a) => t(n, a, e);
2841
- let nt = class extends ma {
2844
+ let nt = class extends pa {
2842
2845
  constructor(e, t, n) {
2843
2846
  super(), this._injector = e, this._componentManger = t, this._dataValidatorRegistryService = n, this._initComponents(), this._registerValidatorViews();
2844
2847
  }
2845
2848
  _initComponents() {
2846
2849
  [
2847
- [bn, In],
2848
- [bt, or],
2850
+ [bn, Rn],
2851
+ [Ot, or],
2849
2852
  [At.componentKey, At],
2850
2853
  [Lt.componentKey, Lt],
2851
2854
  ...mi
@@ -2873,9 +2876,9 @@ let nt = class extends ma {
2873
2876
  }
2874
2877
  };
2875
2878
  nt = Or([
2876
- Zt(0, M(we)),
2877
- Zt(1, M(_a)),
2878
- Zt(2, M(ye))
2879
+ Zt(0, y(we)),
2880
+ Zt(1, y(Sa)),
2881
+ Zt(2, y(ye))
2879
2882
  ], nt);
2880
2883
  var Tr = Object.getOwnPropertyDescriptor, Ar = (e, t, n, a) => {
2881
2884
  for (var o = a > 1 ? void 0 : a ? Tr(t, n) : t, i = e.length - 1, r; i >= 0; i--)
@@ -2884,15 +2887,15 @@ var Tr = Object.getOwnPropertyDescriptor, Ar = (e, t, n, a) => {
2884
2887
  }, qt = (e, t) => (n, a) => t(n, a, e);
2885
2888
  const Lr = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2886
2889
  var Vt;
2887
- let Wa = (Vt = class extends Ka {
2888
- constructor(e = Ot, t, n, a) {
2890
+ let ja = (Vt = class extends Za {
2891
+ constructor(e = bt, t, n, a) {
2889
2892
  super(), this._config = e, this._injector = t, this._commandService = n, this._configService = a;
2890
- const { menu: o, ...i } = Ga(
2893
+ const { menu: o, ...i } = qa(
2891
2894
  {},
2892
- Ot,
2895
+ bt,
2893
2896
  this._config
2894
2897
  );
2895
- o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(En, i);
2898
+ o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Va, i);
2896
2899
  }
2897
2900
  onStarting() {
2898
2901
  [
@@ -2910,10 +2913,10 @@ let Wa = (Vt = class extends Ka {
2910
2913
  }), [
2911
2914
  Ut,
2912
2915
  Nt,
2913
- Dn,
2914
- wa,
2916
+ En,
2917
+ ya,
2915
2918
  Be,
2916
- Mn
2919
+ Dn
2917
2920
  ].forEach((e) => {
2918
2921
  this._commandService.registerCommand(e);
2919
2922
  });
@@ -2930,12 +2933,12 @@ let Wa = (Vt = class extends Ka {
2930
2933
  onSteady() {
2931
2934
  this._injector.get(Qe);
2932
2935
  }
2933
- }, E(Vt, "pluginName", Lr), E(Vt, "type", x.UNIVER_SHEET), Vt);
2934
- Wa = Ar([
2935
- qt(1, M(we)),
2936
+ }, D(Vt, "pluginName", Lr), D(Vt, "type", x.UNIVER_SHEET), Vt);
2937
+ ja = Ar([
2938
+ qt(1, y(we)),
2936
2939
  qt(2, Q),
2937
- qt(3, Za)
2938
- ], Wa);
2940
+ qt(3, ma)
2941
+ ], ja);
2939
2942
  var Pr = Object.getOwnPropertyDescriptor, Fr = (e, t, n, a) => {
2940
2943
  for (var o = a > 1 ? void 0 : a ? Pr(t, n) : t, i = e.length - 1, r; i >= 0; i--)
2941
2944
  (r = e[i]) && (o = r(o) || o);
@@ -2943,15 +2946,15 @@ var Pr = Object.getOwnPropertyDescriptor, Fr = (e, t, n, a) => {
2943
2946
  }, Jt = (e, t) => (n, a) => t(n, a, e);
2944
2947
  const kr = "SHEET_DATA_VALIDATION_UI_PLUGIN";
2945
2948
  var yt;
2946
- let xa = (yt = class extends Ka {
2947
- constructor(e = Ot, t, n, a) {
2949
+ let Ya = (yt = class extends Za {
2950
+ constructor(e = bt, t, n, a) {
2948
2951
  super(), this._config = e, this._injector = t, this._commandService = n, this._configService = a;
2949
- const { menu: o, ...i } = Ga(
2952
+ const { menu: o, ...i } = qa(
2950
2953
  {},
2951
- Ot,
2954
+ bt,
2952
2955
  this._config
2953
2956
  );
2954
- o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(En, i);
2957
+ o && this._configService.setConfig("menu", o, { merge: !0 }), this._configService.setConfig(Va, i);
2955
2958
  }
2956
2959
  onStarting() {
2957
2960
  [
@@ -2968,10 +2971,10 @@ let xa = (yt = class extends Ka {
2968
2971
  }), [
2969
2972
  Ut,
2970
2973
  Nt,
2971
- Dn,
2972
- wa,
2974
+ En,
2975
+ ya,
2973
2976
  Be,
2974
- Mn
2977
+ Dn
2975
2978
  ].forEach((e) => {
2976
2979
  this._commandService.registerCommand(e);
2977
2980
  });
@@ -2988,14 +2991,14 @@ let xa = (yt = class extends Ka {
2988
2991
  onSteady() {
2989
2992
  this._injector.get(Qe);
2990
2993
  }
2991
- }, E(yt, "pluginName", kr), E(yt, "type", x.UNIVER_SHEET), yt);
2992
- xa = Fr([
2993
- Jt(1, M(we)),
2994
+ }, D(yt, "pluginName", kr), D(yt, "type", x.UNIVER_SHEET), yt);
2995
+ Ya = Fr([
2996
+ Jt(1, y(we)),
2994
2997
  Jt(2, Q),
2995
- Jt(3, Za)
2996
- ], xa);
2998
+ Jt(3, ma)
2999
+ ], Ya);
2997
3000
  export {
2998
3001
  _e as BaseSheetDataValidatorView,
2999
- xa as UniverSheetsDataValidationMobileUIPlugin,
3000
- Wa as UniverSheetsDataValidationUIPlugin
3002
+ Ya as UniverSheetsDataValidationMobileUIPlugin,
3003
+ ja as UniverSheetsDataValidationUIPlugin
3001
3004
  };