@sheetxl/studio-mui 0.4.13 → 0.4.15

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 (123) hide show
  1. package/browser/cjs/BNHQPLsVdLmkPgyG.cjs +6 -0
  2. package/browser/cjs/BUU_z9x81l1Qnv1t.cjs +6 -0
  3. package/browser/cjs/BX8hkPMsPd9PSv0Z.cjs +161 -0
  4. package/browser/cjs/BknKSPzyXctJohHb.cjs +6 -0
  5. package/browser/cjs/Blfxp7Ec3Yjx3gNU.cjs +6 -0
  6. package/browser/cjs/BqFEcpPZjpwULlZk.cjs +6 -0
  7. package/browser/cjs/C-pPuqiWtgMU4NgZ.cjs +15 -0
  8. package/browser/cjs/C9eqE9OnPkiI-5Zd.cjs +7 -0
  9. package/browser/cjs/CB6DGRkCA3BLDEFr.cjs +6 -0
  10. package/browser/cjs/CO4rZgb0ObTZh6NO.cjs +6 -0
  11. package/browser/cjs/CU900NraHPDHMGJt.cjs +18 -0
  12. package/browser/cjs/Cpo-h2pMpScosT7r.cjs +6 -0
  13. package/browser/cjs/Cq2L49XjSKiIAsND.cjs +11 -0
  14. package/browser/cjs/D9X3UXVH6b_NJFeo.cjs +12 -0
  15. package/browser/cjs/DZJO-_8PnMFRZMpg.cjs +6 -0
  16. package/browser/cjs/DmCCEKhedSOg163M.cjs +6 -0
  17. package/browser/cjs/DpZ5HlIMG95q2uIe.cjs +96 -0
  18. package/browser/cjs/DwLcsRl4-LumKl6l.cjs +42 -0
  19. package/browser/cjs/Dy2vYVhrEqTHdzfD.cjs +11 -0
  20. package/browser/cjs/Gj8MlEhOCg_o7idM.cjs +6 -0
  21. package/browser/cjs/IllnWqWVClWDW1ot.cjs +6 -0
  22. package/browser/cjs/J3xq71qTV9LqCUzu.cjs +145 -0
  23. package/browser/cjs/X9sJMKafafBPpNpK.cjs +16 -0
  24. package/browser/cjs/index.cjs +4 -10
  25. package/browser/cjs/klnhoS0cqBpCC5fo.cjs +7 -0
  26. package/browser/esm/BQNKKCtIvfOMph3T.mjs +2250 -0
  27. package/browser/esm/BiQfhG8JMHeWuT63.mjs +1672 -0
  28. package/browser/esm/Btyp6us1Vzz3ZfHk.mjs +13391 -0
  29. package/browser/esm/Bvr3QlWdnOSnskWL.mjs +392 -0
  30. package/browser/esm/CYpvNksOw1PyhLpA.mjs +52 -0
  31. package/browser/esm/CcZUaOkODU7h0onP.mjs +25 -0
  32. package/browser/esm/CnXUhdLB8blNUvSr.mjs +84 -0
  33. package/browser/esm/CwjVlrJJqEGZX6q2.mjs +52 -0
  34. package/browser/esm/D0v3VaJtA3LjHpWR.mjs +20816 -0
  35. package/browser/esm/D4DvAg7aaaWl0TPV.mjs +1467 -0
  36. package/browser/esm/DAZNeiMI9sOM-xd8.mjs +1366 -0
  37. package/browser/esm/DGUm6rEOgO8WrVtT.mjs +23 -0
  38. package/browser/esm/DGoy2q9hDB7kive6.mjs +44 -0
  39. package/browser/esm/DSCE3cCea5d5Ip-N.mjs +1703 -0
  40. package/browser/esm/DrTLuc1VQWQfDAej.mjs +59 -0
  41. package/browser/esm/DuzycndVID_eag8V.mjs +1352 -0
  42. package/browser/esm/FZoe4QJ2ecSD1pjB.mjs +43 -0
  43. package/browser/esm/HI5oLhcn8kfiky1k.mjs +3803 -0
  44. package/browser/esm/T2YlNqs-LGJBm08C.mjs +46 -0
  45. package/browser/esm/UCJVaz3qX1u53mgI.mjs +640 -0
  46. package/browser/esm/UWejV3W_nMwWqnxY.mjs +48 -0
  47. package/browser/esm/VpP_qw0lmgCaHdHR.mjs +153 -0
  48. package/browser/esm/YS19x3zzRUKQqXu_.mjs +2410 -0
  49. package/browser/esm/index.mjs +84 -8
  50. package/browser/esm/jqoS02EUPE2WEY1t.mjs +424 -0
  51. package/licenses/dependencies.txt +6 -6
  52. package/node/esm/{BO6cKQ_efCO2YTyW.mjs → 3htalFC0z5xbRnmH.mjs} +1 -1
  53. package/node/esm/{DKho7vhsoPr3NuMl.mjs → B-pzKiKMkbB9Es-9.mjs} +1 -1
  54. package/node/esm/{BZ8BYhQCAcmtqV_l.mjs → BFxzGj5sPFwrklFi.mjs} +3 -3
  55. package/node/esm/{DvKUmpzXvELOJbAq.mjs → BGYSS0lvjSMTtreq.mjs} +1 -1
  56. package/node/esm/{BxJ8RdpZW49RjtqB.mjs → BGZpuIQG7RsGY_HH.mjs} +1 -1
  57. package/node/esm/{BEWR_Oinb-P8gswu.mjs → BTnlaEz7yZqa7QHP.mjs} +1 -1
  58. package/node/esm/{DW7i1Qv4kcmwOTvD.mjs → BfUEFSGuAZXw2fvO.mjs} +1 -1
  59. package/node/esm/{BqcpB9wQAjq0QKR1.mjs → BiJ5CZBAxg4-QDHh.mjs} +1 -1
  60. package/node/esm/{nmVSg6Qpwj9V1oA0.mjs → Bnkt1wiWaLEq8xla.mjs} +1 -1
  61. package/node/esm/{-mcJjjdCwl8lh-eg.mjs → BwbOSLs2gcxOaV0i.mjs} +1 -1
  62. package/node/esm/{RpUFmc_WL9-PMYhx.mjs → CAWLE2N0nA-FjUkH.mjs} +1 -1
  63. package/node/esm/{uAAAbPd_k3kmgO5f.mjs → CSnI8PJEgxEQEj1B.mjs} +1 -1
  64. package/node/esm/{VnhwCsWDUmo5-K5N.mjs → CvYpf-Km1Rvg15q4.mjs} +1 -1
  65. package/node/esm/{BqsJ9biuGwjU2xgY.mjs → CxhzSvAqksnasp3g.mjs} +1 -1
  66. package/node/esm/{CdLN7JEivNllaQ6w.mjs → DCrdGvQ_vOB2o-ca.mjs} +1 -1
  67. package/node/esm/{CfO2Xok0ch8kylzr.mjs → DhGXQOOW9FBpgCqI.mjs} +1 -1
  68. package/node/esm/{CsPaYpANdd8Rpel-.mjs → DkhnVkboeZsdMJxH.mjs} +1 -1
  69. package/node/esm/{4WfRn0Og_yApP_Q8.mjs → DnMRqYWKDGXlNm42.mjs} +1 -1
  70. package/node/esm/{CQ1mTChRFSKFU2O1.mjs → DsS5U5rJ5tNVEGXs.mjs} +1 -1
  71. package/node/esm/{CcOchU9ZOmdG4JFr.mjs → DuyHq4Fs-_RQkwF_.mjs} +1 -1
  72. package/node/esm/{o-JVx3HFrRjVjKmi.mjs → FzVegyt0upYkLobF.mjs} +2 -2
  73. package/node/esm/{BPG7zfcXK20urqr_.mjs → imk332niB0MxWuGl.mjs} +5 -5
  74. package/node/esm/index.mjs +11 -11
  75. package/package.json +8 -8
  76. package/browser/cjs/34mwIxXhbXYv5xsc.cjs +0 -7
  77. package/browser/cjs/3OIgTi54FC0IBzyK.cjs +0 -7
  78. package/browser/cjs/B-Aq2h8aSDrc_0iZ.cjs +0 -7
  79. package/browser/cjs/BDhT8qcsUqUILki7.cjs +0 -7
  80. package/browser/cjs/BKJsMQHem8u-jMiR.cjs +0 -7
  81. package/browser/cjs/BO7LEbRChpLg-xKv.cjs +0 -7
  82. package/browser/cjs/BZR-qDCIYdiDtD-U.cjs +0 -7
  83. package/browser/cjs/BfE1_C2EpBrmB7bt.cjs +0 -7
  84. package/browser/cjs/Brij8vl9GntSQBer.cjs +0 -7
  85. package/browser/cjs/C61z_849Y2mg6eYL.cjs +0 -7
  86. package/browser/cjs/CaKjImRkCm3-QSAI.cjs +0 -7
  87. package/browser/cjs/Cw7iXqLfwZMRGb3J.cjs +0 -7
  88. package/browser/cjs/CwwItA5xvSx0QgDn.cjs +0 -7
  89. package/browser/cjs/DPTcPoZ3PiOOW7lp.cjs +0 -7
  90. package/browser/cjs/DhmN913n5MBAZsij.cjs +0 -7
  91. package/browser/cjs/DhoDW4ohnPkwiE_o.cjs +0 -7
  92. package/browser/cjs/Dj_PjsvImW3tjX0i.cjs +0 -7
  93. package/browser/cjs/Dl4WPIJFTvpCXOs3.cjs +0 -7
  94. package/browser/cjs/QCtfu4qn-ovJa_wL.cjs +0 -7
  95. package/browser/cjs/VQ4Cuzvkmtel1iE_.cjs +0 -7
  96. package/browser/cjs/VTMW1yjPzEJGyBmh.cjs +0 -7
  97. package/browser/cjs/hY59MepmKCIoN0hM.cjs +0 -7
  98. package/browser/cjs/pKp_fof7vGupYAM2.cjs +0 -7
  99. package/browser/cjs/t-9gaLqrOnGiw-3T.cjs +0 -7
  100. package/browser/esm/5U4XS5qxb3oJ33qK.mjs +0 -7
  101. package/browser/esm/BPMMuKIe5xb3-D8V.mjs +0 -7
  102. package/browser/esm/BXartMrqQuAXu0Qz.mjs +0 -7
  103. package/browser/esm/Bc8N72T3wtTApPEG.mjs +0 -7
  104. package/browser/esm/BjoQXBQuDry5Fgc_.mjs +0 -7
  105. package/browser/esm/BlUq84tk9v01SQgx.mjs +0 -7
  106. package/browser/esm/C5iuJTeAtknnUEIE.mjs +0 -7
  107. package/browser/esm/CN67iG3xuQhXAPad.mjs +0 -7
  108. package/browser/esm/CQgUOqCEwTc61uuT.mjs +0 -7
  109. package/browser/esm/Cq1DtQcbtmTtKOc4.mjs +0 -7
  110. package/browser/esm/Cqz35dsi-gZArS0S.mjs +0 -7
  111. package/browser/esm/D9wzPAaUYfW5yKFN.mjs +0 -7
  112. package/browser/esm/DRRzJ8Ep6_Tyd6ne.mjs +0 -7
  113. package/browser/esm/DSGJzNzS8OeMxUW1.mjs +0 -7
  114. package/browser/esm/DSIpyed_o2mrjd0r.mjs +0 -7
  115. package/browser/esm/DWgrVUwlK4kwFJn-.mjs +0 -7
  116. package/browser/esm/Dr6QLJSwckbF9K_u.mjs +0 -7
  117. package/browser/esm/DuSF-rjIFFvyCoo8.mjs +0 -7
  118. package/browser/esm/EiBc8VBUeU8VXEhw.mjs +0 -7
  119. package/browser/esm/R3CPiIXdp_rdc-Bw.mjs +0 -7
  120. package/browser/esm/eXqnYk6V-QI6pGI5.mjs +0 -7
  121. package/browser/esm/hdx26DrfopUuM4j1.mjs +0 -7
  122. package/browser/esm/oXfsh9SiDjQuu2ZE.mjs +0 -7
  123. package/browser/esm/zBIGDTI8z3bRbFxO.mjs +0 -7
