@univerjs/ui 0.4.1 → 0.4.2-nightly.202410301606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/lib/dialog.service-CR57dT_8.mjs +36 -0
  2. package/lib/es/facade.js +52 -0
  3. package/lib/es/index.js +274 -406
  4. package/lib/index.css +1 -1
  5. package/lib/locale/en-US.js +64 -0
  6. package/lib/locale/fa-IR.js +64 -0
  7. package/lib/locale/ru-RU.js +64 -0
  8. package/lib/locale/vi-VN.js +64 -0
  9. package/lib/locale/zh-CN.js +64 -0
  10. package/lib/locale/zh-TW.js +64 -0
  11. package/lib/types/common/menu-hidden-observable.d.ts +1 -1
  12. package/lib/types/components/progress-bar/ProgressBar.d.ts +7 -1
  13. package/lib/types/facade/f-hooks.d.ts +38 -0
  14. package/lib/types/facade/f-univer.d.ts +24 -0
  15. package/lib/types/facade/index.d.ts +0 -0
  16. package/lib/types/index.d.ts +1 -1
  17. package/lib/types/services/parts/parts.service.d.ts +1 -1
  18. package/lib/types/services/shortcut/shortcut.service.d.ts +2 -2
  19. package/lib/types/services/sidebar/desktop-sidebar.service.d.ts +4 -1
  20. package/lib/types/services/{__tests__/progress.service.spec.d.ts → sidebar/hooks/useSidebarClick.d.ts} +4 -1
  21. package/lib/types/services/sidebar/sidebar.service.d.ts +2 -0
  22. package/lib/types/views/MobileApp.d.ts +1 -1
  23. package/lib/types/views/workbench/Workbench.d.ts +1 -1
  24. package/lib/umd/facade.js +1 -0
  25. package/lib/umd/index.js +14 -15
  26. package/lib/umd/locale/en-US.js +1 -0
  27. package/lib/umd/locale/fa-IR.js +1 -0
  28. package/lib/umd/locale/ru-RU.js +1 -0
  29. package/lib/umd/locale/vi-VN.js +1 -0
  30. package/lib/umd/locale/zh-CN.js +1 -0
  31. package/lib/umd/locale/zh-TW.js +1 -0
  32. package/package.json +21 -19
  33. package/LICENSE +0 -176
  34. package/lib/cjs/index.js +0 -51
  35. package/lib/locale/en-US.json +0 -61
  36. package/lib/locale/fa-IR.json +0 -61
  37. package/lib/locale/ru-RU.json +0 -61
  38. package/lib/locale/vi-VN.json +0 -61
  39. package/lib/locale/zh-CN.json +0 -61
  40. package/lib/locale/zh-TW.json +0 -61
  41. package/lib/types/services/progress/progress.service.d.ts +0 -55
package/lib/es/index.js CHANGED
@@ -6,14 +6,17 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
6
6
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
7
7
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
8
8
  var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
9
- import { toDisposable, IUniverInstanceService, DocumentFlavor, useDependency, LocaleService, ColorKit, createIdentifier, Disposable, Workbook, UniverInstanceType, DocumentDataModel, SlideDataModel, remove, FOCUSING_UNIVER_EDITOR, IContextService, Inject, Injector, Tools, IConfigService, isRealNum, ErrorService, CommandType, IUndoRedoService, UndoCommand, RedoCommand, Optional, ICommandService, useInjector, ILogService, useObservable as useObservable$1, ThemeService, LifecycleService, connectInjector, isInternalEditorID, LifecycleStages, DependentOn, Plugin, mergeOverrideWithDependencies, ILocalStorageService, BaselineOffset, getBorderStyleType, BorderStyleTypes } from "@univerjs/core";
9
+ import { toDisposable, IUniverInstanceService, DocumentFlavor, useDependency, LocaleService, ColorKit, createIdentifier, Disposable, Workbook, UniverInstanceType, DocumentDataModel, SlideDataModel, remove, FOCUSING_UNIVER_EDITOR, IContextService, Inject, Injector, Tools, IConfigService, isRealNum, ThemeService, ErrorService, CommandType, IUndoRedoService, UndoCommand, RedoCommand, Optional, ICommandService, useInjector, ILogService, useObservable as useObservable$1, LifecycleService, connectInjector, isInternalEditorID, LifecycleStages, DependentOn, Plugin, mergeOverrideWithDependencies, ILocalStorageService, BaselineOffset, getBorderStyleType, BorderStyleTypes } from "@univerjs/core";
10
10
  import * as React from "react";
11
11
  import React__default, { forwardRef, useRef, createElement, cloneElement, useEffect, useState, useMemo, useCallback, memo, createContext, useContext, version as version$1, isValidElement, useLayoutEffect } from "react";
12
- import { Observable, switchMap, BehaviorSubject, isObservable, fromEvent, Subject, combineLatest, distinctUntilChanged, throttleTime, animationFrameScheduler, filter, debounceTime, map as map$1, startWith, take, ReplaySubject } from "rxjs";
12
+ import { Observable, switchMap, BehaviorSubject, isObservable, fromEvent, Subject, combineLatest, distinctUntilChanged, first, throttleTime, animationFrameScheduler, filter, debounceTime, map as map$1, startWith, take, ReplaySubject } from "rxjs";
13
13
  import { InputNumber, resizeObserverCtor, Menu as Menu$1, MenuItemGroup, MenuItem as MenuItem$1, SubMenu, MessageType, RectPopup, Popup, Tooltip, Dropdown, defaultTheme, themeInstance, ConfigProvider, ConfigContext, Confirm, Dialog, Message } from "@univerjs/design";
14
+ import { I as ISidebarService, C as CopyCommand, a as CutCommand, P as PasteCommand, b as IDialogService } from "../dialog.service-CR57dT_8.mjs";
15
+ import { c } from "../dialog.service-CR57dT_8.mjs";
14
16
  import { map } from "rxjs/operators";
15
17
  import { IRenderManagerService, UniverRenderEnginePlugin, ptToPx } from "@univerjs/engine-render";
16
18
  import ReactDOM$1, { createPortal } from "react-dom";
19
+ import { ISidebarService as ISidebarService$1 } from "@univerjs/ui";
17
20
  var __assign = function() {
18
21
  return __assign = Object.assign || function(t2) {
19
22
  for (var s, i = 1, n2 = arguments.length; i < n2; i++) {
@@ -61,78 +64,86 @@ function generateShortUuid() {
61
64
  }
62
65
  __name(generateShortUuid, "generateShortUuid");
63
66
  IconBase.displayName = "UniverIcon";
64
- var element$1I = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z" } }] }, AddDigitsSingle = forwardRef(function(props, ref) {
67
+ var element$1J = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M4.06641 3.49366C4.06641 2.27555 5.14145 1.3916 6.33307 1.3916 7.52469 1.3916 8.59974 2.27555 8.59974 3.49366V6.49777C8.59974 7.71586 7.52469 8.59982 6.33307 8.59982 5.14145 8.59982 4.06641 7.71586 4.06641 6.49777V3.49366zM6.33307 2.5916C5.68376 2.5916 5.26641 3.05264 5.26641 3.49366V6.49777C5.26641 6.93878 5.68376 7.39982 6.33307 7.39982 6.98239 7.39982 7.39974 6.93878 7.39974 6.49777V3.49366C7.39974 3.05264 6.98239 2.5916 6.33307 2.5916zM10.0664 3.49366C10.0664 2.27555 11.1415 1.3916 12.3331 1.3916 13.5247 1.3916 14.5997 2.27555 14.5997 3.49366V6.49777C14.5997 7.71586 13.5247 8.59982 12.3331 8.59982 11.1415 8.59982 10.0664 7.71586 10.0664 6.49777V3.49366zM12.3331 2.5916C11.6838 2.5916 11.2664 3.05264 11.2664 3.49366V6.49777C11.2664 6.93878 11.6838 7.39982 12.3331 7.39982 12.9824 7.39982 13.3997 6.93878 13.3997 6.49777V3.49366C13.3997 3.05264 12.9824 2.5916 12.3331 2.5916z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M12.4242 9.5417C12.1899 9.30739 11.81 9.30739 11.5756 9.5417 11.3413 9.77602 11.3413 10.1559 11.5756 10.3902L12.5514 11.366H6.3334C6.00203 11.366 5.7334 11.6346 5.7334 11.966 5.7334 12.2973 6.00203 12.566 6.3334 12.566H12.5514L11.5756 13.5417C11.3413 13.776 11.3413 14.1559 11.5756 14.3902 11.81 14.6245 12.1899 14.6245 12.4242 14.3902L14.4159 12.3985C14.5294 12.2893 14.6001 12.1359 14.6001 11.966 14.6001 11.796 14.5294 11.6426 14.4159 11.5334L12.4242 9.5417zM1.3999 8.3002C1.3999 7.96882 1.66853 7.7002 1.9999 7.7002H2.33324C2.66461 7.7002 2.93324 7.96882 2.93324 8.3002 2.93324 8.63157 2.66461 8.9002 2.33324 8.9002H1.9999C1.66853 8.9002 1.3999 8.63157 1.3999 8.3002z" } }] }, AddDigitsSingle = forwardRef(function(props, ref) {
65
68
  return createElement(IconBase, Object.assign({}, props, {
66
69
  id: "add-digits-single",
67
70
  ref,
68
- icon: element$1I
71
+ icon: element$1J
69
72
  }));
70
73
  });
71
74
  AddDigitsSingle.displayName = "AddDigitsSingle";
72
- var element$1H = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1312", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1312)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z" } }] }] }, AdjustHeight = forwardRef(function(props, ref) {
75
+ var element$1I = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1312", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1312)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M8.60231 5.77597L9.38125 6.55432C9.61658 6.78947 9.99797 6.78932 10.2331 6.554C10.4683 6.31867 10.4681 5.93728 10.2328 5.70214L8.44939 3.92009C8.33908 3.79657 8.1786 3.7188 7.99995 3.7188C7.84562 3.71861 7.6906 3.77736 7.57281 3.89506L5.76712 5.69933C5.5318 5.93447 5.53165 6.31587 5.76679 6.55119C6.00193 6.78652 6.38332 6.78667 6.61865 6.55153L7.3976 5.77319L7.3976 10.2246L6.61865 9.44621C6.38333 9.21107 6.00194 9.21121 5.76679 9.44654C5.53165 9.68186 5.53179 10.0633 5.76712 10.2984L7.55051 12.0804C7.66082 12.204 7.82131 12.2817 7.99995 12.2817L8.00089 12.2817C8.15512 12.2819 8.30939 12.2231 8.4271 12.1055L10.2328 10.3012C10.4681 10.0661 10.4683 9.68467 10.2331 9.44934C9.99798 9.21402 9.61659 9.21387 9.38126 9.44901L8.60231 10.2274L8.60231 5.77597Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M13.7039 3.24701C14.0539 3.24701 14.3377 2.96327 14.3377 2.61325 14.3377 2.26324 14.0539 1.97949 13.7039 1.97949L2.29627 1.97949C1.94625 1.97949 1.66251 2.26324 1.66251 2.61325 1.66251 2.96327 1.94625 3.24701 2.29627 3.24701L13.7039 3.24701zM13.7039 14.0209C14.0539 14.0209 14.3377 13.7372 14.3377 13.3872 14.3377 13.0371 14.0539 12.7534 13.7039 12.7534L2.29627 12.7534C1.94625 12.7534 1.66251 13.0371 1.66251 13.3872 1.66251 13.7372 1.94625 14.0209 2.29627 14.0209L13.7039 14.0209z" } }] }] }, AdjustHeight = forwardRef(function(props, ref) {
73
76
  return createElement(IconBase, Object.assign({}, props, {
74
77
  id: "adjust-height",
75
78
  ref,
76
- icon: element$1H
79
+ icon: element$1I
77
80
  }));
78
81
  });
79
82
  AdjustHeight.displayName = "AdjustHeight";
80
- var element$1G = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1166", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1166)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z" } }] }] }, AdjustWidth = forwardRef(function(props, ref) {
83
+ var element$1H = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1166", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1166)" }, children: [{ tag: "path", attrs: { fill: "colorChannel1", d: "M5.77574 7.3974L6.5541 6.61846C6.78924 6.38313 6.78909 6.00174 6.55377 5.7666C6.31844 5.53145 5.93705 5.5316 5.70191 5.76692L3.91987 7.55032C3.79634 7.66063 3.71857 7.82111 3.71857 7.99976C3.71838 8.15409 3.77713 8.30912 3.89483 8.42691L5.6991 10.2326C5.93425 10.4679 6.31564 10.4681 6.55096 10.2329C6.78629 9.99778 6.78644 9.61639 6.5513 9.38106L5.77296 8.60211L10.2243 8.60211L9.44598 9.38106C9.21084 9.61638 9.21099 9.99777 9.44631 10.2329C9.68164 10.4681 10.063 10.4679 10.2982 10.2326L12.0802 8.4492C12.2037 8.33889 12.2815 8.1784 12.2815 7.99976L12.2815 7.99882C12.2816 7.84459 12.2229 7.69032 12.1052 7.57261L10.301 5.76693C10.0658 5.5316 9.68444 5.53145 9.44911 5.76659C9.21379 6.00173 9.21364 6.38312 9.44878 6.61845L10.2271 7.3974L5.77574 7.3974Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.24683 2.29598C3.24683 1.94596 2.96308 1.66222 2.61307 1.66222 2.26305 1.66222 1.97931 1.94596 1.97931 2.29598L1.97931 13.7036C1.97931 14.0537 2.26305 14.3374 2.61307 14.3374 2.96308 14.3374 3.24683 14.0537 3.24683 13.7036L3.24683 2.29598zM14.0207 2.29598C14.0207 1.94596 13.737 1.66222 13.387 1.66222 13.037 1.66222 12.7532 1.94596 12.7532 2.29598L12.7532 13.7036C12.7532 14.0537 13.037 14.3374 13.387 14.3374 13.737 14.3374 14.0207 14.0537 14.0207 13.7036L14.0207 2.29598z" } }] }] }, AdjustWidth = forwardRef(function(props, ref) {
81
84
  return createElement(IconBase, Object.assign({}, props, {
82
85
  id: "adjust-width",
83
86
  ref,
84
- icon: element$1G
87
+ icon: element$1H
85
88
  }));
86
89
  });
87
90
  AdjustWidth.displayName = "AdjustWidth";
88
- var element$1F = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AlignBottomSingle = forwardRef(function(props, ref) {
91
+ var element$1G = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 13.6999C1.3999 13.3685 1.66853 13.0999 1.9999 13.0999H13.9999C14.3313 13.0999 14.5999 13.3685 14.5999 13.6999 14.5999 14.0312 14.3313 14.2999 13.9999 14.2999H1.9999C1.66853 14.2999 1.3999 14.0312 1.3999 13.6999zM7.57564 10.3914C7.80995 10.6257 8.18985 10.6257 8.42417 10.3914L10.4242 8.3914C10.6585 8.15709 10.6585 7.77719 10.4242 7.54287 10.1899 7.30856 9.80995 7.30856 9.57564 7.54287L7.9999 9.11861 6.42417 7.54287C6.18985 7.30856 5.80995 7.30856 5.57564 7.54287 5.34132 7.77719 5.34132 8.15709 5.57564 8.3914L7.57564 10.3914z", fillRule: "evenodd", clipRule: "evenodd" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.9999 10.5671C8.33127 10.5671 8.5999 10.2985 8.5999 9.96714V2.30047C8.5999 1.9691 8.33127 1.70047 7.9999 1.70047C7.66853 1.70047 7.3999 1.9691 7.3999 2.30047V9.96714C7.3999 10.2985 7.66853 10.5671 7.9999 10.5671Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AlignBottomSingle = forwardRef(function(props, ref) {
89
92
  return createElement(IconBase, Object.assign({}, props, {
90
93
  id: "align-bottom-single",
91
94
  ref,
92
- icon: element$1F
95
+ icon: element$1G
93
96
  }));
94
97
  });
95
98
  AlignBottomSingle.displayName = "AlignBottomSingle";
