@univerjs/sheets-hyper-link-ui 0.8.0-nightly.202505281606 → 0.8.0-nightly.202505301607

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 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";
4
+ import { Tools as Ce, 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 ye, Injector as lt, Disposable as Y, Range as yn, ObjectMatrix as Qn, IContextService as er, ThemeService as tr, DataStreamTreeTokenType as cn, CustomRangeType as xe, BuildTextUtils as _e, 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 Se, DataValidationType as St, 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
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
- import { IDefinedNamesService as kn, deserializeRangeWithSheet as We, serializeRangeWithSheet as jr, serializeRangeToRefString as Wr, serializeRange as Zr } from "@univerjs/engine-formula";
6
+ import { SheetHyperLinkType as C, ERROR_RANGE as yr, HyperLinkModel as pt, RemoveHyperLinkMutation as Ne, AddHyperLinkMutation as Me, 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 Be, 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 We, FormLayout as me, Input as ln, Select as yt, Button as dn, borderClassName as bn, Tooltip as Fe } from "@univerjs/design";
9
+ import { IDefinedNamesService as kn, deserializeRangeWithSheet as Ze, serializeRangeWithSheet as jr, serializeRangeToRefString as Wr, serializeRange as Zr } from "@univerjs/engine-formula";
10
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
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
- import { IRenderManagerService as He } from "@univerjs/engine-render";
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
- import { DocSelectionManagerService as Ue } from "@univerjs/docs";
15
- import { jsxs as _e, jsx as m, Fragment as ui } from "react/jsx-runtime";
12
+ import { IRenderManagerService as De } from "@univerjs/engine-render";
13
+ import { Subject as si, BehaviorSubject as oi, of as ae, map as Ht, switchMap as Ue, combineLatest as ai, debounceTime as Ge, Observable as ci } from "rxjs";
14
+ import { DocSelectionManagerService as He } from "@univerjs/docs";
15
+ import { jsxs as Ie, 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 Nn, 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 le, createElement as de } from "react";
18
18
  import { SheetDataValidationModel as hn } from "@univerjs/sheets-data-validation";
19
19
  function Ye(t) {
20
- return Ie.isLegalUrl(t);
20
+ return Ce.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, o = t.length - 1, s; o >= 0; o--)
44
- (s = t[o]) && (r = s(r) || r);
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);
45
45
  return r;
46
- }, me = (t, e) => (n, i) => e(n, i, t);
46
+ }, fe = (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 o = [];
52
- return n.forEach((s) => {
53
- Se.intersects(t, s) && o.push(s);
54
- }), Se.realUnion(t, ...o);
51
+ const s = [];
52
+ return n.forEach((o) => {
53
+ ye.intersects(t, o) && s.push(o);
54
+ }), ye.realUnion(t, ...s);
55
55
  }
56
- let ce = class {
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;
56
+ let ue = 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;
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 o = r.getUnitId();
73
+ const s = r.getUnitId();
74
74
  if (i) {
75
- const s = this._definedNamesService.getValueById(o, i);
76
- if (!s)
75
+ const o = this._definedNamesService.getValueById(s, i);
76
+ if (!o)
77
77
  return;
78
- const { formulaOrRefString: c } = s, u = this._definedNamesService.getWorksheetByRef(o, c);
78
+ const { formulaOrRefString: c } = o, u = this._definedNamesService.getWorksheetByRef(s, 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(o, i);
93
+ this.navigateToDefineName(s, i);
94
94
  }
95
95
  if (e) {
96
96
  if (n) {
97
- const s = We(n);
98
- Sn(s.range) && n !== yr && this.navigateToRange(o, e, s.range);
97
+ const o = Ze(n);
98
+ Sn(o.range) && n !== yr && this.navigateToRange(s, e, o.range);
99
99
  return;
100
100
  }
101
- this.navigateToSheetById(o, e);
101
+ this.navigateToSheetById(s, 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 o = fi(n, r);
107
+ const s = 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: o,
114
+ range: s,
115
115
  primary: null
116
116
  }]
117
117
  }
118
118
  ), await this._commandService.executeCommand(wn.id, {
119
- range: o,
119
+ range: s,
120
120
  forceTop: i
121
121
  });
122
122
  }
@@ -150,20 +150,20 @@ let ce = class {
150
150
  window.open(t, "_blank", "noopener noreferrer");
151
151
  }
152
152
  };
153
- ce = mi([
154
- me(0, K),
155
- me(1, ne),
156
- me(2, kn),
157
- me(3, Tn),
158
- me(4, y(ut)),
159
- me(5, Cn)
160
- ], ce);
153
+ ue = mi([
154
+ fe(0, K),
155
+ fe(1, ne),
156
+ fe(2, kn),
157
+ fe(3, Tn),
158
+ fe(4, y(ut)),
159
+ fe(5, Cn)
160
+ ], ue);
161
161
  const Dt = "SHEET_HYPER_LINK_UI_PLUGIN";
162
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);
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);
165
165
  return r;
