@blocknote/shadcn 0.14.6 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
1
  import * as p from "react";
2
- import ze, { createContext as ot, useContext as at, useMemo as We, forwardRef as N, useRef as st, useEffect as it } from "react";
3
- import { assertEmpty as C, mergeCSSClasses as lt } from "@blocknote/core";
4
- import { elementOverflow as dt, mergeRefs as ct, ComponentsContext as bt, BlockNoteViewRaw as ut } from "@blocknote/react";
2
+ import ze, { createContext as lt, useContext as dt, forwardRef as C, useRef as We, useEffect as Ye, useMemo as Ue } from "react";
3
+ import { assertEmpty as w, mergeCSSClasses as ct } from "@blocknote/core";
4
+ import { elementOverflow as Ge, mergeRefs as Ke, ComponentsContext as ut, BlockNoteViewRaw as bt } from "@blocknote/react";
5
5
  import { cva as Q } from "class-variance-authority";
6
6
  import { clsx as ft } from "clsx";
7
7
  import { extendTailwindMerge as mt } from "tailwind-merge";
8
- import { Slot as Ye } from "@radix-ui/react-slot";
9
- import * as R from "@radix-ui/react-dropdown-menu";
10
- import { ChevronRight as Ue, Check as Ke, Circle as pt, ChevronDown as Je, ChevronUp as gt } from "lucide-react";
8
+ import { Slot as Je } from "@radix-ui/react-slot";
9
+ import * as T from "@radix-ui/react-dropdown-menu";
10
+ import { ChevronRight as qe, Check as He, Circle as pt, ChevronDown as Xe, ChevronUp as gt } from "lucide-react";
11
11
  import { FormProvider as vt, useFormContext as xt, useForm as ht } from "react-hook-form";
12
- import * as qe from "@radix-ui/react-label";
12
+ import * as Ze from "@radix-ui/react-label";
13
13
  import * as ee from "@radix-ui/react-popover";
14
14
  import * as D from "@radix-ui/react-select";
15
15
  import * as V from "@radix-ui/react-tabs";