96
- var element$1E = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z" } }] }, AlignTextBothSingle = forwardRef(function(props, ref) {
99
+ var element$1F = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.9999 1.89941C1.66853 1.89941 1.3999 2.16804 1.3999 2.49941 1.3999 2.83078 1.66853 3.09941 1.9999 3.09941H13.9999C14.3313 3.09941 14.5999 2.83078 14.5999 2.49941 14.5999 2.16804 14.3313 1.89941 13.9999 1.89941H1.9999zM1.9999 5.56641C1.66853 5.56641 1.3999 5.83504 1.3999 6.16641 1.3999 6.49778 1.66853 6.76641 1.9999 6.76641H13.9999C14.3313 6.76641 14.5999 6.49778 14.5999 6.16641 14.5999 5.83504 14.3313 5.56641 13.9999 5.56641H1.9999zM1.3999 9.8334C1.3999 9.50203 1.66853 9.2334 1.9999 9.2334H13.9999C14.3313 9.2334 14.5999 9.50203 14.5999 9.8334 14.5999 10.1648 14.3313 10.4334 13.9999 10.4334H1.9999C1.66853 10.4334 1.3999 10.1648 1.3999 9.8334zM1.9999 12.9004C1.66853 12.9004 1.3999 13.169 1.3999 13.5004 1.3999 13.8318 1.66853 14.1004 1.9999 14.1004H13.9999C14.3313 14.1004 14.5999 13.8318 14.5999 13.5004 14.5999 13.169 14.3313 12.9004 13.9999 12.9004H1.9999z" } }] }, AlignTextBothSingle = forwardRef(function(props, ref) {
97
100
  return createElement(IconBase, Object.assign({}, props, {
98
101
  id: "align-text-both-single",
99
102
  ref,
100
- icon: element$1E
103
+ icon: element$1F
101
104
  }));
102
105
  });
103
106
  AlignTextBothSingle.displayName = "AlignTextBothSingle";
104
- var element$1D = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z" } }] }, AlignTopSingle = forwardRef(function(props, ref) {
107
+ var element$1E = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.3999 2.3002C1.3999 2.63157 1.66853 2.9002 1.9999 2.9002H13.9999C14.3313 2.9002 14.5999 2.63157 14.5999 2.3002 14.5999 1.96882 14.3313 1.7002 13.9999 1.7002H1.9999C1.66853 1.7002 1.3999 1.96882 1.3999 2.3002zM8.22957 5.47839C8.30034 5.50767 8.36664 5.55107 8.42417 5.6086L10.4242 7.6086C10.6585 7.84291 10.6585 8.22281 10.4242 8.45713 10.1899 8.69144 9.80995 8.69144 9.57564 8.45713L8.5999 7.48139V13.6995C8.5999 14.0309 8.33127 14.2995 7.9999 14.2995 7.66853 14.2995 7.3999 14.0309 7.3999 13.6995V7.48139L6.42417 8.45713C6.18985 8.69144 5.80995 8.69144 5.57564 8.45713 5.34132 8.22281 5.34132 7.84291 5.57564 7.6086L7.57541 5.60882C7.7522 5.43203 8.01209 5.38841 8.22957 5.47839z" } }] }, AlignTopSingle = forwardRef(function(props, ref) {
105
108
  return createElement(IconBase, Object.assign({}, props, {
106
109
  id: "align-top-single",
107
110
  ref,
108
- icon: element$1D
111
+ icon: element$1E
109
112
  }));
110
113
  });
111
114
  AlignTopSingle.displayName = "AlignTopSingle";
