@sheetxl/studio-mui 0.4.12 → 0.4.14

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 (127) hide show
  1. package/browser/cjs/-zKDSjn55SCvCwk8.cjs +6 -0
  2. package/browser/cjs/AoLA7tfyPshG_mKt.cjs +6 -0
  3. package/browser/cjs/As7uhSEgY8VJ3I6f.cjs +90 -0
  4. package/browser/cjs/B1Eaz6PFZAmrWiyY.cjs +6 -0
  5. package/browser/cjs/B8ZfZXhvW4sSKKZs.cjs +42 -0
  6. package/browser/cjs/BAfNSJo7fktzFVJd.cjs +11 -0
  7. package/browser/cjs/BH0v7IIykugrFxaT.cjs +6 -0
  8. package/browser/cjs/BUwmvmcdC0xBQ97L.cjs +145 -0
  9. package/browser/cjs/BiBEmbWoJHdOB1li.cjs +12 -0
  10. package/browser/cjs/BkVtS9FZxWYNmrbU.cjs +6 -0
  11. package/browser/cjs/Bmifo5y7ZMJolUTY.cjs +15 -0
  12. package/browser/cjs/BpLu9-spCLcAFdwd.cjs +6 -0
  13. package/browser/cjs/BqOg0z4HGrbNaL1k.cjs +6 -0
  14. package/browser/cjs/C6Fk0jGWAOED60yf.cjs +161 -0
  15. package/browser/cjs/CRvxop0QcZL23Akb.cjs +6 -0
  16. package/browser/cjs/CS5USjyVh8DwPSri.cjs +7 -0
  17. package/browser/cjs/Chz3K3Qt8M2FNJwI.cjs +12 -0
  18. package/browser/cjs/D2gy3JDrJyGAMqsl.cjs +7 -0
  19. package/browser/cjs/DD8-ZSDUkRqk7l6y.cjs +11 -0
  20. package/browser/cjs/DNL88d5PGwk92LeD.cjs +6 -0
  21. package/browser/cjs/DTHMIHonHaHeJ0o1.cjs +18 -0
  22. package/browser/cjs/DZ8WTAzF6V2Tw1tW.cjs +6 -0
  23. package/browser/cjs/W7LR70ajtjR9Lmvl.cjs +6 -0
  24. package/browser/cjs/XGmQ2kUHM2qQkG1r.cjs +16 -0
  25. package/browser/cjs/d2jsgbPdf35xArnn.cjs +6 -0
  26. package/browser/cjs/index.cjs +4 -10
  27. package/browser/esm/4fzdzYhVH9eIXv-E.mjs +2410 -0
  28. package/browser/esm/B-rZWEIXFvB2W_mP.mjs +84 -0
  29. package/browser/esm/C4ORm_Up6Zxt92F_.mjs +1672 -0
  30. package/browser/esm/C5OCdRxcYIZViFzN.mjs +13391 -0
  31. package/browser/esm/C8po4rRYJ8127Rgb.mjs +44 -0
  32. package/browser/esm/CB7vnn7AtsGma4R6.mjs +3803 -0
  33. package/browser/esm/CBQZHZlKIiEz186r.mjs +2251 -0
  34. package/browser/esm/CCwOCTrf9Bira1-Y.mjs +424 -0
  35. package/browser/esm/CHovQU_R4AuKULmT.mjs +392 -0
  36. package/browser/esm/CIH3ADFJJmUiyA8p.mjs +864 -0
  37. package/browser/esm/CQiALmsycGGLFj1o.mjs +25 -0
  38. package/browser/esm/CS6uJp7phBvUmos6.mjs +1467 -0
  39. package/browser/esm/CSKgHJSTMvOEe2RH.mjs +19981 -0
  40. package/browser/esm/CYG1vk4AMMwqsul7.mjs +1366 -0
  41. package/browser/esm/ClmlhDf-0RC5GFV3.mjs +52 -0
  42. package/browser/esm/CmAnpd_SOxQuTQRL.mjs +1703 -0
  43. package/browser/esm/DWy4L2usallW0WdU.mjs +153 -0
  44. package/browser/esm/Dc1PmtvbeqsIQHq6.mjs +48 -0
  45. package/browser/esm/DgKsUQMTThBdEQds.mjs +59 -0
  46. package/browser/esm/Dk00kGaRJxiitO5-.mjs +23 -0
  47. package/browser/esm/FdSIHwC_mNRZpcgJ.mjs +43 -0
  48. package/browser/esm/Ks946bL2vmd4m743.mjs +52 -0
  49. package/browser/esm/TlZOl3Gt-d0Nc2a8.mjs +46 -0
  50. package/browser/esm/_FvE2-K7MOW_qWVS.mjs +1352 -0
  51. package/browser/esm/index.mjs +83 -8
  52. package/browser/esm/vgS9ixFRuZrPx6vq.mjs +640 -0
  53. package/licenses/dependencies.txt +134 -134
  54. package/node/esm/{B3M2CzPvK2oKOfg5.mjs → 762kbapO408ejsVC.mjs} +2 -2
  55. package/node/esm/{CryVonGjJnmo2dE_.mjs → B0gJGF9-J3L5yBEW.mjs} +5 -5
  56. package/node/esm/{CBGAl2mih9mHDt5w.mjs → BR9YJuwMP9nTMBE-.mjs} +1 -1
  57. package/node/esm/{D1xD8cOQDGcbjIlG.mjs → BTNBRzW8ZZbJY4GL.mjs} +1 -1
  58. package/node/esm/{C2P_M1JNT_WZZN3H.mjs → Bgtg4I8EL4M776SY.mjs} +8 -8
  59. package/node/esm/{DUfB1ollhqU-JIk5.mjs → Bi5br6yrYZqhLEiY.mjs} +4 -4
  60. package/node/esm/{M3UB6IrhVERZziiJ.mjs → CCygt4zw40-jO57G.mjs} +2 -2
  61. package/node/esm/{m8fyd2BoYkTOJlc1.mjs → CTpkd2r1aBS5d0yl.mjs} +1 -1
  62. package/node/esm/{kHsChOtl8GUkzj5Q.mjs → CY1qC_sXGD6av4yO.mjs} +2 -2
  63. package/node/esm/{Dx2vq1Hdt4pqmOF-.mjs → CZoMFCKJudiTl_Tf.mjs} +2 -2
  64. package/node/esm/{kIQFLB3nmEJdn_OT.mjs → CzWLA_IQgFbENkMq.mjs} +1 -1
  65. package/node/esm/{BJY8yNMmN_yyRtIG.mjs → D1GfRQ1jyFg-wmLD.mjs} +1 -1
  66. package/node/esm/{D1C8ifsmXsypL6pp.mjs → DC2dPUCWVgxEKzaS.mjs} +13 -13
  67. package/node/esm/{Bj8uU2shfkvN4LnE.mjs → DOUP6ynjlQE-UEJs.mjs} +6 -6
  68. package/node/esm/{BIRLX0-9t62Lqats.mjs → DUqIYzvmrCd67Dpx.mjs} +2 -2
  69. package/node/esm/{CVGxETc4rIE1gNAH.mjs → DWCxF-chq5dVi363.mjs} +38 -38
  70. package/node/esm/{Bt5y5wVaVAVjwHBl.mjs → DghPySv_2Ts78czJ.mjs} +1 -1
  71. package/node/esm/{PF5CCBvapZxEzc7k.mjs → DrujinnhlNDCosqb.mjs} +1 -1
  72. package/node/esm/DsD7O5j2cXyaECkB.mjs +313 -0
  73. package/node/esm/{wdtYNTNCynMMS4_P.mjs → VHY56h6xqQcPba6u.mjs} +1 -1
  74. package/node/esm/{h1y2hBFecTqRgUa-.mjs → dlEq3vDkIERtTn7Y.mjs} +25 -25
  75. package/node/esm/index.mjs +4999 -5264
  76. package/node/esm/{CKtVB9hMCfabQMxC.mjs → yB8OTWhDomxUy_SX.mjs} +2 -2
  77. package/node/esm/{bv_GA6NGCT0sJaXy.mjs → yP0whgIwVZApluLw.mjs} +2 -2
  78. package/package.json +8 -8
  79. package/types/index.d.ts +0 -11
  80. package/browser/cjs/B7qLzxylqOaybl3H.cjs +0 -7
  81. package/browser/cjs/BNGixOiIsu8jZlvn.cjs +0 -7
  82. package/browser/cjs/BUYxt7KgFkIIIMyc.cjs +0 -7
  83. package/browser/cjs/Bk6VhhWsnCRyBu2F.cjs +0 -7
  84. package/browser/cjs/BpiMMYip132x0r1O.cjs +0 -7
  85. package/browser/cjs/ByZ_Q-J7jgF7AoWR.cjs +0 -7
  86. package/browser/cjs/BzD7LV8VmFKLAJyW.cjs +0 -7
  87. package/browser/cjs/C6_zcNM0Efa11KEE.cjs +0 -7
  88. package/browser/cjs/C8Azx_ZaQa4WvAtR.cjs +0 -7
  89. package/browser/cjs/CITvaW7L_iZfIyAN.cjs +0 -7
  90. package/browser/cjs/CNDDYOoLCrGsUMYL.cjs +0 -7
  91. package/browser/cjs/CYbeY5OVZDqHGSOm.cjs +0 -7
  92. package/browser/cjs/C_SgucbRn-v9IkNO.cjs +0 -7
  93. package/browser/cjs/CeTd2nFbE5yFzf7T.cjs +0 -7
  94. package/browser/cjs/Cfe7IbPNI8-CgoDI.cjs +0 -7
  95. package/browser/cjs/Ctyk-ajkSsTDJuvY.cjs +0 -7
  96. package/browser/cjs/DBhTQLbjAtU-A1YA.cjs +0 -7
  97. package/browser/cjs/Dc2rbOjtcmSIm8D4.cjs +0 -7
  98. package/browser/cjs/DcsvUmoS8zGG5GB8.cjs +0 -7
  99. package/browser/cjs/DqAlQQIZIyF7HMib.cjs +0 -7
  100. package/browser/cjs/DuwawlAm4aRBNTBm.cjs +0 -7
  101. package/browser/cjs/Dx9UUJj-yeubDjm4.cjs +0 -7
  102. package/browser/cjs/IC19hB4Ntvw1158j.cjs +0 -7
  103. package/browser/cjs/reQ9miE5C5qMfbRJ.cjs +0 -7
  104. package/browser/esm/B1Ey4ZP8BHUzHW7G.mjs +0 -7
  105. package/browser/esm/B8dJHVZJta8QbNKG.mjs +0 -7
  106. package/browser/esm/BThbC01mtb7qq8_A.mjs +0 -7
  107. package/browser/esm/Bnt1M91BRyMvXrc4.mjs +0 -7
  108. package/browser/esm/BqN0SYrEO0RZQtv-.mjs +0 -7
  109. package/browser/esm/CHPXsEre3jry2-jF.mjs +0 -7
  110. package/browser/esm/CMCOU0nDlymDFS9l.mjs +0 -7
  111. package/browser/esm/Cc7y1nMDr5J8jWx-.mjs +0 -7
  112. package/browser/esm/CesL-3BNbMB1f_if.mjs +0 -7
  113. package/browser/esm/CfvNSnuQLa1SPbNL.mjs +0 -7
  114. package/browser/esm/CloqVDbJmTL4oFek.mjs +0 -7
  115. package/browser/esm/Cta0yn5UIrP2UoT4.mjs +0 -7
  116. package/browser/esm/CwRyQHiDoBLx5_1g.mjs +0 -7
  117. package/browser/esm/DI-ZGstUJFwkx4H6.mjs +0 -7
  118. package/browser/esm/DQTfmweCXjuIlITn.mjs +0 -7
  119. package/browser/esm/DUIfOO25d1fqtJzn.mjs +0 -7
  120. package/browser/esm/DhOXsRr8c7bDS1jM.mjs +0 -7
  121. package/browser/esm/JPwh2m5-pXkdPVzF.mjs +0 -7
  122. package/browser/esm/UkNAvQj0NVgeMpUl.mjs +0 -7
  123. package/browser/esm/ZUfck_LDsQb9gpvU.mjs +0 -7
  124. package/browser/esm/gHhqkr52cxXkga0T.mjs +0 -7
  125. package/browser/esm/obM68UOvA5HV7Lt1.mjs +0 -7
  126. package/browser/esm/x9MyDRdLE47dI9dF.mjs +0 -7
  127. package/browser/esm/yW9jxnamUqAhVQkJ.mjs +0 -7
