@univerjs/slides-ui 0.8.0-beta.0 → 0.8.0-nightly.202505261607

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