@@ -0,0 +1,48 @@
1
+ import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
+ import { memo as E, useMemo as D, useState as m, useCallback as F } from "react";
3
+ import { Box as S, FormControl as O, TextField as P } from "@mui/material";
4
+ import { T as f, D as U, a as l } from "./D0v3VaJtA3LjHpWR.mjs";
5
+ import { alpha as p } from "@mui/system";
6
+ /**
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
8
+ *
9
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
+ * License: The license can be found at https://www.sheetxl.com/license.
11
+ */
12
+ const V = ["Ok", "Cancel"], Q = E((b) => {
13
+ const { initialHyperlink: t = null, initialDisplay: H = null, onUpdateHyperlink: x, context: s, onOption: h, onValidateOption: r, onDone: d, options: y = V, defaultOption: c = y?.[0], cancelOption: i = "Cancel", sx: I, ...v } = b, w = D(() => (t ?? s?.()?.getHyperlink()) !== null, []), T = D(() => {
14
+ let n = null, a = null;
15
+ t && (typeof t == "string" ? a = t : n = t);
16
+ const g = n ?? s?.()?.getHyperlink();
17
+ return { address: a ?? g?.getAddress() ?? "", textToDisplay: g?.getDisplayText() ?? "" };
18
+ }, [t, s]), [e, M] = m(T.address), [u, B] = m(() => {
19
+ const n = s?.().toTextUnformatted() ?? H;
20
+ return n === T.address ? "" : n;
21
+ }), [$, k] = m(!1), L = F((n) => {
22
+ B(n.target.value);
23
+ }, []), C = F(async (n, a) => null, []), W = f(async (n) => {
24
+ n !== i && x?.(e === "" ? null : { address: e }, u), h?.(n, n === i, n === c), d?.();
25
+ }, [e, u, x, d, h, c, i]), j = f((n) => {
26
+ M(n.target.value), C(n.target.value, null);
27
+ }, [r]), z = f(async (n) => {
28
+ let a = await Promise.resolve(r?.(n));
29
+ try {
30
+ a !== !1 && (a = await C(e, n));
31
+ } catch {
32
+ }
33
+ return a ?? !0;
34
+ }, [r]);
35
+ return o(U, { title: (w ? "Edit" : "Insert") + " Link", options: y, onDone: d, onOption: (n) => W(n), onValidateOption: z, defaultOption: c, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...I }, ...v, children: A(S, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: [o(O, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(P, { label: "Address", placeholder: "Enter a url or cell reference.", onFocus: (n) => {
36
+ $ || n.target?.select(), k(!0);
37
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: e, onChange: j, onContextMenu: (n) => {
38
+ n.stopPropagation();
39
+ } }) }), o(O, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(P, { label: "Display Text", placeholder: e?.startsWith("#") ? e.substring(1) : e, onFocus: () => {
40
+ k(!0);
41
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${p("#fff", l(5))}, ${p("#fff", l(5))})` } } }, value: u, onChange: L, onContextMenu: (n) => {
42
+ n.stopPropagation();
43
+ } }) })] }) });
44
+ });
45
+ export {
46
+ Q as HyperlinkDialog,
47
+ Q as default
48
+ };
@@ -0,0 +1,153 @@
1
+ import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
+ import { memo as ie, useRef as C, useState as b, useEffect as D, useLayoutEffect as ce, useMemo as pe } from "react";
3
+ import { DialogContent as de, Box as O, TextField as Z, InputAdornment as ue, Collapse as _, MenuItem as fe, FormControl as ge, InputLabel as me, Select as xe } from "@mui/material";
4
+ import { ArrowBack as he, ArrowUpward as Oe, ArrowForward as Ce, ArrowDownward as ye } from "@mui/icons-material";
5
+ import { ICell as c, IRange as R } from "@sheetxl/sdk";
6
+ import { T as W, e as be, b as Te, j as ve, d as m, w as x, I as Re, f as y, h as ke, F as we, $ as Fe, W as Ie, a as k, k as Se, B as Ee, P as De } from "./D0v3VaJtA3LjHpWR.mjs";
7
+ import { alpha as w } from "@mui/system";
8
+ /**
9
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.15
10
+ *
11
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
+ * License: The license can be found at https://www.sheetxl.com/license.
13
+ */
14
+ const L = ie((F) => {
15
+ const { label: h, value: a, options: s, onSelect: d, tabIndex: T = 0, ...P } = F, [A, v] = b(() => ne(a, s));
16
+ D(() => {
17
+ v(ne(a, s));
18
+ }, [a, s]);
19
+ const K = W((u) => {
20
+ v(u.target.value), d?.(s[u.target.value]);
21
+ }, [d, s]), l = pe(() => Object.keys(s).map((u) => i(fe, { value: u, children: u }, u)), [s]);
22
+ return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: A, label: h, onChange: K, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...P, children: l })] });
23
+ }), ee = { Workbook: "workbook", Sheet: "sheet" }, te = { enter: 140, exit: 140 }, oe = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...oe };
24
+ delete se.Values;
25
+ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (F, h) => {
26
+ const a = Object.keys(h);
27
+ for (let s = 0; s < a.length; s++) {
28
+ const d = a[s];
29
+ if (h[d] === F) return d;
30
+ }
31
+ }, je = ie((F) => {
32
+ const { replace: h = !1, findText: a, replaceText: s, findOptions: d, replaceOptions: T, title: P, onHide: A, onFindOrReplace: v, ...K } = F, l = C(null), u = C(null), j = C(null), V = C(null), N = C(null), H = C(null), z = (e, t) => {
33
+ t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
34
+ }, [U, E] = b(!1), [B, le] = b(!1), [f, M] = b(h), [X, $] = b(!1), [G, q] = b(!1), [o, r] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), I = W(async (e, t, n, S) => {
35
+ if (!v) return;
36
+ const g = { ...o };
37
+ g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
38
+ const ae = await v({ autoFocus: S, ...g });
39
+ $(ae === 0);
40
+ }, [o, v]);
41
+ D(() => {
42
+ $(!1);
43
+ }, [o, B, f]);
44
+ const J = W((e, t) => {
45
+ if (e.keyCode === be.Enter) {
46
+ if (!o.findText) return;
47
+ let n = !0, S = !1;
48
+ e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), z(e, S ? H.current : N.current)) : z(e, n ? V.current : j.current), I(n, t, S, !1);
49
+ }
50
+ }, [o]), Q = C(null);
51
+ ce(() => {
52
+ r((e) => {
53
+ const t = { ...e };
54
+ t.findText = a && a.length > 0 ? a : e.findText ?? "", E(!0), s !== void 0 && (t.replaceText = s), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), T && (t.replaceOptions = { ...t.replaceOptions, ...T }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
55
+ const n = !(!T && s === void 0);
56
+ return n && M(n), t;
57
+ }), G || Q.current?.focus();
58
+ }, [a, s, d, T]), D(() => {
59
+ f ? (o.findOptions.fields[0], c.Content.Values) : E(!0);
60
+ }, [f]), D(() => {
61
+ if (U && l.current && o.findText === l.current.value) return l.current === document.activeElement || l.current.contains(document.activeElement) ? (l.current?.select(), void E(!1)) : void l.current.addEventListener("focus", () => {
62
+ l.current?.select(), E(!1);
63
+ }, { once: !0 });
64
+ }, [U, o]);
65
+ const [re, { width: Y }] = Te();
66
+ return i(ve, { ref: Q, title: P ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: A, onFocus: () => q(!0), onBlur: () => {
67
+ q(!1), $(!1);
68
+ }, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
69
+ if (e.key === "h" && e.ctrlKey) M(!0), l.current?.contains(document.activeElement) && u.current?.focus();
70
+ else if (e.key === "f" && e.ctrlKey) l.current?.focus();
71
+ else if (e.key === "c" && e.altKey) r((t) => {
72
+ const n = { ...t };
73
+ return n.findOptions.matchCase = !t.findOptions.matchCase, n;
74
+ });
75
+ else if (e.key === "e" && e.altKey) r((t) => {
76
+ const n = { ...t };
77
+ return n.findOptions.matchEntireCell = !t.findOptions.matchEntireCell, n;
78
+ });
79
+ else {
80
+ if (e.key !== "r" || !e.altKey) return;
81
+ r((t) => {
82
+ const n = { ...t };
83
+ return n.findOptions.useRegex = !t.findOptions.useRegex, n;
84
+ });
85
+ }
86
+ e.preventDefault();
87
+ }, children: [p(O, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e) => e.spacing(0.25), paddingTop: "3px" }, children: [i(m, { selected: B, onSelectToggle: (e) => {
88
+ le(e);
89
+ }, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(Re, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
90
+ M(e);
91
+ }, preventFocus: !0, label: "Toggle Replace", icon: x(i(ke, {})), shortcut: { key: f ? "F" : "H", modifiers: [y.Ctrl] } })] }), p(O, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [i(Z, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Y > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, inputProps: { draggable: !1, ref: l, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(ue, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: p(O, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [i(m, { selected: o.findOptions.matchCase, onSelectToggle: (e) => {
92
+ r((t) => {
93
+ const n = { ...t };
94
+ return n.findOptions.matchCase = e, n;
95
+ });
96
+ }, label: "Match Case", shortcut: { key: "C", modifiers: [y.Alt] }, icon: x(i(we, {})) }), i(m, { selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
97
+ r((t) => {
98
+ const n = { ...t };
99
+ return n.findOptions.matchEntireCell = e, n;
100
+ });
101
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(Fe, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
102
+ r((t) => {
103
+ const n = { ...t };
104
+ return n.findOptions.useRegex = e, n;
105
+ });
106
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(Ie, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => X ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => X ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
107
+ r((t) => {
108
+ const n = { ...t };
109
+ return n.findText = e.target.value, n;
110
+ });
111
+ }, onKeyDown: (e) => J(e, !1), onContextMenu: (e) => {
112
+ e.stopPropagation();
113
+ } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
114
+ I(!1, !1);
115
+ }, touchRippleRef: j, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
116
+ I(!0, !1);
117
+ }, touchRippleRef: V, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
118
+ l.current?.focus();
119
+ }, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(Z, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
120
+ r((t) => {
121
+ const n = { ...t };
122
+ return n.replaceText = e.target.value, n;
123
+ });
124
+ }, onKeyDown: (e) => J(e, !0), onContextMenu: (e) => {
125
+ e.stopPropagation();
126
+ } }), i(m, { onSelectToggle: (e) => {
127
+ I(!0, !0);
128
+ }, touchRippleRef: N, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(Se, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
129
+ I(!0, !0, !0);
130
+ }, touchRippleRef: H, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Ee, {})), disabled: !o.findText })] }) })] })] }), i(_, { in: B, timeout: te, onExit: () => {
131
+ l.current?.focus();
132
+ }, children: p(O, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [i(De, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Y >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(L, { label: "Within", value: o.scope, options: ee, onSelect: (e) => {
133
+ r((t) => {
134
+ const n = { ...t };
135
+ return n.scope = e, n;
136
+ });
137
+ } }), i(L, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Pe, onSelect: (e) => {
138
+ r((t) => {
139
+ const n = { ...t };
140
+ return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
141
+ });
142
+ } }), i(L, { label: "Look in", value: f && o.findOptions.fields?.[0] === c.Content.Values ? c.Content.Formulas : o.findOptions.fields?.[0], options: f ? se : oe, onSelect: (e) => {
143
+ r((t) => {
144
+ const n = { ...t };
145
+ return n.findOptions.fields = [e], n;
146
+ });
147
+ } })] })] }) })] }) });
148
+ });
149
+ export {
150
+ je as FindReplaceWindow,
151
+ ee as ScopeOptions,
152
+ je as default
153
+ };