@blocknote/mantine 0.14.1 → 0.14.3

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,9 +1,9 @@
1
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 { elementOverflow as Yr, useBlockNoteContext as Ur, ComponentsContext as Kr, BlockNoteViewRaw as Gr } from "@blocknote/react";
3
- import { TextInput as Je, Menu as O, CheckIcon as qe, Group as N, Tabs as X, LoadingOverlay as Hr, Button as U, FileInput as Jr, Popover as qr, PopoverTarget as Xr, PopoverDropdown as Zr, ActionIcon as Xe, Stack as be, Text as Z, Badge as Qr, Loader as et, Tooltip as rt, MantineProvider as tt } from "@mantine/core";
4
- import nt from "use-prefers-color-scheme";
5
- import { assertEmpty as j, isSafari as fe } from "@blocknote/core";
6
- import { mergeRefs as ge, useFocusWithin as ot, useFocusTrap as at } from "@mantine/hooks";
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 { usePrefersColorScheme as ot } from "use-prefers-color-scheme";
6
+ import { mergeRefs as ge, useFocusWithin as at, useFocusTrap as it } from "@mantine/hooks";
7
7
  var ve = { exports: {} }, V = {};
8
8
  /**
9
9
  * @license React
@@ -15,22 +15,22 @@ var ve = { exports: {} }, V = {};
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
17
  var We;
18
- function it() {
18
+ function st() {
19
19
  if (We)
20
20
  return V;
21
21
  We = 1;
22
- var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = 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 f(u, d, b) {
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
24
  var h, w = {}, k = null, K = null;
25
25
  b !== void 0 && (k = "" + b), d.key !== void 0 && (k = "" + d.key), d.ref !== void 0 && (K = d.ref);
26
26
  for (h in d)
27
- o.call(d, h) && !c.hasOwnProperty(h) && (w[h] = d[h]);
28
- if (u && u.defaultProps)
29
- for (h in d = u.defaultProps, 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
30
  w[h] === void 0 && (w[h] = d[h]);
31
- return { $$typeof: t, type: u, key: k, ref: K, props: w, _owner: s.current };
31
+ return { $$typeof: n, type: c, key: k, ref: K, props: w, _owner: i.current };
32
32
  }
33
- return V.Fragment = n, V.jsx = f, V.jsxs = f, V;
33
+ return V.Fragment = t, V.jsx = f, V.jsxs = f, V;
34
34
  }
35
35
  var Y = {};
36
36
  /**
@@ -43,48 +43,48 @@ var Y = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var Be;
46
- function st() {
46
+ function lt() {
47
47
  return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
48
- var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), u = 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"), pe = Symbol.iterator, nr = "@@iterator";
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
49
  function or(e) {
50
50
  if (e === null || typeof e != "object")
51
51
  return null;
52
- var a = pe && e[pe] || e[nr];
52
+ var a = me && e[me] || e[nr];
53
53
  return typeof a == "function" ? a : null;
54
54
  }
55
55
  var L = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
56
  function S(e) {
57
57
  {
58
- for (var a = arguments.length, i = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
59
- i[v - 1] = arguments[v];
60
- ar("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 ar(e, a, i) {
63
+ function ar(e, a, s) {
64
64
  {
65
- var v = L.ReactDebugCurrentFrame, m = v.getStackAddendum();
66
- m !== "" && (a += "%s", i = i.concat([m]));
67
- var y = i.map(function(p) {
68
- return String(p);
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
70
  y.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, y);
71
71
  }
72
72
  }
73
- var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, me;
74
- me = Symbol.for("react.module.reference");
73
+ var ir = !1, sr = !1, lr = !1, ur = !1, cr = !1, pe;
74
+ pe = Symbol.for("react.module.reference");
75
75
  function dr(e) {
76
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || cr || e === s || 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 === u || e.$$typeof === d || // This needs to include all possible module reference object
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 === me || e.getModuleId !== void 0));
80
+ e.$$typeof === pe || e.getModuleId !== void 0));
81
81
  }
82
- function fr(e, a, i) {
82
+ function fr(e, a, s) {
83
83
  var v = e.displayName;
84
84
  if (v)
85
85
  return v;
86
- var m = a.displayName || a.name || "";
87
- return m !== "" ? i + "(" + m + ")" : i;
86
+ var p = a.displayName || a.name || "";
87
+ return p !== "" ? s + "(" + p + ")" : s;
88
88
  }
89
89
  function he(e) {
90
90
  return e.displayName || "Context";
@@ -99,11 +99,11 @@ function st() {
99
99
  switch (e) {
100
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 st() {
112
112
  }
113
113
  if (typeof e == "object")
114
114
  switch (e.$$typeof) {
115
- case u:
115
+ case c:
116
116
  var a = e;
117
117
  return he(a) + ".Consumer";
118
118
  case f:
119
- var i = e;
120
- return he(i._context) + ".Provider";
119
+ var s = e;
120
+ return he(s._context) + ".Provider";
121
121
  case d:
122
122
  return fr(e, e.render, "ForwardRef");
123
123
  case w:
124
124
  var v = e.displayName || null;
125
125
  return v !== null ? v : F(e.type) || "Memo";
126
126
  case k: {
127
- var m = e, y = m._payload, p = m._init;
127
+ var p = e, y = p._payload, m = p._init;
128
128
  try {
129
- return F(p(y));
129
+ return F(m(y));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -197,13 +197,13 @@ function st() {
197
197
  }
198
198
  }
199
199
  var re = L.ReactCurrentDispatcher, te;
200
- function G(e, a, i) {
200
+ function G(e, a, s) {
201
201
  {
202
202
  if (te === void 0)
203
203
  try {
204
204
  throw Error();
205
- } catch (m) {
206
- var v = m.stack.trim().match(/\n( *(at )?)/);
205
+ } catch (p) {
206
+ var v = p.stack.trim().match(/\n( *(at )?)/);
207
207
  te = v && v[1] || "";
208
208
  }
209
209
  return `
@@ -219,39 +219,39 @@ function st() {
219
219
  if (!e || ne)
220
220
  return "";
221
221
  {
222
- var i = H.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
226
  var v;
227
227
  ne = !0;
228
- var m = Error.prepareStackTrace;
228
+ var p = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
230
  var y;
231
231
  y = re.current, re.current = null, vr();
232
232
  try {
233
233
  if (a) {
234
- var p = function() {
234
+ var m = function() {
235
235
  throw Error();
236
236
  };
237
- if (Object.defineProperty(p.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(p, []);
243
+ Reflect.construct(m, []);
244
244
  } catch (_) {
245
245
  v = _;
246
246
  }
247
- Reflect.construct(e, [], p);
247
+ Reflect.construct(e, [], m);
248
248
  } else {
249
249
  try {
250
- p.call();
250
+ m.call();
251
251
  } catch (_) {
252
252
  v = _;
253
253
  }
254
- e.call(p.prototype);
254
+ e.call(m.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
@@ -281,23 +281,23 @@ function st() {
281
281
  }
282
282
  }
283
283
  } finally {
284
- ne = !1, re.current = y, br(), Error.prepareStackTrace = m;
284
+ ne = !1, re.current = y, br(), Error.prepareStackTrace = p;
285
285
  }
286
286
  var $ = e ? e.displayName || e.name : "", I = $ ? G($) : "";
287
287
  return typeof e == "function" && H.set(e, I), I;
288
288
  }
289
- function pr(e, a, i) {
289
+ function mr(e, a, s) {
290
290
  return Se(e, !1);
291
291
  }
292
- function mr(e) {
292
+ function pr(e) {
293
293
  var a = e.prototype;
294
294
  return !!(a && a.isReactComponent);
295
295
  }
296
- function J(e, a, i) {
296
+ function J(e, a, s) {
297
297
  if (e == null)
298
298
  return "";
299
299
  if (typeof e == "function")
300
- return Se(e, mr(e));
300
+ return Se(e, pr(e));
301
301
  if (typeof e == "string")
302
302
  return G(e);
303
303
  switch (e) {
@@ -309,13 +309,13 @@ function st() {
309
309
  if (typeof e == "object")
310
310
  switch (e.$$typeof) {
311
311
  case d:
312
- return pr(e.render);
312
+ return mr(e.render);
313
313
  case w:
314
- return J(e.type, a, i);
314
+ return J(e.type, a, s);
315
315
  case k: {
316
- var v = e, m = v._payload, y = v._init;
316
+ var v = e, p = v._payload, y = v._init;
317
317
  try {
318
- return J(y(m), a, i);
318
+ return J(y(p), a, s);
319
319
  } catch {
320
320
  }
321
321
  }
@@ -325,27 +325,27 @@ function st() {
325
325
  var W = Object.prototype.hasOwnProperty, Pe = {}, _e = L.ReactDebugCurrentFrame;
326
326
  function q(e) {
327
327
  if (e) {
328
- var a = e._owner, i = J(e.type, e._source, a ? a.type : null);
329
- _e.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
331
  _e.setExtraStackFrame(null);
332
332
  }
333
- function hr(e, a, i, v, m) {
333
+ function hr(e, a, s, v, p) {
334
334
  {
335
335
  var y = Function.call.bind(W);
336
- for (var p in e)
337
- if (y(e, p)) {
336
+ for (var m in e)
337
+ if (y(e, m)) {
338
338
  var g = void 0;
339
339
  try {
340
- if (typeof e[p] != "function") {
341
- var P = Error((v || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.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
- g = e[p](a, p, v, 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
346
  g = E;
347
347
  }
348
- g && !(g instanceof Error) && (q(m), 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", i, p, typeof g), q(null)), g instanceof Error && !(g.message in Pe) && (Pe[g.message] = !0, q(m), S("Failed %s type: %s", i, g.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
  }
@@ -355,8 +355,8 @@ function st() {
355
355
  }
356
356
  function yr(e) {
357
357
  {
358
- var a = typeof Symbol == "function" && Symbol.toStringTag, i = a && 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
362
  function jr(e) {
@@ -398,41 +398,41 @@ function st() {
398
398
  }
399
399
  function wr(e, a) {
400
400
  if (typeof e.ref == "string" && B.current && a && B.current.stateNode !== a) {
401
- var i = F(B.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', F(B.current.type), e.ref), ae[i] = !0);
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
405
  function kr(e, a) {
406
406
  {
407
- var i = function() {
407
+ var s = function() {
408
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
416
  function Sr(e, a) {
417
417
  {
418
- var i = function() {
418
+ var s = function() {
419
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 Pr = function(e, a, i, v, m, y, p) {
427
+ var Pr = function(e, a, s, v, p, y, m) {
428
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
433
  key: a,
434
- ref: i,
435
- props: p,
434
+ ref: s,
435
+ props: m,
436
436
  // Record the component responsible for creating this element.
437
437
  _owner: y
438
438
  };
@@ -450,39 +450,39 @@ function st() {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
- value: m
453
+ value: p
454
454
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
455
455
  };
456
- function _r(e, a, i, v, m) {
456
+ function _r(e, a, s, v, p) {
457
457
  {
458
- var y, p = {}, g = null, P = null;
459
- i !== void 0 && (Oe(i), g = "" + i), Tr(a) && (Oe(a.key), g = "" + a.key), Er(a) && (P = a.ref, wr(a, m));
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
460
  for (y in a)
461
- W.call(a, y) && !Rr.hasOwnProperty(y) && (p[y] = a[y]);
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
- p[y] === void 0 && (p[y] = E[y]);
465
+ m[y] === void 0 && (m[y] = E[y]);
466
466
  }
467
467
  if (g || P) {
468
468
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
469
- g && kr(p, T), P && Sr(p, T);
469
+ g && kr(m, T), P && Sr(m, T);
470
470
  }
471
- return Pr(e, g, P, m, v, B.current, p);
471
+ return Pr(e, g, P, p, v, B.current, m);
472
472
  }
473
473
  }
474
474
  var ie = L.ReactCurrentOwner, Ne = L.ReactDebugCurrentFrame;
475
475
  function A(e) {
476
476
  if (e) {
477
- var a = e._owner, i = J(e.type, e._source, a ? a.type : null);
478
- Ne.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
480
  Ne.setExtraStackFrame(null);
481
481
  }
482
482
  var se;
483
483
  se = !1;
484
484
  function le(e) {
485
- return typeof e == "object" && e !== null && e.$$typeof === t;
485
+ return typeof e == "object" && e !== null && e.$$typeof === n;
486
486
  }
487
487
  function Me() {
488
488
  {
@@ -499,10 +499,10 @@ Check the render method of \`` + e + "`.";
499
499
  function Cr(e) {
500
500
  {
501
501
  if (e !== void 0) {
502
- var a = 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 ` + a + ":" + i + ".";
505
+ Check your code at ` + a + ":" + s + ".";
506
506
  }
507
507
  return "";
508
508
  }
@@ -512,10 +512,10 @@ Check your code at ` + a + ":" + i + ".";
512
512
  {
513
513
  var a = Me();
514
514
  if (!a) {
515
- var i = typeof e == "string" ? e : e.displayName || e.name;
516
- i && (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
520
  return a;
521
521
  }
@@ -525,12 +525,12 @@ Check the top-level render call using <` + i + ">.");
525
525
  if (!e._store || e._store.validated || e.key != null)
526
526
  return;
527
527
  e._store.validated = !0;
528
- var i = Or(a);
529
- if (Ie[i])
528
+ var s = Or(a);
529
+ if (Ie[s])
530
530
  return;
531
- Ie[i] = !0;
531
+ Ie[s] = !0;
532
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.', i, v), A(null);
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
536
  function Ae(e, a) {
@@ -538,17 +538,17 @@ Check the top-level render call using <` + i + ">.");
538
538
  if (typeof e != "object")
539
539
  return;
540
540
  if (oe(e))
541
- for (var i = 0; i < e.length; i++) {
542
- var v = e[i];
541
+ for (var s = 0; s < e.length; s++) {
542
+ var v = e[s];
543
543
  le(v) && Le(v, a);
544
544
  }
545
545
  else if (le(e))
546
546
  e._store && (e._store.validated = !0);
547
547
  else if (e) {
548
- var m = or(e);
549
- if (typeof m == "function" && m !== e.entries)
550
- for (var y = m.call(e), p; !(p = y.next()).done; )
551
- le(p.value) && Le(p.value, a);
548
+ var p = or(e);
549
+ if (typeof p == "function" && p !== e.entries)
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
  }
@@ -557,30 +557,30 @@ Check the top-level render call using <` + i + ">.");
557
557
  var a = e.type;
558
558
  if (a == null || typeof a == "string")
559
559
  return;
560
- var i;
560
+ var s;
561
561
  if (typeof a == "function")
562
- i = a.propTypes;
562
+ s = a.propTypes;
563
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
565
  a.$$typeof === w))
566
- i = a.propTypes;
566
+ s = a.propTypes;
567
567
  else
568
568
  return;
569
- if (i) {
569
+ if (s) {
570
570
  var v = F(a);
571
- hr(i, e.props, "prop", v, e);
571
+ hr(s, e.props, "prop", v, e);
572
572
  } else if (a.PropTypes !== void 0 && !se) {
573
573
  se = !0;
574
- var m = F(a);
575
- S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
574
+ var p = F(a);
575
+ S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
576
576
  }
577
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
580
  function Dr(e) {
581
581
  {
582
- for (var a = Object.keys(e.props), i = 0; i < a.length; i++) {
583
- var v = a[i];
582
+ for (var a = Object.keys(e.props), s = 0; s < a.length; s++) {
583
+ var v = a[s];
584
584
  if (v !== "children" && v !== "key") {
585
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;
@@ -590,21 +590,21 @@ Check the top-level render call using <` + i + ">.");
590
590
  }
591
591
  }
592
592
  var $e = {};
593
- function ze(e, a, i, v, m, y) {
593
+ function ze(e, a, s, v, p, y) {
594
594
  {
595
- var p = dr(e);
596
- if (!p) {
595
+ var m = dr(e);
596
+ if (!m) {
597
597
  var g = "";
598
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(m);
599
+ var P = Cr(p);
600
600
  P ? g += P : g += Me();
601
601
  var E;
602
- e === null ? E = "null" : oe(e) ? E = "array" : e !== void 0 && e.$$typeof === t ? (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
+ 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);
603
603
  }
604
- var T = _r(e, a, i, m, y);
604
+ var T = _r(e, a, s, p, y);
605
605
  if (T == null)
606
606
  return T;
607
- if (p) {
607
+ if (m) {
608
608
  var C = a.children;
609
609
  if (C !== void 0)
610
610
  if (v)
@@ -634,28 +634,28 @@ React keys must be passed directly to JSX without using spread:
634
634
  return e === o ? Dr(T) : Fr(T), T;
635
635
  }
636
636
  }
637
- function Nr(e, a, i) {
638
- return ze(e, a, i, !0);
637
+ function Nr(e, a, s) {
638
+ return ze(e, a, s, !0);
639
639
  }
640
- function Mr(e, a, i) {
641
- return ze(e, a, i, !1);
640
+ function Mr(e, a, s) {
641
+ return ze(e, a, s, !1);
642
642
  }
643
643
  var Ir = Mr, Lr = Nr;
644
644
  Y.Fragment = o, Y.jsx = Ir, Y.jsxs = Lr;
645
645
  }()), Y;
646
646
  }
647
- process.env.NODE_ENV === "production" ? ve.exports = it() : ve.exports = st();
647
+ process.env.NODE_ENV === "production" ? ve.exports = st() : ve.exports = lt();
648
648
  var l = ve.exports;
649
- const Ze = (r, t, n = !1) => {
649
+ const Ze = (r, n, t = !1) => {
650
650
  const o = [];
651
- function s(c, f = "--bn") {
652
- for (const u in c) {
653
- const d = u.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), b = `${f}-${d}`;
654
- 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);
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);
655
655
  }
656
656
  }
657
- return s(r), o;
658
- }, Ve = (r, t) => Ze(r, t), lt = {
657
+ return i(r), o;
658
+ }, Ve = (r, n) => Ze(r, n), ut = {
659
659
  colors: {
660
660
  editor: {
661
661
  text: void 0,
@@ -725,14 +725,14 @@ const Ze = (r, t, n = !1) => {
725
725
  },
726
726
  borderRadius: void 0,
727
727
  fontFamily: void 0
728
- }, ut = (r) => Ze(lt, r, !0), ct = R((r, t) => {
728
+ }, ct = (r) => Ze(ut, r, !0), dt = R((r, n) => {
729
729
  const {
730
- className: n,
730
+ className: t,
731
731
  name: o,
732
- label: s,
733
- icon: c,
732
+ label: i,
733
+ icon: u,
734
734
  value: f,
735
- autoFocus: u,
735
+ autoFocus: c,
736
736
  placeholder: d,
737
737
  onKeyDown: b,
738
738
  onChange: h,
@@ -743,14 +743,14 @@ const Ze = (r, t, n = !1) => {
743
743
  Je,
744
744
  {
745
745
  size: "xs",
746
- className: n,
747
- ref: t,
746
+ className: t,
747
+ ref: n,
748
748
  name: o,
749
- label: s,
750
- leftSection: c,
749
+ label: i,
750
+ leftSection: u,
751
751
  value: f,
752
- autoFocus: u,
753
- "data-autofocus": u ? "true" : void 0,
752
+ autoFocus: c,
753
+ "data-autofocus": c ? "true" : void 0,
754
754
  placeholder: d,
755
755
  onKeyDown: b,
756
756
  onChange: h,
@@ -764,130 +764,130 @@ var Qe = {
764
764
  className: void 0,
765
765
  style: void 0,
766
766
  attr: void 0
767
- }, Ye = D.createContext && /* @__PURE__ */ D.createContext(Qe), dt = ["attr", "size", "title"];
768
- function ft(r, t) {
767
+ }, Ye = D.createContext && /* @__PURE__ */ D.createContext(Qe), ft = ["attr", "size", "title"];
768
+ function vt(r, n) {
769
769
  if (r == null)
770
770
  return {};
771
- var n = vt(r, t), o, s;
771
+ var t = bt(r, n), o, i;
772
772
  if (Object.getOwnPropertySymbols) {
773
- var c = Object.getOwnPropertySymbols(r);
774
- for (s = 0; s < c.length; s++)
775
- o = c[s], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(r, o) && (n[o] = r[o]);
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]);
776
776
  }
