@blocknote/mantine 0.14.5 → 0.15.0

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