@univerjs/sheets-hyper-link-ui 0.8.0-beta.0 → 0.8.0-nightly.202505271607

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,23 +1,23 @@
1
1
  var qn = Object.defineProperty;
2
2
  var Jn = (t, e, n) => e in t ? qn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var $ = (t, e, n) => Jn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { Tools as Se, IUniverInstanceService as K, ICommandService as ne, Inject as y, LocaleService as ut, IConfigService as Cn, UniverInstanceType as k, isValidRange as In, RANGE_TYPE as an, Rectangle as Ie, Injector as lt, Disposable as Y, Range as yn, ObjectMatrix as Qn, IContextService as er, ThemeService as tr, DataStreamTreeTokenType as cn, CustomRangeType as Ke, BuildTextUtils as fe, ColorKit as nr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as N, DisposableCollection as rr, FOCUSING_SHEET as Ct, generateRandomId as ir, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ce, DataValidationType as It, CommandType as dt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as sr, IPermissionService as or, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
- import { SetSelectionsOperation as En, SetWorksheetActiveOperation as Rn, rangeToDiscreteRange as dr, SheetsSelectionsService as kt, getSheetCommandTarget as Tt, RangeProtectionPermissionEditPoint as Ot, WorksheetEditPermission as Nt, WorksheetSetCellValuePermission as Pn, WorksheetInsertHyperlinkPermission as xt, WorkbookEditablePermission as Mt, SheetPermissionCheckController as Ln, RangeProtectionPermissionViewPoint as pr, WorksheetViewPermission as hr, WorkbookViewPermission as gr, WorkbookCopyPermission as vr, WorksheetCopyPermission as mr, ClearSelectionContentCommand as fr, ClearSelectionAllCommand as _r, ClearSelectionFormatCommand as Sr, SheetInterceptorService as Cr, INTERCEPTOR_POINT as Ir } from "@univerjs/sheets";
6
- import { SheetHyperLinkType as C, ERROR_RANGE as yr, HyperLinkModel as pt, RemoveHyperLinkMutation as Ne, AddHyperLinkMutation as xe, SheetsHyperLinkParserService as Ut, UpdateRichHyperLinkCommand as Er, UpdateHyperLinkCommand as Rr, AddRichHyperLinkCommand as Pr, AddHyperLinkCommand as Lr, CancelRichHyperLinkCommand as br, CancelHyperLinkCommand as wr, UniverSheetsHyperLinkPlugin as kr } from "@univerjs/sheets-hyper-link";
7
- import { ScrollToRangeOperation as bn, ISheetClipboardService as Tr, virtualizeDiscreteRanges as Pt, COPY_TYPE as Or, PREDEFINED_HOOK_NAME as $e, getRepeatRange as Nr, IEditorBridgeService as te, IMarkSelectionService as xr, SheetCanvasPopManagerService as Mr, getEditingCustomRangePosition as Ur, getCustomRangePosition as Hr, whenSheetEditorFocused as Dr, getCurrentRangeDisable$ as Ar, IAutoFillService as Vr, APPLY_TYPE as we, getAutoFillRepeatRange as $r, HoverManagerService as Br, HoverRenderController as Fr, SheetSkeletonManagerService as un } from "@univerjs/sheets-ui";
8
- import { MessageType as Te, clsx as je, FormLayout as ve, Input as ln, Select as yt, Button as dn, borderClassName as wn, Tooltip as Be } from "@univerjs/design";
4
+ import { Tools as Ie, IUniverInstanceService as K, ICommandService as ne, Inject as y, LocaleService as ut, IConfigService as Cn, UniverInstanceType as k, isValidRange as Sn, RANGE_TYPE as an, Rectangle as Se, Injector as lt, Disposable as Y, Range as yn, ObjectMatrix as Qn, IContextService as er, ThemeService as tr, DataStreamTreeTokenType as cn, CustomRangeType as Ke, BuildTextUtils as fe, ColorKit as nr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as x, DisposableCollection as rr, FOCUSING_SHEET as Ct, generateRandomId as ir, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ce, DataValidationType as St, CommandType as dt, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as or, IPermissionService as sr, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
+ import { SetSelectionsOperation as En, SetWorksheetActiveOperation as Rn, rangeToDiscreteRange as dr, SheetsSelectionsService as kt, getSheetCommandTarget as Tt, RangeProtectionPermissionEditPoint as Ot, WorksheetEditPermission as xt, WorksheetSetCellValuePermission as Pn, WorksheetInsertHyperlinkPermission as Nt, WorkbookEditablePermission as Mt, SheetPermissionCheckController as Ln, RangeProtectionPermissionViewPoint as pr, WorksheetViewPermission as hr, WorkbookViewPermission as gr, WorkbookCopyPermission as vr, WorksheetCopyPermission as mr, ClearSelectionContentCommand as fr, ClearSelectionAllCommand as _r, ClearSelectionFormatCommand as Ir, SheetInterceptorService as Cr, INTERCEPTOR_POINT as Sr } from "@univerjs/sheets";
6
+ import { SheetHyperLinkType as C, ERROR_RANGE as yr, HyperLinkModel as pt, RemoveHyperLinkMutation as xe, AddHyperLinkMutation as Ne, SheetsHyperLinkParserService as Ut, UpdateRichHyperLinkCommand as Er, UpdateHyperLinkCommand as Rr, AddRichHyperLinkCommand as Pr, AddHyperLinkCommand as Lr, CancelRichHyperLinkCommand as wr, CancelHyperLinkCommand as br, UniverSheetsHyperLinkPlugin as kr } from "@univerjs/sheets-hyper-link";
7
+ import { ScrollToRangeOperation as wn, ISheetClipboardService as Tr, virtualizeDiscreteRanges as Pt, COPY_TYPE as Or, PREDEFINED_HOOK_NAME as $e, getRepeatRange as xr, IEditorBridgeService as te, IMarkSelectionService as Nr, SheetCanvasPopManagerService as Mr, getEditingCustomRangePosition as Ur, getCustomRangePosition as Hr, whenSheetEditorFocused as Dr, getCurrentRangeDisable$ as Ar, IAutoFillService as Vr, APPLY_TYPE as be, getAutoFillRepeatRange as $r, HoverManagerService as Br, HoverRenderController as Fr, SheetSkeletonManagerService as un } from "@univerjs/sheets-ui";
8
+ import { MessageType as Te, clsx as je, FormLayout as ve, Input as ln, Select as yt, Button as dn, borderClassName as bn, Tooltip as Be } from "@univerjs/design";
9
9
  import { IDefinedNamesService as kn, deserializeRangeWithSheet as We, serializeRangeWithSheet as jr, serializeRangeToRefString as Wr, serializeRange as Zr } from "@univerjs/engine-formula";
10
- import { IMessageService as Tn, useDependency as I, useObservable as Gr, IZenZoneService as ht, useEvent as Kr, KeyCode as Lt, MenuItemType as On, MetaKeys as Yr, getMenuHiddenObservable as gt, ContextMenuPosition as zr, ContextMenuGroup as Xr, RibbonInsertGroup as qr, ComponentManager as Jr, IMenuManagerService as Qr, IShortcutService as ei } from "@univerjs/ui";
11
- import { DocSelectionRenderService as Nn, DocBackScrollRenderController as ti, DocCanvasPopManagerService as ni, calcDocRangePositions as ri, DocEventManagerService as pn, UniverDocsUIPlugin as ii } from "@univerjs/docs-ui";
10
+ import { IMessageService as Tn, useDependency as S, useObservable as Gr, IZenZoneService as ht, useEvent as Kr, KeyCode as Lt, MenuItemType as On, MetaKeys as Yr, getMenuHiddenObservable as gt, ContextMenuPosition as zr, ContextMenuGroup as Xr, RibbonInsertGroup as qr, ComponentManager as Jr, IMenuManagerService as Qr, IShortcutService as ei } from "@univerjs/ui";
11
+ import { DocSelectionRenderService as xn, DocBackScrollRenderController as ti, DocCanvasPopManagerService as ni, calcDocRangePositions as ri, DocEventManagerService as pn, UniverDocsUIPlugin as ii } from "@univerjs/docs-ui";
12
12
  import { IRenderManagerService as He } from "@univerjs/engine-render";
13
- import { Subject as si, BehaviorSubject as oi, of as oe, map as Ht, switchMap as Me, combineLatest as ai, debounceTime as Ze, Observable as ci } from "rxjs";
13
+ import { Subject as oi, BehaviorSubject as si, of as se, map as Ht, switchMap as Me, combineLatest as ai, debounceTime as Ze, Observable as ci } from "rxjs";
14
14
  import { DocSelectionManagerService as Ue } from "@univerjs/docs";
15
15
  import { jsxs as _e, jsx as m, Fragment as ui } from "react/jsx-runtime";
16
16
  import { RangeSelector as li } from "@univerjs/sheets-formula-ui";
17
- import { useState as Z, useMemo as Et, useRef as xn, useCallback as di, useEffect as ee, forwardRef as ue, createElement as le } from "react";
17
+ import { useState as Z, useMemo as Et, useRef as Nn, useCallback as di, useEffect as ee, forwardRef as ue, createElement as le } from "react";
18
18
  import { SheetDataValidationModel as hn } from "@univerjs/sheets-data-validation";
19
19
  function Ye(t) {
20
- return Se.isLegalUrl(t);
20
+ return Ie.isLegalUrl(t);
21
21
  }
22
22
  function pi(t) {
23
23
  return /^[a-zA-Z]+:\/\//.test(t);
@@ -40,22 +40,22 @@ function gi(t) {
40
40
  }
41
41
  const Mn = "sheets-hyper-link-ui.config", gn = {};
42
42
  var vi = Object.getOwnPropertyDescriptor, mi = (t, e, n, i) => {
43
- for (var r = i > 1 ? void 0 : i ? vi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
44
- (o = t[s]) && (r = o(r) || r);
43
+ for (var r = i > 1 ? void 0 : i ? vi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
44
+ (s = t[o]) && (r = s(r) || r);
45
45
  return r;
46
46
  }, me = (t, e) => (n, i) => e(n, i, t);
47
47
  function fi(t, e) {
48
48
  const n = e.getMergeData(), i = e.getMaxColumns() - 1, r = e.getMaxRows() - 1;
49
49
  if (i < t.endColumn && (t.endColumn = i), r < t.endRow && (t.endRow = r), t.rangeType === an.COLUMN || an.ROW)
50
50
  return t;
51
- const s = [];
52
- return n.forEach((o) => {
53
- Ie.intersects(t, o) && s.push(o);
54
- }), Ie.realUnion(t, ...s);
51
+ const o = [];
52
+ return n.forEach((s) => {
53
+ Se.intersects(t, s) && o.push(s);
54
+ }), Se.realUnion(t, ...o);
55
55
  }
56
56
  let ce = class {
57
- constructor(t, e, n, i, r, s) {
58
- this._univerInstanceService = t, this._commandService = e, this._definedNamesService = n, this._messageService = i, this._localeService = r, this._configService = s;
57
+ constructor(t, e, n, i, r, o) {
58
+ this._univerInstanceService = t, this._commandService = e, this._definedNamesService = n, this._messageService = i, this._localeService = r, this._configService = o;
59
59
  }
60
60
  navigate(t) {
61
61
  switch (t.type) {
@@ -70,12 +70,12 @@ let ce = class {
70
70
  const { gid: e, range: n, rangeid: i } = t, r = this._univerInstanceService.getCurrentUnitForType(k.UNIVER_SHEET);
71
71
  if (!r)
72
72
  return;
73
- const s = r.getUnitId();
73
+ const o = r.getUnitId();
74
74
  if (i) {
75
- const o = this._definedNamesService.getValueById(s, i);
76
- if (!o)
75
+ const s = this._definedNamesService.getValueById(o, i);
76
+ if (!s)
77
77
  return;
78
- const { formulaOrRefString: c } = o, u = this._definedNamesService.getWorksheetByRef(s, c);
78
+ const { formulaOrRefString: c } = s, u = this._definedNamesService.getWorksheetByRef(o, c);
79
79
  if (!u) {
80
80
  this._messageService.show({
81
81
  content: this._localeService.t("hyperLink.message.refError"),
@@ -90,33 +90,33 @@ let ce = class {
90
90
  });
91
91
  return;
92
92
  }
93
- this.navigateToDefineName(s, i);
93
+ this.navigateToDefineName(o, i);
94
94
  }
95
95
  if (e) {
96
96
  if (n) {
97
- const o = We(n);
98
- In(o.range) && n !== yr && this.navigateToRange(s, e, o.range);
97
+ const s = We(n);
98
+ Sn(s.range) && n !== yr && this.navigateToRange(o, e, s.range);
99
99
  return;
100
100
  }
101
- this.navigateToSheetById(s, e);
101
+ this.navigateToSheetById(o, e);
102
102
  }
103
103
  }
104
104
  async navigateToRange(t, e, n, i) {
105
105
  const r = await this.navigateToSheetById(t, e);
106
106
  if (r) {
107
- const s = fi(n, r);
107
+ const o = fi(n, r);
108
108
  await this._commandService.executeCommand(
109
109
  En.id,
110
110
  {
111
111
  unitId: t,
112
112
  subUnitId: e,
113
113
  selections: [{
114
- range: s,
114
+ range: o,
115
115
  primary: null
116
116
  }]
117
117
  }
118
- ), await this._commandService.executeCommand(bn.id, {
119
- range: s,
118
+ ), await this._commandService.executeCommand(wn.id, {
119
+ range: o,
120
120
  forceTop: i
121
121
  });
122
122
  }
@@ -159,9 +159,9 @@ ce = mi([
159
159
  me(5, Cn)
160
160
  ], ce);
161
161
  const Dt = "SHEET_HYPER_LINK_UI_PLUGIN";
162
- var _i = Object.getOwnPropertyDescriptor, Si = (t, e, n, i) => {
163
- for (var r = i > 1 ? void 0 : i ? _i(e, n) : e, s = t.length - 1, o; s >= 0; s--)
164
- (o = t[s]) && (r = o(r) || r);
162
+ var _i = Object.getOwnPropertyDescriptor, Ii = (t, e, n, i) => {
163
+ for (var r = i > 1 ? void 0 : i ? _i(e, n) : e, o = t.length - 1, s; o >= 0; o--)
164
+ (s = t[o]) && (r = s(r) || r);
165
165
  return r;
166
166
  }, Fe = (t, e) => (n, i) => e(n, i, t);
167
167
  let ze = class extends Y {
@@ -188,27 +188,27 @@ let ze = class extends Y {
188
188
  id: Dt,
189
189
  onBeforeCopy: (e, n, i) => this._collect(e, n, i),
190
190
  onPasteCells: (e, n, i, r) => {
191
- const { copyType: s = Or.COPY, pasteType: o } = r, { range: c } = e || {}, { range: u, unitId: p, subUnitId: l } = n;
192
- return this._generateMutations(u, { copyType: s, pasteType: o, copyRange: c, unitId: p, subUnitId: l });
191
+ const { copyType: o = Or.COPY, pasteType: s } = r, { range: c } = e || {}, { range: u, unitId: p, subUnitId: l } = n;
192
+ return this._generateMutations(u, { copyType: o, pasteType: s, copyRange: c, unitId: p, subUnitId: l });
193
193
  },
194
194
  onPastePlainText: (e, n) => {
195
195
  const i = this._filterPlainText(n);
196
196
  if (Ye(n) && i) {
197
- const { range: r, unitId: s, subUnitId: o } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
197
+ const { range: r, unitId: o, subUnitId: s } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
198
198
  return yn.foreach(c, (g, d) => {
199
- const { row: _, col: S } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(s, o, _, S);
199
+ const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(o, s, _, I);
200
200
  f && p.push({
201
- id: Ne.id,
201
+ id: xe.id,
202
202
  params: {
203
- unitId: s,
204
- subUnitId: o,
203
+ unitId: o,
204
+ subUnitId: s,
205
205
  id: f.id
206
206
  }
207
207
  }), f && l.push({
208
- id: xe.id,
208
+ id: Ne.id,
209
209
  params: {
210
- unitId: s,
211
- subUnitId: o,
210
+ unitId: o,
211
+ subUnitId: s,
212
212
  link: f
213
213
  }
214
214
  });
@@ -226,11 +226,11 @@ let ze = class extends Y {
226
226
  subUnitId: n,
227
227
  matrix: r
228
228
  };
229
- const s = this._injector.invoke((u) => dr(i, u, e, n));
230
- if (!s)
229
+ const o = this._injector.invoke((u) => dr(i, u, e, n));
230
+ if (!o)
231
231
  return;
232
- const { rows: o, cols: c } = s;
233
- o.forEach((u, p) => {
232
+ const { rows: s, cols: c } = o;
233
+ s.forEach((u, p) => {
234
234
  c.forEach((l, g) => {
235
235
  var _;
236
236
  const d = this._hyperLinkModel.getHyperLinkByLocation(e, n, u, l);
@@ -251,47 +251,47 @@ let ze = class extends Y {
251
251
  $e.SPECIAL_PASTE_FORMULA
252
252
  ].includes(n.pasteType))
253
253
  return { redos: [], undos: [] };
254
- const { unitId: r, subUnitId: s } = this._copyInfo, o = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
255
- return Nr(u, p, !0).forEach(({ startRange: d }) => {
254
+ const { unitId: r, subUnitId: o } = this._copyInfo, s = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
255
+ return xr(u, p, !0).forEach(({ startRange: d }) => {
256
256
  var _;
257
- (_ = this._copyInfo) == null || _.matrix.forValue((S, f, b) => {
258
- const a = Ie.getPositionRange(
257
+ (_ = this._copyInfo) == null || _.matrix.forValue((I, f, w) => {
258
+ const a = Se.getPositionRange(
259
259
  {
260
- startRow: S,
261
- endRow: S,
260
+ startRow: I,
261
+ endRow: I,
262
262
  startColumn: f,
263
263
  endColumn: f
264
264
  },
265
265
  d
266
- ), w = this._hyperLinkModel.getHyperLink(r, s, b), { row: M, col: T } = l(a.startRow, a.startColumn), P = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, M, T), V = Se.generateRandomId();
267
- P && o.push({
268
- id: Ne.id,
266
+ ), b = this._hyperLinkModel.getHyperLink(r, o, w), { row: M, col: T } = l(a.startRow, a.startColumn), P = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, M, T), V = Ie.generateRandomId();
267
+ P && s.push({
268
+ id: xe.id,
269
269
  params: {
270
270
  unitId: n.unitId,
271
271
  subUnitId: n.subUnitId,
272
272
  id: P.id
273
273
  }
274
- }), w && (o.push({
275
- id: xe.id,
274
+ }), b && (s.push({
275
+ id: Ne.id,
276
276
  params: {
277
277
  unitId: n.unitId,
278
278
  subUnitId: n.subUnitId,
279
279
  link: {
280
- ...w,
280
+ ...b,
281
281
  id: V,
282
282
  row: M,
283
283
  column: T
284
284
  }
285
285
  }
286
286
  }), c.push({
287
- id: Ne.id,
287
+ id: xe.id,
288
288
  params: {
289
289
  unitId: n.unitId,
290
290
  subUnitId: n.subUnitId,
291
291
  id: V
292
292
  }
293
293
  })), P && c.push({
294
- id: xe.id,
294
+ id: Ne.id,
295
295
  params: {
296
296
  unitId: n.unitId,
297
297
  subUnitId: n.subUnitId,
@@ -299,10 +299,10 @@ let ze = class extends Y {
299
299
  }
300
300
  });
301
301
  });
302
- }), { redos: o, undos: c };
302
+ }), { redos: s, undos: c };
303
303
  }
304
304
  };
305
- ze = Si([
305
+ ze = Ii([
306
306
  Fe(0, Tr),
307
307
  Fe(1, y(pt)),
308
308
  Fe(2, y(lt)),
@@ -339,16 +339,16 @@ class Un extends Y {
339
339
  }
340
340
  const Xe = () => {
341
341
  var Zt;
342
- const [t, e] = Z(""), [n, i] = Z(!1), [r, s] = Z(""), [o, c] = Z(!0), [u, p] = Z(C.URL), [l, g] = Z(""), d = I(ut), _ = I(kn), S = I(te), f = I(K), b = I(G), a = Gr(b.currentEditing$), w = I(Ut), M = I(ce), T = I(ne), P = I(Un), V = Et(() => P.getOptions(), [P]), D = I(ht), z = I(He), ye = I(xr), De = I(Ue), re = I(er), Ee = I(tr), Re = I(Ue), [Pe, Ae] = Z(!1), pe = I(kt), Zn = Et(() => pe.getCurrentSelections(), []), Ve = Et(() => {
342
+ const [t, e] = Z(""), [n, i] = Z(!1), [r, o] = Z(""), [s, c] = Z(!0), [u, p] = Z(C.URL), [l, g] = Z(""), d = S(ut), _ = S(kn), I = S(te), f = S(K), w = S(G), a = Gr(w.currentEditing$), b = S(Ut), M = S(ce), T = S(ne), P = S(Un), V = Et(() => P.getOptions(), [P]), D = S(ht), z = S(He), ye = S(Nr), De = S(Ue), re = S(er), Ee = S(tr), Re = S(Ue), [Pe, Ae] = Z(!1), pe = S(kt), Zn = Et(() => pe.getCurrentSelections(), []), Ve = Et(() => {
343
343
  if (!P.isBuiltInLinkType(u))
344
344
  return P.getCustomHyperLink(u);
345
- }, [P, u]), [he, Gn] = Z(!1), [Le, jt] = Z(!1), H = xn(!1), B = f.getCurrentUnitForType(k.UNIVER_SHEET), Kn = (B == null ? void 0 : B.getActiveSheet().getSheetId()) || "", q = di((h) => {
346
- s(h.replaceAll(cn.CUSTOM_RANGE_START, "").replaceAll(cn.CUSTOM_RANGE_END, ""));
347
- }, [s]);
345
+ }, [P, u]), [he, Gn] = Z(!1), [Le, jt] = Z(!1), H = Nn(!1), B = f.getCurrentUnitForType(k.UNIVER_SHEET), Kn = (B == null ? void 0 : B.getActiveSheet().getSheetId()) || "", q = di((h) => {
346
+ o(h.replaceAll(cn.CUSTOM_RANGE_START, "").replaceAll(cn.CUSTOM_RANGE_END, ""));
347
+ }, [o]);
348
348
  ee(() => {
349
- var h, E, R, L, x, F, Gt, Kt, Yt, zt, Xt, qt, Jt, Qt, en, tn, nn;
349
+ var h, E, R, L, N, F, Gt, Kt, Yt, zt, Xt, qt, Jt, Qt, en, tn, nn;
350
350
  if ((a == null ? void 0 : a.row) !== void 0 && a.col !== void 0) {
351
- const { customRange: ie, row: _t, col: St } = a;
351
+ const { customRange: ie, row: _t, col: It } = a;
352
352
  let { label: X } = a;
353
353
  typeof X == "number" && (X = `${X}`);
354
354
  let j;
@@ -358,28 +358,28 @@ const Xe = () => {
358
358
  display: X != null ? X : "",
359
359
  payload: (R = (E = ie == null ? void 0 : ie.properties) == null ? void 0 : E.url) != null ? R : "",
360
360
  row: _t,
361
- column: St
361
+ column: It
362
362
  };
363
363
  else if (a.type === v.VIEWING) {
364
- const O = f.getUnit(a.unitId), Q = O == null ? void 0 : O.getSheetBySheetId(a.subUnitId), U = Q == null ? void 0 : Q.getCellRaw(a.row, a.col), ge = (F = (x = (L = U == null ? void 0 : U.p) == null ? void 0 : L.body) == null ? void 0 : x.customRanges) == null ? void 0 : F.find((sn) => {
365
- var on;
366
- return sn.rangeType === Ke.HYPERLINK && ((on = sn.properties) == null ? void 0 : on.url);
367
- }), be = U == null ? void 0 : U.v;
368
- U && (!fe.transform.isEmptyDocument((Kt = (Gt = U.p) == null ? void 0 : Gt.body) == null ? void 0 : Kt.dataStream) || Se.isDefine(be)) && c(!1), j = {
364
+ const O = f.getUnit(a.unitId), Q = O == null ? void 0 : O.getSheetBySheetId(a.subUnitId), U = Q == null ? void 0 : Q.getCellRaw(a.row, a.col), ge = (F = (N = (L = U == null ? void 0 : U.p) == null ? void 0 : L.body) == null ? void 0 : N.customRanges) == null ? void 0 : F.find((on) => {
365
+ var sn;
366
+ return on.rangeType === Ke.HYPERLINK && ((sn = on.properties) == null ? void 0 : sn.url);
367
+ }), we = U == null ? void 0 : U.v;
368
+ U && (!fe.transform.isEmptyDocument((Kt = (Gt = U.p) == null ? void 0 : Gt.body) == null ? void 0 : Kt.dataStream) || Ie.isDefine(we)) && c(!1), j = {
369
369
  id: "",
370
370
  display: "",
371
371
  payload: (zt = (Yt = ge == null ? void 0 : ge.properties) == null ? void 0 : Yt.url) != null ? zt : "",
372
372
  row: _t,
373
- column: St
373
+ column: It
374
374
  };
375
375
  } else {
376
- const O = f.getCurrentUnitForType(k.UNIVER_DOC), Q = De.getActiveTextRange(), U = O == null ? void 0 : O.getBody(), ge = Q && U ? Q : null, be = ge && ((qt = fe.customRange.getCustomRangesInterestsWithSelection(ge, (Xt = U == null ? void 0 : U.customRanges) != null ? Xt : [])) == null ? void 0 : qt[0]);
376
+ const O = f.getCurrentUnitForType(k.UNIVER_DOC), Q = De.getActiveTextRange(), U = O == null ? void 0 : O.getBody(), ge = Q && U ? Q : null, we = ge && ((qt = fe.customRange.getCustomRangesInterestsWithSelection(ge, (Xt = U == null ? void 0 : U.customRanges) != null ? Xt : [])) == null ? void 0 : qt[0]);
377
377
  c(!1), j = {
378
378
  id: "",
379
379
  display: X != null ? X : "",
380
- payload: (Qt = (Jt = be == null ? void 0 : be.properties) == null ? void 0 : Jt.url) != null ? Qt : "",
380
+ payload: (Qt = (Jt = we == null ? void 0 : we.properties) == null ? void 0 : Jt.url) != null ? Qt : "",
381
381
  row: _t,
382
- column: St
382
+ column: It
383
383
  };
384
384
  }
385
385
  e(j.id);
@@ -390,7 +390,7 @@ const Xe = () => {
390
390
  return;
391
391
  }
392
392
  q(j.display);
393
- const J = w.parseHyperLink(j.payload);
393
+ const J = b.parseHyperLink(j.payload);
394
394
  switch (p(J.type === C.INVALID ? C.RANGE : J.type), J.type) {
395
395
  case C.URL: {
396
396
  g(J.url), J.url === j.display && (H.current = !0);
@@ -418,8 +418,8 @@ const Xe = () => {
418
418
  }
419
419
  }, [a, M, P, De, f]), ee(() => {
420
420
  let h = null;
421
- if (a && !a.customRangeId && a.type === v.VIEWING && Se.isDefine(a.row) && Se.isDefine(a.col)) {
422
- const E = f.getUnit(a.unitId, k.UNIVER_SHEET), R = E == null ? void 0 : E.getSheetBySheetId(a.subUnitId), L = R == null ? void 0 : R.getMergedCell(a.row, a.col), x = new nr(Ee.getColorFromTheme("primary.600")).toRgb();
421
+ if (a && !a.customRangeId && a.type === v.VIEWING && Ie.isDefine(a.row) && Ie.isDefine(a.col)) {
422
+ const E = f.getUnit(a.unitId, k.UNIVER_SHEET), R = E == null ? void 0 : E.getSheetBySheetId(a.subUnitId), L = R == null ? void 0 : R.getMergedCell(a.row, a.col), N = new nr(Ee.getColorFromTheme("primary.600")).toRgb();
423
423
  h = ye.addShape(
424
424
  {
425
425
  range: L != null ? L : {
@@ -430,7 +430,7 @@ const Xe = () => {
430
430
  },
431
431
  style: {
432
432
  // hasAutoFill: false,
433
- fill: `rgb(${x.r}, ${x.g}, ${x.b}, 0.12)`,
433
+ fill: `rgb(${N.r}, ${N.g}, ${N.b}, 0.12)`,
434
434
  strokeWidth: 1,
435
435
  stroke: "#FFBD37",
436
436
  widgets: {}
@@ -447,26 +447,26 @@ const Xe = () => {
447
447
  }, [a, ye, Ee, f]), ee(() => {
448
448
  jt(u === C.RANGE);
449
449
  }, [u]), ee(() => {
450
- const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(N) : z.getRenderById(S.getCurrentEditorId()), E = new rr();
450
+ const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new rr();
451
451
  if (h) {
452
- const R = h.with(Nn);
452
+ const R = h.with(xn);
453
453
  R.setReserveRangesStatus(!0), E.add(() => {
454
454
  R.setReserveRangesStatus(!1);
455
455
  });
456
456
  }
457
457
  return () => {
458
- S.disableForceKeepVisible(), E.dispose();
458
+ I.disableForceKeepVisible(), E.dispose();
459
459
  };
460
- }, [a == null ? void 0 : a.type, S, z]), ee(() => (Le && b.setIsKeepVisible(Le), b.setIsKeepVisible(Pe), () => {
461
- b.setIsKeepVisible(!1);
462
- }), [Le, Pe, b]), ee(() => () => {
460
+ }, [a == null ? void 0 : a.type, I, z]), ee(() => (Le && w.setIsKeepVisible(Le), w.setIsKeepVisible(Pe), () => {
461
+ w.setIsKeepVisible(!1);
462
+ }), [Le, Pe, w]), ee(() => () => {
463
463
  D.temporaryHidden && (D.show(), re.setContextValue(Ct, !1));
464
464
  }, [re, D]), ee(() => {
465
465
  if (Le)
466
- return S.enableForceKeepVisible(), () => {
467
- S.disableForceKeepVisible();
466
+ return I.enableForceKeepVisible(), () => {
467
+ I.disableForceKeepVisible();
468
468
  };
469
- }, [Le, S]);
469
+ }, [Le, I]);
470
470
  const Yn = [
471
471
  {
472
472
  label: d.t("hyperLink.form.link"),
@@ -501,15 +501,15 @@ const Xe = () => {
501
501
  }
502
502
  return `#${h}=${E}`;
503
503
  }, Xn = Kr((h) => {
504
- var x;
504
+ var N;
505
505
  const R = h.split(",").map(We)[0];
506
- if (!R || !In(R.range))
506
+ if (!R || !Sn(R.range))
507
507
  return;
508
- R.sheetName || (R.sheetName = ((x = B.getActiveSheet()) == null ? void 0 : x.getName()) || "");
508
+ R.sheetName || (R.sheetName = ((N = B.getActiveSheet()) == null ? void 0 : N.getName()) || "");
509
509
  const L = Wr(R);
510
510
  g(L), L && (H.current || !r) && (q(L), H.current = !0);
511
511
  }), ft = async () => {
512
- if (o && !r || !l || u === C.URL && !Ye(l)) {
512
+ if (s && !r || !l || u === C.URL && !Ye(l)) {
513
513
  Gn(!0);
514
514
  return;
515
515
  }
@@ -521,12 +521,12 @@ const Xe = () => {
521
521
  unitId: a.unitId,
522
522
  subUnitId: a.subUnitId,
523
523
  payload: {
524
- display: o ? r : "",
524
+ display: s ? r : "",
525
525
  payload: Wt(u, l)
526
526
  },
527
527
  row: a.row,
528
528
  column: a.col,
529
- documentId: a.type === v.ZEN_EDITOR ? N : S.getCurrentEditorId()
529
+ documentId: a.type === v.ZEN_EDITOR ? x : I.getCurrentEditorId()
530
530
  });
531
531
  } else {
532
532
  const h = a.type === v.ZEN_EDITOR || a.type === v.EDITING ? Pr.id : Lr.id;
@@ -538,9 +538,9 @@ const Xe = () => {
538
538
  row: a.row,
539
539
  column: a.col,
540
540
  payload: Wt(u, l),
541
- display: o ? r : ""
541
+ display: s ? r : ""
542
542
  },
543
- documentId: a.type === v.ZEN_EDITOR ? N : S.getCurrentEditorId()
543
+ documentId: a.type === v.ZEN_EDITOR ? x : I.getCurrentEditorId()
544
544
  });
545
545
  }
546
546
  if ((a == null ? void 0 : a.type) === v.VIEWING) {
@@ -549,7 +549,7 @@ const Xe = () => {
549
549
  subUnitId: a.subUnitId
550
550
  });
551
551
  const h = 1;
552
- await T.executeCommand(bn.id, {
552
+ await T.executeCommand(wn.id, {
553
553
  range: {
554
554
  startRow: Math.max(a.row - h, 0),
555
555
  endRow: a.row + h,
@@ -563,9 +563,9 @@ const Xe = () => {
563
563
  return a ? /* @__PURE__ */ _e(
564
564
  "div",
565
565
  {
566
- className: je("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", wn),
566
+ className: je("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", bn),
567
567
  children: [
568
- o ? /* @__PURE__ */ m(
568
+ s ? /* @__PURE__ */ m(
569
569
  ve,
570
570
  {
571
571
  label: d.t("hyperLink.form.label"),
@@ -630,7 +630,7 @@ const Xe = () => {
630
630
  onRangeSelectorDialogVisibleChange: async (h) => {
631
631
  var E, R;
632
632
  if (Ae(h), h)
633
- a.type === v.ZEN_EDITOR && (D.hide(), re.setContextValue(Ct, !0)), a.type !== v.VIEWING && S.enableForceKeepVisible(), i(!0);
633
+ a.type === v.ZEN_EDITOR && (D.hide(), re.setContextValue(Ct, !0)), a.type !== v.VIEWING && I.enableForceKeepVisible(), i(!0);
634
634
  else {
635
635
  if (await M.navigateToRange(a.unitId, a.subUnitId, { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col }, !0), a.type === v.ZEN_EDITOR) {
636
636
  await T.executeCommand(En.id, {
@@ -638,10 +638,10 @@ const Xe = () => {
638
638
  subUnitId: a.subUnitId,
639
639
  selections: [{ range: { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col } }]
640
640
  }), D.show(), re.setContextValue(Ct, !1);
641
- const L = (E = z.getRenderById(N)) == null ? void 0 : E.with(ti), x = (R = Re.getTextRanges({ unitId: N, subUnitId: N })) == null ? void 0 : R[0];
642
- L && x && (L.scrollToRange(x), Re.refreshSelection({ unitId: N, subUnitId: N }));
641
+ const L = (E = z.getRenderById(x)) == null ? void 0 : E.with(ti), N = (R = Re.getTextRanges({ unitId: x, subUnitId: x })) == null ? void 0 : R[0];
642
+ L && N && (L.scrollToRange(N), Re.refreshSelection({ unitId: x, subUnitId: x }));
643
643
  }
644
- S.disableForceKeepVisible(), i(!1);
644
+ I.disableForceKeepVisible(), i(!1);
645
645
  }
646
646
  },
647
647
  onFocusChange: (h) => jt(h)
@@ -654,9 +654,9 @@ const Xe = () => {
654
654
  options: vt,
655
655
  value: l,
656
656
  onChange: (h) => {
657
- var L, x;
657
+ var L, N;
658
658
  g(h);
659
- const E = (L = vt.find((F) => F.value === h)) == null ? void 0 : L.label, R = (x = vt.find((F) => F.value === l)) == null ? void 0 : x.label;
659
+ const E = (L = vt.find((F) => F.value === h)) == null ? void 0 : L.label, R = (N = vt.find((F) => F.value === l)) == null ? void 0 : N.label;
660
660
  E && (H.current || !r || r === R) && (q(E), H.current = !0);
661
661
  }
662
662
  }
@@ -668,9 +668,9 @@ const Xe = () => {
668
668
  options: mt,
669
669
  value: l,
670
670
  onChange: (h) => {
671
- var L, x;
671
+ var L, N;
672
672
  g(h);
673
- const E = (L = mt.find((F) => F.value === h)) == null ? void 0 : L.label, R = (x = mt.find((F) => F.value === l)) == null ? void 0 : x.label;
673
+ const E = (L = mt.find((F) => F.value === h)) == null ? void 0 : L.label, R = (N = mt.find((F) => F.value === l)) == null ? void 0 : N.label;
674
674
  E && (H.current || !r || r === R) && (q(E), H.current = !0);
675
675
  }
676
676
  }
@@ -731,24 +731,24 @@ var A = function() {
731
731
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
732
732
  return n;
733
733
  }, de = ue(function(t, e) {
734
- var n = t.icon, i = t.id, r = t.className, s = t.extend, o = Ci(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = xn("_".concat(Ei()));
735
- return Hn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, A({ ref: e, className: c }, o), s);
734
+ var n = t.icon, i = t.id, r = t.className, o = t.extend, s = Ci(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = Nn("_".concat(Ei()));
735
+ return Hn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, A({ ref: e, className: c }, s), o);
736
736
  });
737
737
  function Hn(t, e, n, i, r) {
738
- return le(t.tag, A(A({ key: e }, Ii(t, n, r)), i), (yi(t, n).children || []).map(function(s, o) {
739
- return Hn(s, "".concat(e, "-").concat(t.tag, "-").concat(o), n, void 0, r);
738
+ return le(t.tag, A(A({ key: e }, Si(t, n, r)), i), (yi(t, n).children || []).map(function(o, s) {
739
+ return Hn(o, "".concat(e, "-").concat(t.tag, "-").concat(s), n, void 0, r);
740
740
  }));
741
741
  }
742
- function Ii(t, e, n) {
742
+ function Si(t, e, n) {
743
743
  var i = A({}, t.attrs);
744
- n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1), t.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(function(s) {
745
- var o = s[0], c = s[1];
746
- o === "mask" && typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
744
+ n != null && n.colorChannel1 && i.fill === "colorChannel1" && (i.fill = n.colorChannel1), t.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(function(o) {
745
+ var s = o[0], c = o[1];
746
+ s === "mask" && typeof c == "string" && (i[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
747
747
  });
748
748
  var r = e.defIds;
749
- return !r || r.length === 0 || (t.tag === "use" && i["xlink:href"] && (i["xlink:href"] = i["xlink:href"] + e.idSuffix), Object.entries(i).forEach(function(s) {
750
- var o = s[0], c = s[1];
751
- typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
749
+ return !r || r.length === 0 || (t.tag === "use" && i["xlink:href"] && (i["xlink:href"] = i["xlink:href"] + e.idSuffix), Object.entries(i).forEach(function(o) {
750
+ var s = o[0], c = o[1];
751
+ typeof c == "string" && (i[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
752
752
  })), i;
753
753
  }
754
754
  function yi(t, e) {
@@ -761,78 +761,78 @@ function Ei() {
761
761
  return Math.random().toString(36).substring(2, 8);
762
762
  }
763
763
  de.displayName = "UniverIcon";
764
- var Ri = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ge = ue(function(t, e) {
764
+ var Ri = { 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: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ge = ue(function(t, e) {
765
765
  return le(de, Object.assign({}, t, {
766
- id: "all-border-single",
766
+ id: "all-border-icon",
767
767
  ref: e,
768
768
  icon: Ri
769
769
  }));
770
770
  });
771
- Ge.displayName = "AllBorderSingle";
772
- var Pi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.1302 12.4251C4.25802 13.7417 5.36779 14.7708 6.71792 14.7708H11.7179C13.1539 14.7708 14.3179 13.6067 14.3179 12.1708V6.1708C14.3179 4.78586 13.2351 3.65383 11.8698 3.57517C11.742 2.25858 10.6323 1.22949 9.28213 1.22949H4.28213C2.84619 1.22949 1.68213 2.39355 1.68213 3.82949V9.82949C1.68213 11.2144 2.76497 12.3465 4.1302 12.4251ZM10.6583 3.5708H6.71792C5.28198 3.5708 4.11792 4.73486 4.11792 6.1708V11.22C3.4221 11.1387 2.88213 10.5471 2.88213 9.82949V3.82949C2.88213 3.05629 3.50893 2.42949 4.28213 2.42949H9.28213C9.96695 2.42949 10.5369 2.92119 10.6583 3.5708ZM13.1179 6.1708C13.1179 5.3976 12.4911 4.7708 11.7179 4.7708H6.71792C5.94472 4.7708 5.31792 5.3976 5.31792 6.1708V12.1708C5.31792 12.944 5.94472 13.5708 6.71792 13.5708H11.7179C12.4911 13.5708 13.1179 12.944 13.1179 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Dn = ue(function(t, e) {
771
+ Ge.displayName = "AllBorderIcon";
772
+ var Pi = { 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: "M4.1302 12.4251C4.25802 13.7417 5.36779 14.7708 6.71792 14.7708H11.7179C13.1539 14.7708 14.3179 13.6067 14.3179 12.1708V6.1708C14.3179 4.78586 13.2351 3.65383 11.8698 3.57517C11.742 2.25858 10.6323 1.22949 9.28213 1.22949H4.28213C2.84619 1.22949 1.68213 2.39355 1.68213 3.82949V9.82949C1.68213 11.2144 2.76497 12.3465 4.1302 12.4251ZM10.6583 3.5708H6.71792C5.28198 3.5708 4.11792 4.73486 4.11792 6.1708V11.22C3.4221 11.1387 2.88213 10.5471 2.88213 9.82949V3.82949C2.88213 3.05629 3.50893 2.42949 4.28213 2.42949H9.28213C9.96695 2.42949 10.5369 2.92119 10.6583 3.5708ZM13.1179 6.1708C13.1179 5.3976 12.4911 4.7708 11.7179 4.7708H6.71792C5.94472 4.7708 5.31792 5.3976 5.31792 6.1708V12.1708C5.31792 12.944 5.94472 13.5708 6.71792 13.5708H11.7179C12.4911 13.5708 13.1179 12.944 13.1179 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Dn = ue(function(t, e) {
773
773
  return le(de, Object.assign({}, t, {
774
- id: "copy-single",
774
+ id: "copy-icon",
775
775
  ref: e,
776
776
  icon: Pi
777
777
  }));
778
778
  });
779
- Dn.displayName = "CopySingle";
780
- var Li = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M9.8816 1.97978C11.0177 0.843607 12.862 0.884962 14.0004 2.02342C15.1389 3.16188 15.1803 5.00612 14.0441 6.14228L11.399 8.78737C11.1608 9.02559 10.7746 9.02559 10.5363 8.78737C10.2981 8.54915 10.2981 8.16292 10.5363 7.9247L13.1814 5.2796C13.8195 4.64155 13.8217 3.57006 13.1378 2.8861C12.4538 2.20211 11.3823 2.20438 10.7443 2.84245L7.6976 5.88911L7.69317 5.89349C7.05959 6.53211 7.05894 7.60014 7.74132 8.28252C7.97954 8.52074 7.97954 8.90697 7.74132 9.14519C7.5031 9.38341 7.11687 9.38341 6.87865 9.14519C5.74016 8.00671 5.69884 6.16251 6.83497 5.02633L6.84021 5.02116L9.8816 1.97978Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.61426 7.2364C4.85248 6.99818 5.23871 6.99818 5.47693 7.2364C5.71515 7.47462 5.71515 7.86085 5.47693 8.09907L2.83183 10.7442C2.19375 11.3823 2.1915 12.4537 2.87547 13.1377C3.55945 13.8217 4.6309 13.8194 5.26899 13.1813L8.31566 10.1347C8.32262 10.1277 8.32971 10.121 8.33691 10.1144C8.34408 10.1064 8.3515 10.0986 8.35916 10.091C8.99721 9.45291 8.99949 8.38145 8.3155 7.69746C8.07728 7.45924 8.07728 7.07301 8.3155 6.83479C8.55372 6.59657 8.93995 6.59657 9.17817 6.83479C10.3166 7.97327 10.358 9.81748 9.22183 10.9536C9.21487 10.9606 9.20779 10.9673 9.20058 10.9739C9.19341 10.9819 9.18599 10.9897 9.17833 10.9973L6.13166 14.044C4.99548 15.1802 3.15127 15.1389 2.01279 14.0004C0.874362 12.8619 0.83297 11.0177 1.96916 9.8815L4.61426 7.2364Z" } }] }, At = ue(function(t, e) {
779
+ Dn.displayName = "CopyIcon";
780
+ var Li = { 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.8816 1.97978C11.0177 0.843607 12.862 0.884962 14.0004 2.02342C15.1389 3.16188 15.1803 5.00612 14.0441 6.14228L11.399 8.78737C11.1608 9.02559 10.7746 9.02559 10.5363 8.78737C10.2981 8.54915 10.2981 8.16292 10.5363 7.9247L13.1814 5.2796C13.8195 4.64155 13.8217 3.57006 13.1378 2.8861C12.4538 2.20211 11.3823 2.20438 10.7443 2.84245L7.6976 5.88911L7.69317 5.89349C7.05959 6.53211 7.05894 7.60014 7.74132 8.28252C7.97954 8.52074 7.97954 8.90697 7.74132 9.14519C7.5031 9.38341 7.11687 9.38341 6.87865 9.14519C5.74016 8.00671 5.69884 6.16251 6.83497 5.02633L6.84021 5.02116L9.8816 1.97978Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.61426 7.2364C4.85248 6.99818 5.23871 6.99818 5.47693 7.2364C5.71515 7.47462 5.71515 7.86085 5.47693 8.09907L2.83183 10.7442C2.19375 11.3823 2.1915 12.4537 2.87547 13.1377C3.55945 13.8217 4.6309 13.8194 5.26899 13.1813L8.31566 10.1347C8.32262 10.1277 8.32971 10.121 8.33691 10.1144C8.34408 10.1064 8.3515 10.0986 8.35916 10.091C8.99721 9.45291 8.99949 8.38145 8.3155 7.69746C8.07728 7.45924 8.07728 7.07301 8.3155 6.83479C8.55372 6.59657 8.93995 6.59657 9.17817 6.83479C10.3166 7.97327 10.358 9.81748 9.22183 10.9536C9.21487 10.9606 9.20779 10.9673 9.20058 10.9739C9.19341 10.9819 9.18599 10.9897 9.17833 10.9973L6.13166 14.044C4.99548 15.1802 3.15127 15.1389 2.01279 14.0004C0.874362 12.8619 0.83297 11.0177 1.96916 9.8815L4.61426 7.2364Z" } }] }, At = ue(function(t, e) {
781
781
  return le(de, Object.assign({}, t, {
782
- id: "link-single",
782
+ id: "link-icon",
783
783
  ref: e,
784
784
  icon: Li
785
785
  }));
786
786
  });
787
- At.displayName = "LinkSingle";
788
- var bi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z" } }] }, An = ue(function(t, e) {
787
+ At.displayName = "LinkIcon";
788
+ var wi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157C6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449C14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797C11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395C4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092C3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721C8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332C2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302C13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332Z" } }] }, An = ue(function(t, e) {
789
789
  return le(de, Object.assign({}, t, {
790
- id: "unlink-single",
790
+ id: "unlink-icon",
791
791
  ref: e,
792
- icon: bi
792
+ icon: wi
793
793
  }));
794
794
  });
795
- An.displayName = "UnlinkSingle";
796
- var wi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Vn = ue(function(t, e) {
795
+ An.displayName = "UnlinkIcon";
796
+ var bi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Vn = ue(function(t, e) {
797
797
  return le(de, Object.assign({}, t, {
798
- id: "write-single",
798
+ id: "write-icon",
799
799
  ref: e,
800
- icon: wi
800
+ icon: bi
801
801
  }));
802
802
  });
803
- Vn.displayName = "WriteSingle";
804
- var ki = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M3.4538 1.12549C2.70051 1.12549 2.08984 1.73615 2.08984 2.48945V13.5104C2.08984 14.2637 2.70051 14.8744 3.4538 14.8744H12.5468C13.3001 14.8744 13.9108 14.2637 13.9108 13.5104V5.0992L10.0094 1.12549H3.4538Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M10.0078 1.12549L13.9107 5.09842H10.6745C10.3063 5.09842 10.0078 4.79994 10.0078 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M7.80941 10.2949L6.37701 12.403C6.2632 12.5705 6.03516 12.614 5.86766 12.5002C5.70017 12.3864 5.65664 12.1584 5.77045 11.9909L7.36611 9.64252L5.94103 7.54519C5.82722 7.37769 5.87074 7.14964 6.03824 7.03583C6.20573 6.92202 6.43378 6.96555 6.54759 7.13304L7.80941 8.9901L9.07123 7.13304C9.18504 6.96555 9.41309 6.92202 9.58059 7.03583C9.74808 7.14964 9.7916 7.37769 9.67779 7.54519L8.25271 9.64252L9.84837 11.9909C9.96218 12.1584 9.91866 12.3864 9.75116 12.5002C9.58366 12.614 9.35562 12.5705 9.24181 12.403L7.80941 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, $n = ue(function(t, e) {
803
+ Vn.displayName = "WriteIcon";
804
+ var ki = { 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: "#35BD4B", d: "M3.4535 1.12549C2.7002 1.12549 2.08954 1.73615 2.08954 2.48945V13.5104C2.08954 14.2637 2.7002 14.8744 3.4535 14.8744H12.5465C13.2998 14.8744 13.9105 14.2637 13.9105 13.5104V5.0992L10.0091 1.12549H3.4535Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M10.0075 1.12549L13.9104 5.09842H10.6742C10.306 5.09842 10.0075 4.79994 10.0075 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "white", d: "M7.8088 10.2949L6.3764 12.403C6.26259 12.5705 6.03455 12.614 5.86705 12.5002C5.69955 12.3864 5.65603 12.1584 5.76984 11.9909L7.3655 9.64252L5.94042 7.54519C5.82661 7.37769 5.87013 7.14964 6.03763 7.03583C6.20512 6.92202 6.43317 6.96555 6.54698 7.13304L7.8088 8.9901L9.07062 7.13304C9.18443 6.96555 9.41248 6.92202 9.57997 7.03583C9.74747 7.14964 9.79099 7.37769 9.67718 7.54519L8.2521 9.64252L9.84776 11.9909C9.96157 12.1584 9.91805 12.3864 9.75055 12.5002C9.58305 12.614 9.35501 12.5705 9.2412 12.403L7.8088 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, $n = ue(function(t, e) {
805
805
  return le(de, Object.assign({}, t, {
806
- id: "xlsx",
806
+ id: "xlsx-multi-icon",
807
807
  ref: e,
808
808
  icon: ki
809
809
  }));
810
810
  });
811
- $n.displayName = "Xlsx";
811
+ $n.displayName = "XlsxMultiIcon";
812
812
  const Ti = {
813
813
  [C.URL]: /* @__PURE__ */ m(At, {}),
814
- [C.SHEET]: /* @__PURE__ */ m($n, {}),
814
+ [C.SHEET]: /* @__PURE__ */ m($n, { className: "univer-text-green-500" }),
815
815
  [C.RANGE]: /* @__PURE__ */ m(Ge, {}),
816
816
  [C.DEFINE_NAME]: /* @__PURE__ */ m(Ge, {}),
817
817
  [C.INVALID]: /* @__PURE__ */ m(Ge, {})
818
818
  }, vn = (t) => {
819
819
  var M, T;
820
- const e = I(G), n = I(ne), i = I(Tn), r = I(ut), s = I(ce), o = I(te), c = I(Ut), u = I(ht), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: S, copyPermission: f, type: b } = t;
820
+ const e = S(G), n = S(ne), i = S(Tn), r = S(ut), o = S(ce), s = S(te), c = S(Ut), u = S(ht), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: I, copyPermission: f, type: w } = t;
821
821
  if (!((M = p == null ? void 0 : p.properties) != null && M.url))
822
822
  return null;
823
- const a = c.parseHyperLink((T = p.properties.url) != null ? T : ""), w = a.type === C.INVALID;
823
+ const a = c.parseHyperLink((T = p.properties.url) != null ? T : ""), b = a.type === C.INVALID;
824
824
  return /* @__PURE__ */ _e(
825
825
  "div",
826
826
  {
827
- className: je("univer-mb-1 univer-flex univer-max-w-80 univer-flex-row univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow-md dark:!univer-bg-gray-900", wn),
827
+ className: je("univer-mb-1 univer-flex univer-max-w-80 univer-flex-row univer-items-center univer-justify-between univer-overflow-hidden univer-rounded-lg univer-bg-white univer-p-3 univer-shadow-md dark:!univer-bg-gray-900", bn),
828
828
  onClick: () => e.hideCurrentPopup(),
829
829
  children: [
830
830
  /* @__PURE__ */ _e(
831
831
  "div",
832
832
  {
833
- className: je("univer-flex univer-h-6 univer-flex-1 univer-cursor-pointer univer-flex-row univer-items-center univer-truncate univer-text-sm univer-leading-5 univer-text-primary-600", { "univer-text-red-500": w }),
833
+ className: je("univer-flex univer-h-6 univer-flex-1 univer-cursor-pointer univer-flex-row univer-items-center univer-truncate univer-text-sm univer-leading-5 univer-text-primary-600", { "univer-text-red-500": b }),
834
834
  onClick: () => {
835
- u.visible || w || s.navigate(a);
835
+ u.visible || b || o.navigate(a);
836
836
  },
837
837
  children: [
838
838
  /* @__PURE__ */ m(
@@ -854,9 +854,9 @@ const Ti = {
854
854
  f && /* @__PURE__ */ m(
855
855
  "div",
856
856
  {
857
- className: je("univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100", { "univer-text-red-500": w }),
857
+ className: je("univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100", { "univer-text-red-500": b }),
858
858
  onClick: () => {
859
- if (!w) {
859
+ if (!b) {
860
860
  if (a.type !== C.URL) {
861
861
  const P = new URL(window.location.href);
862
862
  P.hash = a.url.slice(1), navigator.clipboard.writeText(P.href);
@@ -871,7 +871,7 @@ const Ti = {
871
871
  children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(Dn, { className: "dark:!univer-text-white" }) })
872
872
  }
873
873
  ),
874
- S && /* @__PURE__ */ _e(ui, { children: [
874
+ I && /* @__PURE__ */ _e(ui, { children: [
875
875
  /* @__PURE__ */ m(
876
876
  "div",
877
877
  {
@@ -883,7 +883,7 @@ const Ti = {
883
883
  row: l,
884
884
  col: g,
885
885
  customRangeId: p.rangeId,
886
- type: b
886
+ type: w
887
887
  });
888
888
  },
889
889
  children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.edit"), children: /* @__PURE__ */ m(Vn, { className: "dark:!univer-text-white" }) })
@@ -894,14 +894,14 @@ const Ti = {
894
894
  {
895
895
  className: "univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base dark:hover:!univer-bg-gray-700 hover:univer-bg-gray-100",
896
896
  onClick: () => {
897
- const P = b === v.EDITING || b === v.ZEN_EDITOR ? br.id : wr.id;
897
+ const P = w === v.EDITING || w === v.ZEN_EDITOR ? wr.id : br.id;
898
898
  n.syncExecuteCommand(P, {
899
899
  unitId: d,
900
900
  subUnitId: _,
901
901
  id: p.rangeId,
902
902
  row: l,
903
903
  column: g,
904
- documentId: b === v.ZEN_EDITOR ? N : o.getCurrentEditorId()
904
+ documentId: w === v.ZEN_EDITOR ? x : s.getCurrentEditorId()
905
905
  }) && e.hideCurrentPopup(void 0, !0);
906
906
  },
907
907
  children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ m(An, { className: "dark:!univer-text-white" }) })
@@ -915,45 +915,45 @@ const Ti = {
915
915
  }
916
916
  );
917
917
  }, qe = () => {
918
- var r, s;
919
- const t = I(G), [e, n] = Z(null), i = I(K);
918
+ var r, o;
919
+ const t = S(G), [e, n] = Z(null), i = S(K);
920
920
  if (ee(() => {
921
921
  n(t.currentPopup);
922
- const o = t.currentPopup$.subscribe((c) => {
922
+ const s = t.currentPopup$.subscribe((c) => {
923
923
  n(c);
924
924
  });
925
925
  return () => {
926
- o.unsubscribe();
926
+ s.unsubscribe();
927
927
  };
928
928
  }, [t.currentPopup, t.currentPopup$]), !e)
929
929
  return null;
930
930
  if (e.showAll) {
931
- const o = i.getUnit(e.unitId, k.UNIVER_SHEET), c = o == null ? void 0 : o.getSheetBySheetId(e.subUnitId), u = c == null ? void 0 : c.getCell(e.row, e.col), p = (s = (r = u == null ? void 0 : u.p) == null ? void 0 : r.body) == null ? void 0 : s.customRanges;
931
+ const s = i.getUnit(e.unitId, k.UNIVER_SHEET), c = s == null ? void 0 : s.getSheetBySheetId(e.subUnitId), u = c == null ? void 0 : c.getCell(e.row, e.col), p = (o = (r = u == null ? void 0 : u.p) == null ? void 0 : r.body) == null ? void 0 : o.customRanges;
932
932
  return p != null && p.length ? /* @__PURE__ */ m("div", { children: p.map((l) => /* @__PURE__ */ m(vn, { ...e, customRange: l }, l.rangeId)) }) : null;
933
933
  }
934
934
  return /* @__PURE__ */ m(vn, { ...e });
935
935
  };
936
936
  qe.componentKey = "univer.sheet.cell-link-popup";
937
- var Oi = Object.getOwnPropertyDescriptor, Ni = (t, e, n, i) => {
938
- for (var r = i > 1 ? void 0 : i ? Oi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
939
- (o = t[s]) && (r = o(r) || r);
937
+ var Oi = Object.getOwnPropertyDescriptor, xi = (t, e, n, i) => {
938
+ for (var r = i > 1 ? void 0 : i ? Oi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
939
+ (s = t[o]) && (r = s(r) || r);
940
940
  return r;
941
- }, se = (t, e) => (n, i) => e(n, i, t);
941
+ }, oe = (t, e) => (n, i) => e(n, i, t);
942
942
  const mn = (t, e) => {
943
943
  var n, i;
944
944
  return t.unitId === e.unitId && t.subUnitId === e.subUnitId && t.row === e.row && t.col === e.col && ((n = t.customRange) == null ? void 0 : n.rangeId) === ((i = e.customRange) == null ? void 0 : i.rangeId) && t.type === e.type;
945
945
  };
946
946
  let G = class extends Y {
947
- constructor(e, n, i, r, s, o, c) {
947
+ constructor(e, n, i, r, o, s, c) {
948
948
  super();
949
949
  $(this, "_currentPopup", null);
950
- $(this, "_currentPopup$", new si());
950
+ $(this, "_currentPopup$", new oi());
951
951
  $(this, "currentPopup$", this._currentPopup$.asObservable());
952
952
  $(this, "_currentEditingPopup", null);
953
- $(this, "_currentEditing$", new oi(null));
953
+ $(this, "_currentEditing$", new si(null));
954
954
  $(this, "currentEditing$", this._currentEditing$.asObservable());
955
955
  $(this, "_isKeepVisible", !1);
956
- this._sheetCanvasPopManagerService = e, this._injector = n, this._univerInstanceService = i, this._editorBridgeService = r, this._textSelectionManagerService = s, this._docCanvasPopManagerService = o, this._zenZoneService = c, this.disposeWithMe(() => {
956
+ this._sheetCanvasPopManagerService = e, this._injector = n, this._univerInstanceService = i, this._editorBridgeService = r, this._textSelectionManagerService = o, this._docCanvasPopManagerService = s, this._zenZoneService = c, this.disposeWithMe(() => {
957
957
  this.hideCurrentPopup(), this.endEditing(), this._currentEditing$.complete(), this._currentPopup$.complete();
958
958
  });
959
959
  }
@@ -975,7 +975,7 @@ let G = class extends Y {
975
975
  const n = this._currentEditing$.getValue();
976
976
  if (n && mn(e, n))
977
977
  return;
978
- const { unitId: i, subUnitId: r, row: s, col: o, customRangeRect: c, customRange: u } = e;
978
+ const { unitId: i, subUnitId: r, row: o, col: s, customRangeRect: c, customRange: u } = e;
979
979
  let p;
980
980
  const l = {
981
981
  componentKey: qe.componentKey,
@@ -1004,7 +1004,7 @@ let G = class extends Y {
1004
1004
  collapsed: !1
1005
1005
  },
1006
1006
  l,
1007
- N
1007
+ x
1008
1008
  );
1009
1009
  } else if (e.showAll)
1010
1010
  p = this._sheetCanvasPopManagerService.attachPopupToCell(e.row, e.col, l, i, r);
@@ -1021,8 +1021,8 @@ let G = class extends Y {
1021
1021
  unitId: i,
1022
1022
  subUnitId: r,
1023
1023
  disposable: p,
1024
- row: s,
1025
- col: o,
1024
+ row: o,
1025
+ col: s,
1026
1026
  editPermission: !!e.editPermission,
1027
1027
  copyPermission: !!e.copyPermission,
1028
1028
  customRange: u,
@@ -1035,21 +1035,21 @@ let G = class extends Y {
1035
1035
  this._currentPopup && ((!e || e === this._currentPopup.type) && this._currentPopup.disposable.canDispose() || n) && ((r = (i = this._currentPopup) == null ? void 0 : i.disposable) == null || r.dispose(), this._currentPopup = null, this._currentPopup$.next(null));
1036
1036
  }
1037
1037
  _getEditingRange() {
1038
- var i, r, s;
1038
+ var i, r, o;
1039
1039
  const e = this._editorBridgeService.isVisible().visible, n = this._editorBridgeService.getEditCellState();
1040
1040
  if (e && n) {
1041
- const o = this._textSelectionManagerService.getActiveTextRange(), c = (i = n.documentLayoutObject.documentModel) == null ? void 0 : i.getBody();
1041
+ const s = this._textSelectionManagerService.getActiveTextRange(), c = (i = n.documentLayoutObject.documentModel) == null ? void 0 : i.getBody();
1042
1042
  if (!c)
1043
1043
  return null;
1044
- if (!o || o.collapsed)
1044
+ if (!s || s.collapsed)
1045
1045
  return {
1046
1046
  startOffset: 0,
1047
1047
  endOffset: c.dataStream.length - 2,
1048
1048
  collapsed: c.dataStream.length - 2 === 0,
1049
1049
  label: fe.transform.getPlainText(c.dataStream)
1050
1050
  };
1051
- const u = fe.customRange.getCustomRangesInterestsWithSelection(o, (s = (r = c.customRanges) == null ? void 0 : r.filter((g) => g.rangeType === Ke.HYPERLINK)) != null ? s : []);
1052
- let p = o.startOffset, l = o.endOffset;
1051
+ const u = fe.customRange.getCustomRangesInterestsWithSelection(s, (o = (r = c.customRanges) == null ? void 0 : r.filter((g) => g.rangeType === Ke.HYPERLINK)) != null ? o : []);
1052
+ let p = s.startOffset, l = s.endOffset;
1053
1053
  return u.forEach((g) => {
1054
1054
  p = Math.min(p, g.startIndex), l = Math.max(l, g.endIndex + 1);
1055
1055
  }), {
@@ -1075,10 +1075,10 @@ let G = class extends Y {
1075
1075
  };
1076
1076
  }
1077
1077
  startAddEditing(e) {
1078
- var s, o, c, u, p;
1078
+ var o, s, c, u, p;
1079
1079
  const { unitId: n, subUnitId: i, type: r } = e;
1080
1080
  if (r === v.ZEN_EDITOR) {
1081
- const l = this._univerInstanceService.getUnit(N, k.UNIVER_DOC);
1081
+ const l = this._univerInstanceService.getUnit(x, k.UNIVER_DOC);
1082
1082
  if (!l)
1083
1083
  return;
1084
1084
  const g = this._textSelectionManagerService.getActiveTextRange();
@@ -1087,9 +1087,9 @@ let G = class extends Y {
1087
1087
  this._currentEditingPopup = this._docCanvasPopManagerService.attachPopupToRange(
1088
1088
  g,
1089
1089
  this._editPopup,
1090
- N
1090
+ x
1091
1091
  );
1092
- const d = (s = l.getBody()) == null ? void 0 : s.dataStream.slice(g.startOffset, g.endOffset);
1092
+ const d = (o = l.getBody()) == null ? void 0 : o.dataStream.slice(g.startOffset, g.endOffset);
1093
1093
  this._currentEditing$.next({
1094
1094
  ...e,
1095
1095
  label: d
@@ -1112,7 +1112,7 @@ let G = class extends Y {
1112
1112
  i
1113
1113
  ), this._currentEditing$.next({
1114
1114
  ...e,
1115
- label: (o = l == null ? void 0 : l.label) != null ? o : ""
1115
+ label: (s = l == null ? void 0 : l.label) != null ? s : ""
1116
1116
  });
1117
1117
  } else {
1118
1118
  this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
@@ -1131,13 +1131,13 @@ let G = class extends Y {
1131
1131
  }
1132
1132
  // eslint-disable-next-line complexity, max-lines-per-function
1133
1133
  startEditing(e) {
1134
- var o, c, u, p, l, g;
1135
- (o = this._currentEditingPopup) == null || o.dispose(), this.hideCurrentPopup(void 0, !0);
1134
+ var s, c, u, p, l, g;
1135
+ (s = this._currentEditingPopup) == null || s.dispose(), this.hideCurrentPopup(void 0, !0);
1136
1136
  const { unitId: n, subUnitId: i } = e;
1137
- let r, s;
1137
+ let r, o;
1138
1138
  if (e.type === v.ZEN_EDITOR) {
1139
- const d = this._univerInstanceService.getUnit(N, k.UNIVER_DOC);
1140
- if (r = (u = (c = d == null ? void 0 : d.getBody()) == null ? void 0 : c.customRanges) == null ? void 0 : u.find((_) => _.rangeId === e.customRangeId), s = r ? (p = d == null ? void 0 : d.getBody()) == null ? void 0 : p.dataStream.slice(r.startIndex, r.endIndex + 1) : "", !r || !s)
1139
+ const d = this._univerInstanceService.getUnit(x, k.UNIVER_DOC);
1140
+ if (r = (u = (c = d == null ? void 0 : d.getBody()) == null ? void 0 : c.customRanges) == null ? void 0 : u.find((_) => _.rangeId === e.customRangeId), o = r ? (p = d == null ? void 0 : d.getBody()) == null ? void 0 : p.dataStream.slice(r.startIndex, r.endIndex + 1) : "", !r || !o)
1141
1141
  return;
1142
1142
  this._textSelectionManagerService.replaceTextRanges([
1143
1143
  {
@@ -1151,13 +1151,13 @@ let G = class extends Y {
1151
1151
  collapsed: !1
1152
1152
  },
1153
1153
  this._editPopup,
1154
- N
1154
+ x
1155
1155
  );
1156
1156
  } else if (e.type === v.EDITING) {
1157
1157
  const d = Ur(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1158
1158
  if (!d || !((l = d.rects) != null && l.length))
1159
1159
  return;
1160
- r = d.customRange, s = d.label, this._textSelectionManagerService.replaceTextRanges([
1160
+ r = d.customRange, o = d.label, this._textSelectionManagerService.replaceTextRanges([
1161
1161
  {
1162
1162
  startOffset: r.startIndex,
1163
1163
  endOffset: r.endIndex + 1
@@ -1169,10 +1169,10 @@ let G = class extends Y {
1169
1169
  i
1170
1170
  );
1171
1171
  } else {
1172
- const d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET), _ = d == null ? void 0 : d.getSheetBySheetId(i), S = _ == null ? void 0 : _.getCellRaw(e.row, e.col), f = d == null ? void 0 : d.getStyles().getStyleByCell(S), b = f == null ? void 0 : f.tr, a = Hr(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1172
+ const d = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET), _ = d == null ? void 0 : d.getSheetBySheetId(i), I = _ == null ? void 0 : _.getCellRaw(e.row, e.col), f = d == null ? void 0 : d.getStyles().getStyleByCell(I), w = f == null ? void 0 : f.tr, a = Hr(this._injector, e.unitId, e.subUnitId, e.row, e.col, e.customRangeId);
1173
1173
  if (!a || !((g = a.rects) != null && g.length))
1174
1174
  return;
1175
- r = a.customRange, s = a.label, b ? this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
1175
+ r = a.customRange, o = a.label, w ? this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
1176
1176
  e.row,
1177
1177
  e.col,
1178
1178
  this._editPopup,
@@ -1192,7 +1192,7 @@ let G = class extends Y {
1192
1192
  this._currentEditing$.next({
1193
1193
  ...e,
1194
1194
  customRange: r,
1195
- label: s
1195
+ label: o
1196
1196
  });
1197
1197
  }
1198
1198
  endEditing(e) {
@@ -1203,27 +1203,27 @@ let G = class extends Y {
1203
1203
  n && (!e || e === n.type) && ((i = this._currentEditingPopup) == null || i.dispose(), this._currentEditing$.next(null));
1204
1204
  }
1205
1205
  };
1206
- G = Ni([
1207
- se(0, y(Mr)),
1208
- se(1, y(lt)),
1209
- se(2, K),
1210
- se(3, te),
1211
- se(4, y(Ue)),
1212
- se(5, y(ni)),
1213
- se(6, ht)
1206
+ G = xi([
1207
+ oe(0, y(Mr)),
1208
+ oe(1, y(lt)),
1209
+ oe(2, K),
1210
+ oe(3, te),
1211
+ oe(4, y(Ue)),
1212
+ oe(5, y(ni)),
1213
+ oe(6, ht)
1214
1214
  ], G);
1215
1215
  var Oe = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.DISABLED_BY_CELL = 1] = "DISABLED_BY_CELL", t[t.ALLOW_ON_EDITING = 2] = "ALLOW_ON_EDITING", t))(Oe || {});
1216
- const xi = /* @__PURE__ */ new Set([
1217
- It.CHECKBOX,
1218
- It.LIST,
1219
- It.LIST_MULTIPLE
1216
+ const Ni = /* @__PURE__ */ new Set([
1217
+ St.CHECKBOX,
1218
+ St.LIST,
1219
+ St.LIST_MULTIPLE
1220
1220
  ]), Vt = (t, e, n, i) => {
1221
1221
  var c, u, p, l, g;
1222
1222
  const r = e.getCell(n, i);
1223
1223
  if (r != null && r.f || r != null && r.si || (p = (u = (c = r == null ? void 0 : r.p) == null ? void 0 : c.body) == null ? void 0 : u.customBlocks) != null && p.length)
1224
1224
  return 1;
1225
- const s = t.has(hn) ? t.get(hn) : null, o = s == null ? void 0 : s.getRuleByLocation(e.getUnitId(), e.getSheetId(), n, i);
1226
- return o && xi.has(o.type) ? !0 : (g = (l = r == null ? void 0 : r.p) == null ? void 0 : l.drawingsOrder) != null && g.length ? 2 : 0;
1225
+ const o = t.has(hn) ? t.get(hn) : null, s = o == null ? void 0 : o.getRuleByLocation(e.getUnitId(), e.getSheetId(), n, i);
1226
+ return s && Ni.has(s.type) ? !0 : (g = (l = r == null ? void 0 : r.p) == null ? void 0 : l.drawingsOrder) != null && g.length ? 2 : 0;
1227
1227
  }, Mi = (t) => {
1228
1228
  const e = t.get(K).getCurrentUnitForType(k.UNIVER_SHEET);
1229
1229
  if (!e)
@@ -1231,14 +1231,14 @@ const xi = /* @__PURE__ */ new Set([
1231
1231
  const n = e.getActiveSheet(), i = t.get(kt).getCurrentSelections();
1232
1232
  if (!i.length)
1233
1233
  return !0;
1234
- const r = i[0].range.startRow, s = i[0].range.startColumn;
1235
- return Vt(t, n, r, s) === 1;
1234
+ const r = i[0].range.startRow, o = i[0].range.startColumn;
1235
+ return Vt(t, n, r, o) === 1;
1236
1236
  }, Ui = (t) => {
1237
1237
  const e = t.get(Ue), n = t.get(K), i = e.getTextRanges();
1238
1238
  if (!(i != null && i.length))
1239
1239
  return !0;
1240
1240
  const r = n.getCurrentUnitForType(k.UNIVER_DOC);
1241
- return !!(!r || i.every((o) => o.collapsed) || !r.getSelfOrHeaderFooterModel(i[0].segmentId).getBody());
1241
+ return !!(!r || i.every((s) => s.collapsed) || !r.getSelfOrHeaderFooterModel(i[0].segmentId).getBody());
1242
1242
  }, $t = {
1243
1243
  type: dt.OPERATION,
1244
1244
  id: "sheet.operation.open-hyper-link-edit-panel",
@@ -1262,10 +1262,10 @@ const xi = /* @__PURE__ */ new Set([
1262
1262
  const e = t.get(K), n = Tt(e), i = t.get(te);
1263
1263
  if (!n)
1264
1264
  return !1;
1265
- const r = t.get(ne), o = t.get(kt).getCurrentLastSelection();
1266
- if (!o)
1265
+ const r = t.get(ne), s = t.get(kt).getCurrentLastSelection();
1266
+ if (!s)
1267
1267
  return !1;
1268
- const c = o.range.startRow, u = o.range.startColumn, p = i.isVisible(), l = ((g = e.getFocusedUnit()) == null ? void 0 : g.getUnitId()) === N;
1268
+ const c = s.range.startRow, u = s.range.startColumn, p = i.isVisible(), l = ((g = e.getFocusedUnit()) == null ? void 0 : g.getUnitId()) === x;
1269
1269
  return r.executeCommand($t.id, {
1270
1270
  unitId: n.unitId,
1271
1271
  subUnitId: n.subUnitId,
@@ -1283,44 +1283,44 @@ const xi = /* @__PURE__ */ new Set([
1283
1283
  const e = t.get(ne);
1284
1284
  return t.get(G).currentEditing ? e.executeCommand(Je.id) : e.executeCommand(Bt.id);
1285
1285
  }
1286
- }, Ft = (t, e = N) => {
1286
+ }, Ft = (t, e = x) => {
1287
1287
  var r;
1288
- const n = t.get(K), i = (r = t.get(He).getRenderById(e)) == null ? void 0 : r.with(Nn);
1288
+ const n = t.get(K), i = (r = t.get(He).getRenderById(e)) == null ? void 0 : r.with(xn);
1289
1289
  return i ? i.textSelectionInner$.pipe(Ht(() => {
1290
- const o = t.get(te).getEditCellState();
1291
- if (!o)
1290
+ const s = t.get(te).getEditCellState();
1291
+ if (!s)
1292
1292
  return !0;
1293
- const c = Tt(n, { unitId: o.unitId, subUnitId: o.sheetId });
1294
- return !(c != null && c.worksheet) || Vt(t, c.worksheet, o.row, o.column) === 1 ? !0 : Ui(t);
1295
- })) : oe(!0);
1293
+ const c = Tt(n, { unitId: s.unitId, subUnitId: s.sheetId });
1294
+ return !(c != null && c.worksheet) || Vt(t, c.worksheet, s.row, s.column) === 1 ? !0 : Ui(t);
1295
+ })) : se(!0);
1296
1296
  }, Bn = (t) => {
1297
1297
  var r;
1298
1298
  const e = t.get(K), n = t.has(te) ? t.get(te) : null;
1299
1299
  return ((r = n == null ? void 0 : n.currentEditCellState$.pipe(
1300
- Ht((s) => {
1301
- if (!s)
1300
+ Ht((o) => {
1301
+ if (!o)
1302
1302
  return Oe.DISABLED_BY_CELL;
1303
- const o = Tt(e, { unitId: s.unitId, subUnitId: s.sheetId });
1304
- return o ? Vt(t, o.worksheet, s.row, s.column) : Oe.DISABLED_BY_CELL;
1303
+ const s = Tt(e, { unitId: o.unitId, subUnitId: o.sheetId });
1304
+ return s ? Vt(t, s.worksheet, o.row, o.column) : Oe.DISABLED_BY_CELL;
1305
1305
  }),
1306
- Me((s) => {
1307
- if (s === Oe.DISABLED_BY_CELL)
1308
- return oe(!0);
1309
- const o = n ? n.visible$ : oe(null);
1310
- return ai([o, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1306
+ Me((o) => {
1307
+ if (o === Oe.DISABLED_BY_CELL)
1308
+ return se(!0);
1309
+ const s = n ? n.visible$ : se(null);
1310
+ return ai([s, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1311
1311
  Me(
1312
- ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === sr ? oe(!0) : Ft(t, Ce) : oe(s !== Oe.ALLOWED)
1312
+ ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === or ? se(!0) : Ft(t, Ce) : se(o !== Oe.ALLOWED)
1313
1313
  )
1314
1314
  );
1315
1315
  })
1316
- )) != null ? r : oe(!0)).pipe(
1317
- Me((s) => s ? oe(!0) : Ar(t, { workbookTypes: [Mt], worksheetTypes: [Nt, Pn, xt], rangeTypes: [Ot] }, !0))
1316
+ )) != null ? r : se(!0)).pipe(
1317
+ Me((o) => o ? se(!0) : Ar(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1318
1318
  );
1319
1319
  }, Qe = {
1320
1320
  commandId: Bt.id,
1321
1321
  type: On.BUTTON,
1322
1322
  title: "hyperLink.menu.add",
1323
- icon: "LinkSingle"
1323
+ icon: "LinkIcon"
1324
1324
  }, et = (t) => `${t}-zen-editor`, Hi = (t) => ({
1325
1325
  ...Qe,
1326
1326
  id: Qe.commandId,
@@ -1330,13 +1330,13 @@ const xi = /* @__PURE__ */ new Set([
1330
1330
  }), Di = (t) => ({
1331
1331
  ...Qe,
1332
1332
  id: et(Qe.commandId),
1333
- hidden$: gt(t, k.UNIVER_DOC, N),
1333
+ hidden$: gt(t, k.UNIVER_DOC, x),
1334
1334
  disabled$: Ft(t)
1335
1335
  }), tt = {
1336
1336
  tooltip: "hyperLink.form.addTitle",
1337
1337
  commandId: ae.id,
1338
1338
  type: On.BUTTON,
1339
- icon: "LinkSingle"
1339
+ icon: "LinkIcon"
1340
1340
  }, Ai = (t) => ({
1341
1341
  ...tt,
1342
1342
  id: tt.commandId,
@@ -1345,7 +1345,7 @@ const xi = /* @__PURE__ */ new Set([
1345
1345
  }), Vi = (t) => ({
1346
1346
  ...tt,
1347
1347
  id: et(tt.commandId),
1348
- hidden$: gt(t, k.UNIVER_DOC, N),
1348
+ hidden$: gt(t, k.UNIVER_DOC, x),
1349
1349
  disabled$: Ft(t)
1350
1350
  }), Fn = {
1351
1351
  id: ae.id,
@@ -1353,8 +1353,8 @@ const xi = /* @__PURE__ */ new Set([
1353
1353
  preconditions: Dr
1354
1354
  };
1355
1355
  var $i = Object.getOwnPropertyDescriptor, Bi = (t, e, n, i) => {
1356
- for (var r = i > 1 ? void 0 : i ? $i(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1357
- (o = t[s]) && (r = o(r) || r);
1356
+ for (var r = i > 1 ? void 0 : i ? $i(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1357
+ (s = t[o]) && (r = s(r) || r);
1358
1358
  return r;
1359
1359
  }, fn = (t, e) => (n, i) => e(n, i, t);
1360
1360
  let nt = class extends Y {
@@ -1364,24 +1364,24 @@ let nt = class extends Y {
1364
1364
  // eslint-disable-next-line max-lines-per-function
1365
1365
  _initAutoFill() {
1366
1366
  const t = () => ({ redos: [], undos: [] }), e = (i, r) => {
1367
- const { source: s, target: o, unitId: c, subUnitId: u } = i, p = Pt([s, o]), [l, g] = p.ranges, { mapFunc: d } = p, _ = {
1367
+ const { source: o, target: s, unitId: c, subUnitId: u } = i, p = Pt([o, s]), [l, g] = p.ranges, { mapFunc: d } = p, _ = {
1368
1368
  row: l.startRow,
1369
1369
  col: l.startColumn
1370
- }, S = $r(l, g), f = [], b = [];
1371
- return S.forEach((a) => {
1372
- const w = a.repeatStartCell, M = a.relativeRange, T = {
1370
+ }, I = $r(l, g), f = [], w = [];
1371
+ return I.forEach((a) => {
1372
+ const b = a.repeatStartCell, M = a.relativeRange, T = {
1373
1373
  startRow: _.row,
1374
1374
  startColumn: _.col,
1375
1375
  endColumn: _.col,
1376
1376
  endRow: _.row
1377
1377
  }, P = {
1378
- startRow: w.row,
1379
- startColumn: w.col,
1380
- endColumn: w.col,
1381
- endRow: w.row
1378
+ startRow: b.row,
1379
+ startColumn: b.col,
1380
+ endColumn: b.col,
1381
+ endRow: b.row
1382
1382
  };
1383
1383
  yn.foreach(M, (V, D) => {
1384
- const z = Ie.getPositionRange(
1384
+ const z = Se.getPositionRange(
1385
1385
  {
1386
1386
  startRow: V,
1387
1387
  startColumn: D,
@@ -1389,7 +1389,7 @@ let nt = class extends Y {
1389
1389
  endRow: V
1390
1390
  },
1391
1391
  T
1392
- ), { row: ye, col: De } = d(z.startRow, z.startColumn), re = this._hyperLinkModel.getHyperLinkByLocation(c, u, ye, De), Ee = Ie.getPositionRange(
1392
+ ), { row: ye, col: De } = d(z.startRow, z.startColumn), re = this._hyperLinkModel.getHyperLinkByLocation(c, u, ye, De), Ee = Se.getPositionRange(
1393
1393
  {
1394
1394
  startRow: V,
1395
1395
  startColumn: D,
@@ -1397,16 +1397,16 @@ let nt = class extends Y {
1397
1397
  endRow: V
1398
1398
  },
1399
1399
  P
1400
- ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ae = Se.generateRandomId(), pe = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1400
+ ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ae = Ie.generateRandomId(), pe = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1401
1401
  pe && f.push({
1402
- id: Ne.id,
1402
+ id: xe.id,
1403
1403
  params: {
1404
1404
  unitId: c,
1405
1405
  subUnitId: u,
1406
1406
  id: pe.id
1407
1407
  }
1408
- }), (we.COPY === r || we.SERIES === r) && re && (f.push({
1409
- id: xe.id,
1408
+ }), (be.COPY === r || be.SERIES === r) && re && (f.push({
1409
+ id: Ne.id,
1410
1410
  params: {
1411
1411
  unitId: c,
1412
1412
  subUnitId: u,
@@ -1417,15 +1417,15 @@ let nt = class extends Y {
1417
1417
  column: Pe
1418
1418
  }
1419
1419
  }
1420
- }), b.push({
1421
- id: Ne.id,
1420
+ }), w.push({
1421
+ id: xe.id,
1422
1422
  params: {
1423
1423
  unitId: c,
1424
1424
  subUnitId: u,
1425
1425
  id: Ae
1426
1426
  }
1427
- })), pe && b.push({
1428
- id: xe.id,
1427
+ })), pe && w.push({
1428
+ id: Ne.id,
1429
1429
  params: {
1430
1430
  unitId: c,
1431
1431
  subUnitId: u,
@@ -1434,12 +1434,12 @@ let nt = class extends Y {
1434
1434
  });
1435
1435
  });
1436
1436
  }), {
1437
- undos: b,
1437
+ undos: w,
1438
1438
  redos: f
1439
1439
  };
1440
1440
  }, n = {
1441
1441
  id: Dt,
1442
- onFillData: (i, r, s) => s === we.COPY || s === we.ONLY_FORMAT || s === we.SERIES ? e(i, s) : t()
1442
+ onFillData: (i, r, o) => o === be.COPY || o === be.ONLY_FORMAT || o === be.SERIES ? e(i, o) : t()
1443
1443
  };
1444
1444
  this.disposeWithMe(this._autoFillService.addHook(n));
1445
1445
  }
@@ -1449,8 +1449,8 @@ nt = Bi([
1449
1449
  fn(1, y(pt))
1450
1450
  ], nt);
1451
1451
  var Fi = Object.getOwnPropertyDescriptor, ji = (t, e, n, i) => {
1452
- for (var r = i > 1 ? void 0 : i ? Fi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1453
- (o = t[s]) && (r = o(r) || r);
1452
+ for (var r = i > 1 ? void 0 : i ? Fi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1453
+ (s = t[o]) && (r = s(r) || r);
1454
1454
  return r;
1455
1455
  }, Rt = (t, e) => (n, i) => e(n, i, t);
1456
1456
  let rt = class extends Y {
@@ -1463,7 +1463,7 @@ let rt = class extends Y {
1463
1463
  t.id === Fn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1464
1464
  workbookTypes: [Mt],
1465
1465
  rangeTypes: [Ot],
1466
- worksheetTypes: [Nt, Pn, xt]
1466
+ worksheetTypes: [xt, Pn, Nt]
1467
1467
  }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.hyperLinkErr")));
1468
1468
  })
1469
1469
  );
@@ -1475,17 +1475,17 @@ rt = ji([
1475
1475
  Rt(2, y(Ln))
1476
1476
  ], rt);
1477
1477
  var Wi = Object.getOwnPropertyDescriptor, Zi = (t, e, n, i) => {
1478
- for (var r = i > 1 ? void 0 : i ? Wi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1479
- (o = t[s]) && (r = o(r) || r);
1478
+ for (var r = i > 1 ? void 0 : i ? Wi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1479
+ (s = t[o]) && (r = s(r) || r);
1480
1480
  return r;
1481
1481
  }, W = (t, e) => (n, i) => e(n, i, t);
1482
1482
  let it = class extends Y {
1483
- constructor(t, e, n, i, r, s, o, c, u, p) {
1484
- super(), this._hoverManagerService = t, this._sheetsHyperLinkPopupService = e, this._renderManagerService = n, this._permissionService = i, this._sheetPermissionCheckController = r, this._commandService = s, this._editorBridgeService = o, this._textSelectionManagerService = c, this._univerInstanceService = u, this._zenZoneService = p, this._initHoverListener(), this._initCommandListener(), this._initHoverEditingListener(), this._initTextSelectionListener(), this._initZenEditor();
1483
+ constructor(t, e, n, i, r, o, s, c, u, p) {
1484
+ super(), this._hoverManagerService = t, this._sheetsHyperLinkPopupService = e, this._renderManagerService = n, this._permissionService = i, this._sheetPermissionCheckController = r, this._commandService = o, this._editorBridgeService = s, this._textSelectionManagerService = c, this._univerInstanceService = u, this._zenZoneService = p, this._initHoverListener(), this._initCommandListener(), this._initHoverEditingListener(), this._initTextSelectionListener(), this._initZenEditor();
1485
1485
  }
1486
1486
  _getLinkPermission(t) {
1487
- const { unitId: e, subUnitId: n, row: i, col: r } = t, s = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET);
1488
- if (!(s == null ? void 0 : s.getSheetBySheetId(n)))
1487
+ const { unitId: e, subUnitId: n, row: i, col: r } = t, o = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET);
1488
+ if (!(o == null ? void 0 : o.getSheetBySheetId(n)))
1489
1489
  return {
1490
1490
  viewPermission: !1,
1491
1491
  editPermission: !1,
@@ -1497,7 +1497,7 @@ let it = class extends Y {
1497
1497
  rangeTypes: [pr]
1498
1498
  }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]), u = this._sheetPermissionCheckController.permissionCheckWithRanges({
1499
1499
  workbookTypes: [Mt],
1500
- worksheetTypes: [Nt, xt],
1500
+ worksheetTypes: [xt, Nt],
1501
1501
  rangeTypes: [Ot]
1502
1502
  }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]), p = this._permissionService.composePermission([new vr(e).id, new mr(e, n).id]).every((l) => l.value);
1503
1503
  return {
@@ -1515,27 +1515,27 @@ let it = class extends Y {
1515
1515
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1516
1516
  return;
1517
1517
  }
1518
- const { unitId: e, subUnitId: n, row: i, col: r } = t, s = this._renderManagerService.getRenderById(e);
1519
- if (!s)
1518
+ const { unitId: e, subUnitId: n, row: i, col: r } = t, o = this._renderManagerService.getRenderById(e);
1519
+ if (!o)
1520
1520
  return;
1521
- const o = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), c = o == null ? void 0 : o.getSheetBySheetId(n);
1521
+ const s = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), c = s == null ? void 0 : s.getSheetBySheetId(n);
1522
1522
  if (!c)
1523
1523
  return;
1524
- if (!s.with(Fr).active) {
1524
+ if (!o.with(Fr).active) {
1525
1525
  this._sheetsHyperLinkPopupService.hideCurrentPopup(v.VIEWING);
1526
1526
  return;
1527
1527
  }
1528
- const p = (T = s == null ? void 0 : s.with(un).getSkeletonParam(n)) == null ? void 0 : T.skeleton, l = r, g = i;
1528
+ const p = (T = o == null ? void 0 : o.with(un).getSkeletonParam(n)) == null ? void 0 : T.skeleton, l = r, g = i;
1529
1529
  let d = g, _ = l;
1530
1530
  p && p.overflowCache.forValue((V, D, z) => {
1531
- Ie.contains(z, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = V, _ = D);
1531
+ Se.contains(z, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = V, _ = D);
1532
1532
  });
1533
- const { viewPermission: S, editPermission: f, copyPermission: b } = this._getLinkPermission(t);
1534
- if (!S) {
1533
+ const { viewPermission: I, editPermission: f, copyPermission: w } = this._getLinkPermission(t);
1534
+ if (!I) {
1535
1535
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1536
1536
  return;
1537
1537
  }
1538
- const a = c.getCellStyleOnly(d, _), w = o.getStyles().getStyleByCell(a), M = (P = w == null ? void 0 : w.tr) == null ? void 0 : P.a;
1538
+ const a = c.getCellStyleOnly(d, _), b = s.getStyles().getStyleByCell(a), M = (P = b == null ? void 0 : b.tr) == null ? void 0 : P.a;
1539
1539
  if (!M && !t.customRange) {
1540
1540
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1541
1541
  return;
@@ -1544,7 +1544,7 @@ let it = class extends Y {
1544
1544
  row: d,
1545
1545
  col: _,
1546
1546
  editPermission: f,
1547
- copyPermission: b,
1547
+ copyPermission: w,
1548
1548
  customRange: t.customRange,
1549
1549
  customRangeRect: t.rect,
1550
1550
  type: v.VIEWING,
@@ -1565,27 +1565,27 @@ let it = class extends Y {
1565
1565
  t == null || t.unsubscribe(), this._sheetsHyperLinkPopupService.hideCurrentPopup(v.EDITING), this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1566
1566
  return;
1567
1567
  }
1568
- const { editorUnitId: i, unitId: r, sheetId: s, row: o, column: c } = n, u = this._renderManagerService.getRenderById(i);
1568
+ const { editorUnitId: i, unitId: r, sheetId: o, row: s, column: c } = n, u = this._renderManagerService.getRenderById(i);
1569
1569
  if (!u)
1570
1570
  return;
1571
- const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(pn);
1571
+ const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: o, row: s, col: c }), d = u.with(pn);
1572
1572
  l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(Ze(200)).subscribe((_) => {
1573
- var w, M;
1574
- const S = _.find((T) => T.range.rangeType === Ke.HYPERLINK);
1575
- if (!S) {
1573
+ var b, M;
1574
+ const I = _.find((T) => T.range.rangeType === Ke.HYPERLINK);
1575
+ if (!I) {
1576
1576
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1577
1577
  return;
1578
1578
  }
1579
- const f = S.rects[S.rects.length - 1];
1580
- if (!((M = (w = this._renderManagerService.getRenderById(r)) == null ? void 0 : w.with(un).getSkeletonParam(s)) == null ? void 0 : M.skeleton) || !f)
1579
+ const f = I.rects[I.rects.length - 1];
1580
+ if (!((M = (b = this._renderManagerService.getRenderById(r)) == null ? void 0 : b.with(un).getSkeletonParam(o)) == null ? void 0 : M.skeleton) || !f)
1581
1581
  return;
1582
1582
  const a = u.engine.getCanvasElement().getBoundingClientRect();
1583
1583
  this._sheetsHyperLinkPopupService.showPopup({
1584
1584
  unitId: r,
1585
- subUnitId: s,
1586
- row: o,
1585
+ subUnitId: o,
1586
+ row: s,
1587
1587
  col: c,
1588
- customRange: S.range,
1588
+ customRange: I.range,
1589
1589
  customRangeRect: {
1590
1590
  left: f.left + a.left,
1591
1591
  top: f.top + a.top,
@@ -1610,7 +1610,7 @@ let it = class extends Y {
1610
1610
  ), this.disposeWithMe(
1611
1611
  this._univerInstanceService.focused$.pipe(
1612
1612
  Me((t) => {
1613
- const e = t === N ? this._renderManagerService.getRenderById(t) : null;
1613
+ const e = t === x ? this._renderManagerService.getRenderById(t) : null;
1614
1614
  return e ? e.with(pn).hoverCustomRanges$.pipe(Ze(200)) : new ci((n) => {
1615
1615
  n.next(null);
1616
1616
  });
@@ -1618,13 +1618,13 @@ let it = class extends Y {
1618
1618
  ).subscribe((t) => {
1619
1619
  const e = t == null ? void 0 : t.find((i) => i.range.rangeType === Ke.HYPERLINK), n = this._editorBridgeService.getEditCellState();
1620
1620
  if (e && n) {
1621
- const { unitId: i, sheetId: r, row: s, column: o } = n, { editPermission: c, viewPermission: u, copyPermission: p } = this._getLinkPermission({ unitId: i, subUnitId: r, row: s, col: o });
1621
+ const { unitId: i, sheetId: r, row: o, column: s } = n, { editPermission: c, viewPermission: u, copyPermission: p } = this._getLinkPermission({ unitId: i, subUnitId: r, row: o, col: s });
1622
1622
  u && this._sheetsHyperLinkPopupService.showPopup({
1623
1623
  type: v.ZEN_EDITOR,
1624
1624
  unitId: i,
1625
1625
  subUnitId: r,
1626
- row: s,
1627
- col: o,
1626
+ row: o,
1627
+ col: s,
1628
1628
  customRange: e.range,
1629
1629
  editPermission: c,
1630
1630
  copyPermission: p
@@ -1642,7 +1642,7 @@ let it = class extends Y {
1642
1642
  );
1643
1643
  }
1644
1644
  _initCommandListener() {
1645
- const t = [fr.id, _r.id, Sr.id];
1645
+ const t = [fr.id, _r.id, Ir.id];
1646
1646
  this.disposeWithMe(this._commandService.onCommandExecuted((e) => {
1647
1647
  t.includes(e.id) && this._sheetsHyperLinkPopupService.hideCurrentPopup();
1648
1648
  }));
@@ -1652,7 +1652,7 @@ it = Zi([
1652
1652
  W(0, y(Br)),
1653
1653
  W(1, y(G)),
1654
1654
  W(2, y(He)),
1655
- W(3, y(or)),
1655
+ W(3, y(sr)),
1656
1656
  W(4, y(Ln)),
1657
1657
  W(5, ne),
1658
1658
  W(6, te),
@@ -1661,11 +1661,11 @@ it = Zi([
1661
1661
  W(9, ht)
1662
1662
  ], it);
1663
1663
  var Gi = Object.getOwnPropertyDescriptor, jn = (t, e, n, i) => {
1664
- for (var r = i > 1 ? void 0 : i ? Gi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1665
- (o = t[s]) && (r = o(r) || r);
1664
+ for (var r = i > 1 ? void 0 : i ? Gi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1665
+ (s = t[o]) && (r = s(r) || r);
1666
1666
  return r;
1667
- }, bt = (t, e) => (n, i) => e(n, i, t);
1668
- let wt = class extends Y {
1667
+ }, wt = (t, e) => (n, i) => e(n, i, t);
1668
+ let bt = class extends Y {
1669
1669
  constructor(t, e) {
1670
1670
  super(), this._context = t, this._hyperLinkModel = e, this._initSkeletonChange();
1671
1671
  }
@@ -1679,37 +1679,33 @@ let wt = class extends Y {
1679
1679
  }));
1680
1680
  }
1681
1681
  };
1682
- wt = jn([
1683
- bt(1, y(pt))
1684
- ], wt);
1685
- let st = class extends Y {
1682
+ bt = jn([
1683
+ wt(1, y(pt))
1684
+ ], bt);
1685
+ let ot = class extends Y {
1686
1686
  constructor(t, e) {
1687
1687
  super(), this._sheetInterceptorService = t, this._hyperLinkModel = e, this._initViewModelIntercept();
1688
1688
  }
1689
1689
  _initViewModelIntercept() {
1690
1690
  this.disposeWithMe(
1691
1691
  this._sheetInterceptorService.intercept(
1692
- Ir.CELL_CONTENT,
1692
+ Sr.CELL_CONTENT,
1693
1693
  {
1694
1694
  effect: ar.Value,
1695
1695
  priority: 100,
1696
1696
  handler: (t, e, n) => {
1697
- const { row: i, col: r, unitId: s, subUnitId: o } = e, c = this._hyperLinkModel.getHyperLinkByLocation(s, o, i, r);
1698
- return n(c ? {
1699
- ...t,
1700
- linkUrl: c.payload,
1701
- linkId: c.id
1702
- } : t);
1697
+ const { row: i, col: r, unitId: o, subUnitId: s } = e, c = this._hyperLinkModel.getHyperLinkByLocation(o, s, i, r);
1698
+ return c && t && (t === e.rawData && (t = { ...e.rawData }), t.linkUrl = c.payload, t.linkId = c.id), n(t);
1703
1699
  }
1704
1700
  }
1705
1701
  )
1706
1702
  );
1707
1703
  }
1708
1704
  };
1709
- st = jn([
1710
- bt(0, y(Cr)),
1711
- bt(1, y(pt))
1712
- ], st);
1705
+ ot = jn([
1706
+ wt(0, y(Cr)),
1707
+ wt(1, y(pt))
1708
+ ], ot);
1713
1709
  const Ki = {
1714
1710
  [qr.MEDIA]: {
1715
1711
  [ae.id]: {
@@ -1736,21 +1732,21 @@ const Ki = {
1736
1732
  }
1737
1733
  };
1738
1734
  var Yi = Object.getOwnPropertyDescriptor, zi = (t, e, n, i) => {
1739
- for (var r = i > 1 ? void 0 : i ? Yi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1740
- (o = t[s]) && (r = o(r) || r);
1735
+ for (var r = i > 1 ? void 0 : i ? Yi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1736
+ (s = t[o]) && (r = s(r) || r);
1741
1737
  return r;
1742
1738
  }, ke = (t, e) => (n, i) => e(n, i, t);
1743
- let ot = class extends Y {
1739
+ let st = class extends Y {
1744
1740
  constructor(t, e, n, i, r) {
1745
1741
  super(), this._componentManager = t, this._commandService = e, this._menuManagerService = n, this._injector = i, this._shortcutService = r, this._initComponents(), this._initCommands(), this._initMenus(), this._initShortCut();
1746
1742
  }
1747
1743
  _initComponents() {
1748
1744
  [
1749
- [qe, qe.componentKey],
1750
- [Xe, Xe.componentKey],
1751
- [At, "LinkSingle"]
1745
+ [qe.componentKey, qe],
1746
+ [Xe.componentKey, Xe],
1747
+ ["LinkIcon", At]
1752
1748
  ].forEach(([t, e]) => {
1753
- this._componentManager.register(e, t);
1749
+ this._componentManager.register(t, e);
1754
1750
  });
1755
1751
  }
1756
1752
  _initCommands() {
@@ -1770,16 +1766,16 @@ let ot = class extends Y {
1770
1766
  this._shortcutService.registerShortcut(Fn);
1771
1767
  }
1772
1768
  };
1773
- ot = zi([
1769
+ st = zi([
1774
1770
  ke(0, y(Jr)),
1775
1771
  ke(1, ne),
1776
1772
  ke(2, Qr),
1777
1773
  ke(3, y(lt)),
1778
1774
  ke(4, y(ei))
1779
- ], ot);
1775
+ ], st);
1780
1776
  var Xi = Object.getOwnPropertyDescriptor, qi = (t, e, n, i) => {
1781
- for (var r = i > 1 ? void 0 : i ? Xi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1782
- (o = t[s]) && (r = o(r) || r);
1777
+ for (var r = i > 1 ? void 0 : i ? Xi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1778
+ (s = t[o]) && (r = s(r) || r);
1783
1779
  return r;
1784
1780
  }, _n = (t, e) => (n, i) => e(n, i, t);
1785
1781
  let at = class extends Y {
@@ -1798,11 +1794,11 @@ at = qi([
1798
1794
  _n(0, y(Ut)),
1799
1795
  _n(1, y(ce))
1800
1796
  ], at);
1801
- var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, es = (t, e, n) => e in t ? Ji(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ts = (t, e, n, i) => {
1802
- for (var r = i > 1 ? void 0 : i ? Qi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1803
- (o = t[s]) && (r = o(r) || r);
1797
+ var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, eo = (t, e, n) => e in t ? Ji(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, to = (t, e, n, i) => {
1798
+ for (var r = i > 1 ? void 0 : i ? Qi(e, n) : e, o = t.length - 1, s; o >= 0; o--)
1799
+ (s = t[o]) && (r = s(r) || r);
1804
1800
  return r;
1805
- }, Sn = (t, e) => (n, i) => e(n, i, t), Wn = (t, e, n) => es(t, typeof e != "symbol" ? e + "" : e, n);
1801
+ }, In = (t, e) => (n, i) => e(n, i, t), Wn = (t, e, n) => eo(t, typeof e != "symbol" ? e + "" : e, n);
1806
1802
  let ct = class extends ur {
1807
1803
  constructor(t = gn, e, n) {
1808
1804
  super(), this._config = t, this._injector = e, this._configService = n;
@@ -1818,17 +1814,17 @@ let ct = class extends ur {
1818
1814
  [ce],
1819
1815
  [G],
1820
1816
  [Un],
1821
- [st],
1822
- [it],
1823
1817
  [ot],
1818
+ [it],
1819
+ [st],
1824
1820
  [nt],
1825
1821
  [ze],
1826
1822
  [rt],
1827
1823
  [at]
1828
- ].forEach((e) => this._injector.add(e)), this._injector.get(st);
1824
+ ].forEach((e) => this._injector.add(e)), this._injector.get(ot);
1829
1825
  }
1830
1826
  onReady() {
1831
- this._injector.get(He).registerRenderModule(k.UNIVER_SHEET, [wt]), this._injector.get(nt), this._injector.get(ze), this._injector.get(ot);
1827
+ this._injector.get(He).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(ze), this._injector.get(st);
1832
1828
  }
1833
1829
  onRendered() {
1834
1830
  this._injector.get(rt), this._injector.get(at), this._injector.get(it);
@@ -1836,10 +1832,10 @@ let ct = class extends ur {
1836
1832
  };
1837
1833
  Wn(ct, "pluginName", Dt);
1838
1834
  Wn(ct, "type", k.UNIVER_SHEET);
1839
- ct = ts([
1835
+ ct = to([
1840
1836
  cr(kr, ii),
1841
- Sn(1, y(lt)),
1842
- Sn(2, Cn)
1837
+ In(1, y(lt)),
1838
+ In(2, Cn)
1843
1839
  ], ct);
1844
1840
  export {
1845
1841
  Je as CloseHyperLinkPopupOperation,