@sheetxl/studio-mui 0.8.0-beta.15 → 0.8.0-beta.17

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 (120) hide show
  1. package/LICENSE.md +17 -7
  2. package/browser/esm/{DJVpra0HoPH-4P7P.mjs → 0FLmtunmoRFjO-dk.mjs} +3 -3
  3. package/browser/esm/{6SL2j-85OXrKJNZ5.mjs → B2LvYLt27hzoarA9.mjs} +1807 -1200
  4. package/browser/esm/{D90Bb0GPEwqYkf6R.mjs → BBGsto_-YGhTouc9.mjs} +804 -713
  5. package/browser/esm/{BR51amBhaaHPBhpd.mjs → BEIcp6BzAg3H6JBB.mjs} +3 -3
  6. package/browser/esm/{EFtp_C3sBnP3Nrns.mjs → BFN88LECqMerqLYN.mjs} +7 -7
  7. package/browser/esm/{ghfcAaGu2CuZGdhi.mjs → BGNhe08mdWf8dIuk.mjs} +34 -33
  8. package/browser/esm/BNfIFd07bhGqs-U9.mjs +235 -0
  9. package/browser/esm/{CcJHwg-rLMcCymSD.mjs → BTb_Djaoxz3G27t-.mjs} +6 -6
  10. package/browser/esm/{Cl_OUigCV04_zrRy.mjs → BXhWCOPioL48V_9k.mjs} +2 -2
  11. package/browser/esm/{DsM-NpB32hloRRR8.mjs → Bh1YkrKuSZs-xdlw.mjs} +3 -3
  12. package/browser/esm/{CV-q-xCHVuNFhqEF.mjs → BkABsPS9qbyYS2i7.mjs} +2 -2
  13. package/browser/esm/{Buzx8_zQYPX4DR7v.mjs → BnLdmQ91UIGs0zyR.mjs} +2 -2
  14. package/browser/esm/BnMZSJdWZzdK-AXs.mjs +119 -0
  15. package/browser/esm/BoXCzcrUFER3B585.mjs +225 -0
  16. package/browser/esm/{BNas8wZuvrN45dRi.mjs → BxHaU8-LCw4IHrDn.mjs} +2 -2
  17. package/browser/esm/C2ZbV5cXpGPYeqM1.mjs +106 -0
  18. package/browser/esm/C8kveDS4xm6D2Aaq.mjs +294 -0
  19. package/browser/esm/{OHvsc940xI-m_8cc.mjs → CHm8-sLarqD1--If.mjs} +2 -2
  20. package/browser/esm/{DOWfcHx0MO0J50de.mjs → CMIM0wPs_KvfwLEl.mjs} +92 -87
  21. package/browser/esm/{DY_EGsyx-zNiJS_0.mjs → CP-c6sUINCv0Nf4P.mjs} +5 -5
  22. package/browser/esm/{BCDAnHFMvOd9XS8K.mjs → CaI0Mfu6ECDIzCpr.mjs} +3 -3
  23. package/browser/esm/{Bvq5aZyp5E79JB-s.mjs → Cb3HSSD7snyRPNh8.mjs} +2 -2
  24. package/browser/esm/{BsAoK_t2sn8IHtAO.mjs → Cf855AHLcB7WuFr3.mjs} +3 -3
  25. package/browser/esm/{Bqba-3J9i8HsmusR.mjs → ChORBNItvZW0e8Nb.mjs} +2 -2
  26. package/browser/esm/{DfI4-5XM6AbILSti.mjs → CmMD76_yBG4xmsEr.mjs} +4 -4
  27. package/browser/esm/{idh3Y0jksygPSI3A.mjs → CuysyoZ-rmDHwaJJ.mjs} +2 -2
  28. package/browser/esm/{DMDi2lOps0veJKsM.mjs → Cvbms6f8QMP1ubyI.mjs} +3 -3
  29. package/browser/esm/{DKkKac2vbeui2lDy.mjs → CvzzESAZRMWQ4cGq.mjs} +6 -6
  30. package/browser/esm/{DFAphWcDUw-gVtAl.mjs → D078ssKRI39FdHNq.mjs} +3 -3
  31. package/browser/esm/{BvpzsprI7cmVLuQn.mjs → D1_8p15KJ7DSZEis.mjs} +3 -3
  32. package/browser/esm/{Dz20q7S5vmDWlO0p.mjs → D2Kz08pq5zPz2n3y.mjs} +2 -2
  33. package/browser/esm/{BojGnpAWoIm5yCd8.mjs → D4FRExfK7RsdS08S.mjs} +2 -2
  34. package/browser/esm/{CJWnWqGPw17cp9P3.mjs → D9ija-5d57x-qUQv.mjs} +2 -2
  35. package/browser/esm/{DAYPqhHN3aQ2StjU.mjs → DGkQsCJP29nZteu8.mjs} +14 -14
  36. package/browser/esm/{DR9y7k4jB7stGPaZ.mjs → DK39s_Fn9M22RfJm.mjs} +3 -3
  37. package/browser/esm/{CutWdrVA-c3x8IkL.mjs → DL0r5MrPx8CkL_r_.mjs} +5 -4
  38. package/browser/esm/{IlX2PgLxvyTQu4Fh.mjs → DQjJFUPHg_aU2BDi.mjs} +5 -5
  39. package/browser/esm/{OmA1ClZ36ZMFrZe7.mjs → DcUtMgA17fh_UJlQ.mjs} +2 -2
  40. package/browser/esm/{BfPTOOKhwUojRTef.mjs → Dd6iR6EeV81idc-J.mjs} +13 -9
  41. package/browser/esm/{DLe9DT0DSurLSgiQ.mjs → Dd8j9U2Vlvrue2LA.mjs} +2 -2
  42. package/browser/esm/{BkxJY_YjMAEvhmuy.mjs → DmBu6kgMNT26tmsZ.mjs} +4 -4
  43. package/browser/esm/{DpAlQza0e5h3GGHC.mjs → DrtEkQTJM7oPvC9v.mjs} +3 -3
  44. package/browser/esm/DwiKIdqmaBk2pTBp.mjs +973 -0
  45. package/browser/esm/{C67SLDHwhVlVIMo0.mjs → Dx0ymWD1uI_Q63eZ.mjs} +3 -3
  46. package/browser/esm/{Ci74yk0whfoAP1TL.mjs → DxFw-07oIjr7GRb3.mjs} +2 -2
  47. package/browser/esm/{BH4eDAxZdwheO7d_.mjs → GqSAEzE_2tOJlvNG.mjs} +3 -3
  48. package/browser/esm/{By1IJOkvZJSlXs5f.mjs → JqMZ95e5lhq09vm6.mjs} +3 -3
  49. package/browser/esm/{DzATG8XMcG6mmYbx.mjs → LaC0D0C9yJ8y_l6X.mjs} +9 -9
  50. package/browser/esm/{BYnzaHXySiV-sc6w.mjs → NQzIcNkm0QxNuzx9.mjs} +2 -2
  51. package/browser/esm/{DYDnkmllpYTwfWir.mjs → W5Rvml-3G4XekwoR.mjs} +4 -4
  52. package/browser/esm/_PlChb18jQMPAKJX.mjs +360 -0
  53. package/browser/esm/{BWdpv2xf6GCyd4Te.mjs → cNsbq0TIia7SdBHP.mjs} +5 -5
  54. package/browser/esm/{Cbkg5y4fYjLylYHF.mjs → fSCwNKAcSc0mr2Ec.mjs} +2 -2
  55. package/browser/esm/g_bvg4HpyaF6f_JY.mjs +424 -0
  56. package/browser/esm/index.mjs +278 -277
  57. package/browser/esm/{C8tci3dfo5lzeoK-.mjs → mP32LfcEodsaGDPi.mjs} +6 -6
  58. package/browser/esm/{BvbN9V67wFhTfq1-.mjs → sjJ2Yb_cf_KL--Cl.mjs} +3 -3
  59. package/licenses/dependencies.txt +33 -33
  60. package/node/esm/{DybPyX8U-EqXKarV.mjs → 5Kkr-d9gc7GsfmI5.mjs} +2 -2
  61. package/node/esm/B6YmbuWU-fHrjOnB.mjs +106 -0
  62. package/node/esm/{DwA7rfXJgzoNvjax.mjs → BGWb71anMM4S4UTg.mjs} +8 -8
  63. package/node/esm/{C4eVfVm_Omyt6NbE.mjs → BINV_bzMi8YLqzor.mjs} +12 -12
  64. package/node/esm/{DGtbmp72kfRXLtDu.mjs → BWl0RjNZfoJvRX_2.mjs} +81 -80
  65. package/node/esm/{-Adgw5-ltK-rfp33.mjs → BiVdQ27eA1Rs9liu.mjs} +2 -2
  66. package/node/esm/{CkW8xNdW45Xg7jy7.mjs → Bp6WSG8tmXefxSlk.mjs} +3 -3
  67. package/node/esm/BrHbeFtSmaPq19cu.mjs +224 -0
  68. package/node/esm/BySbwlaepgugcINA.mjs +972 -0
  69. package/node/esm/{q2Byx8RdDnHk8YyG.mjs → BzLnWJ1JhLnookTH.mjs} +2 -2
  70. package/node/esm/{Bg3Yu66oJr6mNvAR.mjs → C-Y0ELSBNT5h6V0l.mjs} +3 -3
  71. package/node/esm/{TgwnKYh-WPxEgmyr.mjs → CA2iwgwOkAwRJU9j.mjs} +2 -2
  72. package/node/esm/{CzKFdVrPSDYOUdWI.mjs → CCy_wcDWd9xbQnyM.mjs} +2 -2
  73. package/node/esm/{D9Ga7FFJDOO3Dpfu.mjs → CD-S0_rfDY5u82_A.mjs} +2 -2
  74. package/node/esm/{Cx4tBEsm3SjAafcw.mjs → CQd5k9d0BWpU8yCQ.mjs} +2 -2
  75. package/node/esm/{BZK6UksX7r-GgRms.mjs → Cb0TicO5Utg9e5Qy.mjs} +2 -2
  76. package/node/esm/{DOuASwH2Lf83hMLe.mjs → ClwmPxZc7Uh4nRcr.mjs} +2 -2
  77. package/node/esm/{dUUbrmGMCILl8EOr.mjs → CyxhIZwqwx_Kt70P.mjs} +2 -2
  78. package/node/esm/D1XvISMVj1HimOTS.mjs +425 -0
  79. package/node/esm/{B26ot2vO6Hd47uH0.mjs → D2ZUCui3Xosjj66H.mjs} +2 -2
  80. package/node/esm/{BaFRVcYZjcLoMQtk.mjs → D71TbUFABfTixyiQ.mjs} +7 -7
  81. package/node/esm/{ISBEql8s7AnELTpd.mjs → D7__y1LhVOR38yxz.mjs} +2 -2
  82. package/node/esm/{Ca31PUiJBGowHeob.mjs → D9jTg0iWTubkisDB.mjs} +3 -3
  83. package/node/esm/{5etzEfk-28CCELyT.mjs → DHiJ5D_q7YVsClMf.mjs} +3 -3
  84. package/node/esm/{BxIyViNSP0STSrfA.mjs → DJuEU0TbZXyTnThP.mjs} +3 -3
  85. package/node/esm/{D_JpopAVQopM26cb.mjs → DMfK0wa8UHeJyxii.mjs} +603 -514
  86. package/node/esm/{CFi_Yls-gurU_CX3.mjs → DN2KKVrC1ye0mldi.mjs} +2 -2
  87. package/node/esm/{HlNuwtpYoOARa894.mjs → DYRV7b1ZSbxrjcuA.mjs} +2 -2
  88. package/node/esm/Dm-skjfQUaumyQPp.mjs +118 -0
  89. package/node/esm/{jGsHbOHP90nnx_hJ.mjs → DvN4Z2Hx4Es0sdaK.mjs} +16 -15
  90. package/node/esm/{CORxK68HpwPUYA6O.mjs → Jp--thwzf0FSnHTH.mjs} +2 -2
  91. package/node/esm/{BKCNFVrdc_gTnOoS.mjs → a69xG_vSg2OC9_22.mjs} +2 -2
  92. package/node/esm/{CX13ASkhdJ0ZSAY4.mjs → akKdwInE4KLNjHQu.mjs} +3 -3
  93. package/node/esm/axzlGUKK8euccdja.mjs +294 -0
  94. package/node/esm/index.mjs +3391 -2778
  95. package/node/esm/{B7vbn_dO_cZnGyGM.mjs → lhMHEjzlz63h_qU0.mjs} +3 -3
  96. package/node/esm/{CexPhV2NPh5ZGHus.mjs → r8bpi-MSpulvmozZ.mjs} +2 -2
  97. package/node/esm/{BFv2GzY6NjmJggAg.mjs → sHdUrEwlYxyLkkL6.mjs} +3 -3
  98. package/package.json +10 -10
  99. package/resources/locales/de/groups.cmd.json +3 -0
  100. package/resources/locales/de/ui.msg.json +41 -0
  101. package/resources/locales/en/groups.cmd.json +3 -0
  102. package/resources/locales/en/ui.msg.json +41 -0
  103. package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
  104. package/types/src/command/index.d.ts +1 -0
  105. package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
  106. package/types/src/filter/PivotMenu.d.ts +31 -0
  107. package/types/src/filter/index.d.ts +1 -0
  108. package/types/src/pivot/PivotChipMenu.d.ts +10 -0
  109. package/types/src/pivot/PivotPlugin.d.ts +3 -0
  110. package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
  111. package/types/src/pivot/PivotTableHeader.d.ts +12 -0
  112. package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
  113. package/types/src/pivot/_pivotSource.d.ts +7 -0
  114. package/types/src/table/_drawStyleSwatch.d.ts +25 -0
  115. package/types/src/workbook/DefaultRenderers.d.ts +10 -4
  116. package/browser/esm/C4ir9dn7q0RUoOm_.mjs +0 -319
  117. package/browser/esm/DEUzUShfyJLvgd6_.mjs +0 -1379
  118. package/browser/esm/xe1B8ohea8qfZlFg.mjs +0 -582
  119. package/node/esm/CKtnUYKjsTf7dYKS.mjs +0 -318
  120. package/node/esm/vf5X26EJO7Q1b8Ln.mjs +0 -1379
