@univerjs/slides-ui 0.8.0-nightly.202505261607 → 0.8.0-nightly.202505281606

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,30 +1,30 @@
1
- var si = Object.defineProperty;
2
- var oi = (n, e, t) => e in n ? si(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var C = (n, e, t) => oi(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as X, Injector as ze, IUniverInstanceService as y, RxDisposable as ve, UniverInstanceType as E, debounce as ai, getColorStyle as ci, CommandType as D, Tools as li, LocaleService as Q, ICommandService as U, generateRandomId as St, BasicShapes as di, PageElementType as ke, Disposable as De, DisposableCollection as Ke, IContextService as fe, toDisposable as Ct, FOCUSING_COMMON_DRAWINGS as ui, createInternalEditorID as hi, createIdentifier as It, EDITOR_ACTIVATED as xe, FOCUSING_EDITOR_STANDALONE as bt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Et, DocumentDataModel as gi, HorizontalAlign as Ot, VerticalAlign as Re, IUndoRedoService as vi, WrapStrategy as et, FOCUSING_EDITOR_BUT_HIDDEN as fi, DEFAULT_EMPTY_DOCUMENT_VALUE as mi, Direction as j, DocumentFlavor as _i, FOCUSING_UNIVER_EDITOR as xt, FORMULA_EDITOR_ACTIVATED as pi, Plugin as Si, merge as Ci, mergeOverrideWithDependencies as tt, IConfigService as Ii } from "@univerjs/core";
5
- import { IRenderManagerService as G, Viewport as it, ScrollBar as Rt, getCurrentTypeOfRenderer as Le, Slide as bi, Rect as yt, Scene as Ei, ObjectType as le, pxToNum as Oi, DeviceInputEventType as q, convertTextRotation as nt, FIX_ONE_PIXEL_BLUR_OFFSET as ne, fixLineWidthByScale as rt } from "@univerjs/engine-render";
6
- import { ObjectProvider as xi, SLIDE_KEY as re } from "@univerjs/slides";
7
- import { useDependency as R, ISidebarService as Pt, ICanvasPopupService as Ri, ILayoutService as yi, KeyCode as P, ILocalFileService as Pi, useObservable as wi, DISABLE_AUTO_FOCUS_KEY as st, getMenuHiddenObservable as me, MenuItemType as _e, RibbonStartGroup as Ti, MetaKeys as Mi, IMenuManagerService as Ni, ComponentManager as Di, IUIPartsService as Ui, IShortcutService as Vi, BuiltInUIPart as ot, connectInjector as at } from "@univerjs/ui";
8
- import { jsxs as O, jsx as u } from "react/jsx-runtime";
9
- import { Button as Ce, clsx as K, Dropdown as wt, ColorPicker as ji, borderTopClassName as Tt, InputNumber as ce, borderClassName as ue, scrollbarClassName as Ai } from "@univerjs/design";
10
- import Li, { forwardRef as H, useRef as Mt, createElement as F, useState as k, useEffect as he, useMemo as Bi, createRef as $i, useCallback as ct } from "react";
11
- import { BehaviorSubject as J, Subject as Nt, filter as Hi, takeUntil as lt } from "rxjs";
12
- import { DocSelectionManagerService as Fi, DocSkeletonManagerService as dt, RichTextEditingMutation as Wi } from "@univerjs/docs";
13
- import { IEditorService as Xe, DocSelectionRenderService as ut, VIEWPORT_KEY as ht, DOCS_COMPONENT_MAIN_LAYER_INDEX as zi, MoveSelectionOperation as ki, MoveCursorOperation as Ki, DOCS_VIEW_KEY as Xi, DeleteLeftCommand as Gi } from "@univerjs/docs-ui";
14
- import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Yi, IImageIoService as Zi, getImageSize as qi } from "@univerjs/drawing";
15
- var Ji = Object.getOwnPropertyDescriptor, Qi = (n, e, t, i) => {
16
- for (var r = i > 1 ? void 0 : i ? Ji(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1
+ var ni = Object.defineProperty;
2
+ var ri = (n, e, t) => e in n ? ni(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var S = (n, e, t) => ri(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Inject as Z, Injector as ke, IUniverInstanceService as w, RxDisposable as ge, UniverInstanceType as E, debounce as si, getColorStyle as oi, CommandType as D, Tools as ci, LocaleService as Q, ICommandService as U, generateRandomId as Ct, BasicShapes as ai, PageElementType as ze, Disposable as De, DisposableCollection as Ke, IContextService as fe, toDisposable as St, FOCUSING_COMMON_DRAWINGS as li, createInternalEditorID as di, createIdentifier as It, EDITOR_ACTIVATED as Re, FOCUSING_EDITOR_STANDALONE as bt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Et, DocumentDataModel as ui, HorizontalAlign as xt, VerticalAlign as Oe, IUndoRedoService as hi, WrapStrategy as et, FOCUSING_EDITOR_BUT_HIDDEN as vi, DEFAULT_EMPTY_DOCUMENT_VALUE as gi, Direction as j, DocumentFlavor as fi, FOCUSING_UNIVER_EDITOR as Rt, FORMULA_EDITOR_ACTIVATED as pi, Plugin as mi, merge as _i, mergeOverrideWithDependencies as tt, IConfigService as Ci } from "@univerjs/core";
5
+ import { IRenderManagerService as X, Viewport as it, ScrollBar as Ot, getCurrentTypeOfRenderer as Le, Slide as Si, Rect as wt, Scene as Ii, ObjectType as le, pxToNum as bi, DeviceInputEventType as q, convertTextRotation as nt, FIX_ONE_PIXEL_BLUR_OFFSET as ne, fixLineWidthByScale as rt } from "@univerjs/engine-render";
6
+ import { ObjectProvider as Ei, SLIDE_KEY as re } from "@univerjs/slides";
7
+ import { useDependency as O, ISidebarService as yt, ICanvasPopupService as xi, ILayoutService as Ri, KeyCode as y, ILocalFileService as Oi, useObservable as wi, DISABLE_AUTO_FOCUS_KEY as st, getMenuHiddenObservable as pe, MenuItemType as me, RibbonStartGroup as yi, MetaKeys as Pi, IMenuManagerService as Ti, ComponentManager as Mi, IUIPartsService as Ni, IShortcutService as Di, BuiltInUIPart as ot, connectInjector as ct } from "@univerjs/ui";
8
+ import { jsxs as x, jsx as u } from "react/jsx-runtime";
9
+ import { Button as Se, clsx as K, Dropdown as Pt, ColorPicker as Ui, borderTopClassName as Tt, InputNumber as ae, borderClassName as ue, scrollbarClassName as Vi } from "@univerjs/design";
10
+ import { forwardRef as F, useRef as Mt, createElement as W, useState as $, useEffect as he, useMemo as ji, createRef as Ai, useCallback as at } from "react";
11
+ import { BehaviorSubject as J, Subject as Nt, filter as Li, takeUntil as lt } from "rxjs";
12
+ import { DocSelectionManagerService as Bi, DocSkeletonManagerService as dt, RichTextEditingMutation as $i } from "@univerjs/docs";
13
+ import { IEditorService as Ze, DocSelectionRenderService as ut, VIEWPORT_KEY as ht, DOCS_COMPONENT_MAIN_LAYER_INDEX as Hi, MoveSelectionOperation as Fi, MoveCursorOperation as Wi, DOCS_VIEW_KEY as ki, DeleteLeftCommand as zi } from "@univerjs/docs-ui";
14
+ import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Ki, IImageIoService as Zi, getImageSize as Xi } from "@univerjs/drawing";
15
+ var Gi = Object.getOwnPropertyDescriptor, Yi = (n, e, t, i) => {
16
+ for (var r = i > 1 ? void 0 : i ? Gi(e, t) : e, s = n.length - 1, o; s >= 0; s--)
17
17
  (o = n[s]) && (r = o(r) || r);
18
18
  return r;
19
19
  }, Ue = (n, e) => (t, i) => e(t, i, n);
20
- let ge = class extends ve {
20
+ let ve = class extends ge {
21
21
  constructor(e, t, i, r) {
22
22
  super();
23
- C(this, "_objectProvider", null);
24
- C(this, "_refreshThumb", ai(() => {
23
+ S(this, "_objectProvider", null);
24
+ S(this, "_refreshThumb", si(() => {
25
25
  this.createThumbs();
26
26
  }, 300));
27
- this._renderContext = e, this._injector = t, this._univerInstanceService = i, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(xi), this._addNewRender();
27
+ this._renderContext = e, this._injector = t, this._univerInstanceService = i, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(Ei), this._addNewRender();
28
28
  }
29
29
  _addNewRender() {
30
30
  const { unitId: e, engine: t, scene: i } = this._renderContext, r = this._getCurrUnitModel();
@@ -46,30 +46,30 @@ let ge = class extends ve {
46
46
  explicitViewportHeightSet: !1,
47
47
  isWheelPreventDefaultX: !0
48
48
  });
49
- i.attachControl(), i.onMouseWheel$.subscribeEvent((c, h) => {
50
- const l = c;
49
+ i.attachControl(), i.onMouseWheel$.subscribeEvent((a, h) => {
50
+ const l = a;
51
51
  if (l.ctrlKey) {
52
52
  const d = Math.abs(l.deltaX);
53
- let v = d < 40 ? 0.2 : d < 80 ? 0.4 : 0.2;
54
- v *= l.deltaY > 0 ? -1 : 1, i.scaleX < 1 && (v /= 2), i.scaleX + v > 4 ? i.scale(4, 4) : i.scaleX + v < 0.1 ? i.scale(0.1, 0.1) : (l.deltaY > 0, l.preventDefault());
53
+ let g = d < 40 ? 0.2 : d < 80 ? 0.4 : 0.2;
54
+ g *= l.deltaY > 0 ? -1 : 1, i.scaleX < 1 && (g /= 2), i.scaleX + g > 4 ? i.scale(4, 4) : i.scaleX + g < 0.1 ? i.scale(0.1, 0.1) : (l.deltaY > 0, l.preventDefault());
55
55
  } else
56
56
  o.onMouseWheel(l, h);
57
57
  }), i.onFileLoaded$.subscribeEvent(() => {
58
58
  this._refreshThumb();
59
- }), Rt.attachTo(o);
60
- const a = this._createSlide(i);
61
- this._renderContext.mainComponent = a, this._createSlidePages(r, a), this.createThumbs(), t.runRenderLoop(() => {
59
+ }), Ot.attachTo(o);
60
+ const c = this._createSlide(i);
61
+ this._renderContext.mainComponent = c, this._createSlidePages(r, c), this.createThumbs(), t.runRenderLoop(() => {
62
62
  i.render();
63
63
  });
64
64
  }
65
65
  _scrollToCenter() {
66
- var c;
67
- const e = (c = this._currentRender()) == null ? void 0 : c.scene, t = e == null ? void 0 : e.getViewport(re.VIEW), i = this._getCenterPositionViewPort(e);
66
+ var a;
67
+ const e = (a = this._currentRender()) == null ? void 0 : a.scene, t = e == null ? void 0 : e.getViewport(re.VIEW), i = this._getCenterPositionViewPort(e);
68
68
  if (!t || !i) return;
69
- const { left: r, top: s } = i, { x: o, y: a } = t.transViewportScroll2ScrollValue(r, s);
69
+ const { left: r, top: s } = i, { x: o, y: c } = t.transViewportScroll2ScrollValue(r, s);
70
70
  t.scrollToBarPos({
71
71
  x: o,
72
- y: a
72
+ y: c
73
73
  });
74
74
  }
75
75
  _currentRender() {
@@ -79,28 +79,28 @@ let ge = class extends ve {
79
79
  * @param mainScene
80
80
  */
81
81
  _createSlide(e) {
82
- const t = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE), { width: i, height: r } = e, s = t.getPageSize(), { width: o = 100, height: a = 100 } = s, c = new bi(re.COMPONENT, {
82
+ const t = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE), { width: i, height: r } = e, s = t.getPageSize(), { width: o = 100, height: c = 100 } = s, a = new Si(re.COMPONENT, {
83
83
  left: (i - o) / 2,
84
- top: (r - a) / 2,
84
+ top: (r - c) / 2,
85
85
  width: o,
86
- height: a,
86
+ height: c,
87
87
  zIndex: 10
88
88
  });
89
- return c.enableSelectedClipElement(), e.addObject(c), c;
89
+ return a.enableSelectedClipElement(), e.addObject(a), a;
90
90
  }
91
91
  _addBackgroundRect(e, t) {
92
- const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new yt("canvas", {
92
+ const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, c = new wt("canvas", {
93
93
  left: 0,
94
94
  top: 0,
95
95
  width: s,
96
96
  height: o,
97
97
  strokeWidth: 1,
98
98
  stroke: "rgba(198,198,198,1)",
99
- fill: ci(t) || "rgba(255,255,255,1)",
99
+ fill: oi(t) || "rgba(255,255,255,1)",
100
100
  zIndex: 0,
101
101
  evented: !1
102
102
  });
103
- e.addObject(a, 0);
103
+ e.addObject(c, 0);
104
104
  }
105
105
  _getCenterPositionViewPort(e) {
106
106
  if (!e) return { left: 0, top: 0 };
@@ -117,8 +117,8 @@ let ge = class extends ve {
117
117
  const { engine: r } = i;
118
118
  if (r == null)
119
119
  return;
120
- const { width: s, height: o } = t, { width: a = s, height: c = o } = r, h = r.getCanvas().getContext();
121
- t.renderToThumb(h, e, a / s, c / o);
120
+ const { width: s, height: o } = t, { width: c = s, height: a = o } = r, h = r.getCanvas().getContext();
121
+ t.renderToThumb(h, e, c / s, a / o);
122
122
  }
123
123
  /**
124
124
  * CreateScene by pages, and activate first one.
@@ -129,8 +129,8 @@ let ge = class extends ve {
129
129
  const i = e.getPages(), r = e.getPageOrder();
130
130
  if (!(!i || !r) && r.length !== 0) {
131
131
  for (let s = 0, o = r.length; s < o; s++) {
132
- const a = r[s];
133
- this.createPageScene(a, i[a]), this._createThumb(a);
132
+ const c = r[s];
133
+ this.createPageScene(c, i[c]), this._createThumb(c);
134
134
  }
135
135
  t.activeFirstPage();
136
136
  }
@@ -151,17 +151,17 @@ let ge = class extends ve {
151
151
  if (t)
152
152
  r = i.getPage(t);
153
153
  else {
154
- const c = i.getPages(), h = i.getPageOrder();
155
- if (h == null || c == null)
154
+ const a = i.getPages(), h = i.getPageOrder();
155
+ if (h == null || a == null)
156
156
  return;
157
- r = c[h[0]], t = r.id;
157
+ r = a[h[0]], t = r.id;
158
158
  }
159
159
  const s = this._currentRender();
160
160
  if (r == null || s == null || s.mainComponent == null)
161
161
  return;
162
- const { id: o } = r, a = s.mainComponent;
163
- if (i.setActivePage(r), a != null && a.hasPage(o)) {
164
- a.changePage(o);
162
+ const { id: o } = r, c = s.mainComponent;
163
+ if (i.setActivePage(r), c != null && c.hasPage(o)) {
164
+ c.changePage(o);
165
165
  return;
166
166
  }
167
167
  this.createPageScene(o, r);
@@ -183,9 +183,9 @@ let ge = class extends ve {
183
183
  const i = this._renderContext;
184
184
  if (!i || !this._objectProvider)
185
185
  return;
186
- const { scene: r, mainComponent: s } = i, o = s, { width: a, height: c } = o, h = new Ei(e, o, {
187
- width: a,
188
- height: c
186
+ const { scene: r, mainComponent: s } = i, o = s, { width: c, height: a } = o, h = new Ii(e, o, {
187
+ width: c,
188
+ height: a
189
189
  });
190
190
  new it(`PageViewer_${e}`, h, {
191
191
  left: 0,
@@ -195,15 +195,15 @@ let ge = class extends ve {
195
195
  explicitViewportWidthSet: !1,
196
196
  explicitViewportHeightSet: !1
197
197
  }).closeClip();
198
- const { pageElements: d, pageBackgroundFill: v } = t, _ = this._objectProvider.convertToRenderObjects(d, r);
199
- if (!_ || !o) return;
200
- this._addBackgroundRect(h, v), h.addObjects(_), h.initTransformer(), _.forEach((f) => {
198
+ const { pageElements: d, pageBackgroundFill: g } = t, m = this._objectProvider.convertToRenderObjects(d, r);
199
+ if (!m || !o) return;
200
+ this._addBackgroundRect(h, g), h.addObjects(m), h.initTransformer(), m.forEach((f) => {
201
201
  h.attachTransformerTo(f);
202
202
  });
203
- const m = h.getTransformer();
204
- return m == null || m.changeEnd$.subscribe(() => {
203
+ const p = h.getTransformer();
204
+ return p == null || p.changeEnd$.subscribe(() => {
205
205
  this._thumbSceneRender(e, o);
206
- }), m == null || m.clearControl$.subscribe(() => {
206
+ }), p == null || p.clearControl$.subscribe(() => {
207
207
  this._thumbSceneRender(e, o);
208
208
  }), o.addPageScene(h), h;
209
209
  }
@@ -249,22 +249,22 @@ let ge = class extends ve {
249
249
  s && o && s.addPageScene(o), e.appendPage(t), e.setActivePage(t);
250
250
  }
251
251
  };
252
- ge = Qi([
253
- Ue(1, X(ze)),
254
- Ue(2, y),
255
- Ue(3, G)
256
- ], ge);
257
- var en = Object.getOwnPropertyDescriptor, tn = (n, e, t, i) => {
258
- for (var r = i > 1 ? void 0 : i ? en(e, t) : e, s = n.length - 1, o; s >= 0; s--)
252
+ ve = Yi([
253
+ Ue(1, Z(ke)),
254
+ Ue(2, w),
255
+ Ue(3, X)
256
+ ], ve);
257
+ var qi = Object.getOwnPropertyDescriptor, Ji = (n, e, t, i) => {
258
+ for (var r = i > 1 ? void 0 : i ? qi(e, t) : e, s = n.length - 1, o; s >= 0; s--)
259
259
  (o = n[s]) && (r = o(r) || r);
260
260
  return r;
261
- }, nn = (n, e) => (t, i) => e(t, i, n);
262
- let T = class extends ve {
261
+ }, Qi = (n, e) => (t, i) => e(t, i, n);
262
+ let T = class extends ge {
263
263
  constructor(n) {
264
264
  super(), this._renderManagerService = n;
265
265
  }
266
266
  _getSlideRenderControllerFromRenderUnit(n) {
267
- return this._renderManagerService.getRenderById(n).with(ge);
267
+ return this._renderManagerService.getRenderById(n).with(ve);
268
268
  }
269
269
  createThumbs(n) {
270
270
  this._getSlideRenderControllerFromRenderUnit(n).createThumbs();
@@ -291,15 +291,15 @@ let T = class extends ve {
291
291
  this._getSlideRenderControllerFromRenderUnit(n).appendPage();
292
292
  }
293
293
  };
294
- T = tn([
295
- nn(0, G)
294
+ T = Ji([
295
+ Qi(0, X)
296
296
  ], T);
297
- const rn = "slides-ui.config", gt = {}, Dt = {
297
+ const en = "slides-ui.config", vt = {}, Dt = {
298
298
  id: "slide.operation.delete-element",
299
299
  type: D.OPERATION,
300
300
  handler: (n, e) => {
301
301
  if (!(e != null && e.id)) return !1;
302
- const t = e.unitId, r = n.get(y).getUnit(t);
302
+ const t = e.unitId, r = n.get(w).getUnit(t);
303
303
  if (!r) return !1;
304
304
  const s = r.getActivePage();
305
305
  return delete s.pageElements[e.id], r.updatePage(s.id, s), n.get(T).removeObjectById(e.id, s.id, t), !0;
@@ -313,150 +313,150 @@ var N = function() {
313
313
  }
314
314
  return n;
315
315
  }, N.apply(this, arguments);
316
- }, sn = function(n, e) {
316
+ }, tn = function(n, e) {
317
317
  var t = {};
318
318
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
319
319
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
320
320
  for (var r = 0, i = Object.getOwnPropertySymbols(n); r < i.length; r++)
321
321
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[r]) && (t[i[r]] = n[i[r]]);
322
322
  return t;
323
- }, W = H(function(n, e) {
324
- var t = n.icon, i = n.id, r = n.className, s = n.extend, o = sn(n, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), c = Mt("_".concat(cn()));
325
- return Ut(t, "".concat(i), { defIds: t.defIds, idSuffix: c.current }, N({ ref: e, className: a }, o), s);
323
+ }, k = F(function(n, e) {
324
+ var t = n.icon, i = n.id, r = n.className, s = n.extend, o = tn(n, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), a = Mt("_".concat(sn()));
325
+ return Ut(t, "".concat(i), { defIds: t.defIds, idSuffix: a.current }, N({ ref: e, className: c }, o), s);
326
326
  });
327
327
  function Ut(n, e, t, i, r) {
328
- return F(n.tag, N(N({ key: e }, on(n, t, r)), i), (an(n, t).children || []).map(function(s, o) {
328
+ return W(n.tag, N(N({ key: e }, nn(n, t, r)), i), (rn(n, t).children || []).map(function(s, o) {
329
329
  return Ut(s, "".concat(e, "-").concat(n.tag, "-").concat(o), t, void 0, r);
330
330
  }));
331
331
  }
332
- function on(n, e, t) {
332
+ function nn(n, e, t) {
333
333
  var i = N({}, n.attrs);
334
334
  t != null && t.colorChannel1 && i.fill === "colorChannel1" && (i.fill = t.colorChannel1), n.tag === "mask" && i.id && (i.id = i.id + e.idSuffix), Object.entries(i).forEach(function(s) {
335
- var o = s[0], a = s[1];
336
- o === "mask" && typeof a == "string" && (i[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
335
+ var o = s[0], c = s[1];
336
+ o === "mask" && typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
337
337
  });
338
338
  var r = e.defIds;
339
339
  return !r || r.length === 0 || (n.tag === "use" && i["xlink:href"] && (i["xlink:href"] = i["xlink:href"] + e.idSuffix), Object.entries(i).forEach(function(s) {
340
- var o = s[0], a = s[1];
341
- typeof a == "string" && (i[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
340
+ var o = s[0], c = s[1];
341
+ typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
342
342
  })), i;
343
343
  }
344
- function an(n, e) {
344
+ function rn(n, e) {
345
345
  var t, i = e.defIds;
346
346
  return !i || i.length === 0 ? n : n.tag === "defs" && (!((t = n.children) === null || t === void 0) && t.length) ? N(N({}, n), { children: n.children.map(function(r) {
347
- return typeof r.attrs.id == "string" && i && i.indexOf(r.attrs.id) > -1 ? N(N({}, r), { attrs: N(N({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
347
+ return typeof r.attrs.id == "string" && i && i.includes(r.attrs.id) ? N(N({}, r), { attrs: N(N({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
348
348
  }) }) : n;
349
349
  }
350
- function cn() {
350
+ function sn() {
351
351
  return Math.random().toString(36).substring(2, 8);
352
352
  }
353
- W.displayName = "UniverIcon";
354
- var ln = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365zM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377zM2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365zM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647zM9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635zM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vt = H(function(n, e) {
355
- return F(W, Object.assign({}, n, {
356
- id: "autofill",
353
+ k.displayName = "UniverIcon";
354
+ var on = { 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: "colorChannel1", d: "M11.0363 12.2367V14.0367C11.0363 14.3681 11.3049 14.6367 11.6363 14.6367C11.9676 14.6367 12.2363 14.3681 12.2363 14.0367V12.2367H14.0364C14.3677 12.2367 14.6364 11.9681 14.6364 11.6367C14.6364 11.3054 14.3677 11.0367 14.0364 11.0367H12.2363V9.23672C12.2363 8.90535 11.9676 8.63672 11.6363 8.63672C11.3049 8.63672 11.0363 8.90535 11.0363 9.23672V11.0367H9.23635C8.90498 11.0367 8.63635 11.3054 8.63635 11.6367C8.63635 11.9681 8.90498 12.2367 9.23635 12.2367H11.0363Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 1.36377C1.90091 1.36377 1.36365 1.90103 1.36365 2.56377V6.16377C1.36365 6.82651 1.90091 7.36377 2.56365 7.36377H6.16365C6.82639 7.36377 7.36365 6.82651 7.36365 6.16377V2.56377C7.36365 1.90103 6.82639 1.36377 6.16365 1.36377H2.56365ZM6.16365 2.56377H2.56365L2.56365 6.16377H6.16365V2.56377Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M2.56365 8.63647C1.90091 8.63647 1.36365 9.17373 1.36365 9.83647V13.4365C1.36365 14.0992 1.90091 14.6365 2.56365 14.6365H6.16365C6.82639 14.6365 7.36365 14.0992 7.36365 13.4365V9.83647C7.36365 9.17373 6.82639 8.63647 6.16365 8.63647H2.56365ZM6.16365 9.83647H2.56365L2.56365 13.4365H6.16365V9.83647Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M9.83635 7.36377C9.17361 7.36377 8.63635 6.82651 8.63635 6.16377V2.56377C8.63635 1.90103 9.17361 1.36377 9.83635 1.36377H13.4364C14.0991 1.36377 14.6364 1.90103 14.6364 2.56377V6.16377C14.6364 6.82651 14.0991 7.36377 13.4364 7.36377H9.83635ZM9.83635 6.16377V2.56377L13.4364 2.56377V6.16377H9.83635Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Vt = F(function(n, e) {
355
+ return W(k, Object.assign({}, n, {
356
+ id: "autofill-double-icon",
357
357
  ref: e,
358
- icon: ln
358
+ icon: on
359
359
  }));
360
360
  });
361
- Vt.displayName = "Autofill";
362
- var dn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.0045 4.4334C14.8881 4.4334 15.6045 3.71705 15.6045 2.8334 15.6045 1.94974 14.8881 1.2334 14.0045 1.2334H3.70449C2.82084 1.2334 2.10449 1.94974 2.10449 2.8334 2.10449 3.71705 2.82084 4.4334 3.70449 4.4334H14.0045zM14.4045 2.8334C14.4045 3.05431 14.2254 3.2334 14.0045 3.2334H3.70449C3.48358 3.2334 3.30449 3.05431 3.30449 2.8334 3.30449 2.61248 3.48358 2.4334 3.70449 2.4334H14.0045C14.2254 2.4334 14.4045 2.61249 14.4045 2.8334zM14.1544 8.5999C15.038 8.5999 15.7544 7.88356 15.7544 6.9999 15.7544 6.11625 15.038 5.3999 14.1544 5.3999H3.85439C2.97074 5.3999 2.25439 6.11625 2.25439 6.9999 2.25439 7.88356 2.97074 8.5999 3.85439 8.5999H14.1544zM14.5544 6.9999C14.5544 7.22082 14.3753 7.3999 14.1544 7.3999H3.85439C3.63348 7.3999 3.45439 7.22082 3.45439 6.9999 3.45439 6.77899 3.63348 6.5999 3.85439 6.5999H14.1544C14.3753 6.5999 14.5544 6.77899 14.5544 6.9999z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902L6.58023 12.5907C6.34591 12.3564 6.34591 11.9765 6.58023 11.7421 6.81454 11.5078 7.19444 11.5078 7.42876 11.7421L8.40449 12.7179V10.1664C8.40449 9.83504 8.67312 9.56641 9.00449 9.56641 9.33586 9.56641 9.60449 9.83504 9.60449 10.1664V12.7179L10.5802 11.7421C10.8145 11.5078 11.1944 11.5078 11.4288 11.7421 11.6631 11.9765 11.6631 12.3564 11.4288 12.5907L9.42923 14.5902M8.57975 14.5902C8.58121 14.5917 8.58268 14.5931 8.58416 14.5946 8.64077 14.6502 8.70566 14.6923 8.77482 14.7209 8.84557 14.7502 8.92314 14.7664 9.00449 14.7664 9.08585 14.7664 9.16342 14.7502 9.23416 14.7209 9.30332 14.6923 9.36821 14.6502 9.42482 14.5946" } }] }, jt = H(function(n, e) {
363
- return F(W, Object.assign({}, n, {
364
- id: "bottom-single",
361
+ Vt.displayName = "AutofillDoubleIcon";
362
+ var cn = { 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: "M14.0045 4.4334C14.8881 4.4334 15.6045 3.71705 15.6045 2.8334C15.6045 1.94974 14.8881 1.2334 14.0045 1.2334H3.70449C2.82084 1.2334 2.10449 1.94974 2.10449 2.8334C2.10449 3.71705 2.82084 4.4334 3.70449 4.4334H14.0045ZM14.4045 2.8334C14.4045 3.05431 14.2254 3.2334 14.0045 3.2334H3.70449C3.48358 3.2334 3.30449 3.05431 3.30449 2.8334C3.30449 2.61248 3.48358 2.4334 3.70449 2.4334H14.0045C14.2254 2.4334 14.4045 2.61249 14.4045 2.8334Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.1544 8.5999C15.038 8.5999 15.7544 7.88356 15.7544 6.9999C15.7544 6.11625 15.038 5.3999 14.1544 5.3999H3.85439C2.97074 5.3999 2.25439 6.11625 2.25439 6.9999C2.25439 7.88356 2.97074 8.5999 3.85439 8.5999H14.1544ZM14.5544 6.9999C14.5544 7.22082 14.3753 7.3999 14.1544 7.3999H3.85439C3.63348 7.3999 3.45439 7.22082 3.45439 6.9999C3.45439 6.77899 3.63348 6.5999 3.85439 6.5999H14.1544C14.3753 6.5999 14.5544 6.77899 14.5544 6.9999Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902L6.58023 12.5907C6.34591 12.3564 6.34591 11.9765 6.58023 11.7421C6.81454 11.5078 7.19444 11.5078 7.42876 11.7421L8.40449 12.7179V10.1664C8.40449 9.83504 8.67312 9.56641 9.00449 9.56641C9.33586 9.56641 9.60449 9.83504 9.60449 10.1664V12.7179L10.5802 11.7421C10.8145 11.5078 11.1944 11.5078 11.4288 11.7421C11.6631 11.9765 11.6631 12.3564 11.4288 12.5907L9.42923 14.5902" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902C8.58121 14.5917 8.58268 14.5931 8.58416 14.5946C8.64077 14.6502 8.70566 14.6923 8.77482 14.7209C8.84557 14.7502 8.92314 14.7664 9.00449 14.7664C9.08585 14.7664 9.16342 14.7502 9.23416 14.7209C9.30332 14.6923 9.36821 14.6502 9.42482 14.5946" } }] }, jt = F(function(n, e) {
363
+ return W(k, Object.assign({}, n, {
364
+ id: "bottom-icon",
365
365
  ref: e,
366
- icon: dn
366
+ icon: cn
367
367
  }));
368
368
  });
369
- jt.displayName = "BottomSingle";
370
- var un = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { clipPath: "url(#graph-single_clip0_1293_28)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.29541 11.1896C3.83208 10.7489 1.9624 8.59552 1.9624 6.00544C1.9624 3.09673 4.32036 0.73877 7.22907 0.73877C9.93483 0.73877 12.164 2.77918 12.4619 5.40527H13.5621C14.998 5.40527 16.1621 6.56933 16.1621 8.00527V12.6719C16.1621 14.1079 14.998 15.2719 13.5621 15.2719H8.89541C7.45947 15.2719 6.29541 14.1079 6.29541 12.6719V11.1896ZM3.1624 6.00544C3.1624 3.75947 4.98311 1.93877 7.22907 1.93877C9.27112 1.93877 10.9616 3.44388 11.2518 5.40527H8.89541C7.45947 5.40527 6.29541 6.56933 6.29541 8.00527V9.96442C4.49946 9.5425 3.1624 7.93012 3.1624 6.00544ZM7.49541 8.00527C7.49541 7.23207 8.12221 6.60527 8.89541 6.60527H13.5621C14.3353 6.60527 14.9621 7.23207 14.9621 8.00527V12.6719C14.9621 13.4451 14.3353 14.0719 13.5621 14.0719H8.89541C8.12221 14.0719 7.49541 13.4451 7.49541 12.6719V8.00527Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "graph-single_clip0_1293_28" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["graph-single_clip0_1293_28"] }, At = H(function(n, e) {
371
- return F(W, Object.assign({}, n, {
372
- id: "graph-single",
369
+ jt.displayName = "BottomIcon";
370
+ var an = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { clipPath: "url(#graph-icon_clip0_1293_28)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M6.29541 11.1896C3.83208 10.7489 1.9624 8.59552 1.9624 6.00544C1.9624 3.09673 4.32036 0.73877 7.22907 0.73877C9.93483 0.73877 12.164 2.77918 12.4619 5.40527H13.5621C14.998 5.40527 16.1621 6.56933 16.1621 8.00527V12.6719C16.1621 14.1079 14.998 15.2719 13.5621 15.2719H8.89541C7.45947 15.2719 6.29541 14.1079 6.29541 12.6719V11.1896ZM3.1624 6.00544C3.1624 3.75947 4.98311 1.93877 7.22907 1.93877C9.27112 1.93877 10.9616 3.44388 11.2518 5.40527H8.89541C7.45947 5.40527 6.29541 6.56933 6.29541 8.00527V9.96442C4.49946 9.5425 3.1624 7.93012 3.1624 6.00544ZM7.49541 8.00527C7.49541 7.23207 8.12221 6.60527 8.89541 6.60527H13.5621C14.3353 6.60527 14.9621 7.23207 14.9621 8.00527V12.6719C14.9621 13.4451 14.3353 14.0719 13.5621 14.0719H8.89541C8.12221 14.0719 7.49541 13.4451 7.49541 12.6719V8.00527Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "graph-icon_clip0_1293_28" }, children: [{ tag: "path", attrs: { fill: "white", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["graph-icon_clip0_1293_28"] }, At = F(function(n, e) {
371
+ return W(k, Object.assign({}, n, {
372
+ id: "graph-icon",
373
373
  ref: e,
374
- icon: un
374
+ icon: an
375
375
  }));
376
376
  });
377
- At.displayName = "GraphSingle";
378
- var hn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ge = H(function(n, e) {
379
- return F(W, Object.assign({}, n, {
380
- id: "more-down-single",
377
+ At.displayName = "GraphIcon";
378
+ var ln = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Xe = F(function(n, e) {
379
+ return W(k, Object.assign({}, n, {
380
+ id: "more-down-icon",
381
381
  ref: e,
382
- icon: hn
382
+ icon: ln
383
383
  }));
384
384
  });
385
- Ge.displayName = "MoreDownSingle";
386
- var gn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 2.96401C1.25 3.84767 1.96634 4.56401 2.85 4.56401H13.15C14.0337 4.56401 14.75 3.84767 14.75 2.96401C14.75 2.08036 14.0337 1.36401 13.15 1.36401H2.85C1.96635 1.36401 1.25 2.08036 1.25 2.96401ZM2.85 3.36401C2.62909 3.36401 2.45 3.18493 2.45 2.96401C2.45 2.7431 2.62909 2.56401 2.85 2.56401H13.15C13.3709 2.56401 13.55 2.7431 13.55 2.96401C13.55 3.18493 13.3709 3.36401 13.15 3.36401H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 11.6118C5.80995 11.3774 6.18985 11.3774 6.42417 11.6118L7.3999 12.5875V6.36951C7.3999 6.03814 7.66853 5.76951 7.9999 5.76951C8.33127 5.76951 8.5999 6.03814 8.5999 6.36951V12.5875L9.57564 11.6118C9.80995 11.3774 10.1899 11.3774 10.4242 11.6118C10.6585 11.8461 10.6585 12.226 10.4242 12.4603L8.4324 14.452C8.32324 14.5655 8.16982 14.6362 7.9999 14.6362C7.82998 14.6362 7.67655 14.5655 7.56739 14.452L5.57564 12.4603C5.34132 12.226 5.34132 11.8461 5.57564 11.6118Z" } }] }, Lt = H(function(n, e) {
387
- return F(W, Object.assign({}, n, {
388
- id: "move-down-single",
385
+ Xe.displayName = "MoreDownIcon";
386
+ var dn = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 2.96401C1.25 3.84767 1.96634 4.56401 2.85 4.56401H13.15C14.0337 4.56401 14.75 3.84767 14.75 2.96401C14.75 2.08036 14.0337 1.36401 13.15 1.36401H2.85C1.96635 1.36401 1.25 2.08036 1.25 2.96401ZM2.85 3.36401C2.62909 3.36401 2.45 3.18493 2.45 2.96401C2.45 2.7431 2.62909 2.56401 2.85 2.56401H13.15C13.3709 2.56401 13.55 2.7431 13.55 2.96401C13.55 3.18493 13.3709 3.36401 13.15 3.36401H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 11.6118C5.80995 11.3774 6.18985 11.3774 6.42417 11.6118L7.3999 12.5875V6.36951C7.3999 6.03814 7.66853 5.76951 7.9999 5.76951C8.33127 5.76951 8.5999 6.03814 8.5999 6.36951V12.5875L9.57564 11.6118C9.80995 11.3774 10.1899 11.3774 10.4242 11.6118C10.6585 11.8461 10.6585 12.226 10.4242 12.4603L8.4324 14.452C8.32324 14.5655 8.16982 14.6362 7.9999 14.6362C7.82998 14.6362 7.67655 14.5655 7.56739 14.452L5.57564 12.4603C5.34132 12.226 5.34132 11.8461 5.57564 11.6118Z" } }] }, Lt = F(function(n, e) {
387
+ return W(k, Object.assign({}, n, {
388
+ id: "move-down-icon",
389
389
  ref: e,
390
- icon: gn
390
+ icon: dn
391
391
  }));
392
392
  });
393
- Lt.displayName = "MoveDownSingle";
394
- var vn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 13.036C1.25 12.1523 1.96634 11.436 2.85 11.436H13.15C14.0337 11.436 14.75 12.1523 14.75 13.036C14.75 13.9196 14.0337 14.636 13.15 14.636H2.85C1.96635 14.636 1.25 13.9196 1.25 13.036ZM2.85 12.636C2.62909 12.636 2.45 12.8151 2.45 13.036C2.45 13.2569 2.62909 13.436 2.85 13.436H13.15C13.3709 13.436 13.55 13.2569 13.55 13.036C13.55 12.8151 13.3709 12.636 13.15 12.636H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 4.38825C5.80995 4.62256 6.18985 4.62256 6.42417 4.38825L7.3999 3.41251V9.63049C7.3999 9.96186 7.66853 10.2305 7.9999 10.2305C8.33127 10.2305 8.5999 9.96186 8.5999 9.63049V3.41251L9.57564 4.38825C9.80995 4.62256 10.1899 4.62256 10.4242 4.38825C10.6585 4.15393 10.6585 3.77403 10.4242 3.53972L8.4324 1.54796C8.32324 1.43445 8.16982 1.36382 7.9999 1.36382C7.82998 1.36382 7.67655 1.43446 7.56739 1.54797L5.57564 3.53972C5.34132 3.77403 5.34132 4.15393 5.57564 4.38825Z" } }] }, Bt = H(function(n, e) {
395
- return F(W, Object.assign({}, n, {
396
- id: "move-up-single",
393
+ Lt.displayName = "MoveDownIcon";
394
+ var un = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.25 13.036C1.25 12.1523 1.96634 11.436 2.85 11.436H13.15C14.0337 11.436 14.75 12.1523 14.75 13.036C14.75 13.9196 14.0337 14.636 13.15 14.636H2.85C1.96635 14.636 1.25 13.9196 1.25 13.036ZM2.85 12.636C2.62909 12.636 2.45 12.8151 2.45 13.036C2.45 13.2569 2.62909 13.436 2.85 13.436H13.15C13.3709 13.436 13.55 13.2569 13.55 13.036C13.55 12.8151 13.3709 12.636 13.15 12.636H2.85Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M5.57564 4.38825C5.80995 4.62256 6.18985 4.62256 6.42417 4.38825L7.3999 3.41251V9.63049C7.3999 9.96186 7.66853 10.2305 7.9999 10.2305C8.33127 10.2305 8.5999 9.96186 8.5999 9.63049V3.41251L9.57564 4.38825C9.80995 4.62256 10.1899 4.62256 10.4242 4.38825C10.6585 4.15393 10.6585 3.77403 10.4242 3.53972L8.4324 1.54796C8.32324 1.43445 8.16982 1.36382 7.9999 1.36382C7.82998 1.36382 7.67655 1.43446 7.56739 1.54797L5.57564 3.53972C5.34132 3.77403 5.34132 4.15393 5.57564 4.38825Z" } }] }, Bt = F(function(n, e) {
395
+ return W(k, Object.assign({}, n, {
396
+ id: "move-up-icon",
397
397
  ref: e,
398
- icon: vn
398
+ icon: un
399
399
  }));
400
400
  });
401
- Bt.displayName = "MoveUpSingle";
402
- var fn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, $t = H(function(n, e) {
403
- return F(W, Object.assign({}, n, {
404
- id: "paint-bucket",
401
+ Bt.displayName = "MoveUpIcon";
402
+ var hn = { 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: "M8.01281 1.36643C8.79386 0.585377 10.0602 0.585378 10.8412 1.36643L12.9223 3.44752C13.7034 4.22857 13.7034 5.4949 12.9223 6.27595L9.36445 9.83383C8.5834 10.6149 7.31707 10.6149 6.53602 9.83383L4.45493 7.75273C3.67388 6.97168 3.67388 5.70535 4.45493 4.9243L8.01281 1.36643ZM9.9927 2.21495C9.68028 1.90253 9.17375 1.90253 8.86133 2.21495L5.30346 5.77283L5.29671 5.77966L10.839 6.66224L12.0738 5.42742C12.3862 5.115 12.3862 4.60847 12.0738 4.29605L9.9927 2.21495Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M14.5179 9.48875C14.5179 9.99175 14.1101 10.3995 13.607 10.3995C13.1041 10.3995 12.6963 9.99175 12.6963 9.48875C12.6963 9.1773 13.0455 8.59966 13.3114 8.20487C13.4549 7.99177 13.7591 7.99177 13.9027 8.20486C14.1687 8.59965 14.5179 9.1773 14.5179 9.48875Z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M1.98682 13.4992C1.98682 12.5603 2.74793 11.7992 3.68682 11.7992H14.2868C15.2257 11.7992 15.9868 12.5603 15.9868 13.4992V13.4992C15.9868 14.4381 15.2257 15.1992 14.2868 15.1992H3.68682C2.74793 15.1992 1.98682 14.4381 1.98682 13.4992V13.4992Z" } }] }, $t = F(function(n, e) {
403
+ return W(k, Object.assign({}, n, {
404
+ id: "paint-bucket-double-icon",
405
405
  ref: e,
406
- icon: fn
406
+ icon: hn
407
407
  }));
408
408
  });
409
- $t.displayName = "PaintBucket";
410
- var mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, Ht = H(function(n, e) {
411
- return F(W, Object.assign({}, n, {
412
- id: "text-single",
409
+ $t.displayName = "PaintBucketDoubleIcon";
410
+ var vn = { tag: "svg", attrs: { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#text-icon_clip0_1293_26)" }, children: [{ tag: "path", attrs: { d: "M2.22891 2.07227C1.89754 2.07227 1.62891 2.34089 1.62891 2.67227C1.62891 3.00364 1.89754 3.27227 2.22891 3.27227H6.29541V14.0056C6.29541 14.337 6.56404 14.6056 6.89541 14.6056C7.22678 14.6056 7.49541 14.337 7.49541 14.0056V3.27227H11.5622C11.8936 3.27227 12.1622 3.00364 12.1622 2.67227C12.1622 2.34089 11.8936 2.07227 11.5622 2.07227H2.22891Z" } }, { tag: "path", attrs: { d: "M10.2289 6.40552C9.89754 6.40552 9.62891 6.67415 9.62891 7.00552C9.62891 7.33689 9.89754 7.60552 10.2289 7.60552H12.2954V14.0055C12.2954 14.3369 12.564 14.6055 12.8954 14.6055C13.2268 14.6055 13.4954 14.3369 13.4954 14.0055V7.60552H15.5622C15.8936 7.60552 16.1622 7.33689 16.1622 7.00552C16.1622 6.67415 15.8936 6.40552 15.5622 6.40552H10.2289Z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "text-icon_clip0_1293_26" }, children: [{ tag: "path", attrs: { fill: "white", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["text-icon_clip0_1293_26"] }, Ht = F(function(n, e) {
411
+ return W(k, Object.assign({}, n, {
412
+ id: "text-icon",
413
413
  ref: e,
414
- icon: mn
414
+ icon: vn
415
415
  }));
416
416
  });
417
- Ht.displayName = "TextSingle";
418
- var _n = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ft = H(function(n, e) {
419
- return F(W, Object.assign({}, n, {
420
- id: "topmost-single",
417
+ Ht.displayName = "TextIcon";
418
+ var gn = { 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: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9C15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9ZM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9C2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9C13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665C15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665ZM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665C2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665C13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ft = F(function(n, e) {
419
+ return W(k, Object.assign({}, n, {
420
+ id: "topmost-icon",
421
421
  ref: e,
422
- icon: _n
422
+ icon: gn
423
423
  }));
424
424
  });
425
- Ft.displayName = "TopmostSingle";
426
- const $ = {
425
+ Ft.displayName = "TopmostIcon";
426
+ const H = {
427
427
  id: "slide.operation.update-element",
428
428
  type: D.OPERATION,
429
429
  handler: (n, e) => {
430
- const { oKey: t, props: i } = e, r = n.get(y), s = e == null ? void 0 : e.unitId, o = r.getUnit(s);
430
+ const { oKey: t, props: i } = e, r = n.get(w), s = e == null ? void 0 : e.unitId, o = r.getUnit(s);
431
431
  if (!o) return !1;
432
- const a = o.getActivePage();
433
- return a.pageElements[t] = li.deepMerge(a.pageElements[t], i), o.updatePage(a.id, a), !0;
432
+ const c = o.getActivePage();
433
+ return c.pageElements[t] = ci.deepMerge(c.pageElements[t], i), o.updatePage(c.id, c), !0;
434
434
  }
435
435
  };
436
- function pn(n) {
437
- const { pageId: e, unitId: t } = n, i = R(Q), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
438
- if (!a) return null;
439
- const c = a.getTransformer();
436
+ function fn(n) {
437
+ const { pageId: e, unitId: t } = n, i = O(Q), r = O(T), s = O(U), o = r.getRenderUnitByPageId(e, t), c = o == null ? void 0 : o.scene;
440
438
  if (!c) return null;
441
- const l = c.getSelectedObjectMap().values().next().value;
439
+ const a = c.getTransformer();
440
+ if (!a) return null;
441
+ const l = a.getSelectedObjectMap().values().next().value;
442
442
  if (!l) return null;
443
- const d = (v) => {
444
- const _ = a.getAllObjects(), [m, f] = _.reduce(([p, I], b) => {
445
- const w = b.zIndex, M = w < p ? w : p, V = w > I ? w : I;
443
+ const d = (g) => {
444
+ const m = c.getAllObjects(), [p, f] = m.reduce(([_, I], b) => {
445
+ const P = b.zIndex, M = P < _ ? P : _, V = P > I ? P : I;
446
446
  return [M, V];
447
447
  }, [0, 0]);
448
- let g = l.zIndex;
449
- v === 3 ? g = m - 1 : v === 2 ? g = f + 1 : v === 0 ? g = l.zIndex + 1 : v === 1 && (g = l.zIndex - 1), l.setProps({
450
- zIndex: g
451
- }), s.executeCommand($.id, {
448
+ let v = l.zIndex;
449
+ g === 3 ? v = p - 1 : g === 2 ? v = f + 1 : g === 0 ? v = l.zIndex + 1 : g === 1 && (v = l.zIndex - 1), l.setProps({
450
+ zIndex: v
451
+ }), s.executeCommand(H.id, {
452
452
  unitId: t,
453
453
  oKey: l == null ? void 0 : l.oKey,
454
454
  props: {
455
- zIndex: g
455
+ zIndex: v
456
456
  }
457
457
  });
458
458
  };
459
- return /* @__PURE__ */ O("div", { className: "univer-relative univer-w-full", children: [
459
+ return /* @__PURE__ */ x("div", { className: "univer-relative univer-w-full", children: [
460
460
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u(
461
461
  "div",
462
462
  {
@@ -464,79 +464,79 @@ function pn(n) {
464
464
  children: /* @__PURE__ */ u("div", { children: i.t("image-panel.arrange.title") })
465
465
  }
466
466
  ) }),
467
- /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
468
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Ce, { onClick: () => {
467
+ /* @__PURE__ */ x("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
468
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
469
469
  d(
470
470
  0
471
471
  /* forward */
472
472
  );
473
- }, children: /* @__PURE__ */ O("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
473
+ }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
474
474
  /* @__PURE__ */ u(Bt, {}),
475
475
  i.t("image-panel.arrange.forward")
476
476
  ] }) }) }),
477
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Ce, { onClick: () => {
477
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
478
478
  d(
479
479
  1
480
480
  /* backward */
481
481
  );
482
- }, children: /* @__PURE__ */ O("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
482
+ }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
483
483
  /* @__PURE__ */ u(Lt, {}),
484
484
  i.t("image-panel.arrange.backward")
485
485
  ] }) }) })
486
486
  ] }),
487
- /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
488
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Ce, { onClick: () => {
487
+ /* @__PURE__ */ x("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
488
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
489
489
  d(
490
490
  2
491
491
  /* front */
492
492
  );
493
- }, children: /* @__PURE__ */ O("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
493
+ }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
494
494
  /* @__PURE__ */ u(Ft, {}),
495
495
  i.t("image-panel.arrange.front")
496
496
  ] }) }) }),
