@univerjs/sheets-hyper-link-ui 0.9.2 → 0.9.3

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/es/index.js CHANGED
@@ -1,24 +1,24 @@
1
- var qn = Object.defineProperty;
2
- var Jn = (t, e, n) => e in t ? qn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var $ = (t, e, n) => Jn(t, typeof e != "symbol" ? e + "" : e, n);
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, Disposable as Y, IContextService as Qn, ThemeService as er, DataStreamTreeTokenType as cn, CustomRangeType as xe, BuildTextUtils as _e, ColorKit as tr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as x, DisposableCollection as nr, FOCUSING_SHEET as Ct, generateRandomId as rr, Injector as lt, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Se, DataValidationType as St, CommandType as dt, Range as yn, ObjectMatrix as ir, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as sr, IPermissionService as or, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
- import { SetSelectionsOperation as En, SetWorksheetActiveOperation as Rn, SheetsSelectionsService as kt, getSheetCommandTarget as Tt, rangeToDiscreteRange as dr, 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 { ScrollToRangeOperation as wn, IEditorBridgeService as te, IMarkSelectionService as yr, SheetCanvasPopManagerService as Er, getEditingCustomRangePosition as Rr, getCustomRangePosition as Pr, ISheetClipboardService as Lr, virtualizeDiscreteRanges as Pt, COPY_TYPE as wr, PREDEFINED_HOOK_NAME as Be, getRepeatRange as br, whenSheetEditorFocused as kr, getCurrentRangeDisable$ as Tr, IAutoFillService as Or, APPLY_TYPE as be, getAutoFillRepeatRange as xr, HoverManagerService as Nr, HoverRenderController as Mr, SheetSkeletonManagerService as un } from "@univerjs/sheets-ui";
7
- import { DocSelectionManagerService as He } from "@univerjs/docs";
8
- import { DocSelectionRenderService as bn, DocBackScrollRenderController as Ur, DocCanvasPopManagerService as Hr, calcDocRangePositions as Dr, DocEventManagerService as ln, UniverDocsUIPlugin as Ar } from "@univerjs/docs-ui";
9
- import { IRenderManagerService as De } from "@univerjs/engine-render";
10
- import { IMessageService as kn, useDependency as S, useObservable as Vr, IZenZoneService as pt, useEvent as $r, KeyCode as Lt, MenuItemType as Tn, MetaKeys as Br, getMenuHiddenObservable as ht, ContextMenuPosition as Fr, ContextMenuGroup as jr, RibbonInsertGroup as Wr, ComponentManager as Zr, IMenuManagerService as Gr, IShortcutService as Kr } from "@univerjs/ui";
11
- import { Subject as Yr, BehaviorSubject as zr, of as ae, map as Ut, switchMap as Ne, combineLatest as Xr, debounceTime as We, Observable as qr } from "rxjs";
1
+ var Jn = Object.defineProperty;
2
+ var Qn = (t, e, n) => e in t ? Jn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var $ = (t, e, n) => Qn(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { Tools as je, IUniverInstanceService as K, ICommandService as ne, Inject as y, LocaleService as ut, IConfigService as Sn, UniverInstanceType as k, isValidRange as yn, RANGE_TYPE as cn, Rectangle as Se, Disposable as Y, IContextService as er, ThemeService as tr, DataStreamTreeTokenType as un, CustomRangeType as Oe, BuildTextUtils as _e, ColorKit as nr, DOCS_ZEN_EDITOR_UNIT_ID_KEY as x, DisposableCollection as rr, FOCUSING_SHEET as Ct, generateRandomId as kt, Injector as lt, DOCS_NORMAL_EDITOR_UNIT_ID_KEY as Ce, DataValidationType as St, CommandType as dt, Range as En, ObjectMatrix as ir, DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY as sr, IPermissionService as or, InterceptorEffectEnum as ar, DependentOn as cr, Plugin as ur, merge as lr } from "@univerjs/core";
5
+ import { SetSelectionsOperation as Rn, SetWorksheetActiveOperation as Pn, SheetsSelectionsService as Tt, getSheetCommandTarget as Ot, rangeToDiscreteRange as dr, RangeProtectionPermissionEditPoint as xt, WorksheetEditPermission as Nt, WorksheetSetCellValuePermission as Ln, WorksheetInsertHyperlinkPermission as Mt, WorkbookEditablePermission as Ut, SheetPermissionCheckController as wn, 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 { ScrollToRangeOperation as bn, IEditorBridgeService as te, IMarkSelectionService as yr, SheetCanvasPopManagerService as Er, getEditingCustomRangePosition as Rr, getCustomRangePosition as Pr, ISheetClipboardService as Lr, virtualizeDiscreteRanges as Pt, COPY_TYPE as wr, PREDEFINED_HOOK_NAME as $e, getRepeatRange as br, whenSheetEditorFocused as kr, getCurrentRangeDisable$ as Tr, IAutoFillService as Or, APPLY_TYPE as we, getAutoFillRepeatRange as xr, HoverManagerService as Nr, HoverRenderController as Mr, SheetSkeletonManagerService as ln } from "@univerjs/sheets-ui";
7
+ import { DocSelectionManagerService as Ue } from "@univerjs/docs";
8
+ import { DocSelectionRenderService as kn, DocBackScrollRenderController as Ur, DocCanvasPopManagerService as Hr, calcDocRangePositions as Dr, DocEventManagerService as dn, UniverDocsUIPlugin as Ar } from "@univerjs/docs-ui";
9
+ import { IRenderManagerService as He } from "@univerjs/engine-render";
10
+ import { IMessageService as Tn, useDependency as S, useObservable as Vr, IZenZoneService as pt, useEvent as $r, KeyCode as Lt, MenuItemType as On, MetaKeys as Br, getMenuHiddenObservable as ht, ContextMenuPosition as Fr, ContextMenuGroup as jr, RibbonInsertGroup as Wr, ComponentManager as Zr, IMenuManagerService as Gr, IShortcutService as Kr } from "@univerjs/ui";
11
+ import { Subject as Yr, BehaviorSubject as zr, of as ae, map as Ht, switchMap as xe, combineLatest as Xr, debounceTime as We, Observable as qr } from "rxjs";
12
12
  import { jsxs as Ie, jsx as m, Fragment as Jr } from "react/jsx-runtime";
13
- import { MessageType as Te, clsx as Ze, FormLayout as me, Input as dn, Select as yt, Button as pn, borderClassName as On, Tooltip as Fe } from "@univerjs/design";
14
- import { IDefinedNamesService as xn, deserializeRangeWithSheet as Ge, serializeRangeWithSheet as Qr, serializeRangeToRefString as ei, serializeRange as ti } from "@univerjs/engine-formula";
13
+ import { MessageType as ke, clsx as Ze, FormLayout as me, Input as pn, Select as yt, Button as hn, borderClassName as xn, Tooltip as Be } from "@univerjs/design";
14
+ import { IDefinedNamesService as Nn, deserializeRangeWithSheet as Ge, serializeRangeWithSheet as Qr, serializeRangeToRefString as ei, serializeRange as ti } from "@univerjs/engine-formula";
15
15
  import { RangeSelector as ni } from "@univerjs/sheets-formula-ui";
16
- import { SheetHyperLinkType as C, ERROR_RANGE as ri, SheetsHyperLinkParserService as Ht, UpdateRichHyperLinkCommand as ii, UpdateHyperLinkCommand as si, AddRichHyperLinkCommand as oi, AddHyperLinkCommand as ai, CancelRichHyperLinkCommand as ci, CancelHyperLinkCommand as ui, HyperLinkModel as gt, RemoveHyperLinkMutation as Me, AddHyperLinkMutation as Ue, UniverSheetsHyperLinkPlugin as li } from "@univerjs/sheets-hyper-link";
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
- import { SheetDataValidationModel as hn } from "@univerjs/sheets-data-validation";
16
+ import { SheetHyperLinkType as C, ERROR_RANGE as ri, SheetsHyperLinkParserService as Dt, UpdateRichHyperLinkCommand as ii, UpdateHyperLinkCommand as si, AddRichHyperLinkCommand as oi, AddHyperLinkCommand as ai, CancelRichHyperLinkCommand as ci, CancelHyperLinkCommand as ui, HyperLinkModel as gt, RemoveHyperLinkMutation as Ne, AddHyperLinkMutation as Me, UniverSheetsHyperLinkPlugin as li } from "@univerjs/sheets-hyper-link";
17
+ import { useState as Z, useMemo as Et, useRef as Mn, useCallback as di, useEffect as ee, forwardRef as le, createElement as de } from "react";
18
+ import { SheetDataValidationModel as gn } from "@univerjs/sheets-data-validation";
19
19
  var v = /* @__PURE__ */ ((t) => (t.EDITING = "editing", t.VIEWING = "viewing", t.ZEN_EDITOR = "zen_mode", t))(v || {});
20
20
  function Ye(t) {
21
- return Ce.isLegalUrl(t);
21
+ return je.isLegalUrl(t);
22
22
  }
23
23
  function pi(t) {
24
24
  return /^[a-zA-Z]+:\/\//.test(t);
@@ -39,7 +39,7 @@ function gi(t) {
39
39
  }
40
40
  return t;
41
41
  }
42
- const Mn = "sheets-hyper-link-ui.config", gn = {};
42
+ const Un = "sheets-hyper-link-ui.config", vn = {};
43
43
  var vi = Object.getOwnPropertyDescriptor, mi = (t, e, n, i) => {
44
44
  for (var r = i > 1 ? void 0 : i ? vi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
45
45
  (o = t[s]) && (r = o(r) || r);
@@ -47,12 +47,12 @@ var vi = Object.getOwnPropertyDescriptor, mi = (t, e, n, i) => {
47
47
  }, fe = (t, e) => (n, i) => e(n, i, t);
48
48
  function fi(t, e) {
49
49
  const n = e.getMergeData(), i = e.getMaxColumns() - 1, r = e.getMaxRows() - 1;
50
- if (i < t.endColumn && (t.endColumn = i), r < t.endRow && (t.endRow = r), t.rangeType === an.COLUMN || an.ROW)
50
+ if (i < t.endColumn && (t.endColumn = i), r < t.endRow && (t.endRow = r), t.rangeType === cn.COLUMN || cn.ROW)
51
51
  return t;
52
52
  const s = [];
53
53
  return n.forEach((o) => {
54
- ye.intersects(t, o) && s.push(o);
55
- }), ye.realUnion(t, ...s);
54
+ Se.intersects(t, o) && s.push(o);
55
+ }), Se.realUnion(t, ...s);
56
56
  }
57
57
  let ue = class {
58
58
  constructor(t, e, n, i, r, s) {
@@ -80,14 +80,14 @@ let ue = class {
80
80
  if (!u) {
81
81
  this._messageService.show({
82
82
  content: this._localeService.t("hyperLink.message.refError"),
83
- type: Te.Error
83
+ type: ke.Error
84
84
  });
85
85
  return;
86
86
  }
87
87
  if (u.isSheetHidden()) {
88
88
  this._messageService.show({
89
89
  content: this._localeService.t("hyperLink.message.hiddenSheet"),
90
- type: Te.Error
90
+ type: ke.Error
91
91
  });
92
92
  return;
93
93
  }
@@ -96,7 +96,7 @@ let ue = class {
96
96
  if (e) {
97
97
  if (n) {
98
98
  const o = Ge(n);
99
- Sn(o.range) && n !== ri && this.navigateToRange(s, e, o.range);
99
+ yn(o.range) && n !== ri && this.navigateToRange(s, e, o.range);
100
100
  return;
101
101
  }
102
102
  this.navigateToSheetById(s, e);
@@ -107,7 +107,7 @@ let ue = class {
107
107
  if (r) {
108
108
  const s = fi(n, r);
109
109
  await this._commandService.executeCommand(
110
- En.id,
110
+ Rn.id,
111
111
  {
112
112
  unitId: t,
113
113
  subUnitId: e,
@@ -116,7 +116,7 @@ let ue = class {
116
116
  primary: null
117
117
  }]
118
118
  }
119
- ), await this._commandService.executeCommand(wn.id, {
119
+ ), await this._commandService.executeCommand(bn.id, {
120
120
  range: s,
121
121
  forceTop: i
122
122
  });
@@ -134,10 +134,10 @@ let ue = class {
134
134
  const r = n.getSheetBySheetId(e);
135
135
  return r ? n.getHiddenWorksheets().indexOf(e) > -1 ? (this._messageService.show({
136
136
  content: this._localeService.t("hyperLink.message.hiddenSheet"),
137
- type: Te.Error
138
- }), !1) : await this._commandService.executeCommand(Rn.id, { unitId: t, subUnitId: e }) ? r : !1 : (this._messageService.show({
137
+ type: ke.Error
138
+ }), !1) : await this._commandService.executeCommand(Pn.id, { unitId: t, subUnitId: e }) ? r : !1 : (this._messageService.show({
139
139
  content: this._localeService.t("hyperLink.message.noSheet"),
140
- type: Te.Error
140
+ type: ke.Error
141
141
  }), !1);
142
142
  }
143
143
  async navigateToDefineName(t, e) {
@@ -145,7 +145,7 @@ let ue = class {
145
145
  }
146
146
  async navigateToOtherWebsite(t) {
147
147
  var n;
148
- const e = this._configService.getConfig(Mn);
148
+ const e = this._configService.getConfig(Un);
149
149
  if ((n = e == null ? void 0 : e.urlHandler) != null && n.navigateToOtherWebsite)
150
150
  return e.urlHandler.navigateToOtherWebsite(t);
151
151
  window.open(t, "_blank", "noopener noreferrer");
@@ -154,12 +154,12 @@ let ue = class {
154
154
  ue = mi([
155
155
  fe(0, K),
156
156
  fe(1, ne),
157
- fe(2, xn),
158
- fe(3, kn),
157
+ fe(2, Nn),
158
+ fe(3, Tn),
159
159
  fe(4, y(ut)),
160
- fe(5, Cn)
160
+ fe(5, Sn)
161
161
  ], ue);
162
- class Un extends Y {
162
+ class Hn extends Y {
163
163
  constructor() {
164
164
  super(...arguments);
165
165
  $(this, "_customHyperLinks", /* @__PURE__ */ new Map());
@@ -188,15 +188,15 @@ class Un extends Y {
188
188
  }
189
189
  }
190
190
  const ze = () => {
191
- var Zt;
192
- 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(xn), I = S(te), f = S(K), w = S(G), a = Vr(w.currentEditing$), b = S(Ht), M = S(ue), T = S(ne), P = S(Un), D = Et(() => P.getOptions(), [P]), A = S(pt), z = S(De), re = S(yr), Ae = S(He), ie = S(Qn), Ee = S(er), Re = S(He), [Pe, Ve] = Z(!1), he = S(kt), Zn = Et(() => he.getCurrentSelections(), []), $e = Et(() => {
191
+ var Gt;
192
+ 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(Nn), I = S(te), f = S(K), w = S(G), a = Vr(w.currentEditing$), b = S(Dt), M = S(ue), T = S(ne), P = S(Hn), D = Et(() => P.getOptions(), [P]), A = S(pt), z = S(He), re = S(yr), De = S(Ue), ie = S(er), ye = S(tr), Ee = S(Ue), [Re, Ae] = Z(!1), he = S(Tt), Gn = Et(() => he.getCurrentSelections(), []), Ve = Et(() => {
193
193
  if (!P.isBuiltInLinkType(u))
194
194
  return P.getCustomHyperLink(u);
195
- }, [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) => {
196
- s(h.replaceAll(cn.CUSTOM_RANGE_START, "").replaceAll(cn.CUSTOM_RANGE_END, ""));
195
+ }, [P, u]), [ge, Kn] = Z(!1), [Pe, Wt] = Z(!1), H = Mn(!1), B = f.getCurrentUnitForType(k.UNIVER_SHEET), Yn = (B == null ? void 0 : B.getActiveSheet().getSheetId()) || "", q = di((h) => {
196
+ s(h.replaceAll(un.CUSTOM_RANGE_START, "").replaceAll(un.CUSTOM_RANGE_END, ""));
197
197
  }, [s]);
198
198
  ee(() => {
199
- var h, E, R, L, N, F, Gt, Kt, Yt, zt, Xt, qt, Jt, Qt, en, tn, nn;
199
+ var h, E, R, L, N, F, Kt, Yt, zt, Xt, qt, Jt, Qt, en, tn, nn, rn;
200
200
  if ((a == null ? void 0 : a.row) !== void 0 && a.col !== void 0) {
201
201
  const { customRange: se, row: _t, col: It } = a;
202
202
  let { label: X } = a;
@@ -211,31 +211,31 @@ const ze = () => {
211
211
  column: It
212
212
  };
213
213
  else if (a.type === v.VIEWING) {
214
- 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) => {
215
- var on;
216
- return sn.rangeType === xe.HYPERLINK && ((on = sn.properties) == null ? void 0 : on.url);
217
- }), we = U == null ? void 0 : U.v;
218
- U && (!_e.transform.isEmptyDocument((Kt = (Gt = U.p) == null ? void 0 : Gt.body) == null ? void 0 : Kt.dataStream) || Ce.isDefine(we)) && c(!1), j = {
214
+ 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((on) => {
215
+ var an;
216
+ return on.rangeType === Oe.HYPERLINK && ((an = on.properties) == null ? void 0 : an.url);
217
+ }), Le = U == null ? void 0 : U.v;
218
+ U && (!_e.transform.isEmptyDocument((Yt = (Kt = U.p) == null ? void 0 : Kt.body) == null ? void 0 : Yt.dataStream) || je.isDefine(Le)) && c(!1), j = {
219
219
  id: "",
220
220
  display: "",
221
- payload: (zt = (Yt = ve == null ? void 0 : ve.properties) == null ? void 0 : Yt.url) != null ? zt : "",
221
+ payload: (Xt = (zt = ve == null ? void 0 : ve.properties) == null ? void 0 : zt.url) != null ? Xt : "",
222
222
  row: _t,
223
223
  column: It
224
224
  };
225
225
  } else {
226
- 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]);
226
+ const O = f.getCurrentUnitForType(k.UNIVER_DOC), Q = De.getActiveTextRange(), U = O == null ? void 0 : O.getBody(), ve = Q && U ? Q : null, Le = ve && ((Jt = _e.customRange.getCustomRangesInterestsWithSelection(ve, (qt = U == null ? void 0 : U.customRanges) != null ? qt : [])) == null ? void 0 : Jt[0]);
227
227
  c(!1), j = {
228
228
  id: "",
229
229
  display: X != null ? X : "",
230
- payload: (Qt = (Jt = we == null ? void 0 : we.properties) == null ? void 0 : Jt.url) != null ? Qt : "",
230
+ payload: (en = (Qt = Le == null ? void 0 : Le.properties) == null ? void 0 : Qt.url) != null ? en : "",
231
231
  row: _t,
232
232
  column: It
233
233
  };
234
234
  }
235
235
  e(j.id);
236
- const rn = P.findCustomHyperLink(j);
237
- if (rn) {
238
- const O = rn.convert(j);
236
+ const sn = P.findCustomHyperLink(j);
237
+ if (sn) {
238
+ const O = sn.convert(j);
239
239
  p(O.type), g(O.payload), q(O.display);
240
240
  return;
241
241
  }
@@ -247,7 +247,7 @@ const ze = () => {
247
247
  break;
248
248
  }
249
249
  case C.RANGE: {
250
- 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 = Qr(Q, Ge(O.range).range);
250
+ const O = J.searchObj, Q = O.gid && (rn = (nn = (tn = f.getUnit(a.unitId)) == null ? void 0 : tn.getSheetBySheetId(O.gid)) == null ? void 0 : nn.getName()) != null ? rn : "", U = Qr(Q, Ge(O.range).range);
251
251
  g(U), U === j.display && (H.current = !0);
252
252
  break;
253
253
  }
@@ -266,10 +266,10 @@ const ze = () => {
266
266
  break;
267
267
  }
268
268
  }
269
- }, [a, M, P, Ae, f]), ee(() => {
269
+ }, [a, M, P, De, f]), ee(() => {
270
270
  let h = null;
271
- if (a && !a.customRangeId && a.type === v.VIEWING && Ce.isDefine(a.row) && Ce.isDefine(a.col)) {
272
- 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 tr(Ee.getColorFromTheme("primary.600")).toRgb();
271
+ if (a && !a.customRangeId && a.type === v.VIEWING && je.isDefine(a.row) && je.isDefine(a.col)) {
272
+ 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(ye.getColorFromTheme("primary.600")).toRgb();
273
273
  h = re.addShape(
274
274
  {
275
275
  range: L != null ? L : {
@@ -294,12 +294,12 @@ const ze = () => {
294
294
  return () => {
295
295
  h && re.removeShape(h);
296
296
  };
297
- }, [a, re, Ee, f]), ee(() => {
298
- jt(u === C.RANGE);
297
+ }, [a, re, ye, f]), ee(() => {
298
+ Wt(u === C.RANGE);
299
299
  }, [u]), ee(() => {
300
- const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new nr();
300
+ const h = (a == null ? void 0 : a.type) === v.ZEN_EDITOR ? z.getRenderById(x) : z.getRenderById(I.getCurrentEditorId()), E = new rr();
301
301
  if (h) {
302
- const R = h.with(bn);
302
+ const R = h.with(kn);
303
303
  R.setReserveRangesStatus(!0), E.add(() => {
304
304
  R.setReserveRangesStatus(!1);
305
305
  });
@@ -307,17 +307,17 @@ const ze = () => {
307
307
  return () => {
308
308
  I.disableForceKeepVisible(), E.dispose();
309
309
  };
310
- }, [a == null ? void 0 : a.type, I, z]), ee(() => (Le && w.setIsKeepVisible(Le), w.setIsKeepVisible(Pe), () => {
310
+ }, [a == null ? void 0 : a.type, I, z]), ee(() => (Pe && w.setIsKeepVisible(Pe), w.setIsKeepVisible(Re), () => {
311
311
  w.setIsKeepVisible(!1);
312
- }), [Le, Pe, w]), ee(() => () => {
312
+ }), [Pe, Re, w]), ee(() => () => {
313
313
  A.temporaryHidden && (A.show(), ie.setContextValue(Ct, !1));
314
314
  }, [ie, A]), ee(() => {
315
- if (Le)
315
+ if (Pe)
316
316
  return I.enableForceKeepVisible(), () => {
317
317
  I.disableForceKeepVisible();
318
318
  };
319
- }, [Le, I]);
320
- const Yn = [
319
+ }, [Pe, I]);
320
+ const zn = [
321
321
  {
322
322
  label: d.t("hyperLink.form.link"),
323
323
  value: C.URL
@@ -338,10 +338,10 @@ const ze = () => {
338
338
  ];
339
339
  if (!B)
340
340
  return;
341
- const zn = B.getHiddenWorksheets(), vt = B.getSheets().map((h) => ({ label: h.getName(), value: h.getSheetId() })).filter((h) => zn.indexOf(h.value) === -1), mt = Object.values((Zt = _.getDefinedNameMap(B.getUnitId())) != null ? Zt : {}).map((h) => ({
341
+ const Xn = B.getHiddenWorksheets(), vt = B.getSheets().map((h) => ({ label: h.getName(), value: h.getSheetId() })).filter((h) => Xn.indexOf(h.value) === -1), mt = Object.values((Gt = _.getDefinedNameMap(B.getUnitId())) != null ? Gt : {}).map((h) => ({
342
342
  label: h.name,
343
343
  value: h.id
344
- })), Wt = (h, E) => {
344
+ })), Zt = (h, E) => {
345
345
  if (h === C.URL)
346
346
  return gi(E);
347
347
  if (h === C.RANGE) {
@@ -350,17 +350,17 @@ const ze = () => {
350
350
  return `#gid=${L.getSheetId()}&range=${ti(R.range)}`;
351
351
  }
352
352
  return `#${h}=${E}`;
353
- }, Xn = $r((h) => {
353
+ }, qn = $r((h) => {
354
354
  var N;
355
355
  const R = h.split(",").map(Ge)[0];
356
- if (!R || !Sn(R.range))
356
+ if (!R || !yn(R.range))
357
357
  return;
358
358
  R.sheetName || (R.sheetName = ((N = B.getActiveSheet()) == null ? void 0 : N.getName()) || "");
359
359
  const L = ei(R);
360
360
  g(L), L && (H.current || !r) && (q(L), H.current = !0);
361
361
  }), ft = async () => {
362
362
  if (o && !r || !l || u === C.URL && !Ye(l)) {
363
- Gn(!0);
363
+ Kn(!0);
364
364
  return;
365
365
  }
366
366
  if (a)
@@ -372,7 +372,7 @@ const ze = () => {
372
372
  subUnitId: a.subUnitId,
373
373
  payload: {
374
374
  display: o ? r : "",
375
- payload: Wt(u, l)
375
+ payload: Zt(u, l)
376
376
  },
377
377
  row: a.row,
378
378
  column: a.col,
@@ -384,22 +384,22 @@ const ze = () => {
384
384
  unitId: a.unitId,
385
385
  subUnitId: a.subUnitId,
386
386
  link: {
387
- id: rr(),
387
+ id: kt(),
388
388
  row: a.row,
389
389
  column: a.col,
390
- payload: Wt(u, l),
390
+ payload: Zt(u, l),
391
391
  display: o ? r : ""
392
392
  },
393
393
  documentId: a.type === v.ZEN_EDITOR ? x : I.getCurrentEditorId()
394
394
  });
395
395
  }
396
396
  if ((a == null ? void 0 : a.type) === v.VIEWING) {
397
- await T.executeCommand(Rn.id, {
397
+ await T.executeCommand(Pn.id, {
398
398
  unitId: a.unitId,
399
399
  subUnitId: a.subUnitId
400
400
  });
401
401
  const h = 1;
402
- await T.executeCommand(wn.id, {
402
+ await T.executeCommand(bn.id, {
403
403
  range: {
404
404
  startRow: Math.max(a.row - h, 0),
405
405
  endRow: a.row + h,
@@ -413,7 +413,7 @@ const ze = () => {
413
413
  return a ? /* @__PURE__ */ Ie(
414
414
  "div",
415
415
  {
416
- className: Ze("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", On),
416
+ className: Ze("univer-box-border univer-w-[296px] univer-rounded-xl univer-bg-white univer-p-4 univer-shadow-md dark:!univer-bg-gray-900", xn),
417
417
  children: [
418
418
  o ? /* @__PURE__ */ m(
419
419
  me,
@@ -421,7 +421,7 @@ const ze = () => {
421
421
  label: d.t("hyperLink.form.label"),
422
422
  error: ge && !r ? d.t("hyperLink.form.inputError") : "",
423
423
  children: /* @__PURE__ */ m(
424
- dn,
424
+ pn,
425
425
  {
426
426
  value: r,
427
427
  onChange: (h) => {
@@ -440,7 +440,7 @@ const ze = () => {
440
440
  yt,
441
441
  {
442
442
  className: "univer-w-full",
443
- options: Yn,
443
+ options: zn,
444
444
  value: u,
445
445
  onChange: (h) => {
446
446
  p(h), g("");
@@ -452,7 +452,7 @@ const ze = () => {
452
452
  {
453
453
  error: ge ? l ? Ye(l) ? "" : d.t("hyperLink.form.linkError") : d.t("hyperLink.form.inputError") : "",
454
454
  children: /* @__PURE__ */ m(
455
- dn,
455
+ pn,
456
456
  {
457
457
  value: l,
458
458
  onChange: (h) => {
@@ -471,30 +471,30 @@ const ze = () => {
471
471
  ni,
472
472
  {
473
473
  unitId: B.getUnitId(),
474
- subUnitId: Kn,
474
+ subUnitId: Yn,
475
475
  maxRangeCount: 1,
476
476
  supportAcrossSheet: !0,
477
477
  initialValue: l,
478
- resetRange: Zn,
479
- onChange: (h, E) => Xn(E),
478
+ resetRange: Gn,
479
+ onChange: (h, E) => qn(E),
480
480
  onRangeSelectorDialogVisibleChange: async (h) => {
481
481
  var E, R;
482
- if (Ve(h), h)
482
+ if (Ae(h), h)
483
483
  a.type === v.ZEN_EDITOR && (A.hide(), ie.setContextValue(Ct, !0)), a.type !== v.VIEWING && I.enableForceKeepVisible(), i(!0);
484
484
  else {
485
485
  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) {
486
- await T.executeCommand(En.id, {
486
+ await T.executeCommand(Rn.id, {
487
487
  unitId: a.unitId,
488
488
  subUnitId: a.subUnitId,
489
489
  selections: [{ range: { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col } }]
490
490
  }), A.show(), ie.setContextValue(Ct, !1);
491
- const L = (E = z.getRenderById(x)) == null ? void 0 : E.with(Ur), N = (R = Re.getTextRanges({ unitId: x, subUnitId: x })) == null ? void 0 : R[0];
492
- L && N && (L.scrollToRange(N), Re.refreshSelection({ unitId: x, subUnitId: x }));
491
+ const L = (E = z.getRenderById(x)) == null ? void 0 : E.with(Ur), N = (R = Ee.getTextRanges({ unitId: x, subUnitId: x })) == null ? void 0 : R[0];
492
+ L && N && (L.scrollToRange(N), Ee.refreshSelection({ unitId: x, subUnitId: x }));
493
493
  }
494
494
  I.disableForceKeepVisible(), i(!1);
495
495
  }
496
496
  },
497
- onFocusChange: (h) => jt(h)
497
+ onFocusChange: (h) => Wt(h)
498
498
  }
499
499
  ) }),
500
500
  u === C.SHEET && /* @__PURE__ */ m(me, { error: ge && !l ? d.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ m(
@@ -525,8 +525,8 @@ const ze = () => {
525
525
  }
526
526
  }
527
527
  ) }),
528
- ($e == null ? void 0 : $e.Form) && /* @__PURE__ */ m(
529
- $e.Form,
528
+ (Ve == null ? void 0 : Ve.Form) && /* @__PURE__ */ m(
529
+ Ve.Form,
530
530
  {
531
531
  linkId: t,
532
532
  payload: l,
@@ -541,7 +541,7 @@ const ze = () => {
541
541
  ),
542
542
  /* @__PURE__ */ Ie("div", { className: "univer-flex univer-flex-row univer-justify-end univer-gap-2", children: [
543
543
  /* @__PURE__ */ m(
544
- pn,
544
+ hn,
545
545
  {
546
546
  onClick: () => {
547
547
  a && M.navigateToRange(a.unitId, a.subUnitId, { startRow: a.row, endRow: a.row, startColumn: a.col, endColumn: a.col }, !0), T.executeCommand(qe.id);
@@ -550,7 +550,7 @@ const ze = () => {
550
550
  }
551
551
  ),
552
552
  /* @__PURE__ */ m(
553
- pn,
553
+ hn,
554
554
  {
555
555
  variant: "primary",
556
556
  onClick: async () => {
@@ -581,12 +581,12 @@ var V = function() {
581
581
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[r]) && (n[i[r]] = t[i[r]]);
582
582
  return n;
583
583
  }, pe = le(function(t, e) {
584
- var n = t.icon, i = t.id, r = t.className, s = t.extend, o = _i(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = Nn("_".concat(Si()));
585
- return Hn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, V({ ref: e, className: c }, o), s);
584
+ var n = t.icon, i = t.id, r = t.className, s = t.extend, o = _i(t, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), u = Mn("_".concat(Si()));
585
+ return Dn(n, "".concat(i), { defIds: n.defIds, idSuffix: u.current }, V({ ref: e, className: c }, o), s);
586
586
  });
587
- function Hn(t, e, n, i, r) {
587
+ function Dn(t, e, n, i, r) {
588
588
  return de(t.tag, V(V({ key: e }, Ii(t, n, r)), i), (Ci(t, n).children || []).map(function(s, o) {
589
- return Hn(s, "".concat(e, "-").concat(t.tag, "-").concat(o), n, void 0, r);
589
+ return Dn(s, "".concat(e, "-").concat(t.tag, "-").concat(o), n, void 0, r);
590
590
  }));
591
591
  }
592
592
  function Ii(t, e, n) {
@@ -619,62 +619,62 @@ var yi = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none
619
619
  }));
620
620
  });
621
621
  Ke.displayName = "AllBorderIcon";
622
- var Ei = { 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) {
622
+ var Ei = { 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" } }] }, An = le(function(t, e) {
623
623
  return de(pe, Object.assign({}, t, {
624
624
  id: "copy-icon",
625
625
  ref: e,
626
626
  icon: Ei
627
627
  }));
628
628
  });
629
- Dn.displayName = "CopyIcon";
630
- 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: "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" } }] }, Dt = le(function(t, e) {
629
+ An.displayName = "CopyIcon";
630
+ 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: "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) {
631
631
  return de(pe, Object.assign({}, t, {
632
632
  id: "link-icon",
633
633
  ref: e,
634
634
  icon: Ri
635
635
  }));
636
636
  });
637
- Dt.displayName = "LinkIcon";
638
- var Pi = { 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) {
637
+ At.displayName = "LinkIcon";
638
+ var Pi = { 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" } }] }, Vn = le(function(t, e) {
639
639
  return de(pe, Object.assign({}, t, {
640
640
  id: "unlink-icon",
641
641
  ref: e,
642
642
  icon: Pi
643
643
  }));
644
644
  });
645
- An.displayName = "UnlinkIcon";
646
- var Li = { 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) {
645
+ Vn.displayName = "UnlinkIcon";
646
+ var Li = { 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" } }] }, $n = le(function(t, e) {
647
647
  return de(pe, Object.assign({}, t, {
648
648
  id: "write-icon",
649
649
  ref: e,
650
650
  icon: Li
651
651
  }));
652
652
  });
653
- Vn.displayName = "WriteIcon";
654
- var wi = { 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) {
653
+ $n.displayName = "WriteIcon";
654
+ var wi = { 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" } }] }, Bn = le(function(t, e) {
655
655
  return de(pe, Object.assign({}, t, {
656
656
  id: "xlsx-multi-icon",
657
657
  ref: e,
658
658
  icon: wi
659
659
  }));
660
660
  });
661
- $n.displayName = "XlsxMultiIcon";
661
+ Bn.displayName = "XlsxMultiIcon";
662
662
  const bi = {
663
- [C.URL]: /* @__PURE__ */ m(Dt, {}),
664
- [C.SHEET]: /* @__PURE__ */ m($n, { className: "univer-text-green-500" }),
663
+ [C.URL]: /* @__PURE__ */ m(At, {}),
664
+ [C.SHEET]: /* @__PURE__ */ m(Bn, { className: "univer-text-green-500" }),
665
665
  [C.RANGE]: /* @__PURE__ */ m(Ke, {}),
666
666
  [C.DEFINE_NAME]: /* @__PURE__ */ m(Ke, {}),
667
667
  [C.INVALID]: /* @__PURE__ */ m(Ke, {})
668
- }, vn = (t) => {
668
+ }, mn = (t) => {
669
669
  var M, T;
670
- const e = S(G), n = S(ne), i = S(kn), r = S(ut), s = S(ue), o = S(te), c = S(Ht), u = S(pt), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: I, copyPermission: f, type: w } = t;
670
+ const e = S(G), n = S(ne), i = S(Tn), r = S(ut), s = S(ue), o = S(te), c = S(Dt), u = S(pt), { customRange: p, row: l, col: g, unitId: d, subUnitId: _, editPermission: I, copyPermission: f, type: w } = t;
671
671
  if (!((M = p == null ? void 0 : p.properties) != null && M.url))
672
672
  return null;
673
673
  const a = c.parseHyperLink((T = p.properties.url) != null ? T : ""), b = a.type === C.INVALID;
674
674
  return /* @__PURE__ */ Ie(
675
675
  "div",
676
676
  {
677
- className: Ze("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", On),
677
+ className: Ze("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", xn),
678
678
  onClick: () => e.hideCurrentPopup(),
679
679
  children: [
680
680
  /* @__PURE__ */ Ie(
@@ -692,7 +692,7 @@ const bi = {
692
692
  children: bi[a.type]
693
693
  }
694
694
  ),
695
- /* @__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 }) })
695
+ /* @__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 }) })
696
696
  ]
697
697
  }
698
698
  ),
@@ -714,11 +714,11 @@ const bi = {
714
714
  navigator.clipboard.writeText(a.url);
715
715
  i.show({
716
716
  content: r.t("hyperLink.message.coped"),
717
- type: Te.Info
717
+ type: ke.Info
718
718
  });
719
719
  }
720
720
  },
721
- children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(Dn, { className: "dark:!univer-text-white" }) })
721
+ children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.copy"), children: /* @__PURE__ */ m(An, { className: "dark:!univer-text-white" }) })
722
722
  }
723
723
  ),
724
724
  I && /* @__PURE__ */ Ie(Jr, { children: [
@@ -727,7 +727,7 @@ const bi = {
727
727
  {
728
728
  className: "univer-ml-2 univer-flex univer-size-6 univer-cursor-pointer univer-flex-row univer-items-center univer-justify-center univer-rounded univer-text-base hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-700",
729
729
  onClick: () => {
730
- n.executeCommand(Vt.id, {
730
+ n.executeCommand($t.id, {
731
731
  unitId: d,
732
732
  subUnitId: _,
733
733
  row: l,
@@ -736,7 +736,7 @@ const bi = {
736
736
  type: w
737
737
  });
738
738
  },
739
- children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.edit"), children: /* @__PURE__ */ m(Vn, { className: "dark:!univer-text-white" }) })
739
+ children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.edit"), children: /* @__PURE__ */ m($n, { className: "dark:!univer-text-white" }) })
740
740
  }
741
741
  ),
742
742
  /* @__PURE__ */ m(
@@ -754,7 +754,7 @@ const bi = {
754
754
  documentId: w === v.ZEN_EDITOR ? x : o.getCurrentEditorId()
755
755
  }) && e.hideCurrentPopup(void 0, !0);
756
756
  },
757
- children: /* @__PURE__ */ m(Fe, { placement: "bottom", title: r.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ m(An, { className: "dark:!univer-text-white" }) })
757
+ children: /* @__PURE__ */ m(Be, { placement: "bottom", title: r.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ m(Vn, { className: "dark:!univer-text-white" }) })
758
758
  }
759
759
  )
760
760
  ] })
@@ -779,9 +779,9 @@ const bi = {
779
779
  return null;
780
780
  if (e.showAll) {
781
781
  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;
782
- return p != null && p.length ? /* @__PURE__ */ m("div", { children: p.map((l) => /* @__PURE__ */ m(vn, { ...e, customRange: l }, l.rangeId)) }) : null;
782
+ return p != null && p.length ? /* @__PURE__ */ m("div", { children: p.map((l) => /* @__PURE__ */ m(mn, { ...e, customRange: l }, l.rangeId)) }) : null;
783
783
  }
784
- return /* @__PURE__ */ m(vn, { ...e });
784
+ return /* @__PURE__ */ m(mn, { ...e });
785
785
  };
786
786
  Xe.componentKey = "univer.sheet.cell-link-popup";
787
787
  var ki = Object.getOwnPropertyDescriptor, Ti = (t, e, n, i) => {
@@ -789,7 +789,7 @@ var ki = Object.getOwnPropertyDescriptor, Ti = (t, e, n, i) => {
789
789
  (o = t[s]) && (r = o(r) || r);
790
790
  return r;
791
791
  }, oe = (t, e) => (n, i) => e(n, i, t);
792
- const mn = (t, e) => {
792
+ const fn = (t, e) => {
793
793
  var n, i;
794
794
  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;
795
795
  };
@@ -820,10 +820,10 @@ let G = class extends Y {
820
820
  return this._isKeepVisible;
821
821
  }
822
822
  showPopup(e) {
823
- if (this._currentPopup && mn(e, this._currentPopup) || (this.hideCurrentPopup(void 0, !0), e.type !== v.ZEN_EDITOR && this._zenZoneService.visible))
823
+ if (this._currentPopup && fn(e, this._currentPopup) || (this.hideCurrentPopup(void 0, !0), e.type !== v.ZEN_EDITOR && this._zenZoneService.visible))
824
824
  return;
825
825
  const n = this._currentEditing$.getValue();
826
- if (n && mn(e, n))
826
+ if (n && fn(e, n))
827
827
  return;
828
828
  const { unitId: i, subUnitId: r, row: s, col: o, customRangeRect: c, customRange: u } = e;
829
829
  let p;
@@ -898,7 +898,7 @@ let G = class extends Y {
898
898
  collapsed: c.dataStream.length - 2 === 0,
899
899
  label: _e.transform.getPlainText(c.dataStream)
900
900
  };
901
- const u = _e.customRange.getCustomRangesInterestsWithSelection(o, (s = (r = c.customRanges) == null ? void 0 : r.filter((g) => g.rangeType === xe.HYPERLINK)) != null ? s : []);
901
+ const u = _e.customRange.getCustomRangesInterestsWithSelection(o, (s = (r = c.customRanges) == null ? void 0 : r.filter((g) => g.rangeType === Oe.HYPERLINK)) != null ? s : []);
902
902
  let p = o.startOffset, l = o.endOffset;
903
903
  return u.forEach((g) => {
904
904
  p = Math.min(p, g.startIndex), l = Math.max(l, g.endIndex + 1);
@@ -948,8 +948,8 @@ let G = class extends Y {
948
948
  const l = this._getEditingRange();
949
949
  if (!l)
950
950
  return;
951
- this._textSelectionManagerService.replaceDocRanges([{ ...l }], { unitId: Se, subUnitId: Se });
952
- const g = this._injector.get(De).getRenderById(Se);
951
+ this._textSelectionManagerService.replaceDocRanges([{ ...l }], { unitId: Ce, subUnitId: Ce });
952
+ const g = this._injector.get(He).getRenderById(Ce);
953
953
  if (!g)
954
954
  return;
955
955
  const d = Dr(l, g);
@@ -1058,38 +1058,38 @@ G = Ti([
1058
1058
  oe(1, y(lt)),
1059
1059
  oe(2, K),
1060
1060
  oe(3, te),
1061
- oe(4, y(He)),
1061
+ oe(4, y(Ue)),
1062
1062
  oe(5, y(Hr)),
1063
1063
  oe(6, pt)
1064
1064
  ], G);
1065
- var Oe = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.DISABLED_BY_CELL = 1] = "DISABLED_BY_CELL", t[t.ALLOW_ON_EDITING = 2] = "ALLOW_ON_EDITING", t))(Oe || {});
1065
+ var Te = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.DISABLED_BY_CELL = 1] = "DISABLED_BY_CELL", t[t.ALLOW_ON_EDITING = 2] = "ALLOW_ON_EDITING", t))(Te || {});
1066
1066
  const Oi = /* @__PURE__ */ new Set([
1067
1067
  St.CHECKBOX,
1068
1068
  St.LIST,
1069
1069
  St.LIST_MULTIPLE
1070
- ]), At = (t, e, n, i) => {
1070
+ ]), Vt = (t, e, n, i) => {
1071
1071
  var c, u, p, l, g;
1072
1072
  const r = e.getCell(n, i);
1073
1073
  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)
1074
1074
  return 1;
1075
- const s = t.has(hn) ? t.get(hn) : null, o = s == null ? void 0 : s.getRuleByLocation(e.getUnitId(), e.getSheetId(), n, i);
1075
+ const s = t.has(gn) ? t.get(gn) : null, o = s == null ? void 0 : s.getRuleByLocation(e.getUnitId(), e.getSheetId(), n, i);
1076
1076
  return o && Oi.has(o.type) ? !0 : (g = (l = r == null ? void 0 : r.p) == null ? void 0 : l.drawingsOrder) != null && g.length ? 2 : 0;
1077
1077
  }, xi = (t) => {
1078
1078
  const e = t.get(K).getCurrentUnitForType(k.UNIVER_SHEET);
1079
1079
  if (!e)
1080
1080
  return !0;
1081
- const n = e.getActiveSheet(), i = t.get(kt).getCurrentSelections();
1081
+ const n = e.getActiveSheet(), i = t.get(Tt).getCurrentSelections();
1082
1082
  if (!i.length)
1083
1083
  return !0;
1084
1084
  const r = i[0].range.startRow, s = i[0].range.startColumn;
1085
- return At(t, n, r, s) === 1;
1085
+ return Vt(t, n, r, s) === 1;
1086
1086
  }, Ni = (t) => {
1087
- const e = t.get(He), n = t.get(K), i = e.getTextRanges();
1087
+ const e = t.get(Ue), n = t.get(K), i = e.getTextRanges();
1088
1088
  if (!(i != null && i.length))
1089
1089
  return !0;
1090
1090
  const r = n.getCurrentUnitForType(k.UNIVER_DOC);
1091
1091
  return !!(!r || i.every((o) => o.collapsed) || !r.getSelfOrHeaderFooterModel(i[0].segmentId).getBody());
1092
- }, Vt = {
1092
+ }, $t = {
1093
1093
  type: dt.OPERATION,
1094
1094
  id: "sheet.operation.open-hyper-link-edit-panel",
1095
1095
  handler(t, e) {
@@ -1104,19 +1104,19 @@ const Oi = /* @__PURE__ */ new Set([
1104
1104
  handler(t) {
1105
1105
  return t.get(G).endEditing(), !0;
1106
1106
  }
1107
- }, $t = {
1107
+ }, Bt = {
1108
1108
  type: dt.OPERATION,
1109
1109
  id: "sheet.operation.insert-hyper-link",
1110
1110
  handler(t) {
1111
1111
  var g;
1112
- const e = t.get(K), n = Tt(e), i = t.get(te);
1112
+ const e = t.get(K), n = Ot(e), i = t.get(te);
1113
1113
  if (!n)
1114
1114
  return !1;
1115
- const r = t.get(ne), o = t.get(kt).getCurrentLastSelection();
1115
+ const r = t.get(ne), o = t.get(Tt).getCurrentLastSelection();
1116
1116
  if (!o)
1117
1117
  return !1;
1118
1118
  const c = o.range.startRow, u = o.range.startColumn, p = i.isVisible(), l = ((g = e.getFocusedUnit()) == null ? void 0 : g.getUnitId()) === x;
1119
- return r.executeCommand(Vt.id, {
1119
+ return r.executeCommand($t.id, {
1120
1120
  unitId: n.unitId,
1121
1121
  subUnitId: n.subUnitId,
1122
1122
  row: c,
@@ -1131,14 +1131,14 @@ const Oi = /* @__PURE__ */ new Set([
1131
1131
  if (xi(t))
1132
1132
  return !1;
1133
1133
  const e = t.get(ne);
1134
- return t.get(G).currentEditing ? e.executeCommand(qe.id) : e.executeCommand($t.id);
1134
+ return t.get(G).currentEditing ? e.executeCommand(qe.id) : e.executeCommand(Bt.id);
1135
1135
  }
1136
- }, Bt = "SHEET_HYPER_LINK_UI_PLUGIN";
1136
+ }, Ft = "SHEET_HYPER_LINK_UI_PLUGIN";
1137
1137
  var Mi = Object.getOwnPropertyDescriptor, Ui = (t, e, n, i) => {
1138
1138
  for (var r = i > 1 ? void 0 : i ? Mi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1139
1139
  (o = t[s]) && (r = o(r) || r);
1140
1140
  return r;
1141
- }, je = (t, e) => (n, i) => e(n, i, t);
1141
+ }, Fe = (t, e) => (n, i) => e(n, i, t);
1142
1142
  let Je = class extends Y {
1143
1143
  constructor(e, n, i, r) {
1144
1144
  super();
@@ -1160,7 +1160,7 @@ let Je = class extends Y {
1160
1160
  }
1161
1161
  _initCopyPaste() {
1162
1162
  this._sheetClipboardService.addClipboardHook({
1163
- id: Bt,
1163
+ id: Ft,
1164
1164
  onBeforeCopy: (e, n, i) => this._collect(e, n, i),
1165
1165
  onPasteCells: (e, n, i, r) => {
1166
1166
  const { copyType: s = wr.COPY, pasteType: o } = r, { range: c } = e || {}, { range: u, unitId: p, subUnitId: l } = n;
@@ -1170,17 +1170,17 @@ let Je = class extends Y {
1170
1170
  const i = this._filterPlainText(n);
1171
1171
  if (Ye(n) && i) {
1172
1172
  const { range: r, unitId: s, subUnitId: o } = e, { ranges: [c], mapFunc: u } = Pt([r]), p = [], l = [];
1173
- return yn.foreach(c, (g, d) => {
1173
+ return En.foreach(c, (g, d) => {
1174
1174
  const { row: _, col: I } = u(g, d), f = this._hyperLinkModel.getHyperLinkByLocation(s, o, _, I);
1175
1175
  f && p.push({
1176
- id: Me.id,
1176
+ id: Ne.id,
1177
1177
  params: {
1178
1178
  unitId: s,
1179
1179
  subUnitId: o,
1180
1180
  id: f.id
1181
1181
  }
1182
1182
  }), f && l.push({
1183
- id: Ue.id,
1183
+ id: Me.id,
1184
1184
  params: {
1185
1185
  unitId: s,
1186
1186
  subUnitId: o,
@@ -1220,17 +1220,17 @@ let Je = class extends Y {
1220
1220
  if (!this._copyInfo || !this._copyInfo.matrix.getSizeOf() || !n.copyRange)
1221
1221
  return { redos: [], undos: [] };
1222
1222
  if ([
1223
- Be.SPECIAL_PASTE_COL_WIDTH,
1224
- Be.SPECIAL_PASTE_VALUE,
1225
- Be.SPECIAL_PASTE_FORMAT,
1226
- Be.SPECIAL_PASTE_FORMULA
1223
+ $e.SPECIAL_PASTE_COL_WIDTH,
1224
+ $e.SPECIAL_PASTE_VALUE,
1225
+ $e.SPECIAL_PASTE_FORMAT,
1226
+ $e.SPECIAL_PASTE_FORMULA
1227
1227
  ].includes(n.pasteType))
1228
1228
  return { redos: [], undos: [] };
1229
1229
  const { unitId: r, subUnitId: s } = this._copyInfo, o = [], c = [], { ranges: [u, p], mapFunc: l } = Pt([n.copyRange, e]);
1230
1230
  return br(u, p, !0).forEach(({ startRange: d }) => {
1231
1231
  var _;
1232
1232
  (_ = this._copyInfo) == null || _.matrix.forValue((I, f, w) => {
1233
- const a = ye.getPositionRange(
1233
+ const a = Se.getPositionRange(
1234
1234
  {
1235
1235
  startRow: I,
1236
1236
  endRow: I,
@@ -1238,16 +1238,16 @@ let Je = class extends Y {
1238
1238
  endColumn: f
1239
1239
  },
1240
1240
  d
1241
- ), 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();
1241
+ ), 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 = kt();
1242
1242
  P && o.push({
1243
- id: Me.id,
1243
+ id: Ne.id,
1244
1244
  params: {
1245
1245
  unitId: n.unitId,
1246
1246
  subUnitId: n.subUnitId,
1247
1247
  id: P.id
1248
1248
  }
1249
1249
  }), b && (o.push({
1250
- id: Ue.id,
1250
+ id: Me.id,
1251
1251
  params: {
1252
1252
  unitId: n.unitId,
1253
1253
  subUnitId: n.subUnitId,
@@ -1259,14 +1259,14 @@ let Je = class extends Y {
1259
1259
  }
1260
1260
  }
1261
1261
  }), c.push({
1262
- id: Me.id,
1262
+ id: Ne.id,
1263
1263
  params: {
1264
1264
  unitId: n.unitId,
1265
1265
  subUnitId: n.subUnitId,
1266
1266
  id: D
1267
1267
  }
1268
1268
  })), P && c.push({
1269
- id: Ue.id,
1269
+ id: Me.id,
1270
1270
  params: {
1271
1271
  unitId: n.unitId,
1272
1272
  subUnitId: n.subUnitId,
@@ -1278,76 +1278,76 @@ let Je = class extends Y {
1278
1278
  }
1279
1279
  };
1280
1280
  Je = Ui([
1281
- je(0, Lr),
1282
- je(1, y(gt)),
1283
- je(2, y(lt)),
1284
- je(3, y(ue))
1281
+ Fe(0, Lr),
1282
+ Fe(1, y(gt)),
1283
+ Fe(2, y(lt)),
1284
+ Fe(3, y(ue))
1285
1285
  ], Je);
1286
- const Ft = (t, e = x) => {
1286
+ const jt = (t, e = x) => {
1287
1287
  var r;
1288
- const n = t.get(K), i = (r = t.get(De).getRenderById(e)) == null ? void 0 : r.with(bn);
1289
- return i ? i.textSelectionInner$.pipe(Ut(() => {
1288
+ const n = t.get(K), i = (r = t.get(He).getRenderById(e)) == null ? void 0 : r.with(kn);
1289
+ return i ? i.textSelectionInner$.pipe(Ht(() => {
1290
1290
  const o = t.get(te).getEditCellState();
1291
1291
  if (!o)
1292
1292
  return !0;
1293
- const c = Tt(n, { unitId: o.unitId, subUnitId: o.sheetId });
1294
- return !(c != null && c.worksheet) || At(t, c.worksheet, o.row, o.column) === 1 ? !0 : Ni(t);
1293
+ const c = Ot(n, { unitId: o.unitId, subUnitId: o.sheetId });
1294
+ return !(c != null && c.worksheet) || Vt(t, c.worksheet, o.row, o.column) === 1 ? !0 : Ni(t);
1295
1295
  })) : ae(!0);
1296
- }, Bn = (t) => {
1296
+ }, Fn = (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
- Ut((s) => {
1300
+ Ht((s) => {
1301
1301
  if (!s)
1302
- return Oe.DISABLED_BY_CELL;
1303
- const o = Tt(e, { unitId: s.unitId, subUnitId: s.sheetId });
1304
- return o ? At(t, o.worksheet, s.row, s.column) : Oe.DISABLED_BY_CELL;
1302
+ return Te.DISABLED_BY_CELL;
1303
+ const o = Ot(e, { unitId: s.unitId, subUnitId: s.sheetId });
1304
+ return o ? Vt(t, o.worksheet, s.row, s.column) : Te.DISABLED_BY_CELL;
1305
1305
  }),
1306
- Ne((s) => {
1307
- if (s === Oe.DISABLED_BY_CELL)
1306
+ xe((s) => {
1307
+ if (s === Te.DISABLED_BY_CELL)
1308
1308
  return ae(!0);
1309
1309
  const o = n ? n.visible$ : ae(null);
1310
1310
  return Xr([o, e.getCurrentTypeOfUnit$(k.UNIVER_DOC)]).pipe(
1311
- Ne(
1312
- ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === sr ? ae(!0) : Ft(t, Se) : ae(s !== Oe.ALLOWED)
1311
+ xe(
1312
+ ([c, u]) => c != null && c.visible ? (u == null ? void 0 : u.getUnitId()) === sr ? ae(!0) : jt(t, Ce) : ae(s !== Te.ALLOWED)
1313
1313
  )
1314
1314
  );
1315
1315
  })
1316
1316
  )) != null ? r : ae(!0)).pipe(
1317
- Ne((s) => s ? ae(!0) : Tr(t, { workbookTypes: [Mt], worksheetTypes: [xt, Pn, Nt], rangeTypes: [Ot] }, !0))
1317
+ xe((s) => s ? ae(!0) : Tr(t, { workbookTypes: [Ut], worksheetTypes: [Nt, Ln, Mt], rangeTypes: [xt] }, !0))
1318
1318
  );
1319
1319
  }, Qe = {
1320
- commandId: $t.id,
1321
- type: Tn.BUTTON,
1320
+ commandId: Bt.id,
1321
+ type: On.BUTTON,
1322
1322
  title: "hyperLink.menu.add",
1323
1323
  icon: "LinkIcon"
1324
1324
  }, et = (t) => `${t}-zen-editor`, Hi = (t) => ({
1325
1325
  ...Qe,
1326
1326
  id: Qe.commandId,
1327
1327
  hidden$: ht(t, k.UNIVER_SHEET),
1328
- disabled$: Bn(t)
1328
+ disabled$: Fn(t)
1329
1329
  // disabled$: getObservableWithExclusiveRange$(accessor, getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission, WorksheetSetCellValuePermission, WorksheetInsertHyperlinkPermission], rangeTypes: [RangeProtectionPermissionEditPoint] })),
1330
1330
  }), Di = (t) => ({
1331
1331
  ...Qe,
1332
1332
  id: et(Qe.commandId),
1333
1333
  hidden$: ht(t, k.UNIVER_DOC, x),
1334
- disabled$: Ft(t)
1334
+ disabled$: jt(t)
1335
1335
  }), tt = {
1336
1336
  tooltip: "hyperLink.form.addTitle",
1337
1337
  commandId: ce.id,
1338
- type: Tn.BUTTON,
1338
+ type: On.BUTTON,
1339
1339
  icon: "LinkIcon"
1340
1340
  }, Ai = (t) => ({
1341
1341
  ...tt,
1342
1342
  id: tt.commandId,
1343
1343
  hidden$: ht(t, k.UNIVER_SHEET),
1344
- disabled$: Bn(t)
1344
+ disabled$: Fn(t)
1345
1345
  }), Vi = (t) => ({
1346
1346
  ...tt,
1347
1347
  id: et(tt.commandId),
1348
1348
  hidden$: ht(t, k.UNIVER_DOC, x),
1349
- disabled$: Ft(t)
1350
- }), Fn = {
1349
+ disabled$: jt(t)
1350
+ }), jn = {
1351
1351
  id: ce.id,
1352
1352
  binding: Lt.K | Br.CTRL_COMMAND,
1353
1353
  preconditions: kr
@@ -1356,7 +1356,7 @@ var $i = Object.getOwnPropertyDescriptor, Bi = (t, e, n, i) => {
1356
1356
  for (var r = i > 1 ? void 0 : i ? $i(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1357
1357
  (o = t[s]) && (r = o(r) || r);
1358
1358
  return r;
1359
- }, fn = (t, e) => (n, i) => e(n, i, t);
1359
+ }, _n = (t, e) => (n, i) => e(n, i, t);
1360
1360
  let nt = class extends Y {
1361
1361
  constructor(t, e) {
1362
1362
  super(), this._autoFillService = t, this._hyperLinkModel = e, this._initAutoFill();
@@ -1380,8 +1380,8 @@ let nt = class extends Y {
1380
1380
  endColumn: b.col,
1381
1381
  endRow: b.row
1382
1382
  };
1383
- yn.foreach(M, (D, A) => {
1384
- const z = ye.getPositionRange(
1383
+ En.foreach(M, (D, A) => {
1384
+ const z = Se.getPositionRange(
1385
1385
  {
1386
1386
  startRow: D,
1387
1387
  startColumn: A,
@@ -1389,7 +1389,7 @@ let nt = class extends Y {
1389
1389
  endRow: D
1390
1390
  },
1391
1391
  T
1392
- ), { row: re, col: Ae } = d(z.startRow, z.startColumn), ie = this._hyperLinkModel.getHyperLinkByLocation(c, u, re, Ae), Ee = ye.getPositionRange(
1392
+ ), { row: re, col: De } = d(z.startRow, z.startColumn), ie = this._hyperLinkModel.getHyperLinkByLocation(c, u, re, De), ye = Se.getPositionRange(
1393
1393
  {
1394
1394
  startRow: D,
1395
1395
  startColumn: A,
@@ -1397,35 +1397,35 @@ let nt = class extends Y {
1397
1397
  endRow: D
1398
1398
  },
1399
1399
  P
1400
- ), { row: Re, col: Pe } = d(Ee.startRow, Ee.startColumn), Ve = Ce.generateRandomId(), he = this._hyperLinkModel.getHyperLinkByLocation(c, u, Re, Pe);
1400
+ ), { row: Ee, col: Re } = d(ye.startRow, ye.startColumn), Ae = kt(), he = this._hyperLinkModel.getHyperLinkByLocation(c, u, Ee, Re);
1401
1401
  he && f.push({
1402
- id: Me.id,
1402
+ id: Ne.id,
1403
1403
  params: {
1404
1404
  unitId: c,
1405
1405
  subUnitId: u,
1406
1406
  id: he.id
1407
1407
  }
1408
- }), (be.COPY === r || be.SERIES === r) && ie && (f.push({
1409
- id: Ue.id,
1408
+ }), (we.COPY === r || we.SERIES === r) && ie && (f.push({
1409
+ id: Me.id,
1410
1410
  params: {
1411
1411
  unitId: c,
1412
1412
  subUnitId: u,
1413
1413
  link: {
1414
1414
  ...ie,
1415
- id: Ve,
1416
- row: Re,
1417
- column: Pe
1415
+ id: Ae,
1416
+ row: Ee,
1417
+ column: Re
1418
1418
  }
1419
1419
  }
1420
1420
  }), w.push({
1421
- id: Me.id,
1421
+ id: Ne.id,
1422
1422
  params: {
1423
1423
  unitId: c,
1424
1424
  subUnitId: u,
1425
- id: Ve
1425
+ id: Ae
1426
1426
  }
1427
1427
  })), he && w.push({
1428
- id: Ue.id,
1428
+ id: Me.id,
1429
1429
  params: {
1430
1430
  unitId: c,
1431
1431
  subUnitId: u,
@@ -1438,15 +1438,15 @@ let nt = class extends Y {
1438
1438
  redos: f
1439
1439
  };
1440
1440
  }, n = {
1441
- id: Bt,
1442
- onFillData: (i, r, s) => s === be.COPY || s === be.ONLY_FORMAT || s === be.SERIES ? e(i, s) : t()
1441
+ id: Ft,
1442
+ onFillData: (i, r, s) => s === we.COPY || s === we.ONLY_FORMAT || s === we.SERIES ? e(i, s) : t()
1443
1443
  };
1444
1444
  this.disposeWithMe(this._autoFillService.addHook(n));
1445
1445
  }
1446
1446
  };
1447
1447
  nt = Bi([
1448
- fn(0, Or),
1449
- fn(1, y(gt))
1448
+ _n(0, Or),
1449
+ _n(1, y(gt))
1450
1450
  ], nt);
1451
1451
  var Fi = Object.getOwnPropertyDescriptor, ji = (t, e, n, i) => {
1452
1452
  for (var r = i > 1 ? void 0 : i ? Fi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1460,10 +1460,10 @@ let rt = class extends Y {
1460
1460
  _commandExecutedListener() {
1461
1461
  this.disposeWithMe(
1462
1462
  this._commandService.beforeCommandExecuted((t) => {
1463
- t.id === Fn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1464
- workbookTypes: [Mt],
1465
- rangeTypes: [Ot],
1466
- worksheetTypes: [xt, Pn, Nt]
1463
+ t.id === jn.id && (this._sheetPermissionCheckController.permissionCheckWithRanges({
1464
+ workbookTypes: [Ut],
1465
+ rangeTypes: [xt],
1466
+ worksheetTypes: [Nt, Ln, Mt]
1467
1467
  }) || this._sheetPermissionCheckController.blockExecuteWithoutPermission(this._localeService.t("permission.dialog.hyperLinkErr")));
1468
1468
  })
1469
1469
  );
@@ -1472,7 +1472,7 @@ let rt = class extends Y {
1472
1472
  rt = ji([
1473
1473
  Rt(0, y(ut)),
1474
1474
  Rt(1, ne),
1475
- Rt(2, y(Ln))
1475
+ Rt(2, y(wn))
1476
1476
  ], rt);
1477
1477
  var Wi = Object.getOwnPropertyDescriptor, Zi = (t, e, n, i) => {
1478
1478
  for (var r = i > 1 ? void 0 : i ? Wi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
@@ -1497,9 +1497,9 @@ let it = class extends Y {
1497
1497
  rangeTypes: [pr]
1498
1498
  }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]);
1499
1499
  let u = this._sheetPermissionCheckController.permissionCheckWithRanges({
1500
- workbookTypes: [Mt],
1501
- worksheetTypes: [xt, Nt],
1502
- rangeTypes: [Ot]
1500
+ workbookTypes: [Ut],
1501
+ worksheetTypes: [Nt, Mt],
1502
+ rangeTypes: [xt]
1503
1503
  }, [{ startRow: i, startColumn: r, endRow: i, endColumn: r }]);
1504
1504
  const p = o.getCellRaw(i, r);
1505
1505
  p != null && p.f && p.f.startsWith("=HYPERLINK(") && (u = !1);
@@ -1515,7 +1515,7 @@ let it = class extends Y {
1515
1515
  // hover over not editing cell
1516
1516
  this._hoverManagerService.currentRichText$.pipe(We(200)).subscribe((t) => {
1517
1517
  var T, P, D;
1518
- if (!t || ((T = t.customRange) == null ? void 0 : T.rangeType) !== xe.HYPERLINK) {
1518
+ if (!t || ((T = t.customRange) == null ? void 0 : T.rangeType) !== Oe.HYPERLINK) {
1519
1519
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1520
1520
  return;
1521
1521
  }
@@ -1529,10 +1529,10 @@ let it = class extends Y {
1529
1529
  this._sheetsHyperLinkPopupService.hideCurrentPopup(v.VIEWING);
1530
1530
  return;
1531
1531
  }
1532
- const p = (P = s == null ? void 0 : s.with(un).getSkeletonParam(n)) == null ? void 0 : P.skeleton, l = r, g = i;
1532
+ const p = (P = s == null ? void 0 : s.with(ln).getSkeletonParam(n)) == null ? void 0 : P.skeleton, l = r, g = i;
1533
1533
  let d = g, _ = l;
1534
1534
  p && p.overflowCache.forValue((A, z, re) => {
1535
- ye.contains(re, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = A, _ = z);
1535
+ Se.contains(re, { startColumn: l, endColumn: l, startRow: g, endRow: g }) && (d = A, _ = z);
1536
1536
  });
1537
1537
  const { viewPermission: I, editPermission: f, copyPermission: w } = this._getLinkPermission(t);
1538
1538
  if (!I) {
@@ -1562,8 +1562,8 @@ let it = class extends Y {
1562
1562
  _initHoverEditingListener() {
1563
1563
  let t = null;
1564
1564
  this.disposeWithMe(
1565
- this._editorBridgeService.currentEditCellState$.pipe(Ne((e) => this._editorBridgeService.visible$.pipe(Ut((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1566
- if (!n || n.editorUnitId !== Se)
1565
+ this._editorBridgeService.currentEditCellState$.pipe(xe((e) => this._editorBridgeService.visible$.pipe(Ht((n) => ({ visible: n, state: e }))))).subscribe(({ visible: e, state: n }) => {
1566
+ if (!n || n.editorUnitId !== Ce)
1567
1567
  return;
1568
1568
  if (!e.visible) {
1569
1569
  t == null || t.unsubscribe(), this._sheetsHyperLinkPopupService.hideCurrentPopup(v.EDITING), this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
@@ -1572,16 +1572,16 @@ let it = class extends Y {
1572
1572
  const { editorUnitId: i, unitId: r, sheetId: s, row: o, column: c } = n, u = this._renderManagerService.getRenderById(i);
1573
1573
  if (!u)
1574
1574
  return;
1575
- const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(ln);
1575
+ const { editPermission: p, viewPermission: l, copyPermission: g } = this._getLinkPermission({ unitId: r, subUnitId: s, row: o, col: c }), d = u.with(dn);
1576
1576
  l && (t == null || t.unsubscribe(), t = d.hoverCustomRanges$.pipe(We(200)).subscribe((_) => {
1577
1577
  var b, M;
1578
- const I = _.find((T) => T.range.rangeType === xe.HYPERLINK);
1578
+ const I = _.find((T) => T.range.rangeType === Oe.HYPERLINK);
1579
1579
  if (!I) {
1580
1580
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1581
1581
  return;
1582
1582
  }
1583
1583
  const f = I.rects[I.rects.length - 1];
1584
- if (!((M = (b = this._renderManagerService.getRenderById(r)) == null ? void 0 : b.with(un).getSkeletonParam(s)) == null ? void 0 : M.skeleton) || !f)
1584
+ if (!((M = (b = this._renderManagerService.getRenderById(r)) == null ? void 0 : b.with(ln).getSkeletonParam(s)) == null ? void 0 : M.skeleton) || !f)
1585
1585
  return;
1586
1586
  const a = u.engine.getCanvasElement().getBoundingClientRect();
1587
1587
  this._sheetsHyperLinkPopupService.showPopup({
@@ -1613,14 +1613,14 @@ let it = class extends Y {
1613
1613
  })
1614
1614
  ), this.disposeWithMe(
1615
1615
  this._univerInstanceService.focused$.pipe(
1616
- Ne((t) => {
1616
+ xe((t) => {
1617
1617
  const e = t === x ? this._renderManagerService.getRenderById(t) : null;
1618
- return e ? e.with(ln).hoverCustomRanges$.pipe(We(200)) : new qr((n) => {
1618
+ return e ? e.with(dn).hoverCustomRanges$.pipe(We(200)) : new qr((n) => {
1619
1619
  n.next(null);
1620
1620
  });
1621
1621
  })
1622
1622
  ).subscribe((t) => {
1623
- const e = t == null ? void 0 : t.find((i) => i.range.rangeType === xe.HYPERLINK), n = this._editorBridgeService.getEditCellState();
1623
+ const e = t == null ? void 0 : t.find((i) => i.range.rangeType === Oe.HYPERLINK), n = this._editorBridgeService.getEditCellState();
1624
1624
  if (e && n) {
1625
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 });
1626
1626
  u && this._sheetsHyperLinkPopupService.showPopup({
@@ -1641,7 +1641,7 @@ let it = class extends Y {
1641
1641
  _initTextSelectionListener() {
1642
1642
  this.disposeWithMe(
1643
1643
  this._textSelectionManagerService.textSelection$.subscribe((t) => {
1644
- t && t.unitId === Se && this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1644
+ t && t.unitId === Ce && this._sheetsHyperLinkPopupService.endEditing(v.EDITING);
1645
1645
  })
1646
1646
  );
1647
1647
  }
@@ -1655,16 +1655,16 @@ let it = class extends Y {
1655
1655
  it = Zi([
1656
1656
  W(0, y(Nr)),
1657
1657
  W(1, y(G)),
1658
- W(2, y(De)),
1658
+ W(2, y(He)),
1659
1659
  W(3, y(or)),
1660
- W(4, y(Ln)),
1660
+ W(4, y(wn)),
1661
1661
  W(5, ne),
1662
1662
  W(6, te),
1663
- W(7, y(He)),
1663
+ W(7, y(Ue)),
1664
1664
  W(8, K),
1665
1665
  W(9, pt)
1666
1666
  ], it);
1667
- var Gi = Object.getOwnPropertyDescriptor, jn = (t, e, n, i) => {
1667
+ var Gi = Object.getOwnPropertyDescriptor, Wn = (t, e, n, i) => {
1668
1668
  for (var r = i > 1 ? void 0 : i ? Gi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1669
1669
  (o = t[s]) && (r = o(r) || r);
1670
1670
  return r;
@@ -1683,7 +1683,7 @@ let bt = class extends Y {
1683
1683
  }));
1684
1684
  }
1685
1685
  };
1686
- bt = jn([
1686
+ bt = Wn([
1687
1687
  wt(1, y(gt))
1688
1688
  ], bt);
1689
1689
  let st = class extends Y {
@@ -1706,7 +1706,7 @@ let st = class extends Y {
1706
1706
  );
1707
1707
  }
1708
1708
  };
1709
- st = jn([
1709
+ st = Wn([
1710
1710
  wt(0, y(Cr)),
1711
1711
  wt(1, y(gt))
1712
1712
  ], st);
@@ -1739,7 +1739,7 @@ var Yi = Object.getOwnPropertyDescriptor, zi = (t, e, n, i) => {
1739
1739
  for (var r = i > 1 ? void 0 : i ? Yi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1740
1740
  (o = t[s]) && (r = o(r) || r);
1741
1741
  return r;
1742
- }, ke = (t, e) => (n, i) => e(n, i, t);
1742
+ }, be = (t, e) => (n, i) => e(n, i, t);
1743
1743
  let ot = class extends Y {
1744
1744
  constructor(t, e, n, i, r) {
1745
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();
@@ -1748,16 +1748,16 @@ let ot = class extends Y {
1748
1748
  [
1749
1749
  [Xe.componentKey, Xe],
1750
1750
  [ze.componentKey, ze],
1751
- ["LinkIcon", Dt]
1751
+ ["LinkIcon", At]
1752
1752
  ].forEach(([t, e]) => {
1753
1753
  this._componentManager.register(t, e);
1754
1754
  });
1755
1755
  }
1756
1756
  _initCommands() {
1757
1757
  [
1758
- Vt,
1759
- qe,
1760
1758
  $t,
1759
+ qe,
1760
+ Bt,
1761
1761
  ce
1762
1762
  ].forEach((t) => {
1763
1763
  this._commandService.registerCommand(t);
@@ -1767,21 +1767,21 @@ let ot = class extends Y {
1767
1767
  this._menuManagerService.mergeMenu(Ki);
1768
1768
  }
1769
1769
  _initShortCut() {
1770
- this._shortcutService.registerShortcut(Fn);
1770
+ this._shortcutService.registerShortcut(jn);
1771
1771
  }
1772
1772
  };
1773
1773
  ot = zi([
1774
- ke(0, y(Zr)),
1775
- ke(1, ne),
1776
- ke(2, Gr),
1777
- ke(3, y(lt)),
1778
- ke(4, y(Kr))
1774
+ be(0, y(Zr)),
1775
+ be(1, ne),
1776
+ be(2, Gr),
1777
+ be(3, y(lt)),
1778
+ be(4, y(Kr))
1779
1779
  ], ot);
1780
1780
  var Xi = Object.getOwnPropertyDescriptor, qi = (t, e, n, i) => {
1781
1781
  for (var r = i > 1 ? void 0 : i ? Xi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1782
1782
  (o = t[s]) && (r = o(r) || r);
1783
1783
  return r;
1784
- }, _n = (t, e) => (n, i) => e(n, i, t);
1784
+ }, In = (t, e) => (n, i) => e(n, i, t);
1785
1785
  let at = class extends Y {
1786
1786
  constructor(t, e) {
1787
1787
  super(), this._parserService = t, this._resolverService = e, this._handleInitUrl();
@@ -1795,29 +1795,29 @@ let at = class extends Y {
1795
1795
  }
1796
1796
  };
1797
1797
  at = qi([
1798
- _n(0, y(Ht)),
1799
- _n(1, y(ue))
1798
+ In(0, y(Dt)),
1799
+ In(1, y(ue))
1800
1800
  ], at);
1801
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
1802
  for (var r = i > 1 ? void 0 : i ? Qi(e, n) : e, s = t.length - 1, o; s >= 0; s--)
1803
1803
  (o = t[s]) && (r = o(r) || r);
1804
1804
  return r;
1805
- }, In = (t, e) => (n, i) => e(n, i, t), Wn = (t, e, n) => es(t, typeof e != "symbol" ? e + "" : e, n);
1805
+ }, Cn = (t, e) => (n, i) => e(n, i, t), Zn = (t, e, n) => es(t, typeof e != "symbol" ? e + "" : e, n);
1806
1806
  let ct = class extends ur {
1807
- constructor(t = gn, e, n) {
1807
+ constructor(t = vn, e, n) {
1808
1808
  super(), this._config = t, this._injector = e, this._configService = n;
1809
1809
  const { menu: i, ...r } = lr(
1810
1810
  {},
1811
- gn,
1811
+ vn,
1812
1812
  this._config
1813
1813
  );
1814
- i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(Mn, r);
1814
+ i && this._configService.setConfig("menu", i, { merge: !0 }), this._configService.setConfig(Un, r);
1815
1815
  }
1816
1816
  onStarting() {
1817
1817
  [
1818
1818
  [ue],
1819
1819
  [G],
1820
- [Un],
1820
+ [Hn],
1821
1821
  [st],
1822
1822
  [it],
1823
1823
  [ot],
@@ -1828,27 +1828,27 @@ let ct = class extends ur {
1828
1828
  ].forEach((e) => this._injector.add(e)), this._injector.get(st);
1829
1829
  }
1830
1830
  onReady() {
1831
- this._injector.get(De).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(Je), this._injector.get(ot);
1831
+ this._injector.get(He).registerRenderModule(k.UNIVER_SHEET, [bt]), this._injector.get(nt), this._injector.get(Je), this._injector.get(ot);
1832
1832
  }
1833
1833
  onRendered() {
1834
1834
  this._injector.get(rt), this._injector.get(at), this._injector.get(it);
1835
1835
  }
1836
1836
  };
1837
- Wn(ct, "pluginName", Bt);
1838
- Wn(ct, "type", k.UNIVER_SHEET);
1837
+ Zn(ct, "pluginName", Ft);
1838
+ Zn(ct, "type", k.UNIVER_SHEET);
1839
1839
  ct = ts([
1840
1840
  cr(li, Ar),
1841
- In(1, y(lt)),
1842
- In(2, Cn)
1841
+ Cn(1, y(lt)),
1842
+ Cn(2, Sn)
1843
1843
  ], ct);
1844
1844
  export {
1845
1845
  qe as CloseHyperLinkPopupOperation,
1846
- $t as InsertHyperLinkOperation,
1847
- Fn as InsertLinkShortcut,
1848
- Vt as OpenHyperLinkEditPanelOperation,
1846
+ Bt as InsertHyperLinkOperation,
1847
+ jn as InsertLinkShortcut,
1848
+ $t as OpenHyperLinkEditPanelOperation,
1849
1849
  Je as SheetsHyperLinkCopyPasteController,
1850
1850
  G as SheetsHyperLinkPopupService,
1851
1851
  ue as SheetsHyperLinkResolverService,
1852
- Un as SheetsHyperLinkSidePanelService,
1852
+ Hn as SheetsHyperLinkSidePanelService,
1853
1853
  ct as UniverSheetsHyperLinkUIPlugin
1854
1854
  };