@@ -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 Y, 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 j, a4 as be, j as Te, a6 as ve, a7 as m, w as x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, P as De } from "./CSKgHJSTMvOEe2RH.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.14
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 $ = ie((I) => {
15
+ const { label: h, value: r, options: s, onSelect: d, tabIndex: T = 0, ...P } = I, [A, v] = b(() => ne(r, s));
16
+ D(() => {
17
+ v(ne(r, s));
18
+ }, [r, s]);
19
+ const K = j((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 = (I, h) => {
26
+ const r = Object.keys(h);
27
+ for (let s = 0; s < r.length; s++) {
28
+ const d = r[s];
29
+ if (h[d] === I) return d;
30
+ }
31
+ }, Ve = ie((I) => {
32
+ const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: P, onHide: A, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), V = C(null), W = 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, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = 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 }), S = j(async (e, t, n, E) => {
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 re = await v({ autoFocus: E, ...g });
39
+ L(re === 0);
40
+ }, [o, v]);
41
+ D(() => {
42
+ L(!1);
43
+ }, [o, M, f]);
44
+ const q = j((e, t) => {
45
+ if (e.keyCode === be.Enter) {
46
+ if (!o.findText) return;
47
+ let n = !0, E = !1;
48
+ e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (E = !0), z(e, E ? H.current : N.current)) : z(e, n ? W.current : V.current), S(n, t, E, !1);
49
+ }
50
+ }, [o]), J = C(null);
51
+ ce(() => {
52
+ a((e) => {
53
+ const t = { ...e };
54
+ t.findText = r && r.length > 0 ? r : e.findText ?? "", F(!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 && B(n), t;
57
+ }), G || J.current?.focus();
58
+ }, [r, s, d, T]), D(() => {
59
+ f ? (o.findOptions.fields[0], c.Content.Values) : F(!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 F(!1)) : void l.current.addEventListener("focus", () => {
62
+ l.current?.select(), F(!1);
63
+ }, { once: !0 });
64
+ }, [U, o]);
65
+ const [ae, { width: Q }] = Te();
66
+ return i(ve, { ref: J, title: P ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: A, onFocus: () => Z(!0), onBlur: () => {
67
+ Z(!1), L(!1);
68
+ }, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: ae, 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) B(!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) a((t) => {
72
+ const n = { ...t };
73
+ return n.findOptions.matchCase = !t.findOptions.matchCase, n;
74
+ });
75
+ else if (e.key === "e" && e.altKey) a((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
+ a((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: M, onSelectToggle: (e) => {
88
+ le(e);
89
+ }, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(Re, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
90
+ B(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(Y, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Q > 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
+ a((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
+ a((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(Ie, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
102
+ a((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(Se, {})) })] }) }) }, 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
+ a((t) => {
108
+ const n = { ...t };
109
+ return n.findText = e.target.value, n;
110
+ });
111
+ }, onKeyDown: (e) => q(e, !1), onContextMenu: (e) => {
112
+ e.stopPropagation();
113
+ } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
114
+ S(!1, !1);
115
+ }, touchRippleRef: V, 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
+ S(!0, !1);
117
+ }, touchRippleRef: W, 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(Y, { 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
+ a((t) => {
121
+ const n = { ...t };
122
+ return n.replaceText = e.target.value, n;
123
+ });
124
+ }, onKeyDown: (e) => q(e, !0), onContextMenu: (e) => {
125
+ e.stopPropagation();
126
+ } }), i(m, { onSelectToggle: (e) => {
127
+ S(!0, !0);
128
+ }, touchRippleRef: N, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(Ee, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
129
+ S(!0, !0, !0);
130
+ }, touchRippleRef: H, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Fe, {})), disabled: !o.findText })] }) })] })] }), i(_, { in: M, 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: Q >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i($, { label: "Within", value: o.scope, options: ee, onSelect: (e) => {
133
+ a((t) => {
134
+ const n = { ...t };
135
+ return n.scope = e, n;
136
+ });
137
+ } }), i($, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Pe, onSelect: (e) => {
138
+ a((t) => {
139
+ const n = { ...t };
140
+ return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
141
+ });
142
+ } }), i($, { 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
+ a((t) => {
144
+ const n = { ...t };
145
+ return n.findOptions.fields = [e], n;
146
+ });
147
+ } })] })] }) })] }) });
148
+ });
149
+ export {
150
+ Ve as FindReplaceWindow,
151
+ ee as ScopeOptions,
152
+ Ve as default
153
+ };
@@ -0,0 +1,48 @@
1
+ import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
+ import { memo as E, useMemo as F, useState as m, useCallback as O } from "react";
3
+ import { Box as S, FormControl as P, TextField as b } from "@mui/material";
4
+ import { T as f, a1 as U, a5 as l } from "./CSKgHJSTMvOEe2RH.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.14
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((D) => {
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 } = D, w = F(() => (t ?? s?.()?.getHyperlink()) !== null, []), T = F(() => {
14
+ let n = null, e = null;
15
+ t && (typeof t == "string" ? e = t : n = t);
16
+ const g = n ?? s?.()?.getHyperlink();
17
+ return { address: e ?? g?.getAddress() ?? "", textToDisplay: g?.getDisplayText() ?? "" };
18
+ }, [t, s]), [a, M] = m(T.address), [u, B] = m(() => {
19
+ const n = s?.().toTextUnformatted() ?? H;
20
+ return n === T.address ? "" : n;
21
+ }), [$, k] = m(!1), L = O((n) => {
22
+ B(n.target.value);
23
+ }, []), C = O(async (n, e) => null, []), W = f(async (n) => {
24
+ n !== i && x?.(a === "" ? null : { address: a }, u), h?.(n, n === i, n === c), d?.();
25
+ }, [a, 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 e = await Promise.resolve(r?.(n));
29
+ try {
30
+ e !== !1 && (e = await C(a, n));
31
+ } catch {
32
+ }
33
+ return e ?? !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(P, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(b, { 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: a, onChange: j, onContextMenu: (n) => {
38
+ n.stopPropagation();
39
+ } }) }), o(P, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: o(b, { label: "Display Text", placeholder: a?.startsWith("#") ? a.substring(1) : a, 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,59 @@
1
+ import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
+ import { memo as O, useState as r, useRef as E, useReducer as M, useMemo as A } from "react";
3
+ import { DialogContent as W, Box as n } from "@mui/material";
4
+ import { af as k, j as V, ag as q, ah as G, T as x, a6 as J, ai as K, aj as Q, P as f, ak as U, al as X, v as y, w as b, y as w, am as S } from "./CSKgHJSTMvOEe2RH.mjs";
5
+ /**
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
7
+ *
8
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
+ * License: The license can be found at https://www.sheetxl.com/license.
10
+ */
11
+ const ae = O((C) => {
12
+ const { title: N, onHide: v, autoFocusSel: R = ".range-input input", context: T, notifier: l = k, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = E(null), [Y, j] = M((e) => e + 1, 0), [B, { width: Z }] = V();
13
+ q(c);
14
+ const o = T ?? c.context(), t = o.table(), [H, P] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), I = A(() => t?.getName() ?? "", [t]);
15
+ G(o.table(), { onAnchorCoordsChange(e) {
16
+ P(o.getNames().getRanges(e.getRange()));
17
+ }, onProtectedChange(e) {
18
+ j();
19
+ } });
20
+ const z = x((e) => {
21
+ o?.table().setName(e);
22
+ }, [o]), L = x((e) => {
23
+ o?.table().resize(e.at(0));
24
+ }, [o]);
25
+ let u = null;
26
+ return o.table() || (u = a("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: a("div", { children: "No table selected" }) })), a(J, { ref: h, title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, onHide: v, onFocus: () => g(!0), onBlur: (e) => {
27
+ h?.current?.contains(e.relatedTarget) || g(!1);
28
+ }, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(W, { dividers: !0, ref: B, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(K, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: z, onValidate: (e) => {
29
+ t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
30
+ }, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
31
+ m || e.target?.select(), p(!0);
32
+ } }), a(Q, { formName: "range", value: H, onChangeInput: L, resolvedAddress: o.getNames().getRanges.bind(o.getNames()), disabled: t?.isProtected() ?? !0, onFocus: (e) => {
33
+ m || e.target?.select(), p(!0);
34
+ } })] }) }) }), s(n, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e) => e.spacing(0.5), marginTop: (e) => e.spacing(1) }, children: [a(f, { orientation: "horizontal", sx: { marginTop: (e) => e.spacing(1.5), marginBottom: (e) => e.spacing(0.75) } }), a(U, { disabled: t?.isProtected(), styleOptions: t?.getStyleOptions() ?? null, onStyleOptionsChange: (e) => {
35
+ t.updateStyleOptions(e);
36
+ }, showHeaderRow: t?.getShowHeaders(), onShowHeaderRowChange: (e) => {
37
+ try {
38
+ t.setShowHeaders(e);
39
+ } catch (i) {
40
+ l.showError(i);
41
+ }
42
+ }, showTotalRow: t?.getShowTotals(), onShowTotalRowChange: (e) => {
43
+ try {
44
+ t.setShowTotals(e);
45
+ } catch (i) {
46
+ l.showError(i);
47
+ }
48
+ }, showFilterButton: t?.getFilter() ? t.getShowFilterButton() : null, onShowFilterButtonChange: (e) => {
49
+ try {
50
+ t.setShowFilterButton(e);
51
+ } catch (i) {
52
+ l.showError(i);
53
+ }
54
+ } }), a(n, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e) => e.spacing(2), marginBottom: (e) => e.spacing(1) }, children: a(X, { table: t, styles: o.styles(), bodyStyle: o.bodyStyle(), cellHeight: 30, isLive: !0 }) }), a(f, { orientation: "horizontal" }), s(n, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [a(y, { variant: w.Menuitem, command: d.getCommand("convertTableToRange"), commandState: t, icon: b(a(S, {})) }), a(y, { variant: w.Menuitem, commandState: t, command: d.getCommand("deleteTable"), icon: b(a(S, {})) })] })] })] }), u] }) });
55
+ });
56
+ export {
57
+ ae as TableDetailsWindow,
58
+ ae as default
59
+ };
@@ -0,0 +1,23 @@
1
+ import { jsx as o, jsxs as k } from "react/jsx-runtime";
2
+ import { memo as D, useState as i, useCallback as N } from "react";
3
+ import { Box as j, FormControlLabel as w, Checkbox as F } from "@mui/material";
4
+ import { T as v, a1 as y, aj as B } from "./CSKgHJSTMvOEe2RH.mjs";
5
+ /**
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
7
+ *
8
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
+ * License: The license can be found at https://www.sheetxl.com/license.
10
+ */
11
+ const H = ["Ok", "Cancel"], L = D((g) => {
12
+ const { tableOptions: e, context: r, onOption: p, onValidateOption: I, onDone: c, options: d = H, defaultOption: t = d?.[0], cancelOption: s = "Cancel", sx: u, ...x } = g, [b, h] = i(!1), [n, f] = i(() => e?.hasHeader ?? !1), [l, O] = i(() => e?.ranges ?? null), C = v((a) => {
13
+ const m = { ...e, hasHeader: n, ranges: l };
14
+ p?.(a, a === s, a === t), c?.({ option: a, tableOptions: m });
15
+ }, [c, p, t, s, n, l, e]), T = N(async (a, m) => null, []);
16
+ return o(y, { title: "Insert Table", options: d, onDone: C, onValidateOption: T, defaultOption: t, cancelOption: s, autoFocusSel: ".range-input input", sx: { width: "360px", ...u }, ...x, children: k(j, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0), rowGap: (a) => a.spacing(1), display: "flex", flexDirection: "column" }, children: [o(B, { formName: "range", value: l, onChangeInput: (a) => O(a), resolvedAddress: r.getNames().getRanges.bind(r.getNames()), onFocus: (a) => {
17
+ b || a.target?.select(), h(!0);
18
+ } }), o(w, { control: o(F, { checked: n, onChange: () => f(!n) }), label: "Table has headers", labelPlacement: "end" })] }) });
19
+ });
20
+ export {
21
+ L as TableNewDialog,
22
+ L as default
23
+ };
@@ -0,0 +1,43 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { memo as z, forwardRef as E, useState as p } from "react";
3
+ import { _ as t, a0 as K, a1 as R, a2 as W, a3 as O } from "./CSKgHJSTMvOEe2RH.mjs";
4
+ import { Box as _, FormControl as q, TextField as A } from "@mui/material";
5
+ import { alpha as y } from "@mui/system";
6
+ /**
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
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 G = ["Input"], Z = z(E((w, F) => {
13
+ const { initialValue: T = "", onOption: C, onValidateOption: r, onInputOption: l, onValidateInputOption: s, onDone: u, inputProps: c, inputLabel: I, inputType: P, inputPlaceHolder: v, options: d = G, autoFocusSel: b = ".autoFocus", cancelOption: m, defaultOption: g = d?.[0], ...k } = w, [V, B] = p(!1), [o, D] = p(T), [S, H] = p(""), [L, M] = p(!0), e = t(async (a, n) => {
14
+ if (!s) return !0;
15
+ const h = await s?.(a, n);
16
+ H(h?.message ?? "");
17
+ const x = h?.valid ?? !0;
18
+ return M(x), x;
19
+ }, [s]), f = t(async (a) => {
20
+ l?.(o, a);
21
+ }, [o, l, u, C, m, g]), N = t(async (a) => {
22
+ a.keyCode === K.Enter && await e?.(o, null);
23
+ }, [o, f]), $ = t((a) => {
24
+ D(a.target.value), e?.(a.target.value, null);
25
+ }, [r]), j = t(async (a) => {
26
+ let n = await e(o, a);
27
+ try {
28
+ n !== !1 && (n = await e(o, a));
29
+ } catch {
30
+ }
31
+ return n ?? !0;
32
+ }, [o, r]);
33
+ return i(R, { options: d, onDone: u, onOption: (a, n) => {
34
+ n || f(a);
35
+ }, onValidateOption: j, cancelOption: m, defaultOption: g, autoFocusSel: b, ref: F, ...k, children: i(_, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(q, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { onFocus: (a) => {
36
+ V || a.target?.select(), B(!0);
37
+ }, type: P, label: I, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: v, spellCheck: !1, autoComplete: "off", ...c, className: W("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${y("#fff", O(5))}, ${y("#fff", O(5))})` } } }, value: o, onChange: $, onKeyDown: N, onContextMenu: (a) => {
38
+ a.stopPropagation();
39
+ } }) }) }) });
40
+ }));
41
+ export {
42
+ Z as default
43
+ };
@@ -0,0 +1,52 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { memo as E, useMemo as M, useState as h, useCallback as j } from "react";
3
+ import { Box as S, FormControl as V, TextField as $ } from "@mui/material";
4
+ import { T as m, a1 as z, a5 as C } from "./CSKgHJSTMvOEe2RH.mjs";
5
+ import { alpha as O } from "@mui/system";
6
+ /**
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
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 G = ["Ok", "Cancel"], q = E((F) => {
13
+ const { initialComments: T = null, onUpdateComments: u, context: k, onOption: d, onValidateOption: p, onDone: r, options: g = G, defaultOption: c = g?.[0], cancelOption: s = "Cancel", sx: w, ...y } = F, f = M(() => {
14
+ const t = T ?? k?.()?.getComments();
15
+ let n = "";
16
+ if (t && t.content && t.content.runs) {
17
+ const e = t.content.runs;
18
+ for (let i = 0; i < e.length; i++) {
19
+ const a = e[i];
20
+ n += a?.text;
21
+ }
22
+ }
23
+ return n;
24
+ }, []), [o, P] = h(f), [b, v] = h(!1), x = j(async (t, n) => null, []), D = m(async (t) => {
25
+ const n = o === "" ? [] : o.split(`
26
+ `);
27
+ if (t !== s) {
28
+ const e = [];
29
+ for (let a = 0; a < n.length; a++) e.push({ text: n[a] });
30
+ u?.({ content: { runs: e } });
31
+ }
32
+ d?.(t, t === s, t === c), r?.();
33
+ }, [o, u, r, d, c, s]), I = m((t) => {
34
+ P(t.target.value), x(t.target.value, null);
35
+ }, [p]), B = m(async (t) => {
36
+ let n = await Promise.resolve(p?.(t));
37
+ try {
38
+ n !== !1 && (n = await x(o, t));
39
+ } catch {
40
+ }
41
+ return n ?? !0;
42
+ }, [p, o]);
43
+ return l(z, { title: (f ? "Edit" : "Insert") + " Comments", options: g, onDone: r, onOption: (t) => D(t), onValidateOption: B, defaultOption: c, cancelOption: s, autoFocusSel: ".autoFocus", sx: { width: "480px", ...w }, ...y, children: l(S, { sx: { paddingTop: (t) => t.spacing(1), paddingBottom: (t) => t.spacing(0), rowGap: (t) => t.spacing(1), display: "flex", flexDirection: "column" }, children: l(V, { sx: { paddingTop: (t) => t.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: l($, { label: "Comments", placeholder: "Enter a comment.", onFocus: (t) => {
44
+ b || t.target?.select(), v(!0);
45
+ }, sx: { "& .MuiFormHelperText-root": { marginTop: (t) => t.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (t) => t.spacing(1.25), paddingBottom: (t) => t.spacing(0.75), backgroundImage: `linear-gradient(${O("#fff", C(5))}, ${O("#fff", C(5))})` } } }, value: o, onChange: I, onContextMenu: (t) => {
46
+ t.stopPropagation();
47
+ } }) }) }) });
48
+ });
49
+ export {
50
+ q as CommentsDialog,
51
+ q as default
52
+ };
@@ -0,0 +1,46 @@
1
+ import { Workbook as y, IRange as k } from "@sheetxl/sdk";
2
+ /**
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
4
+ *
5
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
+ * License: The license can be found at https://www.sheetxl.com/license.
7
+ */
8
+ const E = async (a, p) => {
9
+ const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: f = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, u = await import("./CCwOCTrf9Bira1-Y.mjs").then((s) => s.p);
10
+ if (!a) throw new Error("workbook must be specified");
11
+ let t = null;
12
+ if (r === null ? t = a.getSelectedSheet() : typeof r == "number" ? t = a.getSheets().search()[r] : typeof r == "string" && (t = a.getSheets().getByName(r)), !t) throw new Error("invalid sheetKey specified");
13
+ let c = null;
14
+ const d = [];
15
+ let e = null, n = t.getUsedRange({ excludeHidden: h });
16
+ if (!n) throw new Error("Nothing to export");
17
+ if (!i || !f) {
18
+ const s = i ? n.getRowStart() : 0, l = f ? n.getColumnStart() : 0;
19
+ n = n.getOffsetTo(s, l);
20
+ }
21
+ n.forEach((s, l) => {
22
+ const w = l.getCoords(), x = l.getCell();
23
+ c !== w.rowIndex && (e && d.push(e), e = [], c = w.rowIndex);
24
+ const S = x.toTextUnformatted() ?? "";
25
+ e.push(S);
26
+ }, { includeEmpty: !0, address: null }), e && d.push(e);
27
+ const o = { ...m }, g = u.unparse(d, o);
28
+ return new TextEncoder().encode(g).buffer;
29
+ }, b = async (a, p) => {
30
+ const { papaParseConfig: i, setValuesOptions: f, createWorkbookOptions: h } = p ?? {}, r = await import("./CCwOCTrf9Bira1-Y.mjs").then((o) => o.p), m = new TextDecoder().decode(a);
31
+ let u = -1;
32
+ const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: k.Orientation.Row }), d = p?.onProgress;
33
+ let e = 0;
34
+ const n = { ...i, transform: (o, g) => {
35
+ i?.transform && (o = i.transform(o, g));
36
+ const s = g;
37
+ s === 0 && u++;
38
+ let l = o ?? "";
39
+ return c.pushAt(u, s, l), e++, e % 1e5 == 0 && d?.(e), o;
40
+ } };
41
+ return r.parse(m, n).data, c.apply({ textParser: !0, ...f }), t;
42
+ };
43
+ export {
44
+ b as fromBufferCSV,
45
+ E as toBufferCSV
46
+ };