@blocknote/shadcn 0.13.4 → 0.14.0

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