@univerjs/slides-ui 0.9.4 → 0.10.0-nightly.202507310307

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.
Files changed (50) hide show
  1. package/lib/cjs/index.js +2 -2
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +684 -629
  13. package/lib/es/locale/ca-ES.js +2 -1
  14. package/lib/es/locale/en-US.js +2 -1
  15. package/lib/es/locale/es-ES.js +2 -1
  16. package/lib/es/locale/fa-IR.js +2 -1
  17. package/lib/es/locale/fr-FR.js +2 -1
  18. package/lib/es/locale/ko-KR.js +2 -1
  19. package/lib/es/locale/ru-RU.js +2 -1
  20. package/lib/es/locale/vi-VN.js +2 -1
  21. package/lib/es/locale/zh-CN.js +2 -1
  22. package/lib/es/locale/zh-TW.js +2 -1
  23. package/lib/index.js +684 -629
  24. package/lib/locale/ca-ES.js +2 -1
  25. package/lib/locale/en-US.js +2 -1
  26. package/lib/locale/es-ES.js +2 -1
  27. package/lib/locale/fa-IR.js +2 -1
  28. package/lib/locale/fr-FR.js +2 -1
  29. package/lib/locale/ko-KR.js +2 -1
  30. package/lib/locale/ru-RU.js +2 -1
  31. package/lib/locale/vi-VN.js +2 -1
  32. package/lib/locale/zh-CN.js +2 -1
  33. package/lib/locale/zh-TW.js +2 -1
  34. package/lib/types/commands/operations/insert-shape.operation.d.ts +2 -0
  35. package/lib/types/controllers/shape.menu.d.ts +2 -1
  36. package/lib/types/index.d.ts +1 -1
  37. package/lib/types/locale/en-US.d.ts +1 -0
  38. package/lib/umd/index.js +2 -2
  39. package/lib/umd/locale/ca-ES.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/es-ES.js +1 -1
  42. package/lib/umd/locale/fa-IR.js +1 -1
  43. package/lib/umd/locale/fr-FR.js +1 -1
  44. package/lib/umd/locale/ko-KR.js +1 -1
  45. package/lib/umd/locale/ru-RU.js +1 -1
  46. package/lib/umd/locale/vi-VN.js +1 -1
  47. package/lib/umd/locale/zh-CN.js +1 -1
  48. package/lib/umd/locale/zh-TW.js +1 -1
  49. package/package.json +11 -11
  50. package/LICENSE +0 -176
package/lib/index.js CHANGED
@@ -1,30 +1,30 @@
1
- var ri = Object.defineProperty;
2
- var si = (n, e, t) => e in n ? ri(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var S = (n, e, t) => si(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 oi, getColorStyle as ci, CommandType as D, PageElementType as ze, merge as Ct, LocaleService as Q, ICommandService as U, generateRandomId as St, BasicShapes as ai, createInternalEditorID as li, createIdentifier as It, IContextService as fe, DocumentFlavor as di, FOCUSING_UNIVER_EDITOR as bt, EDITOR_ACTIVATED as Re, FORMULA_EDITOR_ACTIVATED as ui, Disposable as De, DisposableCollection as Ke, toDisposable as Et, FOCUSING_COMMON_DRAWINGS as hi, FOCUSING_EDITOR_STANDALONE as xt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Rt, DocumentDataModel as vi, HorizontalAlign as Ot, VerticalAlign as Oe, IUndoRedoService as gi, WrapStrategy as et, FOCUSING_EDITOR_BUT_HIDDEN as fi, DEFAULT_EMPTY_DOCUMENT_VALUE as pi, Direction as j, Plugin as mi, mergeOverrideWithDependencies as tt, IConfigService as _i } from "@univerjs/core";
5
- import { IRenderManagerService as X, Viewport as it, ScrollBar as wt, getCurrentTypeOfRenderer as Le, Slide as Ci, Rect as yt, Scene as Si, ObjectType as le, FIX_ONE_PIXEL_BLUR_OFFSET as ne, DeviceInputEventType as q, pxToNum as Ii, convertTextRotation as nt, fixLineWidthByScale as rt } from "@univerjs/engine-render";
6
- import { ObjectProvider as bi, SLIDE_KEY as re } from "@univerjs/slides";
7
- import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Ei, IImageIoService as xi, getImageSize as Ri } from "@univerjs/drawing";
8
- import { ILocalFileService as Oi, useDependency as O, ISidebarService as Pt, getMenuHiddenObservable as pe, MenuItemType as me, RibbonStartGroup as wi, useObservable as yi, DISABLE_AUTO_FOCUS_KEY as st, KeyCode as y, MetaKeys as Pi, IMenuManagerService as Ti, ComponentManager as Mi, IUIPartsService as Ni, IShortcutService as Di, BuiltInUIPart as ot, connectInjector as ct, ICanvasPopupService as Ui, ILayoutService as Vi } from "@univerjs/ui";
1
+ var ai = Object.defineProperty;
2
+ var ci = (n, e, t) => e in n ? ai(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var S = (n, e, t) => ci(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Inject as Z, Injector as ze, IUniverInstanceService as w, RxDisposable as pe, UniverInstanceType as E, debounce as li, getColorStyle as di, CommandType as N, PageElementType as De, merge as It, LocaleService as Q, ICommandService as D, generateRandomId as Ke, BasicShapes as bt, createInternalEditorID as ui, createIdentifier as Et, IContextService as me, DocumentFlavor as hi, FOCUSING_UNIVER_EDITOR as xt, EDITOR_ACTIVATED as Oe, FORMULA_EDITOR_ACTIVATED as gi, Disposable as Ue, DisposableCollection as Ze, toDisposable as Ot, FOCUSING_COMMON_DRAWINGS as vi, FOCUSING_EDITOR_STANDALONE as Rt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as wt, DocumentDataModel as fi, HorizontalAlign as yt, VerticalAlign as Re, IUndoRedoService as pi, WrapStrategy as it, FOCUSING_EDITOR_BUT_HIDDEN as mi, DEFAULT_EMPTY_DOCUMENT_VALUE as _i, Direction as V, Plugin as Ci, mergeOverrideWithDependencies as nt, IConfigService as Si } from "@univerjs/core";
5
+ import { IRenderManagerService as X, Viewport as rt, ScrollBar as Pt, getCurrentTypeOfRenderer as Be, Slide as Ii, Rect as Tt, Scene as bi, ObjectType as ue, FIX_ONE_PIXEL_BLUR_OFFSET as ne, DeviceInputEventType as q, pxToNum as Ei, convertTextRotation as st, fixLineWidthByScale as ot } from "@univerjs/engine-render";
6
+ import { ObjectProvider as xi, SLIDE_KEY as re } from "@univerjs/slides";
7
+ import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Oi, IImageIoService as Ri, getImageSize as wi } from "@univerjs/drawing";
8
+ import { ILocalFileService as yi, useDependency as R, ISidebarService as Mt, getMenuHiddenObservable as se, MenuItemType as oe, RibbonStartGroup as Pi, useObservable as Ti, DISABLE_AUTO_FOCUS_KEY as at, KeyCode as y, MetaKeys as Mi, IMenuManagerService as Ni, ComponentManager as Di, IUIPartsService as Ui, IShortcutService as ji, BuiltInUIPart as ct, connectInjector as lt, ICanvasPopupService as Vi, ILayoutService as Ai } from "@univerjs/ui";
9
9
  import { jsxs as x, jsx as u } from "react/jsx-runtime";