@@ -1,21 +1,33 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.15
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
5
+ * License: MIT
6
6
  */
7
- import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, NamedPlugin as a, ProtectionPlugin as i, SlicerPlugin as s, TablePlugin as l, WorkbookElement as c, createStudioThemeCSS as d, defaultRenderFormulaBar as p, defaultRenderStatusBar as u, defaultRenderToolbar as m, defaultRenderWorkbookError as g, defaultRenderWorkbookLoading as h, l as f, registerStudioCommandCatalogs as k, registerStudioCommandGroups as b, t as y, tokensToMuiOptions as w } from "./index.mjs";
8
- import { CommandRootProvider as x, DefaultTaskPaneRegistry as v, LogoNoPaddingIcon as C, SHAPE_ICON_PACK as D, TaskPaneArea as S, TaskPaneProvider as W, ThemeStateDefaults as E, ThemeStateKey as T, WorkbookIO as F, WorkbookProvider as A, buildOOXMLThemeCSS as P, createEditable as I, createSystemColorVars as R, registerMovablePane as j, registerMovableToolbarEntry as N, useDocThemes as O, useModelSync as M, useReferenceModeStore as L, useResolvedWorkbook as $, useTaskPaneArea as B, useWorkbookEncrypted as _, useWorkbookName as K, useWorkbookSaveState as H } from "@sheetxl/react";
9
- import { Command as V, DefaultIconService as z, DynamicIcon as U, LanguageStateKey as G, NotifierType as q, ReactErrorBoundary as X, ReactNotifierProvider as Y, ReactUtils as Z, RenderSlot as J, ScrollUtils as Q, SplitPane as ee, UncaughtErrorBoundary as te, createBusyHandle as oe, useCallbackRef as re, useFullscreen as ne, useImperativeElement as ae, useLanguage as ie, useMeasure as se, useNotifier as le, usePersistentState as ce, useResolvedThemeMode as de, useTokenThemeContext as pe, useTranslator as ue, useVisualViewportRect as me } from "@sheetxl/utils-react";
10
- import ge, { forwardRef as he, isValidElement as fe, memo as ke, useCallback as be, useEffect as ye, useMemo as we, useRef as xe, useState as ve } from "react";
11
- import { AnimatedLoadingPanel as Ce, AnimatedTraversingEllipsisIcon as De, CommandGroup as Se, ExhibitFloatProvider as We, ExhibitTooltip as Ee, ModalProvider as Te, SimpleTooltip as Fe, StackTrace as Ae, createExhibitTheme as Pe, hideLoadingPanel as Ie, lazyModal as Re, lazyPanel as je, showLoadingPanel as Ne, useInputDialog as Oe, useLazyWindow as Me, useModal as Le, useOptionsDialog as $e } from "@sheetxl/utils-mui";
12
- import { Fragment as Be, jsx as _e, jsxs as Ke } from "react/jsx-runtime";
13
- import { Box as He, Card as Ve, CardActions as ze, Collapse as Ue, CssBaseline as Ge, DialogTitle as qe, IconButton as Xe, Paper as Ye, SvgIcon as Ze, Tab as Je, Tabs as Qe, ThemeProvider as et, Typography as tt, alpha as ot, useMediaQuery as rt, useTheme as nt } from "@mui/material";
14
- import { CommonUtils as at, DOMUtils as it, DefaultLanguagePackService as st, ErrorUtils as lt, ExpectedError as ct, PartialError as dt, defineLazyModule as pt, formatMessage as ut, messageKey as mt, t as gt } from "@sheetxl/utils";
15
- import ht from "clsx";
16
- import { mergeRefs as ft, useMergeRefs as kt } from "react-merge-refs";
17
- import { SnackbarContent as bt, SnackbarProvider as yt, useSnackbar as wt } from "notistack";
18
- var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./B7vbn_dO_cZnGyGM.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), vt = ["lines"], Ct = {
7
+ import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, FormulaField as a, InputField as i, NamedPlugin as s, ProtectionPlugin as l, SlicerPlugin as c, TablePlugin as d, WorkbookElement as p, createStudioThemeCSS as u, defaultRenderFormulaBar as m, defaultRenderPivotMenu as g, defaultRenderStatusBar as h, defaultRenderToolbar as f, defaultRenderWorkbookError as k, defaultRenderWorkbookLoading as b, l as y, registerStudioCommandCatalogs as w, registerStudioCommandGroups as x, t as v, tokensToMuiOptions as C } from "./index.mjs";
8
+ import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PIVOT_TABLE_PANE_KEY as E, PivotTablePane as W, SHAPE_ICON_PACK as F, TaskPaneArea as P, TaskPaneProvider as A, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as M, createSystemColorVars as $, registerMovablePane as L, registerMovableToolbarEntry as B, useDocThemes as _, useModelSync as K, useReferenceModeStore as H, useResolvedWorkbook as V, useTaskPaneArea as z, useWorkbookEncrypted as U, useWorkbookName as G, useWorkbookSaveState as q } from "@sheetxl/react";
9
+ import { Command as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae, UncaughtErrorBoundary as ie, createBusyHandle as se, useCallbackRef as le, useFullscreen as ce, useImperativeElement as de, useLanguage as pe, useMeasure as ue, useNotifier as me, usePersistentState as ge, useResolvedThemeMode as he, useTokenThemeContext as fe, useTranslator as ke, useVisualViewportRect as be } from "@sheetxl/utils-react";
10
+ import ye, { Fragment as we, forwardRef as xe, isValidElement as ve, memo as Ce, useCallback as De, useEffect as Se, useMemo as Te, useRef as Ee, useState as We } from "react";
11
+ import { AnimatedLoadingPanel as Fe, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ae, ExhibitDivider as Ie, ExhibitFloatProvider as Ne, ExhibitMenuItem as Re, ExhibitTooltip as je, ModalProvider as Oe, SelectedIcon as Me, SimpleTooltip as $e, StackTrace as Le, createExhibitTheme as Be, hideLoadingPanel as _e, lazyModal as Ke, lazyPanel as He, showLoadingPanel as Ve, useInputDialog as ze, useLazyWindow as Ue, useModal as Ge, useOptionsDialog as qe } from "@sheetxl/utils-mui";
12
+ import { Fragment as Xe, jsx as Ye, jsxs as Ze } from "react/jsx-runtime";
13
+ import { Box as Je, Card as Qe, CardActions as et, Collapse as tt, CssBaseline as ot, DialogTitle as rt, IconButton as nt, Paper as at, SvgIcon as it, Tab as st, Tabs as lt, ThemeProvider as ct, Typography as dt, alpha as pt, useMediaQuery as ut, useTheme as mt } from "@mui/material";
14
+ import { CommonUtils as gt, DOMUtils as ht, DefaultLanguagePackService as ft, ErrorUtils as kt, ExpectedError as bt, PartialError as yt, defineLazyModule as wt, formatMessage as xt, messageKey as vt, t as Ct } from "@sheetxl/utils";
15
+ import Dt from "clsx";
16
+ import { mergeRefs as St, useMergeRefs as Tt } from "react-merge-refs";
17
+ import { SnackbarContent as Et, SnackbarProvider as Wt, useSnackbar as Ft } from "notistack";
18
+ var Pt = Object.defineProperty, At = (e, t) => {
19
+ let o = {};
20
+ for (var r in e) Pt(o, r, {
21
+ get: e[r],
22
+ enumerable: !0
23
+ });
24
+ return t || Pt(o, Symbol.toStringTag, { value: "Module" }), o;
25
+ }, It = He(wt("studio:conditionalFormatDetailsTaskPane", () => import("./lhMHEjzlz63h_qU0.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (e) => {
26
+ const t = e?.getReferences() ?? null;
27
+ if (!e || !t || 1 !== t.getCount()) return null;
28
+ const o = e.getExpression().trim();
29
+ return Rt.test(o) && !jt.test(o) ? o : t;
30
+ }, Mt = {
19
31
  card: "_card_h0jnt_7",
20
32
  actionRoot: "_actionRoot_h0jnt_11",
21
33
  icons: "_icons_h0jnt_16",
@@ -25,63 +37,63 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./B7vbn_
25
37
  paper: "_paper_h0jnt_37",
26
38
  checkIcon: "_checkIcon_h0jnt_42",
27
39
  button: "_button_h0jnt_47"
28
- }, Dt = ke(he((e, t) => {
29
- const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ue(), { closeSnackbar: c } = wt(), [d, p] = ve(!1), u = a ? lt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof ct), g = be(() => {
40
+ }, $t = Ce(xe((e, t) => {
41
+ const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ke(), { closeSnackbar: c } = Ft(), [d, p] = We(!1), u = a ? kt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bt), g = De(() => {
30
42
  p((e) => !e);
31
- }, []), h = be(() => {
43
+ }, []), h = De(() => {
32
44
  c(o);
33
45
  }, [o, c]);
34
46
  let f = u?.message;
35
- return !f && fe(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), _e(bt, {
47
+ return !f && ve(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ye(Et, {
36
48
  ref: t,
37
- className: ht(Ct.root, "error-snackbar"),
38
- children: Ke(Ve, {
39
- className: Ct.card,
49
+ className: Dt(Mt.root, "error-snackbar"),
50
+ children: Ze(Qe, {
51
+ className: Mt.card,
40
52
  style: {
41
53
  backgroundColor: "var(--sxl-color-error)",
42
54
  color: "var(--sxl-color-error-content)",
43
55
  border: "1px solid var(--sxl-color-error)"
44
56
  },
45
- children: [Ke(ze, {
46
- className: Ct.actionRoot,
57
+ children: [Ze(et, {
58
+ className: Mt.actionRoot,
47
59
  children: [
48
60
  i ? null : n?.error,
49
- _e(tt, {
61
+ Ye(dt, {
50
62
  variant: "body2",
51
63
  component: "div",
52
- className: Ct.typography,
64
+ className: Mt.typography,
53
65
  children: f
54
66
  }),
55
- _e("div", { style: { flex: "1 1 auto" } }),
56
- Ke("div", {
57
- className: Ct.icons,
58
- children: [m ? _e(Xe, {
67
+ Ye("div", { style: { flex: "1 1 auto" } }),
68
+ Ze("div", {
69
+ className: Mt.icons,
70
+ children: [m ? Ye(nt, {
59
71
  "aria-label": l("toast.showMore"),
60
72
  size: "small",
61
- className: ht(Ct.expand, { [Ct.expandOpen]: d }),
73
+ className: Dt(Mt.expand, { [Mt.expandOpen]: d }),
62
74
  onClick: g,
63
- children: _e(U, { iconKey: "ExpandMore" })
64
- }) : null, _e(Xe, {
75
+ children: Ye(Z, { iconKey: "ExpandMore" })
76
+ }) : null, Ye(nt, {
65
77
  size: "small",
66
- className: Ct.expand,
78
+ className: Mt.expand,
67
79
  onClick: h,
68
- children: _e(U, {
80
+ children: Ye(Z, {
69
81
  iconKey: "Close",
70
82
  style: { transform: "scale(0.8)" }
71
83
  })
72
84
  })]
73
85
  })
74
86
  ]
75
- }), m ? _e(Ue, {
87
+ }), m ? Ye(tt, {
76
88
  in: d,
77
89
  timeout: "auto",
78
- children: _e("div", {
79
- className: Ct.stackTraceContainer,
90
+ children: Ye("div", {
91
+ className: Mt.stackTraceContainer,
80
92
  style: {
81
93
  backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
82
94
  borderTop: "1px solid var(--sxl-color-error)"
83
95
  },
84
- children: _e(Ae, {
96
+ children: Ye(Le, {
85
97
  error: a,
86
98
  hideLineNumbers: !0
87
99
  })
@@ -90,13 +102,13 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./B7vbn_
90
102
  })
91
103
  });
92
104
  }));
93
- Dt.displayName = "ToastError";
94
- var St = () => {
95
- const e = ue();
96
- return _e(Ee, {
105
+ $t.displayName = "ToastError";
106
+ var Lt = () => {
107
+ const e = ke();
108
+ return Ye(je, {
97
109
  label: "SheetXL",
98
110
  description: e("logo.description"),
99
- children: _e(He, {
111
+ children: Ye(Je, {
100
112
  component: "a",
101
113
  href: "https://www.sheetxl.com",
102
114
  target: "_blank",
@@ -109,25 +121,25 @@ var St = () => {
109
121
  marginLeft: "6px",
110
122
  cursor: "pointer"
111
123
  },
112
- children: _e(C, { style: {
124
+ children: Ye(T, { style: {
113
125
  width: "24px",
114
126
  height: "24px"
115
127
  } })
116
128
  })
117
129
  });
118
- }, Wt = _e(St, {}), Et = ke(he((e, t) => {
119
- const { workbook: o, className: r, logo: n = Wt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = se(), p = d < 530, u = xe(null), g = kt([
130
+ }, Bt = Ye(Lt, {}), _t = Ce(xe((e, t) => {
131
+ const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ue(), p = d < 530, u = Ee(null), m = Tt([
120
132
  u,
121
133
  c,
122
134
  t
123
135
  ]);
124
- return _e(He, {
136
+ return Ye(Je, {
125
137
  ...l,
126
- ref: g,
138
+ ref: m,
127
139
  className: r,
128
- children: m({
140
+ children: f({
129
141
  isCompact: p,
130
- wrapperSelect: (e) => Ke(He, {
142
+ wrapperSelect: (e) => Ze(Je, {
131
143
  sx: {
132
144
  display: "grid",
133
145
  gridTemplateColumns: "1fr auto 1fr",
@@ -138,7 +150,7 @@ var St = () => {
138
150
  paddingRight: (e) => e.spacing(1)
139
151
  },
140
152
  children: [
141
- Ke(He, {
153
+ Ze(Je, {
142
154
  sx: {
143
155
  display: "flex",
144
156
  flexDirection: "row",
@@ -146,7 +158,7 @@ var St = () => {
146
158
  justifyContent: "start",
147
159
  gap: (e) => e.spacing(.5)
148
160
  },
149
- children: [n, Ke(He, {
161
+ children: [n, Ze(Je, {
150
162
  sx: {
151
163
  display: "flex",
152
164
  flexDirection: "row",
@@ -156,7 +168,7 @@ var St = () => {
156
168
  children: [i, e]
157
169
  })]
158
170
  }),
159
- _e(He, {
171
+ Ye(Je, {
160
172
  sx: {
161
173
  display: "flex",
162
174
  flexDirection: "row",
@@ -167,7 +179,7 @@ var St = () => {
167
179
  },
168
180
  children: a
169
181
  }),
170
- _e(He, {
182
+ Ye(Je, {
171
183
  sx: {
172
184
  display: "flex",
173
185
  alignItems: "center",
@@ -180,12 +192,12 @@ var St = () => {
180
192
  })
181
193
  });
182
194
  }));
183
- Et.displayName = "StudioToolbar";
184
- var Tt = (e, t) => {
195
+ _t.displayName = "StudioToolbar";
196
+ var Kt = (e, t) => {
185
197
  const o = new URL(window.location.pathname, window.location.origin);
186
- e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + at.uuidV4(), "popup=true");
198
+ e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + gt.uuidV4(), "popup=true");
187
199
  };
188
- function Ft(e, t) {
200
+ function Ht(e, t) {
189
201
  const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
190
202
  let l = !1;
191
203
  const c = async (e = null, t = null, o = null) => {
@@ -194,20 +206,20 @@ function Ft(e, t) {
194
206
  typedCreateWorkbookOptions: t ?? void 0,
195
207
  onPassword: async ({ origin: e, validate: t }) => {
196
208
  const o = await i.showInput({
197
- title: gt("dialog.password.title"),
198
- description: gt("dialog.password.open.description", { name: e.getName() ?? "" }),
209
+ title: Ct("dialog.password.title"),
210
+ description: Ct("dialog.password.open.description", { name: e.getName() ?? "" }),
199
211
  inputType: "password",
200
212
  options: [{
201
213
  id: "Open",
202
- label: () => gt("dialog.open")
214
+ label: () => Ct("dialog.open")
203
215
  }, "Cancel"],
204
216
  defaultOption: "Open",
205
217
  onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
206
218
  valid: !1,
207
- message: gt("dialog.password.open.retry")
219
+ message: Ct("dialog.password.open.retry")
208
220
  } : {
209
221
  valid: !1,
210
- message: gt("dialog.password.open.required")
222
+ message: Ct("dialog.password.open.required")
211
223
  }
212
224
  });
213
225
  return "Open" === o?.option ? o.input ?? null : null;
@@ -219,11 +231,11 @@ function Ft(e, t) {
219
231
  let a;
220
232
  o && (n.progress.onStart = o);
221
233
  let s = -5;
222
- return F.read({
234
+ return R.read({
223
235
  ...n,
224
236
  progress: {
225
237
  async onStart(e, t) {
226
- await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(gt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
238
+ await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Ct("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
227
239
  },
228
240
  onProgress(e, t) {
229
241
  if (!t) return;
@@ -236,7 +248,7 @@ function Ft(e, t) {
236
248
  o - s < 5 || (s = o, a?.setProgress?.(e, t));
237
249
  },
238
250
  onComplete() {
239
- a?.(), r.length > 0 && (i.showMessage(gt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
251
+ a?.(), r.length > 0 && (i.showMessage(Ct("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
240
252
  },
241
253
  onWarning(e, t) {
242
254
  n?.progress?.onWarning?.(e, t);
@@ -249,7 +261,7 @@ function Ft(e, t) {
249
261
  format: t?.key,
250
262
  progress: {
251
263
  async onStart(e) {
252
- a = await i?.showBusy?.(gt("workbook.saving", { name: e?.getName() ?? "" }));
264
+ a = await i?.showBusy?.(Ct("workbook.saving", { name: e?.getName() ?? "" }));
253
265
  },
254
266
  onComplete() {
255
267
  a?.();
@@ -257,55 +269,55 @@ function Ft(e, t) {
257
269
  },
258
270
  onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
259
271
  a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
260
- const r = gt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await F.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = gt("dialog.writeWarnings.keep");
272
+ const r = Ct("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Ct("dialog.writeWarnings.keep");
261
273
  return o ? "Save" === await i.showOptions({
262
274
  title: r,
263
- type: q.Warning,
264
- description: `${gt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
275
+ type: Q.Warning,
276
+ description: `${Ct("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
265
277
  options: [{
266
278
  id: "Save",
267
- label: () => gt("dialog.save")
279
+ label: () => Ct("dialog.save")
268
280
  }, "Cancel"],
269
281
  defaultOption: "Cancel"
270
- }) && (a = await i?.showBusy?.(gt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
282
+ }) && (a = await i?.showBusy?.(Ct("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
271
283
  title: r,
272
- type: q.Warning,
273
- description: `${gt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
284
+ type: Q.Warning,
285
+ description: `${Ct("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
274
286
  options: ["Ok"]
275
287
  }), !0);
276
288
  })
277
289
  };
278
290
  let l;
279
291
  if (o) {
280
- const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || gt("workbook.defaultName")}.${r}`;
281
- l = await F.writeAs(e, a, {
292
+ const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || Ct("workbook.defaultName")}.${r}`;
293
+ l = await R.writeAs(e, a, {
282
294
  ...s,
283
295
  prompt: !0
284
296
  });
285
- } else l = await F.write(e, void 0, s);
297
+ } else l = await R.write(e, void 0, s);
286
298
  return l;
287
299
  };
288
300
  let p = null;
289
301
  return e.updateCommand("newWorkbook", { callback: async (e) => {
290
- const t = F.canRead() && !a();
302
+ const t = R.canRead() && !a();
291
303
  e?.source ? t && p ? await p({
292
304
  url: e.source,
293
305
  title: e.title
294
- }) : Tt(e.source, e.title) : t ? r({}) : Tt();
306
+ }) : Kt(e.source, e.title) : t ? r({}) : Kt();
295
307
  } }), e.updateCommand("closeWorkbook", { callback: async () => {
296
308
  a() && "Close" !== await i.showOptions({
297
- title: gt("dialog.confirm.title"),
298
- description: gt("dialog.unsavedChanges"),
309
+ title: Ct("dialog.confirm.title"),
310
+ description: Ct("dialog.unsavedChanges"),
299
311
  options: [{
300
312
  id: "Close",
301
- label: () => gt("dialog.close")
313
+ label: () => Ct("dialog.close")
302
314
  }, "Cancel"],
303
315
  defaultOption: "Cancel"
304
316
  }) || window.close();
305
317
  } }), (async () => {
306
- const t = await F.getWriteFormats();
318
+ const t = await R.getWriteFormats();
307
319
  if (l) return;
308
- const n = F.canWrite(), u = F.canRead();
320
+ const n = R.canWrite(), u = R.canRead();
309
321
  if (n) {
310
322
  const r = (e) => {
311
323
  const r = e ? t.find((t) => t.key === e) : void 0;
@@ -319,13 +331,13 @@ function Ft(e, t) {
319
331
  for (const o of t) {
320
332
  const t = o.key;
321
333
  e.updateCommand(`saveWorkbookAs${t}`, {
322
- label: () => gt("command.saveAsFormat.label", { format: o.description }),
334
+ label: () => Ct("command.saveAsFormat.label", { format: o.description }),
323
335
  groupLabels: {
324
- workbook: () => gt("command.saveAsFormat.workbook", { format: o.description }),
325
- saveWorkbookOptions: () => gt("command.saveAsFormat.compact", { format: o.description })
336
+ workbook: () => Ct("command.saveAsFormat.workbook", { format: o.description }),
337
+ saveWorkbookOptions: () => Ct("command.saveAsFormat.compact", { format: o.description })
326
338
  },
327
339
  tags: o.tags,
328
- description: () => gt("command.saveAsFormat", { format: o.description }),
340
+ description: () => Ct("command.saveAsFormat", { format: o.description }),
329
341
  icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
330
342
  callback: () => {
331
343
  r(t);
@@ -353,7 +365,7 @@ function Ft(e, t) {
353
365
  autoSelect: e === i.length - 1
354
366
  }).getEntireRange().copyFrom(t.getEntireRange());
355
367
  }
356
- }, mt("op.importData")), a.close();
368
+ }, vt("op.importData")), a.close();
357
369
  } catch (e) {
358
370
  i.showError(e);
359
371
  }
@@ -362,9 +374,9 @@ function Ft(e, t) {
362
374
  tags: ["noTransaction", "noRepeat"],
363
375
  callback: async (e = null) => {
364
376
  let t = e;
365
- if (t || F.canRead() || (t = await (async () => {
366
- const e = await F.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
367
- return it.openFileDialog(t.length ? t.join(",") : "*.*");
377
+ if (t || R.canRead() || (t = await (async () => {
378
+ const e = await R.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
379
+ return ht.openFileDialog(t.length ? t.join(",") : "*.*");
368
380
  })(), t)) return m(t);
369
381
  }
370
382
  }), e.updateCommand("insertDataFromURL", {
@@ -372,14 +384,14 @@ function Ft(e, t) {
372
384
  callback: async (e) => {
373
385
  if (!e) {
374
386
  const t = await i.showInput({
375
- title: gt("dialog.importFromWeb.title"),
376
- description: gt("dialog.importFromWeb.description"),
377
- inputLabel: gt("dialog.webAddress.inputLabel"),
387
+ title: Ct("dialog.importFromWeb.title"),
388
+ description: Ct("dialog.importFromWeb.description"),
389
+ inputLabel: Ct("dialog.webAddress.inputLabel"),
378
390
  initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
379
391
  propsInput: { style: { minWidth: "440px" } },
380
392
  options: [{
381
393
  id: "Import",
382
- label: () => gt("dialog.import")
394
+ label: () => Ct("dialog.import")
383
395
  }]
384
396
  });
385
397
  if ("Import" !== t.option) return;
@@ -396,11 +408,11 @@ function Ft(e, t) {
396
408
  }
397
409
  }), u) {
398
410
  const t = async () => !a() || "Open" === await i.showOptions({
399
- title: gt("dialog.confirm.title"),
400
- description: gt("dialog.unsavedChanges"),
411
+ title: Ct("dialog.confirm.title"),
412
+ description: Ct("dialog.unsavedChanges"),
401
413
  options: [{
402
414
  id: "Open",
403
- label: () => gt("dialog.open")
415
+ label: () => Ct("dialog.open")
404
416
  }, "Cancel"],
405
417
  defaultOption: "Cancel"
406
418
  }), n = async (e = null) => {
@@ -423,14 +435,14 @@ function Ft(e, t) {
423
435
  const r = "string" == typeof e ? void 0 : e?.title;
424
436
  if (!o) {
425
437
  const e = await i.showInput({
426
- title: gt("dialog.openFromWeb.title"),
427
- description: gt("dialog.openFromWeb.description"),
428
- inputLabel: gt("dialog.webAddress.inputLabel"),
438
+ title: Ct("dialog.openFromWeb.title"),
439
+ description: Ct("dialog.openFromWeb.description"),
440
+ inputLabel: Ct("dialog.webAddress.inputLabel"),
429
441
  initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
430
442
  propsInput: { style: { minWidth: "440px" } },
431
443
  options: [{
432
444
  id: "Open",
433
- label: () => gt("dialog.open")
445
+ label: () => Ct("dialog.open")
434
446
  }]
435
447
  });
436
448
  if ("Open" !== e.option) return;
@@ -450,9 +462,9 @@ function Ft(e, t) {
450
462
  l = !0, s && (s.current = null);
451
463
  };
452
464
  }
453
- var At = Re(pt("studio:shortcutKeysDialog", () => import("./CexPhV2NPh5ZGHus.mjs")).load);
454
- k(), y();
455
- var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
465
+ var Vt = Ke(wt("studio:shortcutKeysDialog", () => import("./r8bpi-MSpulvmozZ.mjs")).load);
466
+ w(), v();
467
+ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
456
468
  const t = (e) => {
457
469
  if ("function" != typeof e) return e;
458
470
  try {
@@ -462,9 +474,9 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
462
474
  }
463
475
  }, o = (e, o) => {
464
476
  const r = t(e);
465
- return "string" == typeof r ? ut(r, o, st.getActive()) : void 0;
477
+ return "string" == typeof r ? xt(r, o, ft.getActive()) : void 0;
466
478
  }, r = [];
467
- for (const n of e.names()) if (!Pt.has(n)) for (const a of e.keys(n)) {
479
+ for (const n of e.names()) if (!zt.has(n)) for (const a of e.keys(n)) {
468
480
  const i = e.resolveDefinition(n, a);
469
481
  r.push({
470
482
  groupKey: n,
@@ -474,27 +486,27 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
474
486
  getDescription: () => o(i?.description, i?.params) ?? "",
475
487
  getShortcut: () => t(i?.shortcut) ?? null,
476
488
  getScope: () => n,
477
- getScopeLabel: () => V.DefaultCommandCatalogService.getScopeLabel(n)
489
+ getScopeLabel: () => X.DefaultCommandCatalogService.getScopeLabel(n)
478
490
  }
479
491
  });
480
492
  }
481
493
  return { getAllCommands: () => r };
482
- }, Rt = (e) => {
483
- const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = V.useCommandScope(), c = le(), { showModal: d } = Le(), p = ue(), u = xe(a);
494
+ }, Gt = (e) => {
495
+ const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = X.useCommandScope(), c = me(), { showModal: d } = Ge(), p = ke(), u = Ee(a);
484
496
  u.current = a;
485
- const m = re(() => {
497
+ const m = le(() => {
486
498
  const e = l?.getRoot().getRegistry();
487
499
  if (!e) return;
488
- const t = d(At, {
500
+ const t = d(Vt, {
489
501
  title: p("dialog.shortcutKeys.title"),
490
- commands: It(e),
502
+ commands: Ut(e),
491
503
  onDone: () => t.hide(),
492
504
  onLoadError: (e) => {
493
505
  t.destroy(), c.showError(e);
494
506
  }
495
507
  });
496
508
  }, [l, d]);
497
- ye(() => {
509
+ Se(() => {
498
510
  if (!l) return;
499
511
  const e = l.getRoot().contribution();
500
512
  return function(e, t) {
@@ -510,8 +522,8 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
510
522
  } });
511
523
  }(e, { showShortcuts: m }), () => e.remove();
512
524
  }, [l, m]);
513
- const g = rt("(prefers-color-scheme: dark)"), { themeMode: h } = de(), [f, k] = ce(T.Mode, E[T.Mode]), [b, y] = ce(T.DarkGrid, E[T.DarkGrid]), [w, x] = ce(T.DarkImages, E[T.DarkImages]);
514
- ye(() => {
525
+ const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } = he(), [f, k] = ge(N.Mode, I[N.Mode]), [b, y] = ge(N.DarkGrid, I[N.DarkGrid]), [w, x] = ge(N.DarkImages, I[N.DarkImages]);
526
+ Se(() => {
515
527
  if (!l) return;
516
528
  const e = l.getRoot().contribution();
517
529
  return function(e, t) {
@@ -552,10 +564,10 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
552
564
  y,
553
565
  x
554
566
  ]);
555
- const [v, C] = ce(G.Active, null), [D, S] = ve(() => st.getActive());
556
- ye(() => st.addChangeListener(S), []), ye(() => {
557
- v && v !== st.getActive() && st.setActive(v);
558
- }, [v]), ye(() => {
567
+ const [v, C] = ge(J.Active, null), [D, S] = We(() => ft.getActive());
568
+ Se(() => ft.addChangeListener(S), []), Se(() => {
569
+ v && v !== ft.getActive() && ft.setActive(v);
570
+ }, [v]), Se(() => {
559
571
  if (!l) return;
560
572
  const e = l.getRoot().contribution();
561
573
  return function(e, t) {
@@ -576,32 +588,32 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
576
588
  D,
577
589
  C
578
590
  ]);
579
- const W = we(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: A, toggleFullscreen: P } = ne({ target: W });
580
- ye(() => {
591
+ const T = Te(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = ce({ target: T });
592
+ Se(() => {
581
593
  if (!l) return;
582
594
  const e = l.getRoot().contribution();
583
595
  return function(e, t) {
584
596
  e.updateCommand("fullScreenToggle", {
585
597
  state: t.isFullscreenEnabled,
586
- disabledReasons: t.isFullscreenAvailable ? [] : [mt("reason.fullscreenUnavailable")],
598
+ disabledReasons: t.isFullscreenAvailable ? [] : [vt("reason.fullscreenUnavailable")],
587
599
  icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
588
600
  callback: () => {
589
601
  t.toggleFullscreen();
590
602
  }
591
603
  });
592
604
  }(e, {
593
- isFullscreenAvailable: F,
594
- isFullscreenEnabled: A,
595
- toggleFullscreen: P
605
+ isFullscreenAvailable: E,
606
+ isFullscreenEnabled: W,
607
+ toggleFullscreen: F
596
608
  }), () => e.remove();
597
609
  }, [
598
610
  l,
599
- F,
600
- A,
601
- P
611
+ E,
612
+ W,
613
+ F
602
614
  ]);
603
- const I = B(!0);
604
- return ye(() => {
615
+ const P = z(!0);
616
+ return Se(() => {
605
617
  if (!l) return;
606
618
  const e = l.getRoot().contribution();
607
619
  return function(e, t) {
@@ -611,10 +623,10 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
611
623
  t("manageProtection", { args: { tab: "workbook" } });
612
624
  }
613
625
  });
614
- }(e, (e, t) => I.activate(e, t)), () => e.remove();
615
- }, [l, I]), ye(() => {
626
+ }(e, (e, t) => P.activate(e, t)), () => e.remove();
627
+ }, [l, P]), Se(() => {
616
628
  if (!l || !o) return;
617
- const e = l.getRoot().contribution(), t = Ft(e, {
629
+ const e = l.getRoot().contribution(), t = Ht(e, {
618
630
  workbook: o,
619
631
  setWorkbook: r,
620
632
  workbookTitle: n ?? void 0,
@@ -634,9 +646,9 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
634
646
  i
635
647
  ]), t;
636
648
  };
637
- Rt.displayName = "StudioCommandProvider";
638
- var jt = ({ renderWorkbook: e }) => {
639
- const t = V.useCommandResolver(), o = xe(null), r = ue(), [n, a] = ve(null), i = be((e) => {
649
+ Gt.displayName = "StudioCommandProvider";
650
+ var qt = ({ renderWorkbook: e }) => {
651
+ const t = X.useCommandResolver(), o = Ee(null), r = ke(), [n, a] = We(null), i = De((e) => {
640
652
  const o = e.dataTransfer;
641
653
  if (t && o) {
642
654
  if ("dragenter" === e.type || "dragover" === e.type) {
@@ -653,7 +665,7 @@ var jt = ({ renderWorkbook: e }) => {
653
665
  }
654
666
  e.preventDefault();
655
667
  }
656
- }, [t]), s = re((e) => {
668
+ }, [t]), s = le((e) => {
657
669
  e.preventDefault();
658
670
  const r = n;
659
671
  if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
@@ -678,15 +690,15 @@ var jt = ({ renderWorkbook: e }) => {
678
690
  } }
679
691
  });
680
692
  } else {
681
- if (!F.canRead()) return;
693
+ if (!R.canRead()) return;
682
694
  const o = e.dataTransfer.items?.[0], n = "undefined" != typeof window && window.isSecureContext ? o?.getAsFileSystemHandle?.() : void 0;
683
695
  n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
684
696
  }
685
697
  }
686
- }, [t, n]), l = we(() => {
698
+ }, [t, n]), l = Te(() => {
687
699
  if (!n) return null;
688
700
  const e = "insertImage" === n;
689
- return _e(He, {
701
+ return Ye(Je, {
690
702
  className: "drop-overlay",
691
703
  sx: {
692
704
  position: "absolute",
@@ -697,12 +709,12 @@ var jt = ({ renderWorkbook: e }) => {
697
709
  display: "flex",
698
710
  justifyContent: "center",
699
711
  alignItems: "center",
700
- backgroundColor: (e) => ot(e.palette.primary.main, .46),
712
+ backgroundColor: (e) => pt(e.palette.primary.main, .46),
701
713
  outline: (e) => `2px dashed ${e.palette.primary.main}`,
702
714
  outlineOffset: "-6px",
703
715
  borderRadius: 2
704
716
  },
705
- children: Ke(Ye, {
717
+ children: Ze(at, {
706
718
  elevation: 6,
707
719
  sx: {
708
720
  display: "flex",
@@ -714,11 +726,11 @@ var jt = ({ renderWorkbook: e }) => {
714
726
  color: "text.primary",
715
727
  "& .drop-overlay-icon": { color: "primary.main" }
716
728
  },
717
- children: [_e(U, {
729
+ children: [Ye(Z, {
718
730
  iconKey: e ? "InsertImage" : "FileOpen",
719
731
  className: "drop-overlay-icon",
720
732
  size: 32
721
- }), _e(tt, {
733
+ }), Ye(dt, {
722
734
  variant: "h6",
723
735
  component: "span",
724
736
  children: r(e ? "drop.insertImage" : "drop.open")
@@ -726,7 +738,7 @@ var jt = ({ renderWorkbook: e }) => {
726
738
  })
727
739
  });
728
740
  }, [n, r]);
729
- return Ke(Be, { children: [e({
741
+ return Ze(Xe, { children: [e({
730
742
  ref: o,
731
743
  onDragStart: (e) => {
732
744
  if (e.target.src) {
@@ -739,48 +751,50 @@ var jt = ({ renderWorkbook: e }) => {
739
751
  onDragOver: i,
740
752
  onDrop: s
741
753
  }), l] });
742
- }, Nt = ke((e) => {
754
+ }, Xt = Ce((e) => {
743
755
  const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
744
- return _e(x, {
756
+ return Ye(D, {
745
757
  initialAnchor: s,
746
- children: _e(Rt, {
758
+ children: Ye(Gt, {
747
759
  workbook: t,
748
760
  setWorkbook: o,
749
761
  workbookTitle: n,
750
762
  isDirty: i,
751
763
  refSave: c,
752
764
  fullscreenTarget: d,
753
- children: _e(jt, { renderWorkbook: l })
765
+ children: Ye(qt, { renderWorkbook: l })
754
766
  })
755
767
  });
756
768
  });
757
- Nt.displayName = "CommandsWrapper";
758
- var Ot = {
759
- sort: pt("studio:sortDialog", () => import("./CkW8xNdW45Xg7jy7.mjs")).load,
760
- hyperlink: pt("studio:hyperlinkDialog", () => import("./B26ot2vO6Hd47uH0.mjs")).load,
761
- find: pt("studio:findReplaceWindow", () => import("./Cx4tBEsm3SjAafcw.mjs")).load,
762
- tableNew: pt("studio:tableNewDialog", () => import("./CFi_Yls-gurU_CX3.mjs")).load,
763
- namedDetails: pt("studio:namedReferenceDialog", () => import("./TgwnKYh-WPxEgmyr.mjs")).load,
764
- insertFunction: pt("studio:insertFunctionDialog", () => import("./-Adgw5-ltK-rfp33.mjs")).load,
765
- resizeHeader: pt("studio:resizeHeaderDialog", () => import("./ISBEql8s7AnELTpd.mjs")).load,
766
- outlineSettings: pt("studio:outlineSettingsDialog", () => import("./CORxK68HpwPUYA6O.mjs")).load,
767
- fillSeries: pt("studio:fillSeriesDialog", () => import("./CzKFdVrPSDYOUdWI.mjs")).load,
768
- workbookStatistics: pt("studio:workbookStatisticsDialog", () => import("./DOuASwH2Lf83hMLe.mjs")).load,
769
- password: pt("studio:passwordDialog", () => import("./q2Byx8RdDnHk8YyG.mjs")).load
770
- }, Mt = ["find"], Lt = ke((e) => {
771
- const { children: t } = e, o = wt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = xe(/* @__PURE__ */ new Set()), i = xe(null), s = xe(null), [l, c] = ve({
769
+ Xt.displayName = "CommandsWrapper";
770
+ var Yt = {
771
+ sort: wt("studio:sortDialog", () => import("./Bp6WSG8tmXefxSlk.mjs")).load,
772
+ hyperlink: wt("studio:hyperlinkDialog", () => import("./D2ZUCui3Xosjj66H.mjs")).load,
773
+ find: wt("studio:findReplaceWindow", () => import("./CQd5k9d0BWpU8yCQ.mjs")).load,
774
+ tableNew: wt("studio:tableNewDialog", () => import("./DN2KKVrC1ye0mldi.mjs")).load,
775
+ pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./Dm-skjfQUaumyQPp.mjs")).load,
776
+ namedDetails: wt("studio:namedReferenceDialog", () => import("./CA2iwgwOkAwRJU9j.mjs")).load,
777
+ insertFunction: wt("studio:insertFunctionDialog", () => import("./BiVdQ27eA1Rs9liu.mjs")).load,
778
+ resizeHeader: wt("studio:resizeHeaderDialog", () => import("./D7__y1LhVOR38yxz.mjs")).load,
779
+ outlineSettings: wt("studio:outlineSettingsDialog", () => import("./Jp--thwzf0FSnHTH.mjs")).load,
780
+ fillSeries: wt("studio:fillSeriesDialog", () => import("./CCy_wcDWd9xbQnyM.mjs")).load,
781
+ workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./ClwmPxZc7Uh4nRcr.mjs")).load,
782
+ password: wt("studio:passwordDialog", () => import("./BzLnWJ1JhLnookTH.mjs")).load,
783
+ pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./axzlGUKK8euccdja.mjs")).load
784
+ }, Zt = ["find"], Jt = Ce((e) => {
785
+ const { children: t } = e, o = Ft(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = Ee(/* @__PURE__ */ new Set()), i = Ee(null), s = Ee(null), [l, c] = We({
772
786
  label: null,
773
787
  progress: null
774
- }), d = ue(), p = at.EmptyObject, u = Me(p), m = $e(p), g = Oe(p), h = xe(!1);
775
- ye(() => {
788
+ }), d = ke(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = ze(p), h = Ee(!1);
789
+ Se(() => {
776
790
  if (h.current) return;
777
791
  h.current = !0;
778
792
  const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
779
- for (const e of Mt) u(e, Ot[e], { prewarm: !0 }).catch(() => {});
793
+ for (const e of Zt) u(e, Yt[e], { prewarm: !0 }).catch(() => {});
780
794
  });
781
795
  return () => o(r);
782
796
  }, []);
783
- const f = xe(/* @__PURE__ */ new Set()), k = we(() => {
797
+ const f = Ee(/* @__PURE__ */ new Set()), k = Te(() => {
784
798
  const e = (e, t) => {
785
799
  if (t?.onceKey) {
786
800
  if (f.current.has(t.onceKey)) return;
@@ -788,16 +802,16 @@ var Ot = {
788
802
  e.add(t.onceKey), f.current = e;
789
803
  }
790
804
  const o = {
791
- variant: t?.type ?? q.Info,
805
+ variant: t?.type ?? Q.Info,
792
806
  anchorOrigin: {
793
807
  vertical: "top",
794
808
  horizontal: "center"
795
809
  },
796
810
  preventDuplicate: t?.preventDuplicate,
797
- persist: t?.persist ?? t?.type === q.Error,
798
- action: (e) => _e(Xe, {
811
+ persist: t?.persist ?? t?.type === Q.Error,
812
+ action: (e) => Ye(nt, {
799
813
  onClick: () => n(e),
800
- children: _e(U, { iconKey: "Cancel" })
814
+ children: Ye(Z, { iconKey: "Cancel" })
801
815
  })
802
816
  };
803
817
  t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
@@ -810,8 +824,8 @@ var Ot = {
810
824
  ...t,
811
825
  label: e
812
826
  });
813
- const r = oe(() => {
814
- a.current.delete(o) && (a.current.size > 0 || (Ie(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
827
+ const r = se(() => {
828
+ a.current.delete(o) && (a.current.size > 0 || (_e(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
815
829
  label: null,
816
830
  progress: null
817
831
  })));
@@ -822,11 +836,11 @@ var Ot = {
822
836
  progress: o
823
837
  });
824
838
  }, (e) => {
825
- s.current = e, "string" == typeof e ? Ne(i.current, e) : c((t) => ({
839
+ s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
826
840
  ...t,
827
841
  label: e
828
842
  }));
829
- }), n = Ne(i.current, "string" == typeof e ? e : void 0);
843
+ }), n = Ve(i.current, "string" == typeof e ? e : void 0);
830
844
  return n ? n.then(() => r) : r;
831
845
  },
832
846
  showWindow: (e, t) => {
@@ -836,22 +850,22 @@ var Ot = {
836
850
  onKeyDown: (e) => {
837
851
  e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
838
852
  }
839
- }, u(e, Ot[e], t);
853
+ }, u(e, Yt[e], t);
840
854
  },
841
855
  showOptions: m,
842
856
  showInput: g,
843
857
  showError: (t) => {
844
- let o, r = q.Error, n = d("error.unknown");
845
- "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof dt && (r = q.Info), e(n, {
858
+ let o, r = Q.Error, n = d("error.unknown");
859
+ "string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof yt && (r = Q.Info), e(n, {
846
860
  type: r,
847
861
  enqueueProps: { error: o }
848
862
  });
849
863
  }
850
864
  };
851
- }, [d]), b = we(() => _e(Ce, {
865
+ }, [d]), b = Te(() => Ye(Fe, {
852
866
  ref: i,
853
867
  autoStart: !1,
854
- icon: _e(De, { sx: {
868
+ icon: Ye(Pe, { sx: {
855
869
  transform: "scale(0.7)",
856
870
  marginLeft: "-6px"
857
871
  } }),
@@ -868,19 +882,19 @@ var Ot = {
868
882
  pointerEvents: "none"
869
883
  }
870
884
  }), [l.label, l.progress]);
871
- return Ke(Y, {
885
+ return Ze(te, {
872
886
  notifier: k,
873
887
  children: [b, t]
874
888
  });
875
889
  });
876
- Lt.displayName = "StudioNotifierProvider";
877
- var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Bt = ke(he((e, t) => {
878
- const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = v, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = ie(), h = we(() => n.map((t) => {
890
+ Jt.displayName = "StudioNotifierProvider";
891
+ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", eo = Ce(xe((e, t) => {
892
+ const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = S, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = pe(), h = Te(() => n.map((t) => {
879
893
  const o = s.getRegisteredTaskPane(t);
880
894
  if (!o) return null;
881
895
  let r = o.getIcon?.();
882
- "string" == typeof r && (r = _e(U, { iconKey: r }));
883
- const n = t === i, a = r ? _e(He, {
896
+ "string" == typeof r && (r = Ye(Z, { iconKey: r }));
897
+ const n = t === i, a = r ? Ye(Je, {
884
898
  sx: {
885
899
  display: "inline-block",
886
900
  transform: m ? "rotate(-90deg)" : "rotate(90deg)",
@@ -888,20 +902,20 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
888
902
  color: (e) => e.palette.text.secondary
889
903
  },
890
904
  children: r
891
- }) : null, l = !r || !c && n, d = _e(He, {
905
+ }) : null, l = !r || !c && n, d = Ye(Je, {
892
906
  sx: {
893
907
  display: "grid",
894
908
  gridTemplateColumns: l ? "1fr" : "0fr",
895
909
  opacity: l ? 1 : 0,
896
910
  transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
897
911
  },
898
- children: _e(He, {
912
+ children: Ye(Je, {
899
913
  sx: {
900
914
  overflow: "hidden",
901
915
  minWidth: 0,
902
916
  minHeight: 0
903
917
  },
904
- children: _e(tt, {
918
+ children: Ye(dt, {
905
919
  component: "div",
906
920
  sx: {
907
921
  textTransform: "none",
@@ -914,13 +928,13 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
914
928
  })
915
929
  })
916
930
  });
917
- return _e(Je, {
931
+ return Ye(st, {
918
932
  value: t,
919
- label: _e(Fe, {
933
+ label: Ye($e, {
920
934
  disableInteractive: !0,
921
935
  title: o.getTitle() ?? "",
922
936
  placement: "left-start",
923
- children: Ke(He, {
937
+ children: Ze(Je, {
924
938
  sx: {
925
939
  padding: "0px 0px",
926
940
  writingMode: m ? "vertical-lr" : "vertical-rl",
@@ -940,7 +954,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
940
954
  minHeight: "0px",
941
955
  borderRadius: "4px"
942
956
  },
943
- className: ht("taskpane-strip-item", { "Mui-selected": n }),
957
+ className: Dt("taskpane-strip-item", { "Mui-selected": n }),
944
958
  onClick: () => e.onSelect(t)
945
959
  }, t);
946
960
  }), [
@@ -951,8 +965,8 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
951
965
  m,
952
966
  c,
953
967
  g
954
- ]), f = ae(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = we(() => ht("taskpane-strip", p), [p]);
955
- return _e(He, {
968
+ ]), f = de(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Te(() => Dt("taskpane-strip", p), [p]);
969
+ return Ye(Je, {
956
970
  ref: f,
957
971
  className: k,
958
972
  sx: {
@@ -962,7 +976,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
962
976
  ...l
963
977
  },
964
978
  ...u,
965
- children: _e(Qe, {
979
+ children: Ye(lt, {
966
980
  orientation: "vertical",
967
981
  variant: "scrollable",
968
982
  value: i,
@@ -980,10 +994,10 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
980
994
  children: h
981
995
  })
982
996
  });
983
- })), _t = (e) => {
984
- const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = xe(null), l = ue();
985
- return _e(qe, {
986
- className: ht({ "Mui-selected": a }),
997
+ })), to = (e) => {
998
+ const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = ke();
999
+ return Ye(rt, {
1000
+ className: Dt({ "Mui-selected": a }),
987
1001
  sx: {
988
1002
  display: "flex",
989
1003
  flex: "1 1 %0",
@@ -997,11 +1011,11 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
997
1011
  opacity: 1,
998
1012
  transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
999
1013
  },
1000
- backgroundColor: (e) => ot(e.palette.action.hover, .03),
1001
- borderBottom: `solid ${$t} 1px`
1014
+ backgroundColor: (e) => pt(e.palette.action.hover, .03),
1015
+ borderBottom: `solid ${Qt} 1px`
1002
1016
  },
1003
1017
  ...i,
1004
- children: Ke(He, {
1018
+ children: Ze(Je, {
1005
1019
  sx: {
1006
1020
  display: "flex",
1007
1021
  flex: "1 1 10%",
@@ -1012,15 +1026,15 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1012
1026
  marginLeft: (e) => e.spacing(1),
1013
1027
  marginRight: (e) => e.spacing(1)
1014
1028
  },
1015
- children: [_e(He, {
1029
+ children: [Ye(Je, {
1016
1030
  sx: {
1017
1031
  flex: "1 1 100%",
1018
1032
  paddingLeft: (e) => e.spacing(1)
1019
1033
  },
1020
1034
  children: t
1021
- }), _e(Ee, {
1035
+ }), Ye(je, {
1022
1036
  label: l("taskPane.close"),
1023
- children: _e(Xe, {
1037
+ children: Ye(nt, {
1024
1038
  "aria-label": "close",
1025
1039
  sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
1026
1040
  touchRippleRef: s,
@@ -1030,14 +1044,14 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1030
1044
  onPointerUp: () => {
1031
1045
  r();
1032
1046
  },
1033
- children: _e(U, { iconKey: "Close" })
1047
+ children: Ye(Z, { iconKey: "Close" })
1034
1048
  })
1035
1049
  })]
1036
1050
  })
1037
1051
  });
1038
- }, Kt = he((e, t) => {
1039
- const { model: o, side: r, ...n } = e, a = nt(), i = `solid ${$t} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1040
- return _e(S, {
1052
+ }, oo = xe((e, t) => {
1053
+ const { model: o, side: r, ...n } = e, a = mt(), i = `solid ${Qt} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
1054
+ return Ye(P, {
1041
1055
  model: o,
1042
1056
  ref: t,
1043
1057
  propsFrame: { style: {
@@ -1046,8 +1060,8 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1046
1060
  marginBottom: l
1047
1061
  } },
1048
1062
  alwaysShowStrip: !0,
1049
- componentTitle: _t,
1050
- componentStrip: Bt,
1063
+ componentTitle: to,
1064
+ componentStrip: eo,
1051
1065
  side: r,
1052
1066
  ...e,
1053
1067
  onOpen: () => {
@@ -1058,16 +1072,16 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1058
1072
  },
1059
1073
  ...n
1060
1074
  });
1061
- }), Ht = "_styled-resizer_fdl5y_3", Vt = {}, zt = {
1075
+ }), ro = "_styled-resizer_fdl5y_3", no = {}, ao = {
1062
1076
  flex: "1 1 100%",
1063
1077
  display: "flex",
1064
1078
  boxSizing: "border-box"
1065
- }, Ut = ke(he((e, t) => {
1066
- const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ce(a ?? null, Vt), m = nt(), [g, { width: h }] = se(), f = h > 530 || 0 === h, k = xe(null);
1079
+ }, io = Ce(xe((e, t) => {
1080
+ const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ge(a ?? null, no), m = mt(), [g, { width: h }] = ue(), f = h > 530 || 0 === h, k = Ee(null);
1067
1081
  let b, y, w = null, x = 4, v = 13;
1068
1082
  f ? w = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (w = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", x = 13, v = 4);
1069
1083
  let C, D = o, S = r;
1070
- const W = "right" !== c, E = f ? "row" : "column", T = W && S ? "before" : "after", F = `${E}:${T}`, A = a ? p[F] : void 0, P = null != A ? `${A}%` : ((e, t) => {
1084
+ const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`, P = a ? p[F] : void 0, A = null != P ? `${P}%` : ((e, t) => {
1071
1085
  if (null == e) return "40%";
1072
1086
  if ("number" == typeof e || "string" == typeof e) return e;
1073
1087
  const o = e[t];
@@ -1078,17 +1092,17 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1078
1092
  [F]: e.percent
1079
1093
  })), i?.(e, {
1080
1094
  orientation: E,
1081
- side: T,
1095
+ side: W,
1082
1096
  key: F
1083
1097
  });
1084
1098
  } : void 0;
1085
- W && S ? (D = r, S = o, y = { style: {
1099
+ T && S ? (D = r, S = o, y = { style: {
1086
1100
  flexDirection: "column",
1087
1101
  boxSizing: "border-box",
1088
1102
  paddingRight: "2px"
1089
1103
  } }, b = {}, C = {
1090
1104
  fixedPane: "before",
1091
- position: P,
1105
+ position: A,
1092
1106
  minBefore: f ? "280px" : "120px",
1093
1107
  splitDirection: f ? "row" : "column"
1094
1108
  }) : (b = { style: {
@@ -1099,33 +1113,33 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1099
1113
  marginRight: f ? "8px" : "4px"
1100
1114
  } }, C = {
1101
1115
  fixedPane: "after",
1102
- position: P,
1116
+ position: A,
1103
1117
  minAfter: f ? "280px" : "120px",
1104
1118
  splitDirection: f ? "row" : "column"
1105
1119
  });
1106
- const R = kt([
1120
+ const N = Tt([
1107
1121
  k,
1108
1122
  g,
1109
1123
  t
1110
1124
  ]);
1111
- return _e(ee, {
1112
- ref: R,
1125
+ return Ye(ae, {
1126
+ ref: N,
1113
1127
  className: s,
1114
1128
  style: l ? {
1115
- ...zt,
1129
+ ...ao,
1116
1130
  ...l
1117
- } : zt,
1131
+ } : ao,
1118
1132
  ...d,
1119
1133
  ...C,
1120
1134
  onPositionChange: I,
1121
1135
  propsResizer: {
1122
- className: ht("styled-resizer", Ht),
1136
+ className: Dt("styled-resizer", ro),
1123
1137
  style: {
1124
1138
  minWidth: f ? "7px" : void 0,
1125
1139
  minHeight: f ? void 0 : "6px",
1126
1140
  maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${v}' viewBox='0 0 ${x} ${v}' version='1.1' fill='${m.palette.text.icon ?? m.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${w}' /%3E%3C/svg%3E%0A")`,
1127
1141
  maskRepeat: "no-repeat",
1128
- maskPosition: W ? f ? "center center" : "bottom center" : f ? "left center" : "top center"
1142
+ maskPosition: T ? f ? "center center" : "bottom center" : f ? "left center" : "top center"
1129
1143
  }
1130
1144
  },
1131
1145
  elementBefore: D,
@@ -1134,15 +1148,15 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
1134
1148
  propsPaneAfter: y
1135
1149
  });
1136
1150
  }));
1137
- Ut.displayName = "StudioSplitPane";
1138
- var Gt = () => _e("div", { style: {
1151
+ io.displayName = "StudioSplitPane";
1152
+ var so = () => Ye("div", { style: {
1139
1153
  flex: "none",
1140
1154
  height: 0,
1141
1155
  borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
1142
- } }), qt = (e, t) => {
1143
- const o = (e) => _e(ge.Fragment, { children: t[e] }, e);
1156
+ } }), lo = (e, t) => {
1157
+ const o = (e) => Ye(ye.Fragment, { children: t[e] }, e);
1144
1158
  if ("bottom" === e) {
1145
- const e = t.statusBar && t.formulaBar ? _e(Gt, {}, "divider") : null;
1159
+ const e = t.statusBar && t.formulaBar ? Ye(so, {}, "divider") : null;
1146
1160
  return [
1147
1161
  o("toolbar"),
1148
1162
  o("main"),
@@ -1157,22 +1171,97 @@ var Gt = () => _e("div", { style: {
1157
1171
  o("main"),
1158
1172
  o("statusBar")
1159
1173
  ];
1160
- }, Xt = je(pt("studio:dataValidationDetailsTaskPane", () => import("./Ca31PUiJBGowHeob.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
1161
- l(), N("shape", {
1174
+ }, co = (e) => {
1175
+ const { groups: t } = e;
1176
+ return Ye(Je, {
1177
+ role: "menu",
1178
+ sx: {
1179
+ paddingTop: "4px",
1180
+ paddingBottom: "4px"
1181
+ },
1182
+ children: t.map((e, t) => Ze(we, { children: [t > 0 ? Ye(Ie, { orientation: "horizontal" }) : null, e.map((e) => Ye(Re, {
1183
+ role: void 0 === e.checked ? "menuitem" : "menuitemradio",
1184
+ "aria-checked": e.checked,
1185
+ disabled: e.disabled,
1186
+ selected: e.checked,
1187
+ icon: e.checked ? Ye(Me, {}) : void 0,
1188
+ onClick: e.run,
1189
+ children: e.label
1190
+ }, e.key))] }, t))
1191
+ });
1192
+ }, po = (e) => Ye(co, { ...e }), uo = (e) => {
1193
+ const { pivot: t, name: o, source: r, onError: n } = e, s = ke(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Te(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
1194
+ "accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
1195
+ }, [t, n]), u = le((e) => {
1196
+ if (0 === e.length || e.length > 255) throw new bt(s("error.pivotTable.nameInvalid"));
1197
+ const o = l.getPivotTables().getByName(e);
1198
+ if (o && o.getName() !== t.getName()) throw new bt(s("error.pivotTable.nameExists"));
1199
+ }, [
1200
+ l,
1201
+ t,
1202
+ s
1203
+ ]), m = le((e, o) => {
1204
+ if ("accept" !== o.reason) return;
1205
+ const r = Ot(e);
1206
+ r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
1207
+ }, [t, n]);
1208
+ return Ze(Je, {
1209
+ className: "sxl-pivot-table-header",
1210
+ sx: {
1211
+ display: "flex",
1212
+ flexDirection: "column",
1213
+ rowGap: (e) => e.spacing(1),
1214
+ paddingTop: (e) => e.spacing(1)
1215
+ },
1216
+ children: [Ye(i, {
1217
+ formName: "name",
1218
+ value: o,
1219
+ changeOn: "done",
1220
+ onDone: p,
1221
+ onValidate: u,
1222
+ disabled: c
1223
+ }), Ye(a, {
1224
+ grammar: "reference",
1225
+ formName: "source",
1226
+ label: s("pivotTableNew.source"),
1227
+ value: r,
1228
+ allowMulti: !1,
1229
+ home: d,
1230
+ pickAs: "absolute",
1231
+ changeOn: "done",
1232
+ onDone: m,
1233
+ disabled: c || null === r
1234
+ })]
1235
+ });
1236
+ }, mo = (e) => Ye(uo, { ...e }), go = (e) => Ye(W, {
1237
+ renderMenu: po,
1238
+ renderFilter: g,
1239
+ renderHeader: mo,
1240
+ ...e
1241
+ }), ho = He(wt("studio:dataValidationDetailsTaskPane", () => import("./D9jTg0iWTubkisDB.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = At({
1242
+ EagerStudio: () => wo,
1243
+ default: () => wo
1244
+ });
1245
+ d(), S.registerTaskPane({
1246
+ key: E,
1247
+ getTitle: () => "PivotTable Fields",
1248
+ getIcon: () => "Table",
1249
+ component: go
1250
+ }, !0), B("shape", {
1162
1251
  key: "changeShapeGallery",
1163
- render: (e) => _e(f, {
1252
+ render: (e) => Ye(y, {
1164
1253
  ...e,
1165
1254
  commandKey: "changeShape",
1166
- excludeCategories: vt
1255
+ excludeCategories: Nt
1167
1256
  })
1168
1257
  }, {
1169
1258
  order: -1,
1170
1259
  divider: "after"
1171
- }), j("shape", () => import("./jGsHbOHP90nnx_hJ.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./DGtbmp72kfRXLtDu.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
1260
+ }), L("shape", () => import("./DvN4Z2Hx4Es0sdaK.mjs").then((e) => e.ShapeFormatPanel)), L("chart", () => import("./BWl0RjNZfoJvRX_2.mjs").then((e) => e.ChartFormatPanel)), B("picture", {
1172
1261
  key: "changePictureOptions",
1173
1262
  defaultKey: "changePictureFromFile",
1174
1263
  members: ["changePictureFromFile", "changePictureFromURL"]
1175
- }, { order: -3 }), N("picture", {
1264
+ }, { order: -3 }), B("picture", {
1176
1265
  key: "pictureHyperlinkOptions",
1177
1266
  defaultKey: "updatePictureHyperlink",
1178
1267
  members: [
@@ -1180,7 +1269,7 @@ l(), N("shape", {
1180
1269
  "openPictureHyperlink",
1181
1270
  "deletePictureHyperlink"
1182
1271
  ]
1183
- }, { order: -2 }), V.DefaultCommandButtonRegistry.register({
1272
+ }, { order: -2 }), X.DefaultCommandButtonRegistry.register({
1184
1273
  key: "cropAspectOptions",
1185
1274
  members: [
1186
1275
  "cropAspect1x1",
@@ -1197,15 +1286,15 @@ l(), N("shape", {
1197
1286
  "cropAspect16x9",
1198
1287
  "cropAspect16x10"
1199
1288
  ]
1200
- }, !0), N("picture", {
1289
+ }, !0), B("picture", {
1201
1290
  key: "cropOptions",
1202
1291
  members: [
1203
1292
  {
1204
1293
  key: "cropToShapeGallery",
1205
- render: (e) => _e(f, {
1294
+ render: (e) => Ye(y, {
1206
1295
  ...e,
1207
1296
  commandKey: "cropToShape",
1208
- excludeCategories: vt
1297
+ excludeCategories: Nt
1209
1298
  })
1210
1299
  },
1211
1300
  "cropAspectOptions",
@@ -1216,18 +1305,18 @@ l(), N("shape", {
1216
1305
  }, {
1217
1306
  order: -1,
1218
1307
  divider: "after"
1219
- }), s(), z.register("plugin-table", { icons: {} }), v.registerTaskPane({
1308
+ }), c(), Y.register("plugin-table", { icons: {} }), S.registerTaskPane({
1220
1309
  key: "dataValidationDetails",
1221
1310
  getTitle: () => "Data Validation",
1222
1311
  getIcon: () => "DataValidation",
1223
- component: Xt
1224
- }, !0), v.registerTaskPane({
1312
+ component: ho
1313
+ }, !0), S.registerTaskPane({
1225
1314
  key: "conditionalFormatDetails",
1226
1315
  getTitle: () => "Conditional Formatting",
1227
1316
  getIcon: () => "FormatPaint",
1228
- component: xt
1229
- }, !0), i(), a(), r(), t(), e(), n(), b();
1230
- var Yt = () => {
1317
+ component: It
1318
+ }, !0), l(), s(), r(), t(), e(), n(), x();
1319
+ var ko = () => {
1231
1320
  let e, t;
1232
1321
  const o = new Promise((o, r) => {
1233
1322
  e = o, t = r;
@@ -1242,178 +1331,178 @@ var Yt = () => {
1242
1331
  }
1243
1332
  };
1244
1333
  return o.catch(() => {}), r;
1245
- }, Zt = (e, t) => {
1334
+ }, bo = (e, t) => {
1246
1335
  if (!e) return {};
1247
1336
  const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
1248
- return n && "object" == typeof n ? at.deepMerge(r, n) : r;
1249
- }, Jt = "taskPanePosition", Qt = ke(he((e, t) => {
1250
- const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: m, onDocumentError: f, renderDocumentError: k = g, propsDocumentError: b, propsTaskPaneArea: y, renderTaskPaneArea: x = eo, taskPaneSide: v = "right", onKeyDown: C, workbook: S, onWorkbookChange: j, logo: N, topLeft: B, topRight: q, muiTheme: Y, tokens: ee, cssBaseline: oe, autoFocus: ne = !1, title: ie, onDirtyChange: se, propsDocumentTitle: le, renderDocumentLoading: ue = h, propsDocumentLoading: ge, propsWorkbook: he, showFormulaBar: fe, propsFormulaBar: ke, renderFormulaBar: Ce, formulaBarPlacement: De, manageVisualViewport: Ee = !0, editable: Fe, showStatusBar: Ae, propsStatusBar: Ie, renderStatusBar: Re, propsToolbar: je, renderToolbar: Ne } = e, Oe = xe(null), Me = xe(null), Le = xe(null), $e = re(() => {
1251
- Le.current?.getNamedCollectionEditorElement?.()?.focus?.();
1252
- }, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : Z.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(De), Ve = "bottom" === Be && Ee, ze = me(Ve), Ue = ze ? Math.max(0, Math.round(window.innerHeight - ze.height)) : 0, qe = ze ? Math.round(ze.offsetTop) : 0, Xe = ze?.height;
1253
- ye(() => {
1254
- Ve && void 0 !== Xe && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1255
- }, [Ve, Xe]);
1256
- const Je = re(f ?? (() => {}), [f]), Qe = re(se ?? (() => {}), [se]), tt = le?.placeHolder, [ot] = ce(T.Mode, E[T.Mode]), { themeMode: rt } = de({ mode: ot ?? void 0 }), [nt] = ce(G.Active, null), it = xe(nt);
1257
- it.current = nt;
1258
- const lt = pe(), ct = we(() => ({
1259
- light: Pe(!1, at.deepMerge(Zt(Y, !1), w(lt?.light))),
1260
- dark: Pe(!0, at.deepMerge(Zt(Y, !0), w(lt?.dark)))
1337
+ return n && "object" == typeof n ? gt.deepMerge(r, n) : r;
1338
+ }, yo = "taskPanePosition", wo = Ce(xe((e, t) => {
1339
+ const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: c, onDocumentError: d, renderDocumentError: g = k, propsDocumentError: f, propsTaskPaneArea: y, renderTaskPaneArea: w = xo, taskPaneSide: x = "right", onKeyDown: v, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: W, muiTheme: P, tokens: L, cssBaseline: B, autoFocus: z = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: pe, showFormulaBar: ue, propsFormulaBar: me, renderFormulaBar: ke, formulaBarPlacement: ye, manageVisualViewport: we = !0, editable: xe, showStatusBar: ve, propsStatusBar: Ce, renderStatusBar: Fe, propsToolbar: Pe, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), Me = Ee(null), $e = le(() => {
1340
+ Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
1341
+ }, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), _e = "bottom" === Le && we, Ke = be(_e), He = Ke ? Math.max(0, Math.round(window.innerHeight - Ke.height)) : 0, Ve = Ke ? Math.round(Ke.offsetTop) : 0, ze = Ke?.height;
1342
+ Se(() => {
1343
+ _e && void 0 !== ze && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
1344
+ }, [_e, ze]);
1345
+ const Ue = le(d ?? (() => {}), [d]), Ge = le(te ?? (() => {}), [te]), qe = ae?.placeHolder, [Xe] = ge(N.Mode, I[N.Mode]), { themeMode: Qe } = he({ mode: Xe ?? void 0 }), [et] = ge(J.Active, null), tt = Ee(et);
1346
+ tt.current = et;
1347
+ const rt = fe(), nt = Te(() => ({
1348
+ light: Be(!1, gt.deepMerge(bo(P, !1), C(rt?.light))),
1349
+ dark: Be(!0, gt.deepMerge(bo(P, !0), C(rt?.dark)))
1261
1350
  }), [
1262
- Y,
1263
- lt?.light,
1264
- lt?.dark
1265
- ]), dt = "dark" === rt, pt = we(() => d(ct.light, ct.dark, `.${n}`, ee), [
1266
- ct,
1351
+ P,
1352
+ rt?.light,
1353
+ rt?.dark
1354
+ ]), st = "dark" === Qe, lt = Te(() => u(nt.light, nt.dark, `.${n}`, L), [
1355
+ nt,
1267
1356
  n,
1268
- ee
1269
- ]), ut = we(() => P("sxl-defaults", `.${n}`), [n]), mt = O(), [gt, ht] = ve(() => S ?? null);
1270
- ye(() => {
1271
- ht(S ?? null);
1272
- }, [S]);
1273
- const [kt, bt] = ve(0), wt = xe(null);
1274
- wt.current || (wt.current = Yt());
1275
- const xt = $(gt, {
1276
- io: F,
1277
- defaultTheme: mt.getDefaultTheme(),
1278
- reloadKey: kt
1279
- }), vt = "loaded" === xt.status ? xt.workbook : null, Ct = we(() => "error" === xt.status ? {
1357
+ L
1358
+ ]), dt = Te(() => O("sxl-defaults", `.${n}`), [n]), pt = _(), [ut, mt] = We(() => D ?? null);
1359
+ Se(() => {
1360
+ mt(D ?? null);
1361
+ }, [D]);
1362
+ const [ht, kt] = We(0), bt = Ee(null);
1363
+ bt.current || (bt.current = ko());
1364
+ const yt = V(ut, {
1365
+ io: R,
1366
+ defaultTheme: pt.getDefaultTheme(),
1367
+ reloadKey: ht
1368
+ }), wt = "loaded" === yt.status ? yt.workbook : null, xt = Te(() => "error" === yt.status ? {
1280
1369
  status: "error",
1281
- error: xt.error
1282
- } : "loaded" === xt.status ? {
1370
+ error: yt.error
1371
+ } : "loaded" === yt.status ? {
1283
1372
  status: "loaded",
1284
- workbook: xt.workbook
1285
- } : { status: "loading" }, [xt]);
1286
- ye(() => {
1287
- wt.current.settled && (wt.current = Yt());
1288
- }, [gt, kt]), ye(() => {
1289
- if ("loaded" === Ct.status) {
1290
- const e = wt.current, t = Ct.workbook;
1373
+ workbook: yt.workbook
1374
+ } : { status: "loading" }, [yt]);
1375
+ Se(() => {
1376
+ bt.current.settled && (bt.current = ko());
1377
+ }, [ut, ht]), Se(() => {
1378
+ if ("loaded" === xt.status) {
1379
+ const e = bt.current, t = xt.workbook;
1291
1380
  t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
1292
- } else "error" === Ct.status && (Je?.(Ct.error), wt.current.reject(Ct.error));
1293
- }, [Ct]);
1294
- const [St, Wt] = ve(null);
1295
- vt && !St && Wt(vt);
1296
- const Tt = vt && St && vt !== St ? vt : null, Ft = xe(Tt);
1297
- Ft.current = Tt;
1298
- const At = xe(St);
1299
- At.current = St;
1300
- const Pt = xe([]), It = be((e) => {
1301
- const t = At.current;
1302
- t && Pt.current.push(t), ht(e);
1381
+ } else "error" === xt.status && (Ue?.(xt.error), bt.current.reject(xt.error));
1382
+ }, [xt]);
1383
+ const [vt, Ct] = We(null);
1384
+ wt && !vt && Ct(wt);
1385
+ const Dt = wt && vt && wt !== vt ? wt : null, Tt = Ee(Dt);
1386
+ Tt.current = Dt;
1387
+ const Et = Ee(vt);
1388
+ Et.current = vt;
1389
+ const Ft = Ee([]), Pt = De((e) => {
1390
+ const t = Et.current;
1391
+ t && Ft.current.push(t), mt(e);
1303
1392
  }, []);
1304
- ye(() => {
1305
- const e = Pt.current;
1393
+ Se(() => {
1394
+ const e = Ft.current;
1306
1395
  if (0 !== e.length) {
1307
- Pt.current = e.filter((e) => e === St);
1396
+ Ft.current = e.filter((e) => e === vt);
1308
1397
  for (let t = 0; t < e.length; t++) {
1309
1398
  const o = e[t];
1310
- if (o !== St) try {
1399
+ if (o !== vt) try {
1311
1400
  o.close();
1312
1401
  } catch (e) {
1313
1402
  console.warn("Unable to close the replaced workbook", e);
1314
1403
  }
1315
1404
  }
1316
1405
  }
1317
- }, [St]);
1318
- const Rt = Fe ? null : St, jt = L(), Ot = we(() => {
1319
- const e = Rt?.getSelectedWorksheet() ?? Rt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1320
- return e ? I(e, { referenceMode: jt }) : null;
1321
- }, [Rt, jt]), Mt = Fe ?? Ot, $t = xe(Mt);
1322
- $t.current = Mt, ye(() => {
1323
- if (!Mt) return;
1324
- let e = Mt.getSession();
1325
- return Mt.subscribe(() => {
1406
+ }, [vt]);
1407
+ const At = xe ? null : vt, It = H(), Nt = Te(() => {
1408
+ const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
1409
+ return e ? M(e, { referenceMode: It }) : null;
1410
+ }, [At, It]), Rt = xe ?? Nt, jt = Ee(Rt);
1411
+ jt.current = Rt, Se(() => {
1412
+ if (!Rt) return;
1413
+ let e = Rt.getSession();
1414
+ return Rt.subscribe(() => {
1326
1415
  const t = e;
1327
- e = Mt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Le.current?.contains?.(document.activeElement) && Oe.current?.focus();
1416
+ e = Rt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Me.current?.contains?.(document.activeElement) && Re.current?.focus();
1328
1417
  });
1329
- }, [Mt]);
1330
- const Bt = K(St), { isDirty: _t, saveState: Kt } = H(St, F), Ht = _(St), Vt = xe(Kt), zt = xe(null);
1331
- Vt.current = Kt;
1332
- const Gt = be(() => Vt.current?.isDirty() ?? !1, []), Xt = xe(Ct);
1333
- Xt.current = Ct;
1334
- const [Qt, to] = ve(null), oo = ie ?? le?.title, [ro, no] = ve(null);
1335
- ye(() => {
1336
- no(null);
1337
- }, [St]);
1338
- const ao = oo ?? ro ?? Bt ?? "";
1339
- ye(() => {
1340
- Qe?.(_t);
1341
- }, [_t]);
1342
- const io = re(j ?? (() => {}), [j]);
1343
- ye(() => {
1344
- io?.(vt);
1418
+ }, [Rt]);
1419
+ const Ot = G(vt), { isDirty: Mt, saveState: Lt } = q(vt, R), Bt = U(vt), Kt = Ee(Lt), Ht = Ee(null);
1420
+ Kt.current = Lt;
1421
+ const Vt = De(() => Kt.current?.isDirty() ?? !1, []), zt = Ee(xt);
1422
+ zt.current = xt;
1423
+ const [Ut, Gt] = We(null), qt = Q ?? ae?.title, [Yt, Zt] = We(null);
1424
+ Se(() => {
1425
+ Zt(null);
1345
1426
  }, [vt]);
1346
- const so = xe(vt);
1347
- so.current = vt, M(St, "onViewChange");
1348
- const lo = we(() => _e(Se, {
1427
+ const Qt = qt ?? Yt ?? Ot ?? "";
1428
+ Se(() => {
1429
+ Ge?.(Mt);
1430
+ }, [Mt]);
1431
+ const eo = le(S ?? (() => {}), [S]);
1432
+ Se(() => {
1433
+ eo?.(wt);
1434
+ }, [wt]);
1435
+ const to = Ee(wt);
1436
+ to.current = wt, K(vt, "onViewChange");
1437
+ const oo = Te(() => Ye(Ae, {
1349
1438
  groupKey: "helpOptions",
1350
1439
  disableHover: !0,
1351
1440
  sx: { padding: "0" },
1352
1441
  propsButton: { sx: { maxHeight: "22px" } }
1353
- }), []), [co, po] = ve(null), uo = be((e) => {
1354
- po(e);
1442
+ }), []), [ro, no] = We(null), ao = De((e) => {
1443
+ no(e);
1355
1444
  }, []);
1356
- ye(() => {
1357
- z.prefetch([z.getActive(), D]).catch((e) => {
1445
+ Se(() => {
1446
+ Y.prefetch([Y.getActive(), F]).catch((e) => {
1358
1447
  console.warn("Icons could not be loaded:", e);
1359
1448
  });
1360
1449
  }, []);
1361
- const mo = xe(null);
1362
- mo.current || (mo.current = Yt());
1363
- const go = xe(null), ho = be(() => go.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? mo.current.promise, []), fo = re(async (e) => {
1364
- const t = it.current;
1365
- t && t !== st.getActive() && await st.setActive(t), await V.DefaultCommandCatalogService.prefetch(t ?? void 0), to(e), go.current = e.source, mo.current.settled || mo.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1366
- }, []), ko = xe(null), bo = be((e) => {
1450
+ const so = Ee(null);
1451
+ so.current || (so.current = ko());
1452
+ const co = Ee(null), po = De(() => co.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? so.current.promise, []), uo = le(async (e) => {
1453
+ const t = tt.current;
1454
+ t && t !== ft.getActive() && await ft.setActive(t), await X.DefaultCommandCatalogService.prefetch(t ?? void 0), Gt(e), co.current = e.source, so.current.settled || so.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
1455
+ }, []), mo = Ee(null), go = De((e) => {
1367
1456
  let t = null, r = {
1368
1457
  readOnly: !0,
1369
- ...le
1458
+ ...ae
1370
1459
  };
1371
- return le?.hidden || (t = _e(o, {
1460
+ return ae?.hidden || (t = Ye(o, {
1372
1461
  ...r,
1373
1462
  style: {
1374
1463
  maxWidth: "100%",
1375
- ...le?.style
1464
+ ...ae?.style
1376
1465
  },
1377
- workbook: e.workbook ?? Oe.current,
1378
- ref: ko,
1379
- title: ao,
1380
- modified: _t,
1381
- encrypted: Ht,
1382
- placeHolder: tt,
1466
+ workbook: e.workbook ?? Re.current,
1467
+ ref: mo,
1468
+ title: Qt,
1469
+ modified: Mt,
1470
+ encrypted: Bt,
1471
+ placeHolder: qe,
1383
1472
  onTitleChange: (e) => {
1384
- no(e), le?.onTitleChange?.(e);
1473
+ Zt(e), ae?.onTitleChange?.(e);
1385
1474
  }
1386
- })), _e(Et, {
1475
+ })), Ye(_t, {
1387
1476
  ...e,
1388
- logo: N,
1477
+ logo: T,
1389
1478
  mainElement: t,
1390
- startElement: B,
1391
- endElement: q
1479
+ startElement: E,
1480
+ endElement: W
1392
1481
  });
1393
1482
  }, [
1394
- N,
1395
- ao,
1396
- _t,
1397
- Ht,
1398
- le,
1399
- B,
1400
- q
1483
+ T,
1484
+ Qt,
1485
+ Mt,
1486
+ Bt,
1487
+ ae,
1488
+ E,
1489
+ W
1401
1490
  ]);
1402
- ye(() => {
1403
- const e = Oe.current;
1491
+ Se(() => {
1492
+ const e = Re.current;
1404
1493
  if (!e) return;
1405
1494
  const t = (t) => {
1406
- (t.ctrlKey || t.metaKey || "native" !== Q.getWheelOwner(t, e)) && t.preventDefault();
1495
+ (t.ctrlKey || t.metaKey || "native" !== ne.getWheelOwner(t, e)) && t.preventDefault();
1407
1496
  };
1408
1497
  return e.addEventListener("wheel", t, { passive: !1 }), () => {
1409
1498
  e.removeEventListener("wheel", t);
1410
1499
  };
1411
- }, [Qt]);
1412
- const [yo, wo] = ve(null);
1413
- ye(() => {
1414
- wo(Qt?.source?.getCommandScope?.() ?? null);
1415
- }, [Qt]);
1416
- const xo = we(() => ({
1500
+ }, [Ut]);
1501
+ const [ho, fo] = We(null);
1502
+ Se(() => {
1503
+ fo(Ut?.source?.getCommandScope?.() ?? null);
1504
+ }, [Ut]);
1505
+ const wo = Te(() => ({
1417
1506
  "& .SnackbarContainer-root": { position: "absolute !important" },
1418
1507
  "& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
1419
1508
  "& .notistack-Snackbar": { minWidth: "unset" },
@@ -1426,58 +1515,58 @@ var Yt = () => {
1426
1515
  whiteSpace: "pre-wrap"
1427
1516
  },
1428
1517
  "*": { userSelect: "none" }
1429
- }), []), [vo, Co] = ve(null), [, Do] = ce(null, !1);
1430
- ye(() => {
1518
+ }), []), [vo, Co] = We(null), [, Do] = ge(null, !1);
1519
+ Se(() => {
1431
1520
  Do(null != vo);
1432
1521
  }, [vo, Do]);
1433
- const So = be((e) => x({
1434
- model: St,
1435
- side: v,
1522
+ const So = De((e) => w({
1523
+ model: vt,
1524
+ side: x,
1436
1525
  ...e,
1437
1526
  ...y
1438
1527
  }), [
1439
- St,
1440
- v,
1528
+ vt,
1529
+ x,
1441
1530
  y
1442
- ]), Wo = xe(r);
1443
- Wo.current = r, ae(t, () => ({
1531
+ ]), To = Ee(r);
1532
+ To.current = r, de(t, () => ({
1444
1533
  isStudioElement: () => !0,
1445
1534
  save: (e) => {
1446
- const t = zt.current;
1535
+ const t = Ht.current;
1447
1536
  return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
1448
1537
  },
1449
- getWorkbookElement: () => Oe.current,
1450
- getWorkbook: () => so.current ?? null,
1451
- isDirty: () => Vt.current?.isDirty() ?? !1,
1452
- getEditable: () => $t.current,
1453
- getFormulaBarElement: () => Le.current ?? null,
1454
- focus: () => Oe.current?.focus(),
1455
- whenReady: () => (wt.current || (wt.current = Yt()), wt.current.promise),
1456
- getWorkbookState: () => Xt.current,
1457
- retry: () => bt((e) => e + 1)
1538
+ getWorkbookElement: () => Re.current,
1539
+ getWorkbook: () => to.current ?? null,
1540
+ isDirty: () => Kt.current?.isDirty() ?? !1,
1541
+ getEditable: () => jt.current,
1542
+ getFormulaBarElement: () => Me.current ?? null,
1543
+ focus: () => Re.current?.focus(),
1544
+ whenReady: () => (bt.current || (bt.current = ko()), bt.current.promise),
1545
+ getWorkbookState: () => zt.current,
1546
+ retry: () => kt((e) => e + 1)
1458
1547
  }), [], r);
1459
- const Eo = xe(!1), To = re((e, t) => {
1460
- t === Ft.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1461
- t === Ft.current && (Eo.current = Wo.current?.contains(document.activeElement) ?? !0, Wt(t), fo(e));
1548
+ const Eo = Ee(!1), Wo = le((e, t) => {
1549
+ t === Tt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
1550
+ t === Tt.current && (Eo.current = To.current?.contains(document.activeElement) ?? !0, Ct(t), uo(e));
1462
1551
  }));
1463
1552
  }, []);
1464
- ye(() => {
1465
- Eo.current && (Eo.current = !1, Oe.current?.focus());
1466
- }, [St]);
1467
- const Fo = be((e) => {
1468
- const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" === Ct.status && k ? _e(J, {
1469
- render: k,
1553
+ Se(() => {
1554
+ Eo.current && (Eo.current = !1, Re.current?.focus());
1555
+ }, [vt]);
1556
+ const Fo = De((e) => {
1557
+ const { ref: t, ...o } = e, r = st ? nt.dark : nt.light, n = "error" === xt.status && g ? Ye(re, {
1558
+ render: g,
1470
1559
  props: {
1471
- ...b,
1560
+ ...f,
1472
1561
  style: {
1473
1562
  width: "100%",
1474
1563
  height: "100%",
1475
- ...b?.style
1564
+ ...f?.style
1476
1565
  },
1477
- error: Ct.error
1566
+ error: xt.error
1478
1567
  }
1479
1568
  }) : null;
1480
- if (n && !St) return _e(Ye, {
1569
+ if (n && !vt) return Ye(at, {
1481
1570
  style: {
1482
1571
  width: "100%",
1483
1572
  height: "100%",
@@ -1489,90 +1578,90 @@ var Yt = () => {
1489
1578
  children: n
1490
1579
  });
1491
1580
  let l = null;
1492
- if (St) {
1493
- const e = St, n = e.getView(), a = fe ?? n?.isShowFormulaBar(), i = Ae ?? n?.isShowStatusBar(), s = Qt?.source ?? Oe.current, d = _e(J, {
1494
- render: void 0 === Ne ? bo : Ne,
1581
+ if (vt) {
1582
+ const e = vt, n = e.getView(), a = ue ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ut?.source ?? Re.current, d = Ye(re, {
1583
+ render: void 0 === Ie ? go : Ie,
1495
1584
  props: {
1496
1585
  workbook: s,
1497
- ...je
1586
+ ...Pe
1498
1587
  }
1499
- }), g = "bottom" === Be, h = a ? _e(J, {
1500
- render: void 0 === Ce ? p : Ce,
1588
+ }), u = "bottom" === Le, g = a ? Ye(re, {
1589
+ render: void 0 === ke ? m : ke,
1501
1590
  props: {
1502
- ref: Le,
1591
+ ref: Me,
1503
1592
  style: {
1504
- marginTop: r.spacing(g ? .5 : .25),
1593
+ marginTop: r.spacing(u ? .5 : .25),
1505
1594
  marginLeft: r.spacing(1),
1506
1595
  marginRight: r.spacing(1),
1507
- marginBottom: r.spacing(g ? .5 : .75)
1596
+ marginBottom: r.spacing(u ? .5 : .75)
1508
1597
  },
1509
1598
  workbook: e,
1510
- editable: Mt ?? void 0,
1511
- placement: Be,
1512
- ...ke,
1599
+ editable: Rt ?? void 0,
1600
+ placement: Le,
1601
+ ...me,
1513
1602
  propsNamedCollectionEditor: {
1514
1603
  restoreFocus: (e) => s?.focus(e),
1515
- ...ke?.propsNamedCollectionEditor
1604
+ ...me?.propsNamedCollectionEditor
1516
1605
  }
1517
1606
  }
1518
- }) : null, f = i ? _e(J, {
1519
- render: void 0 === Re ? u : Re,
1607
+ }) : null, f = i ? Ye(re, {
1608
+ render: void 0 === Fe ? h : Fe,
1520
1609
  props: {
1521
- childrenEnd: lo,
1522
- ...Ie
1610
+ childrenEnd: oo,
1611
+ ...Ce
1523
1612
  }
1524
- }) : null, k = (e, r) => _e(c, {
1525
- ...he,
1613
+ }) : null, k = (e, r) => Ye(p, {
1614
+ ...pe,
1526
1615
  tabIndex: 0,
1527
- autoFocus: !r && ne,
1616
+ autoFocus: !r && z,
1528
1617
  workbook: e,
1529
- editable: r ? void 0 : Mt ?? void 0,
1618
+ editable: r ? void 0 : Rt ?? void 0,
1530
1619
  focusNameBox: r ? void 0 : $e,
1531
- prefetch: !r && m,
1532
- ref: r ? Me : ft([t, Oe]),
1533
- onWorkbookLoad: r ? (t) => To(t, e) : fo,
1620
+ prefetch: !r && c,
1621
+ ref: r ? je : St([t, Re]),
1622
+ onWorkbookLoad: r ? (t) => Wo(t, e) : uo,
1534
1623
  onKeyDown: (e) => {
1535
- C?.(e);
1624
+ v?.(e);
1536
1625
  },
1537
- propsWorkbookLoading: ge,
1626
+ propsWorkbookLoading: ce,
1538
1627
  renderWorkbookLoading: null,
1539
1628
  style: r ? {
1540
- ...he?.style,
1629
+ ...pe?.style,
1541
1630
  position: "absolute",
1542
1631
  inset: 0,
1543
1632
  visibility: "hidden"
1544
1633
  } : {
1545
1634
  flex: "1 1 100%",
1546
1635
  minHeight: 0,
1547
- ...he?.style
1636
+ ...pe?.style
1548
1637
  },
1549
1638
  onContextMenu: (e) => e.preventDefault(),
1550
1639
  ...r ? null : o
1551
1640
  }, e.getId());
1552
- l = _e("div", {
1641
+ l = Ye("div", {
1553
1642
  style: {
1554
1643
  display: "flex",
1555
1644
  flexDirection: "column",
1556
1645
  flex: "1 1 100%",
1557
1646
  minWidth: 0,
1558
1647
  minHeight: 0,
1559
- ...R({
1648
+ ...$({
1560
1649
  window: r.palette.background.default,
1561
1650
  windowText: r.palette.text.primary
1562
1651
  })
1563
1652
  },
1564
- children: qt(Be, {
1653
+ children: lo(Le, {
1565
1654
  toolbar: d,
1566
- formulaBar: h,
1655
+ formulaBar: g,
1567
1656
  statusBar: f,
1568
- main: _e(Ut, {
1569
- taskSide: v,
1570
- persistKey: Jt,
1571
- sidebarElement: vo ? _e(V.CommandScopeProvider, {
1572
- scope: yo,
1657
+ main: Ye(io, {
1658
+ taskSide: x,
1659
+ persistKey: yo,
1660
+ sidebarElement: vo ? Ye(X.CommandScopeProvider, {
1661
+ scope: ho,
1573
1662
  children: vo
1574
1663
  }) : void 0,
1575
- mainElement: Ke("div", {
1664
+ mainElement: Ze("div", {
1576
1665
  style: {
1577
1666
  position: "relative",
1578
1667
  display: "flex",
@@ -1581,8 +1670,8 @@ var Yt = () => {
1581
1670
  minWidth: 0,
1582
1671
  minHeight: 0
1583
1672
  },
1584
- children: [[k(St, !1), Tt ? k(Tt, !0) : null], _e(He, {
1585
- ref: uo,
1673
+ children: [[k(vt, !1), Dt ? k(Dt, !0) : null], Ye(Je, {
1674
+ ref: ao,
1586
1675
  sx: {
1587
1676
  position: "absolute",
1588
1677
  top: "10%",
@@ -1598,17 +1687,17 @@ var Yt = () => {
1598
1687
  })
1599
1688
  });
1600
1689
  }
1601
- const d = !Qt && ue ? _e(J, {
1602
- render: ue,
1603
- props: { ...ge }
1690
+ const d = !Ut && se ? Ye(re, {
1691
+ render: se,
1692
+ props: { ...ce }
1604
1693
  }) : null;
1605
- return Ke(Ye, {
1606
- sx: xo,
1694
+ return Ze(at, {
1695
+ sx: wo,
1607
1696
  style: {
1608
1697
  width: "100%",
1609
- height: Ue ? `calc(100% - ${Ue}px)` : "100%",
1610
- transform: qe ? `translateY(${qe}px)` : void 0,
1611
- overscrollBehavior: Ve ? "none" : void 0,
1698
+ height: He ? `calc(100% - ${He}px)` : "100%",
1699
+ transform: Ve ? `translateY(${Ve}px)` : void 0,
1700
+ overscrollBehavior: _e ? "none" : void 0,
1612
1701
  position: "absolute",
1613
1702
  display: "flex",
1614
1703
  alignItems: "stretch",
@@ -1621,7 +1710,7 @@ var Yt = () => {
1621
1710
  variant: s,
1622
1711
  children: [
1623
1712
  l,
1624
- n ? _e(Ye, {
1713
+ n ? Ye(at, {
1625
1714
  style: {
1626
1715
  position: "absolute",
1627
1716
  inset: 0,
@@ -1631,114 +1720,114 @@ var Yt = () => {
1631
1720
  },
1632
1721
  children: n
1633
1722
  }) : null,
1634
- d ? _e("div", {
1723
+ d ? Ye("div", {
1635
1724
  style: {
1636
1725
  position: "absolute",
1637
1726
  inset: 0,
1638
1727
  display: "flex",
1639
1728
  alignItems: "center",
1640
1729
  justifyContent: "center",
1641
- background: `var(--sxl-color-base-100, ${dt ? "#121212" : "#fff"})`
1730
+ background: `var(--sxl-color-base-100, ${st ? "#121212" : "#fff"})`
1642
1731
  },
1643
1732
  children: d
1644
1733
  }) : null
1645
1734
  ]
1646
1735
  });
1647
1736
  }, [
1648
- Ct,
1649
- St,
1650
- Tt,
1737
+ xt,
1738
+ vt,
1739
+ Dt,
1740
+ Ut,
1651
1741
  Qt,
1652
- ao,
1653
- ue,
1654
- ge,
1655
- he,
1742
+ se,
1743
+ ce,
1744
+ pe,
1656
1745
  a,
1657
1746
  i,
1658
1747
  s,
1659
- lo,
1660
- k,
1661
- b,
1662
- bo,
1663
- xo,
1748
+ oo,
1749
+ g,
1750
+ f,
1751
+ go,
1752
+ wo,
1664
1753
  vo,
1665
- v,
1666
- yo,
1667
- fe,
1754
+ x,
1755
+ ho,
1756
+ ue,
1757
+ me,
1668
1758
  ke,
1759
+ Le,
1760
+ Rt,
1761
+ ve,
1669
1762
  Ce,
1670
- Be,
1671
- Mt,
1672
- Ae,
1763
+ Fe,
1764
+ Pe,
1673
1765
  Ie,
1674
- Re,
1675
- je,
1676
- Ne,
1766
+ _e,
1767
+ He,
1677
1768
  Ve,
1678
- Ue,
1679
- qe,
1680
- ct,
1681
- dt
1769
+ nt,
1770
+ st
1682
1771
  ]);
1683
- let Ao = _e(yt, {
1772
+ let Po = Ye(Wt, {
1684
1773
  maxSnack: 3,
1685
- domRoot: co ?? void 0,
1774
+ domRoot: ro ?? void 0,
1686
1775
  anchorOrigin: {
1687
1776
  vertical: "bottom",
1688
1777
  horizontal: "right"
1689
1778
  },
1690
1779
  autoHideDuration: 3500,
1691
1780
  onClose: (e, t, o) => {
1692
- Oe.current?.focus();
1781
+ Re.current?.focus();
1693
1782
  },
1694
- Components: { error: Dt },
1783
+ Components: { error: $t },
1695
1784
  iconVariant: {
1696
- success: _e(Ze, {
1785
+ success: Ye(it, {
1697
1786
  style: { marginRight: "8px" },
1698
- children: _e("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" })
1787
+ children: Ye("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" })
1699
1788
  }),
1700
- error: _e(U, {
1789
+ error: Ye(Z, {
1701
1790
  iconKey: "ErrorAlert",
1702
1791
  style: { marginRight: "8px" }
1703
1792
  })
1704
1793
  },
1705
- children: _e(A, {
1706
- workbook: St,
1707
- children: _e(W, {
1794
+ children: Ye(j, {
1795
+ workbook: vt,
1796
+ children: Ye(A, {
1708
1797
  renderArea: So,
1709
1798
  onUpdateArea: (e) => {
1710
1799
  Co(e);
1711
1800
  },
1712
- children: _e(Te, { children: _e(Lt, { children: _e(te, { children: _e(X, { children: _e(Nt, {
1713
- workbook: St,
1714
- initialCommandAnchor: ho,
1801
+ children: Ye(Oe, { children: Ye(Jt, { children: Ye(ie, { children: Ye(ee, { children: Ye(Xt, {
1802
+ workbook: vt,
1803
+ initialCommandAnchor: po,
1715
1804
  renderWorkbook: Fo,
1716
- setWorkbook: It,
1717
- titleWorkbook: ao,
1718
- setWorkbookTitle: no,
1719
- refDocumentTitle: ko,
1720
- isDirty: Gt,
1721
- refSave: zt,
1805
+ setWorkbook: Pt,
1806
+ titleWorkbook: Qt,
1807
+ setWorkbookTitle: Zt,
1808
+ refDocumentTitle: mo,
1809
+ isDirty: Vt,
1810
+ refSave: Ht,
1722
1811
  host: r
1723
1812
  }) }) }) }) })
1724
1813
  })
1725
1814
  })
1726
1815
  });
1727
- return Ao = Ke(et, {
1728
- theme: dt ? ct.dark : ct.light,
1816
+ return Po = Ze(ct, {
1817
+ theme: st ? nt.dark : nt.light,
1729
1818
  children: [
1730
- oe ? _e(Ge, {}) : null,
1731
- _e("style", { children: pt }),
1732
- _e("style", { children: ut }),
1733
- _e(We, {
1819
+ B ? Ye(ot, {}) : null,
1820
+ Ye("style", { children: lt }),
1821
+ Ye("style", { children: dt }),
1822
+ Ye(Ne, {
1734
1823
  themeScopeClass: n,
1735
1824
  themeSurface: "app",
1736
- themeMode: rt,
1737
- children: Ao
1825
+ themeMode: Qe,
1826
+ children: Po
1738
1827
  })
1739
1828
  ]
1740
- }), Ao;
1829
+ }), Po;
1741
1830
  }));
1742
- Qt.displayName = "EagerStudio";
1743
- var eo = (e) => _e(Kt, { ...e });
1744
- export { Qt as EagerStudio, Qt as default };
1831
+ wo.displayName = "EagerStudio";
1832
+ var xo = (e) => Ye(oo, { ...e });
1833
+ export { wo as EagerStudio, wo as default, Ot as n, fo as t };