@univerjs/slides-ui 0.6.0-nightly.202502121606 → 0.6.0-nightly.202502141606

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 mn = Object.defineProperty;
2
- var un = (i, e, t) => e in i ? mn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
- var I = (i, e, t) => un(i, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as Y, Injector as Ke, RxDisposable as Ce, UniverInstanceType as E, debounce as gn, getColorStyle as hn, IUniverInstanceService as y, CommandType as V, Tools as pn, LocaleService as ee, ICommandService as j, generateRandomId as St, PageElementType as Ge, BasicShapes as Cn, Disposable as Ve, DisposableCollection as Xe, toDisposable as It, FOCUSING_COMMON_DRAWINGS as fn, IContextService as fe, createInternalEditorID as vn, createIdentifier as Pt, EDITOR_ACTIVATED as xe, FOCUSING_EDITOR_STANDALONE as bt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Et, DocumentDataModel as _n, VerticalAlign as ye, HorizontalAlign as Rt, WrapStrategy as tt, FOCUSING_EDITOR_BUT_HIDDEN as Sn, DEFAULT_EMPTY_DOCUMENT_VALUE as Ot, Direction as L, IUndoRedoService as In, DocumentFlavor as Pn, FOCUSING_UNIVER_EDITOR as xt, FORMULA_EDITOR_ACTIVATED as bn, Plugin as En, merge as Rn, mergeOverrideWithDependencies as nt, IConfigService as On } from "@univerjs/core";
5
- import { Viewport as it, ScrollBar as yt, Slide as xn, Rect as Mt, Scene as yn, IRenderManagerService as Z, ObjectType as ge, pxToNum as Mn, DeviceInputEventType as J, convertTextRotation as rt, FIX_ONE_PIXEL_BLUR_OFFSET as se, fixLineWidthByScale as st } from "@univerjs/engine-render";
6
- import { ObjectProvider as Tn, SLIDE_KEY as oe } from "@univerjs/slides";
7
- import { useDependency as x, ISidebarService as Tt, ICanvasPopupService as wn, KeyCode as M, ILayoutService as Nn, ILocalFileService as Dn, useObservable as Un, DISABLE_AUTO_FOCUS_KEY as ot, MenuItemType as ve, getMenuHiddenObservable as _e, RibbonStartGroup as Vn, MetaKeys as jn, ComponentManager as Bn, BuiltInUIPart as at, connectInjector as ct, IMenuManagerService as Ln, IUIPartsService as An, IShortcutService as $n } from "@univerjs/ui";
8
- import { jsxs as R, jsx as m } from "react/jsx-runtime";
9
- import { Button as Pe, DropdownLegacy as wt, ColorPicker as Hn, InputNumber as me, Scrollbar as Fn } from "@univerjs/design";
10
- import Nt, { forwardRef as $, useRef as Dt, createElement as H, useState as X, useEffect as he, useMemo as zn, useCallback as lt } from "react";
11
- import { BehaviorSubject as Q, Subject as Ut, filter as Wn, takeUntil as dt } from "rxjs";
12
- import { DocSelectionManagerService as Kn, DocSkeletonManagerService as mt, RichTextEditingMutation as Gn } from "@univerjs/docs";
13
- import { IEditorService as Ye, DocSelectionRenderService as ut, VIEWPORT_KEY as gt, DOCS_COMPONENT_MAIN_LAYER_INDEX as Xn, MoveSelectionOperation as Yn, MoveCursorOperation as Zn, DOCS_VIEW_KEY as kn, DeleteLeftCommand as qn } from "@univerjs/docs-ui";
1
+ var dn = Object.defineProperty;
2
+ var gn = (i, e, t) => e in i ? dn(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
3
+ var I = (i, e, t) => gn(i, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Inject as X, Injector as ke, IUniverInstanceService as y, RxDisposable as pe, UniverInstanceType as E, debounce as un, getColorStyle as hn, CommandType as V, Tools as mn, LocaleService as ee, ICommandService as B, generateRandomId as St, BasicShapes as vn, PageElementType as Ke, Disposable as Ve, DisposableCollection as Ge, IContextService as Ce, toDisposable as It, FOCUSING_COMMON_DRAWINGS as pn, createInternalEditorID as Cn, createIdentifier as bt, EDITOR_ACTIVATED as xe, FOCUSING_EDITOR_STANDALONE as Pt, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as Et, DocumentDataModel as fn, HorizontalAlign as Rt, VerticalAlign as ye, IUndoRedoService as _n, WrapStrategy as tt, FOCUSING_EDITOR_BUT_HIDDEN as Sn, DEFAULT_EMPTY_DOCUMENT_VALUE as In, Direction as j, DocumentFlavor as bn, FOCUSING_UNIVER_EDITOR as Ot, FORMULA_EDITOR_ACTIVATED as Pn, Plugin as En, merge as Rn, mergeOverrideWithDependencies as nt, IConfigService as On } from "@univerjs/core";
5
+ import { IRenderManagerService as Y, Viewport as it, ScrollBar as xt, Slide as xn, Rect as yt, Scene as yn, ObjectType as ue, pxToNum as Tn, DeviceInputEventType as J, convertTextRotation as rt, FIX_ONE_PIXEL_BLUR_OFFSET as se, fixLineWidthByScale as st } from "@univerjs/engine-render";
6
+ import { ObjectProvider as Mn, SLIDE_KEY as oe } from "@univerjs/slides";
7
+ import { useDependency as x, ISidebarService as Tt, ICanvasPopupService as wn, ILayoutService as Nn, KeyCode as T, ILocalFileService as Dn, useObservable as Un, DISABLE_AUTO_FOCUS_KEY as ot, getMenuHiddenObservable as fe, MenuItemType as _e, RibbonStartGroup as Vn, MetaKeys as Bn, IMenuManagerService as Ln, ComponentManager as jn, IUIPartsService as An, IShortcutService as $n, BuiltInUIPart as at, connectInjector as ct } from "@univerjs/ui";
8
+ import { jsxs as R, jsx as g } from "react/jsx-runtime";
9
+ import { Button as be, DropdownLegacy as Mt, ColorPicker as Hn, InputNumber as de, Scrollbar as Fn } from "@univerjs/design";
10
+ import wt, { forwardRef as $, useRef as Nt, createElement as H, useState as G, useEffect as me, useMemo as zn, useCallback as lt } from "react";
11
+ import { BehaviorSubject as Q, Subject as Dt, filter as Wn, takeUntil as dt } from "rxjs";
12
+ import { DocSelectionManagerService as kn, DocSkeletonManagerService as gt, RichTextEditingMutation as Kn } from "@univerjs/docs";
13
+ import { IEditorService as Xe, DocSelectionRenderService as ut, VIEWPORT_KEY as ht, DOCS_COMPONENT_MAIN_LAYER_INDEX as Gn, MoveSelectionOperation as Xn, MoveCursorOperation as Yn, DOCS_VIEW_KEY as Zn, DeleteLeftCommand as qn } from "@univerjs/docs-ui";
14
14
  import { DRAWING_IMAGE_ALLOW_IMAGE_LIST as Jn, IImageIoService as Qn, getImageSize as ei } from "@univerjs/drawing";
15
- var ti = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, ii = (i, e, t, n) => {
16
- for (var r = n > 1 ? void 0 : n ? ni(e, t) : e, s = i.length - 1, o; s >= 0; s--)
17
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
18
- return n && r && ti(e, t, r), r;
19
- }, je = (i, e) => (t, n) => e(t, n, i);
20
- let pe = class extends Ce {
15
+ var ti = Object.getOwnPropertyDescriptor, ni = (i, e, t, n) => {
16
+ for (var r = n > 1 ? void 0 : n ? ti(e, t) : e, s = i.length - 1, o; s >= 0; s--)
17
+ (o = i[s]) && (r = o(r) || r);
18
+ return r;
19
+ }, Be = (i, e) => (t, n) => e(t, n, i);
20
+ let ve = class extends pe {
21
21
  constructor(e, t, n, r) {
22
22
  super();
23
23
  I(this, "_objectProvider", null);
24
- I(this, "_refreshThumb", gn(() => {
24
+ I(this, "_refreshThumb", un(() => {
25
25
  this.createThumbs();
26
26
  }, 300));
27
- this._renderContext = e, this._injector = t, this._univerInstanceService = n, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(Tn), this._addNewRender();
27
+ this._renderContext = e, this._injector = t, this._univerInstanceService = n, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(Mn), this._addNewRender();
28
28
  }
29
29
  _addNewRender() {
30
30
  const { unitId: e, engine: t, scene: n } = this._renderContext, r = this._getCurrUnitModel();
@@ -46,17 +46,17 @@ let pe = class extends Ce {
46
46
  explicitViewportHeightSet: !1,
47
47
  isWheelPreventDefaultX: !0
48
48
  });
49
- n.attachControl(), n.onMouseWheel$.subscribeEvent((c, g) => {
49
+ n.attachControl(), n.onMouseWheel$.subscribeEvent((c, h) => {
50
50
  const l = c;
51
51
  if (l.ctrlKey) {
52
52
  const d = Math.abs(l.deltaX);
53
- let p = d < 40 ? 0.2 : d < 80 ? 0.4 : 0.2;
54
- p *= l.deltaY > 0 ? -1 : 1, n.scaleX < 1 && (p /= 2), n.scaleX + p > 4 ? n.scale(4, 4) : n.scaleX + p < 0.1 ? n.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, n.scaleX < 1 && (v /= 2), n.scaleX + v > 4 ? n.scale(4, 4) : n.scaleX + v < 0.1 ? n.scale(0.1, 0.1) : (l.deltaY > 0, l.preventDefault());
55
55
  } else
56
- o.onMouseWheel(l, g);
56
+ o.onMouseWheel(l, h);
57
57
  }), n.onFileLoaded$.subscribeEvent(() => {
58
58
  this._refreshThumb();
59
- }), yt.attachTo(o), this._renderManagerService.setCurrent(e);
59
+ }), xt.attachTo(o), this._renderManagerService.setCurrent(e);
60
60
  const a = this._createSlide(n);
61
61
  this._renderContext.mainComponent = a, this._createSlidePages(r, a), this.createThumbs(), t.runRenderLoop(() => {
62
62
  n.render();
@@ -89,7 +89,7 @@ let pe = class extends Ce {
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 Mt("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,
@@ -117,8 +117,8 @@ let pe = class extends Ce {
117
117
  const { engine: r } = n;
118
118
  if (r == null)
119
119
  return;
120
- const { width: s, height: o } = t, { width: a = s, height: c = o } = r, g = r.getCanvas().getContext();
121
- t.renderToThumb(g, e, a / s, c / o);
120
+ const { width: s, height: o } = t, { width: a = s, height: c = o } = r, h = r.getCanvas().getContext();
121
+ t.renderToThumb(h, e, a / s, c / o);
122
122
  }
123
123
  /**
124
124
  * CreateScene by pages, and activate first one.
@@ -151,10 +151,10 @@ let pe = class extends Ce {
151
151
  if (t)
152
152
  r = n.getPage(t);
153
153
  else {
154
- const c = n.getPages(), g = n.getPageOrder();
155
- if (g == null || c == null)
154
+ const c = n.getPages(), h = n.getPageOrder();
155
+ if (h == null || c == null)
156
156
  return;
157
- r = c[g[0]], t = r.id;
157
+ r = c[h[0]], t = r.id;
158
158
  }
159
159
  const s = this._currentRender();
160
160
  if (r == null || s == null || s.mainComponent == null)
@@ -183,11 +183,11 @@ let pe = class extends Ce {
183
183
  const n = this._renderContext;
184
184
  if (!n || !this._objectProvider)
185
185
  return;
186
- const { scene: r, mainComponent: s } = n, o = s, { width: a, height: c } = o, g = new yn(e, o, {
186
+ const { scene: r, mainComponent: s } = n, o = s, { width: a, height: c } = o, h = new yn(e, o, {
187
187
  width: a,
188
188
  height: c
189
189
  });
190
- new it(`PageViewer_${e}`, g, {
190
+ new it(`PageViewer_${e}`, h, {
191
191
  left: 0,
192
192
  top: 0,
193
193
  bottom: 0,
@@ -195,17 +195,17 @@ let pe = class extends Ce {
195
195
  explicitViewportWidthSet: !1,
196
196
  explicitViewportHeightSet: !1
197
197
  }).closeClip();
198
- const { pageElements: d, pageBackgroundFill: p } = t, v = this._objectProvider.convertToRenderObjects(d, r);
199
- if (!v || !o) return;
200
- this._addBackgroundRect(g, p), g.addObjects(v), g.initTransformer(), v.forEach((C) => {
201
- g.attachTransformerTo(C);
198
+ const { pageElements: d, pageBackgroundFill: v } = t, f = this._objectProvider.convertToRenderObjects(d, r);
199
+ if (!f || !o) return;
200
+ this._addBackgroundRect(h, v), h.addObjects(f), h.initTransformer(), f.forEach((p) => {
201
+ h.attachTransformerTo(p);
202
202
  });
203
- const f = g.getTransformer();
204
- return f == null || f.changeEnd$.subscribe(() => {
203
+ const C = h.getTransformer();
204
+ return C == null || C.changeEnd$.subscribe(() => {
205
205
  this._thumbSceneRender(e, o);
206
- }), f == null || f.clearControl$.subscribe(() => {
206
+ }), C == null || C.clearControl$.subscribe(() => {
207
207
  this._thumbSceneRender(e, o);
208
- }), o.addPageScene(g), g;
208
+ }), o.addPageScene(h), h;
209
209
  }
210
210
  /**
211
211
  * Get pageScene from Slide.
@@ -249,22 +249,22 @@ let pe = class extends Ce {
249
249
  s && o && s.addPageScene(o), e.appendPage(t), e.setActivePage(t);
250
250
  }
251
251
  };
252
- pe = ii([
253
- je(1, Y(Ke)),
254
- je(2, y),
255
- je(3, Z)
256
- ], pe);
257
- var ri = Object.defineProperty, si = Object.getOwnPropertyDescriptor, oi = (i, e, t, n) => {
258
- for (var r = n > 1 ? void 0 : n ? si(e, t) : e, s = i.length - 1, o; s >= 0; s--)
259
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
260
- return n && r && ri(e, t, r), r;
261
- }, ai = (i, e) => (t, n) => e(t, n, i);
262
- let N = class extends Ce {
252
+ ve = ni([
253
+ Be(1, X(ke)),
254
+ Be(2, y),
255
+ Be(3, Y)
256
+ ], ve);
257
+ var ii = Object.getOwnPropertyDescriptor, ri = (i, e, t, n) => {
258
+ for (var r = n > 1 ? void 0 : n ? ii(e, t) : e, s = i.length - 1, o; s >= 0; s--)
259
+ (o = i[s]) && (r = o(r) || r);
260
+ return r;
261
+ }, si = (i, e) => (t, n) => e(t, n, i);
262
+ let N = class extends pe {
263
263
  constructor(i) {
264
264
  super(), this._renderManagerService = i;
265
265
  }
266
266
  _getSlideRenderControllerFromRenderUnit(i) {
267
- return this._renderManagerService.getRenderById(i).with(pe);
267
+ return this._renderManagerService.getRenderById(i).with(ve);
268
268
  }
269
269
  createThumbs(i) {
270
270
  this._getSlideRenderControllerFromRenderUnit(i).createThumbs();
@@ -291,10 +291,10 @@ let N = class extends Ce {
291
291
  this._getSlideRenderControllerFromRenderUnit(i).appendPage();
292
292
  }
293
293
  };
294
- N = oi([
295
- ai(0, Z)
294
+ N = ri([
295
+ si(0, Y)
296
296
  ], N);
297
- const ci = "slides-ui.config", ht = {}, Vt = {
297
+ const oi = "slides-ui.config", mt = {}, Ut = {
298
298
  id: "slide.operation.delete-element",
299
299
  type: V.OPERATION,
300
300
  handler: (i, e) => {
@@ -313,7 +313,7 @@ var U = function() {
313
313
  }
314
314
  return i;
315
315
  }, U.apply(this, arguments);
316
- }, li = function(i, e) {
316
+ }, ai = function(i, e) {
317
317
  var t = {};
318
318
  for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && e.indexOf(n) < 0 && (t[n] = i[n]);
319
319
  if (i != null && typeof Object.getOwnPropertySymbols == "function")
@@ -321,15 +321,15 @@ var U = function() {
321
321
  e.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(i, n[r]) && (t[n[r]] = i[n[r]]);
322
322
  return t;
323
323
  }, F = $(function(i, e) {
324
- var t = i.icon, n = i.id, r = i.className, s = i.extend, o = li(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), c = Dt("_".concat(ui()));
325
- return jt(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, U({ ref: e, className: a }, o), s);
324
+ var t = i.icon, n = i.id, r = i.className, s = i.extend, o = ai(i, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(n, " ").concat(r || "").trim(), c = Nt("_".concat(di()));
325
+ return Vt(t, "".concat(n), { defIds: t.defIds, idSuffix: c.current }, U({ ref: e, className: a }, o), s);
326
326
  });
327
- function jt(i, e, t, n, r) {
328
- return H(i.tag, U(U({ key: e }, di(i, t, r)), n), (mi(i, t).children || []).map(function(s, o) {
329
- return jt(s, "".concat(e, "-").concat(i.tag, "-").concat(o), t, void 0, r);
327
+ function Vt(i, e, t, n, r) {
328
+ return H(i.tag, U(U({ key: e }, ci(i, t, r)), n), (li(i, t).children || []).map(function(s, o) {
329
+ return Vt(s, "".concat(e, "-").concat(i.tag, "-").concat(o), t, void 0, r);
330
330
  }));
331
331
  }
332
- function di(i, e, t) {
332
+ function ci(i, e, t) {
333
333
  var n = U({}, i.attrs);
334
334
  t != null && t.colorChannel1 && n.fill === "colorChannel1" && (n.fill = t.colorChannel1);
335
335
  var r = e.defIds;
@@ -338,13 +338,13 @@ function di(i, e, t) {
338
338
  typeof a == "string" && (n[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
339
339
  })), n;
340
340
  }
341
- function mi(i, e) {
341
+ function li(i, e) {
342
342
  var t, n = e.defIds;
343
343
  return !n || n.length === 0 ? i : i.tag === "defs" && (!((t = i.children) === null || t === void 0) && t.length) ? U(U({}, i), { children: i.children.map(function(r) {
344
344
  return typeof r.attrs.id == "string" && n && n.indexOf(r.attrs.id) > -1 ? U(U({}, r), { attrs: U(U({}, r.attrs), { id: r.attrs.id + e.idSuffix }) }) : r;
345
345
  }) }) : i;
346
346
  }
347
- function ui() {
347
+ function di() {
348
348
  return Math.random().toString(36).substring(2, 8);
349
349
  }
350
350
  F.displayName = "UniverIcon";
@@ -356,231 +356,227 @@ var gi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em"
356
356
  }));
357
357
  });
358
358
  Bt.displayName = "AddImageSingle";
359
- var hi = { 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" } }] }, Lt = $(function(i, e) {
359
+ var ui = { 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" } }] }, Lt = $(function(i, e) {
360
360
  return H(F, Object.assign({}, i, {
361
361
  id: "autofill",
362
362
  ref: e,
363
- icon: hi
363
+ icon: ui
364
364
  }));
365
365
  });
366
366
  Lt.displayName = "Autofill";
367
- var pi = { 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" } }] }, At = $(function(i, e) {
367
+ var hi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M14.0045 4.4334C14.8881 4.4334 15.6045 3.71705 15.6045 2.8334 15.6045 1.94974 14.8881 1.2334 14.0045 1.2334H3.70449C2.82084 1.2334 2.10449 1.94974 2.10449 2.8334 2.10449 3.71705 2.82084 4.4334 3.70449 4.4334H14.0045zM14.4045 2.8334C14.4045 3.05431 14.2254 3.2334 14.0045 3.2334H3.70449C3.48358 3.2334 3.30449 3.05431 3.30449 2.8334 3.30449 2.61248 3.48358 2.4334 3.70449 2.4334H14.0045C14.2254 2.4334 14.4045 2.61249 14.4045 2.8334zM14.1544 8.5999C15.038 8.5999 15.7544 7.88356 15.7544 6.9999 15.7544 6.11625 15.038 5.3999 14.1544 5.3999H3.85439C2.97074 5.3999 2.25439 6.11625 2.25439 6.9999 2.25439 7.88356 2.97074 8.5999 3.85439 8.5999H14.1544zM14.5544 6.9999C14.5544 7.22082 14.3753 7.3999 14.1544 7.3999H3.85439C3.63348 7.3999 3.45439 7.22082 3.45439 6.9999 3.45439 6.77899 3.63348 6.5999 3.85439 6.5999H14.1544C14.3753 6.5999 14.5544 6.77899 14.5544 6.9999z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M8.57975 14.5902L6.58023 12.5907C6.34591 12.3564 6.34591 11.9765 6.58023 11.7421 6.81454 11.5078 7.19444 11.5078 7.42876 11.7421L8.40449 12.7179V10.1664C8.40449 9.83504 8.67312 9.56641 9.00449 9.56641 9.33586 9.56641 9.60449 9.83504 9.60449 10.1664V12.7179L10.5802 11.7421C10.8145 11.5078 11.1944 11.5078 11.4288 11.7421 11.6631 11.9765 11.6631 12.3564 11.4288 12.5907L9.42923 14.5902M8.57975 14.5902C8.58121 14.5917 8.58268 14.5931 8.58416 14.5946 8.64077 14.6502 8.70566 14.6923 8.77482 14.7209 8.84557 14.7502 8.92314 14.7664 9.00449 14.7664 9.08585 14.7664 9.16342 14.7502 9.23416 14.7209 9.30332 14.6923 9.36821 14.6502 9.42482 14.5946" } }] }, jt = $(function(i, e) {
368
368
  return H(F, Object.assign({}, i, {
369
369
  id: "bottom-single",
370
370
  ref: e,
371
- icon: pi
371
+ icon: hi
372
372
  }));
373
373
  });
374
- At.displayName = "BottomSingle";
375
- var Ci = { 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"] }, $t = $(function(i, e) {
374
+ jt.displayName = "BottomSingle";
375
+ var mi = { 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 = $(function(i, e) {
376
376
  return H(F, Object.assign({}, i, {
377
377
  id: "graph-single",
378
378
  ref: e,
379
- icon: Ci
379
+ icon: mi
380
380
  }));
381
381
  });
382
- $t.displayName = "GraphSingle";
383
- var fi = { 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" } }] }, Ze = $(function(i, e) {
382
+ At.displayName = "GraphSingle";
383
+ var vi = { 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" } }] }, Ye = $(function(i, e) {
384
384
  return H(F, Object.assign({}, i, {
385
385
  id: "more-down-single",
386
386
  ref: e,
387
- icon: fi
387
+ icon: vi
388
388
  }));
389
389
  });
390
- Ze.displayName = "MoreDownSingle";
391
- var vi = { 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" } }] }, Ht = $(function(i, e) {
390
+ Ye.displayName = "MoreDownSingle";
391
+ var pi = { 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" } }] }, $t = $(function(i, e) {
392
392
  return H(F, Object.assign({}, i, {
393
393
  id: "move-down-single",
394
394
  ref: e,
395
- icon: vi
395
+ icon: pi
396
396
  }));
397
397
  });
398
- Ht.displayName = "MoveDownSingle";
399
- var _i = { 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" } }] }, Ft = $(function(i, e) {
398
+ $t.displayName = "MoveDownSingle";
399
+ var Ci = { 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" } }] }, Ht = $(function(i, e) {
400
400
  return H(F, Object.assign({}, i, {
401
401
  id: "move-up-single",
402
402
  ref: e,
403
- icon: _i
403
+ icon: Ci
404
404
  }));
405
405
  });
406
- Ft.displayName = "MoveUpSingle";
407
- var Si = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1204", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#DCDCDC", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1204)" }, children: [{ tag: "rect", attrs: { width: 12.62, height: 2.79, x: 1.69, y: 12.25, fill: "colorChannel1", rx: 1.4 } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.74646 2.1642C7.34284 1.65121 6.85947 1.28205 6.38447 1.09593C5.86863 0.893787 5.15166 0.852126 4.70047 1.42917C4.29842 1.94344 4.33082 2.70249 4.57691 3.50395C4.68808 3.8661 4.86846 4.22254 5.12522 4.56617C5.13695 4.58185 5.14927 4.5968 5.16211 4.61102C5.17152 4.6214 5.18122 4.63139 5.19115 4.64096C5.20459 4.65393 5.21855 4.66618 5.23296 4.6777L3.5064 6.40422C3.26756 6.64306 3.26756 7.03033 3.5064 7.26919L7.23756 11.0004C7.47648 11.2392 7.86375 11.2392 8.1026 11.0004L12.8329 6.27001C13.0717 6.03117 13.0717 5.6439 12.8329 5.40505L9.10172 1.67387C8.86288 1.43503 8.47561 1.43503 8.23676 1.67387L7.74646 2.1642ZM7.46162 4.50638C7.47252 4.57574 7.48163 4.64652 7.4888 4.71868C7.52232 5.05481 7.82194 5.30013 8.15807 5.26661C8.4942 5.23311 8.73954 4.93345 8.70601 4.59732C8.65786 4.11463 8.54251 3.6666 8.37892 3.26169L8.66928 2.97135L11.5354 5.83753L10.6106 6.76237H4.87824L7.40802 4.2326C7.42885 4.32128 7.44684 4.41255 7.46162 4.50638ZM6.87284 3.03784C6.57441 2.62008 6.22261 2.34634 5.93815 2.23487C5.80233 2.18165 5.71528 2.17827 5.67638 2.18335C5.6725 2.18387 5.66929 2.18443 5.6666 2.18497L5.6619 2.18607C5.64166 2.21954 5.53594 2.45979 5.74626 3.1449C5.81241 3.36036 5.92262 3.58602 6.09307 3.81761L6.87284 3.03784Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.1932 11.5463C12.6454 11.5463 13.012 11.1797 13.012 10.7275C13.012 10.4475 12.6981 9.92821 12.459 9.5733C12.3299 9.38173 12.0564 9.38174 11.9274 9.57331C11.6883 9.92822 11.3744 10.4475 11.3744 10.7275C11.3744 11.1797 11.741 11.5463 12.1932 11.5463Z" } }] }] }, zt = $(function(i, e) {
406
+ Ht.displayName = "MoveUpSingle";
407
+ var fi = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1204", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#DCDCDC", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1204)" }, children: [{ tag: "rect", attrs: { width: 12.62, height: 2.79, x: 1.69, y: 12.25, fill: "colorChannel1", rx: 1.4 } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.74646 2.1642C7.34284 1.65121 6.85947 1.28205 6.38447 1.09593C5.86863 0.893787 5.15166 0.852126 4.70047 1.42917C4.29842 1.94344 4.33082 2.70249 4.57691 3.50395C4.68808 3.8661 4.86846 4.22254 5.12522 4.56617C5.13695 4.58185 5.14927 4.5968 5.16211 4.61102C5.17152 4.6214 5.18122 4.63139 5.19115 4.64096C5.20459 4.65393 5.21855 4.66618 5.23296 4.6777L3.5064 6.40422C3.26756 6.64306 3.26756 7.03033 3.5064 7.26919L7.23756 11.0004C7.47648 11.2392 7.86375 11.2392 8.1026 11.0004L12.8329 6.27001C13.0717 6.03117 13.0717 5.6439 12.8329 5.40505L9.10172 1.67387C8.86288 1.43503 8.47561 1.43503 8.23676 1.67387L7.74646 2.1642ZM7.46162 4.50638C7.47252 4.57574 7.48163 4.64652 7.4888 4.71868C7.52232 5.05481 7.82194 5.30013 8.15807 5.26661C8.4942 5.23311 8.73954 4.93345 8.70601 4.59732C8.65786 4.11463 8.54251 3.6666 8.37892 3.26169L8.66928 2.97135L11.5354 5.83753L10.6106 6.76237H4.87824L7.40802 4.2326C7.42885 4.32128 7.44684 4.41255 7.46162 4.50638ZM6.87284 3.03784C6.57441 2.62008 6.22261 2.34634 5.93815 2.23487C5.80233 2.18165 5.71528 2.17827 5.67638 2.18335C5.6725 2.18387 5.66929 2.18443 5.6666 2.18497L5.6619 2.18607C5.64166 2.21954 5.53594 2.45979 5.74626 3.1449C5.81241 3.36036 5.92262 3.58602 6.09307 3.81761L6.87284 3.03784Z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.1932 11.5463C12.6454 11.5463 13.012 11.1797 13.012 10.7275C13.012 10.4475 12.6981 9.92821 12.459 9.5733C12.3299 9.38173 12.0564 9.38174 11.9274 9.57331C11.6883 9.92822 11.3744 10.4475 11.3744 10.7275C11.3744 11.1797 11.741 11.5463 12.1932 11.5463Z" } }] }] }, Ft = $(function(i, e) {
408
408
  return H(F, Object.assign({}, i, {
409
409
  id: "paint-bucket",
410
410
  ref: e,
411
- icon: Si
411
+ icon: fi
412
412
  }));
413
413
  });
414
- zt.displayName = "PaintBucket";
415
- var Ii = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#text-single_clip0_1293_26)" }, children: [{ tag: "path", attrs: { d: "M2.22891 2.07227C1.89754 2.07227 1.62891 2.34089 1.62891 2.67227C1.62891 3.00364 1.89754 3.27227 2.22891 3.27227H6.29541V14.0056C6.29541 14.337 6.56404 14.6056 6.89541 14.6056C7.22678 14.6056 7.49541 14.337 7.49541 14.0056V3.27227H11.5622C11.8936 3.27227 12.1622 3.00364 12.1622 2.67227C12.1622 2.34089 11.8936 2.07227 11.5622 2.07227H2.22891Z" } }, { tag: "path", attrs: { d: "M10.2289 6.40552C9.89754 6.40552 9.62891 6.67415 9.62891 7.00552C9.62891 7.33689 9.89754 7.60552 10.2289 7.60552H12.2954V14.0055C12.2954 14.3369 12.564 14.6055 12.8954 14.6055C13.2268 14.6055 13.4954 14.3369 13.4954 14.0055V7.60552H15.5622C15.8936 7.60552 16.1622 7.33689 16.1622 7.00552C16.1622 6.67415 15.8936 6.40552 15.5622 6.40552H10.2289Z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "text-single_clip0_1293_26" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["text-single_clip0_1293_26"] }, Wt = $(function(i, e) {
414
+ Ft.displayName = "PaintBucket";
415
+ var _i = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "g", attrs: { fill: "currentColor", clipPath: "url(#text-single_clip0_1293_26)" }, children: [{ tag: "path", attrs: { d: "M2.22891 2.07227C1.89754 2.07227 1.62891 2.34089 1.62891 2.67227C1.62891 3.00364 1.89754 3.27227 2.22891 3.27227H6.29541V14.0056C6.29541 14.337 6.56404 14.6056 6.89541 14.6056C7.22678 14.6056 7.49541 14.337 7.49541 14.0056V3.27227H11.5622C11.8936 3.27227 12.1622 3.00364 12.1622 2.67227C12.1622 2.34089 11.8936 2.07227 11.5622 2.07227H2.22891Z" } }, { tag: "path", attrs: { d: "M10.2289 6.40552C9.89754 6.40552 9.62891 6.67415 9.62891 7.00552C9.62891 7.33689 9.89754 7.60552 10.2289 7.60552H12.2954V14.0055C12.2954 14.3369 12.564 14.6055 12.8954 14.6055C13.2268 14.6055 13.4954 14.3369 13.4954 14.0055V7.60552H15.5622C15.8936 7.60552 16.1622 7.33689 16.1622 7.00552C16.1622 6.67415 15.8936 6.40552 15.5622 6.40552H10.2289Z" } }] }, { tag: "defs", attrs: {}, children: [{ tag: "clipPath", attrs: { id: "text-single_clip0_1293_26" }, children: [{ tag: "path", attrs: { fill: "#fff", d: "M0 0H16V16H0z", transform: "translate(.9)" } }] }] }], defIds: ["text-single_clip0_1293_26"] }, zt = $(function(i, e) {
416
416
  return H(F, Object.assign({}, i, {
417
417
  id: "text-single",
418
418
  ref: e,
419
- icon: Ii
419
+ icon: _i
420
420
  }));
421
421
  });
422
- Wt.displayName = "TextSingle";
423
- var Pi = { 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" } }] }, Kt = $(function(i, e) {
422
+ zt.displayName = "TextSingle";
423
+ var Si = { 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 = $(function(i, e) {
424
424
  return H(F, Object.assign({}, i, {
425
425
  id: "topmost-single",
426
426
  ref: e,
427
- icon: Pi
427
+ icon: Si
428
428
  }));
429
429
  });
430
- Kt.displayName = "TopmostSingle";
431
- function Gt(i) {
430
+ Wt.displayName = "TopmostSingle";
431
+ function kt(i) {
432
432
  var e, t, n = "";
433
433
  if (typeof i == "string" || typeof i == "number") n += i;
434
434
  else if (typeof i == "object") if (Array.isArray(i)) {
435
435
  var r = i.length;
436
- for (e = 0; e < r; e++) i[e] && (t = Gt(i[e])) && (n && (n += " "), n += t);
436
+ for (e = 0; e < r; e++) i[e] && (t = kt(i[e])) && (n && (n += " "), n += t);
437
437
  } else for (t in i) i[t] && (n && (n += " "), n += t);
438
438
  return n;
439
439
  }
440
- function T() {
441
- for (var i, e, t = 0, n = "", r = arguments.length; t < r; t++) (i = arguments[t]) && (e = Gt(i)) && (n && (n += " "), n += e);
440
+ function M() {
441
+ for (var i, e, t = 0, n = "", r = arguments.length; t < r; t++) (i = arguments[t]) && (e = kt(i)) && (n && (n += " "), n += e);
442
442
  return n;
443
443
  }
444
- const K = {
444
+ const k = {
445
445
  id: "slide.operation.update-element",
446
446
  type: V.OPERATION,
447
447
  handler: (i, e) => {
448
448
  const { oKey: t, props: n } = e, r = i.get(y), s = e == null ? void 0 : e.unitId, o = r.getUnit(s);
449
449
  if (!o) return !1;
450
450
  const a = o.getActivePage();
451
- return a.pageElements[t] = pn.deepMerge(a.pageElements[t], n), o.updatePage(a.id, a), !0;
452
- }
453
- }, bi = "univer-image-common-panel", Ei = "univer-image-common-panel-grid", Ri = "univer-image-common-panel-border", Oi = "univer-image-common-panel-title", xi = "univer-image-common-panel-subtitle", yi = "univer-image-common-panel-row", Mi = "univer-image-common-panel-row-vertical", Ti = "univer-image-common-panel-column", wi = "univer-image-common-panel-column-center", Ni = "univer-image-common-panel-inline", Di = "univer-image-common-panel-span2", Ui = "univer-image-common-panel-span3", Vi = "univer-image-common-panel-input", ji = "univer-slide-panel-color-picker", u = {
454
- imageCommonPanel: bi,
455
- imageCommonPanelGrid: Ei,
456
- imageCommonPanelBorder: Ri,
457
- imageCommonPanelTitle: Oi,
458
- imageCommonPanelSubtitle: xi,
459
- imageCommonPanelRow: yi,
460
- imageCommonPanelRowVertical: Mi,
461
- imageCommonPanelColumn: Ti,
462
- imageCommonPanelColumnCenter: wi,
463
- imageCommonPanelInline: Ni,
464
- imageCommonPanelSpan2: Di,
465
- imageCommonPanelSpan3: Ui,
466
- imageCommonPanelInput: Vi,
467
- slidePanelColorPicker: ji
451
+ return a.pageElements[t] = mn.deepMerge(a.pageElements[t], n), o.updatePage(a.id, a), !0;
452
+ }
453
+ }, Ii = "univer-image-common-panel-grid", bi = "univer-image-common-panel-border", Pi = "univer-image-common-panel-title", Ei = "univer-image-common-panel-row", Ri = "univer-image-common-panel-column", Oi = "univer-image-common-panel-inline", xi = "univer-image-common-panel-span2", yi = "univer-image-common-panel-span3", Ti = "univer-image-common-panel-input", Mi = "univer-slide-panel-color-picker", u = {
454
+ imageCommonPanelGrid: Ii,
455
+ imageCommonPanelBorder: bi,
456
+ imageCommonPanelTitle: Pi,
457
+ imageCommonPanelRow: Ei,
458
+ imageCommonPanelColumn: Ri,
459
+ imageCommonPanelInline: Oi,
460
+ imageCommonPanelSpan2: xi,
461
+ imageCommonPanelSpan3: yi,
462
+ imageCommonPanelInput: Ti,
463
+ slidePanelColorPicker: Mi
468
464
  };
469
- function Bi(i) {
470
- const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(j), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
465
+ function wi(i) {
466
+ const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
471
467
  if (!a) return null;
472
468
  const c = a.getTransformer();
473
469
  if (!c) return null;
474
470
  const l = c.getSelectedObjectMap().values().next().value;
475
471
  if (!l) return null;
476
- const d = (p) => {
477
- const v = a.getAllObjects(), [f, C] = v.reduce(([_, P], b) => {
478
- const w = b.zIndex, D = w < _ ? w : _, B = w > P ? w : P;
479
- return [D, B];
472
+ const d = (v) => {
473
+ const f = a.getAllObjects(), [C, p] = f.reduce(([_, b], P) => {
474
+ const w = P.zIndex, D = w < _ ? w : _, L = w > b ? w : b;
475
+ return [D, L];
480
476
  }, [0, 0]);
481
- let h = l.zIndex;
482
- p === 3 ? h = f - 1 : p === 2 ? h = C + 1 : p === 0 ? h = l.zIndex + 1 : p === 1 && (h = l.zIndex - 1), l.setProps({
483
- zIndex: h
484
- }), s.executeCommand(K.id, {
477
+ let m = l.zIndex;
478
+ v === 3 ? m = C - 1 : v === 2 ? m = p + 1 : v === 0 ? m = l.zIndex + 1 : v === 1 && (m = l.zIndex - 1), l.setProps({
479
+ zIndex: m
480
+ }), s.executeCommand(k.id, {
485
481
  unitId: t,
486
482
  oKey: l == null ? void 0 : l.oKey,
487
483
  props: {
488
- zIndex: h
484
+ zIndex: m
489
485
  }
490
486
  });
491
487
  };
492
488
  return /* @__PURE__ */ R("div", { className: u.imageCommonPanelGrid, children: [
493
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ m("div", { children: n.t("image-panel.arrange.title") }) }) }),
489
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ g("div", { children: n.t("image-panel.arrange.title") }) }) }),
494
490
  /* @__PURE__ */ R("div", { className: u.imageCommonPanelRow, children: [
495
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ m(Pe, { size: "small", onClick: () => {
491
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ g(be, { size: "small", onClick: () => {
496
492
  d(
497
493
  0
498
494
  /* forward */
499
495
  );
500
496
  }, children: /* @__PURE__ */ R("span", { className: u.imageCommonPanelInline, children: [
501
- /* @__PURE__ */ m(Ft, {}),
497
+ /* @__PURE__ */ g(Ht, {}),
502
498
  n.t("image-panel.arrange.forward")
503
499
  ] }) }) }),
504
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ m(Pe, { size: "small", onClick: () => {
500
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ g(be, { size: "small", onClick: () => {
505
501
  d(
506
502
  1
507
503
  /* backward */
508
504
  );
509
505
  }, children: /* @__PURE__ */ R("span", { className: u.imageCommonPanelInline, children: [
510
- /* @__PURE__ */ m(Ht, {}),
506
+ /* @__PURE__ */ g($t, {}),
511
507
  n.t("image-panel.arrange.backward")
512
508
  ] }) }) })
513
509
  ] }),
514
510
  /* @__PURE__ */ R("div", { className: u.imageCommonPanelRow, children: [
515
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ m(Pe, { size: "small", onClick: () => {
511
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ g(be, { size: "small", onClick: () => {
516
512
  d(
517
513
  2
518
514
  /* front */
519
515
  );
520
516
  }, children: /* @__PURE__ */ R("span", { className: u.imageCommonPanelInline, children: [
521
- /* @__PURE__ */ m(Kt, {}),
517
+ /* @__PURE__ */ g(Wt, {}),
522
518
  n.t("image-panel.arrange.front")
523
519
  ] }) }) }),
524
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ m(Pe, { size: "small", onClick: () => {
520
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ g(be, { size: "small", onClick: () => {
525
521
  d(
526
522
  3
527
523
  /* back */
528
524
  );
529
525
  }, children: /* @__PURE__ */ R("span", { className: u.imageCommonPanelInline, children: [
530
- /* @__PURE__ */ m(At, {}),
526
+ /* @__PURE__ */ g(jt, {}),
531
527
  n.t("image-panel.arrange.back")
532
528
  ] }) }) })
533
529
  ] })
534
530
  ] });
535
531
  }
536
- function Li(i) {
537
- var f, C;
538
- const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(j), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
532
+ function Ni(i) {
533
+ var C, p;
534
+ const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
539
535
  if (!a) return null;
540
536
  const c = a.getTransformer();
541
537
  if (!c) return null;
542
538
  const l = c.getSelectedObjectMap().values().next().value;
543
539
  if (!l) return null;
544
- const [d, p] = Nt.useState((C = (f = l.fill) == null ? void 0 : f.toString()) != null ? C : "");
545
- function v(h) {
540
+ const [d, v] = wt.useState((p = (C = l.fill) == null ? void 0 : C.toString()) != null ? p : "");
541
+ function f(m) {
546
542
  l == null || l.setProps({
547
- fill: h
548
- }), s.executeCommand(K.id, {
543
+ fill: m
544
+ }), s.executeCommand(k.id, {
549
545
  unitId: t,
550
546
  oKey: l == null ? void 0 : l.oKey,
551
547
  props: {
552
548
  shape: {
553
549
  shapeProperties: {
554
550
  shapeBackgroundFill: {
555
- rgb: h
551
+ rgb: m
556
552
  }
557
553
  }
558
554
  }
559
555
  }
560
- }), p(h);
556
+ }), v(m);
561
557
  }
562
- return /* @__PURE__ */ m(
558
+ return /* @__PURE__ */ g(
563
559
  "div",
564
560
  {
565
- className: T(u.imageCommonPanelGrid, u.imageCommonPanelBorder),
561
+ className: M(u.imageCommonPanelGrid, u.imageCommonPanelBorder),
566
562
  children: /* @__PURE__ */ R("div", { className: u.imageCommonPanelGrid, children: [
567
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ m("div", { children: n.t("slide.panel.fill.title") }) }) }),
568
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ m(
569
- wt,
563
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ g("div", { children: n.t("slide.panel.fill.title") }) }) }),
564
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan2), children: /* @__PURE__ */ g(
565
+ Mt,
570
566
  {
571
567
  align: {
572
568
  offset: [0, 18]
573
569
  },
574
- overlay: /* @__PURE__ */ m("section", { className: u.slidePanelColorPicker, children: /* @__PURE__ */ m(
570
+ overlay: /* @__PURE__ */ g("section", { className: u.slidePanelColorPicker, children: /* @__PURE__ */ g(
575
571
  Hn,
576
572
  {
577
573
  value: "#fff",
578
- onChange: v
574
+ onChange: f
579
575
  }
580
576
  ) }),
581
577
  children: /* @__PURE__ */ R("a", { className: u.uiPluginSheetsBorderPanelButton, children: [
582
- /* @__PURE__ */ m(zt, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
583
- /* @__PURE__ */ m("span", { className: u.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ m(Ze, {}) })
578
+ /* @__PURE__ */ g(Ft, { extend: { colorChannel1: d != null ? d : "rgb(var(--primary-color))" } }),
579
+ /* @__PURE__ */ g("span", { className: u.uiPluginSheetsBorderPanelMoreIcon, children: /* @__PURE__ */ g(Ye, {}) })
584
580
  ] })
585
581
  }
586
582
  ) }) })
@@ -588,8 +584,8 @@ function Li(i) {
588
584
  }
589
585
  );
590
586
  }
591
- function Ai(i) {
592
- const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(j), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
587
+ function Di(i) {
588
+ const { pageId: e, unitId: t } = i, n = x(ee), r = x(N), s = x(B), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
593
589
  if (!a) return null;
594
590
  const c = a.getTransformer();
595
591
  if (!c) return null;
@@ -597,32 +593,32 @@ function Ai(i) {
597
593
  if (!l) return null;
598
594
  const {
599
595
  width: d = 0,
600
- height: p = 0,
601
- left: v = 0,
602
- top: f = 0,
603
- angle: C = 0
604
- } = l, [h, _] = X(d), [P, b] = X(p), [w, D] = X(v), [B, O] = X(f), [G, ce] = X(C), z = (S) => {
605
- const { objects: le } = S, de = le.values().next().value, {
606
- width: on = 0,
607
- height: an = 0,
608
- left: cn = 0,
609
- top: ln = 0,
610
- angle: dn = 0
611
- } = de;
612
- _(on), b(an), D(cn), O(ln), ce(dn);
596
+ height: v = 0,
597
+ left: f = 0,
598
+ top: C = 0,
599
+ angle: p = 0
600
+ } = l, [m, _] = G(d), [b, P] = G(v), [w, D] = G(f), [L, O] = G(C), [K, ae] = G(p), z = (S) => {
601
+ const { objects: ce } = S, le = ce.values().next().value, {
602
+ width: sn = 0,
603
+ height: on = 0,
604
+ left: an = 0,
605
+ top: cn = 0,
606
+ angle: ln = 0
607
+ } = le;
608
+ _(sn), P(on), D(an), O(cn), ae(ln);
613
609
  };
614
- he(() => {
615
- const S = c.changeStart$.subscribe((de) => {
616
- z(de);
617
- }), le = c.changing$.subscribe((de) => {
618
- z(de);
610
+ me(() => {
611
+ const S = c.changeStart$.subscribe((le) => {
612
+ z(le);
613
+ }), ce = c.changing$.subscribe((le) => {
614
+ z(le);
619
615
  });
620
616
  return () => {
621
- le.unsubscribe(), S.unsubscribe();
617
+ ce.unsubscribe(), S.unsubscribe();
622
618
  };
623
619
  }, []);
624
620
  function W(S) {
625
- !S || !l || (s.executeCommand(K.id, {
621
+ !S || !l || (s.executeCommand(k.id, {
626
622
  pageId: e,
627
623
  oKey: l.oKey,
628
624
  props: {
@@ -631,16 +627,16 @@ function Ai(i) {
631
627
  }), l == null || l.resize(S, l.height), _(S), c == null || c.refreshControls());
632
628
  }
633
629
  function te(S) {
634
- !S || !l || (s.executeCommand(K.id, {
630
+ !S || !l || (s.executeCommand(k.id, {
635
631
  pageId: e,
636
632
  oKey: l.oKey,
637
633
  props: {
638
634
  height: S
639
635
  }
640
- }), l == null || l.resize(l.width, S), b(S), c == null || c.refreshControls());
636
+ }), l == null || l.resize(l.width, S), P(S), c == null || c.refreshControls());
641
637
  }
642
638
  function ne(S) {
643
- !S || !l || (s.executeCommand(K.id, {
639
+ !S || !l || (s.executeCommand(k.id, {
644
640
  pageId: e,
645
641
  oKey: l.oKey,
646
642
  props: {
@@ -649,7 +645,7 @@ function Ai(i) {
649
645
  }), l == null || l.translate(S, l.top), D(S), c == null || c.refreshControls());
650
646
  }
651
647
  function Se(S) {
652
- !S || !l || (s.executeCommand(K.id, {
648
+ !S || !l || (s.executeCommand(k.id, {
653
649
  pageId: e,
654
650
  oKey: l.oKey,
655
651
  props: {
@@ -658,7 +654,7 @@ function Ai(i) {
658
654
  }), l == null || l.translate(l.left, S), O(S), c == null || c.refreshControls());
659
655
  }
660
656
  function Ie(S) {
661
- !S || !l || (s.executeCommand(K.id, {
657
+ !S || !l || (s.executeCommand(k.id, {
662
658
  pageId: e,
663
659
  oKey: l.oKey,
664
660
  props: {
@@ -666,37 +662,37 @@ function Ai(i) {
666
662
  }
667
663
  }), l == null || l.transformByState({
668
664
  angle: S
669
- }), ce(S), c == null || c.refreshControls());
665
+ }), ae(S), c == null || c.refreshControls());
670
666
  }
671
667
  return /* @__PURE__ */ R(
672
668
  "div",
673
669
  {
674
- className: T(u.imageCommonPanelGrid, u.imageCommonPanelBorder),
670
+ className: M(u.imageCommonPanelGrid, u.imageCommonPanelBorder),
675
671
  children: [
676
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ m("div", { children: n.t("image-panel.transform.title") }) }) }),
672
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelTitle), children: /* @__PURE__ */ g("div", { children: n.t("image-panel.transform.title") }) }) }),
677
673
  /* @__PURE__ */ R("div", { className: u.imageCommonPanelRow, children: [
678
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
679
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.width") }) }),
680
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ m(
681
- me,
674
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
675
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.width") }) }),
676
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ g(
677
+ de,
682
678
  {
683
679
  className: u.imageCommonPanelInput,
684
680
  min: 1,
685
- value: h,
681
+ value: m,
686
682
  onChange: (S) => {
687
683
  W(S);
688
684
  }
689
685
  }
690
686
  ) }) })
691
687
  ] }) }),
692
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
693
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.height") }) }),
694
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ m(
695
- me,
688
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
689
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.height") }) }),
690
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ g(
691
+ de,
696
692
  {
697
693
  className: u.imageCommonPanelInput,
698
694
  min: 1,
699
- value: P,
695
+ value: b,
700
696
  onChange: (S) => {
701
697
  te(S);
702
698
  }
@@ -705,10 +701,10 @@ function Ai(i) {
705
701
  ] }) })
706
702
  ] }),
707
703
  /* @__PURE__ */ R("div", { className: u.imageCommonPanelRow, children: [
708
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
709
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.x") }) }),
710
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ m(
711
- me,
704
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
705
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.x") }) }),
706
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ g(
707
+ de,
712
708
  {
713
709
  className: u.imageCommonPanelInput,
714
710
  precision: 1,
@@ -720,29 +716,29 @@ function Ai(i) {
720
716
  }
721
717
  ) }) })
722
718
  ] }) }),
723
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
724
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.y") }) }),
725
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ m(
726
- me,
719
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
720
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.y") }) }),
721
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ g(
722
+ de,
727
723
  {
728
724
  className: u.imageCommonPanelInput,
729
725
  precision: 1,
730
726
  min: 0,
731
- value: B,
727
+ value: L,
732
728
  onChange: (S) => {
733
729
  Se(S);
734
730
  }
735
731
  }
736
732
  ) }) })
737
733
  ] }) }),
