@datawire-ai/busyfile-design-library 1.15.0 → 1.16.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.
package/dist/index.js CHANGED
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
238
238
  function f(C) {
239
239
  typeof C == "object" && C !== null && C.$$typeof === h && C._store && (C._store.validated = 1);
240
240
  }
241
- var g = ve, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), w = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), J = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, Q = Array.isArray, F = console.createTask ? console.createTask : function() {
241
+ var g = ve, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), w = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), Y = Symbol.for("react.client.reference"), J = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, Q = Array.isArray, V = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
244
  g = {
@@ -246,10 +246,10 @@ React keys must be passed directly to JSX without using spread:
246
246
  return C();
247
247
  }
248
248
  };
249
- var K, $ = {}, V = g["react-stack-bottom-frame"].bind(
249
+ var K, $ = {}, z = g["react-stack-bottom-frame"].bind(
250
250
  g,
251
251
  a
252
- )(), P = F(n(a)), ee = {};
252
+ )(), P = V(n(a)), ee = {};
253
253
  mt.Fragment = m, mt.jsx = function(C, L, S, T, j) {
254
254
  var O = 1e4 > J.recentlyCreatedOwnerStacks++;
255
255
  return p(
@@ -259,8 +259,8 @@ React keys must be passed directly to JSX without using spread:
259
259
  !1,
260
260
  T,
261
261
  j,
262
- O ? Error("react-stack-top-frame") : V,
263
- O ? F(n(C)) : P
262
+ O ? Error("react-stack-top-frame") : z,
263
+ O ? V(n(C)) : P
264
264
  );
265
265
  }, mt.jsxs = function(C, L, S, T, j) {
266
266
  var O = 1e4 > J.recentlyCreatedOwnerStacks++;
@@ -271,8 +271,8 @@ React keys must be passed directly to JSX without using spread:
271
271
  !0,
272
272
  T,
273
273
  j,
274
- O ? Error("react-stack-top-frame") : V,
275
- O ? F(n(C)) : P
274
+ O ? Error("react-stack-top-frame") : z,
275
+ O ? V(n(C)) : P
276
276
  );
277
277
  };
278
278
  }()), mt;
