@univerjs/sheets-hyper-link-ui 0.2.2 → 0.2.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,21 +1,21 @@
1
1
  var zt = Object.defineProperty;
2
2
  var Gt = (e, t, n) => t in e ? zt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var D = (e, t, n) => Gt(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { Disposable as O, UniverInstanceType as w, OnLifecycle as N, LifecycleStages as $, IUniverInstanceService as ue, BooleanNumber as qt, ThemeService as Xt, isValidRange as ze, LocaleService as pe, RANGE_TYPE as lt, Rectangle as ee, ICommandService as W, Tools as te, DEFAULT_EMPTY_DOCUMENT_VALUE as Jt, createInternalEditorID as Qt, CommandType as He, CellValueType as en, ObjectMatrix as _t, Range as Qe, IPermissionService as tn, Plugin as nn, DependentOn as rn } from "@univerjs/core";
5
- import { RemoveSheetCommand as on, SheetInterceptorService as et, INTERCEPTOR_POINT as sn, SetSelectionsOperation as an, NORMAL_SELECTION_PLUGIN_NAME as cn, SetWorksheetActiveOperation as Oe, getSheetCommandTarget as Ct, SelectionManagerService as yt, SetRangeValuesMutation as fe, SetRangeValuesUndoMutationFactory as dt, SetRangeValuesCommand as ln, ClearSelectionContentCommand as dn, ClearSelectionAllCommand as un, ClearSelectionFormatCommand as pn, WorkbookViewPermission as hn, WorksheetViewPermission as mn, RangeProtectionPermissionViewPoint as gn, WorkbookEditablePermission as Ne, WorksheetEditPermission as $e, WorksheetInsertHyperlinkPermission as Be, RangeProtectionPermissionEditPoint as Ve, WorkbookCopyPermission as fn, WorksheetCopyPermission as vn, WorksheetSetCellValuePermission as tt } from "@univerjs/sheets";
6
- import { Inject as h, Injector as Ae } from "@wendellhu/redi";
7
- import { RemoveHyperLinkMutation as M, AddHyperLinkMutation as x, HyperLinkModel as T, ERROR_RANGE as Ge, UpdateHyperLinkCommand as St, AddHyperLinkCommand as Lt, CancelHyperLinkCommand as _n, UniverSheetsHyperLinkPlugin as Cn } from "@univerjs/sheets-hyper-link";
8
- import { SheetSkeletonManagerService as It, ScrollToRangeOperation as kt, SheetCanvasPopManagerService as yn, HoverManagerService as Sn, SheetPermissionInterceptorBaseController as Pt, whenSheetEditorFocused as Ln, getCurrentRangeDisable$ as bt, APPLY_TYPE as re, IAutoFillService as In, virtualizeDiscreteRanges as qe, getAutoFillRepeatRange as kn, COPY_TYPE as ut, rangeToDiscreteRange as Pn, PREDEFINED_HOOK_NAME as ve, getRepeatRange as bn, ISheetClipboardService as Rn } from "@univerjs/sheets-ui";
3
+ var A = (e, t, n) => Gt(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { Disposable as O, UniverInstanceType as w, OnLifecycle as N, LifecycleStages as $, IUniverInstanceService as ue, BooleanNumber as qt, ThemeService as Xt, isValidRange as ze, LocaleService as pe, RANGE_TYPE as lt, Rectangle as te, ICommandService as F, Tools as ne, DEFAULT_EMPTY_DOCUMENT_VALUE as Jt, createInternalEditorID as Qt, CommandType as He, CellValueType as en, ObjectMatrix as _t, Range as Qe, IPermissionService as tn, Plugin as nn, DependentOn as rn } from "@univerjs/core";
5
+ import { RemoveSheetCommand as on, SheetInterceptorService as et, INTERCEPTOR_POINT as sn, SetSelectionsOperation as an, SetWorksheetActiveOperation as Oe, getSheetCommandTarget as Ct, SheetsSelectionsService as yt, SetRangeValuesMutation as fe, SetRangeValuesUndoMutationFactory as dt, SetRangeValuesCommand as cn, ClearSelectionContentCommand as ln, ClearSelectionAllCommand as dn, ClearSelectionFormatCommand as un, WorkbookViewPermission as pn, WorksheetViewPermission as hn, RangeProtectionPermissionViewPoint as mn, WorkbookEditablePermission as Ne, WorksheetEditPermission as $e, WorksheetInsertHyperlinkPermission as Be, RangeProtectionPermissionEditPoint as Ve, WorkbookCopyPermission as gn, WorksheetCopyPermission as fn, WorksheetSetCellValuePermission as tt } from "@univerjs/sheets";
6
+ import { Inject as h, Injector as De } from "@wendellhu/redi";
7
+ import { RemoveHyperLinkMutation as M, AddHyperLinkMutation as x, HyperLinkModel as T, ERROR_RANGE as Ge, UpdateHyperLinkCommand as St, AddHyperLinkCommand as Lt, CancelHyperLinkCommand as vn, UniverSheetsHyperLinkPlugin as _n } from "@univerjs/sheets-hyper-link";
8
+ import { SheetSkeletonManagerService as It, ScrollToRangeOperation as kt, SheetCanvasPopManagerService as Cn, HoverManagerService as yn, SheetPermissionInterceptorBaseController as Pt, whenSheetEditorFocused as Sn, getCurrentRangeDisable$ as bt, APPLY_TYPE as ie, IAutoFillService as Ln, virtualizeDiscreteRanges as qe, getAutoFillRepeatRange as In, COPY_TYPE as ut, rangeToDiscreteRange as kn, PREDEFINED_HOOK_NAME as ve, getRepeatRange as Pn, ISheetClipboardService as bn } from "@univerjs/sheets-ui";
9
9
  import { IRenderManagerService as nt } from "@univerjs/engine-render";
10
- import { Subject as wn, BehaviorSubject as On, debounceTime as En } from "rxjs";
11
- import Mn, { forwardRef as Z, useRef as Rt, createElement as K, useState as ie, useEffect as xn, useMemo as Tn } from "react";
10
+ import { Subject as Rn, BehaviorSubject as wn, debounceTime as On } from "rxjs";
11
+ import En, { forwardRef as Z, useRef as Rt, createElement as K, useState as Q, useEffect as wt, useMemo as Mn } from "react";
12
12
  import { useDependency as k } from "@wendellhu/redi/react-bindings";
13
13
  import pt from "clsx";
14
14
  import { MessageType as ce, FormLayout as X, Input as ht, Select as Ze, Button as mt, Tooltip as _e } from "@univerjs/design";
15
- import { IMessageService as wt, useObservable as Ot, useEvent as Un, RangeSelector as jn, ISidebarService as Et, KeyCode as Hn, MetaKeys as Nn, MenuItemType as Mt, MenuPosition as xt, getMenuHiddenObservable as Tt, MenuGroup as $n, ComponentManager as Bn, IShortcutService as Vn, IMenuService as An } from "@univerjs/ui";
16
- import { deserializeRangeWithSheet as Ee, serializeRangeWithSheet as Ut, IDefinedNamesService as jt, serializeRangeToRefString as Dn, serializeRange as Fn } from "@univerjs/engine-formula";
17
- var Wn = Object.defineProperty, Zn = Object.getOwnPropertyDescriptor, Kn = (e, t, n, r) => {
18
- for (var i = r > 1 ? void 0 : r ? Zn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
15
+ import { IMessageService as Ot, useObservable as xn, useEvent as Tn, RangeSelector as Un, ISidebarService as Et, KeyCode as jn, MetaKeys as Hn, MenuItemType as Mt, MenuPosition as xt, getMenuHiddenObservable as Tt, MenuGroup as Nn, ComponentManager as $n, IShortcutService as Bn, IMenuService as Vn } from "@univerjs/ui";
16
+ import { deserializeRangeWithSheet as Ee, serializeRangeWithSheet as Ut, IDefinedNamesService as jt, serializeRangeToRefString as Dn, serializeRange as An } from "@univerjs/engine-formula";
17
+ var Wn = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, Zn = (e, t, n, r) => {
18
+ for (var i = r > 1 ? void 0 : r ? Fn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
19
19
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
20
20
  return r && i && Wn(t, n, i), i;
21
21
  }, Ke = (e, t) => (n, r) => t(n, r, e);
@@ -58,17 +58,17 @@ let ye = class extends O {
58
58
  );
59
59
  }
60
60
  };
61
- ye = Kn([
61
+ ye = Zn([
62
62
  N($.Ready, ye),
63
63
  Ke(0, h(et)),
64
64
  Ke(1, ue),
65
65
  Ke(2, h(T))
66
66
  ], ye);
67
- var Yn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, Ht = (e, t, n, r) => {
68
- for (var i = r > 1 ? void 0 : r ? zn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
67
+ var Kn = Object.defineProperty, Yn = Object.getOwnPropertyDescriptor, Ht = (e, t, n, r) => {
68
+ for (var i = r > 1 ? void 0 : r ? Yn(t, n) : t, o = e.length - 1, s; o >= 0; o--)
69
69
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
70
- return r && i && Yn(t, n, i), i;
71
- }, Q = (e, t) => (n, r) => t(n, r, e);
70
+ return r && i && Kn(t, n, i), i;
71
+ }, ee = (e, t) => (n, r) => t(n, r, e);
72
72
  let Xe = class extends O {
73
73
  constructor(e, t, n, r) {
74
74
  super(), this._context = e, this._hyperLinkModel = t, this._sheetSkeletonManagerService = n, this._renderManagerService = r, this._initSkeletonChange();
@@ -90,9 +90,9 @@ let Xe = class extends O {
90
90
  }
91
91
  };
92
92
  Xe = Ht([
93
- Q(1, h(T)),
94
- Q(2, h(It)),
95
- Q(3, nt)
93
+ ee(1, h(T)),
94
+ ee(2, h(It)),
95
+ ee(3, nt)
96
96
  ], Xe);
97
97
  let Se = class extends O {
98
98
  constructor(e, t, n) {
@@ -125,11 +125,11 @@ let Se = class extends O {
125
125
  };
126
126
  Se = Ht([
127
127
  N($.Ready, Se),
128
- Q(0, h(et)),
129
- Q(1, h(T)),
130
- Q(2, h(Xt))
128
+ ee(0, h(et)),
129
+ ee(1, h(T)),
130
+ ee(2, h(Xt))
131
131
  ], Se);
132
- var Nt = { exports: {} }, De = {};
132
+ var Nt = { exports: {} }, Ae = {};
133
133
  /**
134
134
  * @license React
135
135
  * react-jsx-runtime.production.min.js
@@ -139,18 +139,18 @@ var Nt = { exports: {} }, De = {};
139
139
  * This source code is licensed under the MIT license found in the
140
140
  * LICENSE file in the root directory of this source tree.
141
141
  */
142
- var Gn = Mn, qn = Symbol.for("react.element"), Xn = Symbol.for("react.fragment"), Jn = Object.prototype.hasOwnProperty, Qn = Gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, er = { key: !0, ref: !0, __self: !0, __source: !0 };
142
+ var zn = En, Gn = Symbol.for("react.element"), qn = Symbol.for("react.fragment"), Xn = Object.prototype.hasOwnProperty, Jn = zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, Qn = { key: !0, ref: !0, __self: !0, __source: !0 };
143
143
  function $t(e, t, n) {
144
144
  var r, i = {}, o = null, s = null;
145
145
  n !== void 0 && (o = "" + n), t.key !== void 0 && (o = "" + t.key), t.ref !== void 0 && (s = t.ref);
146
- for (r in t) Jn.call(t, r) && !er.hasOwnProperty(r) && (i[r] = t[r]);
146
+ for (r in t) Xn.call(t, r) && !Qn.hasOwnProperty(r) && (i[r] = t[r]);
147
147
  if (e && e.defaultProps) for (r in t = e.defaultProps, t) i[r] === void 0 && (i[r] = t[r]);
148
- return { $$typeof: qn, type: e, key: o, ref: s, props: i, _owner: Qn.current };
148
+ return { $$typeof: Gn, type: e, key: o, ref: s, props: i, _owner: Jn.current };
149
149
  }
150
- De.Fragment = Xn;
151
- De.jsx = $t;
152
- De.jsxs = $t;
153
- Nt.exports = De;
150
+ Ae.Fragment = qn;
151
+ Ae.jsx = $t;
152
+ Ae.jsxs = $t;
153
+ Nt.exports = Ae;
154
154
  var d = Nt.exports, b = function() {
155
155
  return b = Object.assign || function(e) {
156
156
  for (var t, n = 1, r = arguments.length; n < r; n++) {
@@ -159,7 +159,7 @@ var d = Nt.exports, b = function() {
159
159
  }
160
160
  return e;
161
161
  }, b.apply(this, arguments);
162
- }, tr = function(e, t) {
162
+ }, er = function(e, t) {
163
163
  var n = {};
164
164
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
165
165
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -167,15 +167,15 @@ var d = Nt.exports, b = function() {
167
167
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
168
168
  return n;
169
169
  }, Y = Z(function(e, t) {
170
- var n = e.icon, r = e.id, i = e.className, o = e.extend, s = tr(e, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), a = Rt("_".concat(ir()));
170
+ var n = e.icon, r = e.id, i = e.className, o = e.extend, s = er(e, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(r, " ").concat(i || "").trim(), a = Rt("_".concat(rr()));
171
171
  return Bt(n, "".concat(r), { defIds: n.defIds, idSuffix: a.current }, b({ ref: t, className: c }, s), o);
172
172
  });
173
173
  function Bt(e, t, n, r, i) {
174
- return K(e.tag, b(b({ key: t }, nr(e, n, i)), r), (rr(e, n).children || []).map(function(o, s) {
174
+ return K(e.tag, b(b({ key: t }, tr(e, n, i)), r), (nr(e, n).children || []).map(function(o, s) {
175
175
  return Bt(o, "".concat(t, "-").concat(e.tag, "-").concat(s), n, void 0, i);
176
176
  }));
177
177
  }
178
- function nr(e, t, n) {
178
+ function tr(e, t, n) {
179
179
  var r = b({}, e.attrs);
180
180
  n != null && n.colorChannel1 && r.fill === "colorChannel1" && (r.fill = n.colorChannel1);
181
181
  var i = t.defIds;
@@ -184,79 +184,79 @@ function nr(e, t, n) {
184
184
  typeof c == "string" && (r[s] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(t.idSuffix, ")")));
185
185
  })), r;
186
186
  }
187
- function rr(e, t) {
187
+ function nr(e, t) {
188
188
  var n, r = t.defIds;
189
189
  return !r || r.length === 0 ? e : e.tag === "defs" && (!((n = e.children) === null || n === void 0) && n.length) ? b(b({}, e), { children: e.children.map(function(i) {
190
190
  return typeof i.attrs.id == "string" && r && r.indexOf(i.attrs.id) > -1 ? b(b({}, i), { attrs: b(b({}, i.attrs), { id: i.attrs.id + t.idSuffix }) }) : i;
191
191
  }) }) : e;
192
192
  }
193
- function ir() {
193
+ function rr() {
194
194
  return Math.random().toString(36).substring(2, 8);
195
195
  }
196
196
  Y.displayName = "UniverIcon";
197
- var or = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = Z(function(e, t) {
197
+ var ir = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Le = Z(function(e, t) {
198
198
  return K(Y, Object.assign({}, e, {
199
199
  id: "all-border-single",
200
200
  ref: t,
201
- icon: or
201
+ icon: ir
202
202
  }));
203
203
  });
204
204
  Le.displayName = "AllBorderSingle";
205
- var sr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.02547 12.4251C5.15328 13.7417 6.26305 14.7708 7.61318 14.7708H12.6132C14.0491 14.7708 15.2132 13.6067 15.2132 12.1708V6.1708C15.2132 4.78586 14.1303 3.65383 12.7651 3.57517C12.6373 2.25858 11.5275 1.22949 10.1774 1.22949H5.17739C3.74145 1.22949 2.57739 2.39355 2.57739 3.82949V9.82949C2.57739 11.2144 3.66024 12.3465 5.02547 12.4251ZM11.5535 3.5708H7.61318C6.17724 3.5708 5.01318 4.73486 5.01318 6.1708V11.22C4.31736 11.1387 3.77739 10.5471 3.77739 9.82949V3.82949C3.77739 3.05629 4.40419 2.42949 5.17739 2.42949H10.1774C10.8622 2.42949 11.4322 2.92119 11.5535 3.5708ZM14.0132 6.1708C14.0132 5.3976 13.3864 4.7708 12.6132 4.7708H7.61318C6.83998 4.7708 6.21318 5.3976 6.21318 6.1708V12.1708C6.21318 12.944 6.83998 13.5708 7.61318 13.5708H12.6132C13.3864 13.5708 14.0132 12.944 14.0132 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vt = Z(function(e, t) {
205
+ var or = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.02547 12.4251C5.15328 13.7417 6.26305 14.7708 7.61318 14.7708H12.6132C14.0491 14.7708 15.2132 13.6067 15.2132 12.1708V6.1708C15.2132 4.78586 14.1303 3.65383 12.7651 3.57517C12.6373 2.25858 11.5275 1.22949 10.1774 1.22949H5.17739C3.74145 1.22949 2.57739 2.39355 2.57739 3.82949V9.82949C2.57739 11.2144 3.66024 12.3465 5.02547 12.4251ZM11.5535 3.5708H7.61318C6.17724 3.5708 5.01318 4.73486 5.01318 6.1708V11.22C4.31736 11.1387 3.77739 10.5471 3.77739 9.82949V3.82949C3.77739 3.05629 4.40419 2.42949 5.17739 2.42949H10.1774C10.8622 2.42949 11.4322 2.92119 11.5535 3.5708ZM14.0132 6.1708C14.0132 5.3976 13.3864 4.7708 12.6132 4.7708H7.61318C6.83998 4.7708 6.21318 5.3976 6.21318 6.1708V12.1708C6.21318 12.944 6.83998 13.5708 7.61318 13.5708H12.6132C13.3864 13.5708 14.0132 12.944 14.0132 12.1708V6.1708Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vt = Z(function(e, t) {
206
206
  return K(Y, Object.assign({}, e, {
207
207
  id: "copy-single",
208
208
  ref: t,
209
- icon: sr
209
+ icon: or
210
210
  }));
211
211
  });
212
212
  Vt.displayName = "CopySingle";
213
- var ar = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.9564 2.91332C4.91407 1.87102 3.22413 1.87101 2.18182 2.91333L2.18182 2.91333C1.13953 3.95567 1.13952 5.6456 2.18182 6.68791L8.27777 12.7838C9.72408 14.2302 12.069 14.2302 13.5154 12.7839L13.0911 12.3596L13.5154 12.7839C14.9617 11.3375 14.9617 8.99257 13.5154 7.54626L8.39476 2.42566C8.16044 2.19134 7.78054 2.19134 7.54623 2.42566C7.31191 2.65997 7.31191 3.03987 7.54623 3.27419L12.6668 8.39479L13.0911 7.97052L12.6668 8.39479C13.6445 9.37247 13.6445 10.9576 12.6668 11.9353L13.0399 12.3084L12.6668 11.9353C11.6891 12.913 10.104 12.913 9.1263 11.9353L3.03035 5.83938C2.45668 5.26571 2.45667 4.33556 3.03036 3.76184C3.60403 3.18818 4.53416 3.18817 5.10788 3.76185C5.10788 3.76186 5.10788 3.76186 5.10789 3.76186L11.2038 9.8578L11.601 9.46061L11.2038 9.8578C11.3735 10.0275 11.3735 10.3026 11.2038 10.4723L11.2038 10.4723C11.0341 10.642 10.759 10.642 10.5893 10.4723L5.46874 5.35171C5.23442 5.1174 4.85452 5.1174 4.62021 5.35171C4.38589 5.58602 4.38589 5.96592 4.62021 6.20024L9.74078 11.3208C10.3791 11.9591 11.414 11.9591 12.0523 11.3208C12.0523 11.3208 12.0523 11.3208 12.0523 11.3208M12.0523 11.3208C12.6907 10.6825 12.6906 9.64757 12.0523 9.00927L5.95641 2.91333L5.9564 2.91332", fillRule: "evenodd", clipRule: "evenodd" } }] }, Me = Z(function(e, t) {
213
+ var sr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M5.9564 2.91332C4.91407 1.87102 3.22413 1.87101 2.18182 2.91333L2.18182 2.91333C1.13953 3.95567 1.13952 5.6456 2.18182 6.68791L8.27777 12.7838C9.72408 14.2302 12.069 14.2302 13.5154 12.7839L13.0911 12.3596L13.5154 12.7839C14.9617 11.3375 14.9617 8.99257 13.5154 7.54626L8.39476 2.42566C8.16044 2.19134 7.78054 2.19134 7.54623 2.42566C7.31191 2.65997 7.31191 3.03987 7.54623 3.27419L12.6668 8.39479L13.0911 7.97052L12.6668 8.39479C13.6445 9.37247 13.6445 10.9576 12.6668 11.9353L13.0399 12.3084L12.6668 11.9353C11.6891 12.913 10.104 12.913 9.1263 11.9353L3.03035 5.83938C2.45668 5.26571 2.45667 4.33556 3.03036 3.76184C3.60403 3.18818 4.53416 3.18817 5.10788 3.76185C5.10788 3.76186 5.10788 3.76186 5.10789 3.76186L11.2038 9.8578L11.601 9.46061L11.2038 9.8578C11.3735 10.0275 11.3735 10.3026 11.2038 10.4723L11.2038 10.4723C11.0341 10.642 10.759 10.642 10.5893 10.4723L5.46874 5.35171C5.23442 5.1174 4.85452 5.1174 4.62021 5.35171C4.38589 5.58602 4.38589 5.96592 4.62021 6.20024L9.74078 11.3208C10.3791 11.9591 11.414 11.9591 12.0523 11.3208C12.0523 11.3208 12.0523 11.3208 12.0523 11.3208M12.0523 11.3208C12.6907 10.6825 12.6906 9.64757 12.0523 9.00927L5.95641 2.91333L5.9564 2.91332", fillRule: "evenodd", clipRule: "evenodd" } }] }, Me = Z(function(e, t) {
214
214
  return K(Y, Object.assign({}, e, {
215
215
  id: "link-single",
216
216
  ref: t,
217
- icon: ar
217
+ icon: sr
218
218
  }));
219
219
  });
220
220
  Me.displayName = "LinkSingle";
221
- var cr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z" } }] }, At = Z(function(e, t) {
221
+ var ar = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 17", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.5935 3.47302C11.6354 2.51492 10.082 2.51492 9.12388 3.47302L7.83534 4.76157C7.60102 4.99588 7.22112 4.99588 6.98681 4.76157 6.75249 4.52725 6.75249 4.14735 6.98681 3.91304L8.27535 2.62449C9.70209 1.19776 12.0153 1.19776 13.442 2.62449 14.8688 4.05123 14.8688 6.36442 13.442 7.79116L12.1535 9.0797C11.9192 9.31402 11.5393 9.31402 11.3049 9.0797 11.0706 8.84539 11.0706 8.46549 11.3049 8.23117L12.5935 6.94263C13.5516 5.98452 13.5516 4.43113 12.5935 3.47302zM3.40637 12.6606C2.44827 11.7025 2.44827 10.1491 3.40637 9.19102L4.69492 7.90248C4.92923 7.66816 4.92923 7.28826 4.69492 7.05395 4.4606 6.81963 4.0807 6.81963 3.84639 7.05395L2.55784 8.34249C1.13111 9.76923 1.13111 12.0824 2.55784 13.5092 3.98458 14.9359 6.29777 14.9359 7.72451 13.5092L9.01305 12.2206C9.24737 11.9863 9.24737 11.6064 9.01305 11.3721 8.77874 11.1378 8.39884 11.1378 8.16452 11.3721L6.87598 12.6606C5.91787 13.6187 4.36448 13.6187 3.40637 12.6606zM3.5852 2.80332C3.35088 2.569 2.97098 2.569 2.73667 2.80332 2.50235 3.03763 2.50235 3.41753 2.73667 3.65185L12.4151 13.3302C12.6494 13.5646 13.0293 13.5646 13.2636 13.3302 13.4979 13.0959 13.4979 12.716 13.2636 12.4817L3.5852 2.80332z" } }] }, Dt = Z(function(e, t) {
222
222
  return K(Y, Object.assign({}, e, {
223
223
  id: "unlink-single",
224
224
  ref: t,
225
- icon: cr
225
+ icon: ar
226
226
  }));
227
227
  });
228
- At.displayName = "UnlinkSingle";
229
- var lr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, Dt = Z(function(e, t) {
228
+ Dt.displayName = "UnlinkSingle";
229
+ var cr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M12.6551 1.98906C11.7476 1.08113 10.2757 1.08149 9.3686 1.98987L4.82542 6.53955C4.75087 6.61421 4.69336 6.70411 4.65682 6.80309L3.2461 10.625C3.16506 10.8446 3.21909 11.0912 3.3845 11.2568C3.54991 11.4224 3.79651 11.4767 4.01616 11.3959L7.85031 9.98517C7.94979 9.94856 8.04014 9.89077 8.11508 9.81579L12.6552 5.27327C13.5618 4.36621 13.5618 2.89607 12.6551 1.98906ZM10.2177 2.83779C10.6562 2.39869 11.3677 2.39851 11.8064 2.8374C12.2447 3.27584 12.2447 3.9865 11.8065 4.42497L7.3392 8.89457L4.82213 9.82068L5.74706 7.31487L10.2177 2.83779Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.79238 13.2999C1.46101 13.2999 1.19238 13.5685 1.19238 13.8999C1.19238 14.2313 1.46101 14.4999 1.79238 14.4999H14.4924C14.8238 14.4999 15.0924 14.2313 15.0924 13.8999C15.0924 13.5685 14.8238 13.2999 14.4924 13.2999H1.79238Z" } }] }, At = Z(function(e, t) {
230
230
  return K(Y, Object.assign({}, e, {
231
231
  id: "write-single",
232
232
  ref: t,
233
- icon: lr
233
+ icon: cr
234
234
  }));
235
235
  });
236
- Dt.displayName = "WriteSingle";
237
- var dr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#35BD4B", d: "M3.36396 1.12549C2.61066 1.12549 2 1.73615 2 2.48945V13.5104C2 14.2637 2.61066 14.8744 3.36396 14.8744H12.457C13.2103 14.8744 13.821 14.2637 13.821 13.5104V5.0992L9.91954 1.12549H3.36396Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M9.91797 1.12549L13.8209 5.09842H10.5846C10.2164 5.09842 9.91797 4.79994 9.91797 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M7.71926 10.2949L6.28687 12.403C6.17306 12.5705 5.94501 12.614 5.77751 12.5002C5.61002 12.3864 5.56649 12.1584 5.6803 11.9909L7.27596 9.64252L5.85088 7.54519C5.73707 7.37769 5.78059 7.14964 5.94809 7.03583C6.11558 6.92202 6.34363 6.96555 6.45744 7.13304L7.71926 8.9901L8.98108 7.13304C9.09489 6.96555 9.32294 6.92202 9.49044 7.03583C9.65793 7.14964 9.70146 7.37769 9.58765 7.54519L8.16256 9.64252L9.75822 11.9909C9.87203 12.1584 9.82851 12.3864 9.66101 12.5002C9.49351 12.614 9.26547 12.5705 9.15166 12.403L7.71926 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Je = Z(function(e, t) {
236
+ At.displayName = "WriteSingle";
237
+ var lr = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#35BD4B", d: "M3.36396 1.12549C2.61066 1.12549 2 1.73615 2 2.48945V13.5104C2 14.2637 2.61066 14.8744 3.36396 14.8744H12.457C13.2103 14.8744 13.821 14.2637 13.821 13.5104V5.0992L9.91954 1.12549H3.36396Z" } }, { tag: "path", attrs: { fill: "#32A846", d: "M9.91797 1.12549L13.8209 5.09842H10.5846C10.2164 5.09842 9.91797 4.79994 9.91797 4.43175V1.12549Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M7.71926 10.2949L6.28687 12.403C6.17306 12.5705 5.94501 12.614 5.77751 12.5002C5.61002 12.3864 5.56649 12.1584 5.6803 11.9909L7.27596 9.64252L5.85088 7.54519C5.73707 7.37769 5.78059 7.14964 5.94809 7.03583C6.11558 6.92202 6.34363 6.96555 6.45744 7.13304L7.71926 8.9901L8.98108 7.13304C9.09489 6.96555 9.32294 6.92202 9.49044 7.03583C9.65793 7.14964 9.70146 7.37769 9.58765 7.54519L8.16256 9.64252L9.75822 11.9909C9.87203 12.1584 9.82851 12.3864 9.66101 12.5002C9.49351 12.614 9.26547 12.5705 9.15166 12.403L7.71926 10.2949Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Je = Z(function(e, t) {
238
238
  return K(Y, Object.assign({}, e, {
239
239
  id: "xlsx",
240
240
  ref: t,
241
- icon: dr
241
+ icon: lr
242
242
  }));
243
243
  });
244
244
  Je.displayName = "Xlsx";
245
- var ur = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, hr = (e, t, n, r) => {
246
- for (var i = r > 1 ? void 0 : r ? pr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
245
+ var dr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, pr = (e, t, n, r) => {
246
+ for (var i = r > 1 ? void 0 : r ? ur(t, n) : t, o = e.length - 1, s; o >= 0; o--)
247
247
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
248
- return r && i && ur(t, n, i), i;
248
+ return r && i && dr(t, n, i), i;
249
249
  }, oe = (e, t) => (n, r) => t(n, r, e);
250
- function mr(e, t) {
250
+ function hr(e, t) {
251
251
  const n = t.getMergeData(), r = t.getMaxColumns() - 1, i = t.getMaxRows() - 1;
252
252
  if (r < e.endColumn && (e.endColumn = r), i < e.endRow && (e.endRow = i), e.rangeType === lt.COLUMN || lt.ROW)
253
253
  return e;
254
254
  const o = [];
255
255
  return n.forEach((s) => {
256
- ee.intersects(e, s) && o.push(s);
257
- }), ee.realUnion(e, ...o);
256
+ te.intersects(e, s) && o.push(s);
257
+ }), te.realUnion(e, ...o);
258
258
  }
259
- let F = class {
259
+ let W = class {
260
260
  constructor(e, t, n, r, i) {
261
261
  this._univerInstanceService = e, this._commandService = t, this._definedNamesService = n, this._messageService = r, this._localeService = i;
262
262
  }
@@ -342,13 +342,12 @@ let F = class {
342
342
  async navigateToRange(e, t, n) {
343
343
  const r = await this.navigateToSheetById(e, t);
344
344
  if (r) {
345
- const i = mr(n, r);
345
+ const i = hr(n, r);
346
346
  await this._commandService.executeCommand(
347
347
  an.id,
348
348
  {
349
349
  unitId: e,
350
350
  subUnitId: t,
351
- pluginName: cn,
352
351
  selections: [{
353
352
  range: i
354
353
  }]
@@ -404,30 +403,30 @@ let F = class {
404
403
  window.open(e, "_blank", "noopener noreferrer");
405
404
  }
406
405
  };
407
- F = hr([
406
+ W = pr([
408
407
  oe(0, ue),
409
- oe(1, W),
408
+ oe(1, F),
410
409
  oe(2, jt),
411
- oe(3, wt),
410
+ oe(3, Ot),
412
411
  oe(4, h(pe))
413
- ], F);
412
+ ], W);
414
413
  function de(e) {
415
- return te.isLegalUrl(e);
414
+ return ne.isLegalUrl(e);
416
415
  }
417
- function gr(e) {
416
+ function mr(e) {
418
417
  return /^[a-zA-Z]+:\/\//.test(e);
419
418
  }
420
- function fr(e) {
419
+ function gr(e) {
421
420
  return /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(e);
422
421
  }
423
422
  function rt(e) {
424
423
  if (de(e)) {
425
- const t = gr(e) ? e : fr(e) ? `mailto://${e}` : `http://${e}`, n = new URL(t);
424
+ const t = mr(e) ? e : gr(e) ? `mailto://${e}` : `http://${e}`, n = new URL(t);
426
425
  return n.hostname === location.hostname && n.port === location.port && n.protocol === location.protocol && n.pathname === location.pathname && n.hash && !n.search ? n.hash : t;
427
426
  }
428
427
  return e;
429
428
  }
430
- function vr(e) {
429
+ function fr(e) {
431
430
  if (e === null)
432
431
  return "";
433
432
  if (e != null && e.p) {
@@ -439,25 +438,25 @@ function vr(e) {
439
438
  }
440
439
  return e == null ? void 0 : e.v;
441
440
  }
442
- const _r = "univer-cell-link-edit-buttons", Cr = {
443
- cellLinkEditButtons: _r
441
+ const vr = "univer-cell-link-edit-buttons", _r = {
442
+ cellLinkEditButtons: vr
444
443
  }, xe = () => {
445
- var ne;
446
- const [e, t] = ie(""), [n, r] = ie(""), [i, o] = ie(
444
+ var re;
445
+ const [e, t] = Q(""), [n, r] = Q(""), [i, o] = Q(
447
446
  "link"
448
447
  /* link */
449
- ), [s, c] = ie(""), a = k(pe), p = k(jt), m = k(ue), f = k(H), l = Ot(f.currentEditing$), g = k(T), S = k(F), v = k(W), [I, A] = ie(!1), y = Rt(!1);
450
- xn(() => {
451
- var u, C, L;
448
+ ), [s, c] = Q(""), a = k(pe), p = k(jt), g = k(ue), C = k(H), l = xn(C.currentEditing$), m = k(T), v = k(W), f = k(F), [I, D] = Q(!1), S = Rt(!1);
449
+ wt(() => {
450
+ var u, y, L;
452
451
  if ((l == null ? void 0 : l.row) !== void 0 && l.column !== void 0) {
453
- const _ = g.getHyperLinkByLocationSync(l.unitId, l.subUnitId, l.row, l.column);
452
+ const _ = m.getHyperLinkByLocationSync(l.unitId, l.subUnitId, l.row, l.column);
454
453
  if (_) {
455
- const ge = S.parseHyperLink(_.payload);
454
+ const ge = v.parseHyperLink(_.payload);
456
455
  if (t(_.id), r(_.display), ge.type === "outer") {
457
456
  o(
458
457
  "link"
459
458
  /* link */
460
- ), c(ge.url), ge.url === _.display && (y.current = !0);
459
+ ), c(ge.url), ge.url === _.display && (S.current = !0);
461
460
  return;
462
461
  } else {
463
462
  const j = ge.searchObj;
@@ -469,7 +468,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
469
468
  return;
470
469
  }
471
470
  if (j.range) {
472
- const Yt = j.gid && (L = (C = (u = m.getUnit(l.unitId)) == null ? void 0 : u.getSheetBySheetId(j.gid)) == null ? void 0 : C.getName()) != null ? L : "";
471
+ const Yt = j.gid && (L = (y = (u = g.getUnit(l.unitId)) == null ? void 0 : u.getSheetBySheetId(j.gid)) == null ? void 0 : y.getName()) != null ? L : "";
473
472
  if (o(
474
473
  "range"
475
474
  /* range */
@@ -477,7 +476,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
477
476
  c("");
478
477
  else {
479
478
  const ct = Ut(Yt, Ee(j.range).range);
480
- c(ct), ct === _.display && (y.current = !0);
479
+ c(ct), ct === _.display && (S.current = !0);
481
480
  }
482
481
  return;
483
482
  }
@@ -490,19 +489,19 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
490
489
  }
491
490
  }
492
491
  }
493
- const U = m.getUnit(l.unitId), R = U == null ? void 0 : U.getSheetBySheetId(l.subUnitId), Kt = R == null ? void 0 : R.getCellRaw(l.row, l.column), We = vr(Kt);
492
+ const U = g.getUnit(l.unitId), R = U == null ? void 0 : U.getSheetBySheetId(l.subUnitId), Kt = R == null ? void 0 : R.getCellRaw(l.row, l.column), Fe = fr(Kt);
494
493
  o(
495
494
  "link"
496
495
  /* link */
497
- ), c(""), r((We != null ? We : "").toString()), t("");
496
+ ), c(""), r((Fe != null ? Fe : "").toString()), t("");
498
497
  return;
499
498
  }
500
499
  o(
501
500
  "link"
502
501
  /* link */
503
502
  ), c(""), r(""), t("");
504
- }, [l, g, S, m]);
505
- const z = Tn(() => s, [i]), B = [
503
+ }, [l, m, v, g]);
504
+ const z = Mn(() => s, [i]), B = [
506
505
  {
507
506
  label: a.t("hyperLink.form.link"),
508
507
  value: "link"
@@ -523,31 +522,31 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
523
522
  value: "rangeid"
524
523
  /* definedName */
525
524
  }
526
- ], P = m.getCurrentUnitForType(w.UNIVER_SHEET);
525
+ ], P = g.getCurrentUnitForType(w.UNIVER_SHEET);
527
526
  if (!P)
528
527
  return;
529
- const G = P.getHiddenWorksheets(), V = P.getSheets().map((u) => ({ label: u.getName(), value: u.getSheetId() })).filter((u) => G.indexOf(u.value) === -1), q = Object.values((ne = p.getDefinedNameMap(P.getUnitId())) != null ? ne : {}).map((u) => ({
528
+ const G = P.getHiddenWorksheets(), V = P.getSheets().map((u) => ({ label: u.getName(), value: u.getSheetId() })).filter((u) => G.indexOf(u.value) === -1), q = Object.values((re = p.getDefinedNameMap(P.getUnitId())) != null ? re : {}).map((u) => ({
530
529
  label: u.name,
531
530
  value: u.id
532
- })), he = (u, C) => {
531
+ })), he = (u, y) => {
533
532
  if (u === "link")
534
- return rt(C);
533
+ return rt(y);
535
534
  if (u === "range") {
536
- const L = Ee(C), _ = P.getSheetBySheetName(L.sheetName);
535
+ const L = Ee(y), _ = P.getSheetBySheetName(L.sheetName);
537
536
  if (_)
538
- return `#gid=${_.getSheetId()}&range=${Fn(L.range)}`;
537
+ return `#gid=${_.getSheetId()}&range=${An(L.range)}`;
539
538
  }
540
- return `#${u}=${C}`;
541
- }, Fe = Un((u) => {
539
+ return `#${u}=${y}`;
540
+ }, We = Tn((u) => {
542
541
  var _;
543
- const C = u[0];
544
- if (!C || !ze(C.range))
542
+ const y = u[0];
543
+ if (!y || !ze(y.range))
545
544
  return;
546
- C.sheetName || (C.sheetName = ((_ = P.getActiveSheet()) == null ? void 0 : _.getName()) || "");
547
- const L = Dn(C);
548
- c(L), L && (y.current || !n) && (r(L), y.current = !0);
545
+ y.sheetName || (y.sheetName = ((_ = P.getActiveSheet()) == null ? void 0 : _.getName()) || "");
546
+ const L = Dn(y);
547
+ c(L), L && (S.current || !n) && (r(L), S.current = !0);
549
548
  }), me = async () => {
550
- if (l && (e ? await v.executeCommand(St.id, {
549
+ if (l && (e ? await f.executeCommand(St.id, {
551
550
  unitId: l.unitId,
552
551
  subUnitId: l.subUnitId,
553
552
  id: e,
@@ -555,23 +554,23 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
555
554
  display: n,
556
555
  payload: he(i, s)
557
556
  }
558
- }) : await v.executeCommand(Lt.id, {
557
+ }) : await f.executeCommand(Lt.id, {
559
558
  unitId: l.unitId,
560
559
  subUnitId: l.subUnitId,
561
560
  link: {
562
- id: te.generateRandomId(),
561
+ id: ne.generateRandomId(),
563
562
  row: l.row,
564
563
  column: l.column,
565
564
  payload: he(i, s),
566
565
  display: n
567
566
  }
568
567
  })), l) {
569
- await v.executeCommand(Oe.id, {
568
+ await f.executeCommand(Oe.id, {
570
569
  unitId: l.unitId,
571
570
  subUnitId: l.subUnitId
572
571
  });
573
572
  const u = 1;
574
- await v.executeCommand(kt.id, {
573
+ await f.executeCommand(kt.id, {
575
574
  range: {
576
575
  startRow: Math.max(l.row - u, 0),
577
576
  endRow: l.row + u,
@@ -580,7 +579,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
580
579
  }
581
580
  });
582
581
  }
583
- v.executeCommand(Te.id);
582
+ f.executeCommand(Te.id);
584
583
  };
585
584
  return /* @__PURE__ */ d.jsxs("div", { children: [
586
585
  /* @__PURE__ */ d.jsx(
@@ -593,7 +592,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
593
592
  {
594
593
  value: n,
595
594
  onChange: (u) => {
596
- r(u), y.current = !1;
595
+ r(u), S.current = !1;
597
596
  },
598
597
  placeholder: a.t("hyperLink.form.labelPlaceholder")
599
598
  }
@@ -619,7 +618,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
619
618
  {
620
619
  value: s,
621
620
  onChange: (u) => {
622
- c(u), u && (y.current || !n || n === s) && (r(u), y.current = !0);
621
+ c(u), u && (S.current || !n || n === s) && (r(u), S.current = !0);
623
622
  },
624
623
  placeholder: a.t("hyperLink.form.linkPlaceholder")
625
624
  }
@@ -627,13 +626,13 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
627
626
  }
628
627
  ),
629
628
  i === "range" && /* @__PURE__ */ d.jsx(X, { error: I && !s ? a.t("hyperLink.form.inputError") : "", children: /* @__PURE__ */ d.jsx(
630
- jn,
629
+ Un,
631
630
  {
632
631
  openForSheetUnitId: P.getUnitId(),
633
632
  id: Qt("hyper-link-edit"),
634
633
  isSingleChoice: !0,
635
634
  value: z,
636
- onChange: Fe
635
+ onChange: We
637
636
  }
638
637
  ) }),
639
638
  i === "gid" && /* @__PURE__ */ d.jsx(X, { error: I && !s ? a.t("hyperLink.form.selectError") : "", children: /* @__PURE__ */ d.jsx(
@@ -644,8 +643,8 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
644
643
  onChange: (u) => {
645
644
  var _, U;
646
645
  c(u);
647
- const C = (_ = V.find((R) => R.value === u)) == null ? void 0 : _.label, L = (U = V.find((R) => R.value === s)) == null ? void 0 : U.label;
648
- C && (y.current || !n || n === L) && (r(C), y.current = !0);
646
+ const y = (_ = V.find((R) => R.value === u)) == null ? void 0 : _.label, L = (U = V.find((R) => R.value === s)) == null ? void 0 : U.label;
647
+ y && (S.current || !n || n === L) && (r(y), S.current = !0);
649
648
  }
650
649
  }
651
650
  ) }),
@@ -657,20 +656,20 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
657
656
  onChange: (u) => {
658
657
  var _, U;
659
658
  c(u);
660
- const C = (_ = q.find((R) => R.value === u)) == null ? void 0 : _.label, L = (U = q.find((R) => R.value === s)) == null ? void 0 : U.label;
661
- C && (y.current || !n || n === L) && (r(C), y.current = !0);
659
+ const y = (_ = q.find((R) => R.value === u)) == null ? void 0 : _.label, L = (U = q.find((R) => R.value === s)) == null ? void 0 : U.label;
660
+ y && (S.current || !n || n === L) && (r(y), S.current = !0);
662
661
  }
663
662
  }
664
663
  ) }),
665
- /* @__PURE__ */ d.jsxs("div", { className: Cr.cellLinkEditButtons, children: [
664
+ /* @__PURE__ */ d.jsxs("div", { className: _r.cellLinkEditButtons, children: [
666
665
  /* @__PURE__ */ d.jsx(
667
666
  mt,
668
667
  {
669
668
  onClick: () => {
670
- l && v.executeCommand(Oe.id, {
669
+ l && f.executeCommand(Oe.id, {
671
670
  unitId: l.unitId,
672
671
  subUnitId: l.subUnitId
673
- }), v.executeCommand(Te.id);
672
+ }), f.executeCommand(Te.id);
674
673
  },
675
674
  children: a.t("hyperLink.form.cancel")
676
675
  }
@@ -682,7 +681,7 @@ const _r = "univer-cell-link-edit-buttons", Cr = {
682
681
  style: { marginLeft: 8 },
683
682
  onClick: async () => {
684
683
  if (!n || !s || i === "link" && !de(s)) {
685
- A(!0);
684
+ D(!0);
686
685
  return;
687
686
  }
688
687
  me();
@@ -724,8 +723,8 @@ const it = {
724
723
  const t = e.get(ue), n = Ct(t);
725
724
  if (!n)
726
725
  return !1;
727
- const r = e.get(W), o = e.get(yt).getFirst();
728
- if (!(o != null && o.primary))
726
+ const r = e.get(F), o = e.get(yt).getCurrentLastSelection();
727
+ if (!o)
729
728
  return !1;
730
729
  const s = o.primary.startRow, c = o.primary.startColumn;
731
730
  return r.executeCommand(it.id, {
@@ -739,19 +738,19 @@ const it = {
739
738
  type: He.OPERATION,
740
739
  id: "sheet.operation.insert-hyper-link-toolbar",
741
740
  handler(e) {
742
- const t = e.get(W);
741
+ const t = e.get(F);
743
742
  return e.get(H).currentEditing ? t.executeCommand(Te.id) : t.executeCommand(ot.id);
744
743
  }
745
- }, yr = "univer-cell-link", Sr = "univer-cell-link-type", Lr = "univer-cell-link-content", Ir = "univer-cell-link-content-error", kr = "univer-cell-link-url", Pr = "univer-cell-link-operations", br = "univer-cell-link-operation", Rr = "univer-cell-link-operation-error", E = {
746
- cellLink: yr,
747
- cellLinkType: Sr,
748
- cellLinkContent: Lr,
749
- cellLinkContentError: Ir,
750
- cellLinkUrl: kr,
751
- cellLinkOperations: Pr,
752
- cellLinkOperation: br,
753
- cellLinkOperationError: Rr
754
- }, wr = {
744
+ }, Cr = "univer-cell-link", yr = "univer-cell-link-type", Sr = "univer-cell-link-content", Lr = "univer-cell-link-content-error", Ir = "univer-cell-link-url", kr = "univer-cell-link-operations", Pr = "univer-cell-link-operation", br = "univer-cell-link-operation-error", E = {
745
+ cellLink: Cr,
746
+ cellLinkType: yr,
747
+ cellLinkContent: Sr,
748
+ cellLinkContentError: Lr,
749
+ cellLinkUrl: Ir,
750
+ cellLinkOperations: kr,
751
+ cellLinkOperation: Pr,
752
+ cellLinkOperationError: br
753
+ }, Rr = {
755
754
  outer: /* @__PURE__ */ d.jsx(Me, {}),
756
755
  link: /* @__PURE__ */ d.jsx(Me, {}),
757
756
  sheet: /* @__PURE__ */ d.jsx(Je, {}),
@@ -760,30 +759,38 @@ const it = {
760
759
  "range-error": /* @__PURE__ */ d.jsx(Le, {}),
761
760
  "sheet-error": /* @__PURE__ */ d.jsx(Je, {})
762
761
  }, Ue = () => {
763
- const e = k(H), t = k(T), n = k(W), r = k(wt), i = k(pe), o = Ot(e.currentPopup$, e.currentPopup), s = k(F);
764
- if (!o)
762
+ const e = k(H), t = k(T), n = k(F), r = k(Ot), i = k(pe), [o, s] = Q(null), c = k(W);
763
+ if (wt(() => {
764
+ s(e.currentPopup);
765
+ const v = e.currentPopup$.subscribe((f) => {
766
+ s(f);
767
+ });
768
+ return () => {
769
+ v.unsubscribe();
770
+ };
771
+ }, [e.currentPopup, e.currentPopup$]), !o)
765
772
  return null;
766
- const { unitId: c, subUnitId: a, id: p } = o, m = t.getHyperLink(c, a, p);
767
- if (!m)
773
+ const { unitId: a, subUnitId: p, id: g } = o, C = t.getHyperLink(a, p, g);
774
+ if (!C)
768
775
  return null;
769
- const f = s.parseHyperLink(m.payload), l = f.type.indexOf("error") > -1;
776
+ const l = c.parseHyperLink(C.payload), m = l.type.indexOf("error") > -1;
770
777
  return /* @__PURE__ */ d.jsxs("div", { className: E.cellLink, onClick: () => e.hideCurrentPopup(), children: [
771
- /* @__PURE__ */ d.jsxs("div", { className: pt(E.cellLinkContent, { [E.cellLinkContentError]: l }), onClick: f.handler, children: [
772
- /* @__PURE__ */ d.jsx("div", { className: E.cellLinkType, children: wr[f.type] }),
773
- /* @__PURE__ */ d.jsx(_e, { showIfEllipsis: !0, title: f.name, children: /* @__PURE__ */ d.jsx("span", { className: E.cellLinkUrl, children: f.name }) })
778
+ /* @__PURE__ */ d.jsxs("div", { className: pt(E.cellLinkContent, { [E.cellLinkContentError]: m }), onClick: l.handler, children: [
779
+ /* @__PURE__ */ d.jsx("div", { className: E.cellLinkType, children: Rr[l.type] }),
780
+ /* @__PURE__ */ d.jsx(_e, { showIfEllipsis: !0, title: l.name, children: /* @__PURE__ */ d.jsx("span", { className: E.cellLinkUrl, children: l.name }) })
774
781
  ] }),
775
782
  /* @__PURE__ */ d.jsxs("div", { className: E.cellLinkOperations, children: [
776
783
  o.copyPermission && /* @__PURE__ */ d.jsx(
777
784
  "div",
778
785
  {
779
- className: pt(E.cellLinkOperation, { [E.cellLinkOperationError]: l }),
786
+ className: pt(E.cellLinkOperation, { [E.cellLinkOperationError]: m }),
780
787
  onClick: () => {
781
- if (!l) {
782
- if (f.type !== "outer") {
783
- const g = new URL(window.location.href);
784
- g.hash = f.url.slice(1), navigator.clipboard.writeText(g.href);
788
+ if (!m) {
789
+ if (l.type !== "outer") {
790
+ const v = new URL(window.location.href);
791
+ v.hash = l.url.slice(1), navigator.clipboard.writeText(v.href);
785
792
  } else
786
- navigator.clipboard.writeText(f.url);
793
+ navigator.clipboard.writeText(l.url);
787
794
  r.show({
788
795
  content: i.t("hyperLink.message.coped"),
789
796
  type: ce.Info
@@ -800,13 +807,13 @@ const it = {
800
807
  className: E.cellLinkOperation,
801
808
  onClick: () => {
802
809
  n.executeCommand(it.id, {
803
- unitId: c,
804
- subUnitId: a,
805
- row: m.row,
806
- column: m.column
810
+ unitId: a,
811
+ subUnitId: p,
812
+ row: C.row,
813
+ column: C.column
807
814
  });
808
815
  },
809
- children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.edit"), children: /* @__PURE__ */ d.jsx(Dt, {}) })
816
+ children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.edit"), children: /* @__PURE__ */ d.jsx(At, {}) })
810
817
  }
811
818
  ),
812
819
  /* @__PURE__ */ d.jsx(
@@ -814,13 +821,13 @@ const it = {
814
821
  {
815
822
  className: E.cellLinkOperation,
816
823
  onClick: () => {
817
- n.executeCommand(_n.id, {
818
- unitId: c,
819
- subUnitId: a,
820
- id: m.id
824
+ n.executeCommand(vn.id, {
825
+ unitId: a,
826
+ subUnitId: p,
827
+ id: C.id
821
828
  });
822
829
  },
823
- children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ d.jsx(At, {}) })
830
+ children: /* @__PURE__ */ d.jsx(_e, { placement: "bottom", title: i.t("hyperLink.popup.cancel"), children: /* @__PURE__ */ d.jsx(Dt, {}) })
824
831
  }
825
832
  )
826
833
  ] })
@@ -828,20 +835,20 @@ const it = {
828
835
  ] });
829
836
  };
830
837
  Ue.componentKey = "univer.sheet.cell-link-popup";
831
- var Or = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, Mr = (e, t, n, r) => {
832
- for (var i = r > 1 ? void 0 : r ? Er(t, n) : t, o = e.length - 1, s; o >= 0; o--)
838
+ var wr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, Er = (e, t, n, r) => {
839
+ for (var i = r > 1 ? void 0 : r ? Or(t, n) : t, o = e.length - 1, s; o >= 0; o--)
833
840
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
834
- return r && i && Or(t, n, i), i;
841
+ return r && i && wr(t, n, i), i;
835
842
  }, gt = (e, t) => (n, r) => t(n, r, e);
836
- const xr = (e, t) => e.unitId === t.unitId && e.subUnitId === t.subUnitId && e.row === t.row && e.col === t.col;
843
+ const Mr = (e, t) => e.unitId === t.unitId && e.subUnitId === t.subUnitId && e.row === t.row && e.col === t.col;
837
844
  let H = class extends O {
838
845
  constructor(t, n) {
839
846
  super();
840
- D(this, "_currentPopup", null);
841
- D(this, "_currentPopup$", new wn());
842
- D(this, "currentPopup$", this._currentPopup$.asObservable());
843
- D(this, "_currentEditing$", new On(null));
844
- D(this, "currentEditing$", this._currentEditing$.asObservable());
847
+ A(this, "_currentPopup", null);
848
+ A(this, "_currentPopup$", new Rn());
849
+ A(this, "currentPopup$", this._currentPopup$.asObservable());
850
+ A(this, "_currentEditing$", new wn(null));
851
+ A(this, "currentEditing$", this._currentEditing$.asObservable());
845
852
  this._hyperLinkModel = t, this._sheetCanvasPopManagerService = n, this.disposeWithMe(() => {
846
853
  this.hideCurrentPopup(), this.endEditing(), this._currentEditing$.complete(), this._currentPopup$.complete();
847
854
  });
@@ -853,7 +860,7 @@ let H = class extends O {
853
860
  return this._currentEditing$.getValue();
854
861
  }
855
862
  showPopup(t) {
856
- if (this._currentPopup && xr(t, this._currentPopup))
863
+ if (this._currentPopup && Mr(t, this._currentPopup))
857
864
  return;
858
865
  this.hideCurrentPopup();
859
866
  const { unitId: n, subUnitId: r, row: i, col: o } = t, s = this._hyperLinkModel.getHyperLinkByLocation(n, r, i, o);
@@ -889,14 +896,14 @@ let H = class extends O {
889
896
  this._currentEditing$.next(null);
890
897
  }
891
898
  };
892
- H = Mr([
899
+ H = Er([
893
900
  gt(0, h(T)),
894
- gt(1, h(yn))
901
+ gt(1, h(Cn))
895
902
  ], H);
896
- var Tr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, jr = (e, t, n, r) => {
897
- for (var i = r > 1 ? void 0 : r ? Ur(t, n) : t, o = e.length - 1, s; o >= 0; o--)
903
+ var xr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, Ur = (e, t, n, r) => {
904
+ for (var i = r > 1 ? void 0 : r ? Tr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
898
905
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
899
- return r && i && Tr(t, n, i), i;
906
+ return r && i && xr(t, n, i), i;
900
907
  }, se = (e, t) => (n, r) => t(n, r, e);
901
908
  let Ie = class extends O {
902
909
  constructor(e, t, n, r, i) {
@@ -984,20 +991,20 @@ let Ie = class extends O {
984
991
  _initSetRangeValuesCommandInterceptor() {
985
992
  this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
986
993
  getMutations: (e) => {
987
- if (e.id === ln.id) {
994
+ if (e.id === cn.id) {
988
995
  const t = e.params, { unitId: n, subUnitId: r } = t, i = [], o = [];
989
996
  return t.cellValue && new _t(t.cellValue).forValue((s, c, a) => {
990
- var l, g, S;
991
- const p = (S = a == null ? void 0 : a.v) != null ? S : (g = (l = a == null ? void 0 : a.p) == null ? void 0 : l.body) == null ? void 0 : g.dataStream.slice(0, -2), m = (p != null ? p : "").toString(), f = this._hyperLinkModel.getHyperLinkByLocation(n, r, s, c);
992
- if (!f) {
993
- if (de(m)) {
994
- const v = te.generateRandomId();
997
+ var l, m, v;
998
+ const p = (v = a == null ? void 0 : a.v) != null ? v : (m = (l = a == null ? void 0 : a.p) == null ? void 0 : l.body) == null ? void 0 : m.dataStream.slice(0, -2), g = (p != null ? p : "").toString(), C = this._hyperLinkModel.getHyperLinkByLocation(n, r, s, c);
999
+ if (!C) {
1000
+ if (de(g)) {
1001
+ const f = ne.generateRandomId();
995
1002
  o.push({
996
1003
  id: M.id,
997
1004
  params: {
998
1005
  unitId: n,
999
1006
  subUnitId: r,
1000
- id: v
1007
+ id: f
1001
1008
  }
1002
1009
  }), i.push({
1003
1010
  id: x.id,
@@ -1005,11 +1012,11 @@ let Ie = class extends O {
1005
1012
  unitId: n,
1006
1013
  subUnitId: r,
1007
1014
  link: {
1008
- id: v,
1015
+ id: f,
1009
1016
  row: s,
1010
1017
  column: c,
1011
- display: m,
1012
- payload: rt(m)
1018
+ display: g,
1019
+ payload: rt(g)
1013
1020
  }
1014
1021
  }
1015
1022
  });
@@ -1021,14 +1028,14 @@ let Ie = class extends O {
1021
1028
  params: {
1022
1029
  unitId: n,
1023
1030
  subUnitId: r,
1024
- id: f.id
1031
+ id: C.id
1025
1032
  }
1026
1033
  }), o.push({
1027
1034
  id: x.id,
1028
1035
  params: {
1029
1036
  unitId: n,
1030
1037
  subUnitId: r,
1031
- link: f
1038
+ link: C
1032
1039
  }
1033
1040
  }));
1034
1041
  }), {
@@ -1046,8 +1053,8 @@ let Ie = class extends O {
1046
1053
  _initClearSelectionCommandInterceptor() {
1047
1054
  this.disposeWithMe(this._sheetInterceptorService.interceptCommand({
1048
1055
  getMutations: (e) => {
1049
- if (e.id === dn.id || e.id === un.id || e.id === pn.id) {
1050
- const t = [], n = [], r = this._selectionManagerService.getFirst(), i = Ct(this._univerInstanceService);
1056
+ if (e.id === ln.id || e.id === dn.id || e.id === un.id) {
1057
+ const t = [], n = [], r = this._selectionManagerService.getCurrentLastSelection(), i = Ct(this._univerInstanceService);
1051
1058
  if (r && i) {
1052
1059
  const { unitId: o, subUnitId: s } = i;
1053
1060
  Qe.foreach(r.range, (c, a) => {
@@ -1086,18 +1093,18 @@ let Ie = class extends O {
1086
1093
  return (o = (i = this._univerInstanceService.getUnit(e, w.UNIVER_SHEET)) == null ? void 0 : i.getSheetBySheetId(t)) == null ? void 0 : o.getCell(n, r);
1087
1094
  }
1088
1095
  };
1089
- Ie = jr([
1096
+ Ie = Ur([
1090
1097
  N($.Starting, Ie),
1091
1098
  se(0, h(et)),
1092
- se(1, h(Ae)),
1099
+ se(1, h(De)),
1093
1100
  se(2, h(T)),
1094
1101
  se(3, h(yt)),
1095
1102
  se(4, ue)
1096
1103
  ], Ie);
1097
- var Hr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, $r = (e, t, n, r) => {
1098
- for (var i = r > 1 ? void 0 : r ? Nr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1104
+ var jr = Object.defineProperty, Hr = Object.getOwnPropertyDescriptor, Nr = (e, t, n, r) => {
1105
+ for (var i = r > 1 ? void 0 : r ? Hr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1099
1106
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1100
- return r && i && Hr(t, n, i), i;
1107
+ return r && i && jr(t, n, i), i;
1101
1108
  }, ae = (e, t) => (n, r) => t(n, r, e);
1102
1109
  let ke = class extends O {
1103
1110
  constructor(e, t, n, r, i) {
@@ -1105,20 +1112,20 @@ let ke = class extends O {
1105
1112
  }
1106
1113
  _initHoverListener() {
1107
1114
  this.disposeWithMe(
1108
- this._hoverManagerService.currentCell$.pipe(En(100)).subscribe((e) => {
1109
- var f, l;
1115
+ this._hoverManagerService.currentCell$.pipe(On(100)).subscribe((e) => {
1116
+ var C, l;
1110
1117
  if (!e) {
1111
1118
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1112
1119
  return;
1113
1120
  }
1114
- const t = (l = (f = this._renderManagerService.getRenderById(e.location.unitId)) == null ? void 0 : f.with(It).getUnitSkeleton(e.location.unitId, e.location.subUnitId)) == null ? void 0 : l.skeleton, n = e.location.col, r = e.location.row;
1121
+ const t = (l = (C = this._renderManagerService.getRenderById(e.location.unitId)) == null ? void 0 : C.with(It).getWorksheetSkeleton(e.location.subUnitId)) == null ? void 0 : l.skeleton, n = e.location.col, r = e.location.row;
1115
1122
  let i = r, o = n;
1116
- if (t && t.overflowCache.forValue((g, S, v) => {
1117
- ee.contains(v, { startColumn: n, endColumn: n, startRow: r, endRow: r }) && (i = g, o = S);
1123
+ if (t && t.overflowCache.forValue((m, v, f) => {
1124
+ te.contains(f, { startColumn: n, endColumn: n, startRow: r, endRow: r }) && (i = m, o = v);
1118
1125
  }), !this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1119
- workbookTypes: [hn],
1120
- worksheetTypes: [mn],
1121
- rangeTypes: [gn]
1126
+ workbookTypes: [pn],
1127
+ worksheetTypes: [hn],
1128
+ rangeTypes: [mn]
1122
1129
  }, [{ startRow: r, startColumn: n, endRow: r, endColumn: n }])) {
1123
1130
  this._sheetsHyperLinkPopupService.hideCurrentPopup();
1124
1131
  return;
@@ -1127,27 +1134,27 @@ let ke = class extends O {
1127
1134
  workbookTypes: [Ne],
1128
1135
  worksheetTypes: [$e, Be],
1129
1136
  rangeTypes: [Ve]
1130
- }, [{ startRow: r, startColumn: n, endRow: r, endColumn: n }]), a = e.location.unitId, p = e.location.subUnitId, m = this._permissionService.composePermission([new fn(a).id, new vn(a, p).id]).every((g) => g.value);
1137
+ }, [{ startRow: r, startColumn: n, endRow: r, endColumn: n }]), a = e.location.unitId, p = e.location.subUnitId, g = this._permissionService.composePermission([new gn(a).id, new fn(a, p).id]).every((m) => m.value);
1131
1138
  this._sheetsHyperLinkPopupService.showPopup({
1132
1139
  ...e.location,
1133
1140
  row: i,
1134
1141
  col: o,
1135
1142
  editPermission: c,
1136
- copyPermission: m
1143
+ copyPermission: g
1137
1144
  });
1138
1145
  })
1139
1146
  );
1140
1147
  }
1141
1148
  };
1142
- ke = $r([
1149
+ ke = Nr([
1143
1150
  N($.Rendered, ke),
1144
- ae(0, h(Sn)),
1151
+ ae(0, h(yn)),
1145
1152
  ae(1, h(H)),
1146
1153
  ae(2, h(nt)),
1147
1154
  ae(3, h(tn)),
1148
1155
  ae(4, h(Pt))
1149
1156
  ], ke);
1150
- const Br = (e) => ({
1157
+ const $r = (e) => ({
1151
1158
  id: ot.id,
1152
1159
  type: Mt.BUTTON,
1153
1160
  positions: [xt.CONTEXT_MENU],
@@ -1155,24 +1162,24 @@ const Br = (e) => ({
1155
1162
  hidden$: Tt(e, w.UNIVER_SHEET),
1156
1163
  icon: "LinkSingle",
1157
1164
  disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt, Be], rangeTypes: [Ve] })
1158
- }), Vr = (e) => ({
1165
+ }), Br = (e) => ({
1159
1166
  tooltip: "hyperLink.form.addTitle",
1160
1167
  positions: xt.TOOLBAR_START,
1161
- group: $n.TOOLBAR_OTHERS,
1168
+ group: Nn.TOOLBAR_OTHERS,
1162
1169
  id: st.id,
1163
1170
  type: Mt.BUTTON,
1164
1171
  icon: "LinkSingle",
1165
1172
  hidden$: Tt(e, w.UNIVER_SHEET),
1166
1173
  disabled$: bt(e, { workbookTypes: [Ne], worksheetTypes: [$e, tt, Be], rangeTypes: [Ve] })
1167
- }), Ft = {
1174
+ }), Wt = {
1168
1175
  id: st.id,
1169
- binding: Hn.K | Nn.CTRL_COMMAND,
1170
- preconditions: Ln
1176
+ binding: jn.K | Hn.CTRL_COMMAND,
1177
+ preconditions: Sn
1171
1178
  };
1172
- var Ar = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, Fr = (e, t, n, r) => {
1179
+ var Vr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, Ar = (e, t, n, r) => {
1173
1180
  for (var i = r > 1 ? void 0 : r ? Dr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1174
1181
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1175
- return r && i && Ar(t, n, i), i;
1182
+ return r && i && Vr(t, n, i), i;
1176
1183
  }, J = (e, t) => (n, r) => t(n, r, e);
1177
1184
  let le = class extends O {
1178
1185
  constructor(e, t, n, r, i, o, s) {
@@ -1199,24 +1206,24 @@ let le = class extends O {
1199
1206
  }
1200
1207
  _initMenus() {
1201
1208
  var e, t, n, r;
1202
- this._menuService.addMenuItem(Br(this._injector), (t = (e = this._config) == null ? void 0 : e.menu) != null ? t : {}), this._menuService.addMenuItem(Vr(this._injector), (r = (n = this._config) == null ? void 0 : n.menu) != null ? r : {});
1209
+ this._menuService.addMenuItem($r(this._injector), (t = (e = this._config) == null ? void 0 : e.menu) != null ? t : {}), this._menuService.addMenuItem(Br(this._injector), (r = (n = this._config) == null ? void 0 : n.menu) != null ? r : {});
1203
1210
  }
1204
1211
  _initShortCut() {
1205
- this._shortcutService.registerShortcut(Ft);
1212
+ this._shortcutService.registerShortcut(Wt);
1206
1213
  }
1207
1214
  };
1208
- le = Fr([
1215
+ le = Ar([
1209
1216
  N($.Ready, le),
1210
- J(1, h(Bn)),
1211
- J(2, W),
1217
+ J(1, h($n)),
1218
+ J(2, F),
1212
1219
  J(3, h(pe)),
1213
- J(4, An),
1214
- J(5, h(Ae)),
1215
- J(6, h(Vn))
1220
+ J(4, Vn),
1221
+ J(5, h(De)),
1222
+ J(6, h(Bn))
1216
1223
  ], le);
1217
1224
  const at = "SHEET_HYPER_LINK_UI_PLUGIN";
1218
- var Wr = Object.defineProperty, Zr = Object.getOwnPropertyDescriptor, Kr = (e, t, n, r) => {
1219
- for (var i = r > 1 ? void 0 : r ? Zr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1225
+ var Wr = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, Zr = (e, t, n, r) => {
1226
+ for (var i = r > 1 ? void 0 : r ? Fr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1220
1227
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1221
1228
  return r && i && Wr(t, n, i), i;
1222
1229
  }, ft = (e, t) => (n, r) => t(n, r, e);
@@ -1227,24 +1234,24 @@ let Pe = class extends O {
1227
1234
  // eslint-disable-next-line max-lines-per-function
1228
1235
  _initAutoFill() {
1229
1236
  const e = () => ({ redos: [], undos: [] }), t = (r, i) => {
1230
- const { source: o, target: s, unitId: c, subUnitId: a } = r, p = qe([o, s]), [m, f] = p.ranges, { mapFunc: l } = p, g = {
1231
- row: m.startRow,
1232
- col: m.startColumn
1233
- }, S = kn(m, f), v = [], I = [];
1234
- return S.forEach((A) => {
1235
- const y = A.repeatStartCell, z = A.relativeRange, B = {
1236
- startRow: g.row,
1237
- startColumn: g.col,
1238
- endColumn: g.col,
1239
- endRow: g.row
1237
+ const { source: o, target: s, unitId: c, subUnitId: a } = r, p = qe([o, s]), [g, C] = p.ranges, { mapFunc: l } = p, m = {
1238
+ row: g.startRow,
1239
+ col: g.startColumn
1240
+ }, v = In(g, C), f = [], I = [];
1241
+ return v.forEach((D) => {
1242
+ const S = D.repeatStartCell, z = D.relativeRange, B = {
1243
+ startRow: m.row,
1244
+ startColumn: m.col,
1245
+ endColumn: m.col,
1246
+ endRow: m.row
1240
1247
  }, P = {
1241
- startRow: y.row,
1242
- startColumn: y.col,
1243
- endColumn: y.col,
1244
- endRow: y.row
1248
+ startRow: S.row,
1249
+ startColumn: S.col,
1250
+ endColumn: S.col,
1251
+ endRow: S.row
1245
1252
  };
1246
1253
  Qe.foreach(z, (G, V) => {
1247
- const q = ee.getPositionRange(
1254
+ const q = te.getPositionRange(
1248
1255
  {
1249
1256
  startRow: G,
1250
1257
  startColumn: V,
@@ -1252,9 +1259,9 @@ let Pe = class extends O {
1252
1259
  endRow: G
1253
1260
  },
1254
1261
  B
1255
- ), { row: he, col: Fe } = l(q.startRow, q.startColumn), me = this._hyperLinkModel.getHyperLinkByLocation(c, a, he, Fe);
1262
+ ), { row: he, col: We } = l(q.startRow, q.startColumn), me = this._hyperLinkModel.getHyperLinkByLocation(c, a, he, We);
1256
1263
  if (me) {
1257
- const ne = ee.getPositionRange(
1264
+ const re = te.getPositionRange(
1258
1265
  {
1259
1266
  startRow: G,
1260
1267
  startColumn: V,
@@ -1262,15 +1269,15 @@ let Pe = class extends O {
1262
1269
  endRow: G
1263
1270
  },
1264
1271
  P
1265
- ), { row: u, col: C } = l(ne.startRow, ne.startColumn), L = te.generateRandomId(), _ = this._hyperLinkModel.getHyperLinkByLocation(c, a, u, C);
1266
- _ && v.push({
1272
+ ), { row: u, col: y } = l(re.startRow, re.startColumn), L = ne.generateRandomId(), _ = this._hyperLinkModel.getHyperLinkByLocation(c, a, u, y);
1273
+ _ && f.push({
1267
1274
  id: M.id,
1268
1275
  params: {
1269
1276
  unitId: c,
1270
1277
  subUnitId: a,
1271
1278
  id: _.id
1272
1279
  }
1273
- }), (re.COPY === i || re.SERIES === i) && (v.push({
1280
+ }), (ie.COPY === i || ie.SERIES === i) && (f.push({
1274
1281
  id: x.id,
1275
1282
  params: {
1276
1283
  unitId: c,
@@ -1279,7 +1286,7 @@ let Pe = class extends O {
1279
1286
  ...me,
1280
1287
  id: L,
1281
1288
  row: u,
1282
- column: C
1289
+ column: y
1283
1290
  }
1284
1291
  }
1285
1292
  }), I.push({
@@ -1301,29 +1308,29 @@ let Pe = class extends O {
1301
1308
  });
1302
1309
  }), {
1303
1310
  undos: I,
1304
- redos: v
1311
+ redos: f
1305
1312
  };
1306
1313
  }, n = {
1307
1314
  id: at,
1308
- onFillData: (r, i, o) => o === re.COPY || o === re.ONLY_FORMAT || o === re.SERIES ? t(r, o) : e()
1315
+ onFillData: (r, i, o) => o === ie.COPY || o === ie.ONLY_FORMAT || o === ie.SERIES ? t(r, o) : e()
1309
1316
  };
1310
1317
  this.disposeWithMe(this._autoFillService.addHook(n));
1311
1318
  }
1312
1319
  };
1313
- Pe = Kr([
1320
+ Pe = Zr([
1314
1321
  N($.Ready, Pe),
1315
- ft(0, In),
1322
+ ft(0, Ln),
1316
1323
  ft(1, h(T))
1317
1324
  ], Pe);
1318
- var Yr = Object.defineProperty, zr = Object.getOwnPropertyDescriptor, Gr = (e, t, n, r) => {
1319
- for (var i = r > 1 ? void 0 : r ? zr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1325
+ var Kr = Object.defineProperty, Yr = Object.getOwnPropertyDescriptor, zr = (e, t, n, r) => {
1326
+ for (var i = r > 1 ? void 0 : r ? Yr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1320
1327
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1321
- return r && i && Yr(t, n, i), i;
1328
+ return r && i && Kr(t, n, i), i;
1322
1329
  }, Ce = (e, t) => (n, r) => t(n, r, e);
1323
1330
  let be = class extends O {
1324
1331
  constructor(t, n, r, i) {
1325
1332
  super();
1326
- D(this, "_copyInfo");
1333
+ A(this, "_copyInfo");
1327
1334
  this._sheetClipboardService = t, this._hyperLinkModel = n, this._injector = r, this._resolverService = i, this._initCopyPaste();
1328
1335
  }
1329
1336
  _initCopyPaste() {
@@ -1331,23 +1338,23 @@ let be = class extends O {
1331
1338
  id: at,
1332
1339
  onBeforeCopy: (t, n, r) => this._collect(t, n, r),
1333
1340
  onPasteCells: (t, n, r, i) => {
1334
- const { copyType: o = ut.COPY, pasteType: s } = i, { range: c } = t || {}, { range: a, unitId: p, subUnitId: m } = n;
1335
- return this._generateMutations(a, { copyType: o, pasteType: s, copyRange: c, unitId: p, subUnitId: m });
1341
+ const { copyType: o = ut.COPY, pasteType: s } = i, { range: c } = t || {}, { range: a, unitId: p, subUnitId: g } = n;
1342
+ return this._generateMutations(a, { copyType: o, pasteType: s, copyRange: c, unitId: p, subUnitId: g });
1336
1343
  },
1337
1344
  onPastePlainText: (t, n) => {
1338
1345
  if (de(n)) {
1339
- const r = rt(n), { range: i, unitId: o, subUnitId: s } = t, { ranges: [c], mapFunc: a } = qe([i]), p = [], m = [];
1340
- return Qe.foreach(c, (f, l) => {
1341
- const { row: g, col: S } = a(f, l), v = this._hyperLinkModel.getHyperLinkByLocation(o, s, g, S);
1342
- v && p.push({
1346
+ const r = rt(n), { range: i, unitId: o, subUnitId: s } = t, { ranges: [c], mapFunc: a } = qe([i]), p = [], g = [];
1347
+ return Qe.foreach(c, (C, l) => {
1348
+ const { row: m, col: v } = a(C, l), f = this._hyperLinkModel.getHyperLinkByLocation(o, s, m, v);
1349
+ f && p.push({
1343
1350
  id: M.id,
1344
1351
  params: {
1345
1352
  unitId: o,
1346
1353
  subUnitId: s,
1347
- id: v.id
1354
+ id: f.id
1348
1355
  }
1349
1356
  });
1350
- const I = te.generateRandomId();
1357
+ const I = ne.generateRandomId();
1351
1358
  p.push({
1352
1359
  id: x.id,
1353
1360
  params: {
@@ -1355,27 +1362,27 @@ let be = class extends O {
1355
1362
  subUnitId: s,
1356
1363
  link: {
1357
1364
  id: I,
1358
- row: g,
1359
- column: S,
1365
+ row: m,
1366
+ column: v,
1360
1367
  payload: r
1361
1368
  }
1362
1369
  }
1363
- }), m.push({
1370
+ }), g.push({
1364
1371
  id: M.id,
1365
1372
  params: {
1366
1373
  unitId: o,
1367
1374
  subUnitId: s,
1368
1375
  id: I
1369
1376
  }
1370
- }), v && m.push({
1377
+ }), f && g.push({
1371
1378
  id: x.id,
1372
1379
  params: {
1373
1380
  unitId: o,
1374
1381
  subUnitId: s,
1375
- link: v
1382
+ link: f
1376
1383
  }
1377
1384
  });
1378
- }), { redos: p, undos: m };
1385
+ }), { redos: p, undos: g };
1379
1386
  }
1380
1387
  return { undos: [], redos: [] };
1381
1388
  }
@@ -1390,15 +1397,15 @@ let be = class extends O {
1390
1397
  };
1391
1398
  const o = {
1392
1399
  get: this._injector.get.bind(this._injector)
1393
- }, s = Pn(r, o, t, n);
1400
+ }, s = kn(r, o, t, n);
1394
1401
  if (!s)
1395
1402
  return;
1396
1403
  const { rows: c, cols: a } = s;
1397
- c.forEach((p, m) => {
1398
- a.forEach((f, l) => {
1399
- var S;
1400
- const g = this._hyperLinkModel.getHyperLinkByLocation(t, n, p, f);
1401
- i.setValue(m, l, (S = g == null ? void 0 : g.id) != null ? S : "");
1404
+ c.forEach((p, g) => {
1405
+ a.forEach((C, l) => {
1406
+ var v;
1407
+ const m = this._hyperLinkModel.getHyperLinkByLocation(t, n, p, C);
1408
+ i.setValue(g, l, (v = m == null ? void 0 : m.id) != null ? v : "");
1402
1409
  });
1403
1410
  });
1404
1411
  }
@@ -1420,18 +1427,18 @@ let be = class extends O {
1420
1427
  ))
1421
1428
  return { redos: [], undos: [] };
1422
1429
  const { unitId: r, subUnitId: i } = this._copyInfo, o = [], s = [], { ranges: [c, a], mapFunc: p } = qe([n.copyRange, t]);
1423
- return bn(c, a, !0).forEach(({ startRange: f }) => {
1430
+ return Pn(c, a, !0).forEach(({ startRange: C }) => {
1424
1431
  var l;
1425
- (l = this._copyInfo) == null || l.matrix.forValue((g, S, v) => {
1426
- const I = ee.getPositionRange(
1432
+ (l = this._copyInfo) == null || l.matrix.forValue((m, v, f) => {
1433
+ const I = te.getPositionRange(
1427
1434
  {
1428
- startRow: g,
1429
- endRow: g,
1430
- startColumn: S,
1431
- endColumn: S
1435
+ startRow: m,
1436
+ endRow: m,
1437
+ startColumn: v,
1438
+ endColumn: v
1432
1439
  },
1433
- f
1434
- ), A = this._hyperLinkModel.getHyperLink(r, i, v), { row: y, col: z } = p(I.startRow, I.startColumn), B = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, y, z), P = te.generateRandomId();
1440
+ C
1441
+ ), D = this._hyperLinkModel.getHyperLink(r, i, f), { row: S, col: z } = p(I.startRow, I.startColumn), B = this._hyperLinkModel.getHyperLinkByLocation(n.unitId, n.subUnitId, S, z), P = ne.generateRandomId();
1435
1442
  B && o.push({
1436
1443
  id: M.id,
1437
1444
  params: {
@@ -1439,15 +1446,15 @@ let be = class extends O {
1439
1446
  subUnitId: n.subUnitId,
1440
1447
  id: B.id
1441
1448
  }
1442
- }), A && (o.push({
1449
+ }), D && (o.push({
1443
1450
  id: x.id,
1444
1451
  params: {
1445
1452
  unitId: n.unitId,
1446
1453
  subUnitId: n.subUnitId,
1447
1454
  link: {
1448
- ...A,
1455
+ ...D,
1449
1456
  id: P,
1450
- row: y,
1457
+ row: S,
1451
1458
  column: z
1452
1459
  }
1453
1460
  }
@@ -1473,18 +1480,18 @@ let be = class extends O {
1473
1480
  };
1474
1481
  }
1475
1482
  };
1476
- be = Gr([
1483
+ be = zr([
1477
1484
  N($.Ready, be),
1478
- Ce(0, Rn),
1485
+ Ce(0, bn),
1479
1486
  Ce(1, h(T)),
1480
- Ce(2, h(Ae)),
1481
- Ce(3, h(F))
1487
+ Ce(2, h(De)),
1488
+ Ce(3, h(W))
1482
1489
  ], be);
1483
- var qr = Object.defineProperty, Xr = Object.getOwnPropertyDescriptor, Jr = (e, t, n, r) => {
1484
- for (var i = r > 1 ? void 0 : r ? Xr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1490
+ var Gr = Object.defineProperty, qr = Object.getOwnPropertyDescriptor, Xr = (e, t, n, r) => {
1491
+ for (var i = r > 1 ? void 0 : r ? qr(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1485
1492
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1486
- return r && i && qr(t, n, i), i;
1487
- }, Qr = (e, t) => (n, r) => t(n, r, e);
1493
+ return r && i && Gr(t, n, i), i;
1494
+ }, Jr = (e, t) => (n, r) => t(n, r, e);
1488
1495
  let Re = class extends O {
1489
1496
  constructor(e) {
1490
1497
  super(), this._resolverService = e, this._handleInitUrl();
@@ -1494,14 +1501,14 @@ let Re = class extends O {
1494
1501
  e && this._resolverService.parseHyperLink(e).handler();
1495
1502
  }
1496
1503
  };
1497
- Re = Jr([
1504
+ Re = Xr([
1498
1505
  N($.Rendered, Re),
1499
- Qr(0, h(F))
1506
+ Jr(0, h(W))
1500
1507
  ], Re);
1501
- var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ni = (e, t, n, r) => {
1502
- for (var i = r > 1 ? void 0 : r ? ti(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1508
+ var Qr = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, ti = (e, t, n, r) => {
1509
+ for (var i = r > 1 ? void 0 : r ? ei(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1503
1510
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1504
- return r && i && ei(t, n, i), i;
1511
+ return r && i && Qr(t, n, i), i;
1505
1512
  }, Ye = (e, t) => (n, r) => t(n, r, e);
1506
1513
  let we = class extends O {
1507
1514
  constructor(e, t, n) {
@@ -1510,7 +1517,7 @@ let we = class extends O {
1510
1517
  _commandExecutedListener() {
1511
1518
  this.disposeWithMe(
1512
1519
  this._commandService.beforeCommandExecuted((e) => {
1513
- e.id === Ft.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1520
+ e.id === Wt.id && (this._sheetPermissionInterceptorBaseController.permissionCheckWithRanges({
1514
1521
  workbookTypes: [Ne],
1515
1522
  rangeTypes: [Ve],
1516
1523
  worksheetTypes: [$e, tt, Be]
@@ -1519,24 +1526,24 @@ let we = class extends O {
1519
1526
  );
1520
1527
  }
1521
1528
  };
1522
- we = ni([
1529
+ we = ti([
1523
1530
  N($.Rendered, we),
1524
1531
  Ye(0, h(pe)),
1525
- Ye(1, W),
1532
+ Ye(1, F),
1526
1533
  Ye(2, h(Pt))
1527
1534
  ], we);
1528
- var Wt = Object.defineProperty, ri = Object.getOwnPropertyDescriptor, ii = (e, t, n) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oi = (e, t, n, r) => {
1529
- for (var i = r > 1 ? void 0 : r ? ri(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1535
+ var Ft = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ri = (e, t, n) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ii = (e, t, n, r) => {
1536
+ for (var i = r > 1 ? void 0 : r ? ni(t, n) : t, o = e.length - 1, s; o >= 0; o--)
1530
1537
  (s = e[o]) && (i = (r ? s(t, n, i) : s(i)) || i);
1531
- return r && i && Wt(t, n, i), i;
1532
- }, vt = (e, t) => (n, r) => t(n, r, e), Zt = (e, t, n) => ii(e, typeof t != "symbol" ? t + "" : t, n);
1538
+ return r && i && Ft(t, n, i), i;
1539
+ }, vt = (e, t) => (n, r) => t(n, r, e), Zt = (e, t, n) => ri(e, typeof t != "symbol" ? t + "" : t, n);
1533
1540
  let je = class extends nn {
1534
1541
  constructor(e, t, n) {
1535
1542
  super(), this._config = e, this._injector = t, this._renderManagerService = n;
1536
1543
  }
1537
1544
  onStarting(e) {
1538
1545
  [
1539
- [F],
1546
+ [W],
1540
1547
  [H],
1541
1548
  [ye],
1542
1549
  [Se],
@@ -1552,20 +1559,25 @@ let je = class extends nn {
1552
1559
  [be],
1553
1560
  [we],
1554
1561
  [Re]
1555
- ].forEach((n) => e.add(n)), this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, Xe);
1562
+ ].forEach((n) => e.add(n));
1563
+ }
1564
+ onReady() {
1565
+ [
1566
+ [Xe]
1567
+ ].forEach((t) => this._renderManagerService.registerRenderModule(w.UNIVER_SHEET, t));
1556
1568
  }
1557
1569
  };
1558
1570
  Zt(je, "pluginName", at);
1559
1571
  Zt(je, "type", w.UNIVER_SHEET);
1560
- je = oi([
1561
- rn(Cn),
1562
- vt(1, h(Ae)),
1572
+ je = ii([
1573
+ rn(_n),
1574
+ vt(1, h(De)),
1563
1575
  vt(2, nt)
1564
1576
  ], je);
1565
1577
  export {
1566
1578
  Te as CloseHyperLinkSidebarOperation,
1567
1579
  ot as InsertHyperLinkOperation,
1568
- Ft as InsertLinkShortcut,
1580
+ Wt as InsertLinkShortcut,
1569
1581
  it as OpenHyperLinkSidebarOperation,
1570
1582
  Ie as SheetHyperLinkSetRangeController,
1571
1583
  Re as SheetHyperLinkUrlController,
@@ -1576,7 +1588,7 @@ export {
1576
1588
  ye as SheetsHyperLinkRemoveSheetController,
1577
1589
  Xe as SheetsHyperLinkRenderController,
1578
1590
  Se as SheetsHyperLinkRenderManagerController,
1579
- F as SheetsHyperLinkResolverService,
1591
+ W as SheetsHyperLinkResolverService,
1580
1592
  le as SheetsHyperLinkUIController,
1581
1593
  je as UniverSheetsHyperLinkUIPlugin
1582
1594
  };