497
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Ce, { onClick: () => {
497
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
498
498
  d(
499
499
  3
500
500
  /* back */
501
501
  );
502
- }, children: /* @__PURE__ */ O("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
502
+ }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
503
503
  /* @__PURE__ */ u(jt, {}),
504
504
  i.t("image-panel.arrange.back")
505
505
  ] }) }) })
506
506
  ] })
507
507
  ] });
508
508
  }
509
- function Sn(n) {
510
- var m, f;
511
- const { pageId: e, unitId: t } = n, i = R(Q), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
512
- if (!a) return null;
513
- const c = a.getTransformer();
509
+ function pn(n) {
510
+ var p, f;
511
+ const { pageId: e, unitId: t } = n, i = O(Q), r = O(T), s = O(U), o = r.getRenderUnitByPageId(e, t), c = o == null ? void 0 : o.scene;
514
512
  if (!c) return null;
515
- const l = c.getSelectedObjectMap().values().next().value;
513
+ const a = c.getTransformer();
514
+ if (!a) return null;
515
+ const l = a.getSelectedObjectMap().values().next().value;
516
516
  if (!l) return null;
517
- const [d, v] = Li.useState((f = (m = l.fill) == null ? void 0 : m.toString()) != null ? f : "");
518
- function _(g) {
517
+ const [d, g] = $((f = (p = l.fill) == null ? void 0 : p.toString()) != null ? f : "");
518
+ function m(v) {
519
519
  l == null || l.setProps({
520
- fill: g
521
- }), s.executeCommand($.id, {
520
+ fill: v
521
+ }), s.executeCommand(H.id, {
522
522
  unitId: t,
523
523
  oKey: l == null ? void 0 : l.oKey,
524
524
  props: {
525
525
  shape: {
526
526
  shapeProperties: {
527
527
  shapeBackgroundFill: {
528
- rgb: g
528
+ rgb: v
529
529
  }
530
530
  }
531
531
  }
532
532
  }
533
- }), v(g);
533
+ }), g(v);
534
534
  }
535
535
  return /* @__PURE__ */ u(
536
536
  "div",
537
537
  {
538
538
  className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Tt),
539
- children: /* @__PURE__ */ O("div", { className: "univer-relative univer-w-full", children: [
539
+ children: /* @__PURE__ */ x("div", { className: "univer-relative univer-w-full", children: [
540
540
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u(
541
541
  "div",
542
542
  {
@@ -545,18 +545,18 @@ function Sn(n) {
545
545
  }
546
546
  ) }),
547
547
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(
548
- wt,
548
+ Pt,
549
549
  {
550
550
  overlay: /* @__PURE__ */ u("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ u(
551
- ji,
551
+ Ui,
552
552
  {
553
553
  value: "#fff",
554
- onChange: _
554
+ onChange: m
555
555
  }
556
556
  ) }),
557
- children: /* @__PURE__ */ O("a", { className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1", children: [
557
+ children: /* @__PURE__ */ x("a", { className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1", children: [
558
558
  /* @__PURE__ */ u($t, { className: "univer-fill-primary-600" }),
559
- /* @__PURE__ */ u(Ge, {})
559
+ /* @__PURE__ */ u(Xe, {})
560
560
  ] })
561
561
  }
562
562
  ) }) })
@@ -564,87 +564,87 @@ function Sn(n) {
564
564
  }
565
565
  );
566
566
  }