112
- var element$1C = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AllBorderSingle = forwardRef(function(props, ref) {
115
+ var element$1D = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M7.9999 1.12915C8.03875 1.12915 8.07673 1.13284 8.11352 1.13989H12.2599C13.6958 1.13989 14.8599 2.30395 14.8599 3.73989V7.88619C14.867 7.92301 14.8707 7.96102 14.8707 7.9999C14.8707 8.03878 14.867 8.0768 14.8599 8.11362V12.2599C14.8599 13.6958 13.6958 14.8599 12.2599 14.8599H8.11362C8.0768 14.867 8.03878 14.8707 7.9999 14.8707C7.96102 14.8707 7.92301 14.867 7.88619 14.8599H3.73989C2.30396 14.8599 1.13989 13.6958 1.13989 12.2599V8.11352C1.13284 8.07673 1.12915 8.03875 1.12915 7.9999C1.12915 7.96106 1.13284 7.92308 1.13989 7.88629V3.73989C1.13989 2.30396 2.30395 1.13989 3.73989 1.13989H7.88629C7.92308 1.13284 7.96106 1.12915 7.9999 1.12915ZM2.33989 8.5999V12.2599C2.33989 13.0331 2.9667 13.6599 3.73989 13.6599H7.3999V8.5999H2.33989ZM7.3999 7.3999H2.33989V3.73989C2.33989 2.9667 2.96669 2.33989 3.73989 2.33989H7.3999V7.3999ZM8.5999 8.5999V13.6599H12.2599C13.0331 13.6599 13.6599 13.0331 13.6599 12.2599V8.5999H8.5999ZM13.6599 7.3999H8.5999V2.33989H12.2599C13.0331 2.33989 13.6599 2.96669 13.6599 3.73989V7.3999Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AllBorderSingle = forwardRef(function(props, ref) {
113
116
  return createElement(IconBase, Object.assign({}, props, {
114
117
  id: "all-border-single",
115
118
  ref,
116
- icon: element$1C
119
+ icon: element$1D
117
120
  }));
118
121
  });
119
122
  AllBorderSingle.displayName = "AllBorderSingle";
120
- var element$1B = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AmplifySingle = forwardRef(function(props, ref) {
123
+ var element$1C = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M8.5999 5.9999C8.5999 5.66853 8.33127 5.3999 7.9999 5.3999C7.66853 5.3999 7.3999 5.66853 7.3999 5.9999V7.40329L6.004 7.4051C5.67263 7.40553 5.40435 7.67451 5.40479 8.00588C5.40522 8.33725 5.6742 8.60553 6.00557 8.6051L7.3999 8.60329V9.9999C7.3999 10.3313 7.66853 10.5999 7.9999 10.5999C8.33127 10.5999 8.5999 10.3313 8.5999 9.9999V8.60172L10.0004 8.5999C10.3317 8.59947 10.6 8.33049 10.5996 7.99912C10.5992 7.66775 10.3302 7.39947 9.9988 7.3999L8.5999 7.40172V5.9999Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M7.99958 1.73315C4.53861 1.73315 1.73291 4.53885 1.73291 7.99982C1.73291 11.4608 4.53861 14.2665 7.99958 14.2665C9.51395 14.2665 10.9029 13.7293 11.9862 12.8351L13.2422 14.0908C13.4765 14.3251 13.8564 14.3251 14.0907 14.0907C14.325 13.8564 14.325 13.4765 14.0906 13.2422L12.8347 11.9866C13.729 10.9033 14.2662 9.51428 14.2662 7.99982C14.2662 4.53885 11.4605 1.73315 7.99958 1.73315ZM2.93291 7.99982C2.93291 5.20159 5.20135 2.93315 7.99958 2.93315C10.7978 2.93315 13.0662 5.20159 13.0662 7.99982C13.0662 10.7981 10.7978 13.0665 7.99958 13.0665C5.20135 13.0665 2.93291 10.7981 2.93291 7.99982Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, AmplifySingle = forwardRef(function(props, ref) {
121
124
  return createElement(IconBase, Object.assign({}, props, {
122
125
  id: "amplify-single",
123
126
  ref,
124
- icon: element$1B
127
+ icon: element$1C
125
128
  }));
126
129
  });
127
130
  AmplifySingle.displayName = "AmplifySingle";
128
- var element$1A = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1317", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1317)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoHeight = forwardRef(function(props, ref) {
131
+ var element$1B = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_107_1317", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_107_1317)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.29713 1.98047C1.94717 1.98047 1.66348 2.26416 1.66348 2.61412 1.66348 2.96408 1.94717 3.24777 2.29713 3.24777H13.7028C14.0528 3.24777 14.3365 2.96408 14.3365 2.61412 14.3365 2.26416 14.0528 1.98047 13.7028 1.98047H2.29713zM2.29713 12.7525C1.94717 12.7525 1.66348 13.0362 1.66348 13.3862 1.66348 13.7361 1.94717 14.0198 2.29713 14.0198H13.7028C14.0528 14.0198 14.3365 13.7361 14.3365 13.3862 14.3365 13.0362 14.0528 12.7525 13.7028 12.7525H2.29713z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42163 4.25588L4.25471 11.2231C4.10989 11.5417 4.25077 11.9174 4.56935 12.0622C4.88794 12.207 5.2636 12.0661 5.40841 11.7475L6.24766 9.90119H9.75197L10.5912 11.7475C10.736 12.0661 11.1117 12.207 11.4303 12.0622C11.7489 11.9174 11.8897 11.5417 11.7449 11.2231L8.578 4.25589C8.5675 4.23244 8.55557 4.20961 8.54227 4.18755C8.49012 4.10102 8.41688 4.0262 8.32579 3.97171C8.301 3.95688 8.27527 3.94377 8.24878 3.93246C8.16764 3.89775 8.08309 3.8813 7.99981 3.88135C7.88457 3.88142 7.77177 3.91309 7.67384 3.97171C7.58714 4.02361 7.5121 4.09664 7.45735 4.18755C7.44406 4.20961 7.43213 4.23244 7.42163 4.25588ZM9.17592 8.63388L7.99981 6.04644L6.8237 8.63388H9.17592Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoHeight = forwardRef(function(props, ref) {
129
132
  return createElement(IconBase, Object.assign({}, props, {
130
133
  id: "auto-height",
131
134
  ref,
132
- icon: element$1A
135
+ icon: element$1B
133
136
  }));
134
137
  });
135
138
  AutoHeight.displayName = "AutoHeight";
139
+ var element$1A = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "mask", attrs: { id: "mask0_102_1171", style: { maskType: "alpha" }, width: 16, height: 16, x: 0, y: 0, maskUnits: "userSpaceOnUse" }, children: [{ tag: "path", attrs: { fill: "#D9D9D9", d: "M0 0H16V16H0z" } }] }, { tag: "g", attrs: { mask: "url(#mask0_102_1171)" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M1.98032 13.7028C1.98032 14.0527 2.26401 14.3364 2.61397 14.3364 2.96392 14.3364 3.24762 14.0527 3.24762 13.7028L3.24762 2.29706C3.24762 1.9471 2.96392 1.66341 2.61397 1.66341 2.26401 1.66341 1.98032 1.9471 1.98032 2.29706L1.98032 13.7028zM12.7524 13.7028C12.7524 14.0527 13.0361 14.3364 13.386 14.3364 13.736 14.3364 14.0197 14.0527 14.0197 13.7028L14.0197 2.29706C14.0197 1.9471 13.736 1.66341 13.386 1.66341 13.0361 1.66341 12.7524 1.9471 12.7524 2.29706L12.7524 13.7028z" } }, { tag: "path", attrs: { fill: "colorChannel1", d: "M7.42187 4.25588L4.25495 11.2231C4.11014 11.5417 4.25101 11.9174 4.5696 12.0622C4.88819 12.207 5.26385 12.0661 5.40866 11.7475L6.2479 9.90119H9.75222L10.5915 11.7475C10.7363 12.0661 11.1119 12.207 11.4305 12.0622C11.7491 11.9174 11.89 11.5417 11.7452 11.2231L8.57825 4.25589C8.56775 4.23244 8.55582 4.20961 8.54252 4.18755C8.49037 4.10102 8.41713 4.0262 8.32603 3.97171C8.30125 3.95688 8.27551 3.94377 8.24902 3.93246C8.16788 3.89775 8.08333 3.8813 8.00006 3.88135C7.88481 3.88142 7.77201 3.91309 7.67409 3.97171C7.58739 4.02361 7.51235 4.09664 7.4576 4.18755C7.4443 4.20961 7.43237 4.23244 7.42187 4.25588ZM9.17617 8.63388L8.00006 6.04644L6.82395 8.63388H9.17617Z", fillRule: "evenodd", clipRule: "evenodd" } }] }] }, AutoWidth = forwardRef(function(props, ref) {
140
+ return createElement(IconBase, Object.assign({}, props, {
141
+ id: "auto-width",
142
+ ref,
143
+ icon: element$1A
144
+ }));
145
+ });
146
+ AutoWidth.displayName = "AutoWidth";
136
147
  var element$1z = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "currentColor", d: "M2.5999 2.2001C2.5999 1.86873 2.33127 1.6001 1.9999 1.6001 1.66853 1.6001 1.3999 1.86873 1.3999 2.2001V13.8001C1.3999 14.1315 1.66853 14.4001 1.9999 14.4001 2.33127 14.4001 2.5999 14.1315 2.5999 13.8001V2.2001zM14.5999 2.2001C14.5999 1.86873 14.3313 1.6001 13.9999 1.6001 13.6685 1.6001 13.3999 1.86873 13.3999 2.2001V13.8001C13.3999 14.1315 13.6685 14.4001 13.9999 14.4001 14.3313 14.4001 14.5999 14.1315 14.5999 13.8001V2.2001zM6.424 8.24239C6.65832 8.4767 6.65832 8.8566 6.424 9.09091L6.11502 9.3999H9.33307C10.1063 9.3999 10.7331 8.7731 10.7331 7.9999 10.7331 7.22671 10.1063 6.5999 9.33307 6.5999H4.6666L4.66645 5.3999H9.33307C10.769 5.3999 11.9331 6.56396 11.9331 7.9999 11.9331 9.43584 10.769 10.5999 9.33307 10.5999H6.11485L6.424 10.9091C6.65832 11.1434 6.65832 11.5233 6.424 11.7576 6.18969 11.9919 5.80979 11.9919 5.57548 11.7576L4.24214 10.4242C4.00783 10.1899 4.00783 9.81003 4.24214 9.57572L5.57548 8.24239C5.80979 8.00807 6.18969 8.00807 6.424 8.24239z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M4.6666 6.5999C4.33523 6.5999 4.06641 6.33127 4.06641 5.9999C4.06641 5.66853 4.33508 5.3999 4.66645 5.3999L4.6666 6.5999Z" } }] }, AutowrapSingle = forwardRef(function(props, ref) {
137
148
  return createElement(IconBase, Object.assign({}, props, {
138
149
  id: "autowrap-single",
@@ -1008,6 +1019,7 @@ const _ComponentManager = class _ComponentManager {
1008
1019
  Hide,
1009
1020
  HorizontalBorder,
1010
1021
  AutoHeight,
1022
+ AutoWidth,
1011
1023
  AdjustHeight,
1012
1024
  AdjustWidth,
1013
1025
  AvgSingle,
@@ -1122,11 +1134,11 @@ const _ZIndexManager = class _ZIndexManager {
1122
1134
  };
1123
1135
  _MAX_INDEX = new WeakMap(), _MIN_INDEX = new WeakMap(), __name(_ZIndexManager, "ZIndexManager"), __privateAdd(_ZIndexManager, _MAX_INDEX, 2147483647), __privateAdd(_ZIndexManager, _MIN_INDEX, -2147483647);
1124
1136
  let ZIndexManager = _ZIndexManager;
1125
- function getMenuHiddenObservable(accessor, targetUniverType, matchUnitId) {
1137
+ function getMenuHiddenObservable(accessor, targetUniverType, matchUnitId, needHideUnitId) {
1126
1138
  const univerInstanceService = accessor.get(IUniverInstanceService);
1127
1139
  return new Observable((subscriber) => {
1128
1140
  const subscription = univerInstanceService.focused$.subscribe((unitId) => {
1129
- if (unitId == null || matchUnitId && matchUnitId !== unitId)
1141
+ if (unitId == null || matchUnitId && matchUnitId !== unitId || needHideUnitId && needHideUnitId === unitId)
1130
1142
  return subscriber.next(!0);
1131
1143
  const univerType2 = univerInstanceService.getUnitType(unitId);
1132
1144
  subscriber.next(univerType2 !== targetUniverType);
@@ -1191,12 +1203,12 @@ var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
1191
1203
  * LICENSE file in the root directory of this source tree.
1192
1204
  */
1193
1205
  var f$1 = React__default, k$1 = Symbol.for("react.element"), l$1 = Symbol.for("react.fragment"), m$1 = Object.prototype.hasOwnProperty, n$1 = f$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p$1 = { key: !0, ref: !0, __self: !0, __source: !0 };
1194
- function q$1(c2, a, g2) {
1206
+ function q$1(c3, a, g2) {
1195
1207
  var b2, d2 = {}, e2 = null, h2 = null;
1196
1208
  g2 !== void 0 && (e2 = "" + g2), a.key !== void 0 && (e2 = "" + a.key), a.ref !== void 0 && (h2 = a.ref);
1197
1209
  for (b2 in a) m$1.call(a, b2) && !p$1.hasOwnProperty(b2) && (d2[b2] = a[b2]);
1198
- if (c2 && c2.defaultProps) for (b2 in a = c2.defaultProps, a) d2[b2] === void 0 && (d2[b2] = a[b2]);
1199
- return { $$typeof: k$1, type: c2, key: e2, ref: h2, props: d2, _owner: n$1.current };
1210
+ if (c3 && c3.defaultProps) for (b2 in a = c3.defaultProps, a) d2[b2] === void 0 && (d2[b2] = a[b2]);
1211
+ return { $$typeof: k$1, type: c3, key: e2, ref: h2, props: d2, _owner: n$1.current };
1200
1212
  }
1201
1213
  __name(q$1, "q$1");
1202
1214
  reactJsxRuntime_production_min.Fragment = l$1;
@@ -2076,93 +2088,41 @@ function MenuItem({ menuItem, onClick }) {
2076
2088
  ] });
2077
2089
  }
2078
2090
  __name(MenuItem, "MenuItem");
2079
- const _ProgressService = class _ProgressService extends Disposable {
2080
- constructor() {
2081
- super(...arguments);
2082
- /**
2083
- * The total number of tasks remaining
2084
- */
2085
- __publicField(this, "_taskCount", 0);
2086
- __publicField(this, "_progressChange$", new Subject());
2087
- __publicField(this, "_progressVisible$", new Subject());
2088
- __publicField(this, "progressChange$", this._progressChange$.asObservable());
2089
- __publicField(this, "progressVisible$", this._progressVisible$.asObservable());
2090
- }
2091
- dispose() {
2092
- super.dispose(), this._clear(), this._progressChange$.complete(), this._progressVisible$.complete();
2093
- }
2094
- pushTask(task) {
2095
- if (this._taskCount === 0)
2096
- return;
2097
- const { count } = task;
2098
- if (count <= 0)
2099
- return;
2100
- const step = Math.min(1, count / this._taskCount);
2101
- this._progressChange$.next({
2102
- step
2103
- }), this._taskCount -= count, this._taskCount < 0 && (this._taskCount = 0), this._taskCount === 0 && this._progressVisible$.next(!1);
2104
- }
2105
- insertTaskCount(count) {
2106
- count <= 0 || (this._taskCount === 0 && this._progressVisible$.next(!0), this._taskCount += count);
2107
- }
2108
- complete() {
2109
- this._taskCount !== 0 && (this._progressChange$.next({
2110
- step: 1
2111
- }), this._clear(), this._progressVisible$.next(!1));
2112
- }
2113
- stop() {
2114
- this._taskCount !== 0 && (this._clear(), this._progressVisible$.next(!1));
2115
- }
2116
- getTaskCount() {
2117
- return this._taskCount;
2118
- }
2119
- _clear() {
2120
- this._taskCount = 0;
2121
- }
2122
- };
2123
- __name(_ProgressService, "ProgressService");
2124
- let ProgressService = _ProgressService;
2125
- const IProgressService = createIdentifier(
2126
- "univer.progress.service"
2127
- ), progressBar = "univer-progress-bar", progressBarContainer = "univer-progress-bar-container", progressBarInner = "univer-progress-bar-inner", progressBarCloseButton = "univer-progress-bar-close-button", styles$b = {
2091
+ const progressBar = "univer-progress-bar", progressBarContainer = "univer-progress-bar-container", progressBarInner = "univer-progress-bar-inner", progressBarCloseButton = "univer-progress-bar-close-button", styles$b = {
2128
2092
  progressBar,
2129
2093
  progressBarContainer,
2130
2094
  progressBarInner,
2131
2095
  progressBarCloseButton
2132
2096
  };
2133
2097
  function ProgressBar(props) {
2134
- const { barColor } = props, progressService = useDependency(IProgressService), progressBarInnerRef = useRef(null), [visible, setVisible] = useState(!1);
2135
- useEffect(() => {
2136
- const progressVisible = progressService.progressVisible$.subscribe((isVisible) => {
2137
- isVisible ? setVisible(isVisible) : setTimeout(() => {
2138
- setVisible(isVisible), progressBarInnerRef.current && (progressBarInnerRef.current.style.width = "0%");
2139
- }, 500);
2140
- }), progressChange = progressService.progressChange$.subscribe((task) => {
2141
- const { step } = task;
2142
- if (progressBarInnerRef.current) {
2143
- const currentProgress = Number.parseFloat(progressBarInnerRef.current.style.width) || 0, newProgress = currentProgress + (100 - currentProgress) * step;
2144
- progressBarInnerRef.current.style.width = `${newProgress}%`;
2145
- }
2146
- });
2147
- return () => {
2148
- progressVisible.unsubscribe(), progressChange.unsubscribe();
2098
+ const { barColor, progress, onTerminate, onClearProgress } = props, { count, done } = progress, themeService = useDependency(ThemeService), color = barColor != null ? barColor : themeService.getCurrentTheme().primaryColor, progressBarInnerRef = useRef(null), [visible, setVisible] = useState(count > 0), [prevCount, setPrevCount] = useState(0), [prevDone, setPrevDone] = useState(0);
2099
+ return useEffect(() => {
2100
+ if (!progressBarInnerRef.current) return;
2101
+ const progressBarInner2 = progressBarInnerRef.current;
2102
+ count === 0 && done === 0 ? setVisible(!1) : count === done && prevCount === 0 && prevDone === 0 ? (setVisible(!0), progressBarInner2.style.width = "0%", requestAnimationFrame(() => {
2103
+ progressBarInner2.style.width = "100%";
2104
+ })) : count > 0 && (setVisible(!0), progressBarInner2.style.width = `${Math.floor(done / count * 100)}%`);
2105
+ const handleTransitionEnd = /* @__PURE__ */ __name(() => {
2106
+ (count === 0 && done === 0 || done === count) && (setVisible(!1), progressBarInner2.style.width = "0%", done === count && onClearProgress && onClearProgress());
2107
+ }, "handleTransitionEnd");
2108
+ return progressBarInner2.addEventListener("transitionend", handleTransitionEnd), setPrevCount(count), setPrevDone(done), () => {
2109
+ progressBarInner2.removeEventListener("transitionend", handleTransitionEnd);
2149
2110
  };
2150
- }, []);
2151
- function handleClose() {
2152
- progressService.stop();
2153
- }
2154
- return __name(handleClose, "handleClose"), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarContainer, style: { display: visible ? "flex" : "none" }, children: [
2111
+ }, [count, done]), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarContainer, style: { display: visible ? "flex" : "none" }, children: [
2155
2112
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.progressBar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2156
2113
  "div",
2157
2114
  {
2158
2115
  ref: progressBarInnerRef,
2159
2116
  className: styles$b.progressBarInner,
2160
2117
  style: {
2161
- backgroundColor: barColor
2118
+ backgroundColor: color
2162
2119
  }
2163
2120
  }
2164
2121
  ) }),
2165
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.progressBarCloseButton, onClick: handleClose, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseSingle, {}) })
2122
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.progressBarCloseButton, onClick: onTerminate, children: [
2123
+ " ",
2124
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CloseSingle, {})
2125
+ ] })
2166
2126
  ] });
2167
2127
  }
2168
2128
  __name(ProgressBar, "ProgressBar");
@@ -2207,7 +2167,7 @@ const _ShortcutPanelService = class _ShortcutPanelService extends Disposable {
2207
2167
  };
2208
2168
  __name(_ShortcutPanelService, "ShortcutPanelService");
2209
2169
  let ShortcutPanelService = _ShortcutPanelService;
2210
- const ILeftSidebarService = createIdentifier("ui.left-sidebar.service"), ISidebarService = createIdentifier("ui.sidebar.service"), ShortcutPanelComponentName = "ShortcutPanel", ToggleShortcutPanelOperation = {
2170
+ const ShortcutPanelComponentName = "ShortcutPanel", ToggleShortcutPanelOperation = {
2211
2171
  id: "base-ui.operation.toggle-shortcut-panel",
2212
2172
  type: CommandType.OPERATION,
2213
2173
  handler: /* @__PURE__ */ __name((accessor) => {
@@ -2275,30 +2235,6 @@ const menuSchema = {
2275
2235
  id: "sheet.operation.set-editor-resize",
2276
2236
  type: CommandType.OPERATION,
2277
2237
  handler: /* @__PURE__ */ __name((accessor, params) => !0, "handler")
2278
- }, CopyCommandName = "univer.command.copy", CopyCommand = {
2279
- id: CopyCommandName,
2280
- name: CopyCommandName,
2281
- multi: !0,
2282
- priority: 0,
2283
- type: CommandType.COMMAND,
2284
- preconditions: /* @__PURE__ */ __name(() => !1, "preconditions"),
2285
- handler: /* @__PURE__ */ __name(async () => !0, "handler")
2286
- }, CutCommandName = "univer.command.cut", CutCommand = {
2287
- id: CutCommandName,
2288
- name: CutCommandName,
2289
- multi: !0,
2290
- priority: 0,
2291
- type: CommandType.COMMAND,
2292
- preconditions: /* @__PURE__ */ __name(() => !1, "preconditions"),
2293
- handler: /* @__PURE__ */ __name(async () => !0, "handler")
2294
- }, PasteCommandName = "univer.command.paste", PasteCommand = {
2295
- id: PasteCommandName,
2296
- name: PasteCommandName,
2297
- multi: !0,
2298
- priority: 0,
2299
- type: CommandType.COMMAND,
2300
- preconditions: /* @__PURE__ */ __name(() => !1, "preconditions"),
2301
- handler: /* @__PURE__ */ __name(async () => !0, "handler")
2302
2238
  };
2303
2239
  var KeyCode$1 = /* @__PURE__ */ ((KeyCode2) => (KeyCode2[KeyCode2.UNKNOWN = 0] = "UNKNOWN", KeyCode2[KeyCode2.BACKSPACE = 8] = "BACKSPACE", KeyCode2[KeyCode2.TAB = 9] = "TAB", KeyCode2[KeyCode2.ENTER = 13] = "ENTER", KeyCode2[KeyCode2.SHIFT = 16] = "SHIFT", KeyCode2[KeyCode2.CTRL = 17] = "CTRL", KeyCode2[KeyCode2.ESC = 27] = "ESC", KeyCode2[KeyCode2.SPACE = 32] = "SPACE", KeyCode2[KeyCode2.ARROW_LEFT = 37] = "ARROW_LEFT", KeyCode2[KeyCode2.ARROW_UP = 38] = "ARROW_UP", KeyCode2[KeyCode2.ARROW_RIGHT = 39] = "ARROW_RIGHT", KeyCode2[KeyCode2.ARROW_DOWN = 40] = "ARROW_DOWN", KeyCode2[KeyCode2.INSERT = 45] = "INSERT", KeyCode2[KeyCode2.DELETE = 46] = "DELETE", KeyCode2[KeyCode2.Digit0 = 48] = "Digit0", KeyCode2[KeyCode2.Digit1 = 49] = "Digit1", KeyCode2[KeyCode2.Digit2 = 50] = "Digit2", KeyCode2[KeyCode2.Digit3 = 51] = "Digit3", KeyCode2[KeyCode2.Digit4 = 52] = "Digit4", KeyCode2[KeyCode2.Digit5 = 53] = "Digit5", KeyCode2[KeyCode2.Digit6 = 54] = "Digit6", KeyCode2[KeyCode2.Digit7 = 55] = "Digit7", KeyCode2[KeyCode2.Digit8 = 56] = "Digit8", KeyCode2[KeyCode2.Digit9 = 57] = "Digit9", KeyCode2[KeyCode2.A = 65] = "A", KeyCode2[KeyCode2.B = 66] = "B", KeyCode2[KeyCode2.C = 67] = "C", KeyCode2[KeyCode2.D = 68] = "D", KeyCode2[KeyCode2.E = 69] = "E", KeyCode2[KeyCode2.F = 70] = "F", KeyCode2[KeyCode2.G = 71] = "G", KeyCode2[KeyCode2.H = 72] = "H", KeyCode2[KeyCode2.I = 73] = "I", KeyCode2[KeyCode2.J = 74] = "J", KeyCode2[KeyCode2.K = 75] = "K", KeyCode2[KeyCode2.L = 76] = "L", KeyCode2[KeyCode2.M = 77] = "M", KeyCode2[KeyCode2.N = 78] = "N", KeyCode2[KeyCode2.O = 79] = "O", KeyCode2[KeyCode2.P = 80] = "P", KeyCode2[KeyCode2.Q = 81] = "Q", KeyCode2[KeyCode2.R = 82] = "R", KeyCode2[KeyCode2.S = 83] = "S", KeyCode2[KeyCode2.T = 84] = "T", KeyCode2[KeyCode2.U = 85] = "U", KeyCode2[KeyCode2.V = 86] = "V", KeyCode2[KeyCode2.W = 87] = "W", KeyCode2[KeyCode2.X = 88] = "X", KeyCode2[KeyCode2.Y = 89] = "Y", KeyCode2[KeyCode2.Z = 90] = "Z", KeyCode2[KeyCode2.F1 = 112] = "F1", KeyCode2[KeyCode2.F2 = 113] = "F2", KeyCode2[KeyCode2.F3 = 114] = "F3", KeyCode2[KeyCode2.F4 = 115] = "F4", KeyCode2[KeyCode2.F5 = 116] = "F5", KeyCode2[KeyCode2.F6 = 117] = "F6", KeyCode2[KeyCode2.F7 = 118] = "F7", KeyCode2[KeyCode2.F8 = 119] = "F8", KeyCode2[KeyCode2.F9 = 120] = "F9", KeyCode2[KeyCode2.F10 = 121] = "F10", KeyCode2[KeyCode2.F11 = 122] = "F11", KeyCode2[KeyCode2.F12 = 123] = "F12", KeyCode2[KeyCode2.NUM_LOCK = 144] = "NUM_LOCK", KeyCode2[KeyCode2.SCROLL_LOCK = 145] = "SCROLL_LOCK", KeyCode2[KeyCode2.EQUAL = 187] = "EQUAL", KeyCode2[KeyCode2.COMMA = 188] = "COMMA", KeyCode2[KeyCode2.MINUS = 189] = "MINUS", KeyCode2[KeyCode2.PERIOD = 190] = "PERIOD", KeyCode2[KeyCode2.BACK_SLASH = 220] = "BACK_SLASH", KeyCode2))(KeyCode$1 || {});
2304
2240
  const KeyCodeToChar = {
@@ -2602,7 +2538,7 @@ ShortcutPanelController = __decorateClass$c([
2602
2538
  __decorateParam$c(4, ICommandService)
2603
2539
  ], ShortcutPanelController);
2604
2540
  const IUIController = createIdentifier("univer.ui.ui-controller");
2605
- var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$2 = { exports: {} };
2541
+ var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$1 = { exports: {} };
2606
2542
  (function(module) {
2607
2543
  function _typeof3(o) {
2608
2544
  "@babel/helpers - typeof";
@@ -2613,8 +2549,8 @@ var render$1 = {}, interopRequireWildcard = { exports: {} }, _typeof$2 = { expor
2613
2549
  }, module.exports.__esModule = !0, module.exports.default = module.exports, _typeof3(o);
2614
2550
  }
2615
2551
  __name(_typeof3, "_typeof"), module.exports = _typeof3, module.exports.__esModule = !0, module.exports.default = module.exports;
2616
- })(_typeof$2);
2617
- var _typeofExports = _typeof$2.exports;
2552
+ })(_typeof$1);
2553
+ var _typeofExports = _typeof$1.exports;
2618
2554
  (function(module) {
2619
2555
  var _typeof3 = _typeofExports.default;
2620
2556
  function _getRequireWildcardCache(e2) {
@@ -2661,7 +2597,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2661
2597
  }, "_regeneratorRuntime"), module.exports.__esModule = !0, module.exports.default = module.exports;
2662
2598
  var t2, e2 = {}, r2 = Object.prototype, n2 = r2.hasOwnProperty, o = Object.defineProperty || function(t3, e3, r3) {
2663
2599
  t3[e3] = r3.value;
2664
- }, i = typeof Symbol == "function" ? Symbol : {}, a = i.iterator || "@@iterator", c2 = i.asyncIterator || "@@asyncIterator", u2 = i.toStringTag || "@@toStringTag";
2600
+ }, i = typeof Symbol == "function" ? Symbol : {}, a = i.iterator || "@@iterator", c3 = i.asyncIterator || "@@asyncIterator", u2 = i.toStringTag || "@@toStringTag";
2665
2601
  function define(t3, e3, r3) {
2666
2602
  return Object.defineProperty(t3, e3, {
2667
2603
  value: r3,
@@ -2679,9 +2615,9 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2679
2615
  }, "define");
2680
2616
  }
2681
2617
  function wrap(t3, e3, r3, n3) {
2682
- var i2 = e3 && e3.prototype instanceof Generator ? e3 : Generator, a2 = Object.create(i2.prototype), c3 = new Context2(n3 || []);
2618
+ var i2 = e3 && e3.prototype instanceof Generator ? e3 : Generator, a2 = Object.create(i2.prototype), c4 = new Context2(n3 || []);
2683
2619
  return o(a2, "_invoke", {
2684
- value: makeInvokeMethod(t3, r3, c3)
2620
+ value: makeInvokeMethod(t3, r3, c4)
2685
2621
  }), a2;
2686
2622
  }
2687
2623
  __name(wrap, "wrap");
@@ -2726,9 +2662,9 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2726
2662
  __name(defineIteratorMethods, "defineIteratorMethods");
2727
2663
  function AsyncIterator(t3, e3) {
2728
2664
  function invoke(r4, o2, i2, a2) {
2729
- var c3 = tryCatch(t3[r4], t3, o2);
2730
- if (c3.type !== "throw") {
2731
- var u3 = c3.arg, h3 = u3.value;
2665
+ var c4 = tryCatch(t3[r4], t3, o2);
2666
+ if (c4.type !== "throw") {
2667
+ var u3 = c4.arg, h3 = u3.value;
2732
2668
  return h3 && _typeof3(h3) == "object" && n2.call(h3, "__await") ? e3.resolve(h3.__await).then(function(t4) {
2733
2669
  invoke("next", t4, i2, a2);
2734
2670
  }, function(t4) {
@@ -2739,7 +2675,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2739
2675
  return invoke("throw", t4, i2, a2);
2740
2676
  });
2741
2677
  }
2742
- a2(c3.arg);
2678
+ a2(c4.arg);
2743
2679
  }
2744
2680
  __name(invoke, "invoke");
2745
2681
  var r3;
@@ -2767,9 +2703,9 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2767
2703
  };
2768
2704
  }
2769
2705
  for (n3.method = i2, n3.arg = a2; ; ) {
2770
- var c3 = n3.delegate;
2771
- if (c3) {
2772
- var u3 = maybeInvokeDelegate(c3, n3);
2706
+ var c4 = n3.delegate;
2707
+ if (c4) {
2708
+ var u3 = maybeInvokeDelegate(c4, n3);
2773
2709
  if (u3) {
2774
2710
  if (u3 === y) continue;
2775
2711
  return u3;
@@ -2851,7 +2787,7 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2851
2787
  return {
2852
2788
  __await: t3
2853
2789
  };
2854
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c2, function() {
2790
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c3, function() {
2855
2791
  return this;
2856
2792
  }), e2.AsyncIterator = AsyncIterator, e2.async = function(t3, r3, n3, o2, i2) {
2857
2793
  i2 === void 0 && (i2 = Promise);
@@ -2895,11 +2831,11 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2895
2831
  var i2 = this.tryEntries[o2], a2 = i2.completion;
2896
2832
  if (i2.tryLoc === "root") return handle("end");
2897
2833
  if (i2.tryLoc <= this.prev) {
2898
- var c3 = n2.call(i2, "catchLoc"), u3 = n2.call(i2, "finallyLoc");
2899
- if (c3 && u3) {
2834
+ var c4 = n2.call(i2, "catchLoc"), u3 = n2.call(i2, "finallyLoc");
2835
+ if (c4 && u3) {
2900
2836
  if (this.prev < i2.catchLoc) return handle(i2.catchLoc, !0);
2901
2837
  if (this.prev < i2.finallyLoc) return handle(i2.finallyLoc);
2902
- } else if (c3) {
2838
+ } else if (c4) {
2903
2839
  if (this.prev < i2.catchLoc) return handle(i2.catchLoc, !0);
2904
2840
  } else {
2905
2841
  if (!u3) throw Error("try statement without catch or finally");
@@ -2957,9 +2893,9 @@ var interopRequireDefaultExports = interopRequireDefault.exports, regeneratorRun
2957
2893
  })(regeneratorRuntime);
2958
2894
  var regeneratorRuntimeExports = regeneratorRuntime.exports, asyncToGenerator = { exports: {} };
2959
2895
  (function(module) {
2960
- function asyncGeneratorStep(n2, t2, e2, r2, o, a, c2) {
2896
+ function asyncGeneratorStep(n2, t2, e2, r2, o, a, c3) {
2961
2897
  try {
2962
- var i = n2[a](c2), u2 = i.value;
2898
+ var i = n2[a](c3), u2 = i.value;
2963
2899
  } catch (n3) {
2964
2900
  return void e2(n3);
2965
2901
  }
@@ -2984,7 +2920,7 @@ var regeneratorRuntimeExports = regeneratorRuntime.exports, asyncToGenerator = {
2984
2920
  }
2985
2921
  __name(_asyncToGenerator, "_asyncToGenerator"), module.exports = _asyncToGenerator, module.exports.__esModule = !0, module.exports.default = module.exports;
2986
2922
  })(asyncToGenerator);
2987
- var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { exports: {} }, defineProperty = { exports: {} }, toPropertyKey$2 = { exports: {} }, toPrimitive$2 = { exports: {} };
2923
+ var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { exports: {} }, defineProperty = { exports: {} }, toPropertyKey$1 = { exports: {} }, toPrimitive$1 = { exports: {} };
2988
2924
  (function(module) {
2989
2925
  var _typeof3 = _typeofExports.default;
2990
2926
  function toPrimitive2(t2, r2) {
@@ -2998,8 +2934,8 @@ var asyncToGeneratorExports = asyncToGenerator.exports, objectSpread2 = { export
2998
2934
  return (r2 === "string" ? String : Number)(t2);
2999
2935
  }
3000
2936
  __name(toPrimitive2, "toPrimitive"), module.exports = toPrimitive2, module.exports.__esModule = !0, module.exports.default = module.exports;
3001
- })(toPrimitive$2);
3002
- var toPrimitiveExports = toPrimitive$2.exports;
2937
+ })(toPrimitive$1);
2938
+ var toPrimitiveExports = toPrimitive$1.exports;
3003
2939
  (function(module) {
3004
2940
  var _typeof3 = _typeofExports.default, toPrimitive2 = toPrimitiveExports;
3005
2941
  function toPropertyKey2(t2) {
@@ -3007,8 +2943,8 @@ var toPrimitiveExports = toPrimitive$2.exports;
3007
2943
  return _typeof3(i) == "symbol" ? i : i + "";
3008
2944
  }
3009
2945
  __name(toPropertyKey2, "toPropertyKey"), module.exports = toPropertyKey2, module.exports.__esModule = !0, module.exports.default = module.exports;
3010
- })(toPropertyKey$2);
3011
- var toPropertyKeyExports = toPropertyKey$2.exports;
2946
+ })(toPropertyKey$1);
2947
+ var toPropertyKeyExports = toPropertyKey$1.exports;
3012
2948
  (function(module) {
3013
2949
  var toPropertyKey2 = toPropertyKeyExports;
3014
2950
  function _defineProperty2(e2, r2, t2) {
@@ -3054,7 +2990,7 @@ Object.defineProperty(render$1, "__esModule", {
3054
2990
  });
3055
2991
  render$1._r = _r;
3056
2992
  render$1._u = _u;
3057
- var render_2 = render$1.render = render, unmount_1 = render$1.unmount = unmount, _regeneratorRuntime2 = _interopRequireDefault(regeneratorRuntimeExports), _asyncToGenerator2 = _interopRequireDefault(asyncToGeneratorExports), _typeof2 = _interopRequireDefault(_typeofExports), _objectSpread2$2 = _interopRequireDefault(objectSpread2Exports), ReactDOM = _interopRequireWildcard(ReactDOM$1), fullClone = (0, _objectSpread2$2.default)({}, ReactDOM), version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode, createRoot;
2993
+ var render_2 = render$1.render = render, unmount_1 = render$1.unmount = unmount, _regeneratorRuntime2 = _interopRequireDefault(regeneratorRuntimeExports), _asyncToGenerator2 = _interopRequireDefault(asyncToGeneratorExports), _typeof2 = _interopRequireDefault(_typeofExports), _objectSpread2$1 = _interopRequireDefault(objectSpread2Exports), ReactDOM = _interopRequireWildcard(ReactDOM$1), fullClone = (0, _objectSpread2$1.default)({}, ReactDOM), version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode, createRoot;
3058
2994
  try {
3059
2995
  var mainVersion = Number((version || "").split(".")[0]);
3060
2996
  mainVersion >= 18 && (createRoot = fullClone.createRoot);
@@ -3190,21 +3126,47 @@ const floatDomWrapper = "univer-float-dom-wrapper", floatDom = "univer-float-dom
3190
3126
  floatDomWrapper,
3191
3127
  floatDom
3192
3128
  }, FloatDomSingle = memo((props) => {
3193
- const { layer, id } = props, componentManager = useDependency(ComponentManager), position = useObservable(layer.position$), Component = typeof layer.componentKey == "string" ? componentManager.get(layer.componentKey) : layer.componentKey, layerProps = {
3129
+ const { layer, id } = props, componentManager = useDependency(ComponentManager), size$ = useMemo(() => layer.position$.pipe(
3130
+ distinctUntilChanged(
3131
+ (prev, curr) => prev.absolute.left === curr.absolute.left && prev.absolute.top === curr.absolute.top && prev.endX - prev.startX === curr.endX - curr.startX && prev.endY - prev.startY === curr.endY - curr.startY
3132
+ )
3133
+ ), [layer.position$]), position = useObservable(useMemo(() => layer.position$.pipe(first()), [layer.position$])), domRef = useRef(null), innerDomRef = useRef(null), transformRef = useRef(`transform: rotate(${position == null ? void 0 : position.rotate}deg) translate(${position == null ? void 0 : position.startX}px, ${position == null ? void 0 : position.startY}px)`), innerStyle = useRef({}), Component = typeof layer.componentKey == "string" ? componentManager.get(layer.componentKey) : layer.componentKey, layerProps = useMemo(() => ({
3194
3134
  data: layer.data,
3195
3135
  ...layer.props
3196
- };
3136
+ }), [layer.data, layer.props]);
3137
+ useEffect(() => {
3138
+ const subscription = layer.position$.subscribe((position2) => {
3139
+ transformRef.current = `rotate(${position2.rotate}deg) translate(${position2.startX}px, ${position2.startY}px)`, domRef.current && (domRef.current.style.transform = transformRef.current);
3140
+ }), sizeSubscription = size$.subscribe((size) => {
3141
+ if (domRef.current && (domRef.current.style.width = `${Math.max(size.endX - size.startX - 2, 0)}px`, domRef.current.style.height = `${Math.max(size.endY - size.startY - 2, 0)}px`), innerDomRef.current) {
3142
+ const style2 = {
3143
+ width: `${size.width - 4}px`,
3144
+ height: `${size.height - 4}px`,
3145
+ left: `${size.absolute.left ? 0 : "auto"}`,
3146
+ top: `${size.absolute.top ? 0 : "auto"}`,
3147
+ right: `${size.absolute.left ? "auto" : 0}`,
3148
+ bottom: `${size.absolute.top ? "auto" : 0}`
3149
+ };
3150
+ innerDomRef.current.style.width = style2.width, innerDomRef.current.style.height = style2.height, innerDomRef.current.style.left = style2.left, innerDomRef.current.style.top = style2.top, innerDomRef.current.style.right = style2.right, innerDomRef.current.style.bottom = style2.bottom, innerStyle.current = style2;
3151
+ }
3152
+ });
3153
+ return () => {
3154
+ subscription.unsubscribe(), sizeSubscription.unsubscribe();
3155
+ };
3156
+ }, [layer.position$, size$]);
3157
+ const component = useMemo(() => Component ? /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...layerProps }) : null, [Component, layerProps]);
3197
3158
  return position ? /* @__PURE__ */ jsxRuntimeExports.jsx(
3198
3159
  "div",
3199
3160
  {
3161
+ ref: domRef,
3200
3162
  className: styles$9.floatDomWrapper,
3201
3163
  style: {
3202
3164
  position: "absolute",
3203
- top: position.startY,
3204
- left: position.startX,
3165
+ top: 0,
3166
+ left: 0,
3205
3167
  width: Math.max(position.endX - position.startX - 2, 0),
3206
3168
  height: Math.max(position.endY - position.startY - 2, 0),
3207
- transform: `rotate(${position.rotate}deg)`,
3169
+ transform: transformRef.current,
3208
3170
  overflow: "hidden"
3209
3171
  },
3210
3172
  onPointerMove: /* @__PURE__ */ __name((e2) => {
@@ -3223,15 +3185,10 @@ const floatDomWrapper = "univer-float-dom-wrapper", floatDom = "univer-float-dom
3223
3185
  "div",
3224
3186
  {
3225
3187
  id,
3188
+ ref: innerDomRef,
3226
3189
  className: styles$9.floatDom,
3227
- style: {
3228
- width: position.width,
3229
- height: position.height,
3230
- position: "absolute",
3231
- ...position.absolute.left ? { left: 0 } : { right: 0 },
3232
- ...position.absolute.top ? { top: 0 } : { bottom: 0 }
3233
- },
3234
- children: Component ? /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...layerProps }) : null
3190
+ style: { position: "absolute", ...innerStyle.current },
3191
+ children: component
3235
3192
  }
3236
3193
  )
3237
3194
  }
@@ -4032,7 +3989,9 @@ function Sidebar() {
4032
3989
  }
4033
3990
  return copy;
4034
3991
  }, [sidebarOptions]);
4035
- useEffect(() => {
3992
+ useEffect(() => (scrollRef.current && sidebarService.setContainer(scrollRef.current), () => {
3993
+ sidebarService.setContainer(void 0);
3994
+ }), [sidebarService]), useEffect(() => {
4036
3995
  const handleScroll = /* @__PURE__ */ __name((e2) => {
4037
3996
  sidebarService.scrollEvent$.next(e2);
4038
3997
  }, "handleScroll"), scrollElement = scrollRef.current;
@@ -4088,7 +4047,7 @@ function ZenZone() {
4088
4047
  if (Component2)
4089
4048
  return Component2;
4090
4049
  }, [componentKey]);
4091
- return /* @__PURE__ */ jsxRuntimeExports.jsx("section", { style: hidden ? { display: "none" } : void 0, className: _className, children: Component && /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {}) });
4050
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("section", { style: hidden ? { opacity: 0, zIndex: -1 } : void 0, className: _className, children: Component && /* @__PURE__ */ jsxRuntimeExports.jsx(Component, {}) });
4092
4051
  }
4093
4052
  __name(ZenZone, "ZenZone");
4094
4053
  const IGlobalZoneService = createIdentifier("univer.global-zone-service"), globalZone = "univer-global-zone", globalZoneOpen = "univer-global-zone-open", globalZoneClose = "univer-global-zone-close", styles$4 = {
@@ -4131,13 +4090,13 @@ function DesktopWorkbench(props) {
4131
4090
  contextMenu = !0,
4132
4091
  mountContainer,
4133
4092
  onRendered
4134
- } = props, localeService = useDependency(LocaleService), themeService = useDependency(ThemeService), messageService = useDependency(IMessageService), instanceService = useDependency(IUniverInstanceService), contentRef = useRef(null), footerComponents = useComponentsOfPart(BuiltInUIPart.FOOTER), headerComponents = useComponentsOfPart(BuiltInUIPart.HEADER), headerMenuComponents = useComponentsOfPart(BuiltInUIPart.HEADER_MENU), contentComponents = useComponentsOfPart(BuiltInUIPart.CONTENT), leftSidebarComponents = useComponentsOfPart(BuiltInUIPart.LEFT_SIDEBAR), globalComponents = useComponentsOfPart(BuiltInUIPart.GLOBAL), [focusUnitType, setFocusUnitType] = useState(UniverInstanceType.UNIVER_UNKNOWN);
4093
+ } = props, localeService = useDependency(LocaleService), themeService = useDependency(ThemeService), messageService = useDependency(IMessageService), instanceService = useDependency(IUniverInstanceService), contentRef = useRef(null), footerComponents = useComponentsOfPart(BuiltInUIPart.FOOTER), headerComponents = useComponentsOfPart(BuiltInUIPart.HEADER), headerMenuComponents = useComponentsOfPart(BuiltInUIPart.HEADER_MENU), contentComponents = useComponentsOfPart(BuiltInUIPart.CONTENT), leftSidebarComponents = useComponentsOfPart(BuiltInUIPart.LEFT_SIDEBAR), globalComponents = useComponentsOfPart(BuiltInUIPart.GLOBAL), [docSnapShot, setDocSnapShot] = useState(null);
4135
4094
  useEffect(() => {
4136
4095
  const sub = instanceService.focused$.subscribe((id) => {
4137
4096
  if (id == null)
4138
4097
  return;
4139
- const instanceType = instanceService.getUnitType(id);
4140
- setFocusUnitType(instanceType);
4098
+ const instanceType = instanceService.getUnitType(id), instance = instanceService.getUnit(id);
4099
+ instanceType === UniverInstanceType.UNIVER_DOC && instance && setDocSnapShot(instance.getSnapshot());
4141
4100
  });
4142
4101
  return () => {
4143
4102
  sub.unsubscribe();
@@ -4173,7 +4132,7 @@ function DesktopWorkbench(props) {
4173
4132
  className: clsx$1(
4174
4133
  styles$3.workbenchContainerContent,
4175
4134
  {
4176
- [styles$3.workbenchContainerDocContent]: focusUnitType === UniverInstanceType.UNIVER_DOC
4135
+ [styles$3.workbenchContainerDocContent]: (docSnapShot == null ? void 0 : docSnapShot.documentStyle.documentFlavor) === DocumentFlavor.TRADITIONAL
4177
4136
  }
4178
4137
  ),
4179
4138
  children: [
@@ -4294,17 +4253,7 @@ function createContainer$1(id) {
4294
4253
  return element2.id = id, element2;
4295
4254
  }
4296
4255
  __name(createContainer$1, "createContainer$1");
4297
- const appLayout = "univer-app-layout", appHeader = "univer-app-header", appContainer = "univer-app-container", appContainerHeader = "univer-app-container-header", appContainerWrapper = "univer-app-container-wrapper", appContainerContent = "univer-app-container-content", appContainerCanvas = "univer-app-container-canvas", appContainerLeftSidebar = "univer-app-container-left-sidebar", appContainerSidebar = "univer-app-container-sidebar", styles$2 = {
4298
- appLayout,
4299
- appHeader,
4300
- appContainer,
4301
- appContainerHeader,
4302
- appContainerWrapper,
4303
- appContainerContent,
4304
- appContainerCanvas,
4305
- appContainerLeftSidebar,
4306
- appContainerSidebar
4307
- }, mobileMenuContainer = "univer-mobile-menu-container", mobileMenuItem = "univer-mobile-menu-item", styles$1 = {
4256
+ const mobileMenuContainer = "univer-mobile-menu-container", mobileMenuItem = "univer-mobile-menu-item", styles$2 = {
4308
4257
  mobileMenuContainer,
4309
4258
  mobileMenuItem
4310
4259
  };
@@ -4322,7 +4271,7 @@ function MobileMenu(props) {
4322
4271
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
4323
4272
  "div",
4324
4273
  {
4325
- className: styles$1.mobileMenuContainer,
4274
+ className: styles$2.mobileMenuContainer,
4326
4275
  style: {
4327
4276
  gridTemplateColumns: `repeat(${Math.min(2, flattedMenuItems.length)}, 48px)`
4328
4277
  },
@@ -4342,9 +4291,9 @@ function MobileMenuItem(props) {
4342
4291
  const { menuItem, onClick } = props, { id, type, title, label, icon } = menuItem;
4343
4292
  if (type !== MenuItemType.BUTTON)
4344
4293
  throw new Error(`[MobileMenuItem]: on mobile devices only "BUTTON" type menu items are supported. Please check "${id}".`);
4345
- const disabled = useObservable$1(menuItem.disabled$, !1), activated = useObservable$1(menuItem.activated$, !1), hidden = useObservable$1(menuItem.hidden$, !1), value = useObservable$1(menuItem.value$), className = clsx$1(styles$1.mobileMenuItem, {
4346
- [styles$1.mobileMenuItemActivated]: activated,
4347
- [styles$1.mobileMenuItemHidden]: hidden
4294
+ const disabled = useObservable$1(menuItem.disabled$, !1), activated = useObservable$1(menuItem.activated$, !1), hidden = useObservable$1(menuItem.hidden$, !1), value = useObservable$1(menuItem.value$), className = clsx$1(styles$2.mobileMenuItem, {
4295
+ [styles$2.mobileMenuItemActivated]: activated,
4296
+ [styles$2.mobileMenuItemHidden]: hidden
4348
4297
  });
4349
4298
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
4350
4299
  "button",
@@ -4395,6 +4344,17 @@ function MobileContextMenu() {
4395
4344
  ) }) });
4396
4345
  }
4397
4346
  __name(MobileContextMenu, "MobileContextMenu");
4347
+ const appLayout = "univer-app-layout", appHeader = "univer-app-header", appContainer = "univer-app-container", appContainerHeader = "univer-app-container-header", appContainerWrapper = "univer-app-container-wrapper", appContainerContent = "univer-app-container-content", appContainerCanvas = "univer-app-container-canvas", appContainerLeftSidebar = "univer-app-container-left-sidebar", appContainerSidebar = "univer-app-container-sidebar", styles$1 = {
4348
+ appLayout,
4349
+ appHeader,
4350
+ appContainer,
4351
+ appContainerHeader,
4352
+ appContainerWrapper,
4353
+ appContainerContent,
4354
+ appContainerCanvas,
4355
+ appContainerLeftSidebar,
4356
+ appContainerSidebar
4357
+ };
4398
4358
  function MobileApp(props) {
4399
4359
  const {
4400
4360
  header = !0,
@@ -4425,17 +4385,17 @@ function MobileApp(props) {
4425
4385
  subscriptions.forEach((subscription) => subscription.unsubscribe()), document.body.removeChild(portalContainer);
4426
4386
  };
4427
4387
  }, [localeService, messageService, mountContainer, portalContainer, themeService.currentTheme$]), /* @__PURE__ */ jsxRuntimeExports.jsxs(ConfigProvider, { locale: locale == null ? void 0 : locale.design, mountContainer: portalContainer, children: [
4428
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.appLayout, tabIndex: -1, onBlur: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onBlur"), children: [
4429
- header && /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$2.appContainerHeader }),
4430
- /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$2.appContainer, children: [
4431
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.appContainerWrapper, children: [
4432
- /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$2.appContainerLeftSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: leftSidebarComponents }, "left-sidebar") }),
4433
- /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$2.appContainerContent, children: [
4434
- /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$2.appHeader, children: header && /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: headerComponents }, "header") }),
4388
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1.appLayout, tabIndex: -1, onBlur: /* @__PURE__ */ __name((e2) => e2.stopPropagation(), "onBlur"), children: [
4389
+ header && /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$1.appContainerHeader }),
4390
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$1.appContainer, children: [
4391
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1.appContainerWrapper, children: [
4392
+ /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$1.appContainerLeftSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: leftSidebarComponents }, "left-sidebar") }),
4393
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { className: styles$1.appContainerContent, children: [
4394
+ /* @__PURE__ */ jsxRuntimeExports.jsx("header", { className: styles$1.appHeader, children: header && /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: headerComponents }, "header") }),
4435
4395
  /* @__PURE__ */ jsxRuntimeExports.jsx(
4436
4396
  "section",
4437
4397
  {
4438
- className: styles$2.appContainerCanvas,
4398
+ className: styles$1.appContainerCanvas,
4439
4399
  ref: contentRef,
4440
4400
  "data-range-selector": !0,
4441
4401
  onContextMenu: /* @__PURE__ */ __name((e2) => e2.preventDefault(), "onContextMenu"),
@@ -4443,9 +4403,9 @@ function MobileApp(props) {
4443
4403
  }
4444
4404
  )
4445
4405
  ] }),
4446
- /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$2.appContainerSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Sidebar, {}) })
4406
+ /* @__PURE__ */ jsxRuntimeExports.jsx("aside", { className: styles$1.appContainerSidebar, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Sidebar, {}) })
4447
4407
  ] }),
4448
- footer && /* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: styles$2.appFooter, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: footerComponents }, "footer") }),
4408
+ footer && /* @__PURE__ */ jsxRuntimeExports.jsx("footer", { className: styles$1.appFooter, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ComponentContainer, { components: footerComponents }, "footer") }),
4449
4409
  /* @__PURE__ */ jsxRuntimeExports.jsx(ZenZone, {})
4450
4410
  ] })
