@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.13

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 (132) hide show
  1. package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
  2. package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
  3. package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
  4. package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
  5. package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
  6. package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
  7. package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
  8. package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
  9. package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
  10. package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
  11. package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
  12. package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
  13. package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
  14. package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
  15. package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
  16. package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
  17. package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
  18. package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
  19. package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
  20. package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
  21. package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
  22. package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
  23. package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
  24. package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
  25. package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
  26. package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
  27. package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
  28. package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
  29. package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
  30. package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
  31. package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
  32. package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
  33. package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
  34. package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
  35. package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
  36. package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
  37. package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
  38. package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
  39. package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
  40. package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
  41. package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
  42. package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
  43. package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
  44. package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
  45. package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
  46. package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
  47. package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
  48. package/browser/esm/index.mjs +290 -287
  49. package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
  50. package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
  51. package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
  52. package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
  53. package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
  54. package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
  55. package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
  56. package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
  57. package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
  58. package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
  59. package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
  60. package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
  61. package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
  62. package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
  63. package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
  64. package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
  65. package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
  66. package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
  67. package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
  68. package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
  69. package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
  70. package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
  71. package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
  72. package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
  73. package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
  74. package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
  75. package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
  76. package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
  77. package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
  78. package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
  79. package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
  80. package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
  81. package/node/esm/index.mjs +2936 -2800
  82. package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
  83. package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
  84. package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
  85. package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
  86. package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
  87. package/package.json +9 -9
  88. package/resources/locales/de/groups.cmd.json +16 -1
  89. package/resources/locales/de/ui.msg.json +3 -1
  90. package/resources/locales/en/groups.cmd.json +16 -1
  91. package/resources/locales/en/ui.msg.json +3 -1
  92. package/types/src/border/BorderPopupButton.d.ts +1 -1
  93. package/types/src/color/ColorPopupButton.d.ts +1 -1
  94. package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
  95. package/types/src/command/DocThemeCommandButton.d.ts +1 -1
  96. package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
  97. package/types/src/command/FontSizeCommandButton.d.ts +1 -1
  98. package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
  99. package/types/src/command/LanguageCommandButton.d.ts +1 -1
  100. package/types/src/command/LocaleCommandButton.d.ts +1 -1
  101. package/types/src/command/index.d.ts +1 -0
  102. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
  103. package/types/src/conditions/ConditionEditor.d.ts +1 -1
  104. package/types/src/conditions/MembershipOption.d.ts +1 -1
  105. package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
  106. package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
  107. package/types/src/conditions/SelectorSelect.d.ts +1 -1
  108. package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
  109. package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
  110. package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
  111. package/types/src/fill/PatternPopupButton.d.ts +1 -1
  112. package/types/src/filter/ColumnMenu.d.ts +1 -1
  113. package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
  114. package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
  115. package/types/src/named/NamedDetailsPanel.d.ts +2 -2
  116. package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
  117. package/types/src/shape/ShapePlugin.d.ts +2 -0
  118. package/types/src/shape/index.d.ts +1 -1
  119. package/types/src/statusBar/PendingStatus.d.ts +19 -0
  120. package/types/src/statusBar/index.d.ts +1 -0
  121. package/types/src/studio/StudioProps.d.ts +10 -10
  122. package/types/src/template/TemplatePanel.d.ts +5 -1
  123. package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
  124. package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
  125. package/types/src/workbook/DefaultRenderers.d.ts +30 -18
  126. package/types/src/workbook/WorkbookElement.d.ts +5 -4
  127. package/types/src/workbook/WorkbookStrip.d.ts +8 -7
  128. package/types/src/workbook/index.d.ts +1 -1
  129. package/browser/esm/QgaAIDUMmBQBsXP9.mjs +0 -236
  130. package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
  131. package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
  132. package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