16
- import * as Ge from "@radix-ui/react-toggle";
17
- import * as q from "@radix-ui/react-tooltip";
18
- var be = { exports: {} }, K = {};
16
+ import * as Qe from "@radix-ui/react-toggle";
17
+ import * as J from "@radix-ui/react-tooltip";
18
+ var ue = { exports: {} }, G = {};
19
19
  /**
20
20
  * @license React
21
21
  * react-jsx-runtime.production.min.js
@@ -28,22 +28,22 @@ var be = { exports: {} }, K = {};
28
28
  var Be;
29
29
  function yt() {
30
30
  if (Be)
31
- return K;
31
+ return G;
32
32
  Be = 1;
33
- var r = ze, 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, d = { key: !0, ref: !0, __self: !0, __source: !0 };
34
- function c(x, m, u) {
33
+ var r = ze, 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, d = { key: !0, ref: !0, __self: !0, __source: !0 };
34
+ function c(v, f, u) {
35
35
  var g, j = {}, _ = null, F = null;
36
- u !== void 0 && (_ = "" + u), m.key !== void 0 && (_ = "" + m.key), m.ref !== void 0 && (F = m.ref);
37
- for (g in m)
38
- a.call(m, g) && !d.hasOwnProperty(g) && (j[g] = m[g]);
39
- if (x && x.defaultProps)
40
- for (g in m = x.defaultProps, m)
41
- j[g] === void 0 && (j[g] = m[g]);
42
- return { $$typeof: t, type: x, key: _, ref: F, props: j, _owner: s.current };
36
+ u !== void 0 && (_ = "" + u), f.key !== void 0 && (_ = "" + f.key), f.ref !== void 0 && (F = f.ref);
37
+ for (g in f)
38
+ o.call(f, g) && !d.hasOwnProperty(g) && (j[g] = f[g]);
39
+ if (v && v.defaultProps)
40
+ for (g in f = v.defaultProps, f)
41
+ j[g] === void 0 && (j[g] = f[g]);
42
+ return { $$typeof: t, type: v, key: _, ref: F, props: j, _owner: s.current };
43
43
  }
44
- return K.Fragment = n, K.jsx = c, K.jsxs = c, K;
44
+ return G.Fragment = n, G.jsx = c, G.jsxs = c, G;
45
45
  }
46
- var J = {};
46
+ var K = {};
47
47
  /**
48
48
  * @license React
49
49
  * react-jsx-runtime.development.js
@@ -56,44 +56,44 @@ var J = {};
56
56
  var Ve;
57
57
  function wt() {
58
58
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
59
- var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), x = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), fe = Symbol.iterator, wn = "@@iterator";
60
- function Cn(e) {
59
+ var r = ze, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), v = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), fe = Symbol.iterator, Sn = "@@iterator";
60
+ function Tn(e) {
61
61
  if (e === null || typeof e != "object")
62
62
  return null;
63
- var i = fe && e[fe] || e[wn];
63
+ var i = fe && e[fe] || e[Sn];
64
64
  return typeof i == "function" ? i : null;
65
65
  }
66
- var A = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
66
+ var $ = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
67
  function P(e) {
68
68
  {
69
- for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), f = 1; f < i; f++)
70
- l[f - 1] = arguments[f];
71
- Nn("error", e, l);
69
+ for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
70
+ l[m - 1] = arguments[m];
71
+ Rn("error", e, l);
72
72
  }
73
73
  }
74
- function Nn(e, i, l) {
74
+ function Rn(e, i, l) {
75
75
  {
76
- var f = A.ReactDebugCurrentFrame, y = f.getStackAddendum();
76
+ var m = $.ReactDebugCurrentFrame, y = m.getStackAddendum();
77
77
  y !== "" && (i += "%s", l = l.concat([y]));
78
- var w = l.map(function(h) {
78
+ var N = l.map(function(h) {
79
79
  return String(h);
80
80
  });
81
- w.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, w);
81
+ N.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, N);
82
82
  }
83
83
  }
84
- var jn = !1, Tn = !1, Rn = !1, Sn = !1, En = !1, me;
84
+ var En = !1, Dn = !1, _n = !1, Pn = !1, In = !1, me;
85
85
  me = Symbol.for("react.module.reference");
86
- function Dn(e) {
87
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === d || En || e === s || e === u || e === g || Sn || e === F || jn || Tn || Rn || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === j || e.$$typeof === c || e.$$typeof === x || e.$$typeof === m || // This needs to include all possible module reference object
86
+ function Mn(e) {
87
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === d || In || e === s || e === u || e === g || Pn || e === F || En || Dn || _n || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === j || e.$$typeof === c || e.$$typeof === v || e.$$typeof === f || // This needs to include all possible module reference object
88
88
  // types supported by any Flight configuration anywhere since
89
89
  // we don't know which Flight build this will end up being used
90
90
  // with.
91
91
  e.$$typeof === me || e.getModuleId !== void 0));
92
92
  }
93
- function _n(e, i, l) {
94
- var f = e.displayName;
95
- if (f)
96
- return f;
93
+ function kn(e, i, l) {
94
+ var m = e.displayName;
95
+ if (m)
96
+ return m;
97
97
  var y = i.displayName || i.name || "";
98
98
  return y !== "" ? l + "(" + y + ")" : l;
99
99
  }
@@ -108,7 +108,7 @@ function wt() {
108
108
  if (typeof e == "string")
109
109
  return e;
110
110
  switch (e) {
111
- case a:
111
+ case o:
112
112
  return "Fragment";
113
113
  case n:
114
114
  return "Portal";
@@ -123,21 +123,21 @@ function wt() {
123
123
  }
124
124
  if (typeof e == "object")
125
125
  switch (e.$$typeof) {
126
- case x:
126
+ case v:
127
127
  var i = e;
128
128
  return pe(i) + ".Consumer";
129
129
  case c:
130
130
  var l = e;
131
131
  return pe(l._context) + ".Provider";
132
- case m:
133
- return _n(e, e.render, "ForwardRef");
132
+ case f:
133
+ return kn(e, e.render, "ForwardRef");
134
134
  case j:
135
- var f = e.displayName || null;
136
- return f !== null ? f : O(e.type) || "Memo";
135
+ var m = e.displayName || null;
136
+ return m !== null ? m : O(e.type) || "Memo";
137
137
  case _: {
138
- var y = e, w = y._payload, h = y._init;
138
+ var y = e, N = y._payload, h = y._init;
139
139
  try {
140
- return O(h(w));
140
+ return O(h(N));
141
141
  } catch {
142
142
  return null;
143
143
  }
@@ -149,7 +149,7 @@ function wt() {
149
149
  function Ne() {
150
150
  }
151
151
  Ne.__reactDisabledLog = !0;
152
- function Pn() {
152
+ function Fn() {
153
153
  {
154
154
  if (W === 0) {
155
155
  ge = console.log, ve = console.info, xe = console.warn, he = console.error, ye = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
@@ -172,7 +172,7 @@ function wt() {
172
172
  W++;
173
173
  }
174
174
  }
175
- function In() {
175
+ function On() {
176
176
  {
177
177
  if (W--, W === 0) {
178
178
  var e = {
@@ -207,15 +207,15 @@ function wt() {
207
207
  W < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
208
208
  }
209
209
  }
210
- var te = A.ReactCurrentDispatcher, re;
211
- function G(e, i, l) {
210
+ var te = $.ReactCurrentDispatcher, re;
211
+ function q(e, i, l) {
212
212
  {
213
213
  if (re === void 0)
214
214
  try {
215
215
  throw Error();
216
216
  } catch (y) {
217
- var f = y.stack.trim().match(/\n( *(at )?)/);
218
- re = f && f[1] || "";
217
+ var m = y.stack.trim().match(/\n( *(at )?)/);
218
+ re = m && m[1] || "";
219
219
  }
220
220
  return `
221
221
  ` + re + e;
@@ -223,8 +223,8 @@ function wt() {
223
223
  }
224
224
  var oe = !1, H;
225
225
  {
226
- var Mn = typeof WeakMap == "function" ? WeakMap : Map;
227
- H = new Mn();
226
+ var Ln = typeof WeakMap == "function" ? WeakMap : Map;
227
+ H = new Ln();
228
228
  }
229
229
  function je(e, i) {
230
230
  if (!e || oe)
@@ -234,12 +234,12 @@ function wt() {
234
234
  if (l !== void 0)
235
235
  return l;
236
236
  }
237
- var f;
237
+ var m;
238
238
  oe = !0;
239
239
  var y = Error.prepareStackTrace;
240
240
  Error.prepareStackTrace = void 0;
241
- var w;
242
- w = te.current, te.current = null, Pn();
241
+ var N;
242
+ N = te.current, te.current = null, Fn();
243
243
  try {
244
244
  if (i) {
245
245
  var h = function() {
@@ -253,14 +253,14 @@ function wt() {
253
253
  try {
254
254
  Reflect.construct(h, []);
255
255
  } catch (M) {
256
- f = M;
256
+ m = M;
257
257
  }
258
258
  Reflect.construct(e, [], h);
259
259
  } else {
260
260
  try {
261
261
  h.call();
262
262
  } catch (M) {
263
- f = M;
263
+ m = M;
264
264
  }
265
265
  e.call(h.prototype);
266
266
  }
@@ -268,39 +268,39 @@ function wt() {
268
268
  try {
269
269
  throw Error();
270
270
  } catch (M) {
271
- f = M;
271
+ m = M;
272
272
  }
273
273
  e();
274
274
  }
275
275
  } catch (M) {
276
- if (M && f && typeof M.stack == "string") {
277
- for (var v = M.stack.split(`
278
- `), I = f.stack.split(`
279
- `), T = v.length - 1, E = I.length - 1; T >= 1 && E >= 0 && v[T] !== I[E]; )
276
+ if (M && m && typeof M.stack == "string") {
277
+ for (var x = M.stack.split(`
278
+ `), I = m.stack.split(`
279
+ `), S = x.length - 1, E = I.length - 1; S >= 1 && E >= 0 && x[S] !== I[E]; )
280
280
  E--;
281
- for (; T >= 1 && E >= 0; T--, E--)
282
- if (v[T] !== I[E]) {
283
- if (T !== 1 || E !== 1)
281
+ for (; S >= 1 && E >= 0; S--, E--)
282
+ if (x[S] !== I[E]) {
283
+ if (S !== 1 || E !== 1)
284
284
  do
285
- if (T--, E--, E < 0 || v[T] !== I[E]) {
285
+ if (S--, E--, E < 0 || x[S] !== I[E]) {
286
286
  var k = `
287
- ` + v[T].replace(" at new ", " at ");
287
+ ` + x[S].replace(" at new ", " at ");
288
288
  return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, k), k;
289
289
  }
290
- while (T >= 1 && E >= 0);
290
+ while (S >= 1 && E >= 0);
291
291
  break;
292
292
  }
293
293
  }
294
294
  } finally {
295
- oe = !1, te.current = w, In(), Error.prepareStackTrace = y;
295
+ oe = !1, te.current = N, On(), Error.prepareStackTrace = y;
296
296
  }
297
- var z = e ? e.displayName || e.name : "", B = z ? G(z) : "";
297
+ var z = e ? e.displayName || e.name : "", B = z ? q(z) : "";
298
298
  return typeof e == "function" && H.set(e, B), B;
299
299
  }
300
- function kn(e, i, l) {
300
+ function Bn(e, i, l) {
301
301
  return je(e, !1);
302
302
  }
303
- function Fn(e) {
303
+ function Vn(e) {
304
304
  var i = e.prototype;
305
305
  return !!(i && i.isReactComponent);
306
306
  }
@@ -308,90 +308,90 @@ function wt() {
308
308
  if (e == null)
309
309
  return "";
310
310
  if (typeof e == "function")
311
- return je(e, Fn(e));
311
+ return je(e, Vn(e));
312
312
  if (typeof e == "string")
313
- return G(e);
313
+ return q(e);
314
314
  switch (e) {
315
315
  case u:
316
- return G("Suspense");
316
+ return q("Suspense");
317
317
  case g:
318
- return G("SuspenseList");
318
+ return q("SuspenseList");
319
319
  }
320
320
  if (typeof e == "object")
321
321
  switch (e.$$typeof) {
322
- case m:
323
- return kn(e.render);
322
+ case f:
323
+ return Bn(e.render);
324
324
  case j:
325
325
  return X(e.type, i, l);
326
326
  case _: {
327
- var f = e, y = f._payload, w = f._init;
327
+ var m = e, y = m._payload, N = m._init;
328
328
  try {
329
- return X(w(y), i, l);
329
+ return X(N(y), i, l);
330
330
  } catch {
331
331
  }
332
332
  }
333
333
  }
334
334
  return "";
335
335
  }
336
- var Y = Object.prototype.hasOwnProperty, Te = {}, Re = A.ReactDebugCurrentFrame;
336
+ var Y = Object.prototype.hasOwnProperty, Se = {}, Te = $.ReactDebugCurrentFrame;
337
337
  function Z(e) {
338
338
  if (e) {
339
339
  var i = e._owner, l = X(e.type, e._source, i ? i.type : null);
340
- Re.setExtraStackFrame(l);
340
+ Te.setExtraStackFrame(l);
341
341
  } else
342
- Re.setExtraStackFrame(null);
342
+ Te.setExtraStackFrame(null);
343
343
  }
344
- function On(e, i, l, f, y) {
344
+ function $n(e, i, l, m, y) {
345
345
  {
346
- var w = Function.call.bind(Y);
346
+ var N = Function.call.bind(Y);
347
347
  for (var h in e)
348
- if (w(e, h)) {
349
- var v = void 0;
348
+ if (N(e, h)) {
349
+ var x = void 0;
350
350
  try {
351
351
  if (typeof e[h] != "function") {
352
- var I = Error((f || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
352
+ var I = Error((m || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
353
353
  throw I.name = "Invariant Violation", I;
354
354
  }
355
- v = e[h](i, h, f, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
356
- } catch (T) {
357
- v = T;
355
+ x = e[h](i, h, m, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
356
+ } catch (S) {
357
+ x = S;
358
358
  }
359
- v && !(v instanceof Error) && (Z(y), P("%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", l, h, typeof v), Z(null)), v instanceof Error && !(v.message in Te) && (Te[v.message] = !0, Z(y), P("Failed %s type: %s", l, v.message), Z(null));
359
+ x && !(x instanceof Error) && (Z(y), P("%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).", m || "React class", l, h, typeof x), Z(null)), x instanceof Error && !(x.message in Se) && (Se[x.message] = !0, Z(y), P("Failed %s type: %s", l, x.message), Z(null));
360
360
  }
361
361
  }
362
362
  }
363
- var Ln = Array.isArray;
363
+ var An = Array.isArray;
364
364
  function ae(e) {
365
- return Ln(e);
365
+ return An(e);
366
366
  }
367
- function Bn(e) {
367
+ function zn(e) {
368
368
  {
369
369
  var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
370
370
  return l;
371
371
  }
372
372
  }
373
- function Vn(e) {
373
+ function Wn(e) {
374
374
  try {
375
- return Se(e), !1;
375
+ return Re(e), !1;
376
376
  } catch {
377
377
  return !0;
378
378
  }
379
379
  }
380
- function Se(e) {
380
+ function Re(e) {
381
381
  return "" + e;
382
382
  }
383
383
  function Ee(e) {
384
- if (Vn(e))
385
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(e)), Se(e);
384
+ if (Wn(e))
385
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zn(e)), Re(e);
386
386
  }
387
- var U = A.ReactCurrentOwner, An = {
387
+ var U = $.ReactCurrentOwner, Yn = {
388
388
  key: !0,
389
389
  ref: !0,
390
390
  __self: !0,
391
391
  __source: !0
392
392
  }, De, _e, se;
393
393
  se = {};
394
- function $n(e) {
394
+ function Un(e) {
395
395
  if (Y.call(e, "ref")) {
396
396
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
397
397
  if (i && i.isReactWarning)
@@ -399,7 +399,7 @@ function wt() {
399
399
  }
400
400
  return e.ref !== void 0;
401
401
  }
402
- function zn(e) {
402
+ function Gn(e) {
403
403
  if (Y.call(e, "key")) {
404
404
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
405
405
  if (i && i.isReactWarning)
@@ -407,13 +407,13 @@ function wt() {
407
407
  }
408
408
  return e.key !== void 0;
409
409
  }
410
- function Wn(e, i) {
410
+ function Kn(e, i) {
411
411
  if (typeof e.ref == "string" && U.current && i && U.current.stateNode !== i) {
412
412
  var l = O(U.current.type);
413
413
  se[l] || (P('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(U.current.type), e.ref), se[l] = !0);
414
414
  }
415
415
  }
416
- function Yn(e, i) {
416
+ function Jn(e, i) {
417
417
  {
418
418
  var l = function() {
419
419
  De || (De = !0, P("%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)", i));
@@ -424,7 +424,7 @@ function wt() {
424
424
  });
425
425
  }
426
426
  }
427
- function Un(e, i) {
427
+ function qn(e, i) {
428
428
  {
429
429
  var l = function() {
430
430
  _e || (_e = !0, P("%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)", i));
@@ -435,8 +435,8 @@ function wt() {
435
435
  });
436
436
  }
437
437
  }
438
- var Kn = function(e, i, l, f, y, w, h) {
439
- var v = {
438
+ var Hn = function(e, i, l, m, y, N, h) {
439
+ var x = {
440
440
  // This tag allows us to uniquely identify this as a React Element
441
441
  $$typeof: t,
442
442
  // Built-in properties that belong on the element
@@ -445,45 +445,45 @@ function wt() {
445
445
  ref: l,
446
446
  props: h,
447
447
  // Record the component responsible for creating this element.
448
- _owner: w
448
+ _owner: N
449
449
  };
450
- return v._store = {}, Object.defineProperty(v._store, "validated", {
450
+ return x._store = {}, Object.defineProperty(x._store, "validated", {
451
451
  configurable: !1,
452
452
  enumerable: !1,
453
453
  writable: !0,
454
454
  value: !1
455
- }), Object.defineProperty(v, "_self", {
455
+ }), Object.defineProperty(x, "_self", {
456
456
  configurable: !1,
457
457
  enumerable: !1,
458
458
  writable: !1,
459
- value: f
460
- }), Object.defineProperty(v, "_source", {
459
+ value: m
460
+ }), Object.defineProperty(x, "_source", {
461
461
  configurable: !1,
462
462
  enumerable: !1,
463
463
  writable: !1,
464
464
  value: y
465
- }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
465
+ }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
466
466
  };
467
- function Jn(e, i, l, f, y) {
467
+ function Xn(e, i, l, m, y) {
468
468
  {
469
- var w, h = {}, v = null, I = null;
470
- l !== void 0 && (Ee(l), v = "" + l), zn(i) && (Ee(i.key), v = "" + i.key), $n(i) && (I = i.ref, Wn(i, y));
471
- for (w in i)
472
- Y.call(i, w) && !An.hasOwnProperty(w) && (h[w] = i[w]);
469
+ var N, h = {}, x = null, I = null;
470
+ l !== void 0 && (Ee(l), x = "" + l), Gn(i) && (Ee(i.key), x = "" + i.key), Un(i) && (I = i.ref, Kn(i, y));
471
+ for (N in i)
472
+ Y.call(i, N) && !Yn.hasOwnProperty(N) && (h[N] = i[N]);
473
473
  if (e && e.defaultProps) {
474
- var T = e.defaultProps;
475
- for (w in T)
476
- h[w] === void 0 && (h[w] = T[w]);
474
+ var S = e.defaultProps;
475
+ for (N in S)
476
+ h[N] === void 0 && (h[N] = S[N]);
477
477
  }
478
- if (v || I) {
478
+ if (x || I) {
479
479
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
480
- v && Yn(h, E), I && Un(h, E);
480
+ x && Jn(h, E), I && qn(h, E);
481
481
  }
482
- return Kn(e, v, I, y, f, U.current, h);
482
+ return Hn(e, x, I, y, m, U.current, h);
483
483
  }
484
484
  }
485
- var ie = A.ReactCurrentOwner, Pe = A.ReactDebugCurrentFrame;
486
- function $(e) {
485
+ var ie = $.ReactCurrentOwner, Pe = $.ReactDebugCurrentFrame;
486
+ function A(e) {
487
487
  if (e) {
488
488
  var i = e._owner, l = X(e.type, e._source, i ? i.type : null);
489
489
  Pe.setExtraStackFrame(l);
@@ -507,7 +507,7 @@ Check the render method of \`` + e + "`.";
507
507
  return "";
508
508
  }
509
509
  }
510
- function qn(e) {
510
+ function Zn(e) {
511
511
  {
512
512
  if (e !== void 0) {
513
513
  var i = e.fileName.replace(/^.*[\\\/]/, ""), l = e.lineNumber;
@@ -519,7 +519,7 @@ Check your code at ` + i + ":" + l + ".";
519
519
  }
520
520
  }
521
521
  var Me = {};
522
- function Gn(e) {
522
+ function Qn(e) {
523
523
  {
524
524
  var i = Ie();
525
525
  if (!i) {
@@ -536,12 +536,12 @@ Check the top-level render call using <` + l + ">.");
536
536
  if (!e._store || e._store.validated || e.key != null)
537
537
  return;
538
538
  e._store.validated = !0;
539
- var l = Gn(i);
539
+ var l = Qn(i);
540
540
  if (Me[l])
541
541
  return;
542
542
  Me[l] = !0;
543
- var f = "";
544
- e && e._owner && e._owner !== ie.current && (f = " It was passed a child from " + O(e._owner.type) + "."), $(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, f), $(null);
543
+ var m = "";
544
+ e && e._owner && e._owner !== ie.current && (m = " It was passed a child from " + O(e._owner.type) + "."), A(e), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, m), A(null);
545
545
  }
546
546
  }
547
547
  function Fe(e, i) {
@@ -550,20 +550,20 @@ Check the top-level render call using <` + l + ">.");
550
550
  return;
551
551
  if (ae(e))
552
552
  for (var l = 0; l < e.length; l++) {
553
- var f = e[l];
554
- de(f) && ke(f, i);
553
+ var m = e[l];
554
+ de(m) && ke(m, i);
555
555
  }
556
556
  else if (de(e))
557
557
  e._store && (e._store.validated = !0);
558
558
  else if (e) {
559
- var y = Cn(e);
559
+ var y = Tn(e);
560
560
  if (typeof y == "function" && y !== e.entries)
561
- for (var w = y.call(e), h; !(h = w.next()).done; )
561
+ for (var N = y.call(e), h; !(h = N.next()).done; )
562
562
  de(h.value) && ke(h.value, i);
563
563
  }
564
564
  }
565
565
  }
566
- function Hn(e) {
566
+ function et(e) {
567
567
  {
568
568
  var i = e.type;
569
569
  if (i == null || typeof i == "string")
@@ -571,15 +571,15 @@ Check the top-level render call using <` + l + ">.");
571
571
  var l;
572
572
  if (typeof i == "function")
573
573
  l = i.propTypes;
574
- else if (typeof i == "object" && (i.$$typeof === m || // Note: Memo only checks outer props here.
574
+ else if (typeof i == "object" && (i.$$typeof === f || // Note: Memo only checks outer props here.
575
575
  // Inner props are checked in the reconciler.
576
576
  i.$$typeof === j))
577
577
  l = i.propTypes;
578
578
  else
579
579
  return;
580
580
  if (l) {
581
- var f = O(i);
582
- On(l, e.props, "prop", f, e);
581
+ var m = O(i);
582
+ $n(l, e.props, "prop", m, e);
583
583
  } else if (i.PropTypes !== void 0 && !le) {
584
584
  le = !0;
585
585
  var y = O(i);
@@ -588,37 +588,37 @@ Check the top-level render call using <` + l + ">.");
588
588
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
589
589
  }
590
590
  }
591
- function Xn(e) {
591
+ function nt(e) {
592
592
  {
593
593
  for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
594
- var f = i[l];
595
- if (f !== "children" && f !== "key") {
596
- $(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), $(null);
594
+ var m = i[l];
595
+ if (m !== "children" && m !== "key") {
596
+ A(e), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), A(null);
597
597
  break;
598
598
  }
599
599
  }
600
- e.ref !== null && ($(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
600
+ e.ref !== null && (A(e), P("Invalid attribute `ref` supplied to `React.Fragment`."), A(null));
601
601
  }
602
602
  }
603
603
  var Oe = {};
604
- function Le(e, i, l, f, y, w) {
604
+ function Le(e, i, l, m, y, N) {
605
605
  {
606
- var h = Dn(e);
606
+ var h = Mn(e);
607
607
  if (!h) {
608
- var v = "";
609
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
610
- var I = qn(y);
611
- I ? v += I : v += Ie();
612
- var T;
613
- e === null ? T = "null" : ae(e) ? T = "array" : e !== void 0 && e.$$typeof === t ? (T = "<" + (O(e.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, v);
608
+ var x = "";
609
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
610
+ var I = Zn(y);
611
+ I ? x += I : x += Ie();
612
+ var S;
613
+ e === null ? S = "null" : ae(e) ? S = "array" : e !== void 0 && e.$$typeof === t ? (S = "<" + (O(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", S, x);
614
614
  }
615
- var E = Jn(e, i, l, y, w);
615
+ var E = Xn(e, i, l, y, N);
616
616
  if (E == null)
617
617
  return E;
618
618
  if (h) {
619
619
  var k = i.children;
620
620
  if (k !== void 0)
621
- if (f)
621
+ if (m)
622
622
  if (ae(k)) {
623
623
  for (var z = 0; z < k.length; z++)
624
624
  Fe(k[z], e);
@@ -629,34 +629,34 @@ Check the top-level render call using <` + l + ">.");
629
629
  Fe(k, e);
630
630
  }
631
631
  if (Y.call(i, "key")) {
632
- var B = O(e), M = Object.keys(i).filter(function(rt) {
633
- return rt !== "key";
632
+ var B = O(e), M = Object.keys(i).filter(function(it) {
633
+ return it !== "key";
634
634
  }), ce = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}";
635
635
  if (!Oe[B + ce]) {
636
- var tt = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
636
+ var st = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}";
637
637
  P(`A props object containing a "key" prop is being spread into JSX:
638
638
  let props = %s;
639
639
  <%s {...props} />
640
640
  React keys must be passed directly to JSX without using spread:
641
641
  let props = %s;
642
- <%s key={someKey} {...props} />`, ce, B, tt, B), Oe[B + ce] = !0;
642
+ <%s key={someKey} {...props} />`, ce, B, st, B), Oe[B + ce] = !0;
643
643
  }
644
644
  }
645
- return e === a ? Xn(E) : Hn(E), E;
645
+ return e === o ? nt(E) : et(E), E;
646
646
  }
647
647
  }
648
- function Zn(e, i, l) {
648
+ function tt(e, i, l) {
649
649
  return Le(e, i, l, !0);
650
650
  }
651
- function Qn(e, i, l) {
651
+ function rt(e, i, l) {
652
652
  return Le(e, i, l, !1);
653
653
  }
654
- var et = Qn, nt = Zn;
655
- J.Fragment = a, J.jsx = et, J.jsxs = nt;
656
- }()), J;
654
+ var ot = rt, at = tt;
655
+ K.Fragment = o, K.jsx = ot, K.jsxs = at;
656
+ }()), K;
657
657
  }
658
- process.env.NODE_ENV === "production" ? be.exports = yt() : be.exports = wt();
659
- var o = be.exports;
658
+ process.env.NODE_ENV === "production" ? ue.exports = yt() : ue.exports = wt();
659
+ var a = ue.exports;
660
660
  const Ct = mt({
661
661
  prefix: "bn-"
662
662
  });
@@ -680,9 +680,9 @@ const Nt = Q(
680
680
  }
681
681
  );
682
682
  function jt({ className: r, variant: t, ...n }) {
683
- return /* @__PURE__ */ o.jsx("div", { className: b(Nt({ variant: t }), r), ...n });
683
+ return /* @__PURE__ */ a.jsx("div", { className: b(Nt({ variant: t }), r), ...n });
684
684
  }
