@sheetxl/studio-vanilla 0.4.10 → 0.4.12

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 (159) hide show
  1. package/browser/cjs/B35OZ0mE8aINQPP9.cjs +7 -0
  2. package/browser/cjs/BPzEQNENF-gEBkg9.cjs +7 -0
  3. package/browser/cjs/BUokV6yuzE-_8MyK.cjs +7 -0
  4. package/browser/cjs/BeZHmOKfa37mFNAu.cjs +7 -0
  5. package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +7 -0
  6. package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +7 -0
  7. package/browser/cjs/C3OizZPVuxO2fjSG.cjs +7 -0
  8. package/browser/cjs/CBL6KkiWI2RPflEN.cjs +7 -0
  9. package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
  10. package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +7 -0
  11. package/browser/cjs/CU30GVjjFXl44vEU.cjs +7 -0
  12. package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +7 -0
  13. package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +7 -0
  14. package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +7 -0
  15. package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +7 -0
  16. package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +7 -0
  17. package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +107 -0
  18. package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +7 -0
  19. package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +7 -0
  20. package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +7 -0
  21. package/browser/cjs/L1iE_VcelYZIy0wI.cjs +7 -0
  22. package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +7 -0
  23. package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +7 -0
  24. package/browser/cjs/hwDUzorB6aCvH1eL.cjs +7 -0
  25. package/browser/cjs/index.cjs +4 -3
  26. package/browser/cjs/no5c2H18QD2qmOH6.cjs +7 -0
  27. package/browser/esm/B4Mm5gczpI_k2zzN.mjs +7 -0
  28. package/browser/esm/B8ISUdOxsJMYWzNN.mjs +7 -0
  29. package/browser/esm/BnJiF38TGudjoHzT.mjs +7 -0
  30. package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
  31. package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +107 -0
  32. package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
  33. package/browser/esm/CYIhGb86r-kKOrP5.mjs +7 -0
  34. package/browser/esm/CcpskguvlvemArQn.mjs +7 -0
  35. package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
  36. package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
  37. package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
  38. package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
  39. package/browser/esm/D3KNxvnrwR6_fTJE.mjs +7 -0
  40. package/browser/esm/DIJyH94oCzUnlcNZ.mjs +7 -0
  41. package/browser/esm/DVAG1NxFe3cMjLE1.mjs +7 -0
  42. package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
  43. package/browser/esm/DcX8yGEBX6qi9RCe.mjs +7 -0
  44. package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +7 -0
  45. package/browser/esm/DzgM_rkwyIHsCb6I.mjs +7 -0
  46. package/browser/esm/M4hZ25330e96seUM.mjs +7 -0
  47. package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
  48. package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
  49. package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
  50. package/browser/esm/dpdy0BU4GGI5lZrX.mjs +7 -0
  51. package/browser/esm/index.mjs +2 -8
  52. package/browser/esm/oLCocGFRAwsVsOSE.mjs +7 -0
  53. package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
  54. package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
  55. package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
  56. package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
  57. package/{browser/esm/DIGFi66CQPMV3HsL.mjs → cdn/assets/BSAH88RG1oubICau.js} +25 -25
  58. package/cdn/assets/{B-9FcTf3xBEVGdjV.js → BT5EcMEFBsphczwC.js} +536 -534
  59. package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
  60. package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
  61. package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
  62. package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
  63. package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
  64. package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
  65. package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
  66. package/{browser/esm/D47D26mVYSAdb5C8.mjs → cdn/assets/CfObTzh8pGdd8D23.js} +560 -555
  67. package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
  68. package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
  69. package/{browser/esm/C_Zx1tYjI3n7KKZH.mjs → cdn/assets/Cq94woVmlxhjWVRI.js} +2 -2
  70. package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
  71. package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
  72. package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
  73. package/cdn/assets/{Bt1JSlSpWXDOBfq3.js → DJQOS9qxVAlpgDMt.js} +5 -4
  74. package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
  75. package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
  76. package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
  77. package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
  78. package/cdn/assets/{B3J6oAmsS7oLNFPd.js → DkS6quwH1okWaho6.js} +3 -3
  79. package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
  80. package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
  81. package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
  82. package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
  83. package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
  84. package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
  85. package/cdn/index.js +8 -8
  86. package/cdn/loader.js +1 -1
  87. package/package.json +5 -5
  88. package/browser/cjs/B1UGqZP_7Z0Ewpog.cjs +0 -6
  89. package/browser/cjs/B6m9VXoFseD4zuZ5.cjs +0 -6
  90. package/browser/cjs/BKePSaEpM6Z063z-.cjs +0 -161
  91. package/browser/cjs/Bqn0ZeP_srNfL9rG.cjs +0 -6
  92. package/browser/cjs/C-izbj62pQuZjOrT.cjs +0 -304
  93. package/browser/cjs/C-w-GX8N54TxTjjf.cjs +0 -6
  94. package/browser/cjs/C1QGdcqJ-9sdGTQR.cjs +0 -6
  95. package/browser/cjs/C38aiRglHLxZ8KRY.cjs +0 -6
  96. package/browser/cjs/C4JMn_hMnlOnDpQO.cjs +0 -6
  97. package/browser/cjs/CApEj4LhhPUvQjIG.cjs +0 -16
  98. package/browser/cjs/CFcJbmmXjWjl6fQH.cjs +0 -6
  99. package/browser/cjs/CKiDbCZ6rGgXK7yN.cjs +0 -42
  100. package/browser/cjs/CM8btXQsJbnFKXUm.cjs +0 -6
  101. package/browser/cjs/Cb0K3Wzp7BAa4zni.cjs +0 -15
  102. package/browser/cjs/CiAUhPU7v1BK-8Bb.cjs +0 -7
  103. package/browser/cjs/CsXS-EN0N5SZHTnQ.cjs +0 -145
  104. package/browser/cjs/Cu2eUomoF0HToa4l.cjs +0 -6
  105. package/browser/cjs/Cy7ii9B_Vqx94pbu.cjs +0 -19
  106. package/browser/cjs/CzI4ZcsmzsyPBpWN.cjs +0 -12
  107. package/browser/cjs/DKHzUx2gKXwboKy1.cjs +0 -11
  108. package/browser/cjs/DKc8wAq8dwbDddQn.cjs +0 -11
  109. package/browser/cjs/DMyKApbUVRtNYC4e.cjs +0 -6
  110. package/browser/cjs/DROR08HMGyg7rizQ.cjs +0 -6
  111. package/browser/cjs/DfGDZlbFVknGyu_X.cjs +0 -6
  112. package/browser/cjs/OQdqVM_6m78kE5Aj.cjs +0 -7
  113. package/browser/cjs/v4OEtYXaUw_GeiXM.cjs +0 -12
  114. package/browser/esm/4uEr84M4w57AMyDg.mjs +0 -1703
  115. package/browser/esm/B8Ja5DlyKAy8xfQD.mjs +0 -1365
  116. package/browser/esm/B9bN60uAvy62vnwt.mjs +0 -22
  117. package/browser/esm/BAOzSQdzHl43K9Hd.mjs +0 -50
  118. package/browser/esm/BQYSD5Nb35y0WeeV.mjs +0 -421
  119. package/browser/esm/BVcaNvORp_uKPQgJ.mjs +0 -46
  120. package/browser/esm/BqXO_cQhrMJu7JoQ.mjs +0 -3756
  121. package/browser/esm/C18A_DcIEHNYBDvR.mjs +0 -46
  122. package/browser/esm/C7FoKZbSzjvuY3UB.mjs +0 -43
  123. package/browser/esm/CCIJpHSbFPjTEF8S.mjs +0 -1665
  124. package/browser/esm/CHNPjJxb0GY_naLa.mjs +0 -25025
  125. package/browser/esm/CKHsU9LUNYowimxS.mjs +0 -1346
  126. package/browser/esm/Cm-m3bZh0V44y0li.mjs +0 -390
  127. package/browser/esm/D1e_ccSgcNXvWHgy.mjs +0 -151
  128. package/browser/esm/D9CdO3PtV12RnK8K.mjs +0 -1467
  129. package/browser/esm/D9x-Q8y57gePf-tE.mjs +0 -944
  130. package/browser/esm/DHhXutXh7b5LsU1m.mjs +0 -2346
  131. package/browser/esm/DamiTeQsSMP2Cwld.mjs +0 -58
  132. package/browser/esm/DhD48oFrbrnZ6Zg5.mjs +0 -13208
  133. package/browser/esm/Ln2ZalJgj1CiJJue.mjs +0 -50
  134. package/browser/esm/S9fgUO7h8YgZxoKH.mjs +0 -633
  135. package/browser/esm/qVAHcpq07IhtAaQc.mjs +0 -24
  136. package/browser/esm/xrzJ8ILZHb118Oyt.mjs +0 -41
  137. package/cdn/assets/2-xJlw77WsCoyz09.js +0 -24872
  138. package/cdn/assets/B-p1i2SNRMunPXCF.js +0 -43
  139. package/cdn/assets/B8Ja5DlyKAy8xfQD.js +0 -1365
  140. package/cdn/assets/BG3YTMAzNKPRGoLs.js +0 -50
  141. package/cdn/assets/BQYSD5Nb35y0WeeV.js +0 -421
  142. package/cdn/assets/BbzUpvQOkxsN-yIH.js +0 -2346
  143. package/cdn/assets/BqXO_cQhrMJu7JoQ.js +0 -3756
  144. package/cdn/assets/CCIJpHSbFPjTEF8S.js +0 -1665
  145. package/cdn/assets/CKHsU9LUNYowimxS.js +0 -1346
  146. package/cdn/assets/CWLJZwD2GVXljoWG.js +0 -46
  147. package/cdn/assets/Cm-m3bZh0V44y0li.js +0 -390
  148. package/cdn/assets/CtQlXGkNWgI-vtGy.js +0 -2178
  149. package/cdn/assets/DIGFi66CQPMV3HsL.js +0 -84
  150. package/cdn/assets/DK4S0DbayChkfTD6.js +0 -58
  151. package/cdn/assets/DQvsBz9F1GS_S7r9.js +0 -50
  152. package/cdn/assets/DTOgv_zwXSur-yCq.js +0 -151
  153. package/cdn/assets/DYZjOnD8WWQkCYuH.js +0 -944
  154. package/cdn/assets/DhD48oFrbrnZ6Zg5.js +0 -13208
  155. package/cdn/assets/DhyAyTCDkMBf392P.js +0 -21
  156. package/cdn/assets/P7HeVw5SHROLSWBz.js +0 -24
  157. package/cdn/assets/S4Z0SN8x6EltjsHT.js +0 -22
  158. package/cdn/assets/S9fgUO7h8YgZxoKH.js +0 -633
  159. package/cdn/assets/guYe4C_6pE93QsDV.js +0 -41