10
- import { Button as Se, clsx as K, Dropdown as Tt, ColorPicker as ji, borderTopClassName as Mt, InputNumber as ae, borderClassName as ue, scrollbarClassName as Ai } from "@univerjs/design";
11
- import { forwardRef as F, useRef as Nt, createElement as W, useState as $, useEffect as he, useMemo as Li, createRef as Bi, useCallback as at } from "react";
12
- import { IEditorService as Ze, DeleteLeftCommand as $i, DocSelectionRenderService as lt, VIEWPORT_KEY as dt, DOCS_COMPONENT_MAIN_LAYER_INDEX as Hi, MoveSelectionOperation as Fi, MoveCursorOperation as Wi, DOCS_VIEW_KEY as ki } from "@univerjs/docs-ui";
13
- import { BehaviorSubject as J, Subject as Dt, filter as zi, takeUntil as ut } from "rxjs";
14
- import { DocSelectionManagerService as Ki, DocSkeletonManagerService as ht, RichTextEditingMutation as Zi } from "@univerjs/docs";
15
- var Xi = Object.getOwnPropertyDescriptor, Gi = (n, e, t, i) => {
16
- for (var r = i > 1 ? void 0 : i ? Xi(e, t) : e, s = n.length - 1, o; s >= 0; s--)
10
+ import { Button as Se, clsx as K, Dropdown as Nt, ColorPicker as Li, borderTopClassName as Dt, InputNumber as de, borderClassName as ge, scrollbarClassName as Bi } from "@univerjs/design";
11
+ import { forwardRef as F, useRef as Ut, createElement as W, useState as $, useEffect as ve, useMemo as $i, createRef as Hi, useCallback as dt } from "react";
12
+ import { IEditorService as Xe, DeleteLeftCommand as Fi, DocSelectionRenderService as ut, VIEWPORT_KEY as ht, DOCS_COMPONENT_MAIN_LAYER_INDEX as Wi, MoveSelectionOperation as ki, MoveCursorOperation as zi, DOCS_VIEW_KEY as Ki } from "@univerjs/docs-ui";
13
+ import { BehaviorSubject as J, Subject as jt, filter as Zi, takeUntil as gt } from "rxjs";
14
+ import { DocSelectionManagerService as Xi, DocSkeletonManagerService as vt, RichTextEditingMutation as Gi } from "@univerjs/docs";
15
+ var Yi = Object.getOwnPropertyDescriptor, qi = (n, e, t, i) => {
16
+ for (var r = i > 1 ? void 0 : i ? Yi(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
- }, Ue = (n, e) => (t, i) => e(t, i, n);
20
- let ve = class extends ge {
19
+ }, je = (n, e) => (t, i) => e(t, i, n);
20
+ let fe = class extends pe {
21
21
  constructor(e, t, i, r) {
22
22
  super();
23
23
  S(this, "_objectProvider", null);
24
- S(this, "_refreshThumb", oi(() => {
24
+ S(this, "_refreshThumb", li(() => {
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(bi), this._addNewRender();
27
+ this._renderContext = e, this._injector = t, this._univerInstanceService = i, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(xi), this._addNewRender();
28
28
  }
29
29
  _addNewRender() {
30
30
  const { unitId: e, engine: t, scene: i } = this._renderContext, r = this._getCurrUnitModel();
@@ -37,7 +37,7 @@ let ve = class extends ge {
37
37
  this.createThumbs();
38
38
  }, 300);
39
39
  });
40
- const o = new it(re.VIEW, i, {
40
+ const o = new rt(re.VIEW, i, {
41
41
  left: 0,
42
42
  top: 0,
43
43
  bottom: 0,
@@ -46,61 +46,61 @@ let ve = class extends ge {
46
46
  explicitViewportHeightSet: !1,
47
47
  isWheelPreventDefaultX: !0
48
48
  });
49
- i.attachControl(), i.onMouseWheel$.subscribeEvent((a, h) => {
50
- const l = a;
49
+ i.attachControl(), i.onMouseWheel$.subscribeEvent((c, h) => {
50
+ const l = c;
51
51
  if (l.ctrlKey) {
52
52
  const d = Math.abs(l.deltaX);
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());
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());
55
55
  } else
56
56
  o.onMouseWheel(l, h);
57
57
  }), i.onFileLoaded$.subscribeEvent(() => {
58
58
  this._refreshThumb();
59
- }), wt.attachTo(o);
60
- const c = this._createSlide(i);
61
- this._renderContext.mainComponent = c, this._createSlidePages(r, c), this.createThumbs(), t.runRenderLoop(() => {
59
+ }), Pt.attachTo(o);
60
+ const a = this._createSlide(i);
61
+ this._renderContext.mainComponent = a, this._createSlidePages(r, a), this.createThumbs(), t.runRenderLoop(() => {
62
62
  i.render();
63
63
  });
64
64
  }
65
65
  _scrollToCenter() {
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);
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);
68
68
  if (!t || !i) return;
69
- const { left: r, top: s } = i, { x: o, y: c } = t.transViewportScroll2ScrollValue(r, s);
69
+ const { left: r, top: s } = i, { x: o, y: a } = t.transViewportScroll2ScrollValue(r, s);
70
70
  t.scrollToBarPos({
71
71
  x: o,
72
- y: c
72
+ y: a
73
73
  });
74
74
  }
75
75
  _currentRender() {
76
- return Le(E.UNIVER_SLIDE, this._univerInstanceService, this._renderManagerService);
76
+ return Be(E.UNIVER_SLIDE, this._univerInstanceService, this._renderManagerService);
77
77
  }
78
78
  /**
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: c = 100 } = s, a = new Ci(re.COMPONENT, {
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 Ii(re.COMPONENT, {
83
83
  left: (i - o) / 2,
84
- top: (r - c) / 2,
84
+ top: (r - a) / 2,
85
85
  width: o,
86
- height: c,
86
+ height: a,
87
87
  zIndex: 10
88
88
  });
89
- return a.enableSelectedClipElement(), e.addObject(a), a;
89
+ return c.enableSelectedClipElement(), e.addObject(c), c;
90
90
  }
91
91
  _addBackgroundRect(e, t) {
92
- const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, c = new yt("canvas", {
92
+ const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new Tt("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: di(t) || "rgba(255,255,255,1)",
100
100
  zIndex: 0,
101
101
  evented: !1
102
102
  });
103
- e.addObject(c, 0);
103
+ e.addObject(a, 0);
104
104
  }
105
105
  _getCenterPositionViewPort(e) {
106
106
  if (!e) return { left: 0, top: 0 };
@@ -117,8 +117,8 @@ let ve = class extends ge {
117
117
  const { engine: r } = i;
118
118
  if (r == null)
119
119
  return;
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);
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);
122
122
  }
123
123
  /**
124
124
  * CreateScene by pages, and activate first one.
@@ -129,8 +129,8 @@ let ve = class extends ge {
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 c = r[s];
133
- this.createPageScene(c, i[c]), this._createThumb(c);
132
+ const a = r[s];
133
+ this.createPageScene(a, i[a]), this._createThumb(a);
134
134
  }
135
135
  t.activeFirstPage();
136
136
  }
@@ -151,17 +151,17 @@ let ve = class extends ge {
151
151
  if (t)
152
152
  r = i.getPage(t);
153
153
  else {
154
- const a = i.getPages(), h = i.getPageOrder();
155
- if (h == null || a == null)
154
+ const c = i.getPages(), h = i.getPageOrder();
155
+ if (h == null || c == null)
156
156
  return;
157
- r = a[h[0]], t = r.id;
157
+ r = c[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, c = s.mainComponent;
163
- if (i.setActivePage(r), c != null && c.hasPage(o)) {
164
- c.changePage(o);
162
+ const { id: o } = r, a = s.mainComponent;
163
+ if (i.setActivePage(r), a != null && a.hasPage(o)) {
164
+ a.changePage(o);
165
165
  return;
166
166
  }
167
167
  this.createPageScene(o, r);
@@ -183,11 +183,11 @@ let ve = class extends ge {
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: c, height: a } = o, h = new Si(e, o, {
187
- width: c,
188
- height: a
186
+ const { scene: r, mainComponent: s } = i, o = s, { width: a, height: c } = o, h = new bi(e, o, {
187
+ width: a,
188
+ height: c
189
189
  });
190
- new it(`PageViewer_${e}`, h, {
190
+ new rt(`PageViewer_${e}`, h, {
191
191
  left: 0,
192
192
  top: 0,
193
193
  bottom: 0,
@@ -195,9 +195,9 @@ let ve = class extends ge {
195
195
  explicitViewportWidthSet: !1,
196
196
  explicitViewportHeightSet: !1
197
197
  }).closeClip();
198
- const { pageElements: d, pageBackgroundFill: g } = t, m = this._objectProvider.convertToRenderObjects(d, r);
198
+ const { pageElements: d, pageBackgroundFill: v } = t, m = this._objectProvider.convertToRenderObjects(d, r);
199
199
  if (!m || !o) return;
200
- this._addBackgroundRect(h, g), h.addObjects(m), h.initTransformer(), m.forEach((f) => {
200
+ this._addBackgroundRect(h, v), h.addObjects(m), h.initTransformer(), m.forEach((f) => {
201
201
  h.attachTransformerTo(f);
202
202
  });
203
203
  const p = h.getTransformer();
@@ -249,22 +249,22 @@ let ve = class extends ge {
249
249
  s && o && s.addPageScene(o), e.appendPage(t), e.setActivePage(t);
250
250
  }
251
251
  };
252
- ve = Gi([
253
- Ue(1, Z(ke)),
254
- Ue(2, w),
255
- Ue(3, X)
256
- ], ve);
257
- var Yi = Object.getOwnPropertyDescriptor, qi = (n, e, t, i) => {
258
- for (var r = i > 1 ? void 0 : i ? Yi(e, t) : e, s = n.length - 1, o; s >= 0; s--)
252
+ fe = qi([
253
+ je(1, Z(ze)),
254
+ je(2, w),
255
+ je(3, X)
256
+ ], fe);
257
+ var Ji = Object.getOwnPropertyDescriptor, Qi = (n, e, t, i) => {
258
+ for (var r = i > 1 ? void 0 : i ? Ji(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
- }, Ji = (n, e) => (t, i) => e(t, i, n);
262
- let T = class extends ge {
261
+ }, en = (n, e) => (t, i) => e(t, i, n);
262
+ let P = class extends pe {
263
263
  constructor(n) {
264
264
  super(), this._renderManagerService = n;
265
265
  }
266
266
  _getSlideRenderControllerFromRenderUnit(n) {
267
- return this._renderManagerService.getRenderById(n).with(ve);
267
+ return this._renderManagerService.getRenderById(n).with(fe);
268
268
  }
269
269
  createThumbs(n) {
270
270
  this._getSlideRenderControllerFromRenderUnit(n).createThumbs();
@@ -291,64 +291,64 @@ let T = class extends ge {
291
291
  this._getSlideRenderControllerFromRenderUnit(n).appendPage();
292
292
  }
293
293
  };
294
- T = qi([
295
- Ji(0, X)
296
- ], T);
297
- const Ut = {
294
+ P = Qi([
295
+ en(0, X)
296
+ ], P);
297
+ const Vt = {
298
298
  id: "slide.operation.activate-slide",
299
- type: D.OPERATION,
299
+ type: N.OPERATION,
300
300
  handler: (n, e) => {
301
301
  var h, l;
302
- 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;
302
+ const t = e.unitId, i = n.get(P), s = n.get(w).getUnit(t), o = (h = s == null ? void 0 : s.getActivePage()) == null ? void 0 : h.id;
303
303
  if (!o) return !1;
304
- const c = i.getRenderUnitByPageId(o, t);
305
- if (!c) return !1;
306
- const a = (l = c.scene) == null ? void 0 : l.getTransformer();
307
- return a && a.clearControls(), i.activePage(e.id, t), !0;
304
+ const a = i.getRenderUnitByPageId(o, t);
305
+ if (!a) return !1;
306
+ const c = (l = a.scene) == null ? void 0 : l.getTransformer();
307
+ return c && c.clearControls(), i.activePage(e.id, t), !0;
308
308
  }
309
- }, Vt = {
309
+ }, At = {
310
310
  id: "slide.operation.append-slide",
311
- type: D.OPERATION,
311
+ type: N.OPERATION,
312
312
  handler: (n, e) => {
313
313
  const t = e.unitId;
314
- return n.get(w).getUnit(t) ? (n.get(T).appendPage(t), !0) : !1;
314
+ return n.get(w).getUnit(t) ? (n.get(P).appendPage(t), !0) : !1;
315
315
  }
316
- }, jt = {
316
+ }, Lt = {
317
317
  id: "slide.operation.delete-element",
318
- type: D.OPERATION,
318
+ type: N.OPERATION,
319
319
  handler: (n, e) => {
320
320
  if (!(e != null && e.id)) return !1;
321
321
  const t = e.unitId, r = n.get(w).getUnit(t);
322
322
  if (!r) return !1;
323
323
  const s = r.getActivePage();
324
- return delete s.pageElements[e.id], r.updatePage(s.id, s), n.get(T).removeObjectById(e.id, s.id, t), !0;
324
+ return delete s.pageElements[e.id], r.updatePage(s.id, s), n.get(P).removeObjectById(e.id, s.id, t), !0;
325
325
  }
326
- }, Xe = {
326
+ }, Ge = {
327
327
  id: "slide.command.insert-float-image",
328
- type: D.COMMAND,
328
+ type: N.COMMAND,
329
329
  handler: async (n, e) => {
330
- var V;
331
- const t = n.get(w), i = (V = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : V.getUnitId();
330
+ var j;
331
+ const t = n.get(w), i = (j = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : j.getUnitId();
332
332
  if (!i) return !1;
333
- const s = await n.get(Oi).openFile({
333
+ const s = await n.get(yi).openFile({
334
334
  multiple: !0,
335
- accept: Ei.map((R) => `.${R.replace("image/", "")}`).join(",")
335
+ accept: Oi.map((O) => `.${O.replace("image/", "")}`).join(",")
336
336
  });
337
337
  if (s.length !== 1) return !1;
338
- const c = await n.get(xi).saveImage(s[0]);
339
- if (!c) return !1;
340
- const { imageId: a, imageSourceType: h, source: l, base64Cache: d } = c, { width: g, height: m, image: p } = await Ri(d || ""), f = t.getUnit(i);
338
+ const a = await n.get(Ri).saveImage(s[0]);
339
+ if (!a) return !1;
340
+ const { imageId: c, imageSourceType: h, source: l, base64Cache: d } = a, { width: v, height: m, image: p } = await wi(d || ""), f = t.getUnit(i);
341
341
  if (!f) return !1;
342
- const v = f.getActivePage(), _ = Object.values(v.pageElements), I = _ != null && _.length ? Math.max(..._.map((R) => R.zIndex)) : 20, b = {
343
- id: a,
342
+ const g = f.getActivePage(), _ = Object.values(g.pageElements), I = _ != null && _.length ? Math.max(..._.map((O) => O.zIndex)) : 20, b = {
343
+ id: c,
344
344
  zIndex: I + 1,
345
345
  left: 0,
346
346
  top: 0,
347
- width: g,
347
+ width: v,
348
348
  height: m,
349
349
  title: "",
350
350
  description: "",
351
- type: ze.IMAGE,
351
+ type: De.IMAGE,
352
352
  image: {
353
353
  imageProperties: {
354
354
  contentUrl: d,
@@ -359,20 +359,20 @@ const Ut = {
359
359
  }
360
360
  }
361
361
  };
362
- v.pageElements[a] = b, f.updatePage(v.id, v);
363
- const P = n.get(T), M = P.createObjectToPage(b, v.id, i);
364
- return M && P.setObjectActiveByPage(M, v.id, i), !0;
362
+ g.pageElements[c] = b, f.updatePage(g.id, g);
363
+ const T = n.get(P), M = T.createObjectToPage(b, g.id, i);
364
+ return M && T.setObjectActiveByPage(M, g.id, i), !0;
365
365
  }
366
366
  };
367
- var N = function() {
368
- return N = Object.assign || function(n) {
367
+ var U = function() {
368
+ return U = Object.assign || function(n) {
369
369
  for (var e, t = 1, i = arguments.length; t < i; t++) {
370
370
  e = arguments[t];
371
371
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
372
372
  }
373
373
  return n;
374
- }, N.apply(this, arguments);
375
- }, Qi = function(n, e) {
374
+ }, U.apply(this, arguments);
375
+ }, tn = function(n, e) {
376
376
  var t = {};
377
377
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
378
378
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -380,138 +380,138 @@ var N = function() {
380
380
  e.indexOf(i[r]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[r]) && (t[i[r]] = n[i[r]]);
381
381
  return t;
382
382
  }, k = F(function(n, e) {
383
- var t = n.icon, i = n.id, r = n.className, s = n.extend, o = Qi(n, ["icon", "id", "className", "extend"]), c = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), a = Nt("_".concat(nn()));
384
- return At(t, "".concat(i), { defIds: t.defIds, idSuffix: a.current }, N({ ref: e, className: c }, o), s);
383
+ var t = n.icon, i = n.id, r = n.className, s = n.extend, o = tn(n, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(i, " ").concat(r || "").trim(), c = Ut("_".concat(sn()));
384
+ return Bt(t, "".concat(i), { defIds: t.defIds, idSuffix: c.current }, U({ ref: e, className: a }, o), s);
385
385
  });
386
- function At(n, e, t, i, r) {
387
- return W(n.tag, N(N({ key: e }, en(n, t, r)), i), (tn(n, t).children || []).map(function(s, o) {
388
- return At(s, "".concat(e, "-").concat(n.tag, "-").concat(o), t, void 0, r);
386
+ function Bt(n, e, t, i, r) {
387
+ return W(n.tag, U(U({ key: e }, nn(n, t, r)), i), (rn(n, t).children || []).map(function(s, o) {
388
+ return Bt(s, "".concat(e, "-").concat(n.tag, "-").concat(o), t, void 0, r);
389
389
  }));
390
390
  }
391
- function en(n, e, t) {
392
- var i = N({}, n.attrs);
391
+ function nn(n, e, t) {
392
+ var i = U({}, n.attrs);
393
393
  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) {
394
- var o = s[0], c = s[1];
395
- o === "mask" && typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
394
+ var o = s[0], a = s[1];
395
+ o === "mask" && typeof a == "string" && (i[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
396
396
  });
397
397
  var r = e.defIds;
398
398
  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) {
399
- var o = s[0], c = s[1];
400
- typeof c == "string" && (i[o] = c.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
399
+ var o = s[0], a = s[1];
400
+ typeof a == "string" && (i[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
401
401
  })), i;
402
402
  }
403
- function tn(n, e) {
403
+ function rn(n, e) {
404
404
  var t, i = e.defIds;
405
- 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) {
406
- 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;
405
+ return !i || i.length === 0 ? n : n.tag === "defs" && (!((t = n.children) === null || t === void 0) && t.length) ? U(U({}, n), { children: n.children.map(function(r) {
406
+ return typeof r.attrs.id == "string" && i && i.includes(r.attrs.id) ? U(U({}, r), { attrs: U(U({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
407
407
  }) }) : n;
408
408
  }
409
- function nn() {
409
+ function sn() {
410
410
  return Math.random().toString(36).substring(2, 8);
411
411
  }
412
412
  k.displayName = "UniverIcon";
413
- var rn = { 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" } }] }, Lt = F(function(n, e) {
413
+ 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" } }] }, $t = F(function(n, e) {
414
414
  return W(k, Object.assign({}, n, {
415
415
  id: "autofill-double-icon",
416
416
  ref: e,
417
- icon: rn
417
+ icon: on
418
418
  }));
419
419
  });
420
- Lt.displayName = "AutofillDoubleIcon";
421
- var sn = { 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" } }] }, Bt = F(function(n, e) {
420
+ $t.displayName = "AutofillDoubleIcon";
421
+ 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: "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" } }] }, Ht = F(function(n, e) {
422
422
  return W(k, Object.assign({}, n, {
423
423
  id: "bottom-icon",
424
424
  ref: e,
425
- icon: sn
425
+ icon: an
426
426
  }));
427
427
  });
428
- Bt.displayName = "BottomIcon";
429
- var on = { 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"] }, $t = F(function(n, e) {
428
+ Ht.displayName = "BottomIcon";
429
+ 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: "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"] }, Ft = F(function(n, e) {
430
430
  return W(k, Object.assign({}, n, {
431
431
  id: "graph-icon",
432
432
  ref: e,
433
- icon: on
433
+ icon: cn
434
434
  }));
435
435
  });
436
- $t.displayName = "GraphIcon";
437
- var cn = { 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" } }] }, Ge = F(function(n, e) {
436
+ Ft.displayName = "GraphIcon";
437
+ 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" } }] }, Ye = F(function(n, e) {
438
438
  return W(k, Object.assign({}, n, {
439
439
  id: "more-down-icon",
440
440
  ref: e,
441
- icon: cn
441
+ icon: ln
442
442
  }));
443
443
  });
444
- Ge.displayName = "MoreDownIcon";
445
- var an = { 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" } }] }, Ht = F(function(n, e) {
444
+ Ye.displayName = "MoreDownIcon";
445
+ 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" } }] }, Wt = F(function(n, e) {
446
446
  return W(k, Object.assign({}, n, {
447
447
  id: "move-down-icon",
448
448
  ref: e,
449
- icon: an
449
+ icon: dn
450
450
  }));
451
451
  });
452
- Ht.displayName = "MoveDownIcon";
453
- 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: "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" } }] }, Ft = F(function(n, e) {
452
+ Wt.displayName = "MoveDownIcon";
453
+ 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" } }] }, kt = F(function(n, e) {
454
454
  return W(k, Object.assign({}, n, {
455
455
  id: "move-up-icon",
456
456
  ref: e,
457
- icon: ln
457
+ icon: un
458
458
  }));
459
459
  });
460
- Ft.displayName = "MoveUpIcon";
461
- var dn = { 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" } }] }, Wt = F(function(n, e) {
460
+ kt.displayName = "MoveUpIcon";
461
+ 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" } }] }, zt = F(function(n, e) {
462
462
  return W(k, Object.assign({}, n, {
463
463
  id: "paint-bucket-double-icon",
464
464
  ref: e,
465
- icon: dn
465
+ icon: hn
466
466
  }));
467
467
  });
468
- Wt.displayName = "PaintBucketDoubleIcon";
469
- var un = { 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"] }, kt = F(function(n, e) {
468
+ zt.displayName = "PaintBucketDoubleIcon";
469
+ 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: "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"] }, Kt = F(function(n, e) {
470
470
  return W(k, Object.assign({}, n, {
471
471
  id: "text-icon",
472
472
  ref: e,
473
- icon: un
473
+ icon: gn
474
474
  }));
475
475
  });
476
- kt.displayName = "TextIcon";
477
- 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: "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" } }] }, zt = F(function(n, e) {
476
+ Kt.displayName = "TextIcon";
477
+ 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: "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" } }] }, Zt = F(function(n, e) {
478
478
  return W(k, Object.assign({}, n, {
479
479
  id: "topmost-icon",
480
480
  ref: e,
481
- icon: hn
481
+ icon: vn
482
482
  }));
483
483
  });
484
- zt.displayName = "TopmostIcon";
484
+ Zt.displayName = "TopmostIcon";
485
485
  const H = {
486
486
  id: "slide.operation.update-element",
487
- type: D.OPERATION,
487
+ type: N.OPERATION,
488
488
  handler: (n, e) => {
489
489
  const { oKey: t, props: i } = e, r = n.get(w), s = e == null ? void 0 : e.unitId, o = r.getUnit(s);
490
490
  if (!o) return !1;
491
- const c = o.getActivePage();
492
- return c.pageElements[t] = Ct(c.pageElements[t], i), o.updatePage(c.id, c), !0;
491
+ const a = o.getActivePage();
492
+ return a.pageElements[t] = It(a.pageElements[t], i), o.updatePage(a.id, a), !0;
493
493
  }
494
494
  };
495
- function vn(n) {
496
- 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;
497
- if (!c) return null;
498
- const a = c.getTransformer();
495
+ function fn(n) {
496
+ const { pageId: e, unitId: t } = n, i = R(Q), r = R(P), s = R(D), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
499
497
  if (!a) return null;
500
- const l = a.getSelectedObjectMap().values().next().value;
498
+ const c = a.getTransformer();
499
+ if (!c) return null;
500
+ const l = c.getSelectedObjectMap().values().next().value;
501
501
  if (!l) return null;
502
- const d = (g) => {
503
- const m = c.getAllObjects(), [p, f] = m.reduce(([_, I], b) => {
504
- const P = b.zIndex, M = P < _ ? P : _, V = P > I ? P : I;
505
- return [M, V];
502
+ const d = (v) => {
503
+ const m = a.getAllObjects(), [p, f] = m.reduce(([_, I], b) => {
504
+ const T = b.zIndex, M = T < _ ? T : _, j = T > I ? T : I;
505
+ return [M, j];
506
506
  }, [0, 0]);
507
- let v = l.zIndex;
508
- g === 3 ? v = p - 1 : g === 2 ? v = f + 1 : g === 0 ? v = l.zIndex + 1 : g === 1 && (v = l.zIndex - 1), l.setProps({
509
- zIndex: v
507
+ let g = l.zIndex;
508
+ v === 3 ? g = p - 1 : v === 2 ? g = f + 1 : v === 0 ? g = l.zIndex + 1 : v === 1 && (g = l.zIndex - 1), l.setProps({
509
+ zIndex: g
510
510
  }), s.executeCommand(H.id, {
511
511
  unitId: t,
512
512
  oKey: l == null ? void 0 : l.oKey,
513
513
  props: {
514
- zIndex: v
514
+ zIndex: g
515
515
  }
516
516
  });
517
517
  };
@@ -530,7 +530,7 @@ function vn(n) {
530
530
  /* forward */
531
531
  );
532
532
  }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
533
- /* @__PURE__ */ u(Ft, {}),
533
+ /* @__PURE__ */ u(kt, {}),
534
534
  i.t("image-panel.arrange.forward")
535
535
  ] }) }) }),