166
- }, Fe = (t, e) => (n, i) => e(n, i, t);
166
+ }, je = (t, e) => (n, i) => e(n, i, t);
167
167
  let ze = class extends Y {
168
168
  constructor(e, n, i, r) {
169
169
  super();
@@ -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: 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 });
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 });
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: o, subUnitId: s } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
197
+ const { range: r, unitId: s, subUnitId: o } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
198
198
  return yn.foreach(c, (g, d) => {
199
- const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(o, s, _, I);
199
+ const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(s, o, _, I);
200
200
  f && p.push({
201
- id: xe.id,
201
+ id: Ne.id,
202
202
  params: {
203
- unitId: o,
204
- subUnitId: s,
203
+ unitId: s,
204
+ subUnitId: o,
205
205
  id: f.id
206
206
  }
207
207
  }), f && l.push({
208
- id: Ne.id,
208
+ id: Me.id,
209
209
  params: {
210
- unitId: o,
211
- subUnitId: s,
210
+ unitId: s,
211
+ subUnitId: o,
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 o = this._injector.invoke((u) => dr(i, u, e, n));
230
- if (!o)
229
+ const s = this._injector.invoke((u) => dr(i, u, e, n));
230
+ if (!s)
231
231
  return;
232
- const { rows: s, cols: c } = o;
233
- s.forEach((u, p) => {
232
+ const { rows: o, cols: c } = s;
233
+ o.forEach((u, p) => {
234
234
  c.forEach((l, g) => {
235
235
  var _;
236
236
  const d = this._hyperLinkModel.getHyperLinkByLocation(e, n, u, l);
@@ -245,17 +245,17 @@ let ze = class extends Y {
245
245
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !n.copyRange)
246
246
  return { redos: [], undos: [] };
247
247
  if ([
248
- $e.SPECIAL_PASTE_COL_WIDTH,
249
- $e.SPECIAL_PASTE_VALUE,
250
- $e.SPECIAL_PASTE_FORMAT,
251
- $e.SPECIAL_PASTE_FORMULA
248
+ Be.SPECIAL_PASTE_COL_WIDTH,
249
+ Be.SPECIAL_PASTE_VALUE,
250
+ Be.SPECIAL_PASTE_FORMAT,
251
+ Be.SPECIAL_PASTE_FORMULA
252
252
  ].includes(n.pasteType))
253
253
  return { redos: [], undos: [] };
254
- const { unitId: r, subUnitId: o } = this._copyInfo, s = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
254
+ const { unitId: r, subUnitId: s } = this._copyInfo, o = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
255
255
  return xr(u, p, !0).forEach(({ startRange: d }) => {
256
256
  var _;
257
257
  (_ = this._copyInfo) == null || _.matrix.forValue((I, f, w) => {
258
- const a = Se.getPositionRange(
258
+ const a = ye.getPositionRange(
259
259
  {
260
260
  startRow: I,
261
261
  endRow: I,
@@ -263,35 +263,35 @@ let ze = class extends Y {
263
263
  endColumn: f
264
264
  },
265
265
  d
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,
266
+ ), b = this._hyperLinkModel.getHyperLink(r, s, w), { row: M, col: T } = l(a.startRow, a.startColumn), P = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, M, T), D = Ce.generateRandomId();
267
+ P && o.push({
268
+ id: Ne.id,
269
269
  params: {
270
270
  unitId: n.unitId,
271
271
  subUnitId: n.subUnitId,
272
272
  id: P.id
273
273
  }
274
- }), b && (s.push({
275
- id: Ne.id,
274
+ }), b && (o.push({
275
+ id: Me.id,
276
276
  params: {
277
277
  unitId: n.unitId,
278
278
  subUnitId: n.subUnitId,
279
279
  link: {
280
280
  ...b,
281
- id: V,
281
+ id: D,
282
282
  row: M,
283
283
  column: T
284
284
  }
285
285
  }
286
286
  }), c.push({
287
- id: xe.id,
287
+ id: Ne.id,
288
288
  params: {
289
289
  unitId: n.unitId,
290
290
  subUnitId: n.subUnitId,
291
- id: V
291
+ id: D
292
292
  }
293
293
  })), P && c.push({
294
- id: Ne.id,
294
+ id: Me.id,
295
295
  params: {
296
296
  unitId: n.unitId,
297
297
  subUnitId: n.subUnitId,
@@ -299,14 +299,14 @@ let ze = class extends Y {
299
299
  }
300
300
  });
301
301
  });
302
- }), { redos: s, undos: c };
302
+ }), { redos: o, undos: c };
303
303
  }
304
304
  };
305
305
  ze = Ii([
306
- Fe(0, Tr),
307
- Fe(1, y(pt)),
308
- Fe(2, y(lt)),
309
- Fe(3, y(ce))
306
+ je(0, Tr),
307
+ je(1, y(pt)),
308
+ je(2, y(lt)),
309
+ je(3, y(ue))
310
310
  ], ze);
311
311
  var v = /* @__PURE__ */ ((t) => (t.EDITING = "editing", t.VIEWING = "viewing", t.ZEN_EDITOR = "zen_mode", t))(v || {});
312
312
  class Un extends Y {
@@ -339,41 +339,41 @@ class Un extends Y {
339
339
  }
340
340
  const Xe = () => {
341
341
  var Zt;
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(() => {
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 = S(ut), _ = S(kn), I = S(te), f = S(K), w = S(G), a = Gr(w.currentEditing$), b = S(Ut), M = S(ue), T = S(ne), P = S(Un), D = Et(() => P.getOptions(), [P]), A = S(ht), z = S(De), re = S(Nr), Ae = S(He), ie = S(er), Ee = S(tr), Re = S(He), [Pe, Ve] = Z(!1), he = S(kt), Zn = Et(() => he.getCurrentSelections(), []), $e = 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 = 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]);
345
+ }, [P, u]), [ge, 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
+ s(h.replaceAll(cn.CUSTOM_RANGE_START, "").replaceAll(cn.CUSTOM_RANGE_END, ""));
347
+ }, [s]);
348
348
  ee(() => {
349
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: It } = a;
351
+ const { customRange: se, row: _t, col: It } = a;
352
352
  let { label: X } = a;
353
353
  typeof X == "number" && (X = `${X}`);
354
354
  let j;
355
- if (ie)
355
+ if (se)
356
356
  j = {
357
- id: (h = ie == null ? void 0 : ie.rangeId) != null ? h : "",
357
+ id: (h = se == null ? void 0 : se.rangeId) != null ? h : "",
358
358
  display: X != null ? X : "",
359
- payload: (R = (E = ie == null ? void 0 : ie.properties) == null ? void 0 : E.url) != null ? R : "",
359
+ payload: (R = (E = se == null ? void 0 : se.properties) == null ? void 0 : E.url) != null ? R : "",
360
360
  row: _t,
361
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 = (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);
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), ve = (F = (N = (L = U == null ? void 0 : U.p) == null ? void 0 : L.body) == null ? void 0 : N.customRanges) == null ? void 0 : F.find((sn) => {
365
+ var on;
366
+ return sn.rangeType === xe.HYPERLINK && ((on = sn.properties) == null ? void 0 : on.url);
367
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 = {
368
+ U && (!_e.transform.isEmptyDocument((Kt = (Gt = U.p) == null ? void 0 : Gt.body) == null ? void 0 : Kt.dataStream) || Ce.isDefine(we)) && c(!1), j = {
369
369
  id: "",
370
370
  display: "",
371
- payload: (zt = (Yt = ge == null ? void 0 : ge.properties) == null ? void 0 : Yt.url) != null ? zt : "",
371
+ payload: (zt = (Yt = ve == null ? void 0 : ve.properties) == null ? void 0 : Yt.url) != null ? zt : "",
372
372
  row: _t,
373
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, we = 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 = Ae.getActiveTextRange(), U = O == null ? void 0 : O.getBody(), ve = Q && U ? Q : null, we = ve && ((qt = _e.customRange.getCustomRangesInterestsWithSelection(ve, (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 : "",
@@ -397,7 +397,7 @@ const Xe = () => {
397
397
  break;
398
398
  }
399
399
  case C.RANGE: {
400
- const O = J.searchObj, Q = O.gid && (nn = (tn = (en = f.getUnit(a.unitId)) == null ? void 0 : en.getSheetBySheetId(O.gid)) == null ? void 0 : tn.getName()) != null ? nn : "", U = jr(Q, We(O.range).range);
400
+ const O = J.searchObj, Q = O.gid && (nn = (tn = (en = f.getUnit(a.unitId)) == null ? void 0 : en.getSheetBySheetId(O.gid)) == null ? void 0 : tn.getName()) != null ? nn : "", U = jr(Q, Ze(O.range).range);
401
401
  g(U), U === j.display && (H.current = !0);
402
402
  break;
403
403
  }
@@ -416,11 +416,11 @@ const Xe = () => {
416
416
  break;
417
417
  }
418
418
  }
419
- }, [a, M, P, De, f]), ee(() => {
419
+ }, [a, M, P, Ae, f]), ee(() => {
420
420
  let h = null;
421
- if (a && !a.customRangeId && a.type === v.VIEWING && Ie.isDefine(a.row) && Ie.isDefine(a.col)) {
421
+ if (a && !a.customRangeId && a.type === v.VIEWING && Ce.isDefine(a.row) && Ce.isDefine(a.col)) {
422
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
- h = ye.addShape(
423
+ h = re.addShape(
424
424
  {
425
425
  range: L != null ? L : {
426
426
  startColumn: a.col,
@@ -442,9 +442,9 @@ const Xe = () => {
442
442
  );
443
443
  }
444
444
  return () => {
445
- h && ye.removeShape(h);
445
+ h && re.removeShape(h);
446
446
  };
447
- }, [a, ye, Ee, f]), ee(() => {
447
+ }, [a, re, Ee, f]), ee(() => {
448
448
  jt(u === C.RANGE);
449
449
  }, [u]), ee(() => {
450
450
  const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new rr();
@@ -460,8 +460,8 @@ const Xe = () => {
460
460
  }, [a == null ? void 0 : a.type, I, z]), ee(() => (Le && w.setIsKeepVisible(Le), w.setIsKeepVisible(Pe), () => {
461
461
  w.setIsKeepVisible(!1);
462
462
  }), [Le, Pe, w]), ee(() => () => {
463
- D.temporaryHidden && (D.show(), re.setContextValue(Ct, !1));
464
- }, [re, D]), ee(() => {
463
+ A.temporaryHidden && (A.show(), ie.setContextValue(Ct, !1));
464
+ }, [ie, A]), ee(() => {
465
465
  if (Le)
466
466
  return I.enableForceKeepVisible(), () => {
467
467
  I.disableForceKeepVisible();
@@ -484,7 +484,7 @@ const Xe = () => {
484
484
  label: d.t("hyperLink.form.definedName"),
485
485
  value: C.DEFINE_NAME
486
486
  },
487
- ...V
487
+ ...D
488
488
  ];
489
489
  if (!B)
490
490
  return;
@@ -495,21 +495,21 @@ const Xe = () => {
495
495
  if (h === C.URL)
496
496
  return gi(E);
497
497
  if (h === C.RANGE) {
498
- const R = We(E), L = B.getSheetBySheetName(R.sheetName);
498
+ const R = Ze(E), L = B.getSheetBySheetName(R.sheetName);
499
499
  if (L)
500
500
  return `#gid=${L.getSheetId()}&range=${Zr(R.range)}`;
501
501
  }
502
502
  return `#${h}=${E}`;
503
503
  }, Xn = Kr((h) => {
504
504
  var N;
505
- const R = h.split(",").map(We)[0];
505
+ const R = h.split(",").map(Ze)[0];
506
506
  if (!R || !Sn(R.range))
507
507
  return;
508
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 (s && !r || !l || u === C.URL && !Ye(l)) {
512
+ if (o && !r || !l || u === C.URL && !Ye(l)) {
513
513
  Gn(!0);
514
514
  return;
515
515
  }
@@ -521,7 +521,7 @@ const Xe = () => {
521
521
  unitId: a.unitId,
522
522
  subUnitId: a.subUnitId,
523
523
  payload: {
524
- display: s ? r : "",
524
+ display: o ? r : "",
525
525
  payload: Wt(u, l)
526
526
  },
527
527
  row: a.row,
@@ -538,7 +538,7 @@ const Xe = () => {
538
538
  row: a.row,
539
539
  column: a.col,
540
540
  payload: Wt(u, l),
541
- display: s ? r : ""
541
+ display: o ? r : ""
542
542
  },
543
543
  documentId: a.type === v.ZEN_EDITOR ? x : I.getCurrentEditorId()
544
544
  });
@@ -560,16 +560,16 @@ const Xe = () => {
560
560
  }
561
561
  T.executeCommand(Je.id);
562
562
  };
563
- return a ? /* @__PURE__ */ _e(
563
+ return a ? /* @__PURE__ */ Ie(
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", bn),
566
+ className: We("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
- s ? /* @__PURE__ */ m(
569
- ve,
568
+ o ? /* @__PURE__ */ m(
569
+ me,
570
570
  {
571
571
  label: d.t("hyperLink.form.label"),
572
- error: he && !r ? d.t("hyperLink.form.inputError") : "",
572
+ error: ge && !r ? d.t("hyperLink.form.inputError") : "",
573
573
  children: /* @__PURE__ */ m(
574
574
  ln,
575
575
  {
@@ -586,7 +586,7 @@ const Xe = () => {
586
586
  )
587
587
  }
588
588
  ) : null,
589
- /* @__PURE__ */ m(ve, { label: d.t("hyperLink.form.type"), children: /* @__PURE__ */ m(
589
+ /* @__PURE__ */ m(me, { label: d.t("hyperLink.form.type"), children: /* @__PURE__ */ m(
590
590
  yt,
591
591
  {
592
592
  className: "univer-w-full",
@@ -598,9 +598,9 @@ const Xe = () => {
598
598
  }
599
599
  ) }),
600
600
  u === C.URL && /* @__PURE__ */ m(
601
- ve,
601
+ me,
602
602
  {
603
- error: he ? l ? Ye(l) ? "" : d.t("hyperLink.form.linkError") : d.t("hyperLink.form.inputError") : "",
603
+ error: ge ? l ? Ye(l) ? "" : d.t("hyperLink.form.linkError") : d.t("hyperLink.form.inputError") : "",
604
604
  children: /* @__PURE__ */ m(
605
605
  ln,
606
606
  {
@@ -617,7 +617,7 @@ const Xe = () => {
617
617
  )
618
618
  }
619
619
  ),
620
- u === C.RANGE && /* @__PURE__ */ m(ve, { error: he && !l ? d.t("hyperLink.form.inputError") : "", children: /* @__PURE__ */ m(
620
+ u === C.RANGE && /* @__PURE__ */ m(me, { error: ge && !l ? d.t("hyperLink.form.inputError") : "", children: /* @__PURE__ */ m(
621
621
  li,
622
622
  {
623
623
  unitId: B.getUnitId(),
@@ -629,15 +629,15 @@ const Xe = () => {
629
629
  onChange: (h, E) => Xn(E),
630
630
  onRangeSelectorDialogVisibleChange: async (h) => {
631
631
  var E, R;
632
- if (Ae(h), h)
633
- a.type === v.ZEN_EDITOR && (D.hide(), re.setContextValue(Ct, !0)), a.type !== v.VIEWING && I.enableForceKeepVisible(), i(!0);
632
+ if (Ve(h), h)
633
+ a.type === v.ZEN_EDITOR && (A.hide(), ie.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, {
637
637
  unitId: a.unitId,
638
638
  subUnitId: a.subUnitId,
639
639
  selections: [{ range: { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col } }]
640
- }), D.show(), re.setContextValue(Ct, !1);
640
+ }), A.show(), ie.setContextValue(Ct, !1);
641
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
642
  L && N && (L.scrollToRange(N), Re.refreshSelection({ unitId: x, subUnitId: x }));
643
643
  }
@@ -647,7 +647,7 @@ const Xe = () => {
647
647
  onFocusChange: (h) => jt(h)
648
648
  }
649
649
  ) }),
650
- u === C.SHEET && /* @__PURE__ */ m(ve, { error: he && !l ? d.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ m(
650
+ u === C.SHEET && /* @__PURE__ */ m(me, { error: ge && !l ? d.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ m(
651
651
  yt,
652
652
  {
653
653
  className: "univer-w-full",
@@ -661,7 +661,7 @@ const Xe = () => {
661
661
  }
662
662
  }
663
663
  ) }),
664
- u === C.DEFINE_NAME && /* @__PURE__ */ m(ve, { error: he && !l ? d.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ m(
664
+ u === C.DEFINE_NAME && /* @__PURE__ */ m(me, { error: ge && !l ? d.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ m(
665
665
  yt,
666
666
  {
667
667
  className: "univer-w-full",
@@ -675,13 +675,13 @@ const Xe = () => {
675
675
  }
676
676
  }
677
677
  ) }),
678
- (Ve == null ? void 0 : Ve.Form) && /* @__PURE__ */ m(
679
- Ve.Form,
678
+ ($e == null ? void 0 : $e.Form) && /* @__PURE__ */ m(
679
+ $e.Form,
680
680
  {
681
681
  linkId: t,
682
682
  payload: l,
683
683
  display: r,
684
- showError: he,
684
+ showError: ge,
685
685
  setByPayload: H,
686
686
  setDisplay: (h) => {
687
687
  q(h), H.current = !0;
@@ -689,7 +689,7 @@ const Xe = () => {
689
689
  setPayload: g
690
690
  }
691
691
  ),
692
- /* @__PURE__ */ _e("div", { className: "univer-flex univer-flex-row univer-justify-end univer-gap-2", children: [
692
+ /* @__PURE__ */ Ie("div", { className: "univer-flex univer-flex-row univer-justify-end univer-gap-2", children: [
693
693
  /* @__PURE__ */ m(
694
694
  dn,
695
695
  {
@@ -715,14 +715,14 @@ const Xe = () => {
715
715
  ) : null;
716
716
  };
717
717
  Xe.componentKey = "univer.sheet.cell-link-edit";
718
- var A = function() {
719
- return A = Object.assign || function(t) {
718
+ var V = function() {
719
+ return V = Object.assign || function(t) {
720
720
  for (var e, n = 1, i = arguments.length; n < i; n++) {
721
721
  e = arguments[n];
722
722
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
723
723
  }
724
724
  return t;
725
- }, A.apply(this, arguments);
725
+ }, V.apply(this, arguments);
726
726
  }, Ci = function(t, e) {
727
727
  var n = {};
728
728
  for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
@@ -730,79 +730,79 @@ var A = function() {
730
730
  for (var r = 0, i = Object.getOwnPropertySymbols(t); r < i.length; r++)
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
- }, de = ue(function(t, e) {
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);
733
+ }, pe = le(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 = Nn("_".concat(Ei()));
735
+ return Hn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, V({ ref: e, className: c }, o), s);
736
736
  });
737
737
  function Hn(t, e, n, i, 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);
738
+ return de(t.tag, V(V({ key: e }, Si(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);
740
740
  }));
741
741
  }
742
742
  function Si(t, e, n) {
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(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, ")")));
743
+ var i = V({}, 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, ")")));
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(o) {
750
- var s = o[0], c = o[1];
751
- typeof c == "string" && (i[s] = 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(s) {
750
+ var o = s[0], c = s[1];
751
+ typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
752
752
  })), i;
753
753
  }
754
754
  function yi(t, e) {
755
755
  var n, i = e.defIds;
756
- return !i || i.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? A(A({}, t), { children: t.children.map(function(r) {
757
- return typeof r.attrs.id == "string" && i && i.includes(r.attrs.id) ? A(A({}, r), { attrs: A(A({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
756
+ return !i || i.length === 0 ? t : t.tag === "defs" && (!((n = t.children) === null || n === void 0) && n.length) ? V(V({}, t), { children: t.children.map(function(r) {
757
+ return typeof r.attrs.id == "string" && i && i.includes(r.attrs.id) ? V(V({}, r), { attrs: V(V({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
758
758
  }) }) : t;
759
759
  }
760
760
  function Ei() {
761
761
  return Math.random().toString(36).substring(2, 8);
762
762
  }
763
- de.displayName = "UniverIcon";
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
- return le(de, Object.assign({}, t, {
763
+ pe.displayName = "UniverIcon";
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" } }] }, Ke = le(function(t, e) {
765
+ return de(pe, Object.assign({}, t, {
766
766
  id: "all-border-icon",
767
767
  ref: e,
768
768
  icon: Ri
769
769
  }));
770
770
  });
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
- return le(de, Object.assign({}, t, {
771
+ Ke.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 = le(function(t, e) {
773
+ return de(pe, Object.assign({}, t, {
774
774
  id: "copy-icon",
775
775
  ref: e,
776
776
  icon: Pi
777
777
  }));
778
778
  });
779
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
- return le(de, Object.assign({}, t, {
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 = le(function(t, e) {
781
+ return de(pe, Object.assign({}, t, {
782
782
  id: "link-icon",
783
783
  ref: e,
784
784
  icon: Li
785
785
  }));
786
786
  });
787
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
- return le(de, Object.assign({}, t, {
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 = le(function(t, e) {
789
+ return de(pe, Object.assign({}, t, {
790
790
  id: "unlink-icon",
791
791
  ref: e,
792
792
  icon: wi
793
793
  }));
794
794
  });
795
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
- return le(de, Object.assign({}, t, {
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 = le(function(t, e) {
797
+ return de(pe, Object.assign({}, t, {
798
798
  id: "write-icon",
799
799
  ref: e,
800
800
  icon: bi
801
801
  }));
802
802
  });
803
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
- return le(de, Object.assign({}, t, {
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 = le(function(t, e) {
805
+ return de(pe, Object.assign({}, t, {
806
806
  id: "xlsx-multi-icon",
807
807
  ref: e,
808
808
  icon: ki
@@ -812,27 +812,27 @@ $n.displayName = "XlsxMultiIcon";
812
812
  const Ti = {
813
813
  [C.URL]: /* @__PURE__ */ m(At, {}),
814
814
  [C.SHEET]: /* @__PURE__ */ m($n, { className: "univer-text-green-500" }),
815
- [C.RANGE]: /* @__PURE__ */ m(Ge, {}),
816
- [C.DEFINE_NAME]: /* @__PURE__ */ m(Ge, {}),
817
- [C.INVALID]: /* @__PURE__ */ m(Ge, {})
815
+ [C.RANGE]: /* @__PURE__ */ m(Ke, {}),
816
+ [C.DEFINE_NAME]: /* @__PURE__ */ m(Ke, {}),
817
+ [C.INVALID]: /* @__PURE__ */ m(Ke, {})
818
818
  }, vn = (t) => {
819
819
  var M, 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;
820
+ const e = S(G), n = S(ne), i = S(Tn), r = S(ut), s = S(ue), o = 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
823
  const a = c.parseHyperLink((T = p.properties.url) != null ? T : ""), b = a.type === C.INVALID;
824
- return /* @__PURE__ */ _e(
824
+ return /* @__PURE__ */ Ie(
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", bn),
827
+ className: We("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
- /* @__PURE__ */ _e(
830
+ /* @__PURE__ */ Ie(
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": b }),
833
+ className: We("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 || b || o.navigate(a);
835
+ u.visible || b || s.navigate(a);
836
836
  },
837
837
  children: [
838
838
  /* @__PURE__ */ m(
@@ -842,11 +842,11 @@ const Ti = {
842
842
  children: Ti[a.type]
843
843
  }
844
844
  ),
845
- /* @__PURE__ */ m(Be, { showIfEllipsis: !0, title: a.name, asChild: !0, children: /* @__PURE__ */ m("span", { className: "univer-flex-1 univer-overflow-hidden univer-text-ellipsis", children: a.name }) })
845
+ /* @__PURE__ */ m(Fe, { showIfEllipsis: !0, title: a.name, asChild: !0, children: /* @__PURE__ */ m("span", { className: "univer-flex-1 univer-overflow-hidden univer-text-ellipsis", children: a.name }) })
846
846
  ]
847
847
  }
848
848
  ),
849
- /* @__PURE__ */ _e(
849
+ /* @__PURE__ */ Ie(
850
850
  "div",
851
851
  {
852
852
  className: "univer-flex univer-h-6 univer-flex-none univer-flex-row univer-items-center univer-justify-center",
@@ -854,7 +854,7 @@ 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": b }),
857
+ className: We("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
859
  if (!b) {
860
860
  if (a.type !== C.URL) {
@@ -868,10 +868,10 @@ const Ti = {
868
868
  });
869
869
  }
870
870
  },
871
- children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(Dn, { className: "dark:!univer-text-white" }) })
871
+ children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(Dn, { className: "dark:!univer-text-white" }) })
872
872
  }
873
873
  ),
874
- I && /* @__PURE__ */ _e(ui, { children: [
874
+ I && /* @__PURE__ */ Ie(ui, { children: [
875
875
  /* @__PURE__ */ m(
876
876
  "div",
877
877
  {
@@ -886,7 +886,7 @@ const Ti = {
886
886
  type: w
887
887
  });
888
888
  },
889
- children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.edit"), children: /* @__PURE__ */ m(Vn, { className: "dark:!univer-text-white" }) })
889
+ children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.edit"), children: /* @__PURE__ */ m(Vn, { className: "dark:!univer-text-white" }) })
890
890
  }
891
891
  ),
892
892
  /* @__PURE__ */ m(
@@ -901,10 +901,10 @@ const Ti = {
901
901
  id: p.rangeId,
902
902
  row: l,
903
903
  column: g,
904
- documentId: w === v.ZEN_EDITOR ? x : s.getCurrentEditorId()
904
+ documentId: w === v.ZEN_EDITOR ? x : o.getCurrentEditorId()
905
905
  }) && e.hideCurrentPopup(void 0, !0);
906
906
  },
907
- children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ m(An, { className: "dark:!univer-text-white" }) })
907
+ children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ m(An, { className: "dark:!univer-text-white" }) })
908
908
  }
909
909
  )
910
910
  ] })
@@ -915,28 +915,28 @@ const Ti = {
915
915
  }
916
916
  );
917
917
  }, qe = () => {
918
- var r, o;
918
+ var r, s;
919
919
  const t = S(G), [e, n] = Z(null), i = S(K);
920
920
  if (ee(() => {
921
921
  n(t.currentPopup);
922
- const s = t.currentPopup$.subscribe((c) => {
922
+ const o = t.currentPopup$.subscribe((c) => {
923
923
  n(c);
924
924
  });
925
925
  return () => {
926
- s.unsubscribe();
926
+ o.unsubscribe();
927
927
  };
928
928
  }, [t.currentPopup, t.currentPopup$]), !e)
929
929
  return null;
930
930
  if (e.showAll) {
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;
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;
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
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);
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);
940
940
  return r;
941
941
  }, oe = (t, e) => (n, i) => e(n, i, t);
942
942
  const mn = (t, e) => {
@@ -944,16 +944,16 @@ const mn = (t, e) => {
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, o, s, c) {
947
+ constructor(e, n, i, r, s, o, c) {
948
948
  super();
949
949
  $(this, "_currentPopup", null);
950
- $(this, "_currentPopup$", new oi());
950
+ $(this, "_currentPopup$", new si());
951
951
  $(this, "currentPopup$", this._currentPopup$.asObservable());
952
952
  $(this, "_currentEditingPopup", null);
953
- $(this, "_currentEditing$", new si(null));
953
+ $(this, "_currentEditing$", new oi(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 = o, this._docCanvasPopManagerService = s, this._zenZoneService = c, this.disposeWithMe(() => {
956
+ this._sheetCanvasPopManagerService = e, this._injector = n, this._univerInstanceService = i, this._editorBridgeService = r, this._textSelectionManagerService = s, this._docCanvasPopManagerService = o, 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: o, col: s, customRangeRect: c, customRange: u } = e;
978
+ const { unitId: i, subUnitId: r, row: s, col: o, customRangeRect: c, customRange: u } = e;
979
979
  let p;
980
980
  const l = {
981
981
  componentKey: qe.componentKey,
@@ -1021,8 +1021,8 @@ let G = class extends Y {
1021
1021
  unitId: i,
1022
1022
  subUnitId: r,
1023
1023
  disposable: p,
1024
- row: o,
1025
- col: s,
1024
+ row: s,
1025
+ col: o,
1026
1026
  editPermission: !!e.editPermission,
1027
1027
  copyPermission: !!e.copyPermission,
1028
1028
  customRange: u,
@@ -1035,28 +1035,28 @@ 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, o;
1038
+ var i, r, s;
1039
1039
  const e = this._editorBridgeService.isVisible().visible, n = this._editorBridgeService.getEditCellState();
1040
1040
  if (e && n) {
1041
- const s = this._textSelectionManagerService.getActiveTextRange(), c = (i = n.documentLayoutObject.documentModel) == null ? void 0 : i.getBody();
1041
+ const o = this._textSelectionManagerService.getActiveTextRange(), c = (i = n.documentLayoutObject.documentModel) == null ? void 0 : i.getBody();
1042
1042
  if (!c)
1043
1043
  return null;
1044
- if (!s || s.collapsed)
1044
+ if (!o || o.collapsed)
1045
1045
  return {
1046
1046
  startOffset: 0,
1047
1047
  endOffset: c.dataStream.length - 2,
1048
1048
  collapsed: c.dataStream.length - 2 === 0,
1049
- label: fe.transform.getPlainText(c.dataStream)
1049
+ label: _e.transform.getPlainText(c.dataStream)
1050
1050
  };
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;
1051
+ const u = _e.customRange.getCustomRangesInterestsWithSelection(o, (s = (r = c.customRanges) == null ? void 0 : r.filter((g) => g.rangeType === xe.HYPERLINK)) != null ? s : []);
1052
+ let p = o.startOffset, l = o.endOffset;
1053
1053
  return u.forEach((g) => {
1054
1054
  p = Math.min(p, g.startIndex), l = Math.max(l, g.endIndex + 1);
1055
1055
  }), {
1056
1056
  startOffset: p,
1057
1057
  endOffset: l,
1058
1058
  collapsed: p === l,
1059
- label: fe.transform.getPlainText(c.dataStream.slice(p, l))
1059
+ label: _e.transform.getPlainText(c.dataStream.slice(p, l))
1060
1060
  };
1061
1061
  }
1062
1062
  return null;
@@ -1075,7 +1075,7 @@ let G = class extends Y {
1075
1075
  };
1076
1076
  }
1077
1077
  startAddEditing(e) {
1078
- var o, s, c, u, p;
1078
+ var s, o, c, u, p;
1079
1079
  const { unitId: n, subUnitId: i, type: r } = e;
1080
1080
  if (r === v.ZEN_EDITOR) {
1081
1081
  const l = this._univerInstanceService.getUnit(x, k.UNIVER_DOC);
@@ -1089,7 +1089,7 @@ let G = class extends Y {
1089
1089
  this._editPopup,
1090
1090
  x
1091
1091
  );
1092
- const d = (o = l.getBody()) == null ? void 0 : o.dataStream.slice(g.startOffset, g.endOffset);
1092
+ const d = (s = l.getBody()) == null ? void 0 : s.dataStream.slice(g.startOffset, g.endOffset);
1093
1093
  this._currentEditing$.next({
1094
1094
  ...e,
1095
1095
  label: d
@@ -1098,8 +1098,8 @@ let G = class extends Y {
1098
1098
  const l = this._getEditingRange();
1099
1099
  if (!l)
1100
1100
  return;
1101
- this._textSelectionManagerService.replaceDocRanges([{ ...l }], { unitId: Ce, subUnitId: Ce });
1102
- const g = this._injector.get(He).getRenderById(Ce);
1101
+ this._textSelectionManagerService.replaceDocRanges([{ ...l }], { unitId: Se, subUnitId: Se });
1102
+ const g = this._injector.get(De).getRenderById(Se);
1103
1103
  if (!g)
1104
1104
  return;
1105
1105
  const d = ri(l, g);
@@ -1112,7 +1112,7 @@ let G = class extends Y {
1112
1112
  i
1113
1113
  ), this._currentEditing$.next({
1114
1114
  ...e,
1115
- label: (s = l == null ? void 0 : l.label) != null ? s : ""
1115
+ label: (o = l == null ? void 0 : l.label) != null ? o : ""
1116
1116
  });
1117
1117
  } else {
1118
1118
  this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
@@ -1125,19 +1125,19 @@ let G = class extends Y {
1125
1125
  const l = this._univerInstanceService.getUnit(n, k.UNIVER_SHEET), g = l == null ? void 0 : l.getSheetBySheetId(i), d = g == null ? void 0 : g.getCellRaw(e.row, e.col);
1126
1126
  this._currentEditing$.next({
1127
1127
  ...e,
1128
- label: d != null && d.p ? fe.transform.getPlainText((u = (c = d.p.body) == null ? void 0 : c.dataStream) != null ? u : "") : ((p = d == null ? void 0 : d.v) != null ? p : "").toString()
1128
+ label: d != null && d.p ? _e.transform.getPlainText((u = (c = d.p.body) == null ? void 0 : c.dataStream) != null ? u : "") : ((p = d == null ? void 0 : d.v) != null ? p : "").toString()
1129
1129
  });
1130
1130
  }
1131
1131
  }
1132
1132
  // eslint-disable-next-line complexity, max-lines-per-function
1133
1133
  startEditing(e) {
1134
- var s, c, u, p, l, g;
1135
- (s = this._currentEditingPopup) == null || s.dispose(), this.hideCurrentPopup(void 0, !0);
1134
+ var o, c, u, p, l, g;
1135
+ (o = this._currentEditingPopup) == null || o.dispose(), this.hideCurrentPopup(void 0, !0);
1136
1136
  const { unitId: n, subUnitId: i } = e;
1137
- let r, o;
1137
+ let r, s;
1138
1138
  if (e.type === v.ZEN_EDITOR) {
1139
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)
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)
1141
1141
  return;
1142
1142
  this._textSelectionManagerService.replaceTextRanges([
1143
1143
  {
@@ -1157,7 +1157,7 @@ let G = class extends Y {
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, o = d.label, this._textSelectionManagerService.replaceTextRanges([
1160
+ r = d.customRange, s = d.label, this._textSelectionManagerService.replaceTextRanges([
1161
1161
  {
1162
1162
  startOffset: r.startIndex,
1163
1163
  endOffset: r.endIndex + 1
@@ -1172,7 +1172,7 @@ let G = class extends Y {
1172
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, o = a.label, w ? this._currentEditingPopup = this._sheetCanvasPopManagerService.attachPopupToCell(
1175
+ r = a.customRange, s = 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: o
1195
+ label: s
1196
1196
  });
1197
1197
  }
1198
1198
  endEditing(e) {
@@ -1208,7 +1208,7 @@ G = xi([
1208
1208
  oe(1, y(lt)),
1209
1209
  oe(2, K),
1210
1210
  oe(3, te),
1211
- oe(4, y(Ue)),
1211
+ oe(4, y(He)),
1212
1212
  oe(5, y(ni)),
1213
1213
  oe(6, ht)
1214
1214
  ], G);
@@ -1222,8 +1222,8 @@ const Ni = /* @__PURE__ */ new Set([
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 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;
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 && Ni.has(o.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 Ni = /* @__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, o = i[0].range.startColumn;
1235
- return Vt(t, n, r, o) === 1;
1234
+ const r = i[0].range.startRow, s = i[0].range.startColumn;
1235
+ return Vt(t, n, r, s) === 1;
1236
1236
  }, Ui = (t) => {
1237
- const e = t.get(Ue), n = t.get(K), i = e.getTextRanges();
1237
+ const e = t.get(He), 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((s) => s.collapsed) || !r.getSelfOrHeaderFooterModel(i[0].segmentId).getBody());
1241
+ return !!(!r || i.every((o) => o.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 Ni = /* @__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), s = t.get(kt).getCurrentLastSelection();
1266
- if (!s)
1265
+ const r = t.get(ne), o = t.get(kt).getCurrentLastSelection();
1266
+ if (!o)
1267
1267
  return !1;
1268
- const c = s.range.startRow, u = s.range.startColumn, p = i.isVisible(), l = ((g = e.getFocusedUnit()) == null ? void 0 : g.getUnitId()) === x;
1268
+ const c = o.range.startRow, u = o.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,
@@ -1274,7 +1274,7 @@ const Ni = /* @__PURE__ */ new Set([
1274
1274
  type: l ? v.ZEN_EDITOR : p.visible ? v.EDITING : v.VIEWING
1275
1275
  });
1276
1276
  }
1277
- }, ae = {
1277
+ }, ce = {
1278
1278
  type: dt.OPERATION,
1279
1279
  id: "sheet.operation.insert-hyper-link-toolbar",
1280
1280
  handler(t) {
@@ -1285,36 +1285,36 @@ const Ni = /* @__PURE__ */ new Set([
1285
1285
  }
1286
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(xn);
1288
+ const n = t.get(K), i = (r = t.get(De).getRenderById(e)) == null ? void 0 : r.with(xn);
1289
1289
  return i ? i.textSelectionInner$.pipe(Ht(() => {
1290
- const s = t.get(te).getEditCellState();
1291
- if (!s)
1290
+ const o = t.get(te).getEditCellState();
1291
+ if (!o)
1292
1292
  return !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);
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
+ })) : ae(!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((o) => {
1301
- if (!o)
1300
+ Ht((s) => {
1301
+ if (!s)
1302
1302
  return 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;
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;
1305
1305
  }),
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
- Me(
1312
- ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === or ? se(!0) : Ft(t, Ce) : se(o !== Oe.ALLOWED)
1306
+ Ue((s) => {
1307
+ if (s === Oe.DISABLED_BY_CELL)
1308
+ return ae(!0);
1309
+ const o = n ? n.visible$ : ae(null);
1310
+ return ai([o, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1311
+ Ue(
1312
+ ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === sr ? ae(!0) : Ft(t, Se) : ae(s !== Oe.ALLOWED)
1313
1313
  )
1314
1314
  );
1315
1315
  })
1316
- )) != null ? r : se(!0)).pipe(
1317
- Me((o) => o ? se(!0) : Ar(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1316
+ )) != null ? r : ae(!0)).pipe(
1317
+ Ue((s) => s ? ae(!0) : Ar(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1318
1318
  );
1319
1319
  }, Qe = {
1320
1320
  commandId: Bt.id,
@@ -1334,7 +1334,7 @@ const Ni = /* @__PURE__ */ new Set([
1334
1334
  disabled$: Ft(t)
1335
1335
  }), tt = {
1336
1336
  tooltip: "hyperLink.form.addTitle",
1337
- commandId: ae.id,
1337
+ commandId: ce.id,
1338
1338
  type: On.BUTTON,
1339
1339
  icon: "LinkIcon"
1340
1340
  }, Ai = (t) => ({
@@ -1348,13 +1348,13 @@ const Ni = /* @__PURE__ */ new Set([
1348
1348
  hidden$: gt(t, k.UNIVER_DOC, x),
1349
1349
  disabled$: Ft(t)
1350
1350
  }), Fn = {
1351
- id: ae.id,
1351
+ id: ce.id,
1352
1352
  binding: Lt.K | Yr.CTRL_COMMAND,
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, o = t.length - 1, s; o >= 0; o--)
1357
- (s = t[o]) && (r = s(r) || r);
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);
1358
1358
  return r;
1359
1359
  }, fn = (t, e) => (n, i) => e(n, i, t);
1360
1360
  let nt = class extends Y {
@@ -1364,7 +1364,7 @@ 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: o, target: s, unitId: c, subUnitId: u } = i, p = Pt([o, s]), [l, g] = p.ranges, { mapFunc: d } = p, _ = {
1367
+ const { source: s, target: o, unitId: c, subUnitId: u } = i, p = Pt([s, o]), [l, g] = p.ranges, { mapFunc: d } = p, _ = {
1368
1368
  row: l.startRow,
1369
1369
  col: l.startColumn
1370
1370
  }, I = $r(l, g), f = [], w = [];
@@ -1380,56 +1380,56 @@ let nt = class extends Y {
1380
1380
  endColumn: b.col,
1381
1381
  endRow: b.row
1382
1382
  };
1383
- yn.foreach(M, (V, D) => {
1384
- const z = Se.getPositionRange(
1383
+ yn.foreach(M, (D, A) => {
1384
+ const z = ye.getPositionRange(
1385
1385
  {
1386
- startRow: V,
1387
- startColumn: D,
1388
- endColumn: D,
1389
- endRow: V
1386
+ startRow: D,
1387
+ startColumn: A,
1388
+ endColumn: A,
1389
+ endRow: D
1390
1390
  },
1391
1391
  T
1392
- ), { row: ye, col: De } = d(z.startRow, z.startColumn), re = this._hyperLinkModel.getHyperLinkByLocation(c, u, ye, De), Ee = Se.getPositionRange(
1392
+ ), { row: re, col: Ae } = d(z.startRow, z.startColumn), ie = this._hyperLinkModel.getHyperLinkByLocation(c, u, re, Ae), Ee = ye.getPositionRange(
1393
1393
  {
1394
- startRow: V,
1395
- startColumn: D,
1396
- endColumn: D,
1397
- endRow: V
1394
+ startRow: D,
1395
+ startColumn: A,
1396
+ endColumn: A,
1397
+ endRow: D
1398
1398
  },
1399
1399
  P
1400
- ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ae = Ie.generateRandomId(), pe = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1401
- pe && f.push({
1402
- id: xe.id,
1400
+ ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ve = Ce.generateRandomId(), he = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1401
+ he && f.push({
1402
+ id: Ne.id,
1403
1403
  params: {
1404
1404
  unitId: c,
1405
1405
  subUnitId: u,
1406
- id: pe.id
1406
+ id: he.id
1407
1407
  }
1408
- }), (be.COPY === r || be.SERIES === r) && re && (f.push({
1409
- id: Ne.id,
1408
+ }), (be.COPY === r || be.SERIES === r) && ie && (f.push({
1409
+ id: Me.id,
1410
1410
  params: {
1411
1411
  unitId: c,
1412
1412
  subUnitId: u,
1413
1413
  link: {
1414
- ...re,
1415
- id: Ae,
1414
+ ...ie,
1415
+ id: Ve,
1416
1416
  row: Re,
1417
1417
  column: Pe
1418
1418
  }
1419
1419
  }
1420
1420
  }), w.push({
1421
- id: xe.id,
1421
+ id: Ne.id,
1422
1422
  params: {
1423
1423
  unitId: c,
1424
1424
  subUnitId: u,
1425
- id: Ae
1425
+ id: Ve
1426
1426
  }
1427
- })), pe && w.push({
1428
- id: Ne.id,
1427
+ })), he && w.push({
1428
+ id: Me.id,
1429
1429
  params: {
1430
1430
  unitId: c,
1431
1431
  subUnitId: u,
1432
- link: pe
1432
+ link: he
1433
1433
  }
1434
1434
  });
1435
1435
  });
@@ -1439,7 +1439,7 @@ let nt = class extends Y {
1439
1439
  };
1440
1440
  }, n = {
1441
1441
  id: Dt,
1442
- onFillData: (i, r, o) => o === be.COPY || o === be.ONLY_FORMAT || o === be.SERIES ? e(i, o) : t()
1442
+ onFillData: (i, r, s) => s === be.COPY || s === be.ONLY_FORMAT || s === be.SERIES ? e(i, s) : 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, o = t.length - 1, s; o >= 0; o--)
1453
- (s = t[o]) && (r = s(r) || r);
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);
1454
1454
  return r;
1455
1455
  }, Rt = (t, e) => (n, i) => e(n, i, t);
1456
1456
  let rt = class extends Y {
@@ -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, o = t.length - 1, s; o >= 0; o--)
1479
- (s = t[o]) && (r = s(r) || r);
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);
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, 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();
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();
1485
1485
  }
1486
1486
  _getLinkPermission(t) {
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)))
1487
+ const { unitId: e, subUnitId: n, row: i, col: r } = t, s = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), o = s == null ? void 0 : s.getSheetBySheetId(n);
1488
+ if (!o)
1489
1489
  return {
1490
1490
  viewPermission: !1,
1491
1491
  editPermission: !1,
@@ -1495,47 +1495,51 @@ let it = class extends Y {
1495
1495
  workbookTypes: [gr],
1496
1496
  worksheetTypes: [hr],
1497
1497
  rangeTypes: [pr]
1498
- }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]), u = this._sheetPermissionCheckController.permissionCheckWithRanges({
1498
+ }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]);
1499
+ let u = this._sheetPermissionCheckController.permissionCheckWithRanges({
1499
1500
  workbookTypes: [Mt],
1500
1501
  worksheetTypes: [xt, Nt],
1501
1502
  rangeTypes: [Ot]
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
+ }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]);
1504
+ const p = o.getCellRaw(i, r);
1505
+ p != null && p.f && p.f.startsWith("=HYPERLINK(") && (u = !1);
1506
+ const l = this._permissionService.composePermission([new vr(e).id, new mr(e, n).id]).every((g) => g.value);
1503
1507
  return {
1504
1508
  viewPermission: c,
1505
1509
  editPermission: u,
1506
- copyPermission: p
1510
+ copyPermission: l
1507
1511
  };
1508
1512
  }
1509
1513
  _initHoverListener() {
1510
1514
  this.disposeWithMe(
1511
1515
  // hover over not editing cell
1512
- this._hoverManagerService.currentRichText$.pipe(Ze(200)).subscribe((t) => {
1513
- var T, P;
1514
- if (!t) {
1516
+ this._hoverManagerService.currentRichText$.pipe(Ge(200)).subscribe((t) => {
1517
+ var T, P, D;
1518
+ if (!t || ((T = t.customRange) == null ? void 0 : T.rangeType) !== xe.HYPERLINK) {
1515
1519
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1516
1520
  return;
1517
1521
  }
1518
- const { unitId: e, subUnitId: n, row: i, col: r } = t, o = this._renderManagerService.getRenderById(e);
1519
- if (!o)
1522
+ const { unitId: e, subUnitId: n, row: i, col: r } = t, s = this._renderManagerService.getRenderById(e);
1523
+ if (!s)
1520
1524
  return;
1521
- const s = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), c = s == null ? void 0 : s.getSheetBySheetId(n);
1525
+ const o = this._univerInstanceService.getUnit(e, k.UNIVER_SHEET), c = o == null ? void 0 : o.getSheetBySheetId(n);
1522
1526
  if (!c)
1523
1527
  return;
1524
- if (!o.with(Fr).active) {
1528
+ if (!s.with(Fr).active) {
1525
1529
  this._sheetsHyperLinkPopupService.hideCurrentPopup(v.VIEWING);
1526
1530
  return;
1527
1531
  }
1528
- const p = (T = o == null ? void 0 : o.with(un).getSkeletonParam(n)) == null ? void 0 : T.skeleton, l = r, g = i;
1532
+ const p = (P = s == null ? void 0 : s.with(un).getSkeletonParam(n)) == null ? void 0 : P.skeleton, l = r, g = i;
1529
1533
  let d = g, _ = l;
1530
- p && p.overflowCache.forValue((V, D, z) => {
1531
- Se.contains(z, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = V, _ = D);
1534
+ p && p.overflowCache.forValue((A, z, re) => {
1535
+ ye.contains(re, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = A, _ = z);
1532
1536
  });
1533
1537
  const { viewPermission: I, editPermission: f, copyPermission: w } = this._getLinkPermission(t);
1534
1538
  if (!I) {
1535
1539
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1536
1540
  return;
1537
1541
  }
1538
- const a = c.getCellStyleOnly(d, _), b = s.getStyles().getStyleByCell(a), M = (P = b == null ? void 0 : b.tr) == null ? void 0 : P.a;
1542
+ const a = c.getCellStyleOnly(d, _), b = o.getStyles().getStyleByCell(a), M = (D = b == null ? void 0 : b.tr) == null ? void 0 : D.a;
1539
1543
  if (!M && !t.customRange) {
1540
1544
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1541
1545
  return;
@@ -1558,32 +1562,32 @@ let it = class extends Y {
1558
1562
  _initHoverEditingListener() {
1559
1563
  let t = null;
1560
1564
  this.disposeWithMe(
1561
- this._editorBridgeService.currentEditCellState$.pipe(Me((e) => this._editorBridgeService.visible$.pipe(Ht((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1562
- if (!n || n.editorUnitId !== Ce)
1565
+ this._editorBridgeService.currentEditCellState$.pipe(Ue((e) => this._editorBridgeService.visible$.pipe(Ht((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1566
+ if (!n || n.editorUnitId !== Se)
1563
1567
  return;
1564
1568
  if (!e.visible) {
1565
1569
  t == null || t.unsubscribe(), this._sheetsHyperLinkPopupService.hideCurrentPopup(v.EDITING), this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1566
1570
  return;
1567
1571
  }
1568
- const { editorUnitId: i, unitId: r, sheetId: o, row: s, column: c } = n, u = this._renderManagerService.getRenderById(i);
1572
+ const { editorUnitId: i, unitId: r, sheetId: s, row: o, column: c } = n, u = this._renderManagerService.getRenderById(i);
1569
1573
  if (!u)
1570
1574
  return;
1571
- const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: o, row: s, col: c }), d = u.with(pn);
1572
- l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(Ze(200)).subscribe((_) => {
1575
+ const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(pn);
1576
+ l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(Ge(200)).subscribe((_) => {
1573
1577
  var b, M;
1574
- const I = _.find((T) => T.range.rangeType === Ke.HYPERLINK);
1578
+ const I = _.find((T) => T.range.rangeType === xe.HYPERLINK);
1575
1579
  if (!I) {
1576
1580
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1577
1581
  return;
1578
1582
  }
1579
1583
  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)
1584
+ if (!((M = (b = this._renderManagerService.getRenderById(r)) == null ? void 0 : b.with(un).getSkeletonParam(s)) == null ? void 0 : M.skeleton) || !f)
1581
1585
  return;
1582
1586
  const a = u.engine.getCanvasElement().getBoundingClientRect();
1583
1587
  this._sheetsHyperLinkPopupService.showPopup({
1584
1588
  unitId: r,
1585
- subUnitId: o,
1586
- row: s,
1589
+ subUnitId: s,
1590
+ row: o,
1587
1591
  col: c,
1588
1592
  customRange: I.range,
1589
1593
  customRangeRect: {
@@ -1609,22 +1613,22 @@ let it = class extends Y {
1609
1613
  })
1610
1614
  ), this.disposeWithMe(
1611
1615
  this._univerInstanceService.focused$.pipe(
1612
- Me((t) => {
1616
+ Ue((t) => {
1613
1617
  const e = t === x ? this._renderManagerService.getRenderById(t) : null;
1614
- return e ? e.with(pn).hoverCustomRanges$.pipe(Ze(200)) : new ci((n) => {
1618
+ return e ? e.with(pn).hoverCustomRanges$.pipe(Ge(200)) : new ci((n) => {
1615
1619
  n.next(null);
1616
1620
  });
1617
1621
  })
1618
1622
  ).subscribe((t) => {
1619
- const e = t == null ? void 0 : t.find((i) => i.range.rangeType === Ke.HYPERLINK), n = this._editorBridgeService.getEditCellState();
1623
+ const e = t == null ? void 0 : t.find((i) => i.range.rangeType === xe.HYPERLINK), n = this._editorBridgeService.getEditCellState();
1620
1624
  if (e && n) {
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 });
1625
+ 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 });
1622
1626
  u && this._sheetsHyperLinkPopupService.showPopup({
1623
1627
  type: v.ZEN_EDITOR,
1624
1628
  unitId: i,
1625
1629
  subUnitId: r,
1626
- row: o,
1627
- col: s,
1630
+ row: s,
1631
+ col: o,
1628
1632
  customRange: e.range,
1629
1633
  editPermission: c,
1630
1634
  copyPermission: p
@@ -1637,7 +1641,7 @@ let it = class extends Y {
1637
1641
  _initTextSelectionListener() {
1638
1642
  this.disposeWithMe(
1639
1643
  this._textSelectionManagerService.textSelection$.subscribe((t) => {
1640
- t && t.unitId === Ce && this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1644
+ t && t.unitId === Se && this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1641
1645
  })
1642
1646
  );
1643
1647
  }
@@ -1651,18 +1655,18 @@ let it = class extends Y {
1651
1655
  it = Zi([
1652
1656
  W(0, y(Br)),
1653
1657
  W(1, y(G)),
1654
- W(2, y(He)),
1655
- W(3, y(sr)),
1658
+ W(2, y(De)),
1659
+ W(3, y(or)),
1656
1660
  W(4, y(Ln)),
1657
1661
  W(5, ne),
1658
1662
  W(6, te),
1659
- W(7, y(Ue)),
1663
+ W(7, y(He)),
1660
1664
  W(8, K),
1661
1665
  W(9, ht)
1662
1666
  ], it);
1663
1667
  var Gi = Object.getOwnPropertyDescriptor, jn = (t, e, n, i) => {
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);
1668
+ for (var r = i > 1 ? void 0 : i ? Gi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1669
+ (o = t[s]) && (r = o(r) || r);
1666
1670
  return r;
1667
1671
  }, wt = (t, e) => (n, i) => e(n, i, t);
1668
1672
  let bt = class extends Y {
@@ -1674,7 +1678,7 @@ let bt = class extends Y {
1674
1678
  var e;
1675
1679
  (e = this._context.mainComponent) == null || e.makeForceDirty();
1676
1680
  };
1677
- this.disposeWithMe(this._hyperLinkModel.linkUpdate$.pipe(Ze(16)).subscribe(() => {
1681
+ this.disposeWithMe(this._hyperLinkModel.linkUpdate$.pipe(Ge(16)).subscribe(() => {
1678
1682
  t();
1679
1683
  }));
1680
1684
  }
@@ -1682,7 +1686,7 @@ let bt = class extends Y {
1682
1686
  bt = jn([
1683
1687
  wt(1, y(pt))
1684
1688
  ], bt);
1685
- let ot = class extends Y {
1689
+ let st = class extends Y {
1686
1690
  constructor(t, e) {
1687
1691
  super(), this._sheetInterceptorService = t, this._hyperLinkModel = e, this._initViewModelIntercept();
1688
1692
  }
@@ -1694,7 +1698,7 @@ let ot = class extends Y {
1694
1698
  effect: ar.Value,
1695
1699
  priority: 100,
1696
1700
  handler: (t, e, n) => {
1697
- const { row: i, col: r, unitId: o, subUnitId: s } = e, c = this._hyperLinkModel.getHyperLinkByLocation(o, s, i, r);
1701
+ const { row: i, col: r, unitId: s, subUnitId: o } = e, c = this._hyperLinkModel.getHyperLinkByLocation(s, o, i, r);
1698
1702
  return c && t && (t === e.rawData && (t = { ...e.rawData }), t.linkUrl = c.payload, t.linkId = c.id), n(t);
1699
1703
  }
1700
1704
  }
@@ -1702,17 +1706,17 @@ let ot = class extends Y {
1702
1706
  );
1703
1707
  }
1704
1708
  };
1705
- ot = jn([
1709
+ st = jn([
1706
1710
  wt(0, y(Cr)),
1707
1711
  wt(1, y(pt))
1708
- ], ot);
1712
+ ], st);
1709
1713
  const Ki = {
1710
1714
  [qr.MEDIA]: {
1711
- [ae.id]: {
1715
+ [ce.id]: {
1712
1716
  order: 1,
1713
1717
  menuItemFactory: Ai
1714
1718
  },
1715
- [et(ae.id)]: {
1719
+ [et(ce.id)]: {
1716
1720
  order: 1,
1717
1721
  menuItemFactory: Vi
1718
1722
  }
@@ -1720,11 +1724,11 @@ const Ki = {
1720
1724
  [zr.MAIN_AREA]: {
1721
1725
  [Xr.OTHERS]: {
1722
1726
  order: 1,
1723
- [ae.id]: {
1727
+ [ce.id]: {
1724
1728
  order: 0,
1725
1729
  menuItemFactory: Hi
1726
1730
  },
1727
- [et(ae.id)]: {
1731
+ [et(ce.id)]: {
1728
1732
  order: 0,
1729
1733
  menuItemFactory: Di
1730
1734
  }
@@ -1732,11 +1736,11 @@ const Ki = {
1732
1736
  }
1733
1737
  };
1734
1738
  var Yi = Object.getOwnPropertyDescriptor, zi = (t, e, n, i) => {
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);
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);
1737
1741
  return r;
1738
1742
  }, ke = (t, e) => (n, i) => e(n, i, t);
1739
- let st = class extends Y {
1743
+ let ot = class extends Y {
1740
1744
  constructor(t, e, n, i, r) {
1741
1745
  super(), this._componentManager = t, this._commandService = e, this._menuManagerService = n, this._injector = i, this._shortcutService = r, this._initComponents(), this._initCommands(), this._initMenus(), this._initShortCut();
1742
1746
  }
@@ -1754,7 +1758,7 @@ let st = class extends Y {
1754
1758
  $t,
1755
1759
  Je,
1756
1760
  Bt,
1757
- ae
1761
+ ce
1758
1762
  ].forEach((t) => {
1759
1763
  this._commandService.registerCommand(t);
1760
1764
  });
@@ -1766,16 +1770,16 @@ let st = class extends Y {
1766
1770
  this._shortcutService.registerShortcut(Fn);
1767
1771
  }
1768
1772
  };
1769
- st = zi([
1773
+ ot = zi([
1770
1774
  ke(0, y(Jr)),
1771
1775
  ke(1, ne),
1772
1776
  ke(2, Qr),
1773
1777
  ke(3, y(lt)),
1774
1778
  ke(4, y(ei))
1775
- ], st);
1779
+ ], ot);
1776
1780
  var Xi = Object.getOwnPropertyDescriptor, qi = (t, e, n, i) => {
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);
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);
1779
1783
  return r;
1780
1784
  }, _n = (t, e) => (n, i) => e(n, i, t);
1781
1785
  let at = class extends Y {
@@ -1792,13 +1796,13 @@ let at = class extends Y {
1792
1796
  };
1793
1797
  at = qi([
1794
1798
  _n(0, y(Ut)),
1795
- _n(1, y(ce))
1799
+ _n(1, y(ue))
1796
1800
  ], at);
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);
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);
1800
1804
  return r;
1801
- }, In = (t, e) => (n, i) => e(n, i, t), Wn = (t, e, n) => eo(t, typeof e != "symbol" ? e + "" : e, n);
1805
+ }, In = (t, e) => (n, i) => e(n, i, t), Wn = (t, e, n) => es(t, typeof e != "symbol" ? e + "" : e, n);
1802
1806
  let ct = class extends ur {
1803
1807
  constructor(t = gn, e, n) {
1804
1808
  super(), this._config = t, this._injector = e, this._configService = n;
@@ -1811,20 +1815,20 @@ let ct = class extends ur {
1811
1815
  }
1812
1816
  onStarting() {
1813
1817
  [
1814
- [ce],
1818
+ [ue],
1815
1819
  [G],
1816
1820
  [Un],
1817
- [ot],
1818
- [it],
1819
1821
  [st],
1822
+ [it],
1823
+ [ot],
1820
1824
  [nt],
1821
1825
  [ze],
1822
1826
  [rt],
1823
1827
  [at]
1824
- ].forEach((e) => this._injector.add(e)), this._injector.get(ot);
1828
+ ].forEach((e) => this._injector.add(e)), this._injector.get(st);
1825
1829
  }
1826
1830
  onReady() {
1827
- this._injector.get(He).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(ze), this._injector.get(st);
1831
+ this._injector.get(De).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(ze), this._injector.get(ot);
1828
1832
  }
1829
1833
  onRendered() {
1830
1834
  this._injector.get(rt), this._injector.get(at), this._injector.get(it);
@@ -1832,7 +1836,7 @@ let ct = class extends ur {
1832
1836
  };
1833
1837
  Wn(ct, "pluginName", Dt);
1834
1838
  Wn(ct, "type", k.UNIVER_SHEET);
1835
- ct = to([
1839
+ ct = ts([
1836
1840
  cr(kr, ii),
1837
1841
  In(1, y(lt)),
1838
1842
  In(2, Cn)
@@ -1844,7 +1848,7 @@ export {
1844
1848
  $t as OpenHyperLinkEditPanelOperation,
1845
1849
  ze as SheetsHyperLinkCopyPasteController,
1846
1850
  G as SheetsHyperLinkPopupService,
1847
- ce as SheetsHyperLinkResolverService,
1851
+ ue as SheetsHyperLinkResolverService,
1848
1852
  Un as SheetsHyperLinkSidePanelService,
1849
1853
  ct as UniverSheetsHyperLinkUIPlugin
1850
1854
  };