@blocknote/shadcn 0.13.5 → 0.14.1

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