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

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,12 +1,12 @@
1
1
  var si = Object.defineProperty;
2
2
  var oi = (n, e, t) => e in n ? si(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var S = (n, e, t) => oi(n, typeof e != "symbol" ? e + "" : e, t);
4
- import { Inject as K, Injector as We, IUniverInstanceService as y, RxDisposable as he, UniverInstanceType as E, debounce as ai, getColorStyle as ci, CommandType as D, Tools as li, LocaleService as J, ICommandService as U, generateRandomId as _t, BasicShapes as di, PageElementType as ze, Disposable as Me, DisposableCollection as ke, IContextService as ve, toDisposable as Ct, FOCUSING_COMMON_DRAWINGS as ui, createInternalEditorID as hi, createIdentifier as St, EDITOR_ACTIVATED as Ee, FOCUSING_EDITOR_STANDALONE as It, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as bt, DocumentDataModel as vi, HorizontalAlign as Et, VerticalAlign as Oe, IUndoRedoService as gi, WrapStrategy as Qe, FOCUSING_EDITOR_BUT_HIDDEN as fi, DEFAULT_EMPTY_DOCUMENT_VALUE as mi, Direction as j, DocumentFlavor as pi, FOCUSING_UNIVER_EDITOR as Ot, FORMULA_EDITOR_ACTIVATED as _i, Plugin as Ci, merge as Si, mergeOverrideWithDependencies as et, IConfigService as Ii } from "@univerjs/core";
5
- import { IRenderManagerService as X, Viewport as tt, ScrollBar as xt, getCurrentTypeOfRenderer as je, Slide as bi, Rect as Rt, Scene as Ei, ObjectType as ce, pxToNum as Oi, DeviceInputEventType as Z, convertTextRotation as it, FIX_ONE_PIXEL_BLUR_OFFSET as ie, fixLineWidthByScale as nt } from "@univerjs/engine-render";
6
- import { ObjectProvider as xi, SLIDE_KEY as ne } from "@univerjs/slides";
7
- import { useDependency as R, ISidebarService as yt, ICanvasPopupService as Ri, ILayoutService as yi, KeyCode as P, ILocalFileService as Pi, useObservable as wi, DISABLE_AUTO_FOCUS_KEY as rt, getMenuHiddenObservable as ge, MenuItemType as fe, RibbonStartGroup as Ti, MetaKeys as Mi, IMenuManagerService as Ni, ComponentManager as Di, IUIPartsService as Ui, IShortcutService as Vi, BuiltInUIPart as st, connectInjector as ot } from "@univerjs/ui";
4
+ import { Inject as K, Injector as We, IUniverInstanceService as y, RxDisposable as he, UniverInstanceType as E, debounce as ai, getColorStyle as ci, CommandType as D, Tools as li, LocaleService as J, ICommandService as U, generateRandomId as pt, BasicShapes as di, PageElementType as ze, Disposable as Me, DisposableCollection as ke, IContextService as ve, toDisposable as Ct, FOCUSING_COMMON_DRAWINGS as ui, createInternalEditorID as hi, createIdentifier as St, EDITOR_ACTIVATED as Ee, FOCUSING_EDITOR_STANDALONE as It, FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE as bt, DocumentDataModel as vi, HorizontalAlign as Et, VerticalAlign as Oe, IUndoRedoService as gi, WrapStrategy as Qe, FOCUSING_EDITOR_BUT_HIDDEN as fi, DEFAULT_EMPTY_DOCUMENT_VALUE as mi, Direction as j, DocumentFlavor as _i, FOCUSING_UNIVER_EDITOR as Ot, FORMULA_EDITOR_ACTIVATED as pi, Plugin as Ci, merge as Si, mergeOverrideWithDependencies as et, IConfigService as Ii } from "@univerjs/core";
5
+ import { IRenderManagerService as X, Viewport as tt, ScrollBar as Rt, getCurrentTypeOfRenderer as je, Slide as bi, Rect as xt, Scene as Ei, ObjectType as ce, pxToNum as Oi, DeviceInputEventType as Z, convertTextRotation as it, FIX_ONE_PIXEL_BLUR_OFFSET as ie, fixLineWidthByScale as nt } from "@univerjs/engine-render";
6
+ import { ObjectProvider as Ri, SLIDE_KEY as ne } from "@univerjs/slides";
7
+ import { useDependency as x, ISidebarService as yt, ICanvasPopupService as xi, ILayoutService as yi, KeyCode as P, ILocalFileService as Pi, useObservable as wi, DISABLE_AUTO_FOCUS_KEY as rt, getMenuHiddenObservable as ge, MenuItemType as fe, RibbonStartGroup as Ti, MetaKeys as Mi, IMenuManagerService as Ni, ComponentManager as Di, IUIPartsService as Ui, IShortcutService as Vi, BuiltInUIPart as st, connectInjector as ot } from "@univerjs/ui";
8
8
  import { jsxs as O, jsx as u } from "react/jsx-runtime";
9
- import { Button as _e, Dropdown as Pt, ColorPicker as ji, InputNumber as ae, clsx as Le, scrollbarClassName as Li } from "@univerjs/design";
9
+ import { Button as pe, Dropdown as Pt, ColorPicker as ji, InputNumber as ae, clsx as Le, scrollbarClassName as Li } from "@univerjs/design";
10
10
  import Ai, { forwardRef as A, useRef as wt, createElement as B, useState as k, useEffect as de, useMemo as Bi, createRef as $i, useCallback as at } from "react";
11
11
  import { BehaviorSubject as q, Subject as Tt, filter as Hi, takeUntil as ct } from "rxjs";
12
12
  import { DocSelectionManagerService as Fi, DocSkeletonManagerService as lt, RichTextEditingMutation as Wi } from "@univerjs/docs";
@@ -24,7 +24,7 @@ let ue = class extends he {
24
24
  S(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(xi), this._addNewRender();
27
+ this._renderContext = e, this._injector = t, this._univerInstanceService = i, this._renderManagerService = r, this._objectProvider = this._injector.createInstance(Ri), this._addNewRender();
28
28
  }
29
29
  _addNewRender() {
30
30
  const { unitId: e, engine: t, scene: i } = this._renderContext, r = this._getCurrUnitModel();
@@ -56,7 +56,7 @@ let ue = class extends he {
56
56
  o.onMouseWheel(l, h);
57
57
  }), i.onFileLoaded$.subscribeEvent(() => {
58
58
  this._refreshThumb();
59
- }), xt.attachTo(o);
59
+ }), Rt.attachTo(o);
60
60
  const a = this._createSlide(i);