@@ -640,7 +640,7 @@ const oe = (e) => {
640
640
  "left-bottom"
641
641
  ], k = () => [...E(), M, I], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], N = () => [M, I, c], B = () => [Ge, "full", "auto", ...N()], Y = () => [Re, "none", "subgrid", M, I], J = () => ["auto", {
642
642
  span: ["full", Re, M, I]
643
- }, Re, M, I], q = () => [Re, "auto", M, I], Q = () => ["auto", "min", "max", "fr", M, I], F = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...N()], V = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], P = () => [e, M, I], ee = () => [...E(), Pn, Rn, {
643
+ }, Re, M, I], q = () => [Re, "auto", M, I], Q = () => ["auto", "min", "max", "fr", M, I], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], K = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], $ = () => ["auto", ...N()], z = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], P = () => [e, M, I], ee = () => [...E(), Pn, Rn, {
644
644
  position: [M, I]
645
645
  }], C = () => ["no-repeat", {
646
646
  repeat: ["", "x", "y", "space", "round"]
@@ -1064,7 +1064,7 @@ const oe = (e) => {
1064
1064
  * @see https://tailwindcss.com/docs/justify-content
1065
1065
  */
1066
1066
  "justify-content": [{
1067
- justify: [...F(), "normal"]
1067
+ justify: [...V(), "normal"]
1068
1068
  }],
1069
1069
  /**
1070
1070
  * Justify Items
@@ -1085,7 +1085,7 @@ const oe = (e) => {
1085
1085
  * @see https://tailwindcss.com/docs/align-content
1086
1086
  */
1087
1087
  "align-content": [{
1088
- content: ["normal", ...F()]
1088
+ content: ["normal", ...V()]
1089
1089
  }],
1090
1090
  /**
1091
1091
  * Align Items
@@ -1110,7 +1110,7 @@ const oe = (e) => {
1110
1110
  * @see https://tailwindcss.com/docs/place-content
1111
1111
  */
1112
1112
  "place-content": [{
1113
- "place-content": F()
1113
+ "place-content": V()
1114
1114
  }],
1115
1115
  /**
1116
1116
  * Place Items
@@ -1285,14 +1285,14 @@ const oe = (e) => {
1285
1285
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
1286
1286
  */
1287
1287
  size: [{
1288
- size: V()
1288
+ size: z()
1289
1289
  }],
1290
1290
  /**
1291
1291
  * Width
1292
1292
  * @see https://tailwindcss.com/docs/width
1293
1293
  */
1294
1294
  w: [{
1295
- w: [i, "screen", ...V()]
1295
+ w: [i, "screen", ...z()]
1296
1296
  }],
1297
1297
  /**
1298
1298
  * Min-Width
@@ -1304,7 +1304,7 @@ const oe = (e) => {
1304
1304
  "screen",
1305
1305
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1306
1306
  "none",
1307
- ...V()
1307
+ ...z()
1308
1308
  ]
1309
1309
  }],
1310
1310
  /**
@@ -1322,7 +1322,7 @@ const oe = (e) => {
1322
1322
  {
1323
1323
  screen: [s]
1324
1324
  },
1325
- ...V()
1325
+ ...z()
1326
1326
  ]
1327
1327
  }],
1328
1328
  /**
@@ -1330,21 +1330,21 @@ const oe = (e) => {
1330
1330
  * @see https://tailwindcss.com/docs/height
1331
1331
  */
1332
1332
  h: [{
1333
- h: ["screen", "lh", ...V()]
1333
+ h: ["screen", "lh", ...z()]
1334
1334
  }],
1335
1335
  /**
1336
1336
  * Min-Height
1337
1337
  * @see https://tailwindcss.com/docs/min-height
1338
1338
  */
1339
1339
  "min-h": [{
1340
- "min-h": ["screen", "lh", "none", ...V()]
1340
+ "min-h": ["screen", "lh", "none", ...z()]
1341
1341
  }],
1342
1342
  /**
1343
1343
  * Max-Height
1344
1344
  * @see https://tailwindcss.com/docs/max-height
1345
1345
  */
1346
1346
  "max-h": [{
1347
- "max-h": ["screen", "lh", ...V()]
1347
+ "max-h": ["screen", "lh", ...z()]
1348
1348
  }],
1349
1349
  // ------------------
1350
1350
  // --- Typography ---
@@ -3090,7 +3090,7 @@ const oe = (e) => {
3090
3090
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3091
3091
  };
3092
3092
  }, Di = /* @__PURE__ */ gi(Mi);
3093
- function z(...e) {
3093
+ function F(...e) {
3094
3094
  return Di(go(e));
3095
3095
  }
3096
3096
  const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Nn = go, de = (e, t) => (r) => {
@@ -3144,7 +3144,7 @@ const An = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Nn = go, d
3144
3144
  }
3145
3145
  }
3146
3146
  );
3147
- function Kp({
3147
+ function qp({
3148
3148
  className: e,
3149
3149
  variant: t,
3150
3150
  size: r,
@@ -3157,7 +3157,7 @@ function Kp({
3157
3157
  s,
3158
3158
  {
3159
3159
  "data-slot": "button",
3160
- className: z(Fi({ variant: t, size: r }), e),
3160
+ className: F(Fi({ variant: t, size: r }), e),
3161
3161
  ...a,
3162
3162
  children: o
3163
3163
  }
@@ -3345,14 +3345,14 @@ const _o = de(
3345
3345
  "aria-label": p,
3346
3346
  "aria-labelledby": f || (i ? y : void 0),
3347
3347
  "aria-describedby": c ? b : void 0,
3348
- className: z(_o({ variant: r }), o),
3348
+ className: F(_o({ variant: r }), o),
3349
3349
  id: x,
3350
3350
  name: s,
3351
3351
  ...h,
3352
3352
  children: g || /* @__PURE__ */ d.jsx(
3353
3353
  "span",
3354
3354
  {
3355
- className: z(To({ variant: r })),
3355
+ className: F(To({ variant: r })),
3356
3356
  "aria-hidden": "true"
3357
3357
  }
3358
3358
  )
@@ -3361,7 +3361,7 @@ const _o = de(
3361
3361
  return !i && !c ? E : /* @__PURE__ */ d.jsxs(
3362
3362
  "div",
3363
3363
  {
3364
- className: z(
3364
+ className: F(
3365
3365
  "flex gap-3",
3366
3366
  u === "left" ? "flex-row-reverse" : "flex-row",
3367
3367
  n && "opacity-50 cursor-not-allowed"
@@ -3374,7 +3374,7 @@ const _o = de(
3374
3374
  {
3375
3375
  id: y,
3376
3376
  htmlFor: x,
3377
- className: z(
3377
+ className: F(
3378
3378
  "text-sm font-medium leading-none cursor-pointer",
3379
3379
  n && "cursor-not-allowed"
3380
3380
  ),
@@ -3425,14 +3425,14 @@ const Gi = Yt(
3425
3425
  "aria-label": u,
3426
3426
  "aria-labelledby": p || (s ? w : void 0),
3427
3427
  "aria-describedby": i ? E : void 0,
3428
- className: z(_o({ variant: t }), n),
3428
+ className: F(_o({ variant: t }), n),
3429
3429
  id: b,
3430
3430
  name: a,
3431
3431
  ...h,
3432
3432
  children: g || /* @__PURE__ */ d.jsx(
3433
3433
  "span",
3434
3434
  {
3435
- className: z(To({ variant: t })),
3435
+ className: F(To({ variant: t })),
3436
3436
  "aria-hidden": "true"
3437
3437
  }
3438
3438
  )
@@ -3441,7 +3441,7 @@ const Gi = Yt(
3441
3441
  return !s && !i ? _ : /* @__PURE__ */ d.jsxs(
3442
3442
  "div",
3443
3443
  {
3444
- className: z(
3444
+ className: F(
3445
3445
  "flex gap-2.5",
3446
3446
  c === "left" ? "flex-row-reverse" : "flex-row",
3447
3447
  r && "opacity-50 cursor-not-allowed"
@@ -3454,7 +3454,7 @@ const Gi = Yt(
3454
3454
  {
3455
3455
  id: w,
3456
3456
  htmlFor: b,
3457
- className: z(
3457
+ className: F(
3458
3458
  "text-sm font-medium leading-none cursor-pointer text-neutral-black-1",
3459
3459
  r && "cursor-not-allowed"
3460
3460
  ),
@@ -4410,7 +4410,7 @@ var Jl = function(e) {
4410
4410
  return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), ec(n, o, r, "aria-hidden")) : function() {
4411
4411
  return null;
4412
4412
  };
4413
- }, Jt = "Dialog", [Wo, Xp] = Ue(Jt), [tc, he] = Wo(Jt), Ho = (e) => {
4413
+ }, Jt = "Dialog", [Wo, Zp] = Ue(Jt), [tc, he] = Wo(Jt), Ho = (e) => {
4414
4414
  const {
4415
4415
  __scopeDialog: t,
4416
4416
  children: r,
@@ -4615,7 +4615,7 @@ ra.displayName = ta;
4615
4615
  function en(e) {
4616
4616
  return e ? "open" : "closed";
4617
4617
  }
4618
- var na = "DialogTitleWarning", [qp, oa] = Yi(na, {
4618
+ var na = "DialogTitleWarning", [Jp, oa] = Yi(na, {
4619
4619
  contentName: Ve,
4620
4620
  titleName: Qr,
4621
4621
  docsSlug: "dialog"
@@ -4905,12 +4905,12 @@ const Wc = [
4905
4905
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
4906
4906
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
4907
4907
  ], fa = se("x", Wc);
4908
- function Zp({
4908
+ function Qp({
4909
4909
  ...e
4910
4910
  }) {
4911
4911
  return /* @__PURE__ */ d.jsx(aa, { "data-slot": "dialog", ...e });
4912
4912
  }
4913
- function Jp({
4913
+ function em({
4914
4914
  ...e
4915
4915
  }) {
4916
4916
  return /* @__PURE__ */ d.jsx(uc, { "data-slot": "dialog-trigger", ...e });
@@ -4920,7 +4920,7 @@ function Hc({
4920
4920
  }) {
4921
4921
  return /* @__PURE__ */ d.jsx(sa, { "data-slot": "dialog-portal", ...e });
4922
4922
  }
4923
- function Qp({
4923
+ function tm({
4924
4924
  ...e
4925
4925
  }) {
4926
4926
  return /* @__PURE__ */ d.jsx(ca, { "data-slot": "dialog-close", ...e });
@@ -4933,7 +4933,7 @@ function Uc({
4933
4933
  ia,
4934
4934
  {
4935
4935
  "data-slot": "dialog-overlay",
4936
- className: z(
4936
+ className: F(
4937
4937
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
4938
4938
  e
4939
4939
  ),
@@ -4941,7 +4941,7 @@ function Uc({
4941
4941
  }
4942
4942
  );
4943
4943
  }
4944
- function em({
4944
+ function rm({
4945
4945
  className: e,
4946
4946
  children: t,
4947
4947
  showCloseButton: r = !0,
@@ -4953,7 +4953,7 @@ function em({
4953
4953
  la,
4954
4954
  {
4955
4955
  "data-slot": "dialog-content",
4956
- className: z(
4956
+ className: F(
4957
4957
  "bg-background bg-white 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-none p-6 shadow-lg duration-200 sm:max-w-lg",
4958
4958
  e
4959
4959
  ),
@@ -4976,22 +4976,22 @@ function em({
4976
4976
  )
4977
4977
  ] });
4978
4978
  }
4979
- function tm({ className: e, ...t }) {
4979
+ function nm({ className: e, ...t }) {
4980
4980
  return /* @__PURE__ */ d.jsx(
4981
4981
  "div",
4982
4982
  {
4983
4983
  "data-slot": "dialog-header",
4984
- className: z("flex flex-col gap-2 text-center sm:text-left", e),
4984
+ className: F("flex flex-col gap-2 text-center sm:text-left", e),
4985
4985
  ...t
4986
4986
  }
4987
4987
  );
4988
4988
  }
4989
- function rm({ className: e, ...t }) {
4989
+ function om({ className: e, ...t }) {
4990
4990
  return /* @__PURE__ */ d.jsx(
4991
4991
  "div",
4992
4992
  {
4993
4993
  "data-slot": "dialog-footer",
4994
- className: z(
4994
+ className: F(
4995
4995
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
4996
4996
  e
4997
4997
  ),
@@ -4999,7 +4999,7 @@ function rm({ className: e, ...t }) {
4999
4999
  }
5000
5000
  );
5001
5001
  }
5002
- function nm({
5002
+ function am({
5003
5003
  className: e,
5004
5004
  ...t
5005
5005
  }) {
@@ -5007,12 +5007,12 @@ function nm({
5007
5007
  dc,
5008
5008
  {
5009
5009
  "data-slot": "dialog-title",
5010
- className: z("text-lg leading-none font-semibold ", e),
5010
+ className: F("text-lg leading-none font-semibold ", e),
5011
5011
  ...t
5012
5012
  }
5013
5013
  );
5014
5014
  }
5015
- function om({
5015
+ function sm({
5016
5016
  className: e,
5017
5017
  ...t
5018
5018
  }) {
@@ -5020,7 +5020,7 @@ function om({
5020
5020
  fc,
5021
5021
  {
5022
5022
  "data-slot": "dialog-description",
5023
- className: z("text-muted-foreground text-sm", e),
5023
+ className: F("text-muted-foreground text-sm", e),
5024
5024
  ...t
5025
5025
  }
5026
5026
  );
@@ -5067,7 +5067,7 @@ function Yc({
5067
5067
  s,
5068
5068
  {
5069
5069
  "data-slot": "badge",
5070
- className: z(Gc({ variant: t, type: r }), e),
5070
+ className: F(Gc({ variant: t, type: r }), e),
5071
5071
  ...a,
5072
5072
  children: o
5073
5073
  }
@@ -5357,14 +5357,14 @@ const su = (e) => ({
5357
5357
  }, h = on(o), v = nn(h), m = await s.getDimensions(u), x = h === "y", y = x ? "top" : "left", b = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", E = a.reference[v] + a.reference[h] - g[h] - a.floating[v], k = g[h] - a.reference[h], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
5358
5358
  let R = _ ? _[w] : 0;
5359
5359
  (!R || !await (s.isElement == null ? void 0 : s.isElement(_))) && (R = i.floating[w] || a.floating[v]);
5360
- const N = E / 2 - k / 2, B = R / 2 - m[v] / 2 - 1, Y = Ne(f[y], B), J = Ne(f[b], B), q = Y, Q = R - m[v] - J, F = R / 2 - m[v] / 2 + N, K = Ir(q, F, Q), $ = !c.arrow && st(o) != null && F !== K && a.reference[v] / 2 - (F < q ? Y : J) - m[v] / 2 < 0, V = $ ? F < q ? F - q : F - Q : 0;
5360
+ const N = E / 2 - k / 2, B = R / 2 - m[v] / 2 - 1, Y = Ne(f[y], B), J = Ne(f[b], B), q = Y, Q = R - m[v] - J, V = R / 2 - m[v] / 2 + N, K = Ir(q, V, Q), $ = !c.arrow && st(o) != null && V !== K && a.reference[v] / 2 - (V < q ? Y : J) - m[v] / 2 < 0, z = $ ? V < q ? V - q : V - Q : 0;
5361
5361
  return {
5362
- [h]: g[h] + V,
5362
+ [h]: g[h] + z,
5363
5363
  data: {
5364
5364
  [h]: K,
5365
- centerOffset: F - K - V,
5365
+ centerOffset: V - K - z,
5366
5366
  ...$ && {
5367
- alignmentOffset: V
5367
+ alignmentOffset: z
5368
5368
  }
5369
5369
  },
5370
5370
  reset: $
@@ -5399,33 +5399,33 @@ const su = (e) => ({
5399
5399
  const R = [i, ...k], N = await xt(t, x), B = [];
5400
5400
  let Y = ((n = a.flip) == null ? void 0 : n.overflows) || [];
5401
5401
  if (p && B.push(N[y]), f) {
5402
- const F = Jc(o, s, E);
5403
- B.push(N[F[0]], N[F[1]]);
5402
+ const V = Jc(o, s, E);
5403
+ B.push(N[V[0]], N[V[1]]);
5404
5404
  }
5405
5405
  if (Y = [...Y, {
5406
5406
  placement: o,
5407
5407
  overflows: B
5408
- }], !B.every((F) => F <= 0)) {
5408
+ }], !B.every((V) => V <= 0)) {
5409
5409
  var J, q;
5410
- const F = (((J = a.flip) == null ? void 0 : J.index) || 0) + 1, K = R[F];
5410
+ const V = (((J = a.flip) == null ? void 0 : J.index) || 0) + 1, K = R[V];
5411
5411
  if (K && (!(f === "alignment" ? b !== be(K) : !1) || // We leave the current main axis only if every placement on that axis
5412
5412
  // overflows the main axis.
5413
5413
  Y.every((P) => be(P.placement) === b ? P.overflows[0] > 0 : !0)))
5414
5414
  return {
5415
5415
  data: {
5416
- index: F,
5416
+ index: V,
5417
5417
  overflows: Y
5418
5418
  },
5419
5419
  reset: {
5420
5420
  placement: K
5421
5421
  }
5422
5422
  };
5423
- let $ = (q = Y.filter((V) => V.overflows[0] <= 0).sort((V, P) => V.overflows[1] - P.overflows[1])[0]) == null ? void 0 : q.placement;
5423
+ let $ = (q = Y.filter((z) => z.overflows[0] <= 0).sort((z, P) => z.overflows[1] - P.overflows[1])[0]) == null ? void 0 : q.placement;
5424
5424
  if (!$)
5425
5425
  switch (h) {
5426
5426
  case "bestFit": {
5427
5427
  var Q;
5428
- const V = (Q = Y.filter((P) => {
5428
+ const z = (Q = Y.filter((P) => {
5429
5429
  if (_) {
5430
5430
  const ee = be(P.placement);
5431
5431
  return ee === b || // Create a bias to the `y` side axis due to horizontal
@@ -5434,7 +5434,7 @@ const su = (e) => ({
5434
5434
  }
5435
5435
  return !0;
5436
5436
  }).map((P) => [P.placement, P.overflows.filter((ee) => ee > 0).reduce((ee, C) => ee + C, 0)]).sort((P, ee) => P[1] - ee[1])[0]) == null ? void 0 : Q[0];
5437
- V && ($ = V);
5437
+ z && ($ = z);
5438
5438
  break;
5439
5439
  }
5440
5440
  case "initialPlacement":
@@ -6282,7 +6282,7 @@ function Xu(e) {
6282
6282
  // setting it to `true` when `open === false` (must be specified).
6283
6283
  isPositioned: q.current !== !1
6284
6284
  };
6285
- F.current && !Ut(N.current, C) && (N.current = C, Kt.flushSync(() => {
6285
+ V.current && !Ut(N.current, C) && (N.current = C, Kt.flushSync(() => {
6286
6286
  f(C);
6287
6287
  }));
6288
6288
  });
@@ -6293,9 +6293,9 @@ function Xu(e) {
6293
6293
  isPositioned: !1
6294
6294
  })));
6295
6295
  }, [u]);
6296
- const F = l.useRef(!1);
6297
- Ft(() => (F.current = !0, () => {
6298
- F.current = !1;
6296
+ const V = l.useRef(!1);
6297
+ Ft(() => (V.current = !0, () => {
6298
+ V.current = !1;
6299
6299
  }), []), Ft(() => {
6300
6300
  if (E && (_.current = E), k && (R.current = k), E && k) {
6301
6301
  if (Y.current)
@@ -6311,7 +6311,7 @@ function Xu(e) {
6311
6311
  }), [b, w]), $ = l.useMemo(() => ({
6312
6312
  reference: E,
6313
6313
  floating: k
6314
- }), [E, k]), V = l.useMemo(() => {
6314
+ }), [E, k]), z = l.useMemo(() => {
6315
6315
  const P = {
6316
6316
  position: r,
6317
6317
  left: 0,
@@ -6337,8 +6337,8 @@ function Xu(e) {
6337
6337
  update: Q,
6338
6338
  refs: K,
6339
6339
  elements: $,
6340
- floatingStyles: V
6341
- }), [p, Q, K, $, V]);
6340
+ floatingStyles: z
6341
+ }), [p, Q, K, $, z]);
6342
6342
  }
6343
6343
  const qu = (e) => {
6344
6344
  function t(r) {
@@ -6460,7 +6460,7 @@ var un = "PopperContent", [ld, cd] = ka(un), _a = l.forwardRef(
6460
6460
  boundary: J.filter(dd),
6461
6461
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
6462
6462
  altBoundary: q
6463
- }, { refs: F, floatingStyles: K, placement: $, isPositioned: V, middlewareData: P } = Xu({
6463
+ }, { refs: V, floatingStyles: K, placement: $, isPositioned: z, middlewareData: P } = Xu({
6464
6464
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6465
6465
  strategy: "fixed",
6466
6466
  placement: B,
@@ -6492,19 +6492,19 @@ var un = "PopperContent", [ld, cd] = ka(un), _a = l.forwardRef(
6492
6492
  ]
6493
6493
  }), [ee, C] = ja($), L = Ae(v);
6494
6494
  ae(() => {
6495
- V && (L == null || L());
6496
- }, [V, L]);
6495
+ z && (L == null || L());
6496
+ }, [z, L]);
6497
6497
  const S = (A = P.arrow) == null ? void 0 : A.x, T = (D = P.arrow) == null ? void 0 : D.y, j = ((W = P.arrow) == null ? void 0 : W.centerOffset) !== 0, [O, H] = l.useState();
6498
6498
  return ae(() => {
6499
6499
  y && H(window.getComputedStyle(y).zIndex);
6500
6500
  }, [y]), /* @__PURE__ */ d.jsx(
6501
6501
  "div",
6502
6502
  {
6503
- ref: F.setFloating,
6503
+ ref: V.setFloating,
6504
6504
  "data-radix-popper-content-wrapper": "",
6505
6505
  style: {
6506
6506
  ...K,
6507
- transform: V ? K.transform : "translate(0, -200%)",
6507
+ transform: z ? K.transform : "translate(0, -200%)",
6508
6508
  // keep off the page when measuring
6509
6509
  minWidth: "max-content",
6510
6510
  zIndex: O,
@@ -6541,7 +6541,7 @@ var un = "PopperContent", [ld, cd] = ka(un), _a = l.forwardRef(
6541
6541
  ...m.style,
6542
6542
  // if the PopperContent hasn't been placed yet (not all measurements done)
6543
6543
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
6544
- animation: V ? void 0 : "none"
6544
+ animation: z ? void 0 : "none"
6545
6545
  }
6546
6546
  }
6547
6547
  )
@@ -6643,7 +6643,7 @@ var dn = Pa, nr = Na, fn = _a, pn = Oa, Ia = Object.freeze({
6643
6643
  )
6644
6644
  );
6645
6645
  Ma.displayName = pd;
6646
- var md = Ma, [or, am] = Ue("Tooltip", [
6646
+ var md = Ma, [or, im] = Ue("Tooltip", [
6647
6647
  lt
6648
6648
  ]), ar = lt(), Da = "TooltipProvider", hd = 700, Lr = "tooltip.open", [gd, mn] = or(Da), La = (e) => {
6649
6649
  const {
@@ -6967,17 +6967,17 @@ function Dd({
6967
6967
  }
6968
6968
  );
6969
6969
  }
6970
- function sm({
6970
+ function lm({
6971
6971
  ...e
6972
6972
  }) {
6973
6973
  return /* @__PURE__ */ d.jsx(Dd, { children: /* @__PURE__ */ d.jsx(Td, { "data-slot": "tooltip", ...e }) });
6974
6974
  }
6975
- function im({
6975
+ function cm({
6976
6976
  ...e
6977
6977
  }) {
6978
6978
  return /* @__PURE__ */ d.jsx(Od, { "data-slot": "tooltip-trigger", ...e });
6979
6979
  }
6980
- function lm({
6980
+ function um({
6981
6981
  className: e,
6982
6982
  sideOffset: t = 0,
6983
6983
  children: r,
@@ -6988,7 +6988,7 @@ function lm({
6988
6988
  {
6989
6989
  "data-slot": "tooltip-content",
6990
6990
  sideOffset: t,
6991
- className: z(
6991
+ className: F(
6992
6992
  "bg-neutral-black-1 text-white 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 z-50 max-w-[362px]! origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs",
6993
6993
  e
6994
6994
  ),
@@ -7034,7 +7034,7 @@ const Ld = de(
7034
7034
  /* @__PURE__ */ d.jsxs(
7035
7035
  "div",
7036
7036
  {
7037
- className: z(
7037
+ className: F(
7038
7038
  Ld({
7039
7039
  size: a,
7040
7040
  status: r ? "error" : i ? "disabled" : "default"
@@ -7047,7 +7047,7 @@ const Ld = de(
7047
7047
  "input",
7048
7048
  {
7049
7049
  disabled: i,
7050
- className: z(
7050
+ className: F(
7051
7051
  "flex-1 bg-transparent outline-none placeholder:text-neutral-black-2 disabled:cursor-not-allowed disabled:opacity-50"
7052
7052
  ),
7053
7053
  ...c
@@ -7060,14 +7060,14 @@ const Ld = de(
7060
7060
  (t || r) && /* @__PURE__ */ d.jsx(
7061
7061
  "p",
7062
7062
  {
7063
- className: z(
7063
+ className: F(
7064
7064
  "text-xs mt-1",
7065
7065
  r ? "text-primary-1" : "text-neutral-black-2"
7066
7066
  ),
7067
7067
  children: r || t
7068
7068
  }
7069
7069
  )
7070
- ] }), cm = (e) => /* @__PURE__ */ d.jsx(gn, { type: "email", inputMode: "email", ...e }), um = ({
7070
+ ] }), dm = (e) => /* @__PURE__ */ d.jsx(gn, { type: "email", inputMode: "email", ...e }), fm = ({
7071
7071
  showForgot: e = !1,
7072
7072
  onValidityChange: t,
7073
7073
  customValidator: r,
@@ -7132,7 +7132,7 @@ const Ld = de(
7132
7132
  /* @__PURE__ */ d.jsx("span", { className: f.isValid ? "text-success-d" : "text-input", children: f.label })
7133
7133
  ] }, g)) })
7134
7134
  ] }) });
7135
- }, dm = (e) => /* @__PURE__ */ d.jsx(
7135
+ }, pm = (e) => /* @__PURE__ */ d.jsx(
7136
7136
  gn,
7137
7137
  {
7138
7138
  type: "search",
@@ -7199,7 +7199,7 @@ function zd(e) {
7199
7199
  const t = l.useRef({ value: e, previous: e });
7200
7200
  return l.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
7201
7201
  }
7202
- var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Wd = [" ", "Enter"], Be = "Select", [sr, ir, Hd] = $d(Be), [ct, fm] = Ue(Be, [
7202
+ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Wd = [" ", "Enter"], Be = "Select", [sr, ir, Hd] = $d(Be), [ct, mm] = Ue(Be, [
7203
7203
  Hd,
7204
7204
  lt
7205
7205
  ]), lr = lt(), [Ud, je] = ct(Be), [Gd, Yd] = ct(Be), Ua = (e) => {
@@ -7228,7 +7228,7 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Wd = [" ", "Enter"], Be = "Sele
7228
7228
  defaultProp: i,
7229
7229
  onChange: c,
7230
7230
  caller: Be
7231
- }), J = l.useRef(null), q = x ? v || !!x.closest("form") : !0, [Q, F] = l.useState(/* @__PURE__ */ new Set()), K = Array.from(Q).map(($) => $.props.value).join(";");
7231
+ }), J = l.useRef(null), q = x ? v || !!x.closest("form") : !0, [Q, V] = l.useState(/* @__PURE__ */ new Set()), K = Array.from(Q).map(($) => $.props.value).join(";");
7232
7232
  return /* @__PURE__ */ d.jsx(dn, { ...m, children: /* @__PURE__ */ d.jsxs(
7233
7233
  Ud,
7234
7234
  {
@@ -7254,11 +7254,11 @@ var Bd = [" ", "Enter", "ArrowUp", "ArrowDown"], Wd = [" ", "Enter"], Be = "Sele
7254
7254
  {
7255
7255
  scope: e.__scopeSelect,
7256
7256
  onNativeOptionAdd: l.useCallback(($) => {
7257
- F((V) => new Set(V).add($));
7257
+ V((z) => new Set(z).add($));
7258
7258
  }, []),
7259
7259
  onNativeOptionRemove: l.useCallback(($) => {
7260
- F((V) => {
7261
- const P = new Set(V);
7260
+ V((z) => {
7261
+ const P = new Set(z);
7262
7262
  return P.delete($), P;
7263
7263
  });
7264
7264
  }, []),
@@ -7399,7 +7399,7 @@ var fe = 10, [Qa, Ie] = ct(We), qd = "SelectContentImpl", Zd = /* @__PURE__ */ F
7399
7399
  ...y
7400
7400
  } = e, b = je(We, r), [w, E] = l.useState(null), [k, _] = l.useState(null), R = ne(t, (A) => E(A)), [N, B] = l.useState(null), [Y, J] = l.useState(
7401
7401
  null
7402
- ), q = ir(r), [Q, F] = l.useState(!1), K = l.useRef(!1);
7402
+ ), q = ir(r), [Q, V] = l.useState(!1), K = l.useRef(!1);
7403
7403
  l.useEffect(() => {
7404
7404
  if (w) return Zr(w);
7405
7405
  }, [w]), qr();
@@ -7410,13 +7410,13 @@ var fe = 10, [Qa, Ie] = ct(We), qd = "SelectContentImpl", Zd = /* @__PURE__ */ F
7410
7410
  if (re === te || (re == null || re.scrollIntoView({ block: "nearest" }), re === D && k && (k.scrollTop = 0), re === G && k && (k.scrollTop = k.scrollHeight), re == null || re.focus(), document.activeElement !== te)) return;
7411
7411
  },
7412
7412
  [q, k]
7413
- ), V = l.useCallback(
7413
+ ), z = l.useCallback(
7414
7414
  () => $([N, w]),
7415
7415
  [$, N, w]
7416
7416
  );
7417
7417
  l.useEffect(() => {
7418
- Q && V();
7419
- }, [Q, V]);
7418
+ Q && z();
7419
+ }, [Q, z]);
7420
7420
  const { onOpenChange: P, triggerPointerDownPosRef: ee } = b;
7421
7421
  l.useEffect(() => {
7422
7422
  if (w) {
@@ -7478,7 +7478,7 @@ var fe = 10, [Qa, Ie] = ct(We), qd = "SelectContentImpl", Zd = /* @__PURE__ */ F
7478
7478
  selectedItem: N,
7479
7479
  onItemLeave: T,
7480
7480
  itemTextRefCallback: j,
7481
- focusSelectedItem: V,
7481
+ focusSelectedItem: z,
7482
7482
  selectedItemText: Y,
7483
7483
  position: n,
7484
7484
  isPositioned: Q,
@@ -7514,7 +7514,7 @@ var fe = 10, [Qa, Ie] = ct(We), qd = "SelectContentImpl", Zd = /* @__PURE__ */ F
7514
7514
  onContextMenu: (A) => A.preventDefault(),
7515
7515
  ...y,
7516
7516
  ...H,
7517
- onPlaced: () => F(!0),
7517
+ onPlaced: () => V(!0),
7518
7518
  ref: R,
7519
7519
  style: {
7520
7520
  // flex layout so we can place the scroll buttons properly
@@ -7568,14 +7568,14 @@ var Jd = "SelectItemAlignedPosition", ts = l.forwardRef((e, t) => {
7568
7568
  ]);
7569
7569
  i.style.minWidth = ge + "px", i.style.right = ft + "px";
7570
7570
  }
7571
- const J = g(), q = window.innerHeight - fe * 2, Q = m.scrollHeight, F = window.getComputedStyle(u), K = parseInt(F.borderTopWidth, 10), $ = parseInt(F.paddingTop, 10), V = parseInt(F.borderBottomWidth, 10), P = parseInt(F.paddingBottom, 10), ee = K + $ + Q + P + V, C = Math.min(x.offsetHeight * 5, ee), L = window.getComputedStyle(m), S = parseInt(L.paddingTop, 10), T = parseInt(L.paddingBottom, 10), j = R.top + R.height / 2 - fe, O = q - j, H = x.offsetHeight / 2, A = x.offsetTop + H, D = K + $ + A, W = ee - D;
7571
+ const J = g(), q = window.innerHeight - fe * 2, Q = m.scrollHeight, V = window.getComputedStyle(u), K = parseInt(V.borderTopWidth, 10), $ = parseInt(V.paddingTop, 10), z = parseInt(V.borderBottomWidth, 10), P = parseInt(V.paddingBottom, 10), ee = K + $ + Q + P + z, C = Math.min(x.offsetHeight * 5, ee), L = window.getComputedStyle(m), S = parseInt(L.paddingTop, 10), T = parseInt(L.paddingBottom, 10), j = R.top + R.height / 2 - fe, O = q - j, H = x.offsetHeight / 2, A = x.offsetTop + H, D = K + $ + A, W = ee - D;
7572
7572
  if (D <= j) {
7573
7573
  const te = J.length > 0 && x === J[J.length - 1].ref.current;
7574
7574
  i.style.bottom = "0px";
7575
7575
  const re = u.clientHeight - m.offsetTop - m.offsetHeight, le = Math.max(
7576
7576
  O,
7577
7577
  H + // viewport might have padding bottom, include it to avoid a scrollable viewport
7578
- (te ? T : 0) + re + V
7578
+ (te ? T : 0) + re + z
7579
7579
  ), ge = D + le;
7580
7580
  i.style.height = ge + "px";
7581
7581
  } else {
@@ -8030,7 +8030,7 @@ function Pf({
8030
8030
  {
8031
8031
  "data-slot": "select-trigger",
8032
8032
  "data-size": t,
8033
- className: z(
8033
+ className: F(
8034
8034
  "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8035
8035
  e
8036
8036
  ),
@@ -8052,7 +8052,7 @@ function Af({
8052
8052
  hf,
8053
8053
  {
8054
8054
  "data-slot": "select-content",
8055
- className: z(
8055
+ className: F(
8056
8056
  "bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
8057
8057
  r === "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",
8058
8058
  e
@@ -8064,7 +8064,7 @@ function Af({
8064
8064
  /* @__PURE__ */ d.jsx(
8065
8065
  gf,
8066
8066
  {
8067
- className: z(
8067
+ className: F(
8068
8068
  "p-1",
8069
8069
  r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
8070
8070
  ),
@@ -8084,7 +8084,7 @@ function Nf({
8084
8084
  xf,
8085
8085
  {
8086
8086
  "data-slot": "select-label",
8087
- className: z("text-muted-foreground px-2 py-1.5 text-xs", e),
8087
+ className: F("text-muted-foreground px-2 py-1.5 text-xs", e),
8088
8088
  ...t
8089
8089
  }
8090
8090
  );
@@ -8098,7 +8098,7 @@ function ro({
8098
8098
  bf,
8099
8099
  {
8100
8100
  "data-slot": "select-item",
8101
- className: z(
8101
+ className: F(
8102
8102
  "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
8103
8103
  e
8104
8104
  ),
@@ -8118,7 +8118,7 @@ function _f({
8118
8118
  Sf,
8119
8119
  {
8120
8120
  "data-slot": "select-scroll-up-button",
8121
- className: z(
8121
+ className: F(
8122
8122
  "flex cursor-default items-center justify-center py-1",
8123
8123
  e
8124
8124
  ),
@@ -8135,7 +8135,7 @@ function Tf({
8135
8135
  Cf,
8136
8136
  {
8137
8137
  "data-slot": "select-scroll-down-button",
8138
- className: z(
8138
+ className: F(
8139
8139
  "flex cursor-default items-center justify-center py-1",
8140
8140
  e
8141
8141
  ),
@@ -8144,7 +8144,7 @@ function Tf({
8144
8144
  }
8145
8145
  );
8146
8146
  }
8147
- var cr = "Popover", [bs, pm] = Ue(cr, [
8147
+ var cr = "Popover", [bs, hm] = Ue(cr, [
8148
8148
  lt
8149
8149
  ]), kt = lt(), [Of, Me] = bs(cr), ys = (e) => {
8150
8150
  const {
@@ -8378,7 +8378,7 @@ function Kf({
8378
8378
  "data-slot": "popover-content",
8379
8379
  align: t,
8380
8380
  sideOffset: r,
8381
- className: z(
8381
+ className: F(
8382
8382
  "bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
8383
8383
  e
8384
8384
  ),
@@ -8424,7 +8424,7 @@ var gt = '[cmdk-group=""]', Er = '[cmdk-group-items=""]', op = '[cmdk-group-head
8424
8424
  }
8425
8425
  if (_(7, () => {
8426
8426
  var W;
8427
- r.current.selectedItemId = (W = F()) == null ? void 0 : W.id, R.emit();
8427
+ r.current.selectedItemId = (W = V()) == null ? void 0 : W.id, R.emit();
8428
8428
  }), j || _(5, Q), ((H = i.current) == null ? void 0 : H.value) !== void 0) {
8429
8429
  let W = T ?? "";
8430
8430
  (D = (A = i.current).onValueChange) == null || D.call(A, W);
@@ -8444,7 +8444,7 @@ var gt = '[cmdk-group=""]', Er = '[cmdk-group-items=""]', op = '[cmdk-group-head
8444
8444
  q(), Y(), r.current.value || J(), R.emit();
8445
8445
  }), () => {
8446
8446
  a.current.delete(S), n.current.delete(S), r.current.filtered.items.delete(S);
8447
- let j = F();
8447
+ let j = V();
8448
8448
  _(4, () => {
8449
8449
  q(), (j == null ? void 0 : j.getAttribute("id")) === S && J(), R.emit();
8450
8450
  });
@@ -8504,10 +8504,10 @@ var gt = '[cmdk-group=""]', Er = '[cmdk-group-items=""]', op = '[cmdk-group-head
8504
8504
  }
8505
8505
  function Q() {
8506
8506
  var S, T, j;
8507
- let O = F();
8507
+ let O = V();
8508
8508
  O && (((S = O.parentElement) == null ? void 0 : S.firstChild) === O && ((j = (T = O.closest(gt)) == null ? void 0 : T.querySelector(op)) == null || j.scrollIntoView({ block: "nearest" })), O.scrollIntoView({ block: "nearest" }));
8509
8509
  }
8510
- function F() {
8510
+ function V() {
8511
8511
  var S;
8512
8512
  return (S = k.current) == null ? void 0 : S.querySelector(`${_s}[aria-selected="true"]`);
8513
8513
  }
@@ -8519,20 +8519,20 @@ var gt = '[cmdk-group=""]', Er = '[cmdk-group-items=""]', op = '[cmdk-group-head
8519
8519
  let T = K()[S];
8520
8520
  T && R.setState("value", T.getAttribute(qe));
8521
8521
  }
8522
- function V(S) {
8522
+ function z(S) {
8523
8523
  var T;
8524
- let j = F(), O = K(), H = O.findIndex((D) => D === j), A = O[H + S];
8524
+ let j = V(), O = K(), H = O.findIndex((D) => D === j), A = O[H + S];
8525
8525
  (T = i.current) != null && T.loop && (A = H + S < 0 ? O[O.length - 1] : H + S === O.length ? O[0] : O[H + S]), A && R.setState("value", A.getAttribute(qe));
8526
8526
  }
8527
8527
  function P(S) {
8528
- let T = F(), j = T == null ? void 0 : T.closest(gt), O;
8528
+ let T = V(), j = T == null ? void 0 : T.closest(gt), O;
8529
8529
  for (; j && !O; ) j = S > 0 ? mp(j, gt) : hp(j, gt), O = j == null ? void 0 : j.querySelector(ao);
8530
- O ? R.setState("value", O.getAttribute(qe)) : V(S);
8530
+ O ? R.setState("value", O.getAttribute(qe)) : z(S);
8531
8531
  }
8532
8532
  let ee = () => $(K().length - 1), C = (S) => {
8533
- S.preventDefault(), S.metaKey ? ee() : S.altKey ? P(1) : V(1);
8533
+ S.preventDefault(), S.metaKey ? ee() : S.altKey ? P(1) : z(1);
8534
8534
  }, L = (S) => {
8535
- S.preventDefault(), S.metaKey ? $(0) : S.altKey ? P(-1) : V(-1);
8535
+ S.preventDefault(), S.metaKey ? $(0) : S.altKey ? P(-1) : z(-1);
8536
8536
  };
8537
8537
  return l.createElement(U.div, { ref: t, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (S) => {
8538
8538
  var T;
@@ -8567,7 +8567,7 @@ var gt = '[cmdk-group=""]', Er = '[cmdk-group-items=""]', op = '[cmdk-group-head
8567
8567
  }
8568
8568
  case "Enter": {
8569
8569
  S.preventDefault();
8570
- let O = F();
8570
+ let O = V();
8571
8571
  if (O) {
8572
8572
  let H = new Event(Ur);
8573
8573
  O.dispatchEvent(H);
@@ -8700,7 +8700,7 @@ function bp({
8700
8700
  Pt,
8701
8701
  {
8702
8702
  "data-slot": "command",
8703
- className: z(
8703
+ className: F(
8704
8704
  "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
8705
8705
  e
8706
8706
  ),
@@ -8723,7 +8723,7 @@ function yp({
8723
8723
  Pt.Input,
8724
8724
  {
8725
8725
  "data-slot": "command-input",
8726
- className: z(
8726
+ className: F(
8727
8727
  "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
8728
8728
  e
8729
8729
  ),
@@ -8754,7 +8754,7 @@ function so({
8754
8754
  Pt.Group,
8755
8755
  {
8756
8756
  "data-slot": "command-group",
8757
- className: z(
8757
+ className: F(
8758
8758
  "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
8759
8759
  e
8760
8760
  ),
@@ -8770,7 +8770,7 @@ function io({
8770
8770
  Pt.Item,
8771
8771
  {
8772
8772
  "data-slot": "command-item",
8773
- className: z(
8773
+ className: F(
8774
8774
  "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
8775
8775
  e
8776
8776
  ),
@@ -8781,7 +8781,7 @@ function io({
8781
8781
  function Gr(e) {
8782
8782
  return e.length > 0 && e[0].kind === "group";
8783
8783
  }
8784
- function mm(e) {
8784
+ function gm(e) {
8785
8785
  return e.multiple ? /* @__PURE__ */ d.jsx(Cp, { ...e }) : /* @__PURE__ */ d.jsx(Sp, { ...e });
8786
8786
  }
8787
8787
  const Sp = ({
@@ -8808,7 +8808,7 @@ const Sp = ({
8808
8808
  Pf,
8809
8809
  {
8810
8810
  "aria-invalid": !!n,
8811
- className: z(
8811
+ className: F(
8812
8812
  "flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",
8813
8813
  r && "cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",
8814
8814
  n ? "border-primary-1" : "border-neutral-black-4"
@@ -8865,7 +8865,7 @@ const Sp = ({
8865
8865
  disabled: r,
8866
8866
  "aria-haspopup": "listbox",
8867
8867
  "aria-expanded": i,
8868
- className: z(
8868
+ className: F(
8869
8869
  "flex w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm",
8870
8870
  r && "cursor-not-allowed bg-neutral-black-4 border border-neutral-black-4 rounded",
8871
8871
  n ? "border-primary-1" : "border-neutral-black-4"
@@ -8956,7 +8956,7 @@ const Sp = ({
8956
8956
  variant: "widget-1"
8957
8957
  }
8958
8958
  });
8959
- function hm({
8959
+ function vm({
8960
8960
  className: e,
8961
8961
  variant: t,
8962
8962
  asChild: r = !1,
@@ -8968,7 +8968,7 @@ function hm({
8968
8968
  a,
8969
8969
  {
8970
8970
  "data-slot": "card",
8971
- className: z(Ep({ variant: t }), e),
8971
+ className: F(Ep({ variant: t }), e),
8972
8972
  ...o,
8973
8973
  children: n
8974
8974
  }
@@ -9101,7 +9101,7 @@ function Np() {
9101
9101
  return () => {
9102
9102
  };
9103
9103
  }
9104
- var yn = "Avatar", [_p, gm] = Ue(yn), [Tp, Ls] = _p(yn), $s = l.forwardRef(
9104
+ var yn = "Avatar", [_p, xm] = Ue(yn), [Tp, Ls] = _p(yn), $s = l.forwardRef(
9105
9105
  (e, t) => {
9106
9106
  const { __scopeAvatar: r, ...n } = e, [o, a] = l.useState("idle");
9107
9107
  return /* @__PURE__ */ d.jsx(
@@ -9245,7 +9245,7 @@ const Ip = de(
9245
9245
  }
9246
9246
  }
9247
9247
  );
9248
- function vm(e) {
9248
+ function bm(e) {
9249
9249
  const {
9250
9250
  type: t,
9251
9251
  size: r = "md",
@@ -9259,7 +9259,7 @@ function vm(e) {
9259
9259
  return /* @__PURE__ */ d.jsxs(
9260
9260
  jp,
9261
9261
  {
9262
- className: z(Ip({ size: r, progress: s }), i),
9262
+ className: F(Ip({ size: r, progress: s }), i),
9263
9263
  ...c,
9264
9264
  children: [
9265
9265
  t === "picture" && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
@@ -9325,26 +9325,26 @@ function vm(e) {
9325
9325
  }
9326
9326
  );
9327
9327
  }
9328
- function xm({
9328
+ function ym({
9329
9329
  className: e,
9330
9330
  ...t
9331
9331
  }) {
9332
9332
  return /* @__PURE__ */ d.jsx(
9333
9333
  Ws,
9334
9334
  {
9335
- className: z("aspect-square h-full w-full", e),
9335
+ className: F("aspect-square h-full w-full", e),
9336
9336
  ...t
9337
9337
  }
9338
9338
  );
9339
9339
  }
9340
- function bm({
9340
+ function wm({
9341
9341
  className: e,
9342
9342
  ...t
9343
9343
  }) {
9344
9344
  return /* @__PURE__ */ d.jsx(
9345
9345
  Vt,
9346
9346
  {
9347
- className: z(
9347
+ className: F(
9348
9348
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
9349
9349
  e
9350
9350
  ),
@@ -9369,7 +9369,7 @@ function Vp(e) {
9369
9369
  return Fp.includes(e);
9370
9370
  }
9371
9371
  var zp = Hs;
9372
- function ym({
9372
+ function Sm({
9373
9373
  className: e,
9374
9374
  orientation: t = "horizontal",
9375
9375
  decorative: r = !0,
@@ -9394,7 +9394,7 @@ function ym({
9394
9394
  role: "separator",
9395
9395
  decorative: r,
9396
9396
  orientation: t,
9397
- className: z(
9397
+ className: F(
9398
9398
  "bg-neutral-black-4 shrink-0",
9399
9399
  t === "horizontal" ? "w-full" : "h-full",
9400
9400
  a,
@@ -9470,7 +9470,7 @@ const Bp = de("flex flex-col gap-12"), Wp = de("", {
9470
9470
  }
9471
9471
  }
9472
9472
  ), Up = (e, t) => e && !t;
9473
- function wm({
9473
+ function Cm({
9474
9474
  items: e,
9475
9475
  variant: t = "filled",
9476
9476
  className: r
@@ -9478,7 +9478,7 @@ function wm({
9478
9478
  const n = e.findIndex(
9479
9479
  (a) => a.notVisited === !0
9480
9480
  ), o = e.map((a, s) => n !== -1 && s >= n ? { ...a, notVisited: !0 } : a);
9481
- return /* @__PURE__ */ d.jsx("div", { className: z(Bp(), r), "data-testid": "timeline", children: /* @__PURE__ */ d.jsx("div", { className: "flex flex-col", children: o.map((a, s) => {
9481
+ return /* @__PURE__ */ d.jsx("div", { className: F(Bp(), r), "data-testid": "timeline", children: /* @__PURE__ */ d.jsx("div", { className: "flex flex-col", children: o.map((a, s) => {
9482
9482
  const i = s === o.length - 1, c = !!(a.description || a.content), u = Up(i, c), p = a.notVisited || !1, f = o[s + 1], g = (f == null ? void 0 : f.notVisited) || !1, h = t === "icon" && g;
9483
9483
  return /* @__PURE__ */ d.jsxs(
9484
9484
  "div",
@@ -9491,7 +9491,7 @@ function wm({
9491
9491
  "div",
9492
9492
  {
9493
9493
  "data-testid": "timeline-dot",
9494
- className: z(
9494
+ className: F(
9495
9495
  Wp({ variant: t, visited: !p })
9496
9496
  ),
9497
9497
  children: t === "icon" && a.icon && /* @__PURE__ */ d.jsx("div", { className: "flex items-center justify-center w-full h-full", children: a.icon })
@@ -9500,7 +9500,7 @@ function wm({
9500
9500
  /* @__PURE__ */ d.jsx(
9501
9501
  "p",
9502
9502
  {
9503
- className: z(
9503
+ className: F(
9504
9504
  "text-neutral-black-1",
9505
9505
  p && "text-neutral-black-4"
9506
9506
  ),
@@ -9512,7 +9512,7 @@ function wm({
9512
9512
  "div",
9513
9513
  {
9514
9514
  "data-testid": "timeline-connector",
9515
- className: z(
9515
+ className: F(
9516
9516
  Hp({
9517
9517
  hideConnector: u,
9518
9518
  variant: t,
@@ -9524,7 +9524,7 @@ function wm({
9524
9524
  a.description && /* @__PURE__ */ d.jsx(
9525
9525
  "p",
9526
9526
  {
9527
- className: z(
9527
+ className: F(
9528
9528
  "text-[var(--color-neutral-black-1)] text-sm",
9529
9529
  p && "text-neutral-black-4"
9530
9530
  ),
@@ -9541,7 +9541,7 @@ function wm({
9541
9541
  );
9542
9542
  }) }) });
9543
9543
  }
9544
- const Sm = ({
9544
+ const Em = ({
9545
9545
  variant: e = "icon",
9546
9546
  width: t,
9547
9547
  height: r,
@@ -9566,7 +9566,7 @@ const Sm = ({
9566
9566
  "div",
9567
9567
  {
9568
9568
  "data-testid": "placeholder-wrapper",
9569
- className: z(
9569
+ className: F(
9570
9570
  "flex flex-col items-center justify-center text-neutral-black-2 gap-2 select-none bg-neutral-black-5 rounded-2xl",
9571
9571
  o
9572
9572
  ),
@@ -9575,38 +9575,117 @@ const Sm = ({
9575
9575
  children: s()
9576
9576
  }
9577
9577
  );
9578
- };
9578
+ }, Gp = (e) => e === void 0 || isNaN(e) ? 0 : Math.min(100, Math.max(0, e)), Yp = l.forwardRef(
9579
+ ({
9580
+ variant: e = "linear",
9581
+ value: t = 0,
9582
+ color: r = "var(--color-primary-1)",
9583
+ className: n,
9584
+ ...o
9585
+ }, a) => {
9586
+ const s = Gp(t);
9587
+ if (e === "circular") {
9588
+ const { size: i = 80, thickness: c = 8 } = o, u = (i - c) / 2, p = 2 * Math.PI * u, f = p - s / 100 * p;
9589
+ return /* @__PURE__ */ d.jsx(
9590
+ "div",
9591
+ {
9592
+ ref: a,
9593
+ role: "progressbar",
9594
+ "aria-valuenow": s,
9595
+ "aria-valuemin": 0,
9596
+ "aria-valuemax": 100,
9597
+ className: F("flex flex-col items-center justify-center", n),
9598
+ ...o,
9599
+ children: /* @__PURE__ */ d.jsxs("svg", { width: i, height: i, className: "rotate-[-90deg]", children: [
9600
+ /* @__PURE__ */ d.jsx(
9601
+ "circle",
9602
+ {
9603
+ cx: i / 2,
9604
+ cy: i / 2,
9605
+ r: u,
9606
+ stroke: "var(--color-neutral-black-5)",
9607
+ strokeWidth: c,
9608
+ fill: "transparent"
9609
+ }
9610
+ ),
9611
+ /* @__PURE__ */ d.jsx(
9612
+ "circle",
9613
+ {
9614
+ cx: i / 2,
9615
+ cy: i / 2,
9616
+ r: u,
9617
+ stroke: r,
9618
+ strokeWidth: c,
9619
+ fill: "transparent",
9620
+ strokeDasharray: p,
9621
+ strokeDashoffset: f,
9622
+ className: "transition-all duration-700"
9623
+ }
9624
+ )
9625
+ ] })
9626
+ }
9627
+ );
9628
+ }
9629
+ return /* @__PURE__ */ d.jsx(
9630
+ "div",
9631
+ {
9632
+ ref: a,
9633
+ role: "progressbar",
9634
+ "aria-valuenow": s,
9635
+ "aria-valuemin": 0,
9636
+ "aria-valuemax": 100,
9637
+ className: F(
9638
+ "w-full h-2 bg-[var(--color-neutral-black-5)] overflow-hidden",
9639
+ n
9640
+ ),
9641
+ ...o,
9642
+ children: /* @__PURE__ */ d.jsx(
9643
+ "div",
9644
+ {
9645
+ className: "h-full transition-all duration-300",
9646
+ style: {
9647
+ width: `${s}%`,
9648
+ backgroundColor: r
9649
+ }
9650
+ }
9651
+ )
9652
+ }
9653
+ );
9654
+ }
9655
+ );
9656
+ Yp.displayName = "ProgressIndicator";
9579
9657
  export {
9580
- vm as Avatar,
9581
- bm as AvatarFallback,
9582
- xm as AvatarImage,
9658
+ bm as Avatar,
9659
+ wm as AvatarFallback,
9660
+ ym as AvatarImage,
9583
9661
  Yc as Badge,
9584
- Kp as Button,
9585
- hm as Card,
9586
- Zp as Dialog,
9587
- Qp as DialogClose,
9588
- em as DialogContent,
9589
- om as DialogDescription,
9590
- rm as DialogFooter,
9591
- tm as DialogHeader,
9662
+ qp as Button,
9663
+ vm as Card,
9664
+ Qp as Dialog,
9665
+ tm as DialogClose,
9666
+ rm as DialogContent,
9667
+ sm as DialogDescription,
9668
+ om as DialogFooter,
9669
+ nm as DialogHeader,
9592
9670
  Uc as DialogOverlay,
9593
9671
  Hc as DialogPortal,
9594
- nm as DialogTitle,
9595
- Jp as DialogTrigger,
9596
- ym as Divider,
9597
- cm as EmailInput,
9672
+ am as DialogTitle,
9673
+ em as DialogTrigger,
9674
+ Sm as Divider,
9675
+ dm as EmailInput,
9598
9676
  Cp as MultiSelect,
9599
- um as PasswordInput,
9600
- Sm as Placeholder,
9601
- dm as SearchInput,
9602
- mm as SelectOption,
9677
+ fm as PasswordInput,
9678
+ Em as Placeholder,
9679
+ Yp as ProgressIndicator,
9680
+ pm as SearchInput,
9681
+ gm as SelectOption,
9603
9682
  Sp as SingleSelect,
9604
9683
  Gi as StatefulToggle,
9605
- wm as Timeline,
9684
+ Cm as Timeline,
9606
9685
  Ui as Toggle,
9607
- sm as Tooltip,
9608
- lm as TooltipContent,
9686
+ lm as Tooltip,
9687
+ um as TooltipContent,
9609
9688
  Dd as TooltipProvider,
9610
- im as TooltipTrigger,
9611
- z as cn
9689
+ cm as TooltipTrigger,
9690
+ F as cn
9612
9691
  };