@blocknote/mantine 0.14.0 → 0.14.2

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.
@@ -1,10 +1,10 @@
1
- import D, { forwardRef as R, createContext as Ir, useState as Lr, useRef as Le, useCallback as le, useContext as Ar } from "react";
2
- import { useBlockNoteContext as $r, ComponentsContext as zr, BlockNoteViewRaw as Wr } from "@blocknote/react";
3
- import { TextInput as Ge, Menu as C, CheckIcon as He, Group as N, Tabs as J, LoadingOverlay as Br, Button as V, FileInput as Vr, Popover as Yr, PopoverTarget as Ur, PopoverDropdown as Gr, ActionIcon as Ke, Stack as de, Text as X, Badge as Hr, Loader as Kr, Tooltip as qr, MantineProvider as Jr } from "@mantine/core";
4
- import Xr from "use-prefers-color-scheme";
5
- import { assertEmpty as j, isSafari as ue } from "@blocknote/core";
6
- import { mergeRefs as qe, useFocusWithin as Zr, useFocusTrap as Qr } from "@mantine/hooks";
7
- var ce = { exports: {} }, W = {};
1
+ import D, { forwardRef as R, createContext as zr, useState as Wr, useRef as ce, useCallback as de, useContext as Br, useEffect as Vr } from "react";
2
+ import { assertEmpty as j, isSafari as fe, mergeCSSClasses as Yr } from "@blocknote/core";
3
+ import { elementOverflow as Ur, useBlockNoteContext as Kr, ComponentsContext as Gr, BlockNoteViewRaw as Hr } from "@blocknote/react";
4
+ import { TextInput as Je, Menu as O, CheckIcon as qe, Group as N, Tabs as X, LoadingOverlay as Jr, Button as U, FileInput as qr, Popover as Xr, PopoverTarget as Zr, PopoverDropdown as Qr, ActionIcon as Xe, Stack as be, Text as Z, Badge as et, Loader as rt, Tooltip as tt, MantineProvider as nt } from "@mantine/core";
5
+ import ot from "use-prefers-color-scheme";
6
+ import { mergeRefs as ge, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
7
+ var ve = { exports: {} }, V = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,25 +14,25 @@ var ce = { exports: {} }, W = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var Ae;
18
- function et() {
19
- if (Ae)
20
- return W;
21
- Ae = 1;
22
- var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function d(u, v, b) {
24
- var h, w = {}, k = null, Y = null;
25
- b !== void 0 && (k = "" + b), v.key !== void 0 && (k = "" + v.key), v.ref !== void 0 && (Y = v.ref);
26
- for (h in v)
27
- a.call(v, h) && !c.hasOwnProperty(h) && (w[h] = v[h]);
28
- if (u && u.defaultProps)
29
- for (h in v = u.defaultProps, v)
30
- w[h] === void 0 && (w[h] = v[h]);
31
- return { $$typeof: t, type: u, key: k, ref: Y, props: w, _owner: s.current };
17
+ var We;
18
+ function st() {
19
+ if (We)
20
+ return V;
21
+ We = 1;
22
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function f(c, d, b) {
24
+ var h, w = {}, k = null, K = null;
25
+ b !== void 0 && (k = "" + b), d.key !== void 0 && (k = "" + d.key), d.ref !== void 0 && (K = d.ref);
26
+ for (h in d)
27
+ o.call(d, h) && !u.hasOwnProperty(h) && (w[h] = d[h]);
28
+ if (c && c.defaultProps)
29
+ for (h in d = c.defaultProps, d)
30
+ w[h] === void 0 && (w[h] = d[h]);
31
+ return { $$typeof: n, type: c, key: k, ref: K, props: w, _owner: i.current };
32
32
  }
33
- return W.Fragment = n, W.jsx = d, W.jsxs = d, W;
33
+ return V.Fragment = t, V.jsx = f, V.jsxs = f, V;
34
34
  }
35
- var B = {};
35
+ var Y = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -42,54 +42,54 @@ var B = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var $e;
46
- function rt() {
47
- return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
48
- var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), fe = Symbol.iterator, rr = "@@iterator";
49
- function tr(e) {
45
+ var Be;
46
+ function lt() {
47
+ return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var r = D, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), K = Symbol.for("react.offscreen"), me = Symbol.iterator, nr = "@@iterator";
49
+ function or(e) {
50
50
  if (e === null || typeof e != "object")
51
51
  return null;
52
- var o = fe && e[fe] || e[rr];
53
- return typeof o == "function" ? o : null;
52
+ var a = me && e[me] || e[nr];
53
+ return typeof a == "function" ? a : null;
54
54
  }
55
- var I = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
56
  function S(e) {
57
57
  {
58
- for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), f = 1; f < o; f++)
59
- i[f - 1] = arguments[f];
60
- nr("error", e, i);
58
+ for (var a = arguments.length, s = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
59
+ s[v - 1] = arguments[v];
60
+ ar("error", e, s);
61
61
  }
62
62
  }
63
- function nr(e, o, i) {
63
+ function ar(e, a, s) {
64
64
  {
65
- var f = I.ReactDebugCurrentFrame, p = f.getStackAddendum();
66
- p !== "" && (o += "%s", i = i.concat([p]));
67
- var y = i.map(function(g) {
68
- return String(g);
65
+ var v = L.ReactDebugCurrentFrame, p = v.getStackAddendum();
66
+ p !== "" && (a += "%s", s = s.concat([p]));
67
+ var y = s.map(function(m) {
68
+ return String(m);
69
69
  });
70
- y.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, y);
70
+ y.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, y);
71
71
  }
72
72
  }
73
- var ar = !1, or = !1, ir = !1, sr = !1, lr = !1, ve;
74
- ve = Symbol.for("react.module.reference");
75
- function ur(e) {
76
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === c || lr || e === s || e === b || e === h || sr || e === Y || ar || or || ir || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === w || e.$$typeof === d || e.$$typeof === u || e.$$typeof === v || // This needs to include all possible module reference object
73
+ var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, pe;
74
+ pe = Symbol.for("react.module.reference");
75
+ function dr(e) {
76
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === u || cr || e === i || e === b || e === h || ur || e === K || ir || sr || lr || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === w || e.$$typeof === f || e.$$typeof === c || e.$$typeof === d || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- e.$$typeof === ve || e.getModuleId !== void 0));
80
+ e.$$typeof === pe || e.getModuleId !== void 0));
81
81
  }
82
- function cr(e, o, i) {
83
- var f = e.displayName;
84
- if (f)
85
- return f;
86
- var p = o.displayName || o.name || "";
87
- return p !== "" ? i + "(" + p + ")" : i;
82
+ function fr(e, a, s) {
83
+ var v = e.displayName;
84
+ if (v)
85
+ return v;
86
+ var p = a.displayName || a.name || "";
87
+ return p !== "" ? s + "(" + p + ")" : s;
88
88
  }
89
- function be(e) {
89
+ function he(e) {
90
90
  return e.displayName || "Context";
91
91
  }
92
- function O(e) {
92
+ function F(e) {
93
93
  if (e == null)
94
94
  return null;
95
95
  if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -97,13 +97,13 @@ function rt() {
97
97
  if (typeof e == "string")
98
98
  return e;
99
99
  switch (e) {
100
- case a:
100
+ case o:
101
101
  return "Fragment";
102
- case n:
102
+ case t:
103
103
  return "Portal";
104
- case c:
104
+ case u:
105
105
  return "Profiler";
106
- case s:
106
+ case i:
107
107
  return "StrictMode";
108
108
  case b:
109
109
  return "Suspense";
@@ -112,21 +112,21 @@ function rt() {
112
112
  }
113
113
  if (typeof e == "object")
114
114
  switch (e.$$typeof) {
115
- case u:
116
- var o = e;
117
- return be(o) + ".Consumer";
115
+ case c:
116
+ var a = e;
117
+ return he(a) + ".Consumer";
118
+ case f:
119
+ var s = e;
120
+ return he(s._context) + ".Provider";
118
121
  case d:
119
- var i = e;
120
- return be(i._context) + ".Provider";
121
- case v:
122
- return cr(e, e.render, "ForwardRef");
122
+ return fr(e, e.render, "ForwardRef");
123
123
  case w:
124
- var f = e.displayName || null;
125
- return f !== null ? f : O(e.type) || "Memo";
124
+ var v = e.displayName || null;
125
+ return v !== null ? v : F(e.type) || "Memo";
126
126
  case k: {
127
- var p = e, y = p._payload, g = p._init;
127
+ var p = e, y = p._payload, m = p._init;
128
128
  try {
129
- return O(g(y));
129
+ return F(m(y));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,18 +134,18 @@ function rt() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var M = Object.assign, $ = 0, me, ge, pe, he, xe, ye, je;
138
- function Re() {
137
+ var M = Object.assign, z = 0, xe, ye, je, Re, Ee, Te, we;
138
+ function ke() {
139
139
  }
140
- Re.__reactDisabledLog = !0;
141
- function dr() {
140
+ ke.__reactDisabledLog = !0;
141
+ function vr() {
142
142
  {
143
- if ($ === 0) {
144
- me = console.log, ge = console.info, pe = console.warn, he = console.error, xe = console.group, ye = console.groupCollapsed, je = console.groupEnd;
143
+ if (z === 0) {
144
+ xe = console.log, ye = console.info, je = console.warn, Re = console.error, Ee = console.group, Te = console.groupCollapsed, we = console.groupEnd;
145
145
  var e = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: Re,
148
+ value: ke,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
@@ -158,12 +158,12 @@ function rt() {
158
158
  groupEnd: e
159
159
  });
160
160
  }
161
- $++;
161
+ z++;
162
162
  }
163
163
  }
164
- function fr() {
164
+ function br() {
165
165
  {
166
- if ($--, $ === 0) {
166
+ if (z--, z === 0) {
167
167
  var e = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
@@ -171,323 +171,323 @@ function rt() {
171
171
  };
172
172
  Object.defineProperties(console, {
173
173
  log: M({}, e, {
174
- value: me
174
+ value: xe
175
175
  }),
176
176
  info: M({}, e, {
177
- value: ge
177
+ value: ye
178
178
  }),
179
179
  warn: M({}, e, {
180
- value: pe
180
+ value: je
181
181
  }),
182
182
  error: M({}, e, {
183
- value: he
183
+ value: Re
184
184
  }),
185
185
  group: M({}, e, {
186
- value: xe
186
+ value: Ee
187
187
  }),
188
188
  groupCollapsed: M({}, e, {
189
- value: ye
189
+ value: Te
190
190
  }),
191
191
  groupEnd: M({}, e, {
192
- value: je
192
+ value: we
193
193
  })
194
194
  });
195
195
  }
196
- $ < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ z < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var ee = I.ReactCurrentDispatcher, re;
200
- function U(e, o, i) {
199
+ var re = L.ReactCurrentDispatcher, te;
200
+ function G(e, a, s) {
201
201
  {
202
- if (re === void 0)
202
+ if (te === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (p) {
206
- var f = p.stack.trim().match(/\n( *(at )?)/);
207
- re = f && f[1] || "";
206
+ var v = p.stack.trim().match(/\n( *(at )?)/);
207
+ te = v && v[1] || "";
208
208
  }
209
209
  return `
210
- ` + re + e;
210
+ ` + te + e;
211
211
  }
212
212
  }
213
- var te = !1, G;
213
+ var ne = !1, H;
214
214
  {
215
- var vr = typeof WeakMap == "function" ? WeakMap : Map;
216
- G = new vr();
215
+ var gr = typeof WeakMap == "function" ? WeakMap : Map;
216
+ H = new gr();
217
217
  }
218
- function Ee(e, o) {
219
- if (!e || te)
218
+ function Se(e, a) {
219
+ if (!e || ne)
220
220
  return "";
221
221
  {
222
- var i = G.get(e);
223
- if (i !== void 0)
224
- return i;
222
+ var s = H.get(e);
223
+ if (s !== void 0)
224
+ return s;
225
225
  }
226
- var f;
227
- te = !0;
226
+ var v;
227
+ ne = !0;
228
228
  var p = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var y;
231
- y = ee.current, ee.current = null, dr();
231
+ y = re.current, re.current = null, vr();
232
232
  try {
233
- if (o) {
234
- var g = function() {
233
+ if (a) {
234
+ var m = function() {
235
235
  throw Error();
236
236
  };
237
- if (Object.defineProperty(g.prototype, "props", {
237
+ if (Object.defineProperty(m.prototype, "props", {
238
238
  set: function() {
239
239
  throw Error();
240
240
  }
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
- Reflect.construct(g, []);
244
- } catch (F) {
245
- f = F;
243
+ Reflect.construct(m, []);
244
+ } catch (_) {
245
+ v = _;
246
246
  }
247
- Reflect.construct(e, [], g);
247
+ Reflect.construct(e, [], m);
248
248
  } else {
249
249
  try {
250
- g.call();
251
- } catch (F) {
252
- f = F;
250
+ m.call();
251
+ } catch (_) {
252
+ v = _;
253
253
  }
254
- e.call(g.prototype);
254
+ e.call(m.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (F) {
260
- f = F;
259
+ } catch (_) {
260
+ v = _;
261
261
  }
262
262
  e();
263
263
  }
264
- } catch (F) {
265
- if (F && f && typeof F.stack == "string") {
266
- for (var m = F.stack.split(`
267
- `), P = f.stack.split(`
268
- `), E = m.length - 1, T = P.length - 1; E >= 1 && T >= 0 && m[E] !== P[T]; )
264
+ } catch (_) {
265
+ if (_ && v && typeof _.stack == "string") {
266
+ for (var g = _.stack.split(`
267
+ `), P = v.stack.split(`
268
+ `), E = g.length - 1, T = P.length - 1; E >= 1 && T >= 0 && g[E] !== P[T]; )
269
269
  T--;
270
270
  for (; E >= 1 && T >= 0; E--, T--)
271
- if (m[E] !== P[T]) {
271
+ if (g[E] !== P[T]) {
272
272
  if (E !== 1 || T !== 1)
273
273
  do
274
- if (E--, T--, T < 0 || m[E] !== P[T]) {
275
- var _ = `
276
- ` + m[E].replace(" at new ", " at ");
277
- return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, _), _;
274
+ if (E--, T--, T < 0 || g[E] !== P[T]) {
275
+ var C = `
276
+ ` + g[E].replace(" at new ", " at ");
277
+ return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, C), C;
278
278
  }
279
279
  while (E >= 1 && T >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- te = !1, ee.current = y, fr(), Error.prepareStackTrace = p;
284
+ ne = !1, re.current = y, br(), Error.prepareStackTrace = p;
285
285
  }
286
- var A = e ? e.displayName || e.name : "", Ie = A ? U(A) : "";
287
- return typeof e == "function" && G.set(e, Ie), Ie;
286
+ var $ = e ? e.displayName || e.name : "", I = $ ? G($) : "";
287
+ return typeof e == "function" && H.set(e, I), I;
288
288
  }
289
- function br(e, o, i) {
290
- return Ee(e, !1);
289
+ function mr(e, a, s) {
290
+ return Se(e, !1);
291
291
  }
292
- function mr(e) {
293
- var o = e.prototype;
294
- return !!(o && o.isReactComponent);
292
+ function pr(e) {
293
+ var a = e.prototype;
294
+ return !!(a && a.isReactComponent);
295
295
  }
296
- function H(e, o, i) {
296
+ function J(e, a, s) {
297
297
  if (e == null)
298
298
  return "";
299
299
  if (typeof e == "function")
300
- return Ee(e, mr(e));
300
+ return Se(e, pr(e));
301
301
  if (typeof e == "string")
302
- return U(e);
302
+ return G(e);
303
303
  switch (e) {
304
304
  case b:
305
- return U("Suspense");
305
+ return G("Suspense");
306
306
  case h:
307
- return U("SuspenseList");
307
+ return G("SuspenseList");
308
308
  }
309
309
  if (typeof e == "object")
310
310
  switch (e.$$typeof) {
311
- case v:
312
- return br(e.render);
311
+ case d:
312
+ return mr(e.render);
313
313
  case w:
314
- return H(e.type, o, i);
314
+ return J(e.type, a, s);
315
315
  case k: {
316
- var f = e, p = f._payload, y = f._init;
316
+ var v = e, p = v._payload, y = v._init;
317
317
  try {
318
- return H(y(p), o, i);
318
+ return J(y(p), a, s);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var K = Object.prototype.hasOwnProperty, Te = {}, we = I.ReactDebugCurrentFrame;
325
+ var W = Object.prototype.hasOwnProperty, Pe = {}, _e = L.ReactDebugCurrentFrame;
326
326
  function q(e) {
327
327
  if (e) {
328
- var o = e._owner, i = H(e.type, e._source, o ? o.type : null);
329
- we.setExtraStackFrame(i);
328
+ var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
329
+ _e.setExtraStackFrame(s);
330
330
  } else
331
- we.setExtraStackFrame(null);
331
+ _e.setExtraStackFrame(null);
332
332
  }
333
- function gr(e, o, i, f, p) {
333
+ function hr(e, a, s, v, p) {
334
334
  {
335
- var y = Function.call.bind(K);
336
- for (var g in e)
337
- if (y(e, g)) {
338
- var m = void 0;
335
+ var y = Function.call.bind(W);
336
+ for (var m in e)
337
+ if (y(e, m)) {
338
+ var g = void 0;
339
339
  try {
340
- if (typeof e[g] != "function") {
341
- var P = Error((f || "React class") + ": " + i + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
+ if (typeof e[m] != "function") {
341
+ var P = Error((v || "React class") + ": " + s + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
342
  throw P.name = "Invariant Violation", P;
343
343
  }
344
- m = e[g](o, g, f, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ g = e[m](a, m, v, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
345
  } catch (E) {
346
- m = E;
346
+ g = E;
347
347
  }
348
- m && !(m instanceof Error) && (q(p), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", i, g, typeof m), q(null)), m instanceof Error && !(m.message in Te) && (Te[m.message] = !0, q(p), S("Failed %s type: %s", i, m.message), q(null));
348
+ g && !(g instanceof Error) && (q(p), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", s, m, typeof g), q(null)), g instanceof Error && !(g.message in Pe) && (Pe[g.message] = !0, q(p), S("Failed %s type: %s", s, g.message), q(null));
349
349
  }
350
350
  }
351
351
  }
352
- var pr = Array.isArray;
353
- function ne(e) {
354
- return pr(e);
352
+ var xr = Array.isArray;
353
+ function oe(e) {
354
+ return xr(e);
355
355
  }
356
- function hr(e) {
356
+ function yr(e) {
357
357
  {
358
- var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
359
- return i;
358
+ var a = typeof Symbol == "function" && Symbol.toStringTag, s = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
359
+ return s;
360
360
  }
361
361
  }
362
- function xr(e) {
362
+ function jr(e) {
363
363
  try {
364
- return ke(e), !1;
364
+ return Ce(e), !1;
365
365
  } catch {
366
366
  return !0;
367
367
  }
368
368
  }
369
- function ke(e) {
369
+ function Ce(e) {
370
370
  return "" + e;
371
371
  }
372
- function Se(e) {
373
- if (xr(e))
374
- return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(e)), ke(e);
372
+ function Oe(e) {
373
+ if (jr(e))
374
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yr(e)), Ce(e);
375
375
  }
376
- var z = I.ReactCurrentOwner, yr = {
376
+ var B = L.ReactCurrentOwner, Rr = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
- }, Pe, _e, ae;
381
+ }, Fe, De, ae;
382
382
  ae = {};
383
- function jr(e) {
384
- if (K.call(e, "ref")) {
385
- var o = Object.getOwnPropertyDescriptor(e, "ref").get;
386
- if (o && o.isReactWarning)
383
+ function Er(e) {
384
+ if (W.call(e, "ref")) {
385
+ var a = Object.getOwnPropertyDescriptor(e, "ref").get;
386
+ if (a && a.isReactWarning)
387
387
  return !1;
388
388
  }
389
389
  return e.ref !== void 0;
390
390
  }
391
- function Rr(e) {
392
- if (K.call(e, "key")) {
393
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
394
- if (o && o.isReactWarning)
391
+ function Tr(e) {
392
+ if (W.call(e, "key")) {
393
+ var a = Object.getOwnPropertyDescriptor(e, "key").get;
394
+ if (a && a.isReactWarning)
395
395
  return !1;
396
396
  }
397
397
  return e.key !== void 0;
398
398
  }
399
- function Er(e, o) {
400
- if (typeof e.ref == "string" && z.current && o && z.current.stateNode !== o) {
401
- var i = O(z.current.type);
402
- ae[i] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(z.current.type), e.ref), ae[i] = !0);
399
+ function wr(e, a) {
400
+ if (typeof e.ref == "string" && B.current && a && B.current.stateNode !== a) {
401
+ var s = F(B.current.type);
402
+ ae[s] || (S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(B.current.type), e.ref), ae[s] = !0);
403
403
  }
404
404
  }
405
- function Tr(e, o) {
405
+ function kr(e, a) {
406
406
  {
407
- var i = function() {
408
- Pe || (Pe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
407
+ var s = function() {
408
+ Fe || (Fe = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
409
409
  };
410
- i.isReactWarning = !0, Object.defineProperty(e, "key", {
411
- get: i,
410
+ s.isReactWarning = !0, Object.defineProperty(e, "key", {
411
+ get: s,
412
412
  configurable: !0
413
413
  });
414
414
  }
415
415
  }
416
- function wr(e, o) {
416
+ function Sr(e, a) {
417
417
  {
418
- var i = function() {
419
- _e || (_e = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
418
+ var s = function() {
419
+ De || (De = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
420
420
  };
421
- i.isReactWarning = !0, Object.defineProperty(e, "ref", {
422
- get: i,
421
+ s.isReactWarning = !0, Object.defineProperty(e, "ref", {
422
+ get: s,
423
423
  configurable: !0
424
424
  });
425
425
  }
426
426
  }
427
- var kr = function(e, o, i, f, p, y, g) {
428
- var m = {
427
+ var Pr = function(e, a, s, v, p, y, m) {
428
+ var g = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
- $$typeof: t,
430
+ $$typeof: n,
431
431
  // Built-in properties that belong on the element
432
432
  type: e,
433
- key: o,
434
- ref: i,
435
- props: g,
433
+ key: a,
434
+ ref: s,
435
+ props: m,
436
436
  // Record the component responsible for creating this element.
437
437
  _owner: y
438
438
  };
439
- return m._store = {}, Object.defineProperty(m._store, "validated", {
439
+ return g._store = {}, Object.defineProperty(g._store, "validated", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !0,
443
443
  value: !1
444
- }), Object.defineProperty(m, "_self", {
444
+ }), Object.defineProperty(g, "_self", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
- value: f
449
- }), Object.defineProperty(m, "_source", {
448
+ value: v
449
+ }), Object.defineProperty(g, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
453
  value: p
454
- }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
454
+ }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
455
455
  };
456
- function Sr(e, o, i, f, p) {
456
+ function _r(e, a, s, v, p) {
457
457
  {
458
- var y, g = {}, m = null, P = null;
459
- i !== void 0 && (Se(i), m = "" + i), Rr(o) && (Se(o.key), m = "" + o.key), jr(o) && (P = o.ref, Er(o, p));
460
- for (y in o)
461
- K.call(o, y) && !yr.hasOwnProperty(y) && (g[y] = o[y]);
458
+ var y, m = {}, g = null, P = null;
459
+ s !== void 0 && (Oe(s), g = "" + s), Tr(a) && (Oe(a.key), g = "" + a.key), Er(a) && (P = a.ref, wr(a, p));
460
+ for (y in a)
461
+ W.call(a, y) && !Rr.hasOwnProperty(y) && (m[y] = a[y]);
462
462
  if (e && e.defaultProps) {
463
463
  var E = e.defaultProps;
464
464
  for (y in E)
465
- g[y] === void 0 && (g[y] = E[y]);
465
+ m[y] === void 0 && (m[y] = E[y]);
466
466
  }
467
- if (m || P) {
467
+ if (g || P) {
468
468
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
469
- m && Tr(g, T), P && wr(g, T);
469
+ g && kr(m, T), P && Sr(m, T);
470
470
  }
471
- return kr(e, m, P, p, f, z.current, g);
471
+ return Pr(e, g, P, p, v, B.current, m);
472
472
  }
473
473
  }
474
- var oe = I.ReactCurrentOwner, Ce = I.ReactDebugCurrentFrame;
475
- function L(e) {
474
+ var ie = L.ReactCurrentOwner, Ne = L.ReactDebugCurrentFrame;
475
+ function A(e) {
476
476
  if (e) {
477
- var o = e._owner, i = H(e.type, e._source, o ? o.type : null);
478
- Ce.setExtraStackFrame(i);
477
+ var a = e._owner, s = J(e.type, e._source, a ? a.type : null);
478
+ Ne.setExtraStackFrame(s);
479
479
  } else
480
- Ce.setExtraStackFrame(null);
480
+ Ne.setExtraStackFrame(null);
481
481
  }
482
- var ie;
483
- ie = !1;
484
- function se(e) {
485
- return typeof e == "object" && e !== null && e.$$typeof === t;
482
+ var se;
483
+ se = !1;
484
+ function le(e) {
485
+ return typeof e == "object" && e !== null && e.$$typeof === n;
486
486
  }
487
- function Oe() {
487
+ function Me() {
488
488
  {
489
- if (oe.current) {
490
- var e = O(oe.current.type);
489
+ if (ie.current) {
490
+ var e = F(ie.current.type);
491
491
  if (e)
492
492
  return `
493
493
 
@@ -496,151 +496,166 @@ Check the render method of \`` + e + "`.";
496
496
  return "";
497
497
  }
498
498
  }
499
- function Pr(e) {
499
+ function Cr(e) {
500
500
  {
501
501
  if (e !== void 0) {
502
- var o = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
502
+ var a = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
503
503
  return `
504
504
 
505
- Check your code at ` + o + ":" + i + ".";
505
+ Check your code at ` + a + ":" + s + ".";
506
506
  }
507
507
  return "";
508
508
  }
509
509
  }
510
- var Fe = {};
511
- function _r(e) {
510
+ var Ie = {};
511
+ function Or(e) {
512
512
  {
513
- var o = Oe();
514
- if (!o) {
515
- var i = typeof e == "string" ? e : e.displayName || e.name;
516
- i && (o = `
513
+ var a = Me();
514
+ if (!a) {
515
+ var s = typeof e == "string" ? e : e.displayName || e.name;
516
+ s && (a = `
517
517
 
518
- Check the top-level render call using <` + i + ">.");
518
+ Check the top-level render call using <` + s + ">.");
519
519
  }
520
- return o;
520
+ return a;
521
521
  }
522
522
  }
523
- function De(e, o) {
523
+ function Le(e, a) {
524
524
  {
525
525
  if (!e._store || e._store.validated || e.key != null)
526
526
  return;
527
527
  e._store.validated = !0;
528
- var i = _r(o);
529
- if (Fe[i])
528
+ var s = Or(a);
529
+ if (Ie[s])
530
530
  return;
531
- Fe[i] = !0;
532
- var f = "";
533
- e && e._owner && e._owner !== oe.current && (f = " It was passed a child from " + O(e._owner.type) + "."), L(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, f), L(null);
531
+ Ie[s] = !0;
532
+ var v = "";
533
+ e && e._owner && e._owner !== ie.current && (v = " It was passed a child from " + F(e._owner.type) + "."), A(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, v), A(null);
534
534
  }
535
535
  }
536
- function Ne(e, o) {
536
+ function Ae(e, a) {
537
537
  {
538
538
  if (typeof e != "object")
539
539
  return;
540
- if (ne(e))
541
- for (var i = 0; i < e.length; i++) {
542
- var f = e[i];
543
- se(f) && De(f, o);
540
+ if (oe(e))
541
+ for (var s = 0; s < e.length; s++) {
542
+ var v = e[s];
543
+ le(v) && Le(v, a);
544
544
  }
545
- else if (se(e))
545
+ else if (le(e))
546
546
  e._store && (e._store.validated = !0);
547
547
  else if (e) {
548
- var p = tr(e);
548
+ var p = or(e);
549
549
  if (typeof p == "function" && p !== e.entries)
550
- for (var y = p.call(e), g; !(g = y.next()).done; )
551
- se(g.value) && De(g.value, o);
550
+ for (var y = p.call(e), m; !(m = y.next()).done; )
551
+ le(m.value) && Le(m.value, a);
552
552
  }
553
553
  }
554
554
  }
555
- function Cr(e) {
555
+ function Fr(e) {
556
556
  {
557
- var o = e.type;
558
- if (o == null || typeof o == "string")
557
+ var a = e.type;
558
+ if (a == null || typeof a == "string")
559
559
  return;
560
- var i;
561
- if (typeof o == "function")
562
- i = o.propTypes;
563
- else if (typeof o == "object" && (o.$$typeof === v || // Note: Memo only checks outer props here.
560
+ var s;
561
+ if (typeof a == "function")
562
+ s = a.propTypes;
563
+ else if (typeof a == "object" && (a.$$typeof === d || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- o.$$typeof === w))
566
- i = o.propTypes;
565
+ a.$$typeof === w))
566
+ s = a.propTypes;
567
567
  else
568
568
  return;
569
- if (i) {
570
- var f = O(o);
571
- gr(i, e.props, "prop", f, e);
572
- } else if (o.PropTypes !== void 0 && !ie) {
573
- ie = !0;
574
- var p = O(o);
569
+ if (s) {
570
+ var v = F(a);
571
+ hr(s, e.props, "prop", v, e);
572
+ } else if (a.PropTypes !== void 0 && !se) {
573
+ se = !0;
574
+ var p = F(a);
575
575
  S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
576
576
  }
577
- typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
579
579
  }
580
- function Or(e) {
580
+ function Dr(e) {
581
581
  {
582
- for (var o = Object.keys(e.props), i = 0; i < o.length; i++) {
583
- var f = o[i];
584
- if (f !== "children" && f !== "key") {
585
- L(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), L(null);
582
+ for (var a = Object.keys(e.props), s = 0; s < a.length; s++) {
583
+ var v = a[s];
584
+ if (v !== "children" && v !== "key") {
585
+ A(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), A(null);
586
586
  break;
587
587
  }
588
588
  }
589
- e.ref !== null && (L(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
589
+ e.ref !== null && (A(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
590
590
  }
591
591
  }
592
- function Me(e, o, i, f, p, y) {
592
+ var $e = {};
593
+ function ze(e, a, s, v, p, y) {
593
594
  {
594
- var g = ur(e);
595
- if (!g) {
596
- var m = "";
597
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var P = Pr(p);
599
- P ? m += P : m += Oe();
595
+ var m = dr(e);
596
+ if (!m) {
597
+ var g = "";
598
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var P = Cr(p);
600
+ P ? g += P : g += Me();
600
601
  var E;
601
- e === null ? E = "null" : ne(e) ? E = "array" : e !== void 0 && e.$$typeof === t ? (E = "<" + (O(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, m);
602
+ e === null ? E = "null" : oe(e) ? E = "array" : e !== void 0 && e.$$typeof === n ? (E = "<" + (F(e.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, g);
602
603
  }
603
- var T = Sr(e, o, i, p, y);
604
+ var T = _r(e, a, s, p, y);
604
605
  if (T == null)
605
606
  return T;
606
- if (g) {
607
- var _ = o.children;
608
- if (_ !== void 0)
609
- if (f)
610
- if (ne(_)) {
611
- for (var A = 0; A < _.length; A++)
612
- Ne(_[A], e);
613
- Object.freeze && Object.freeze(_);
607
+ if (m) {
608
+ var C = a.children;
609
+ if (C !== void 0)
610
+ if (v)
611
+ if (oe(C)) {
612
+ for (var $ = 0; $ < C.length; $++)
613
+ Ae(C[$], e);
614
+ Object.freeze && Object.freeze(C);
614
615
  } else
615
616
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
617
  else
617
- Ne(_, e);
618
+ Ae(C, e);
619
+ }
620
+ if (W.call(a, "key")) {
621
+ var I = F(e), _ = Object.keys(a).filter(function($r) {
622
+ return $r !== "key";
623
+ }), ue = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!$e[I + ue]) {
625
+ var Ar = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
626
+ S(`A props object containing a "key" prop is being spread into JSX:
627
+ let props = %s;
628
+ <%s {...props} />
629
+ React keys must be passed directly to JSX without using spread:
630
+ let props = %s;
631
+ <%s key={someKey} {...props} />`, ue, I, Ar, I), $e[I + ue] = !0;
632
+ }
618
633
  }
619
- return e === a ? Or(T) : Cr(T), T;
634
+ return e === o ? Dr(T) : Fr(T), T;
620
635
  }
621
636
  }
622
- function Fr(e, o, i) {
623
- return Me(e, o, i, !0);
637
+ function Nr(e, a, s) {
638
+ return ze(e, a, s, !0);
624
639
  }
625
- function Dr(e, o, i) {
626
- return Me(e, o, i, !1);
640
+ function Mr(e, a, s) {
641
+ return ze(e, a, s, !1);
627
642
  }
628
- var Nr = Dr, Mr = Fr;
629
- B.Fragment = a, B.jsx = Nr, B.jsxs = Mr;
630
- }()), B;
643
+ var Ir = Mr, Lr = Nr;
644
+ Y.Fragment = o, Y.jsx = Ir, Y.jsxs = Lr;
645
+ }()), Y;
631
646
  }
632
- process.env.NODE_ENV === "production" ? ce.exports = et() : ce.exports = rt();
633
- var l = ce.exports;
634
- const Je = (r, t, n = !1) => {
635
- const a = [];
636
- function s(c, d = "--bn") {
637
- for (const u in c) {
638
- const v = u.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${d}-${v}`;
639
- typeof c[u] != "object" ? (typeof c[u] == "number" && (c[u] = `${c[u]}px`), n ? t.style.removeProperty(b) : t.style.setProperty(b, c[u].toString())) : s(c[u], b);
647
+ process.env.NODE_ENV === "production" ? ve.exports = st() : ve.exports = lt();
648
+ var l = ve.exports;
649
+ const Ze = (r, n, t = !1) => {
650
+ const o = [];
651
+ function i(u, f = "--bn") {
652
+ for (const c in u) {
653
+ const d = c.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${f}-${d}`;
654
+ typeof u[c] != "object" ? (typeof u[c] == "number" && (u[c] = `${u[c]}px`), t ? n.style.removeProperty(b) : n.style.setProperty(b, u[c].toString())) : i(u[c], b);
640
655
  }
641
656
  }
642
- return s(r), a;
643
- }, ze = (r, t) => Je(r, t), tt = {
657
+ return i(r), o;
658
+ }, Ve = (r, n) => Ze(r, n), ut = {
644
659
  colors: {
645
660
  editor: {
646
661
  text: void 0,
@@ -710,292 +725,292 @@ const Je = (r, t, n = !1) => {
710
725
  },
711
726
  borderRadius: void 0,
712
727
  fontFamily: void 0
713
- }, nt = (r) => Je(tt, r, !0), at = R((r, t) => {
728
+ }, ct = (r) => Ze(ut, r, !0), dt = R((r, n) => {
714
729
  const {
715
- className: n,
716
- name: a,
717
- label: s,
718
- icon: c,
719
- value: d,
720
- autoFocus: u,
721
- placeholder: v,
730
+ className: t,
731
+ name: o,
732
+ label: i,
733
+ icon: u,
734
+ value: f,
735
+ autoFocus: c,
736
+ placeholder: d,
722
737
  onKeyDown: b,
723
738
  onChange: h,
724
739
  onSubmit: w,
725
740
  ...k
726
741
  } = r;
727
742
  return j(k), /* @__PURE__ */ l.jsx(
728
- Ge,
743
+ Je,
729
744
  {
730
745
  size: "xs",
731
- className: n,
732
- ref: t,
733
- name: a,
734
- label: s,
735
- leftSection: c,
736
- value: d,
737
- autoFocus: u,
738
- "data-autofocus": u ? "true" : void 0,
739
- placeholder: v,
746
+ className: t,
747
+ ref: n,
748
+ name: o,
749
+ label: i,
750
+ leftSection: u,
751
+ value: f,
752
+ autoFocus: c,
753
+ "data-autofocus": c ? "true" : void 0,
754
+ placeholder: d,
740
755
  onKeyDown: b,
741
756
  onChange: h,
742
757
  onSubmit: w
743
758
  }
744
759
  );
745
760
  });
746
- var Xe = {
761
+ var Qe = {
747
762
  color: void 0,
748
763
  size: void 0,
749
764
  className: void 0,
750
765
  style: void 0,
751
766
  attr: void 0
752
- }, We = D.createContext && /* @__PURE__ */ D.createContext(Xe), ot = ["attr", "size", "title"];
753
- function it(r, t) {
767
+ }, Ye = D.createContext && /* @__PURE__ */ D.createContext(Qe), ft = ["attr", "size", "title"];
768
+ function vt(r, n) {
754
769
  if (r == null)
755
770
  return {};
756
- var n = st(r, t), a, s;
771
+ var t = bt(r, n), o, i;
757
772
  if (Object.getOwnPropertySymbols) {
758
- var c = Object.getOwnPropertySymbols(r);
759
- for (s = 0; s < c.length; s++)
760
- a = c[s], !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(r, a) && (n[a] = r[a]);
773
+ var u = Object.getOwnPropertySymbols(r);
774
+ for (i = 0; i < u.length; i++)
775
+ o = u[i], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (t[o] = r[o]);
761
776
  }
762
- return n;
777
+ return t;
763
778
  }
764
- function st(r, t) {
779
+ function bt(r, n) {
765
780
  if (r == null)
766
781
  return {};
767
- var n = {};
768
- for (var a in r)
769
- if (Object.prototype.hasOwnProperty.call(r, a)) {
770
- if (t.indexOf(a) >= 0)
782
+ var t = {};
783
+ for (var o in r)
784
+ if (Object.prototype.hasOwnProperty.call(r, o)) {
785
+ if (n.indexOf(o) >= 0)
771
786
  continue;
772
- n[a] = r[a];
787
+ t[o] = r[o];
773
788
  }
774
- return n;
789
+ return t;
775
790
  }
776
- function Z() {
777
- return Z = Object.assign ? Object.assign.bind() : function(r) {
778
- for (var t = 1; t < arguments.length; t++) {
779
- var n = arguments[t];
780
- for (var a in n)
781
- Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
791
+ function Q() {
792
+ return Q = Object.assign ? Object.assign.bind() : function(r) {
793
+ for (var n = 1; n < arguments.length; n++) {
794
+ var t = arguments[n];
795
+ for (var o in t)
796
+ Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
782
797
  }
783
798
  return r;
784
- }, Z.apply(this, arguments);
799
+ }, Q.apply(this, arguments);
785
800
  }
786
- function Be(r, t) {
787
- var n = Object.keys(r);
801
+ function Ue(r, n) {
802
+ var t = Object.keys(r);
788
803
  if (Object.getOwnPropertySymbols) {
789
- var a = Object.getOwnPropertySymbols(r);
790
- t && (a = a.filter(function(s) {
791
- return Object.getOwnPropertyDescriptor(r, s).enumerable;
792
- })), n.push.apply(n, a);
804
+ var o = Object.getOwnPropertySymbols(r);
805
+ n && (o = o.filter(function(i) {
806
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
807
+ })), t.push.apply(t, o);
793
808
  }
794
- return n;
809
+ return t;
795
810
  }
796
- function Q(r) {
797
- for (var t = 1; t < arguments.length; t++) {
798
- var n = arguments[t] != null ? arguments[t] : {};
799
- t % 2 ? Be(Object(n), !0).forEach(function(a) {
800
- lt(r, a, n[a]);
801
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Be(Object(n)).forEach(function(a) {
802
- Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
811
+ function ee(r) {
812
+ for (var n = 1; n < arguments.length; n++) {
813
+ var t = arguments[n] != null ? arguments[n] : {};
814
+ n % 2 ? Ue(Object(t), !0).forEach(function(o) {
815
+ gt(r, o, t[o]);
816
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : Ue(Object(t)).forEach(function(o) {
817
+ Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(t, o));
803
818
  });
804
819
  }
805
820
  return r;
806
821
  }
807
- function lt(r, t, n) {
808
- return t = ut(t), t in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
822
+ function gt(r, n, t) {
823
+ return n = mt(n), n in r ? Object.defineProperty(r, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[n] = t, r;
809
824
  }
810
- function ut(r) {
811
- var t = ct(r, "string");
812
- return typeof t == "symbol" ? t : t + "";
825
+ function mt(r) {
826
+ var n = pt(r, "string");
827
+ return typeof n == "symbol" ? n : n + "";
813
828
  }
814
- function ct(r, t) {
829
+ function pt(r, n) {
815
830
  if (typeof r != "object" || !r)
816
831
  return r;
817
- var n = r[Symbol.toPrimitive];
818
- if (n !== void 0) {
819
- var a = n.call(r, t || "default");
820
- if (typeof a != "object")
821
- return a;
832
+ var t = r[Symbol.toPrimitive];
833
+ if (t !== void 0) {
834
+ var o = t.call(r, n || "default");
835
+ if (typeof o != "object")
836
+ return o;
822
837
  throw new TypeError("@@toPrimitive must return a primitive value.");
823
838
  }
824
- return (t === "string" ? String : Number)(r);
839
+ return (n === "string" ? String : Number)(r);
825
840
  }
826
- function Ze(r) {
827
- return r && r.map((t, n) => /* @__PURE__ */ D.createElement(t.tag, Q({
828
- key: n
829
- }, t.attr), Ze(t.child)));
841
+ function er(r) {
842
+ return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag, ee({
843
+ key: t
844
+ }, n.attr), er(n.child)));
830
845
  }
831
- function Qe(r) {
832
- return (t) => /* @__PURE__ */ D.createElement(dt, Z({
833
- attr: Q({}, r.attr)
834
- }, t), Ze(r.child));
846
+ function rr(r) {
847
+ return (n) => /* @__PURE__ */ D.createElement(ht, Q({
848
+ attr: ee({}, r.attr)
849
+ }, n), er(r.child));
835
850
  }
836
- function dt(r) {
837
- var t = (n) => {
851
+ function ht(r) {
852
+ var n = (t) => {
838
853
  var {
839
- attr: a,
840
- size: s,
841
- title: c
842
- } = r, d = it(r, ot), u = s || n.size || "1em", v;
843
- return n.className && (v = n.className), r.className && (v = (v ? v + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", Z({
854
+ attr: o,
855
+ size: i,
856
+ title: u
857
+ } = r, f = vt(r, ft), c = i || t.size || "1em", d;
858
+ return t.className && (d = t.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", Q({
844
859
  stroke: "currentColor",
845
860
  fill: "currentColor",
846
861
  strokeWidth: "0"
847
- }, n.attr, a, d, {
848
- className: v,
849
- style: Q(Q({
850
- color: r.color || n.color
851
- }, n.style), r.style),
852
- height: u,
853
- width: u,
862
+ }, t.attr, o, f, {
863
+ className: d,
864
+ style: ee(ee({
865
+ color: r.color || t.color
866
+ }, t.style), r.style),
867
+ height: c,
868
+ width: c,
854
869
  xmlns: "http://www.w3.org/2000/svg"
855
- }), c && /* @__PURE__ */ D.createElement("title", null, c), r.children);
870
+ }), u && /* @__PURE__ */ D.createElement("title", null, u), r.children);
856
871
  };
857
- return We !== void 0 ? /* @__PURE__ */ D.createElement(We.Consumer, null, (n) => t(n)) : t(Xe);
872
+ return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(Qe);
858
873
  }
859
- function ft(r) {
860
- return Qe({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
874
+ function xt(r) {
875
+ return rr({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(r);
861
876
  }
862
- function vt(r) {
863
- return Qe({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
877
+ function yt(r) {
878
+ return rr({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(r);
864
879
  }
865
- const er = Ir(void 0), bt = R((r, t) => {
880
+ const tr = zr(void 0), jt = R((r, n) => {
866
881
  const {
867
- children: n,
868
- onOpenChange: a,
869
- position: s,
870
- sub: c,
882
+ children: t,
883
+ onOpenChange: o,
884
+ position: i,
885
+ sub: u,
871
886
  // not used
872
- ...d
887
+ ...f
873
888
  } = r;
874
- j(d);
875
- const [u, v] = Lr(!1), b = Le(null), h = Le(), w = le(() => {
889
+ j(f);
890
+ const [c, d] = Wr(!1), b = ce(null), h = ce(), w = de(() => {
876
891
  h.current && clearTimeout(h.current), h.current = setTimeout(() => {
877
- v(!1);
892
+ d(!1);
878
893
  }, 250);
879
- }, []), k = le(() => {
880
- h.current && clearTimeout(h.current), v(!0);
894
+ }, []), k = de(() => {
895
+ h.current && clearTimeout(h.current), d(!0);
881
896
  }, []);
882
897
  return /* @__PURE__ */ l.jsx(
883
- er.Provider,
898
+ tr.Provider,
884
899
  {
885
900
  value: {
886
901
  onMenuMouseOver: k,
887
902
  onMenuMouseLeave: w
888
903
  },
889
904
  children: /* @__PURE__ */ l.jsx(
890
- C.Item,
905
+ O.Item,
891
906
  {
892
907
  className: "bn-menu-item bn-mt-sub-menu-item",
893
- ref: qe(t, b),
908
+ ref: ge(n, b),
894
909
  onMouseOver: k,
895
910
  onMouseLeave: w,
896
911
  children: /* @__PURE__ */ l.jsx(
897
- C,
912
+ O,
898
913
  {
899
914
  portalProps: {
900
915
  target: b.current ? b.current.parentElement : void 0
901
916
  },
902
917
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
903
918
  trigger: "hover",
904
- opened: u,
905
- onClose: () => a == null ? void 0 : a(!1),
906
- onOpen: () => a == null ? void 0 : a(!0),
907
- position: s,
908
- children: n
919
+ opened: c,
920
+ onClose: () => o == null ? void 0 : o(!1),
921
+ onOpen: () => o == null ? void 0 : o(!0),
922
+ position: i,
923
+ children: t
909
924
  }
910
925
  )
911
926
  }
912
927
  )
913
928
  }
914
929
  );
915
- }), mt = (r) => {
916
- const { children: t, onOpenChange: n, position: a, sub: s, ...c } = r;
917
- return j(c), s ? /* @__PURE__ */ l.jsx(bt, { ...r }) : /* @__PURE__ */ l.jsx(
918
- C,
930
+ }), Rt = (r) => {
931
+ const { children: n, onOpenChange: t, position: o, sub: i, ...u } = r;
932
+ return j(u), i ? /* @__PURE__ */ l.jsx(jt, { ...r }) : /* @__PURE__ */ l.jsx(
933
+ O,
919
934
  {
920
935
  withinPortal: !1,
921
936
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
922
- onClose: () => n == null ? void 0 : n(!1),
923
- onOpen: () => n == null ? void 0 : n(!0),
924
- position: a,
925
- children: t
937
+ onClose: () => t == null ? void 0 : t(!1),
938
+ onOpen: () => t == null ? void 0 : t(!0),
939
+ position: o,
940
+ children: n
926
941
  }
927
942
  );
928
- }, gt = R((r, t) => {
929
- const { className: n, children: a, icon: s, checked: c, subTrigger: d, onClick: u, ...v } = r;
930
- return j(v, !1), d ? /* @__PURE__ */ l.jsxs("div", { ref: t, ...v, children: [
931
- a,
932
- /* @__PURE__ */ l.jsx(vt, { size: 15 })
943
+ }, Et = R((r, n) => {
944
+ const { className: t, children: o, icon: i, checked: u, subTrigger: f, onClick: c, ...d } = r;
945
+ return j(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: n, ...d, children: [
946
+ o,
947
+ /* @__PURE__ */ l.jsx(yt, { size: 15 })
933
948
  ] }) : /* @__PURE__ */ l.jsx(
934
- C.Item,
949
+ O.Item,
935
950
  {
936
- className: n,
937
- ref: t,
938
- leftSection: s,
939
- rightSection: c ? /* @__PURE__ */ l.jsx(He, { size: 10 }) : c === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
940
- onClick: u,
941
- ...v,
942
- children: a
951
+ className: t,
952
+ ref: n,
953
+ leftSection: i,
954
+ rightSection: u ? /* @__PURE__ */ l.jsx(qe, { size: 10 }) : u === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
955
+ onClick: c,
956
+ ...d,
957
+ children: o
943
958
  }
944
959
  );
945
- }), pt = (r) => {
960
+ }), Tt = (r) => {
946
961
  const {
947
- children: t,
948
- sub: n,
962
+ children: n,
963
+ sub: t,
949
964
  // unused
950
- ...a
965
+ ...o
951
966
  } = r;
952
- return j(a), /* @__PURE__ */ l.jsx(C.Target, { children: t });
953
- }, ht = R((r, t) => {
967
+ return j(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
968
+ }, wt = R((r, n) => {
954
969
  const {
955
- className: n,
956
- children: a,
957
- sub: s,
970
+ className: t,
971
+ children: o,
972
+ sub: i,
958
973
  //unused
959
- ...c
974
+ ...u
960
975
  } = r;
961
- j(c);
962
- const d = Ar(er);
976
+ j(u);
977
+ const f = Br(tr);
963
978
  return /* @__PURE__ */ l.jsx(
964
- C.Dropdown,
979
+ O.Dropdown,
965
980
  {
966
- className: n,
967
- ref: t,
968
- onMouseOver: d == null ? void 0 : d.onMenuMouseOver,
969
- onMouseLeave: d == null ? void 0 : d.onMenuMouseLeave,
970
- children: a
981
+ className: t,
982
+ ref: n,
983
+ onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
984
+ onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
985
+ children: o
971
986
  }
972
987
  );
973
- }), xt = R((r, t) => {
974
- const { className: n, ...a } = r;
975
- return j(a), /* @__PURE__ */ l.jsx(C.Divider, { className: n, ref: t });
976
- }), yt = R((r, t) => {
977
- const { className: n, children: a, ...s } = r;
978
- return j(s), /* @__PURE__ */ l.jsx(C.Label, { className: n, ref: t, children: a });
979
- }), jt = R((r, t) => {
988
+ }), kt = R((r, n) => {
989
+ const { className: t, ...o } = r;
990
+ return j(o), /* @__PURE__ */ l.jsx(O.Divider, { className: t, ref: n });
991
+ }), St = R((r, n) => {
992
+ const { className: t, children: o, ...i } = r;
993
+ return j(i), /* @__PURE__ */ l.jsx(O.Label, { className: t, ref: n, children: o });
994
+ }), Pt = R((r, n) => {
980
995
  const {
981
- className: n,
982
- tabs: a,
983
- defaultOpenTab: s,
984
- openTab: c,
985
- setOpenTab: d,
986
- loading: u,
987
- ...v
996
+ className: t,
997
+ tabs: o,
998
+ defaultOpenTab: i,
999
+ openTab: u,
1000
+ setOpenTab: f,
1001
+ loading: c,
1002
+ ...d
988
1003
  } = r;
989
- return j(v), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: /* @__PURE__ */ l.jsxs(
990
- J,
1004
+ return j(d), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
1005
+ X,
991
1006
  {
992
- value: c,
993
- defaultValue: s,
994
- onChange: d,
1007
+ value: u,
1008
+ defaultValue: i,
1009
+ onChange: f,
995
1010
  children: [
996
- u && /* @__PURE__ */ l.jsx(Br, { visible: u }),
997
- /* @__PURE__ */ l.jsx(J.List, { children: a.map((b) => /* @__PURE__ */ l.jsx(
998
- J.Tab,
1011
+ c && /* @__PURE__ */ l.jsx(Jr, { visible: c }),
1012
+ /* @__PURE__ */ l.jsx(X.List, { children: o.map((b) => /* @__PURE__ */ l.jsx(
1013
+ X.Tab,
999
1014
  {
1000
1015
  "data-test": `${b.name.toLowerCase()}-tab`,
1001
1016
  value: b.name,
@@ -1003,348 +1018,355 @@ const er = Ir(void 0), bt = R((r, t) => {
1003
1018
  },
1004
1019
  b.name
1005
1020
  )) }),
1006
- a.map((b) => /* @__PURE__ */ l.jsx(J.Panel, { value: b.name, children: b.tabPanel }, b.name))
1021
+ o.map((b) => /* @__PURE__ */ l.jsx(X.Panel, { value: b.name, children: b.tabPanel }, b.name))
1007
1022
  ]
1008
1023
  }
1009
1024
  ) });
1010
- }), Rt = R((r, t) => {
1011
- const { className: n, children: a, onClick: s, label: c, ...d } = r;
1012
- return j(d), /* @__PURE__ */ l.jsx(
1013
- V,
1025
+ }), _t = R((r, n) => {
1026
+ const { className: t, children: o, onClick: i, label: u, ...f } = r;
1027
+ return j(f), /* @__PURE__ */ l.jsx(
1028
+ U,
1014
1029
  {
1015
1030
  size: "xs",
1016
- "aria-label": c,
1017
- className: n,
1018
- ref: t,
1019
- onClick: s,
1020
- ...d,
1021
- children: a
1031
+ "aria-label": u,
1032
+ className: t,
1033
+ ref: n,
1034
+ onClick: i,
1035
+ ...f,
1036
+ children: o
1022
1037
  }
1023
1038
  );
1024
- }), Et = R((r, t) => {
1025
- const { className: n, accept: a, value: s, placeholder: c, onChange: d, ...u } = r;
1026
- return j(u), /* @__PURE__ */ l.jsx(
1027
- Vr,
1039
+ }), Ct = R((r, n) => {
1040
+ const { className: t, accept: o, value: i, placeholder: u, onChange: f, ...c } = r;
1041
+ return j(c), /* @__PURE__ */ l.jsx(
1042
+ qr,
1028
1043
  {
1029
1044
  size: "xs",
1030
- className: n,
1031
- ref: t,
1032
- accept: a,
1033
- value: s,
1034
- placeholder: c,
1035
- onChange: d,
1036
- ...u
1045
+ className: t,
1046
+ ref: n,
1047
+ accept: o,
1048
+ value: i,
1049
+ placeholder: u,
1050
+ onChange: f,
1051
+ ...c
1037
1052
  }
1038
1053
  );
1039
- }), Tt = R((r, t) => {
1040
- const { className: n, children: a, ...s } = r;
1041
- return j(s), /* @__PURE__ */ l.jsx("div", { className: n, ref: t, children: a });
1042
- }), wt = R((r, t) => {
1043
- const { className: n, value: a, placeholder: s, onKeyDown: c, onChange: d, ...u } = r;
1044
- return j(u), /* @__PURE__ */ l.jsx(
1045
- Ge,
1054
+ }), Ot = R((r, n) => {
1055
+ const { className: t, children: o, ...i } = r;
1056
+ return j(i), /* @__PURE__ */ l.jsx("div", { className: t, ref: n, children: o });
1057
+ }), Ft = R((r, n) => {
1058
+ const { className: t, value: o, placeholder: i, onKeyDown: u, onChange: f, ...c } = r;
1059
+ return j(c), /* @__PURE__ */ l.jsx(
1060
+ Je,
1046
1061
  {
1047
1062
  size: "xs",
1048
1063
  "data-test": "embed-input",
1049
- className: n,
1050
- ref: t,
1051
- value: a,
1052
- placeholder: s,
1053
- onKeyDown: c,
1054
- onChange: d
1064
+ className: t,
1065
+ ref: n,
1066
+ value: o,
1067
+ placeholder: i,
1068
+ onKeyDown: u,
1069
+ onChange: f
1055
1070
  }
1056
1071
  );
1057
- }), kt = (r) => {
1058
- const { children: t, opened: n, position: a, ...s } = r;
1059
- return j(s), /* @__PURE__ */ l.jsx(
1060
- Yr,
1072
+ }), Dt = (r) => {
1073
+ const { children: n, opened: t, position: o, ...i } = r;
1074
+ return j(i), /* @__PURE__ */ l.jsx(
1075
+ Xr,
1061
1076
  {
1062
1077
  withinPortal: !1,
1063
1078
  zIndex: 1e4,
1064
- opened: n,
1065
- position: a,
1066
- children: t
1079
+ opened: t,
1080
+ position: o,
1081
+ children: n
1067
1082
  }
1068
1083
  );
1069
- }, St = (r) => {
1070
- const { children: t, ...n } = r;
1071
- return j(n), /* @__PURE__ */ l.jsx(Ur, { children: t });
1072
- }, Pt = R((r, t) => {
1084
+ }, Nt = (r) => {
1085
+ const { children: n, ...t } = r;
1086
+ return j(t), /* @__PURE__ */ l.jsx(Zr, { children: n });
1087
+ }, Mt = R((r, n) => {
1073
1088
  const {
1074
- className: n,
1075
- children: a,
1076
- variant: s,
1089
+ className: t,
1090
+ children: o,
1091
+ variant: i,
1077
1092
  // unused
1078
- ...c
1093
+ ...u
1079
1094
  } = r;
1080
- return j(c), /* @__PURE__ */ l.jsx(Gr, { className: n, ref: t, children: a });
1081
- }), _t = R((r, t) => {
1082
- const { className: n, children: a, ...s } = r;
1083
- return j(s, !1), /* @__PURE__ */ l.jsx(
1095
+ return j(u), /* @__PURE__ */ l.jsx(Qr, { className: t, ref: n, children: o });
1096
+ }), It = R((r, n) => {
1097
+ const { className: t, children: o, ...i } = r;
1098
+ return j(i, !1), /* @__PURE__ */ l.jsx(
1084
1099
  N,
1085
1100
  {
1086
1101
  align: "center",
1087
1102
  gap: 0,
1088
- className: n,
1089
- ref: t,
1090
- ...s,
1091
- children: a
1103
+ className: t,
1104
+ ref: n,
1105
+ ...i,
1106
+ children: o
1092
1107
  }
1093
1108
  );
1094
- }), Ct = R((r, t) => {
1109
+ }), Lt = R((r, n) => {
1095
1110
  const {
1096
- className: n,
1097
- children: a,
1098
- icon: s,
1099
- onClick: c,
1100
- onDragEnd: d,
1101
- onDragStart: u,
1102
- draggable: v,
1111
+ className: t,
1112
+ children: o,
1113
+ icon: i,
1114
+ onClick: u,
1115
+ onDragEnd: f,
1116
+ onDragStart: c,
1117
+ draggable: d,
1103
1118
  label: b,
1104
1119
  ...h
1105
1120
  } = r;
1106
- return j(h, !1), s ? /* @__PURE__ */ l.jsx(
1107
- Ke,
1121
+ return j(h, !1), i ? /* @__PURE__ */ l.jsx(
1122
+ Xe,
1108
1123
  {
1109
1124
  size: 24,
1110
- className: n,
1111
- ref: t,
1112
- onClick: c,
1113
- onDragEnd: d,
1114
- onDragStart: u,
1115
- draggable: v,
1125
+ className: t,
1126
+ ref: n,
1127
+ onClick: u,
1128
+ onDragEnd: f,
1129
+ onDragStart: c,
1130
+ draggable: d,
1116
1131
  "aria-label": b,
1117
1132
  ...h,
1118
- children: s
1133
+ children: i
1119
1134
  }
1120
1135
  ) : /* @__PURE__ */ l.jsx(
1121
- V,
1136
+ U,
1122
1137
  {
1123
- className: n,
1124
- ref: t,
1125
- onClick: c,
1126
- onDragEnd: d,
1127
- onDragStart: u,
1128
- draggable: v,
1138
+ className: t,
1139
+ ref: n,
1140
+ onClick: u,
1141
+ onDragEnd: f,
1142
+ onDragStart: c,
1143
+ draggable: d,
1129
1144
  "aria-label": b,
1130
1145
  ...h,
1131
- children: a
1146
+ children: o
1132
1147
  }
1133
1148
  );
1134
- }), Ot = R((r, t) => {
1135
- const { className: n, children: a, id: s, ...c } = r;
1136
- return j(c), /* @__PURE__ */ l.jsx(
1137
- de,
1149
+ }), At = R((r, n) => {
1150
+ const { className: t, children: o, id: i, ...u } = r;
1151
+ return j(u), /* @__PURE__ */ l.jsx(
1152
+ be,
1138
1153
  {
1139
1154
  gap: 0,
1140
- className: n,
1141
- ref: t,
1142
- id: s,
1155
+ className: t,
1156
+ ref: n,
1157
+ id: i,
1143
1158
  role: "listbox",
1144
- children: a
1159
+ children: o
1145
1160
  }
1146
1161
  );
1147
- }), Ft = R((r, t) => {
1148
- const { className: n, children: a, ...s } = r;
1149
- return j(s), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-label", children: a }) });
1150
- }), Dt = R((r, t) => {
1151
- const { className: n, isSelected: a, onClick: s, item: c, id: d, ...u } = r;
1152
- return j(u), /* @__PURE__ */ l.jsxs(
1162
+ }), $t = R((r, n) => {
1163
+ const { className: t, children: o, ...i } = r;
1164
+ return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
1165
+ }), zt = R((r, n) => {
1166
+ const { className: t, isSelected: o, onClick: i, item: u, id: f, ...c } = r;
1167
+ j(c);
1168
+ const d = ce(null);
1169
+ return Vr(() => {
1170
+ if (!d.current || !o)
1171
+ return;
1172
+ const b = Ur(d.current);
1173
+ b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
1174
+ }, [o]), /* @__PURE__ */ l.jsxs(
1153
1175
  N,
1154
1176
  {
1155
1177
  gap: 0,
1156
- className: n,
1157
- ref: t,
1158
- id: d,
1178
+ className: t,
1179
+ ref: ge(n, d),
1180
+ id: f,
1159
1181
  role: "option",
1160
- onClick: s,
1161
- "aria-selected": a || void 0,
1182
+ onClick: i,
1183
+ "aria-selected": o || void 0,
1162
1184
  children: [
1163
- c.icon && /* @__PURE__ */ l.jsx(
1185
+ u.icon && /* @__PURE__ */ l.jsx(
1164
1186
  N,
1165
1187
  {
1166
1188
  className: "bn-mt-suggestion-menu-item-section",
1167
1189
  "data-position": "left",
1168
- children: c.icon
1190
+ children: u.icon
1169
1191
  }
1170
1192
  ),
1171
- /* @__PURE__ */ l.jsxs(de, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
1172
- /* @__PURE__ */ l.jsx(X, { className: "bn-mt-suggestion-menu-item-title", children: c.title }),
1173
- /* @__PURE__ */ l.jsx(X, { className: "bn-mt-suggestion-menu-item-subtitle", children: c.subtext })
1193
+ /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
1194
+ /* @__PURE__ */ l.jsx(Z, { className: "bn-mt-suggestion-menu-item-title", children: u.title }),
1195
+ /* @__PURE__ */ l.jsx(Z, { className: "bn-mt-suggestion-menu-item-subtitle", children: u.subtext })
1174
1196
  ] }),
1175
- c.badge && /* @__PURE__ */ l.jsx(
1197
+ u.badge && /* @__PURE__ */ l.jsx(
1176
1198
  N,
1177
1199
  {
1178
1200
  "data-position": "right",
1179
1201
  className: "bn-mt-suggestion-menu-item-section",
1180
- children: /* @__PURE__ */ l.jsx(Hr, { size: "xs", children: c.badge })
1202
+ children: /* @__PURE__ */ l.jsx(et, { size: "xs", children: u.badge })
1181
1203
  }
1182
1204
  )
1183
1205
  ]
1184
1206
  }
1185
1207
  );
1186
- }), Nt = R((r, t) => {
1187
- const { className: n, children: a, ...s } = r;
1188
- return j(s), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: a });
1189
- }), Mt = R((r, t) => {
1208
+ }), Wt = R((r, n) => {
1209
+ const { className: t, children: o, ...i } = r;
1210
+ return j(i), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: o });
1211
+ }), Bt = R((r, n) => {
1190
1212
  const {
1191
- className: n,
1192
- children: a,
1213
+ className: t,
1214
+ children: o,
1193
1215
  // unused, using "dots" instead
1194
- ...s
1216
+ ...i
1195
1217
  } = r;
1196
- return j(s), /* @__PURE__ */ l.jsx(Kr, { className: n, type: "dots", ref: t });
1197
- }), It = R((r, t) => {
1218
+ return j(i), /* @__PURE__ */ l.jsx(rt, { className: t, type: "dots", ref: n });
1219
+ }), Vt = R((r, n) => {
1198
1220
  const {
1199
- className: n,
1200
- children: a,
1201
- draggable: s,
1202
- onDragStart: c,
1203
- onDragEnd: d,
1204
- style: u,
1205
- label: v,
1221
+ className: t,
1222
+ children: o,
1223
+ draggable: i,
1224
+ onDragStart: u,
1225
+ onDragEnd: f,
1226
+ style: c,
1227
+ label: d,
1206
1228
  ...b
1207
1229
  } = r;
1208
1230
  return j(b, !1), /* @__PURE__ */ l.jsx(
1209
- V,
1231
+ U,
1210
1232
  {
1211
- className: n,
1212
- ref: t,
1213
- "aria-label": v,
1214
- draggable: s,
1215
- onDragStart: c,
1216
- onDragEnd: d,
1217
- style: u,
1233
+ className: t,
1234
+ ref: n,
1235
+ "aria-label": d,
1236
+ draggable: i,
1237
+ onDragStart: u,
1238
+ onDragEnd: f,
1239
+ style: c,
1218
1240
  ...b,
1219
- children: a
1241
+ children: o
1220
1242
  }
1221
1243
  );
1222
- }), Ve = R(
1223
- (r, t) => {
1224
- const { className: n, children: a, onMouseEnter: s, onMouseLeave: c, ...d } = r;
1225
- j(d);
1226
- const { ref: u, focused: v } = Zr(), b = Qr(v), h = qe(t, u, b);
1244
+ }), Ke = R(
1245
+ (r, n) => {
1246
+ const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1247
+ j(f);
1248
+ const { ref: c, focused: d } = at(), b = it(d), h = ge(n, c, b);
1227
1249
  return /* @__PURE__ */ l.jsx(
1228
1250
  N,
1229
1251
  {
1230
- className: n,
1252
+ className: t,
1231
1253
  ref: h,
1232
1254
  role: "toolbar",
1233
- onMouseEnter: s,
1234
- onMouseLeave: c,
1235
- children: a
1255
+ onMouseEnter: i,
1256
+ onMouseLeave: u,
1257
+ children: o
1236
1258
  }
1237
1259
  );
1238
1260
  }
1239
- ), Lt = (r) => /* @__PURE__ */ l.jsxs(de, { gap: 0, className: "bn-tooltip", children: [
1240
- /* @__PURE__ */ l.jsx(X, { size: "sm", children: r.mainTooltip }),
1241
- r.secondaryTooltip && /* @__PURE__ */ l.jsx(X, { size: "xs", children: r.secondaryTooltip })
1242
- ] }), Ye = R(
1243
- (r, t) => {
1261
+ ), Yt = (r) => /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-tooltip", children: [
1262
+ /* @__PURE__ */ l.jsx(Z, { size: "sm", children: r.mainTooltip }),
1263
+ r.secondaryTooltip && /* @__PURE__ */ l.jsx(Z, { size: "xs", children: r.secondaryTooltip })
1264
+ ] }), Ge = R(
1265
+ (r, n) => {
1244
1266
  const {
1245
- className: n,
1246
- children: a,
1247
- mainTooltip: s,
1248
- secondaryTooltip: c,
1249
- icon: d,
1250
- isSelected: u,
1251
- isDisabled: v,
1267
+ className: t,
1268
+ children: o,
1269
+ mainTooltip: i,
1270
+ secondaryTooltip: u,
1271
+ icon: f,
1272
+ isSelected: c,
1273
+ isDisabled: d,
1252
1274
  onClick: b,
1253
1275
  label: h,
1254
1276
  ...w
1255
1277
  } = r;
1256
1278
  return j(w, !1), /* @__PURE__ */ l.jsx(
1257
- qr,
1279
+ tt,
1258
1280
  {
1259
1281
  withinPortal: !1,
1260
1282
  label: /* @__PURE__ */ l.jsx(
1261
- Lt,
1283
+ Yt,
1262
1284
  {
1263
- mainTooltip: s,
1264
- secondaryTooltip: c
1285
+ mainTooltip: i,
1286
+ secondaryTooltip: u
1265
1287
  }
1266
1288
  ),
1267
- children: a ? /* @__PURE__ */ l.jsx(
1268
- V,
1289
+ children: o ? /* @__PURE__ */ l.jsx(
1290
+ U,
1269
1291
  {
1270
1292
  "aria-label": h,
1271
- className: n,
1293
+ className: t,
1272
1294
  onMouseDown: (k) => {
1273
- ue() && k.currentTarget.focus();
1295
+ fe() && k.currentTarget.focus();
1274
1296
  },
1275
1297
  onClick: b,
1276
- "aria-pressed": u,
1277
- "data-selected": u || void 0,
1278
- "data-test": s.slice(0, 1).toLowerCase() + s.replace(/\s+/g, "").slice(1),
1298
+ "aria-pressed": c,
1299
+ "data-selected": c || void 0,
1300
+ "data-test": i.slice(0, 1).toLowerCase() + i.replace(/\s+/g, "").slice(1),
1279
1301
  size: "xs",
1280
- disabled: v || !1,
1281
- ref: t,
1302
+ disabled: d || !1,
1303
+ ref: n,
1282
1304
  ...w,
1283
- children: a
1305
+ children: o
1284
1306
  }
1285
1307
  ) : /* @__PURE__ */ l.jsx(
1286
- Ke,
1308
+ Xe,
1287
1309
  {
1288
- className: n,
1310
+ className: t,
1289
1311
  "aria-label": h,
1290
1312
  onMouseDown: (k) => {
1291
- ue() && k.currentTarget.focus();
1313
+ fe() && k.currentTarget.focus();
1292
1314
  },
1293
1315
  onClick: b,
1294
- "aria-pressed": u,
1295
- "data-selected": u || void 0,
1296
- "data-test": s.slice(0, 1).toLowerCase() + s.replace(/\s+/g, "").slice(1),
1316
+ "aria-pressed": c,
1317
+ "data-selected": c || void 0,
1318
+ "data-test": i.slice(0, 1).toLowerCase() + i.replace(/\s+/g, "").slice(1),
1297
1319
  size: 30,
1298
- disabled: v || !1,
1299
- ref: t,
1320
+ disabled: d || !1,
1321
+ ref: n,
1300
1322
  ...w,
1301
- children: d
1323
+ children: f
1302
1324
  }
1303
1325
  )
1304
1326
  }
1305
1327
  );
1306
1328
  }
1307
- ), At = R((r, t) => {
1308
- const { className: n, items: a, isDisabled: s, ...c } = r;
1309
- j(c);
1310
- const d = a.filter((u) => u.isSelected)[0];
1311
- return d ? /* @__PURE__ */ l.jsxs(
1312
- C,
1329
+ ), Ut = R((r, n) => {
1330
+ const { className: t, items: o, isDisabled: i, ...u } = r;
1331
+ j(u);
1332
+ const f = o.filter((c) => c.isSelected)[0];
1333
+ return f ? /* @__PURE__ */ l.jsxs(
1334
+ O,
1313
1335
  {
1314
1336
  withinPortal: !1,
1315
1337
  transitionProps: {
1316
1338
  exitDuration: 0
1317
1339
  },
1318
- disabled: s,
1340
+ disabled: i,
1319
1341
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
1320
1342
  children: [
1321
- /* @__PURE__ */ l.jsx(C.Target, { children: /* @__PURE__ */ l.jsx(
1322
- V,
1343
+ /* @__PURE__ */ l.jsx(O.Target, { children: /* @__PURE__ */ l.jsx(
1344
+ U,
1323
1345
  {
1324
- onMouseDown: (u) => {
1325
- ue() && u.currentTarget.focus();
1346
+ onMouseDown: (c) => {
1347
+ fe() && c.currentTarget.focus();
1326
1348
  },
1327
- leftSection: d.icon,
1328
- rightSection: /* @__PURE__ */ l.jsx(ft, {}),
1349
+ leftSection: f.icon,
1350
+ rightSection: /* @__PURE__ */ l.jsx(xt, {}),
1329
1351
  size: "xs",
1330
1352
  variant: "subtle",
1331
- disabled: s,
1332
- children: d.text
1353
+ disabled: i,
1354
+ children: f.text
1333
1355
  }
1334
1356
  ) }),
1335
- /* @__PURE__ */ l.jsx(C.Dropdown, { className: n, ref: t, children: a.map((u) => /* @__PURE__ */ l.jsx(
1336
- C.Item,
1357
+ /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: o.map((c) => /* @__PURE__ */ l.jsx(
1358
+ O.Item,
1337
1359
  {
1338
- onClick: u.onClick,
1339
- leftSection: u.icon,
1340
- rightSection: u.isSelected ? /* @__PURE__ */ l.jsx(He, { size: 10, className: "bn-tick-icon" }) : (
1360
+ onClick: c.onClick,
1361
+ leftSection: c.icon,
1362
+ rightSection: c.isSelected ? /* @__PURE__ */ l.jsx(qe, { size: 10, className: "bn-tick-icon" }) : (
1341
1363
  // Ensures space for tick even if item isn't currently selected.
1342
1364
  /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" })
1343
1365
  ),
1344
- disabled: u.isDisabled,
1345
- children: u.text
1366
+ disabled: c.isDisabled,
1367
+ children: c.text
1346
1368
  },
1347
- u.text
1369
+ c.text
1348
1370
  )) })
1349
1371
  ]
1350
1372
  }
@@ -1361,7 +1383,7 @@ const x = [
1361
1383
  "#161616",
1362
1384
  "#0F0F0F",
1363
1385
  "#000000"
1364
- ], Ue = {
1386
+ ], He = {
1365
1387
  colors: {
1366
1388
  editor: {
1367
1389
  text: x[5],
@@ -1431,7 +1453,7 @@ const x = [
1431
1453
  },
1432
1454
  borderRadius: 6,
1433
1455
  fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
1434
- }, Ht = {
1456
+ }, en = {
1435
1457
  colors: {
1436
1458
  editor: {
1437
1459
  text: x[2],
@@ -1499,103 +1521,104 @@ const x = [
1499
1521
  }
1500
1522
  }
1501
1523
  },
1502
- borderRadius: Ue.borderRadius,
1503
- fontFamily: Ue.fontFamily
1504
- }, $t = {
1524
+ borderRadius: He.borderRadius,
1525
+ fontFamily: He.fontFamily
1526
+ }, Kt = {
1505
1527
  FormattingToolbar: {
1506
- Root: Ve,
1507
- Button: Ye,
1508
- Select: At
1528
+ Root: Ke,
1529
+ Button: Ge,
1530
+ Select: Ut
1509
1531
  },
1510
1532
  FilePanel: {
1511
- Root: jt,
1512
- Button: Rt,
1513
- FileInput: Et,
1514
- TabPanel: Tt,
1515
- TextInput: wt
1533
+ Root: Pt,
1534
+ Button: _t,
1535
+ FileInput: Ct,
1536
+ TabPanel: Ot,
1537
+ TextInput: Ft
1516
1538
  },
1517
1539
  LinkToolbar: {
1518
- Root: Ve,
1519
- Button: Ye
1540
+ Root: Ke,
1541
+ Button: Ge
1520
1542
  },
1521
1543
  SideMenu: {
1522
- Root: _t,
1523
- Button: Ct
1544
+ Root: It,
1545
+ Button: Lt
1524
1546
  },
1525
1547
  SuggestionMenu: {
1526
- Root: Ot,
1527
- Item: Dt,
1528
- EmptyItem: Ft,
1529
- Label: Nt,
1530
- Loader: Mt
1548
+ Root: At,
1549
+ Item: zt,
1550
+ EmptyItem: $t,
1551
+ Label: Wt,
1552
+ Loader: Bt
1531
1553
  },
1532
1554
  TableHandle: {
1533
- Root: It
1555
+ Root: Vt
1534
1556
  },
1535
1557
  Generic: {
1536
1558
  Form: {
1537
1559
  Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
1538
- TextInput: at
1560
+ TextInput: dt
1539
1561
  },
1540
1562
  Menu: {
1541
- Root: mt,
1542
- Trigger: pt,
1543
- Dropdown: ht,
1544
- Divider: xt,
1545
- Label: yt,
1546
- Item: gt
1563
+ Root: Rt,
1564
+ Trigger: Tt,
1565
+ Dropdown: wt,
1566
+ Divider: kt,
1567
+ Label: St,
1568
+ Item: Et
1547
1569
  },
1548
1570
  Popover: {
1549
- Root: kt,
1550
- Trigger: St,
1551
- Content: Pt
1571
+ Root: Dt,
1572
+ Trigger: Nt,
1573
+ Content: Mt
1552
1574
  }
1553
1575
  }
1554
- }, zt = {
1576
+ }, Gt = {
1555
1577
  // Removes button press effect
1556
1578
  activeClassName: ""
1557
- }, Kt = (r) => {
1558
- const { theme: t, ...n } = r, a = $r(), s = Xr(), c = (a == null ? void 0 : a.colorSchemePreference) || s, d = le(
1559
- (u) => {
1560
- if (u && (nt(u), typeof t == "object")) {
1579
+ }, rn = (r) => {
1580
+ const { className: n, theme: t, ...o } = r, i = Kr(), u = ot(), f = (i == null ? void 0 : i.colorSchemePreference) || u, c = de(
1581
+ (d) => {
1582
+ if (d && (ct(d), typeof t == "object")) {
1561
1583
  if ("light" in t && "dark" in t) {
1562
- ze(
1563
- t[c === "dark" ? "dark" : "light"],
1564
- u
1584
+ Ve(
1585
+ t[f === "dark" ? "dark" : "light"],
1586
+ d
1565
1587
  );
1566
1588
  return;
1567
1589
  }
1568
- ze(t, u);
1590
+ Ve(t, d);
1569
1591
  return;
1570
1592
  }
1571
1593
  },
1572
- [c, t]
1594
+ [f, t]
1573
1595
  );
1574
- return /* @__PURE__ */ l.jsx(zr.Provider, { value: $t, children: /* @__PURE__ */ l.jsx(
1575
- Jr,
1596
+ return /* @__PURE__ */ l.jsx(Gr.Provider, { value: Kt, children: /* @__PURE__ */ l.jsx(
1597
+ nt,
1576
1598
  {
1577
- theme: zt,
1578
- cssVariablesSelector: ".bn-container",
1599
+ theme: Gt,
1600
+ cssVariablesSelector: ".bn-mantine",
1579
1601
  getRootElement: () => {
1580
1602
  },
1581
1603
  children: /* @__PURE__ */ l.jsx(
1582
- Wr,
1604
+ Hr,
1583
1605
  {
1606
+ className: Yr("bn-mantine", n || ""),
1584
1607
  theme: typeof t == "object" ? void 0 : t,
1585
- ...n,
1586
- ref: d
1608
+ ...o,
1609
+ ref: c
1587
1610
  }
1588
1611
  )
1589
1612
  }
1590
1613
  ) });
1591
1614
  };
1592
1615
  export {
1593
- Kt as BlockNoteView,
1594
- ze as applyBlockNoteCSSVariablesFromTheme,
1595
- $t as components,
1596
- Ht as darkDefaultTheme,
1616
+ rn as BlockNoteView,
1617
+ Ve as applyBlockNoteCSSVariablesFromTheme,
1618
+ Kt as components,
1619
+ en as darkDefaultTheme,
1597
1620
  x as defaultColorScheme,
1598
- Ue as lightDefaultTheme,
1599
- nt as removeBlockNoteCSSVariables
1621
+ He as lightDefaultTheme,
1622
+ ct as removeBlockNoteCSSVariables
1600
1623
  };
1601
1624
  //# sourceMappingURL=blocknote-mantine.js.map