738
- /* @__PURE__ */ m("div", { className: T(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
739
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.rotate") }) }),
740
- /* @__PURE__ */ m("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ m("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ m(
741
- me,
734
+ /* @__PURE__ */ g("div", { className: M(u.imageCommonPanelColumn, u.imageCommonPanelSpan3), children: /* @__PURE__ */ R("label", { children: [
735
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: n.t("image-panel.transform.rotate") }) }),
736
+ /* @__PURE__ */ g("div", { className: u.imageCommonPanelRow, children: /* @__PURE__ */ g("div", { className: u.imageCommonPanelColumn, children: /* @__PURE__ */ g(
737
+ de,
742
738
  {
743
739
  className: u.imageCommonPanelInput,
744
740
  precision: 1,
745
- value: G,
741
+ value: K,
746
742
  onChange: Ie
747
743
  }
748
744
  ) }) })
@@ -752,24 +748,12 @@ function Ai(i) {
752
748
  }
753
749
  );
754
750
  }
755
- const $i = "univer-image-common-panel", Hi = "univer-image-common-panel-grid", Fi = "univer-image-common-panel-border", zi = "univer-image-common-panel-title", Wi = "univer-image-common-panel-subtitle", Ki = "univer-image-common-panel-row", Gi = "univer-image-common-panel-row-vertical", Xi = "univer-image-common-panel-column", Yi = "univer-image-common-panel-column-center", Zi = "univer-image-common-panel-inline", ki = "univer-image-common-panel-span2", qi = "univer-image-common-panel-span3", Ji = "univer-image-common-panel-input", Qi = {
756
- imageCommonPanel: $i,
757
- imageCommonPanelGrid: Hi,
758
- imageCommonPanelBorder: Fi,
759
- imageCommonPanelTitle: zi,
760
- imageCommonPanelSubtitle: Wi,
761
- imageCommonPanelRow: Ki,
762
- imageCommonPanelRowVertical: Gi,
763
- imageCommonPanelColumn: Xi,
764
- imageCommonPanelColumnCenter: Yi,
765
- imageCommonPanelInline: Zi,
766
- imageCommonPanelSpan2: ki,
767
- imageCommonPanelSpan3: qi,
768
- imageCommonPanelInput: Ji
751
+ const Ui = "univer-image-common-panel", Vi = {
752
+ imageCommonPanel: Ui
769
753
  }, Oe = "COMPONENT_SLIDE_SIDEBAR";
770
- function er() {
771
- var g, l, d;
772
- const i = x(y), e = x(N), t = i.getCurrentUnitForType(E.UNIVER_SLIDE), n = (g = t == null ? void 0 : t.getActivePage()) == null ? void 0 : g.id;
754
+ function Bi() {
755
+ var h, l, d;
756
+ const i = x(y), e = x(N), t = i.getCurrentUnitForType(E.UNIVER_SLIDE), n = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
773
757
  if (!n) return null;
774
758
  const s = (l = e.getRenderUnitByPageId(n, n).scene) == null ? void 0 : l.getTransformer();
775
759
  if (!s) return null;
@@ -777,27 +761,27 @@ function er() {
777
761
  if (!a)
778
762
  return null;
779
763
  const c = ((d = i.getFocusedUnit()) == null ? void 0 : d.getUnitId()) || "";
780
- return /* @__PURE__ */ R("section", { className: Qi.imageCommonPanel, children: [
781
- /* @__PURE__ */ m(Bi, { pageId: n, unitId: c }),
782
- /* @__PURE__ */ m(Ai, { pageId: n, unitId: c }),
783
- a.objectType === ge.RECT && /* @__PURE__ */ m(Li, { pageId: n, unitId: c })
764
+ return /* @__PURE__ */ R("section", { className: Vi.imageCommonPanel, children: [
765
+ /* @__PURE__ */ g(wi, { pageId: n, unitId: c }),
766
+ /* @__PURE__ */ g(Di, { pageId: n, unitId: c }),
767
+ a.objectType === ue.RECT && /* @__PURE__ */ g(Ni, { pageId: n, unitId: c })
784
768
  ] });
785
769
  }
786
- const ke = {
770
+ const Ze = {
787
771
  id: "slide.command.insert-float-shape",
788
772
  type: V.COMMAND,
789
773
  handler: async (i) => {
790
774
  var r;
791
- const e = i.get(j), n = (r = i.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
792
- return e.executeCommand(Xt.id, { unitId: n });
775
+ const e = i.get(B), n = (r = i.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
776
+ return e.executeCommand(Kt.id, { unitId: n });
793
777
  }
794
- }, Xt = {
778
+ }, Kt = {
795
779
  id: "slide.operation.insert-float-shape",
796
780
  type: V.OPERATION,
797
781
  handler: async (i, e) => {
798
782
  const t = St(6), n = i.get(y), r = e.unitId, s = n.getUnit(r);
799
783
  if (!s) return !1;
800
- const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((p) => p.zIndex)) : 20, g = {
784
+ const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((v) => v.zIndex)) : 20, h = {
801
785
  id: t,
802
786
  zIndex: c + 1,
803
787
  left: 378,
@@ -806,9 +790,9 @@ const ke = {
806
790
  height: 250,
807
791
  title: t,
808
792
  description: "",
809
- type: Ge.SHAPE,
793
+ type: Ke.SHAPE,
810
794
  shape: {
811
- shapeType: Cn.Rect,
795
+ shapeType: vn.Rect,
812
796
  text: "",
813
797
  shapeProperties: {
814
798
  shapeBackgroundFill: {
@@ -817,8 +801,8 @@ const ke = {
817
801
  }
818
802
  }
819
803
  };
820
- o.pageElements[t] = g, s.updatePage(o.id, o);
821
- const l = i.get(N), d = l.createObjectToPage(g, o.id, r);
804
+ o.pageElements[t] = h, s.updatePage(o.id, o);
805
+ const l = i.get(N), d = l.createObjectToPage(h, o.id, r);
822
806
  return d && l.setObjectActiveByPage(d, o.id, r), !0;
823
807
  }
824
808
  }, $e = {
@@ -827,7 +811,7 @@ const ke = {
827
811
  handler: async (i, e) => {
828
812
  const { visible: t, objectType: n } = e, r = i.get(Tt), s = i.get(ee);
829
813
  let o = "", a = "";
830
- return n === ge.RECT ? (o = "slide.sidebar.shape", a = Oe) : n === ge.IMAGE ? (o = "slide.sidebar.image", a = Oe) : n === ge.RICH_TEXT && (o = "slide.sidebar.text", a = Oe), t ? r.open({
814
+ return n === ue.RECT ? (o = "slide.sidebar.shape", a = Oe) : n === ue.IMAGE ? (o = "slide.sidebar.image", a = Oe) : n === ue.RICH_TEXT && (o = "slide.sidebar.text", a = Oe), t ? r.open({
831
815
  header: { title: s.t(o) },
832
816
  children: { label: a },
833
817
  onClose: () => {
@@ -835,14 +819,14 @@ const ke = {
835
819
  width: 360
836
820
  }) : r.close(), !0;
837
821
  }
838
- }, Yt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
839
- var tr = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, ir = (i, e, t, n) => {
840
- for (var r = n > 1 ? void 0 : n ? nr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
841
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
842
- return n && r && tr(e, t, r), r;
843
- }, be = (i, e) => (t, n) => e(t, n, i);
844
- function rr(i, e) {
845
- const t = pt(i.left, i.top, e), n = pt(i.right, i.bottom, e);
822
+ }, Gt = "COMPONENT_SLIDE_IMAGE_POPUP_MENU";
823
+ var Li = Object.getOwnPropertyDescriptor, ji = (i, e, t, n) => {
824
+ for (var r = n > 1 ? void 0 : n ? Li(e, t) : e, s = i.length - 1, o; s >= 0; s--)
825
+ (o = i[s]) && (r = o(r) || r);
826
+ return r;
827
+ }, Pe = (i, e) => (t, n) => e(t, n, i);
828
+ function Ai(i, e) {
829
+ const t = vt(i.left, i.top, e), n = vt(i.right, i.bottom, e);
846
830
  return {
847
831
  left: t.x,
848
832
  top: t.y,
@@ -850,39 +834,39 @@ function rr(i, e) {
850
834
  bottom: n.y
851
835
  };
852
836
  }
853
- function pt(i, e, t) {
837
+ function vt(i, e, t) {
854
838
  const { scaleX: n, scaleY: r } = t.getAncestorScale(), s = t.getViewport(oe.VIEW);
855
839
  if (!s)
856
840
  return {
857
841
  x: i,
858
842
  y: e
859
843
  };
860
- const { viewportScrollX: o, viewportScrollY: a } = s, c = (i - o) * n, g = (e - a) * r;
844
+ const { viewportScrollX: o, viewportScrollY: a } = s, c = (i - o) * n, h = (e - a) * r;
861
845
  return {
862
846
  x: c,
863
- y: g
847
+ y: h
864
848
  };
865
849
  }
866
- let Me = class extends Ve {
850
+ let Te = class extends Ve {
867
851
  constructor(i, e, t, n) {
868
852
  super(), this._globalPopupManagerService = i, this._renderManagerService = e, this._univerInstanceService = t, this._commandService = n;
869
853
  }
870
854
  _createObjectPositionObserver(i, e) {
871
855
  const n = (() => {
872
856
  var z, W, te, ne;
873
- const { scene: o, engine: a } = e, { left: c, top: g, width: l, height: d } = i, p = (o.width - ((W = (z = e.mainComponent) == null ? void 0 : z.width) != null ? W : 0)) / 2, v = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, f = {
857
+ const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = i, v = (o.width - ((W = (z = e.mainComponent) == null ? void 0 : z.width) != null ? W : 0)) / 2, f = (o.height - ((ne = (te = e.mainComponent) == null ? void 0 : te.height) != null ? ne : 0)) / 2, C = {
874
858
  left: c,
875
859
  right: c + l,
876
- top: g,
877
- bottom: g + d
878
- }, C = a.getCanvasElement(), h = C.getBoundingClientRect(), _ = Mn(C.style.width), { scaleX: P, scaleY: b } = o.getAncestorScale(), w = rr(f, o), { top: D, left: B, width: O } = h, G = O / _;
860
+ top: h,
861
+ bottom: h + d
862
+ }, p = a.getCanvasElement(), m = p.getBoundingClientRect(), _ = Tn(p.style.width), { scaleX: b, scaleY: P } = o.getAncestorScale(), w = Ai(C, o), { top: D, left: L, width: O } = m, K = O / _;
879
863
  return {
880
- left: w.left * G * P + B + p,
881
- right: w.right * G * P + B + p,
882
- top: w.top * G * b + D + v,
883
- bottom: w.bottom * G * b + D + v
864
+ left: w.left * K * b + L + v,
865
+ right: w.right * K * b + L + v,
866
+ top: w.top * K * P + D + f,
867
+ bottom: w.bottom * K * P + D + f
884
868
  };
885
- })(), r = new Q(n), s = new Xe();
869
+ })(), r = new Q(n), s = new Ge();
886
870
  return {
887
871
  position: n,
888
872
  position$: r,
@@ -911,18 +895,18 @@ let Me = class extends Ve {
911
895
  };
912
896
  }
913
897
  };
914
- Me = ir([
915
- be(0, Y(wn)),
916
- be(1, Z),
917
- be(2, y),
918
- be(3, j)
919
- ], Me);
920
- var sr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, ar = (i, e, t, n) => {
921
- for (var r = n > 1 ? void 0 : n ? or(e, t) : e, s = i.length - 1, o; s >= 0; s--)
922
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
923
- return n && r && sr(e, t, r), r;
898
+ Te = ji([
899
+ Pe(0, X(wn)),
900
+ Pe(1, Y),
901
+ Pe(2, y),
902
+ Pe(3, B)
903
+ ], Te);
904
+ var $i = Object.getOwnPropertyDescriptor, Hi = (i, e, t, n) => {
905
+ for (var r = n > 1 ? void 0 : n ? $i(e, t) : e, s = i.length - 1, o; s >= 0; s--)
906
+ (o = i[s]) && (r = o(r) || r);
907
+ return r;
924
908
  }, q = (i, e) => (t, n) => e(t, n, i);
925
- let Te = class extends Ce {
909
+ let Me = class extends pe {
926
910
  constructor(e, t, n, r, s, o, a) {
927
911
  super();
928
912
  I(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
@@ -944,8 +928,8 @@ let Te = class extends Ce {
944
928
  var r;
945
929
  const t = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE), n = (r = t == null ? void 0 : t.getPages()) != null ? r : {};
946
930
  Object.keys(n).forEach((s) => {
947
- var g;
948
- const a = (g = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : g.getTransformer();
931
+ var h;
932
+ const a = (h = this._canvasView.getRenderUnitByPageId(s, e).scene) == null ? void 0 : h.getTransformer();
949
933
  if (!a) return;
950
934
  let c;
951
935
  this.disposeWithMe(
@@ -959,13 +943,13 @@ let Te = class extends Ce {
959
943
  const d = l.values().next().value;
960
944
  if (!d)
961
945
  return;
962
- const p = d.oKey;
946
+ const v = d.oKey;
963
947
  c == null || c.dispose(), c = this.disposeWithMe(this._canvasPopManagerService.attachPopupToObject(d, {
964
- componentKey: Yt,
948
+ componentKey: Gt,
965
949
  direction: "horizontal",
966
950
  offset: [2, 0],
967
951
  extraProps: {
968
- menuItems: this._getMenuItemsByObjectType(d.objectType, p, e)
952
+ menuItems: this._getMenuItemsByObjectType(d.objectType, v, e)
969
953
  }
970
954
  })), this._sidebarService.visible && this._commandService.executeCommand($e.id, {
971
955
  visible: !0,
@@ -975,7 +959,7 @@ let Te = class extends Ce {
975
959
  )
976
960
  ), this.disposeWithMe(
977
961
  a.clearControl$.subscribe(() => {
978
- c == null || c.dispose(), this._contextService.setContextValue(fn, !1);
962
+ c == null || c.dispose(), this._contextService.setContextValue(pn, !1);
979
963
  })
980
964
  ), this.disposeWithMe(
981
965
  a.changing$.subscribe(() => {
@@ -986,7 +970,7 @@ let Te = class extends Ce {
986
970
  return;
987
971
  }
988
972
  const d = l.values().next().value;
989
- d && this._commandService.executeCommand(K.id, {
973
+ d && this._commandService.executeCommand(k.id, {
990
974
  unitId: e,
991
975
  oKey: d.oKey,
992
976
  props: {
@@ -1013,7 +997,7 @@ let Te = class extends Ce {
1013
997
  }, {
1014
998
  label: "slide.popup.delete",
1015
999
  index: 5,
1016
- commandId: Vt.id,
1000
+ commandId: Ut.id,
1017
1001
  commandParams: {
1018
1002
  id: t,
1019
1003
  unitId: n
@@ -1022,30 +1006,30 @@ let Te = class extends Ce {
1022
1006
  }];
1023
1007
  }
1024
1008
  };
1025
- Te = ar([
1026
- q(0, Y(Me)),
1027
- q(1, Z),
1009
+ Me = Hi([
1010
+ q(0, X(Te)),
1011
+ q(1, Y),
1028
1012
  q(2, y),
1029
- q(3, fe),
1030
- q(4, Y(N)),
1013
+ q(3, Ce),
1014
+ q(4, X(N)),
1031
1015
  q(5, Tt),
1032
- q(6, j)
1033
- ], Te);
1016
+ q(6, B)
1017
+ ], Me);
1034
1018
  const we = {
1035
1019
  id: "slide.operation.edit-arrow",
1036
1020
  type: V.OPERATION,
1037
1021
  handler: () => !0
1038
- }, ae = vn("SLIDE_EDITOR");
1039
- var cr = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, dr = (i, e, t, n) => {
1040
- for (var r = n > 1 ? void 0 : n ? lr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1041
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
1042
- return n && r && cr(e, t, r), r;
1043
- }, Be = (i, e) => (t, n) => e(t, n, i);
1044
- const qe = Pt("univer.slide-editor-bridge.service");
1022
+ }, he = Cn("SLIDE_EDITOR");
1023
+ var Fi = Object.getOwnPropertyDescriptor, zi = (i, e, t, n) => {
1024
+ for (var r = n > 1 ? void 0 : n ? Fi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1025
+ (o = i[s]) && (r = o(r) || r);
1026
+ return r;
1027
+ }, Le = (i, e) => (t, n) => e(t, n, i);
1028
+ const qe = bt("univer.slide-editor-bridge.service");
1045
1029
  let He = class extends Ve {
1046
1030
  constructor(e, t, n) {
1047
1031
  super();
1048
- I(this, "_editorUnitId", ae);
1032
+ I(this, "_editorUnitId", he);
1049
1033
  I(this, "_isForceKeepVisible", !1);
1050
1034
  I(this, "_editorIsDirty", !1);
1051
1035
  I(this, "_currentEditRectState", null);
@@ -1060,7 +1044,7 @@ let He = class extends Ve {
1060
1044
  I(this, "visible$", this._visible$.asObservable());
1061
1045
  I(this, "_afterVisible$", new Q(this._visibleParam));
1062
1046
  I(this, "afterVisible$", this._afterVisible$.asObservable());
1063
- I(this, "endEditing$", new Ut());
1047
+ I(this, "endEditing$", new Dt());
1064
1048
  I(this, "_currentEditRectInfo");
1065
1049
  this._editorService = e, this._contextService = t, this._renderManagerService = n;
1066
1050
  }
@@ -1075,7 +1059,7 @@ let He = class extends Ve {
1075
1059
  * @editorInfo editorInfo
1076
1060
  */
1077
1061
  setEditorRect(e) {
1078
- this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(ae), this._contextService.setContextValue(xe, !1), this._contextService.setContextValue(bt, !1), this._contextService.setContextValue(Et, !1));
1062
+ this._currentEditRectInfo = e, this._editorService.getFocusEditor() || (this._editorService.focus(he), this._contextService.setContextValue(xe, !1), this._contextService.setContextValue(Pt, !1), this._contextService.setContextValue(Et, !1));
1079
1063
  const t = this.getEditRectState();
1080
1064
  this._currentEditRectState = t, this._currentEditRectState$.next(t);
1081
1065
  }
@@ -1089,31 +1073,31 @@ let He = class extends Ve {
1089
1073
  * && this@setEditorRect
1090
1074
  */
1091
1075
  getEditRectState() {
1092
- const e = ae, t = this._currentEditRectInfo, n = t.unitId, r = t.richTextObj.documentData;
1076
+ const e = he, t = this._currentEditRectInfo, n = t.unitId, r = t.richTextObj.documentData;
1093
1077
  r.id = e, r.documentStyle = {
1094
1078
  ...r.documentStyle,
1095
1079
  pageSize: { width: t.richTextObj.width, height: 1 / 0 }
1096
1080
  };
1097
1081
  const o = {
1098
- documentModel: new _n(r),
1082
+ documentModel: new fn(r),
1099
1083
  fontString: "document",
1100
1084
  textRotation: { a: 0, v: 0 },
1101
1085
  wrapStrategy: 0,
1102
1086
  verticalAlign: ye.TOP,
1103
1087
  horizontalAlign: Rt.LEFT,
1104
1088
  paddingData: { t: 0, b: 1, l: 2, r: 2 }
1105
- }, a = t.richTextObj.width, c = t.richTextObj.height, g = t.richTextObj.left, l = t.richTextObj.top, d = {
1089
+ }, a = t.richTextObj.width, c = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1106
1090
  left: 0,
1107
1091
  top: 0
1108
- }, p = this._renderManagerService.getRenderById(n), v = p == null ? void 0 : p.scene, f = v == null ? void 0 : v.getViewport(oe.VIEW), C = v == null ? void 0 : v.getObject(oe.COMPONENT), h = {
1109
- x: (C == null ? void 0 : C.left) || 0,
1110
- y: (C == null ? void 0 : C.top) || 0
1111
- }, _ = (f == null ? void 0 : f.viewportScrollX) || 0, P = (f == null ? void 0 : f.viewportScrollY) || 0;
1112
- return d.left = h.x - _, d.top = h.y - P, {
1092
+ }, v = this._renderManagerService.getRenderById(n), f = v == null ? void 0 : v.scene, C = f == null ? void 0 : f.getViewport(oe.VIEW), p = f == null ? void 0 : f.getObject(oe.COMPONENT), m = {
1093
+ x: (p == null ? void 0 : p.left) || 0,
1094
+ y: (p == null ? void 0 : p.top) || 0
1095
+ }, _ = (C == null ? void 0 : C.viewportScrollX) || 0, b = (C == null ? void 0 : C.viewportScrollY) || 0;
1096
+ return d.left = m.x - _, d.top = m.y - b, {
1113
1097
  position: {
1114
- startX: g,
1098
+ startX: h,
1115
1099
  startY: l,
1116
- endX: g + a,
1100
+ endX: h + a,
1117
1101
  endY: l + c
1118
1102
  },
1119
1103
  scaleX: 1,
@@ -1179,12 +1163,12 @@ let He = class extends Ve {
1179
1163
  };
1180
1164
  }
1181
1165
  };
1182
- He = dr([
1183
- Be(0, Ye),
1184
- Be(1, fe),
1185
- Be(2, Z)
1166
+ He = zi([
1167
+ Le(0, Xe),
1168
+ Le(1, Ce),
1169
+ Le(2, Y)
1186
1170
  ], He);
1187
- class mr {
1171
+ class Wi {
1188
1172
  constructor() {
1189
1173
  I(this, "_state", null);
1190
1174
  I(this, "_rect", null);
@@ -1218,30 +1202,30 @@ class mr {
1218
1202
  this._state$.next(e);
1219
1203
  }
1220
1204
  }
1221
- const Je = Pt(
1205
+ const Je = bt(
1222
1206
  "univer.slide-editor-manager.service"
1223
1207
  );
1224
- var k = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(k || {}), ur = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, hr = (i, e, t, n) => {
1225
- for (var r = n > 1 ? void 0 : n ? gr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1226
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
1227
- return n && r && ur(e, t, r), r;
1208
+ var Z = /* @__PURE__ */ ((i) => (i[i.InitialState = 0] = "InitialState", i[i.StartEditor = 1] = "StartEditor", i[i.CursorChange = 2] = "CursorChange", i))(Z || {}), ki = Object.getOwnPropertyDescriptor, Ki = (i, e, t, n) => {
1209
+ for (var r = n > 1 ? void 0 : n ? ki(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1210
+ (o = i[s]) && (r = o(r) || r);
1211
+ return r;
1228
1212
  }, A = (i, e) => (t, n) => e(t, n, i);
1229
- const Ct = -1e3, ft = 5, pr = 2;
1213
+ const pt = -1e3, Ct = 5, Gi = 2;
1230
1214
  let Fe = class extends Ve {
1231
- constructor(e, t, n, r, s, o, a, c, g, l, d, p) {
1215
+ constructor(e, t, n, r, s, o, a, c, h, l, d, v) {
1232
1216
  super();
1233
1217
  /**
1234
1218
  * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks.
1235
1219
  */
1236
- I(this, "_cursorChange", k.InitialState);
1220
+ I(this, "_cursorChange", Z.InitialState);
1237
1221
  /** If the corresponding unit is active and prepared for editing. */
1238
1222
  I(this, "_isUnitEditing", !1);
1239
1223
  I(this, "_d");
1240
- this._renderContext = e, this._layoutService = t, this._undoRedoService = n, this._contextService = r, this._instanceSrv = s, this._renderManagerService = o, this._editorBridgeService = a, this._cellEditorManagerService = c, this._textSelectionManagerService = g, this._commandService = l, this._localService = d, this._editorService = p, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((v) => {
1241
- v && v.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1224
+ this._renderContext = e, this._layoutService = t, this._undoRedoService = n, 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((f) => {
1225
+ f && f.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1242
1226
  visible: !1,
1243
1227
  eventType: J.Keyboard,
1244
- keycode: M.ESC,
1228
+ keycode: T.ESC,
1245
1229
  unitId: this._renderContext.unitId
1246
1230
  }), this._isUnitEditing = !1));
1247
1231
  })), this._initEditorVisibilityListener();
@@ -1254,7 +1238,7 @@ let Fe = class extends Ve {
1254
1238
  (e = this._d) == null || e.dispose(), this._d = null;
1255
1239
  }
1256
1240
  _init() {
1257
- const e = new Xe();
1241
+ const e = new Ge();
1258
1242
  return this._subscribeToCurrentCell(e), this._initialKeyboardListener(e), this._initialCursorSync(e), this._listenEditorFocus(e), this._commandExecutedListener(e), setTimeout(() => {
1259
1243
  this._cursorStateListener(e);
1260
1244
  }, 1e3), e;
@@ -1271,11 +1255,11 @@ let Fe = class extends Ve {
1271
1255
  }
1272
1256
  _getEditorSkeleton(e) {
1273
1257
  var t;
1274
- return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(mt).getSkeleton();
1258
+ return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getSkeleton();
1275
1259
  }
1276
1260
  _getEditorViewModel(e) {
1277
1261
  var t;
1278
- return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(mt).getViewModel();
1262
+ return (t = this._renderManagerService.getRenderById(e)) == null ? void 0 : t.with(gt).getViewModel();
1279
1263
  }
1280
1264
  _initialCursorSync(e) {
1281
1265
  e.add(this._cellEditorManagerService.focus$.pipe(Wn((t) => !!t)).subscribe(() => {
@@ -1290,21 +1274,21 @@ let Fe = class extends Ve {
1290
1274
  */
1291
1275
  _subscribeToCurrentCell(e) {
1292
1276
  e.add(this._editorBridgeService.currentEditRectState$.subscribe((t) => {
1293
- var p;
1294
- if (t == null || this._contextService.getContextValue(bt) || this._contextService.getContextValue(Et))
1277
+ var v;
1278
+ if (t == null || this._contextService.getContextValue(Pt) || this._contextService.getContextValue(Et))
1295
1279
  return;
1296
1280
  const {
1297
1281
  position: { startX: n, endX: r },
1298
1282
  documentLayoutObject: { textRotation: s, wrapStrategy: o, documentModel: a },
1299
1283
  scaleX: c,
1300
- editorUnitId: g
1284
+ editorUnitId: h
1301
1285
  } = t, { vertexAngle: l } = rt(s);
1302
- a.updateDocumentId(g), o === tt.WRAP && l === 0 && a.updateDocumentDataPageSize((r - n) / c), this._instanceSrv.changeDoc(g, a), this._contextService.setContextValue(Sn, !0), this._textSelectionManagerService.replaceTextRanges([{
1286
+ a.updateDocumentId(h), o === tt.WRAP && l === 0 && a.updateDocumentDataPageSize((r - n) / c), this._instanceSrv.changeDoc(h, a), this._contextService.setContextValue(Sn, !0), this._textSelectionManagerService.replaceTextRanges([{
1303
1287
  startOffset: 0,
1304
1288
  endOffset: 0
1305
1289
  }]);
1306
- const d = (p = this._renderManagerService.getCurrentTypeOfRenderer(E.UNIVER_DOC)) == null ? void 0 : p.with(ut);
1307
- d && d.activate(Ct, Ct);
1290
+ const d = (v = this._renderManagerService.getCurrentTypeOfRenderer(E.UNIVER_DOC)) == null ? void 0 : v.with(ut);
1291
+ d && d.activate(pt, pt);
1308
1292
  }));
1309
1293
  }
1310
1294
  /**
@@ -1317,50 +1301,50 @@ let Fe = class extends Ve {
1317
1301
  * @param scaleY
1318
1302
  */
1319
1303
  _fitTextSize(e, t, n, r, s = 1, o = 1) {
1320
- const { startX: a, startY: c, endX: g, endY: l } = e, d = r.documentModel;
1304
+ const { startX: a, startY: c, endX: h, endY: l } = e, d = r.documentModel;
1321
1305
  if (d == null)
1322
1306
  return;
1323
- const { actualWidth: p, actualHeight: v } = this._predictingSize(
1307
+ const { actualWidth: v, actualHeight: f } = this._predictingSize(
1324
1308
  e,
1325
1309
  t,
1326
1310
  n,
1327
1311
  r,
1328
1312
  s,
1329
1313
  o
1330
- ), { verticalAlign: f, paddingData: C, fill: h } = r;
1331
- let _ = g - a, P = l - c;
1332
- if (_ < p && (_ = p), P < v)
1333
- P = v, d.updateDocumentDataMargin(C);
1314
+ ), { verticalAlign: C, paddingData: p, fill: m } = r;
1315
+ let _ = h - a, b = l - c;
1316
+ if (_ < v && (_ = v), b < f)
1317
+ b = f, d.updateDocumentDataMargin(p);
1334
1318
  else {
1335
- let b = 0;
1336
- f === ye.MIDDLE ? b = (P - v) / 2 / o : f === ye.TOP ? b = C.t || 0 : b = (P - v) / o - (C.b || 0), b = b < (C.t || 0) ? C.t || 0 : b, d.updateDocumentDataMargin({
1337
- t: b
1319
+ let P = 0;
1320
+ C === ye.MIDDLE ? P = (b - f) / 2 / o : C === ye.TOP ? P = p.t || 0 : P = (b - f) / o - (p.b || 0), P = P < (p.t || 0) ? p.t || 0 : P, d.updateDocumentDataMargin({
1321
+ t: P
1338
1322
  });
1339
1323
  }
1340
- n.calculate(), this._editAreaProcessing(_, P, e, t, h, s, o);
1324
+ n.calculate(), this._editAreaProcessing(_, b, e, t, m, s, o);
1341
1325
  }
1342
1326
  /**
1343
1327
  * Mainly used to pre-calculate the width of the editor,
1344
1328
  * to determine whether it needs to be automatically widened.
1345
1329
  */
1346
1330
  _predictingSize(e, t, n, r, s = 1, o = 1) {
1347
- const { startX: a, endX: c } = e, { textRotation: g, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: p } = rt(g), v = document.body.clientWidth;
1348
- if (l === tt.WRAP && p === 0) {
1349
- const { actualWidth: h, actualHeight: _ } = n.getActualSize();
1331
+ const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: v } = rt(h), f = document.body.clientWidth;
1332
+ if (l === tt.WRAP && v === 0) {
1333
+ const { actualWidth: m, actualHeight: _ } = n.getActualSize();
1350
1334
  return {
1351
- actualWidth: h * s,
1335
+ actualWidth: m * s,
1352
1336
  actualHeight: _ * o
1353
1337
  };
1354
1338
  }
1355
- d == null || d.updateDocumentDataPageSize((v - a - t.left) / s), n.calculate();
1356
- const f = n.getActualSize();
1357
- let C = c - a;
1358
- return C < f.actualWidth * s + ft * s && (C = f.actualWidth * s + ft * s), d == null || d.updateDocumentDataPageSize(C / s), d == null || d.updateDocumentRenderConfig({
1339
+ d == null || d.updateDocumentDataPageSize((f - a - t.left) / s), n.calculate();
1340
+ const C = n.getActualSize();
1341
+ let p = c - a;
1342
+ return p < C.actualWidth * s + Ct * s && (p = C.actualWidth * s + Ct * s), d == null || d.updateDocumentDataPageSize(p / s), d == null || d.updateDocumentRenderConfig({
1359
1343
  horizontalAlign: Rt.UNSPECIFIED,
1360
1344
  cellValueType: void 0
1361
1345
  }), {
1362
- actualWidth: C,
1363
- actualHeight: f.actualHeight * o
1346
+ actualWidth: p,
1347
+ actualHeight: C.actualHeight * o
1364
1348
  };
1365
1349
  }
1366
1350
  /**
@@ -1372,15 +1356,15 @@ let Fe = class extends Ve {
1372
1356
  const c = this._getEditorObject();
1373
1357
  if (c == null)
1374
1358
  return;
1375
- function g(le) {
1376
- return Number.parseInt(le.replace("px", ""));
1359
+ function h(ce) {
1360
+ return Number.parseInt(ce.replace("px", ""));
1377
1361
  }
1378
- const d = this._renderContext.engine.getCanvasElement(), p = d.getBoundingClientRect(), v = g(d.style.width), { top: f, left: C, width: h } = p, _ = h / v;
1379
- let { startX: P, startY: b } = n;
1380
- P += r.left, b += r.top;
1381
- const { document: w, scene: D, engine: B } = c, O = D.getViewport(gt.VIEW_MAIN), G = document.body.clientHeight - b - r.top - pr * 2, ce = document.body.clientWidth - P - r.left;
1362
+ const d = this._renderContext.engine.getCanvasElement(), v = d.getBoundingClientRect(), f = h(d.style.width), { top: C, left: p, width: m } = v, _ = m / f;
1363
+ let { startX: b, startY: P } = n;
1364
+ b += r.left, P += r.top;
1365
+ const { document: w, scene: D, engine: L } = c, O = D.getViewport(ht.VIEW_MAIN), K = document.body.clientHeight - P - r.top - Gi * 2, ae = document.body.clientWidth - b - r.left;
1382
1366
  let z = t, W = O == null ? void 0 : O.getScrollBar();
1383
- z > G ? (z = G, W == null ? O && new yt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (W = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (W == null ? void 0 : W.barSize) || 0, e = Math.min(e, ce), P -= se, b -= se, this._addBackground(D, e / o, t / a, s);
1367
+ z > K ? (z = K, W == null ? O && new xt(O, { enableHorizontal: !1, barSize: 8 }) : O == null || O.resetCanvasSizeAndUpdateScroll()) : (W = null, (S = O == null ? void 0 : O.getScrollBar()) == null || S.dispose()), e += (W == null ? void 0 : W.barSize) || 0, e = Math.min(e, ae), b -= se, P -= se, this._addBackground(D, e / o, t / a, s);
1384
1368
  const { scaleX: te, scaleY: ne } = D.getPrecisionScale();
1385
1369
  D.transformByState({
1386
1370
  width: e * _ / o,
@@ -1388,17 +1372,17 @@ let Fe = class extends Ve {
1388
1372
  scaleX: o * _,
1389
1373
  scaleY: a * _
1390
1374
  }), w.resize(e / o, t / a), setTimeout(() => {
1391
- B.resizeBySize(
1375
+ L.resizeBySize(
1392
1376
  st(e, te),
1393
1377
  st(z, ne)
1394
1378
  );
1395
1379
  }, 0);
1396
1380
  const Se = this._layoutService.getContentElement().getBoundingClientRect(), Ie = d.getBoundingClientRect();
1397
- P = P * _ + (Ie.left - Se.left), b = b * _ + (Ie.top - Se.top), this._cellEditorManagerService.setState({
1398
- startX: P,
1399
- startY: b,
1400
- endX: e * _ + P,
1401
- endY: z * _ + b,
1381
+ b = b * _ + (Ie.left - Se.left), P = P * _ + (Ie.top - Se.top), this._cellEditorManagerService.setState({
1382
+ startX: b,
1383
+ startY: P,
1384
+ endX: e * _ + b,
1385
+ endY: z * _ + P,
1402
1386
  show: !0
1403
1387
  });
1404
1388
  }
@@ -1409,14 +1393,14 @@ let Fe = class extends Ve {
1409
1393
  const s = "_backgroundRectHelperColor_", o = e.getObject(s);
1410
1394
  o == null && r == null || (o == null ? e.addObjects(
1411
1395
  [
1412
- new Mt(s, {
1396
+ new yt(s, {
1413
1397
  width: t,
1414
1398
  height: n,
1415
1399
  fill: r,
1416
1400
  evented: !1
1417
1401
  })
1418
1402
  ],
1419
- Xn
1403
+ Gn
1420
1404
  ) : r == null ? o.dispose() : (o.setProps({
1421
1405
  fill: r
1422
1406
  }), o.transformByState({
@@ -1433,9 +1417,9 @@ let Fe = class extends Ve {
1433
1417
  // first part: startEditing --> _updateEditor
1434
1418
  // 2nd part: startEditing --> changeVisible --> slide-editor-bridge.render-controller.ts@changeVisible --> _editorBridgeService.changeVisible
1435
1419
  _handleEditorVisible(e) {
1436
- var h, _;
1420
+ var m, _;
1437
1421
  const { eventType: t } = e;
1438
- this._cursorChange = [J.PointerDown, J.Dblclick].includes(t) ? k.CursorChange : k.StartEditor;
1422
+ this._cursorChange = [J.PointerDown, J.Dblclick].includes(t) ? Z.CursorChange : Z.StartEditor;
1439
1423
  const n = this._editorBridgeService.getEditRectState();
1440
1424
  if (n == null)
1441
1425
  return;
@@ -1445,29 +1429,29 @@ let Fe = class extends Ve {
1445
1429
  slideCardOffset: o,
1446
1430
  scaleX: a,
1447
1431
  scaleY: c,
1448
- editorUnitId: g,
1432
+ editorUnitId: h,
1449
1433
  unitId: l
1450
1434
  } = n, d = this._getEditorObject();
1451
1435
  if (d == null)
1452
1436
  return;
1453
- const { scene: p } = d;
1437
+ const { scene: v } = d;
1454
1438
  this._contextService.setContextValue(xe, !0);
1455
- const { documentModel: v } = s, f = this._getEditorSkeleton(g);
1456
- if (!f || !v)
1439
+ const { documentModel: f } = s, C = this._getEditorSkeleton(h);
1440
+ if (!C || !f)
1457
1441
  return;
1458
- this._fitTextSize(r, o, f, s, a, c);
1459
- const C = v.getBody().dataStream.length - 2 || 0;
1460
- (h = p.getViewport(gt.VIEW_MAIN)) == null || h.scrollToViewportPos({
1442
+ this._fitTextSize(r, o, C, s, a, c);
1443
+ const p = f.getBody().dataStream.length - 2 || 0;
1444
+ (m = v.getViewport(ht.VIEW_MAIN)) == null || m.scrollToViewportPos({
1461
1445
  viewportScrollX: Number.POSITIVE_INFINITY
1462
1446
  }), this._textSelectionManagerService.replaceTextRanges([
1463
1447
  {
1464
- startOffset: C,
1465
- endOffset: C
1448
+ startOffset: p,
1449
+ endOffset: p
1466
1450
  }
1467
1451
  ]), (_ = this._renderManagerService.getRenderById(l)) == null || _.scene.resetCursor();
1468
1452
  }
1469
1453
  _resetBodyStyle(e, t = !1) {
1470
- e.dataStream = Ot, 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 = [
1454
+ e.dataStream = In, 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 = [
1471
1455
  {
1472
1456
  startIndex: 0
1473
1457
  }
@@ -1482,14 +1466,14 @@ let Fe = class extends Ve {
1482
1466
  _showEditorByKeyboard(e) {
1483
1467
  }
1484
1468
  _commandExecutedListener(e) {
1485
- const t = [we.id], n = [Gn.id];
1469
+ const t = [we.id], n = [Kn.id];
1486
1470
  e.add(this._commandService.onCommandExecuted((r) => {
1487
- this._editorService.getFocusId() === ae && (t.includes(r.id) && this._moveCursorCmdHandler(r), n.includes(r.id) && this._editorBridgeService.isVisible() && this._editingChangedHandler());
1471
+ this._editorService.getFocusId() === he && (t.includes(r.id) && this._moveCursorCmdHandler(r), n.includes(r.id) && this._editorBridgeService.isVisible() && this._editingChangedHandler());
1488
1472
  }));
1489
1473
  }
1490
1474
  _moveCursorCmdHandler(e) {
1491
1475
  const t = e.params, { keycode: n, isShift: r } = t;
1492
- n != null && this._cursorChange === k.CursorChange ? this._moveInEditor(n, r) : this._editorBridgeService.changeVisible(t);
1476
+ n != null && this._cursorChange === Z.CursorChange ? this._moveInEditor(n, r) : this._editorBridgeService.changeVisible(t);
1493
1477
  }
1494
1478
  _editingChangedHandler() {
1495
1479
  const e = this._editorBridgeService.getEditorRect();
@@ -1501,11 +1485,11 @@ let Fe = class extends Ve {
1501
1485
  this._handleEditorVisible({ visible: !0, eventType: 3, unitId: n });
1502
1486
  }
1503
1487
  _getEditorObject() {
1504
- return Cr(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1488
+ return Xi(this._editorBridgeService.getCurrentEditorId(), this._renderManagerService);
1505
1489
  }
1506
1490
  async _handleEditorInvisible(e) {
1507
1491
  const { keycode: t } = e;
1508
- if (this._cursorChange = k.InitialState, this._exitInput(e), this._editorBridgeService.getEditRectState() == null)
1492
+ if (this._cursorChange = Z.InitialState, this._exitInput(e), this._editorBridgeService.getEditRectState() == null)
1509
1493
  return;
1510
1494
  if (this._editorBridgeService.getEditorDirty() === !1) {
1511
1495
  this._moveCursor(t);
@@ -1522,24 +1506,24 @@ let Fe = class extends Ve {
1522
1506
  }
1523
1507
  _moveCursor(e) {
1524
1508
  if (e != null)
1525
- switch (L.LEFT, e) {
1526
- case M.ENTER:
1527
- L.DOWN;
1509
+ switch (j.LEFT, e) {
1510
+ case T.ENTER:
1511
+ j.DOWN;
1528
1512
  break;
1529
- case M.TAB:
1530
- L.RIGHT;
1513
+ case T.TAB:
1514
+ j.RIGHT;
1531
1515
  break;
1532
- case M.ARROW_DOWN:
1533
- L.DOWN;
1516
+ case T.ARROW_DOWN:
1517
+ j.DOWN;
1534
1518
  break;
1535
- case M.ARROW_UP:
1536
- L.UP;
1519
+ case T.ARROW_UP:
1520
+ j.UP;
1537
1521
  break;
1538
- case M.ARROW_LEFT:
1539
- L.LEFT;
1522
+ case T.ARROW_LEFT:
1523
+ j.LEFT;
1540
1524
  break;
1541
- case M.ARROW_RIGHT:
1542
- L.RIGHT;
1525
+ case T.ARROW_RIGHT:
1526
+ j.RIGHT;
1543
1527
  break;
1544
1528
  }
1545
1529
  }
@@ -1553,39 +1537,39 @@ let Fe = class extends Ve {
1553
1537
  return;
1554
1538
  const { document: n } = t;
1555
1539
  e.add(It(n.onPointerDown$.subscribeEvent(() => {
1556
- this._cursorChange === k.StartEditor && (this._cursorChange = k.CursorChange);
1540
+ this._cursorChange === Z.StartEditor && (this._cursorChange = Z.CursorChange);
1557
1541
  })));
1558
1542
  }
1559
1543
  // TODO: @JOCS, is it necessary to move these commands MoveSelectionOperation\MoveCursorOperation to shortcut? and use multi-commands?
1560
1544
  _moveInEditor(e, t) {
1561
- let n = L.LEFT;
1562
- e === M.ARROW_DOWN ? n = L.DOWN : e === M.ARROW_UP ? n = L.UP : e === M.ARROW_RIGHT && (n = L.RIGHT), t ? this._commandService.executeCommand(Yn.id, {
1545
+ let n = j.LEFT;
1546
+ e === T.ARROW_DOWN ? n = j.DOWN : e === T.ARROW_UP ? n = j.UP : e === T.ARROW_RIGHT && (n = j.RIGHT), t ? this._commandService.executeCommand(Xn.id, {
1563
1547
  direction: n
1564
- }) : this._commandService.executeCommand(Zn.id, {
1548
+ }) : this._commandService.executeCommand(Yn.id, {
1565
1549
  direction: n
1566
1550
  });
1567
1551
  }
1568
1552
  };
1569
- Fe = hr([
1553
+ Fe = Ki([
1570
1554
  A(1, Nn),
1571
- A(2, In),
1572
- A(3, fe),
1555
+ A(2, _n),
1556
+ A(3, Ce),
1573
1557
  A(4, y),
1574
- A(5, Z),
1558
+ A(5, Y),
1575
1559
  A(6, qe),
1576
1560
  A(7, Je),
1577
- A(8, Y(Kn)),
1578
- A(9, j),
1579
- A(10, Y(ee)),
1580
- A(11, Ye)
1561
+ A(8, X(kn)),
1562
+ A(9, B),
1563
+ A(10, X(ee)),
1564
+ A(11, Xe)
1581
1565
  ], Fe);
1582
- function Cr(i, e) {
1566
+ function Xi(i, e) {
1583
1567
  if (i == null)
1584
1568
  return;
1585
1569
  const t = e.getRenderById(i);
1586
1570
  if (t == null)
1587
1571
  return;
1588
- const { mainComponent: n, scene: r, engine: s, components: o } = t, a = n, c = o.get(kn.BACKGROUND);
1572
+ const { mainComponent: n, scene: r, engine: s, components: o } = t, a = n, c = o.get(Zn.BACKGROUND);
1589
1573
  return {
1590
1574
  document: a,
1591
1575
  docBackground: c,
@@ -1593,12 +1577,12 @@ function Cr(i, e) {
1593
1577
  engine: s
1594
1578
  };
1595
1579
  }
1596
- var fr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, _r = (i, e, t, n) => {
1597
- for (var r = n > 1 ? void 0 : n ? vr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1598
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
1599
- return n && r && fr(e, t, r), r;
1600
- }, Le = (i, e) => (t, n) => e(t, n, i);
1601
- let ze = class extends Ce {
1580
+ var Yi = Object.getOwnPropertyDescriptor, Zi = (i, e, t, n) => {
1581
+ for (var r = n > 1 ? void 0 : n ? Yi(e, t) : e, s = i.length - 1, o; s >= 0; s--)
1582
+ (o = i[s]) && (r = o(r) || r);
1583
+ return r;
1584
+ }, je = (i, e) => (t, n) => e(t, n, i);
1585
+ let ze = class extends pe {
1602
1586
  constructor(e, t, n, r) {
1603
1587
  super();
1604
1588
  /**
@@ -1607,7 +1591,7 @@ let ze = class extends Ce {
1607
1591
  // private _cursorChange: CursorChange = CursorChange.InitialState;
1608
1592
  /** If the corresponding unit is active and prepared for editing. */
1609
1593
  // private _isUnitEditing = false;
1610
- I(this, "setSlideTextEditor$", new Ut());
1594
+ I(this, "setSlideTextEditor$", new Dt());
1611
1595
  I(this, "_curRichText", null);
1612
1596
  I(this, "_d");
1613
1597
  this._renderContext = e, this._instanceSrv = t, this._commandService = n, this._editorBridgeService = r, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((s) => {
@@ -1615,7 +1599,7 @@ let ze = class extends Ce {
1615
1599
  }));
1616
1600
  }
1617
1601
  _init() {
1618
- const e = new Xe();
1602
+ const e = new Ge();
1619
1603
  return this._initEventListener(e), e;
1620
1604
  }
1621
1605
  _disposeCurrent() {
@@ -1642,8 +1626,8 @@ let ze = class extends Ce {
1642
1626
  this.setEditorVisible(!1);
1643
1627
  })), e.add(o.onDblclick$.subscribeEvent(() => {
1644
1628
  a.clearControls();
1645
- const g = a.getSelectedObjectMap().values().next().value;
1646
- g && (g.objectType !== ge.RICH_TEXT ? this.pickOtherObjects() : this.startEditing(o.sceneKey, g));
1629
+ const h = a.getSelectedObjectMap().values().next().value;
1630
+ h && (h.objectType !== ue.RICH_TEXT ? this.pickOtherObjects() : this.startEditing(o.sceneKey, h));
1647
1631
  })), e.add(this._instanceSrv.focused$.subscribe((c) => {
1648
1632
  this.endEditing();
1649
1633
  })));
@@ -1681,7 +1665,7 @@ let ze = class extends Ce {
1681
1665
  const a = r[0].ts;
1682
1666
  n.cl = a == null ? void 0 : a.cl;
1683
1667
  }
1684
- this._commandService.executeCommand(K.id, {
1668
+ this._commandService.executeCommand(k.id, {
1685
1669
  unitId: this._renderContext.unitId,
1686
1670
  oKey: e == null ? void 0 : e.oKey,
1687
1671
  props: {
@@ -1706,24 +1690,24 @@ let ze = class extends Ce {
1706
1690
  this._editorBridgeService.changeVisible({ visible: e, eventType: J.PointerDown, unitId: t });
1707
1691
  }
1708
1692
  };
1709
- ze = _r([
1710
- Le(1, y),
1711
- Le(2, j),
1712
- Le(3, qe)
1693
+ ze = Zi([
1694
+ je(1, y),
1695
+ je(2, B),
1696
+ je(3, qe)
1713
1697
  ], ze);
1714
- const Zt = {
1698
+ const Xt = {
1715
1699
  id: "slide.operation.activate-slide",
1716
1700
  type: V.OPERATION,
1717
1701
  handler: (i, e) => {
1718
- var g, l;
1719
- const t = e.unitId, n = i.get(N), s = i.get(y).getUnit(t), o = (g = s == null ? void 0 : s.getActivePage()) == null ? void 0 : g.id;
1702
+ var h, l;
1703
+ const t = e.unitId, n = i.get(N), s = i.get(y).getUnit(t), o = (h = s == null ? void 0 : s.getActivePage()) == null ? void 0 : h.id;
1720
1704
  if (!o) return !1;
1721
1705
  const a = n.getRenderUnitByPageId(o, t);
1722
1706
  if (!a) return !1;
1723
1707
  const c = (l = a.scene) == null ? void 0 : l.getTransformer();
1724
1708
  return c && c.clearControls(), n.activePage(e.id, t), !0;
1725
1709
  }
1726
- }, kt = {
1710
+ }, Yt = {
1727
1711
  id: "slide.operation.append-slide",
1728
1712
  type: V.OPERATION,
1729
1713
  handler: (i, e) => {
@@ -1734,8 +1718,8 @@ const Zt = {
1734
1718
  id: "slide.command.insert-float-image",
1735
1719
  type: V.COMMAND,
1736
1720
  handler: async (i, e) => {
1737
- var B;
1738
- const t = i.get(y), n = (B = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : B.getUnitId();
1721
+ var L;
1722
+ const t = i.get(y), n = (L = t.getCurrentUnitForType(E.UNIVER_SLIDE)) == null ? void 0 : L.getUnitId();
1739
1723
  if (!n) return !1;
1740
1724
  const s = await i.get(Dn).openFile({
1741
1725
  multiple: !0,
@@ -1744,56 +1728,56 @@ const Zt = {
1744
1728
  if (s.length !== 1) return !1;
1745
1729
  const a = await i.get(Qn).saveImage(s[0]);
1746
1730
  if (!a) return !1;
1747
- const { imageId: c, imageSourceType: g, source: l, base64Cache: d } = a, { width: p, height: v, image: f } = await ei(d || ""), C = t.getUnit(n);
1748
- if (!C) return !1;
1749
- const h = C.getActivePage(), _ = Object.values(h.pageElements), P = _ != null && _.length ? Math.max(..._.map((O) => O.zIndex)) : 20, b = {
1731
+ const { imageId: c, imageSourceType: h, source: l, base64Cache: d } = a, { width: v, height: f, image: C } = await ei(d || ""), p = t.getUnit(n);
1732
+ if (!p) return !1;
1733
+ const m = p.getActivePage(), _ = Object.values(m.pageElements), b = _ != null && _.length ? Math.max(..._.map((O) => O.zIndex)) : 20, P = {
1750
1734
  id: c,
1751
- zIndex: P + 1,
1735
+ zIndex: b + 1,
1752
1736
  left: 0,
1753
1737
  top: 0,
1754
- width: p,
1755
- height: v,
1738
+ width: v,
1739
+ height: f,
1756
1740
  title: "",
1757
1741
  description: "",
1758
- type: Ge.IMAGE,
1742
+ type: Ke.IMAGE,
1759
1743
  image: {
1760
1744
  imageProperties: {
1761
1745
  contentUrl: d,
1762
- imageSourceType: g,
1746
+ imageSourceType: h,
1763
1747
  source: l,
1764
1748
  base64Cache: d,
1765
- image: f
1749
+ image: C
1766
1750
  }
1767
1751
  }
1768
1752
  };
1769
- h.pageElements[c] = b, C.updatePage(h.id, h);
1770
- const w = i.get(N), D = w.createObjectToPage(b, h.id, n);
1771
- return D && w.setObjectActiveByPage(D, h.id, n), !0;
1753
+ m.pageElements[c] = P, p.updatePage(m.id, m);
1754
+ const w = i.get(N), D = w.createObjectToPage(P, m.id, n);
1755
+ return D && w.setObjectActiveByPage(D, m.id, n), !0;
1772
1756
  }
1773
1757
  }, et = {
1774
1758
  id: "slide.command.add-text",
1775
1759
  type: V.COMMAND,
1776
1760
  handler: async (i) => {
1777
1761
  var r;
1778
- const e = i.get(j), n = (r = i.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
1779
- return await e.executeCommand(qt.id, { unitId: n });
1762
+ const e = i.get(B), n = (r = i.get(y).getFocusedUnit()) == null ? void 0 : r.getUnitId();
1763
+ return await e.executeCommand(Zt.id, { unitId: n });
1780
1764
  }
1781
- }, qt = {
1765
+ }, Zt = {
1782
1766
  id: "slide.operation.add-text",
1783
1767
  type: V.OPERATION,
1784
1768
  handler: async (i, e) => {
1785
1769
  const t = e.unitId, n = St(6), r = 220, s = 40, o = 230, a = 142, c = (e == null ? void 0 : e.text) || "A New Text", l = i.get(y).getUnit(t);
1786
1770
  if (!l) return !1;
1787
- const d = l.getActivePage(), p = Object.values(d.pageElements), v = p != null && p.length ? Math.max(...p.map((_) => _.zIndex)) : 21, f = {
1771
+ const d = l.getActivePage(), v = Object.values(d.pageElements), f = v != null && v.length ? Math.max(...v.map((_) => _.zIndex)) : 21, C = {
1788
1772
  id: n,
1789
- zIndex: v + 1,
1773
+ zIndex: f + 1,
1790
1774
  left: o,
1791
1775
  top: a,
1792
1776
  width: r,
1793
1777
  height: s,
1794
1778
  title: "text",
1795
1779
  description: "",
1796
- type: Ge.TEXT,
1780
+ type: Ke.TEXT,
1797
1781
  richText: {
1798
1782
  text: c,
1799
1783
  fs: 30,
@@ -1803,72 +1787,70 @@ const Zt = {
1803
1787
  bl: 1
1804
1788
  }
1805
1789
  };
1806
- d.pageElements[n] = f, l.updatePage(d.id, d);
1807
- const C = i.get(N), h = C.createObjectToPage(f, d.id, t);
1808
- return h && C.setObjectActiveByPage(h, d.id, t), !0;
1790
+ d.pageElements[n] = C, l.updatePage(d.id, d);
1791
+ const p = i.get(N), m = p.createObjectToPage(C, d.id, t);
1792
+ return m && p.setObjectActiveByPage(m, d.id, t), !0;
1809
1793
  }
1810
- }, Jt = {
1794
+ }, qt = {
1811
1795
  id: "slide.operation.set-slide-page-thumb",
1812
1796
  type: V.OPERATION,
1813
1797
  handler: (i, e) => (i.get(N).createThumbs(e.unitId), !0)
1814
- }, Sr = "univer-image-popup-menu", Ir = "univer-image-popup-menu-item", Pr = "univer-image-popup-menu-item-icon", br = "univer-image-popup-menu-item-title", Er = "univer-image-popup-menu-item-hide", Rr = "univer-btn-container", Or = "univer-btn-container-expand", ue = {
1815
- imagePopupMenu: Sr,
1816
- imagePopupMenuItem: Ir,
1817
- imagePopupMenuItemIcon: Pr,
1818
- imagePopupMenuItemTitle: br,
1819
- imagePopupMenuItemHide: Er,
1820
- btnContainer: Rr,
1821
- btnContainerExpand: Or
1822
- }, xr = (i) => {
1823
- var f, C;
1824
- const e = (C = (f = i.popup) == null ? void 0 : f.extraProps) == null ? void 0 : C.menuItems;
1798
+ }, qi = "univer-image-popup-menu", Ji = "univer-image-popup-menu-item", Qi = "univer-image-popup-menu-item-title", er = "univer-btn-container", tr = "univer-btn-container-expand", ge = {
1799
+ imagePopupMenu: qi,
1800
+ imagePopupMenuItem: Ji,
1801
+ imagePopupMenuItemTitle: Qi,
1802
+ btnContainer: er,
1803
+ btnContainerExpand: tr
1804
+ }, nr = (i) => {
1805
+ var C, p;
1806
+ const e = (p = (C = i.popup) == null ? void 0 : C.extraProps) == null ? void 0 : p.menuItems;
1825
1807
  if (!e)
1826
1808
  return null;
1827
- const t = x(j), n = x(ee), [r, s] = X(!1), [o, a] = X(!1), c = () => {
1809
+ const t = x(B), n = x(ee), [r, s] = G(!1), [o, a] = G(!1), c = () => {
1828
1810
  a(!0);
1829
- }, g = () => {
1811
+ }, h = () => {
1830
1812
  a(!1);
1831
- }, l = (h) => {
1832
- s(h);
1833
- }, d = (h) => {
1834
- t.executeCommand(h.commandId, h.commandParams), s(!1);
1835
- }, p = r || o, v = e.filter((h) => !h.disable);
1836
- return /* @__PURE__ */ m(
1813
+ }, l = (m) => {
1814
+ s(m);
1815
+ }, d = (m) => {
1816
+ t.executeCommand(m.commandId, m.commandParams), s(!1);
1817
+ }, v = r || o, f = e.filter((m) => !m.disable);
1818
+ return /* @__PURE__ */ g(
1837
1819
  "div",
1838
1820
  {
1839
1821
  onMouseEnter: c,
1840
- onMouseLeave: g,
1841
- children: /* @__PURE__ */ m(
1842
- wt,
1822
+ onMouseLeave: h,
1823
+ children: /* @__PURE__ */ g(
1824
+ Mt,
1843
1825
  {
1844
1826
  placement: "bottomLeft",
1845
1827
  trigger: ["click"],
1846
- overlay: /* @__PURE__ */ m("ul", { className: ue.imagePopupMenu, children: v.map((h) => /* @__PURE__ */ m(
1828
+ overlay: /* @__PURE__ */ g("ul", { className: ge.imagePopupMenu, children: f.map((m) => /* @__PURE__ */ g(
1847
1829
  "li",
1848
1830
  {
1849
- onClick: () => d(h),
1850
- className: ue.imagePopupMenuItem,
1851
- children: /* @__PURE__ */ m("span", { className: ue.imagePopupMenuItemTitle, children: n.t(h.label) })
1831
+ onClick: () => d(m),
1832
+ className: ge.imagePopupMenuItem,
1833
+ children: /* @__PURE__ */ g("span", { className: ge.imagePopupMenuItemTitle, children: n.t(m.label) })
1852
1834
  },
1853
- h.index
1835
+ m.index
1854
1836
  )) }),
1855
1837
  visible: r,
1856
1838
  onVisibleChange: l,
1857
1839
  children: /* @__PURE__ */ R(
1858
1840
  "div",
1859
1841
  {
1860
- className: T(ue.btnContainer, {
1861
- [ue.btnContainerExpand]: r
1842
+ className: M(ge.btnContainer, {
1843
+ [ge.btnContainerExpand]: r
1862
1844
  }),
1863
1845
  children: [
1864
- /* @__PURE__ */ m(
1846
+ /* @__PURE__ */ g(
1865
1847
  Lt,
1866
1848
  {
1867
1849
  style: { color: "#35322B" },
1868
1850
  extend: { colorChannel1: "rgb(var(--green-700, #409f11))" }
1869
1851
  }
1870
1852
  ),
1871
- p && /* @__PURE__ */ m(Ze, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
1853
+ v && /* @__PURE__ */ g(Ye, { style: { color: "#CCCCCC", fontSize: "8px", marginLeft: "8px" } })
1872
1854
  ]
1873
1855
  }
1874
1856
  )
@@ -1876,114 +1858,112 @@ const Zt = {
1876
1858
  )
1877
1859
  }
1878
1860
  );
1879
- }, yr = "univer-slide-bar", Mr = "univer-slide-bar-content", Tr = "univer-slide-bar-content-header", wr = "univer-slide-bar-item", Nr = "univer-slide-bar-box", Dr = "univer-slide-bar-item-active", Ur = "univer-slide-add-button", ie = {
1880
- slideBar: yr,
1881
- slideBarContent: Mr,
1882
- slideBarContentHeader: Tr,
1883
- slideBarItem: wr,
1884
- slideBarBox: Nr,
1885
- slideBarItemActive: Dr,
1886
- slideAddButton: Ur
1861
+ }, ir = "univer-slide-bar", rr = "univer-slide-bar-content", sr = "univer-slide-bar-content-header", or = "univer-slide-bar-item", ar = "univer-slide-bar-box", cr = "univer-slide-bar-item-active", ie = {
1862
+ slideBar: ir,
1863
+ slideBarContent: rr,
1864
+ slideBarContentHeader: sr,
1865
+ slideBarItem: or,
1866
+ slideBarBox: ar,
1867
+ slideBarItemActive: cr
1887
1868
  };
1888
- function Vr() {
1889
- var f, C;
1890
- const i = x(y), e = x(j), t = x(Z), n = x(ee), r = Dt(null), s = i.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1869
+ function lr() {
1870
+ var C, p;
1871
+ const i = x(y), e = x(B), t = x(Y), n = x(ee), r = Nt(null), s = i.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1891
1872
  if (!o || !a)
1892
1873
  return null;
1893
- const c = a.map((h) => o[h]), [g, l] = X((C = (f = s == null ? void 0 : s.getActivePage()) == null ? void 0 : f.id) != null ? C : null), d = zn(() => c.map(() => Nt.createRef()), [c]);
1894
- he(() => {
1895
- const h = s == null ? void 0 : s.activePage$.subscribe((_) => {
1896
- var b;
1897
- const P = (b = _ == null ? void 0 : _.id) != null ? b : null;
1898
- P && l(P);
1874
+ const c = a.map((m) => o[m]), [h, l] = G((p = (C = s == null ? void 0 : s.getActivePage()) == null ? void 0 : C.id) != null ? p : null), d = zn(() => c.map(() => wt.createRef()), [c]);
1875
+ me(() => {
1876
+ const m = s == null ? void 0 : s.activePage$.subscribe((_) => {
1877
+ var P;
1878
+ const b = (P = _ == null ? void 0 : _.id) != null ? P : null;
1879
+ b && l(b);
1899
1880
  });
1900
1881
  return () => {
1901
- h == null || h.unsubscribe();
1882
+ m == null || m.unsubscribe();
1902
1883
  };
1903
- }, []), he(() => {
1904
- d.forEach((h, _) => {
1905
- var P;
1906
- if (h.current) {
1907
- const b = c[_];
1908
- (P = t.getRenderById(b.id)) == null || P.engine.setContainer(h.current);
1884
+ }, []), me(() => {
1885
+ d.forEach((m, _) => {
1886
+ var b;
1887
+ if (m.current) {
1888
+ const P = c[_];
1889
+ (b = t.getRenderById(P.id)) == null || b.engine.setContainer(m.current);
1909
1890
  }
1910
- }), d.length > 0 && e.syncExecuteCommand(Jt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1891
+ }), d.length > 0 && e.syncExecuteCommand(qt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1911
1892
  }, [d, c, t, e, s]);
1912
- const p = lt((h) => {
1913
- e.syncExecuteCommand(Zt.id, { id: h, unitId: s == null ? void 0 : s.getUnitId() });
1914
- }, [e, s]), v = lt(() => {
1915
- e.syncExecuteCommand(kt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1893
+ const v = lt((m) => {
1894
+ e.syncExecuteCommand(Xt.id, { id: m, unitId: s == null ? void 0 : s.getUnitId() });
1895
+ }, [e, s]), f = lt(() => {
1896
+ e.syncExecuteCommand(Yt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1916
1897
  }, [e, s]);
1917
- return /* @__PURE__ */ m("aside", { className: ie.slideBar, ref: r, children: /* @__PURE__ */ m(Fn, { children: /* @__PURE__ */ R("div", { className: ie.slideBarContent, children: [
1918
- /* @__PURE__ */ m("header", { className: ie.slideBarContentHeader, children: /* @__PURE__ */ m("a", { onClick: v, children: n.t("slide.append") }) }),
1919
- c.map((h, _) => /* @__PURE__ */ R(
1898
+ return /* @__PURE__ */ g("aside", { className: ie.slideBar, ref: r, children: /* @__PURE__ */ g(Fn, { children: /* @__PURE__ */ R("div", { className: ie.slideBarContent, children: [
1899
+ /* @__PURE__ */ g("header", { className: ie.slideBarContentHeader, children: /* @__PURE__ */ g("a", { onClick: f, children: n.t("slide.append") }) }),
1900
+ c.map((m, _) => /* @__PURE__ */ R(
1920
1901
  "div",
1921
1902
  {
1922
- className: T(ie.slideBarItem, {
1923
- [ie.slideBarItemActive]: h.id === g
1903
+ className: M(ie.slideBarItem, {
1904
+ [ie.slideBarItemActive]: m.id === h
1924
1905
  }),
1925
- onClick: () => p(h.id),
1906
+ onClick: () => v(m.id),
1926
1907
  children: [
1927
- /* @__PURE__ */ m("span", { children: _ + 1 }),
1928
- /* @__PURE__ */ m("div", { ref: d[_], className: ie.slideBarBox })
1908
+ /* @__PURE__ */ g("span", { children: _ + 1 }),
1909
+ /* @__PURE__ */ g("div", { ref: d[_], className: ie.slideBarBox })
1929
1910
  ]
1930
1911
  },
1931
- h.id
1912
+ m.id
1932
1913
  ))
1933
1914
  ] }) }) });
1934
1915
  }
1935
- const jr = "univer-slide-editor-container", Br = "univer-editor-input", Lr = {
1936
- slideEditorContainer: jr,
1937
- editorInput: Br
1938
- }, Ne = -1e3, vt = {
1916
+ const dr = "univer-slide-editor-container", gr = {
1917
+ slideEditorContainer: dr
1918
+ }, Ne = -1e3, ft = {
1939
1919
  width: 0,
1940
1920
  height: 0,
1941
1921
  top: Ne,
1942
1922
  left: Ne
1943
- }, Ar = () => {
1944
- const [i, e] = X({
1945
- ...vt
1946
- }), t = x(Je), n = x(Ye), r = x(fe), s = Un(
1923
+ }, ur = () => {
1924
+ const [i, e] = G({
1925
+ ...ft
1926
+ }), t = x(Je), n = x(Xe), r = x(Ce), s = Un(
1947
1927
  () => r.subscribeContextValue$(ot),
1948
1928
  !1,
1949
1929
  void 0,
1950
1930
  [r, ot]
1951
1931
  );
1952
- return `${Ot}`, Pn.UNSPECIFIED, he(() => {
1932
+ return bn.UNSPECIFIED, me(() => {
1953
1933
  t.state$.subscribe((o) => {
1954
1934
  if (o == null)
1955
1935
  return;
1956
1936
  const {
1957
1937
  startX: a = Ne,
1958
1938
  startY: c = Ne,
1959
- endX: g = 0,
1939
+ endX: h = 0,
1960
1940
  endY: l = 0,
1961
1941
  show: d = !1
1962
1942
  } = o;
1963
1943
  if (!d)
1964
1944
  e({
1965
- ...vt
1945
+ ...ft
1966
1946
  });
1967
1947
  else {
1968
1948
  e({
1969
- width: g - a - se + 2,
1949
+ width: h - a - se + 2,
1970
1950
  height: l - c - se + 2,
1971
1951
  left: a + se,
1972
1952
  top: c + se
1973
1953
  });
1974
- const p = n.getEditor(ae);
1975
- if (p == null)
1954
+ const v = n.getEditor(he);
1955
+ if (v == null)
1976
1956
  return;
1977
- const { left: v, top: f, width: C, height: h } = p.getBoundingClientRect();
1978
- t.setRect({ left: v, top: f, width: C, height: h });
1957
+ const { left: f, top: C, width: p, height: m } = v.getBoundingClientRect();
1958
+ t.setRect({ left: f, top: C, width: p, height: m });
1979
1959
  }
1980
1960
  });
1981
- }, []), he(() => {
1961
+ }, []), me(() => {
1982
1962
  s || t.setFocus(!0);
1983
- }, [s, i]), /* @__PURE__ */ m(
1963
+ }, [s, i]), /* @__PURE__ */ g(
1984
1964
  "div",
1985
1965
  {
1986
- className: Lr.slideEditorContainer,
1966
+ className: gr.slideEditorContainer,
1987
1967
  style: {
1988
1968
  left: i.left,
1989
1969
  top: i.top,
@@ -1992,93 +1972,93 @@ const jr = "univer-slide-editor-container", Br = "univer-editor-input", Lr = {
1992
1972
  }
1993
1973
  }
1994
1974
  );
1995
- }, Qt = "addition-and-subtraction-single", en = "slide.menu.image";
1996
- function $r(i) {
1975
+ }, Jt = "addition-and-subtraction-single", Qt = "slide.menu.image";
1976
+ function hr(i) {
1997
1977
  return {
1998
- id: en,
1999
- type: ve.SUBITEMS,
2000
- icon: Qt,
1978
+ id: Qt,
1979
+ type: _e.SUBITEMS,
1980
+ icon: Jt,
2001
1981
  tooltip: "slide.image.insert.title",
2002
- hidden$: _e(i, E.UNIVER_SLIDE)
1982
+ hidden$: fe(i, E.UNIVER_SLIDE)
2003
1983
  };
2004
1984
  }
2005
- function Hr(i) {
1985
+ function mr(i) {
2006
1986
  return {
2007
1987
  id: Qe.id,
2008
1988
  title: "slide.image.insert.float",
2009
- type: ve.BUTTON,
2010
- hidden$: _e(i, E.UNIVER_SLIDE)
1989
+ type: _e.BUTTON,
1990
+ hidden$: fe(i, E.UNIVER_SLIDE)
2011
1991
  };
2012
1992
  }
2013
- const tn = "graph-single", nn = "slide.menu.shape";
2014
- function Fr(i) {
1993
+ const en = "graph-single", tn = "slide.menu.shape";
1994
+ function vr(i) {
2015
1995
  return {
2016
- id: nn,
2017
- type: ve.SUBITEMS,
2018
- icon: tn,
1996
+ id: tn,
1997
+ type: _e.SUBITEMS,
1998
+ icon: en,
2019
1999
  tooltip: "slide.shape.insert.title",
2020
- hidden$: _e(i, E.UNIVER_SLIDE)
2000
+ hidden$: fe(i, E.UNIVER_SLIDE)
2021
2001
  // disabled$: getCurrentRangeDisable$(accessor, { workbookTypes: [WorkbookEditablePermission], worksheetTypes: [WorksheetEditPermission], rangeTypes: [RangeProtectionPermissionEditPoint] }),
2022
2002
  };
2023
2003
  }
2024
- function zr(i) {
2004
+ function pr(i) {
2025
2005
  return {
2026
- id: ke.id,
2006
+ id: Ze.id,
2027
2007
  title: "slide.shape.insert.rectangle",
2028
- type: ve.BUTTON,
2029
- hidden$: _e(i, E.UNIVER_SLIDE)
2008
+ type: _e.BUTTON,
2009
+ hidden$: fe(i, E.UNIVER_SLIDE)
2030
2010
  };
2031
2011
  }
2032
- const rn = "text-single";
2033
- function Wr(i) {
2012
+ const nn = "text-single";
2013
+ function Cr(i) {
2034
2014
  return {
2035
2015
  id: et.id,
2036
- type: ve.BUTTON,
2037
- icon: rn,
2016
+ type: _e.BUTTON,
2017
+ icon: nn,
2038
2018
  tooltip: "slide.text.insert.title",
2039
- hidden$: _e(i, E.UNIVER_SLIDE)
2019
+ hidden$: fe(i, E.UNIVER_SLIDE)
2040
2020
  };
2041
2021
  }
2042
- const Kr = {
2022
+ const fr = {
2043
2023
  [Vn.FORMAT]: {
2044
2024
  [et.id]: {
2045
2025
  order: 0,
2046
- menuItemFactory: Wr
2026
+ menuItemFactory: Cr
2047
2027
  },
2048
- [en]: {
2028
+ [Qt]: {
2049
2029
  order: 0,
2050
- menuItemFactory: $r,
2030
+ menuItemFactory: hr,
2051
2031
  [Qe.id]: {
2052
2032
  order: 0,
2053
- menuItemFactory: Hr
2033
+ menuItemFactory: mr
2054
2034
  }
2055
2035
  },
2056
- [nn]: {
2036
+ [tn]: {
2057
2037
  order: 0,
2058
- menuItemFactory: Fr,
2059
- [ke.id]: {
2038
+ menuItemFactory: vr,
2039
+ [Ze.id]: {
2060
2040
  order: 0,
2061
- menuItemFactory: zr
2041
+ menuItemFactory: pr
2062
2042
  }
2063
2043
  }
2064
2044
  }
2065
2045
  };
2066
2046
  function We(i) {
2067
- return i.getContextValue(xt) && i.getContextValue(xe);
2047
+ return i.getContextValue(Ot) && i.getContextValue(xe);
2068
2048
  }
2069
- function Gr(i) {
2070
- return i.getContextValue(bn) && i.getContextValue(xt);
2049
+ function _r(i) {
2050
+ return i.getContextValue(Pn) && i.getContextValue(Ot);
2071
2051
  }
2072
- const sn = [
2073
- M.ARROW_DOWN,
2074
- M.ARROW_UP,
2075
- M.ARROW_LEFT,
2076
- M.ARROW_RIGHT
2052
+ const rn = [
2053
+ T.ARROW_DOWN,
2054
+ T.ARROW_UP,
2055
+ T.ARROW_LEFT,
2056
+ T.ARROW_RIGHT
2077
2057
  ];
2078
- [M.ENTER, M.TAB, ...sn];
2079
- function Xr() {
2058
+ [T.ENTER, T.TAB, ...rn];
2059
+ function Sr() {
2080
2060
  const i = [];
2081
- for (const e of sn)
2061
+ for (const e of rn)
2082
2062
  i.push({
2083
2063
  id: we.id,
2084
2064
  binding: e,
@@ -2091,7 +2071,7 @@ function Xr() {
2091
2071
  }
2092
2072
  }), i.push({
2093
2073
  id: we.id,
2094
- binding: e | jn.SHIFT,
2074
+ binding: e | Bn.SHIFT,
2095
2075
  preconditions: (t) => We(t),
2096
2076
  staticParameters: {
2097
2077
  visible: !1,
@@ -2102,74 +2082,74 @@ function Xr() {
2102
2082
  });
2103
2083
  return i;
2104
2084
  }
2105
- const Yr = {
2085
+ const Ir = {
2106
2086
  id: qn.id,
2107
- preconditions: (i) => We(i) || Gr(i),
2108
- binding: M.BACKSPACE
2087
+ preconditions: (i) => We(i) || _r(i),
2088
+ binding: T.BACKSPACE
2109
2089
  };
2110
- var Zr = Object.defineProperty, kr = Object.getOwnPropertyDescriptor, qr = (i, e, t, n) => {
2111
- for (var r = n > 1 ? void 0 : n ? kr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2112
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
2113
- return n && r && Zr(e, t, r), r;
2090
+ var br = Object.getOwnPropertyDescriptor, Pr = (i, e, t, n) => {
2091
+ for (var r = n > 1 ? void 0 : n ? br(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2092
+ (o = i[s]) && (r = o(r) || r);
2093
+ return r;
2114
2094
  }, re = (i, e) => (t, n) => e(t, n, i);
2115
2095
  let De = class extends Ve {
2116
2096
  constructor(i, e, t, n, r, s) {
2117
2097
  super(), this._injector = i, this._menuManagerService = e, this._componentManager = t, this._uiPartsService = n, this._commandService = r, this._shortcutService = s, this._initCommands(), this._initCustomComponents(), this._initUIComponents(), this._initMenus(), this._initShortcuts();
2118
2098
  }
2119
2099
  _initMenus() {
2120
- this._menuManagerService.mergeMenu(Kr);
2100
+ this._menuManagerService.mergeMenu(fr);
2121
2101
  }
2122
2102
  _initCustomComponents() {
2123
2103
  const i = this._componentManager;
2124
- this.disposeWithMe(i.register(Qt, Bt)), this.disposeWithMe(i.register(rn, Wt)), this.disposeWithMe(i.register(tn, $t)), this.disposeWithMe(i.register(Yt, xr)), this.disposeWithMe(i.register(Oe, er));
2104
+ this.disposeWithMe(i.register(Jt, Bt)), this.disposeWithMe(i.register(nn, zt)), this.disposeWithMe(i.register(en, At)), this.disposeWithMe(i.register(Gt, nr)), this.disposeWithMe(i.register(Oe, Bi));
2125
2105
  }
2126
2106
  _initCommands() {
2127
2107
  [
2128
- kt,
2129
- Zt,
2130
- Jt,
2131
- Qe,
2108
+ Yt,
2109
+ Xt,
2132
2110
  qt,
2111
+ Qe,
2112
+ Zt,
2133
2113
  et,
2134
- Xt,
2135
- ke,
2114
+ Kt,
2115
+ Ze,
2136
2116
  $e,
2137
- Vt,
2138
- K,
2117
+ Ut,
2118
+ k,
2139
2119
  // commands for editor
2140
2120
  we
2141
2121
  ].forEach((i) => this.disposeWithMe(this._commandService.registerCommand(i)));
2142
2122
  }
2143
2123
  _initUIComponents() {
2144
2124
  this.disposeWithMe(
2145
- this._uiPartsService.registerComponent(at.LEFT_SIDEBAR, () => ct(Vr, this._injector))
2125
+ this._uiPartsService.registerComponent(at.LEFT_SIDEBAR, () => ct(lr, this._injector))
2146
2126
  ), this.disposeWithMe(
2147
- this._uiPartsService.registerComponent(at.CONTENT, () => ct(Ar, this._injector))
2127
+ this._uiPartsService.registerComponent(at.CONTENT, () => ct(ur, this._injector))
2148
2128
  );
2149
2129
  }
2150
2130
  _initShortcuts() {
2151
2131
  [
2152
- Yr,
2153
- ...Xr()
2132
+ Ir,
2133
+ ...Sr()
2154
2134
  ].forEach((i) => {
2155
2135
  this.disposeWithMe(this._shortcutService.registerShortcut(i));
2156
2136
  });
2157
2137
  }
2158
2138
  };
2159
- De = qr([
2160
- re(0, Y(Ke)),
2139
+ De = Pr([
2140
+ re(0, X(ke)),
2161
2141
  re(1, Ln),
2162
- re(2, Y(Bn)),
2142
+ re(2, X(jn)),
2163
2143
  re(3, An),
2164
- re(4, j),
2144
+ re(4, B),
2165
2145
  re(5, $n)
2166
2146
  ], De);
2167
- var Jr = Object.defineProperty, Qr = Object.getOwnPropertyDescriptor, es = (i, e, t, n) => {
2168
- for (var r = n > 1 ? void 0 : n ? Qr(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2169
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
2170
- return n && r && Jr(e, t, r), r;
2147
+ var Er = Object.getOwnPropertyDescriptor, Rr = (i, e, t, n) => {
2148
+ for (var r = n > 1 ? void 0 : n ? Er(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2149
+ (o = i[s]) && (r = o(r) || r);
2150
+ return r;
2171
2151
  }, Ae = (i, e) => (t, n) => e(t, n, i);
2172
- let Ue = class extends Ce {
2152
+ let Ue = class extends pe {
2173
2153
  // private _skeletonChangeMutations = new Set<string>();
2174
2154
  constructor(i, e, t) {
2175
2155
  super(), this._contextService = i, this._instanceSrv = e, this._renderManagerService = t, Promise.resolve().then(() => this._init());
@@ -2194,41 +2174,41 @@ let Ue = class extends Ce {
2194
2174
  _initContextListener() {
2195
2175
  }
2196
2176
  };
2197
- Ue = es([
2198
- Ae(0, fe),
2177
+ Ue = Rr([
2178
+ Ae(0, Ce),
2199
2179
  Ae(1, y),
2200
- Ae(2, Z)
2180
+ Ae(2, Y)
2201
2181
  ], Ue);
2202
- var ts = Object.defineProperty, ns = Object.getOwnPropertyDescriptor, is = (i, e, t, n) => {
2203
- for (var r = n > 1 ? void 0 : n ? ns(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2204
- (o = i[s]) && (r = (n ? o(e, t, r) : o(r)) || r);
2205
- return n && r && ts(e, t, r), r;
2182
+ var Or = Object.getOwnPropertyDescriptor, xr = (i, e, t, n) => {
2183
+ for (var r = n > 1 ? void 0 : n ? Or(e, t) : e, s = i.length - 1, o; s >= 0; s--)
2184
+ (o = i[s]) && (r = o(r) || r);
2185
+ return r;
2206
2186
  }, Ee = (i, e) => (t, n) => e(t, n, i);
2207
- const rs = "SLIDE_UI";
2187
+ const yr = "SLIDE_UI";
2208
2188
  var Re;
2209
2189
  let _t = (Re = class extends En {
2210
- constructor(i = ht, e, t, n, r) {
2190
+ constructor(i = mt, e, t, n, r) {
2211
2191
  super(), this._config = i, this._injector = e, this._renderManagerService = t, this._univerInstanceService = n, this._configService = r;
2212
2192
  const { menu: s, ...o } = Rn(
2213
2193
  {},
2214
- ht,
2194
+ mt,
2215
2195
  this._config
2216
2196
  );
2217
- s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(ci, o);
2197
+ s && this._configService.setConfig("menu", s, { merge: !0 }), this._configService.setConfig(oi, o);
2218
2198
  }
2219
2199
  onStarting() {
2220
2200
  nt([
2221
2201
  [Ue],
2222
2202
  [qe, { useClass: He }],
2223
2203
  // used by SlideUIController --> EditorContainer
2224
- [Je, { useClass: mr }],
2225
- [Me]
2204
+ [Je, { useClass: Wi }],
2205
+ [Te]
2226
2206
  ], this._config.override).forEach((i) => this._injector.add(i));
2227
2207
  }
2228
2208
  onReady() {
2229
2209
  [
2230
2210
  // SlideRenderService will be init in ready stage, and then calling RenderManagerService@createRender --> init all deps in this rendering register block.
2231
- [pe]
2211
+ [ve]
2232
2212
  ].forEach((i) => {
2233
2213
  this.disposeWithMe(this._renderManagerService.registerRenderModule(E.UNIVER_SLIDE, i));
2234
2214
  }), nt([
@@ -2241,8 +2221,8 @@ let _t = (Re = class extends En {
2241
2221
  // SlidesUIController controller would add a new RenderUnit (__INTERNAL_EDITOR__DOCS_NORMAL)
2242
2222
  [De],
2243
2223
  // editor service was create in renderManagerService
2244
- [pe],
2245
- [Te]
2224
+ [ve],
2225
+ [Me]
2246
2226
  ], this._config.override).forEach((i) => {
2247
2227
  this._injector.add(i);
2248
2228
  }), this._injector.get(N), this._injector.get(Ue);
@@ -2258,7 +2238,7 @@ let _t = (Re = class extends En {
2258
2238
  }), this._markSlideAsFocused(), this._injector.get(De);
2259
2239
  }
2260
2240
  onSteady() {
2261
- this._injector.get(Te);
2241
+ this._injector.get(Me);
2262
2242
  }
2263
2243
  _markSlideAsFocused() {
2264
2244
  const i = this._univerInstanceService;
@@ -2268,33 +2248,33 @@ let _t = (Re = class extends En {
2268
2248
  } catch {
2269
2249
  }
2270
2250
  }
2271
- }, I(Re, "pluginName", rs), I(Re, "type", E.UNIVER_SLIDE), Re);
2272
- _t = is([
2273
- Ee(1, Y(Ke)),
2274
- Ee(2, Z),
2251
+ }, I(Re, "pluginName", yr), I(Re, "type", E.UNIVER_SLIDE), Re);
2252
+ _t = xr([
2253
+ Ee(1, X(ke)),
2254
+ Ee(2, Y),
2275
2255
  Ee(3, y),
2276
2256
  Ee(4, On)
2277
2257
  ], _t);
2278
2258
  export {
2279
- Zt as ActivateSlidePageOperation,
2280
- kt as AppendSlideOperation,
2259
+ Xt as ActivateSlidePageOperation,
2260
+ Yt as AppendSlideOperation,
2281
2261
  N as CanvasView,
2282
- Vt as DeleteSlideElementOperation,
2262
+ Ut as DeleteSlideElementOperation,
2283
2263
  qe as ISlideEditorBridgeService,
2284
2264
  Qe as InsertSlideFloatImageCommand,
2285
- ke as InsertSlideShapeRectangleCommand,
2286
- Xt as InsertSlideShapeRectangleOperation,
2287
- nn as SHAPE_MENU_ID,
2288
- en as SLIDES_IMAGE_MENU_ID,
2289
- ae as SLIDE_EDITOR_ID,
2290
- Jt as SetSlidePageThumbOperation,
2265
+ Ze as InsertSlideShapeRectangleCommand,
2266
+ Kt as InsertSlideShapeRectangleOperation,
2267
+ tn as SHAPE_MENU_ID,
2268
+ Qt as SLIDES_IMAGE_MENU_ID,
2269
+ he as SLIDE_EDITOR_ID,
2270
+ qt as SetSlidePageThumbOperation,
2291
2271
  et as SlideAddTextCommand,
2292
- qt as SlideAddTextOperation,
2293
- Me as SlideCanvasPopMangerService,
2294
- Ar as SlideEditorContainer,
2295
- Vr as SlideSideBar,
2272
+ Zt as SlideAddTextOperation,
2273
+ Te as SlideCanvasPopMangerService,
2274
+ ur as SlideEditorContainer,
2275
+ lr as SlideSideBar,
2296
2276
  De as SlidesUIController,
2297
- Kr as SlidesUIMenuSchema,
2277
+ fr as SlidesUIMenuSchema,
2298
2278
  _t as UniverSlidesUIPlugin,
2299
- K as UpdateSlideElementOperation
2279
+ k as UpdateSlideElementOperation
2300
2280
  };