@@ -1,390 +0,0 @@
1
- import C, { memo as ne, useState as _, useRef as m, useCallback as re, useEffect as S } from "react";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
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
- function we(e, t, r) {
9
- return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
10
- }
11
- function ue(e, t) {
12
- var r = Object.keys(e);
13
- if (Object.getOwnPropertySymbols) {
14
- var n = Object.getOwnPropertySymbols(e);
15
- t && (n = n.filter(function(o) {
16
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
17
- })), r.push.apply(r, n);
18
- }
19
- return r;
20
- }
21
- function ae(e) {
22
- for (var t = 1; t < arguments.length; t++) {
23
- var r = arguments[t] != null ? arguments[t] : {};
24
- t % 2 ? ue(Object(r), !0).forEach(function(n) {
25
- we(e, n, r[n]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ue(Object(r)).forEach(function(n) {
27
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
28
- });
29
- }
30
- return e;
31
- }
32
- function le(e, t) {
33
- (t == null || t > e.length) && (t = e.length);
34
- for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
35
- return n;
36
- }
37
- function Oe(e, t, r) {
38
- return t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
39
- }
40
- function se(e, t) {
41
- var r = Object.keys(e);
42
- if (Object.getOwnPropertySymbols) {
43
- var n = Object.getOwnPropertySymbols(e);
44
- t && (n = n.filter(function(o) {
45
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
46
- })), r.push.apply(r, n);
47
- }
48
- return r;
49
- }
50
- function de(e) {
51
- for (var t = 1; t < arguments.length; t++) {
52
- var r = arguments[t] != null ? arguments[t] : {};
53
- t % 2 ? se(Object(r), !0).forEach(function(n) {
54
- Oe(e, n, r[n]);
55
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : se(Object(r)).forEach(function(n) {
56
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
57
- });
58
- }
59
- return e;
60
- }
61
- function R(e) {
62
- return function t() {
63
- for (var r = this, n = arguments.length, o = new Array(n), i = 0; i < n; i++) o[i] = arguments[i];
64
- return o.length >= e.length ? e.apply(this, o) : function() {
65
- for (var u = arguments.length, c = new Array(u), l = 0; l < u; l++) c[l] = arguments[l];
66
- return t.apply(r, [].concat(o, c));
67
- };
68
- };
69
- }
70
- function Y(e) {
71
- return {}.toString.call(e).includes("Object");
72
- }
73
- function q(e) {
74
- return typeof e == "function";
75
- }
76
- var k = R(function(e, t) {
77
- throw new Error(e[t] || e.default);
78
- })({ initialIsRequired: "initial state is required", initialType: "initial state should be an object", initialContent: "initial state shouldn't be an empty object", handlerType: "handler should be an object or a function", handlersType: "all handlers should be a functions", selectorType: "selector should be a function", changeType: "provided value of changes should be an object", changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state', default: "an unknown error accured in `state-local` package" }), je = function(e, t) {
79
- return Y(t) || k("changeType"), Object.keys(t).some(function(r) {
80
- return n = e, o = r, !Object.prototype.hasOwnProperty.call(n, o);
81
- var n, o;
82
- }) && k("changeField"), t;
83
- };
84
- function Me(e, t) {
85
- return q(t) ? t(e.current) : t;
86
- }
87
- function Ee(e, t) {
88
- return e.current = de(de({}, e.current), t), t;
89
- }
90
- function Pe(e, t, r) {
91
- return q(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
92
- var o;
93
- return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
94
- }), r;
95
- }
96
- var X, pe = { configIsRequired: "the configuration object is required", configType: "the configuration object should be an object", default: "an unknown error accured in `@monaco-editor/loader` package", deprecation: `Deprecation warning!
97
- You are using deprecated way of configuration.
98
-
99
- Instead of using
100
- monaco.config({ urls: { monacoBase: '...' } })
101
- use
102
- monaco.config({ paths: { vs: '...' } })
103
-
104
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
105
- ` }, fe = (X = function(e, t) {
106
- throw new Error(e[t] || e.default);
107
- }, function e() {
108
- for (var t = this, r = arguments.length, n = new Array(r), o = 0; o < r; o++) n[o] = arguments[o];
109
- return n.length >= X.length ? X.apply(this, n) : function() {
110
- for (var i = arguments.length, u = new Array(i), c = 0; c < i; c++) u[c] = arguments[c];
111
- return e.apply(t, [].concat(n, u));
112
- };
113
- })(pe);
114
- function he(e, t) {
115
- return Object.keys(t).forEach(function(r) {
116
- t[r] instanceof Object && e[r] && Object.assign(t[r], he(e[r], t[r]));
117
- }), ae(ae({}, e), t);
118
- }
119
- var Se = { type: "cancelation", msg: "operation is manually canceled" };
120
- function Z(e) {
121
- var t = !1, r = new Promise(function(n, o) {
122
- e.then(function(i) {
123
- return t ? o(Se) : n(i);
124
- }), e.catch(o);
125
- });
126
- return r.cancel = function() {
127
- return t = !0;
128
- }, r;
129
- }
130
- var ee, me = function(e) {
131
- if (Array.isArray(e)) return e;
132
- }(ee = function(e) {
133
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
134
- (function(c) {
135
- var l;
136
- c || k("initialIsRequired"), Y(c) || k("initialType"), l = c, Object.keys(l).length || k("initialContent");
137
- })(e), function(c) {
138
- q(c) || Y(c) || k("handlerType"), Y(c) && Object.values(c).some(function(l) {
139
- return !q(l);
140
- }) && k("handlersType");
141
- }(t);
142
- var r = { current: e }, n = R(Pe)(r, t), o = R(Ee)(r), i = R(je)(e), u = R(Me)(r);
143
- return [function() {
144
- var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(l) {
145
- return l;
146
- };
147
- return function(l) {
148
- q(l) || k("selectorType");
149
- }(c), c(r.current);
150
- }, function(c) {
151
- (function() {
152
- for (var l = arguments.length, g = new Array(l), O = 0; O < l; O++) g[O] = arguments[O];
153
- return function(b) {
154
- return g.reduceRight(function(E, P) {
155
- return P(E);
156
- }, b);
157
- };
158
- })(n, o, i, u)(c);
159
- }];
160
- }({ config: { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs" } }, isInitialized: !1, resolve: null, reject: null, monaco: null })) || function(e) {
161
- if (typeof Symbol < "u" && Symbol.iterator in Object(e)) {
162
- var t = [], r = !0, n = !1, o = void 0;
163
- try {
164
- for (var i, u = e[Symbol.iterator](); !(r = (i = u.next()).done) && (t.push(i.value), t.length !== 2); r = !0) ;
165
- } catch (c) {
166
- n = !0, o = c;
167
- } finally {
168
- try {
169
- r || u.return == null || u.return();
170
- } finally {
171
- if (n) throw o;
172
- }
173
- }
174
- return t;
175
- }
176
- }(ee) || function(e) {
177
- if (e) {
178
- if (typeof e == "string") return le(e, 2);
179
- var t = Object.prototype.toString.call(e).slice(8, -1);
180
- return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? le(e, 2) : void 0;
181
- }
182
- }(ee) || function() {
183
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
184
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
185
- }(), N = me[0], $ = me[1];
186
- function ke(e) {
187
- return document.body.appendChild(e);
188
- }
189
- function xe(e) {
190
- var t, r, n = N(function(i) {
191
- return { config: i.config, reject: i.reject };
192
- }), o = (t = "".concat(n.config.paths.vs, "/loader.js"), r = document.createElement("script"), t && (r.src = t), r);
193
- return o.onload = function() {
194
- return e();
195
- }, o.onerror = n.reject, o;
196
- }
197
- function Ie() {
198
- var e = N(function(r) {
199
- return { config: r.config, resolve: r.resolve, reject: r.reject };
200
- }), t = window.require;
201
- t.config(e.config), t(["vs/editor/editor.main"], function(r) {
202
- ye(r), e.resolve(r);
203
- }, function(r) {
204
- e.reject(r);
205
- });
206
- }
207
- function ye(e) {
208
- N().monaco || $({ monaco: e });
209
- }
210
- var te = new Promise(function(e, t) {
211
- return $({ resolve: e, reject: t });
212
- }), G = { config: function(e) {
213
- var t = function(o) {
214
- var i;
215
- return o || fe("configIsRequired"), i = o, {}.toString.call(i).includes("Object") || fe("configType"), o.urls ? (console.warn(pe.deprecation), { paths: { vs: o.urls.monacoBase } }) : o;
216
- }(e), r = t.monaco, n = function(o, i) {
217
- if (o == null) return {};
218
- var u, c, l = function(O, b) {
219
- if (O == null) return {};
220
- var E, P, x = {}, I = Object.keys(O);
221
- for (P = 0; P < I.length; P++) E = I[P], b.indexOf(E) >= 0 || (x[E] = O[E]);
222
- return x;
223
- }(o, i);
224
- if (Object.getOwnPropertySymbols) {
225
- var g = Object.getOwnPropertySymbols(o);
226
- for (c = 0; c < g.length; c++) u = g[c], i.indexOf(u) >= 0 || Object.prototype.propertyIsEnumerable.call(o, u) && (l[u] = o[u]);
227
- }
228
- return l;
229
- }(t, ["monaco"]);
230
- $(function(o) {
231
- return { config: he(o.config, n), monaco: r };
232
- });
233
- }, init: function() {
234
- var e = N(function(t) {
235
- return { monaco: t.monaco, isInitialized: t.isInitialized, resolve: t.resolve };
236
- });
237
- if (!e.isInitialized) {
238
- if ($({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), Z(te);
239
- if (window.monaco && window.monaco.editor) return ye(window.monaco), e.resolve(window.monaco), Z(te);
240
- (function() {
241
- for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
242
- return function(o) {
243
- return r.reduceRight(function(i, u) {
244
- return u(i);
245
- }, o);
246
- };
247
- })(ke, xe)(Ie);
248
- }
249
- return Z(te);
250
- }, __getMonacoInstance: function() {
251
- return N(function(e) {
252
- return e.monaco;
253
- });
254
- } }, Te = { display: "flex", position: "relative", textAlign: "initial" }, Ae = { width: "100%" }, Ce = { display: "none" }, De = { container: { display: "flex", height: "100%", width: "100%", justifyContent: "center", alignItems: "center" } }, Ve = function({ children: e }) {
255
- return C.createElement("div", { style: De.container }, e);
256
- }, ve = ne(function({ width: e, height: t, isEditorReady: r, loading: n, _ref: o, className: i, wrapperProps: u }) {
257
- return C.createElement("section", { style: { ...Te, width: e, height: t }, ...u }, !r && C.createElement(Ve, null, n), C.createElement("div", { ref: o, style: { ...Ae, ...!r && Ce }, className: i }));
258
- }), oe = function(e) {
259
- S(e, []);
260
- }, j = function(e, t, r = !0) {
261
- let n = m(!0);
262
- S(n.current || !r ? () => {
263
- n.current = !1;
264
- } : e, t);
265
- };
266
- function z() {
267
- }
268
- function A(e, t, r, n) {
269
- return g = n, (l = e).editor.getModel(ge(l, g)) || (i = t, u = r, c = n, (o = e).editor.createModel(i, u, c ? ge(o, c) : void 0));
270
- var o, i, u, c, l, g;
271
- }
272
- function ge(e, t) {
273
- return e.Uri.parse(t);
274
- }
275
- var qe = ne(function({ original: e, modified: t, language: r, originalLanguage: n, modifiedLanguage: o, originalModelPath: i, modifiedModelPath: u, keepCurrentOriginalModel: c = !1, keepCurrentModifiedModel: l = !1, theme: g = "light", loading: O = "Loading...", options: b = {}, height: E = "100%", width: P = "100%", className: x, wrapperProps: I = {}, beforeMount: H = z, onMount: J = z }) {
276
- let [w, D] = _(!1), [V, h] = _(!0), y = m(null), d = m(null), L = m(null), v = m(J), a = m(H), T = m(!1);
277
- oe(() => {
278
- let s = G.init();
279
- return s.then((f) => (d.current = f) && h(!1)).catch((f) => f?.type !== "cancelation" && console.error("Monaco initialization: error:", f)), () => y.current ? function() {
280
- let f = y.current?.getModel();
281
- c || f?.original?.dispose(), l || f?.modified?.dispose(), y.current?.dispose();
282
- }() : s.cancel();
283
- }), j(() => {
284
- if (y.current && d.current) {
285
- let s = y.current.getOriginalEditor(), f = A(d.current, e || "", n || r || "text", i || "");
286
- f !== s.getModel() && s.setModel(f);
287
- }
288
- }, [i], w), j(() => {
289
- if (y.current && d.current) {
290
- let s = y.current.getModifiedEditor(), f = A(d.current, t || "", o || r || "text", u || "");
291
- f !== s.getModel() && s.setModel(f);
292
- }
293
- }, [u], w), j(() => {
294
- let s = y.current.getModifiedEditor();
295
- s.getOption(d.current.editor.EditorOption.readOnly) ? s.setValue(t || "") : t !== s.getValue() && (s.executeEdits("", [{ range: s.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), s.pushUndoStop());
296
- }, [t], w), j(() => {
297
- y.current?.getModel()?.original.setValue(e || "");
298
- }, [e], w), j(() => {
299
- let { original: s, modified: f } = y.current.getModel();
300
- d.current.editor.setModelLanguage(s, n || r || "text"), d.current.editor.setModelLanguage(f, o || r || "text");
301
- }, [r, n, o], w), j(() => {
302
- d.current?.editor.setTheme(g);
303
- }, [g], w), j(() => {
304
- y.current?.updateOptions(b);
305
- }, [b], w);
306
- let F = re(() => {
307
- if (!d.current) return;
308
- a.current(d.current);
309
- let s = A(d.current, e || "", n || r || "text", i || ""), f = A(d.current, t || "", o || r || "text", u || "");
310
- y.current?.setModel({ original: s, modified: f });
311
- }, [r, t, o, e, n, i, u]), U = re(() => {
312
- !T.current && L.current && (y.current = d.current.editor.createDiffEditor(L.current, { automaticLayout: !0, ...b }), F(), d.current?.editor.setTheme(g), D(!0), T.current = !0);
313
- }, [b, g, F]);
314
- return S(() => {
315
- w && v.current(y.current, d.current);
316
- }, [w]), S(() => {
317
- !V && !w && U();
318
- }, [V, w, U]), C.createElement(ve, { width: P, height: E, isEditorReady: w, loading: O, _ref: L, className: x, wrapperProps: I });
319
- }), ze = function() {
320
- let [e, t] = _(G.__getMonacoInstance());
321
- return oe(() => {
322
- let r;
323
- return e || (r = G.init(), r.then((n) => {
324
- t(n);
325
- })), () => r?.cancel();
326
- }), e;
327
- }, B = /* @__PURE__ */ new Map(), Le = ne(function({ defaultValue: e, defaultLanguage: t, defaultPath: r, value: n, language: o, path: i, theme: u = "light", line: c, loading: l = "Loading...", options: g = {}, overrideServices: O = {}, saveViewState: b = !0, keepCurrentModel: E = !1, width: P = "100%", height: x = "100%", className: I, wrapperProps: H = {}, beforeMount: J = z, onMount: w = z, onChange: D, onValidate: V = z }) {
328
- let [h, y] = _(!1), [d, L] = _(!0), v = m(null), a = m(null), T = m(null), F = m(w), U = m(J), s = m(), f = m(n), be = function(p) {
329
- let M = m();
330
- return S(() => {
331
- M.current = p;
332
- }, [p]), M.current;
333
- }(i), ie = m(!1), K = m(!1);
334
- oe(() => {
335
- let p = G.init();
336
- return p.then((M) => (v.current = M) && L(!1)).catch((M) => M?.type !== "cancelation" && console.error("Monaco initialization: error:", M)), () => a.current ? (s.current?.dispose(), E ? b && B.set(i, a.current.saveViewState()) : a.current.getModel()?.dispose(), void a.current.dispose()) : p.cancel();
337
- }), j(() => {
338
- let p = A(v.current, e || n || "", t || o || "", i || r || "");
339
- p !== a.current?.getModel() && (b && B.set(be, a.current?.saveViewState()), a.current?.setModel(p), b && a.current?.restoreViewState(B.get(i)));
340
- }, [i], h), j(() => {
341
- a.current?.updateOptions(g);
342
- }, [g], h), j(() => {
343
- !a.current || n === void 0 || (a.current.getOption(v.current.editor.EditorOption.readOnly) ? a.current.setValue(n) : n !== a.current.getValue() && (K.current = !0, a.current.executeEdits("", [{ range: a.current.getModel().getFullModelRange(), text: n, forceMoveMarkers: !0 }]), a.current.pushUndoStop(), K.current = !1));
344
- }, [n], h), j(() => {
345
- let p = a.current?.getModel();
346
- p && o && v.current?.editor.setModelLanguage(p, o);
347
- }, [o], h), j(() => {
348
- c !== void 0 && a.current?.revealLine(c);
349
- }, [c], h), j(() => {
350
- v.current?.editor.setTheme(u);
351
- }, [u], h);
352
- let ce = re(() => {
353
- if (T.current && v.current && !ie.current) {
354
- U.current(v.current);
355
- let p = i || r, M = A(v.current, n || e || "", t || o || "", p || "");
356
- a.current = v.current?.editor.create(T.current, { model: M, automaticLayout: !0, ...g }, O), b && a.current.restoreViewState(B.get(p)), v.current.editor.setTheme(u), c !== void 0 && a.current.revealLine(c), y(!0), ie.current = !0;
357
- }
358
- }, [e, t, r, n, o, i, g, O, b, u, c]);
359
- return S(() => {
360
- h && F.current(a.current, v.current);
361
- }, [h]), S(() => {
362
- !d && !h && ce();
363
- }, [d, h, ce]), f.current = n, S(() => {
364
- h && D && (s.current?.dispose(), s.current = a.current?.onDidChangeModelContent((p) => {
365
- K.current || D(a.current.getValue(), p);
366
- }));
367
- }, [h, D]), S(() => {
368
- if (h) {
369
- let p = v.current.editor.onDidChangeMarkers((M) => {
370
- let Q = a.current.getModel()?.uri;
371
- if (Q && M.find((W) => W.path === Q.path)) {
372
- let W = v.current.editor.getModelMarkers({ resource: Q });
373
- V?.(W);
374
- }
375
- });
376
- return () => {
377
- p?.dispose();
378
- };
379
- }
380
- return () => {
381
- };
382
- }, [h, V]), C.createElement(ve, { width: P, height: x, isEditorReady: h, loading: l, _ref: T, className: I, wrapperProps: H });
383
- }), _e = Le;
384
- export {
385
- qe as DiffEditor,
386
- Le as Editor,
387
- _e as default,
388
- G as loader,
389
- ze as useMonaco
390
- };
@@ -1,151 +0,0 @@
1
- import { jsx as i, jsxs as p } from "react/jsx-runtime";
2
- import { memo as oe, useRef as C, useState as b, useEffect as L, useLayoutEffect as pe, useMemo as de } from "react";
3
- import { ICell as c, IRange as R } from "@sheetxl/sdk";
4
- import { r as D, w as H, av as ue, U as fe, aA as ge, aB as me, B as O, aC as m, ah as x, aD as xe, a8 as y, aE as he, T as _, a as k, aF as Oe, aG as Ce, aH as ye, aI as be, ay as w, aJ as ve, aK as Te, ak as Re, az as ke, F as we, aw as Ee, ax as Fe } from "./CHNPjJxb0GY_naLa.mjs";
5
- import { C as ee } from "./D9x-Q8y57gePf-tE.mjs";
6
- /**
7
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.10
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 Se = D(i("path", { d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z" }), "ArrowBack"), Ie = D(i("path", { d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z" }), "ArrowDownward"), Le = D(i("path", { d: "m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" }), "ArrowForward"), De = D(i("path", { d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z" }), "ArrowUpward"), z = oe((E) => {
13
- const { label: h, value: r, options: a, onSelect: d, tabIndex: v = 0, ...A } = E, [K, T] = b(() => ie(r, a));
14
- L(() => {
15
- T(ie(r, a));
16
- }, [r, a]);
17
- const P = H((u) => {
18
- T(u.target.value), d?.(a[u.target.value]);
19
- }, [d, a]), s = de(() => Object.keys(a).map((u) => i(ke, { value: u, children: u }, u)), [a]);
20
- return p(we, { sx: { minWidth: 135 }, size: "small", children: [i(Ee, { children: h }), i(Fe, { inputProps: { tabIndex: v }, value: K, label: h, onChange: P, sx: { backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, ...A, children: s })] });
21
- }), te = { Workbook: "workbook", Sheet: "sheet" }, ne = { enter: 140, exit: 140 }, ae = { Formulas: c.Content.Formulas, Values: c.Content.Values, Notes: c.Content.Notes, Comments: c.Content.Comments }, se = { ...ae };
22
- delete se.Values;
23
- const Ae = { "By Rows": !0, "By Columns": !1 }, ie = (E, h) => {
24
- const r = Object.keys(h);
25
- for (let a = 0; a < r.length; a++) {
26
- const d = r[a];
27
- if (h[d] === E) return d;
28
- }
29
- }, ze = oe((E) => {
30
- const { replace: h = !1, findText: r, replaceText: a, findOptions: d, replaceOptions: v, title: A, onHide: K, onFindOrReplace: T, ...P } = E, s = C(null), u = C(null), $ = C(null), W = C(null), j = C(null), N = C(null), U = (e, t) => {
31
- t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
32
- }, [G, I] = b(!1), [B, le] = b(!1), [f, M] = b(h), [J, V] = b(!1), [X, q] = b(!1), [o, l] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: te.Sheet }), F = H(async (e, t, n, S) => {
33
- if (!T) return;
34
- const g = { ...o };
35
- 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;
36
- const ce = await T({ autoFocus: S, ...g });
37
- V(ce === 0);
38
- }, [o, T]);
39
- L(() => {
40
- V(!1);
41
- }, [o, B, f]);
42
- const Q = H((e, t) => {
43
- if (e.keyCode === ue.Enter) {
44
- if (!o.findText) return;
45
- let n = !0, S = !1;
46
- e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (S = !0), U(e, S ? N.current : j.current)) : U(e, n ? W.current : $.current), F(n, t, S, !1);
47
- }
48
- }, [o]), Y = C(null);
49
- pe(() => {
50
- l((e) => {
51
- const t = { ...e };
52
- t.findText = r && r.length > 0 ? r : e.findText ?? "", I(!0), a !== void 0 && (t.replaceText = a), d && (t.findOptions = { ...t.findOptions, ...d }), t.replaceText || (t.replaceText = ""), t.replaceOptions && (t.replaceOptions = { ...t.replaceOptions }), v && (t.replaceOptions = { ...t.replaceOptions, ...v }), o.findOptions.fields?.[0] || (o.findOptions.fields = [c.Content.Formulas]);
53
- const n = !(!v && a === void 0);
54
- return n && M(n), t;
55
- }), X || Y.current?.focus();
56
- }, [r, a, d, v]), L(() => {
57
- f ? (o.findOptions.fields[0], c.Content.Values) : I(!0);
58
- }, [f]), L(() => {
59
- if (G && s.current && o.findText === s.current.value) return s.current === document.activeElement || s.current.contains(document.activeElement) ? (s.current?.select(), void I(!1)) : void s.current.addEventListener("focus", () => {
60
- s.current?.select(), I(!1);
61
- }, { once: !0 });
62
- }, [G, o]);
63
- const [re, { width: Z }] = fe();
64
- return i(ge, { ref: Y, title: A ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: K, onFocus: () => q(!0), onBlur: () => {
65
- q(!1), V(!1);
66
- }, PaperProps: { elevation: X ? 3 : 1 }, ...P, children: p(me, { dividers: !0, ref: re, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
67
- if (e.key === "h" && e.ctrlKey) M(!0), s.current?.contains(document.activeElement) && u.current?.focus();
68
- else if (e.key === "f" && e.ctrlKey) s.current?.focus();
69
- else if (e.key === "c" && e.altKey) l((t) => {
70
- const n = { ...t };
71
- return n.findOptions.matchCase = !t.findOptions.matchCase, n;
72
- });
73
- else if (e.key === "e" && e.altKey) l((t) => {
74
- const n = { ...t };
75
- return n.findOptions.matchEntireCell = !t.findOptions.matchEntireCell, n;
76
- });
77
- else {
78
- if (e.key !== "r" || !e.altKey) return;
79
- l((t) => {
80
- const n = { ...t };
81
- return n.findOptions.useRegex = !t.findOptions.useRegex, n;
82
- });
83
- }
84
- e.preventDefault();
85
- }, 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) => {
86
- le(e);
87
- }, preventFocus: !0, label: "Toggle Additional Options", icon: x(i(xe, {})) }), i(m, { selected: f, onSelectToggle: (e) => {
88
- M(e);
89
- }, preventFocus: !0, label: "Toggle Replace", icon: x(i(he, {})), 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(_, { label: "Find", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), minWidth: Z > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(5))})` }, inputProps: { draggable: !1, ref: s, className: "input", autoFocus: !0, spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } }, endAdornment: i(Oe, { 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) => {
90
- l((t) => {
91
- const n = { ...t };
92
- return n.findOptions.matchCase = e, n;
93
- });
94
- }, label: "Match Case", shortcut: { key: "C", modifiers: [y.Alt] }, icon: x(i(Ce, {})) }), i(m, { selected: o.findOptions.matchEntireCell, onSelectToggle: (e) => {
95
- l((t) => {
96
- const n = { ...t };
97
- return n.findOptions.matchEntireCell = e, n;
98
- });
99
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [y.Alt] }, icon: x(i(ye, {})) }), i(m, { selected: o.findOptions.useRegex, onSelectToggle: (e) => {
100
- l((t) => {
101
- const n = { ...t };
102
- return n.findOptions.useRegex = e, n;
103
- });
104
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [y.Alt] }, icon: x(i(be, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e) => J ? `${e.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e) => J ? `${e.palette.error.main} !important` : void 0 } }, value: o.findText ?? "", onChange: (e) => {
105
- l((t) => {
106
- const n = { ...t };
107
- return n.findText = e.target.value, n;
108
- });
109
- }, onKeyDown: (e) => Q(e, !1), onContextMenu: (e) => {
110
- e.stopPropagation();
111
- } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
112
- F(!1, !1);
113
- }, touchRippleRef: $, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Se, {}) : i(De, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
114
- F(!0, !1);
115
- }, touchRippleRef: W, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Le, {}) : i(Ie, {})), disabled: !o.findText })] }), i(ee, { in: f, timeout: ne, onExit: () => {
116
- s.current?.focus();
117
- }, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(_, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${k("#fff", w(5))}, ${k("#fff", w(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) => {
118
- l((t) => {
119
- const n = { ...t };
120
- return n.replaceText = e.target.value, n;
121
- });
122
- }, onKeyDown: (e) => Q(e, !0), onContextMenu: (e) => {
123
- e.stopPropagation();
124
- } }), i(m, { onSelectToggle: (e) => {
125
- F(!0, !0);
126
- }, touchRippleRef: j, label: "Replace", shortcut: { key: "Enter" }, icon: x(i(ve, {})), disabled: !o.findText }), i(m, { onSelectToggle: (e) => {
127
- F(!0, !0, !0);
128
- }, touchRippleRef: N, label: "Replace All", shortcut: { key: "Enter", modifiers: [y.Ctrl, y.Alt] }, icon: x(i(Te, {})), disabled: !o.findText })] }) })] })] }), i(ee, { in: B, timeout: ne, onExit: () => {
129
- s.current?.focus();
130
- }, 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(Re, { orientation: "horizontal", sx: { marginBottom: (e) => e.spacing(1.5) } }), p(O, { sx: { display: "flex", flexDirection: Z >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e) => e.spacing(2) }, tabIndex: -1, children: [i(z, { label: "Within", value: o.scope, options: te, onSelect: (e) => {
131
- l((t) => {
132
- const n = { ...t };
133
- return n.scope = e, n;
134
- });
135
- } }), i(z, { label: "Search", value: o.findOptions.orientation !== R.Orientation.Column, options: Ae, onSelect: (e) => {
136
- l((t) => {
137
- const n = { ...t };
138
- return n.findOptions.orientation = e ? R.Orientation.Row : R.Orientation.Column, n;
139
- });
140
- } }), i(z, { label: "Look in", value: f && o.findOptions.fields?.[0] === c.Content.Values ? c.Content.Formulas : o.findOptions.fields?.[0], options: f ? se : ae, onSelect: (e) => {
141
- l((t) => {
142
- const n = { ...t };
143
- return n.findOptions.fields = [e], n;
144
- });
145
- } })] })] }) })] }) });
146
- });
147
- export {
148
- ze as FindReplaceWindow,
149
- te as ScopeOptions,
150
- ze as default
151
- };