567
- function Cn(n) {
568
- const { pageId: e, unitId: t } = n, i = R(Q), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
569
- if (!a) return null;
570
- const c = a.getTransformer();
567
+ function mn(n) {
568
+ const { pageId: e, unitId: t } = n, i = O(Q), r = O(T), s = O(U), o = r.getRenderUnitByPageId(e, t), c = o == null ? void 0 : o.scene;
571
569
  if (!c) return null;
572
- const l = c.getSelectedObjectMap().values().next().value;
570
+ const a = c.getTransformer();
571
+ if (!a) return null;
572
+ const l = a.getSelectedObjectMap().values().next().value;
573
573
  if (!l) return null;
574
574
  const {
575
575
  width: d = 0,
576
- height: v = 0,
577
- left: _ = 0,
578
- top: m = 0,
576
+ height: g = 0,
577
+ left: m = 0,
578
+ top: p = 0,
579
579
  angle: f = 0
580
- } = l, [g, p] = k(d), [I, b] = k(v), [w, M] = k(_), [V, x] = k(m), [z, se] = k(f), L = (S) => {
581
- const { objects: oe } = S, ae = oe.values().next().value, {
582
- width: ei = 0,
583
- height: ti = 0,
584
- left: ii = 0,
585
- top: ni = 0,
586
- angle: ri = 0
587
- } = ae;
588
- p(ei), b(ti), M(ii), x(ni), se(ri);
580
+ } = l, [v, _] = $(d), [I, b] = $(g), [P, M] = $(m), [V, R] = $(p), [z, se] = $(f), L = (C) => {
581
+ const { objects: oe } = C, ce = oe.values().next().value, {
582
+ width: Jt = 0,
583
+ height: Qt = 0,
584
+ left: ei = 0,
585
+ top: ti = 0,
586
+ angle: ii = 0
587
+ } = ce;
588
+ _(Jt), b(Qt), M(ei), R(ti), se(ii);
589
589
  };
590
590
  he(() => {
591
- const S = c.changeStart$.subscribe((ae) => {
592
- L(ae);
593
- }), oe = c.changing$.subscribe((ae) => {
594
- L(ae);
591
+ const C = a.changeStart$.subscribe((ce) => {
592
+ L(ce);
593
+ }), oe = a.changing$.subscribe((ce) => {
594
+ L(ce);
595
595
  });
596
596
  return () => {
597
- oe.unsubscribe(), S.unsubscribe();
597
+ oe.unsubscribe(), C.unsubscribe();
598
598
  };
599
599
  }, []);
600
- function B(S) {
601
- !S || !l || (s.executeCommand($.id, {
600
+ function B(C) {
601
+ !C || !l || (s.executeCommand(H.id, {
602
602
  pageId: e,
603
603
  oKey: l.oKey,
604
604
  props: {
605
- width: S
605
+ width: C
606
606
  }
607
- }), l == null || l.resize(S, l.height), p(S), c == null || c.refreshControls());
607
+ }), l == null || l.resize(C, l.height), _(C), a == null || a.refreshControls());
608
608
  }
609
- function ee(S) {
610
- !S || !l || (s.executeCommand($.id, {
609
+ function ee(C) {
610
+ !C || !l || (s.executeCommand(H.id, {
611
611
  pageId: e,
612
612
  oKey: l.oKey,
613
613
  props: {
614
- height: S
614
+ height: C
615
615
  }
616
- }), l == null || l.resize(l.width, S), b(S), c == null || c.refreshControls());
616
+ }), l == null || l.resize(l.width, C), b(C), a == null || a.refreshControls());
617
617
  }
618
- function te(S) {
619
- !S || !l || (s.executeCommand($.id, {
618
+ function te(C) {
619
+ !C || !l || (s.executeCommand(H.id, {
620
620
  pageId: e,
621
621
  oKey: l.oKey,
622
622
  props: {
623
- left: S
623
+ left: C
624
624
  }
625
- }), l == null || l.translate(S, l.top), M(S), c == null || c.refreshControls());
625
+ }), l == null || l.translate(C, l.top), M(C), a == null || a.refreshControls());
626
626
  }
627
- function pe(S) {
628
- !S || !l || (s.executeCommand($.id, {
627
+ function _e(C) {
628
+ !C || !l || (s.executeCommand(H.id, {
629
629
  pageId: e,
630
630
  oKey: l.oKey,
631
631
  props: {
632
- right: S
632
+ right: C
633
633
  }
634
- }), l == null || l.translate(l.left, S), x(S), c == null || c.refreshControls());
634
+ }), l == null || l.translate(l.left, C), R(C), a == null || a.refreshControls());
635
635
  }
636
- function Se(S) {
637
- !S || !l || (s.executeCommand($.id, {
636
+ function Ce(C) {
637
+ !C || !l || (s.executeCommand(H.id, {
638
638
  pageId: e,
639
639
  oKey: l.oKey,
640
640
  props: {
641
- angle: S
641
+ angle: C
642
642
  }
643
643
  }), l == null || l.transformByState({
644
- angle: S
645
- }), se(S), c == null || c.refreshControls());
644
+ angle: C
645
+ }), se(C), a == null || a.refreshControls());
646
646
  }
647
- return /* @__PURE__ */ O(
647
+ return /* @__PURE__ */ x(
648
648
  "div",
649
649
  {
650
650
  className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Tt),
@@ -656,76 +656,76 @@ function Cn(n) {
656
656
  children: /* @__PURE__ */ u("div", { children: i.t("image-panel.transform.title") })
657
657
  }
658
658
  ) }),
659
- /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
660
- /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ O("label", { children: [
659
+ /* @__PURE__ */ x("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
660
+ /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
661
661
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: i.t("image-panel.transform.width") }) }),
662
662
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: /* @__PURE__ */ u(
663
- ce,
663
+ ae,
664
664
  {
665
665
  className: "univer-w-11/12",
666
666
  min: 1,
667
- value: g,
668
- onChange: (S) => {
669
- B(S);
667
+ value: v,
668
+ onChange: (C) => {
669
+ B(C);
670
670
  }
671
671
  }
672
672
  ) }) })
673
673
  ] }) }),
