@univerjs/sheets-sort-ui 0.10.12 → 0.10.13

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,67 +1,67 @@
1
- var Ge = Object.defineProperty;
2
- var We = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var X = (e, t, n) => We(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { LocaleService as P, IUniverInstanceService as _e, Inject as R, ICommandService as xe, Disposable as ze, UniverInstanceType as Y, Tools as Ye, LocaleType as Ce, CommandType as M, throttle as qe, Injector as we, RxDisposable as Xe, DependentOn as Ke, IConfigService as Je, Plugin as Qe, merge as et } from "@univerjs/core";
1
+ var Ve = Object.defineProperty;
2
+ var Ge = (e, t, r) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var Y = (e, t, r) => Ge(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { LocaleService as H, IUniverInstanceService as xe, Inject as M, ICommandService as _e, Disposable as We, UniverInstanceType as q, Tools as qe, LocaleType as me, CommandType as I, throttle as ze, Injector as ye, RxDisposable as Ye, DependentOn as Xe, IConfigService as Ke, Plugin as Je, merge as Qe } from "@univerjs/core";
5
5
  import { jsxs as g, jsx as c } from "react/jsx-runtime";
6
- import { SheetsSelectionsService as tt, getPrimaryForRange as rt, SetSelectionsOperation as nt, expandToContinuousRange as fe, getSheetCommandTarget as ot, RangeProtectionPermissionEditPoint as b, WorksheetSortPermission as N, WorksheetEditPermission as k, WorkbookEditablePermission as L } from "@univerjs/sheets";
7
- import { SheetsSortService as Ie, SortType as U, SortRangeCommand as it, UniverSheetsSortPlugin as st } from "@univerjs/sheets-sort";
8
- import { useDependency as E, IConfirmService as ct, useObservable as at, MenuItemType as S, getMenuHiddenObservable as Me, ContextMenuPosition as lt, ContextMenuGroup as dt, RibbonDataGroup as ut, IMenuManagerService as ht, IDialogService as gt, ILayoutService as mt, IUIPartsService as vt, ComponentManager as Ct, connectInjector as ft } from "@univerjs/ui";
9
- import { BehaviorSubject as St, takeUntil as pt } from "rxjs";
10
- import { RadioGroup as Re, Radio as V, Checkbox as yt, clsx as K, DraggableList as _t, scrollbarClassName as Ee, Button as G, Dropdown as xt, ButtonGroup as wt } from "@univerjs/design";
11
- import { useState as j, forwardRef as y, useRef as Te, createElement as _, useCallback as O, useEffect as Oe } from "react";
6
+ import { SheetsSelectionsService as et, getPrimaryForRange as tt, SetSelectionsOperation as rt, expandToContinuousRange as ve, getSheetCommandTarget as nt, RangeProtectionPermissionEditPoint as b, WorksheetSortPermission as O, WorksheetEditPermission as N, WorkbookEditablePermission as L } from "@univerjs/sheets";
7
+ import { SheetsSortService as Ie, SortType as $, SortRangeCommand as ot, UniverSheetsSortPlugin as st } from "@univerjs/sheets-sort";
8
+ import { useDependency as R, IConfirmService as it, useObservable as ct, MenuItemType as f, getMenuHiddenObservable as we, ContextMenuPosition as at, ContextMenuGroup as lt, RibbonDataGroup as dt, IMenuManagerService as ut, IDialogService as ht, ILayoutService as gt, IUIPartsService as Ct, ComponentManager as mt, connectInjector as vt } from "@univerjs/ui";
9
+ import { BehaviorSubject as ft, takeUntil as St } from "rxjs";
10
+ import { RadioGroup as Me, Radio as F, Checkbox as pt, clsx as X, DraggableList as xt, scrollbarClassName as Re, Button as V, Dropdown as _t, ButtonGroup as yt } from "@univerjs/design";
11
+ import { useState as P, useRef as Ee, createElement as p, forwardRef as w, useCallback as T, useEffect as Te } from "react";
12
12
  import { serializeRange as It } from "@univerjs/engine-formula";
13
- import { getCurrentRangeDisable$ as D, getCurrentExclusiveRangeInterest$ as Mt, SheetsRenderService as Rt, SheetsUIPart as Et } from "@univerjs/sheets-ui";
14
- const Tt = (e) => {
15
- const [t, n] = j("0"), r = E(P);
13
+ import { getCurrentRangeDisable$ as k, getCurrentExclusiveRangeInterest$ as wt, SheetsRenderService as Mt, SheetsUIPart as Rt } from "@univerjs/sheets-ui";
14
+ const Et = (e) => {
15
+ const [t, r] = P("0"), n = R(H);
16
16
  return /* @__PURE__ */ g("div", { className: "univer-text-sm", children: [
17
- /* @__PURE__ */ c("div", { className: "extend-confirm-desc", children: r.t("sheets-sort.dialog.sort-reminder-desc") }),
17
+ /* @__PURE__ */ c("div", { className: "extend-confirm-desc", children: n.t("sheets-sort.dialog.sort-reminder-desc") }),
18
18
  /* @__PURE__ */ g(
19
- Re,
19
+ Me,
20
20
  {
21
21
  className: "univer-mt-4",
22
22
  value: t,
23
23
  direction: "vertical",
24
24
  onChange: (o) => {
25
- n(o), e.onChange(o);
25
+ r(o), e.onChange(o);
26
26
  },
27
27
  children: [
28
- /* @__PURE__ */ c(V, { value: "0", children: r.t("sheets-sort.dialog.sort-reminder-no") }),
29
- /* @__PURE__ */ c(V, { value: "1", children: r.t("sheets-sort.dialog.sort-reminder-ext") })
28
+ /* @__PURE__ */ c(F, { value: "0", children: n.t("sheets-sort.dialog.sort-reminder-no") }),
29
+ /* @__PURE__ */ c(F, { value: "1", children: n.t("sheets-sort.dialog.sort-reminder-ext") })
30
30
  ]
31
31
  }
32
32
  )
33
33
  ] });
34
34
  };
35
- var Ot = Object.getOwnPropertyDescriptor, bt = (e, t, n, r) => {
36
- for (var o = r > 1 ? void 0 : r ? Ot(t, n) : t, i = e.length - 1, s; i >= 0; i--)
37
- (s = e[i]) && (o = s(o) || o);
35
+ var Tt = Object.getOwnPropertyDescriptor, bt = (e, t, r, n) => {
36
+ for (var o = n > 1 ? void 0 : n ? Tt(t, r) : t, s = e.length - 1, i; s >= 0; s--)
37
+ (i = e[s]) && (o = i(o) || o);
38
38
  return o;
39
- }, H = (e, t) => (n, r) => t(n, r, e);
40
- const F = {
39
+ }, D = (e, t) => (r, n) => t(r, n, e);
40
+ const B = {
41
41
  MERGE_ERROR: "sheets-sort.error.merge-size",
42
42
  EMPTY_ERROR: "sheets-sort.error.empty",
43
43
  SINGLE_ERROR: "sheets-sort.error.single",
44
44
  FORMULA_ARRAY: "sheets-sort.error.formula-array"
45
45
  };
46
- let m = class extends ze {
47
- constructor(t, n, r, o, i, s) {
46
+ let C = class extends We {
47
+ constructor(t, r, n, o, s, i) {
48
48
  super();
49
- X(this, "_customSortState$", new St(null));
50
- X(this, "customSortState$", this._customSortState$.asObservable());
51
- this._univerInstanceService = t, this._confirmService = n, this._selectionManagerService = r, this._sheetsSortService = o, this._localeService = i, this._commandService = s;
49
+ Y(this, "_customSortState$", new ft(null));
50
+ Y(this, "customSortState$", this._customSortState$.asObservable());
51
+ this._univerInstanceService = t, this._confirmService = r, this._selectionManagerService = n, this._sheetsSortService = o, this._localeService = s, this._commandService = i;
52
52
  }
53
- async triggerSortDirectly(t, n, r) {
54
- const o = r || await this._detectSortLocation(n);
53
+ async triggerSortDirectly(t, r, n) {
54
+ const o = n || await this._detectSortLocation(r);
55
55
  if (!o || !this._check(o))
56
56
  return !1;
57
- const s = {
57
+ const i = {
58
58
  orderRules: [{
59
- type: t ? U.ASC : U.DESC,
59
+ type: t ? $.ASC : $.DESC,
60
60
  colIndex: o.colIndex
61
61
  }],
62
62
  range: o.range
63
63
  };
64
- return this._sheetsSortService.applySort(s, o.unitId, o.subUnitId), !0;
64
+ return this._sheetsSortService.applySort(i, o.unitId, o.subUnitId), !0;
65
65
  }
66
66
  async triggerSortCustomize() {
67
67
  const t = await this._detectSortLocation();
@@ -72,33 +72,33 @@ let m = class extends ze {
72
72
  }
73
73
  getTitles(t) {
74
74
  var l, u;
75
- const n = (l = this.customSortState()) == null ? void 0 : l.location;
76
- if (!n)
75
+ const r = (l = this.customSortState()) == null ? void 0 : l.location;
76
+ if (!r)
77
77
  return [];
78
- const { unitId: r, subUnitId: o, range: i } = n, s = (u = this._univerInstanceService.getUnit(r)) == null ? void 0 : u.getSheetBySheetId(o);
79
- if (!s)
78
+ const { unitId: n, subUnitId: o, range: s } = r, i = (u = this._univerInstanceService.getUnit(n)) == null ? void 0 : u.getSheetBySheetId(o);
79
+ if (!i)
80
80
  return [];
81
- const a = Nt(this._localeService);
82
- return Array.from({ length: i.endColumn - i.startColumn + 1 }, (w, C) => {
83
- var v;
84
- const T = (v = s.getCell(i.startRow, C + i.startColumn)) == null ? void 0 : v.v;
81
+ const a = Ot(this._localeService);
82
+ return Array.from({ length: s.endColumn - s.startColumn + 1 }, (_, v) => {
83
+ var m;
84
+ const E = (m = i.getCell(s.startRow, v + s.startColumn)) == null ? void 0 : m.v;
85
85
  return {
86
- index: C + i.startColumn,
87
- label: t ? `${T != null ? T : a(C + i.startColumn)}` : a(C + i.startColumn)
86
+ index: v + s.startColumn,
87
+ label: t ? `${E != null ? E : a(v + s.startColumn)}` : a(v + s.startColumn)
88
88
  };
89
89
  });
90
90
  }
91
- setSelection(t, n, r) {
92
- var s;
93
- const o = (s = this._univerInstanceService.getUnit(t)) == null ? void 0 : s.getSheetBySheetId(n);
91
+ setSelection(t, r, n) {
92
+ var i;
93
+ const o = (i = this._univerInstanceService.getUnit(t)) == null ? void 0 : i.getSheetBySheetId(r);
94
94
  if (!o)
95
95
  return;
96
- const i = {
96
+ const s = {
97
97
  unitId: t,
98
- subUnitId: n,
99
- selections: [{ range: r, primary: rt(r, o), style: null }]
98
+ subUnitId: r,
99
+ selections: [{ range: n, primary: tt(n, o), style: null }]
100
100
  };
101
- this._commandService.executeCommand(nt.id, i);
101
+ this._commandService.executeCommand(rt.id, s);
102
102
  }
103
103
  async showCheckError(t) {
104
104
  return await this._confirmService.confirm({
@@ -122,10 +122,10 @@ let m = class extends ze {
122
122
  },
123
123
  children: {
124
124
  title: /* @__PURE__ */ c(
125
- Tt,
125
+ Et,
126
126
  {
127
- onChange: (r) => {
128
- t = r === "1";
127
+ onChange: (n) => {
128
+ t = n === "1";
129
129
  }
130
130
  }
131
131
  )
@@ -142,260 +142,553 @@ let m = class extends ze {
142
142
  this._customSortState$.next({ show: !1 });
143
143
  }
144
144
  _check(t) {
145
- return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(F.EMPTY_ERROR), !1) : (this.showCheckError(F.FORMULA_ARRAY), !1) : (this.showCheckError(F.MERGE_ERROR), !1) : (this.showCheckError(F.SINGLE_ERROR), !1);
145
+ return this._sheetsSortService.singleCheck(t) ? this._sheetsSortService.mergeCheck(t) ? this._sheetsSortService.formulaCheck(t) ? this._sheetsSortService.emptyCheck(t) ? !0 : (this.showCheckError(B.EMPTY_ERROR), !1) : (this.showCheckError(B.FORMULA_ARRAY), !1) : (this.showCheckError(B.MERGE_ERROR), !1) : (this.showCheckError(B.SINGLE_ERROR), !1);
146
146
  }
147
147
  async _detectSortLocation(t) {
148
- const n = this._univerInstanceService.getCurrentUnitForType(Y.UNIVER_SHEET), r = n.getActiveSheet(), o = n.getUnitId(), i = r.getSheetId(), s = this._selectionManagerService.getCurrentLastSelection();
149
- if (!s)
148
+ const r = this._univerInstanceService.getCurrentUnitForType(q.UNIVER_SHEET), n = r.getActiveSheet(), o = r.getUnitId(), s = n.getSheetId(), i = this._selectionManagerService.getCurrentLastSelection();
149
+ if (!i)
150
150
  return null;
151
151
  let a;
152
152
  if (t === !0)
153
- a = fe(s.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, i, a);
153
+ a = ve(i.range, { up: !0, down: !0, left: !0, right: !0 }, n), this.setSelection(o, s, a);
154
154
  else if (t === !1)
155
- a = s.range;
155
+ a = i.range;
156
156
  else {
157
157
  const l = await this.showExtendConfirm();
158
158
  if (l === "cancel")
159
159
  return null;
160
- l === "keep" ? a = s.range : (a = fe(s.range, { up: !0, down: !0, left: !0, right: !0 }, r), this.setSelection(o, i, a));
160
+ l === "keep" ? a = i.range : (a = ve(i.range, { up: !0, down: !0, left: !0, right: !0 }, n), this.setSelection(o, s, a));
161
161
  }
162
162
  return {
163
163
  range: a,
164
164
  unitId: o,
165
- subUnitId: i,
166
- colIndex: s.primary.actualColumn
165
+ subUnitId: s,
166
+ colIndex: i.primary.actualColumn
167
167
  };
168
168
  }
169
169
  };
170
- m = bt([
171
- H(0, _e),
172
- H(1, ct),
173
- H(2, R(tt)),
174
- H(3, R(Ie)),
175
- H(4, R(P)),
176
- H(5, xe)
177
- ], m);
178
- function Nt(e) {
170
+ C = bt([
171
+ D(0, xe),
172
+ D(1, it),
173
+ D(2, M(et)),
174
+ D(3, M(Ie)),
175
+ D(4, M(H)),
176
+ D(5, _e)
177
+ ], C);
178
+ function Ot(e) {
179
179
  return (t) => {
180
- const n = Ye.chatAtABC(t);
180
+ const r = qe.chatAtABC(t);
181
181
  switch (e.getCurrentLocale()) {
182
- case Ce.ZH_CN:
183
- return `"${n}"列`;
184
- case Ce.EN_US:
185
- return `Column "${n}"`;
182
+ case me.ZH_CN:
183
+ return `"${r}"列`;
184
+ case me.EN_US:
185
+ return `Column "${r}"`;
186
186
  default:
187
- return `Column "${n}"`;
187
+ return `Column "${r}"`;
188
188
  }
189
189
  };
190
190
  }
191
- const Q = {
191
+ const J = {
192
192
  id: "sheet.command.sort-range-asc",
193
- type: M.COMMAND,
194
- handler: async (e) => await e.get(m).triggerSortDirectly(!0, !1)
195
- }, ee = {
193
+ type: I.COMMAND,
194
+ handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
195
+ }, Q = {
196
196
  id: "sheet.command.sort-range-asc-ext",
197
- type: M.COMMAND,
198
- handler: async (e) => await e.get(m).triggerSortDirectly(!0, !0)
199
- }, te = {
197
+ type: I.COMMAND,
198
+ handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
199
+ }, ee = {
200
200
  id: "sheet.command.sort-range-desc",
201
- type: M.COMMAND,
202
- handler: async (e) => await e.get(m).triggerSortDirectly(!1, !1)
203
- }, re = {
201
+ type: I.COMMAND,
202
+ handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
203
+ }, te = {
204
204
  id: "sheet.command.sort-range-desc-ext",
205
- type: M.COMMAND,
206
- handler: async (e) => await e.get(m).triggerSortDirectly(!1, !0)
207
- }, ne = {
205
+ type: I.COMMAND,
206
+ handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
207
+ }, re = {
208
208
  id: "sheet.command.sort-range-custom",
209
- type: M.COMMAND,
210
- handler: async (e) => await e.get(m).triggerSortCustomize()
211
- }, oe = {
209
+ type: I.COMMAND,
210
+ handler: async (e) => await e.get(C).triggerSortCustomize()
211
+ }, ne = {
212
212
  id: "sheet.command.sort-range-asc-ctx",
213
- type: M.COMMAND,
214
- handler: async (e) => await e.get(m).triggerSortDirectly(!0, !1)
215
- }, ie = {
213
+ type: I.COMMAND,
214
+ handler: async (e) => await e.get(C).triggerSortDirectly(!0, !1)
215
+ }, oe = {
216
216
  id: "sheet.command.sort-range-asc-ext-ctx",
217
- type: M.COMMAND,
218
- handler: async (e) => await e.get(m).triggerSortDirectly(!0, !0)
217
+ type: I.COMMAND,
218
+ handler: async (e) => await e.get(C).triggerSortDirectly(!0, !0)
219
219
  }, se = {
220
220
  id: "sheet.command.sort-range-desc-ctx",
221
- type: M.COMMAND,
222
- handler: async (e) => await e.get(m).triggerSortDirectly(!1, !1)
223
- }, ce = {
221
+ type: I.COMMAND,
222
+ handler: async (e) => await e.get(C).triggerSortDirectly(!1, !1)
223
+ }, ie = {
224
224
  id: "sheet.command.sort-range-desc-ext-ctx",
225
- type: M.COMMAND,
226
- handler: async (e) => await e.get(m).triggerSortDirectly(!1, !0)
227
- }, ae = {
225
+ type: I.COMMAND,
226
+ handler: async (e) => await e.get(C).triggerSortDirectly(!1, !0)
227
+ }, ce = {
228
228
  id: "sheet.command.sort-range-custom-ctx",
229
- type: M.COMMAND,
230
- handler: async (e) => await e.get(m).triggerSortCustomize()
231
- }, kt = "sheets-sort-ui.config", Se = {};
232
- var f = function() {
233
- return f = Object.assign || function(e) {
234
- for (var t, n = 1, r = arguments.length; n < r; n++) {
235
- t = arguments[n];
236
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
237
- }
238
- return e;
239
- }, f.apply(this, arguments);
240
- }, Lt = function(e, t) {
241
- var n = {};
242
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
243
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
244
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
245
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
246
- return n;
247
- }, x = y(function(e, t) {
248
- var n = e.icon, r = e.id, o = e.className, i = e.extend, s = Lt(e, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(r, " ").concat(o || "").trim(), l = Te("_".concat(Ut()));
249
- return be(n, "".concat(r), { defIds: n.defIds, idSuffix: l.current }, f({ ref: t, className: a }, s), i);
250
- });
251
- function be(e, t, n, r, o) {
252
- return _(e.tag, f(f({ key: t }, Dt(e, n, o)), r), (Ht(e, n).children || []).map(function(i, s) {
253
- return be(i, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, o);
254
- }));
229
+ type: I.COMMAND,
230
+ handler: async (e) => await e.get(C).triggerSortCustomize()
231
+ }, Nt = "sheets-sort-ui.config", fe = {};
232
+ function x({ ref: e, ...t }) {
233
+ const { icon: r, id: n, className: o, extend: s, ...i } = t, a = `univerjs-icon univerjs-icon-${n} ${o || ""}`.trim(), l = Ee(`_${Dt()}`);
234
+ return be(r, `${n}`, {
235
+ defIds: r.defIds,
236
+ idSuffix: l.current
237
+ }, {
238
+ ref: e,
239
+ className: a,
240
+ ...i
241
+ }, s);
242
+ }
243
+ function be(e, t, r, n, o) {
244
+ return p(e.tag, {
245
+ key: t,
246
+ ...Lt(e, r, o),
247
+ ...n
248
+ }, (kt(e, r).children || []).map((s, i) => be(s, `${t}-${e.tag}-${i}`, r, void 0, o)));
255
249
  }
256
- function Dt(e, t, n) {
257
- var r = f({}, e.attrs);
258
- n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1), e.tag === "mask" && r.id && (r.id = r.id + t.idSuffix), Object.entries(r).forEach(function(i) {
259
- var s = i[0], a = i[1];
260
- s === "mask" && typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
250
+ function Lt(e, t, r) {
251
+ const n = { ...e.attrs };
252
+ 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(([s, i]) => {
253
+ s === "mask" && typeof i == "string" && (n[s] = i.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
261
254
  });
262
- var o = t.defIds;
263
- return !o || o.length === 0 || (e.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + t.idSuffix), Object.entries(r).forEach(function(i) {
264
- var s = i[0], a = i[1];
265
- typeof a == "string" && (r[s] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
266
- })), r;
255
+ const { defIds: o } = t;
256
+ return !o || o.length === 0 || (e.tag === "use" && n["xlink:href"] && (n["xlink:href"] = n["xlink:href"] + t.idSuffix), Object.entries(n).forEach(([s, i]) => {
257
+ typeof i == "string" && (n[s] = i.replace(/url\(#(.*)\)/, `url(#$1${t.idSuffix})`));
258
+ })), n;
267
259
  }
268
- function Ht(e, t) {
269
- var n, r = t.defIds;
270
- return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? f(f({}, e), { children: e.children.map(function(o) {
271
- return typeof o.attrs.id == "string" && r && r.includes(o.attrs.id) ? f(f({}, o), { attrs: f(f({}, o.attrs), { id: o.attrs.id + t.idSuffix }) }) : o;
272
- }) }) : e;
260
+ function kt(e, t) {
261
+ var n;
262
+ const { defIds: r } = t;
263
+ return !r || r.length === 0 ? e : e.tag === "defs" && ((n = e.children) != null && n.length) ? {
264
+ ...e,
265
+ children: e.children.map((o) => typeof o.attrs.id == "string" && r && r.includes(o.attrs.id) ? {
266
+ ...o,
267
+ attrs: {
268
+ ...o.attrs,
269
+ id: o.attrs.id + t.idSuffix
270
+ }
271
+ } : o)
272
+ } : e;
273
273
  }
274
- function Ut() {
274
+ function Dt() {
275
275
  return Math.random().toString(36).substring(2, 8);
276
276
  }
277
277
  x.displayName = "UniverIcon";
278
- var Pt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, le = y(function(e, t) {
279
- return _(x, Object.assign({}, e, {
278
+ const $t = {
279
+ tag: "svg",
280
+ attrs: {
281
+ xmlns: "http://www.w3.org/2000/svg",
282
+ fill: "none",
283
+ viewBox: "0 0 16 16",
284
+ width: "1em",
285
+ height: "1em"
286
+ },
287
+ children: [
288
+ {
289
+ tag: "path",
290
+ attrs: {
291
+ fill: "currentColor",
292
+ d: "M12.4208 14.4667C12.4208 14.798 12.1522 15.0667 11.8208 15.0667C11.4895 15.0667 11.2208 14.798 11.2208 14.4667V2.98193L9.97861 4.22417C9.7443 4.45848 9.3644 4.45848 9.13008 4.22417C8.89577 3.98985 8.89577 3.60995 9.13008 3.37564L11.3967 1.10897C11.6311 0.874657 12.011 0.874657 12.2453 1.10897L14.5119 3.37564C14.7463 3.60995 14.7463 3.98985 14.5119 4.22417C14.2776 4.45848 13.8977 4.45848 13.6634 4.22417L12.4208 2.9816V14.4667Z"
293
+ }
294
+ },
295
+ {
296
+ tag: "path",
297
+ attrs: {
298
+ fill: "currentColor",
299
+ d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z",
300
+ fillRule: "evenodd",
301
+ clipRule: "evenodd"
302
+ }
303
+ },
304
+ {
305
+ tag: "path",
306
+ attrs: {
307
+ fill: "currentColor",
308
+ d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z",
309
+ fillRule: "evenodd",
310
+ clipRule: "evenodd"
311
+ }
312
+ }
313
+ ]
314
+ }, ae = w(function(t, r) {
315
+ return p(x, Object.assign({}, t, {
280
316
  id: "ascending-icon",
281
- ref: t,
282
- icon: Pt
317
+ ref: r,
318
+ icon: $t
283
319
  }));
284
320
  });
285
- le.displayName = "AscendingIcon";
286
- var At = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "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" } }] }, Ne = y(function(e, t) {
287
- return _(x, Object.assign({}, e, {
321
+ ae.displayName = "AscendingIcon";
322
+ const Ht = {
323
+ tag: "svg",
324
+ attrs: {
325
+ xmlns: "http://www.w3.org/2000/svg",
326
+ fill: "none",
327
+ viewBox: "0 0 16 16",
328
+ width: "1em",
329
+ height: "1em"
330
+ },
331
+ children: [{
332
+ tag: "path",
333
+ attrs: {
334
+ fill: "currentColor",
335
+ 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",
336
+ fillRule: "evenodd",
337
+ clipRule: "evenodd"
338
+ }
339
+ }]
340
+ }, Oe = w(function(t, r) {
341
+ return p(x, Object.assign({}, t, {
288
342
  id: "check-mark-icon",
289
- ref: t,
290
- icon: At
343
+ ref: r,
344
+ icon: Ht
291
345
  }));
292
346
  });
293
- Ne.displayName = "CheckMarkIcon";
294
- var $t = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.77445 9.24306L9.77457 11.9573C9.77458 12.2887 9.50597 12.5574 9.17459 12.5574C8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507C9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661C11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512C7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574C6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588C4.88808 9.55156 5.26798 9.55156 5.50229 9.78588L6.22584 10.5094Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM2.34014 5.86724V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V5.86724H2.34014ZM13.6601 4.66724H2.34014V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H12.2601C13.0333 2.33989 13.6601 2.96669 13.6601 3.73989V4.66724Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, ke = y(function(e, t) {
295
- return _(x, Object.assign({}, e, {
347
+ Oe.displayName = "CheckMarkIcon";
348
+ const At = {
349
+ tag: "svg",
350
+ attrs: {
351
+ xmlns: "http://www.w3.org/2000/svg",
352
+ fill: "none",
353
+ viewBox: "0 0 16 16",
354
+ width: "1em",
355
+ height: "1em"
356
+ },
357
+ children: [
358
+ {
359
+ tag: "path",
360
+ attrs: {
361
+ fill: "currentColor",
362
+ d: "M9.77445 9.24306L9.77457 11.9573C9.77458 12.2887 9.50597 12.5574 9.17459 12.5574C8.84322 12.5574 8.57458 12.2888 8.57457 11.9574L8.57439 7.79509C8.57438 7.46372 8.84299 7.19508 9.17436 7.19507C9.3281 7.19493 9.48196 7.25351 9.59925 7.3708L11.3465 9.11808C11.5808 9.3524 11.5808 9.7323 11.3465 9.96661C11.1122 10.2009 10.7323 10.2009 10.498 9.96661L9.77445 9.24306Z"
363
+ }
364
+ },
365
+ {
366
+ tag: "path",
367
+ attrs: {
368
+ fill: "currentColor",
369
+ d: "M6.22584 10.5094L6.22572 7.79514C6.22571 7.46377 6.49433 7.19513 6.8257 7.19512C7.15707 7.1951 7.42571 7.46372 7.42572 7.79509L7.4259 11.9574C7.42592 12.2888 7.1573 12.5574 6.82593 12.5574C6.67228 12.5575 6.51828 12.4989 6.40104 12.3817L4.65376 10.6344C4.41945 10.4001 4.41945 10.0202 4.65376 9.78588C4.88808 9.55156 5.26798 9.55156 5.50229 9.78588L6.22584 10.5094Z"
370
+ }
371
+ },
372
+ {
373
+ tag: "path",
374
+ attrs: {
375
+ fill: "currentColor",
376
+ d: "M1.14014 3.73989C1.14014 2.30396 2.3042 1.13989 3.74014 1.13989H12.2601C13.6961 1.13989 14.8601 2.30395 14.8601 3.73989V12.2599C14.8601 13.6958 13.6961 14.8599 12.2601 14.8599H3.74014C2.3042 14.8599 1.14014 13.6958 1.14014 12.2599V3.73989ZM2.34014 5.86724V12.2599C2.34014 13.0331 2.96694 13.6599 3.74014 13.6599H12.2601C13.0333 13.6599 13.6601 13.0331 13.6601 12.2599V5.86724H2.34014ZM13.6601 4.66724H2.34014V3.73989C2.34014 2.9667 2.96694 2.33989 3.74014 2.33989H12.2601C13.0333 2.33989 13.6601 2.96669 13.6601 3.73989V4.66724Z",
377
+ fillRule: "evenodd",
378
+ clipRule: "evenodd"
379
+ }
380
+ }
381
+ ]
382
+ }, Ne = w(function(t, r) {
383
+ return p(x, Object.assign({}, t, {
296
384
  id: "custom-sort-icon",
297
- ref: t,
298
- icon: $t
385
+ ref: r,
386
+ icon: At
299
387
  }));
300
388
  });
301
- ke.displayName = "CustomSortIcon";
302
- var jt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V13.1332C3.15332 14.2377 4.04875 15.1332 5.15332 15.1332H10.8465C11.9511 15.1332 12.8465 14.2377 12.8465 13.1331V6.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.82217V13.1331C11.6465 13.575 11.2884 13.9331 10.8465 13.9331H5.15332C4.71149 13.9331 4.35332 13.575 4.35332 13.1332V6.82217Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = y(function(e, t) {
303
- return _(x, Object.assign({}, e, {
389
+ Ne.displayName = "CustomSortIcon";
390
+ const Ut = {
391
+ tag: "svg",
392
+ attrs: {
393
+ xmlns: "http://www.w3.org/2000/svg",
394
+ fill: "none",
395
+ viewBox: "0 0 16 16",
396
+ width: "1em",
397
+ height: "1em"
398
+ },
399
+ children: [
400
+ {
401
+ tag: "path",
402
+ attrs: {
403
+ fill: "currentColor",
404
+ d: "M5.3313 1.4667C5.3313 1.13533 5.59993 0.866699 5.9313 0.866699H10.069C10.4004 0.866699 10.669 1.13533 10.669 1.4667C10.669 1.79807 10.4004 2.0667 10.069 2.0667H5.9313C5.59993 2.0667 5.3313 1.79807 5.3313 1.4667Z"
405
+ }
406
+ },
407
+ {
408
+ tag: "path",
409
+ attrs: {
410
+ fill: "currentColor",
411
+ d: "M1.09985 3.64443C1.09985 3.31306 1.36848 3.04443 1.69985 3.04443H14.2999C14.6312 3.04443 14.8999 3.31306 14.8999 3.64443C14.8999 3.9758 14.6312 4.24443 14.2999 4.24443H1.69985C1.36848 4.24443 1.09985 3.9758 1.09985 3.64443Z"
412
+ }
413
+ },
414
+ {
415
+ tag: "path",
416
+ attrs: {
417
+ fill: "currentColor",
418
+ d: "M4.75332 5.22217C3.86966 5.22217 3.15332 5.93851 3.15332 6.82217V13.1332C3.15332 14.2377 4.04875 15.1332 5.15332 15.1332H10.8465C11.9511 15.1332 12.8465 14.2377 12.8465 13.1331V6.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.82217V13.1331C11.6465 13.575 11.2884 13.9331 10.8465 13.9331H5.15332C4.71149 13.9331 4.35332 13.575 4.35332 13.1332V6.82217Z",
419
+ fillRule: "evenodd",
420
+ clipRule: "evenodd"
421
+ }
422
+ }
423
+ ]
424
+ }, Le = w(function(t, r) {
425
+ return p(x, Object.assign({}, t, {
304
426
  id: "delete-empty-icon",
305
- ref: t,
306
- icon: jt
427
+ ref: r,
428
+ icon: Ut
307
429
  }));
308
430
  });
309
431
  Le.displayName = "DeleteEmptyIcon";
310
- var Zt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, de = y(function(e, t) {
311
- return _(x, Object.assign({}, e, {
432
+ const Pt = {
433
+ tag: "svg",
434
+ attrs: {
435
+ xmlns: "http://www.w3.org/2000/svg",
436
+ fill: "none",
437
+ viewBox: "0 0 16 16",
438
+ width: "1em",
439
+ height: "1em"
440
+ },
441
+ children: [
442
+ {
443
+ tag: "path",
444
+ attrs: {
445
+ fill: "currentColor",
446
+ d: "M12.4208 1.53335C12.4208 1.20198 12.1522 0.93335 11.8208 0.93335C11.4895 0.93335 11.2208 1.20198 11.2208 1.53335V13.0181L9.97861 11.7758C9.7443 11.5415 9.3644 11.5415 9.13008 11.7758C8.89577 12.0101 8.89577 12.39 9.13008 12.6244L11.3967 14.891C11.6311 15.1253 12.011 15.1253 12.2453 14.891L14.5119 12.6244C14.7463 12.39 14.7463 12.0101 14.5119 11.7758C14.2776 11.5415 13.8977 11.5415 13.6634 11.7758L12.4208 13.0184V1.53335Z"
447
+ }
448
+ },
449
+ {
450
+ tag: "path",
451
+ attrs: {
452
+ fill: "currentColor",
453
+ d: "M1.98967 10.2798C1.6583 10.2798 1.38967 10.0112 1.38967 9.67983C1.38967 9.34846 1.6583 9.07983 1.98967 9.07983H6.50138C6.74406 9.07983 6.96284 9.22602 7.05571 9.45022C7.14858 9.67443 7.09725 9.9325 6.92565 10.1041L3.43819 13.5916H6.50138C6.83276 13.5916 7.10138 13.8602 7.10138 14.1916C7.10138 14.5229 6.83276 14.7916 6.50138 14.7916H1.98967C1.74699 14.7916 1.52821 14.6454 1.43534 14.4212C1.34247 14.197 1.3938 13.9389 1.5654 13.7673L5.05286 10.2798H1.98967Z",
454
+ fillRule: "evenodd",
455
+ clipRule: "evenodd"
456
+ }
457
+ },
458
+ {
459
+ tag: "path",
460
+ attrs: {
461
+ fill: "currentColor",
462
+ d: "M5.1846 1.86439C4.8641 0.989866 3.62725 0.989866 3.30674 1.86439L1.34882 7.20672C1.23479 7.51786 1.39458 7.86252 1.70571 7.97655C2.01684 8.09058 2.3615 7.93079 2.47553 7.61966L3.06159 6.02055L3.06338 6.02056H5.42975L6.01581 7.61966C6.12984 7.93079 6.4745 8.09058 6.78563 7.97655C7.09677 7.86252 7.25655 7.51786 7.14252 7.20672L5.1846 1.86439ZM4.98996 4.82056L4.24567 2.78971L3.50138 4.82056H4.98996Z",
463
+ fillRule: "evenodd",
464
+ clipRule: "evenodd"
465
+ }
466
+ }
467
+ ]
468
+ }, le = w(function(t, r) {
469
+ return p(x, Object.assign({}, t, {
312
470
  id: "descending-icon",
313
- ref: t,
314
- icon: Zt
471
+ ref: r,
472
+ icon: Pt
315
473
  }));
316
474
  });
317
- de.displayName = "DescendingIcon";
318
- var Bt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9064 3.20024C1.57503 3.20024 1.3064 2.93161 1.3064 2.60024C1.3064 2.26887 1.57503 2.00024 1.9064 2.00024H4.57306C4.90443 2.00024 5.17306 2.26887 5.17306 2.60024C5.17306 2.93161 4.90443 3.20024 4.57306 3.20024H1.9064ZM1.3064 6.19985C1.3064 6.53122 1.57503 6.79985 1.9064 6.79985H5.9064C6.23777 6.79985 6.5064 6.53122 6.5064 6.19985C6.5064 5.86848 6.23777 5.59985 5.9064 5.59985H1.9064C1.57503 5.59985 1.3064 5.86848 1.3064 6.19985ZM1.9064 10.3997C1.57503 10.3997 1.3064 10.1311 1.3064 9.79971C1.3064 9.46834 1.57503 9.19971 1.9064 9.19971H7.23973C7.5711 9.19971 7.83973 9.46834 7.83973 9.79971C7.83973 10.1311 7.5711 10.3997 7.23973 10.3997H1.9064ZM1.9064 13.9996C1.57503 13.9996 1.3064 13.7309 1.3064 13.3996C1.3064 13.0682 1.57503 12.7996 1.9064 12.7996H8.57306C8.90443 12.7996 9.17306 13.0682 9.17306 13.3996C9.17306 13.7309 8.90443 13.9996 8.57306 13.9996H1.9064Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4267 14.2667C12.4267 14.5981 12.1581 14.8667 11.8267 14.8667C11.4953 14.8667 11.2267 14.5981 11.2267 14.2667V3.18198L9.98447 4.42422C9.75015 4.65853 9.37026 4.65853 9.13594 4.42422C8.90163 4.1899 8.90163 3.81 9.13594 3.57569L11.4026 1.30902C11.6369 1.07471 12.0168 1.07471 12.2511 1.30902L14.5178 3.57569C14.7521 3.81 14.7521 4.1899 14.5178 4.42422C14.2835 4.65853 13.9036 4.65853 13.6693 4.42422L12.4267 3.18165V14.2667Z" } }] }, De = y(function(e, t) {
319
- return _(x, Object.assign({}, e, {
475
+ le.displayName = "DescendingIcon";
476
+ const Zt = {
477
+ tag: "svg",
478
+ attrs: {
479
+ xmlns: "http://www.w3.org/2000/svg",
480
+ fill: "none",
481
+ viewBox: "0 0 16 16",
482
+ width: "1em",
483
+ height: "1em"
484
+ },
485
+ children: [{
486
+ tag: "path",
487
+ attrs: {
488
+ fill: "currentColor",
489
+ d: "M1.9064 3.20024C1.57503 3.20024 1.3064 2.93161 1.3064 2.60024C1.3064 2.26887 1.57503 2.00024 1.9064 2.00024H4.57306C4.90443 2.00024 5.17306 2.26887 5.17306 2.60024C5.17306 2.93161 4.90443 3.20024 4.57306 3.20024H1.9064ZM1.3064 6.19985C1.3064 6.53122 1.57503 6.79985 1.9064 6.79985H5.9064C6.23777 6.79985 6.5064 6.53122 6.5064 6.19985C6.5064 5.86848 6.23777 5.59985 5.9064 5.59985H1.9064C1.57503 5.59985 1.3064 5.86848 1.3064 6.19985ZM1.9064 10.3997C1.57503 10.3997 1.3064 10.1311 1.3064 9.79971C1.3064 9.46834 1.57503 9.19971 1.9064 9.19971H7.23973C7.5711 9.19971 7.83973 9.46834 7.83973 9.79971C7.83973 10.1311 7.5711 10.3997 7.23973 10.3997H1.9064ZM1.9064 13.9996C1.57503 13.9996 1.3064 13.7309 1.3064 13.3996C1.3064 13.0682 1.57503 12.7996 1.9064 12.7996H8.57306C8.90443 12.7996 9.17306 13.0682 9.17306 13.3996C9.17306 13.7309 8.90443 13.9996 8.57306 13.9996H1.9064Z",
490
+ fillRule: "evenodd",
491
+ clipRule: "evenodd"
492
+ }
493
+ }, {
494
+ tag: "path",
495
+ attrs: {
496
+ fill: "currentColor",
497
+ d: "M12.4267 14.2667C12.4267 14.5981 12.1581 14.8667 11.8267 14.8667C11.4953 14.8667 11.2267 14.5981 11.2267 14.2667V3.18198L9.98447 4.42422C9.75015 4.65853 9.37026 4.65853 9.13594 4.42422C8.90163 4.1899 8.90163 3.81 9.13594 3.57569L11.4026 1.30902C11.6369 1.07471 12.0168 1.07471 12.2511 1.30902L14.5178 3.57569C14.7521 3.81 14.7521 4.1899 14.5178 4.42422C14.2835 4.65853 13.9036 4.65853 13.6693 4.42422L12.4267 3.18165V14.2667Z"
498
+ }
499
+ }]
500
+ }, ke = w(function(t, r) {
501
+ return p(x, Object.assign({}, t, {
320
502
  id: "expand-ascending-icon",
321
- ref: t,
322
- icon: Bt
503
+ ref: r,
504
+ icon: Zt
323
505
  }));
324
506
  });
325
- De.displayName = "ExpandAscendingIcon";
326
- var Ft = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9064 12.7998C1.57503 12.7998 1.3064 13.0684 1.3064 13.3998C1.3064 13.7311 1.57503 13.9998 1.9064 13.9998H4.57306C4.90443 13.9998 5.17306 13.7311 5.17306 13.3998C5.17306 13.0684 4.90443 12.7998 4.57306 12.7998H1.9064ZM1.3064 9.80015C1.3064 9.46878 1.57503 9.20015 1.9064 9.20015H5.9064C6.23777 9.20015 6.5064 9.46878 6.5064 9.80015C6.5064 10.1315 6.23777 10.4001 5.9064 10.4001H1.9064C1.57503 10.4001 1.3064 10.1315 1.3064 9.80015ZM1.9064 5.60029C1.57503 5.60029 1.3064 5.86892 1.3064 6.20029C1.3064 6.53166 1.57503 6.80029 1.9064 6.80029H7.23973C7.5711 6.80029 7.83973 6.53166 7.83973 6.20029C7.83973 5.86892 7.5711 5.60029 7.23973 5.60029H1.9064ZM1.9064 2.00044C1.57503 2.00044 1.3064 2.26907 1.3064 2.60044C1.3064 2.93181 1.57503 3.20044 1.9064 3.20044H8.57306C8.90443 3.20044 9.17306 2.93181 9.17306 2.60044C9.17306 2.26907 8.90443 2.00044 8.57306 2.00044H1.9064Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4267 1.7333C12.4267 1.40193 12.1581 1.1333 11.8267 1.1333C11.4953 1.1333 11.2267 1.40193 11.2267 1.7333V12.818L9.98447 11.5758C9.75015 11.3415 9.37026 11.3415 9.13594 11.5758C8.90163 11.8101 8.90163 12.19 9.13594 12.4243L11.4026 14.691C11.6369 14.9253 12.0168 14.9253 12.2511 14.691L14.5178 12.4243C14.7521 12.19 14.7521 11.8101 14.5178 11.5758C14.2835 11.3415 13.9036 11.3415 13.6693 11.5758L12.4267 12.8183V1.7333Z" } }] }, He = y(function(e, t) {
327
- return _(x, Object.assign({}, e, {
507
+ ke.displayName = "ExpandAscendingIcon";
508
+ const jt = {
509
+ tag: "svg",
510
+ attrs: {
511
+ xmlns: "http://www.w3.org/2000/svg",
512
+ fill: "none",
513
+ viewBox: "0 0 16 16",
514
+ width: "1em",
515
+ height: "1em"
516
+ },
517
+ children: [{
518
+ tag: "path",
519
+ attrs: {
520
+ fill: "currentColor",
521
+ d: "M1.9064 12.7998C1.57503 12.7998 1.3064 13.0684 1.3064 13.3998C1.3064 13.7311 1.57503 13.9998 1.9064 13.9998H4.57306C4.90443 13.9998 5.17306 13.7311 5.17306 13.3998C5.17306 13.0684 4.90443 12.7998 4.57306 12.7998H1.9064ZM1.3064 9.80015C1.3064 9.46878 1.57503 9.20015 1.9064 9.20015H5.9064C6.23777 9.20015 6.5064 9.46878 6.5064 9.80015C6.5064 10.1315 6.23777 10.4001 5.9064 10.4001H1.9064C1.57503 10.4001 1.3064 10.1315 1.3064 9.80015ZM1.9064 5.60029C1.57503 5.60029 1.3064 5.86892 1.3064 6.20029C1.3064 6.53166 1.57503 6.80029 1.9064 6.80029H7.23973C7.5711 6.80029 7.83973 6.53166 7.83973 6.20029C7.83973 5.86892 7.5711 5.60029 7.23973 5.60029H1.9064ZM1.9064 2.00044C1.57503 2.00044 1.3064 2.26907 1.3064 2.60044C1.3064 2.93181 1.57503 3.20044 1.9064 3.20044H8.57306C8.90443 3.20044 9.17306 2.93181 9.17306 2.60044C9.17306 2.26907 8.90443 2.00044 8.57306 2.00044H1.9064Z",
522
+ fillRule: "evenodd",
523
+ clipRule: "evenodd"
524
+ }
525
+ }, {
526
+ tag: "path",
527
+ attrs: {
528
+ fill: "currentColor",
529
+ d: "M12.4267 1.7333C12.4267 1.40193 12.1581 1.1333 11.8267 1.1333C11.4953 1.1333 11.2267 1.40193 11.2267 1.7333V12.818L9.98447 11.5758C9.75015 11.3415 9.37026 11.3415 9.13594 11.5758C8.90163 11.8101 8.90163 12.19 9.13594 12.4243L11.4026 14.691C11.6369 14.9253 12.0168 14.9253 12.2511 14.691L14.5178 12.4243C14.7521 12.19 14.7521 11.8101 14.5178 11.5758C14.2835 11.3415 13.9036 11.3415 13.6693 11.5758L12.4267 12.8183V1.7333Z"
530
+ }
531
+ }]
532
+ }, De = w(function(t, r) {
533
+ return p(x, Object.assign({}, t, {
328
534
  id: "expand-descending-icon",
329
- ref: t,
330
- icon: Ft
535
+ ref: r,
536
+ icon: jt
331
537
  }));
332
538
  });
333
- He.displayName = "ExpandDescendingIcon";
334
- var Vt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z" } }] }, J = y(function(e, t) {
335
- return _(x, Object.assign({}, e, {
539
+ De.displayName = "ExpandDescendingIcon";
540
+ const Bt = {
541
+ tag: "svg",
542
+ attrs: {
543
+ xmlns: "http://www.w3.org/2000/svg",
544
+ fill: "none",
545
+ viewBox: "0 0 16 16",
546
+ width: "1em",
547
+ height: "1em"
548
+ },
549
+ children: [{
550
+ tag: "path",
551
+ attrs: {
552
+ fill: "currentColor",
553
+ 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"
554
+ }
555
+ }]
556
+ }, K = w(function(t, r) {
557
+ return p(x, Object.assign({}, t, {
336
558
  id: "increase-icon",
337
- ref: t,
338
- icon: Vt
559
+ ref: r,
560
+ icon: Bt
339
561
  }));
340
562
  });
341
- J.displayName = "IncreaseIcon";
342
- var Gt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ue = y(function(e, t) {
343
- return _(x, Object.assign({}, e, {
563
+ K.displayName = "IncreaseIcon";
564
+ const Ft = {
565
+ tag: "svg",
566
+ attrs: {
567
+ xmlns: "http://www.w3.org/2000/svg",
568
+ fill: "none",
569
+ viewBox: "0 0 16 16",
570
+ width: "1em",
571
+ height: "1em"
572
+ },
573
+ children: [{
574
+ tag: "path",
575
+ attrs: {
576
+ fill: "currentColor",
577
+ 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",
578
+ fillRule: "evenodd",
579
+ clipRule: "evenodd"
580
+ }
581
+ }]
582
+ }, $e = w(function(t, r) {
583
+ return p(x, Object.assign({}, t, {
344
584
  id: "more-down-icon",
345
- ref: t,
346
- icon: Gt
585
+ ref: r,
586
+ icon: Ft
347
587
  }));
348
588
  });
349
- Ue.displayName = "MoreDownIcon";
350
- var Wt = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_622_8", width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { fill: "currentColor", mask: "url(#mask0_622_8)" }, children: [{ tag: "path", attrs: { d: "M6 5C6.55228 5 7 4.55228 7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z" } }, { tag: "path", attrs: { d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z" } }, { tag: "path", attrs: { d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z" } }, { tag: "path", attrs: { d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z" } }, { tag: "path", attrs: { d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z" } }, { tag: "path", attrs: { d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z" } }] }] }, Pe = y(function(e, t) {
351
- return _(x, Object.assign({}, e, {
589
+ $e.displayName = "MoreDownIcon";
590
+ const Vt = {
591
+ tag: "svg",
592
+ attrs: {
593
+ xmlns: "http://www.w3.org/2000/svg",
594
+ fill: "none",
595
+ viewBox: "0 0 16 16",
596
+ width: "1em",
597
+ height: "1em"
598
+ },
599
+ children: [
600
+ {
601
+ tag: "path",
602
+ attrs: {
603
+ fill: "currentColor",
604
+ d: "M6 5C6.55228 5 7 4.55228 7 4C7 3.44772 6.55228 3 6 3C5.44772 3 5 3.44772 5 4C5 4.55228 5.44772 5 6 5Z"
605
+ }
606
+ },
607
+ {
608
+ tag: "path",
609
+ attrs: {
610
+ fill: "currentColor",
611
+ d: "M6 9C6.55228 9 7 8.55229 7 8C7 7.44772 6.55228 7 6 7C5.44772 7 5 7.44772 5 8C5 8.55229 5.44772 9 6 9Z"
612
+ }
613
+ },
614
+ {
615
+ tag: "path",
616
+ attrs: {
617
+ fill: "currentColor",
618
+ d: "M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z"
619
+ }
620
+ },
621
+ {
622
+ tag: "path",
623
+ attrs: {
624
+ fill: "currentColor",
625
+ d: "M10 5C10.5523 5 11 4.55228 11 4C11 3.44772 10.5523 3 10 3C9.44771 3 9 3.44772 9 4C9 4.55228 9.44771 5 10 5Z"
626
+ }
627
+ },
628
+ {
629
+ tag: "path",
630
+ attrs: {
631
+ fill: "currentColor",
632
+ d: "M11 8C11 8.55229 10.5523 9 10 9C9.44771 9 9 8.55229 9 8C9 7.44772 9.44771 7 10 7C10.5523 7 11 7.44772 11 8Z"
633
+ }
634
+ },
635
+ {
636
+ tag: "path",
637
+ attrs: {
638
+ fill: "currentColor",
639
+ d: "M10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11C9.44771 11 9 11.4477 9 12C9 12.5523 9.44771 13 10 13Z"
640
+ }
641
+ }
642
+ ]
643
+ }, He = w(function(t, r) {
644
+ return p(x, Object.assign({}, t, {
352
645
  id: "sequence-icon",
353
- ref: t,
354
- icon: Wt
646
+ ref: r,
647
+ icon: Vt
355
648
  }));
356
649
  });
357
- Pe.displayName = "SequenceIcon";
358
- function zt() {
359
- const e = E(m), t = at(e.customSortState$);
360
- return !t || !t.location ? null : /* @__PURE__ */ c(Yt, { state: t });
650
+ He.displayName = "SequenceIcon";
651
+ function Gt() {
652
+ const e = R(C), t = ct(e.customSortState$);
653
+ return !t || !t.location ? null : /* @__PURE__ */ c(Wt, { state: t });
361
654
  }
362
- function Yt({ state: e }) {
363
- const t = E(Ie), n = E(P), r = E(m), [o, i] = j(!1), [s, a] = j(0), l = Te(null), { range: u, unitId: w, subUnitId: C } = e.location, T = r.getTitles(o), [v, A] = j([
364
- { type: U.ASC, colIndex: u.startColumn }
365
- ]), B = O((d, p) => {
366
- const $ = [...v];
367
- p === null ? $.splice(d, 1) : $[d] = p, A($);
368
- }, [v]), h = O(
369
- qe(() => {
370
- const d = [...v], p = Xt(u, v);
371
- p !== null && (d.push({ type: U.ASC, colIndex: p }), A(d));
655
+ function Wt({ state: e }) {
656
+ const t = R(Ie), r = R(H), n = R(C), [o, s] = P(!1), [i, a] = P(0), l = Ee(null), { range: u, unitId: _, subUnitId: v } = e.location, E = n.getTitles(o), [m, A] = P([
657
+ { type: $.ASC, colIndex: u.startColumn }
658
+ ]), j = T((d, S) => {
659
+ const U = [...m];
660
+ S === null ? U.splice(d, 1) : U[d] = S, A(U);
661
+ }, [m]), h = T(
662
+ ze(() => {
663
+ const d = [...m], S = zt(u, m);
664
+ S !== null && (d.push({ type: $.ASC, colIndex: S }), A(d));
372
665
  }, 200),
373
- [v, u]
374
- ), q = O((d, p) => {
375
- t.applySort({ range: u, orderRules: d, hasTitle: p }), r.closeCustomSortPanel();
376
- }, [t, r, u]), Be = O(() => {
377
- r.closeCustomSortPanel();
378
- }, [r]), Fe = O((d) => {
379
- i(d), d ? r.setSelection(w, C, { ...u, startRow: u.startRow + 1 }) : r.setSelection(w, C, u);
380
- }, [r, u, C, w]);
381
- Oe(() => {
382
- l.current && v.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
383
- }, [v]);
384
- const Ve = v.length < T.length, ve = v.map((d) => ({ ...d, id: `${d.colIndex}` }));
666
+ [m, u]
667
+ ), z = T((d, S) => {
668
+ t.applySort({ range: u, orderRules: d, hasTitle: S }), n.closeCustomSortPanel();
669
+ }, [t, n, u]), je = T(() => {
670
+ n.closeCustomSortPanel();
671
+ }, [n]), Be = T((d) => {
672
+ s(d), d ? n.setSelection(_, v, { ...u, startRow: u.startRow + 1 }) : n.setSelection(_, v, u);
673
+ }, [n, u, v, _]);
674
+ Te(() => {
675
+ l.current && m.length > 5 && (l.current.scrollTop = l.current.scrollHeight);
676
+ }, [m]);
677
+ const Fe = m.length < E.length, Ce = m.map((d) => ({ ...d, id: `${d.colIndex}` }));
385
678
  return /* @__PURE__ */ g("div", { children: [
386
679
  /* @__PURE__ */ g("div", { onMouseDown: (d) => {
387
680
  d.stopPropagation();
388
681
  }, children: [
389
682
  /* @__PURE__ */ g("div", { className: "univer-flex univer-items-center univer-justify-between", children: [
390
- /* @__PURE__ */ c(yt, { checked: o, onChange: (d) => Fe(!!d), children: n.t("sheets-sort.dialog.first-row-check") }),
391
- Ve ? /* @__PURE__ */ g(
683
+ /* @__PURE__ */ c(pt, { checked: o, onChange: (d) => Be(!!d), children: r.t("sheets-sort.dialog.first-row-check") }),
684
+ Fe ? /* @__PURE__ */ g(
392
685
  "div",
393
686
  {
394
687
  className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base",
395
688
  onClick: h,
396
689
  children: [
397
- /* @__PURE__ */ c(J, {}),
398
- /* @__PURE__ */ c("span", { className: "univer-ml-1.5", children: n.t("sheets-sort.dialog.add-condition") })
690
+ /* @__PURE__ */ c(K, {}),
691
+ /* @__PURE__ */ c("span", { className: "univer-ml-1.5", children: r.t("sheets-sort.dialog.add-condition") })
399
692
  ]
400
693
  }
401
694
  ) : /* @__PURE__ */ g(
@@ -403,8 +696,8 @@ function Yt({ state: e }) {
403
696
  {
404
697
  className: "univer-flex univer-cursor-pointer univer-select-none univer-items-center univer-text-base univer-text-primary-500 disabled:univer-cursor-not-allowed disabled:univer-divide-opacity-30 disabled:univer-text-gray-800",
405
698
  children: [
406
- /* @__PURE__ */ c(J, {}),
407
- /* @__PURE__ */ c("span", { className: "univer-ml-1.5 univer-text-xs", children: n.t("sheets-sort.dialog.add-condition") })
699
+ /* @__PURE__ */ c(K, {}),
700
+ /* @__PURE__ */ c("span", { className: "univer-ml-1.5 univer-text-xs", children: r.t("sheets-sort.dialog.add-condition") })
408
701
  ]
409
702
  }
410
703
  )
@@ -413,27 +706,27 @@ function Yt({ state: e }) {
413
706
  "div",
414
707
  {
415
708
  ref: l,
416
- className: K("univer-max-h-[310px] univer-overflow-y-auto univer-overflow-x-hidden", Ee),
709
+ className: X("univer-max-h-[310px] univer-overflow-y-auto univer-overflow-x-hidden", Re),
417
710
  onScroll: (d) => {
418
- const p = d.currentTarget.scrollTop;
419
- a(p);
711
+ const S = d.currentTarget.scrollTop;
712
+ a(S);
420
713
  },
421
714
  children: /* @__PURE__ */ c(
422
- _t,
715
+ xt,
423
716
  {
424
717
  className: "[&_.react-grid-item]:univer-transition-none [&_.react-grid-placeholder]:univer-rounded [&_.react-grid-placeholder]:!univer-bg-gray-200",
425
- list: ve,
718
+ list: Ce,
426
719
  onListChange: A,
427
720
  idKey: "id",
428
721
  draggableHandle: "[data-u-comp=sort-panel-item-handler]",
429
722
  itemRender: (d) => /* @__PURE__ */ c(
430
723
  qt,
431
724
  {
432
- titles: T,
433
- list: ve,
725
+ titles: E,
726
+ list: Ce,
434
727
  item: d,
435
- onChange: (p, $) => B($, p),
436
- scrollPosition: s
728
+ onChange: (S, U) => j(U, S),
729
+ scrollPosition: i
437
730
  }
438
731
  ),
439
732
  rowHeight: 32,
@@ -445,36 +738,36 @@ function Yt({ state: e }) {
445
738
  ] }),
446
739
  /* @__PURE__ */ g("div", { className: "univer-mt-5 univer-flex univer-justify-end", children: [
447
740
  /* @__PURE__ */ c(
448
- G,
741
+ V,
449
742
  {
450
743
  className: "univer-ml-3",
451
- onClick: () => Be(),
452
- children: n.t("sheets-sort.dialog.cancel")
744
+ onClick: () => je(),
745
+ children: r.t("sheets-sort.dialog.cancel")
453
746
  }
454
747
  ),
455
748
  /* @__PURE__ */ c(
456
- G,
749
+ V,
457
750
  {
458
751
  className: "univer-ml-3",
459
752
  variant: "primary",
460
- onClick: () => q(v, o),
461
- children: n.t("sheets-sort.dialog.confirm")
753
+ onClick: () => z(m, o),
754
+ children: r.t("sheets-sort.dialog.confirm")
462
755
  }
463
756
  )
464
757
  ] })
465
758
  ] });
466
759
  }
467
760
  function qt(e) {
468
- var B;
469
- const { list: t, item: n, titles: r, onChange: o, scrollPosition: i } = e, s = E(P), a = r.filter((h) => !t.some((q) => q.colIndex === h.index) || h.index === n.colIndex), l = t.findIndex((h) => h.colIndex === n.colIndex), u = O((h) => {
470
- o({ ...n, colIndex: h.index }, l), C(!1);
471
- }, [l, n, o]), [w, C] = j(!1), T = (h) => {
472
- C(h);
761
+ var j;
762
+ const { list: t, item: r, titles: n, onChange: o, scrollPosition: s } = e, i = R(H), a = n.filter((h) => !t.some((z) => z.colIndex === h.index) || h.index === r.colIndex), l = t.findIndex((h) => h.colIndex === r.colIndex), u = T((h) => {
763
+ o({ ...r, colIndex: h.index }, l), v(!1);
764
+ }, [l, r, o]), [_, v] = P(!1), E = (h) => {
765
+ v(h);
473
766
  };
474
- Oe(() => {
475
- C(!1);
476
- }, [i]);
477
- const v = t.length > 1, A = (B = r.find((h) => h.index === n.colIndex)) == null ? void 0 : B.label;
767
+ Te(() => {
768
+ v(!1);
769
+ }, [s]);
770
+ const m = t.length > 1, A = (j = n.find((h) => h.index === r.colIndex)) == null ? void 0 : j.label;
478
771
  return /* @__PURE__ */ g("div", { className: "univer-grid univer-grid-flow-col univer-grid-cols-2 univer-items-center univer-gap-2", children: [
479
772
  /* @__PURE__ */ g("div", { className: "univer-flex univer-items-center", children: [
480
773
  /* @__PURE__ */ c(
@@ -482,16 +775,16 @@ function qt(e) {
482
775
  {
483
776
  "data-u-comp": "sort-panel-item-handler",
484
777
  className: "univer-flex univer-cursor-pointer univer-items-center univer-justify-center univer-text-base univer-text-gray-700",
485
- children: /* @__PURE__ */ c(Pe, {})
778
+ children: /* @__PURE__ */ c(He, {})
486
779
  }
487
780
  ),
488
781
  /* @__PURE__ */ c(
489
- xt,
782
+ _t,
490
783
  {
491
784
  overlay: /* @__PURE__ */ c(
492
785
  "ul",
493
786
  {
494
- className: K("univer-my-0 univer-box-border univer-grid univer-max-h-[310px] univer-w-[var(--radix-popper-anchor-width)] univer-items-center univer-gap-1 univer-overflow-y-auto univer-overflow-x-hidden univer-rounded-lg univer-border univer-bg-white univer-p-1 univer-text-base univer-shadow-lg", Ee),
787
+ className: X("univer-my-0 univer-box-border univer-grid univer-max-h-[310px] univer-w-[var(--radix-popper-anchor-width)] univer-items-center univer-gap-1 univer-overflow-y-auto univer-overflow-x-hidden univer-rounded-lg univer-border univer-bg-white univer-p-1 univer-text-base univer-shadow-lg", Re),
495
788
  children: a.map((h) => /* @__PURE__ */ g(
496
789
  "li",
497
790
  {
@@ -499,19 +792,19 @@ function qt(e) {
499
792
  className: "univer-relative univer-box-border univer-flex univer-h-7 univer-cursor-pointer univer-list-none univer-items-center univer-justify-between univer-rounded univer-px-2 univer-text-sm univer-transition-all hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
500
793
  children: [
501
794
  /* @__PURE__ */ c("span", { className: "univer-max-w-[220px] univer-truncate", children: h.label }),
502
- /* @__PURE__ */ c("span", { children: h.index === n.colIndex && /* @__PURE__ */ c(Ne, {}) })
795
+ /* @__PURE__ */ c("span", { children: h.index === r.colIndex && /* @__PURE__ */ c(Oe, {}) })
503
796
  ]
504
797
  },
505
798
  h.index
506
799
  ))
507
800
  }
508
801
  ),
509
- open: w,
510
- onOpenChange: T,
802
+ open: _,
803
+ onOpenChange: E,
511
804
  children: /* @__PURE__ */ g(
512
805
  "div",
513
806
  {
514
- className: K("univer-ml-2 univer-flex univer-w-full univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-md univer-py-1.5 univer-text-sm univer-text-gray-900 dark:!univer-text-white"),
807
+ className: X("univer-ml-2 univer-flex univer-w-full univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-md univer-py-1.5 univer-text-sm univer-text-gray-900 dark:!univer-text-white"),
515
808
  children: [
516
809
  /* @__PURE__ */ c(
517
810
  "span",
@@ -520,7 +813,7 @@ function qt(e) {
520
813
  children: A
521
814
  }
522
815
  ),
523
- /* @__PURE__ */ c(Ue, {})
816
+ /* @__PURE__ */ c($e, {})
524
817
  ]
525
818
  }
526
819
  )
@@ -529,15 +822,15 @@ function qt(e) {
529
822
  ] }),
530
823
  /* @__PURE__ */ g("div", { className: "univer-flex univer-items-center univer-justify-end univer-gap-2", children: [
531
824
  /* @__PURE__ */ g(
532
- Re,
825
+ Me,
533
826
  {
534
- value: n.type,
827
+ value: r.type,
535
828
  onChange: (h) => {
536
- o({ ...n, type: h }, l);
829
+ o({ ...r, type: h }, l);
537
830
  },
538
831
  children: [
539
- /* @__PURE__ */ c(V, { value: U.ASC, children: s.t("sheets-sort.general.sort-asc") }),
540
- /* @__PURE__ */ c(V, { value: U.DESC, children: s.t("sheets-sort.general.sort-desc") })
832
+ /* @__PURE__ */ c(F, { value: $.ASC, children: i.t("sheets-sort.general.sort-asc") }),
833
+ /* @__PURE__ */ c(F, { value: $.DESC, children: i.t("sheets-sort.general.sort-desc") })
541
834
  ]
542
835
  }
543
836
  ),
@@ -546,328 +839,328 @@ function qt(e) {
546
839
  {
547
840
  className: "univer-flex univer-cursor-pointer univer-items-center univer-text-sm univer-transition-colors hover:univer-text-red-500",
548
841
  onClick: () => o(null, l),
549
- children: !v && /* @__PURE__ */ c(Le, {})
842
+ children: !m && /* @__PURE__ */ c(Le, {})
550
843
  }
551
844
  )
552
845
  ] })
553
846
  ] });
554
847
  }
555
- function Xt(e, t) {
556
- const { startColumn: n, endColumn: r } = e, o = new Set(t.map((i) => i == null ? void 0 : i.colIndex));
557
- for (let i = n; i <= r; i++)
558
- if (!o.has(i))
559
- return i;
848
+ function zt(e, t) {
849
+ const { startColumn: r, endColumn: n } = e, o = new Set(t.map((s) => s == null ? void 0 : s.colIndex));
850
+ for (let s = r; s <= n; s++)
851
+ if (!o.has(s))
852
+ return s;
560
853
  return null;
561
854
  }
562
- function Kt(e) {
563
- const { range: t, colIndex: n, onClose: r } = e, o = E(m), i = E(_e), s = E(P), a = O((l) => {
564
- const { unitId: u, subUnitId: w } = ot(i) || {};
565
- if (t && u && w) {
566
- const C = { ...t, startRow: t.startRow + 1 };
567
- o.triggerSortDirectly(l, !1, { unitId: u, subUnitId: w, range: C, colIndex: n });
855
+ function Yt(e) {
856
+ const { range: t, colIndex: r, onClose: n } = e, o = R(C), s = R(xe), i = R(H), a = T((l) => {
857
+ const { unitId: u, subUnitId: _ } = nt(s) || {};
858
+ if (t && u && _) {
859
+ const v = { ...t, startRow: t.startRow + 1 };
860
+ o.triggerSortDirectly(l, !1, { unitId: u, subUnitId: _, range: v, colIndex: r });
568
861
  } else
569
- throw new Error(`Cannot find the target to sort. unitId: ${u}, subUnitId: ${w}, range: ${t}, colIndex: ${n}`);
570
- r();
571
- }, [t, n, o, i, r]);
572
- return /* @__PURE__ */ g(wt, { className: "univer-mb-3 univer-w-full univer-grid-cols-2", children: [
573
- /* @__PURE__ */ g(G, { onClick: () => a(!0), children: [
574
- /* @__PURE__ */ c(le, {}),
575
- s.t("sheets-sort.general.sort-asc")
862
+ throw new Error(`Cannot find the target to sort. unitId: ${u}, subUnitId: ${_}, range: ${t}, colIndex: ${r}`);
863
+ n();
864
+ }, [t, r, o, s, n]);
865
+ return /* @__PURE__ */ g(yt, { className: "univer-mb-3 univer-w-full univer-grid-cols-2", children: [
866
+ /* @__PURE__ */ g(V, { onClick: () => a(!0), children: [
867
+ /* @__PURE__ */ c(ae, {}),
868
+ i.t("sheets-sort.general.sort-asc")
576
869
  ] }),
577
- /* @__PURE__ */ g(G, { onClick: () => a(!1), children: [
578
- /* @__PURE__ */ c(de, {}),
579
- s.t("sheets-sort.general.sort-desc")
870
+ /* @__PURE__ */ g(V, { onClick: () => a(!1), children: [
871
+ /* @__PURE__ */ c(le, {}),
872
+ i.t("sheets-sort.general.sort-desc")
580
873
  ] })
581
874
  ] });
582
875
  }
583
- const Ae = "sheet.menu.sheets-sort", $e = "sheet.menu.sheets-sort-ctx", Z = "AscendingIcon", ue = "ExpandAscendingIcon", he = "DescendingIcon", ge = "ExpandDescendingIcon", me = "CustomSortIcon";
584
- function Jt(e) {
876
+ const Ae = "sheet.menu.sheets-sort", Ue = "sheet.menu.sheets-sort-ctx", Z = "AscendingIcon", de = "ExpandAscendingIcon", ue = "DescendingIcon", he = "ExpandDescendingIcon", ge = "CustomSortIcon";
877
+ function Xt(e) {
585
878
  return {
586
879
  id: Ae,
587
- type: S.SUBITEMS,
880
+ type: f.SUBITEMS,
588
881
  icon: Z,
589
882
  tooltip: "sheets-sort.general.sort",
590
- hidden$: Me(e, Y.UNIVER_SHEET),
591
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
883
+ hidden$: we(e, q.UNIVER_SHEET),
884
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
592
885
  };
593
886
  }
594
- function Qt(e) {
887
+ function Kt(e) {
595
888
  return {
596
- id: Q.id,
889
+ id: J.id,
597
890
  icon: Z,
598
891
  title: "sheets-sort.general.sort-asc-cur",
599
- type: S.BUTTON,
600
- hidden$: Mt(e)
892
+ type: f.BUTTON,
893
+ hidden$: wt(e)
601
894
  };
602
895
  }
603
- function er(e) {
896
+ function Jt(e) {
604
897
  return {
605
- id: ee.id,
898
+ id: Q.id,
606
899
  title: "sheets-sort.general.sort-asc-ext",
607
- icon: ue,
608
- type: S.BUTTON
900
+ icon: de,
901
+ type: f.BUTTON
609
902
  };
610
903
  }
611
- function tr(e) {
904
+ function Qt(e) {
612
905
  return {
613
- id: te.id,
906
+ id: ee.id,
614
907
  title: "sheets-sort.general.sort-desc-cur",
615
- icon: he,
616
- type: S.BUTTON
908
+ icon: ue,
909
+ type: f.BUTTON
617
910
  };
618
911
  }
619
- function rr(e) {
912
+ function er(e) {
620
913
  return {
621
- id: re.id,
914
+ id: te.id,
622
915
  title: "sheets-sort.general.sort-desc-ext",
623
- icon: ge,
624
- type: S.BUTTON
916
+ icon: he,
917
+ type: f.BUTTON
625
918
  };
626
919
  }
627
- function nr(e) {
920
+ function tr(e) {
628
921
  return {
629
- id: ne.id,
922
+ id: re.id,
630
923
  title: "sheets-sort.general.sort-custom",
631
- type: S.BUTTON,
632
- icon: me
924
+ type: f.BUTTON,
925
+ icon: ge
633
926
  };
634
927
  }
635
- function or(e) {
928
+ function rr(e) {
636
929
  return {
637
- id: $e,
930
+ id: Ue,
638
931
  title: "sheets-sort.general.sort",
639
- type: S.SUBITEMS,
932
+ type: f.SUBITEMS,
640
933
  icon: Z,
641
- hidden$: Me(e, Y.UNIVER_SHEET),
642
- disabled$: D(e, {
934
+ hidden$: we(e, q.UNIVER_SHEET),
935
+ disabled$: k(e, {
643
936
  workbookTypes: [L],
644
- worksheetTypes: [N, k],
937
+ worksheetTypes: [O, N],
645
938
  rangeTypes: [b]
646
939
  })
647
940
  };
648
941
  }
649
- function ir(e) {
942
+ function nr(e) {
650
943
  return {
651
- id: oe.id,
944
+ id: ne.id,
652
945
  title: "sheets-sort.general.sort-asc-cur",
653
- type: S.BUTTON,
946
+ type: f.BUTTON,
654
947
  icon: Z,
655
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
948
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
656
949
  };
657
950
  }
658
- function sr(e) {
951
+ function or(e) {
659
952
  return {
660
- id: ie.id,
953
+ id: oe.id,
661
954
  title: "sheets-sort.general.sort-asc-ext",
662
- type: S.BUTTON,
663
- icon: ue,
664
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
955
+ type: f.BUTTON,
956
+ icon: de,
957
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
665
958
  };
666
959
  }
667
- function cr(e) {
960
+ function sr(e) {
668
961
  return {
669
962
  id: se.id,
670
963
  title: "sheets-sort.general.sort-desc-cur",
671
- type: S.BUTTON,
672
- icon: he,
673
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
964
+ type: f.BUTTON,
965
+ icon: ue,
966
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
674
967
  };
675
968
  }
676
- function ar(e) {
969
+ function ir(e) {
677
970
  return {
678
- id: ce.id,
971
+ id: ie.id,
679
972
  title: "sheets-sort.general.sort-desc-ext",
680
- type: S.BUTTON,
681
- icon: ge,
682
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
973
+ type: f.BUTTON,
974
+ icon: he,
975
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
683
976
  };
684
977
  }
685
- function lr(e) {
978
+ function cr(e) {
686
979
  return {
687
- id: ae.id,
980
+ id: ce.id,
688
981
  title: "sheets-sort.general.sort-custom",
689
- type: S.BUTTON,
690
- icon: me,
691
- disabled$: D(e, { workbookTypes: [L], worksheetTypes: [N, k], rangeTypes: [b] })
982
+ type: f.BUTTON,
983
+ icon: ge,
984
+ disabled$: k(e, { workbookTypes: [L], worksheetTypes: [O, N], rangeTypes: [b] })
692
985
  };
693
986
  }
694
- const dr = {
695
- [ut.ORGANIZATION]: {
987
+ const ar = {
988
+ [dt.ORGANIZATION]: {
696
989
  [Ae]: {
697
990
  order: 3,
698
- menuItemFactory: Jt,
699
- [Q.id]: {
991
+ menuItemFactory: Xt,
992
+ [J.id]: {
700
993
  order: 0,
701
- menuItemFactory: Qt
994
+ menuItemFactory: Kt
702
995
  },
703
- [ee.id]: {
996
+ [Q.id]: {
704
997
  order: 1,
705
- menuItemFactory: er
998
+ menuItemFactory: Jt
706
999
  },
707
- [te.id]: {
1000
+ [ee.id]: {
708
1001
  order: 2,
709
- menuItemFactory: tr
1002
+ menuItemFactory: Qt
710
1003
  },
711
- [re.id]: {
1004
+ [te.id]: {
712
1005
  order: 3,
713
- menuItemFactory: rr
1006
+ menuItemFactory: er
714
1007
  },
715
- [ne.id]: {
1008
+ [re.id]: {
716
1009
  order: 4,
717
- menuItemFactory: nr
1010
+ menuItemFactory: tr
718
1011
  }
719
1012
  }
720
1013
  },
721
- [lt.MAIN_AREA]: {
722
- [dt.DATA]: {
723
- [$e]: {
1014
+ [at.MAIN_AREA]: {
1015
+ [lt.DATA]: {
1016
+ [Ue]: {
724
1017
  order: 0,
725
- menuItemFactory: or,
726
- [oe.id]: {
1018
+ menuItemFactory: rr,
1019
+ [ne.id]: {
727
1020
  order: 0,
728
- menuItemFactory: ir
1021
+ menuItemFactory: nr
729
1022
  },
730
- [ie.id]: {
1023
+ [oe.id]: {
731
1024
  order: 1,
732
- menuItemFactory: sr
1025
+ menuItemFactory: or
733
1026
  },
734
1027
  [se.id]: {
735
1028
  order: 2,
736
- menuItemFactory: cr
1029
+ menuItemFactory: sr
737
1030
  },
738
- [ce.id]: {
1031
+ [ie.id]: {
739
1032
  order: 3,
740
- menuItemFactory: ar
1033
+ menuItemFactory: ir
741
1034
  },
742
- [ae.id]: {
1035
+ [ce.id]: {
743
1036
  order: 4,
744
- menuItemFactory: lr
1037
+ menuItemFactory: cr
745
1038
  }
746
1039
  }
747
1040
  }
748
1041
  }
749
1042
  };
750
- var ur = Object.getOwnPropertyDescriptor, hr = (e, t, n, r) => {
751
- for (var o = r > 1 ? void 0 : r ? ur(t, n) : t, i = e.length - 1, s; i >= 0; i--)
752
- (s = e[i]) && (o = s(o) || o);
1043
+ var lr = Object.getOwnPropertyDescriptor, dr = (e, t, r, n) => {
1044
+ for (var o = n > 1 ? void 0 : n ? lr(t, r) : t, s = e.length - 1, i; s >= 0; s--)
1045
+ (i = e[s]) && (o = i(o) || o);
753
1046
  return o;
754
- }, I = (e, t) => (n, r) => t(n, r, e);
755
- const pe = "custom-sort-dialog", je = 560, gr = 128;
756
- let W = class extends Xe {
757
- constructor(e, t, n, r, o, i, s, a, l, u) {
758
- super(), this._commandService = e, this._menuManagerService = t, this._dialogService = n, this._layoutService = r, this._uiPartsService = o, this._sheetRenderService = i, this._localeService = s, this._sheetsSortUIService = a, this._injector = l, this._componentManager = u, this._initCommands(), this._initMenu(), this._initUI();
1047
+ }, y = (e, t) => (r, n) => t(r, n, e);
1048
+ const Se = "custom-sort-dialog", Pe = 560, ur = 128;
1049
+ let G = class extends Ye {
1050
+ constructor(e, t, r, n, o, s, i, a, l, u) {
1051
+ super(), this._commandService = e, this._menuManagerService = t, this._dialogService = r, this._layoutService = n, this._uiPartsService = o, this._sheetRenderService = s, this._localeService = i, this._sheetsSortUIService = a, this._injector = l, this._componentManager = u, this._initCommands(), this._initMenu(), this._initUI();
759
1052
  }
760
1053
  _initMenu() {
761
- this._menuManagerService.mergeMenu(dr);
1054
+ this._menuManagerService.mergeMenu(ar);
762
1055
  }
763
1056
  _initCommands() {
764
1057
  [
1058
+ J,
765
1059
  Q,
766
1060
  ee,
767
1061
  te,
768
1062
  re,
769
1063
  ne,
770
1064
  oe,
771
- ie,
772
1065
  se,
773
- ce,
774
- ae
775
- ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(it.id));
1066
+ ie,
1067
+ ce
1068
+ ].forEach((e) => this.disposeWithMe(this._commandService.registerCommand(e))), this.disposeWithMe(this._sheetRenderService.registerSkeletonChangingMutations(ot.id));
776
1069
  }
777
1070
  _initUI() {
778
1071
  this.disposeWithMe(
779
- this._uiPartsService.registerComponent(Et.FILTER_PANEL_EMBED_POINT, () => ft(Kt, this._injector))
1072
+ this._uiPartsService.registerComponent(Rt.FILTER_PANEL_EMBED_POINT, () => vt(Yt, this._injector))
780
1073
  ), [
781
- ["CustomSortPanel", zt],
782
- [Z, le],
783
- [ue, De],
784
- [he, de],
785
- [ge, He],
786
- [me, ke]
1074
+ ["CustomSortPanel", Gt],
1075
+ [Z, ae],
1076
+ [de, ke],
1077
+ [ue, le],
1078
+ [he, De],
1079
+ [ge, Ne]
787
1080
  ].forEach(([e, t]) => {
788
1081
  this.disposeWithMe(
789
1082
  this._componentManager.register(e, t)
790
1083
  );
791
- }), this._sheetsSortUIService.customSortState$.pipe(pt(this.dispose$)).subscribe((e) => {
1084
+ }), this._sheetsSortUIService.customSortState$.pipe(St(this.dispose$)).subscribe((e) => {
792
1085
  e && e.show && e.location ? this._openCustomSortPanel(e.location) : e && !(e != null && e.show) && this._closePanel();
793
1086
  });
794
1087
  }
795
1088
  _openCustomSortPanel(e) {
796
1089
  this._dialogService.open({
797
- id: pe,
1090
+ id: Se,
798
1091
  draggable: !0,
799
- width: je,
1092
+ width: Pe,
800
1093
  title: { title: `${this._localeService.t("sheets-sort.general.sort-custom")}: ${It(e.range)}` },
801
1094
  children: { label: "CustomSortPanel" },
802
1095
  destroyOnClose: !0,
803
- defaultPosition: mr(),
1096
+ defaultPosition: hr(),
804
1097
  preservePositionOnDestroy: !1,
805
1098
  onClose: () => this._closePanel(),
806
1099
  mask: !0
807
1100
  });
808
1101
  }
809
1102
  _closePanel() {
810
- this._dialogService.close(pe), queueMicrotask(() => this._layoutService.focus());
1103
+ this._dialogService.close(Se), queueMicrotask(() => this._layoutService.focus());
811
1104
  }
812
1105
  };
813
- W = hr([
814
- I(0, xe),
815
- I(1, ht),
816
- I(2, gt),
817
- I(3, mt),
818
- I(4, vt),
819
- I(5, R(Rt)),
820
- I(6, R(P)),
821
- I(7, R(m)),
822
- I(8, R(we)),
823
- I(9, R(Ct))
824
- ], W);
825
- function mr() {
826
- return { x: (window.innerWidth - je) / 2, y: gr };
1106
+ G = dr([
1107
+ y(0, _e),
1108
+ y(1, ut),
1109
+ y(2, ht),
1110
+ y(3, gt),
1111
+ y(4, Ct),
1112
+ y(5, M(Mt)),
1113
+ y(6, M(H)),
1114
+ y(7, M(C)),
1115
+ y(8, M(ye)),
1116
+ y(9, M(mt))
1117
+ ], G);
1118
+ function hr() {
1119
+ return { x: (window.innerWidth - Pe) / 2, y: ur };
827
1120
  }
828
- var vr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, fr = (e, t, n) => t in e ? vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Sr = (e, t, n, r) => {
829
- for (var o = r > 1 ? void 0 : r ? Cr(t, n) : t, i = e.length - 1, s; i >= 0; i--)
830
- (s = e[i]) && (o = s(o) || o);
1121
+ var gr = Object.defineProperty, Cr = Object.getOwnPropertyDescriptor, mr = (e, t, r) => t in e ? gr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, vr = (e, t, r, n) => {
1122
+ for (var o = n > 1 ? void 0 : n ? Cr(t, r) : t, s = e.length - 1, i; s >= 0; s--)
1123
+ (i = e[s]) && (o = i(o) || o);
831
1124
  return o;
832
- }, ye = (e, t) => (n, r) => t(n, r, e), Ze = (e, t, n) => fr(e, typeof t != "symbol" ? t + "" : t, n);
833
- const pr = "SHEET_SORT_UI_PLUGIN";
834
- let z = class extends Qe {
835
- constructor(e = Se, t, n) {
836
- super(), this._config = e, this._injector = t, this._configService = n;
837
- const { ...r } = et(
1125
+ }, pe = (e, t) => (r, n) => t(r, n, e), Ze = (e, t, r) => mr(e, typeof t != "symbol" ? t + "" : t, r);
1126
+ const fr = "SHEET_SORT_UI_PLUGIN";
1127
+ let W = class extends Je {
1128
+ constructor(e = fe, t, r) {
1129
+ super(), this._config = e, this._injector = t, this._configService = r;
1130
+ const { ...n } = Qe(
838
1131
  {},
839
- Se,
1132
+ fe,
840
1133
  this._config
841
1134
  );
842
- this._configService.setConfig(kt, r);
1135
+ this._configService.setConfig(Nt, n);
843
1136
  }
844
1137
  onStarting() {
845
1138
  [
846
- [m],
847
- [W]
1139
+ [C],
1140
+ [G]
848
1141
  ].forEach((e) => this._injector.add(e));
849
1142
  }
850
1143
  onRendered() {
851
- this._injector.get(W);
1144
+ this._injector.get(G);
852
1145
  }
853
1146
  };
854
- Ze(z, "type", Y.UNIVER_SHEET);
855
- Ze(z, "pluginName", pr);
856
- z = Sr([
857
- Ke(st),
858
- ye(1, R(we)),
859
- ye(2, Je)
860
- ], z);
1147
+ Ze(W, "type", q.UNIVER_SHEET);
1148
+ Ze(W, "pluginName", fr);
1149
+ W = vr([
1150
+ Xe(st),
1151
+ pe(1, M(ye)),
1152
+ pe(2, Ke)
1153
+ ], W);
861
1154
  export {
862
- Q as SortRangeAscCommand,
863
- ee as SortRangeAscExtCommand,
864
- ie as SortRangeAscExtInCtxMenuCommand,
865
- oe as SortRangeAscInCtxMenuCommand,
866
- ne as SortRangeCustomCommand,
867
- ae as SortRangeCustomInCtxMenuCommand,
868
- te as SortRangeDescCommand,
869
- re as SortRangeDescExtCommand,
870
- ce as SortRangeDescExtInCtxMenuCommand,
1155
+ J as SortRangeAscCommand,
1156
+ Q as SortRangeAscExtCommand,
1157
+ oe as SortRangeAscExtInCtxMenuCommand,
1158
+ ne as SortRangeAscInCtxMenuCommand,
1159
+ re as SortRangeCustomCommand,
1160
+ ce as SortRangeCustomInCtxMenuCommand,
1161
+ ee as SortRangeDescCommand,
1162
+ te as SortRangeDescExtCommand,
1163
+ ie as SortRangeDescExtInCtxMenuCommand,
871
1164
  se as SortRangeDescInCtxMenuCommand,
872
- z as UniverSheetsSortUIPlugin
1165
+ W as UniverSheetsSortUIPlugin
873
1166
  };