@univerjs/sheets-numfmt-ui 0.7.0 → 0.8.0-beta.0

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,24 +1,24 @@
1
1
  var mt = Object.defineProperty;
2
2
  var dt = (e, t, r) => t in e ? mt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var q = (e, t, r) => dt(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { Inject as S, LocaleService as M, IConfigService as Fe, Disposable as ie, isRealNum as ht, CommandType as Ae, ILocalStorageService as Le, numfmt as J, ThemeService as ft, IUniverInstanceService as ge, ICommandService as _e, UniverInstanceType as T, CellValueType as $, toDisposable as ve, DisposableCollection as vt, InterceptorEffectEnum as we, Range as He, Injector as je, Optional as pt, fromCallback as gt, DependentOn as _t, Plugin as St, merge as yt, registerDependencies as Ct, touchDependencies as bt } from "@univerjs/core";
4
+ import { Inject as S, LocaleService as M, IConfigService as Fe, Disposable as ie, isRealNum as ht, CommandType as Ae, ILocalStorageService as Le, numfmt as J, ThemeService as ft, IUniverInstanceService as ge, ICommandService as _e, UniverInstanceType as T, CellValueType as U, toDisposable as ve, DisposableCollection as vt, InterceptorEffectEnum as we, Range as He, Injector as je, Optional as pt, willLoseNumericPrecision as gt, fromCallback as _t, DependentOn as St, Plugin as yt, merge as Ct, registerDependencies as bt, touchDependencies as Nt } from "@univerjs/core";
5
5
  import { IRenderManagerService as Be } from "@univerjs/engine-render";
6
- import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as Nt, currencySymbols as Re, getDecimalFromPattern as ee, getCurrencyType as V, setPatternDecimal as w, getCurrencyFormatOptions as le, isPatternEqualWithoutDecimal as se, CURRENCYFORMAT as It, DATEFMTLISG as Et, NUMBERFORMAT as Tt, getDateFormatOptions as Ve, getNumberFormatOptions as We, isPatternHasDecimal as Mt, SheetsNumfmtCellContentController as Ge, getPatternPreviewIgnoreGeneral as xt, getPatternType as Se, SetNumfmtCommand as Ke, SetPercentCommand as Ze, SubtractDecimalCommand as Ye, AddDecimalCommand as ze, SetCurrencyCommand as Xe, MenuCurrencyService as Pt, countryCurrencyMap as k, getPatternPreview as wt, UniverSheetsNumfmtPlugin as Rt } from "@univerjs/sheets-numfmt";
7
- import { HoverManagerService as Ot, CellAlertManagerService as Ut, CellAlertType as kt, SheetSkeletonManagerService as Dt, IEditorBridgeService as $t, deriveStateFromActiveSheet$ as Ft, getCurrentRangeDisable$ as W, UniverSheetsUIPlugin as At } from "@univerjs/sheets-ui";
8
- import { isTextFormat as qe, isDefaultFormat as Lt, DEFAULT_TEXT_FORMAT_EXCEL as Ht } from "@univerjs/engine-numfmt";
9
- import { INumfmtService as ye, SheetInterceptorService as Je, SheetsSelectionsService as Ce, INTERCEPTOR_POINT as jt, RemoveNumfmtMutation as be, SetNumfmtMutation as Ne, BEFORE_CELL_EDIT as Bt, AFTER_CELL_EDIT as Vt, SetRangeValuesCommand as Wt, transformCellsToRange as Gt, factorySetNumfmtUndoMutation as Kt, factoryRemoveNumfmtUndoMutation as Zt, RangeProtectionPermissionEditPoint as G, WorksheetSetCellStylePermission as K, WorksheetEditPermission as Z, WorkbookEditablePermission as Y } from "@univerjs/sheets";
10
- import { IZenZoneService as Yt, useDependency as C, ComponentManager as Qe, ISidebarService as zt, getMenuHiddenObservable as z, MenuItemType as X, ILayoutService as Xt, RibbonStartGroup as qt, IMenuManagerService as Jt } from "@univerjs/ui";
11
- import { debounceTime as Qt, merge as et, Observable as L, combineLatest as en, filter as tn } from "rxjs";
12
- import { map as nn, switchMap as rn, tap as sn, debounceTime as on } from "rxjs/operators";
6
+ import { SHEETS_NUMFMT_PLUGIN_CONFIG_KEY as It, currencySymbols as Re, getDecimalFromPattern as ee, getCurrencyType as V, setPatternDecimal as w, getCurrencyFormatOptions as le, isPatternEqualWithoutDecimal as se, CURRENCYFORMAT as Et, DATEFMTLISG as Tt, NUMBERFORMAT as Mt, getDateFormatOptions as Ve, getNumberFormatOptions as We, isPatternHasDecimal as xt, SheetsNumfmtCellContentController as Ge, getPatternPreviewIgnoreGeneral as Pt, getPatternType as Se, SetNumfmtCommand as Ke, SetPercentCommand as Ze, SubtractDecimalCommand as Ye, AddDecimalCommand as ze, SetCurrencyCommand as Xe, MenuCurrencyService as wt, countryCurrencyMap as D, getPatternPreview as Rt, UniverSheetsNumfmtPlugin as Ot } from "@univerjs/sheets-numfmt";
7
+ import { HoverManagerService as Ut, CellAlertManagerService as kt, CellAlertType as Dt, SheetSkeletonManagerService as $t, IEditorBridgeService as Ft, deriveStateFromActiveSheet$ as At, getCurrentRangeDisable$ as W, UniverSheetsUIPlugin as Lt } from "@univerjs/sheets-ui";
8
+ import { isTextFormat as qe, isDefaultFormat as Ht, DEFAULT_TEXT_FORMAT_EXCEL as jt } from "@univerjs/engine-numfmt";
9
+ import { INumfmtService as ye, SheetInterceptorService as Je, SheetsSelectionsService as Ce, INTERCEPTOR_POINT as Bt, RemoveNumfmtMutation as be, SetNumfmtMutation as Ne, BEFORE_CELL_EDIT as Vt, AFTER_CELL_EDIT as Wt, SetRangeValuesCommand as Gt, transformCellsToRange as Kt, factorySetNumfmtUndoMutation as Zt, factoryRemoveNumfmtUndoMutation as Yt, RangeProtectionPermissionEditPoint as G, WorksheetSetCellStylePermission as K, WorksheetEditPermission as Z, WorkbookEditablePermission as Y } from "@univerjs/sheets";
10
+ import { IZenZoneService as zt, useDependency as C, ComponentManager as Qe, ISidebarService as Xt, getMenuHiddenObservable as z, MenuItemType as X, ILayoutService as qt, RibbonDataGroup as Jt, IMenuManagerService as Qt } from "@univerjs/ui";
11
+ import { debounceTime as en, merge as et, Observable as L, combineLatest as tn, filter as nn } from "rxjs";
12
+ import { map as rn, switchMap as sn, tap as on, debounceTime as cn } from "rxjs/operators";
13
13
  import { jsxs as y, jsx as m } from "react/jsx-runtime";
14
- import { createContext as an, useState as N, useEffect as oe, useRef as Ie, useContext as tt, useMemo as R, forwardRef as nt, createElement as Ee, useCallback as cn } from "react";
15
- import { InputNumber as Te, Select as Me, SelectList as xe, Input as ln, clsx as un, borderClassName as mn, Button as Oe, Separator as dn } from "@univerjs/design";
14
+ import { createContext as an, useState as N, useEffect as oe, useRef as Ie, useContext as tt, useMemo as R, forwardRef as nt, createElement as Ee, useCallback as ln } from "react";
15
+ import { InputNumber as Te, Select as Me, SelectList as xe, Input as un, clsx as mn, borderClassName as dn, Button as Oe, Separator as hn } from "@univerjs/design";
16
16
  const Ue = {};