@@ -1,36 +1,36 @@
1
1
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._sheetxl-reset_11z3j_1{margin:0;padding:0;line-height:1;display:block}._sheetxl-reset_11z3j_1 table,._sheetxl-reset_11z3j_1 thead,._sheetxl-reset_11z3j_1 tbody,._sheetxl-reset_11z3j_1 tfoot,._sheetxl-reset_11z3j_1 tr,._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{border-collapse:inherit;border-spacing:0;border:none;border-color:inherit;width:auto;height:auto;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0;margin:0;padding:0;display:block}._sheetxl-reset_11z3j_1 th,._sheetxl-reset_11z3j_1 td{display:inline}html{color:initial}._stats-items_151a8_1{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;min-width:0;max-height:1rem;display:flex;overflow:hidden}._stats-item_151a8_1{flex-shrink:0}._stats-item-label_151a8_15{user-select:none;white-space:nowrap;cursor:pointer;border-radius:2px;align-items:center;gap:4px;padding:0 4px;transition:background-color .2s;display:flex}._stats-item-label_151a8_15:hover{background-color:#0000000a}._stats-item-label_151a8_15:active{background-color:#00000014}._formula-bar_uer84_1{flex-direction:row;flex:100%;align-items:start;display:flex}._details-panel_mdq6z_1{box-sizing:border-box;background:0 0;flex-direction:column;flex:auto;align-items:stretch;width:100%;height:100%;display:flex;overflow:hidden}._editor_mdq6z_13{flex-direction:column;height:100%;display:flex}._editor-panel_mdq6z_19{flex-direction:column;display:flex}._editor-buttons_mdq6z_24{justify-content:flex-end;display:flex}._card_mdq6z_29{flex-direction:column;display:flex}._table-style-options-container_1kfn2_1{container-type:inline-size}._table-style-options_1kfn2_1{user-select:none;grid-template-columns:1fr;display:grid;@container (width>600px){grid-template-rows:repeat(3,auto);grid-auto-columns:1fr;grid-auto-flow:column;gap:2px}}._range-row_1yps2_1{flex-direction:column;flex:100%;align-items:center;row-gap:8px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-between;gap:12px}}._action-row_1yps2_17{flex-direction:column;align-items:start;gap:4px;width:100%;display:flex;@container (width>600px){flex-direction:row;justify-content:space-evenly;align-items:center}}._card_h0jnt_7{width:100%}._actionRoot_h0jnt_11{justify-content:space-between;padding:8px 8px 8px 16px}._icons_h0jnt_16{align-items:center;margin-left:auto;display:flex}._expand_h0jnt_22{color:var(--sxl-color-error-content);padding:8px;transition:all .2s ease-in-out;transform:rotate(0)}._expandOpen_h0jnt_29{transform:rotate(180deg)}._stackTraceContainer_h0jnt_33{padding:16px}._paper_h0jnt_37{background-color:#fff;padding:16px}._checkIcon_h0jnt_42{padding-right:4px;font-size:20px}._button_h0jnt_47{text-transform:none;padding:0}._styled-resizer_fdl5y_3{background-color:var(--sxl-color-neutral,grey)}._styled-resizer_fdl5y_3:hover,.splitPane.dragging ._styled-resizer_fdl5y_3{background-color:var(--sxl-color-primary,blue)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.11
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.13
4
4
  *
5
5
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, at as D, b as O, c as k, ct as A, d as j, et as M, f as N, g as P, h as F, i as ee, it as te, j as I, k as ne, m as re, n as L, nt as ie, ot as ae, p as oe, q as se, r as ce, rt as le, s as ue, st as de, tt as fe, u as pe, v as me, w as he, x as ge, y as _e, z as ve } from "./DdcZrjMLWVukWcU5.mjs";
9
- import { c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Bujtz_Guj88d03vI.mjs";
10
- import { t as De } from "./C8JU4KsMasmLvojI.mjs";
11
- import { a as Oe } from "./CyLn6zOOp_biA3xU.mjs";
12
- import { t as R } from "./ClBvNPeNCAhuVWrG.mjs";
13
- import { a as ke, c as Ae, n as je, o as Me, s as Ne, t as Pe } from "./0BWO0bLZ8Vm_dKd2.mjs";
14
- import { n as Fe, r as Ie, t as Le } from "./DJOOed_OtB-XT7f3.mjs";
15
- import { t as Re } from "./HViD4Wfoi0mmqk9w.mjs";
16
- import { n as ze, t as Be } from "./DDc6rDuU9JAo1DH_.mjs";
17
- import { t as Ve } from "./BED6h6YAwCf1HEQJ.mjs";
18
- import { n as He, r as Ue, t as We } from "./BokqKEpU6TFgfRs6.mjs";
19
- import { a as Ge, i as Ke, n as qe, o as Je, r as Ye, t as Xe } from "./COlZu93LRwuBvjE-.mjs";
20
- import { t as Ze } from "./ChSVxkPTIjgcC8PL.mjs";
21
- import { t as Qe } from "./C0wlMAIn9iREPK6w.mjs";
22
- import { Color as $e, IFill as z, LicenseManager as et, LicenseManager as tt } from "@sheetxl/sdk";
23
- import { DefaultTaskPaneRegistry as nt, ThemeStateDefaults as rt, ThemeStateKey as it, WorkbookIO as at, WorkbookIO as ot, setPrintExamplesOnLoad as st, useInputField as ct, useModelListener as lt, useRangeListener as ut, useWindowChrome as dt, useWorkbook as ft, useWorkbookFormat as pt, useWorkbookName as mt } from "@sheetxl/react";
24
- import { CommandButtonType as ht, DynamicIcon as B, createThemeScopeClass as gt, lazyComponent as _t, useCallbackRef as V, useCommandButtonEntry as vt, useCommandButtonRegistry as yt, useCommands as bt, useFloatStack as xt, useLocationSearch as St, usePersistentState as Ct, useResolvedThemeMode as wt, useTextSelectionDrag as Tt, useTranslator as H } from "@sheetxl/utils-react";
25
- import { Suspense as Et, createElement as Dt, forwardRef as Ot, memo as U, useCallback as W, useEffect as G, useId as kt, useImperativeHandle as At, useLayoutEffect as jt, useMemo as K, useRef as q, useState as J } from "react";
26
- import { CommandButton as Y, CommandGroup as Mt, CommandPopupButton as X, ExhibitDivider as Nt, ExhibitIconButton as Pt, ExhibitPopupIconButton as Ft, ExhibitTooltip as It, LabelIcon as Lt, LazyLoadErrorPanel as Rt, SimpleTooltip as zt, defaultCreatePopupPanel as Bt, renderMembers as Vt } from "@sheetxl/utils-mui";
27
- import { Fragment as Ht, jsx as Z, jsxs as Q } from "react/jsx-runtime";
28
- import { Box as $, FormControl as Ut, InputAdornment as Wt, InputLabel as Gt, MenuItem as Kt, Paper as qt, Select as Jt, TextField as Yt, Typography as Xt, useMediaQuery as Zt, useTheme as Qt } from "@mui/material";
29
- import { defineLazyModule as $t } from "@sheetxl/utils";
30
- var en = (e) => {
8
+ import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as D, X as O, Y as k, Z as A, _ as j, _t as M, a as N, at as P, b as ee, bt as te, c as ne, ct as F, d as re, dt as ie, et as I, f as ae, ft as oe, g as se, gt as ce, h as le, ht as ue, i as de, it as fe, j as pe, k as me, l as he, lt as ge, m as _e, mt as ve, n as ye, nt as be, o as xe, ot as Se, p as Ce, pt as we, q as Te, r as Ee, s as De, st as Oe, tt as ke, u as Ae, ut as je, v as Me, vt as Ne, w as Pe, wt as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as Be } from "./BTH-nzAPniB6G4TG.mjs";
9
+ import { c as Ve, i as He, l as Ue, n as We, o as Ge, r as Ke, s as qe, t as Je } from "./BEjT3zSht5iH93uB.mjs";
10
+ import { t as Ye } from "./UMji8dlv0GKyfjRw.mjs";
11
+ import { a as Xe } from "./jbPNLnRSS8Xt5_Zd.mjs";
12
+ import { t as L } from "./CkmieJ2_aHVESg8Q.mjs";
13
+ import { a as Ze, c as Qe, n as $e, o as et, s as tt, t as nt } from "./DYypTSo0adN5dUTS.mjs";
14
+ import { n as rt, r as it, t as at } from "./TT3Q8r0Jww_zZmNv.mjs";
15
+ import { t as ot } from "./H8Dxocn689KdLYhD.mjs";
16
+ import { n as st, t as ct } from "./6QDKC3DXaJjdTQvn.mjs";
17
+ import { t as lt } from "./BKE2ez65WLb02bOy.mjs";
18
+ import { n as ut, r as dt, t as ft } from "./PSYAcayGMjkZauMz.mjs";
19
+ import { a as pt, i as mt, n as ht, o as gt, r as _t, t as vt } from "./DFEz0RMRQrGo3tWC.mjs";
20
+ import { t as yt } from "./CYNVxcg3QJ1RHCwS.mjs";
21
+ import { t as bt } from "./DvDPtmuD-1bVFXhc.mjs";
22
+ import { Color as xt, IFill as R, LicenseManager as St, LicenseManager as Ct } from "@sheetxl/sdk";
23
+ import { DefaultTaskPaneRegistry as wt, ThemeStateDefaults as Tt, ThemeStateKey as Et, WorkbookIO as Dt, WorkbookIO as Ot, setPrintExamplesOnLoad as kt, useInputField as At, useModelListener as jt, useRangeListener as Mt, useWindowChrome as Nt, useWorkbook as Pt, useWorkbookFormat as Ft, useWorkbookName as It } from "@sheetxl/react";
24
+ import { CommandButtonType as Lt, DynamicIcon as z, RenderSlot as Rt, createThemeScopeClass as zt, lazyComponent as Bt, useCallbackRef as B, useCommandButtonEntry as Vt, useCommandButtonRegistry as Ht, useCommands as Ut, useFloatStack as Wt, useLocationSearch as Gt, usePersistentState as Kt, useResolvedThemeMode as qt, useTextSelectionDrag as Jt, useTranslator as V } from "@sheetxl/utils-react";
25
+ import { Suspense as Yt, createElement as Xt, forwardRef as H, memo as U, useCallback as W, useEffect as G, useId as Zt, useImperativeHandle as Qt, useLayoutEffect as $t, useMemo as K, useRef as q, useState as J } from "react";
26
+ import { CommandButton as Y, CommandGroup as en, CommandPopupButton as X, ExhibitDivider as tn, ExhibitIconButton as nn, ExhibitPopupIconButton as rn, ExhibitTooltip as an, LabelIcon as on, LazyLoadErrorPanel as sn, SimpleTooltip as cn, defaultRenderPopupPanel as ln, renderMembers as un } from "@sheetxl/utils-mui";
27
+ import { Fragment as dn, jsx as Z, jsxs as Q } from "react/jsx-runtime";
28
+ import { Box as $, FormControl as fn, InputAdornment as pn, InputLabel as mn, MenuItem as hn, Paper as gn, Select as _n, TextField as vn, Typography as yn, useMediaQuery as bn, useTheme as xn } from "@mui/material";
29
+ import { defineLazyModule as Sn } from "@sheetxl/utils";
30
+ var Cn = (e) => {
31
31
  e.button === 0 && e.preventDefault();
32
- }, tn = U(Ot((e, t) => {
33
- let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, helperText: g, showError: _ = !0, onChangeError: v, hideAdornment: y, propsInput: b, onKeyDown: x, onFocus: S, ...C } = e, w = H(), T = Tt(), E = h ?? w("namedInput.label"), D = Re(), O = s && D ? D.register(s, c) : null, k = ct({
32
+ }, wn = U(H((e, t) => {
33
+ let { disabled: n, className: r, sx: i, defaultInput: a, value: o, formName: s, formOptions: c, onChangeInput: l, onChangeText: u, onDone: d, changeOn: f, onValidate: p, apiRef: m, label: h, helperText: g, showError: _ = !0, onChangeError: v, hideAdornment: y, propsInput: b, onKeyDown: x, onFocus: S, ...C } = e, w = V(), T = Jt(), E = h ?? w("namedInput.label"), D = ot(), O = s && D ? D.register(s, c) : null, k = At({
34
34
  value: o ?? "",
35
35
  onChange: l,
36
36
  onChangeText: u,
@@ -39,7 +39,7 @@ var en = (e) => {
39
39
  onValidate: p,
40
40
  disabled: n
41
41
  });
42
- At(m, () => k, [k]);
42
+ Qt(m, () => k, [k]);
43
43
  let A = q(D);
44
44
  A.current = D;
45
45
  let j = q(v);
@@ -50,10 +50,10 @@ var en = (e) => {
50
50
  let e = A.current;
51
51
  e && (k.error ? e.setError(s, { message: w(k.error) }) : e.clearErrors(s));
52
52
  }, [k.error, s]);
53
- let N = f === "done", P = k.engaged && k.dirty, F = K(() => {
54
- if (!y && N) return Q(Wt, {
53
+ let N = f === "done", P = k.engaged && k.dirty, ee = K(() => {
54
+ if (!y && N) return Q(pn, {
55
55
  tabIndex: -1,
56
- onMouseDown: en,
56
+ onMouseDown: Cn,
57
57
  "aria-hidden": !P,
58
58
  sx: {
59
59
  display: "flex",
@@ -65,34 +65,34 @@ var en = (e) => {
65
65
  }
66
66
  },
67
67
  position: "end",
68
- children: [Z(Pt, {
68
+ children: [Z(nn, {
69
69
  dense: !0,
70
70
  outlined: !1,
71
71
  color: "primary",
72
72
  "aria-label": "commit-input",
73
- icon: Z(B, { iconKey: "CheckSuccess" }),
73
+ icon: Z(z, { iconKey: "CheckSuccess" }),
74
74
  propsTooltip: {
75
75
  label: w("referenceInput.commit"),
76
76
  simple: !0
77
77
  },
78
78
  disabled: !!k.error,
79
79
  tabIndex: -1,
80
- onMouseDown: en,
80
+ onMouseDown: Cn,
81
81
  onClick: () => {
82
82
  k.commit();
83
83
  }
84
- }), Z(Pt, {
84
+ }), Z(nn, {
85
85
  dense: !0,
86
86
  outlined: !1,
87
87
  color: "warning",
88
88
  "aria-label": "cancel-input",
89
- icon: Z(B, { iconKey: "CloseError" }),
89
+ icon: Z(z, { iconKey: "CloseError" }),
90
90
  propsTooltip: {
91
91
  label: w("referenceInput.cancel"),
92
92
  simple: !0
93
93
  },
94
94
  tabIndex: -1,
95
- onMouseDown: en,
95
+ onMouseDown: Cn,
96
96
  onClick: () => {
97
97
  k.cancel();
98
98
  }
@@ -106,7 +106,7 @@ var en = (e) => {
106
106
  k.cancel,
107
107
  !!k.error
108
108
  ]);
109
- return Z(Ut, {
109
+ return Z(fn, {
110
110
  sx: {
111
111
  minWidth: 135,
112
112
  width: "100%",
@@ -114,9 +114,9 @@ var en = (e) => {
114
114
  },
115
115
  size: "small",
116
116
  ref: t,
117
- className: R("sxl-input-field", r),
117
+ className: L("sxl-input-field", r),
118
118
  ...C,
119
- children: Z(Yt, {
119
+ children: Z(vn, {
120
120
  label: E,
121
121
  placeholder: a,
122
122
  disabled: n,
@@ -124,7 +124,7 @@ var en = (e) => {
124
124
  helperText: k.error && _ ? w(k.error) : g === void 0 ? " " : g,
125
125
  sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
126
126
  slotProps: {
127
- input: { endAdornment: F },
127
+ input: { endAdornment: ee },
128
128
  inputLabel: { shrink: !0 },
129
129
  htmlInput: {
130
130
  spellCheck: !1,
@@ -132,7 +132,7 @@ var en = (e) => {
132
132
  onPointerDown: T.onPointerDown,
133
133
  onDragStart: T.onDragStart,
134
134
  ...b,
135
- className: R("autoFocus", b?.className),
135
+ className: L("autoFocus", b?.className),
136
136
  name: s,
137
137
  readOnly: n,
138
138
  sx: {
@@ -163,40 +163,40 @@ var en = (e) => {
163
163
  })
164
164
  });
165
165
  }));
166
- tn.displayName = "InputField";
167
- var nn = U(Ot((e, t) => {
168
- let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = J([]), s = ot.canWrite(), c = ot.canRead();
166
+ wn.displayName = "InputField";
167
+ var Tn = U(H((e, t) => {
168
+ let { groupKey: n = "workbook", disabled: r, ...i } = e, [a, o] = J([]), s = Ot.canWrite(), c = Ot.canRead();
169
169
  G(() => {
170
170
  let e = !0;
171
- return ot.getWriteFormats().then((t) => {
171
+ return Ot.getWriteFormats().then((t) => {
172
172
  e && o(t);
173
173
  }), () => {
174
174
  e = !1;
175
175
  };
176
176
  }, []);
177
- let l = ft(), u = pt(l), d = K(() => {
177
+ let l = Pt(), u = Ft(l), d = K(() => {
178
178
  if (a.length === 0) return null;
179
179
  let e = u?.toLowerCase();
180
180
  return (e ? a.find((t) => t.key.toLowerCase() === e) ?? a.find((t) => t.exts?.some((t) => t.toLowerCase() === e)) : void 0) ?? a.find((e) => e.exts?.some((e) => e.toLowerCase() === "sxl")) ?? a.find((e) => !e.advanced) ?? a[0];
181
- }, [a, u]), [f] = bt(d ? `saveWorkbookAs${d.key}` : []), p = yt(), m = p.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], h = V((e) => {
181
+ }, [a, u]), [f] = Ut(d ? `saveWorkbookAs${d.key}` : []), p = Ht(), m = p.resolveMembers("newWorkbookOptions") ?? ["newWorkbook"], h = B((e) => {
182
182
  let t = {
183
- variant: ht.Menuitem,
183
+ variant: Lt.Menuitem,
184
184
  groupKey: n,
185
185
  disabled: r
186
- }, i = Q(Ht, { children: [
186
+ }, i = Q(dn, { children: [
187
187
  m.length > 1 ? Z(X, {
188
188
  ...t,
189
189
  quickCommand: "newWorkbook",
190
- createPopupPanel: (e) => {
191
- let t = Vt(m, {
192
- variant: ht.Menuitem,
190
+ renderPopupPanel: (e) => {
191
+ let t = un(m, {
192
+ variant: Lt.Menuitem,
193
193
  dividerOrientation: "horizontal",
194
194
  groupKey: "newWorkbookOptions",
195
195
  registry: p,
196
196
  propsCommandButton: { disabled: r },
197
197
  propsCommandPopup: { disabled: r }
198
198
  });
199
- return Bt({
199
+ return ln({
200
200
  ...e,
201
201
  children: t,
202
202
  onClick: () => {
@@ -208,24 +208,24 @@ var nn = U(Ot((e, t) => {
208
208
  ...t,
209
209
  commandKey: "newWorkbook"
210
210
  }),
211
- Z(Nt, { orientation: "horizontal" }),
211
+ Z(tn, { orientation: "horizontal" }),
212
212
  c ? Z(X, {
213
213
  ...t,
214
214
  quickCommand: "openWorkbook",
215
- createPopupPanel: (e) => {
215
+ renderPopupPanel: (e) => {
216
216
  let n = {
217
217
  ...t,
218
218
  groupKey: "openWorkbookOptions"
219
- }, r = [Dt(Y, {
219
+ }, r = [Xt(Y, {
220
220
  ...n,
221
221
  key: "device",
222
222
  commandKey: "openWorkbook"
223
- }), Dt(Y, {
223
+ }), Xt(Y, {
224
224
  ...n,
225
225
  key: "web",
226
226
  commandKey: "openWorkbookFromUrl"
227
227
  })];
228
- return Bt({
228
+ return ln({
229
229
  ...e,
230
230
  children: r,
231
231
  onClick: () => {
@@ -237,25 +237,25 @@ var nn = U(Ot((e, t) => {
237
237
  s && a.length > 0 ? Z(X, {
238
238
  ...t,
239
239
  quickCommand: "saveWorkbook",
240
- createPopupPanel: (e) => {
240
+ renderPopupPanel: (e) => {
241
241
  let n = {
242
242
  ...t,
243
243
  groupKey: "saveWorkbookOptions"
244
- }, r = [Dt(Y, {
244
+ }, r = [Xt(Y, {
245
245
  ...n,
246
246
  key: "saveWorkbookAs",
247
247
  commandKey: "saveWorkbookAs",
248
248
  label: f?.getLabel("saveWorkbookOptions"),
249
249
  icon: f?.getIcon("saveWorkbookOptions")
250
250
  })], i = a.filter((e) => !e.advanced && e.key !== d?.key);
251
- return i.length > 0 && r.push(Z(Nt, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
251
+ return i.length > 0 && r.push(Z(tn, { orientation: "horizontal" }, "divider")), i.forEach((e) => {
252
252
  let t = e.key, i = `saveWorkbookAs${t}`;
253
- r.push(Dt(Y, {
253
+ r.push(Xt(Y, {
254
254
  ...n,
255
255
  key: t,
256
256
  commandKey: i
257
257
  }));
258
- }), Bt({
258
+ }), ln({
259
259
  ...e,
260
260
  children: r,
261
261
  onClick: () => {
@@ -265,7 +265,7 @@ var nn = U(Ot((e, t) => {
265
265
  }
266
266
  }) : null
267
267
  ] });
268
- return Bt({
268
+ return ln({
269
269
  ...e,
270
270
  children: i,
271
271
  onClick: (t) => {
@@ -280,7 +280,7 @@ var nn = U(Ot((e, t) => {
280
280
  f,
281
281
  m,
282
282
  p
283
- ]), g = vt("fileOptions"), _ = g?.getLabel?.() ?? "File", v = g?.getDescription?.() ?? "Options for saving and loading the workbook.";
283
+ ]), g = Vt("fileOptions"), _ = g?.getLabel?.() ?? "File", v = g?.getDescription?.() ?? "Options for saving and loading the workbook.";
284
284
  return Z(X, {
285
285
  disabled: r,
286
286
  groupKey: n,
@@ -295,22 +295,22 @@ var nn = U(Ot((e, t) => {
295
295
  }
296
296
  },
297
297
  ...i,
298
- createPopupPanel: h,
299
- icon: Z(Lt, {
298
+ renderPopupPanel: h,
299
+ icon: Z(on, {
300
300
  className: "label",
301
301
  icon: null,
302
302
  label: _
303
303
  })
304
304
  });
305
305
  }));
306
- nn.displayName = "FileCommandButton";
307
- var rn = U(Ot((e, t) => {
308
- let { groupKey: n, disabled: r, ...i } = e, [a] = bt(["themeMode"]), o = vt("appearanceOptions"), s = V((e) => {
306
+ Tn.displayName = "FileCommandButton";
307
+ var En = U(H((e, t) => {
308
+ let { groupKey: n, disabled: r, ...i } = e, [a] = Ut(["themeMode"]), o = Vt("appearanceOptions"), s = B((e) => {
309
309
  let t = {
310
- variant: ht.Menuitem,
310
+ variant: Lt.Menuitem,
311
311
  groupKey: "appearanceOptions",
312
312
  disabled: r
313
- }, n = Q(Ht, { children: [
313
+ }, n = Q(dn, { children: [
314
314
  Z(Y, {
315
315
  ...t,
316
316
  commandKey: "themeMode"
@@ -319,7 +319,7 @@ var rn = U(Ot((e, t) => {
319
319
  ...t,
320
320
  commandKey: "defaultThemeMode"
321
321
  }),
322
- Z(Nt, { orientation: "horizontal" }),
322
+ Z(tn, { orientation: "horizontal" }),
323
323
  Z(Y, {
324
324
  ...t,
325
325
  commandKey: "enableDarkGrid"
@@ -329,7 +329,7 @@ var rn = U(Ot((e, t) => {
329
329
  commandKey: "enableDarkImages"
330
330
  })
331
331
  ] });
332
- return Bt({
332
+ return ln({
333
333
  ...e,
334
334
  children: n
335
335
  });
@@ -337,11 +337,11 @@ var rn = U(Ot((e, t) => {
337
337
  r,
338
338
  a,
339
339
  n
340
- ]), c = a?.getState(), l = Zt("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
340
+ ]), c = a?.getState(), l = bn("(prefers-color-scheme: dark)"), u = c === "dark" || c === null && l, d = a?.getState() !== null;
341
341
  return Z(X, {
342
342
  ref: t,
343
343
  quickCommand: "themeMode",
344
- createPopupPanel: s,
344
+ renderPopupPanel: s,
345
345
  label: o?.getLabel?.(),
346
346
  tooltip: o?.getDescription?.(),
347
347
  onQuickClick: () => {
@@ -350,16 +350,16 @@ var rn = U(Ot((e, t) => {
350
350
  selected: d,
351
351
  ...i
352
352
  });
353
- })), an = U(Ot((e, t) => {
353
+ })), Dn = U(H((e, t) => {
354
354
  let { ...n } = e;
355
- return Z(Mt, {
355
+ return Z(en, {
356
356
  ref: t,
357
357
  groupKey: "insertFunctionSumOptions",
358
358
  ...n
359
359
  });
360
360
  }));
361
- function on(e, t, n) {
362
- return e === z.BuiltInSheetPattern.Solid ? {
361
+ function On(e, t, n) {
362
+ return e === R.BuiltInSheetPattern.Solid ? {
363
363
  foreground: n,
364
364
  background: t
365
365
  } : {
@@ -367,12 +367,12 @@ function on(e, t, n) {
367
367
  background: n
368
368
  };
369
369
  }
370
- an.displayName = "InsertFunctionSumCommandPopupButton";
371
- var sn = U((e) => {
370
+ Dn.displayName = "InsertFunctionSumCommandPopupButton";
371
+ var kn = U((e) => {
372
372
  let { patternType: t, foreground: n, background: r, createCell: i, darkMode: a = !1, className: o, style: s, ...c } = e, l = K(() => {
373
- let e = on(t, n, r);
373
+ let e = On(t, n, r);
374
374
  return i({ style: { fill: {
375
- type: z.Type.Pattern,
375
+ type: R.Type.Pattern,
376
376
  patternType: t,
377
377
  foreground: e.foreground ?? void 0,
378
378
  background: e.background ?? void 0
@@ -385,7 +385,7 @@ var sn = U((e) => {
385
385
  a
386
386
  ]);
387
387
  return Z("div", {
388
- className: R("sxl-pattern-swatch", o),
388
+ className: L("sxl-pattern-swatch", o),
389
389
  style: {
390
390
  width: "100%",
391
391
  height: "100%",
@@ -395,53 +395,53 @@ var sn = U((e) => {
395
395
  ...c
396
396
  });
397
397
  });
398
- sn.displayName = "PatternSwatch";
399
- var cn = Object.freeze([
400
- z.BuiltInSheetPattern.Solid,
401
- z.BuiltInSheetPattern.DarkGray,
402
- z.BuiltInSheetPattern.MediumGray,
403
- z.BuiltInSheetPattern.LightGray,
404
- z.BuiltInSheetPattern.Gray125,
405
- z.BuiltInSheetPattern.Gray0625,
406
- z.BuiltInSheetPattern.DarkHorizontal,
407
- z.BuiltInSheetPattern.DarkVertical,
408
- z.BuiltInSheetPattern.DarkDown,
409
- z.BuiltInSheetPattern.DarkUp,
410
- z.BuiltInSheetPattern.DarkGrid,
411
- z.BuiltInSheetPattern.DarkTrellis,
412
- z.BuiltInSheetPattern.LightHorizontal,
413
- z.BuiltInSheetPattern.LightVertical,
414
- z.BuiltInSheetPattern.LightDown,
415
- z.BuiltInSheetPattern.LightUp,
416
- z.BuiltInSheetPattern.LightGrid,
417
- z.BuiltInSheetPattern.LightTrellis
398
+ kn.displayName = "PatternSwatch";
399
+ var An = Object.freeze([
400
+ R.BuiltInSheetPattern.Solid,
401
+ R.BuiltInSheetPattern.DarkGray,
402
+ R.BuiltInSheetPattern.MediumGray,
403
+ R.BuiltInSheetPattern.LightGray,
404
+ R.BuiltInSheetPattern.Gray125,
405
+ R.BuiltInSheetPattern.Gray0625,
406
+ R.BuiltInSheetPattern.DarkHorizontal,
407
+ R.BuiltInSheetPattern.DarkVertical,
408
+ R.BuiltInSheetPattern.DarkDown,
409
+ R.BuiltInSheetPattern.DarkUp,
410
+ R.BuiltInSheetPattern.DarkGrid,
411
+ R.BuiltInSheetPattern.DarkTrellis,
412
+ R.BuiltInSheetPattern.LightHorizontal,
413
+ R.BuiltInSheetPattern.LightVertical,
414
+ R.BuiltInSheetPattern.LightDown,
415
+ R.BuiltInSheetPattern.LightUp,
416
+ R.BuiltInSheetPattern.LightGrid,
417
+ R.BuiltInSheetPattern.LightTrellis
418
418
  ]);
419
- function ln(e, t) {
419
+ function jn(e, t) {
420
420
  switch (t) {
421
- case z.BuiltInSheetPattern.None: return e("fill.pattern.none");
422
- case z.BuiltInSheetPattern.Solid: return e("fill.pattern.solid");
423
- case z.BuiltInSheetPattern.Gray0625: return e("fill.pattern.gray0625");
424
- case z.BuiltInSheetPattern.Gray125: return e("fill.pattern.gray125");
425
- case z.BuiltInSheetPattern.LightGray: return e("fill.pattern.lightGray");
426
- case z.BuiltInSheetPattern.MediumGray: return e("fill.pattern.mediumGray");
427
- case z.BuiltInSheetPattern.DarkGray: return e("fill.pattern.darkGray");
428
- case z.BuiltInSheetPattern.LightHorizontal: return e("fill.pattern.lightHorizontal");
429
- case z.BuiltInSheetPattern.LightVertical: return e("fill.pattern.lightVertical");
430
- case z.BuiltInSheetPattern.LightDown: return e("fill.pattern.lightDown");
431
- case z.BuiltInSheetPattern.LightUp: return e("fill.pattern.lightUp");
432
- case z.BuiltInSheetPattern.LightGrid: return e("fill.pattern.lightGrid");
433
- case z.BuiltInSheetPattern.LightTrellis: return e("fill.pattern.lightTrellis");
434
- case z.BuiltInSheetPattern.DarkHorizontal: return e("fill.pattern.darkHorizontal");
435
- case z.BuiltInSheetPattern.DarkVertical: return e("fill.pattern.darkVertical");
436
- case z.BuiltInSheetPattern.DarkDown: return e("fill.pattern.darkDown");
437
- case z.BuiltInSheetPattern.DarkUp: return e("fill.pattern.darkUp");
438
- case z.BuiltInSheetPattern.DarkGrid: return e("fill.pattern.darkGrid");
439
- case z.BuiltInSheetPattern.DarkTrellis: return e("fill.pattern.darkTrellis");
421
+ case R.BuiltInSheetPattern.None: return e("fill.pattern.none");
422
+ case R.BuiltInSheetPattern.Solid: return e("fill.pattern.solid");
423
+ case R.BuiltInSheetPattern.Gray0625: return e("fill.pattern.gray0625");
424
+ case R.BuiltInSheetPattern.Gray125: return e("fill.pattern.gray125");
425
+ case R.BuiltInSheetPattern.LightGray: return e("fill.pattern.lightGray");
426
+ case R.BuiltInSheetPattern.MediumGray: return e("fill.pattern.mediumGray");
427
+ case R.BuiltInSheetPattern.DarkGray: return e("fill.pattern.darkGray");
428
+ case R.BuiltInSheetPattern.LightHorizontal: return e("fill.pattern.lightHorizontal");
429
+ case R.BuiltInSheetPattern.LightVertical: return e("fill.pattern.lightVertical");
430
+ case R.BuiltInSheetPattern.LightDown: return e("fill.pattern.lightDown");
431
+ case R.BuiltInSheetPattern.LightUp: return e("fill.pattern.lightUp");
432
+ case R.BuiltInSheetPattern.LightGrid: return e("fill.pattern.lightGrid");
433
+ case R.BuiltInSheetPattern.LightTrellis: return e("fill.pattern.lightTrellis");
434
+ case R.BuiltInSheetPattern.DarkHorizontal: return e("fill.pattern.darkHorizontal");
435
+ case R.BuiltInSheetPattern.DarkVertical: return e("fill.pattern.darkVertical");
436
+ case R.BuiltInSheetPattern.DarkDown: return e("fill.pattern.darkDown");
437
+ case R.BuiltInSheetPattern.DarkUp: return e("fill.pattern.darkUp");
438
+ case R.BuiltInSheetPattern.DarkGrid: return e("fill.pattern.darkGrid");
439
+ case R.BuiltInSheetPattern.DarkTrellis: return e("fill.pattern.darkTrellis");
440
440
  default: return t;
441
441
  }
442
442
  }
443
- var un = U((e) => {
444
- let { selectedPattern: t, foreground: n, background: r, onSelectPattern: i, createCell: a, darkMode: o = !1, disabled: s, ...c } = e, l = H(), u = V(i ?? ((e) => {}), [i]), d = W((e) => {
443
+ var Mn = U((e) => {
444
+ let { selectedPattern: t, foreground: n, background: r, onSelectPattern: i, createCell: a, darkMode: o = !1, disabled: s, ...c } = e, l = V(), u = B(i ?? ((e) => {}), [i]), d = W((e) => {
445
445
  let { closeFloat: i } = e;
446
446
  return Z($, {
447
447
  sx: {
@@ -450,12 +450,12 @@ var un = U((e) => {
450
450
  gap: "4px",
451
451
  padding: "8px"
452
452
  },
453
- children: cn.map((e) => Z(It, {
454
- label: ln(l, e),
453
+ children: An.map((e) => Z(an, {
454
+ label: jn(l, e),
455
455
  children: Z($, {
456
456
  role: "button",
457
457
  tabIndex: 0,
458
- "aria-label": ln(l, e),
458
+ "aria-label": jn(l, e),
459
459
  "aria-pressed": e === t,
460
460
  onMouseDown: (e) => e.preventDefault(),
461
461
  onMouseUp: () => {
@@ -473,7 +473,7 @@ var un = U((e) => {
473
473
  outlineOffset: "-1px",
474
474
  "&:hover": { outline: (e) => `2px solid ${e.palette.primary.light}` }
475
475
  },
476
- children: Z(sn, {
476
+ children: Z(kn, {
477
477
  patternType: e,
478
478
  foreground: n,
479
479
  background: r,
@@ -492,10 +492,10 @@ var un = U((e) => {
492
492
  u,
493
493
  l
494
494
  ]);
495
- return Z(Ft, {
495
+ return Z(rn, {
496
496
  disabled: s,
497
- tooltip: l("fill.patternTooltip", { pattern: ln(l, t) }),
498
- createPopupPanel: d,
497
+ tooltip: l("fill.patternTooltip", { pattern: jn(l, t) }),
498
+ renderPopupPanel: d,
499
499
  icon: Z($, {
500
500
  sx: {
501
501
  width: "48px",
@@ -505,7 +505,7 @@ var un = U((e) => {
505
505
  outlineOffset: "-1px",
506
506
  overflow: "hidden"
507
507
  },
508
- children: Z(sn, {
508
+ children: Z(kn, {
509
509
  patternType: t,
510
510
  foreground: n,
511
511
  background: r,
@@ -516,13 +516,13 @@ var un = U((e) => {
516
516
  ...c
517
517
  });
518
518
  });
519
- un.displayName = "PatternPopupButton";
520
- var dn = {
519
+ Mn.displayName = "PatternPopupButton";
520
+ var Nn = {
521
521
  resizeOnOverflow: !1,
522
522
  placement: "bottom",
523
523
  offsets: [0, 2],
524
524
  shift: { padding: 8 }
525
- }, fn = ((e) => {
525
+ }, Pn = ((e) => {
526
526
  let t = [], n = e.length;
527
527
  for (let r = 0; r < n; r++) {
528
528
  let [i, a] = e[(r + n - 1) % n], [o, s, c] = e[r], [l, u] = e[(r + 1) % n], d = (e, t) => {
@@ -558,24 +558,24 @@ var dn = {
558
558
  6,
559
559
  1.5
560
560
  ]
561
- ]), pn = (e) => Math.max(0, Math.min(1, e)), mn = (e, t, n) => {
561
+ ]), Fn = (e) => Math.max(0, Math.min(1, e)), In = (e, t, n) => {
562
562
  try {
563
- return (e instanceof $e ? e : new $e(e, t)).toCSS(n);
563
+ return (e instanceof xt ? e : new xt(e, t)).toCSS(n);
564
564
  } catch {
565
565
  return "transparent";
566
566
  }
567
- }, hn = (e, t, n) => {
567
+ }, Ln = (e, t, n) => {
568
568
  try {
569
- let r = new $e(e, n).toRGBA(), i = new $e(t, n).toRGBA(), a = (e, t) => Math.round((e + t) / 2).toString(16).padStart(2, "0");
569
+ let r = new xt(e, n).toRGBA(), i = new xt(t, n).toRGBA(), a = (e, t) => Math.round((e + t) / 2).toString(16).padStart(2, "0");
570
570
  return `${a(r.red, i.red)}${a(r.green, i.green)}${a(r.blue, i.blue)}`;
571
571
  } catch {
572
572
  return e;
573
573
  }
574
- }, gn = (e, t) => e.offset === t.offset && String(e.color) === String(t.color), _n = (e, t) => e.length === t.length && e.every((e, n) => gn(e, t[n])), vn = U((e) => {
575
- let { percent: t, disabled: n, inputRef: r, onChange: i } = e, a = H(), [o, s] = J(String(t)), [c, l] = J(!1);
574
+ }, Rn = (e, t) => e.offset === t.offset && String(e.color) === String(t.color), zn = (e, t) => e.length === t.length && e.every((e, n) => Rn(e, t[n])), Bn = U((e) => {
575
+ let { percent: t, disabled: n, inputRef: r, onChange: i } = e, a = V(), [o, s] = J(String(t)), [c, l] = J(!1);
576
576
  return G(() => {
577
577
  c || s(String(t));
578
- }, [t, c]), Z(Yt, {
578
+ }, [t, c]), Z(vn, {
579
579
  type: "number",
580
580
  size: "small",
581
581
  disabled: n,
@@ -599,7 +599,7 @@ var dn = {
599
599
  style: { textAlign: "right" }
600
600
  },
601
601
  inputLabel: { shrink: !0 },
602
- input: { endAdornment: Z(Wt, {
602
+ input: { endAdornment: Z(pn, {
603
603
  position: "end",
604
604
  disableTypography: !0,
605
605
  children: "%"
@@ -608,13 +608,13 @@ var dn = {
608
608
  sx: { width: 120 }
609
609
  });
610
610
  });
611
- vn.displayName = "StopPositionField";
612
- var yn = U((e) => {
613
- let { index: t, stop: n, offset: r, schemeLookup: i, recentColors: a, darkMode: o, disabled: s, canRemove: c, rampRef: l, onDrag: u, onMove: d, onPreviewColor: f, onChangeColor: p, onRemove: m, onOpenChange: h } = e, g = H(), _ = Qt(), v = K(() => new $e(n.color, i), [n.color, i]), [y, b] = J(void 0), [x, S] = J(null), [C, w] = J(!1), [T, E] = J(!1), [D, O] = J(!1), [k, A] = J(!1), j = q(null), M = q(!1), N = V((e) => {
611
+ Bn.displayName = "StopPositionField";
612
+ var Vn = U((e) => {
613
+ let { index: t, stop: n, offset: r, schemeLookup: i, recentColors: a, darkMode: o, disabled: s, canRemove: c, rampRef: l, onDrag: u, onMove: d, onPreviewColor: f, onChangeColor: p, onRemove: m, onOpenChange: h } = e, g = V(), _ = xn(), v = K(() => new xt(n.color, i), [n.color, i]), [y, b] = J(void 0), [x, S] = J(null), [C, w] = J(!1), [T, E] = J(!1), [D, O] = J(!1), [k, A] = J(!1), j = q(null), M = q(!1), N = B((e) => {
614
614
  b(e), f(t, e ?? null);
615
- }, [t, f]), P = V((e) => {
615
+ }, [t, f]), P = B((e) => {
616
616
  d(t, e / 100);
617
- }, [t, d]), F = Math.round(100 * r), ee = mn(y ?? v, i, o), te = W((e) => {
617
+ }, [t, d]), ee = Math.round(100 * r), te = In(y ?? v, i, o), ne = W((e) => {
618
618
  let { closeFloat: n } = e;
619
619
  return Q($, {
620
620
  className: "sxl-gradient-stop-popup",
@@ -622,7 +622,7 @@ var yn = U((e) => {
622
622
  display: "flex",
623
623
  flexDirection: "column"
624
624
  },
625
- children: [Z(be, {
625
+ children: [Z(He, {
626
626
  selectedColor: v,
627
627
  previewColor: y,
628
628
  disableAlpha: !0,
@@ -643,8 +643,8 @@ var yn = U((e) => {
643
643
  paddingX: 1,
644
644
  paddingBottom: 1
645
645
  },
646
- children: Z(vn, {
647
- percent: F,
646
+ children: Z(Bn, {
647
+ percent: ee,
648
648
  disabled: s,
649
649
  inputRef: j,
650
650
  onChange: P
@@ -654,7 +654,7 @@ var yn = U((e) => {
654
654
  }, [
655
655
  v,
656
656
  y,
657
- F,
657
+ ee,
658
658
  t,
659
659
  i,
660
660
  a,
@@ -663,71 +663,71 @@ var yn = U((e) => {
663
663
  N,
664
664
  p,
665
665
  P
666
- ]), I = xt({
666
+ ]), F = Wt({
667
667
  anchor: x,
668
668
  label: "gradient-stop",
669
- createPopupPanel: te,
670
- propsPopper: dn,
669
+ renderPopupPanel: ne,
670
+ propsPopper: Nn,
671
671
  onOpen: () => {
672
672
  w(!0), h(t, !0), M.current && (M.current = !1, requestAnimationFrame(() => j.current?.focus()));
673
673
  },
674
674
  onClose: () => {
675
675
  w(!1), h(t, !1), N(void 0);
676
676
  }
677
- }), ne = V((e) => {
678
- M.current = e, I.reference.open(0);
679
- }, [I]), re = V(() => {
680
- C ? I.reference.close(0) : ne(!1);
677
+ }), re = B((e) => {
678
+ M.current = e, F.reference.open(0);
679
+ }, [F]), ie = B(() => {
680
+ C ? F.reference.close(0) : re(!1);
681
681
  }, [
682
682
  C,
683
- I,
684
- ne
685
- ]), L = q(null), ie = V((e) => {
686
- s || e.button !== 0 || (e.currentTarget.setPointerCapture(e.pointerId), L.current = {
683
+ F,
684
+ re
685
+ ]), I = q(null), ae = B((e) => {
686
+ s || e.button !== 0 || (e.currentTarget.setPointerCapture(e.pointerId), I.current = {
687
687
  pointerId: e.pointerId,
688
688
  startX: e.clientX,
689
689
  startOffset: r,
690
690
  moved: !1,
691
691
  offset: r
692
692
  });
693
- }, [s, r]), ae = V((e) => {
694
- let n = L.current;
693
+ }, [s, r]), oe = B((e) => {
694
+ let n = I.current;
695
695
  if (!n || n.pointerId !== e.pointerId) return;
696
696
  let r = e.clientX - n.startX;
697
697
  if (!n.moved) {
698
698
  if (Math.abs(r) < 3) return;
699
- n.moved = !0, E(!0), A(!1), I.reference.close(0);
699
+ n.moved = !0, E(!0), A(!1), F.reference.close(0);
700
700
  }
701
701
  let i = l.current?.getBoundingClientRect().width ?? 0;
702
- n.offset = i > 0 ? pn(n.startOffset + r / i) : n.startOffset, u(t, n.offset, !1);
702
+ n.offset = i > 0 ? Fn(n.startOffset + r / i) : n.startOffset, u(t, n.offset, !1);
703
703
  }, [
704
704
  t,
705
705
  l,
706
- I,
706
+ F,
707
707
  u
708
- ]), oe = V((e) => {
709
- let n = L.current;
708
+ ]), se = B((e) => {
709
+ let n = I.current;
710
710
  if (n && n.pointerId === e.pointerId) {
711
- if (L.current = null, n.moved) return E(!1), u(t, n.offset, !0), void d(t, n.offset);
712
- re();
711
+ if (I.current = null, n.moved) return E(!1), u(t, n.offset, !0), void d(t, n.offset);
712
+ ie();
713
713
  }
714
714
  }, [
715
715
  t,
716
716
  u,
717
717
  d,
718
- re
719
- ]), se = V((e) => {
720
- let n = L.current;
721
- n && n.pointerId === e.pointerId && (L.current = null, n.moved && (E(!1), u(t, n.startOffset, !0)));
722
- }, [t, u]), ce = V((e) => {
718
+ ie
719
+ ]), ce = B((e) => {
720
+ let n = I.current;
721
+ n && n.pointerId === e.pointerId && (I.current = null, n.moved && (E(!1), u(t, n.startOffset, !0)));
722
+ }, [t, u]), le = B((e) => {
723
723
  if (s) return;
724
724
  let n = e.shiftKey ? .1 : .01;
725
725
  switch (e.key) {
726
726
  case "ArrowLeft":
727
- d(t, pn(r - n));
727
+ d(t, Fn(r - n));
728
728
  break;
729
729
  case "ArrowRight":
730
- d(t, pn(r + n));
730
+ d(t, Fn(r + n));
731
731
  break;
732
732
  case "Home":
733
733
  d(t, 0);
@@ -741,11 +741,11 @@ var yn = U((e) => {
741
741
  break;
742
742
  case "Enter":
743
743
  case " ":
744
- ne(!0);
744
+ re(!0);
745
745
  break;
746
746
  case "Escape":
747
747
  if (!C) return;
748
- I.reference.close(0);
748
+ F.reference.close(0);
749
749
  break;
750
750
  default: return;
751
751
  }
@@ -756,11 +756,11 @@ var yn = U((e) => {
756
756
  r,
757
757
  c,
758
758
  C,
759
- I,
760
- ne,
759
+ F,
760
+ re,
761
761
  d,
762
762
  m
763
- ]), le = C || T || D, ue = !s && !T && !C && k, de = Q($, {
763
+ ]), ue = C || T || D, de = !s && !T && !C && k, fe = Q($, {
764
764
  className: "sxl-gradient-stop-toolbar",
765
765
  onPointerDown: (e) => {
766
766
  e.stopPropagation();
@@ -770,7 +770,7 @@ var yn = U((e) => {
770
770
  alignItems: "center",
771
771
  gap: .25
772
772
  },
773
- children: [Z(Pt, {
773
+ children: [Z(nn, {
774
774
  tabIndex: -1,
775
775
  propsTooltip: {
776
776
  label: g("fill.gradientStopColor"),
@@ -780,27 +780,27 @@ var yn = U((e) => {
780
780
  className: "color-wrapper",
781
781
  sx: {
782
782
  lineHeight: 0,
783
- "& .activeColor": { fill: ee }
783
+ "& .activeColor": { fill: te }
784
784
  },
785
- children: Z(B, { iconKey: "circle.colored" })
785
+ children: Z(z, { iconKey: "circle.colored" })
786
786
  }),
787
787
  onClick: () => {
788
- A(!1), re();
788
+ A(!1), ie();
789
789
  }
790
- }), Z(Pt, {
790
+ }), Z(nn, {
791
791
  tabIndex: -1,
792
792
  disabled: !c,
793
793
  propsTooltip: {
794
794
  label: g("fill.gradientRemoveStop"),
795
795
  simple: !0
796
796
  },
797
- icon: Z(B, { iconKey: "Close" }),
797
+ icon: Z(z, { iconKey: "Close" }),
798
798
  onClick: () => m(t)
799
799
  })]
800
800
  });
801
- return Q(Ht, { children: [Z(zt, {
802
- title: de,
803
- open: ue,
801
+ return Q(dn, { children: [Z(cn, {
802
+ title: fe,
803
+ open: de,
804
804
  onOpen: () => A(!0),
805
805
  onClose: () => A(!1),
806
806
  enterDelay: 250,
@@ -821,19 +821,19 @@ var yn = U((e) => {
821
821
  ref: S,
822
822
  role: "button",
823
823
  tabIndex: s ? -1 : 0,
824
- "aria-label": g("fill.gradientStop", { position: F }),
824
+ "aria-label": g("fill.gradientStop", { position: ee }),
825
825
  "aria-disabled": s || void 0,
826
- className: R("sxl-gradient-stop", {
826
+ className: L("sxl-gradient-stop", {
827
827
  "sxl-gradient-stop-open": C,
828
828
  "sxl-gradient-stop-dragging": T
829
829
  }),
830
- onPointerDown: ie,
831
- onPointerMove: ae,
832
- onPointerUp: oe,
833
- onPointerCancel: se,
830
+ onPointerDown: ae,
831
+ onPointerMove: oe,
832
+ onPointerUp: se,
833
+ onPointerCancel: ce,
834
834
  onFocus: () => O(!0),
835
835
  onBlur: () => O(!1),
836
- onKeyDown: ce,
836
+ onKeyDown: le,
837
837
  sx: {
838
838
  position: "absolute",
839
839
  left: 100 * r + "%",
@@ -847,7 +847,7 @@ var yn = U((e) => {
847
847
  touchAction: "none",
848
848
  outline: "none",
849
849
  zIndex: +!!T,
850
- filter: le ? `drop-shadow(0 1px 2px ${_.palette.action.active})` : void 0
850
+ filter: ue ? `drop-shadow(0 1px 2px ${_.palette.action.active})` : void 0
851
851
  },
852
852
  children: Z("svg", {
853
853
  width: 14,
@@ -855,28 +855,28 @@ var yn = U((e) => {
855
855
  viewBox: "0 0 14 17",
856
856
  "aria-hidden": "true",
857
857
  children: Z("path", {
858
- d: fn,
859
- fill: ee,
860
- stroke: le ? _.palette.primary.main : _.palette.text.secondary,
861
- strokeWidth: le ? 1.5 : 1,
858
+ d: Pn,
859
+ fill: te,
860
+ stroke: ue ? _.palette.primary.main : _.palette.text.secondary,
861
+ strokeWidth: ue ? 1.5 : 1,
862
862
  strokeLinejoin: "round"
863
863
  })
864
864
  })
865
865
  })
866
- }), I.component] });
866
+ }), F.component] });
867
867
  });
868
- yn.displayName = "StopHandle";
869
- var bn = U((e) => {
870
- let { stops: t, onChange: n, minStops: r = 2, maxStops: i = 8, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = H(), f = q(null), p = q({
868
+ Vn.displayName = "StopHandle";
869
+ var Hn = U((e) => {
870
+ let { stops: t, onChange: n, minStops: r = 2, maxStops: i = 8, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = V(), f = q(null), p = q({
871
871
  known: [],
872
872
  next: 1
873
873
  }), m = K(() => {
874
874
  let e = p.current, n = ((e, t, n) => {
875
- for (let n of t) if (_n(e, n.stops)) return n.keys;
875
+ for (let n of t) if (zn(e, n.stops)) return n.keys;
876
876
  let r = /* @__PURE__ */ new Set();
877
877
  return e.map((e) => {
878
878
  for (let n of t) {
879
- let t = n.stops.findIndex((t, i) => !r.has(n.keys[i]) && gn(t, e));
879
+ let t = n.stops.findIndex((t, i) => !r.has(n.keys[i]) && Rn(t, e));
880
880
  if (t >= 0) return r.add(n.keys[t]), n.keys[t];
881
881
  }
882
882
  return -1;
@@ -887,33 +887,33 @@ var bn = U((e) => {
887
887
  keys: n
888
888
  }, ...e.known].slice(0, 3)), n;
889
889
  }, [t]), [h, g] = J(null), [_, v] = J(null), [y, b] = J(null);
890
- jt(() => {
890
+ $t(() => {
891
891
  g((e) => {
892
892
  if (!e?.released) return e;
893
893
  let n = m.indexOf(e.key);
894
894
  return n >= 0 && t[n].offset === e.offset ? null : e;
895
895
  });
896
- }, [t, m]), jt(() => {
896
+ }, [t, m]), $t(() => {
897
897
  if (!h?.released) return;
898
898
  let e = window.setTimeout(() => g((e) => e?.released ? null : e), 1e3);
899
899
  return () => window.clearTimeout(e);
900
900
  }, [h]);
901
- let x = !c && t.length < i, S = !c && t.length > r, C = V((e) => {
901
+ let x = !c && t.length < i, S = !c && t.length > r, C = B((e) => {
902
902
  let t = [...e].sort((e, t) => e.stop.offset - t.stop.offset), r = {
903
903
  stops: t.map((e) => e.stop),
904
904
  keys: t.map((e) => e.key)
905
905
  }, i = p.current;
906
906
  i.known = [r, ...i.known].slice(0, 3), n(r.stops.slice());
907
- }, [n]), w = V(() => t.map((e, t) => ({
907
+ }, [n]), w = B(() => t.map((e, t) => ({
908
908
  stop: e,
909
909
  key: m[t]
910
- })), [t, m]), T = V((e, t, n) => {
910
+ })), [t, m]), T = B((e, t, n) => {
911
911
  g({
912
912
  key: m[e],
913
913
  offset: t,
914
914
  released: n
915
915
  });
916
- }, [m]), E = V((e, t) => {
916
+ }, [m]), E = B((e, t) => {
917
917
  C(w().map((n, r) => r === e ? {
918
918
  ...n,
919
919
  stop: {
@@ -921,15 +921,15 @@ var bn = U((e) => {
921
921
  offset: t
922
922
  }
923
923
  } : n));
924
- }, [w, C]), D = V((e, t) => {
924
+ }, [w, C]), D = B((e, t) => {
925
925
  v(t ? {
926
926
  key: m[e],
927
927
  color: t
928
928
  } : null);
929
- }, [m]), O = V((e, t) => {
929
+ }, [m]), O = B((e, t) => {
930
930
  let n = m[e];
931
931
  b((e) => t ? n : e === n ? null : e);
932
- }, [m]), k = V((e, t) => {
932
+ }, [m]), k = B((e, t) => {
933
933
  C(w().map((n, r) => r === e ? {
934
934
  ...n,
935
935
  stop: {
@@ -937,14 +937,14 @@ var bn = U((e) => {
937
937
  color: t.toString()
938
938
  }
939
939
  } : n));
940
- }, [w, C]), A = V((e) => {
940
+ }, [w, C]), A = B((e) => {
941
941
  t.length <= r || C(w().filter((t, n) => n !== e));
942
942
  }, [
943
943
  t,
944
944
  r,
945
945
  w,
946
946
  C
947
- ]), j = V((e) => {
947
+ ]), j = B((e) => {
948
948
  if (t.length >= i) return;
949
949
  let n = [...t].sort((e, t) => e.offset - t.offset), r = e;
950
950
  if (r === void 0) {
@@ -959,7 +959,7 @@ var bn = U((e) => {
959
959
  C([...w(), {
960
960
  stop: {
961
961
  offset: r,
962
- color: hn(o.color, s.color, a)
962
+ color: Ln(o.color, s.color, a)
963
963
  },
964
964
  key: p.current.next++
965
965
  }]);
@@ -969,10 +969,10 @@ var bn = U((e) => {
969
969
  a,
970
970
  w,
971
971
  C
972
- ]), M = V((e) => {
972
+ ]), M = B((e) => {
973
973
  if (!x || e.button !== 0 || y !== null || e.target.closest(".sxl-gradient-stop")) return;
974
974
  let t = e.currentTarget.getBoundingClientRect();
975
- t.width <= 0 || j(pn((e.clientX - t.left) / t.width));
975
+ t.width <= 0 || j(Fn((e.clientX - t.left) / t.width));
976
976
  }, [
977
977
  x,
978
978
  y,
@@ -980,7 +980,7 @@ var bn = U((e) => {
980
980
  ]), N = K(() => {
981
981
  let e = t.map((e, t) => ({
982
982
  offset: h?.key === m[t] ? h.offset : e.offset,
983
- css: mn(_?.key === m[t] ? _.color : e.color, a, s)
983
+ css: In(_?.key === m[t] ? _.color : e.color, a, s)
984
984
  }));
985
985
  return e.sort((e, t) => e.offset - t.offset), `linear-gradient(90deg, ${e.map((e) => `${e.css} ${(100 * e.offset).toFixed(2)}%`).join(", ")})`;
986
986
  }, [
@@ -992,7 +992,7 @@ var bn = U((e) => {
992
992
  s
993
993
  ]);
994
994
  return Q($, {
995
- className: R("sxl-gradient-stops", l),
995
+ className: L("sxl-gradient-stops", l),
996
996
  sx: {
997
997
  display: "flex",
998
998
  alignItems: "flex-start",
@@ -1021,7 +1021,7 @@ var bn = U((e) => {
1021
1021
  cursor: x ? "copy" : "default",
1022
1022
  opacity: c ? .5 : 1
1023
1023
  },
1024
- children: t.map((e, t) => Z(yn, {
1024
+ children: t.map((e, t) => Z(Vn, {
1025
1025
  index: t,
1026
1026
  stop: e,
1027
1027
  offset: h?.key === m[t] ? h.offset : e.offset,
@@ -1039,28 +1039,28 @@ var bn = U((e) => {
1039
1039
  onOpenChange: O
1040
1040
  }, m[t]))
1041
1041
  })
1042
- }), Z(Pt, {
1042
+ }), Z(nn, {
1043
1043
  disabled: !x,
1044
1044
  propsTooltip: {
1045
1045
  label: d("fill.gradientAddStop"),
1046
1046
  simple: !0
1047
1047
  },
1048
- icon: Z(B, { iconKey: "Add" }),
1048
+ icon: Z(z, { iconKey: "Add" }),
1049
1049
  onClick: () => j(),
1050
1050
  sx: { marginTop: "-3px" }
1051
1051
  })]
1052
1052
  });
1053
1053
  });
1054
- bn.displayName = "GradientStopsBar";
1055
- var xn = U((e) => {
1056
- let { value: t, onChange: n, minStops: r, maxStops: i, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = H(), f = V((e) => {
1054
+ Hn.displayName = "GradientStopsBar";
1055
+ var Un = U((e) => {
1056
+ let { value: t, onChange: n, minStops: r, maxStops: i, schemeLookup: a, recentColors: o, darkMode: s = !1, disabled: c = !1, className: l, ...u } = e, d = V(), f = B((e) => {
1057
1057
  n({
1058
1058
  ...t,
1059
1059
  ...e
1060
1060
  });
1061
- }, [t, n]), p = t.gradientType === z.GradientType.Linear;
1061
+ }, [t, n]), p = t.gradientType === R.GradientType.Linear;
1062
1062
  return Q($, {
1063
- className: R("sxl-gradient-editor", l),
1063
+ className: L("sxl-gradient-editor", l),
1064
1064
  sx: {
1065
1065
  display: "flex",
1066
1066
  flexDirection: "column",
@@ -1075,30 +1075,30 @@ var xn = U((e) => {
1075
1075
  gap: 1,
1076
1076
  alignItems: "center"
1077
1077
  },
1078
- children: [Q(Ut, {
1078
+ children: [Q(fn, {
1079
1079
  size: "small",
1080
1080
  sx: {
1081
1081
  minWidth: 132,
1082
1082
  flex: "1 1 132px"
1083
1083
  },
1084
- children: [Z(Gt, {
1084
+ children: [Z(mn, {
1085
1085
  shrink: !0,
1086
1086
  children: d("fill.gradientStyle")
1087
- }), Q(Jt, {
1087
+ }), Q(_n, {
1088
1088
  label: d("fill.gradientStyle"),
1089
1089
  notched: !0,
1090
1090
  disabled: c,
1091
1091
  value: t.gradientType,
1092
1092
  onChange: (e) => f({ gradientType: e.target.value }),
1093
- children: [Z(Kt, {
1094
- value: z.GradientType.Linear,
1093
+ children: [Z(hn, {
1094
+ value: R.GradientType.Linear,
1095
1095
  children: d("fill.gradientLinear")
1096
- }), Z(Kt, {
1097
- value: z.GradientType.Path,
1096
+ }), Z(hn, {
1097
+ value: R.GradientType.Path,
1098
1098
  children: d("fill.gradientRadial")
1099
1099
  })]
1100
1100
  })]
1101
- }), Z(Yt, {
1101
+ }), Z(vn, {
1102
1102
  label: d("fill.gradientAngle"),
1103
1103
  type: "number",
1104
1104
  size: "small",
@@ -1125,12 +1125,12 @@ var xn = U((e) => {
1125
1125
  gap: .5,
1126
1126
  minWidth: 0
1127
1127
  },
1128
- children: [Z(Xt, {
1128
+ children: [Z(yn, {
1129
1129
  variant: "caption",
1130
1130
  component: "div",
1131
1131
  sx: { color: "text.secondary" },
1132
1132
  children: d("fill.gradientStops")
1133
- }), Z(bn, {
1133
+ }), Z(Hn, {
1134
1134
  stops: t.stops,
1135
1135
  onChange: (e) => f({ stops: e }),
1136
1136
  minStops: r,
@@ -1143,8 +1143,8 @@ var xn = U((e) => {
1143
1143
  })]
1144
1144
  });
1145
1145
  });
1146
- xn.displayName = "GradientEditor";
1147
- var Sn = (e) => {
1146
+ Un.displayName = "GradientEditor";
1147
+ var Wn = (e) => {
1148
1148
  let t = e.getStops();
1149
1149
  return {
1150
1150
  gradientType: e.getGradientType(),
@@ -1152,10 +1152,10 @@ var Sn = (e) => {
1152
1152
  stops: t.length >= 2 ? t.map((e) => ({
1153
1153
  offset: e.getOffset(),
1154
1154
  color: e.getColor().toString()
1155
- })) : [...Cn.stops]
1155
+ })) : [...Gn.stops]
1156
1156
  };
1157
- }, Cn = Object.freeze({
1158
- gradientType: z.GradientType.Linear,
1157
+ }, Gn = Object.freeze({
1158
+ gradientType: R.GradientType.Linear,
1159
1159
  angle: 90,
1160
1160
  stops: [{
1161
1161
  offset: 0,
@@ -1164,18 +1164,18 @@ var Sn = (e) => {
1164
1164
  offset: 1,
1165
1165
  color: "4472c4"
1166
1166
  }]
1167
- }), wn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.formulaBarPlacement.manageVisualViewport.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), Tn = () => Z(Ht, {}), En = $t("studio:eagerStudio", () => import("./DV6i9RQZfJiKtEaJ.mjs")), Dn = ({ error: e, onShown: t }) => (G(() => {
1167
+ }), Kn = /* @__PURE__ */ new Set(/* @__PURE__ */ "square.elevation.variant.title.onKeyDown.workbook.onWorkbookChange.onDocumentError.propsDocumentError.renderDocumentError.propsDocumentLoading.renderDocumentLoading.propsWorkbook.onWorkbookLoad.propsTaskPaneArea.renderTaskPaneArea.taskPaneSide.logo.onDirtyChange.propsDocumentTitle.showFormulaBar.propsFormulaBar.renderFormulaBar.formulaBarPlacement.manageVisualViewport.editable.showStatusBar.propsStatusBar.renderStatusBar.propsToolbar.renderToolbar.topLeft.topRight.muiTheme.tokens.cssBaseline.autoFocus.licenseKey.prefetch".split(".")), qn = Sn("studio:eagerStudio", () => import("./CYDqU_DnwM2dkv3O.mjs")), Jn = ({ error: e, onShown: t }) => (G(() => {
1168
1168
  t();
1169
- }, []), Z(Rt, { error: e })), On = U(Ot((e, t) => {
1170
- let { sx: n, style: r, className: i, licenseKey: a, renderDocumentLoading: o = ue, propsDocumentLoading: s, onWorkbookLoad: c, onDocumentError: l, ...u } = e, [d, f] = ((e) => {
1169
+ }, []), Z(sn, { error: e })), Yn = U(H((e, t) => {
1170
+ let { sx: n, style: i, className: a, licenseKey: o, renderDocumentLoading: s = r, propsDocumentLoading: c, onWorkbookLoad: l, onDocumentError: u, ...d } = e, [f, p] = ((e) => {
1171
1171
  let t = {}, n = {};
1172
- for (let r in e) (wn.has(r) ? t : n)[r] = e[r];
1172
+ for (let r in e) (Kn.has(r) ? t : n)[r] = e[r];
1173
1173
  return [t, n];
1174
- })(u);
1175
- a && tt.setLicenseKey(a);
1176
- let [p] = Ct(it.Mode, rt[it.Mode]), { themeMode: m } = wt({ mode: p ?? void 0 }), h = m === "dark", [g, _] = J(null), v = gt("studio", kt()), [y, b] = J(!1), x = K(() => !o || y ? null : Z(qt, {
1174
+ })(d);
1175
+ o && Ct.setLicenseKey(o);
1176
+ let [m] = Kt(Et.Mode, Tt[Et.Mode]), { themeMode: h } = qt({ mode: m ?? void 0 }), g = h === "dark", [_, v] = J(null), y = zt("studio", Zt()), [b, x] = J(!1), S = K(() => !s || b ? null : Z(gn, {
1177
1177
  style: {
1178
- backgroundColor: `var(--sxl-color-base-100, ${h ? "#121212" : "#fff"})`,
1178
+ backgroundColor: `var(--sxl-color-base-100, ${g ? "#121212" : "#fff"})`,
1179
1179
  inset: 0,
1180
1180
  width: "100%",
1181
1181
  height: "100%",
@@ -1185,20 +1185,23 @@ var Sn = (e) => {
1185
1185
  justifyContent: "center",
1186
1186
  zIndex: 9900
1187
1187
  },
1188
- children: o(s ?? {})
1188
+ children: Z(Rt, {
1189
+ render: s,
1190
+ props: c ?? {}
1191
+ })
1189
1192
  }), [
1190
- o,
1191
1193
  s,
1192
- h,
1193
- y
1194
- ]), S = K(() => _t(En.load, { renderError: (e) => Z(Dn, {
1194
+ c,
1195
+ g,
1196
+ b
1197
+ ]), C = K(() => Bt(qn.load, { renderError: ({ error: e }) => Z(Jn, {
1195
1198
  error: e,
1196
- onShown: () => b(!0)
1199
+ onShown: () => x(!0)
1197
1200
  }) }), []);
1198
1201
  return Q($, {
1199
- ref: _,
1200
- className: R("sheetxl-studio", v, i),
1201
- "data-sxl-theme-mode": m,
1202
+ ref: v,
1203
+ className: L("sheetxl-studio", y, a),
1204
+ "data-sxl-theme-mode": h,
1202
1205
  sx: n,
1203
1206
  style: {
1204
1207
  display: "flex",
@@ -1210,27 +1213,27 @@ var Sn = (e) => {
1210
1213
  minHeight: 0,
1211
1214
  position: "relative",
1212
1215
  overflow: "hidden",
1213
- ...r
1216
+ ...i
1214
1217
  },
1215
- ...f,
1216
- children: [Z(Et, {
1218
+ ...p,
1219
+ children: [Z(Yt, {
1217
1220
  fallback: null,
1218
- children: Z(S, {
1219
- ...d,
1220
- host: g,
1221
- scopeClass: v,
1222
- onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => b(!0))), c?.(e)),
1223
- onDocumentError: (e) => (b(!0), l?.(e)),
1224
- renderDocumentLoading: Tn,
1221
+ children: Z(C, {
1222
+ ...f,
1223
+ host: _,
1224
+ scopeClass: y,
1225
+ onWorkbookLoad: (e) => (requestAnimationFrame(() => requestAnimationFrame(() => x(!0))), l?.(e)),
1226
+ onDocumentError: (e) => (x(!0), u?.(e)),
1227
+ renderDocumentLoading: null,
1225
1228
  ref: t
1226
1229
  })
1227
- }), x]
1230
+ }), S]
1228
1231
  });
1229
1232
  }));
1230
- On.displayName = "Studio";
1231
- var kn = (e = {}) => {
1232
- let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, onWorkbookChange: a, onDirtyChange: o, documentTitle: s, confirmOnClose: c, keyboardGuard: l, ...u } = e, d = St(), [f, p] = J(null), [m, h] = J(!1), g = mt(f);
1233
- dt(g, m, {
1233
+ Yn.displayName = "Studio";
1234
+ var Xn = (e = {}) => {
1235
+ let { source: t, startWith: n, templatePath: r, onWorkbookLoad: i, onWorkbookChange: a, onDirtyChange: o, documentTitle: s, confirmOnClose: c, keyboardGuard: l, ...u } = e, d = Gt(), [f, p] = J(null), [m, h] = J(!1), g = It(f);
1236
+ Nt(g, m, {
1234
1237
  documentTitle: s,
1235
1238
  confirmOnClose: c,
1236
1239
  keyboardGuard: l
@@ -1265,7 +1268,7 @@ var kn = (e = {}) => {
1265
1268
  h(e), S.current?.(e);
1266
1269
  }, []);
1267
1270
  G(() => {
1268
- n === "welcome" && _ === void 0 && L(r);
1271
+ n === "welcome" && _ === void 0 && ye(r);
1269
1272
  }, [
1270
1273
  n,
1271
1274
  _,
@@ -1291,4 +1294,4 @@ var kn = (e = {}) => {
1291
1294
  onWorkbookLoad: E
1292
1295
  };
1293
1296
  };
1294
- export { ge as AnomaliesPlugin, rn as AppearanceCommandButton, ye as AutoColorPosition, D as BorderCommandButton, Oe as BorderPopupButton, Ee as BorderStylePopupButton, De as BorderTemplateIcon, s as CalculationOptionsCommandButton, p as CalculationRequiredStatus, m as CircularReferenceStatus, Te as ColorButton, Ce as ColorButtonList, je as ColorCommandButton, be as ColorPanel, xe as ColorPanelType, we as ColorPopupButton, O as ColumnMenu, Ze as CommentCard, y as CommentsPlugin, Cn as DEFAULT_GRADIENT, nt as DefaultTaskPaneRegistry, l as DefaultWorkbookToolbars, d as DocThemeCommandButton, ce as DocumentTitle, r as ExternalLinksPlugin, P as FORMAT_TASK_PANE_KEY, i as FORMULA_BAR_EDITOR_ID, Be as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, nn as FileCommandButton, pe as FillMenu, Pe as FontFamilyCommandButton, Ae as FontSizeCommandButton, E as FormatPlugin, a as FormulaBar, ze as FormulaField, Ge as FunctionArgumentsPanel, Je as FunctionSearchPanel, xn as GradientEditor, bn as GradientStopsBar, Xe as INSERT_FUNCTION_PAGE_CLASS, tn as InputField, c as InsertFunctionCommandPopupButton, qe as InsertFunctionOption, an as InsertFunctionSumCommandPopupButton, Ye as InsertFunctionWizard, He as ItemCard, Ue as ItemCardAction, We as ItemsSearchField, et as LicenseManager, he as MobileFormulaBar, b as MobileInputToolbar, t as NamedCollectionEditor, ne as NamedPlugin, te as NumberFormatCommandButton, ke as NumberFormatOption, g as NumberStats, cn as PATTERN_GALLERY, Qe as PasswordField, fe as PasteCommandButton, un as PatternPopupButton, sn as PatternSwatch, M as PresetCellStylesCommandButton, Ve as PresetChip, _e as PresetSlicerStylesCommandButton, Le as PresetTableStylesCommandButton, F as ProtectionPlugin, re as SheetTabMenu, ae as SheetZoomCommandButton, o as SheetZoomScale, oe as SheetsAllMenu, me as SlicerPlugin, I as StatusBar, On as Studio, Se as StyledStrokeIcon, e as TablePlugin, Fe as TableStyleCanvasPreview, Ie as TableStylePreview, ie as TextEffectsCommandButton, de as TextRotateGroupButton, _ as ThemeSelectButton, T as ThemeSelectPanel, C as ThemeSelectPopupButton, le as UndoRedoCommandButton, S as WalkingCopyCommandButton, j as WorkbookContextMenu, ee as WorkbookElement, at as WorkbookIO, N as WorkbookStrip, f as WorkbookToolbars, se as createStudioThemeCSS, u as createThemeFromMUITheme, Me as numberFormatCategoryLabel, Ne as numberFormatTypeLabel, Ke as optionsForPage, ln as patternLabel, x as registerSheetCommandGroups, A as registerStudioCommandCatalogs, ve as registerStudioCommandGroups, n as registerWorkbookCommandGroups, k as renderWorkbookSheetTab, v as renderWorkbookToolbars, st as setPrintExamplesOnLoad, Sn as toGradientValue, on as toPatternSlots, w as tokensToMuiOptions, h as useFormulaBarSession, lt as useModelListener, ut as useRangeListener, kn as useStudioApp };
1297
+ export { d as AnomaliesPlugin, En as AppearanceCommandButton, Ve as AutoColorPosition, i as BorderCommandButton, Xe as BorderPopupButton, Je as BorderStylePopupButton, Ye as BorderTemplateIcon, ge as CalculationOptionsCommandButton, f as CalculationRequiredStatus, k as CircularReferenceStatus, qe as ColorButton, Ge as ColorButtonList, $e as ColorCommandButton, He as ColorPanel, Ue as ColorPanelType, Ke as ColorPopupButton, c as ColumnMenu, yt as CommentCard, m as CommentsPlugin, Gn as DEFAULT_GRADIENT, wt as DefaultTaskPaneRegistry, y as DefaultWorkbookToolbars, je as DocThemeCommandButton, Ee as DocumentTitle, b as ExternalLinksPlugin, pe as FORMAT_TASK_PANE_KEY, u as FORMULA_BAR_EDITOR_ID, ct as FORMULA_FIELD_ABOVE_LABEL_HEIGHT, Tn as FileCommandButton, C as FillMenu, nt as FontFamilyCommandButton, Qe as FontSizeCommandButton, h as FormatPlugin, E as FormulaBar, st as FormulaField, pt as FunctionArgumentsPanel, gt as FunctionSearchPanel, Un as GradientEditor, Hn as GradientStopsBar, fe as INSERT_CELL_CONTROL_OPTIONS_KEY, vt as INSERT_FUNCTION_PAGE_CLASS, wn as InputField, P as InsertCellControlCommandButton, Se as InsertFunctionCommandPopupButton, ht as InsertFunctionOption, Dn as InsertFunctionSumCommandPopupButton, _t as InsertFunctionWizard, ut as ItemCard, dt as ItemCardAction, ft as ItemsSearchField, St as LicenseManager, Be as MobileFormulaBar, n as MobileInputToolbar, l as NamedCollectionEditor, D as NamedPlugin, S as NumberFormatCommandButton, Ze as NumberFormatOption, O as NumberStats, An as PATTERN_GALLERY, bt as PasswordField, ze as PasteCommandButton, Mn as PatternPopupButton, kn as PatternSwatch, Te as PendingStatus, Ne as PresetCellStylesCommandButton, lt as PresetChip, v as PresetSlicerStylesCommandButton, at as PresetTableStylesCommandButton, t as ProtectionPlugin, me as SheetTabMenu, Fe as SheetZoomCommandButton, A as SheetZoomScale, _ as SheetsAllMenu, g as SlicerPlugin, p as StatusBar, Yn as Studio, We as StyledStrokeIcon, M as TablePlugin, rt as TableStyleCanvasPreview, it as TableStylePreview, N as TableToolbar, te as TextEffectsCommandButton, w as TextRotateGroupButton, ce as ThemeSelectButton, ue as ThemeSelectPanel, ve as ThemeSelectPopupButton, Le as UndoRedoCommandButton, F as WalkingCopyCommandButton, o as WorkbookContextMenu, de as WorkbookElement, Dt as WorkbookIO, a as WorkbookStrip, e as WorkbookToolbars, ie as createStudioThemeCSS, oe as createThemeFromMUITheme, xe as defaultRenderColumnMenu, De as defaultRenderCommentCard, ne as defaultRenderContextMenu, he as defaultRenderFillMenu, Ae as defaultRenderFormulaBar, re as defaultRenderHyperlinkCard, ae as defaultRenderMovableMenu, Ce as defaultRenderOutlineButton, _e as defaultRenderOutlineLevelButton, le as defaultRenderSheetTab, se as defaultRenderSheetTabMenu, j as defaultRenderSheetsAll, Me as defaultRenderStatusBar, Re as defaultRenderTableToolbar, ee as defaultRenderTabs, I as defaultRenderToolbar, Ie as defaultRenderTooltip, x as defaultRenderWorkbookError, r as defaultRenderWorkbookLoading, Pe as defaultRenderWorksheet, et as numberFormatCategoryLabel, tt as numberFormatTypeLabel, mt as optionsForPage, jn as patternLabel, Oe as registerSheetCommandGroups, s as registerStudioCommandCatalogs, ke as registerStudioCommandGroups, be as registerWorkbookCommandGroups, kt as setPrintExamplesOnLoad, Wn as toGradientValue, On as toPatternSlots, we as tokensToMuiOptions, T as useFormulaBarSession, jt as useModelListener, Mt as useRangeListener, Xn as useStudioApp };