674
- /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ O("label", { children: [
674
+ /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
675
675
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: i.t("image-panel.transform.height") }) }),
676
676
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: /* @__PURE__ */ u(
677
- ce,
677
+ ae,
678
678
  {
679
679
  className: "univer-w-11/12",
680
680
  min: 1,
681
681
  value: I,
682
- onChange: (S) => {
683
- ee(S);
682
+ onChange: (C) => {
683
+ ee(C);
684
684
  }
685
685
  }
686
686
  ) }) })
687
687
  ] }) })
688
688
  ] }),
689
- /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
690
- /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ O("label", { children: [
689
+ /* @__PURE__ */ x("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: [
690
+ /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
691
691
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: i.t("image-panel.transform.x") }) }),
692
692
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: /* @__PURE__ */ u(
693
- ce,
693
+ ae,
694
694
  {
695
695
  className: "univer-w-11/12",
696
696
  precision: 1,
697
697
  min: 0,
698
- value: w,
699
- onChange: (S) => {
700
- te(S);
698
+ value: P,
699
+ onChange: (C) => {
700
+ te(C);
701
701
  }
702
702
  }
703
703
  ) }) })
704
704
  ] }) }),
705
- /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ O("label", { children: [
705
+ /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
706
706
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: i.t("image-panel.transform.y") }) }),
707
707
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: /* @__PURE__ */ u(
708
- ce,
708
+ ae,
709
709
  {
710
710
  className: "univer-w-11/12",
711
711
  precision: 1,
712
712
  min: 0,
713
713
  value: V,
714
- onChange: (S) => {
715
- pe(S);
714
+ onChange: (C) => {
715
+ _e(C);
716
716
  }
717
717
  }
718
718
  ) }) })
719
719
  ] }) }),
720
- /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ O("label", { children: [
720
+ /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
721
721
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: i.t("image-panel.transform.rotate") }) }),
722
722
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u("div", { className: "univer-w-full", children: /* @__PURE__ */ u(
723
- ce,
723
+ ae,
724
724
  {
725
725
  className: "univer-w-11/12",
726
726
  precision: 1,
727
727
  value: z,
728
- onChange: Se
728
+ onChange: Ce
729
729
  }
730
730
  ) }) })
731
731
  ] }) })
@@ -734,49 +734,49 @@ function Cn(n) {
734
734
  }
735
735
  );
736
736
  }