777
- return n;
777
+ return t;
778
778
  }
779
- function vt(r, t) {
779
+ function bt(r, n) {
780
780
  if (r == null)
781
781
  return {};
782
- var n = {};
782
+ var t = {};
783
783
  for (var o in r)
784
784
  if (Object.prototype.hasOwnProperty.call(r, o)) {
785
- if (t.indexOf(o) >= 0)
785
+ if (n.indexOf(o) >= 0)
786
786
  continue;
787
- n[o] = r[o];
787
+ t[o] = r[o];
788
788
  }
789
- return n;
789
+ return t;
790
790
  }
791
791
  function Q() {
792
792
  return Q = Object.assign ? Object.assign.bind() : function(r) {
793
- for (var t = 1; t < arguments.length; t++) {
794
- var n = arguments[t];
795
- for (var o in n)
796
- Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
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]);
797
797
  }
798
798
  return r;
799
799
  }, Q.apply(this, arguments);
800
800
  }
801
- function Ue(r, t) {
802
- var n = Object.keys(r);
801
+ function Ue(r, n) {
802
+ var t = Object.keys(r);
803
803
  if (Object.getOwnPropertySymbols) {
804
804
  var o = Object.getOwnPropertySymbols(r);
805
- t && (o = o.filter(function(s) {
806
- return Object.getOwnPropertyDescriptor(r, s).enumerable;
807
- })), n.push.apply(n, o);
805
+ n && (o = o.filter(function(i) {
806
+ return Object.getOwnPropertyDescriptor(r, i).enumerable;
807
+ })), t.push.apply(t, o);
808
808
  }
809
- return n;
809
+ return t;
810
810
  }
811
811
  function ee(r) {
812
- for (var t = 1; t < arguments.length; t++) {
813
- var n = arguments[t] != null ? arguments[t] : {};
814
- t % 2 ? Ue(Object(n), !0).forEach(function(o) {
815
- bt(r, o, n[o]);
816
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(o) {
817
- Object.defineProperty(r, o, Object.getOwnPropertyDescriptor(n, o));
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));
818
818
  });
819
819
  }
820
820
  return r;
821
821
  }