536
536
  /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
@@ -539,7 +539,7 @@ function vn(n) {
539
539
  /* backward */
540
540
  );
541
541
  }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
542
- /* @__PURE__ */ u(Ht, {}),
542
+ /* @__PURE__ */ u(Wt, {}),
543
543
  i.t("image-panel.arrange.backward")
544
544
  ] }) }) })
545
545
  ] }),
@@ -550,7 +550,7 @@ function vn(n) {
550
550
  /* front */
551
551
  );
552
552
  }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
553
- /* @__PURE__ */ u(zt, {}),
553
+ /* @__PURE__ */ u(Zt, {}),
554
554
  i.t("image-panel.arrange.front")
555
555
  ] }) }) }),
556
556
  /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(Se, { onClick: () => {
@@ -559,24 +559,24 @@ function vn(n) {
559
559
  /* back */
560
560
  );
561
561
  }, children: /* @__PURE__ */ x("span", { className: "univer-flex univer-items-center univer-gap-1", children: [
562
- /* @__PURE__ */ u(Bt, {}),
562
+ /* @__PURE__ */ u(Ht, {}),
563
563
  i.t("image-panel.arrange.back")
564
564
  ] }) }) })
565
565
  ] })
566
566
  ] });
567
567
  }
568
- function gn(n) {
568
+ function pn(n) {
569
569
  var p, f;
570
- 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
- if (!c) return null;
572
- const a = c.getTransformer();
570
+ const { pageId: e, unitId: t } = n, i = R(Q), r = R(P), s = R(D), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
573
571
  if (!a) return null;
574
- const l = a.getSelectedObjectMap().values().next().value;
572
+ const c = a.getTransformer();
573
+ if (!c) return null;
574
+ const l = c.getSelectedObjectMap().values().next().value;
575
575
  if (!l) return null;
576
- const [d, g] = $((f = (p = l.fill) == null ? void 0 : p.toString()) != null ? f : "");
577
- function m(v) {
576
+ const [d, v] = $((f = (p = l.fill) == null ? void 0 : p.toString()) != null ? f : "");
577
+ function m(g) {
578
578
  l == null || l.setProps({
579
- fill: v
579
+ fill: g
580
580
  }), s.executeCommand(H.id, {
581
581
  unitId: t,
582
582
  oKey: l == null ? void 0 : l.oKey,
@@ -584,17 +584,17 @@ function gn(n) {
584
584
  shape: {
585
585
  shapeProperties: {
586
586
  shapeBackgroundFill: {
587
- rgb: v
587
+ rgb: g
588
588
  }
589
589
  }
590
590
  }
591
591
  }
592
- }), g(v);
592
+ }), v(g);
593
593
  }
594
594
  return /* @__PURE__ */ u(
595
595
  "div",
596
596
  {
597
- className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Mt),
597
+ className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Dt),
598
598
  children: /* @__PURE__ */ x("div", { className: "univer-relative univer-w-full", children: [
599
599
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u(
600
600
  "div",
@@ -604,18 +604,18 @@ function gn(n) {
604
604
  }
605
605
  ) }),
606
606
  /* @__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(
607
- Tt,
607
+ Nt,
608
608
  {
609
609
  overlay: /* @__PURE__ */ u("div", { className: "univer-rounded-lg univer-p-4", children: /* @__PURE__ */ u(
610
- ji,
610
+ Li,
611
611
  {
612
612
  value: "#fff",
613
613
  onChange: m
614
614
  }
615
615
  ) }),
616
616
  children: /* @__PURE__ */ x("a", { className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1", children: [
617
- /* @__PURE__ */ u(Wt, { className: "univer-fill-primary-600" }),
618
- /* @__PURE__ */ u(Ge, {})
617
+ /* @__PURE__ */ u(zt, { className: "univer-fill-primary-600" }),
618
+ /* @__PURE__ */ u(Ye, {})
619
619
  ] })
620
620
  }
621
621
  ) }) })
@@ -623,37 +623,37 @@ function gn(n) {
623
623
  }
624
624
  );
625
625
  }
626
- function fn(n) {
627
- 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;
628
- if (!c) return null;
629
- const a = c.getTransformer();
626
+ function mn(n) {
627
+ const { pageId: e, unitId: t } = n, i = R(Q), r = R(P), s = R(D), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
630
628
  if (!a) return null;
631
- const l = a.getSelectedObjectMap().values().next().value;
629
+ const c = a.getTransformer();
630
+ if (!c) return null;
631
+ const l = c.getSelectedObjectMap().values().next().value;
632
632
  if (!l) return null;
633
633
  const {
634
634
  width: d = 0,
635
- height: g = 0,
635
+ height: v = 0,
636
636
  left: m = 0,
637
637
  top: p = 0,
638
638
  angle: f = 0
639
- } = l, [v, _] = $(d), [I, b] = $(g), [P, M] = $(m), [V, R] = $(p), [z, se] = $(f), L = (C) => {
640
- const { objects: oe } = C, ce = oe.values().next().value, {
641
- width: Qt = 0,
642
- height: ei = 0,
643
- left: ti = 0,
644
- top: ii = 0,
645
- angle: ni = 0
646
- } = ce;
647
- _(Qt), b(ei), M(ti), R(ii), se(ni);
639
+ } = l, [g, _] = $(d), [I, b] = $(v), [T, M] = $(m), [j, O] = $(p), [z, ae] = $(f), L = (C) => {
640
+ const { objects: ce } = C, le = ce.values().next().value, {
641
+ width: ii = 0,
642
+ height: ni = 0,
643
+ left: ri = 0,
644
+ top: si = 0,
645
+ angle: oi = 0
646
+ } = le;
647
+ _(ii), b(ni), M(ri), O(si), ae(oi);
648
648
  };
649
- he(() => {
650
- const C = a.changeStart$.subscribe((ce) => {
651
- L(ce);
652
- }), oe = a.changing$.subscribe((ce) => {
653
- L(ce);
649
+ ve(() => {
650
+ const C = c.changeStart$.subscribe((le) => {
651
+ L(le);
652
+ }), ce = c.changing$.subscribe((le) => {
653
+ L(le);
654
654
  });
655
655
  return () => {
656
- oe.unsubscribe(), C.unsubscribe();
656
+ ce.unsubscribe(), C.unsubscribe();
657
657
  };
658
658
  }, []);
659
659
  function B(C) {
@@ -663,7 +663,7 @@ function fn(n) {
663
663
  props: {
664
664
  width: C
665
665
  }
666
- }), l == null || l.resize(C, l.height), _(C), a == null || a.refreshControls());
666
+ }), l == null || l.resize(C, l.height), _(C), c == null || c.refreshControls());
667
667
  }
668
668
  function ee(C) {
669
669
  !C || !l || (s.executeCommand(H.id, {
@@ -672,7 +672,7 @@ function fn(n) {
672
672
  props: {
673
673
  height: C
674
674
  }
675
- }), l == null || l.resize(l.width, C), b(C), a == null || a.refreshControls());
675
+ }), l == null || l.resize(l.width, C), b(C), c == null || c.refreshControls());
676
676
  }
677
677
  function te(C) {
678
678
  !C || !l || (s.executeCommand(H.id, {
@@ -681,7 +681,7 @@ function fn(n) {
681
681
  props: {
682
682
  left: C
683
683
  }
684
- }), l == null || l.translate(C, l.top), M(C), a == null || a.refreshControls());
684
+ }), l == null || l.translate(C, l.top), M(C), c == null || c.refreshControls());
685
685
  }
686
686
  function _e(C) {
687
687
  !C || !l || (s.executeCommand(H.id, {
@@ -690,7 +690,7 @@ function fn(n) {
690
690
  props: {
691
691
  right: C
692
692
  }
693
- }), l == null || l.translate(l.left, C), R(C), a == null || a.refreshControls());
693
+ }), l == null || l.translate(l.left, C), O(C), c == null || c.refreshControls());
694
694
  }
695
695
  function Ce(C) {
696
696
  !C || !l || (s.executeCommand(H.id, {
@@ -701,12 +701,12 @@ function fn(n) {
701
701
  }
702
702
  }), l == null || l.transformByState({
703
703
  angle: C
704
- }), se(C), a == null || a.refreshControls());
704
+ }), ae(C), c == null || c.refreshControls());
705
705
  }