737
- const Oe = "COMPONENT_SLIDE_SIDEBAR";
738
- function In() {
737
+ const xe = "COMPONENT_SLIDE_SIDEBAR";
738
+ function _n() {
739
739
  var h, l, d;
740
- const n = R(y), e = R(T), t = n.getCurrentUnitForType(E.UNIVER_SLIDE), i = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
740
+ const n = O(w), e = O(T), t = n.getCurrentUnitForType(E.UNIVER_SLIDE), i = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
741
741
  if (!i) return null;
742
742
  const s = (l = e.getRenderUnitByPageId(i, i).scene) == null ? void 0 : l.getTransformer();
743
743
  if (!s) return null;
744
- const a = s.getSelectedObjectMap().values().next().value;
745
- if (!a)
744
+ const c = s.getSelectedObjectMap().values().next().value;
745
+ if (!c)
746
746
  return null;
747
- const c = ((d = n.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
748
- return /* @__PURE__ */ O("section", { className: "univer-p-2 univer-text-center univer-text-sm", children: [
749
- /* @__PURE__ */ u(pn, { pageId: i, unitId: c }),
750
- /* @__PURE__ */ u(Cn, { pageId: i, unitId: c }),
751
- a.objectType === le.RECT && /* @__PURE__ */ u(Sn, { pageId: i, unitId: c })
747
+ const a = ((d = n.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
748
+ return /* @__PURE__ */ x("section", { className: "univer-p-2 univer-text-center univer-text-sm", children: [
749
+ /* @__PURE__ */ u(fn, { pageId: i, unitId: a }),
750
+ /* @__PURE__ */ u(mn, { pageId: i, unitId: a }),
751
+ c.objectType === le.RECT && /* @__PURE__ */ u(pn, { pageId: i, unitId: a })
752
752
  ] });
753
753
  }
754
- const Ye = {
754
+ const Ge = {
755
755
  id: "slide.command.insert-float-shape",
756
756
  type: D.COMMAND,
757
757
  handler: async (n) => {
758
758
  var r;
759
- const e = n.get(U), i = (r = n.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
759
+ const e = n.get(U), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
760
760
  return e.executeCommand(Wt.id, { unitId: i });
761
761
  }
762
762
  }, Wt = {
763
763
  id: "slide.operation.insert-float-shape",
764
764
  type: D.OPERATION,
765
765
  handler: async (n, e) => {
766
- const t = St(6), i = n.get(y), r = e.unitId, s = i.getUnit(r);
766
+ const t = Ct(6), i = n.get(w), r = e.unitId, s = i.getUnit(r);
767
767
  if (!s) return !1;
768
- const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((v) => v.zIndex)) : 20, h = {
768
+ const o = s.getActivePage(), c = Object.values(o.pageElements), a = c != null && c.length ? Math.max(...c.map((g) => g.zIndex)) : 20, h = {
769
769
  id: t,
770
- zIndex: c + 1,
770
+ zIndex: a + 1,
771
771
  left: 378,
772
772
  top: 142,
773
773
  width: 250,
774
774
  height: 250,
775
775
  title: t,
776
776
  description: "",
777
- type: ke.SHAPE,
777
+ type: ze.SHAPE,
778
778
  shape: {
779
- shapeType: di.Rect,
779
+ shapeType: ai.Rect,
780
780
  text: "",
781
781
  shapeProperties: {
782
782
  shapeBackgroundFill: {
@@ -793,24 +793,24 @@ const Ye = {
793
793
  id: "sidebar.operation.slide-shape",
794
794
  type: D.COMMAND,
795
795
  handler: async (n, e) => {
796
- const { visible: t, objectType: i } = e, r = n.get(Pt), s = n.get(Q);
797
- let o = "", a = "";
798
- return i === le.RECT ? (o = "slide.sidebar.shape", a = Oe) : i === le.IMAGE ? (o = "slide.sidebar.image", a = Oe) : i === le.RICH_TEXT && (o = "slide.sidebar.text", a = Oe), t ? r.open({
796
+ const { visible: t, objectType: i } = e, r = n.get(yt), s = n.get(Q);
797
+ let o = "", c = "";
798
+ return i === le.RECT ? (o = "slide.sidebar.shape", c = xe) : i === le.IMAGE ? (o = "slide.sidebar.image", c = xe) : i === le.RICH_TEXT && (o = "slide.sidebar.text", c = xe), t ? r.open({
799
799
  header: { title: s.t(o) },
800
- children: { label: a },
800
+ children: { label: c },
801
801
  onClose: () => {
802
802
  },
803
803
  width: 360
804
804
  }) : r.close(), !0;
805
805
  }
806
- }, zt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
807
- var bn = Object.getOwnPropertyDescriptor, En = (n, e, t, i) => {
808
- for (var r = i > 1 ? void 0 : i ? bn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
806
+ }, kt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
807
+ var Cn = Object.getOwnPropertyDescriptor, Sn = (n, e, t, i) => {
808
+ for (var r = i > 1 ? void 0 : i ? Cn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
809
809
  (o = n[s]) && (r = o(r) || r);
810
810
  return r;
811
811
  }, Ie = (n, e) => (t, i) => e(t, i, n);
812
- function On(n, e) {
813
- const t = vt(n.left, n.top, e), i = vt(n.right, n.bottom, e);
812
+ function In(n, e) {
813
+ const t = gt(n.left, n.top, e), i = gt(n.right, n.bottom, e);
814
814
  return {
815
815
  left: t.x,
816
816
  top: t.y,
@@ -818,37 +818,37 @@ function On(n, e) {
818
818
  bottom: i.y
819
819
  };
820
820
  }
821
- function vt(n, e, t) {
821
+ function gt(n, e, t) {
822
822
  const { scaleX: i, scaleY: r } = t.getAncestorScale(), s = t.getViewport(re.VIEW);
823
823
  if (!s)
824
824
  return {
825
825
  x: n,
826
826
  y: e
827
827
  };
828
- const { viewportScrollX: o, viewportScrollY: a } = s, c = (n - o) * i, h = (e - a) * r;
828
+ const { viewportScrollX: o, viewportScrollY: c } = s, a = (n - o) * i, h = (e - c) * r;
829
829
  return {
830
- x: c,
830
+ x: a,
831
831
  y: h
832
832
  };
833
833
  }
834
- let ye = class extends De {
834
+ let we = class extends De {
835
835
  constructor(n, e, t, i) {
836
836
  super(), this._globalPopupManagerService = n, this._renderManagerService = e, this._univerInstanceService = t, this._commandService = i;
837
837
  }
838
838
  _createObjectPositionObserver(n, e) {
839
839
  const i = (() => {
840
840
  var L, B, ee, te;
841
- const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = n, v = (o.width - ((B = (L = e.mainComponent) == null ? void 0 : L.width) != null ? B : 0)) / 2, _ = (o.height - ((te = (ee = e.mainComponent) == null ? void 0 : ee.height) != null ? te : 0)) / 2, m = {
842
- left: c,
843
- right: c + l,
841
+ const { scene: o, engine: c } = e, { left: a, top: h, width: l, height: d } = n, g = (o.width - ((B = (L = e.mainComponent) == null ? void 0 : L.width) != null ? B : 0)) / 2, m = (o.height - ((te = (ee = e.mainComponent) == null ? void 0 : ee.height) != null ? te : 0)) / 2, p = {
842
+ left: a,
843
+ right: a + l,
844
844
  top: h,
845
845
  bottom: h + d
846
- }, f = a.getCanvasElement(), g = f.getBoundingClientRect(), p = Oi(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), w = On(m, o), { top: M, left: V, width: x } = g, z = x / p;
846
+ }, f = c.getCanvasElement(), v = f.getBoundingClientRect(), _ = bi(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), P = In(p, o), { top: M, left: V, width: R } = v, z = R / _;
847
847
  return {
848
- left: w.left * z * I + V + v,
849
- right: w.right * z * I + V + v,
850
- top: w.top * z * b + M + _,
851
- bottom: w.bottom * z * b + M + _
848
+ left: P.left * z * I + V + g,
849
+ right: P.right * z * I + V + g,
850
+ top: P.top * z * b + M + m,
851
+ bottom: P.bottom * z * b + M + m
852
852
  };
853
853
  })(), r = new J(i), s = new Ke();
854
854
  return {
@@ -864,7 +864,7 @@ let ye = class extends De {
864
864
  dispose: () => {
865
865
  }
866
866
  };
867
- const { position: s, position$: o, disposable: a } = this._createObjectPositionObserver(n, r), c = this._globalPopupManagerService.addPopup({
867
+ const { position: s, position$: o, disposable: c } = this._createObjectPositionObserver(n, r), a = this._globalPopupManagerService.addPopup({
868
868
  ...e,
869
869
  unitId: i,
870
870
  subUnitId: "default",
@@ -874,27 +874,27 @@ let ye = class extends De {
874
874
  });
875
875
  return {
876
876
  dispose: () => {
877
- this._globalPopupManagerService.removePopup(c), o.complete(), a.dispose();
877
+ this._globalPopupManagerService.removePopup(a), o.complete(), c.dispose();
878
878
  }
879
879
  };
880
880
  }
881
881
  };
882
- ye = En([
883
- Ie(0, X(Ri)),
884
- Ie(1, G),
885
- Ie(2, y),
882
+ we = Sn([
883
+ Ie(0, Z(xi)),
884
+ Ie(1, X),
885
+ Ie(2, w),
886
886
  Ie(3, U)
887
- ], ye);
888
- var xn = Object.getOwnPropertyDescriptor, Rn = (n, e, t, i) => {
889
- for (var r = i > 1 ? void 0 : i ? xn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
887
+ ], we);
888
+ var bn = Object.getOwnPropertyDescriptor, En = (n, e, t, i) => {
889
+ for (var r = i > 1 ? void 0 : i ? bn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
890
890
  (o = n[s]) && (r = o(r) || r);
891
891
  return r;
892
- }, Z = (n, e) => (t, i) => e(t, i, n);
893
- let Pe = class extends ve {
894
- constructor(e, t, i, r, s, o, a) {
892
+ }, Y = (n, e) => (t, i) => e(t, i, n);
893
+ let ye = class extends ge {
894
+ constructor(e, t, i, r, s, o, c) {
895
895
  super();
896
- C(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
897
- this._canvasPopManagerService = e, this._renderManagerService = t, this._univerInstanceService = i, this._contextService = r, this._canvasView = s, this._sidebarService = o, this._commandService = a, this._init();
896
+ S(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
897
+ this._canvasPopManagerService = e, this._renderManagerService = t, this._univerInstanceService = i, this._contextService = r, this._canvasView = s, this._sidebarService = o, this._commandService = c, this._init();
898
898
  }
899
899
  _init() {
900
900
  this._univerInstanceService.getAllUnitsForType(E.UNIVER_SLIDE).forEach((e) => this._create(e));
@@ -913,27 +913,27 @@ let Pe = class extends ve {
913
913
  const t = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE), i = (r = t == null ? void 0 : t.getPages()) != null ? r : {};
914
914
  Object.keys(i).forEach((s) => {
915
915
  var h;
916
- const a = (h = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : h.getTransformer();
917
- if (!a) return;
918
- let c;
916
+ const c = (h = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : h.getTransformer();
917
+ if (!c) return;
918
+ let a;
919
919
  this.disposeWithMe(
920
- Ct(
921
- a.createControl$.subscribe(() => {
922
- const l = a.getSelectedObjectMap();
920
+ St(
921
+ c.createControl$.subscribe(() => {
922
+ const l = c.getSelectedObjectMap();
923
923
  if (l.size > 1) {
924
- c == null || c.dispose();
924
+ a == null || a.dispose();
925
925
  return;
926
926
  }
927
927
  const d = l.values().next().value;
928
928
  if (!d)
929
929
  return;
930
- const v = d.oKey;
931
- c == null || c.dispose(), c = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(d, {
932
- componentKey: zt,
930
+ const g = d.oKey;
931
+ a == null || a.dispose(), a = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(d, {
932
+ componentKey: kt,
933
933
  direction: "horizontal",
934
934
  offset: [2, 0],
935
935
  extraProps: {
936
- menuItems: this._getMenuItemsByObjectType(d.objectType, v, e)
936
+ menuItems: this._getMenuItemsByObjectType(d.objectType, g, e)
937
937
  }
938
938
  })), this._sidebarService.visible && this._commandService.executeCommand(Be.id, {
939
939
  visible: !0,
@@ -942,19 +942,19 @@ let Pe = class extends ve {
942
942
  })
943
943
  )
944
944
  ), this.disposeWithMe(
945
- a.clearControl$.subscribe(() => {
946
- c == null || c.dispose(), this._contextService.setContextValue(ui, !1);
945
+ c.clearControl$.subscribe(() => {
946
+ a == null || a.dispose(), this._contextService.setContextValue(li, !1);
947
947
  })
948
948
  ), this.disposeWithMe(
949
- a.changing$.subscribe(() => {
950
- c == null || c.dispose();
951
- const l = a.getSelectedObjectMap();
949
+ c.changing$.subscribe(() => {
950
+ a == null || a.dispose();
951
+ const l = c.getSelectedObjectMap();
952
952
  if (l.size > 1) {
953
- c == null || c.dispose();
953
+ a == null || a.dispose();
954
954
  return;
955
955
  }
956
956
  const d = l.values().next().value;
957
- d && this._commandService.executeCommand($.id, {
957
+ d && this._commandService.executeCommand(H.id, {
958
958
  unitId: e,
959
959
  oKey: d.oKey,
960
960
  props: {
@@ -990,46 +990,46 @@ let Pe = class extends ve {
990
990
  }];
991
991
  }
992
992
  };
993
- Pe = Rn([
994
- Z(0, X(ye)),
995
- Z(1, G),
996
- Z(2, y),
997
- Z(3, fe),
998
- Z(4, X(T)),
999
- Z(5, Pt),
1000
- Z(6, U)
1001
- ], Pe);
1002
- const we = {
993
+ ye = En([
994
+ Y(0, Z(we)),
995
+ Y(1, X),
996
+ Y(2, w),
997
+ Y(3, fe),
998
+ Y(4, Z(T)),
999
+ Y(5, yt),
1000
+ Y(6, U)
1001
+ ], ye);
1002
+ const Pe = {
1003
1003
  id: "slide.operation.edit-arrow",
1004
1004
  type: D.OPERATION,
1005
1005
  handler: () => !0
1006
- }, de = hi("SLIDE_EDITOR");
1007
- var yn = Object.getOwnPropertyDescriptor, Pn = (n, e, t, i) => {
1008
- for (var r = i > 1 ? void 0 : i ? yn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1006
+ }, de = di("SLIDE_EDITOR");
1007
+ var xn = Object.getOwnPropertyDescriptor, Rn = (n, e, t, i) => {
1008
+ for (var r = i > 1 ? void 0 : i ? xn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1009
1009
  (o = n[s]) && (r = o(r) || r);
1010
1010
  return r;
1011
1011
  }, Ve = (n, e) => (t, i) => e(t, i, n);
1012
- const Ze = It("univer.slide-editor-bridge.service");
1012
+ const Ye = It("univer.slide-editor-bridge.service");
1013
1013
  let $e = class extends De {
1014
1014
  constructor(e, t, i) {
1015
1015
  super();
1016
- C(this, "_editorUnitId", de);
1017
- C(this, "_isForceKeepVisible", !1);
1018
- C(this, "_editorIsDirty", !1);
1019
- C(this, "_currentEditRectState", null);
1020
- C(this, "_currentEditRectState$", new J(null));
1021
- C(this, "currentEditRectState$", this._currentEditRectState$.asObservable());
1022
- C(this, "_visibleParam", {
1016
+ S(this, "_editorUnitId", de);
1017
+ S(this, "_isForceKeepVisible", !1);
1018
+ S(this, "_editorIsDirty", !1);
1019
+ S(this, "_currentEditRectState", null);
1020
+ S(this, "_currentEditRectState$", new J(null));
1021
+ S(this, "currentEditRectState$", this._currentEditRectState$.asObservable());
1022
+ S(this, "_visibleParam", {
1023
1023
  visible: !1,
1024
1024
  eventType: q.Dblclick,
1025
1025
  unitId: ""
1026
1026
  });
1027
- C(this, "_visible$", new J(this._visibleParam));
1028
- C(this, "visible$", this._visible$.asObservable());
1029
- C(this, "_afterVisible$", new J(this._visibleParam));
1030
- C(this, "afterVisible$", this._afterVisible$.asObservable());
1031
- C(this, "endEditing$", new Nt());
1032
- C(this, "_currentEditRectInfo");
1027
+ S(this, "_visible$", new J(this._visibleParam));
1028
+ S(this, "visible$", this._visible$.asObservable());
1029
+ S(this, "_afterVisible$", new J(this._visibleParam));
1030
+ S(this, "afterVisible$", this._afterVisible$.asObservable());
1031
+ S(this, "endEditing$", new Nt());
1032
+ S(this, "_currentEditRectInfo");
1033
1033
  this._editorService = e, this._contextService = t, this._renderManagerService = i;
1034
1034
  }
1035
1035
  dispose() {
@@ -1043,7 +1043,7 @@ let $e = class extends De {
1043
1043
  * @editorInfo editorInfo
1044
1044
  */
1045
1045
  setEditorRect(e) {
1046
- this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(de), this._contextService.setContextValue(xe, !1), this._contextService.setContextValue(bt, !1), this._contextService.setContextValue(Et, !1));
1046
+ this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(de), this._contextService.setContextValue(Re, !1), this._contextService.setContextValue(bt, !1), this._contextService.setContextValue(Et, !1));
1047
1047
  const t = this.getEditRectState();
1048
1048
  this._currentEditRectState = t, this._currentEditRectState$.next(t);
1049
1049
  }
@@ -1063,26 +1063,26 @@ let $e = class extends De {
1063
1063
  pageSize: { width: t.richTextObj.width, height: 1 / 0 }
1064
1064
  };
1065
1065
  const o = {
1066
- documentModel: new gi(r),
1066
+ documentModel: new ui(r),
1067
1067
  fontString: "document",
1068
1068
  textRotation: { a: 0, v: 0 },
1069
1069
  wrapStrategy: 0,
1070
- verticalAlign: Re.TOP,
1071
- horizontalAlign: Ot.LEFT,
1070
+ verticalAlign: Oe.TOP,
1071
+ horizontalAlign: xt.LEFT,
1072
1072
  paddingData: { t: 0, b: 1, l: 2, r: 2 }
1073
- }, a = t.richTextObj.width, c = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1073
+ }, c = t.richTextObj.width, a = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1074
1074
  left: 0,
1075
1075
  top: 0
1076
- }, v = this._renderManagerService.getRenderById(i), _ = v == null ? void 0 : v.scene, m = _ == null ? void 0 : _.getViewport(re.VIEW), f = _ == null ? void 0 : _.getObject(re.COMPONENT), g = {
1076
+ }, g = this._renderManagerService.getRenderById(i), m = g == null ? void 0 : g.scene, p = m == null ? void 0 : m.getViewport(re.VIEW), f = m == null ? void 0 : m.getObject(re.COMPONENT), v = {
1077
1077
  x: (f == null ? void 0 : f.left) || 0,
1078
1078
  y: (f == null ? void 0 : f.top) || 0
1079
- }, p = (m == null ? void 0 : m.viewportScrollX) || 0, I = (m == null ? void 0 : m.viewportScrollY) || 0;
1080
- return d.left = g.x - p, d.top = g.y - I, {
1079
+ }, _ = (p == null ? void 0 : p.viewportScrollX) || 0, I = (p == null ? void 0 : p.viewportScrollY) || 0;
1080
+ return d.left = v.x - _, d.top = v.y - I, {
1081
1081
  position: {
1082
1082
  startX: h,
1083
1083
  startY: l,
1084
- endX: h + a,
1085
- endY: l + c
1084
+ endX: h + c,
1085
+ endY: l + a
1086
1086
  },
1087
1087
  scaleX: 1,
1088
1088
  scaleY: 1,
@@ -1135,7 +1135,7 @@ let $e = class extends De {
1135
1135
  textStyle: { fs: r },
1136
1136
  renderConfig: {
1137
1137
  // horizontalAlign: HorizontalAlign.CENTER,
1138
- verticalAlign: Re.MIDDLE,
1138
+ verticalAlign: Oe.MIDDLE,
1139
1139
  centerAngle: 0,
1140
1140
  vertexAngle: 0,
1141
1141
  wrapStrategy: 0
@@ -1147,22 +1147,22 @@ let $e = class extends De {
1147
1147
  };
1148
1148
  }
1149
1149
  };
1150
- $e = Pn([
1151
- Ve(0, Xe),
1150
+ $e = Rn([
1151
+ Ve(0, Ze),
1152
1152
  Ve(1, fe),
1153
- Ve(2, G)
1153
+ Ve(2, X)
1154
1154
  ], $e);
1155
- class wn {
1155
+ class On {
1156
1156
  constructor() {
1157
- C(this, "_state", null);
1158
- C(this, "_rect", null);
1159
- C(this, "_state$", new J(null));
1160
- C(this, "state$", this._state$.asObservable());
1161
- C(this, "_rect$", new J(null));
1162
- C(this, "rect$", this._rect$.asObservable());
1163
- C(this, "_focus", !1);
1164
- C(this, "_focus$", new J(this._focus));
1165
- C(this, "focus$", this._focus$.asObservable());
1157
+ S(this, "_state", null);
1158
+ S(this, "_rect", null);
1159
+ S(this, "_state$", new J(null));
1160
+ S(this, "state$", this._state$.asObservable());
1161
+ S(this, "_rect$", new J(null));
1162
+ S(this, "rect$", this._rect$.asObservable());
1163
+ S(this, "_focus", !1);
1164
+ S(this, "_focus$", new J(this._focus));
1165
+ S(this, "focus$", this._focus$.asObservable());
1166
1166
  }
1167
1167
  dispose() {
1168
1168
  this._state$.complete(), this._state = null, this._rect$.complete(), this._rect = null;
@@ -1189,27 +1189,27 @@ class wn {
1189
1189
  const qe = It(
1190
1190
  "univer.slide-editor-manager.service"
1191
1191
  );
1192
- var Y = /* @__PURE__ */ ((n) => (n[n.InitialState = 0] = "InitialState", n[n.StartEditor = 1] = "StartEditor", n[n.CursorChange = 2] = "CursorChange", n))(Y || {}), Tn = Object.getOwnPropertyDescriptor, Mn = (n, e, t, i) => {
1193
- for (var r = i > 1 ? void 0 : i ? Tn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1192
+ var G = /* @__PURE__ */ ((n) => (n[n.InitialState = 0] = "InitialState", n[n.StartEditor = 1] = "StartEditor", n[n.CursorChange = 2] = "CursorChange", n))(G || {}), wn = Object.getOwnPropertyDescriptor, yn = (n, e, t, i) => {
1193
+ for (var r = i > 1 ? void 0 : i ? wn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1194
1194
  (o = n[s]) && (r = o(r) || r);
1195
1195
  return r;
1196
1196
  }, A = (n, e) => (t, i) => e(t, i, n);
1197
- const ft = -1e3, mt = 5, Nn = 2;
1197
+ const ft = -1e3, pt = 5, Pn = 2;
1198
1198
  let He = class extends De {
1199
- constructor(e, t, i, r, s, o, a, c, h, l, d, v) {
1199
+ constructor(e, t, i, r, s, o, c, a, h, l, d, g) {
1200
1200
  super();
1201
1201
  /**
1202
1202
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
1203
1203
  */
1204
- C(this, "_cursorChange", Y.InitialState);
1204
+ S(this, "_cursorChange", G.InitialState);
1205
1205
  /** If the corresponding unit is active and prepared for editing. */
1206
- C(this, "_isUnitEditing", !1);
1207
- C(this, "_d");
1208
- this._renderContext = e, this._layoutService = t, this._undoRedoService = i, this._contextService = r, this._instanceSrv = s, this._renderManagerService = o, this._editorBridgeService = a, this._cellEditorManagerService = c, this._textSelectionManagerService = h, this._commandService = l, this._localService = d, this._editorService = v, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((_) => {
1209
- _ && _.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1206
+ S(this, "_isUnitEditing", !1);
1207
+ S(this, "_d");
1208
+ this._renderContext = e, this._layoutService = t, this._undoRedoService = i, this._contextService = r, this._instanceSrv = s, this._renderManagerService = o, this._editorBridgeService = c, this._cellEditorManagerService = a, this._textSelectionManagerService = h, this._commandService = l, this._localService = d, this._editorService = g, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((m) => {
1209
+ m && m.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1210
1210
  visible: !1,
1211
1211
  eventType: q.Keyboard,
1212
- keycode: P.ESC,
1212
+ keycode: y.ESC,
1213
1213
  unitId: this._renderContext.unitId
1214
1214
  }), this._isUnitEditing = !1));
1215
1215
  })), this._initEditorVisibilityListener();
@@ -1246,7 +1246,7 @@ let He = class extends De {
1246
1246
  return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(dt).getViewModel();
1247
1247
  }
1248
1248
  _initialCursorSync(e) {
1249
- e.add(this._cellEditorManagerService.focus$.pipe(Hi((t) => !!t)).subscribe(() => {
1249
+ e.add(this._cellEditorManagerService.focus$.pipe(Li((t) => !!t)).subscribe(() => {
1250
1250
  var t;
1251
1251
  (t = Le(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(ut).sync();
1252
1252
  }));
@@ -1262,11 +1262,11 @@ let He = class extends De {
1262
1262
  return;
1263
1263
  const {
1264
1264
  position: { startX: i, endX: r },
1265
- documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: a },
1266
- scaleX: c,
1265
+ documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: c },
1266
+ scaleX: a,
1267
1267
  editorUnitId: h
1268
1268
  } = t, { vertexAngle: l } = nt(s);
1269
- a.updateDocumentId(h), o === et.WRAP && l === 0 && a.updateDocumentDataPageSize((r - i) / c), this._instanceSrv.changeDoc(h, a), this._contextService.setContextValue(fi, !0), this._textSelectionManagerService.replaceTextRanges([{
1269
+ c.updateDocumentId(h), o === et.WRAP && l === 0 && c.updateDocumentDataPageSize((r - i) / a), this._instanceSrv.changeDoc(h, c), this._contextService.setContextValue(vi, !0), this._textSelectionManagerService.replaceTextRanges([{
1270
1270
  startOffset: 0,
1271
1271
  endOffset: 0
1272
1272
  }]), (d = Le(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || d.with(ut).activate(ft, ft);
@@ -1282,88 +1282,88 @@ let He = class extends De {
1282
1282
  * @param scaleY
1283
1283
  */
1284
1284
  _fitTextSize(e, t, i, r, s = 1, o = 1) {
1285
- const { startX: a, startY: c, endX: h, endY: l } = e, d = r.documentModel;
1285
+ const { startX: c, startY: a, endX: h, endY: l } = e, d = r.documentModel;
1286
1286
  if (d == null)
1287
1287
  return;
1288
- const { actualWidth: v, actualHeight: _ } = this._predictingSize(
1288
+ const { actualWidth: g, actualHeight: m } = this._predictingSize(
1289
1289
  e,
1290
1290
  t,
1291
1291
  i,
1292
1292
  r,
1293
1293
  s,
1294
1294
  o
1295
- ), { verticalAlign: m, paddingData: f, fill: g } = r;
1296
- let p = h - a, I = l - c;
1297
- if (p < v && (p = v), I < _)
1298
- I = _, d.updateDocumentDataMargin(f);
1295
+ ), { verticalAlign: p, paddingData: f, fill: v } = r;
1296
+ let _ = h - c, I = l - a;
1297
+ if (_ < g && (_ = g), I < m)
1298
+ I = m, d.updateDocumentDataMargin(f);
1299
1299
  else {
1300
1300
  let b = 0;
1301
- m === Re.MIDDLE ? b = (I - _) / 2 / o : m === Re.TOP ? b = f.t || 0 : b = (I - _) / o - (f.b || 0), b = b < (f.t || 0) ? f.t || 0 : b, d.updateDocumentDataMargin({
1301
+ p === Oe.MIDDLE ? b = (I - m) / 2 / o : p === Oe.TOP ? b = f.t || 0 : b = (I - m) / o - (f.b || 0), b = b < (f.t || 0) ? f.t || 0 : b, d.updateDocumentDataMargin({
1302
1302
  t: b
1303
1303
  });
1304
1304
  }
1305
- i.calculate(), this._editAreaProcessing(p, I, e, t, g, s, o);
1305
+ i.calculate(), this._editAreaProcessing(_, I, e, t, v, s, o);
1306
1306
  }
1307
1307
  /**
1308
1308
  * Mainly used to pre-calculate the width of the editor,
1309
1309
  * to determine whether it needs to be automatically widened.
1310
1310
  */
1311
1311
  _predictingSize(e, t, i, r, s = 1, o = 1) {
1312
- const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: v } = nt(h), _ = document.body.clientWidth;
1313
- if (l === et.WRAP && v === 0) {
1314
- const { actualWidth: g, actualHeight: p } = i.getActualSize();
1312
+ const { startX: c, endX: a } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: g } = nt(h), m = document.body.clientWidth;
1313
+ if (l === et.WRAP && g === 0) {
1314
+ const { actualWidth: v, actualHeight: _ } = i.getActualSize();
1315
1315
  return {
1316
- actualWidth: g * s,
1317
- actualHeight: p * o
1316
+ actualWidth: v * s,
1317
+ actualHeight: _ * o
1318
1318
  };
1319
1319
  }
1320
- d == null || d.updateDocumentDataPageSize((_ - a - t.left) / s), i.calculate();
1321
- const m = i.getActualSize();
1322
- let f = c - a;
1323
- return f < m.actualWidth * s + mt * s && (f = m.actualWidth * s + mt * s), d == null || d.updateDocumentDataPageSize(f / s), d == null || d.updateDocumentRenderConfig({
1324
- horizontalAlign: Ot.UNSPECIFIED,
1320
+ d == null || d.updateDocumentDataPageSize((m - c - t.left) / s), i.calculate();
1321
+ const p = i.getActualSize();
1322
+ let f = a - c;
1323
+ return f < p.actualWidth * s + pt * s && (f = p.actualWidth * s + pt * s), d == null || d.updateDocumentDataPageSize(f / s), d == null || d.updateDocumentRenderConfig({
1324
+ horizontalAlign: xt.UNSPECIFIED,
1325
1325
  cellValueType: void 0
1326
1326
  }), {
1327
1327
  actualWidth: f,
1328
- actualHeight: m.actualHeight * o
1328
+ actualHeight: p.actualHeight * o
1329
1329
  };
1330
1330
  }
1331
1331
  /**
1332
1332
  * control the size of editing area
1333
1333
  */
1334
1334
  // eslint-disable-next-line max-lines-per-function
1335
- _editAreaProcessing(e, t, i, r, s, o = 1, a = 1) {
1336
- var S;
1337
- const c = this._getEditorObject();
1338
- if (c == null)
1335
+ _editAreaProcessing(e, t, i, r, s, o = 1, c = 1) {
1336
+ var C;
1337
+ const a = this._getEditorObject();
1338
+ if (a == null)
1339
1339
  return;
1340
1340
  function h(oe) {
1341
1341
  return Number.parseInt(oe.replace("px", ""));
1342
1342
  }
1343
- const d = this._renderContext.engine.getCanvasElement(), v = d.getBoundingClientRect(), _ = h(d.style.width), { top: m, left: f, width: g } = v, p = g / _;
1343
+ const d = this._renderContext.engine.getCanvasElement(), g = d.getBoundingClientRect(), m = h(d.style.width), { top: p, left: f, width: v } = g, _ = v / m;
1344
1344
  let { startX: I, startY: b } = i;
1345
1345
  I += r.left, b += r.top;
1346
- const { document: w, scene: M, engine: V } = c, x = M.getViewport(ht.VIEW_MAIN), z = document.body.clientHeight - b - r.top - Nn * 2, se = document.body.clientWidth - I - r.left;
1347
- let L = t, B = x == null ? void 0 : x.getScrollBar();
1348
- L > z ? (L = z, B == null ? x && new Rt(x, { enableHorizontal: !1, barSize: 8 }) : x == null || x.resetCanvasSizeAndUpdateScroll()) : (B = null, (S = x == null ? void 0 : x.getScrollBar()) == null || S.dispose()), e += (B == null ? void 0 : B.barSize) || 0, e = Math.min(e, se), I -= ne, b -= ne, this._addBackground(M, e / o, t / a, s);
1346
+ const { document: P, scene: M, engine: V } = a, R = M.getViewport(ht.VIEW_MAIN), z = document.body.clientHeight - b - r.top - Pn * 2, se = document.body.clientWidth - I - r.left;
1347
+ let L = t, B = R == null ? void 0 : R.getScrollBar();
1348
+ L > z ? (L = z, B == null ? R && new Ot(R, { enableHorizontal: !1, barSize: 8 }) : R == null || R.resetCanvasSizeAndUpdateScroll()) : (B = null, (C = R == null ? void 0 : R.getScrollBar()) == null || C.dispose()), e += (B == null ? void 0 : B.barSize) || 0, e = Math.min(e, se), I -= ne, b -= ne, this._addBackground(M, e / o, t / c, s);
1349
1349
  const { scaleX: ee, scaleY: te } = M.getPrecisionScale();
1350
1350
  M.transformByState({
1351
- width: e * p / o,
1352
- height: t * p / a,
1353
- scaleX: o * p,
1354
- scaleY: a * p
1355
- }), w.resize(e / o, t / a), setTimeout(() => {
1351
+ width: e * _ / o,
1352
+ height: t * _ / c,
1353
+ scaleX: o * _,
1354
+ scaleY: c * _
1355
+ }), P.resize(e / o, t / c), setTimeout(() => {
1356
1356
  V.resizeBySize(
1357
1357
  rt(e, ee),
1358
1358
  rt(L, te)
1359
1359
  );
1360
1360
  }, 0);
1361
- const pe = this._layoutService.getContentElement().getBoundingClientRect(), Se = d.getBoundingClientRect();
1362
- I = I * p + (Se.left - pe.left), b = b * p + (Se.top - pe.top), this._cellEditorManagerService.setState({
1361
+ const _e = this._layoutService.getContentElement().getBoundingClientRect(), Ce = d.getBoundingClientRect();
1362
+ I = I * _ + (Ce.left - _e.left), b = b * _ + (Ce.top - _e.top), this._cellEditorManagerService.setState({
1363
1363
  startX: I,
1364
1364
  startY: b,
1365
- endX: e * p + I,
1366
- endY: L * p + b,
1365
+ endX: e * _ + I,
1366
+ endY: L * _ + b,
1367
1367
  show: !0
1368
1368
  });
1369
1369
  }
@@ -1374,14 +1374,14 @@ let He = class extends De {
1374
1374
  const s = "_backgroundRectHelperColor_", o = e.getObject(s);
1375
1375
  o == null && r == null || (o == null ? e.addObjects(
1376
1376
  [
1377
- new yt(s, {
1377
+ new wt(s, {
1378
1378
  width: t,
1379
1379
  height: i,
1380
1380
  fill: r,
1381
1381
  evented: !1
1382
1382
  })
1383
1383
  ],
1384
- zi
1384
+ Hi
1385
1385
  ) : r == null ? o.dispose() : (o.setProps({
1386
1386
  fill: r
1387
1387
  }), o.transformByState({
@@ -1398,9 +1398,9 @@ let He = class extends De {
1398
1398
  // first part: startEditing --> _updateEditor
1399
1399
  // 2nd part: startEditing --> changeVisible --> slide-editor-bridge.render-controller.ts@changeVisible --> _editorBridgeService.changeVisible
1400
1400
  _handleEditorVisible(e) {
1401
- var g, p;
1401
+ var v, _;
1402
1402
  const { eventType: t } = e;
1403
- this._cursorChange = [q.PointerDown, q.Dblclick].includes(t) ? Y.CursorChange : Y.StartEditor;
1403
+ this._cursorChange = [q.PointerDown, q.Dblclick].includes(t) ? G.CursorChange : G.StartEditor;
1404
1404
  const i = this._editorBridgeService.getEditRectState();
1405
1405
  if (i == null)
1406
1406
  return;
@@ -1408,31 +1408,31 @@ let He = class extends De {
1408
1408
  position: r,
1409
1409
  documentLayoutObject: s,
1410
1410
  slideCardOffset: o,
1411
- scaleX: a,
1412
- scaleY: c,
1411
+ scaleX: c,
1412
+ scaleY: a,
1413
1413
  editorUnitId: h,
1414
1414
  unitId: l
1415
1415
  } = i, d = this._getEditorObject();
1416
1416
  if (d == null)
1417
1417
  return;
1418
- const { scene: v } = d;
1419
- this._contextService.setContextValue(xe, !0);
1420
- const { documentModel: _ } = s, m = this._getEditorSkeleton(h);
1421
- if (!m || !_)
1418
+ const { scene: g } = d;
1419
+ this._contextService.setContextValue(Re, !0);
1420
+ const { documentModel: m } = s, p = this._getEditorSkeleton(h);
1421
+ if (!p || !m)
1422
1422
  return;
1423
- this._fitTextSize(r, o, m, s, a, c);
1424
- const f = _.getBody().dataStream.length - 2 || 0;
1425
- (g = v.getViewport(ht.VIEW_MAIN)) == null || g.scrollToViewportPos({
1423
+ this._fitTextSize(r, o, p, s, c, a);
1424
+ const f = m.getBody().dataStream.length - 2 || 0;
1425
+ (v = g.getViewport(ht.VIEW_MAIN)) == null || v.scrollToViewportPos({
1426
1426
  viewportScrollX: Number.POSITIVE_INFINITY
1427
1427
  }), this._textSelectionManagerService.replaceTextRanges([
1428
1428
  {
1429
1429
  startOffset: f,
1430
1430
  endOffset: f
1431
1431
  }
1432
- ]), (p = this._renderManagerService.getRenderById(l)) == null || p.scene.resetCursor();
1432
+ ]), (_ = this._renderManagerService.getRenderById(l)) == null || _.scene.resetCursor();
1433
1433
  }
1434
1434
  _resetBodyStyle(e, t = !1) {
1435
- e.dataStream = mi, e.textRuns != null && (e.textRuns.length === 1 && !t ? (e.textRuns[0].st = 0, e.textRuns[0].ed = 1) : e.textRuns = void 0), e.paragraphs != null && (e.paragraphs.length === 1 ? e.paragraphs[0].startIndex = 0 : e.paragraphs = [
1435
+ e.dataStream = gi, e.textRuns != null && (e.textRuns.length === 1 && !t ? (e.textRuns[0].st = 0, e.textRuns[0].ed = 1) : e.textRuns = void 0), e.paragraphs != null && (e.paragraphs.length === 1 ? e.paragraphs[0].startIndex = 0 : e.paragraphs = [
1436
1436
  {
1437
1437
  startIndex: 0
1438
1438
  }
@@ -1447,14 +1447,14 @@ let He = class extends De {
1447
1447
  _showEditorByKeyboard(e) {
1448
1448
  }
1449
1449
  _commandExecutedListener(e) {
1450
- const t = [we.id], i = [Wi.id];
1450
+ const t = [Pe.id], i = [$i.id];
1451
1451
  e.add(this._commandService.onCommandExecuted((r) => {
1452
1452
  this._editorService.getFocusId() === de && (t.includes(r.id) && this._moveCursorCmdHandler(r), i.includes(r.id) && this._editorBridgeService.isVisible() && this._editingChangedHandler());
1453
1453
  }));
1454
1454
  }
1455
1455
  _moveCursorCmdHandler(e) {
1456
1456
  const t = e.params, { keycode: i, isShift: r } = t;
1457
- i != null && this._cursorChange === Y.CursorChange ? this._moveInEditor(i, r) : this._editorBridgeService.changeVisible(t);
1457
+ i != null && this._cursorChange === G.CursorChange ? this._moveInEditor(i, r) : this._editorBridgeService.changeVisible(t);
1458
1458
  }
1459
1459
  _editingChangedHandler() {
1460
1460
  const e = this._editorBridgeService.getEditorRect();
@@ -1466,11 +1466,11 @@ let He = class extends De {
1466
1466
  this._handleEditorVisible({ visible: !0, eventType: 3, unitId: i });
1467
1467
  }
1468
1468
  _getEditorObject() {
1469
- return Dn(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1469
+ return Tn(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1470
1470
  }
1471
1471
  async _handleEditorInvisible(e) {
1472
1472
  const { keycode: t } = e;
1473
- if (this._cursorChange = Y.InitialState, this._exitInput(e), this._editorBridgeService.getEditRectState() == null)
1473
+ if (this._cursorChange = G.InitialState, this._exitInput(e), this._editorBridgeService.getEditRectState() == null)
1474
1474
  return;
1475
1475
  if (this._editorBridgeService.getEditorDirty() === !1) {
1476
1476
  this._moveCursor(t);
@@ -1479,7 +1479,7 @@ let He = class extends De {
1479
1479
  this._moveCursor(t);
1480
1480
  }
1481
1481
  _exitInput(e) {
1482
- this._contextService.setContextValue(xe, !1), this._cellEditorManagerService.setState({
1482
+ this._contextService.setContextValue(Re, !1), this._cellEditorManagerService.setState({
1483
1483
  show: e.visible
1484
1484
  });
1485
1485
  const t = this._editorBridgeService.getCurrentEditorId();
@@ -1488,22 +1488,22 @@ let He = class extends De {
1488
1488
  _moveCursor(e) {
1489
1489
  if (e != null)
1490
1490
  switch (j.LEFT, e) {
1491
- case P.ENTER:
1491
+ case y.ENTER:
1492
1492
  j.DOWN;
1493
1493
  break;
1494
- case P.TAB:
1494
+ case y.TAB:
1495
1495
  j.RIGHT;
1496
1496
  break;
1497
- case P.ARROW_DOWN:
1497
+ case y.ARROW_DOWN:
1498
1498
  j.DOWN;
1499
1499
  break;
1500
- case P.ARROW_UP:
1500
+ case y.ARROW_UP:
1501
1501
  j.UP;
1502
1502
  break;
1503
- case P.ARROW_LEFT:
1503
+ case y.ARROW_LEFT:
1504
1504
  j.LEFT;
1505
1505
  break;
1506
- case P.ARROW_RIGHT:
1506
+ case y.ARROW_RIGHT:
1507
1507
  j.RIGHT;
1508
1508
  break;
1509
1509
  }
@@ -1517,53 +1517,53 @@ let He = class extends De {
1517
1517
  if (!t)
1518
1518
  return;
1519
1519
  const { document: i } = t;
1520
- e.add(Ct(i.onPointerDown$.subscribeEvent(() => {
1521
- this._cursorChange === Y.StartEditor && (this._cursorChange = Y.CursorChange);
1520
+ e.add(St(i.onPointerDown$.subscribeEvent(() => {
1521
+ this._cursorChange === G.StartEditor && (this._cursorChange = G.CursorChange);
1522
1522
  })));
1523
1523
  }
1524
1524
  // TODO: @JOCS, is it necessary to move these commands MoveSelectionOperation\MoveCursorOperation to shortcut? and use multi-commands?
1525
1525
  _moveInEditor(e, t) {
1526
1526
  let i = j.LEFT;
1527
- e === P.ARROW_DOWN ? i = j.DOWN : e === P.ARROW_UP ? i = j.UP : e === P.ARROW_RIGHT && (i = j.RIGHT), t ? this._commandService.executeCommand(ki.id, {
1527
+ e === y.ARROW_DOWN ? i = j.DOWN : e === y.ARROW_UP ? i = j.UP : e === y.ARROW_RIGHT && (i = j.RIGHT), t ? this._commandService.executeCommand(Fi.id, {
1528
1528
  direction: i
1529
- }) : this._commandService.executeCommand(Ki.id, {
1529
+ }) : this._commandService.executeCommand(Wi.id, {
1530
1530
  direction: i
1531
1531
  });
1532
1532
  }
1533
1533
  };
1534
- He = Mn([
1535
- A(1, yi),
1536
- A(2, vi),
1534
+ He = yn([
1535
+ A(1, Ri),
1536
+ A(2, hi),
1537
1537
  A(3, fe),
1538
- A(4, y),
1539
- A(5, G),
1540
- A(6, Ze),
1538
+ A(4, w),
1539
+ A(5, X),
1540
+ A(6, Ye),
1541
1541
  A(7, qe),
1542
- A(8, X(Fi)),
1542
+ A(8, Z(Bi)),
1543
1543
  A(9, U),
1544
- A(10, X(Q)),
1545
- A(11, Xe)
1544
+ A(10, Z(Q)),
1545
+ A(11, Ze)
1546
1546
  ], He);
1547
- function Dn(n, e) {
1547
+ function Tn(n, e) {
1548
1548
  if (n == null)
1549
1549
  return;
1550
1550
  const t = e.getRenderById(n);
1551
1551
  if (t == null)
1552
1552
  return;
1553
- const { mainComponent: i, scene: r, engine: s, components: o } = t, a = i, c = o.get(Xi.BACKGROUND);
1553
+ const { mainComponent: i, scene: r, engine: s, components: o } = t, c = i, a = o.get(ki.BACKGROUND);
1554
1554
  return {
1555
- document: a,
1556
- docBackground: c,
1555
+ document: c,
1556
+ docBackground: a,
1557
1557
  scene: r,
1558
1558
  engine: s
1559
1559
  };
1560
1560
  }
1561
- var Un = Object.getOwnPropertyDescriptor, Vn = (n, e, t, i) => {
1562
- for (var r = i > 1 ? void 0 : i ? Un(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1561
+ var Mn = Object.getOwnPropertyDescriptor, Nn = (n, e, t, i) => {
1562
+ for (var r = i > 1 ? void 0 : i ? Mn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1563
1563
  (o = n[s]) && (r = o(r) || r);
1564
1564
  return r;
1565
1565
  }, je = (n, e) => (t, i) => e(t, i, n);
1566
- let Fe = class extends ve {
1566
+ let Fe = class extends ge {
1567
1567
  constructor(e, t, i, r) {
1568
1568
  super();
1569
1569
  /**
@@ -1572,9 +1572,9 @@ let Fe = class extends ve {
1572
1572
  // private _cursorChange: CursorChange = CursorChange.InitialState;
1573
1573
  /** If the corresponding unit is active and prepared for editing. */
1574
1574
  // private _isUnitEditing = false;
1575
- C(this, "setSlideTextEditor$", new Nt());
1576
- C(this, "_curRichText", null);
1577
- C(this, "_d");
1575
+ S(this, "setSlideTextEditor$", new Nt());
1576
+ S(this, "_curRichText", null);
1577
+ S(this, "_d");
1578
1578
  this._renderContext = e, this._instanceSrv = t, this._commandService = i, this._editorBridgeService = r, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((s) => {
1579
1579
  s && s.getUnitId() === this._renderContext.unitId ? this._d = this._init() : this._disposeCurrent();
1580
1580
  }));
@@ -1600,16 +1600,16 @@ let Fe = class extends ve {
1600
1600
  }
1601
1601
  _initEventListener(e) {
1602
1602
  const t = (o) => {
1603
- const a = o.getTransformer();
1604
- a && (e.add(a.clearControl$.subscribe(() => {
1603
+ const c = o.getTransformer();
1604
+ c && (e.add(c.clearControl$.subscribe(() => {
1605
1605
  this.setEditorVisible(!1), this.pickOtherObjects();
1606
- })), e.add(a.createControl$.subscribe(() => {
1606
+ })), e.add(c.createControl$.subscribe(() => {
1607
1607
  this.setEditorVisible(!1);
1608
1608
  })), e.add(o.onDblclick$.subscribeEvent(() => {
1609
- a.clearControls();
1610
- const h = a.getSelectedObjectMap().values().next().value;
1609
+ c.clearControls();
1610
+ const h = c.getSelectedObjectMap().values().next().value;
1611
1611
  h && (h.objectType !== le.RICH_TEXT ? this.pickOtherObjects() : this.startEditing(o.sceneKey, h));
1612
- })), e.add(this._instanceSrv.focused$.subscribe((c) => {
1612
+ })), e.add(this._instanceSrv.focused$.subscribe((a) => {
1613
1613
  this.endEditing();
1614
1614
  })));
1615
1615
  }, { mainComponent: i } = this._renderContext;
@@ -1618,8 +1618,8 @@ let Fe = class extends ve {
1618
1618
  });
1619
1619
  const s = Array.from(i.getSubScenes().values());
1620
1620
  for (let o = 0; o < s.length; o++) {
1621
- const a = s[o];
1622
- t(a);
1621
+ const c = s[o];
1622
+ t(c);
1623
1623
  }
1624
1624
  }
1625
1625
  pickOtherObjects() {
@@ -1643,10 +1643,10 @@ let Fe = class extends ve {
1643
1643
  text: e.text
1644
1644
  }, r = (s = e.documentData.body) == null ? void 0 : s.textRuns;
1645
1645
  if (r && r.length) {
1646
- const a = r[0].ts;
1647
- i.cl = a == null ? void 0 : a.cl;
1646
+ const c = r[0].ts;
1647
+ i.cl = c == null ? void 0 : c.cl;
1648
1648
  }
1649
- this._commandService.executeCommand($.id, {
1649
+ this._commandService.executeCommand(H.id, {
1650
1650
  unitId: this._renderContext.unitId,
1651
1651
  oKey: e == null ? void 0 : e.oKey,
1652
1652
  props: {
@@ -1671,96 +1671,96 @@ let Fe = class extends ve {
1671
1671
  this._editorBridgeService.changeVisible({ visible: e, eventType: q.PointerDown, unitId: t });
1672
1672
  }
1673
1673
  };
1674
- Fe = Vn([
1675
- je(1, y),
1674
+ Fe = Nn([
1675
+ je(1, w),
1676
1676
  je(2, U),
1677
- je(3, Ze)
1677
+ je(3, Ye)
1678
1678
  ], Fe);
1679
- const kt = {
1679
+ const zt = {
1680
1680
  id: "slide.operation.activate-slide",
1681
1681
  type: D.OPERATION,
1682
1682
  handler: (n, e) => {
1683
1683
  var h, l;
1684
- const t = e.unitId, i = n.get(T), s = n.get(y).getUnit(t), o = (h = s == null ? void 0 : s.getActivePage()) == null ? void 0 : h.id;
1684
+ const t = e.unitId, i = n.get(T), s = n.get(w).getUnit(t), o = (h = s == null ? void 0 : s.getActivePage()) == null ? void 0 : h.id;
1685
1685
  if (!o) return !1;
1686
- const a = i.getRenderUnitByPageId(o, t);
1687
- if (!a) return !1;
1688
- const c = (l = a.scene) == null ? void 0 : l.getTransformer();
1689
- return c && c.clearControls(), i.activePage(e.id, t), !0;
1686
+ const c = i.getRenderUnitByPageId(o, t);
1687
+ if (!c) return !1;
1688
+ const a = (l = c.scene) == null ? void 0 : l.getTransformer();
1689
+ return a && a.clearControls(), i.activePage(e.id, t), !0;
1690
1690
  }
1691
1691
  }, Kt = {
1692
1692
  id: "slide.operation.append-slide",
1693
1693
  type: D.OPERATION,
1694
1694
  handler: (n, e) => {
1695
1695
  const t = e.unitId;
1696
- return n.get(y).getUnit(t) ? (n.get(T).appendPage(t), !0) : !1;
1696
+ return n.get(w).getUnit(t) ? (n.get(T).appendPage(t), !0) : !1;
1697
1697
  }
1698
1698
  }, Je = {
1699
1699
  id: "slide.command.insert-float-image",
1700
1700
  type: D.COMMAND,
1701
1701
  handler: async (n, e) => {
1702
1702
  var V;
1703
- const t = n.get(y), i = (V = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : V.getUnitId();
1703
+ const t = n.get(w), i = (V = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : V.getUnitId();
1704
1704
  if (!i) return !1;
1705
- const s = await n.get(Pi).openFile({
1705
+ const s = await n.get(Oi).openFile({
1706
1706
  multiple: !0,
1707
- accept: Yi.map((x) => `.${x.replace("image/", "")}`).join(",")
1707
+ accept: Ki.map((R) => `.${R.replace("image/", "")}`).join(",")
1708
1708
  });
1709
1709
  if (s.length !== 1) return !1;
1710
- const a = await n.get(Zi).saveImage(s[0]);
1711
- if (!a) return !1;
1712
- const { imageId: c, imageSourceType: h, source: l, base64Cache: d } = a, { width: v, height: _, image: m } = await qi(d || ""), f = t.getUnit(i);
1710
+ const c = await n.get(Zi).saveImage(s[0]);
1711
+ if (!c) return !1;
1712
+ const { imageId: a, imageSourceType: h, source: l, base64Cache: d } = c, { width: g, height: m, image: p } = await Xi(d || ""), f = t.getUnit(i);
1713
1713
  if (!f) return !1;
1714
- const g = f.getActivePage(), p = Object.values(g.pageElements), I = p != null && p.length ? Math.max(...p.map((x) => x.zIndex)) : 20, b = {
1715
- id: c,
1714
+ const v = f.getActivePage(), _ = Object.values(v.pageElements), I = _ != null && _.length ? Math.max(..._.map((R) => R.zIndex)) : 20, b = {
1715
+ id: a,
1716
1716
  zIndex: I + 1,
1717
1717
  left: 0,
1718
1718
  top: 0,
1719
- width: v,
1720
- height: _,
1719
+ width: g,
1720
+ height: m,
1721
1721
  title: "",
1722
1722
  description: "",
1723
- type: ke.IMAGE,
1723
+ type: ze.IMAGE,
1724
1724
  image: {
1725
1725
  imageProperties: {
1726
1726
  contentUrl: d,
1727
1727
  imageSourceType: h,
1728
1728
  source: l,
1729
1729
  base64Cache: d,
1730
- image: m
1730
+ image: p
1731
1731
  }
1732
1732
  }
1733
1733
  };
1734
- g.pageElements[c] = b, f.updatePage(g.id, g);
1735
- const w = n.get(T), M = w.createObjectToPage(b, g.id, i);
1736
- return M && w.setObjectActiveByPage(M, g.id, i), !0;
1734
+ v.pageElements[a] = b, f.updatePage(v.id, v);
1735
+ const P = n.get(T), M = P.createObjectToPage(b, v.id, i);
1736
+ return M && P.setObjectActiveByPage(M, v.id, i), !0;
1737
1737
  }
1738
1738
  }, Qe = {
1739
1739
  id: "slide.command.add-text",
1740
1740
  type: D.COMMAND,
1741
1741
  handler: async (n) => {
1742
1742
  var r;
1743
- const e = n.get(U), i = (r = n.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
1744
- return await e.executeCommand(Xt.id, { unitId: i });
1743
+ const e = n.get(U), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
1744
+ return await e.executeCommand(Zt.id, { unitId: i });
1745
1745
  }
1746
- }, Xt = {
1746
+ }, Zt = {
1747
1747
  id: "slide.operation.add-text",
1748
1748
  type: D.OPERATION,
1749
1749
  handler: async (n, e) => {
1750
- const t = e.unitId, i = St(6), r = 220, s = 40, o = 230, a = 142, c = (e == null ? void 0 : e.text) || "A New Text", l = n.get(y).getUnit(t);
1750
+ const t = e.unitId, i = Ct(6), r = 220, s = 40, o = 230, c = 142, a = (e == null ? void 0 : e.text) || "A New Text", l = n.get(w).getUnit(t);
1751
1751
  if (!l) return !1;
1752
- const d = l.getActivePage(), v = Object.values(d.pageElements), _ = v != null && v.length ? Math.max(...v.map((p) => p.zIndex)) : 21, m = {
1752
+ const d = l.getActivePage(), g = Object.values(d.pageElements), m = g != null && g.length ? Math.max(...g.map((_) => _.zIndex)) : 21, p = {
1753
1753
  id: i,
1754
- zIndex: _ + 1,
1754
+ zIndex: m + 1,
1755
1755
  left: o,
1756
- top: a,
1756
+ top: c,
1757
1757
  width: r,
1758
1758
  height: s,
1759
1759
  title: "text",
1760
1760
  description: "",
1761
- type: ke.TEXT,
1761
+ type: ze.TEXT,
1762
1762
  richText: {
1763
- text: c,
1763
+ text: a,
1764
1764
  fs: 30,
1765
1765
  cl: {
1766
1766
  rgb: "rgb(51, 51, 51)"
@@ -1768,56 +1768,56 @@ const kt = {
1768
1768
  bl: 1
1769
1769
  }
1770
1770
  };
1771
- d.pageElements[i] = m, l.updatePage(d.id, d);
1772
- const f = n.get(T), g = f.createObjectToPage(m, d.id, t);
1773
- return g && f.setObjectActiveByPage(g, d.id, t), !0;
1771
+ d.pageElements[i] = p, l.updatePage(d.id, d);
1772
+ const f = n.get(T), v = f.createObjectToPage(p, d.id, t);
1773
+ return v && f.setObjectActiveByPage(v, d.id, t), !0;
1774
1774
  }
1775
- }, Gt = {
1775
+ }, Xt = {
1776
1776
  id: "slide.operation.set-slide-page-thumb",
1777
1777
  type: D.OPERATION,
1778
1778
  handler: (n, e) => (n.get(T).createThumbs(e.unitId), !0)
1779
1779
  };
1780
- function jn(n) {
1781
- var m, f;
1782
- const e = (f = (m = n.popup) == null ? void 0 : m.extraProps) == null ? void 0 : f.menuItems;
1780
+ function Dn(n) {
1781
+ var p, f;
1782
+ const e = (f = (p = n.popup) == null ? void 0 : p.extraProps) == null ? void 0 : f.menuItems;
1783
1783
  if (!e)
1784
1784
  return null;
1785
- const t = R(U), i = R(Q), [r, s] = k(!1), [o, a] = k(!1), c = () => {
1786
- a(!0);
1785
+ const t = O(U), i = O(Q), [r, s] = $(!1), [o, c] = $(!1), a = () => {
1786
+ c(!0);
1787
1787
  }, h = () => {
1788
- a(!1);
1789
- }, l = (g) => {
1790
- s(g);
1791
- }, d = (g) => {
1792
- t.executeCommand(g.commandId, g.commandParams), s(!1);
1793
- }, v = r || o, _ = e.filter((g) => !g.disable);
1788
+ c(!1);
1789
+ }, l = (v) => {
1790
+ s(v);
1791
+ }, d = (v) => {
1792
+ t.executeCommand(v.commandId, v.commandParams), s(!1);
1793
+ }, g = r || o, m = e.filter((v) => !v.disable);
1794
1794
  return /* @__PURE__ */ u(
1795
1795
  "div",
1796
1796
  {
1797
- onMouseEnter: c,
1797
+ onMouseEnter: a,
1798
1798
  onMouseLeave: h,
1799
1799
  children: /* @__PURE__ */ u(
1800
- wt,
1800
+ Pt,
1801
1801
  {
1802
1802
  align: "start",
1803
1803
  overlay: /* @__PURE__ */ u(
1804
1804
  "ul",
1805
1805
  {
1806
1806
  className: K("univer-m-0 univer-box-border univer-grid univer-list-none univer-items-center univer-gap-1 univer-rounded-lg univer-bg-white univer-p-1.5 univer-text-sm univer-shadow-lg", ue),
1807
- children: _.map((g) => /* @__PURE__ */ u(
1807
+ children: m.map((v) => /* @__PURE__ */ u(
1808
1808
  "li",
1809
1809
  {
1810
1810
  className: "univer-relative univer-box-border univer-flex univer-h-8 univer-cursor-pointer univer-items-center univer-rounded univer-text-sm univer-transition-colors hover:univer-bg-gray-100",
1811
- onClick: () => d(g),
1812
- children: /* @__PURE__ */ u("span", { className: "univer-px-2 univer-py-1.5 univer-align-middle", children: i.t(g.label) })
1811
+ onClick: () => d(v),
1812
+ children: /* @__PURE__ */ u("span", { className: "univer-px-2 univer-py-1.5 univer-align-middle", children: i.t(v.label) })
1813
1813
  },
1814
- g.index
1814
+ v.index
1815
1815
  ))
1816
1816
  }
1817
1817
  ),
1818
1818
  open: r,
1819
1819
  onOpenChange: l,
1820
- children: /* @__PURE__ */ O(
1820
+ children: /* @__PURE__ */ x(
1821
1821
  "div",
1822
1822
  {
1823
1823
  className: K("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 dark:hover:!univer-bg-gray-800 hover:univer-bg-gray-100", ue, {
@@ -1831,7 +1831,7 @@ function jn(n) {
1831
1831
  className: "univer-fill-primary-600 univer-text-gray-900 dark:!univer-text-white"
1832
1832
  }
1833
1833
  ),
1834
- v && /* @__PURE__ */ u(Ge, { className: "dark:!univer-text-white" })
1834
+ g && /* @__PURE__ */ u(Xe, { className: "dark:!univer-text-white" })
1835
1835
  ]
1836
1836
  }
1837
1837
  )
@@ -1840,114 +1840,115 @@ function jn(n) {
1840
1840
  }
1841
1841
  );
1842
1842
  }
1843
- function An() {
1844
- var m, f;
1845
- const n = R(y), e = R(U), t = R(G), i = R(Q), r = Mt(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1846
- if (!o || !a)
1843
+ function Un() {
1844
+ var p, f;
1845
+ const n = O(w), e = O(U), t = O(X), i = O(Q), r = Mt(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), c = s == null ? void 0 : s.getPageOrder();
1846
+ if (!o || !c)
1847
1847
  return null;
1848
- const c = a.map((g) => o[g]), [h, l] = k((f = (m = s == null ? void 0 : s.getActivePage()) == null ? void 0 : m.id) != null ? f : null), d = Bi(() => c.map(() => $i()), [c]);
1848
+ const a = c.map((v) => o[v]), [h, l] = $((f = (p = s == null ? void 0 : s.getActivePage()) == null ? void 0 : p.id) != null ? f : null), d = ji(() => a.map(() => Ai()), [a]);
1849
1849
  he(() => {
1850
- const g = s == null ? void 0 : s.activePage$.subscribe((p) => {
1850
+ const v = s == null ? void 0 : s.activePage$.subscribe((_) => {
1851
1851
  var b;
1852
- const I = (b = p == null ? void 0 : p.id) != null ? b : null;
1852
+ const I = (b = _ == null ? void 0 : _.id) != null ? b : null;
1853
1853
  I && l(I);
1854
1854
  });
1855
1855
  return () => {
1856
- g == null || g.unsubscribe();
1856
+ v == null || v.unsubscribe();
1857
1857
  };
1858
1858
  }, []), he(() => {
1859
- d.forEach((g, p) => {
1859
+ d.forEach((v, _) => {
1860
1860
  var I;
1861
- if (g.current) {
1862
- const b = c[p];
1863
- (I = t.getRenderById(b.id)) == null || I.engine.setContainer(g.current);
1861
+ if (v.current) {
1862
+ const b = a[_];
1863
+ (I = t.getRenderById(b.id)) == null || I.engine.setContainer(v.current);
1864
1864
  }
1865
- }), d.length > 0 && e.syncExecuteCommand(Gt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1866
- }, [d, c, t, e, s]);
1867
- const v = ct((g) => {
1868
- e.syncExecuteCommand(kt.id, { id: g, unitId: s == null ? void 0 : s.getUnitId() });
1869
- }, [e, s]), _ = ct(() => {
1865
+ }), d.length > 0 && e.syncExecuteCommand(Xt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1866
+ }, [d, a, t, e, s]);
1867
+ const g = at((v) => {
1868
+ e.syncExecuteCommand(zt.id, { id: v, unitId: s == null ? void 0 : s.getUnitId() });
1869
+ }, [e, s]), m = at(() => {
1870
1870
  e.syncExecuteCommand(Kt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1871
1871
  }, [e, s]);
1872
1872
  return /* @__PURE__ */ u(
1873
1873
  "aside",
1874
1874
  {
1875
1875
  ref: r,
1876
- className: K("univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden", Ai),
1877
- children: /* @__PURE__ */ O("div", { className: "univer-px-4", children: [
1876
+ className: K("univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden", Vi),
1877
+ children: /* @__PURE__ */ x("div", { className: "univer-px-4", children: [
1878
1878
  /* @__PURE__ */ u("header", { className: "univer-flex univer-justify-center univer-pt-4", children: /* @__PURE__ */ u(
1879
1879
  "a",
1880
1880
  {
1881
1881
  className: K("univer-box-border univer-block univer-h-8 univer-w-full univer-cursor-pointer univer-rounded-md univer-bg-white univer-text-center univer-text-sm univer-leading-8 univer-transition-colors", ue),
1882
- onClick: _,
1882
+ onClick: m,
1883
1883
  children: i.t("slide.append")
1884
1884
  }
1885
1885
  ) }),
1886
- c.map((g, p) => /* @__PURE__ */ O(
1886
+ a.map((v, _) => /* @__PURE__ */ x(
1887
1887
  "div",
1888
1888
  {
1889
1889
  className: K("univer-my-4 univer-flex univer-gap-2", {
1890
- "[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600": g.id === h
1890
+ "[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600": v.id === h
1891
1891
  }),
1892
- onClick: () => v(g.id),
1892
+ onClick: () => g(v.id),
1893
1893
  children: [
1894
- /* @__PURE__ */ u("span", { children: p + 1 }),
1894
+ /* @__PURE__ */ u("span", { children: _ + 1 }),
1895
1895
  /* @__PURE__ */ u(
1896
1896
  "div",
1897
1897
  {
1898
- ref: d[p],
1898
+ ref: d[_],
1899
1899
  className: K("univer-relative univer-box-border univer-h-32 univer-w-52 univer-bg-white hover:univer-border-primary-600", ue)
1900
1900
  }
1901
1901
  )
1902
1902
  ]
1903
1903
  },
1904
- g.id
1904
+ v.id
1905
1905
  ))
1906
1906
  ] })
1907
1907
  }
1908
1908
  );
1909
1909
  }
1910
- const Te = -1e3, _t = {
1910
+ const Te = -1e3, mt = {
1911
1911
  width: 0,
1912
1912
  height: 0,
1913
1913
  top: Te,
1914
1914
  left: Te
1915
- }, Ln = () => {
1916
- const [n, e] = k({
1917
- ..._t
1918
- }), t = R(qe), i = R(Xe), r = R(fe), s = wi(
1915
+ };
1916
+ function Vn() {
1917
+ const [n, e] = $({
1918
+ ...mt
1919
+ }), t = O(qe), i = O(Ze), r = O(fe), s = wi(
1919
1920
  () => r.subscribeContextValue$(st),
1920
1921
  !1,
1921
1922
  void 0,
1922
1923
  [r, st]
1923
1924
  );
1924
- return _i.UNSPECIFIED, he(() => {
1925
+ return fi.UNSPECIFIED, he(() => {
1925
1926
  t.state$.subscribe((o) => {
1926
1927
  if (o == null)
1927
1928
  return;
1928
1929
  const {
1929
- startX: a = Te,
1930
- startY: c = Te,
1930
+ startX: c = Te,
1931
+ startY: a = Te,
1931
1932
  endX: h = 0,
1932
1933
  endY: l = 0,
1933
1934
  show: d = !1
1934
1935
  } = o;
1935
1936
  if (!d)
1936
1937
  e({
1937
- ..._t
1938
+ ...mt
1938
1939
  });
1939
1940
  else {
1940
1941
  e({
1941
- width: h - a - ne + 2,
1942
- height: l - c - ne + 2,
1943
- left: a + ne,
1944
- top: c + ne
1942
+ width: h - c - ne + 2,
1943
+ height: l - a - ne + 2,
1944
+ left: c + ne,
1945
+ top: a + ne
1945
1946
  });
1946
- const v = i.getEditor(de);
1947
- if (v == null)
1947
+ const g = i.getEditor(de);
1948
+ if (g == null)
1948
1949
  return;
1949
- const { left: _, top: m, width: f, height: g } = v.getBoundingClientRect();
1950
- t.setRect({ left: _, top: m, width: f, height: g });
1950
+ const { left: m, top: p, width: f, height: v } = g.getBoundingClientRect();
1951
+ t.setRect({ left: m, top: p, width: f, height: v });
1951
1952
  }
1952
1953
  });
1953
1954
  }, []), he(() => {
@@ -1964,95 +1965,95 @@ const Te = -1e3, _t = {
1964
1965
  }
1965
1966
  }
1966
1967
  );
1967
- }, Yt = "slide.menu.image";
1968
- function Bn(n) {
1968
+ }
1969
+ const Gt = "slide.menu.image";
1970
+ function jn(n) {
1969
1971
  return {
1970
- id: Yt,
1971
- type: _e.SUBITEMS,
1972
- icon: "AddImageSingle",
1972
+ id: Gt,
1973
+ type: me.SUBITEMS,
1974
+ icon: "AddImageIcon",
1973
1975
  tooltip: "slide.image.insert.title",
1974
- hidden$: me(n, E.UNIVER_SLIDE)
1976
+ hidden$: pe(n, E.UNIVER_SLIDE)
1975
1977
  };
1976
1978
  }
1977
- function $n(n) {
1979
+ function An(n) {
1978
1980
  return {
1979
1981
  id: Je.id,
1980
1982
  title: "slide.image.insert.float",
1981
- type: _e.BUTTON,
1982
- hidden$: me(n, E.UNIVER_SLIDE)
1983
+ type: me.BUTTON,
1984
+ hidden$: pe(n, E.UNIVER_SLIDE)
1983
1985
  };
1984
1986
  }
1985
- const Zt = "graph-single", qt = "slide.menu.shape";
1986
- function Hn(n) {
1987
+ const Yt = "slide.menu.shape";
1988
+ function Ln(n) {
1987
1989
  return {
1988
- id: qt,
1989
- type: _e.SUBITEMS,
1990
- icon: Zt,
1990
+ id: Yt,
1991
+ type: me.SUBITEMS,
1992
+ icon: "GraphIcon",
1991
1993
  tooltip: "slide.shape.insert.title",
1992
- hidden$: me(n, E.UNIVER_SLIDE)
1994
+ hidden$: pe(n, E.UNIVER_SLIDE)
1993
1995
  // disabled$: getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] }),
1994
1996
  };
1995
1997
  }
1996
- function Fn(n) {
1998
+ function Bn(n) {
1997
1999
  return {
1998
- id: Ye.id,
2000
+ id: Ge.id,
1999
2001
  title: "slide.shape.insert.rectangle",
2000
- type: _e.BUTTON,
2001
- hidden$: me(n, E.UNIVER_SLIDE)
2002
+ type: me.BUTTON,
2003
+ hidden$: pe(n, E.UNIVER_SLIDE)
2002
2004
  };
2003
2005
  }
2004
- const Jt = "text-single";
2005
- function Wn(n) {
2006
+ function $n(n) {
2006
2007
  return {
2007
2008
  id: Qe.id,
2008
- type: _e.BUTTON,
2009
- icon: Jt,
2009
+ type: me.BUTTON,
2010
+ icon: "TextIcon",
2010
2011
  tooltip: "slide.text.insert.title",
2011
- hidden$: me(n, E.UNIVER_SLIDE)
2012
+ hidden$: pe(n, E.UNIVER_SLIDE)
2012
2013
  };
2013
2014
  }
2014
- const zn = {
2015
- [Ti.FORMAT]: {
2015
+ const Hn = {
2016
+ [yi.FORMAT]: {
2016
2017
  [Qe.id]: {
2017
2018
  order: 0,
2018
- menuItemFactory: Wn
2019
+ menuItemFactory: $n
2019
2020
  },
2020
- [Yt]: {
2021
+ [Gt]: {
2021
2022
  order: 0,
2022
- menuItemFactory: Bn,
2023
+ menuItemFactory: jn,
2023
2024
  [Je.id]: {
2024
2025
  order: 0,
2025
- menuItemFactory: $n
2026
+ menuItemFactory: An
2026
2027
  }
2027
2028
  },
2028
- [qt]: {
2029
+ [Yt]: {
2029
2030
  order: 0,
2030
- menuItemFactory: Hn,
2031
- [Ye.id]: {
2031
+ menuItemFactory: Ln,
2032
+ [Ge.id]: {
2032
2033
  order: 0,
2033
- menuItemFactory: Fn
2034
+ menuItemFactory: Bn
2034
2035
  }
2035
2036
  }
2036
2037
  }
2037
2038
  };
2038
2039
  function We(n) {
2039
- return n.getContextValue(xt) && n.getContextValue(xe);
2040
+ return n.getContextValue(Rt) && n.getContextValue(Re);
2040
2041
  }
2041
- function kn(n) {
2042
- return n.getContextValue(pi) && n.getContextValue(xt);
2042
+ function Fn(n) {
2043
+ return n.getContextValue(pi) && n.getContextValue(Rt);
2043
2044
  }
2044
- const Qt = [
2045
- P.ARROW_DOWN,
2046
- P.ARROW_UP,
2047
- P.ARROW_LEFT,
2048
- P.ARROW_RIGHT
2045
+ const qt = [
2046
+ y.ARROW_DOWN,
2047
+ y.ARROW_UP,
2048
+ y.ARROW_LEFT,
2049
+ y.ARROW_RIGHT
2049
2050
  ];
2050
- [P.ENTER, P.TAB, ...Qt];
2051
- function Kn() {
2051
+ [y.ENTER, y.TAB, ...qt];
2052
+ function Wn() {
2052
2053
  const n = [];
2053
- for (const e of Qt)
2054
+ for (const e of qt)
2054
2055
  n.push({
2055
- id: we.id,
2056
+ id: Pe.id,
2056
2057
  binding: e,
2057
2058
  preconditions: (t) => We(t),
2058
2059
  staticParameters: {
@@ -2062,8 +2063,8 @@ function Kn() {
2062
2063
  isShift: !1
2063
2064
  }
2064
2065
  }), n.push({
2065
- id: we.id,
2066
- binding: e | Mi.SHIFT,
2066
+ id: Pe.id,
2067
+ binding: e | Pi.SHIFT,
2067
2068
  preconditions: (t) => We(t),
2068
2069
  staticParameters: {
2069
2070
  visible: !1,
@@ -2074,13 +2075,13 @@ function Kn() {
2074
2075
  });
2075
2076
  return n;
2076
2077
  }
2077
- const Xn = {
2078
- id: Gi.id,
2079
- preconditions: (n) => We(n) || kn(n),
2080
- binding: P.BACKSPACE
2078
+ const kn = {
2079
+ id: zi.id,
2080
+ preconditions: (n) => We(n) || Fn(n),
2081
+ binding: y.BACKSPACE
2081
2082
  };
2082
- var Gn = Object.getOwnPropertyDescriptor, Yn = (n, e, t, i) => {
2083
- for (var r = i > 1 ? void 0 : i ? Gn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2083
+ var zn = Object.getOwnPropertyDescriptor, Kn = (n, e, t, i) => {
2084
+ for (var r = i > 1 ? void 0 : i ? zn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2084
2085
  (o = n[s]) && (r = o(r) || r);
2085
2086
  return r;
2086
2087
  }, ie = (n, e) => (t, i) => e(t, i, n);
@@ -2089,59 +2090,59 @@ let Me = class extends De {
2089
2090
  super(), this._injector = n, this._menuManagerService = e, this._componentManager = t, this._uiPartsService = i, this._commandService = r, this._shortcutService = s, this._initCommands(), this._initCustomComponents(), this._initUIComponents(), this._initMenus(), this._initShortcuts();
2090
2091
  }
2091
2092
  _initMenus() {
2092
- this._menuManagerService.mergeMenu(zn);
2093
+ this._menuManagerService.mergeMenu(Hn);
2093
2094
  }
2094
2095
  _initCustomComponents() {
2095
2096
  const n = this._componentManager;
2096
- this.disposeWithMe(n.register(Jt, Ht)), this.disposeWithMe(n.register(Zt, At)), this.disposeWithMe(n.register(zt, jn)), this.disposeWithMe(n.register(Oe, In));
2097
+ this.disposeWithMe(n.register("TextIcon", Ht)), this.disposeWithMe(n.register("GraphIcon", At)), this.disposeWithMe(n.register(kt, Dn)), this.disposeWithMe(n.register(xe, _n));
2097
2098
  }
2098
2099
  _initCommands() {
2099
2100
  [
2100
2101
  Kt,
2101
- kt,
2102
- Gt,
2103
- Je,
2102
+ zt,
2104
2103
  Xt,
2104
+ Je,
2105
+ Zt,
2105
2106
  Qe,
2106
2107
  Wt,
2107
- Ye,
2108
+ Ge,
2108
2109
  Be,
2109
2110
  Dt,
2110
- $,
2111
+ H,
2111
2112
  // commands for editor
2112
- we
2113
+ Pe
2113
2114
  ].forEach((n) => this.disposeWithMe(this._commandService.registerCommand(n)));
2114
2115
  }
2115
2116
  _initUIComponents() {
2116
2117
  this.disposeWithMe(
2117
- this._uiPartsService.registerComponent(ot.LEFT_SIDEBAR, () => at(An, this._injector))
2118
+ this._uiPartsService.registerComponent(ot.LEFT_SIDEBAR, () => ct(Un, this._injector))
2118
2119
  ), this.disposeWithMe(
2119
- this._uiPartsService.registerComponent(ot.CONTENT, () => at(Ln, this._injector))
2120
+ this._uiPartsService.registerComponent(ot.CONTENT, () => ct(Vn, this._injector))
2120
2121
  );
2121
2122
  }
2122
2123
  _initShortcuts() {
2123
2124
  [
2124
- Xn,
2125
- ...Kn()
2125
+ kn,
2126
+ ...Wn()
2126
2127
  ].forEach((n) => {
2127
2128
  this.disposeWithMe(this._shortcutService.registerShortcut(n));
2128
2129
  });
2129
2130
  }
2130
2131
  };
2131
- Me = Yn([
2132
- ie(0, X(ze)),
2133
- ie(1, Ni),
2134
- ie(2, X(Di)),
2135
- ie(3, Ui),
2132
+ Me = Kn([
2133
+ ie(0, Z(ke)),
2134
+ ie(1, Ti),
2135
+ ie(2, Z(Mi)),
2136
+ ie(3, Ni),
2136
2137
  ie(4, U),
2137
- ie(5, Vi)
2138
+ ie(5, Di)
2138
2139
  ], Me);
2139
- var Zn = Object.getOwnPropertyDescriptor, qn = (n, e, t, i) => {
2140
+ var Zn = Object.getOwnPropertyDescriptor, Xn = (n, e, t, i) => {
2140
2141
  for (var r = i > 1 ? void 0 : i ? Zn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2141
2142
  (o = n[s]) && (r = o(r) || r);
2142
2143
  return r;
2143
2144
  }, Ae = (n, e) => (t, i) => e(t, i, n);
2144
- let Ne = class extends ve {
2145
+ let Ne = class extends ge {
2145
2146
  // private _skeletonChangeMutations = new Set<string>();
2146
2147
  constructor(n, e, t) {
2147
2148
  super(), this._contextService = n, this._instanceSrv = e, this._renderManagerService = t, Promise.resolve().then(() => this._init());
@@ -2166,41 +2167,41 @@ let Ne = class extends ve {
2166
2167
  _initContextListener() {
2167
2168
  }
2168
2169
  };
2169
- Ne = qn([
2170
+ Ne = Xn([
2170
2171
  Ae(0, fe),
2171
- Ae(1, y),
2172
- Ae(2, G)
2172
+ Ae(1, w),
2173
+ Ae(2, X)
2173
2174
  ], Ne);
2174
- var Jn = Object.getOwnPropertyDescriptor, Qn = (n, e, t, i) => {
2175
- for (var r = i > 1 ? void 0 : i ? Jn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2175
+ var Gn = Object.getOwnPropertyDescriptor, Yn = (n, e, t, i) => {
2176
+ for (var r = i > 1 ? void 0 : i ? Gn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2176
2177
  (o = n[s]) && (r = o(r) || r);
2177
2178
  return r;
2178
2179
  }, be = (n, e) => (t, i) => e(t, i, n);
2179
- const er = "SLIDE_UI";
2180
+ const qn = "SLIDE_UI";
2180
2181
  var Ee;
2181
- let pt = (Ee = class extends Si {
2182
- constructor(n = gt, e, t, i, r) {
2182
+ let _t = (Ee = class extends mi {
2183
+ constructor(n = vt, e, t, i, r) {
2183
2184
  super(), this._config = n, this._injector = e, this._renderManagerService = t, this._univerInstanceService = i, this._configService = r;
2184
- const { menu: s, ...o } = Ci(
2185
+ const { menu: s, ...o } = _i(
2185
2186
  {},
2186
- gt,
2187
+ vt,
2187
2188
  this._config
2188
2189
  );
2189
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(rn, o);
2190
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(en, o);
2190
2191
  }
2191
2192
  onStarting() {
2192
2193
  tt([
2193
2194
  [Ne],
2194
- [Ze, { useClass: $e }],
2195
+ [Ye, { useClass: $e }],
2195
2196
  // used by SlideUIController --> EditorContainer
2196
- [qe, { useClass: wn }],
2197
- [ye]
2197
+ [qe, { useClass: On }],
2198
+ [we]
2198
2199
  ], this._config.override).forEach((n) => this._injector.add(n));
2199
2200
  }
2200
2201
  onReady() {
2201
2202
  [
2202
2203
  // SlideRenderService will be init in ready stage, and then calling RenderManagerService@createRender --> init all deps in this rendering register block.
2203
- [ge]
2204
+ [ve]
2204
2205
  ].forEach((n) => {
2205
2206
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, n));
2206
2207
  }), tt([
@@ -2213,8 +2214,8 @@ let pt = (Ee = class extends Si {
2213
2214
  // SlidesUIController controller would add a new RenderUnit (__INTERNAL_EDITOR__DOCS_NORMAL)
2214
2215
  [Me],
2215
2216
  // editor service was create in renderManagerService
2216
- [ge],
2217
- [Pe]
2217
+ [ve],
2218
+ [ye]
2218
2219
  ], this._config.override).forEach((n) => {
2219
2220
  this._injector.add(n);
2220
2221
  }), this._injector.get(T), this._injector.get(Ne);
@@ -2230,7 +2231,7 @@ let pt = (Ee = class extends Si {
2230
2231
  }), this._markSlideAsFocused(), this._injector.get(Me);
2231
2232
  }
2232
2233
  onSteady() {
2233
- this._injector.get(Pe);
2234
+ this._injector.get(ye);
2234
2235
  }
2235
2236
  _markSlideAsFocused() {
2236
2237
  const n = this._univerInstanceService;
@@ -2240,33 +2241,33 @@ let pt = (Ee = class extends Si {
2240
2241
  } catch {
2241
2242
  }
2242
2243
  }
2243
- }, C(Ee, "pluginName", er), C(Ee, "type", E.UNIVER_SLIDE), Ee);
2244
- pt = Qn([
2245
- be(1, X(ze)),
2246
- be(2, G),
2247
- be(3, y),
2248
- be(4, Ii)
2249
- ], pt);
2244
+ }, S(Ee, "pluginName", qn), S(Ee, "type", E.UNIVER_SLIDE), Ee);
2245
+ _t = Yn([
2246
+ be(1, Z(ke)),
2247
+ be(2, X),
2248
+ be(3, w),
2249
+ be(4, Ci)
2250
+ ], _t);
2250
2251
  export {
2251
- kt as ActivateSlidePageOperation,
2252
+ zt as ActivateSlidePageOperation,
2252
2253
  Kt as AppendSlideOperation,
2253
2254
  T as CanvasView,
2254
2255
  Dt as DeleteSlideElementOperation,
2255
- Ze as ISlideEditorBridgeService,
2256
+ Ye as ISlideEditorBridgeService,
2256
2257
  Je as InsertSlideFloatImageCommand,
2257
- Ye as InsertSlideShapeRectangleCommand,
2258
+ Ge as InsertSlideShapeRectangleCommand,
2258
2259
  Wt as InsertSlideShapeRectangleOperation,
2259
- qt as SHAPE_MENU_ID,
2260
- Yt as SLIDES_IMAGE_MENU_ID,
2260
+ Yt as SHAPE_MENU_ID,
2261
+ Gt as SLIDES_IMAGE_MENU_ID,
2261
2262
  de as SLIDE_EDITOR_ID,
2262
- Gt as SetSlidePageThumbOperation,
2263
+ Xt as SetSlidePageThumbOperation,
2263
2264
  Qe as SlideAddTextCommand,
2264
- Xt as SlideAddTextOperation,
2265
- ye as SlideCanvasPopMangerService,
2266
- Ln as SlideEditorContainer,
2267
- An as SlideSideBar,
2265
+ Zt as SlideAddTextOperation,
2266
+ we as SlideCanvasPopMangerService,
2267
+ Vn as SlideEditorContainer,
2268
+ Un as SlideSideBar,
2268
2269
  Me as SlidesUIController,
2269
- zn as SlidesUIMenuSchema,
2270
- pt as UniverSlidesUIPlugin,
2271
- $ as UpdateSlideElementOperation
2270
+ Hn as SlidesUIMenuSchema,
2271
+ _t as UniverSlidesUIPlugin,
2272
+ H as UpdateSlideElementOperation
2272
2273
  };