@univerjs/slides-ui 0.7.0-nightly.202505081607 → 0.7.0-nightly.202505101606

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