@blocknote/mantine 0.13.2 → 0.13.4

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