61
61
  this._renderContext.mainComponent = a, this._createSlidePages(r, a), this.createThumbs(), t.runRenderLoop(() => {
62
62
  i.render();
@@ -89,7 +89,7 @@ let ue = class extends he {
89
89
  return c.enableSelectedClipElement(), e.addObject(c), c;
90
90
  }
91
91
  _addBackgroundRect(e, t) {
92
- const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new Rt("canvas", {
92
+ const r = this._univerInstanceService.getCurrentUnitForType(E.UNIVER_SLIDE).getPageSize(), { width: s = 0, height: o = 0 } = r, a = new xt("canvas", {
93
93
  left: 0,
94
94
  top: 0,
95
95
  width: s,
@@ -195,9 +195,9 @@ let ue = class extends he {
195
195
  explicitViewportWidthSet: !1,
196
196
  explicitViewportHeightSet: !1
197
197
  }).closeClip();
198
- const { pageElements: d, pageBackgroundFill: g } = t, p = this._objectProvider.convertToRenderObjects(d, r);
199
- if (!p || !o) return;
200
- this._addBackgroundRect(h, g), h.addObjects(p), h.initTransformer(), p.forEach((f) => {
198
+ const { pageElements: d, pageBackgroundFill: g } = t, _ = this._objectProvider.convertToRenderObjects(d, r);
199
+ if (!_ || !o) return;
200
+ this._addBackgroundRect(h, g), h.addObjects(_), h.initTransformer(), _.forEach((f) => {
201
201
  h.attachTransformerTo(f);
202
202
  });
203
203
  const m = h.getTransformer();
@@ -415,19 +415,19 @@ var mn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em"
415
415
  }));
416
416
  });
417
417
  Bt.displayName = "PaintBucket";
418
- var pn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, $t = A(function(n, e) {
418
+ var _n = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.66695 1.33496C2.29968 1.33496 2.00195 1.63269 2.00195 1.99996V3.64439C2.00195 4.01166 2.29968 4.30939 2.66695 4.30939C3.03422 4.30939 3.33195 4.01166 3.33195 3.64439V2.66496H7.33521V13.335H5.3337C4.96643 13.335 4.6687 13.6327 4.6687 14C4.6687 14.3672 4.96643 14.665 5.3337 14.665H10.667C11.0343 14.665 11.332 14.3672 11.332 14C11.332 13.6327 11.0343 13.335 10.667 13.335H8.66521V2.66496H12.6686V3.64439C12.6686 4.01166 12.9664 4.30939 13.3336 4.30939C13.7009 4.30939 13.9986 4.01166 13.9986 3.64439V1.99996C13.9986 1.63269 13.7009 1.33496 13.3336 1.33496H2.66695Z" } }] }, $t = A(function(n, e) {
419
419
  return B($, Object.assign({}, n, {
420
420
  id: "text-single",
421
421
  ref: e,
422
- icon: pn
422
+ icon: _n
423
423
  }));
424
424
  });
425
425
  $t.displayName = "TextSingle";
426
- 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" } }] }, Ht = A(function(n, e) {
426
+ var pn = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 17 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.82994 1.40913C7.88746 1.35161 7.95376 1.30821 8.02453 1.27893C8.09527 1.24959 8.17285 1.2334 8.2542 1.2334C8.33555 1.2334 8.41313 1.24959 8.48387 1.27893C8.55464 1.30821 8.62094 1.35161 8.67846 1.40913L10.6785 3.40913C10.9128 3.64345 10.9128 4.02335 10.6785 4.25766C10.4441 4.49198 10.0642 4.49198 9.82994 4.25766L8.8542 3.28193V5.8334C8.8542 6.16477 8.58557 6.4334 8.2542 6.4334C7.92283 6.4334 7.6542 6.16477 7.6542 5.8334V3.28193L6.67846 4.25766C6.44415 4.49198 6.06425 4.49198 5.82994 4.25766C5.59562 4.02335 5.59562 3.64345 5.82994 3.40913L7.82994 1.40913Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M1.50439 9C1.50439 8.11634 2.22074 7.4 3.10439 7.4H13.4044C14.288 7.4 15.0044 8.11634 15.0044 9 15.0044 9.88366 14.2881 10.6 13.4044 10.6H3.1044C2.22074 10.6 1.50439 9.88366 1.50439 9zM3.10439 8.6C2.88348 8.6 2.70439 8.77909 2.70439 9 2.70439 9.22091 2.88348 9.4 3.1044 9.4H13.4044C13.6253 9.4 13.8044 9.22091 13.8044 9 13.8044 8.77909 13.6253 8.6 13.4044 8.6H3.10439zM1.6543 13.1665C1.6543 12.2828 2.37064 11.5665 3.2543 11.5665H13.5543C14.438 11.5665 15.1543 12.2828 15.1543 13.1665 15.1543 14.0502 14.438 14.7665 13.5543 14.7665H3.2543C2.37064 14.7665 1.6543 14.0502 1.6543 13.1665zM3.2543 12.7665C3.03338 12.7665 2.8543 12.9456 2.8543 13.1665 2.8543 13.3874 3.03338 13.5665 3.2543 13.5665H13.5543C13.7752 13.5665 13.9543 13.3874 13.9543 13.1665 13.9543 12.9456 13.7752 12.7665 13.5543 12.7665H3.2543z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Ht = A(function(n, e) {
427
427
  return B($, Object.assign({}, n, {
428
428
  id: "topmost-single",
429
429
  ref: e,
430
- icon: _n
430
+ icon: pn
431
431
  }));
432
432
  });
433
433
  Ht.displayName = "TopmostSingle";
@@ -442,15 +442,15 @@ const W = {
442
442
  }
443
443
  };
444
444
  function Cn(n) {
445
- const { pageId: e, unitId: t } = n, i = R(J), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
445
+ const { pageId: e, unitId: t } = n, i = x(J), r = x(T), s = x(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
446
446
  if (!a) return null;
447
447
  const c = a.getTransformer();
448
448
  if (!c) return null;
449
449
  const l = c.getSelectedObjectMap().values().next().value;
450
450
  if (!l) return null;
451
451
  const d = (g) => {
452
- const p = a.getAllObjects(), [m, f] = p.reduce(([_, I], b) => {
453
- const w = b.zIndex, M = w < _ ? w : _, V = w > I ? w : I;
452
+ const _ = a.getAllObjects(), [m, f] = _.reduce(([p, I], b) => {
453
+ const w = b.zIndex, M = w < p ? w : p, V = w > I ? w : I;
454
454
  return [M, V];
455
455
  }, [0, 0]);
456
456
  let v = l.zIndex;
@@ -467,7 +467,7 @@ function Cn(n) {
467
467
  return /* @__PURE__ */ O("div", { className: "univer-relative univer-w-full", children: [
468
468
  /* @__PURE__ */ u("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start", children: /* @__PURE__ */ u("div", { className: "univer-w-full univer-text-left univer-text-gray-600", children: /* @__PURE__ */ u("div", { children: i.t("image-panel.arrange.title") }) }) }),
469
469
  /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start", children: [
470
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(_e, { onClick: () => {
470
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(pe, { onClick: () => {
471
471
  d(
472
472
  0
473
473
  /* forward */
@@ -476,7 +476,7 @@ function Cn(n) {
476
476
  /* @__PURE__ */ u(At, {}),
477
477
  i.t("image-panel.arrange.forward")
478
478
  ] }) }) }),
479
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(_e, { onClick: () => {
479
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(pe, { onClick: () => {
480
480
  d(
481
481
  1
482
482
  /* backward */
@@ -487,7 +487,7 @@ function Cn(n) {
487
487
  ] }) }) })
488
488
  ] }),
489
489
  /* @__PURE__ */ O("div", { className: "univer-relative univer-mt-2.5 univer-flex univer-h-full univer-items-start", children: [
490
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(_e, { onClick: () => {
490
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(pe, { onClick: () => {
491
491
  d(
492
492
  2
493
493
  /* front */
@@ -496,7 +496,7 @@ function Cn(n) {
496
496
  /* @__PURE__ */ u(Ht, {}),
497
497
  i.t("image-panel.arrange.front")
498
498
  ] }) }) }),
499
- /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(_e, { onClick: () => {
499
+ /* @__PURE__ */ u("div", { className: "univer-w-1/2", children: /* @__PURE__ */ u(pe, { onClick: () => {
500
500
  d(
501
501
  3
502
502
  /* back */
@@ -510,14 +510,14 @@ function Cn(n) {
510
510
  }
511
511
  function Sn(n) {
512
512
  var m, f;
513
- const { pageId: e, unitId: t } = n, i = R(J), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
513
+ const { pageId: e, unitId: t } = n, i = x(J), r = x(T), s = x(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
514
514
  if (!a) return null;
515
515
  const c = a.getTransformer();
516
516
  if (!c) return null;
517
517
  const l = c.getSelectedObjectMap().values().next().value;
518
518
  if (!l) return null;
519
519
  const [d, g] = Ai.useState((f = (m = l.fill) == null ? void 0 : m.toString()) != null ? f : "");
520
- function p(v) {
520
+ function _(v) {
521
521
  l == null || l.setProps({
522
522
  fill: v
523
523
  }), s.executeCommand(W.id, {
@@ -550,12 +550,12 @@ function Sn(n) {
550
550
  ji,
551
551
  {
552
552
  value: "#fff",
553
- onChange: p
553
+ onChange: _
554
554
  }
555
555
  ) }),
556
556
  children: /* @__PURE__ */ O("a", { className: "univer-flex univer-cursor-pointer univer-items-center univer-gap-1", children: [
557
557
  /* @__PURE__ */ u(Bt, { className: "univer-fill-primary-600" }),
558
- /* @__PURE__ */ u(Xe, { className: "univer-text-[10px] univer-text-gray-400" })
558
+ /* @__PURE__ */ u(Xe, {})
559
559
  ] })
560
560
  }
561
561
  ) }) })
@@ -564,7 +564,7 @@ function Sn(n) {
564
564
  );
565
565
  }
566
566
  function In(n) {
567
- const { pageId: e, unitId: t } = n, i = R(J), r = R(T), s = R(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
567
+ const { pageId: e, unitId: t } = n, i = x(J), r = x(T), s = x(U), o = r.getRenderUnitByPageId(e, t), a = o == null ? void 0 : o.scene;
568
568
  if (!a) return null;
569
569
  const c = a.getTransformer();
570
570
  if (!c) return null;
@@ -573,10 +573,10 @@ function In(n) {
573
573
  const {
574
574
  width: d = 0,
575
575
  height: g = 0,
576
- left: p = 0,
576
+ left: _ = 0,
577
577
  top: m = 0,
578
578
  angle: f = 0
579
- } = l, [v, _] = k(d), [I, b] = k(g), [w, M] = k(p), [V, x] = k(m), [z, re] = k(f), H = (C) => {
579
+ } = l, [v, p] = k(d), [I, b] = k(g), [w, M] = k(_), [V, R] = k(m), [z, re] = k(f), H = (C) => {
580
580
  const { objects: se } = C, oe = se.values().next().value, {
581
581
  width: ei = 0,
582
582
  height: ti = 0,
@@ -584,7 +584,7 @@ function In(n) {
584
584
  top: ni = 0,
585
585
  angle: ri = 0
586
586
  } = oe;
587
- _(ei), b(ti), M(ii), x(ni), re(ri);
587
+ p(ei), b(ti), M(ii), R(ni), re(ri);
588
588
  };
589
589
  de(() => {
590
590
  const C = c.changeStart$.subscribe((oe) => {
@@ -603,7 +603,7 @@ function In(n) {
603
603
  props: {
604
604
  width: C
605
605
  }
606
- }), l == null || l.resize(C, l.height), _(C), c == null || c.refreshControls());
606
+ }), l == null || l.resize(C, l.height), p(C), c == null || c.refreshControls());
607
607
  }
608
608
  function Q(C) {
609
609
  !C || !l || (s.executeCommand(W.id, {
@@ -630,9 +630,9 @@ function In(n) {
630
630
  props: {
631
631
  right: C
632
632
  }
633
- }), l == null || l.translate(l.left, C), x(C), c == null || c.refreshControls());
633
+ }), l == null || l.translate(l.left, C), R(C), c == null || c.refreshControls());
634
634
  }
635
- function pe(C) {
635
+ function _e(C) {
636
636
  !C || !l || (s.executeCommand(W.id, {
637
637
  pageId: e,
638
638
  oKey: l.oKey,
@@ -721,7 +721,7 @@ function In(n) {
721
721
  className: "univer-w-11/12",
722
722
  precision: 1,
723
723
  value: z,
724
- onChange: pe
724
+ onChange: _e
725
725
  }
726
726
  ) }) })
727
727
  ] }) })
@@ -733,7 +733,7 @@ function In(n) {
733
733
  const be = "COMPONENT_SLIDE_SIDEBAR";
734
734
  function bn() {
735
735
  var h, l, d;
736
- 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;
736
+ const n = x(y), e = x(T), t = n.getCurrentUnitForType(E.UNIVER_SLIDE), i = (h = t == null ? void 0 : t.getActivePage()) == null ? void 0 : h.id;
737
737
  if (!i) return null;
738
738
  const s = (l = e.getRenderUnitByPageId(i, i).scene) == null ? void 0 : l.getTransformer();
739
739
  if (!s) return null;
@@ -759,7 +759,7 @@ const Ge = {
759
759
  id: "slide.operation.insert-float-shape",
760
760
  type: D.OPERATION,
761
761
  handler: async (n, e) => {
762
- const t = _t(6), i = n.get(y), r = e.unitId, s = i.getUnit(r);
762
+ const t = pt(6), i = n.get(y), r = e.unitId, s = i.getUnit(r);
763
763
  if (!s) return !1;
764
764
  const o = s.getActivePage(), a = Object.values(o.pageElements), c = a != null && a.length ? Math.max(...a.map((g) => g.zIndex)) : 20, h = {
765
765
  id: t,
@@ -805,7 +805,7 @@ var En = Object.getOwnPropertyDescriptor, On = (n, e, t, i) => {
805
805
  (o = n[s]) && (r = o(r) || r);
806
806
  return r;
807
807
  }, Ce = (n, e) => (t, i) => e(t, i, n);
808
- function xn(n, e) {
808
+ function Rn(n, e) {
809
809
  const t = vt(n.left, n.top, e), i = vt(n.right, n.bottom, e);
810
810
  return {
811
811
  left: t.x,
@@ -827,24 +827,24 @@ function vt(n, e, t) {
827
827
  y: h
828
828
  };
829
829
  }
830
- let xe = class extends Me {
830
+ let Re = class extends Me {
831
831
  constructor(n, e, t, i) {
832
832
  super(), this._globalPopupManagerService = n, this._renderManagerService = e, this._univerInstanceService = t, this._commandService = i;
833
833
  }
834
834
  _createObjectPositionObserver(n, e) {
835
835
  const i = (() => {
836
836
  var H, F, Q, ee;
837
- const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = n, g = (o.width - ((F = (H = e.mainComponent) == null ? void 0 : H.width) != null ? F : 0)) / 2, p = (o.height - ((ee = (Q = e.mainComponent) == null ? void 0 : Q.height) != null ? ee : 0)) / 2, m = {
837
+ const { scene: o, engine: a } = e, { left: c, top: h, width: l, height: d } = n, g = (o.width - ((F = (H = e.mainComponent) == null ? void 0 : H.width) != null ? F : 0)) / 2, _ = (o.height - ((ee = (Q = e.mainComponent) == null ? void 0 : Q.height) != null ? ee : 0)) / 2, m = {
838
838
  left: c,
839
839
  right: c + l,
840
840
  top: h,
841
841
  bottom: h + d
842
- }, f = a.getCanvasElement(), v = f.getBoundingClientRect(), _ = Oi(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), w = xn(m, o), { top: M, left: V, width: x } = v, z = x / _;
842
+ }, f = a.getCanvasElement(), v = f.getBoundingClientRect(), p = Oi(f.style.width), { scaleX: I, scaleY: b } = o.getAncestorScale(), w = Rn(m, o), { top: M, left: V, width: R } = v, z = R / p;
843
843
  return {
844
844
  left: w.left * z * I + V + g,
845
845
  right: w.right * z * I + V + g,
846
- top: w.top * z * b + M + p,
847
- bottom: w.bottom * z * b + M + p
846
+ top: w.top * z * b + M + _,
847
+ bottom: w.bottom * z * b + M + _
848
848
  };
849
849
  })(), r = new q(i), s = new ke();
850
850
  return {
@@ -875,18 +875,18 @@ let xe = class extends Me {
875
875
  };
876
876
  }
877
877
  };
878
- xe = On([
879
- Ce(0, K(Ri)),
878
+ Re = On([
879
+ Ce(0, K(xi)),
880
880
  Ce(1, X),
881
881
  Ce(2, y),
882
882
  Ce(3, U)
883
- ], xe);
884
- var Rn = Object.getOwnPropertyDescriptor, yn = (n, e, t, i) => {
885
- for (var r = i > 1 ? void 0 : i ? Rn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
883
+ ], Re);
884
+ var xn = Object.getOwnPropertyDescriptor, yn = (n, e, t, i) => {
885
+ for (var r = i > 1 ? void 0 : i ? xn(e, t) : e, s = n.length - 1, o; s >= 0; s--)
886
886
  (o = n[s]) && (r = o(r) || r);
887
887
  return r;
888
888
  }, Y = (n, e) => (t, i) => e(t, i, n);
889
- let Re = class extends he {
889
+ let xe = class extends he {
890
890
  constructor(e, t, i, r, s, o, a) {
891
891
  super();
892
892
  S(this, "_initImagePopupMenu", /* @__PURE__ */ new Set());
@@ -986,15 +986,15 @@ let Re = class extends he {
986
986
  }];
987
987
  }
988
988
  };
989
- Re = yn([
990
- Y(0, K(xe)),
989
+ xe = yn([
990
+ Y(0, K(Re)),
991
991
  Y(1, X),
992
992
  Y(2, y),
993
993
  Y(3, ve),
994
994
  Y(4, K(T)),
995
995
  Y(5, yt),
996
996
  Y(6, U)
997
- ], Re);
997
+ ], xe);
998
998
  const ye = {
999
999
  id: "slide.operation.edit-arrow",
1000
1000
  type: D.OPERATION,
@@ -1069,11 +1069,11 @@ let Be = class extends Me {
1069
1069
  }, a = t.richTextObj.width, c = t.richTextObj.height, h = t.richTextObj.left, l = t.richTextObj.top, d = {
1070
1070
  left: 0,
1071
1071
  top: 0
1072
- }, g = this._renderManagerService.getRenderById(i), p = g == null ? void 0 : g.scene, m = p == null ? void 0 : p.getViewport(ne.VIEW), f = p == null ? void 0 : p.getObject(ne.COMPONENT), v = {
1072
+ }, g = this._renderManagerService.getRenderById(i), _ = g == null ? void 0 : g.scene, m = _ == null ? void 0 : _.getViewport(ne.VIEW), f = _ == null ? void 0 : _.getObject(ne.COMPONENT), v = {
1073
1073
  x: (f == null ? void 0 : f.left) || 0,
1074
1074
  y: (f == null ? void 0 : f.top) || 0
1075
- }, _ = (m == null ? void 0 : m.viewportScrollX) || 0, I = (m == null ? void 0 : m.viewportScrollY) || 0;
1076
- return d.left = v.x - _, d.top = v.y - I, {
1075
+ }, p = (m == null ? void 0 : m.viewportScrollX) || 0, I = (m == null ? void 0 : m.viewportScrollY) || 0;
1076
+ return d.left = v.x - p, d.top = v.y - I, {
1077
1077
  position: {
1078
1078
  startX: h,
1079
1079
  startY: l,
@@ -1201,8 +1201,8 @@ let $e = class extends Me {
1201
1201
  /** If the corresponding unit is active and prepared for editing. */
1202
1202
  S(this, "_isUnitEditing", !1);
1203
1203
  S(this, "_d");
1204
- this._renderContext = e, this._layoutService = t, this._undoRedoService = i, this._contextService = r, this._instanceSrv = s, this._renderManagerService = o, this._editorBridgeService = a, this._cellEditorManagerService = c, this._textSelectionManagerService = h, this._commandService = l, this._localService = d, this._editorService = g, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((p) => {
1205
- p && p.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1204
+ this._renderContext = e, this._layoutService = t, this._undoRedoService = i, this._contextService = r, this._instanceSrv = s, this._renderManagerService = o, this._editorBridgeService = a, this._cellEditorManagerService = c, this._textSelectionManagerService = h, this._commandService = l, this._localService = d, this._editorService = g, this.disposeWithMe(this._instanceSrv.getCurrentTypeOfUnit$(E.UNIVER_SLIDE).subscribe((_) => {
1205
+ _ && _.getUnitId() === this._renderContext.unitId ? this._d = this._init() : (this._disposeCurrent(), this._isUnitEditing && (this._handleEditorInvisible({
1206
1206
  visible: !1,
1207
1207
  eventType: Z.Keyboard,
1208
1208
  keycode: P.ESC,
@@ -1281,7 +1281,7 @@ let $e = class extends Me {
1281
1281
  const { startX: a, startY: c, endX: h, endY: l } = e, d = r.documentModel;
1282
1282
  if (d == null)
1283
1283
  return;
1284
- const { actualWidth: g, actualHeight: p } = this._predictingSize(
1284
+ const { actualWidth: g, actualHeight: _ } = this._predictingSize(
1285
1285
  e,
1286
1286
  t,
1287
1287
  i,
@@ -1289,31 +1289,31 @@ let $e = class extends Me {
1289
1289
  s,
1290
1290
  o
1291
1291
  ), { verticalAlign: m, paddingData: f, fill: v } = r;
1292
- let _ = h - a, I = l - c;
1293
- if (_ < g && (_ = g), I < p)
1294
- I = p, d.updateDocumentDataMargin(f);
1292
+ let p = h - a, I = l - c;
1293
+ if (p < g && (p = g), I < _)
1294
+ I = _, d.updateDocumentDataMargin(f);
1295
1295
  else {
1296
1296
  let b = 0;
1297
- m === Oe.MIDDLE ? b = (I - p) / 2 / o : m === Oe.TOP ? b = f.t || 0 : b = (I - p) / o - (f.b || 0), b = b < (f.t || 0) ? f.t || 0 : b, d.updateDocumentDataMargin({
1297
+ m === Oe.MIDDLE ? b = (I - _) / 2 / o : m === Oe.TOP ? b = f.t || 0 : b = (I - _) / o - (f.b || 0), b = b < (f.t || 0) ? f.t || 0 : b, d.updateDocumentDataMargin({
1298
1298
  t: b
1299
1299
  });
1300
1300
  }
1301
- i.calculate(), this._editAreaProcessing(_, I, e, t, v, s, o);
1301
+ i.calculate(), this._editAreaProcessing(p, I, e, t, v, s, o);
1302
1302
  }
1303
1303
  /**
1304
1304
  * Mainly used to pre-calculate the width of the editor,
1305
1305
  * to determine whether it needs to be automatically widened.
1306
1306
  */
1307
1307
  _predictingSize(e, t, i, r, s = 1, o = 1) {
1308
- const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: g } = it(h), p = document.body.clientWidth;
1308
+ const { startX: a, endX: c } = e, { textRotation: h, wrapStrategy: l } = r, d = r.documentModel, { vertexAngle: g } = it(h), _ = document.body.clientWidth;
1309
1309
  if (l === Qe.WRAP && g === 0) {
1310
- const { actualWidth: v, actualHeight: _ } = i.getActualSize();
1310
+ const { actualWidth: v, actualHeight: p } = i.getActualSize();
1311
1311
  return {
1312
1312
  actualWidth: v * s,
1313
- actualHeight: _ * o
1313
+ actualHeight: p * o
1314
1314
  };
1315
1315
  }
1316
- d == null || d.updateDocumentDataPageSize((p - a - t.left) / s), i.calculate();
1316
+ d == null || d.updateDocumentDataPageSize((_ - a - t.left) / s), i.calculate();
1317
1317
  const m = i.getActualSize();
1318
1318
  let f = c - a;
1319
1319
  return f < m.actualWidth * s + ft * s && (f = m.actualWidth * s + ft * s), d == null || d.updateDocumentDataPageSize(f / s), d == null || d.updateDocumentRenderConfig({
@@ -1336,30 +1336,30 @@ let $e = class extends Me {
1336
1336
  function h(se) {
1337
1337
  return Number.parseInt(se.replace("px", ""));
1338
1338
  }
1339
- const d = this._renderContext.engine.getCanvasElement(), g = d.getBoundingClientRect(), p = h(d.style.width), { top: m, left: f, width: v } = g, _ = v / p;
1339
+ const d = this._renderContext.engine.getCanvasElement(), g = d.getBoundingClientRect(), _ = h(d.style.width), { top: m, left: f, width: v } = g, p = v / _;
1340
1340
  let { startX: I, startY: b } = i;
1341
1341
  I += r.left, b += r.top;
1342
- const { document: w, scene: M, engine: V } = c, x = M.getViewport(ut.VIEW_MAIN), z = document.body.clientHeight - b - r.top - Dn * 2, re = document.body.clientWidth - I - r.left;
1343
- let H = t, F = x == null ? void 0 : x.getScrollBar();
1344
- H > z ? (H = z, F == null ? x && new xt(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, re), I -= ie, b -= ie, this._addBackground(M, e / o, t / a, s);
1342
+ const { document: w, scene: M, engine: V } = c, R = M.getViewport(ut.VIEW_MAIN), z = document.body.clientHeight - b - r.top - Dn * 2, re = document.body.clientWidth - I - r.left;
1343
+ let H = t, F = R == null ? void 0 : R.getScrollBar();
1344
+ H > z ? (H = z, F == null ? R && new Rt(R, { enableHorizontal: !1, barSize: 8 }) : R == null || R.resetCanvasSizeAndUpdateScroll()) : (F = null, (C = R == null ? void 0 : R.getScrollBar()) == null || C.dispose()), e += (F == null ? void 0 : F.barSize) || 0, e = Math.min(e, re), I -= ie, b -= ie, this._addBackground(M, e / o, t / a, s);
1345
1345
  const { scaleX: Q, scaleY: ee } = M.getPrecisionScale();
1346
1346
  M.transformByState({
1347
- width: e * _ / o,
1348
- height: t * _ / a,
1349
- scaleX: o * _,
1350
- scaleY: a * _
1347
+ width: e * p / o,
1348
+ height: t * p / a,
1349
+ scaleX: o * p,
1350
+ scaleY: a * p
1351
1351
  }), w.resize(e / o, t / a), setTimeout(() => {
1352
1352
  V.resizeBySize(
1353
1353
  nt(e, Q),
1354
1354
  nt(H, ee)
1355
1355
  );
1356
1356
  }, 0);
1357
- const me = this._layoutService.getContentElement().getBoundingClientRect(), pe = d.getBoundingClientRect();
1358
- I = I * _ + (pe.left - me.left), b = b * _ + (pe.top - me.top), this._cellEditorManagerService.setState({
1357
+ const me = this._layoutService.getContentElement().getBoundingClientRect(), _e = d.getBoundingClientRect();
1358
+ I = I * p + (_e.left - me.left), b = b * p + (_e.top - me.top), this._cellEditorManagerService.setState({
1359
1359
  startX: I,
1360
1360
  startY: b,
1361
- endX: e * _ + I,
1362
- endY: H * _ + b,
1361
+ endX: e * p + I,
1362
+ endY: H * p + b,
1363
1363
  show: !0
1364
1364
  });
1365
1365
  }
@@ -1370,7 +1370,7 @@ let $e = class extends Me {
1370
1370
  const s = "_backgroundRectHelperColor_", o = e.getObject(s);
1371
1371
  o == null && r == null || (o == null ? e.addObjects(
1372
1372
  [
1373
- new Rt(s, {
1373
+ new xt(s, {
1374
1374
  width: t,
1375
1375
  height: i,
1376
1376
  fill: r,
@@ -1394,7 +1394,7 @@ let $e = class extends Me {
1394
1394
  // first part: startEditing --> _updateEditor
1395
1395
  // 2nd part: startEditing --> changeVisible --> slide-editor-bridge.render-controller.ts@changeVisible --> _editorBridgeService.changeVisible
1396
1396
  _handleEditorVisible(e) {
1397
- var v, _;
1397
+ var v, p;
1398
1398
  const { eventType: t } = e;
1399
1399
  this._cursorChange = [Z.PointerDown, Z.Dblclick].includes(t) ? G.CursorChange : G.StartEditor;
1400
1400
  const i = this._editorBridgeService.getEditRectState();
@@ -1413,11 +1413,11 @@ let $e = class extends Me {
1413
1413
  return;
1414
1414
  const { scene: g } = d;
1415
1415
  this._contextService.setContextValue(Ee, !0);
1416
- const { documentModel: p } = s, m = this._getEditorSkeleton(h);
1417
- if (!m || !p)
1416
+ const { documentModel: _ } = s, m = this._getEditorSkeleton(h);
1417
+ if (!m || !_)
1418
1418
  return;
1419
1419
  this._fitTextSize(r, o, m, s, a, c);
1420
- const f = p.getBody().dataStream.length - 2 || 0;
1420
+ const f = _.getBody().dataStream.length - 2 || 0;
1421
1421
  (v = g.getViewport(ut.VIEW_MAIN)) == null || v.scrollToViewportPos({
1422
1422
  viewportScrollX: Number.POSITIVE_INFINITY
1423
1423
  }), this._textSelectionManagerService.replaceTextRanges([
@@ -1425,7 +1425,7 @@ let $e = class extends Me {
1425
1425
  startOffset: f,
1426
1426
  endOffset: f
1427
1427
  }
1428
- ]), (_ = this._renderManagerService.getRenderById(l)) == null || _.scene.resetCursor();
1428
+ ]), (p = this._renderManagerService.getRenderById(l)) == null || p.scene.resetCursor();
1429
1429
  }
1430
1430
  _resetBodyStyle(e, t = !1) {
1431
1431
  e.dataStream = mi, e.textRuns != null && (e.textRuns.length === 1 && !t ? (e.textRuns[0].st = 0, e.textRuns[0].ed = 1) : e.textRuns = void 0), e.paragraphs != null && (e.paragraphs.length === 1 ? e.paragraphs[0].startIndex = 0 : e.paragraphs = [
@@ -1700,20 +1700,20 @@ const zt = {
1700
1700
  if (!i) return !1;
1701
1701
  const s = await n.get(Pi).openFile({
1702
1702
  multiple: !0,
1703
- accept: Yi.map((x) => `.${x.replace("image/", "")}`).join(",")
1703
+ accept: Yi.map((R) => `.${R.replace("image/", "")}`).join(",")
1704
1704
  });
1705
1705
  if (s.length !== 1) return !1;
1706
1706
  const a = await n.get(Zi).saveImage(s[0]);
1707
1707
  if (!a) return !1;
1708
- const { imageId: c, imageSourceType: h, source: l, base64Cache: d } = a, { width: g, height: p, image: m } = await qi(d || ""), f = t.getUnit(i);
1708
+ const { imageId: c, imageSourceType: h, source: l, base64Cache: d } = a, { width: g, height: _, image: m } = await qi(d || ""), f = t.getUnit(i);
1709
1709
  if (!f) return !1;
1710
- const v = f.getActivePage(), _ = Object.values(v.pageElements), I = _ != null && _.length ? Math.max(..._.map((x) => x.zIndex)) : 20, b = {
1710
+ const v = f.getActivePage(), p = Object.values(v.pageElements), I = p != null && p.length ? Math.max(...p.map((R) => R.zIndex)) : 20, b = {
1711
1711
  id: c,
1712
1712
  zIndex: I + 1,
1713
1713
  left: 0,
1714
1714
  top: 0,
1715
1715
  width: g,
1716
- height: p,
1716
+ height: _,
1717
1717
  title: "",
1718
1718
  description: "",
1719
1719
  type: ze.IMAGE,
@@ -1743,11 +1743,11 @@ const zt = {
1743
1743
  id: "slide.operation.add-text",
1744
1744
  type: D.OPERATION,
1745
1745
  handler: async (n, e) => {
1746
- const t = e.unitId, i = _t(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);
1746
+ const t = e.unitId, i = pt(6), r = 220, s = 40, o = 230, a = 142, c = (e == null ? void 0 : e.text) || "A New Text", l = n.get(y).getUnit(t);
1747
1747
  if (!l) return !1;
1748
- const d = l.getActivePage(), g = Object.values(d.pageElements), p = g != null && g.length ? Math.max(...g.map((_) => _.zIndex)) : 21, m = {
1748
+ const d = l.getActivePage(), g = Object.values(d.pageElements), _ = g != null && g.length ? Math.max(...g.map((p) => p.zIndex)) : 21, m = {
1749
1749
  id: i,
1750
- zIndex: p + 1,
1750
+ zIndex: _ + 1,
1751
1751
  left: o,
1752
1752
  top: a,
1753
1753
  width: r,
@@ -1778,7 +1778,7 @@ function Ln(n) {
1778
1778
  const e = (f = (m = n.popup) == null ? void 0 : m.extraProps) == null ? void 0 : f.menuItems;
1779
1779
  if (!e)
1780
1780
  return null;
1781
- const t = R(U), i = R(J), [r, s] = k(!1), [o, a] = k(!1), c = () => {
1781
+ const t = x(U), i = x(J), [r, s] = k(!1), [o, a] = k(!1), c = () => {
1782
1782
  a(!0);
1783
1783
  }, h = () => {
1784
1784
  a(!1);
@@ -1786,7 +1786,7 @@ function Ln(n) {
1786
1786
  s(v);
1787
1787
  }, d = (v) => {
1788
1788
  t.executeCommand(v.commandId, v.commandParams), s(!1);
1789
- }, g = r || o, p = e.filter((v) => !v.disable);
1789
+ }, g = r || o, _ = e.filter((v) => !v.disable);
1790
1790
  return /* @__PURE__ */ u(
1791
1791
  "div",
1792
1792
  {
@@ -1804,7 +1804,7 @@ function Ln(n) {
1804
1804
  univer-rounded-lg univer-border univer-border-solid univer-border-gray-200 univer-bg-white
1805
1805
  univer-p-1.5 univer-text-sm univer-shadow-lg
1806
1806
  `,
1807
- children: p.map((v) => /* @__PURE__ */ u(
1807
+ children: _.map((v) => /* @__PURE__ */ u(
1808
1808
  "li",
1809
1809
  {
1810
1810
  className: `
@@ -1832,7 +1832,7 @@ function Ln(n) {
1832
1832
  }),
1833
1833
  children: [
1834
1834
  /* @__PURE__ */ u(Ut, { className: "univer-fill-primary-600 univer-text-gray-900" }),
1835
- g && /* @__PURE__ */ u(Xe, { className: "univer-text-[10px] univer-text-gray-400" })
1835
+ g && /* @__PURE__ */ u(Xe, {})
1836
1836
  ]
1837
1837
  }
1838
1838
  )
@@ -1843,31 +1843,31 @@ function Ln(n) {
1843
1843
  }
1844
1844
  function An() {
1845
1845
  var m, f;
1846
- const n = R(y), e = R(U), t = R(X), i = R(J), r = wt(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1846
+ const n = x(y), e = x(U), t = x(X), i = x(J), r = wt(null), s = n.getCurrentUnitForType(E.UNIVER_SLIDE), o = s == null ? void 0 : s.getPages(), a = s == null ? void 0 : s.getPageOrder();
1847
1847
  if (!o || !a)
1848
1848
  return null;
1849
1849
  const c = a.map((v) => o[v]), [h, l] = k((f = (m = s == null ? void 0 : s.getActivePage()) == null ? void 0 : m.id) != null ? f : null), d = Bi(() => c.map(() => $i()), [c]);
1850
1850
  de(() => {
1851
- const v = s == null ? void 0 : s.activePage$.subscribe((_) => {
1851
+ const v = s == null ? void 0 : s.activePage$.subscribe((p) => {
1852
1852
  var b;
1853
- const I = (b = _ == null ? void 0 : _.id) != null ? b : null;
1853
+ const I = (b = p == null ? void 0 : p.id) != null ? b : null;
1854
1854
  I && l(I);
1855
1855
  });
1856
1856
  return () => {
1857
1857
  v == null || v.unsubscribe();
1858
1858
  };
1859
1859
  }, []), de(() => {
1860
- d.forEach((v, _) => {
1860
+ d.forEach((v, p) => {
1861
1861
  var I;
1862
1862
  if (v.current) {
1863
- const b = c[_];
1863
+ const b = c[p];
1864
1864
  (I = t.getRenderById(b.id)) == null || I.engine.setContainer(v.current);
1865
1865
  }
1866
1866
  }), d.length > 0 && e.syncExecuteCommand(Xt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1867
1867
  }, [d, c, t, e, s]);
1868
1868
  const g = at((v) => {
1869
1869
  e.syncExecuteCommand(zt.id, { id: v, unitId: s == null ? void 0 : s.getUnitId() });
1870
- }, [e, s]), p = at(() => {
1870
+ }, [e, s]), _ = at(() => {
1871
1871
  e.syncExecuteCommand(kt.id, { unitId: s == null ? void 0 : s.getUnitId() });
1872
1872
  }, [e, s]);
1873
1873
  return /* @__PURE__ */ u(
@@ -1886,11 +1886,11 @@ function An() {
1886
1886
  univer-rounded-md univer-border univer-border-solid univer-border-gray-200 univer-bg-white
1887
1887
  univer-text-center univer-text-sm univer-leading-8 univer-transition-colors
1888
1888
  `,
1889
- onClick: p,
1889
+ onClick: _,
1890
1890
  children: i.t("slide.append")
1891
1891
  }
1892
1892
  ) }),
1893
- c.map((v, _) => /* @__PURE__ */ O(
1893
+ c.map((v, p) => /* @__PURE__ */ O(
1894
1894
  "div",
1895
1895
  {
1896
1896
  className: Le("univer-my-4 univer-flex univer-gap-2", {
@@ -1898,11 +1898,11 @@ function An() {
1898
1898
  }),
1899
1899
  onClick: () => g(v.id),
1900
1900
  children: [
1901
- /* @__PURE__ */ u("span", { children: _ + 1 }),
1901
+ /* @__PURE__ */ u("span", { children: p + 1 }),
1902
1902
  /* @__PURE__ */ u(
1903
1903
  "div",
1904
1904
  {
1905
- ref: d[_],
1905
+ ref: d[p],
1906
1906
  className: `
1907
1907
  univer-relative univer-box-border univer-h-32 univer-w-52 univer-border
1908
1908
  univer-border-solid univer-border-gray-200 univer-bg-white
@@ -1926,13 +1926,13 @@ const Pe = -1e3, mt = {
1926
1926
  }, Bn = () => {
1927
1927
  const [n, e] = k({
1928
1928
  ...mt
1929
- }), t = R(Ze), i = R(Ke), r = R(ve), s = wi(
1929
+ }), t = x(Ze), i = x(Ke), r = x(ve), s = wi(
1930
1930
  () => r.subscribeContextValue$(rt),
1931
1931
  !1,
1932
1932
  void 0,
1933
1933
  [r, rt]
1934
1934
  );
1935
- return pi.UNSPECIFIED, de(() => {
1935
+ return _i.UNSPECIFIED, de(() => {
1936
1936
  t.state$.subscribe((o) => {
1937
1937
  if (o == null)
1938
1938
  return;
@@ -1957,8 +1957,8 @@ const Pe = -1e3, mt = {
1957
1957
  const g = i.getEditor(le);
1958
1958
  if (g == null)
1959
1959
  return;
1960
- const { left: p, top: m, width: f, height: v } = g.getBoundingClientRect();
1961
- t.setRect({ left: p, top: m, width: f, height: v });
1960
+ const { left: _, top: m, width: f, height: v } = g.getBoundingClientRect();
1961
+ t.setRect({ left: _, top: m, width: f, height: v });
1962
1962
  }
1963
1963
  });
1964
1964
  }, []), de(() => {
@@ -2053,7 +2053,7 @@ function Fe(n) {
2053
2053
  return n.getContextValue(Ot) && n.getContextValue(Ee);
2054
2054
  }
2055
2055
  function Kn(n) {
2056
- return n.getContextValue(_i) && n.getContextValue(Ot);
2056
+ return n.getContextValue(pi) && n.getContextValue(Ot);
2057
2057
  }
2058
2058
  const Qt = [
2059
2059
  P.ARROW_DOWN,
@@ -2192,7 +2192,7 @@ var Qn = Object.getOwnPropertyDescriptor, er = (n, e, t, i) => {
2192
2192
  }, Se = (n, e) => (t, i) => e(t, i, n);
2193
2193
  const tr = "SLIDE_UI";
2194
2194
  var Ie;
2195
- let pt = (Ie = class extends Ci {
2195
+ let _t = (Ie = class extends Ci {
2196
2196
  constructor(n = ht, e, t, i, r) {
2197
2197
  super(), this._config = n, this._injector = e, this._renderManagerService = t, this._univerInstanceService = i, this._configService = r;
2198
2198
  const { menu: s, ...o } = Si(
@@ -2208,7 +2208,7 @@ let pt = (Ie = class extends Ci {
2208
2208
  [Ye, { useClass: Be }],
2209
2209
  // used by SlideUIController --> EditorContainer
2210
2210
  [Ze, { useClass: Tn }],
2211
- [xe]
2211
+ [Re]
2212
2212
  ], this._config.override).forEach((n) => this._injector.add(n));
2213
2213
  }
2214
2214
  onReady() {
@@ -2228,7 +2228,7 @@ let pt = (Ie = class extends Ci {
2228
2228
  [we],
2229
2229
  // editor service was create in renderManagerService
2230
2230
  [ue],
2231
- [Re]
2231
+ [xe]
2232
2232
  ], this._config.override).forEach((n) => {
2233
2233
  this._injector.add(n);
2234
2234
  }), this._injector.get(T), this._injector.get(Te);
@@ -2244,7 +2244,7 @@ let pt = (Ie = class extends Ci {
2244
2244
  }), this._markSlideAsFocused(), this._injector.get(we);
2245
2245
  }
2246
2246
  onSteady() {
2247
- this._injector.get(Re);
2247
+ this._injector.get(xe);
2248
2248
  }
2249
2249
  _markSlideAsFocused() {
2250
2250
  const n = this._univerInstanceService;
@@ -2255,12 +2255,12 @@ let pt = (Ie = class extends Ci {
2255
2255
  }
2256
2256
  }
2257
2257
  }, S(Ie, "pluginName", tr), S(Ie, "type", E.UNIVER_SLIDE), Ie);
2258
- pt = er([
2258
+ _t = er([
2259
2259
  Se(1, K(We)),
2260
2260
  Se(2, X),
2261
2261
  Se(3, y),
2262
2262
  Se(4, Ii)
2263
- ], pt);
2263
+ ], _t);
2264
2264
  export {
2265
2265
  zt as ActivateSlidePageOperation,
2266
2266
  kt as AppendSlideOperation,
@@ -2276,11 +2276,11 @@ export {
2276
2276
  Xt as SetSlidePageThumbOperation,
2277
2277
  Je as SlideAddTextCommand,
2278
2278
  Kt as SlideAddTextOperation,
2279
- xe as SlideCanvasPopMangerService,
2279
+ Re as SlideCanvasPopMangerService,
2280
2280
  Bn as SlideEditorContainer,
2281
2281
  An as SlideSideBar,
2282
2282
  we as SlidesUIController,
2283
2283
  kn as SlidesUIMenuSchema,
2284
- pt as UniverSlidesUIPlugin,
2284
+ _t as UniverSlidesUIPlugin,
2285
2285
  W as UpdateSlideElementOperation
2286
2286
  };