706
706
  return /* @__PURE__ */ x(
707
707
  "div",
708
708
  {
709
- className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Mt),
709
+ className: K("univer-relative univer-bottom-0 univer-mt-5 univer-w-full", Dt),
710
710
  children: [
711
711
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full", children: /* @__PURE__ */ u(
712
712
  "div",
@@ -719,11 +719,11 @@ function fn(n) {
719
719
  /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
720
720
  /* @__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") }) }),
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: /* @__PURE__ */ u(
722
- ae,
722
+ de,
723
723
  {
724
724
  className: "univer-w-11/12",
725
725
  min: 1,
726
- value: v,
726
+ value: g,
727
727
  onChange: (C) => {
728
728
  B(C);
729
729
  }
@@ -733,7 +733,7 @@ function fn(n) {
733
733
  /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
734
734
  /* @__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") }) }),
735
735
  /* @__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(
736
- ae,
736
+ de,
737
737
  {
738
738
  className: "univer-w-11/12",
739
739
  min: 1,
@@ -749,12 +749,12 @@ function fn(n) {
749
749
  /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
750
750
  /* @__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") }) }),
751
751
  /* @__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(
752
- ae,
752
+ de,
753
753
  {
754
754
  className: "univer-w-11/12",
755
755
  precision: 1,
756
756
  min: 0,
757
- value: P,
757
+ value: T,
758
758
  onChange: (C) => {
759
759
  te(C);
760
760
  }
@@ -764,12 +764,12 @@ function fn(n) {
764
764
  /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
765
765
  /* @__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") }) }),
766
766
  /* @__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(
767
- ae,
767
+ de,
768
768
  {
769
769
  className: "univer-w-11/12",
770
770
  precision: 1,
771
771
  min: 0,
772
- value: V,
772
+ value: j,
773
773
  onChange: (C) => {
774
774
  _e(C);
775
775
  }
@@ -779,7 +779,7 @@ function fn(n) {
779
779
  /* @__PURE__ */ u("div", { className: "univer-w-1/3", children: /* @__PURE__ */ x("label", { children: [
780
780
  /* @__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") }) }),
781
781
  /* @__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(
782
- ae,
782
+ de,
783
783
  {
784
784
  className: "univer-w-11/12",
785
785
  precision: 1,
@@ -794,48 +794,48 @@ function fn(n) {
794
794
  );
795
795
  }
796
796
  const xe = "COMPONENT_SLIDE_SIDEBAR";
797
- function pn() {
797
+ function _n() {
798
798
  var h, l, d;
799
- 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;
799
+ const n = R(w), e = R(P), t = n.getCurrentUnitForType(E.UNIVER_SLIDE), i = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
800
800
  if (!i) return null;
801
801
  const s = (l = e.getRenderUnitByPageId(i, i).scene) == null ? void 0 : l.getTransformer();
802
802
  if (!s) return null;
803
- const c = s.getSelectedObjectMap().values().next().value;
804
- if (!c)
803
+ const a = s.getSelectedObjectMap().values().next().value;
804
+ if (!a)
805
805
  return null;
806
- const a = ((d = n.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
806
+ const c = ((d = n.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
807
807
  return /* @__PURE__ */ x("section", { className: "univer-p-2 univer-text-center univer-text-sm", children: [
808
- /* @__PURE__ */ u(vn, { pageId: i, unitId: a }),
809
- /* @__PURE__ */ u(fn, { pageId: i, unitId: a }),
810
- c.objectType === le.RECT && /* @__PURE__ */ u(gn, { pageId: i, unitId: a })
808
+ /* @__PURE__ */ u(fn, { pageId: i, unitId: c }),
809
+ /* @__PURE__ */ u(mn, { pageId: i, unitId: c }),
810
+ a.objectType === ue.RECT && /* @__PURE__ */ u(pn, { pageId: i, unitId: c })
811
811
  ] });
812
812
  }
813
- const Ye = {
814
- id: "slide.command.insert-float-shape",
815
- type: D.COMMAND,
813
+ const qe = {
814
+ id: "slide.command.insert-float-shape.rectangle",
815
+ type: N.COMMAND,
816
816
  handler: async (n) => {
817
817
  var r;
818
- const e = n.get(U), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
819
- return e.executeCommand(Kt.id, { unitId: i });
818
+ const e = n.get(D), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
819
+ return e.executeCommand(Xt.id, { unitId: i });
820
820
  }
821
- }, Kt = {
822
- id: "slide.operation.insert-float-shape",
823
- type: D.OPERATION,
821
+ }, Xt = {
822
+ id: "slide.operation.insert-float-shape.rectangle",
823
+ type: N.OPERATION,
824
824
  handler: async (n, e) => {
825
- const t = St(6), i = n.get(w), r = e.unitId, s = i.getUnit(r);
825
+ const t = Ke(6), i = n.get(w), r = e.unitId, s = i.getUnit(r);
826
826
  if (!s) return !1;
827
- const o = s.getActivePage(), c = Object.values(o.pageElements), a = c != null && c.length ? Math.max(...c.map((g) => g.zIndex)) : 20, h = {
827
+ const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((v) => v.zIndex)) : 20, h = {
828
828
  id: t,
829
- zIndex: a + 1,
829
+ zIndex: c + 1,
830
830
  left: 378,
831
831
  top: 142,
832
832
  width: 250,
833
833
  height: 250,
834
834
  title: t,
835
835
  description: "",
836
- type: ze.SHAPE,
836
+ type: De.SHAPE,
837
837
  shape: {
838
- shapeType: ai.Rect,
838
+ shapeType: bt.Rect,
839
839
  text: "",
840
840
  shapeProperties: {
841
841
  shapeBackgroundFill: {
@@ -845,49 +845,88 @@ const Ye = {
845
845
  }
846
846
  };
847
847
  o.pageElements[t] = h, s.updatePage(o.id, o);
848
- const l = n.get(T), d = l.createObjectToPage(h, o.id, r);
848
+ const l = n.get(P), d = l.createObjectToPage(h, o.id, r);
849
849
  return d && l.setObjectActiveByPage(d, o.id, r), !0;
850
850
  }
851
- }, Be = {
851
+ }, $e = {
852
852
  id: "sidebar.operation.slide-shape",
853
- type: D.COMMAND,
853
+ type: N.COMMAND,
854
854
  handler: async (n, e) => {
855
- const { visible: t, objectType: i } = e, r = n.get(Pt), s = n.get(Q);
856
- let o = "", c = "";
857
- 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({
855
+ const { visible: t, objectType: i } = e, r = n.get(Mt), s = n.get(Q);
856
+ let o = "", a = "";
857
+ return i === ue.RECT ? (o = "slide.sidebar.shape", a = xe) : i === ue.IMAGE ? (o = "slide.sidebar.image", a = xe) : i === ue.RICH_TEXT && (o = "slide.sidebar.text", a = xe), t ? r.open({
858
858
  header: { title: s.t(o) },
859
- children: { label: c },
859
+ children: { label: a },
860
860
  onClose: () => {
861
861
  },
862
862
  width: 360
863
863
  }) : r.close(), !0;
864
864
  }
865
- }, qe = {
865
+ }, Je = {
866
+ id: "slide.command.insert-float-shape.ellipse",
867
+ type: N.COMMAND,
868
+ handler: async (n) => {
869
+ var r;
870
+ const e = n.get(D), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
871
+ return e.executeCommand(Gt.id, { unitId: i });
872
+ }
873
+ }, Gt = {
874
+ id: "slide.operation.insert-float-shape.ellipse",
875
+ type: N.OPERATION,
876
+ handler: async (n, e) => {
877
+ const t = Ke(6), i = n.get(w), r = e.unitId, s = i.getUnit(r);
878
+ if (!s) return !1;
879
+ const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((v) => v.zIndex)) : 20, h = {
880
+ id: t,
881
+ zIndex: c + 1,
882
+ left: 378,
883
+ top: 142,
884
+ width: 250,
885
+ height: 250,
886
+ title: t,
887
+ description: "",
888
+ type: De.SHAPE,
889
+ shape: {
890
+ shapeType: bt.Ellipse,
891
+ text: "",
892
+ shapeProperties: {
893
+ radius: 100,
894
+ shapeBackgroundFill: {
895
+ rgb: "rgb(0,0,255)"
896
+ }
897
+ }
898
+ }
899
+ };
900
+ o.pageElements[t] = h, s.updatePage(o.id, o);
901
+ const l = n.get(P), d = l.createObjectToPage(h, o.id, r);
902
+ return d && l.setObjectActiveByPage(d, o.id, r), !0;
903
+ }
904
+ }, Qe = {
866
905
  id: "slide.command.add-text",
867
- type: D.COMMAND,
906
+ type: N.COMMAND,
868
907
  handler: async (n) => {
869
908
  var r;
870
- const e = n.get(U), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
871
- return await e.executeCommand(Zt.id, { unitId: i });
909
+ const e = n.get(D), i = (r = n.get(w).getFocusedUnit()) == null ? void 0 : r.getUnitId();
910
+ return await e.executeCommand(Yt.id, { unitId: i });
872
911
  }
873
- }, Zt = {
912
+ }, Yt = {
874
913
  id: "slide.operation.add-text",
875
- type: D.OPERATION,
914
+ type: N.OPERATION,
876
915
  handler: async (n, e) => {
877
- const t = e.unitId, i = St(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);
916
+ const t = e.unitId, i = Ke(6), r = 220, s = 40, o = 230, a = 142, c = (e == null ? void 0 : e.text) || "A New Text", l = n.get(w).getUnit(t);
878
917
  if (!l) return !1;
879
- const d = l.getActivePage(), g = Object.values(d.pageElements), m = g != null && g.length ? Math.max(...g.map((_) => _.zIndex)) : 21, p = {
918
+ const d = l.getActivePage(), v = Object.values(d.pageElements), m = v != null && v.length ? Math.max(...v.map((_) => _.zIndex)) : 21, p = {
880
919
  id: i,
881
920
  zIndex: m + 1,
882
921
  left: o,
883
- top: c,
922
+ top: a,
884
923
  width: r,
885
924
  height: s,
886
925
  title: "text",
887
926
  description: "",
888
- type: ze.TEXT,
927
+ type: De.TEXT,
889
928
  richText: {
890
- text: a,
929
+ text: c,
891
930
  fs: 30,
892
931
  cl: {
893
932
  rgb: "rgb(51, 51, 51)"
@@ -896,190 +935,202 @@ const Ye = {
896
935
  }
897
936
  };
898
937
  d.pageElements[i] = p, l.updatePage(d.id, d);
899
- const f = n.get(T), v = f.createObjectToPage(p, d.id, t);
900
- return v && f.setObjectActiveByPage(v, d.id, t), !0;
938
+ const f = n.get(P), g = f.createObjectToPage(p, d.id, t);
939
+ return g && f.setObjectActiveByPage(g, d.id, t), !0;
901
940
  }
902
- }, Xt = {
941
+ }, qt = {
903
942
  id: "slide.operation.set-slide-page-thumb",
904
- type: D.OPERATION,
905
- handler: (n, e) => (n.get(T).createThumbs(e.unitId), !0)
943
+ type: N.OPERATION,
944
+ handler: (n, e) => (n.get(P).createThumbs(e.unitId), !0)
906
945
  };
907
- function mn() {
946
+ function Cn() {
908
947
  var p, f;
909
- const n = O(w), e = O(U), t = O(X), i = O(Q), r = Nt(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), c = s == null ? void 0 : s.getPageOrder();
910
- if (!o || !c)
948
+ const n = R(w), e = R(D), t = R(X), i = R(Q), r = Ut(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
949
+ if (!o || !a)
911
950
  return null;
912
- 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 = Li(() => a.map(() => Bi()), [a]);
913
- he(() => {
914
- const v = s == null ? void 0 : s.activePage$.subscribe((_) => {
951
+ const c = a.map((g) => o[g]), [h, l] = $((f = (p = s == null ? void 0 : s.getActivePage()) == null ? void 0 : p.id) != null ? f : null), d = $i(() => c.map(() => Hi()), [c]);
952
+ ve(() => {
953
+ const g = s == null ? void 0 : s.activePage$.subscribe((_) => {
915
954
  var b;
916
955
  const I = (b = _ == null ? void 0 : _.id) != null ? b : null;
917
956
  I && l(I);
918
957
  });
919
958
  return () => {
920
- v == null || v.unsubscribe();
959
+ g == null || g.unsubscribe();
921
960
  };
922
- }, []), he(() => {
923
- d.forEach((v, _) => {
961
+ }, []), ve(() => {
962
+ d.forEach((g, _) => {
924
963
  var I;
925
- if (v.current) {
926
- const b = a[_];
927
- (I = t.getRenderById(b.id)) == null || I.engine.setContainer(v.current);
964
+ if (g.current) {
965
+ const b = c[_];
966
+ (I = t.getRenderById(b.id)) == null || I.engine.setContainer(g.current);
928
967
  }
929
- }), d.length > 0 && e.syncExecuteCommand(Xt.id, { unitId: s == null ? void 0 : s.getUnitId() });
930
- }, [d, a, t, e, s]);
931
- const g = at((v) => {
932
- e.syncExecuteCommand(Ut.id, { id: v, unitId: s == null ? void 0 : s.getUnitId() });
933
- }, [e, s]), m = at(() => {
934
- e.syncExecuteCommand(Vt.id, { unitId: s == null ? void 0 : s.getUnitId() });
968
+ }), d.length > 0 && e.syncExecuteCommand(qt.id, { unitId: s == null ? void 0 : s.getUnitId() });
969
+ }, [d, c, t, e, s]);
970
+ const v = dt((g) => {
971
+ e.syncExecuteCommand(Vt.id, { id: g, unitId: s == null ? void 0 : s.getUnitId() });
972
+ }, [e, s]), m = dt(() => {
973
+ e.syncExecuteCommand(At.id, { unitId: s == null ? void 0 : s.getUnitId() });
935
974
  }, [e, s]);
936
975
  return /* @__PURE__ */ u(
937
976
  "aside",
938
977
  {
939
978
  ref: r,
940
- className: K("univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden", Ai),
979
+ className: K("univer-flex univer-h-full univer-w-64 univer-flex-col univer-overflow-y-auto univer-overflow-x-hidden", Bi),
941
980
  children: /* @__PURE__ */ x("div", { className: "univer-px-4", children: [
942
981
  /* @__PURE__ */ u("header", { className: "univer-flex univer-justify-center univer-pt-4", children: /* @__PURE__ */ u(
943
982
  "a",
944
983
  {
945
- 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),
984
+ 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", ge),
946
985
  onClick: m,
947
986
  children: i.t("slide.append")
948
987
  }
949
988
  ) }),
950
- a.map((v, _) => /* @__PURE__ */ x(
989
+ c.map((g, _) => /* @__PURE__ */ x(
951
990
  "div",
952
991
  {
953
992
  className: K("univer-my-4 univer-flex univer-gap-2", {
954
- "[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600": v.id === h
993
+ "[&>div]:univer-border-primary-600 [&>span]:univer-text-primary-600": g.id === h
955
994
  }),
956
- onClick: () => g(v.id),
995
+ onClick: () => v(g.id),
957
996
  children: [
958
997
  /* @__PURE__ */ u("span", { children: _ + 1 }),
959
998
  /* @__PURE__ */ u(
960
999
  "div",
961
1000
  {
962
1001
  ref: d[_],
963
- className: K("univer-relative univer-box-border univer-h-32 univer-w-52 univer-bg-white hover:univer-border-primary-600", ue)
1002
+ className: K("univer-relative univer-box-border univer-h-32 univer-w-52 univer-bg-white hover:univer-border-primary-600", ge)
964
1003
  }
965
1004
  )
966
1005
  ]
967
1006
  },
968
- v.id
1007
+ g.id
969
1008
  ))
970
1009
  ] })
971
1010
  }
972
1011
  );
973
1012
  }
974
- const de = li("SLIDE_EDITOR"), Gt = "slide.menu.image";
975
- function _n(n) {
1013
+ const he = ui("SLIDE_EDITOR"), Jt = "slide.menu.image";
1014
+ function Sn(n) {
976
1015
  return {
977
- id: Gt,
978
- type: me.SUBITEMS,
1016
+ id: Jt,
1017
+ type: oe.SUBITEMS,
979
1018
  icon: "AddImageIcon",
980
1019
  tooltip: "slide.image.insert.title",
981
- hidden$: pe(n, E.UNIVER_SLIDE)
1020
+ hidden$: se(n, E.UNIVER_SLIDE)
982
1021
  };
983
1022
  }
984
- function Cn(n) {
1023
+ function In(n) {
985
1024
  return {
986
- id: Xe.id,
1025
+ id: Ge.id,
987
1026
  title: "slide.image.insert.float",
988
- type: me.BUTTON,
989
- hidden$: pe(n, E.UNIVER_SLIDE)
1027
+ type: oe.BUTTON,
1028
+ hidden$: se(n, E.UNIVER_SLIDE)
990
1029
  };
991
1030
  }
992
- const Yt = "slide.menu.shape";
993
- function Sn(n) {
1031
+ const Qt = "slide.menu.shape";
1032
+ function bn(n) {
994
1033
  return {
995
- id: Yt,
996
- type: me.SUBITEMS,
1034
+ id: Qt,
1035
+ type: oe.SUBITEMS,
997
1036
  icon: "GraphIcon",
998
1037
  tooltip: "slide.shape.insert.title",
999
- hidden$: pe(n, E.UNIVER_SLIDE)
1038
+ hidden$: se(n, E.UNIVER_SLIDE)
1000
1039
  // disabled$: getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] }),
1001
1040
  };
1002
1041
  }
1003
- function In(n) {
1042
+ function En(n) {
1004
1043
  return {
1005
- id: Ye.id,
1044
+ id: qe.id,
1006
1045
  title: "slide.shape.insert.rectangle",
1007
- type: me.BUTTON,
1008
- hidden$: pe(n, E.UNIVER_SLIDE)
1046
+ type: oe.BUTTON,
1047
+ hidden$: se(n, E.UNIVER_SLIDE)
1009
1048
  };
1010
1049
  }
1011
- function bn(n) {
1050
+ function xn(n) {
1012
1051
  return {
1013
- id: qe.id,
1014
- type: me.BUTTON,
1052
+ id: Je.id,
1053
+ title: "slide.shape.insert.ellipse",
1054
+ type: oe.BUTTON,
1055
+ hidden$: se(n, E.UNIVER_SLIDE)
1056
+ };
1057
+ }
1058
+ function On(n) {
1059
+ return {
1060
+ id: Qe.id,
1061
+ type: oe.BUTTON,
1015
1062
  icon: "TextIcon",
1016
1063
  tooltip: "slide.text.insert.title",
1017
- hidden$: pe(n, E.UNIVER_SLIDE)
1064
+ hidden$: se(n, E.UNIVER_SLIDE)
1018
1065
  };
1019
1066
  }
1020
- const En = {
1021
- [wi.FORMAT]: {
1022
- [qe.id]: {
1067
+ const Rn = {
1068
+ [Pi.FORMAT]: {
1069
+ [Qe.id]: {
1023
1070
  order: 0,
1024
- menuItemFactory: bn
1071
+ menuItemFactory: On
1025
1072
  },
1026
- [Gt]: {
1073
+ [Jt]: {
1027
1074
  order: 0,
1028
- menuItemFactory: _n,
1029
- [Xe.id]: {
1075
+ menuItemFactory: Sn,
1076
+ [Ge.id]: {
1030
1077
  order: 0,
1031
- menuItemFactory: Cn
1078
+ menuItemFactory: In
1032
1079
  }
1033
1080
  },
1034
- [Yt]: {
1081
+ [Qt]: {
1035
1082
  order: 0,
1036
- menuItemFactory: Sn,
1037
- [Ye.id]: {
1083
+ menuItemFactory: bn,
1084
+ [qe.id]: {
1038
1085
  order: 0,
1039
- menuItemFactory: In
1086
+ menuItemFactory: En
1087
+ },
1088
+ [Je.id]: {
1089
+ order: 0,
1090
+ menuItemFactory: xn
1040
1091
  }
1041
1092
  }
1042
1093
  }
1043
1094
  }, we = {
1044
1095
  id: "slide.operation.edit-arrow",
1045
- type: D.OPERATION,
1096
+ type: N.OPERATION,
1046
1097
  handler: () => !0
1047
- }, qt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
1048
- function xn(n) {
1098
+ }, ei = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
1099
+ function wn(n) {
1049
1100
  var p, f;
1050
1101
  const e = (f = (p = n.popup) == null ? void 0 : p.extraProps) == null ? void 0 : f.menuItems;
1051
1102
  if (!e)
1052
1103
  return null;
1053
- const t = O(U), i = O(Q), [r, s] = $(!1), [o, c] = $(!1), a = () => {
1054
- c(!0);
1104
+ const t = R(D), i = R(Q), [r, s] = $(!1), [o, a] = $(!1), c = () => {
1105
+ a(!0);
1055
1106
  }, h = () => {
1056
- c(!1);
1057
- }, l = (v) => {
1058
- s(v);
1059
- }, d = (v) => {
1060
- t.executeCommand(v.commandId, v.commandParams), s(!1);
1061
- }, g = r || o, m = e.filter((v) => !v.disable);
1107
+ a(!1);
1108
+ }, l = (g) => {
1109
+ s(g);
1110
+ }, d = (g) => {
1111
+ t.executeCommand(g.commandId, g.commandParams), s(!1);
1112
+ }, v = r || o, m = e.filter((g) => !g.disable);
1062
1113
  return /* @__PURE__ */ u(
1063
1114
  "div",
1064
1115
  {
1065
- onMouseEnter: a,
1116
+ onMouseEnter: c,
1066
1117
  onMouseLeave: h,
1067
1118
  children: /* @__PURE__ */ u(
1068
- Tt,
1119
+ Nt,
1069
1120
  {
1070
1121
  align: "start",
1071
1122
  overlay: /* @__PURE__ */ u(
1072
1123
  "ul",
1073
1124
  {
1074
- 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),
1075
- children: m.map((v) => /* @__PURE__ */ u(
1125
+ 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", ge),
1126
+ children: m.map((g) => /* @__PURE__ */ u(
1076
1127
  "li",
1077
1128
  {
1078
1129
  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",
1079
- onClick: () => d(v),
1080
- children: /* @__PURE__ */ u("span", { className: "univer-px-2 univer-py-1.5 univer-align-middle", children: i.t(v.label) })
1130
+ onClick: () => d(g),
1131
+ children: /* @__PURE__ */ u("span", { className: "univer-px-2 univer-py-1.5 univer-align-middle", children: i.t(g.label) })
1081
1132
  },
1082
- v.index
1133
+ g.index
1083
1134
  ))
1084
1135
  }
1085
1136
  ),
@@ -1088,18 +1139,18 @@ function xn(n) {
1088
1139
  children: /* @__PURE__ */ x(
1089
1140
  "div",
1090
1141
  {
1091
- className: K("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-800", ue, {
1142
+ className: K("univer-flex univer-items-center univer-gap-2 univer-rounded univer-p-1 hover:univer-bg-gray-100 dark:hover:!univer-bg-gray-800", ge, {
1092
1143
  "univer-bg-gray-100 dark:!univer-bg-gray-800": r,
1093
1144
  "univer-bg-white dark:!univer-bg-gray-900": !r
1094
1145
  }),
1095
1146
  children: [
1096
1147
  /* @__PURE__ */ u(
1097
- Lt,
1148
+ $t,
1098
1149
  {
1099
1150
  className: "univer-fill-primary-600 univer-text-gray-900 dark:!univer-text-white"
1100
1151
  }
1101
1152
  ),
1102
- g && /* @__PURE__ */ u(Ge, { className: "dark:!univer-text-white" })
1153
+ v && /* @__PURE__ */ u(Ye, { className: "dark:!univer-text-white" })
1103
1154
  ]
1104
1155
  }
1105
1156
  )
@@ -1108,7 +1159,7 @@ function xn(n) {
1108
1159
  }
1109
1160
  );
1110
1161
  }
1111
- class Rn {
1162
+ class yn {
1112
1163
  constructor() {
1113
1164
  S(this, "_state", null);
1114
1165
  S(this, "_rect", null);
@@ -1142,58 +1193,58 @@ class Rn {
1142
1193
  this._state$.next(e);
1143
1194
  }
1144
1195
  }
1145
- const Je = It(
1196
+ const et = Et(
1146
1197
  "univer.slide-editor-manager.service"
1147
- ), ye = -1e3, vt = {
1198
+ ), ye = -1e3, ft = {
1148
1199
  width: 0,
1149
1200
  height: 0,
1150
1201
  top: ye,
1151
1202
  left: ye
1152
1203
  };
1153
- function On() {
1204
+ function Pn() {
1154
1205
  const [n, e] = $({
1155
- ...vt
1156
- }), t = O(Je), i = O(Ze), r = O(fe), s = yi(
1157
- () => r.subscribeContextValue$(st),
1206
+ ...ft
1207
+ }), t = R(et), i = R(Xe), r = R(me), s = Ti(
1208
+ () => r.subscribeContextValue$(at),
1158
1209
  !1,
1159
1210
  void 0,
1160
- [r, st]
1211
+ [r, at]
1161
1212
  );
1162
- return di.UNSPECIFIED, he(() => {
1213
+ return hi.UNSPECIFIED, ve(() => {
1163
1214
  t.state$.subscribe((o) => {
1164
1215
  if (o == null)
1165
1216
  return;
1166
1217
  const {
1167
- startX: c = ye,
1168
- startY: a = ye,
1218
+ startX: a = ye,
1219
+ startY: c = ye,
1169
1220
  endX: h = 0,
1170
1221
  endY: l = 0,
1171
1222
  show: d = !1
1172
1223
  } = o;
1173
1224
  if (!d)
1174
1225
  e({
1175
- ...vt
1226
+ ...ft
1176
1227
  });
1177
1228
  else {
1178
1229
  e({
1179
- width: h - c - ne + 2,
1180
- height: l - a - ne + 2,
1181
- left: c + ne,
1182
- top: a + ne
1230
+ width: h - a - ne + 2,
1231
+ height: l - c - ne + 2,
1232
+ left: a + ne,
1233
+ top: c + ne
1183
1234
  });
1184
- const g = i.getEditor(de);
1185
- if (g == null)
1235
+ const v = i.getEditor(he);
1236
+ if (v == null)
1186
1237
  return;
1187
- const { left: m, top: p, width: f, height: v } = g.getBoundingClientRect();
1188
- t.setRect({ left: m, top: p, width: f, height: v });
1238
+ const { left: m, top: p, width: f, height: g } = v.getBoundingClientRect();
1239
+ t.setRect({ left: m, top: p, width: f, height: g });
1189
1240
  }
1190
1241
  });
1191
- }, []), he(() => {
1242
+ }, []), ve(() => {
1192
1243
  s || t.setFocus(!0);
1193
1244
  }, [s, n]), /* @__PURE__ */ u(
1194
1245
  "div",
1195
1246
  {
1196
- className: K("univer-absolute univer-z-10 univer-box-border univer-flex", ue),
1247
+ className: K("univer-absolute univer-z-10 univer-box-border univer-flex", ge),
1197
1248
  style: {
1198
1249
  left: n.left,
1199
1250
  top: n.top,
@@ -1203,26 +1254,26 @@ function On() {
1203
1254
  }
1204
1255
  );
1205
1256
  }
1206
- function $e(n) {
1207
- return n.getContextValue(bt) && n.getContextValue(Re);
1257
+ function He(n) {
1258
+ return n.getContextValue(xt) && n.getContextValue(Oe);
1208
1259
  }
1209
- function wn(n) {
1210
- return n.getContextValue(ui) && n.getContextValue(bt);
1260
+ function Tn(n) {
1261
+ return n.getContextValue(gi) && n.getContextValue(xt);
1211
1262
  }
1212
- const Jt = [
1263
+ const ti = [
1213
1264
  y.ARROW_DOWN,
1214
1265
  y.ARROW_UP,
1215
1266
  y.ARROW_LEFT,
1216
1267
  y.ARROW_RIGHT
1217
1268
  ];
1218
- [y.ENTER, y.TAB, ...Jt];
1219
- function yn() {
1269
+ [y.ENTER, y.TAB, ...ti];
1270
+ function Mn() {
1220
1271
  const n = [];
1221
- for (const e of Jt)
1272
+ for (const e of ti)
1222
1273
  n.push({
1223
1274
  id: we.id,
1224
1275
  binding: e,
1225
- preconditions: (t) => $e(t),
1276
+ preconditions: (t) => He(t),
1226
1277
  staticParameters: {
1227
1278
  visible: !1,
1228
1279
  eventType: q.Keyboard,
@@ -1231,8 +1282,8 @@ function yn() {
1231
1282
  }
1232
1283
  }), n.push({
1233
1284
  id: we.id,
1234
- binding: e | Pi.SHIFT,
1235
- preconditions: (t) => $e(t),
1285
+ binding: e | Mi.SHIFT,
1286
+ preconditions: (t) => He(t),
1236
1287
  staticParameters: {
1237
1288
  visible: !1,
1238
1289
  eventType: q.Keyboard,
@@ -1242,39 +1293,41 @@ function yn() {
1242
1293
  });
1243
1294
  return n;
1244
1295
  }
1245
- const Pn = {
1246
- id: $i.id,
1247
- preconditions: (n) => $e(n) || wn(n),
1296
+ const Nn = {
1297
+ id: Fi.id,
1298
+ preconditions: (n) => He(n) || Tn(n),
1248
1299
  binding: y.BACKSPACE
1249
1300
  };
1250
- var Tn = Object.getOwnPropertyDescriptor, Mn = (n, e, t, i) => {
1251
- for (var r = i > 1 ? void 0 : i ? Tn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1301
+ var Dn = Object.getOwnPropertyDescriptor, Un = (n, e, t, i) => {
1302
+ for (var r = i > 1 ? void 0 : i ? Dn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1252
1303
  (o = n[s]) && (r = o(r) || r);
1253
1304
  return r;
1254
1305
  }, ie = (n, e) => (t, i) => e(t, i, n);
1255
- let Pe = class extends De {
1306
+ let Pe = class extends Ue {
1256
1307
  constructor(n, e, t, i, r, s) {
1257
1308
  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();
1258
1309
  }
1259
1310
  _initMenus() {
1260
- this._menuManagerService.mergeMenu(En);
1311
+ this._menuManagerService.mergeMenu(Rn);
1261
1312
  }
1262
1313
  _initCustomComponents() {
1263
1314
  const n = this._componentManager;
1264
- this.disposeWithMe(n.register("TextIcon", kt)), this.disposeWithMe(n.register("GraphIcon", $t)), this.disposeWithMe(n.register(qt, xn)), this.disposeWithMe(n.register(xe, pn));
1315
+ this.disposeWithMe(n.register("TextIcon", Kt)), this.disposeWithMe(n.register("GraphIcon", Ft)), this.disposeWithMe(n.register(ei, wn)), this.disposeWithMe(n.register(xe, _n));
1265
1316
  }
1266
1317
  _initCommands() {
1267
1318
  [
1319
+ At,
1268
1320
  Vt,
1269
- Ut,
1321
+ qt,
1322
+ Ge,
1323
+ Yt,
1324
+ Qe,
1325
+ Je,
1326
+ Gt,
1270
1327
  Xt,
1271
- Xe,
1272
- Zt,
1273
1328
  qe,
1274
- Kt,
1275
- Ye,
1276
- Be,
1277
- jt,
1329
+ $e,
1330
+ Lt,
1278
1331
  H,
1279
1332
  // commands for editor
1280
1333
  we
@@ -1282,36 +1335,36 @@ let Pe = class extends De {
1282
1335
  }
1283
1336
  _initUIComponents() {
1284
1337
  this.disposeWithMe(
1285
- this._uiPartsService.registerComponent(ot.LEFT_SIDEBAR, () => ct(mn, this._injector))
1338
+ this._uiPartsService.registerComponent(ct.LEFT_SIDEBAR, () => lt(Cn, this._injector))
1286
1339
  ), this.disposeWithMe(
1287
- this._uiPartsService.registerComponent(ot.CONTENT, () => ct(On, this._injector))
1340
+ this._uiPartsService.registerComponent(ct.CONTENT, () => lt(Pn, this._injector))
1288
1341
  );
1289
1342
  }
1290
1343
  _initShortcuts() {
1291
1344
  [
1292
- Pn,
1293
- ...yn()
1345
+ Nn,
1346
+ ...Mn()
1294
1347
  ].forEach((n) => {
1295
1348
  this.disposeWithMe(this._shortcutService.registerShortcut(n));
1296
1349
  });
1297
1350
  }
1298
1351
  };
1299
- Pe = Mn([
1300
- ie(0, Z(ke)),
1301
- ie(1, Ti),
1302
- ie(2, Z(Mi)),
1303
- ie(3, Ni),
1304
- ie(4, U),
1305
- ie(5, Di)
1352
+ Pe = Un([
1353
+ ie(0, Z(ze)),
1354
+ ie(1, Ni),
1355
+ ie(2, Z(Di)),
1356
+ ie(3, Ui),
1357
+ ie(4, D),
1358
+ ie(5, ji)
1306
1359
  ], Pe);
1307
- const Nn = "slides-ui.config", gt = {};
1308
- var Dn = Object.getOwnPropertyDescriptor, Un = (n, e, t, i) => {
1309
- for (var r = i > 1 ? void 0 : i ? Dn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1360
+ const jn = "slides-ui.config", pt = {};
1361
+ var Vn = Object.getOwnPropertyDescriptor, An = (n, e, t, i) => {
1362
+ for (var r = i > 1 ? void 0 : i ? Vn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1310
1363
  (o = n[s]) && (r = o(r) || r);
1311
1364
  return r;
1312
1365
  }, Ie = (n, e) => (t, i) => e(t, i, n);
1313
- function Vn(n, e) {
1314
- const t = ft(n.left, n.top, e), i = ft(n.right, n.bottom, e);
1366
+ function Ln(n, e) {
1367
+ const t = mt(n.left, n.top, e), i = mt(n.right, n.bottom, e);
1315
1368
  return {
1316
1369
  left: t.x,
1317
1370
  top: t.y,
@@ -1319,39 +1372,39 @@ function Vn(n, e) {
1319
1372
  bottom: i.y
1320
1373
  };
1321
1374
  }
1322
- function ft(n, e, t) {
1375
+ function mt(n, e, t) {
1323
1376
  const { scaleX: i, scaleY: r } = t.getAncestorScale(), s = t.getViewport(re.VIEW);
1324
1377
  if (!s)
1325
1378
  return {
1326
1379
  x: n,
1327
1380
  y: e
1328
1381
  };
1329
- const { viewportScrollX: o, viewportScrollY: c } = s, a = (n - o) * i, h = (e - c) * r;
1382
+ const { viewportScrollX: o, viewportScrollY: a } = s, c = (n - o) * i, h = (e - a) * r;
1330
1383
  return {
1331
- x: a,
1384
+ x: c,
1332
1385
  y: h
1333
1386
  };
1334
1387
  }
1335
- let Te = class extends De {
1388
+ let Te = class extends Ue {
1336
1389
  constructor(n, e, t, i) {
1337
1390
  super(), this._globalPopupManagerService = n, this._renderManagerService = e, this._univerInstanceService = t, this._commandService = i;
1338
1391
  }
1339
1392
  _createObjectPositionObserver(n, e) {
1340
1393
  const i = (() => {
1341
1394
  var L, B, ee, te;
1342
- 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 = {
1343
- left: a,
1344
- right: a + l,
1395
+ 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, m = (o.height - ((te = (ee = e.mainComponent) == null ? void 0 : ee.height) != null ? te : 0)) / 2, p = {
1396
+ left: c,
1397
+ right: c + l,
1345
1398
  top: h,
1346
1399
  bottom: h + d
1347
- }, f = c.getCanvasElement(), v = f.getBoundingClientRect(), _ = Ii(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), P = Vn(p, o), { top: M, left: V, width: R } = v, z = R / _;
1400
+ }, f = a.getCanvasElement(), g = f.getBoundingClientRect(), _ = Ei(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), T = Ln(p, o), { top: M, left: j, width: O } = g, z = O / _;
1348
1401
  return {
1349
- left: P.left * z * I + V + g,
1350
- right: P.right * z * I + V + g,
1351
- top: P.top * z * b + M + m,
1352
- bottom: P.bottom * z * b + M + m
1402
+ left: T.left * z * I + j + v,
1403
+ right: T.right * z * I + j + v,
1404
+ top: T.top * z * b + M + m,
1405
+ bottom: T.bottom * z * b + M + m
1353
1406
  };
1354
- })(), r = new J(i), s = new Ke();
1407
+ })(), r = new J(i), s = new Ze();
1355
1408
  return {
1356
1409
  position: i,
1357
1410
  position$: r,
@@ -1365,7 +1418,7 @@ let Te = class extends De {
1365
1418
  dispose: () => {
1366
1419
  }
1367
1420
  };
1368
- const { position: s, position$: o, disposable: c } = this._createObjectPositionObserver(n, r), a = this._globalPopupManagerService.addPopup({
1421
+ const { position: s, position$: o, disposable: a } = this._createObjectPositionObserver(n, r), c = this._globalPopupManagerService.addPopup({
1369
1422
  ...e,
1370
1423
  unitId: i,
1371
1424
  subUnitId: "default",
@@ -1375,27 +1428,27 @@ let Te = class extends De {
1375
1428
  });
1376
1429
  return {
1377
1430
  dispose: () => {
1378
- this._globalPopupManagerService.removePopup(a), o.complete(), c.dispose();
1431
+ this._globalPopupManagerService.removePopup(c), o.complete(), a.dispose();
1379
1432
  }
1380
1433
  };
1381
1434
  }
1382
1435
  };
1383
- Te = Un([
1384
- Ie(0, Z(Ui)),
1436
+ Te = An([
1437
+ Ie(0, Z(Vi)),
1385
1438
  Ie(1, X),
1386
1439
  Ie(2, w),
1387
- Ie(3, U)
1440
+ Ie(3, D)
1388
1441
  ], Te);
1389
- var jn = Object.getOwnPropertyDescriptor, An = (n, e, t, i) => {
1390
- for (var r = i > 1 ? void 0 : i ? jn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1442
+ var Bn = Object.getOwnPropertyDescriptor, $n = (n, e, t, i) => {
1443
+ for (var r = i > 1 ? void 0 : i ? Bn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1391
1444
  (o = n[s]) && (r = o(r) || r);
1392
1445
  return r;
1393
1446
  }, Y = (n, e) => (t, i) => e(t, i, n);
1394
- let Me = class extends ge {
1395
- constructor(e, t, i, r, s, o, c) {
1447
+ let Me = class extends pe {
1448
+ constructor(e, t, i, r, s, o, a) {
1396
1449
  super();
1397
1450
  S(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
1398
- this._canvasPopManagerService = e, this._renderManagerService = t, this._univerInstanceService = i, this._contextService = r, this._canvasView = s, this._sidebarService = o, this._commandService = c, this._init();
1451
+ this._canvasPopManagerService = e, this._renderManagerService = t, this._univerInstanceService = i, this._contextService = r, this._canvasView = s, this._sidebarService = o, this._commandService = a, this._init();
1399
1452
  }
1400
1453
  _init() {
1401
1454
  this._univerInstanceService.getAllUnitsForType(E.UNIVER_SLIDE).forEach((e) => this._create(e));
@@ -1414,44 +1467,44 @@ let Me = class extends ge {
1414
1467
  const t = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE), i = (r = t == null ? void 0 : t.getPages()) != null ? r : {};
1415
1468
  Object.keys(i).forEach((s) => {
1416
1469
  var h;
1417
- const c = (h = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : h.getTransformer();
1418
- if (!c) return;
1419
- let a;
1470
+ const a = (h = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : h.getTransformer();
1471
+ if (!a) return;
1472
+ let c;
1420
1473
  this.disposeWithMe(
1421
- Et(
1422
- c.createControl$.subscribe(() => {
1423
- const l = c.getSelectedObjectMap();
1474
+ Ot(
1475
+ a.createControl$.subscribe(() => {
1476
+ const l = a.getSelectedObjectMap();
1424
1477
  if (l.size > 1) {
1425
- a == null || a.dispose();
1478
+ c == null || c.dispose();
1426
1479
  return;
1427
1480
  }
1428
1481
  const d = l.values().next().value;
1429
1482
  if (!d)
1430
1483
  return;
1431
- const g = d.oKey;
1432
- a == null || a.dispose(), a = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(d, {
1433
- componentKey: qt,
1484
+ const v = d.oKey;
1485
+ c == null || c.dispose(), c = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(d, {
1486
+ componentKey: ei,
1434
1487
  direction: "horizontal",
1435
1488
  offset: [2, 0],
1436
1489
  extraProps: {
1437
- menuItems: this._getMenuItemsByObjectType(d.objectType, g, e)
1490
+ menuItems: this._getMenuItemsByObjectType(d.objectType, v, e)
1438
1491
  }
1439
- })), this._sidebarService.visible && this._commandService.executeCommand(Be.id, {
1492
+ })), this._sidebarService.visible && this._commandService.executeCommand($e.id, {
1440
1493
  visible: !0,
1441
1494
  objectType: d.objectType
1442
1495
  });
1443
1496
  })
1444
1497
  )
1445
1498
  ), this.disposeWithMe(
1446
- c.clearControl$.subscribe(() => {
1447
- a == null || a.dispose(), this._contextService.setContextValue(hi, !1);
1499
+ a.clearControl$.subscribe(() => {
1500
+ c == null || c.dispose(), this._contextService.setContextValue(vi, !1);
1448
1501
  })
1449
1502
  ), this.disposeWithMe(
1450
- c.changing$.subscribe(() => {
1451
- a == null || a.dispose();
1452
- const l = c.getSelectedObjectMap();
1503
+ a.changing$.subscribe(() => {
1504
+ c == null || c.dispose();
1505
+ const l = a.getSelectedObjectMap();
1453
1506
  if (l.size > 1) {
1454
- a == null || a.dispose();
1507
+ c == null || c.dispose();
1455
1508
  return;
1456
1509
  }
1457
1510
  const d = l.values().next().value;
@@ -1473,7 +1526,7 @@ let Me = class extends ge {
1473
1526
  return [{
1474
1527
  label: "slide.popup.edit",
1475
1528
  index: 0,
1476
- commandId: Be.id,
1529
+ commandId: $e.id,
1477
1530
  commandParams: {
1478
1531
  visible: !0,
1479
1532
  objectType: e
@@ -1482,7 +1535,7 @@ let Me = class extends ge {
1482
1535
  }, {
1483
1536
  label: "slide.popup.delete",
1484
1537
  index: 5,
1485
- commandId: jt.id,
1538
+ commandId: Lt.id,
1486
1539
  commandParams: {
1487
1540
  id: t,
1488
1541
  unitId: i
@@ -1491,25 +1544,25 @@ let Me = class extends ge {
1491
1544
  }];
1492
1545
  }
1493
1546
  };
1494
- Me = An([
1547
+ Me = $n([
1495
1548
  Y(0, Z(Te)),
1496
1549
  Y(1, X),
1497
1550
  Y(2, w),
1498
- Y(3, fe),
1499
- Y(4, Z(T)),
1500
- Y(5, Pt),
1501
- Y(6, U)
1551
+ Y(3, me),
1552
+ Y(4, Z(P)),
1553
+ Y(5, Mt),
1554
+ Y(6, D)
1502
1555
  ], Me);
1503
- var Ln = Object.getOwnPropertyDescriptor, Bn = (n, e, t, i) => {
1504
- for (var r = i > 1 ? void 0 : i ? Ln(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1556
+ var Hn = Object.getOwnPropertyDescriptor, Fn = (n, e, t, i) => {
1557
+ for (var r = i > 1 ? void 0 : i ? Hn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1505
1558
  (o = n[s]) && (r = o(r) || r);
1506
1559
  return r;
1507
1560
  }, Ve = (n, e) => (t, i) => e(t, i, n);
1508
- const Qe = It("univer.slide-editor-bridge.service");
1509
- let He = class extends De {
1561
+ const tt = Et("univer.slide-editor-bridge.service");
1562
+ let Fe = class extends Ue {
1510
1563
  constructor(e, t, i) {
1511
1564
  super();
1512
- S(this, "_editorUnitId", de);
1565
+ S(this, "_editorUnitId", he);
1513
1566
  S(this, "_isForceKeepVisible", !1);
1514
1567
  S(this, "_editorIsDirty", !1);
1515
1568
  S(this, "_currentEditRectState", null);
@@ -1524,7 +1577,7 @@ let He = class extends De {
1524
1577
  S(this, "visible$", this._visible$.asObservable());
1525
1578
  S(this, "_afterVisible$", new J(this._visibleParam));
1526
1579
  S(this, "afterVisible$", this._afterVisible$.asObservable());
1527
- S(this, "endEditing$", new Dt());
1580
+ S(this, "endEditing$", new jt());
1528
1581
  S(this, "_currentEditRectInfo");
1529
1582
  this._editorService = e, this._contextService = t, this._renderManagerService = i;
1530
1583
  }
@@ -1539,7 +1592,7 @@ let He = class extends De {
1539
1592
  * @editorInfo editorInfo
1540
1593
  */
1541
1594
  setEditorRect(e) {
1542
- this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(de), this._contextService.setContextValue(Re, !1), this._contextService.setContextValue(xt, !1), this._contextService.setContextValue(Rt, !1));
1595
+ this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(he), this._contextService.setContextValue(Oe, !1), this._contextService.setContextValue(Rt, !1), this._contextService.setContextValue(wt, !1));
1543
1596
  const t = this.getEditRectState();
1544
1597
  this._currentEditRectState = t, this._currentEditRectState$.next(t);
1545
1598
  }
@@ -1553,32 +1606,32 @@ let He = class extends De {
1553
1606
  * && this@setEditorRect
1554
1607
  */
1555
1608
  getEditRectState() {
1556
- const e = de, t = this._currentEditRectInfo, i = t.unitId, r = t.richTextObj.documentData;
1609
+ const e = he, t = this._currentEditRectInfo, i = t.unitId, r = t.richTextObj.documentData;
1557
1610
  r.id = e, r.documentStyle = {
1558
1611
  ...r.documentStyle,
1559
1612
  pageSize: { width: t.richTextObj.width, height: 1 / 0 }
1560
1613
  };
1561
1614
  const o = {
1562
- documentModel: new vi(r),
1615
+ documentModel: new fi(r),
1563
1616
  fontString: "document",
1564
1617
  textRotation: { a: 0, v: 0 },
1565
1618
  wrapStrategy: 0,
1566
- verticalAlign: Oe.TOP,
1567
- horizontalAlign: Ot.LEFT,
1619
+ verticalAlign: Re.TOP,
1620
+ horizontalAlign: yt.LEFT,
1568
1621
  paddingData: { t: 0, b: 1, l: 2, r: 2 }
1569
- }, c = t.richTextObj.width, a = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1622
+ }, a = t.richTextObj.width, c = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1570
1623
  left: 0,
1571
1624
  top: 0
1572
- }, 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 = {
1625
+ }, v = this._renderManagerService.getRenderById(i), m = v == null ? void 0 : v.scene, p = m == null ? void 0 : m.getViewport(re.VIEW), f = m == null ? void 0 : m.getObject(re.COMPONENT), g = {
1573
1626
  x: (f == null ? void 0 : f.left) || 0,
1574
1627
  y: (f == null ? void 0 : f.top) || 0
1575
1628
  }, _ = (p == null ? void 0 : p.viewportScrollX) || 0, I = (p == null ? void 0 : p.viewportScrollY) || 0;
1576
- return d.left = v.x - _, d.top = v.y - I, {
1629
+ return d.left = g.x - _, d.top = g.y - I, {
1577
1630
  position: {
1578
1631
  startX: h,
1579
1632
  startY: l,
1580
- endX: h + c,
1581
- endY: l + a
1633
+ endX: h + a,
1634
+ endY: l + c
1582
1635
  },
1583
1636
  scaleX: 1,
1584
1637
  scaleY: 1,
@@ -1631,7 +1684,7 @@ let He = class extends De {
1631
1684
  textStyle: { fs: r },
1632
1685
  renderConfig: {
1633
1686
  // horizontalAlign: HorizontalAlign.CENTER,
1634
- verticalAlign: Oe.MIDDLE,
1687
+ verticalAlign: Re.MIDDLE,
1635
1688
  centerAngle: 0,
1636
1689
  vertexAngle: 0,
1637
1690
  wrapStrategy: 0
@@ -1643,19 +1696,19 @@ let He = class extends De {
1643
1696
  };
1644
1697
  }
1645
1698
  };
1646
- He = Bn([
1647
- Ve(0, Ze),
1648
- Ve(1, fe),
1699
+ Fe = Fn([
1700
+ Ve(0, Xe),
1701
+ Ve(1, me),
1649
1702
  Ve(2, X)
1650
- ], He);
1651
- var G = /* @__PURE__ */ ((n) => (n[n.InitialState = 0] = "InitialState", n[n.StartEditor = 1] = "StartEditor", n[n.CursorChange = 2] = "CursorChange", n))(G || {}), $n = Object.getOwnPropertyDescriptor, Hn = (n, e, t, i) => {
1652
- for (var r = i > 1 ? void 0 : i ? $n(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1703
+ ], Fe);
1704
+ var G = /* @__PURE__ */ ((n) => (n[n.InitialState = 0] = "InitialState", n[n.StartEditor = 1] = "StartEditor", n[n.CursorChange = 2] = "CursorChange", n))(G || {}), Wn = Object.getOwnPropertyDescriptor, kn = (n, e, t, i) => {
1705
+ for (var r = i > 1 ? void 0 : i ? Wn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
1653
1706
  (o = n[s]) && (r = o(r) || r);
1654
1707
  return r;
1655
1708
  }, A = (n, e) => (t, i) => e(t, i, n);
1656
- const pt = -1e3, mt = 5, Fn = 2;
1657
- let Fe = class extends De {
1658
- constructor(e, t, i, r, s, o, c, a, h, l, d, g) {
1709
+ const _t = -1e3, Ct = 5, zn = 2;
1710
+ let We = class extends Ue {
1711
+ constructor(e, t, i, r, s, o, a, c, h, l, d, v) {
1659
1712
  super();
1660
1713
  /**
1661
1714
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
@@ -1664,7 +1717,7 @@ let Fe = class extends De {
1664
1717
  /** If the corresponding unit is active and prepared for editing. */
1665
1718
  S(this, "_isUnitEditing", !1);
1666
1719
  S(this, "_d");
1667
- 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) => {
1720
+ 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((m) => {
1668
1721
  m && m.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1669
1722
  visible: !1,
1670
1723
  eventType: q.Keyboard,
@@ -1681,7 +1734,7 @@ let Fe = class extends De {
1681
1734
  (e = this._d) == null || e.dispose(), this._d = null;
1682
1735
  }
1683
1736
  _init() {
1684
- const e = new Ke();
1737
+ const e = new Ze();
1685
1738
  return this._subscribeToCurrentCell(e), this._initialKeyboardListener(e), this._initialCursorSync(e), this._listenEditorFocus(e), this._commandExecutedListener(e), setTimeout(() => {
1686
1739
  this._cursorStateListener(e);
1687
1740
  }, 1e3), e;
@@ -1698,16 +1751,16 @@ let Fe = class extends De {
1698
1751
  }
1699
1752
  _getEditorSkeleton(e) {
1700
1753
  var t;
1701
- return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(ht).getSkeleton();
1754
+ return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(vt).getSkeleton();
1702
1755
  }
1703
1756
  _getEditorViewModel(e) {
1704
1757
  var t;
1705
- return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(ht).getViewModel();
1758
+ return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(vt).getViewModel();
1706
1759
  }
1707
1760
  _initialCursorSync(e) {
1708
- e.add(this._cellEditorManagerService.focus$.pipe(zi((t) => !!t)).subscribe(() => {
1761
+ e.add(this._cellEditorManagerService.focus$.pipe(Zi((t) => !!t)).subscribe(() => {
1709
1762
  var t;
1710
- (t = Le(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(lt).sync();
1763
+ (t = Be(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || t.with(ut).sync();
1711
1764
  }));
1712
1765
  }
1713
1766
  /**
@@ -1717,18 +1770,18 @@ let Fe = class extends De {
1717
1770
  _subscribeToCurrentCell(e) {
1718
1771
  e.add(this._editorBridgeService.currentEditRectState$.subscribe((t) => {
1719
1772
  var d;
1720
- if (t == null || this._contextService.getContextValue(xt) || this._contextService.getContextValue(Rt))
1773
+ if (t == null || this._contextService.getContextValue(Rt) || this._contextService.getContextValue(wt))
1721
1774
  return;
1722
1775
  const {
1723
1776
  position: { startX: i, endX: r },
1724
- documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: c },
1725
- scaleX: a,
1777
+ documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: a },
1778
+ scaleX: c,
1726
1779
  editorUnitId: h
1727
- } = t, { vertexAngle: l } = nt(s);
1728
- c.updateDocumentId(h), o === et.WRAP && l === 0 && c.updateDocumentDataPageSize((r - i) / a), this._instanceSrv.changeDoc(h, c), this._contextService.setContextValue(fi, !0), this._textSelectionManagerService.replaceTextRanges([{
1780
+ } = t, { vertexAngle: l } = st(s);
1781
+ a.updateDocumentId(h), o === it.WRAP && l === 0 && a.updateDocumentDataPageSize((r - i) / c), this._instanceSrv.changeDoc(h, a), this._contextService.setContextValue(mi, !0), this._textSelectionManagerService.replaceTextRanges([{
1729
1782
  startOffset: 0,
1730
1783
  endOffset: 0
1731
- }]), (d = Le(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || d.with(lt).activate(pt, pt);
1784
+ }]), (d = Be(E.UNIVER_DOC, this._instanceSrv, this._renderManagerService)) == null || d.with(ut).activate(_t, _t);
1732
1785
  }));
1733
1786
  }
1734
1787
  /**
@@ -1741,46 +1794,46 @@ let Fe = class extends De {
1741
1794
  * @param scaleY
1742
1795
  */
1743
1796
  _fitTextSize(e, t, i, r, s = 1, o = 1) {
1744
- const { startX: c, startY: a, endX: h, endY: l } = e, d = r.documentModel;
1797
+ const { startX: a, startY: c, endX: h, endY: l } = e, d = r.documentModel;
1745
1798
  if (d == null)
1746
1799
  return;
1747
- const { actualWidth: g, actualHeight: m } = this._predictingSize(
1800
+ const { actualWidth: v, actualHeight: m } = this._predictingSize(
1748
1801
  e,
1749
1802
  t,
1750
1803
  i,
1751
1804
  r,
1752
1805
  s,
1753
1806
  o
1754
- ), { verticalAlign: p, paddingData: f, fill: v } = r;
1755
- let _ = h - c, I = l - a;
1756
- if (_ < g && (_ = g), I < m)
1807
+ ), { verticalAlign: p, paddingData: f, fill: g } = r;
1808
+ let _ = h - a, I = l - c;
1809
+ if (_ < v && (_ = v), I < m)
1757
1810
  I = m, d.updateDocumentDataMargin(f);
1758
1811
  else {
1759
1812
  let b = 0;
1760
- 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({
1813
+ p === Re.MIDDLE ? b = (I - m) / 2 / o : p === Re.TOP ? b = f.t || 0 : b = (I - m) / o - (f.b || 0), b = b < (f.t || 0) ? f.t || 0 : b, d.updateDocumentDataMargin({
1761
1814
  t: b
1762
1815
  });
1763
1816
  }
1764
- i.calculate(), this._editAreaProcessing(_, I, e, t, v, s, o);
1817
+ i.calculate(), this._editAreaProcessing(_, I, e, t, g, s, o);
1765
1818
  }
1766
1819
  /**
1767
1820
  * Mainly used to pre-calculate the width of the editor,
1768
1821
  * to determine whether it needs to be automatically widened.
1769
1822
  */
1770
1823
  _predictingSize(e, t, i, r, s = 1, o = 1) {
1771
- const { startX: c, endX: a } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: g } = nt(h), m = document.body.clientWidth;
1772
- if (l === et.WRAP && g === 0) {
1773
- const { actualWidth: v, actualHeight: _ } = i.getActualSize();
1824
+ const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: v } = st(h), m = document.body.clientWidth;
1825
+ if (l === it.WRAP && v === 0) {
1826
+ const { actualWidth: g, actualHeight: _ } = i.getActualSize();
1774
1827
  return {
1775
- actualWidth: v * s,
1828
+ actualWidth: g * s,
1776
1829
  actualHeight: _ * o
1777
1830
  };
1778
1831
  }
1779
- d == null || d.updateDocumentDataPageSize((m - c - t.left) / s), i.calculate();
1832
+ d == null || d.updateDocumentDataPageSize((m - a - t.left) / s), i.calculate();
1780
1833
  const p = i.getActualSize();
1781
- let f = a - c;
1782
- return f < p.actualWidth * s + mt * s && (f = p.actualWidth * s + mt * s), d == null || d.updateDocumentDataPageSize(f / s), d == null || d.updateDocumentRenderConfig({
1783
- horizontalAlign: Ot.UNSPECIFIED,
1834
+ let f = c - a;
1835
+ return f < p.actualWidth * s + Ct * s && (f = p.actualWidth * s + Ct * s), d == null || d.updateDocumentDataPageSize(f / s), d == null || d.updateDocumentRenderConfig({
1836
+ horizontalAlign: yt.UNSPECIFIED,
1784
1837
  cellValueType: void 0
1785
1838
  }), {
1786
1839
  actualWidth: f,
@@ -1791,30 +1844,30 @@ let Fe = class extends De {
1791
1844
  * control the size of editing area
1792
1845
  */
1793
1846
  // eslint-disable-next-line max-lines-per-function
1794
- _editAreaProcessing(e, t, i, r, s, o = 1, c = 1) {
1847
+ _editAreaProcessing(e, t, i, r, s, o = 1, a = 1) {
1795
1848
  var C;
1796
- const a = this._getEditorObject();
1797
- if (a == null)
1849
+ const c = this._getEditorObject();
1850
+ if (c == null)
1798
1851
  return;
1799
- function h(oe) {
1800
- return Number.parseInt(oe.replace("px", ""));
1852
+ function h(ce) {
1853
+ return Number.parseInt(ce.replace("px", ""));
1801
1854
  }
1802
- const d = this._renderContext.engine.getCanvasElement(), g = d.getBoundingClientRect(), m = h(d.style.width), { top: p, left: f, width: v } = g, _ = v / m;
1855
+ const d = this._renderContext.engine.getCanvasElement(), v = d.getBoundingClientRect(), m = h(d.style.width), { top: p, left: f, width: g } = v, _ = g / m;
1803
1856
  let { startX: I, startY: b } = i;
1804
1857
  I += r.left, b += r.top;
1805
- const { document: P, scene: M, engine: V } = a, R = M.getViewport(dt.VIEW_MAIN), z = document.body.clientHeight - b - r.top - Fn * 2, se = document.body.clientWidth - I - r.left;
1806
- let L = t, B = R == null ? void 0 : R.getScrollBar();
1807
- L > z ? (L = z, B == null ? R && new wt(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);
1858
+ const { document: T, scene: M, engine: j } = c, O = M.getViewport(ht.VIEW_MAIN), z = document.body.clientHeight - b - r.top - zn * 2, ae = document.body.clientWidth - I - r.left;
1859
+ let L = t, B = O == null ? void 0 : O.getScrollBar();
1860
+ L > z ? (L = z, B == null ? O && new Pt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (B = null, (C = O == null ? void 0 : O.getScrollBar()) == null || C.dispose()), e += (B == null ? void 0 : B.barSize) || 0, e = Math.min(e, ae), I -= ne, b -= ne, this._addBackground(M, e / o, t / a, s);
1808
1861
  const { scaleX: ee, scaleY: te } = M.getPrecisionScale();
1809
1862
  M.transformByState({
1810
1863
  width: e * _ / o,
1811
- height: t * _ / c,
1864
+ height: t * _ / a,
1812
1865
  scaleX: o * _,
1813
- scaleY: c * _
1814
- }), P.resize(e / o, t / c), setTimeout(() => {
1815
- V.resizeBySize(
1816
- rt(e, ee),
1817
- rt(L, te)
1866
+ scaleY: a * _
1867
+ }), T.resize(e / o, t / a), setTimeout(() => {
1868
+ j.resizeBySize(
1869
+ ot(e, ee),
1870
+ ot(L, te)
1818
1871
  );
1819
1872
  }, 0);
1820
1873
  const _e = this._layoutService.getContentElement().getBoundingClientRect(), Ce = d.getBoundingClientRect();
@@ -1833,14 +1886,14 @@ let Fe = class extends De {
1833
1886
  const s = "_backgroundRectHelperColor_", o = e.getObject(s);
1834
1887
  o == null && r == null || (o == null ? e.addObjects(
1835
1888
  [
1836
- new yt(s, {
1889
+ new Tt(s, {
1837
1890
  width: t,
1838
1891
  height: i,
1839
1892
  fill: r,
1840
1893
  evented: !1
1841
1894
  })
1842
1895
  ],
1843
- Hi
1896
+ Wi
1844
1897
  ) : r == null ? o.dispose() : (o.setProps({
1845
1898
  fill: r
1846
1899
  }), o.transformByState({
@@ -1857,7 +1910,7 @@ let Fe = class extends De {
1857
1910
  // first part: startEditing --> _updateEditor
1858
1911
  // 2nd part: startEditing --> changeVisible --> slide-editor-bridge.render-controller.ts@changeVisible --> _editorBridgeService.changeVisible
1859
1912
  _handleEditorVisible(e) {
1860
- var v, _;
1913
+ var g, _;
1861
1914
  const { eventType: t } = e;
1862
1915
  this._cursorChange = [q.PointerDown, q.Dblclick].includes(t) ? G.CursorChange : G.StartEditor;
1863
1916
  const i = this._editorBridgeService.getEditRectState();
@@ -1867,21 +1920,21 @@ let Fe = class extends De {
1867
1920
  position: r,
1868
1921
  documentLayoutObject: s,
1869
1922
  slideCardOffset: o,
1870
- scaleX: c,
1871
- scaleY: a,
1923
+ scaleX: a,
1924
+ scaleY: c,
1872
1925
  editorUnitId: h,
1873
1926
  unitId: l
1874
1927
  } = i, d = this._getEditorObject();
1875
1928
  if (d == null)
1876
1929
  return;
1877
- const { scene: g } = d;
1878
- this._contextService.setContextValue(Re, !0);
1930
+ const { scene: v } = d;
1931
+ this._contextService.setContextValue(Oe, !0);
1879
1932
  const { documentModel: m } = s, p = this._getEditorSkeleton(h);
1880
1933
  if (!p || !m)
1881
1934
  return;
1882
- this._fitTextSize(r, o, p, s, c, a);
1935
+ this._fitTextSize(r, o, p, s, a, c);
1883
1936
  const f = m.getBody().dataStream.length - 2 || 0;
1884
- (v = g.getViewport(dt.VIEW_MAIN)) == null || v.scrollToViewportPos({
1937
+ (g = v.getViewport(ht.VIEW_MAIN)) == null || g.scrollToViewportPos({
1885
1938
  viewportScrollX: Number.POSITIVE_INFINITY
1886
1939
  }), this._textSelectionManagerService.replaceTextRanges([
1887
1940
  {
@@ -1891,7 +1944,7 @@ let Fe = class extends De {
1891
1944
  ]), (_ = this._renderManagerService.getRenderById(l)) == null || _.scene.resetCursor();
1892
1945
  }
1893
1946
  _resetBodyStyle(e, t = !1) {
1894
- e.dataStream = pi, 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 = [
1947
+ e.dataStream = _i, 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 = [
1895
1948
  {
1896
1949
  startIndex: 0
1897
1950
  }
@@ -1906,9 +1959,9 @@ let Fe = class extends De {
1906
1959
  _showEditorByKeyboard(e) {
1907
1960
  }
1908
1961
  _commandExecutedListener(e) {
1909
- const t = [we.id], i = [Zi.id];
1962
+ const t = [we.id], i = [Gi.id];
1910
1963
  e.add(this._commandService.onCommandExecuted((r) => {
1911
- this._editorService.getFocusId() === de && (t.includes(r.id) && this._moveCursorCmdHandler(r), i.includes(r.id) && this._editorBridgeService.isVisible() && this._editingChangedHandler());
1964
+ this._editorService.getFocusId() === he && (t.includes(r.id) && this._moveCursorCmdHandler(r), i.includes(r.id) && this._editorBridgeService.isVisible() && this._editingChangedHandler());
1912
1965
  }));
1913
1966
  }
1914
1967
  _moveCursorCmdHandler(e) {
@@ -1925,7 +1978,7 @@ let Fe = class extends De {
1925
1978
  this._handleEditorVisible({ visible: !0, eventType: 3, unitId: i });
1926
1979
  }
1927
1980
  _getEditorObject() {
1928
- return Wn(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1981
+ return Kn(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1929
1982
  }
1930
1983
  async _handleEditorInvisible(e) {
1931
1984
  const { keycode: t } = e;
@@ -1938,7 +1991,7 @@ let Fe = class extends De {
1938
1991
  this._moveCursor(t);
1939
1992
  }
1940
1993
  _exitInput(e) {
1941
- this._contextService.setContextValue(Re, !1), this._cellEditorManagerService.setState({
1994
+ this._contextService.setContextValue(Oe, !1), this._cellEditorManagerService.setState({
1942
1995
  show: e.visible
1943
1996
  });
1944
1997
  const t = this._editorBridgeService.getCurrentEditorId();
@@ -1946,24 +1999,24 @@ let Fe = class extends De {
1946
1999
  }
1947
2000
  _moveCursor(e) {
1948
2001
  if (e != null)
1949
- switch (j.LEFT, e) {
2002
+ switch (V.LEFT, e) {
1950
2003
  case y.ENTER:
1951
- j.DOWN;
2004
+ V.DOWN;
1952
2005
  break;
1953
2006
  case y.TAB:
1954
- j.RIGHT;
2007
+ V.RIGHT;
1955
2008
  break;
1956
2009
  case y.ARROW_DOWN:
1957
- j.DOWN;
2010
+ V.DOWN;
1958
2011
  break;
1959
2012
  case y.ARROW_UP:
1960
- j.UP;
2013
+ V.UP;
1961
2014
  break;
1962
2015
  case y.ARROW_LEFT:
1963
- j.LEFT;
2016
+ V.LEFT;
1964
2017
  break;
1965
2018
  case y.ARROW_RIGHT:
1966
- j.RIGHT;
2019
+ V.RIGHT;
1967
2020
  break;
1968
2021
  }
1969
2022
  }
@@ -1976,53 +2029,53 @@ let Fe = class extends De {
1976
2029
  if (!t)
1977
2030
  return;
1978
2031
  const { document: i } = t;
1979
- e.add(Et(i.onPointerDown$.subscribeEvent(() => {
2032
+ e.add(Ot(i.onPointerDown$.subscribeEvent(() => {
1980
2033
  this._cursorChange === G.StartEditor && (this._cursorChange = G.CursorChange);
1981
2034
  })));
1982
2035
  }
1983
2036
  // TODO: @JOCS, is it necessary to move these commands MoveSelectionOperation\MoveCursorOperation to shortcut? and use multi-commands?
1984
2037
  _moveInEditor(e, t) {
1985
- let i = j.LEFT;
1986
- 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, {
2038
+ let i = V.LEFT;
2039
+ e === y.ARROW_DOWN ? i = V.DOWN : e === y.ARROW_UP ? i = V.UP : e === y.ARROW_RIGHT && (i = V.RIGHT), t ? this._commandService.executeCommand(ki.id, {
1987
2040
  direction: i
1988
- }) : this._commandService.executeCommand(Wi.id, {
2041
+ }) : this._commandService.executeCommand(zi.id, {
1989
2042
  direction: i
1990
2043
  });
1991
2044
  }
1992
2045
  };
1993
- Fe = Hn([
1994
- A(1, Vi),
1995
- A(2, gi),
1996
- A(3, fe),
2046
+ We = kn([
2047
+ A(1, Ai),
2048
+ A(2, pi),
2049
+ A(3, me),
1997
2050
  A(4, w),
1998
2051
  A(5, X),
1999
- A(6, Qe),
2000
- A(7, Je),
2001
- A(8, Z(Ki)),
2002
- A(9, U),
2052
+ A(6, tt),
2053
+ A(7, et),
2054
+ A(8, Z(Xi)),
2055
+ A(9, D),
2003
2056
  A(10, Z(Q)),
2004
- A(11, Ze)
2005
- ], Fe);
2006
- function Wn(n, e) {
2057
+ A(11, Xe)
2058
+ ], We);
2059
+ function Kn(n, e) {
2007
2060
  if (n == null)
2008
2061
  return;
2009
2062
  const t = e.getRenderById(n);
2010
2063
  if (t == null)
2011
2064
  return;
2012
- const { mainComponent: i, scene: r, engine: s, components: o } = t, c = i, a = o.get(ki.BACKGROUND);
2065
+ const { mainComponent: i, scene: r, engine: s, components: o } = t, a = i, c = o.get(Ki.BACKGROUND);
2013
2066
  return {
2014
- document: c,
2015
- docBackground: a,
2067
+ document: a,
2068
+ docBackground: c,
2016
2069
  scene: r,
2017
2070
  engine: s
2018
2071
  };
2019
2072
  }
2020
- var kn = Object.getOwnPropertyDescriptor, zn = (n, e, t, i) => {
2021
- for (var r = i > 1 ? void 0 : i ? kn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2073
+ var Zn = Object.getOwnPropertyDescriptor, Xn = (n, e, t, i) => {
2074
+ for (var r = i > 1 ? void 0 : i ? Zn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2022
2075
  (o = n[s]) && (r = o(r) || r);
2023
2076
  return r;
2024
- }, je = (n, e) => (t, i) => e(t, i, n);
2025
- let We = class extends ge {
2077
+ }, Ae = (n, e) => (t, i) => e(t, i, n);
2078
+ let ke = class extends pe {
2026
2079
  constructor(e, t, i, r) {
2027
2080
  super();
2028
2081
  /**
@@ -2031,7 +2084,7 @@ let We = class extends ge {
2031
2084
  // private _cursorChange: CursorChange = CursorChange.InitialState;
2032
2085
  /** If the corresponding unit is active and prepared for editing. */
2033
2086
  // private _isUnitEditing = false;
2034
- S(this, "setSlideTextEditor$", new Dt());
2087
+ S(this, "setSlideTextEditor$", new jt());
2035
2088
  S(this, "_curRichText", null);
2036
2089
  S(this, "_d");
2037
2090
  this._renderContext = e, this._instanceSrv = t, this._commandService = i, this._editorBridgeService = r, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((s) => {
@@ -2039,7 +2092,7 @@ let We = class extends ge {
2039
2092
  }));
2040
2093
  }
2041
2094
  _init() {
2042
- const e = new Ke();
2095
+ const e = new Ze();
2043
2096
  return this._initEventListener(e), e;
2044
2097
  }
2045
2098
  _disposeCurrent() {
@@ -2059,16 +2112,16 @@ let We = class extends ge {
2059
2112
  }
2060
2113
  _initEventListener(e) {
2061
2114
  const t = (o) => {
2062
- const c = o.getTransformer();
2063
- c && (e.add(c.clearControl$.subscribe(() => {
2115
+ const a = o.getTransformer();
2116
+ a && (e.add(a.clearControl$.subscribe(() => {
2064
2117
  this.setEditorVisible(!1), this.pickOtherObjects();
2065
- })), e.add(c.createControl$.subscribe(() => {
2118
+ })), e.add(a.createControl$.subscribe(() => {
2066
2119
  this.setEditorVisible(!1);
2067
2120
  })), e.add(o.onDblclick$.subscribeEvent(() => {
2068
- c.clearControls();
2069
- const h = c.getSelectedObjectMap().values().next().value;
2070
- h && (h.objectType !== le.RICH_TEXT ? this.pickOtherObjects() : this.startEditing(o.sceneKey, h));
2071
- })), e.add(this._instanceSrv.focused$.subscribe((a) => {
2121
+ a.clearControls();
2122
+ const h = a.getSelectedObjectMap().values().next().value;
2123
+ h && (h.objectType !== ue.RICH_TEXT ? this.pickOtherObjects() : this.startEditing(o.sceneKey, h));
2124
+ })), e.add(this._instanceSrv.focused$.subscribe((c) => {
2072
2125
  this.endEditing();
2073
2126
  })));
2074
2127
  }, { mainComponent: i } = this._renderContext;
@@ -2077,8 +2130,8 @@ let We = class extends ge {
2077
2130
  });
2078
2131
  const s = Array.from(i.getSubScenes().values());
2079
2132
  for (let o = 0; o < s.length; o++) {
2080
- const c = s[o];
2081
- t(c);
2133
+ const a = s[o];
2134
+ t(a);
2082
2135
  }
2083
2136
  }
2084
2137
  pickOtherObjects() {
@@ -2102,8 +2155,8 @@ let We = class extends ge {
2102
2155
  text: e.text
2103
2156
  }, r = (s = e.documentData.body) == null ? void 0 : s.textRuns;
2104
2157
  if (r && r.length) {
2105
- const c = r[0].ts;
2106
- i.cl = c == null ? void 0 : c.cl;
2158
+ const a = r[0].ts;
2159
+ i.cl = a == null ? void 0 : a.cl;
2107
2160
  }
2108
2161
  this._commandService.executeCommand(H.id, {
2109
2162
  unitId: this._renderContext.unitId,
@@ -2130,17 +2183,17 @@ let We = class extends ge {
2130
2183
  this._editorBridgeService.changeVisible({ visible: e, eventType: q.PointerDown, unitId: t });
2131
2184
  }
2132
2185
  };
2133
- We = zn([
2134
- je(1, w),
2135
- je(2, U),
2136
- je(3, Qe)
2137
- ], We);
2138
- var Kn = Object.getOwnPropertyDescriptor, Zn = (n, e, t, i) => {
2139
- for (var r = i > 1 ? void 0 : i ? Kn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2186
+ ke = Xn([
2187
+ Ae(1, w),
2188
+ Ae(2, D),
2189
+ Ae(3, tt)
2190
+ ], ke);
2191
+ var Gn = Object.getOwnPropertyDescriptor, Yn = (n, e, t, i) => {
2192
+ for (var r = i > 1 ? void 0 : i ? Gn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2140
2193
  (o = n[s]) && (r = o(r) || r);
2141
2194
  return r;
2142
- }, Ae = (n, e) => (t, i) => e(t, i, n);
2143
- let Ne = class extends ge {
2195
+ }, Le = (n, e) => (t, i) => e(t, i, n);
2196
+ let Ne = class extends pe {
2144
2197
  // private _skeletonChangeMutations = new Set<string>();
2145
2198
  constructor(n, e, t) {
2146
2199
  super(), this._contextService = n, this._instanceSrv = e, this._renderManagerService = t, Promise.resolve().then(() => this._init());
@@ -2149,11 +2202,11 @@ let Ne = class extends ge {
2149
2202
  this._initSlideDataListener(), this._initContextListener();
2150
2203
  }
2151
2204
  _initSlideDataListener() {
2152
- this._instanceSrv.getTypeOfUnitAdded$(E.UNIVER_SLIDE).pipe(ut(this.dispose$)).subscribe((n) => {
2205
+ this._instanceSrv.getTypeOfUnitAdded$(E.UNIVER_SLIDE).pipe(gt(this.dispose$)).subscribe((n) => {
2153
2206
  this._createRenderer(n == null ? void 0 : n.getUnitId());
2154
2207
  }), this._instanceSrv.getAllUnitsForType(E.UNIVER_SLIDE).forEach((n) => {
2155
2208
  this._createRenderer(n.getUnitId());
2156
- }), this._instanceSrv.getTypeOfUnitDisposed$(E.UNIVER_SLIDE).pipe(ut(this.dispose$)).subscribe((n) => this._disposeRenderer(n));
2209
+ }), this._instanceSrv.getTypeOfUnitDisposed$(E.UNIVER_SLIDE).pipe(gt(this.dispose$)).subscribe((n) => this._disposeRenderer(n));
2157
2210
  }
2158
2211
  _createRenderer(n) {
2159
2212
  n == null || this._instanceSrv.getUnit(n, E.UNIVER_SLIDE) == null || this._renderManagerService.createRender(n);
@@ -2165,45 +2218,45 @@ let Ne = class extends ge {
2165
2218
  _initContextListener() {
2166
2219
  }
2167
2220
  };
2168
- Ne = Zn([
2169
- Ae(0, fe),
2170
- Ae(1, w),
2171
- Ae(2, X)
2221
+ Ne = Yn([
2222
+ Le(0, me),
2223
+ Le(1, w),
2224
+ Le(2, X)
2172
2225
  ], Ne);
2173
- var Xn = Object.getOwnPropertyDescriptor, Gn = (n, e, t, i) => {
2174
- for (var r = i > 1 ? void 0 : i ? Xn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2226
+ var qn = Object.getOwnPropertyDescriptor, Jn = (n, e, t, i) => {
2227
+ for (var r = i > 1 ? void 0 : i ? qn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
2175
2228
  (o = n[s]) && (r = o(r) || r);
2176
2229
  return r;
2177
2230
  }, be = (n, e) => (t, i) => e(t, i, n);
2178
- const Yn = "SLIDE_UI";
2231
+ const Qn = "SLIDE_UI";
2179
2232
  var Ee;
2180
- let _t = (Ee = class extends mi {
2181
- constructor(n = gt, e, t, i, r) {
2233
+ let St = (Ee = class extends Ci {
2234
+ constructor(n = pt, e, t, i, r) {
2182
2235
  super(), this._config = n, this._injector = e, this._renderManagerService = t, this._univerInstanceService = i, this._configService = r;
2183
- const { menu: s, ...o } = Ct(
2236
+ const { menu: s, ...o } = It(
2184
2237
  {},
2185
- gt,
2238
+ pt,
2186
2239
  this._config
2187
2240
  );
2188
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(Nn, o);
2241
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(jn, o);
2189
2242
  }
2190
2243
  onStarting() {
2191
- tt([
2244
+ nt([
2192
2245
  [Ne],
2193
- [Qe, { useClass: He }],
2246
+ [tt, { useClass: Fe }],
2194
2247
  // used by SlideUIController --> EditorContainer
2195
- [Je, { useClass: Rn }],
2248
+ [et, { useClass: yn }],
2196
2249
  [Te]
2197
2250
  ], this._config.override).forEach((n) => this._injector.add(n));
2198
2251
  }
2199
2252
  onReady() {
2200
2253
  [
2201
2254
  // SlideRenderService will be init in ready stage, and then calling RenderManagerService@createRender --> init all deps in this rendering register block.
2202
- [ve]
2255
+ [fe]
2203
2256
  ].forEach((n) => {
2204
2257
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, n));
2205
- }), tt([
2206
- [T],
2258
+ }), nt([
2259
+ [P],
2207
2260
  // cannot register in _renderManagerService now.
2208
2261
  // [ISlideEditorBridgeService, { useClass: SlideEditorBridgeService }],
2209
2262
  // // used by SlideUIController --> EditorContainer
@@ -2212,18 +2265,18 @@ let _t = (Ee = class extends mi {
2212
2265
  // SlidesUIController controller would add a new RenderUnit (__INTERNAL_EDITOR__DOCS_NORMAL)
2213
2266
  [Pe],
2214
2267
  // editor service was create in renderManagerService
2215
- [ve],
2268
+ [fe],
2216
2269
  [Me]
2217
2270
  ], this._config.override).forEach((n) => {
2218
2271
  this._injector.add(n);
2219
- }), this._injector.get(T), this._injector.get(Ne);
2272
+ }), this._injector.get(P), this._injector.get(Ne);
2220
2273
  }
2221
2274
  onRendered() {
2222
2275
  [
2223
2276
  // need slideEditorBridgeService
2224
2277
  // need TextSelectionRenderService which init by EditorContainer
2225
- [We],
2226
- [Fe]
2278
+ [ke],
2279
+ [We]
2227
2280
  ].forEach((n) => {
2228
2281
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, n));
2229
2282
  }), this._markSlideAsFocused(), this._injector.get(Pe);
@@ -2239,33 +2292,35 @@ let _t = (Ee = class extends mi {
2239
2292
  } catch {
2240
2293
  }
2241
2294
  }
2242
- }, S(Ee, "pluginName", Yn), S(Ee, "type", E.UNIVER_SLIDE), Ee);
2243
- _t = Gn([
2244
- be(1, Z(ke)),
2295
+ }, S(Ee, "pluginName", Qn), S(Ee, "type", E.UNIVER_SLIDE), Ee);
2296
+ St = Jn([
2297
+ be(1, Z(ze)),
2245
2298
  be(2, X),
2246
2299
  be(3, w),
2247
- be(4, _i)
2248
- ], _t);
2300
+ be(4, Si)
2301
+ ], St);
2249
2302
  export {
2250
- Ut as ActivateSlidePageOperation,
2251
- Vt as AppendSlideOperation,
2252
- T as CanvasView,
2253
- jt as DeleteSlideElementOperation,
2254
- Qe as ISlideEditorBridgeService,
2255
- Xe as InsertSlideFloatImageCommand,
2256
- Ye as InsertSlideShapeRectangleCommand,
2257
- Kt as InsertSlideShapeRectangleOperation,
2258
- Yt as SHAPE_MENU_ID,
2259
- Gt as SLIDES_IMAGE_MENU_ID,
2260
- de as SLIDE_EDITOR_ID,
2261
- Xt as SetSlidePageThumbOperation,
2262
- qe as SlideAddTextCommand,
2263
- Zt as SlideAddTextOperation,
2303
+ Vt as ActivateSlidePageOperation,
2304
+ At as AppendSlideOperation,
2305
+ P as CanvasView,
2306
+ Lt as DeleteSlideElementOperation,
2307
+ tt as ISlideEditorBridgeService,
2308
+ Ge as InsertSlideFloatImageCommand,
2309
+ Je as InsertSlideShapeEllipseCommand,
2310
+ Gt as InsertSlideShapeEllipseOperation,
2311
+ qe as InsertSlideShapeRectangleCommand,
2312
+ Xt as InsertSlideShapeRectangleOperation,
2313
+ Qt as SHAPE_MENU_ID,
2314
+ Jt as SLIDES_IMAGE_MENU_ID,
2315
+ he as SLIDE_EDITOR_ID,
2316
+ qt as SetSlidePageThumbOperation,
2317
+ Qe as SlideAddTextCommand,
2318
+ Yt as SlideAddTextOperation,
2264
2319
  Te as SlideCanvasPopMangerService,
2265
- On as SlideEditorContainer,
2266
- mn as SlideSideBar,
2320
+ Pn as SlideEditorContainer,
2321
+ Cn as SlideSideBar,
2267
2322
  Pe as SlidesUIController,
2268
- En as SlidesUIMenuSchema,
2269
- _t as UniverSlidesUIPlugin,
2323
+ Rn as SlidesUIMenuSchema,
2324
+ St as UniverSlidesUIPlugin,
2270
2325
  H as UpdateSlideElementOperation
2271
2326
  };