685
- const Tt = Q(
685
+ const St = Q(
686
686
  "bn-inline-flex bn-items-center bn-justify-center bn-whitespace-nowrap bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50",
687
687
  {
688
688
  variants: {
@@ -706,21 +706,21 @@ const Tt = Q(
706
706
  size: "default"
707
707
  }
708
708
  }
709
- ), He = p.forwardRef(
710
- ({ className: r, variant: t, size: n, asChild: a = !1, ...s }, d) => {
711
- const c = a ? Ye : "button";
712
- return /* @__PURE__ */ o.jsx(
709
+ ), en = p.forwardRef(
710
+ ({ className: r, variant: t, size: n, asChild: o = !1, ...s }, d) => {
711
+ const c = o ? Je : "button";
712
+ return /* @__PURE__ */ a.jsx(
713
713
  c,
714
714
  {
715
- className: b(Tt({ variant: t, size: n, className: r })),
715
+ className: b(St({ variant: t, size: n, className: r })),
716
716
  ref: d,
717
717
  ...s
718
718
  }
719
719
  );
720
720
  }
721
721
  );
722
- He.displayName = "Button";
723
- const Xe = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
722
+ en.displayName = "Button";
723
+ const nn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
724
724
  "div",
725
725
  {
726
726
  ref: n,
@@ -731,8 +731,8 @@ const Xe = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
731
731
  ...t
732
732
  }
733
733
  ));
734
- Xe.displayName = "Card";
735
- const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
734
+ nn.displayName = "Card";
735
+ const Tt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
736
736
  "div",
737
737
  {
738
738
  ref: n,
@@ -740,8 +740,8 @@ const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
740
740
  ...t
741
741
  }
742
742
  ));
743
- Rt.displayName = "CardHeader";
744
- const St = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
743
+ Tt.displayName = "CardHeader";
744
+ const Rt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
745
745
  "h3",
746
746
  {
747
747
  ref: n,
@@ -752,8 +752,8 @@ const St = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
752
752
  ...t
753
753
  }
754
754
  ));
755
- St.displayName = "CardTitle";
756
- const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
755
+ Rt.displayName = "CardTitle";
756
+ const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
757
757
  "p",
758
758
  {
759
759
  ref: n,
@@ -762,9 +762,9 @@ const Et = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
762
762
  }
763
763
  ));
764
764
  Et.displayName = "CardDescription";
765
- const Ze = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx("div", { ref: n, className: b("bn-p-6 bn-pt-0", r), ...t }));
766
- Ze.displayName = "CardContent";
767
- const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
765
+ const tn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className: b("bn-p-6 bn-pt-0", r), ...t }));
766
+ tn.displayName = "CardContent";
767
+ const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
768
768
  "div",
769
769
  {
770
770
  ref: n,
@@ -773,8 +773,8 @@ const Dt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
773
773
  }
774
774
  ));
775
775
  Dt.displayName = "CardFooter";