17
- var hn = Object.getOwnPropertyDescriptor, fn = (e, t, r, n) => {
18
- for (var i = n > 1 ? void 0 : n ? hn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
17
+ var fn = Object.getOwnPropertyDescriptor, vn = (e, t, r, n) => {
18
+ for (var i = n > 1 ? void 0 : n ? fn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
19
19
  (o = e[s]) && (i = o(i) || i);
20
20
  return i;
21
- }, D = (e, t) => (r, n) => t(r, n, e);
21
+ }, $ = (e, t) => (r, n) => t(r, n, e);
22
22
  const ue = "SHEET_NUMFMT_ALERT";
23
23
  let pe = class extends ie {
24
24
  constructor(e, t, r, n, i, s, o) {
@@ -28,30 +28,30 @@ let pe = class extends ie {
28
28
  this._initCellAlertPopup(), this._initZenService();
29
29
  }
30
30
  _initCellAlertPopup() {
31
- this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(Qt(100)).subscribe((e) => {
31
+ this.disposeWithMe(this._hoverManagerService.currentCell$.pipe(en(100)).subscribe((e) => {
32
32
  var t, r;
33
33
  if (e) {
34
34
  const n = e.location, i = this._context.unit, s = i.getActiveSheet();
35
35
  if (!s) return;
36
- const o = n.unitId, a = n.subUnitId;
37
- let c;
36
+ const o = n.unitId, c = n.subUnitId;
37
+ let a;
38
38
  const u = s.getCell(n.row, n.col);
39
39
  if (u != null && u.s) {
40
40
  const d = i.getStyles().get(u.s);
41
- d != null && d.n && (c = d.n);
41
+ d != null && d.n && (a = d.n);
42
42
  }
43
- if (c || (c = this._numfmtService.getValue(o, a, n.row, n.col)), !c) {
43
+ if (a || (a = this._numfmtService.getValue(o, c, n.row, n.col)), !a) {
44
44
  this._hideAlert();
45
45
  return;
46
46
  }
47
- if (qe(c.pattern) && (u != null && u.v) && ht(u.v)) {
48
- if ((t = this._configService.getConfig(Nt)) != null && t.disableTextFormatAlert)
47
+ if (qe(a.pattern) && (u != null && u.v) && ht(u.v)) {
48
+ if ((t = this._configService.getConfig(It)) != null && t.disableTextFormatAlert)
49
49
  return;
50
50
  const d = this._cellAlertManagerService.currentAlert.get(ue), l = (r = d == null ? void 0 : d.alert) == null ? void 0 : r.location;
51
51
  if (l && l.row === n.row && l.col === n.col && l.subUnitId === n.subUnitId && l.unitId === n.unitId)
52
52
  return;
53
53
  this._cellAlertManagerService.showAlert({
54
- type: kt.WARNING,
54
+ type: Dt.WARNING,
55
55
  title: this._localeService.t("info.error"),
56
56
  message: this._localeService.t("info.forceStringInfo"),
57
57
  location: n,
@@ -74,13 +74,13 @@ let pe = class extends ie {
74
74
  this._cellAlertManagerService.removeAlert(ue);
75
75
  }
76
76
  };
77
- pe = fn([
78
- D(1, S(Ot)),
79
- D(2, S(Ut)),
80
- D(3, S(M)),
81
- D(4, Yt),
82
- D(5, S(ye)),
83
- D(6, Fe)
77
+ pe = vn([
78
+ $(1, S(Ut)),
79
+ $(2, S(kt)),
80
+ $(3, S(M)),
81
+ $(4, zt),
82
+ $(5, S(ye)),
83
+ $(6, Fe)
84
84
  ], pe);
85
85
  const me = {
86
86
  id: "sheet.operation.close.numfmt.panel",
@@ -94,11 +94,11 @@ const me = {
94
94
  type: Ae.OPERATION,
95
95
  handler: (e) => (e.get(B).openPanel(), !0)
96
96
  };
97
- var vn = Object.getOwnPropertyDescriptor, pn = (e, t, r, n) => {
98
- for (var i = n > 1 ? void 0 : n ? vn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
97
+ var pn = Object.getOwnPropertyDescriptor, gn = (e, t, r, n) => {
98
+ for (var i = n > 1 ? void 0 : n ? pn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
99
99
  (o = e[s]) && (i = o(i) || i);
100
100
  return i;
101
- }, gn = (e, t) => (r, n) => t(r, n, e);
101
+ }, _n = (e, t) => (r, n) => t(r, n, e);
102
102
  const Pe = an([]);
103
103
  let j = class {
104
104
  constructor(e) {
@@ -125,17 +125,17 @@ let j = class {
125
125
  async getHabit(e, t) {
126
126
  const r = this._getKey(e), n = await this._localStorageService.getItem(r);
127
127
  if (t && n) {
128
- const i = n.map((s, o, a) => {
129
- const c = a.length;
128
+ const i = n.map((s, o, c) => {
129
+ const a = c.length;
130
130
  return {
131
131
  value: s,
132
- priority: c - o
132
+ priority: a - o
133
133
  };
134
134
  });
135
135
  return t.sort((s, o) => {
136
136
  var u, d;
137
- const a = ((u = i.find((l) => l.value === s)) == null ? void 0 : u.priority) || -1;
138
- return (((d = i.find((l) => l.value === o)) == null ? void 0 : d.priority) || -1) - a;
137
+ const c = ((u = i.find((l) => l.value === s)) == null ? void 0 : u.priority) || -1;
138
+ return (((d = i.find((l) => l.value === o)) == null ? void 0 : d.priority) || -1) - c;
139
139
  });
140
140
  }
141
141
  return n || [];
@@ -144,10 +144,10 @@ let j = class {
144
144
  this._localStorageService.removeItem(e);
145
145
  }
146
146
  };
147
- j = pn([
148
- gn(0, S(Le))
147
+ j = gn([
148
+ _n(0, S(Le))
149
149
  ], j);
150
- const ke = "numfmtCurrency", _n = (e) => {
150
+ const ke = "numfmtCurrency", Sn = (e) => {
151
151
  const t = C(j), [r, n] = N(Re);
152
152
  return oe(() => {
153
153
  t.addHabit("numfmtCurrency", []).then(() => {
@@ -158,7 +158,7 @@ const ke = "numfmtCurrency", _n = (e) => {
158
158
  }, []), { userHabitCurrency: r, mark: (s) => {
159
159
  t.markHabit(ke, s);
160
160
  } };
161
- }, Sn = () => {
161
+ }, yn = () => {
162
162
  const e = Ie([]), [t, r] = N({});
163
163
  return oe(() => {
164
164
  e.current.forEach((i) => {
@@ -167,14 +167,14 @@ const ke = "numfmtCurrency", _n = (e) => {
167
167
  }, [t]), (i) => {
168
168
  e.current.push(i), r({});
169
169
  };
170
- }, yn = (e) => !!V(e) && e.startsWith("_("), Cn = (e) => {
171
- const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = N(() => ee(t || "", 2)), o = tt(Pe), [a, c] = N(() => V(t) || o[0]), u = R(() => o.map((p) => ({ label: p, value: p })), []), l = C(M).t;
172
- r.current = () => w(`_("${a}"* #,##0${i > 0 ? ".0" : ""}_)`, i);
170
+ }, Cn = (e) => !!V(e) && e.startsWith("_("), bn = (e) => {
171
+ const { defaultPattern: t, action: r, onChange: n } = e, [i, s] = N(() => ee(t || "", 2)), o = tt(Pe), [c, a] = N(() => V(t) || o[0]), u = R(() => o.map((p) => ({ label: p, value: p })), []), l = C(M).t;
172
+ r.current = () => w(`_("${c}"* #,##0${i > 0 ? ".0" : ""}_)`, i);
173
173
  const h = (p) => {
174
- c(p), n(w(`_("${p}"* #,##0${i > 0 ? ".0" : ""}_)`, i));
174
+ a(p), n(w(`_("${p}"* #,##0${i > 0 ? ".0" : ""}_)`, i));
175
175
  }, f = (p) => {
176
176
  const v = p || 0;
177
- s(v), n(w(`_("${a}"* #,##0${v > 0 ? ".0" : ""}_)`, v));
177
+ s(v), n(w(`_("${c}"* #,##0${v > 0 ? ".0" : ""}_)`, v));
178
178
  };
179
179
  return /* @__PURE__ */ y("div", { children: [
180
180
  /* @__PURE__ */ y("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
@@ -198,7 +198,7 @@ const ke = "numfmtCurrency", _n = (e) => {
198
198
  Me,
199
199
  {
200
200
  options: u,
201
- value: a,
201
+ value: c,
202
202
  onChange: h
203
203
  }
204
204
  ) })
@@ -206,13 +206,13 @@ const ke = "numfmtCurrency", _n = (e) => {
206
206
  ] }),
207
207
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: l("sheet.numfmt.accountingDes") })
208
208
  ] });
209
- }, bn = (e) => !!V(e) && !e.startsWith("_("), Nn = (e) => {
210
- const r = C(M).t, n = tt(Pe), [i, s] = N(() => V(e.defaultPattern) || n[0]), [o, a] = N(() => ee(e.defaultPattern || "", 2)), [c, u] = N(() => {
209
+ }, Nn = (e) => !!V(e) && !e.startsWith("_("), In = (e) => {
210
+ const r = C(M).t, n = tt(Pe), [i, s] = N(() => V(e.defaultPattern) || n[0]), [o, c] = N(() => ee(e.defaultPattern || "", 2)), [a, u] = N(() => {
211
211
  var g;
212
212
  const v = le(i);
213
213
  return ((g = v.find((I) => se(I.value, e.defaultPattern))) == null ? void 0 : g.value) || v[0].value;
214
214
  }), d = R(() => le(i), [i]), l = R(() => n.map((v) => ({ label: v, value: v })), [n]);
215
- e.action.current = () => w(c, o);
215
+ e.action.current = () => w(a, o);
216
216
  const h = (v) => {
217
217
  if (v === void 0)
218
218
  return;
@@ -222,7 +222,7 @@ const ke = "numfmtCurrency", _n = (e) => {
222
222
  }, f = (v) => {
223
223
  v !== void 0 && (u(v), e.onChange(w(v, o)));
224
224
  }, p = (v) => {
225
- a(v || 0), e.onChange(w(c, v || 0));
225
+ c(v || 0), e.onChange(w(a, v || 0));
226
226
  };
227
227
  return /* @__PURE__ */ y("div", { children: [
228
228
  /* @__PURE__ */ y("div", { className: "univer-mt-4 univer-flex univer-justify-between", children: [
@@ -251,7 +251,7 @@ const ke = "numfmtCurrency", _n = (e) => {
251
251
  ] })
252
252
  ] }),
253
253
  /* @__PURE__ */ m("div", { className: "univer-mt-4 label", children: r("sheet.numfmt.negType") }),
254
- /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(xe, { value: c, options: d, onChange: f }) }),
254
+ /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(xe, { value: a, options: d, onChange: f }) }),
255
255
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: r("sheet.numfmt.currencyDes") })
256
256
  ] });
257
257
  };
@@ -263,7 +263,7 @@ var E = function() {
263
263
  }
264
264
  return e;
265
265
  }, E.apply(this, arguments);
266
- }, In = function(e, t) {
266
+ }, En = function(e, t) {
267
267
  var r = {};
268
268
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
269
269
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -271,58 +271,58 @@ var E = function() {
271
271
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
272
272
  return r;
273
273
  }, rt = nt(function(e, t) {
274
- var r = e.icon, n = e.id, i = e.className, s = e.extend, o = In(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), c = Ie("_".concat(Mn()));
275
- return it(r, "".concat(n), { defIds: r.defIds, idSuffix: c.current }, E({ ref: t, className: a }, o), s);
274
+ var r = e.icon, n = e.id, i = e.className, s = e.extend, o = En(e, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(n, " ").concat(i || "").trim(), a = Ie("_".concat(xn()));
275
+ return it(r, "".concat(n), { defIds: r.defIds, idSuffix: a.current }, E({ ref: t, className: c }, o), s);
276
276
  });
277
277
  function it(e, t, r, n, i) {
278
- return Ee(e.tag, E(E({ key: t }, En(e, r, i)), n), (Tn(e, r).children || []).map(function(s, o) {
278
+ return Ee(e.tag, E(E({ key: t }, Tn(e, r, i)), n), (Mn(e, r).children || []).map(function(s, o) {
279
279
  return it(s, "".concat(t, "-").concat(e.tag, "-").concat(o), r, void 0, i);
280
280
  }));
281
281
  }
282
- function En(e, t, r) {
282
+ function Tn(e, t, r) {
283
283
  var n = E({}, e.attrs);
284
284
  r != null && r.colorChannel1 && n.fill === "colorChannel1" && (n.fill = r.colorChannel1), e.tag === "mask" && n.id && (n.id = n.id + t.idSuffix), Object.entries(n).forEach(function(s) {
285
- var o = s[0], a = s[1];
286
- o === "mask" && typeof a == "string" && (n[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
285
+ var o = s[0], c = s[1];
286
+ o === "mask" && typeof c == "string" && (n[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
287
287
  });
288
288
  var i = t.defIds;
289
289
  return !i || i.length === 0 || (e.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + t.idSuffix), Object.entries(n).forEach(function(s) {
290
- var o = s[0], a = s[1];
291
- typeof a == "string" && (n[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
290
+ var o = s[0], c = s[1];
291
+ typeof c == "string" && (n[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
292
292
  })), n;
293
293
  }
294
- function Tn(e, t) {
294
+ function Mn(e, t) {
295
295
  var r, n = t.defIds;
296
296
  return !n || n.length === 0 ? e : e.tag === "defs" && (!((r = e.children) === null || r === void 0) && r.length) ? E(E({}, e), { children: e.children.map(function(i) {
297
297
  return typeof i.attrs.id == "string" && n && n.indexOf(i.attrs.id) > -1 ? E(E({}, i), { attrs: E(E({}, i.attrs), { id: i.attrs.id + t.idSuffix }) }) : i;
298
298
  }) }) : e;
299
299
  }
300
- function Mn() {
300
+ function xn() {
301
301
  return Math.random().toString(36).substring(2, 8);
302
302
  }
303
303
  rt.displayName = "UniverIcon";
304
- var xn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, st = nt(function(e, t) {
304
+ var Pn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, st = nt(function(e, t) {
305
305
  return Ee(rt, Object.assign({}, e, {
306
306
  id: "check-mark-single",
307
307
  ref: t,
308
- icon: xn
308
+ icon: Pn
309
309
  }));
310
310
  });
311
311
  st.displayName = "CheckMarkSingle";
312
312
  const de = "customFormat", he = "numfmt_custom_pattern";
313
- function Pn(e) {
314
- const { defaultPattern: t, action: r, onChange: n } = e, i = C(j), s = C(Le), o = C(M), [a, c] = N(t);
315
- r.current = () => (i.markHabit(de, a), s.getItem(he).then((f = []) => {
316
- const p = [.../* @__PURE__ */ new Set([a, ...f || []])].splice(0, 10).filter((v) => !!v);
313
+ function wn(e) {
314
+ const { defaultPattern: t, action: r, onChange: n } = e, i = C(j), s = C(Le), o = C(M), [c, a] = N(t);
315
+ r.current = () => (i.markHabit(de, c), s.getItem(he).then((f = []) => {
316
+ const p = [.../* @__PURE__ */ new Set([c, ...f || []])].splice(0, 10).filter((v) => !!v);
317
317
  s.setItem(he, p);
318
- }), a);
318
+ }), c);
319
319
  const [u, d] = N([]);
320
320
  oe(() => {
321
321
  s.getItem(he).then((f) => {
322
322
  const p = [
323
- ...It.map((v) => v.suffix("$")),
324
- ...Et.map((v) => v.suffix),
325
- ...Tt.map((v) => v.suffix)
323
+ ...Et.map((v) => v.suffix("$")),
324
+ ...Tt.map((v) => v.suffix),
325
+ ...Mt.map((v) => v.suffix)
326
326
  ];
327
327
  p.push(...f || []), i.addHabit(de, []).finally(() => {
328
328
  i.getHabit(de, p).then((v) => {
@@ -332,33 +332,33 @@ function Pn(e) {
332
332
  });
333
333
  }, []);
334
334
  const l = (f) => {
335
- c(f), n(f);
335
+ a(f), n(f);
336
336
  }, h = () => {
337
- n(a);
337
+ n(c);
338
338
  };
339
339
  return /* @__PURE__ */ y("div", { children: [
340
340
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: o.t("sheet.numfmt.customFormat") }),
341
341
  /* @__PURE__ */ m(
342
- ln,
342
+ un,
343
343
  {
344
344
  placeholder: o.t("sheet.numfmt.customFormat"),
345
345
  onBlur: h,
346
- value: a,
347
- onChange: c,
346
+ value: c,
347
+ onChange: a,
348
348
  className: "univer-mt-2 univer-w-full"
349
349
  }
350
350
  ),
351
351
  /* @__PURE__ */ m(
352
352
  "div",
353
353
  {
354
- className: un("univer-mt-2 univer-max-h-[400px] univer-overflow-auto univer-rounded-lg univer-p-2", mn),
354
+ className: mn("univer-mt-2 univer-max-h-[400px] univer-overflow-auto univer-rounded-lg univer-p-2", dn),
355
355
  children: u.map((f) => /* @__PURE__ */ y(
356
356
  "div",
357
357
  {
358
358
  onClick: () => l(f),
359
359
  className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1.5 univer-py-1.5 univer-text-sm",
360
360
  children: [
361
- /* @__PURE__ */ m("div", { className: "univer-flex univer-w-4 univer-items-center univer-text-primary-600", children: a === f && /* @__PURE__ */ m(st, {}) }),
361
+ /* @__PURE__ */ m("div", { className: "univer-flex univer-w-4 univer-items-center univer-text-primary-600", children: c === f && /* @__PURE__ */ m(st, {}) }),
362
362
  /* @__PURE__ */ m("div", { children: f })
363
363
  ]
364
364
  },
@@ -369,27 +369,27 @@ function Pn(e) {
369
369
  /* @__PURE__ */ m(
370
370
  "div",
371
371
  {
372
- className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:univer-text-gray-200",
372
+ className: "univer-mt-3 univer-text-sm univer-text-gray-600 dark:!univer-text-gray-200",
373
373
  children: o.t("sheet.numfmt.customFormatDes")
374
374
  }
375
375
  )
376
376
  ] });
377
377
  }
378
- const wn = (e) => {
378
+ const Rn = (e) => {
379
379
  const t = J.getInfo(e);
380
380
  return Ve().map((r) => r.value).includes(e) || ["date", "datetime", "time"].includes(t.type);
381
- }, Rn = (e) => {
381
+ }, On = (e) => {
382
382
  const t = R(Ve, []), n = C(M).t, [i, s] = N(() => {
383
383
  if (e.defaultPattern) {
384
- const a = t.find((c) => c.value === e.defaultPattern);
385
- if (a)
386
- return a.value;
384
+ const c = t.find((a) => a.value === e.defaultPattern);
385
+ if (c)
386
+ return c.value;
387
387
  }
388
388
  return t[0].value;
389
389
  });
390
390
  e.action.current = () => i;
391
- const o = (a) => {
392
- a !== void 0 && (s(a), e.onChange(a));
391
+ const o = (c) => {
392
+ c !== void 0 && (s(c), e.onChange(c));
393
393
  };
394
394
  return /* @__PURE__ */ y("div", { children: [
395
395
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: n("sheet.numfmt.dateType") }),
@@ -397,35 +397,35 @@ const wn = (e) => {
397
397
  /* @__PURE__ */ m(
398
398
  "div",
399
399
  {
400
- className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:univer-text-gray-200",
400
+ className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
401
401
  children: n("sheet.numfmt.dateDes")
402
402
  }
403
403
  )
404
404
  ] });
405
- }, On = (e) => !e, Un = (e) => {
405
+ }, Un = (e) => !e, kn = (e) => {
406
406
  const r = C(M).t;
407
407
  return e.action.current = () => "", /* @__PURE__ */ m("div", { children: /* @__PURE__ */ m(
408
408
  "div",
409
409
  {
410
- className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:univer-text-gray-200",
410
+ className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
411
411
  children: r("sheet.numfmt.generalDes")
412
412
  }
413
413
  ) });
414
- }, kn = (e) => We().some((t) => se(t.value, e)), Dn = (e) => {
414
+ }, Dn = (e) => We().some((t) => se(t.value, e)), $n = (e) => {
415
415
  const t = C(M), r = R(We, []), [n, i] = N(() => ee(e.defaultPattern || "", 0)), [s, o] = N(() => {
416
416
  const l = r.find((h) => se(h.value, e.defaultPattern || ""));
417
417
  return (l == null ? void 0 : l.value) || r[0].value;
418
- }), a = R(() => w(s, Number(n || 0)), [s, n]), c = R(() => !Mt(s), [s]), u = (l) => {
418
+ }), c = R(() => w(s, Number(n || 0)), [s, n]), a = R(() => !xt(s), [s]), u = (l) => {
419
419
  i(l || 0), e.onChange(w(s, Number(l || 0)));
420
420
  }, d = (l) => {
421
421
  l !== void 0 && (i(ee(l, 0)), o(l), e.onChange(l));
422
422
  };
423
- return e.action.current = () => a, /* @__PURE__ */ y("div", { children: [
423
+ return e.action.current = () => c, /* @__PURE__ */ y("div", { children: [
424
424
  /* @__PURE__ */ m("div", { className: "univer-mt-4 univer-text-sm univer-text-gray-400", children: t.t("sheet.numfmt.decimalLength") }),
425
425
  /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(
426
426
  Te,
427
427
  {
428
- disabled: c,
428
+ disabled: a,
429
429
  value: n,
430
430
  max: 20,
431
431
  min: 0,
@@ -440,42 +440,42 @@ const wn = (e) => {
440
440
  /* @__PURE__ */ m(
441
441
  "div",
442
442
  {
443
- className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:univer-text-gray-200",
443
+ className: "univer-mt-3.5 univer-text-sm/5 univer-text-gray-600 dark:!univer-text-gray-200",
444
444
  children: t.t("sheet.numfmt.thousandthPercentileDes")
445
445
  }
446
446
  )
447
447
  ] });
448
- }, $n = (e) => {
449
- const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = C(M), o = Ie(() => ""), a = s.t, c = Sn(), u = R(
448
+ }, Fn = (e) => {
449
+ const { defaultValue: t, defaultPattern: r, row: n, col: i } = e.value, s = C(M), o = Ie(() => ""), c = s.t, a = yn(), u = R(
450
450
  () => [
451
- { label: "sheet.numfmt.general", component: Un },
452
- { label: "sheet.numfmt.accounting", component: Cn },
453
- { label: "sheet.numfmt.currency", component: Nn },
454
- { label: "sheet.numfmt.date", component: Rn },
455
- { label: "sheet.numfmt.thousandthPercentile", component: Dn },
456
- { label: "sheet.numfmt.customFormat", component: Pn }
457
- ].map((_) => ({ ..._, label: a(_.label) })),
451
+ { label: "sheet.numfmt.general", component: kn },
452
+ { label: "sheet.numfmt.accounting", component: bn },
453
+ { label: "sheet.numfmt.currency", component: In },
454
+ { label: "sheet.numfmt.date", component: On },
455
+ { label: "sheet.numfmt.thousandthPercentile", component: $n },
456
+ { label: "sheet.numfmt.customFormat", component: wn }
457
+ ].map((_) => ({ ..._, label: c(_.label) })),
458
458
  []
459
- ), [d, l] = N(g), [h, f] = N(() => `${n}_${i}`), { mark: p, userHabitCurrency: v } = _n(() => f(`${n}_${i}_userCurrency'`)), b = R(() => {
459
+ ), [d, l] = N(g), [h, f] = N(() => `${n}_${i}`), { mark: p, userHabitCurrency: v } = Sn(() => f(`${n}_${i}_userCurrency'`)), b = R(() => {
460
460
  var _;
461
- return (_ = u.find((U) => U.label === d)) == null ? void 0 : _.component;
461
+ return (_ = u.find((k) => k.label === d)) == null ? void 0 : _.component;
462
462
  }, [d]);
463
463
  function g() {
464
- return [On, yn, bn, wn, kn].reduce((U, lt, ut) => U || (lt(r) ? u[ut].label : ""), "") || u[0].label;
464
+ return [Un, Cn, Nn, Rn, Dn].reduce((k, lt, ut) => k || (lt(r) ? u[ut].label : ""), "") || u[0].label;
465
465
  }
466
466
  const I = u.map((_) => ({
467
467
  label: _.label,
468
468
  value: _.label
469
469
  })), O = (_) => {
470
- l(_), c(() => e.onChange({ type: "change", value: o.current() || "" }));
471
- }, P = cn((_) => {
470
+ l(_), a(() => e.onChange({ type: "change", value: o.current() || "" }));
471
+ }, P = ln((_) => {
472
472
  e.onChange({ type: "change", value: _ });
473
- }, []), ae = () => {
474
- const _ = o.current() || "", U = V(_);
475
- U && p(U), e.onChange({ type: "confirm", value: _ });
473
+ }, []), ce = () => {
474
+ const _ = o.current() || "", k = V(_);
475
+ k && p(k), e.onChange({ type: "confirm", value: _ });
476
476
  }, F = () => {
477
477
  e.onChange({ type: "cancel", value: "" });
478
- }, ce = {
478
+ }, ae = {
479
479
  onChange: P,
480
480
  defaultValue: t,
481
481
  defaultPattern: r,
@@ -489,26 +489,26 @@ const wn = (e) => {
489
489
  className: "univer-flex univer-h-full univer-flex-col univer-justify-between univer-overflow-y-auto univer-pb-5",
490
490
  children: [
491
491
  /* @__PURE__ */ y("div", { children: [
492
- /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-sm univer-text-gray-400", children: a("sheet.numfmt.numfmtType") }),
492
+ /* @__PURE__ */ m("div", { className: "univer-mt-3.5 univer-text-sm univer-text-gray-400", children: c("sheet.numfmt.numfmtType") }),
493
493
  /* @__PURE__ */ m("div", { className: "univer-mt-2", children: /* @__PURE__ */ m(Me, { className: "univer-w-full", value: d, options: I, onChange: O }) }),
494
- /* @__PURE__ */ m("div", { children: b && /* @__PURE__ */ m(Pe.Provider, { value: v, children: /* @__PURE__ */ Ee(b, { ...ce, key: h }) }) })
494
+ /* @__PURE__ */ m("div", { children: b && /* @__PURE__ */ m(Pe.Provider, { value: v, children: /* @__PURE__ */ Ee(b, { ...ae, key: h }) }) })
495
495
  ] }),
496
496
  /* @__PURE__ */ y("div", { className: "univer-mb-5 univer-mt-3.5 univer-flex univer-justify-end", children: [
497
- /* @__PURE__ */ m(Oe, { onClick: F, className: "univer-mr-3", children: a("sheet.numfmt.cancel") }),
498
- /* @__PURE__ */ m(Oe, { variant: "primary", onClick: ae, children: a("sheet.numfmt.confirm") })
497
+ /* @__PURE__ */ m(Oe, { onClick: F, className: "univer-mr-3", children: c("sheet.numfmt.cancel") }),
498
+ /* @__PURE__ */ m(Oe, { variant: "primary", onClick: ce, children: c("sheet.numfmt.confirm") })
499
499
  ] })
500
500
  ]
501
501
  }
502
502
  );
503
503
  };
504
- var Fn = Object.getOwnPropertyDescriptor, An = (e, t, r, n) => {
505
- for (var i = n > 1 ? void 0 : n ? Fn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
504
+ var An = Object.getOwnPropertyDescriptor, Ln = (e, t, r, n) => {
505
+ for (var i = n > 1 ? void 0 : n ? An(t, r) : t, s = e.length - 1, o; s >= 0; s--)
506
506
  (o = e[s]) && (i = o(i) || i);
507
507
  return i;
508
508
  }, x = (e, t) => (r, n) => t(r, n, e);
509
509
  const De = "SHEET_NUMFMT_PANEL";
510
510
  let B = class extends ie {
511
- constructor(t, r, n, i, s, o, a, c, u, d, l) {
511
+ constructor(t, r, n, i, s, o, c, a, u, d, l) {
512
512
  super();
513
513
  /**
514
514
  * If _previewPattern is null ,the realTimeRenderingInterceptor will skip and if it is '',realTimeRenderingInterceptor will clear numfmt.
@@ -518,7 +518,7 @@ let B = class extends ie {
518
518
  */
519
519
  q(this, "_previewPattern", "");
520
520
  q(this, "_sidebarDisposable", null);
521
- this._sheetInterceptorService = t, this._themeService = r, this._univerInstanceService = n, this._commandService = i, this._selectionManagerService = s, this._renderManagerService = o, this._numfmtService = a, this._componentManager = c, this._sidebarService = u, this._localeService = d, this._sheetsNumfmtCellContentController = l, this._initRealTimeRenderingInterceptor(), this._initPanel(), this._initCommands(), this._initCloseListener(), this._commandExecutedListener(), this._initNumfmtLocalChange();
521
+ this._sheetInterceptorService = t, this._themeService = r, this._univerInstanceService = n, this._commandService = i, this._selectionManagerService = s, this._renderManagerService = o, this._numfmtService = c, this._componentManager = a, this._sidebarService = u, this._localeService = d, this._sheetsNumfmtCellContentController = l, this._initRealTimeRenderingInterceptor(), this._initPanel(), this._initCommands(), this._initCloseListener(), this._commandExecutedListener(), this._initNumfmtLocalChange();
522
522
  }
523
523
  _initNumfmtLocalChange() {
524
524
  this.disposeWithMe(et(this._sheetsNumfmtCellContentController.local$, this._localeService.currentLocale$).subscribe(() => {
@@ -527,40 +527,40 @@ let B = class extends ie {
527
527
  }
528
528
  openPanel() {
529
529
  var b;
530
- const t = this._sidebarService, r = this._selectionManagerService, n = this._commandService, i = this._univerInstanceService, s = this._numfmtService, o = this._localeService, c = (((b = r.getCurrentSelections()) == null ? void 0 : b.map((g) => g.range)) || [])[0];
531
- if (!c)
530
+ const t = this._sidebarService, r = this._selectionManagerService, n = this._commandService, i = this._univerInstanceService, s = this._numfmtService, o = this._localeService, a = (((b = r.getCurrentSelections()) == null ? void 0 : b.map((g) => g.range)) || [])[0];
531
+ if (!a)
532
532
  return !1;
533
533
  const u = i.getCurrentUnitForType(T.UNIVER_SHEET), d = u.getActiveSheet();
534
534
  if (!d)
535
535
  return !1;
536
- const l = d.getCellRaw(c.startRow, c.startColumn), h = s.getValue(
536
+ const l = d.getCellRaw(a.startRow, a.startColumn), h = s.getValue(
537
537
  u.getUnitId(),
538
538
  d.getSheetId(),
539
- c.startRow,
540
- c.startColumn
539
+ a.startRow,
540
+ a.startColumn
541
541
  );
542
542
  let f = "";
543
543
  h && (f = h.pattern);
544
- const p = (l == null ? void 0 : l.t) === $.NUMBER ? l.v : 12345678, v = {
544
+ const p = (l == null ? void 0 : l.t) === U.NUMBER ? l.v : 12345678, v = {
545
545
  onChange: (g) => {
546
546
  var I;
547
547
  if (g.type === "change")
548
548
  this._previewPattern = g.value, this._forceUpdate();
549
549
  else if (g.type === "confirm") {
550
- const O = ((I = r.getCurrentSelections()) == null ? void 0 : I.map((F) => F.range)) || [], P = { values: [] }, ae = Se(g.value);
550
+ const O = ((I = r.getCurrentSelections()) == null ? void 0 : I.map((F) => F.range)) || [], P = { values: [] }, ce = Se(g.value);
551
551
  O.forEach((F) => {
552
- He.foreach(F, (ce, _) => {
552
+ He.foreach(F, (ae, _) => {
553
553
  P.values.push({
554
- row: ce,
554
+ row: ae,
555
555
  col: _,
556
556
  pattern: g.value,
557
- type: ae
557
+ type: ce
558
558
  });
559
559
  });
560
560
  }), n.executeCommand(Ke.id, P), t.close();
561
561
  } else g.type === "cancel" && t.close();
562
562
  },
563
- value: { defaultPattern: f, defaultValue: p, row: c.startRow, col: c.startColumn }
563
+ value: { defaultPattern: f, defaultValue: p, row: a.startRow, col: a.startColumn }
564
564
  };
565
565
  return this._sidebarDisposable = t.open({
566
566
  header: { title: o.t("sheet.numfmt.title") },
@@ -579,7 +579,7 @@ let B = class extends ie {
579
579
  const r = this._renderManagerService.getRenderById(
580
580
  t != null ? t : this._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET).getUnitId()
581
581
  );
582
- r == null || r.with(Dt).reCalculate(), (n = r == null ? void 0 : r.mainComponent) == null || n.makeDirty();
582
+ r == null || r.with($t).reCalculate(), (n = r == null ? void 0 : r.mainComponent) == null || n.makeDirty();
583
583
  }
584
584
  _initCommands() {
585
585
  [
@@ -590,7 +590,9 @@ let B = class extends ie {
590
590
  });
591
591
  }
592
592
  _initPanel() {
593
- this._componentManager.register(De, $n);
593
+ this.disposeWithMe(
594
+ this._componentManager.register(De, Fn)
595
+ );
594
596
  }
595
597
  // eslint-disable-next-line max-lines-per-function
596
598
  _initRealTimeRenderingInterceptor() {
@@ -598,16 +600,16 @@ let B = class extends ie {
598
600
  this._commandService.onCommandExecuted((i) => {
599
601
  i.id === H.id && n.next(!0), i.id === me.id && n.next(!1);
600
602
  });
601
- }), r = en([
603
+ }), r = tn([
602
604
  t,
603
605
  this._selectionManagerService.selectionMoveEnd$.pipe(
604
- nn((n) => n ? n.map((i) => i.range) : [])
606
+ rn((n) => n ? n.map((i) => i.range) : [])
605
607
  )
606
608
  ]);
607
609
  this.disposeWithMe(
608
610
  ve(
609
611
  r.pipe(
610
- rn(
612
+ sn(
611
613
  ([n, i]) => new L((s) => {
612
614
  const o = new vt();
613
615
  return n && i.length && s.next({ selectionRanges: i, disposableCollection: o }), () => {
@@ -615,44 +617,44 @@ let B = class extends ie {
615
617
  };
616
618
  })
617
619
  ),
618
- sn(() => {
620
+ on(() => {
619
621
  this._previewPattern = null;
620
622
  })
621
623
  ).subscribe(({ disposableCollection: n, selectionRanges: i }) => {
622
- var o, a;
624
+ var o, c;
623
625
  const s = this._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET);
624
626
  this.openPanel(), n.add(
625
- this._sheetInterceptorService.intercept(jt.CELL_CONTENT, {
627
+ this._sheetInterceptorService.intercept(Bt.CELL_CONTENT, {
626
628
  priority: 99,
627
629
  effect: we.Value | we.Style,
628
- handler: (c, u, d) => {
629
- const { row: l, col: h } = u, f = d(c) || {};
630
+ handler: (a, u, d) => {
631
+ const { row: l, col: h } = u, f = d(a) || {};
630
632
  if (i.find(
631
633
  (p) => p.startColumn <= h && p.endColumn >= h && p.startRow <= l && p.endRow >= l
632
634
  )) {
633
635
  const p = u.worksheet.getCellRaw(l, h), v = p == null ? void 0 : p.v, b = p == null ? void 0 : p.t;
634
- if (v == null || b !== $.NUMBER || this._previewPattern === null)
636
+ if (v == null || b !== U.NUMBER || this._previewPattern === null)
635
637
  return f;
636
- const g = xt(this._previewPattern, v, this._sheetsNumfmtCellContentController.local);
638
+ const g = Pt(this._previewPattern, v, this._sheetsNumfmtCellContentController.local);
637
639
  if (g.color) {
638
640
  const I = this._themeService.getColorFromTheme(`${g.color}.500`);
639
641
  return {
640
642
  ...f,
641
643
  v: g.result,
642
- t: $.STRING,
644
+ t: U.STRING,
643
645
  s: { cl: { rgb: I } }
644
646
  };
645
647
  }
646
648
  return {
647
649
  ...f,
648
650
  v: g.result,
649
- t: $.STRING
651
+ t: U.STRING
650
652
  };
651
653
  }
652
654
  return f;
653
655
  }
654
656
  })
655
- ), (a = (o = this._renderManagerService.getRenderById(s.getUnitId())) == null ? void 0 : o.mainComponent) == null || a.makeDirty();
657
+ ), (c = (o = this._renderManagerService.getRenderById(s.getUnitId())) == null ? void 0 : o.mainComponent) == null || c.makeDirty();
656
658
  })
657
659
  )
658
660
  );
@@ -668,7 +670,7 @@ let B = class extends ie {
668
670
  }
669
671
  });
670
672
  return () => n.dispose();
671
- }).pipe(on(16)).subscribe((r) => this._forceUpdate(r))
673
+ }).pipe(cn(16)).subscribe((r) => this._forceUpdate(r))
672
674
  );
673
675
  }
674
676
  _initCloseListener() {
@@ -678,7 +680,7 @@ let B = class extends ie {
678
680
  });
679
681
  }
680
682
  };
681
- B = An([
683
+ B = Ln([
682
684
  x(0, S(Je)),
683
685
  x(1, S(ft)),
684
686
  x(2, ge),
@@ -687,19 +689,19 @@ B = An([
687
689
  x(5, Be),
688
690
  x(6, ye),
689
691
  x(7, S(Qe)),
690
- x(8, zt),
692
+ x(8, Xt),
691
693
  x(9, S(M)),
692
694
  x(10, S(Ge))
693
695
  ], B);
694
- var Ln = Object.getOwnPropertyDescriptor, Hn = (e, t, r, n) => {
695
- for (var i = n > 1 ? void 0 : n ? Ln(t, r) : t, s = e.length - 1, o; s >= 0; s--)
696
+ var Hn = Object.getOwnPropertyDescriptor, jn = (e, t, r, n) => {
697
+ for (var i = n > 1 ? void 0 : n ? Hn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
696
698
  (o = e[s]) && (i = o(i) || i);
697
699
  return i;
698
700
  }, A = (e, t) => (r, n) => t(r, n, e);
699
- const jn = () => {
701
+ const Bn = () => {
700
702
  let e = [];
701
703
  return {
702
- add: (i, s, o, a, c) => e.push({ unitId: i, subUnitId: s, row: o, col: a, value: c }),
704
+ add: (i, s, o, c, a) => e.push({ unitId: i, subUnitId: s, row: o, col: c, value: a }),
703
705
  getEffects: () => e,
704
706
  clean: () => {
705
707
  e = [];
@@ -710,13 +712,13 @@ let te = class extends ie {
710
712
  constructor(t, r, n, i, s) {
711
713
  super();
712
714
  // collect effect mutations when edit end and push this to commands stack in next commands progress
713
- q(this, "_collectEffectMutation", jn());
715
+ q(this, "_collectEffectMutation", Bn());
714
716
  this._sheetInterceptorService = t, this._numfmtService = r, this._univerInstanceService = n, this._injector = i, this._editorBridgeService = s, this._initInterceptorEditorStart(), this._initInterceptorEditorEnd(), this._initInterceptorCommands();
715
717
  }
716
718
  _initInterceptorEditorStart() {
717
719
  this._editorBridgeService && this.disposeWithMe(
718
720
  ve(
719
- this._sheetInterceptorService.writeCellInterceptor.intercept(Bt, {
721
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Vt, {
720
722
  handler: (t, r, n) => {
721
723
  const i = r.row, s = r.col, o = this._numfmtService.getValue(
722
724
  r.unitId,
@@ -730,8 +732,8 @@ let te = class extends ie {
730
732
  case "currency":
731
733
  case "grouped":
732
734
  case "number": {
733
- const c = r.worksheet.getCellRaw(i, s);
734
- return n && n(c);
735
+ const a = r.worksheet.getCellRaw(i, s);
736
+ return n && n(a);
735
737
  }
736
738
  case "percent":
737
739
  case "date":
@@ -751,13 +753,14 @@ let te = class extends ie {
751
753
  * @private
752
754
  * @memberof NumfmtService
753
755
  */
756
+ // eslint-disable-next-line max-lines-per-function
754
757
  _initInterceptorEditorEnd() {
755
758
  this.disposeWithMe(
756
759
  ve(
757
- this._sheetInterceptorService.writeCellInterceptor.intercept(Vt, {
760
+ this._sheetInterceptorService.writeCellInterceptor.intercept(Wt, {
758
761
  // eslint-disable-next-line complexity
759
762
  handler: (t, r, n) => {
760
- var c, u, d;
763
+ var a, u, d;
761
764
  this._collectEffectMutation.clean();
762
765
  const i = this._numfmtService.getValue(
763
766
  r.unitId,
@@ -765,28 +768,35 @@ let te = class extends ie {
765
768
  r.row,
766
769
  r.col
767
770
  );
768
- if (!(t != null && t.v) && !(t != null && t.p) || qe(i == null ? void 0 : i.pattern) || t.t === $.FORCE_STRING)
771
+ if (!(t != null && t.v) && !(t != null && t.p) || qe(i == null ? void 0 : i.pattern) || t.t === U.FORCE_STRING)
769
772
  return n(t);
770
- const s = (c = t.p) == null ? void 0 : c.body, o = (d = (u = t == null ? void 0 : t.p) == null ? void 0 : u.body) != null && d.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), a = J.parseDate(o) || J.parseTime(o) || J.parseNumber(o);
773
+ const s = (a = t.p) == null ? void 0 : a.body, o = (d = (u = t == null ? void 0 : t.p) == null ? void 0 : u.body) != null && d.dataStream ? t.p.body.dataStream.replace(/\r\n$/, "") : String(t.v), c = J.parseDate(o) || J.parseTime(o) || J.parseNumber(o);
771
774
  if (s)
772
- if (Bn(s)) {
775
+ if (Vn(s)) {
773
776
  const { dataStream: l } = s, h = l.replace(/\r\n$/, ""), f = Number(h);
774
- if (Number.isNaN(f) && !a)
777
+ if (Number.isNaN(f) && !c)
775
778
  return n(t);
776
779
  } else
777
780
  return n(t);
778
- if (a) {
779
- a.z && this._collectEffectMutation.add(
781
+ if (c) {
782
+ if (!c.z && gt(o))
783
+ return n({
784
+ ...t,
785
+ p: void 0,
786
+ v: o,
787
+ t: U.FORCE_STRING
788
+ });
789
+ c.z && this._collectEffectMutation.add(
780
790
  r.unitId,
781
791
  r.subUnitId,
782
792
  r.row,
783
793
  r.col,
784
794
  {
785
- pattern: a.z
795
+ pattern: c.z
786
796
  }
787
797
  );
788
- const l = Number(a.v);
789
- return n({ ...t, p: void 0, v: l, t: $.NUMBER });
798
+ const l = Number(c.v);
799
+ return n({ ...t, p: void 0, v: l, t: U.NUMBER });
790
800
  }
791
801
  return n(t);
792
802
  }
@@ -801,27 +811,27 @@ let te = class extends ie {
801
811
  getMutations(r) {
802
812
  var n;
803
813
  switch (r.id) {
804
- case Wt.id: {
814
+ case Gt.id: {
805
815
  const i = t._univerInstanceService.getCurrentUnitForType(T.UNIVER_SHEET), s = i.getUnitId(), o = (n = i.getActiveSheet()) == null ? void 0 : n.getSheetId();
806
816
  if (!o)
807
817
  return {
808
818
  redos: [],
809
819
  undos: []
810
820
  };
811
- const a = t._collectEffectMutation.getEffects();
812
- if (t._collectEffectMutation.clean(), !a.length)
821
+ const c = t._collectEffectMutation.getEffects();
822
+ if (t._collectEffectMutation.clean(), !c.length)
813
823
  return {
814
824
  redos: [],
815
825
  undos: []
816
826
  };
817
- const c = a.filter((h) => {
827
+ const a = c.filter((h) => {
818
828
  var f;
819
829
  return !!((f = h.value) != null && f.pattern);
820
830
  }).map((h) => ({
821
831
  row: h.row,
822
832
  col: h.col,
823
833
  pattern: h.value.pattern
824
- })), u = a.filter((h) => {
834
+ })), u = c.filter((h) => {
825
835
  var f;
826
836
  return !((f = h.value) != null && f.pattern);
827
837
  }).map((h) => ({
@@ -830,12 +840,12 @@ let te = class extends ie {
830
840
  startColumn: h.col,
831
841
  endRow: h.row
832
842
  })), d = [], l = [];
833
- if (c.length) {
843
+ if (a.length) {
834
844
  const h = {
835
845
  id: Ne.id,
836
- params: Gt(s, o, c)
846
+ params: Kt(s, o, a)
837
847
  };
838
- d.push(h), l.push(...Kt(t._injector, h.params));
848
+ d.push(h), l.push(...Zt(t._injector, h.params));
839
849
  }
840
850
  if (u.length) {
841
851
  const h = {
@@ -846,7 +856,7 @@ let te = class extends ie {
846
856
  ranges: u
847
857
  }
848
858
  };
849
- d.push(h), l.push(...Zt(t._injector, h.params));
859
+ d.push(h), l.push(...Yt(t._injector, h.params));
850
860
  }
851
861
  return {
852
862
  redos: d,
@@ -863,16 +873,16 @@ let te = class extends ie {
863
873
  );
864
874
  }
865
875
  };
866
- te = Hn([
876
+ te = jn([
867
877
  A(0, S(Je)),
868
878
  A(1, S(ye)),
869
879
  A(2, S(ge)),
870
880
  A(3, S(je)),
871
- A(4, pt($t))
881
+ A(4, pt(Ft))
872
882
  ], te);
873
- function Bn(e) {
883
+ function Vn(e) {
874
884
  const { textRuns: t = [], paragraphs: r = [], customRanges: n, customBlocks: i = [] } = e, s = ["va"];
875
- return !(t.some((o) => !!(o.ts && Object.keys(o.ts).some((c) => s.includes(c)))) || r.some((o) => o.bullet) || r.length >= 2 || n != null && n.length || i.length > 0);
885
+ return !(t.some((o) => !!(o.ts && Object.keys(o.ts).some((a) => s.includes(a)))) || r.some((o) => o.bullet) || r.length >= 2 || n != null && n.length || i.length > 0);
876
886
  }
877
887
  const Q = [
878
888
  {
@@ -881,7 +891,7 @@ const Q = [
881
891
  },
882
892
  {
883
893
  label: "sheet.numfmt.text",
884
- pattern: Ht
894
+ pattern: jt
885
895
  },
886
896
  "|",
887
897
  {
@@ -935,20 +945,20 @@ const Q = [
935
945
  label: "sheet.numfmt.moreFmt",
936
946
  pattern: ""
937
947
  }
938
- ], Vn = (e) => ({
948
+ ], Wn = (e) => ({
939
949
  icon: new L((t) => {
940
- const r = e.get(Pt);
950
+ const r = e.get(wt);
941
951
  function n(s) {
942
952
  return {
943
- [k.US]: "DollarSingle",
944
- [k.RU]: "RoubleSingle",
945
- [k.CN]: "RmbSingle",
946
- [k.AT]: "EuroSingle"
953
+ [D.US]: "DollarSingle",
954
+ [D.RU]: "RoubleSingle",
955
+ [D.CN]: "RmbSingle",
956
+ [D.AT]: "EuroSingle"
947
957
  }[s] || "DollarSingle";
948
958
  }
949
- const i = k[r.getCurrencySymbol()] || "$";
959
+ const i = D[r.getCurrencySymbol()] || "$";
950
960
  return t.next(n(i)), r.currencySymbol$.subscribe((s) => {
951
- const o = k[s] || "$";
961
+ const o = D[s] || "$";
952
962
  t.next(n(o));
953
963
  });
954
964
  }),
@@ -958,7 +968,7 @@ const Q = [
958
968
  type: X.BUTTON,
959
969
  hidden$: z(e, T.UNIVER_SHEET),
960
970
  disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
961
- }), Wn = (e) => ({
971
+ }), Gn = (e) => ({
962
972
  icon: "AddDigitsSingle",
963
973
  id: ze.id,
964
974
  title: "sheet.numfmt.addDecimal",
@@ -966,7 +976,7 @@ const Q = [
966
976
  type: X.BUTTON,
967
977
  hidden$: z(e, T.UNIVER_SHEET),
968
978
  disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
969
- }), Gn = (e) => ({
979
+ }), Kn = (e) => ({
970
980
  icon: "ReduceDigitsSingle",
971
981
  id: Ye.id,
972
982
  title: "sheet.numfmt.subtractDecimal",
@@ -974,7 +984,7 @@ const Q = [
974
984
  type: X.BUTTON,
975
985
  hidden$: z(e, T.UNIVER_SHEET),
976
986
  disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
977
- }), Kn = (e) => ({
987
+ }), Zn = (e) => ({
978
988
  icon: "PercentSingle",
979
989
  id: Ze.id,
980
990
  title: "sheet.numfmt.percent",
@@ -982,23 +992,23 @@ const Q = [
982
992
  type: X.BUTTON,
983
993
  hidden$: z(e, T.UNIVER_SHEET),
984
994
  disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [Z, K], rangeTypes: [G] })
985
- }), Zn = (e) => {
986
- const t = e.get(ge), r = e.get(_e), n = e.get(M), i = e.get(Ce), s = [be.id, Ne.id], o = Ft(
995
+ }), Yn = (e) => {
996
+ const t = e.get(ge), r = e.get(_e), n = e.get(M), i = e.get(Ce), s = [be.id, Ne.id], o = At(
987
997
  t,
988
998
  "",
989
- ({ workbook: a, worksheet: c }) => new L(
999
+ ({ workbook: c, worksheet: a }) => new L(
990
1000
  (u) => et(
991
1001
  i.selectionMoveEnd$,
992
- gt(r.onCommandExecuted.bind(r)).pipe(
993
- tn(([d]) => s.includes(d.id))
1002
+ _t(r.onCommandExecuted.bind(r)).pipe(
1003
+ nn(([d]) => s.includes(d.id))
994
1004
  )
995
1005
  ).subscribe(() => {
996
1006
  var l, h;
997
1007
  const d = i.getCurrentSelections();
998
1008
  if (d && d[0]) {
999
- const f = d[0].range, p = f.startRow, v = f.startColumn, b = (h = a.getStyles().get((l = c.getCell(p, v)) == null ? void 0 : l.s)) == null ? void 0 : h.n, g = b == null ? void 0 : b.pattern;
1009
+ const f = d[0].range, p = f.startRow, v = f.startColumn, b = (h = c.getStyles().get((l = a.getCell(p, v)) == null ? void 0 : l.s)) == null ? void 0 : h.n, g = b == null ? void 0 : b.pattern;
1000
1010
  let I = n.t("sheet.numfmt.general");
1001
- if (Lt(g)) {
1011
+ if (Ht(g)) {
1002
1012
  u.next(I);
1003
1013
  return;
1004
1014
  }
@@ -1022,7 +1032,7 @@ const Q = [
1022
1032
  selections: [
1023
1033
  {
1024
1034
  label: {
1025
- name: at,
1035
+ name: ct,
1026
1036
  hoverable: !1,
1027
1037
  selectable: !1
1028
1038
  }
@@ -1032,68 +1042,68 @@ const Q = [
1032
1042
  hidden$: z(e, T.UNIVER_SHEET),
1033
1043
  disabled$: W(e, { workbookTypes: [Y], worksheetTypes: [K, Z], rangeTypes: [G] })
1034
1044
  };
1035
- }, ot = "sheet.numfmt.moreNumfmtType", at = "sheet.numfmt.moreNumfmtType.options", Yn = (e) => {
1045
+ }, ot = "sheet.numfmt.moreNumfmtType", ct = "sheet.numfmt.moreNumfmtType.options", zn = (e) => {
1036
1046
  const { value: t } = e, r = C(M), n = t != null ? t : r.t("sheet.numfmt.general");
1037
1047
  return /* @__PURE__ */ m("span", { className: "univer-text-sm", children: n });
1038
- }, zn = () => {
1039
- const e = C(_e), t = C(M), r = C(Xt), n = C(Ge), i = C(Ce), s = (c) => {
1048
+ }, Xn = () => {
1049
+ const e = C(_e), t = C(M), r = C(qt), n = C(Ge), i = C(Ce), s = (a) => {
1040
1050
  const u = i.getCurrentLastSelection();
1041
1051
  if (!u)
1042
1052
  return;
1043
1053
  const d = u.range, l = [];
1044
1054
  He.foreach(d, (h, f) => {
1045
- c ? l.push({ row: h, col: f, pattern: c, type: Se(c) }) : l.push({ row: h, col: f });
1055
+ a ? l.push({ row: h, col: f, pattern: a, type: Se(a) }) : l.push({ row: h, col: f });
1046
1056
  }), e.executeCommand(Ke.id, { values: l }), r.focus();
1047
- }, o = (c) => {
1048
- if (c === 0)
1057
+ }, o = (a) => {
1058
+ if (a === 0)
1049
1059
  s(null);
1050
- else if (c === Q.length - 1)
1060
+ else if (a === Q.length - 1)
1051
1061
  e.executeCommand(H.id), r.focus();
1052
1062
  else {
1053
- const u = Q[c];
1063
+ const u = Q[a];
1054
1064
  u.pattern && s(u.pattern);
1055
1065
  }
1056
- }, a = 1220;
1057
- return /* @__PURE__ */ m("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: Q.map((c, u) => c === "|" ? /* @__PURE__ */ m(dn, {}, u) : /* @__PURE__ */ y(
1066
+ }, c = 1220;
1067
+ return /* @__PURE__ */ m("div", { className: "univer-grid univer-gap-1 univer-p-1.5", children: Q.map((a, u) => a === "|" ? /* @__PURE__ */ m(hn, {}, u) : /* @__PURE__ */ y(
1058
1068
  "div",
1059
1069
  {
1060
- className: "univer-flex univer-h-7 univer-items-center univer-justify-between univer-gap-6 univer-rounded univer-px-2 univer-text-sm dark:hover:univer-bg-gray-700 hover:univer-bg-gray-100",
1070
+ className: "univer-flex univer-h-7 univer-items-center univer-justify-between univer-gap-6 univer-rounded univer-px-2 univer-text-sm dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
1061
1071
  onClick: () => {
1062
1072
  o(u);
1063
1073
  },
1064
1074
  children: [
1065
- /* @__PURE__ */ m("span", { children: t.t(c.label) }),
1066
- /* @__PURE__ */ m("span", { className: "univer-text-xs univer-text-gray-500", children: c.pattern ? wt(c.pattern || "", a, n.local).result.trim() : "" })
1075
+ /* @__PURE__ */ m("span", { children: t.t(a.label) }),
1076
+ /* @__PURE__ */ m("span", { className: "univer-text-xs univer-text-gray-500", children: a.pattern ? Rt(a.pattern || "", c, n.local).result.trim() : "" })
1067
1077
  ]
1068
1078
  },
1069
1079
  u
1070
1080
  )) });
1071
- }, Xn = {
1072
- [qt.FORMULAS_INSERT]: {
1081
+ }, qn = {
1082
+ [Jt.FORMULAS]: {
1073
1083
  [Xe.id]: {
1074
- order: 4,
1075
- menuItemFactory: Vn
1084
+ order: 0,
1085
+ menuItemFactory: Wn
1076
1086
  },
1077
1087
  [ze.id]: {
1078
- order: 5,
1079
- menuItemFactory: Wn
1088
+ order: 1,
1089
+ menuItemFactory: Gn
1080
1090
  },
1081
1091
  [Ye.id]: {
1082
- order: 6,
1083
- menuItemFactory: Gn
1092
+ order: 2,
1093
+ menuItemFactory: Kn
1084
1094
  },
1085
1095
  [Ze.id]: {
1086
- order: 7,
1087
- menuItemFactory: Kn
1096
+ order: 3,
1097
+ menuItemFactory: Zn
1088
1098
  },
1089
1099
  [H.id]: {
1090
- order: 8,
1091
- menuItemFactory: Zn
1100
+ order: 4,
1101
+ menuItemFactory: Yn
1092
1102
  }
1093
1103
  }
1094
1104
  };
1095
- var qn = Object.getOwnPropertyDescriptor, Jn = (e, t, r, n) => {
1096
- for (var i = n > 1 ? void 0 : n ? qn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1105
+ var Jn = Object.getOwnPropertyDescriptor, Qn = (e, t, r, n) => {
1106
+ for (var i = n > 1 ? void 0 : n ? Jn(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1097
1107
  (o = e[s]) && (i = o(i) || i);
1098
1108
  return i;
1099
1109
  }, $e = (e, t) => (r, n) => t(r, n, e);
@@ -1102,23 +1112,30 @@ let ne = class extends ie {
1102
1112
  super(), this._componentManager = e, this._menuManagerService = t, this._initMenu();
1103
1113
  }
1104
1114
  _initMenu() {
1105
- this._menuManagerService.mergeMenu(Xn), this.disposeWithMe(this._componentManager.register(ot, Yn)), this.disposeWithMe(this._componentManager.register(at, zn));
1115
+ this._menuManagerService.mergeMenu(qn), [
1116
+ [ot, zn],
1117
+ [ct, Xn]
1118
+ ].forEach(([e, t]) => {
1119
+ this.disposeWithMe(
1120
+ this._componentManager.register(e, t)
1121
+ );
1122
+ });
1106
1123
  }
1107
1124
  };
1108
- ne = Jn([
1125
+ ne = Qn([
1109
1126
  $e(0, S(Qe)),
1110
- $e(1, Jt)
1127
+ $e(1, Qt)
1111
1128
  ], ne);
1112
- var Qn = Object.defineProperty, er = Object.getOwnPropertyDescriptor, tr = (e, t, r) => t in e ? Qn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, nr = (e, t, r, n) => {
1113
- for (var i = n > 1 ? void 0 : n ? er(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1129
+ var er = Object.defineProperty, tr = Object.getOwnPropertyDescriptor, nr = (e, t, r) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rr = (e, t, r, n) => {
1130
+ for (var i = n > 1 ? void 0 : n ? tr(t, r) : t, s = e.length - 1, o; s >= 0; s--)
1114
1131
  (o = e[s]) && (i = o(i) || i);
1115
1132
  return i;
1116
- }, fe = (e, t) => (r, n) => t(r, n, e), ct = (e, t, r) => tr(e, typeof t != "symbol" ? t + "" : t, r);
1117
- const rr = "SHEET_NUMFMT_UI_PLUGIN";
1118
- let re = class extends St {
1133
+ }, fe = (e, t) => (r, n) => t(r, n, e), at = (e, t, r) => nr(e, typeof t != "symbol" ? t + "" : t, r);
1134
+ const ir = "SHEET_NUMFMT_UI_PLUGIN";
1135
+ let re = class extends yt {
1119
1136
  constructor(e = Ue, t, r, n) {
1120
1137
  super(), this._config = e, this._injector = t, this._configService = r, this._renderManagerService = n;
1121
- const { menu: i, ...s } = yt(
1138
+ const { menu: i, ...s } = Ct(
1122
1139
  {},
1123
1140
  Ue,
1124
1141
  this._config
@@ -1126,7 +1143,7 @@ let re = class extends St {
1126
1143
  i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig("sheets-numfmt-ui.config", s);
1127
1144
  }
1128
1145
  onStarting() {
1129
- Ct(this._injector, [
1146
+ bt(this._injector, [
1130
1147
  [B],
1131
1148
  [te],
1132
1149
  [j],
@@ -1134,7 +1151,7 @@ let re = class extends St {
1134
1151
  ]);
1135
1152
  }
1136
1153
  onRendered() {
1137
- this._registerRenderModules(), bt(this._injector, [
1154
+ this._registerRenderModules(), Nt(this._injector, [
1138
1155
  [B],
1139
1156
  [te],
1140
1157
  [ne]
@@ -1148,10 +1165,10 @@ let re = class extends St {
1148
1165
  });
1149
1166
  }
1150
1167
  };
1151
- ct(re, "pluginName", rr);
1152
- ct(re, "type", T.UNIVER_SHEET);
1153
- re = nr([
1154
- _t(At, Rt),
1168
+ at(re, "pluginName", ir);
1169
+ at(re, "type", T.UNIVER_SHEET);
1170
+ re = rr([
1171
+ St(Lt, Ot),
1155
1172
  fe(1, S(je)),
1156
1173
  fe(2, Fe),
1157
1174
  fe(3, Be)