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