822
- function bt(r, t, n) {
823
- return t = gt(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;
824
824
  }
825
- function gt(r) {
826
- var t = pt(r, "string");
827
- return typeof t == "symbol" ? t : t + "";
825
+ function mt(r) {
826
+ var n = pt(r, "string");
827
+ return typeof n == "symbol" ? n : n + "";
828
828
  }
829
- function pt(r, t) {
829
+ function pt(r, n) {
830
830
  if (typeof r != "object" || !r)
831
831
  return r;
832
- var n = r[Symbol.toPrimitive];
833
- if (n !== void 0) {
834
- var o = n.call(r, t || "default");
832
+ var t = r[Symbol.toPrimitive];
833
+ if (t !== void 0) {
834
+ var o = t.call(r, n || "default");
835
835
  if (typeof o != "object")
836
836
  return o;
837
837
  throw new TypeError("@@toPrimitive must return a primitive value.");
838
838
  }
839
- return (t === "string" ? String : Number)(r);
839
+ return (n === "string" ? String : Number)(r);
840
840
  }
841
841
  function er(r) {
842
- return r && r.map((t, n) => /* @__PURE__ */ D.createElement(t.tag, ee({
843
- key: n
844
- }, t.attr), er(t.child)));
842
+ return r && r.map((n, t) => /* @__PURE__ */ D.createElement(n.tag, ee({
843
+ key: t
844
+ }, n.attr), er(n.child)));
845
845
  }
846
846
  function rr(r) {
847
- return (t) => /* @__PURE__ */ D.createElement(mt, Q({
847
+ return (n) => /* @__PURE__ */ D.createElement(ht, Q({
848
848
  attr: ee({}, r.attr)
849
- }, t), er(r.child));
849
+ }, n), er(r.child));
850
850
  }
851
- function mt(r) {
852
- var t = (n) => {
851
+ function ht(r) {
852
+ var n = (t) => {
853
853
  var {
854
854
  attr: o,
855
- size: s,
856
- title: c
857
- } = r, f = ft(r, dt), u = s || n.size || "1em", d;
858
- return n.className && (d = n.className), r.className && (d = (d ? d + " " : "") + r.className), /* @__PURE__ */ D.createElement("svg", Q({
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({
859
859
  stroke: "currentColor",
860
860
  fill: "currentColor",
861
861
  strokeWidth: "0"
862
- }, n.attr, o, f, {
862
+ }, t.attr, o, f, {
863
863
  className: d,
864
864
  style: ee(ee({
865
- color: r.color || n.color
866
- }, n.style), r.style),
867
- height: u,
868
- width: u,
865
+ color: r.color || t.color
866
+ }, t.style), r.style),
867
+ height: c,
868
+ width: c,
869
869
  xmlns: "http://www.w3.org/2000/svg"
870
- }), c && /* @__PURE__ */ D.createElement("title", null, c), r.children);
870
+ }), u && /* @__PURE__ */ D.createElement("title", null, u), r.children);
871
871
  };
872
- return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (n) => t(n)) : t(Qe);
872
+ return Ye !== void 0 ? /* @__PURE__ */ D.createElement(Ye.Consumer, null, (t) => n(t)) : n(Qe);
873
873
  }
874
- function ht(r) {
874
+ function xt(r) {
875
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);
876
876
  }
877
- function xt(r) {
877
+ function yt(r) {
878
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);
879
879
  }
880
- const tr = zr(void 0), yt = R((r, t) => {
880
+ const tr = zr(void 0), jt = R((r, n) => {
881
881
  const {
882
- children: n,
882
+ children: t,
883
883
  onOpenChange: o,
884
- position: s,
885
- sub: c,
884
+ position: i,
885
+ sub: u,
886
886
  // not used
887
887
  ...f
888
888
  } = r;
889
889
  j(f);
890
- const [u, d] = Wr(!1), b = ce(null), h = ce(), w = de(() => {
890
+ const [c, d] = Wr(!1), b = ce(null), h = ce(), w = de(() => {
891
891
  h.current && clearTimeout(h.current), h.current = setTimeout(() => {
892
892
  d(!1);
893
893
  }, 250);
@@ -905,7 +905,7 @@ const tr = zr(void 0), yt = R((r, t) => {
905
905
  O.Item,
906
906
  {
907
907
  className: "bn-menu-item bn-mt-sub-menu-item",
908
- ref: ge(t, b),
908
+ ref: ge(n, b),
909
909
  onMouseOver: k,
910
910
  onMouseLeave: w,
911
911
  children: /* @__PURE__ */ l.jsx(
@@ -916,99 +916,99 @@ const tr = zr(void 0), yt = R((r, t) => {
916
916
  },
917
917
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
918
918
  trigger: "hover",
919
- opened: u,
919
+ opened: c,
920
920
  onClose: () => o == null ? void 0 : o(!1),
921
921
  onOpen: () => o == null ? void 0 : o(!0),
922
- position: s,
923
- children: n
922
+ position: i,
923
+ children: t
924
924
  }
925
925
  )
926
926
  }
927
927
  )
928
928
  }
929
929
  );
930
- }), jt = (r) => {
931
- const { children: t, onOpenChange: n, position: o, sub: s, ...c } = r;
932
- return j(c), s ? /* @__PURE__ */ l.jsx(yt, { ...r }) : /* @__PURE__ */ l.jsx(
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
933
  O,
934
934
  {
935
935
  withinPortal: !1,
936
936
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
937
- onClose: () => n == null ? void 0 : n(!1),
938
- onOpen: () => n == null ? void 0 : n(!0),
937
+ onClose: () => t == null ? void 0 : t(!1),
938
+ onOpen: () => t == null ? void 0 : t(!0),
939
939
  position: o,
940
- children: t
940
+ children: n
941
941
  }
942
942
  );
943
- }, Rt = R((r, t) => {
944
- const { className: n, children: o, icon: s, checked: c, subTrigger: f, onClick: u, ...d } = r;
945
- return j(d, !1), f ? /* @__PURE__ */ l.jsxs("div", { ref: t, ...d, children: [
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
946
  o,
947
- /* @__PURE__ */ l.jsx(xt, { size: 15 })
947
+ /* @__PURE__ */ l.jsx(yt, { size: 15 })
948
948
  ] }) : /* @__PURE__ */ l.jsx(
949
949
  O.Item,
950
950
  {
951
- className: n,
952
- ref: t,
953
- leftSection: s,
954
- rightSection: c ? /* @__PURE__ */ l.jsx(qe, { size: 10 }) : c === !1 ? /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" }) : null,
955
- onClick: u,
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
956
  ...d,
957
957
  children: o
958
958
  }
959
959
  );
960
- }), Et = (r) => {
960
+ }), Tt = (r) => {
961
961
  const {
962
- children: t,
963
- sub: n,
962
+ children: n,
963
+ sub: t,
964
964
  // unused
965
965
  ...o
966
966
  } = r;
967
- return j(o), /* @__PURE__ */ l.jsx(O.Target, { children: t });
968
- }, Tt = R((r, t) => {
967
+ return j(o), /* @__PURE__ */ l.jsx(O.Target, { children: n });
968
+ }, wt = R((r, n) => {
969
969
  const {
970
- className: n,
970
+ className: t,
971
971
  children: o,
972
- sub: s,
972
+ sub: i,
973
973
  //unused
974
- ...c
974
+ ...u
975
975
  } = r;
976
- j(c);
976
+ j(u);
977
977
  const f = Br(tr);
978
978
  return /* @__PURE__ */ l.jsx(
979
979
  O.Dropdown,
980
980
  {
981
- className: n,
982
- ref: t,
981
+ className: t,
982
+ ref: n,
983
983
  onMouseOver: f == null ? void 0 : f.onMenuMouseOver,
984
984
  onMouseLeave: f == null ? void 0 : f.onMenuMouseLeave,
985
985
  children: o
986
986
  }
987
987
  );
988
- }), wt = R((r, t) => {
989
- const { className: n, ...o } = r;
990
- return j(o), /* @__PURE__ */ l.jsx(O.Divider, { className: n, ref: t });
991
- }), kt = R((r, t) => {
992
- const { className: n, children: o, ...s } = r;
993
- return j(s), /* @__PURE__ */ l.jsx(O.Label, { className: n, ref: t, children: o });
994
- }), St = 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) => {
995
995
  const {
996
- className: n,
996
+ className: t,
997
997
  tabs: o,
998
- defaultOpenTab: s,
999
- openTab: c,
998
+ defaultOpenTab: i,
999
+ openTab: u,
1000
1000
  setOpenTab: f,
1001
- loading: u,
1001
+ loading: c,
1002
1002
  ...d
1003
1003
  } = r;
1004
- return j(d), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: /* @__PURE__ */ l.jsxs(
1004
+ return j(d), /* @__PURE__ */ l.jsx(N, { className: t, ref: n, children: /* @__PURE__ */ l.jsxs(
1005
1005
  X,
1006
1006
  {
1007
- value: c,
1008
- defaultValue: s,
1007
+ value: u,
1008
+ defaultValue: i,
1009
1009
  onChange: f,
1010
1010
  children: [
1011
- u && /* @__PURE__ */ l.jsx(Hr, { visible: u }),
1011
+ c && /* @__PURE__ */ l.jsx(Jr, { visible: c }),
1012
1012
  /* @__PURE__ */ l.jsx(X.List, { children: o.map((b) => /* @__PURE__ */ l.jsx(
1013
1013
  X.Tab,
1014
1014
  {
@@ -1022,303 +1022,303 @@ const tr = zr(void 0), yt = R((r, t) => {
1022
1022
  ]
1023
1023
  }
1024
1024
  ) });
1025
- }), Pt = R((r, t) => {
1026
- const { className: n, children: o, onClick: s, label: c, ...f } = r;
1025
+ }), _t = R((r, n) => {
1026
+ const { className: t, children: o, onClick: i, label: u, ...f } = r;
1027
1027
  return j(f), /* @__PURE__ */ l.jsx(
1028
1028
  U,
1029
1029
  {
1030
1030
  size: "xs",
1031
- "aria-label": c,
1032
- className: n,
1033
- ref: t,
1034
- onClick: s,
1031
+ "aria-label": u,
1032
+ className: t,
1033
+ ref: n,
1034
+ onClick: i,
1035
1035
  ...f,
1036
1036
  children: o
1037
1037
  }
1038
1038
  );
1039
- }), _t = R((r, t) => {
1040
- const { className: n, accept: o, value: s, placeholder: c, onChange: f, ...u } = r;
1041
- return j(u), /* @__PURE__ */ l.jsx(
1042
- Jr,
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,
1043
1043
  {
1044
1044
  size: "xs",
1045
- className: n,
1046
- ref: t,
1045
+ className: t,
1046
+ ref: n,
1047
1047
  accept: o,
1048
- value: s,
1049
- placeholder: c,
1048
+ value: i,
1049
+ placeholder: u,
1050
1050
  onChange: f,
1051
- ...u
1051
+ ...c
1052
1052
  }
1053
1053
  );
1054
- }), Ct = R((r, t) => {
1055
- const { className: n, children: o, ...s } = r;
1056
- return j(s), /* @__PURE__ */ l.jsx("div", { className: n, ref: t, children: o });
1057
- }), Ot = R((r, t) => {
1058
- const { className: n, value: o, placeholder: s, onKeyDown: c, onChange: f, ...u } = r;
1059
- return j(u), /* @__PURE__ */ l.jsx(
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
1060
  Je,
1061
1061
  {
1062
1062
  size: "xs",
1063
1063
  "data-test": "embed-input",
1064
- className: n,
1065
- ref: t,
1064
+ className: t,
1065
+ ref: n,
1066
1066
  value: o,
1067
- placeholder: s,
1068
- onKeyDown: c,
1067
+ placeholder: i,
1068
+ onKeyDown: u,
1069
1069
  onChange: f
1070
1070
  }
1071
1071
  );
1072
- }), Ft = (r) => {
1073
- const { children: t, opened: n, position: o, ...s } = r;
1074
- return j(s), /* @__PURE__ */ l.jsx(
1075
- qr,
1072
+ }), Dt = (r) => {
1073
+ const { children: n, opened: t, position: o, ...i } = r;
1074
+ return j(i), /* @__PURE__ */ l.jsx(
1075
+ Xr,
1076
1076
  {
1077
1077
  withinPortal: !1,
1078
1078
  zIndex: 1e4,
1079
- opened: n,
1079
+ opened: t,
1080
1080
  position: o,
1081
- children: t
1081
+ children: n
1082
1082
  }
1083
1083
  );
1084
- }, Dt = (r) => {
1085
- const { children: t, ...n } = r;
1086
- return j(n), /* @__PURE__ */ l.jsx(Xr, { children: t });
1087
- }, Nt = 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) => {
1088
1088
  const {
1089
- className: n,
1089
+ className: t,
1090
1090
  children: o,
1091
- variant: s,
1091
+ variant: i,
1092
1092
  // unused
1093
- ...c
1093
+ ...u
1094
1094
  } = r;
1095
- return j(c), /* @__PURE__ */ l.jsx(Zr, { className: n, ref: t, children: o });
1096
- }), Mt = R((r, t) => {
1097
- const { className: n, children: o, ...s } = r;
1098
- 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(
1099
1099
  N,
1100
1100
  {
1101
1101
  align: "center",
1102
1102
  gap: 0,
1103
- className: n,
1104
- ref: t,
1105
- ...s,
1103
+ className: t,
1104
+ ref: n,
1105
+ ...i,
1106
1106
  children: o
1107
1107
  }
1108
1108
  );
1109
- }), It = R((r, t) => {
1109
+ }), Lt = R((r, n) => {
1110
1110
  const {
1111
- className: n,
1111
+ className: t,
1112
1112
  children: o,
1113
- icon: s,
1114
- onClick: c,
1113
+ icon: i,
1114
+ onClick: u,
1115
1115
  onDragEnd: f,
1116
- onDragStart: u,
1116
+ onDragStart: c,
1117
1117
  draggable: d,
1118
1118
  label: b,
1119
1119
  ...h
1120
1120
  } = r;
1121
- return j(h, !1), s ? /* @__PURE__ */ l.jsx(
1121
+ return j(h, !1), i ? /* @__PURE__ */ l.jsx(
1122
1122
  Xe,
1123
1123
  {
1124
1124
  size: 24,
1125
- className: n,
1126
- ref: t,
1127
- onClick: c,
1125
+ className: t,
1126
+ ref: n,
1127
+ onClick: u,
1128
1128
  onDragEnd: f,
1129
- onDragStart: u,
1129
+ onDragStart: c,
1130
1130
  draggable: d,
1131
1131
  "aria-label": b,
1132
1132
  ...h,
1133
- children: s
1133
+ children: i
1134
1134
  }
1135
1135
  ) : /* @__PURE__ */ l.jsx(
1136
1136
  U,
1137
1137
  {
1138
- className: n,
1139
- ref: t,
1140
- onClick: c,
1138
+ className: t,
1139
+ ref: n,
1140
+ onClick: u,
1141
1141
  onDragEnd: f,
1142
- onDragStart: u,
1142
+ onDragStart: c,
1143
1143
  draggable: d,
1144
1144
  "aria-label": b,
1145
1145
  ...h,
1146
1146
  children: o
1147
1147
  }
1148
1148
  );
1149
- }), Lt = R((r, t) => {
1150
- const { className: n, children: o, id: s, ...c } = r;
1151
- return j(c), /* @__PURE__ */ l.jsx(
1149
+ }), At = R((r, n) => {
1150
+ const { className: t, children: o, id: i, ...u } = r;
1151
+ return j(u), /* @__PURE__ */ l.jsx(
1152
1152
  be,
1153
1153
  {
1154
1154
  gap: 0,
1155
- className: n,
1156
- ref: t,
1157
- id: s,
1155
+ className: t,
1156
+ ref: n,
1157
+ id: i,
1158
1158
  role: "listbox",
1159
1159
  children: o
1160
1160
  }
1161
1161
  );
1162
- }), At = R((r, t) => {
1163
- const { className: n, children: o, ...s } = r;
1164
- return j(s), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: /* @__PURE__ */ l.jsx(N, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
1165
- }), $t = R((r, t) => {
1166
- const { className: n, isSelected: o, onClick: s, item: c, id: f, ...u } = r;
1167
- j(u);
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
1168
  const d = ce(null);
1169
1169
  return Vr(() => {
1170
1170
  if (!d.current || !o)
1171
1171
  return;
1172
- const b = Yr(d.current);
1172
+ const b = Ur(d.current);
1173
1173
  b === "top" ? d.current.scrollIntoView(!0) : b === "bottom" && d.current.scrollIntoView(!1);
1174
1174
  }, [o]), /* @__PURE__ */ l.jsxs(
1175
1175
  N,
1176
1176
  {
1177
1177
  gap: 0,
1178
- className: n,
1179
- ref: ge(t, d),
1178
+ className: t,
1179
+ ref: ge(n, d),
1180
1180
  id: f,
1181
1181
  role: "option",
1182
- onClick: s,
1182
+ onClick: i,
1183
1183
  "aria-selected": o || void 0,
1184
1184
  children: [
1185
- c.icon && /* @__PURE__ */ l.jsx(
1185
+ u.icon && /* @__PURE__ */ l.jsx(
1186
1186
  N,
1187
1187
  {
1188
1188
  className: "bn-mt-suggestion-menu-item-section",
1189
1189
  "data-position": "left",
1190
- children: c.icon
1190
+ children: u.icon
1191
1191
  }
1192
1192
  ),
1193
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: c.title }),
1195
- /* @__PURE__ */ l.jsx(Z, { className: "bn-mt-suggestion-menu-item-subtitle", children: c.subtext })
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 })
1196
1196
  ] }),
1197
- c.badge && /* @__PURE__ */ l.jsx(
1197
+ u.badge && /* @__PURE__ */ l.jsx(
1198
1198
  N,
1199
1199
  {
1200
1200
  "data-position": "right",
1201
1201
  className: "bn-mt-suggestion-menu-item-section",
1202
- children: /* @__PURE__ */ l.jsx(Qr, { size: "xs", children: c.badge })
1202
+ children: /* @__PURE__ */ l.jsx(et, { size: "xs", children: u.badge })
1203
1203
  }
1204
1204
  )
1205
1205
  ]
1206
1206
  }
1207
1207
  );
1208
- }), zt = R((r, t) => {
1209
- const { className: n, children: o, ...s } = r;
1210
- return j(s), /* @__PURE__ */ l.jsx(N, { className: n, ref: t, children: o });
1211
- }), Wt = 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) => {
1212
1212
  const {
1213
- className: n,
1213
+ className: t,
1214
1214
  children: o,
1215
1215
  // unused, using "dots" instead
1216
- ...s
1216
+ ...i
1217
1217
  } = r;
1218
- return j(s), /* @__PURE__ */ l.jsx(et, { className: n, type: "dots", ref: t });
1219
- }), Bt = R((r, t) => {
1218
+ return j(i), /* @__PURE__ */ l.jsx(rt, { className: t, type: "dots", ref: n });
1219
+ }), Vt = R((r, n) => {
1220
1220
  const {
1221
- className: n,
1221
+ className: t,
1222
1222
  children: o,
1223
- draggable: s,
1224
- onDragStart: c,
1223
+ draggable: i,
1224
+ onDragStart: u,
1225
1225
  onDragEnd: f,
1226
- style: u,
1226
+ style: c,
1227
1227
  label: d,
1228
1228
  ...b
1229
1229
  } = r;
1230
1230
  return j(b, !1), /* @__PURE__ */ l.jsx(
1231
1231
  U,
1232
1232
  {
1233
- className: n,
1234
- ref: t,
1233
+ className: t,
1234
+ ref: n,
1235
1235
  "aria-label": d,
1236
- draggable: s,
1237
- onDragStart: c,
1236
+ draggable: i,
1237
+ onDragStart: u,
1238
1238
  onDragEnd: f,
1239
- style: u,
1239
+ style: c,
1240
1240
  ...b,
1241
1241
  children: o
1242
1242
  }
1243
1243
  );
1244
1244
  }), Ke = R(
1245
- (r, t) => {
1246
- const { className: n, children: o, onMouseEnter: s, onMouseLeave: c, ...f } = r;
1245
+ (r, n) => {
1246
+ const { className: t, children: o, onMouseEnter: i, onMouseLeave: u, ...f } = r;
1247
1247
  j(f);
1248
- const { ref: u, focused: d } = ot(), b = at(d), h = ge(t, u, b);
1248
+ const { ref: c, focused: d } = at(), b = it(d), h = ge(n, c, b);
1249
1249
  return /* @__PURE__ */ l.jsx(
1250
1250
  N,
1251
1251
  {
1252
- className: n,
1252
+ className: t,
1253
1253
  ref: h,
1254
1254
  role: "toolbar",
1255
- onMouseEnter: s,
1256
- onMouseLeave: c,
1255
+ onMouseEnter: i,
1256
+ onMouseLeave: u,
1257
1257
  children: o
1258
1258
  }
1259
1259
  );
1260
1260
  }
1261
- ), Vt = (r) => /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-tooltip", children: [
1261
+ ), Yt = (r) => /* @__PURE__ */ l.jsxs(be, { gap: 0, className: "bn-tooltip", children: [
1262
1262
  /* @__PURE__ */ l.jsx(Z, { size: "sm", children: r.mainTooltip }),
1263
1263
  r.secondaryTooltip && /* @__PURE__ */ l.jsx(Z, { size: "xs", children: r.secondaryTooltip })
1264
1264
  ] }), Ge = R(
1265
- (r, t) => {
1265
+ (r, n) => {
1266
1266
  const {
1267
- className: n,
1267
+ className: t,
1268
1268
  children: o,
1269
- mainTooltip: s,
1270
- secondaryTooltip: c,
1269
+ mainTooltip: i,
1270
+ secondaryTooltip: u,
1271
1271
  icon: f,
1272
- isSelected: u,
1272
+ isSelected: c,
1273
1273
  isDisabled: d,
1274
1274
  onClick: b,
1275
1275
  label: h,
1276
1276
  ...w
1277
1277
  } = r;
1278
1278
  return j(w, !1), /* @__PURE__ */ l.jsx(
1279
- rt,
1279
+ tt,
1280
1280
  {
1281
1281
  withinPortal: !1,
1282
1282
  label: /* @__PURE__ */ l.jsx(
1283
- Vt,
1283
+ Yt,
1284
1284
  {
1285
- mainTooltip: s,
1286
- secondaryTooltip: c
1285
+ mainTooltip: i,
1286
+ secondaryTooltip: u
1287
1287
  }
1288
1288
  ),
1289
1289
  children: o ? /* @__PURE__ */ l.jsx(
1290
1290
  U,
1291
1291
  {
1292
1292
  "aria-label": h,
1293
- className: n,
1293
+ className: t,
1294
1294
  onMouseDown: (k) => {
1295
1295
  fe() && k.currentTarget.focus();
1296
1296
  },
1297
1297
  onClick: b,
1298
- "aria-pressed": u,
1299
- "data-selected": u || void 0,
1300
- "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),
1301
1301
  size: "xs",
1302
1302
  disabled: d || !1,
1303
- ref: t,
1303
+ ref: n,
1304
1304
  ...w,
1305
1305
  children: o
1306
1306
  }
1307
1307
  ) : /* @__PURE__ */ l.jsx(
1308
1308
  Xe,
1309
1309
  {
1310
- className: n,
1310
+ className: t,
1311
1311
  "aria-label": h,
1312
1312
  onMouseDown: (k) => {
1313
1313
  fe() && k.currentTarget.focus();
1314
1314
  },
1315
1315
  onClick: b,
1316
- "aria-pressed": u,
1317
- "data-selected": u || void 0,
1318
- "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),
1319
1319
  size: 30,
1320
1320
  disabled: d || !1,
1321
- ref: t,
1321
+ ref: n,
1322
1322
  ...w,
1323
1323
  children: f
1324
1324
  }
@@ -1326,10 +1326,10 @@ const tr = zr(void 0), yt = R((r, t) => {
1326
1326
  }
1327
1327
  );
1328
1328
  }
1329
- ), Yt = R((r, t) => {
1330
- const { className: n, items: o, isDisabled: s, ...c } = r;
1331
- j(c);
1332
- const f = o.filter((u) => u.isSelected)[0];
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
1333
  return f ? /* @__PURE__ */ l.jsxs(
1334
1334
  O,
1335
1335
  {
@@ -1337,36 +1337,36 @@ const tr = zr(void 0), yt = R((r, t) => {
1337
1337
  transitionProps: {
1338
1338
  exitDuration: 0
1339
1339
  },
1340
- disabled: s,
1340
+ disabled: i,
1341
1341
  middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
1342
1342
  children: [
1343
1343
  /* @__PURE__ */ l.jsx(O.Target, { children: /* @__PURE__ */ l.jsx(
1344
1344
  U,
1345
1345
  {
1346
- onMouseDown: (u) => {
1347
- fe() && u.currentTarget.focus();
1346
+ onMouseDown: (c) => {
1347
+ fe() && c.currentTarget.focus();
1348
1348
  },
1349
1349
  leftSection: f.icon,
1350
- rightSection: /* @__PURE__ */ l.jsx(ht, {}),
1350
+ rightSection: /* @__PURE__ */ l.jsx(xt, {}),
1351
1351
  size: "xs",
1352
1352
  variant: "subtle",
1353
- disabled: s,
1353
+ disabled: i,
1354
1354
  children: f.text
1355
1355
  }
1356
1356
  ) }),
1357
- /* @__PURE__ */ l.jsx(O.Dropdown, { className: n, ref: t, children: o.map((u) => /* @__PURE__ */ l.jsx(
1357
+ /* @__PURE__ */ l.jsx(O.Dropdown, { className: t, ref: n, children: o.map((c) => /* @__PURE__ */ l.jsx(
1358
1358
  O.Item,
1359
1359
  {
1360
- onClick: u.onClick,
1361
- leftSection: u.icon,
1362
- rightSection: u.isSelected ? /* @__PURE__ */ l.jsx(qe, { 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" }) : (
1363
1363
  // Ensures space for tick even if item isn't currently selected.
1364
1364
  /* @__PURE__ */ l.jsx("div", { className: "bn-tick-space" })
1365
1365
  ),
1366
- disabled: u.isDisabled,
1367
- children: u.text
1366
+ disabled: c.isDisabled,
1367
+ children: c.text
1368
1368
  },
1369
- u.text
1369
+ c.text
1370
1370
  )) })
1371
1371
  ]
1372
1372
  }
@@ -1453,7 +1453,7 @@ const x = [
1453
1453
  },
1454
1454
  borderRadius: 6,
1455
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'
1456
- }, Qt = {
1456
+ }, en = {
1457
1457
  colors: {
1458
1458
  editor: {
1459
1459
  text: x[2],
@@ -1523,101 +1523,102 @@ const x = [
1523
1523
  },
1524
1524
  borderRadius: He.borderRadius,
1525
1525
  fontFamily: He.fontFamily
1526
- }, Ut = {
1526
+ }, Kt = {
1527
1527
  FormattingToolbar: {
1528
1528
  Root: Ke,
1529
1529
  Button: Ge,
1530
- Select: Yt
1530
+ Select: Ut
1531
1531
  },
1532
1532
  FilePanel: {
1533
- Root: St,
1534
- Button: Pt,
1535
- FileInput: _t,
1536
- TabPanel: Ct,
1537
- TextInput: Ot
1533
+ Root: Pt,
1534
+ Button: _t,
1535
+ FileInput: Ct,
1536
+ TabPanel: Ot,
1537
+ TextInput: Ft
1538
1538
  },
1539
1539
  LinkToolbar: {
1540
1540
  Root: Ke,
1541
1541
  Button: Ge
1542
1542
  },
1543
1543
  SideMenu: {
1544
- Root: Mt,
1545
- Button: It
1544
+ Root: It,
1545
+ Button: Lt
1546
1546
  },
1547
1547
  SuggestionMenu: {
1548
- Root: Lt,
1549
- Item: $t,
1550
- EmptyItem: At,
1551
- Label: zt,
1552
- Loader: Wt
1548
+ Root: At,
1549
+ Item: zt,
1550
+ EmptyItem: $t,
1551
+ Label: Wt,
1552
+ Loader: Bt
1553
1553
  },
1554
1554
  TableHandle: {
1555
- Root: Bt
1555
+ Root: Vt
1556
1556
  },
1557
1557
  Generic: {
1558
1558
  Form: {
1559
1559
  Root: (r) => /* @__PURE__ */ l.jsx("div", { children: r.children }),
1560
- TextInput: ct
1560
+ TextInput: dt
1561
1561
  },
1562
1562
  Menu: {
1563
- Root: jt,
1564
- Trigger: Et,
1565
- Dropdown: Tt,
1566
- Divider: wt,
1567
- Label: kt,
1568
- Item: Rt
1563
+ Root: Rt,
1564
+ Trigger: Tt,
1565
+ Dropdown: wt,
1566
+ Divider: kt,
1567
+ Label: St,
1568
+ Item: Et
1569
1569
  },
1570
1570
  Popover: {
1571
- Root: Ft,
1572
- Trigger: Dt,
1573
- Content: Nt
1571
+ Root: Dt,
1572
+ Trigger: Nt,
1573
+ Content: Mt
1574
1574
  }
1575
1575
  }
1576
- }, Kt = {
1576
+ }, Gt = {
1577
1577
  // Removes button press effect
1578
1578
  activeClassName: ""
1579
- }, en = (r) => {
1580
- const { theme: t, ...n } = r, o = Ur(), s = nt(), c = (o == null ? void 0 : o.colorSchemePreference) || s, f = de(
1581
- (u) => {
1582
- if (u && (ut(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")) {
1583
1583
  if ("light" in t && "dark" in t) {
1584
1584
  Ve(
1585
- t[c === "dark" ? "dark" : "light"],
1586
- u
1585
+ t[f === "dark" ? "dark" : "light"],
1586
+ d
1587
1587
  );
1588
1588
  return;
1589
1589
  }
1590
- Ve(t, u);
1590
+ Ve(t, d);
1591
1591
  return;
1592
1592
  }
1593
1593
  },
1594
- [c, t]
1594
+ [f, t]
1595
1595
  );
1596
- return /* @__PURE__ */ l.jsx(Kr.Provider, { value: Ut, children: /* @__PURE__ */ l.jsx(
1597
- tt,
1596
+ return /* @__PURE__ */ l.jsx(Gr.Provider, { value: Kt, children: /* @__PURE__ */ l.jsx(
1597
+ nt,
1598
1598
  {
1599
- theme: Kt,
1600
- cssVariablesSelector: ".bn-container",
1599
+ theme: Gt,
1600
+ cssVariablesSelector: ".bn-mantine",
1601
1601
  getRootElement: () => {
1602
1602
  },
1603
1603
  children: /* @__PURE__ */ l.jsx(
1604
- Gr,
1604
+ Hr,
1605
1605
  {
1606
+ className: Yr("bn-mantine", n || ""),
1606
1607
  theme: typeof t == "object" ? void 0 : t,
1607
- ...n,
1608
- ref: f
1608
+ ...o,
1609
+ ref: c
1609
1610
  }
1610
1611
  )
1611
1612
  }
1612
1613
  ) });
1613
1614
  };
1614
1615
  export {
1615
- en as BlockNoteView,
1616
+ rn as BlockNoteView,
1616
1617
  Ve as applyBlockNoteCSSVariablesFromTheme,
1617
- Ut as components,
1618
- Qt as darkDefaultTheme,
1618
+ Kt as components,
1619
+ en as darkDefaultTheme,
1619
1620
  x as defaultColorScheme,
1620
1621
  He as lightDefaultTheme,
1621
- ut as removeBlockNoteCSSVariables
1622
+ ct as removeBlockNoteCSSVariables
1622
1623
  };
1623
1624
  //# sourceMappingURL=blocknote-mantine.js.map