4451
4411
  ] }),
@@ -4768,7 +4728,6 @@ DesktopConfirmService = __decorateClass$6([
4768
4728
  __decorateParam$6(0, Inject(Injector)),
4769
4729
  __decorateParam$6(1, IUIPartsService)
4770
4730
  ], DesktopConfirmService);
4771
- const IDialogService = createIdentifier("univer.ui.dialog-service");
4772
4731
  function DialogPart() {
4773
4732
  const dialogService = useDependency(IDialogService), [dialogOptions, setDialogOptions] = useState([]);
4774
4733
  useEffect(() => {
@@ -6453,42 +6412,42 @@ const _DesktopMessageService = class _DesktopMessageService {
6453
6412
  };
6454
6413
  __name(_DesktopMessageService, "DesktopMessageService");
6455
6414
  let DesktopMessageService = _DesktopMessageService;
6456
- function _arrayLikeToArray$1(r2, a) {
6415
+ function _arrayLikeToArray(r2, a) {
6457
6416
  (a == null || a > r2.length) && (a = r2.length);
6458
6417
  for (var e2 = 0, n2 = Array(a); e2 < a; e2++) n2[e2] = r2[e2];
6459
6418
  return n2;
6460
6419
  }
6461
- __name(_arrayLikeToArray$1, "_arrayLikeToArray$1");
6420
+ __name(_arrayLikeToArray, "_arrayLikeToArray");
6462
6421
  function _arrayWithoutHoles(r2) {
6463
- if (Array.isArray(r2)) return _arrayLikeToArray$1(r2);
6422
+ if (Array.isArray(r2)) return _arrayLikeToArray(r2);
6464
6423
  }
6465
6424
  __name(_arrayWithoutHoles, "_arrayWithoutHoles");
6466
6425
  function _iterableToArray(r2) {
6467
6426
  if (typeof Symbol < "u" && r2[Symbol.iterator] != null || r2["@@iterator"] != null) return Array.from(r2);
6468
6427
  }
6469
6428
  __name(_iterableToArray, "_iterableToArray");
6470
- function _unsupportedIterableToArray$1(r2, a) {
6429
+ function _unsupportedIterableToArray(r2, a) {
6471
6430
  if (r2) {
6472
- if (typeof r2 == "string") return _arrayLikeToArray$1(r2, a);
6431
+ if (typeof r2 == "string") return _arrayLikeToArray(r2, a);
6473
6432
  var t2 = {}.toString.call(r2).slice(8, -1);
6474
- return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray$1(r2, a) : void 0;
6433
+ return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a) : void 0;
6475
6434
  }
6476
6435
  }
6477
- __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray$1");
6436
+ __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
6478
6437
  function _nonIterableSpread() {
6479
6438
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
6480
6439
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6481
6440
  }
6482
6441
  __name(_nonIterableSpread, "_nonIterableSpread");
6483
6442
  function _toConsumableArray(r2) {
6484
- return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray$1(r2) || _nonIterableSpread();
6443
+ return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
6485
6444
  }
6486
6445
  __name(_toConsumableArray, "_toConsumableArray");
6487
- function _arrayWithHoles$1(r2) {
6446
+ function _arrayWithHoles(r2) {
6488
6447
  if (Array.isArray(r2)) return r2;
6489
6448
  }
6490
- __name(_arrayWithHoles$1, "_arrayWithHoles$1");
6491
- function _iterableToArrayLimit$1(r2, l2) {
6449
+ __name(_arrayWithHoles, "_arrayWithHoles");
6450
+ function _iterableToArrayLimit(r2, l2) {
6492
6451
  var t2 = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
6493
6452
  if (t2 != null) {
6494
6453
  var e2, n2, i, u2, a = [], f2 = !0, o = !1;
@@ -6509,16 +6468,16 @@ function _iterableToArrayLimit$1(r2, l2) {
6509
6468
  return a;
6510
6469
  }
6511
6470
  }
6512
- __name(_iterableToArrayLimit$1, "_iterableToArrayLimit$1");
6513
- function _nonIterableRest$1() {
6471
+ __name(_iterableToArrayLimit, "_iterableToArrayLimit");
6472
+ function _nonIterableRest() {
6514
6473
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6515
6474
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6516
6475
  }
6517
- __name(_nonIterableRest$1, "_nonIterableRest$1");
6518
- function _slicedToArray$1(r2, e2) {
6519
- return _arrayWithHoles$1(r2) || _iterableToArrayLimit$1(r2, e2) || _unsupportedIterableToArray$1(r2, e2) || _nonIterableRest$1();
6476
+ __name(_nonIterableRest, "_nonIterableRest");
6477
+ function _slicedToArray(r2, e2) {
6478
+ return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e2) || _unsupportedIterableToArray(r2, e2) || _nonIterableRest();
6520
6479
  }
6521
- __name(_slicedToArray$1, "_slicedToArray$1");
6480
+ __name(_slicedToArray, "_slicedToArray");
6522
6481
  function _objectWithoutPropertiesLoose(r2, e2) {
6523
6482
  if (r2 == null) return {};
6524
6483
  var t2 = {};
@@ -6539,41 +6498,41 @@ function _objectWithoutProperties(e2, t2) {
6539
6498
  return i;
6540
6499
  }
6541
6500
  __name(_objectWithoutProperties, "_objectWithoutProperties");
6542
- function _typeof$1(o) {
6501
+ function _typeof(o) {
6543
6502
  "@babel/helpers - typeof";
6544
- return _typeof$1 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6503
+ return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6545
6504
  return typeof o2;
6546
6505
  } : function(o2) {
6547
6506
  return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
6548
- }, _typeof$1(o);
6507
+ }, _typeof(o);
6549
6508
  }
6550
- __name(_typeof$1, "_typeof$1");
6551
- function toPrimitive$1(t2, r2) {
6552
- if (_typeof$1(t2) != "object" || !t2) return t2;
6509
+ __name(_typeof, "_typeof");
6510
+ function toPrimitive(t2, r2) {
6511
+ if (_typeof(t2) != "object" || !t2) return t2;
6553
6512
  var e2 = t2[Symbol.toPrimitive];
6554
6513
  if (e2 !== void 0) {
6555
6514
  var i = e2.call(t2, r2 || "default");
6556
- if (_typeof$1(i) != "object") return i;
6515
+ if (_typeof(i) != "object") return i;
6557
6516
  throw new TypeError("@@toPrimitive must return a primitive value.");
6558
6517
  }
6559
6518
  return (r2 === "string" ? String : Number)(t2);
6560
6519
  }
6561
- __name(toPrimitive$1, "toPrimitive$1");
6562
- function toPropertyKey$1(t2) {
6563
- var i = toPrimitive$1(t2, "string");
6564
- return _typeof$1(i) == "symbol" ? i : i + "";
6520
+ __name(toPrimitive, "toPrimitive");
6521
+ function toPropertyKey(t2) {
6522
+ var i = toPrimitive(t2, "string");
6523
+ return _typeof(i) == "symbol" ? i : i + "";
6565
6524
  }
6566
- __name(toPropertyKey$1, "toPropertyKey$1");
6567
- function _defineProperty$1(e2, r2, t2) {
6568
- return (r2 = toPropertyKey$1(r2)) in e2 ? Object.defineProperty(e2, r2, {
6525
+ __name(toPropertyKey, "toPropertyKey");
6526
+ function _defineProperty(e2, r2, t2) {
6527
+ return (r2 = toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, {
6569
6528
  value: t2,
6570
6529
  enumerable: !0,
6571
6530
  configurable: !0,
6572
6531
  writable: !0
6573
6532
  }) : e2[r2] = t2, e2;
6574
6533
  }
6575
- __name(_defineProperty$1, "_defineProperty$1");
6576
- function ownKeys$1(e2, r2) {
6534
+ __name(_defineProperty, "_defineProperty");
6535
+ function ownKeys(e2, r2) {
6577
6536
  var t2 = Object.keys(e2);
6578
6537
  if (Object.getOwnPropertySymbols) {
6579
6538
  var o = Object.getOwnPropertySymbols(e2);
@@ -6583,19 +6542,19 @@ function ownKeys$1(e2, r2) {
6583
6542
  }
6584
6543
  return t2;
6585
6544
  }
6586
- __name(ownKeys$1, "ownKeys$1");
6587
- function _objectSpread2$1(e2) {
6545
+ __name(ownKeys, "ownKeys");
6546
+ function _objectSpread2(e2) {
6588
6547
  for (var r2 = 1; r2 < arguments.length; r2++) {
6589
6548
  var t2 = arguments[r2] != null ? arguments[r2] : {};
6590
- r2 % 2 ? ownKeys$1(Object(t2), !0).forEach(function(r3) {
6591
- _defineProperty$1(e2, r3, t2[r3]);
6592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys$1(Object(t2)).forEach(function(r3) {
6549
+ r2 % 2 ? ownKeys(Object(t2), !0).forEach(function(r3) {
6550
+ _defineProperty(e2, r3, t2[r3]);
6551
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
6593
6552
  Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
6594
6553
  });
6595
6554
  }
6596
6555
  return e2;
6597
6556
  }
6598
- __name(_objectSpread2$1, "_objectSpread2$1");
6557
+ __name(_objectSpread2, "_objectSpread2");
6599
6558
  function _extends() {
6600
6559
  return _extends = Object.assign ? Object.assign.bind() : function(n2) {
6601
6560
  for (var e2 = 1; e2 < arguments.length; e2++) {
@@ -6646,15 +6605,6 @@ var classnames = { exports: {} };
6646
6605
  })(classnames);
6647
6606
  var classnamesExports = classnames.exports;
6648
6607
  const clsx = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
6649
- function _typeof(o) {
6650
- "@babel/helpers - typeof";
6651
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
6652
- return typeof o2;
6653
- } : function(o2) {
6654
- return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
6655
- }, _typeof(o);
6656
- }
6657
- __name(_typeof, "_typeof");
6658
6608
  function isDOM(node) {
6659
6609
  return node instanceof HTMLElement || node instanceof SVGElement;
6660
6610
  }
@@ -6684,7 +6634,7 @@ var reactIs = { exports: {} }, reactIs_production_min = {};
6684
6634
  * This source code is licensed under the MIT license found in the
6685
6635
  * LICENSE file in the root directory of this source tree.
6686
6636
  */
6687
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
6637
+ var b = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
6688
6638
  u = Symbol.for("react.module.reference");
6689
6639
  function v(a) {
6690
6640
  if (typeof a == "object" && a !== null) {
@@ -6711,7 +6661,7 @@ function v(a) {
6711
6661
  return r2;
6712
6662
  }
6713
6663
  }
6714
- case c:
6664
+ case c2:
6715
6665
  return r2;
6716
6666
  }
6717
6667
  }
@@ -6724,7 +6674,7 @@ reactIs_production_min.ForwardRef = l;
6724
6674
  reactIs_production_min.Fragment = d;
6725
6675
  reactIs_production_min.Lazy = q;
6726
6676
  reactIs_production_min.Memo = p;
6727
- reactIs_production_min.Portal = c;
6677
+ reactIs_production_min.Portal = c2;
6728
6678
  reactIs_production_min.Profiler = f;
6729
6679
  reactIs_production_min.StrictMode = e;
6730
6680
  reactIs_production_min.Suspense = m;
@@ -6757,7 +6707,7 @@ reactIs_production_min.isMemo = function(a) {
6757
6707
  return v(a) === p;
6758
6708
  };
6759
6709
  reactIs_production_min.isPortal = function(a) {
6760
- return v(a) === c;
6710
+ return v(a) === c2;
6761
6711
  };
6762
6712
  reactIs_production_min.isProfiler = function(a) {
6763
6713
  return v(a) === f;
@@ -6795,7 +6745,7 @@ __name(_classCallCheck, "_classCallCheck");
6795
6745
  function _defineProperties(e2, r2) {
6796
6746
  for (var t2 = 0; t2 < r2.length; t2++) {
6797
6747
  var o = r2[t2];
6798
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e2, toPropertyKey$1(o.key), o);
6748
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e2, toPropertyKey(o.key), o);
6799
6749
  }
6800
6750
  }
6801
6751
  __name(_defineProperties, "_defineProperties");
@@ -6847,7 +6797,7 @@ function _assertThisInitialized(e2) {
6847
6797
  }
6848
6798
  __name(_assertThisInitialized, "_assertThisInitialized");
6849
6799
  function _possibleConstructorReturn(t2, e2) {
6850
- if (e2 && (_typeof$1(e2) == "object" || typeof e2 == "function")) return e2;
6800
+ if (e2 && (_typeof(e2) == "object" || typeof e2 == "function")) return e2;
6851
6801
  if (e2 !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
6852
6802
  return _assertThisInitialized(t2);
6853
6803
  }
@@ -6888,52 +6838,6 @@ function useEvent(callback) {
6888
6838
  return memoFn;
6889
6839
  }
6890
6840
  __name(useEvent, "useEvent");
6891
- function _arrayWithHoles(r2) {
6892
- if (Array.isArray(r2)) return r2;
6893
- }
6894
- __name(_arrayWithHoles, "_arrayWithHoles");
6895
- function _iterableToArrayLimit(r2, l2) {
6896
- var t2 = r2 == null ? null : typeof Symbol < "u" && r2[Symbol.iterator] || r2["@@iterator"];
6897
- if (t2 != null) {
6898
- var e2, n2, i, u2, a = [], f2 = !0, o = !1;
6899
- try {
6900
- if (i = (t2 = t2.call(r2)).next, l2 !== 0) for (; !(f2 = (e2 = i.call(t2)).done) && (a.push(e2.value), a.length !== l2); f2 = !0) ;
6901
- } catch (r3) {
6902
- o = !0, n2 = r3;
6903
- } finally {
6904
- try {
6905
- if (!f2 && t2.return != null && (u2 = t2.return(), Object(u2) !== u2)) return;
6906
- } finally {
6907
- if (o) throw n2;
6908
- }
6909
- }
6910
- return a;
6911
- }
6912
- }
6913
- __name(_iterableToArrayLimit, "_iterableToArrayLimit");
6914
- function _arrayLikeToArray(r2, a) {
6915
- (a == null || a > r2.length) && (a = r2.length);
6916
- for (var e2 = 0, n2 = Array(a); e2 < a; e2++) n2[e2] = r2[e2];
6917
- return n2;
6918
- }
6919
- __name(_arrayLikeToArray, "_arrayLikeToArray");
6920
- function _unsupportedIterableToArray(r2, a) {
6921
- if (r2) {
6922
- if (typeof r2 == "string") return _arrayLikeToArray(r2, a);
6923
- var t2 = {}.toString.call(r2).slice(8, -1);
6924
- return t2 === "Object" && r2.constructor && (t2 = r2.constructor.name), t2 === "Map" || t2 === "Set" ? Array.from(r2) : t2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a) : void 0;
6925
- }
6926
- }
6927
- __name(_unsupportedIterableToArray, "_unsupportedIterableToArray");
6928
- function _nonIterableRest() {
6929
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6930
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
6931
- }
6932
- __name(_nonIterableRest, "_nonIterableRest");
6933
- function _slicedToArray(r2, e2) {
6934
- return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e2) || _unsupportedIterableToArray(r2, e2) || _nonIterableRest();
6935
- }
6936
- __name(_slicedToArray, "_slicedToArray");
6937
6841
  function canUseDom() {
6938
6842
  return !!(typeof window < "u" && window.document && window.document.createElement);
6939
6843
  }
@@ -6951,54 +6855,6 @@ function useSafeState(defaultValue) {
6951
6855
  return __name(safeSetState, "safeSetState"), [value, safeSetState];
6952
6856
  }
6953
6857
  __name(useSafeState, "useSafeState");
6954
- function toPrimitive(t2, r2) {
6955
- if (_typeof(t2) != "object" || !t2) return t2;
6956
- var e2 = t2[Symbol.toPrimitive];
6957
- if (e2 !== void 0) {
6958
- var i = e2.call(t2, r2 || "default");
6959
- if (_typeof(i) != "object") return i;
6960
- throw new TypeError("@@toPrimitive must return a primitive value.");
6961
- }
6962
- return (r2 === "string" ? String : Number)(t2);
6963
- }
6964
- __name(toPrimitive, "toPrimitive");
6965
- function toPropertyKey(t2) {
6966
- var i = toPrimitive(t2, "string");
6967
- return _typeof(i) == "symbol" ? i : i + "";
6968
- }
6969
- __name(toPropertyKey, "toPropertyKey");
6970
- function _defineProperty(e2, r2, t2) {
6971
- return (r2 = toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, {
6972
- value: t2,
6973
- enumerable: !0,
6974
- configurable: !0,
6975
- writable: !0
6976
- }) : e2[r2] = t2, e2;
6977
- }
6978
- __name(_defineProperty, "_defineProperty");
6979
- function ownKeys(e2, r2) {
6980
- var t2 = Object.keys(e2);
6981
- if (Object.getOwnPropertySymbols) {
6982
- var o = Object.getOwnPropertySymbols(e2);
6983
- r2 && (o = o.filter(function(r3) {
6984
- return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
6985
- })), t2.push.apply(t2, o);
6986
- }
6987
- return t2;
6988
- }
6989
- __name(ownKeys, "ownKeys");
6990
- function _objectSpread2(e2) {
6991
- for (var r2 = 1; r2 < arguments.length; r2++) {
6992
- var t2 = arguments[r2] != null ? arguments[r2] : {};
6993
- r2 % 2 ? ownKeys(Object(t2), !0).forEach(function(r3) {
6994
- _defineProperty(e2, r3, t2[r3]);
6995
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
6996
- Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
6997
- });
6998
- }
6999
- return e2;
7000
- }
7001
- __name(_objectSpread2, "_objectSpread2");
7002
6858
  function useSyncState(defaultValue) {
7003
6859
  var _React$useReducer = React.useReducer(function(x) {
7004
6860
  return x + 1;
@@ -7046,7 +6902,7 @@ __name(getVendorPrefixedEventName, "getVendorPrefixedEventName");
7046
6902
  var internalAnimationEndName = getVendorPrefixedEventName("animationend"), internalTransitionEndName = getVendorPrefixedEventName("transitionend"), supportTransition = !!(internalAnimationEndName && internalTransitionEndName), animationEndName = internalAnimationEndName || "animationend", transitionEndName = internalTransitionEndName || "transitionend";
7047
6903
  function getTransitionName(transitionName, transitionType) {
7048
6904
  if (!transitionName) return null;
7049
- if (_typeof$1(transitionName) === "object") {
6905
+ if (_typeof(transitionName) === "object") {
7050
6906
  var type = transitionType.replace(/-\w/g, function(match2) {
7051
6907
  return match2[1].toUpperCase();
7052
6908
  });
@@ -7135,7 +6991,7 @@ function isActive(step) {
7135
6991
  }
7136
6992
  __name(isActive, "isActive");
7137
6993
  const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callback) {
7138
- var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray$1(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray$1(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
6994
+ var _useState = useSafeState(STEP_NONE), _useState2 = _slicedToArray(_useState, 2), step = _useState2[0], setStep = _useState2[1], _useNextFrame = useNextFrame(), _useNextFrame2 = _slicedToArray(_useNextFrame, 2), nextFrame = _useNextFrame2[0], cancelNextFrame = _useNextFrame2[1];
7139
6995
  function startQueue() {
7140
6996
  setStep(STEP_PREPARE, !0);
7141
6997
  }
@@ -7158,7 +7014,7 @@ const useStepQueue = /* @__PURE__ */ __name(function(status, prepareOnly, callba
7158
7014
  }, []), [startQueue, step];
7159
7015
  }, "useStepQueue");
7160
7016
  function useStatus(supportMotion, visible, getElement, _ref) {
7161
- var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray$1(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState(STATUS_NONE), _useSyncState2 = _slicedToArray$1(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray$1(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
7017
+ var _ref$motionEnter = _ref.motionEnter, motionEnter = _ref$motionEnter === void 0 ? !0 : _ref$motionEnter, _ref$motionAppear = _ref.motionAppear, motionAppear = _ref$motionAppear === void 0 ? !0 : _ref$motionAppear, _ref$motionLeave = _ref.motionLeave, motionLeave = _ref$motionLeave === void 0 ? !0 : _ref$motionLeave, motionDeadline = _ref.motionDeadline, motionLeaveImmediately = _ref.motionLeaveImmediately, onAppearPrepare = _ref.onAppearPrepare, onEnterPrepare = _ref.onEnterPrepare, onLeavePrepare = _ref.onLeavePrepare, onAppearStart = _ref.onAppearStart, onEnterStart = _ref.onEnterStart, onLeaveStart = _ref.onLeaveStart, onAppearActive = _ref.onAppearActive, onEnterActive = _ref.onEnterActive, onLeaveActive = _ref.onLeaveActive, onAppearEnd = _ref.onAppearEnd, onEnterEnd = _ref.onEnterEnd, onLeaveEnd = _ref.onLeaveEnd, onVisibleChanged = _ref.onVisibleChanged, _useState = useSafeState(), _useState2 = _slicedToArray(_useState, 2), asyncVisible = _useState2[0], setAsyncVisible = _useState2[1], _useSyncState = useSyncState(STATUS_NONE), _useSyncState2 = _slicedToArray(_useSyncState, 2), getStatus = _useSyncState2[0], setStatus = _useSyncState2[1], _useState3 = useSafeState(null), _useState4 = _slicedToArray(_useState3, 2), style2 = _useState4[0], setStyle = _useState4[1], currentStatus = getStatus(), mountedRef = useRef(!1), deadlineRef = useRef(null);
7162
7018
  function getDomElement() {
7163
7019
  return getElement();
7164
7020
  }
@@ -7177,14 +7033,14 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7177
7033
  status === STATUS_APPEAR && currentActive ? canEnd = onAppearEnd == null ? void 0 : onAppearEnd(element2, event) : status === STATUS_ENTER && currentActive ? canEnd = onEnterEnd == null ? void 0 : onEnterEnd(element2, event) : status === STATUS_LEAVE && currentActive && (canEnd = onLeaveEnd == null ? void 0 : onLeaveEnd(element2, event)), currentActive && canEnd !== !1 && updateMotionEndStatus();
7178
7034
  }
7179
7035
  }
7180
- }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray$1(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
7036
+ }), _useDomMotionEvents = useDomMotionEvents(onInternalMotionEnd), _useDomMotionEvents2 = _slicedToArray(_useDomMotionEvents, 1), patchMotionEvents = _useDomMotionEvents2[0], getEventHandlers = /* @__PURE__ */ __name(function(targetStatus) {
7181
7037
  switch (targetStatus) {
7182
7038
  case STATUS_APPEAR:
7183
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
7039
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onAppearPrepare), STEP_START, onAppearStart), STEP_ACTIVE, onAppearActive);
7184
7040
  case STATUS_ENTER:
7185
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
7041
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onEnterPrepare), STEP_START, onEnterStart), STEP_ACTIVE, onEnterActive);
7186
7042
  case STATUS_LEAVE:
7187
- return _defineProperty$1(_defineProperty$1(_defineProperty$1({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
7043
+ return _defineProperty(_defineProperty(_defineProperty({}, STEP_PREPARE, onLeavePrepare), STEP_START, onLeaveStart), STEP_ACTIVE, onLeaveActive);
7188
7044
  default:
7189
7045
  return {};
7190
7046
  }
@@ -7204,7 +7060,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7204
7060
  deadline: !0
7205
7061
  });
7206
7062
  }, motionDeadline))), step === STEP_PREPARED && updateMotionEndStatus(), DoStep;
7207
- }), _useStepQueue2 = _slicedToArray$1(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
7063
+ }), _useStepQueue2 = _slicedToArray(_useStepQueue, 2), startStep = _useStepQueue2[0], step = _useStepQueue2[1], active = isActive(step);
7208
7064
  activeRef.current = active, useIsomorphicLayoutEffect(function() {
7209
7065
  setAsyncVisible(visible);
7210
7066
  var isMounted = mountedRef.current;
@@ -7228,14 +7084,14 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7228
7084
  asyncVisible && (firstMountChangeRef.current = !0), asyncVisible !== void 0 && currentStatus === STATUS_NONE && ((firstMountChangeRef.current || asyncVisible) && (onVisibleChanged == null || onVisibleChanged(asyncVisible)), firstMountChangeRef.current = !0);
7229
7085
  }, [asyncVisible, currentStatus]);
7230
7086
  var mergedStyle = style2;
7231
- return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2$1({
7087
+ return eventHandlers[STEP_PREPARE] && step === STEP_START && (mergedStyle = _objectSpread2({
7232
7088
  transition: "none"
7233
7089
  }, mergedStyle)), [currentStatus, step, mergedStyle, asyncVisible != null ? asyncVisible : visible];
7234
7090
  }
7235
7091
  __name(useStatus, "useStatus");
7236
7092
  function genCSSMotion(config) {
7237
7093
  var transitionSupport = config;
7238
- _typeof$1(config) === "object" && (transitionSupport = config.transitionSupport);
7094
+ _typeof(config) === "object" && (transitionSupport = config.transitionSupport);
7239
7095
  function isSupportTransition(props, contextMotion) {
7240
7096
  return !!(props.motionName && transitionSupport && contextMotion !== !1);
7241
7097
  }
@@ -7250,19 +7106,19 @@ function genCSSMotion(config) {
7250
7106
  }
7251
7107
  }
7252
7108
  __name(getDomElement, "getDomElement");
7253
- var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray$1(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React.useRef(mergedVisible);
7109
+ var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3], renderedRef = React.useRef(mergedVisible);
7254
7110
  mergedVisible && (renderedRef.current = !0);
7255
7111
  var setNodeRef = React.useCallback(function(node) {
7256
7112
  nodeRef.current = node, fillRef(ref, node);
7257
- }, [ref]), motionChildren, mergedProps = _objectSpread2$1(_objectSpread2$1({}, eventProps), {}, {
7113
+ }, [ref]), motionChildren, mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
7258
7114
  visible
7259
7115
  });
7260
7116
  if (!children)
7261
7117
  motionChildren = null;
7262
7118
  else if (status === STATUS_NONE)
7263
- mergedVisible ? motionChildren = children(_objectSpread2$1({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7119
+ mergedVisible ? motionChildren = children(_objectSpread2({}, mergedProps), setNodeRef) : !removeOnLeave && renderedRef.current && leavedClassName ? motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7264
7120
  className: leavedClassName
7265
- }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7121
+ }), setNodeRef) : forceRender || !removeOnLeave && !leavedClassName ? motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7266
7122
  style: {
7267
7123
  display: "none"
7268
7124
  }
@@ -7271,8 +7127,8 @@ function genCSSMotion(config) {
7271
7127
  var statusSuffix;
7272
7128
  statusStep === STEP_PREPARE ? statusSuffix = "prepare" : isActive(statusStep) ? statusSuffix = "active" : statusStep === STEP_START && (statusSuffix = "start");
7273
7129
  var motionCls = getTransitionName(motionName, "".concat(status, "-").concat(statusSuffix));
7274
- motionChildren = children(_objectSpread2$1(_objectSpread2$1({}, mergedProps), {}, {
7275
- className: clsx(getTransitionName(motionName, status), _defineProperty$1(_defineProperty$1({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
7130
+ motionChildren = children(_objectSpread2(_objectSpread2({}, mergedProps), {}, {
7131
+ className: clsx(getTransitionName(motionName, status), _defineProperty(_defineProperty({}, motionCls, motionCls && statusSuffix), motionName, typeof motionName == "string")),
7276
7132
  style: statusStyle
7277
7133
  }), setNodeRef);
7278
7134
  }
@@ -7293,9 +7149,9 @@ const CSSMotion = genCSSMotion(supportTransition);
7293
7149
  var STATUS_ADD = "add", STATUS_KEEP = "keep", STATUS_REMOVE = "remove", STATUS_REMOVED = "removed";
7294
7150
  function wrapKeyToObject(key) {
7295
7151
  var keyObj;
7296
- return key && _typeof$1(key) === "object" && "key" in key ? keyObj = key : keyObj = {
7152
+ return key && _typeof(key) === "object" && "key" in key ? keyObj = key : keyObj = {
7297
7153
  key
7298
- }, _objectSpread2$1(_objectSpread2$1({}, keyObj), {}, {
7154
+ }, _objectSpread2(_objectSpread2({}, keyObj), {}, {
7299
7155
  key: String(keyObj.key)
7300
7156
  });
7301
7157
  }
@@ -7312,20 +7168,20 @@ function diffKeys() {
7312
7168
  var currentKeyObj = currentKeyObjects[i];
7313
7169
  if (currentKeyObj.key === keyObj.key) {
7314
7170
  currentIndex < i && (list = list.concat(currentKeyObjects.slice(currentIndex, i).map(function(obj) {
7315
- return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
7171
+ return _objectSpread2(_objectSpread2({}, obj), {}, {
7316
7172
  status: STATUS_ADD
7317
7173
  });
7318
- })), currentIndex = i), list.push(_objectSpread2$1(_objectSpread2$1({}, currentKeyObj), {}, {
7174
+ })), currentIndex = i), list.push(_objectSpread2(_objectSpread2({}, currentKeyObj), {}, {
7319
7175
  status: STATUS_KEEP
7320
7176
  })), currentIndex += 1, hit = !0;
7321
7177
  break;
7322
7178
  }
7323
7179
  }
7324
- hit || list.push(_objectSpread2$1(_objectSpread2$1({}, keyObj), {}, {
7180
+ hit || list.push(_objectSpread2(_objectSpread2({}, keyObj), {}, {
7325
7181
  status: STATUS_REMOVE
7326
7182
  }));
7327
7183
  }), currentIndex < currentLen && (list = list.concat(currentKeyObjects.slice(currentIndex).map(function(obj) {
7328
- return _objectSpread2$1(_objectSpread2$1({}, obj), {}, {
7184
+ return _objectSpread2(_objectSpread2({}, obj), {}, {
7329
7185
  status: STATUS_ADD
7330
7186
  });
7331
7187
  })));
@@ -7357,11 +7213,11 @@ function genCSSMotionList(transitionSupport) {
7357
7213
  _classCallCheck(this, CSSMotionList3);
7358
7214
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
7359
7215
  args[_key] = arguments[_key];
7360
- return _this = _super.call.apply(_super, [this].concat(args)), _defineProperty$1(_assertThisInitialized(_this), "state", {
7216
+ return _this = _super.call.apply(_super, [this].concat(args)), _defineProperty(_assertThisInitialized(_this), "state", {
7361
7217
  keyEntities: []
7362
- }), _defineProperty$1(_assertThisInitialized(_this), "removeKey", function(removeKey) {
7218
+ }), _defineProperty(_assertThisInitialized(_this), "removeKey", function(removeKey) {
7363
7219
  var keyEntities = _this.state.keyEntities, nextKeyEntities = keyEntities.map(function(entity) {
7364
- return entity.key !== removeKey ? entity : _objectSpread2$1(_objectSpread2$1({}, entity), {}, {
7220
+ return entity.key !== removeKey ? entity : _objectSpread2(_objectSpread2({}, entity), {}, {
7365
7221
  status: STATUS_REMOVED
7366
7222
  });
7367
7223
  });
@@ -7394,7 +7250,7 @@ function genCSSMotionList(transitionSupport) {
7394
7250
  }
7395
7251
  }, "onVisibleChanged")
7396
7252
  }), function(props, ref) {
7397
- return children(_objectSpread2$1(_objectSpread2$1({}, props), {}, {
7253
+ return children(_objectSpread2(_objectSpread2({}, props), {}, {
7398
7254
  index
7399
7255
  }), ref);
7400
7256
  });
@@ -7416,7 +7272,7 @@ function genCSSMotionList(transitionSupport) {
7416
7272
  }, "getDerivedStateFromProps")
7417
7273
  }]), CSSMotionList3;
7418
7274
  }(React.Component);
7419
- return _defineProperty$1(CSSMotionList2, "defaultProps", {
7275
+ return _defineProperty(CSSMotionList2, "defaultProps", {
7420
7276
  component: "div"
7421
7277
  }), CSSMotionList2;
7422
7278
  }
@@ -7976,7 +7832,7 @@ function pickAttrs(props) {
7976
7832
  }
7977
7833
  __name(pickAttrs, "pickAttrs");
7978
7834
  var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
7979
- var prefixCls = props.prefixCls, style2 = props.style, className = props.className, _props$duration = props.duration, duration = _props$duration === void 0 ? 4.5 : _props$duration, showProgress = props.showProgress, _props$pauseOnHover = props.pauseOnHover, pauseOnHover = _props$pauseOnHover === void 0 ? !0 : _props$pauseOnHover, eventKey = props.eventKey, content = props.content, closable = props.closable, _props$closeIcon = props.closeIcon, closeIcon = _props$closeIcon === void 0 ? "x" : _props$closeIcon, divProps = props.props, onClick = props.onClick, onNoticeClose = props.onNoticeClose, times = props.times, forcedHovering = props.hovering, _React$useState = React.useState(!1), _React$useState2 = _slicedToArray$1(_React$useState, 2), hovering = _React$useState2[0], setHovering = _React$useState2[1], _React$useState3 = React.useState(0), _React$useState4 = _slicedToArray$1(_React$useState3, 2), percent = _React$useState4[0], setPercent = _React$useState4[1], _React$useState5 = React.useState(0), _React$useState6 = _slicedToArray$1(_React$useState5, 2), spentTime = _React$useState6[0], setSpentTime = _React$useState6[1], mergedHovering = forcedHovering || hovering, mergedShowProgress = duration > 0 && showProgress, onInternalClose = /* @__PURE__ */ __name(function() {
7835
+ var prefixCls = props.prefixCls, style2 = props.style, className = props.className, _props$duration = props.duration, duration = _props$duration === void 0 ? 4.5 : _props$duration, showProgress = props.showProgress, _props$pauseOnHover = props.pauseOnHover, pauseOnHover = _props$pauseOnHover === void 0 ? !0 : _props$pauseOnHover, eventKey = props.eventKey, content = props.content, closable = props.closable, _props$closeIcon = props.closeIcon, closeIcon = _props$closeIcon === void 0 ? "x" : _props$closeIcon, divProps = props.props, onClick = props.onClick, onNoticeClose = props.onNoticeClose, times = props.times, forcedHovering = props.hovering, _React$useState = React.useState(!1), _React$useState2 = _slicedToArray(_React$useState, 2), hovering = _React$useState2[0], setHovering = _React$useState2[1], _React$useState3 = React.useState(0), _React$useState4 = _slicedToArray(_React$useState3, 2), percent = _React$useState4[0], setPercent = _React$useState4[1], _React$useState5 = React.useState(0), _React$useState6 = _slicedToArray(_React$useState5, 2), spentTime = _React$useState6[0], setSpentTime = _React$useState6[1], mergedHovering = forcedHovering || hovering, mergedShowProgress = duration > 0 && showProgress, onInternalClose = /* @__PURE__ */ __name(function() {
7980
7836
  onNoticeClose(eventKey);
7981
7837
  }, "onInternalClose"), onCloseKeyDown = /* @__PURE__ */ __name(function(e2) {
7982
7838
  (e2.key === "Enter" || e2.code === "Enter" || e2.keyCode === KeyCode.ENTER) && onInternalClose();
@@ -8004,13 +7860,13 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8004
7860
  }
8005
7861
  }, [duration, spentTime, mergedHovering, mergedShowProgress, times]);
8006
7862
  var closableObj = React.useMemo(function() {
8007
- return _typeof$1(closable) === "object" && closable !== null ? closable : closable ? {
7863
+ return _typeof(closable) === "object" && closable !== null ? closable : closable ? {
8008
7864
  closeIcon
8009
7865
  } : {};
8010
7866
  }, [closable, closeIcon]), ariaProps = pickAttrs(closableObj, !0), validPercent = 100 - (!percent || percent < 0 ? 0 : percent > 100 ? 100 : percent), noticePrefixCls = "".concat(prefixCls, "-notice");
8011
7867
  return /* @__PURE__ */ React.createElement("div", _extends({}, divProps, {
8012
7868
  ref,
8013
- className: clsx(noticePrefixCls, className, _defineProperty$1({}, "".concat(noticePrefixCls, "-closable"), closable)),
7869
+ className: clsx(noticePrefixCls, className, _defineProperty({}, "".concat(noticePrefixCls, "-closable"), closable)),
8014
7870
  style: style2,
8015
7871
  onMouseEnter: /* @__PURE__ */ __name(function(e2) {
8016
7872
  var _divProps$onMouseEnte;
@@ -8043,18 +7899,18 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8043
7899
  threshold: DEFAULT_THRESHOLD,
8044
7900
  gap: DEFAULT_GAP
8045
7901
  };
8046
- if (config && _typeof$1(config) === "object") {
7902
+ if (config && _typeof(config) === "object") {
8047
7903
  var _config$offset, _config$threshold, _config$gap;
8048
7904
  result.offset = (_config$offset = config.offset) !== null && _config$offset !== void 0 ? _config$offset : DEFAULT_OFFSET, result.threshold = (_config$threshold = config.threshold) !== null && _config$threshold !== void 0 ? _config$threshold : DEFAULT_THRESHOLD, result.gap = (_config$gap = config.gap) !== null && _config$gap !== void 0 ? _config$gap : DEFAULT_GAP;
8049
7905
  }
8050
7906
  return [!!config, result];
8051
7907
  }, "useStack"), _excluded$1 = ["className", "style", "classNames", "styles"], NoticeList = /* @__PURE__ */ __name(function(props) {
8052
- var configList = props.configList, placement = props.placement, prefixCls = props.prefixCls, className = props.className, style2 = props.style, motion = props.motion, onAllNoticeRemoved = props.onAllNoticeRemoved, onNoticeClose = props.onNoticeClose, stackConfig = props.stack, _useContext = useContext(NotificationContext), ctxCls = _useContext.classNames, dictRef = useRef({}), _useState = useState(null), _useState2 = _slicedToArray$1(_useState, 2), latestNotice = _useState2[0], setLatestNotice = _useState2[1], _useState3 = useState([]), _useState4 = _slicedToArray$1(_useState3, 2), hoverKeys = _useState4[0], setHoverKeys = _useState4[1], keys = configList.map(function(config) {
7908
+ var configList = props.configList, placement = props.placement, prefixCls = props.prefixCls, className = props.className, style2 = props.style, motion = props.motion, onAllNoticeRemoved = props.onAllNoticeRemoved, onNoticeClose = props.onNoticeClose, stackConfig = props.stack, _useContext = useContext(NotificationContext), ctxCls = _useContext.classNames, dictRef = useRef({}), _useState = useState(null), _useState2 = _slicedToArray(_useState, 2), latestNotice = _useState2[0], setLatestNotice = _useState2[1], _useState3 = useState([]), _useState4 = _slicedToArray(_useState3, 2), hoverKeys = _useState4[0], setHoverKeys = _useState4[1], keys = configList.map(function(config) {
8053
7909
  return {
8054
7910
  config,
8055
7911
  key: String(config.key)
8056
7912
  };
8057
- }), _useStack = useStack(stackConfig), _useStack2 = _slicedToArray$1(_useStack, 2), stack = _useStack2[0], _useStack2$ = _useStack2[1], offset = _useStack2$.offset, threshold = _useStack2$.threshold, gap = _useStack2$.gap, expanded = stack && (hoverKeys.length > 0 || keys.length <= threshold), placementMotion = typeof motion == "function" ? motion(placement) : motion;
7913
+ }), _useStack = useStack(stackConfig), _useStack2 = _slicedToArray(_useStack, 2), stack = _useStack2[0], _useStack2$ = _useStack2[1], offset = _useStack2$.offset, threshold = _useStack2$.threshold, gap = _useStack2$.gap, expanded = stack && (hoverKeys.length > 0 || keys.length <= threshold), placementMotion = typeof motion == "function" ? motion(placement) : motion;
8058
7914
  return useEffect(function() {
8059
7915
  stack && hoverKeys.length > 1 && setHoverKeys(function(prev) {
8060
7916
  return prev.filter(function(key) {
@@ -8072,7 +7928,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8072
7928
  }
8073
7929
  }, [keys, stack]), /* @__PURE__ */ React__default.createElement(CSSMotionList, _extends({
8074
7930
  key: placement,
8075
- className: clsx(prefixCls, "".concat(prefixCls, "-").concat(placement), ctxCls == null ? void 0 : ctxCls.list, className, _defineProperty$1(_defineProperty$1({}, "".concat(prefixCls, "-stack"), !!stack), "".concat(prefixCls, "-stack-expanded"), expanded)),
7931
+ className: clsx(prefixCls, "".concat(prefixCls, "-").concat(placement), ctxCls == null ? void 0 : ctxCls.list, className, _defineProperty(_defineProperty({}, "".concat(prefixCls, "-stack"), !!stack), "".concat(prefixCls, "-stack-expanded"), expanded)),
8076
7932
  style: style2,
8077
7933
  keys,
8078
7934
  motionAppear: !0
@@ -8101,7 +7957,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8101
7957
  return /* @__PURE__ */ React__default.createElement("div", {
8102
7958
  ref: nodeRef,
8103
7959
  className: clsx("".concat(prefixCls, "-notice-wrapper"), motionClassName, configClassNames == null ? void 0 : configClassNames.wrapper),
8104
- style: _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, motionStyle), stackStyle), configStyles == null ? void 0 : configStyles.wrapper),
7960
+ style: _objectSpread2(_objectSpread2(_objectSpread2({}, motionStyle), stackStyle), configStyles == null ? void 0 : configStyles.wrapper),
8105
7961
  onMouseEnter: /* @__PURE__ */ __name(function() {
8106
7962
  return setHoverKeys(function(prev) {
8107
7963
  return prev.includes(strKey) ? prev : [].concat(_toConsumableArray(prev), [strKey]);
@@ -8131,7 +7987,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8131
7987
  })));
8132
7988
  });
8133
7989
  }, "NoticeList2"), Notifications = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8134
- var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-notification" : _props$prefixCls, container = props.container, motion = props.motion, maxCount = props.maxCount, className = props.className, style2 = props.style, onAllRemoved = props.onAllRemoved, stack = props.stack, renderNotifications = props.renderNotifications, _React$useState = React.useState([]), _React$useState2 = _slicedToArray$1(_React$useState, 2), configList = _React$useState2[0], setConfigList = _React$useState2[1], onNoticeClose = /* @__PURE__ */ __name(function(key) {
7990
+ var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-notification" : _props$prefixCls, container = props.container, motion = props.motion, maxCount = props.maxCount, className = props.className, style2 = props.style, onAllRemoved = props.onAllRemoved, stack = props.stack, renderNotifications = props.renderNotifications, _React$useState = React.useState([]), _React$useState2 = _slicedToArray(_React$useState, 2), configList = _React$useState2[0], setConfigList = _React$useState2[1], onNoticeClose = /* @__PURE__ */ __name(function(key) {
8135
7991
  var _config$onClose, config = configList.find(function(item) {
8136
7992
  return item.key === key;
8137
7993
  });
@@ -8147,7 +8003,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8147
8003
  setConfigList(function(list) {
8148
8004
  var clone = _toConsumableArray(list), index = clone.findIndex(function(item) {
8149
8005
  return item.key === config.key;
8150
- }), innerConfig = _objectSpread2$1({}, config);
8006
+ }), innerConfig = _objectSpread2({}, config);
8151
8007
  if (index >= 0) {
8152
8008
  var _list$index;
8153
8009
  innerConfig.times = (((_list$index = list[index]) === null || _list$index === void 0 ? void 0 : _list$index.times) || 0) + 1, clone[index] = innerConfig;
@@ -8164,7 +8020,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8164
8020
  }, "destroy")
8165
8021
  };
8166
8022
  });
8167
- var _React$useState3 = React.useState({}), _React$useState4 = _slicedToArray$1(_React$useState3, 2), placements = _React$useState4[0], setPlacements = _React$useState4[1];
8023
+ var _React$useState3 = React.useState({}), _React$useState4 = _slicedToArray(_React$useState3, 2), placements = _React$useState4[0], setPlacements = _React$useState4[1];
8168
8024
  React.useEffect(function() {
8169
8025
  var nextPlacements = {};
8170
8026
  configList.forEach(function(config) {
@@ -8176,7 +8032,7 @@ var Notify = /* @__PURE__ */ React.forwardRef(function(props, ref) {
8176
8032
  }, [configList]);
8177
8033
  var onAllNoticeRemoved = /* @__PURE__ */ __name(function(placement) {
8178
8034
  setPlacements(function(originPlacements) {
8179
- var clone = _objectSpread2$1({}, originPlacements), list = clone[placement] || [];
8035
+ var clone = _objectSpread2({}, originPlacements), list = clone[placement] || [];
8180
8036
  return list.length || delete clone[placement], clone;
8181
8037
  });
8182
8038
  }, "onAllNoticeRemoved2"), emptyRef = React.useRef(!1);
@@ -8218,7 +8074,7 @@ function mergeConfig() {
8218
8074
  }
8219
8075
  __name(mergeConfig, "mergeConfig");
8220
8076
  function useNotification() {
8221
- var rootConfig = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _rootConfig$getContai = rootConfig.getContainer, getContainer = _rootConfig$getContai === void 0 ? defaultGetContainer : _rootConfig$getContai, motion = rootConfig.motion, prefixCls = rootConfig.prefixCls, maxCount = rootConfig.maxCount, className = rootConfig.className, style2 = rootConfig.style, onAllRemoved = rootConfig.onAllRemoved, stack = rootConfig.stack, renderNotifications = rootConfig.renderNotifications, shareConfig = _objectWithoutProperties(rootConfig, _excluded), _React$useState = React.useState(), _React$useState2 = _slicedToArray$1(_React$useState, 2), container = _React$useState2[0], setContainer = _React$useState2[1], notificationsRef = React.useRef(), contextHolder = /* @__PURE__ */ React.createElement(Notifications, {
8077
+ var rootConfig = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _rootConfig$getContai = rootConfig.getContainer, getContainer = _rootConfig$getContai === void 0 ? defaultGetContainer : _rootConfig$getContai, motion = rootConfig.motion, prefixCls = rootConfig.prefixCls, maxCount = rootConfig.maxCount, className = rootConfig.className, style2 = rootConfig.style, onAllRemoved = rootConfig.onAllRemoved, stack = rootConfig.stack, renderNotifications = rootConfig.renderNotifications, shareConfig = _objectWithoutProperties(rootConfig, _excluded), _React$useState = React.useState(), _React$useState2 = _slicedToArray(_React$useState, 2), container = _React$useState2[0], setContainer = _React$useState2[1], notificationsRef = React.useRef(), contextHolder = /* @__PURE__ */ React.createElement(Notifications, {
8222
8078
  container,
8223
8079
  ref: notificationsRef,
8224
8080
  prefixCls,
@@ -8229,7 +8085,7 @@ function useNotification() {
8229
8085
  onAllRemoved,
8230
8086
  stack,
8231
8087
  renderNotifications
8232
- }), _React$useState3 = React.useState([]), _React$useState4 = _slicedToArray$1(_React$useState3, 2), taskQueue = _React$useState4[0], setTaskQueue = _React$useState4[1], api = React.useMemo(function() {
8088
+ }), _React$useState3 = React.useState([]), _React$useState4 = _slicedToArray(_React$useState3, 2), taskQueue = _React$useState4[0], setTaskQueue = _React$useState4[1], api = React.useMemo(function() {
8233
8089
  return {
8234
8090
  open: /* @__PURE__ */ __name(function(config) {
8235
8091
  var mergedConfig = mergeConfig(shareConfig, config);
@@ -8400,6 +8256,7 @@ const _DesktopSidebarService = class _DesktopSidebarService {
8400
8256
  __publicField(this, "_sidebarOptions", {});
8401
8257
  __publicField(this, "sidebarOptions$", new Subject());
8402
8258
  __publicField(this, "scrollEvent$", new Subject());
8259
+ __publicField(this, "container");
8403
8260
  }
8404
8261
  get visible() {
8405
8262
  return this._sidebarOptions.visible || !1;
@@ -8422,6 +8279,12 @@ const _DesktopSidebarService = class _DesktopSidebarService {
8422
8279
  visible: !1
8423
8280
  }, this.sidebarOptions$.next(this._sidebarOptions), this._sidebarOptions.onClose && this._sidebarOptions.onClose());
8424
8281
  }
8282
+ getContainer() {
8283
+ return this.container;
8284
+ }
8285
+ setContainer(element2) {
8286
+ this.container = element2;
8287
+ }
8425
8288
  };
8426
8289
  __name(_DesktopSidebarService, "DesktopSidebarService");
8427
8290
  let DesktopSidebarService = _DesktopSidebarService;
@@ -8504,7 +8367,6 @@ let UniverMobileUIPlugin = (_a17 = class extends Plugin {
8504
8367
  [ILocalStorageService, { useClass: DesktopLocalStorageService, lazy: !0 }],
8505
8368
  [IBeforeCloseService, { useClass: DesktopBeforeCloseService }],
8506
8369
  [ICanvasPopupService, { useClass: CanvasPopupService }],
8507
- [IProgressService, { useClass: ProgressService }],
8508
8370
  [CanvasFloatDomService],
8509
8371
  // controllers
8510
8372
  [
@@ -8542,7 +8404,15 @@ const _DesktopLocalFileService = class _DesktopLocalFileService extends Disposab
8542
8404
  };
8543
8405
  __name(_DesktopLocalFileService, "DesktopLocalFileService");
8544
8406
  let DesktopLocalFileService = _DesktopLocalFileService;
8545
- const ILocalFileService = createIdentifier("univer-ui.local-file.service");
8407
+ const ILocalFileService = createIdentifier("univer-ui.local-file.service"), useSidebarClick = /* @__PURE__ */ __name((cb) => {
8408
+ const container = useDependency(ISidebarService$1).getContainer();
8409
+ useEffect(() => {
8410
+ if (container)
8411
+ return container.addEventListener("mousedown", cb), () => {
8412
+ container.removeEventListener("mousedown", cb);
8413
+ };
8414
+ }, [cb, container]);
8415
+ }, "useSidebarClick");
8546
8416
  var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __defNormalProp2 = /* @__PURE__ */ __name((obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, "__defNormalProp"), __decorateClass = /* @__PURE__ */ __name((decorators, target, key, kind) => {
8547
8417
  for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
8548
8418
  (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
@@ -8580,7 +8450,6 @@ let UniverUIPlugin = (_a18 = class extends Plugin {
8580
8450
  [IBeforeCloseService, { useClass: DesktopBeforeCloseService }],
8581
8451
  [ILocalFileService, { useClass: DesktopLocalFileService }],
8582
8452
  [ICanvasPopupService, { useClass: CanvasPopupService }],
8583
- [IProgressService, { useClass: ProgressService }],
8584
8453
  [CanvasFloatDomService],
8585
8454
  [IUIController, {
8586
8455
  useFactory: /* @__PURE__ */ __name((injector) => injector.createInstance(DesktopUIController, this._config), "useFactory"),
@@ -8903,7 +8772,7 @@ function handelTableToJson(table) {
8903
8772
  data[i] = new Array(colLen);
8904
8773
  let r2 = 0;
8905
8774
  return trs.forEach((item) => {
8906
- let c2 = 0;
8775
+ let c3 = 0;
8907
8776
  item.querySelectorAll("td").forEach((td) => {
8908
8777
  var _a19, _b;
8909
8778
  const cell = {};
@@ -8914,21 +8783,21 @@ function handelTableToJson(table) {
8914
8783
  const txt = td.innerText;
8915
8784
  txt.trim().length === 0 ? cell.v = "" : cell.v = txt;
8916
8785
  const style2 = handleStringToStyle(td);
8917
- for (Tools.isPlainObject(style2) && (cell.s = style2); c2 < colLen && data[r2][c2] != null; )
8918
- c2++;
8919
- if (c2 !== colLen) {
8920
- if (data[r2][c2] == null) {
8921
- data[r2][c2] = cell;
8786
+ for (Tools.isPlainObject(style2) && (cell.s = style2); c3 < colLen && data[r2][c3] != null; )
8787
+ c3++;
8788
+ if (c3 !== colLen) {
8789
+ if (data[r2][c3] == null) {
8790
+ data[r2][c3] = cell;
8922
8791
  const rowSpan = (_a19 = Number(td.getAttribute("rowSpan"))) != null ? _a19 : 1, colSpan = (_b = Number(td.getAttribute("colSpan"))) != null ? _b : 1;
8923
8792
  if (rowSpan > 1 || colSpan > 1) {
8924
- const first = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
8925
- data[r2][c2].mc = first;
8793
+ const first2 = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c3 };
8794
+ data[r2][c3].mc = first2;
8926
8795
  for (let rp = 0; rp < rowSpan; rp++)
8927
8796
  for (let cp = 0; cp < colSpan; cp++)
8928
- rp === 0 && cp === 0 || (data[r2 + rp][c2 + cp] = { mc: null });
8797
+ rp === 0 && cp === 0 || (data[r2 + rp][c3 + cp] = { mc: null });
8929
8798
  }
8930
8799
  }
8931
- c2++;
8800
+ c3++;
8932
8801
  }
8933
8802
  }), r2++;
8934
8803
  }), data;
@@ -8989,7 +8858,7 @@ function handelExcelToJson(html) {
8989
8858
  data[i] = new Array(colLen);
8990
8859
  let r2 = 0;
8991
8860
  return trs.forEach((item) => {
8992
- let c2 = 0;
8861
+ let c3 = 0;
8993
8862
  item.querySelectorAll("td").forEach((td) => {
8994
8863
  var _a20, _b;
8995
8864
  const cell = {};
@@ -9003,21 +8872,21 @@ function handelExcelToJson(html) {
9003
8872
  for (const attr in excelStyle)
9004
8873
  td.classList.contains(attr) && (cssText += excelStyle[attr]);
9005
8874
  const style2 = handleStringToStyle(td, cssText);
9006
- for (Tools.isPlainObject(style2) && (cell.s = style2); c2 < colLen && data[r2][c2] != null; )
9007
- c2++;
9008
- if (c2 !== colLen) {
9009
- if (data[r2][c2] == null) {
9010
- data[r2][c2] = cell;
8875
+ for (Tools.isPlainObject(style2) && (cell.s = style2); c3 < colLen && data[r2][c3] != null; )
8876
+ c3++;
8877
+ if (c3 !== colLen) {
8878
+ if (data[r2][c3] == null) {
8879
+ data[r2][c3] = cell;
9011
8880
  const rowSpan = (_a20 = Number(td.getAttribute("rowSpan"))) != null ? _a20 : 1, colSpan = (_b = Number(td.getAttribute("colSpan"))) != null ? _b : 1;
9012
8881
  if (rowSpan > 1 || colSpan > 1) {
9013
- const first = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c2 };
9014
- data[r2][c2].mc = first;
8882
+ const first2 = { rs: +rowSpan - 1, cs: +colSpan - 1, r: r2, c: c3 };
8883
+ data[r2][c3].mc = first2;
9015
8884
  for (let rp = 0; rp < rowSpan; rp++)
9016
8885
  for (let cp = 0; cp < colSpan; cp++)
9017
- rp === 0 && cp === 0 || (data[r2 + rp][c2 + cp] = { mc: null });
8886
+ rp === 0 && cp === 0 || (data[r2 + rp][c3 + cp] = { mc: null });
9018
8887
  }
9019
8888
  }
9020
- c2++;
8889
+ c3++;
9021
8890
  }
9022
8891
  }), r2++;
9023
8892
  }), data;
@@ -9095,14 +8964,13 @@ export {
9095
8964
  IDialogService,
9096
8965
  IGlobalZoneService,
9097
8966
  ILayoutService,
9098
- ILeftSidebarService,
8967
+ c as ILeftSidebarService,
9099
8968
  ILocalFileService,
9100
8969
  IMenuManagerService,
9101
8970
  IMenuService,
9102
8971
  IMessageService,
9103
8972
  INotificationService,
9104
8973
  IPlatformService,
9105
- IProgressService,
9106
8974
  IShortcutService,
9107
8975
  ISidebarService,
9108
8976
  IUIController,
@@ -9123,7 +8991,6 @@ export {
9123
8991
  PasteCommand,
9124
8992
  PlatformService,
9125
8993
  ProgressBar,
9126
- ProgressService,
9127
8994
  RedoShortcutItem,
9128
8995
  Ribbon,
9129
8996
  RibbonDataGroup,
@@ -9171,6 +9038,7 @@ export {
9171
9038
  useEvent$1 as useEvent,
9172
9039
  useObservable,
9173
9040
  useScrollYOverContainer,
9041
+ useSidebarClick,
9174
9042
  useSimpleToolbarGroups,
9175
9043
  useToolbarGroups,
9176
9044
  useToolbarItemStatus,