776
- const _t = R.Root, Pt = R.Trigger, It = R.Sub, Qe = p.forwardRef(({ className: r, inset: t, children: n, ...a }, s) => /* @__PURE__ */ o.jsxs(
777
- R.SubTrigger,
776
+ const _t = T.Root, Pt = T.Trigger, It = T.Sub, rn = p.forwardRef(({ className: r, inset: t, children: n, ...o }, s) => /* @__PURE__ */ a.jsxs(
777
+ T.SubTrigger,
778
778
  {
779
779
  ref: s,
780
780
  className: b(
@@ -782,16 +782,16 @@ const _t = R.Root, Pt = R.Trigger, It = R.Sub, Qe = p.forwardRef(({ className: r
782
782
  t && "bn-pl-8",
783
783
  r
784
784
  ),
785
- ...a,
785
+ ...o,
786
786
  children: [
787
787
  n,
788
- /* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
788
+ /* @__PURE__ */ a.jsx(qe, { className: "bn-ml-auto bn-h-4 bn-w-4" })
789
789
  ]
790
790
  }
791
791
  ));
792
- Qe.displayName = R.SubTrigger.displayName;
793
- const en = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
794
- R.SubContent,
792
+ rn.displayName = T.SubTrigger.displayName;
793
+ const on = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
794
+ T.SubContent,
795
795
  {
796
796
  ref: n,
797
797
  className: b(
@@ -801,13 +801,13 @@ const en = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
801
801
  ...t
802
802
  }
803
803
  ));
804
- en.displayName = R.SubContent.displayName;
805
- const nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => (
804
+ on.displayName = T.SubContent.displayName;
805
+ const an = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, o) => (
806
806
  // <DropdownMenuPrimitive.Portal>
807
- /* @__PURE__ */ o.jsx(
808
- R.Content,
807
+ /* @__PURE__ */ a.jsx(
808
+ T.Content,
809
809
  {
810
- ref: a,
810
+ ref: o,
811
811
  sideOffset: t,
812
812
  className: b(
813
813
  "bn-z-50 bn-min-w-[8rem] bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-p-1 bn-text-popover-foreground bn-shadow-md data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
@@ -817,11 +817,11 @@ const nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => (
817
817
  }
818
818
  )
819
819
  ));
820
- nn.displayName = R.Content.displayName;
821
- const tn = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
822
- R.Item,
820
+ an.displayName = T.Content.displayName;
821
+ const sn = p.forwardRef(({ className: r, inset: t, ...n }, o) => /* @__PURE__ */ a.jsx(
822
+ T.Item,
823
823
  {
824
- ref: a,
824
+ ref: o,
825
825
  className: b(
826
826
  "bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
827
827
  t && "bn-pl-8",
@@ -830,9 +830,9 @@ const tn = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */
830
830
  ...n
831
831
  }
832
832
  ));
833
- tn.displayName = R.Item.displayName;
834
- const rn = p.forwardRef(({ className: r, children: t, checked: n, ...a }, s) => /* @__PURE__ */ o.jsxs(
835
- R.CheckboxItem,
833
+ sn.displayName = T.Item.displayName;
834
+ const ln = p.forwardRef(({ className: r, children: t, checked: n, ...o }, s) => /* @__PURE__ */ a.jsxs(
835
+ T.CheckboxItem,
836
836
  {
837
837
  ref: s,
838
838
  className: b(
@@ -840,34 +840,34 @@ const rn = p.forwardRef(({ className: r, children: t, checked: n, ...a }, s) =>
840
840
  r
841
841
  ),
842
842
  checked: n,
843
- ...a,
843
+ ...o,
844
844
  children: [
845
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(R.ItemIndicator, { children: /* @__PURE__ */ o.jsx(Ke, { className: "bn-h-4 bn-w-4" }) }) }),
845
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(He, { className: "bn-h-4 bn-w-4" }) }) }),
846
846
  t
847
847
  ]
848
848
  }
849
849
  ));
850
- rn.displayName = R.CheckboxItem.displayName;
851
- const Mt = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
852
- R.RadioItem,
850
+ ln.displayName = T.CheckboxItem.displayName;
851
+ const Mt = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
852
+ T.RadioItem,
853
853
  {
854
- ref: a,
854
+ ref: o,
855
855
  className: b(
856
856
  "bn-relative bn-flex bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
857
857
  r
858
858
  ),
859
859
  ...n,
860
860
  children: [
861
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(R.ItemIndicator, { children: /* @__PURE__ */ o.jsx(pt, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
861
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(T.ItemIndicator, { children: /* @__PURE__ */ a.jsx(pt, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
862
862
  t
863
863
  ]
864
864
  }
865
865
  ));
866
- Mt.displayName = R.RadioItem.displayName;
867
- const on = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */ o.jsx(
868
- R.Label,
866
+ Mt.displayName = T.RadioItem.displayName;
867
+ const dn = p.forwardRef(({ className: r, inset: t, ...n }, o) => /* @__PURE__ */ a.jsx(
868
+ T.Label,
869
869
  {
870
- ref: a,
870
+ ref: o,
871
871
  className: b(
872
872
  "bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold",
873
873
  t && "bn-pl-8",
@@ -876,31 +876,31 @@ const on = p.forwardRef(({ className: r, inset: t, ...n }, a) => /* @__PURE__ */
876
876
  ...n
877
877
  }
878
878
  ));
879
- on.displayName = R.Label.displayName;
880
- const an = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
881
- R.Separator,
879
+ dn.displayName = T.Label.displayName;
880
+ const cn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
881
+ T.Separator,
882
882
  {
883
883
  ref: n,
884
884
  className: b("bn--mx-1 bn-my-1 bn-h-px bn-bg-muted", r),
885
885
  ...t
886
886
  }
887
887
  ));
888
- an.displayName = R.Separator.displayName;
888
+ cn.displayName = T.Separator.displayName;
889
889
  const kt = Q(
890
890
  "bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
891
- ), ue = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
892
- qe.Root,
891
+ ), be = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
892
+ Ze.Root,
893
893
  {
894
894
  ref: n,
895
895
  className: b(kt(), r),
896
896
  ...t
897
897
  }
898
898
  ));
899
- ue.displayName = qe.Root.displayName;
899
+ be.displayName = Ze.Root.displayName;
900
900
  const Ft = vt, Ot = p.createContext(
901
901
  {}
902
902
  ), ne = () => {
903
- const r = p.useContext(Ot), t = p.useContext(sn), { getFieldState: n, formState: a } = xt(), s = n(r.name, a);
903
+ const r = p.useContext(Ot), t = p.useContext(un), { getFieldState: n, formState: o } = xt(), s = n(r.name, o);
904
904
  if (!r)
905
905
  throw new Error("useFormField should be used within <FormField>");
906
906
  const { id: d } = t;
@@ -912,20 +912,20 @@ const Ft = vt, Ot = p.createContext(
912
912
  formMessageId: `${d}-form-item-message`,
913
913
  ...s
914
914
  };
915
- }, sn = p.createContext(
915
+ }, un = p.createContext(
916
916
  {}
917
917
  ), Lt = p.forwardRef(({ className: r, ...t }, n) => {
918
- const a = p.useId();
919
- return /* @__PURE__ */ o.jsx(sn.Provider, { value: { id: a }, children: /* @__PURE__ */ o.jsx("div", { ref: n, className: b("bn-space-y-2", r), ...t }) });
918
+ const o = p.useId();
919
+ return /* @__PURE__ */ a.jsx(un.Provider, { value: { id: o }, children: /* @__PURE__ */ a.jsx("div", { ref: n, className: b("bn-space-y-2", r), ...t }) });
920
920
  });
921
921
  Lt.displayName = "FormItem";
922
922
  const Bt = p.forwardRef(({ className: r, ...t }, n) => {
923
- const { error: a, formItemId: s } = ne();
924
- return /* @__PURE__ */ o.jsx(
925
- ue,
923
+ const { error: o, formItemId: s } = ne();
924
+ return /* @__PURE__ */ a.jsx(
925
+ be,
926
926
  {
927
927
  ref: n,
928
- className: b(a && "bn-text-destructive", r),
928
+ className: b(o && "bn-text-destructive", r),
929
929
  htmlFor: s,
930
930
  ...t
931
931
  }
@@ -933,12 +933,12 @@ const Bt = p.forwardRef(({ className: r, ...t }, n) => {
933
933
  });
934
934
  Bt.displayName = "FormLabel";
935
935
  const Vt = p.forwardRef(({ ...r }, t) => {
936
- const { error: n, formItemId: a, formDescriptionId: s, formMessageId: d } = ne();
937
- return /* @__PURE__ */ o.jsx(
938
- Ye,
936
+ const { error: n, formItemId: o, formDescriptionId: s, formMessageId: d } = ne();
937
+ return /* @__PURE__ */ a.jsx(
938
+ Je,
939
939
  {
940
940
  ref: t,
941
- id: a,
941
+ id: o,
942
942
  "aria-describedby": n ? `${s} ${d}` : `${s}`,
943
943
  "aria-invalid": !!n,
944
944
  ...r
@@ -946,25 +946,25 @@ const Vt = p.forwardRef(({ ...r }, t) => {
946
946
  );
947
947
  });
948
948
  Vt.displayName = "FormControl";
949
- const At = p.forwardRef(({ className: r, ...t }, n) => {
950
- const { formDescriptionId: a } = ne();
951
- return /* @__PURE__ */ o.jsx(
949
+ const $t = p.forwardRef(({ className: r, ...t }, n) => {
950
+ const { formDescriptionId: o } = ne();
951
+ return /* @__PURE__ */ a.jsx(
952
952
  "p",
953
953
  {
954
954
  ref: n,
955
- id: a,
955
+ id: o,
956
956
  className: b("bn-text-sm bn-text-muted-foreground", r),
957
957
  ...t
958
958
  }
959
959
  );
960
960
  });
961
- At.displayName = "FormDescription";
962
- const $t = p.forwardRef(({ className: r, children: t, ...n }, a) => {
961
+ $t.displayName = "FormDescription";
962
+ const At = p.forwardRef(({ className: r, children: t, ...n }, o) => {
963
963
  const { error: s, formMessageId: d } = ne(), c = s ? String(s == null ? void 0 : s.message) : t;
964
- return c ? /* @__PURE__ */ o.jsx(
964
+ return c ? /* @__PURE__ */ a.jsx(
965
965
  "p",
966
966
  {
967
- ref: a,
967
+ ref: o,
968
968
  id: d,
969
969
  className: b("bn-text-sm bn-font-medium bn-text-destructive", r),
970
970
  ...n,
@@ -972,9 +972,9 @@ const $t = p.forwardRef(({ className: r, children: t, ...n }, a) => {
972
972
  }
973
973
  ) : null;
974
974
  });
975
- $t.displayName = "FormMessage";
976
- const ln = p.forwardRef(
977
- ({ className: r, type: t, ...n }, a) => /* @__PURE__ */ o.jsx(
975
+ At.displayName = "FormMessage";
976
+ const bn = p.forwardRef(
977
+ ({ className: r, type: t, ...n }, o) => /* @__PURE__ */ a.jsx(
978
978
  "input",
979
979
  {
980
980
  type: t,
@@ -982,15 +982,15 @@ const ln = p.forwardRef(
982
982
  "bn-flex bn-h-10 bn-w-full bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background file:bn-border-0 file:bn-bg-transparent file:bn-text-sm file:bn-font-medium placeholder:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50",
983
983
  r
984
984
  ),
985
- ref: a,
985
+ ref: o,
986
986
  ...n
987
987
  }
988
988
  )
989
989
  );
990
- ln.displayName = "Input";
991
- const zt = ee.Root, Wt = ee.Trigger, dn = p.forwardRef(({ className: r, align: t = "center", sideOffset: n = 4, ...a }, s) => (
990
+ bn.displayName = "Input";
991
+ const zt = ee.Root, Wt = ee.Trigger, fn = p.forwardRef(({ className: r, align: t = "center", sideOffset: n = 4, ...o }, s) => (
992
992
  // <PopoverPrimitive.Portal>
993
- /* @__PURE__ */ o.jsx(
993
+ /* @__PURE__ */ a.jsx(
994
994
  ee.Content,
995
995
  {
996
996
  ref: s,
@@ -1000,15 +1000,15 @@ const zt = ee.Root, Wt = ee.Trigger, dn = p.forwardRef(({ className: r, align: t
1000
1000
  "bn-z-50 bn-w-72 bn-rounded-md bn-border bn-bg-popover bn-p-4 bn-text-popover-foreground bn-shadow-md bn-outline-none data-[state=open]:bn-animate-in data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=open]:bn-fade-in-0 data-[state=closed]:bn-zoom-out-95 data-[state=open]:bn-zoom-in-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
1001
1001
  r
1002
1002
  ),
1003
- ...a
1003
+ ...o
1004
1004
  }
1005
1005
  )
1006
1006
  ));
1007
- dn.displayName = ee.Content.displayName;
1008
- const Yt = D.Root, Ut = D.Value, cn = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
1007
+ fn.displayName = ee.Content.displayName;
1008
+ const Yt = D.Root, Ut = D.Value, mn = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
1009
1009
  D.Trigger,
1010
1010
  {
1011
- ref: a,
1011
+ ref: o,
1012
1012
  className: b(
1013
1013
  "bn-flex bn-h-10 bn-w-full bn-items-center bn-justify-between bn-rounded-md bn-border bn-border-input bn-bg-background bn-px-3 bn-py-2 bn-text-sm bn-ring-offset-background placeholder:bn-text-muted-foreground focus:bn-outline-none focus:bn-ring-2 focus:bn-ring-ring focus:bn-ring-offset-2 disabled:bn-cursor-not-allowed disabled:bn-opacity-50 [&>span]:bn-line-clamp-1",
1014
1014
  r
@@ -1016,12 +1016,12 @@ const Yt = D.Root, Ut = D.Value, cn = p.forwardRef(({ className: r, children: t,
1016
1016
  ...n,
1017
1017
  children: [
1018
1018
  t,
1019
- /* @__PURE__ */ o.jsx(D.Icon, { asChild: !0, children: /* @__PURE__ */ o.jsx(Je, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
1019
+ /* @__PURE__ */ a.jsx(D.Icon, { asChild: !0, children: /* @__PURE__ */ a.jsx(Xe, { className: "bn-h-4 bn-w-4 bn-opacity-50" }) })
1020
1020
  ]
1021
1021
  }
1022
1022
  ));
1023
- cn.displayName = D.Trigger.displayName;
1024
- const bn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1023
+ mn.displayName = D.Trigger.displayName;
1024
+ const pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1025
1025
  D.ScrollUpButton,
1026
1026
  {
1027
1027
  ref: n,
@@ -1030,11 +1030,11 @@ const bn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1030
1030
  r
1031
1031
  ),
1032
1032
  ...t,
1033
- children: /* @__PURE__ */ o.jsx(gt, { className: "bn-h-4 bn-w-4" })
1033
+ children: /* @__PURE__ */ a.jsx(gt, { className: "bn-h-4 bn-w-4" })
1034
1034
  }
1035
1035
  ));
1036
- bn.displayName = D.ScrollUpButton.displayName;
1037
- const un = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1036
+ pn.displayName = D.ScrollUpButton.displayName;
1037
+ const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1038
1038
  D.ScrollDownButton,
1039
1039
  {
1040
1040
  ref: n,
@@ -1043,13 +1043,13 @@ const un = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1043
1043
  r
1044
1044
  ),
1045
1045
  ...t,
1046
- children: /* @__PURE__ */ o.jsx(Je, { className: "bn-h-4 bn-w-4" })
1046
+ children: /* @__PURE__ */ a.jsx(Xe, { className: "bn-h-4 bn-w-4" })
1047
1047
  }
1048
1048
  ));
1049
- un.displayName = D.ScrollDownButton.displayName;
1050
- const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ...a }, s) => (
1049
+ gn.displayName = D.ScrollDownButton.displayName;
1050
+ const vn = p.forwardRef(({ className: r, children: t, position: n = "popper", ...o }, s) => (
1051
1051
  // <SelectPrimitive.Portal>
1052
- /* @__PURE__ */ o.jsxs(
1052
+ /* @__PURE__ */ a.jsxs(
1053
1053
  D.Content,
1054
1054
  {
1055
1055
  ref: s,
@@ -1059,10 +1059,10 @@ const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ..
1059
1059
  r
1060
1060
  ),
1061
1061
  position: n,
1062
- ...a,
1062
+ ...o,
1063
1063
  children: [
1064
- /* @__PURE__ */ o.jsx(bn, {}),
1065
- /* @__PURE__ */ o.jsx(
1064
+ /* @__PURE__ */ a.jsx(pn, {}),
1065
+ /* @__PURE__ */ a.jsx(
1066
1066
  D.Viewport,
1067
1067
  {
1068
1068
  className: b(
@@ -1072,13 +1072,13 @@ const fn = p.forwardRef(({ className: r, children: t, position: n = "popper", ..
1072
1072
  children: t
1073
1073
  }
1074
1074
  ),
1075
- /* @__PURE__ */ o.jsx(un, {})
1075
+ /* @__PURE__ */ a.jsx(gn, {})
1076
1076
  ]
1077
1077
  }
1078
1078
  )
1079
1079
  ));
1080
- fn.displayName = D.Content.displayName;
1081
- const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1080
+ vn.displayName = D.Content.displayName;
1081
+ const Gt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1082
1082
  D.Label,
1083
1083
  {
1084
1084
  ref: n,
@@ -1089,24 +1089,24 @@ const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1089
1089
  ...t
1090
1090
  }
1091
1091
  ));
1092
- Kt.displayName = D.Label.displayName;
1093
- const mn = p.forwardRef(({ className: r, children: t, ...n }, a) => /* @__PURE__ */ o.jsxs(
1092
+ Gt.displayName = D.Label.displayName;
1093
+ const xn = p.forwardRef(({ className: r, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
1094
1094
  D.Item,
1095
1095
  {
1096
- ref: a,
1096
+ ref: o,
1097
1097
  className: b(
1098
1098
  "bn-relative bn-flex bn-w-full bn-cursor-default bn-select-none bn-items-center bn-rounded-sm bn-py-1.5 bn-pl-8 bn-pr-2 bn-text-sm bn-outline-none focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
1099
1099
  r
1100
1100
  ),
1101
1101
  ...n,
1102
1102
  children: [
1103
- /* @__PURE__ */ o.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ o.jsx(D.ItemIndicator, { children: /* @__PURE__ */ o.jsx(Ke, { className: "bn-h-4 bn-w-4" }) }) }),
1104
- /* @__PURE__ */ o.jsx(D.ItemText, { children: t })
1103
+ /* @__PURE__ */ a.jsx("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a.jsx(D.ItemIndicator, { children: /* @__PURE__ */ a.jsx(He, { className: "bn-h-4 bn-w-4" }) }) }),
1104
+ /* @__PURE__ */ a.jsx(D.ItemText, { children: t })
1105
1105
  ]
1106
1106
  }
1107
1107
  ));
1108
- mn.displayName = D.Item.displayName;
1109
- const Jt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1108
+ xn.displayName = D.Item.displayName;
1109
+ const Kt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1110
1110
  D.Separator,
1111
1111
  {
1112
1112
  ref: n,
@@ -1114,8 +1114,8 @@ const Jt = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1114
1114
  ...t
1115
1115
  }
1116
1116
  ));
1117
- Jt.displayName = D.Separator.displayName;
1118
- const qt = V.Root, pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1117
+ Kt.displayName = D.Separator.displayName;
1118
+ const Jt = V.Root, hn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1119
1119
  V.List,
1120
1120
  {
1121
1121
  ref: n,
@@ -1126,8 +1126,8 @@ const qt = V.Root, pn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__
1126
1126
  ...t
1127
1127
  }
1128
1128
  ));
1129
- pn.displayName = V.List.displayName;
1130
- const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1129
+ hn.displayName = V.List.displayName;
1130
+ const yn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1131
1131
  V.Trigger,
1132
1132
  {
1133
1133
  ref: n,
@@ -1138,8 +1138,8 @@ const gn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1138
1138
  ...t
1139
1139
  }
1140
1140
  ));
1141
- gn.displayName = V.Trigger.displayName;
1142
- const vn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1141
+ yn.displayName = V.Trigger.displayName;
1142
+ const wn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ a.jsx(
1143
1143
  V.Content,
1144
1144
  {
1145
1145
  ref: n,
@@ -1150,8 +1150,8 @@ const vn = p.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ o.jsx(
1150
1150
  ...t
1151
1151
  }
1152
1152
  ));
1153
- vn.displayName = V.Content.displayName;
1154
- const Gt = Q(
1153
+ wn.displayName = V.Content.displayName;
1154
+ const qt = Q(
1155
1155
  "bn-inline-flex bn-items-center bn-justify-center bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors hover:bn-bg-muted hover:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50 data-[state=on]:bn-bg-accent data-[state=on]:bn-text-accent-foreground",
1156
1156
  {
1157
1157
  variants: {
@@ -1170,19 +1170,19 @@ const Gt = Q(
1170
1170
  size: "default"
1171
1171
  }
1172
1172
  }
1173
- ), xn = p.forwardRef(({ className: r, variant: t, size: n, ...a }, s) => /* @__PURE__ */ o.jsx(
1174
- Ge.Root,
1173
+ ), Cn = p.forwardRef(({ className: r, variant: t, size: n, ...o }, s) => /* @__PURE__ */ a.jsx(
1174
+ Qe.Root,
1175
1175
  {
1176
1176
  ref: s,
1177
- className: b(Gt({ variant: t, size: n, className: r })),
1178
- ...a
1177
+ className: b(qt({ variant: t, size: n, className: r })),
1178
+ ...o
1179
1179
  }
1180
1180
  ));
1181
- xn.displayName = Ge.Root.displayName;
1182
- const Ht = q.Provider, Xt = q.Root, Zt = q.Trigger, hn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, a) => /* @__PURE__ */ o.jsx(
1183
- q.Content,
1181
+ Cn.displayName = Qe.Root.displayName;
1182
+ const Ht = J.Provider, Xt = J.Root, Zt = J.Trigger, Nn = p.forwardRef(({ className: r, sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ a.jsx(
1183
+ J.Content,
1184
1184
  {
1185
- ref: a,
1185
+ ref: o,
1186
1186
  sideOffset: t,
1187
1187
  className: b(
1188
1188
  "bn-z-50 bn-overflow-hidden bn-rounded-md bn-border bn-bg-popover bn-px-3 bn-py-1.5 bn-text-sm bn-text-popover-foreground bn-shadow-md bn-animate-in bn-fade-in-0 bn-zoom-in-95 data-[state=closed]:bn-animate-out data-[state=closed]:bn-fade-out-0 data-[state=closed]:bn-zoom-out-95 data-[side=bottom]:bn-slide-in-from-top-2 data-[side=left]:bn-slide-in-from-right-2 data-[side=right]:bn-slide-in-from-left-2 data-[side=top]:bn-slide-in-from-bottom-2",
@@ -1191,208 +1191,270 @@ const Ht = q.Provider, Xt = q.Root, Zt = q.Trigger, hn = p.forwardRef(({ classNa
1191
1191
  ...n
1192
1192
  }
1193
1193
  ));
1194
- hn.displayName = q.Content.displayName;
1194
+ Nn.displayName = J.Content.displayName;
1195
1195
  const Qt = {
1196
1196
  Badge: {
1197
1197
  Badge: jt
1198
1198
  },
1199
1199
  Button: {
1200
- Button: He
1200
+ Button: en
1201
1201
  },
1202
1202
  Card: {
1203
- Card: Xe,
1204
- CardContent: Ze
1203
+ Card: nn,
1204
+ CardContent: tn
1205
1205
  },
1206
1206
  DropdownMenu: {
1207
1207
  DropdownMenu: _t,
1208
- DropdownMenuCheckboxItem: rn,
1209
- DropdownMenuContent: nn,
1210
- DropdownMenuItem: tn,
1211
- DropdownMenuLabel: on,
1212
- DropdownMenuSeparator: an,
1208
+ DropdownMenuCheckboxItem: ln,
1209
+ DropdownMenuContent: an,
1210
+ DropdownMenuItem: sn,
1211
+ DropdownMenuLabel: dn,
1212
+ DropdownMenuSeparator: cn,
1213
1213
  DropdownMenuSub: It,
1214
- DropdownMenuSubContent: en,
1215
- DropdownMenuSubTrigger: Qe,
1214
+ DropdownMenuSubContent: on,
1215
+ DropdownMenuSubTrigger: rn,
1216
1216
  DropdownMenuTrigger: Pt
1217
1217
  },
1218
1218
  Form: {
1219
1219
  Form: Ft
1220
1220
  },
1221
1221
  Input: {
1222
- Input: ln
1222
+ Input: bn
1223
1223
  },
1224
1224
  Label: {
1225
- Label: ue
1225
+ Label: be
1226
1226
  },
1227
1227
  Popover: {
1228
1228
  Popover: zt,
1229
- PopoverContent: dn,
1229
+ PopoverContent: fn,
1230
1230
  PopoverTrigger: Wt
1231
1231
  },
1232
1232
  Select: {
1233
1233
  Select: Yt,
1234
- SelectContent: fn,
1235
- SelectItem: mn,
1236
- SelectTrigger: cn,
1234
+ SelectContent: vn,
1235
+ SelectItem: xn,
1236
+ SelectTrigger: mn,
1237
1237
  SelectValue: Ut
1238
1238
  },
1239
1239
  Tabs: {
1240
- Tabs: qt,
1241
- TabsContent: vn,
1242
- TabsList: pn,
1243
- TabsTrigger: gn
1240
+ Tabs: Jt,
1241
+ TabsContent: wn,
1242
+ TabsList: hn,
1243
+ TabsTrigger: yn
1244
1244
  },
1245
1245
  Toggle: {
1246
- Toggle: xn
1246
+ Toggle: Cn
1247
1247
  },
1248
1248
  Tooltip: {
1249
1249
  Tooltip: Xt,
1250
- TooltipContent: hn,
1250
+ TooltipContent: Nn,
1251
1251
  TooltipProvider: Ht,
1252
1252
  TooltipTrigger: Zt
1253
1253
  }
1254
- }, yn = ot(void 0);
1255
- function S() {
1256
- return at(yn);
1254
+ }, jn = lt(void 0);
1255
+ function R() {
1256
+ return dt(jn);
1257
1257
  }
1258
1258
  const er = (r) => {
1259
1259
  const { children: t, ...n } = r;
1260
- C(n);
1261
- const a = S(), s = ht();
1262
- return /* @__PURE__ */ o.jsx(a.Form.Form, { ...s, children: t });
1263
- }, nr = (r) => N(
1264
- (t, n) => /* @__PURE__ */ o.jsx(
1260
+ w(n);
1261
+ const o = R(), s = ht();
1262
+ return /* @__PURE__ */ a.jsx(o.Form.Form, { ...s, children: t });
1263
+ }, nr = C((r, t) => {
1264
+ const { className: n, children: o, id: s, columns: d, ...c } = r;
1265
+ return w(c), /* @__PURE__ */ a.jsx(
1266
+ "div",
1267
+ {
1268
+ className: n,
1269
+ style: { gridTemplateColumns: `repeat(${d}, 1fr)` },
1270
+ ref: t,
1271
+ id: s,
1272
+ role: "grid",
1273
+ children: o
1274
+ }
1275
+ );
1276
+ }), tr = C((r, t) => {
1277
+ const { className: n, children: o, columns: s, ...d } = r;
1278
+ return w(d), /* @__PURE__ */ a.jsx(
1279
+ "div",
1280
+ {
1281
+ className: n,
1282
+ style: { gridColumn: `1 / ${s + 1}` },
1283
+ ref: t,
1284
+ children: o
1285
+ }
1286
+ );
1287
+ }), rr = C((r, t) => {
1288
+ const { className: n, isSelected: o, onClick: s, item: d, id: c, ...v } = r;
1289
+ w(v);
1290
+ const f = We(null);
1291
+ return Ye(() => {
1292
+ if (!f.current || !o)
1293
+ return;
1294
+ const u = Ge(f.current);
1295
+ u === "top" ? f.current.scrollIntoView(!0) : u === "bottom" && f.current.scrollIntoView(!1);
1296
+ }, [o]), /* @__PURE__ */ a.jsx(
1297
+ "div",
1298
+ {
1299
+ className: n,
1300
+ ref: Ke([t, f]),
1301
+ id: c,
1302
+ role: "option",
1303
+ onClick: s,
1304
+ "aria-selected": o || void 0,
1305
+ children: d.icon
1306
+ }
1307
+ );
1308
+ }), or = C((r, t) => {
1309
+ const {
1310
+ className: n,
1311
+ children: o,
1312
+ // unused, using "dots" instead
1313
+ columns: s,
1314
+ ...d
1315
+ } = r;
1316
+ return w(d), /* @__PURE__ */ a.jsx(
1317
+ "div",
1318
+ {
1319
+ className: n,
1320
+ style: { gridColumn: `1 / ${s + 1}` },
1321
+ ref: t,
1322
+ children: o
1323
+ }
1324
+ );
1325
+ }), ar = (r) => C(
1326
+ (t, n) => /* @__PURE__ */ a.jsx(
1265
1327
  r,
1266
1328
  {
1267
- onPointerDown: (a) => {
1268
- a.nativeEvent.fakeEvent || (a.ctrlKey = !0);
1329
+ onPointerDown: (o) => {
1330
+ o.nativeEvent.fakeEvent || (o.ctrlKey = !0);
1269
1331
  },
1270
- onPointerUp: (a) => {
1271
- const s = new PointerEvent("pointerdown", a.nativeEvent);
1272
- s.fakeEvent = !0, a.target.dispatchEvent(s);
1332
+ onPointerUp: (o) => {
1333
+ const s = new PointerEvent("pointerdown", o.nativeEvent);
1334
+ s.fakeEvent = !0, o.target.dispatchEvent(s);
1273
1335
  },
1274
1336
  ...t,
1275
1337
  ref: n
1276
1338
  }
1277
1339
  )
1278
- ), tr = (r) => {
1340
+ ), sr = (r) => {
1279
1341
  const {
1280
1342
  children: t,
1281
1343
  onOpenChange: n,
1282
- position: a,
1344
+ position: o,
1283
1345
  // Unused
1284
1346
  sub: s,
1285
1347
  ...d
1286
1348
  } = r;
1287
- C(d);
1288
- const c = S();
1289
- return s ? /* @__PURE__ */ o.jsx(
1349
+ w(d);
1350
+ const c = R();
1351
+ return s ? /* @__PURE__ */ a.jsx(
1290
1352
  c.DropdownMenu.DropdownMenuSub,
1291
1353
  {
1292
1354
  onOpenChange: n,
1293
1355
  children: t
1294
1356
  }
1295
- ) : /* @__PURE__ */ o.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
1296
- }, rr = (r) => {
1297
- const { children: t, sub: n, ...a } = r;
1298
- C(a);
1299
- const s = S(), d = We(
1300
- () => nr(
1357
+ ) : /* @__PURE__ */ a.jsx(c.DropdownMenu.DropdownMenu, { onOpenChange: n, children: t });
1358
+ }, ir = (r) => {
1359
+ const { children: t, sub: n, ...o } = r;
1360
+ w(o);
1361
+ const s = R(), d = Ue(
1362
+ () => ar(
1301
1363
  s.DropdownMenu.DropdownMenuTrigger
1302
1364
  ),
1303
1365
  [s.DropdownMenu.DropdownMenuTrigger]
1304
1366
  );
1305
- return n ? /* @__PURE__ */ o.jsx(s.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ o.jsx(d, { asChild: !0, ...a, children: t });
1306
- }, or = N((r, t) => {
1307
- const { className: n, children: a, sub: s, ...d } = r;
1308
- C(d);
1309
- const c = S();
1310
- return s ? /* @__PURE__ */ o.jsx(
1367
+ return n ? /* @__PURE__ */ a.jsx(s.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a.jsx(d, { asChild: !0, ...o, children: t });
1368
+ }, lr = C((r, t) => {
1369
+ const { className: n, children: o, sub: s, ...d } = r;
1370
+ w(d);
1371
+ const c = R();
1372
+ return s ? /* @__PURE__ */ a.jsx(
1311
1373
  c.DropdownMenu.DropdownMenuSubContent,
1312
1374
  {
1313
1375
  className: n,
1314
1376
  ref: t,
1315
- children: a
1377
+ children: o
1316
1378
  }
1317
- ) : /* @__PURE__ */ o.jsx(
1379
+ ) : /* @__PURE__ */ a.jsx(
1318
1380
  c.DropdownMenu.DropdownMenuContent,
1319
1381
  {
1320
1382
  className: n,
1321
1383
  ref: t,
1322
- children: a
1384
+ children: o
1323
1385
  }
1324
1386
  );
1325
- }), ar = N((r, t) => {
1326
- const { className: n, children: a, icon: s, checked: d, subTrigger: c, onClick: x, ...m } = r;
1327
- C(m);
1328
- const u = S();
1329
- return c ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1387
+ }), dr = C((r, t) => {
1388
+ const { className: n, children: o, icon: s, checked: d, subTrigger: c, onClick: v, ...f } = r;
1389
+ w(f);
1390
+ const u = R();
1391
+ return c ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1330
1392
  s,
1331
- a
1332
- ] }) : d !== void 0 ? /* @__PURE__ */ o.jsxs(
1393
+ o
1394
+ ] }) : d !== void 0 ? /* @__PURE__ */ a.jsxs(
1333
1395
  u.DropdownMenu.DropdownMenuCheckboxItem,
1334
1396
  {
1335
1397
  className: b(n, "bn-gap-1"),
1336
1398
  ref: t,
1337
1399
  checked: d,
1338
- onClick: x,
1339
- ...m,
1400
+ onClick: v,
1401
+ ...f,
1340
1402
  children: [
1341
1403
  s,
1342
- a
1404
+ o
1343
1405
  ]
1344
1406
  }
1345
- ) : /* @__PURE__ */ o.jsxs(
1407
+ ) : /* @__PURE__ */ a.jsxs(
1346
1408
  u.DropdownMenu.DropdownMenuItem,
1347
1409
  {
1348
1410
  className: n,
1349
1411
  ref: t,
1350
- onClick: x,
1351
- ...m,
1412
+ onClick: v,
1413
+ ...f,
1352
1414
  children: [
1353
1415
  s,
1354
- a,
1355
- c && /* @__PURE__ */ o.jsx(Ue, { className: "bn-ml-auto bn-h-4 bn-w-4" })
1416
+ o,
1417
+ c && /* @__PURE__ */ a.jsx(qe, { className: "bn-ml-auto bn-h-4 bn-w-4" })
1356
1418
  ]
1357
1419
  }
1358
1420
  );
1359
- }), sr = N((r, t) => {
1360
- const { className: n, ...a } = r;
1361
- C(a);
1362
- const s = S();
1363
- return /* @__PURE__ */ o.jsx(
1421
+ }), cr = C((r, t) => {
1422
+ const { className: n, ...o } = r;
1423
+ w(o);
1424
+ const s = R();
1425
+ return /* @__PURE__ */ a.jsx(
1364
1426
  s.DropdownMenu.DropdownMenuSeparator,
1365
1427
  {
1366
1428
  className: n,
1367
1429
  ref: t
1368
1430
  }
1369
1431
  );
1370
- }), ir = N((r, t) => {
1371
- const { className: n, children: a, ...s } = r;
1372
- C(s);
1373
- const d = S();
1374
- return /* @__PURE__ */ o.jsx(
1432
+ }), ur = C((r, t) => {
1433
+ const { className: n, children: o, ...s } = r;
1434
+ w(s);
1435
+ const d = R();
1436
+ return /* @__PURE__ */ a.jsx(
1375
1437
  d.DropdownMenu.DropdownMenuLabel,
1376
1438
  {
1377
1439
  className: n,
1378
1440
  ref: t,
1379
- children: a
1441
+ children: o
1380
1442
  }
1381
1443
  );
1382
- }), lr = N((r, t) => {
1444
+ }), br = C((r, t) => {
1383
1445
  const {
1384
1446
  className: n,
1385
- tabs: a,
1447
+ tabs: o,
1386
1448
  defaultOpenTab: s,
1387
1449
  openTab: d,
1388
1450
  setOpenTab: c,
1389
- loading: x,
1451
+ loading: v,
1390
1452
  // TODO: implement loader
1391
- ...m
1453
+ ...f
1392
1454
  } = r;
1393
- C(m);
1394
- const u = S();
1395
- return /* @__PURE__ */ o.jsxs(
1455
+ w(f);
1456
+ const u = R();
1457
+ return /* @__PURE__ */ a.jsxs(
1396
1458
  u.Tabs.Tabs,
1397
1459
  {
1398
1460
  className: b(n, "bn-bg-popover bn-p-2 bn-rounded-lg"),
@@ -1401,45 +1463,45 @@ const er = (r) => {
1401
1463
  defaultValue: s,
1402
1464
  onValueChange: c,
1403
1465
  children: [
1404
- /* @__PURE__ */ o.jsx(u.Tabs.TabsList, { children: a.map((g) => /* @__PURE__ */ o.jsx(u.Tabs.TabsTrigger, { value: g.name, children: g.name }, g.name)) }),
1405
- a.map((g) => /* @__PURE__ */ o.jsx(u.Tabs.TabsContent, { value: g.name, children: /* @__PURE__ */ o.jsx(u.Card.Card, { children: /* @__PURE__ */ o.jsx(u.Card.CardContent, { className: "bn-p-4", children: g.tabPanel }) }) }, g.name))
1466
+ /* @__PURE__ */ a.jsx(u.Tabs.TabsList, { children: o.map((g) => /* @__PURE__ */ a.jsx(u.Tabs.TabsTrigger, { value: g.name, children: g.name }, g.name)) }),
1467
+ o.map((g) => /* @__PURE__ */ a.jsx(u.Tabs.TabsContent, { value: g.name, children: /* @__PURE__ */ a.jsx(u.Card.Card, { children: /* @__PURE__ */ a.jsx(u.Card.CardContent, { className: "bn-p-4", children: g.tabPanel }) }) }, g.name))
1406
1468
  ]
1407
1469
  }
1408
1470
  );
1409
- }), dr = N((r, t) => {
1410
- const { className: n, children: a, onClick: s, label: d, ...c } = r;
1411
- C(c);
1412
- const x = S();
1413
- return /* @__PURE__ */ o.jsx(
1414
- x.Button.Button,
1471
+ }), fr = C((r, t) => {
1472
+ const { className: n, children: o, onClick: s, label: d, ...c } = r;
1473
+ w(c);
1474
+ const v = R();
1475
+ return /* @__PURE__ */ a.jsx(
1476
+ v.Button.Button,
1415
1477
  {
1416
1478
  type: "submit",
1417
1479
  className: n,
1418
1480
  "aria-label": d,
1419
1481
  ref: t,
1420
1482
  onClick: s,
1421
- children: a
1483
+ children: o
1422
1484
  }
1423
1485
  );
1424
- }), cr = N((r, t) => {
1425
- const { className: n, accept: a, value: s, placeholder: d, onChange: c, ...x } = r;
1426
- C(x);
1427
- const m = S();
1428
- return /* @__PURE__ */ o.jsx(
1429
- m.Input.Input,
1486
+ }), mr = C((r, t) => {
1487
+ const { className: n, accept: o, value: s, placeholder: d, onChange: c, ...v } = r;
1488
+ w(v);
1489
+ const f = R();
1490
+ return /* @__PURE__ */ a.jsx(
1491
+ f.Input.Input,
1430
1492
  {
1431
1493
  type: "file",
1432
1494
  className: n,
1433
1495
  ref: t,
1434
- accept: a,
1496
+ accept: o,
1435
1497
  value: s ? s.name : void 0,
1436
1498
  onChange: async (u) => c == null ? void 0 : c(u.target.files[0]),
1437
1499
  placeholder: d
1438
1500
  }
1439
1501
  );
1440
- }), br = N((r, t) => {
1441
- const { className: n, children: a, ...s } = r;
1442
- return C(s), /* @__PURE__ */ o.jsx(
1502
+ }), pr = C((r, t) => {
1503
+ const { className: n, children: o, ...s } = r;
1504
+ return w(s), /* @__PURE__ */ a.jsx(
1443
1505
  "div",
1444
1506
  {
1445
1507
  className: b(
@@ -1447,78 +1509,78 @@ const er = (r) => {
1447
1509
  "bn-flex bn-flex-col bn-gap-2 bn-items-start bn-justify-center"
1448
1510
  ),
1449
1511
  ref: t,
1450
- children: a
1512
+ children: o
1451
1513
  }
1452
1514
  );
1453
- }), ur = N((r, t) => {
1454
- const { className: n, value: a, placeholder: s, onKeyDown: d, onChange: c, ...x } = r;
1455
- C(x);
1456
- const m = S();
1457
- return /* @__PURE__ */ o.jsx(
1458
- m.Input.Input,
1515
+ }), gr = C((r, t) => {
1516
+ const { className: n, value: o, placeholder: s, onKeyDown: d, onChange: c, ...v } = r;
1517
+ w(v);
1518
+ const f = R();
1519
+ return /* @__PURE__ */ a.jsx(
1520
+ f.Input.Input,
1459
1521
  {
1460
1522
  "data-test": "embed-input",
1461
1523
  className: b(n, "bn-w-80"),
1462
1524
  ref: t,
1463
- value: a,
1525
+ value: o,
1464
1526
  placeholder: s,
1465
1527
  onKeyDown: d,
1466
1528
  onChange: c
1467
1529
  }
1468
1530
  );
1469
- }), fr = (r) => {
1531
+ }), vr = (r) => {
1470
1532
  const {
1471
1533
  children: t,
1472
1534
  opened: n,
1473
- position: a,
1535
+ position: o,
1474
1536
  // unused
1475
1537
  ...s
1476
1538
  } = r;
1477
- C(s);
1478
- const d = S();
1479
- return /* @__PURE__ */ o.jsx(d.Popover.Popover, { open: n, children: t });
1480
- }, mr = N(
1539
+ w(s);
1540
+ const d = R();
1541
+ return /* @__PURE__ */ a.jsx(d.Popover.Popover, { open: n, children: t });
1542
+ }, xr = C(
1481
1543
  (r, t) => {
1482
- const { children: n, ...a } = r;
1483
- C(a);
1484
- const s = S();
1485
- return /* @__PURE__ */ o.jsx(s.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
1544
+ const { children: n, ...o } = r;
1545
+ w(o);
1546
+ const s = R();
1547
+ return /* @__PURE__ */ a.jsx(s.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
1486
1548
  }
1487
- ), pr = N((r, t) => {
1488
- const { className: n, variant: a, children: s, ...d } = r;
1489
- C(d);
1490
- const c = S();
1491
- return /* @__PURE__ */ o.jsx(
1549
+ ), hr = C((r, t) => {
1550
+ const { className: n, variant: o, children: s, ...d } = r;
1551
+ w(d);
1552
+ const c = R();
1553
+ return /* @__PURE__ */ a.jsx(
1492
1554
  c.Popover.PopoverContent,
1493
1555
  {
1494
1556
  sideOffset: 8,
1495
1557
  className: b(
1496
1558
  n,
1497
1559
  "bn-flex bn-flex-col bn-gap-2",
1498
- a === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
1560
+ o === "panel-popover" ? "bn-p-0 bn-border-none bn-shadow-none bn-max-w-none bn-w-fit" : ""
1499
1561
  ),
1500
1562
  ref: t,
1501
1563
  children: s
1502
1564
  }
1503
1565
  );
1504
- }), gr = N((r, t) => {
1505
- const { className: n, children: a, ...s } = r;
1506
- return C(s, !1), /* @__PURE__ */ o.jsx("div", { className: n, ref: t, ...s, children: a });
1507
- }), vr = N((r, t) => {
1566
+ }), yr = C((r, t) => {
1567
+ const { className: n, children: o, ...s } = r;
1568
+ return w(s, !1), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, ...s, children: o });
1569
+ }), wr = C((r, t) => {
1508
1570
  const {
1509
1571
  className: n,
1510
- children: a,
1572
+ children: o,
1511
1573
  icon: s,
1512
1574
  onClick: d,
1513
1575
  onDragEnd: c,
1514
- onDragStart: x,
1515
- draggable: m,
1576
+ onDragStart: v,
1577
+ draggable: f,
1516
1578
  label: u,
1517
1579
  ...g
1518
1580
  } = r;
1519
- C(g, !1);
1520
- const j = S();
1521
- return /* @__PURE__ */ o.jsxs(
1581
+ w(g, !1);
1582
+ const j = R();
1583
+ return /* @__PURE__ */ a.jsxs(
1522
1584
  j.Button.Button,
1523
1585
  {
1524
1586
  variant: "ghost",
@@ -1526,19 +1588,19 @@ const er = (r) => {
1526
1588
  ref: t,
1527
1589
  "aria-label": u,
1528
1590
  onClick: d,
1529
- onDragStart: x,
1591
+ onDragStart: v,
1530
1592
  onDragEnd: c,
1531
- draggable: m,
1593
+ draggable: f,
1532
1594
  ...g,
1533
1595
  children: [
1534
1596
  s,
1535
- a
1597
+ o
1536
1598
  ]
1537
1599
  }
1538
1600
  );
1539
- }), xr = N((r, t) => {
1540
- const { className: n, children: a, id: s, ...d } = r;
1541
- return C(d), /* @__PURE__ */ o.jsx(
1601
+ }), Cr = C((r, t) => {
1602
+ const { className: n, children: o, id: s, ...d } = r;
1603
+ return w(d), /* @__PURE__ */ a.jsx(
1542
1604
  "div",
1543
1605
  {
1544
1606
  id: s,
@@ -1548,12 +1610,12 @@ const er = (r) => {
1548
1610
  n
1549
1611
  ),
1550
1612
  ref: t,
1551
- children: a
1613
+ children: o
1552
1614
  }
1553
1615
  );
1554
- }), hr = N((r, t) => {
1555
- const { className: n, children: a, ...s } = r;
1556
- return C(s), /* @__PURE__ */ o.jsx(
1616
+ }), Nr = C((r, t) => {
1617
+ const { className: n, children: o, ...s } = r;
1618
+ return w(s), /* @__PURE__ */ a.jsx(
1557
1619
  "div",
1558
1620
  {
1559
1621
  className: b(
@@ -1561,121 +1623,121 @@ const er = (r) => {
1561
1623
  n
1562
1624
  ),
1563
1625
  ref: t,
1564
- children: /* @__PURE__ */ o.jsx("div", { children: a })
1626
+ children: /* @__PURE__ */ a.jsx("div", { children: o })
1565
1627
  }
1566
1628
  );
1567
- }), yr = N((r, t) => {
1568
- const n = S(), { className: a, item: s, isSelected: d, onClick: c, id: x, ...m } = r;
1569
- C(m);
1570
- const u = st(null);
1571
- return it(() => {
1629
+ }), jr = C((r, t) => {
1630
+ const n = R(), { className: o, item: s, isSelected: d, onClick: c, id: v, ...f } = r;
1631
+ w(f);
1632
+ const u = We(null);
1633
+ return Ye(() => {
1572
1634
  if (!u.current || !d)
1573
1635
  return;
1574
- const g = dt(u.current);
1636
+ const g = Ge(u.current);
1575
1637
  g === "top" ? u.current.scrollIntoView(!0) : g === "bottom" && u.current.scrollIntoView(!1);
1576
- }, [d]), /* @__PURE__ */ o.jsxs(
1638
+ }, [d]), /* @__PURE__ */ a.jsxs(
1577
1639
  "div",
1578
1640
  {
1579
1641
  className: b(
1580
1642
  "bn-relative bn-flex bn-cursor-pointer bn-select-none bn-items-center bn-rounded-sm bn-px-2 bn-py-1.5 bn-text-sm bn-outline-none bn-transition-colors focus:bn-bg-accent focus:bn-text-accent-foreground data-[disabled]:bn-pointer-events-none data-[disabled]:bn-opacity-50",
1581
- a
1643
+ o
1582
1644
  ),
1583
- ref: ct([t, u]),
1584
- id: x,
1645
+ ref: Ke([t, u]),
1646
+ id: v,
1585
1647
  onClick: c,
1586
1648
  role: "option",
1587
1649
  "aria-selected": d || void 0,
1588
1650
  children: [
1589
- s.icon && /* @__PURE__ */ o.jsx("div", { className: "bn-p-3", "data-position": "left", children: s.icon }),
1590
- /* @__PURE__ */ o.jsxs("div", { className: "bn-flex-1", children: [
1591
- /* @__PURE__ */ o.jsx("div", { className: "bn-text-base", children: s.title }),
1592
- /* @__PURE__ */ o.jsx("div", { className: "bn-text-xs", children: s.subtext })
1651
+ s.icon && /* @__PURE__ */ a.jsx("div", { className: "bn-p-3", "data-position": "left", children: s.icon }),
1652
+ /* @__PURE__ */ a.jsxs("div", { className: "bn-flex-1", children: [
1653
+ /* @__PURE__ */ a.jsx("div", { className: "bn-text-base", children: s.title }),
1654
+ /* @__PURE__ */ a.jsx("div", { className: "bn-text-xs", children: s.subtext })
1593
1655
  ] }),
1594
- s.badge && /* @__PURE__ */ o.jsx("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ o.jsx(n.Badge.Badge, { variant: "secondary", children: s.badge }) })
1656
+ s.badge && /* @__PURE__ */ a.jsx("div", { "data-position": "right", className: "bn-text-xs", children: /* @__PURE__ */ a.jsx(n.Badge.Badge, { variant: "secondary", children: s.badge }) })
1595
1657
  ]
1596
1658
  }
1597
1659
  );
1598
- }), wr = N((r, t) => {
1599
- const { className: n, children: a, ...s } = r;
1600
- return C(s), /* @__PURE__ */ o.jsx(
1660
+ }), Sr = C((r, t) => {
1661
+ const { className: n, children: o, ...s } = r;
1662
+ return w(s), /* @__PURE__ */ a.jsx(
1601
1663
  "div",
1602
1664
  {
1603
1665
  className: b("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", n),
1604
1666
  ref: t,
1605
- children: a
1667
+ children: o
1606
1668
  }
1607
1669
  );
1608
- }), Cr = N((r, t) => {
1609
- const { className: n, children: a, ...s } = r;
1610
- return C(s), /* @__PURE__ */ o.jsx("div", { className: n, ref: t, children: a });
1611
- }), Nr = N((r, t) => {
1670
+ }), Tr = C((r, t) => {
1671
+ const { className: n, children: o, ...s } = r;
1672
+ return w(s), /* @__PURE__ */ a.jsx("div", { className: n, ref: t, children: o });
1673
+ }), Rr = C((r, t) => {
1612
1674
  const {
1613
1675
  className: n,
1614
- children: a,
1676
+ children: o,
1615
1677
  draggable: s,
1616
1678
  onDragStart: d,
1617
1679
  onDragEnd: c,
1618
- style: x,
1619
- label: m,
1680
+ style: v,
1681
+ label: f,
1620
1682
  ...u
1621
1683
  } = r;
1622
- C(u, !1);
1623
- const g = S();
1624
- return /* @__PURE__ */ o.jsx(
1684
+ w(u, !1);
1685
+ const g = R();
1686
+ return /* @__PURE__ */ a.jsx(
1625
1687
  g.Button.Button,
1626
1688
  {
1627
1689
  variant: "ghost",
1628
1690
  className: b(n, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1629
1691
  ref: t,
1630
- "aria-label": m,
1692
+ "aria-label": f,
1631
1693
  draggable: s,
1632
1694
  onDragStart: d,
1633
1695
  onDragEnd: c,
1634
- style: x,
1696
+ style: v,
1635
1697
  ...u,
1636
- children: a
1698
+ children: o
1637
1699
  }
1638
1700
  );
1639
- }), jr = N((r, t) => {
1701
+ }), Er = C((r, t) => {
1640
1702
  const {
1641
1703
  className: n,
1642
- name: a,
1704
+ name: o,
1643
1705
  label: s,
1644
1706
  icon: d,
1645
1707
  // TODO: implement
1646
1708
  value: c,
1647
- autoFocus: x,
1648
- placeholder: m,
1709
+ autoFocus: v,
1710
+ placeholder: f,
1649
1711
  onKeyDown: u,
1650
1712
  onChange: g,
1651
1713
  onSubmit: j,
1652
1714
  ..._
1653
1715
  } = r;
1654
- C(_);
1655
- const F = S();
1656
- return s ? /* @__PURE__ */ o.jsxs("div", { children: [
1657
- /* @__PURE__ */ o.jsx(F.Label.Label, { htmlFor: s, children: s }),
1658
- /* @__PURE__ */ o.jsx(
1716
+ w(_);
1717
+ const F = R();
1718
+ return s ? /* @__PURE__ */ a.jsxs("div", { children: [
1719
+ /* @__PURE__ */ a.jsx(F.Label.Label, { htmlFor: s, children: s }),
1720
+ /* @__PURE__ */ a.jsx(
1659
1721
  F.Input.Input,
1660
1722
  {
1661
1723
  className: n,
1662
1724
  id: s,
1663
- name: a,
1664
- autoFocus: x,
1665
- placeholder: m,
1725
+ name: o,
1726
+ autoFocus: v,
1727
+ placeholder: f,
1666
1728
  value: c,
1667
1729
  onKeyDown: u,
1668
1730
  onChange: g,
1669
1731
  onSubmit: j
1670
1732
  }
1671
1733
  )
1672
- ] }) : /* @__PURE__ */ o.jsx(
1734
+ ] }) : /* @__PURE__ */ a.jsx(
1673
1735
  F.Input.Input,
1674
1736
  {
1675
- "aria-label": a,
1676
- name: a,
1677
- autoFocus: x,
1678
- placeholder: m,
1737
+ "aria-label": o,
1738
+ name: o,
1739
+ autoFocus: v,
1740
+ placeholder: f,
1679
1741
  value: c,
1680
1742
  onKeyDown: u,
1681
1743
  onChange: g,
@@ -1683,12 +1745,12 @@ const er = (r) => {
1683
1745
  ref: t
1684
1746
  }
1685
1747
  );
1686
- }), Ae = N(
1748
+ }), $e = C(
1687
1749
  (r, t) => {
1688
- const { className: n, children: a, onMouseEnter: s, onMouseLeave: d, ...c } = r;
1689
- C(c);
1690
- const x = S();
1691
- return /* @__PURE__ */ o.jsx(x.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ o.jsx(
1750
+ const { className: n, children: o, onMouseEnter: s, onMouseLeave: d, ...c } = r;
1751
+ w(c);
1752
+ const v = R();
1753
+ return /* @__PURE__ */ a.jsx(v.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a.jsx(
1692
1754
  "div",
1693
1755
  {
1694
1756
  className: b(
@@ -1698,41 +1760,41 @@ const er = (r) => {
1698
1760
  ref: t,
1699
1761
  onMouseEnter: s,
1700
1762
  onMouseLeave: d,
1701
- children: a
1763
+ children: o
1702
1764
  }
1703
1765
  ) });
1704
1766
  }
1705
- ), $e = N(
1767
+ ), Ae = C(
1706
1768
  (r, t) => {
1707
1769
  const {
1708
1770
  className: n,
1709
- children: a,
1771
+ children: o,
1710
1772
  mainTooltip: s,
1711
1773
  secondaryTooltip: d,
1712
1774
  icon: c,
1713
- isSelected: x,
1714
- isDisabled: m,
1775
+ isSelected: v,
1776
+ isDisabled: f,
1715
1777
  onClick: u,
1716
1778
  label: g,
1717
1779
  ...j
1718
1780
  } = r;
1719
- C(j, !1);
1720
- const _ = S(), F = x === void 0 ? /* @__PURE__ */ o.jsxs(
1781
+ w(j, !1);
1782
+ const _ = R(), F = v === void 0 ? /* @__PURE__ */ a.jsxs(
1721
1783
  _.Button.Button,
1722
1784
  {
1723
1785
  className: n,
1724
1786
  variant: "ghost",
1725
- disabled: m,
1787
+ disabled: f,
1726
1788
  onClick: u,
1727
1789
  ref: t,
1728
1790
  "aria-label": g,
1729
1791
  ...j,
1730
1792
  children: [
1731
1793
  c,
1732
- a
1794
+ o
1733
1795
  ]
1734
1796
  }
1735
- ) : /* @__PURE__ */ o.jsxs(
1797
+ ) : /* @__PURE__ */ a.jsxs(
1736
1798
  _.Toggle.Toggle,
1737
1799
  {
1738
1800
  className: b(
@@ -1741,56 +1803,56 @@ const er = (r) => {
1741
1803
  ),
1742
1804
  "aria-label": g,
1743
1805
  onClick: u,
1744
- pressed: x,
1745
- disabled: m,
1746
- "data-state": x ? "on" : "off",
1747
- "data-disabled": m,
1806
+ pressed: v,
1807
+ disabled: f,
1808
+ "data-state": v ? "on" : "off",
1809
+ "data-disabled": f,
1748
1810
  ref: t,
1749
1811
  ...j,
1750
1812
  children: [
1751
1813
  c,
1752
- a
1814
+ o
1753
1815
  ]
1754
1816
  }
1755
1817
  );
1756
- return /* @__PURE__ */ o.jsxs(_.Tooltip.Tooltip, { children: [
1757
- /* @__PURE__ */ o.jsx(_.Tooltip.TooltipTrigger, { asChild: !0, children: F }),
1758
- /* @__PURE__ */ o.jsxs(
1818
+ return /* @__PURE__ */ a.jsxs(_.Tooltip.Tooltip, { children: [
1819
+ /* @__PURE__ */ a.jsx(_.Tooltip.TooltipTrigger, { asChild: !0, children: F }),
1820
+ /* @__PURE__ */ a.jsxs(
1759
1821
  _.Tooltip.TooltipContent,
1760
1822
  {
1761
1823
  className: "bn-flex bn-flex-col bn-items-center",
1762
1824
  children: [
1763
- /* @__PURE__ */ o.jsx("span", { children: s }),
1764
- d && /* @__PURE__ */ o.jsx("span", { children: d })
1825
+ /* @__PURE__ */ a.jsx("span", { children: s }),
1826
+ d && /* @__PURE__ */ a.jsx("span", { children: d })
1765
1827
  ]
1766
1828
  }
1767
1829
  )
1768
1830
  ] });
1769
1831
  }
1770
- ), Tr = N((r, t) => {
1771
- const { className: n, items: a, isDisabled: s, ...d } = r;
1772
- C(d);
1773
- const c = S(), x = (u) => /* @__PURE__ */ o.jsxs("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1832
+ ), Dr = C((r, t) => {
1833
+ const { className: n, items: o, isDisabled: s, ...d } = r;
1834
+ w(d);
1835
+ const c = R(), v = (u) => /* @__PURE__ */ a.jsxs("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1774
1836
  u.icon,
1775
1837
  u.text
1776
- ] }), m = a.filter((u) => u.isSelected)[0];
1777
- return m ? /* @__PURE__ */ o.jsxs(
1838
+ ] }), f = o.filter((u) => u.isSelected)[0];
1839
+ return f ? /* @__PURE__ */ a.jsxs(
1778
1840
  c.Select.Select,
1779
1841
  {
1780
- value: m.text,
1842
+ value: f.text,
1781
1843
  onValueChange: (u) => {
1782
1844
  var g, j;
1783
- return (j = (g = a.find((_) => _.text === u)).onClick) == null ? void 0 : j.call(g);
1845
+ return (j = (g = o.find((_) => _.text === u)).onClick) == null ? void 0 : j.call(g);
1784
1846
  },
1785
1847
  disabled: s,
1786
1848
  children: [
1787
- /* @__PURE__ */ o.jsx(c.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ o.jsx(c.Select.SelectValue, {}) }),
1788
- /* @__PURE__ */ o.jsx(c.Select.SelectContent, { className: n, ref: t, children: a.map((u) => /* @__PURE__ */ o.jsx(
1849
+ /* @__PURE__ */ a.jsx(c.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a.jsx(c.Select.SelectValue, {}) }),
1850
+ /* @__PURE__ */ a.jsx(c.Select.SelectContent, { className: n, ref: t, children: o.map((u) => /* @__PURE__ */ a.jsx(
1789
1851
  c.Select.SelectItem,
1790
1852
  {
1791
1853
  disabled: u.isDisabled,
1792
1854
  value: u.text,
1793
- children: /* @__PURE__ */ o.jsx(x, { ...u })
1855
+ children: /* @__PURE__ */ a.jsx(v, { ...u })
1794
1856
  },
1795
1857
  u.text
1796
1858
  )) })
@@ -1798,71 +1860,77 @@ const er = (r) => {
1798
1860
  }
1799
1861
  ) : null;
1800
1862
  });
1801
- const Rr = {
1863
+ const _r = {
1802
1864
  FormattingToolbar: {
1803
- Root: Ae,
1804
- Button: $e,
1805
- Select: Tr
1865
+ Root: $e,
1866
+ Button: Ae,
1867
+ Select: Dr
1806
1868
  },
1807
1869
  FilePanel: {
1808
- Root: lr,
1809
- Button: dr,
1810
- FileInput: cr,
1811
- TabPanel: br,
1812
- TextInput: ur
1870
+ Root: br,
1871
+ Button: fr,
1872
+ FileInput: mr,
1873
+ TabPanel: pr,
1874
+ TextInput: gr
1813
1875
  },
1814
1876
  LinkToolbar: {
1815
- Root: Ae,
1816
- Button: $e
1877
+ Root: $e,
1878
+ Button: Ae
1817
1879
  },
1818
1880
  SideMenu: {
1819
- Root: gr,
1820
- Button: vr
1881
+ Root: yr,
1882
+ Button: wr
1821
1883
  },
1822
1884
  SuggestionMenu: {
1823
- Root: xr,
1824
- Item: yr,
1825
- EmptyItem: hr,
1826
- Label: wr,
1827
- Loader: Cr
1885
+ Root: Cr,
1886
+ Item: jr,
1887
+ EmptyItem: Nr,
1888
+ Label: Sr,
1889
+ Loader: Tr
1890
+ },
1891
+ GridSuggestionMenu: {
1892
+ Root: nr,
1893
+ Item: rr,
1894
+ EmptyItem: tr,
1895
+ Loader: or
1828
1896
  },
1829
1897
  TableHandle: {
1830
- Root: Nr
1898
+ Root: Rr
1831
1899
  },
1832
1900
  Generic: {
1833
1901
  Form: {
1834
1902
  Root: er,
1835
- TextInput: jr
1903
+ TextInput: Er
1836
1904
  },
1837
1905
  Menu: {
1838
- Root: tr,
1839
- Trigger: rr,
1840
- Dropdown: or,
1841
- Divider: sr,
1842
- Label: ir,
1843
- Item: ar
1906
+ Root: sr,
1907
+ Trigger: ir,
1908
+ Dropdown: lr,
1909
+ Divider: cr,
1910
+ Label: ur,
1911
+ Item: dr
1844
1912
  },
1845
1913
  Popover: {
1846
- Root: fr,
1847
- Trigger: mr,
1848
- Content: pr
1914
+ Root: vr,
1915
+ Trigger: xr,
1916
+ Content: hr
1849
1917
  }
1850
1918
  }
1851
- }, Or = (r) => {
1852
- const { className: t, shadCNComponents: n, ...a } = r, s = We(() => ({
1919
+ }, $r = (r) => {
1920
+ const { className: t, shadCNComponents: n, ...o } = r, s = Ue(() => ({
1853
1921
  ...Qt,
1854
1922
  ...n
1855
1923
  }), [n]);
1856
- return /* @__PURE__ */ o.jsx(yn.Provider, { value: s, children: /* @__PURE__ */ o.jsx(bt.Provider, { value: Rr, children: /* @__PURE__ */ o.jsx(
1857
- ut,
1924
+ return /* @__PURE__ */ a.jsx(jn.Provider, { value: s, children: /* @__PURE__ */ a.jsx(ut.Provider, { value: _r, children: /* @__PURE__ */ a.jsx(
1925
+ bt,
1858
1926
  {
1859
- className: lt("bn-shadcn", t || ""),
1860
- ...a
1927
+ className: ct("bn-shadcn", t || ""),
1928
+ ...o
1861
1929
  }
1862
1930
  ) }) });
1863
1931
  };
1864
1932
  export {
1865
- Or as BlockNoteView,
1866
- Rr as components
1933
+ $r as BlockNoteView,
1934
+ _r as components
1867
1935
  };
1868
1936
  //# sourceMappingURL=blocknote-shadcn.js.map