@harnessio/ui 0.5.9 → 0.5.10

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.
@@ -4,7 +4,7 @@ var de = (e, t, n) => H$(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { c as Dt, T as O4, R as xv, D as Lv, a as Mv, u as wd, C as ig, b as D4, B as Je, I as me, P as kv, d as w4, O as og, e as Pv, S as Xi, f as Y$, L as ks, g as z$, h as V$, i as Ts, j as yt, k as Fn, l as Xu, m as Or, n as xd, o as Fv, p as $a, q as Dn, r as Ar, s as mt, t as Dr, v as sg, A as Uv, w as Bv, x as mi, y as x4, z as L4, E as q$, F as M4, G as k4, H as P4, J as F4, K as U4, M as B4, N as G4, Q as ci, U as st, V as vs, W as ji, X as Ld, _ as Ve, Y as Rn, Z as H4, $ as Ra, a0 as Fa, a1 as $$, a2 as lg, a3 as W$, a4 as kl, a5 as Y4, a6 as K$, a7 as Q$, a8 as X$, a9 as j$, aa as Z$, ab as J$, ac as eW, ad as tW, ae as nW, af as rW, ag as aW } from "./index-DhFGPGOA.js";
5
5
  import { jsx as g, jsxs as G, Fragment as ut } from "react/jsx-runtime";
6
6
  import * as h from "react";
7
- import se, { forwardRef as ge, useMemo as xe, useLayoutEffect as uc, useEffect as ve, createContext as Bt, useContext as dt, useRef as Le, useCallback as Pe, Children as dc, useState as Te, cloneElement as Oo, memo as Qa, useReducer as iW, isValidElement as aa, createElement as oW, Fragment as Vi, useImperativeHandle as Gv } from "react";
7
+ import se, { forwardRef as ge, useMemo as xe, useLayoutEffect as uc, useEffect as be, createContext as Bt, useContext as dt, useRef as Le, useCallback as Pe, Children as dc, useState as ve, cloneElement as Oo, memo as Qa, useReducer as iW, isValidElement as aa, createElement as oW, Fragment as Vi, useImperativeHandle as Gv } from "react";
8
8
  import { c as $, g as Md, f as Pl, a as sW, d as el, I as lW, Z as B2, b as cW, e as G2 } from "./utils-DRBOvPmN.js";
9
9
  import { t as Mt, c as sn, g as Ps, a as Kl, m as uW, b as Hv, e as Yv, d as dW, f as pW, h as mW, u as Fs, i as _W, w as vT, j as gW, k as fW, l as wm, n as CT, o as EW, p as cg, q as ju, r as SW, s as hW, L as H2, v as nE, x as bW, y as TW } from "./textarea-utils-uuMesRro.js";
10
10
  import { d as zv, u as fr, n as Zu, a as z4, M as Oa, C as V4, b as q4 } from "./use-resize-observer-B-bXbUjU.js";
@@ -352,7 +352,7 @@ function t6() {
352
352
  function qv(e) {
353
353
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
354
354
  }
355
- const sX = 24, lX = typeof window < "u" ? uc : ve;
355
+ const sX = 24, lX = typeof window < "u" ? uc : be;
356
356
  function V2(...e) {
357
357
  return (...t) => {
358
358
  for (let n of e)
@@ -3932,9 +3932,9 @@ const J2 = {
3932
3932
  ...l
3933
3933
  }, c) => {
3934
3934
  const u = Le(null), { portalContainer: d } = wd(), { direction: p, modal: m, hasOpenChild: _ } = tC(), f = Fs([c, u]), E = Le(_), S = Le(p);
3935
- ve(() => {
3935
+ be(() => {
3936
3936
  E.current = _, S.current = p;
3937
- }, [_, p]), ve(() => {
3937
+ }, [_, p]), be(() => {
3938
3938
  if (!u.current) return;
3939
3939
  const R = u.current, y = () => {
3940
3940
  const x = E.current, w = S.current;
@@ -4270,15 +4270,19 @@ const eZ = `[data-vaul-drawer] {
4270
4270
  onOpenChange: r,
4271
4271
  ...a
4272
4272
  }) => {
4273
- const { portalContainer: i } = wd(), [o, s] = Te(!1), [l, c] = Te(!1), { isParentOpen: u, onChildOpenChange: d } = tC(), p = u;
4274
- ve(() => {
4273
+ const { portalContainer: i } = wd(), [o, s] = ve(!1), [l, c] = ve(!1), { isParentOpen: u, onChildOpenChange: d } = tC(), p = u;
4274
+ be(() => {
4275
4275
  if (!i || i.querySelector("#vaul-style")) return;
4276
4276
  const b = document.createElement("style");
4277
4277
  b.setAttribute("id", "vaul-style"), b.textContent = eZ, i == null || i.appendChild(b);
4278
4278
  }, [i]);
4279
4279
  const m = Pe((b) => {
4280
4280
  s(b);
4281
- }, []), _ = Pe(
4281
+ }, []);
4282
+ be(() => {
4283
+ t !== void 0 && p && d && d(t);
4284
+ }, [t, p, d]);
4285
+ const _ = Pe(
4282
4286
  (b) => {
4283
4287
  c(b), p && d && d(b), r == null || r(b);
4284
4288
  },
@@ -4423,7 +4427,7 @@ const tZ = Ir.Close, Fr = {
4423
4427
  title: u,
4424
4428
  ...d
4425
4429
  }, p) => {
4426
- const [m, _] = Te(""), f = nZ({ as: c, variant: a, asChild: i }), E = !c && !!(a != null && a.startsWith("heading")), S = s ?? kT[a ?? "body-normal"].color, b = Pe(
4430
+ const [m, _] = ve(""), f = nZ({ as: c, variant: a, asChild: i }), E = !c && !!(a != null && a.startsWith("heading")), S = s ?? kT[a ?? "body-normal"].color, b = Pe(
4427
4431
  (N) => {
4428
4432
  N && (n || r) && _(N.innerText || "");
4429
4433
  },
@@ -4443,7 +4447,7 @@ const tZ = Ir.Close, Fr = {
4443
4447
  }
4444
4448
  );
4445
4449
  L6.displayName = "Text";
4446
- const be = L6, rZ = Dt("mt-[var(--cn-spacing-4)]", {
4450
+ const Te = L6, rZ = Dt("mt-[var(--cn-spacing-4)]", {
4447
4451
  variants: {
4448
4452
  size: {
4449
4453
  1: "mt-[var(--cn-spacing-1)]",
@@ -4470,7 +4474,7 @@ const be = L6, rZ = Dt("mt-[var(--cn-spacing-4)]", {
4470
4474
  }), nC = ({ className: e, size: t, ...n }) => /* @__PURE__ */ g("div", { "aria-hidden": !0, className: $(rZ({ size: t, className: e })), ...n });
4471
4475
  nC.displayName = "Spacer";
4472
4476
  function M6({ children: e, className: t }) {
4473
- return /* @__PURE__ */ g(be, { as: "span", className: $("mt-cn-3xs", t), children: e });
4477
+ return /* @__PURE__ */ g(Te, { as: "span", className: $("mt-cn-3xs", t), children: e });
4474
4478
  }
4475
4479
  const PT = ({
4476
4480
  children: e,
@@ -4563,8 +4567,8 @@ const wr = ge(
4563
4567
  wr.displayName = U6.displayName;
4564
4568
  function oZ({ title: e, description: t, className: n, children: r }) {
4565
4569
  return /* @__PURE__ */ G("section", { className: $("grid gap-y-cn-xs", n), children: [
4566
- /* @__PURE__ */ g(be, { as: "h6", color: "foreground-1", children: e }),
4567
- t && /* @__PURE__ */ g(be, { children: t }),
4570
+ /* @__PURE__ */ g(Te, { as: "h6", color: "foreground-1", children: e }),
4571
+ t && /* @__PURE__ */ g(Te, { children: t }),
4568
4572
  r
4569
4573
  ] });
4570
4574
  }
@@ -4577,7 +4581,7 @@ const sZ = {
4577
4581
  };
4578
4582
  function Ju({ children: e, theme: t, className: n }) {
4579
4583
  const r = sZ[t], a = t === fa.ERROR ? "alert" : "status", i = t === fa.ERROR ? "assertive" : "polite";
4580
- return /* @__PURE__ */ g("div", { className: $(r, n), role: a, "aria-live": i, children: /* @__PURE__ */ g(be, { color: "inherit", children: e }) });
4584
+ return /* @__PURE__ */ g("div", { className: $(r, n), role: a, "aria-live": i, children: /* @__PURE__ */ g(Te, { color: "inherit", children: e }) });
4581
4585
  }
4582
4586
  function lZ({ dashed: e, dotted: t, className: n }) {
4583
4587
  return /* @__PURE__ */ g(
@@ -4646,7 +4650,7 @@ const cZ = Dt("cn-textarea", {
4646
4650
  autoResize: T = !1,
4647
4651
  ...v
4648
4652
  }, N) => {
4649
- const R = Le(null), [y, I] = Te(0), x = m === "horizontal", w = n ? "danger" : r ? "warning" : v.theme, A = xe(() => e || `textarea-${Md(10)}`, [e]), M = Pe(
4653
+ const R = Le(null), [y, I] = ve(0), x = m === "horizontal", w = n ? "danger" : r ? "warning" : v.theme, A = xe(() => e || `textarea-${Md(10)}`, [e]), M = Pe(
4650
4654
  (k) => {
4651
4655
  c !== void 0 && I(k.length);
4652
4656
  },
@@ -4659,7 +4663,7 @@ const cZ = Dt("cn-textarea", {
4659
4663
  },
4660
4664
  N
4661
4665
  ]);
4662
- return ve(() => {
4666
+ return be(() => {
4663
4667
  if (b && R.current) {
4664
4668
  const k = setTimeout(() => {
4665
4669
  var V;
@@ -4723,7 +4727,7 @@ const Jt = ge(
4723
4727
  return null;
4724
4728
  const o = e === "danger" || e === "warning", s = e === "danger" ? "xmark-circle" : "warning-triangle";
4725
4729
  return /* @__PURE__ */ G(
4726
- be,
4730
+ Te,
4727
4731
  {
4728
4732
  variant: r,
4729
4733
  color: ((c) => ({
@@ -4825,8 +4829,8 @@ function pZ({
4825
4829
  labelSuffix: V,
4826
4830
  ...U
4827
4831
  }, H) {
4828
- const [q, L] = Te(!1), [ce, W] = Te(n), [O, F] = Te(""), [P, z] = Te([]), [X, ee] = Te(!1), [ne, Q] = Te(b || ""), le = Le(0), { t: ae } = Fn(), _e = D === "horizontal", ie = t !== void 0, Ce = ie ? t : ce, Re = s || ae("component:select.placeholder", "Select an option"), Ne = p ? "danger" : m ? "warning" : U.theme, $e = xe(() => c || `select-${Md(10)}`, [c]);
4829
- ve(() => {
4832
+ const [q, L] = ve(!1), [ce, W] = ve(n), [O, F] = ve(""), [P, z] = ve([]), [X, ee] = ve(!1), [ne, Q] = ve(b || ""), le = Le(0), { t: ae } = Fn(), _e = D === "horizontal", ie = t !== void 0, Ce = ie ? t : ce, Re = s || ae("component:select.placeholder", "Select an option"), Ne = p ? "danger" : m ? "warning" : U.theme, $e = xe(() => c || `select-${Md(10)}`, [c]);
4833
+ be(() => {
4830
4834
  typeof e == "function" ? (ee(!0), e().then((Fe) => {
4831
4835
  z(Fe), ee(!1);
4832
4836
  }).catch(() => {
@@ -4902,7 +4906,7 @@ function pZ({
4902
4906
  (Ke = rt.value ?? rt.label) == null ? void 0 : Ke.toString()
4903
4907
  ) : null;
4904
4908
  }));
4905
- return ve(() => {
4909
+ return be(() => {
4906
4910
  const Fe = zv(() => {
4907
4911
  F(ne);
4908
4912
  }, 300);
@@ -4957,7 +4961,7 @@ function pZ({
4957
4961
  children: [
4958
4962
  /* @__PURE__ */ g(tD, { comp: I, className: "cn-select-prefix" }),
4959
4963
  /* @__PURE__ */ G("div", { className: "cn-select-trigger", children: [
4960
- /* @__PURE__ */ g(be, { color: i ? "disabled" : ot ? "foreground-1" : "foreground-2", truncate: !0, as: "div", children: ot ? ot.label : Re }),
4964
+ /* @__PURE__ */ g(Te, { color: i ? "disabled" : ot ? "foreground-1" : "foreground-2", truncate: !0, as: "div", children: ot ? ot.label : Re }),
4961
4965
  /* @__PURE__ */ g(me, { name: "nav-arrow-down", size: "xs", className: "cn-select-indicator-icon" })
4962
4966
  ] }),
4963
4967
  /* @__PURE__ */ g(tD, { comp: x, className: "cn-select-suffix" })
@@ -5323,7 +5327,7 @@ function iC({
5323
5327
  return /* @__PURE__ */ G(ut, { children: [
5324
5328
  /* @__PURE__ */ G(tt.Horizontal, { align: "center", gap: "xs", children: [
5325
5329
  /* @__PURE__ */ g(ed, { options: v, value: t, onChange: b, size: "sm" }),
5326
- /* @__PURE__ */ g(be, { className: "select-none", children: f("component:pagination.itemsPerPage", "items per page") })
5330
+ /* @__PURE__ */ g(Te, { className: "select-none", children: f("component:pagination.itemsPerPage", "items per page") })
5327
5331
  ] }),
5328
5332
  a && /* @__PURE__ */ g(ra, { orientation: "vertical", className: "h-8" })
5329
5333
  ] });
@@ -5331,8 +5335,8 @@ function iC({
5331
5335
  return /* @__PURE__ */ G(tt.Horizontal, { className: $("mt-cn-xl w-full", _), align: "center", justify: "between", children: [
5332
5336
  /* @__PURE__ */ G(tt.Horizontal, { align: "center", gap: "md", children: [
5333
5337
  T(),
5334
- S && a && /* @__PURE__ */ g(be, { className: "select-none", children: f("component:pagination.pageOf", `Page ${a} of ${S}`, { currentPage: a, totalPages: S }) }),
5335
- !S && a && /* @__PURE__ */ g(be, { className: "select-none", children: f("component:pagination.page", `Page ${a}`, { currentPage: a }) })
5338
+ S && a && /* @__PURE__ */ g(Te, { className: "select-none", children: f("component:pagination.pageOf", `Page ${a} of ${S}`, { currentPage: a, totalPages: S }) }),
5339
+ !S && a && /* @__PURE__ */ g(Te, { className: "select-none", children: f("component:pagination.page", `Page ${a}`, { currentPage: a }) })
5336
5340
  ] }),
5337
5341
  /* @__PURE__ */ g(tt.Horizontal, { className: "ml-auto", gap: "xs", children: !m && S && a ? /* @__PURE__ */ G(ut, { children: [
5338
5342
  /* @__PURE__ */ g(
@@ -6819,13 +6823,13 @@ const SC = ({
6819
6823
  }) => /* @__PURE__ */ G("div", { className: $("cn-dropdown-menu-base-item min-w-0", t), children: [
6820
6824
  e,
6821
6825
  (!!n || !!r) && /* @__PURE__ */ G(tt.Grid, { gapX: "2xs", className: "min-w-0 max-w-full overflow-hidden", children: [
6822
- typeof n == "string" ? /* @__PURE__ */ g(be, { color: "foreground-1", truncate: !0, children: n }) : n,
6823
- typeof r == "string" ? /* @__PURE__ */ g(be, { truncate: !0, children: r }) : r
6826
+ typeof n == "string" ? /* @__PURE__ */ g(Te, { color: "foreground-1", truncate: !0, children: n }) : n,
6827
+ typeof r == "string" ? /* @__PURE__ */ g(Te, { truncate: !0, children: r }) : r
6824
6828
  ] }),
6825
6829
  i && /* @__PURE__ */ g(qn, { ...i }),
6826
6830
  /* @__PURE__ */ G("div", { className: "ml-auto", children: [
6827
- a && /* @__PURE__ */ g(be, { variant: "caption-light", children: a }),
6828
- o && /* @__PURE__ */ g(be, { variant: "caption-light", children: o }),
6831
+ a && /* @__PURE__ */ g(Te, { variant: "caption-light", children: a }),
6832
+ o && /* @__PURE__ */ g(Te, { variant: "caption-light", children: o }),
6829
6833
  s && /* @__PURE__ */ g(me, { name: "check" }),
6830
6834
  l && /* @__PURE__ */ g(me, { name: "nav-arrow-right", size: "xs" })
6831
6835
  ] })
@@ -6985,7 +6989,7 @@ const mF = ge(
6985
6989
  mF.displayName = Yt.spinner;
6986
6990
  const _F = ({ className: e, children: t, ...n }) => {
6987
6991
  const { t: r } = Fn();
6988
- return /* @__PURE__ */ g(be, { className: $("cn-dropdown-menu-no-options", e), color: "foreground-3", ...n, children: t ?? r("component:dropdownMenu.noOptions", "No options available") });
6992
+ return /* @__PURE__ */ g(Te, { className: $("cn-dropdown-menu-no-options", e), color: "foreground-3", ...n, children: t ?? r("component:dropdownMenu.noOptions", "No options available") });
6989
6993
  };
6990
6994
  _F.displayName = Yt.noOptions;
6991
6995
  const gF = ge((e, t) => /* @__PURE__ */ g("div", { ref: t, ...e, children: e.children }));
@@ -7096,7 +7100,7 @@ function fF(e) {
7096
7100
  function gc(e) {
7097
7101
  return e ? _c(e) ? e.document : hC(e) ? bC(e) ? e : Gd(e) || fF(e) ? e.ownerDocument : document : document : document;
7098
7102
  }
7099
- const pi = bg ? uc : ve;
7103
+ const pi = bg ? uc : be;
7100
7104
  function TC(e) {
7101
7105
  const t = Le(e);
7102
7106
  return pi(() => {
@@ -7145,7 +7149,7 @@ function n_(e) {
7145
7149
  }
7146
7150
  function GT(e) {
7147
7151
  const t = Le();
7148
- return ve(() => {
7152
+ return be(() => {
7149
7153
  t.current = e;
7150
7154
  }, [e]), t.current;
7151
7155
  }
@@ -7306,7 +7310,7 @@ function cee(e) {
7306
7310
  }, n);
7307
7311
  }
7308
7312
  function uee() {
7309
- const [e, t] = Te("");
7313
+ const [e, t] = ve("");
7310
7314
  return {
7311
7315
  announce: Pe((r) => {
7312
7316
  r != null && t(r);
@@ -7317,14 +7321,14 @@ function uee() {
7317
7321
  const SF = /* @__PURE__ */ Bt(null);
7318
7322
  function dee(e) {
7319
7323
  const t = dt(SF);
7320
- ve(() => {
7324
+ be(() => {
7321
7325
  if (!t)
7322
7326
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
7323
7327
  return t(e);
7324
7328
  }, [e, t]);
7325
7329
  }
7326
7330
  function pee() {
7327
- const [e] = Te(() => /* @__PURE__ */ new Set()), t = Pe((r) => (e.add(r), () => e.delete(r)), [e]);
7331
+ const [e] = ve(() => /* @__PURE__ */ new Set()), t = Pe((r) => (e.add(r), () => e.delete(r)), [e]);
7328
7332
  return [Pe((r) => {
7329
7333
  let {
7330
7334
  type: a,
@@ -7380,8 +7384,8 @@ function gee(e) {
7380
7384
  const {
7381
7385
  announce: i,
7382
7386
  announcement: o
7383
- } = uee(), s = Yd("DndLiveRegion"), [l, c] = Te(!1);
7384
- if (ve(() => {
7387
+ } = uee(), s = Yd("DndLiveRegion"), [l, c] = ve(!1);
7388
+ if (be(() => {
7385
7389
  c(!0);
7386
7390
  }, []), dee(xe(() => ({
7387
7391
  onDragStart(d) {
@@ -8353,7 +8357,7 @@ function Wee(e) {
8353
8357
  const y = E.current.x * S.current.x, I = E.current.y * S.current.y;
8354
8358
  R.scrollBy(y, I);
8355
8359
  }, []), N = xe(() => s === i_.TreeOrder ? [...c].reverse() : c, [s, c]);
8356
- ve(
8360
+ be(
8357
8361
  () => {
8358
8362
  if (!i || !c.length || !b) {
8359
8363
  f();
@@ -8473,7 +8477,7 @@ function Zee(e, t) {
8473
8477
  dependencies: r,
8474
8478
  config: a
8475
8479
  } = t;
8476
- const [i, o] = Te(null), {
8480
+ const [i, o] = ve(null), {
8477
8481
  frequency: s,
8478
8482
  measure: l,
8479
8483
  strategy: c
@@ -8498,21 +8502,21 @@ function Zee(e, t) {
8498
8502
  }
8499
8503
  return S;
8500
8504
  }, [e, i, n, d, l]);
8501
- return ve(() => {
8505
+ return be(() => {
8502
8506
  u.current = e;
8503
- }, [e]), ve(
8507
+ }, [e]), be(
8504
8508
  () => {
8505
8509
  d || m();
8506
8510
  },
8507
8511
  // eslint-disable-next-line react-hooks/exhaustive-deps
8508
8512
  [n, d]
8509
- ), ve(
8513
+ ), be(
8510
8514
  () => {
8511
8515
  i && i.length > 0 && o(null);
8512
8516
  },
8513
8517
  //eslint-disable-next-line react-hooks/exhaustive-deps
8514
8518
  [JSON.stringify(i)]
8515
- ), ve(
8519
+ ), be(
8516
8520
  () => {
8517
8521
  d || typeof s != "number" || _.current !== null || (_.current = setTimeout(() => {
8518
8522
  m(), _.current = null;
@@ -8555,7 +8559,7 @@ function ete(e) {
8555
8559
  } = window;
8556
8560
  return new i(r);
8557
8561
  }, [r, n]);
8558
- return ve(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
8562
+ return be(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
8559
8563
  }
8560
8564
  function Tg(e) {
8561
8565
  let {
@@ -8574,14 +8578,14 @@ function Tg(e) {
8574
8578
  // eslint-disable-next-line react-hooks/exhaustive-deps
8575
8579
  [n]
8576
8580
  );
8577
- return ve(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
8581
+ return be(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
8578
8582
  }
8579
8583
  function tte(e) {
8580
8584
  return new NC(fc(e), e);
8581
8585
  }
8582
8586
  function pD(e, t, n) {
8583
8587
  t === void 0 && (t = tte);
8584
- const [r, a] = Te(null);
8588
+ const [r, a] = ve(null);
8585
8589
  function i() {
8586
8590
  a((l) => {
8587
8591
  if (!e)
@@ -8625,16 +8629,16 @@ function nte(e) {
8625
8629
  const mD = [];
8626
8630
  function rte(e) {
8627
8631
  const t = Le(e), n = Hd((r) => e ? r && r !== mD && e && t.current && e.parentNode === t.current.parentNode ? r : RC(e) : mD, [e]);
8628
- return ve(() => {
8632
+ return be(() => {
8629
8633
  t.current = e;
8630
8634
  }, [e]), n;
8631
8635
  }
8632
8636
  function ate(e) {
8633
- const [t, n] = Te(null), r = Le(e), a = Pe((i) => {
8637
+ const [t, n] = ve(null), r = Le(e), a = Pe((i) => {
8634
8638
  const o = pE(i.target);
8635
8639
  o && n((s) => s ? (s.set(o, YT(o)), new Map(s)) : null);
8636
8640
  }, []);
8637
- return ve(() => {
8641
+ return be(() => {
8638
8642
  const i = r.current;
8639
8643
  if (e !== i) {
8640
8644
  o(i);
@@ -8660,19 +8664,19 @@ function ate(e) {
8660
8664
  function _D(e, t) {
8661
8665
  t === void 0 && (t = []);
8662
8666
  const n = Le(null);
8663
- return ve(
8667
+ return be(
8664
8668
  () => {
8665
8669
  n.current = null;
8666
8670
  },
8667
8671
  // eslint-disable-next-line react-hooks/exhaustive-deps
8668
8672
  t
8669
- ), ve(() => {
8673
+ ), be(() => {
8670
8674
  const r = e !== Wa;
8671
8675
  r && !n.current && (n.current = e), !r && n.current && (n.current = null);
8672
8676
  }, [e]), n.current ? r_(e, n.current) : Wa;
8673
8677
  }
8674
8678
  function ite(e) {
8675
- ve(
8679
+ be(
8676
8680
  () => {
8677
8681
  if (!bg)
8678
8682
  return;
@@ -8714,7 +8718,7 @@ function OF(e) {
8714
8718
  const gD = [];
8715
8719
  function ste(e, t) {
8716
8720
  t === void 0 && (t = fc);
8717
- const [n] = e, r = OF(n ? Vr(n) : null), [a, i] = Te(gD);
8721
+ const [n] = e, r = OF(n ? Vr(n) : null), [a, i] = ve(gD);
8718
8722
  function o() {
8719
8723
  i(() => e.length ? e.map((l) => CF(l) ? r : new NC(t(l), l)) : gD);
8720
8724
  }
@@ -8737,7 +8741,7 @@ function cte(e) {
8737
8741
  let {
8738
8742
  measure: t
8739
8743
  } = e;
8740
- const [n, r] = Te(null), a = Pe((c) => {
8744
+ const [n, r] = ve(null), a = Pe((c) => {
8741
8745
  for (const {
8742
8746
  target: u
8743
8747
  } of c)
@@ -8964,7 +8968,7 @@ function fte(e) {
8964
8968
  activatorEvent: r,
8965
8969
  draggableNodes: a
8966
8970
  } = dt(vg), i = GT(r), o = GT(n == null ? void 0 : n.id);
8967
- return ve(() => {
8971
+ return be(() => {
8968
8972
  if (!t && !r && i && o != null) {
8969
8973
  if (!vC(i) || document.activeElement === i.target)
8970
8974
  return;
@@ -9077,7 +9081,7 @@ const IC = /* @__PURE__ */ Qa(function(t) {
9077
9081
  modifiers: m,
9078
9082
  ..._
9079
9083
  } = t;
9080
- const f = iW(gte, void 0, _te), [E, S] = f, [b, T] = pee(), [v, N] = Te(mo.Uninitialized), R = v === mo.Initialized, {
9084
+ const f = iW(gte, void 0, _te), [E, S] = f, [b, T] = pee(), [v, N] = ve(mo.Uninitialized), R = v === mo.Initialized, {
9081
9085
  draggable: {
9082
9086
  active: y,
9083
9087
  nodes: I,
@@ -9097,7 +9101,7 @@ const IC = /* @__PURE__ */ Qa(function(t) {
9097
9101
  data: (Ze = A == null ? void 0 : A.data) != null ? Ze : dte,
9098
9102
  rect: M
9099
9103
  } : null;
9100
- }, [y, A]), B = Le(null), [k, V] = Te(null), [U, H] = Te(null), q = rd(_, Object.values(_)), L = Yd("DndDescribedBy", o), ce = xe(() => w.getEnabled(), [w]), W = Ste(p), {
9104
+ }, [y, A]), B = Le(null), [k, V] = ve(null), [U, H] = ve(null), q = rd(_, Object.values(_)), L = Yd("DndDescribedBy", o), ce = xe(() => w.getEnabled(), [w]), W = Ste(p), {
9101
9105
  droppableRects: O,
9102
9106
  measureDroppableContainers: F,
9103
9107
  measuringScheduled: P
@@ -9151,7 +9155,7 @@ const IC = /* @__PURE__ */ Qa(function(t) {
9151
9155
  droppableRects: O,
9152
9156
  droppableContainers: ce,
9153
9157
  pointerCoordinates: at
9154
- }) : null, Ae = Tee(De, "id"), [it, Fe] = Te(null), ze = Ne ? lt : Ul(lt, oe), gt = Ree(ze, (i = it == null ? void 0 : it.rect) != null ? i : null, Q), rt = Le(null), bt = Pe(
9158
+ }) : null, Ae = Tee(De, "id"), [it, Fe] = ve(null), ze = Ne ? lt : Ul(lt, oe), gt = Ree(ze, (i = it == null ? void 0 : it.rect) != null ? i : null, Q), rt = Le(null), bt = Pe(
9155
9159
  (Ze, nt) => {
9156
9160
  let {
9157
9161
  sensor: J,
@@ -9294,7 +9298,7 @@ const IC = /* @__PURE__ */ Qa(function(t) {
9294
9298
  }, [I, bt]), kt = jee(u, At);
9295
9299
  ite(u), pi(() => {
9296
9300
  Q && v === mo.Initializing && N(mo.Initialized);
9297
- }, [Q, v]), ve(
9301
+ }, [Q, v]), be(
9298
9302
  () => {
9299
9303
  const {
9300
9304
  onDragMove: Ze
@@ -9325,7 +9329,7 @@ const IC = /* @__PURE__ */ Qa(function(t) {
9325
9329
  },
9326
9330
  // eslint-disable-next-line react-hooks/exhaustive-deps
9327
9331
  [re.x, re.y]
9328
- ), ve(
9332
+ ), be(
9329
9333
  () => {
9330
9334
  const {
9331
9335
  active: Ze,
@@ -9545,9 +9549,9 @@ function yte(e) {
9545
9549
  }), v = Pe((I, x) => {
9546
9550
  T && (x && (T.unobserve(x), d.current = !1), I && T.observe(I));
9547
9551
  }, [T]), [N, R] = n_(v), y = rd(t);
9548
- return ve(() => {
9552
+ return be(() => {
9549
9553
  !T || !N.current || (T.disconnect(), d.current = !1, T.observe(N.current));
9550
- }, [N, T]), ve(
9554
+ }, [N, T]), be(
9551
9555
  () => (s({
9552
9556
  type: Vn.RegisterDroppable,
9553
9557
  element: {
@@ -9565,7 +9569,7 @@ function yte(e) {
9565
9569
  })),
9566
9570
  // eslint-disable-next-line react-hooks/exhaustive-deps
9567
9571
  [r]
9568
- ), ve(() => {
9572
+ ), be(() => {
9569
9573
  n !== u.current.disabled && (s({
9570
9574
  type: Vn.SetDroppableDisabled,
9571
9575
  id: r,
@@ -9697,7 +9701,7 @@ function OC(e) {
9697
9701
  } = Cte(), d = Yd(MF, n), p = s.rect !== null, m = xe(() => r.map((R) => typeof R == "object" && "id" in R ? R.id : R), [r]), _ = o != null, f = o ? m.indexOf(o.id) : -1, E = c ? m.indexOf(c.id) : -1, S = Le(m), b = !Ite(m, S.current), T = E !== -1 && f === -1 || b, v = Ote(i);
9698
9702
  pi(() => {
9699
9703
  b && _ && u(m);
9700
- }, [b, m, _, u]), ve(() => {
9704
+ }, [b, m, _, u]), be(() => {
9701
9705
  S.current = m;
9702
9706
  }, [m]);
9703
9707
  const N = xe(
@@ -9757,7 +9761,7 @@ function Fte(e) {
9757
9761
  node: r,
9758
9762
  rect: a
9759
9763
  } = e;
9760
- const [i, o] = Te(null), s = Le(n);
9764
+ const [i, o] = ve(null), s = Le(n);
9761
9765
  return pi(() => {
9762
9766
  if (!t && n !== s.current && r.current) {
9763
9767
  const l = a.current;
@@ -9774,7 +9778,7 @@ function Fte(e) {
9774
9778
  }
9775
9779
  }
9776
9780
  n !== s.current && (s.current = n);
9777
- }, [t, n, r, a]), ve(() => {
9781
+ }, [t, n, r, a]), be(() => {
9778
9782
  i && o(null);
9779
9783
  }, [i]), i;
9780
9784
  }
@@ -9874,9 +9878,9 @@ function DC(e) {
9874
9878
  node: I,
9875
9879
  rect: y
9876
9880
  });
9877
- return ve(() => {
9881
+ return be(() => {
9878
9882
  W && Q.current.newIndex !== ee && (Q.current.newIndex = ee), d !== Q.current.containerId && (Q.current.containerId = d), u !== Q.current.items && (Q.current.items = u);
9879
- }, [W, ee, d, u]), ve(() => {
9883
+ }, [W, ee, d, u]), be(() => {
9880
9884
  if (ne === Q.current.activeId)
9881
9885
  return;
9882
9886
  if (ne && !Q.current.activeId) {
@@ -9961,12 +9965,12 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
9961
9965
  isSubmitting: i,
9962
9966
  submitted: o
9963
9967
  }) => {
9964
- const [s, l] = Te(e), [c, u] = Te(
9968
+ const [s, l] = ve(e), [c, u] = ve(
9965
9969
  Vp(e, t)
9966
- ), [d, p] = Te(!1);
9967
- ve(() => {
9970
+ ), [d, p] = ve(!1);
9971
+ be(() => {
9968
9972
  l(e);
9969
- }, [e]), ve(() => {
9973
+ }, [e]), be(() => {
9970
9974
  u(Vp(e, t));
9971
9975
  }, [t, e]);
9972
9976
  const { handleDragEnd: m, getItemId: _ } = Vv({
@@ -10001,7 +10005,7 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
10001
10005
  /* @__PURE__ */ g(st.Header, { children: /* @__PURE__ */ g(st.Title, { children: "Manage navigation" }) }),
10002
10006
  /* @__PURE__ */ G(st.Body, { children: [
10003
10007
  /* @__PURE__ */ G(tt.Grid, { gapY: "xs", children: [
10004
- /* @__PURE__ */ g(be, { variant: "body-single-line-normal", color: "foreground-3", children: "Pinned" }),
10008
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", color: "foreground-3", children: "Pinned" }),
10005
10009
  s.length ? /* @__PURE__ */ g(
10006
10010
  IC,
10007
10011
  {
@@ -10024,7 +10028,7 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
10024
10028
  className: "w-full grow cursor-not-allowed rounded p-cn-3xs px-0 opacity-55",
10025
10029
  children: [
10026
10030
  /* @__PURE__ */ g(me, { className: "w-3.5", name: "lock", size: "xs" }),
10027
- /* @__PURE__ */ g(be, { children: y.title })
10031
+ /* @__PURE__ */ g(Te, { children: y.title })
10028
10032
  ]
10029
10033
  },
10030
10034
  y.id
@@ -10039,7 +10043,7 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
10039
10043
  children: [
10040
10044
  /* @__PURE__ */ G(Je, { ...x, ...w, variant: "transparent", className: "justify-start", children: [
10041
10045
  /* @__PURE__ */ g(me, { name: "grip-dots", size: "xs" }),
10042
- /* @__PURE__ */ g(be, { color: "inherit", children: y.title })
10046
+ /* @__PURE__ */ g(Te, { color: "inherit", children: y.title })
10043
10047
  ] }),
10044
10048
  /* @__PURE__ */ g(
10045
10049
  Je,
@@ -10061,11 +10065,11 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
10061
10065
  ) }, y.title))
10062
10066
  ] }) })
10063
10067
  }
10064
- ) : /* @__PURE__ */ g(be, { align: "center", className: "mt-cn-md", color: "foreground-3", children: "No pinned items" })
10068
+ ) : /* @__PURE__ */ g(Te, { align: "center", className: "mt-cn-md", color: "foreground-3", children: "No pinned items" })
10065
10069
  ] }),
10066
10070
  c.length > 0 && /* @__PURE__ */ G(tt.Grid, { gapY: "xs", children: [
10067
10071
  /* @__PURE__ */ G(tt.Flex, { align: "center", justify: "between", children: [
10068
- /* @__PURE__ */ g(be, { variant: "body-single-line-normal", color: "foreground-3", as: "span", children: "Recent" }),
10072
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", color: "foreground-3", as: "span", children: "Recent" }),
10069
10073
  /* @__PURE__ */ g(Je, { variant: "link", size: "sm", onClick: E, children: "Clear all" })
10070
10074
  ] }),
10071
10075
  /* @__PURE__ */ g(tt.Flex, { direction: "column", gapY: "4xs", as: "ul", children: c.map((y, I) => /* @__PURE__ */ G(
@@ -10078,7 +10082,7 @@ const Bte = ({ id: e, children: t, tag: n = "div", className: r }) => {
10078
10082
  children: [
10079
10083
  /* @__PURE__ */ G(tt.Flex, { align: "center", gap: "xs", className: "w-full grow", children: [
10080
10084
  /* @__PURE__ */ g(me, { name: "clock", size: "xs" }),
10081
- /* @__PURE__ */ g(be, { color: "foreground-1", children: y.title })
10085
+ /* @__PURE__ */ g(Te, { color: "foreground-1", children: y.title })
10082
10086
  ] }),
10083
10087
  /* @__PURE__ */ g(
10084
10088
  Je,
@@ -10434,8 +10438,8 @@ const ene = Qte, tne = jte, nne = Xte, ZF = ge(
10434
10438
  ...p,
10435
10439
  children: [
10436
10440
  (n || r) && /* @__PURE__ */ G("div", { className: "gap-cn-3xs grid", children: [
10437
- n && /* @__PURE__ */ g(be, { variant: "body-strong", color: "foreground-1", as: "h4", children: n }),
10438
- r && /* @__PURE__ */ g(be, { children: r })
10441
+ n && /* @__PURE__ */ g(Te, { variant: "body-strong", color: "foreground-1", as: "h4", children: n }),
10442
+ r && /* @__PURE__ */ g(Te, { children: r })
10439
10443
  ] }),
10440
10444
  t,
10441
10445
  (a == null ? void 0 : a.text) && /* @__PURE__ */ g(ji, { ...a, children: a.text }),
@@ -10460,8 +10464,8 @@ const rne = ({
10460
10464
  custom: u,
10461
10465
  ...d
10462
10466
  }) => {
10463
- const [p, m] = Te(r || !1), _ = Le(null), f = Le(null), E = Le(null);
10464
- ve(() => () => {
10467
+ const [p, m] = ve(r || !1), _ = Le(null), f = Le(null), E = Le(null);
10468
+ be(() => () => {
10465
10469
  _.current && clearTimeout(_.current), f.current && clearTimeout(f.current);
10466
10470
  }, []);
10467
10471
  const S = n !== void 0 ? n : p, b = (R) => {
@@ -11071,8 +11075,8 @@ const UC = ({
11071
11075
  UC.displayName = "AppSidebarItem";
11072
11076
  const wne = "sidebar:state", xne = 60 * 60 * 24 * 7, bE = 768;
11073
11077
  function Lne() {
11074
- const [e, t] = Te(void 0);
11075
- return ve(() => {
11078
+ const [e, t] = ve(void 0);
11079
+ return be(() => {
11076
11080
  const n = window.matchMedia(`(max-width: ${bE - 1}px)`), r = () => {
11077
11081
  t(window.innerWidth < bE);
11078
11082
  };
@@ -11087,7 +11091,7 @@ function _i() {
11087
11091
  return e;
11088
11092
  }
11089
11093
  const f8 = ge(({ defaultOpen: e = !0, open: t, onOpenChange: n, className: r, children: a, ...i }, o) => {
11090
- const s = Lne(), [l, c] = Te(!1), [u, d] = Te(e), p = t ?? u, m = Pe(
11094
+ const s = Lne(), [l, c] = ve(!1), [u, d] = ve(e), p = t ?? u, m = Pe(
11091
11095
  (S) => {
11092
11096
  const b = typeof S == "function" ? S(p) : S;
11093
11097
  n ? n(b) : d(b), document.cookie = `${wne}=${b}; path=/; max-age=${xne}`;
@@ -11168,7 +11172,7 @@ const E8 = "SidebarMenuSubItem", Mne = (e) => !!e.icon, kne = (e) => !!e.logo, P
11168
11172
  }
11169
11173
  ),
11170
11174
  /* @__PURE__ */ g(
11171
- be,
11175
+ Te,
11172
11176
  {
11173
11177
  variant: "body-single-line-normal",
11174
11178
  color: w ? "foreground-1" : "foreground-2",
@@ -11178,7 +11182,7 @@ const E8 = "SidebarMenuSubItem", Mne = (e) => !!e.icon, kne = (e) => !!e.logo, P
11178
11182
  }
11179
11183
  ),
11180
11184
  w && /* @__PURE__ */ g(
11181
- be,
11185
+ Te,
11182
11186
  {
11183
11187
  variant: "caption-single-line-light",
11184
11188
  color: "foreground-3",
@@ -11320,13 +11324,13 @@ const E8 = "SidebarMenuSubItem", Mne = (e) => !!e.icon, kne = (e) => !!e.logo, P
11320
11324
  S8.displayName = "SidebarItemTrigger";
11321
11325
  const h8 = ge(
11322
11326
  ({ subMenuOpen: e, defaultSubmenuOpen: t, onSubmenuChange: n, ...r }, a) => {
11323
- const { state: i } = _i(), o = e !== void 0, [s, l] = Te(t ?? !1), c = o ? e : s, u = Pe(
11327
+ const { state: i } = _i(), o = e !== void 0, [s, l] = ve(t ?? !1), c = o ? e : s, u = Pe(
11324
11328
  (_) => {
11325
11329
  o ? n == null || n(_) : l(_);
11326
11330
  },
11327
11331
  [o, n]
11328
11332
  ), d = Pe(() => u(!c), [u, c]);
11329
- ve(() => {
11333
+ be(() => {
11330
11334
  i === "collapsed" && c && u(!1);
11331
11335
  }, [i, c, u]);
11332
11336
  const p = () => {
@@ -11362,7 +11366,7 @@ const b8 = ge(
11362
11366
  return /* @__PURE__ */ G(tt.Flex, { children: [
11363
11367
  n && /* @__PURE__ */ g("div", { className: "relative left-cn-4xs top-[10px] h-3 w-0.5 cn-sidebar-submenu-item-active-indicator" }),
11364
11368
  /* @__PURE__ */ g(i, { className: $("w-full cn-sidebar-submenu-item", t), role: "menuitem", ...r, ref: a, children: /* @__PURE__ */ g(
11365
- be,
11369
+ Te,
11366
11370
  {
11367
11371
  className: "cn-sidebar-submenu-item-content",
11368
11372
  variant: "body-single-line-normal",
@@ -11484,7 +11488,7 @@ var GC = Bt({
11484
11488
  function Vne() {
11485
11489
  return dt(yg).visualElement;
11486
11490
  }
11487
- var Wd = Bt(null), Ec = typeof document < "u", o_ = Ec ? uc : ve, WT = { current: null }, R8 = !1;
11491
+ var Wd = Bt(null), Ec = typeof document < "u", o_ = Ec ? uc : be, WT = { current: null }, R8 = !1;
11488
11492
  function qne() {
11489
11493
  if (R8 = !0, !!Ec)
11490
11494
  if (window.matchMedia) {
@@ -11497,7 +11501,7 @@ function qne() {
11497
11501
  }
11498
11502
  function $ne() {
11499
11503
  !R8 && qne();
11500
- var e = Rn(Te(WT.current), 1), t = e[0];
11504
+ var e = Rn(ve(WT.current), 1), t = e[0];
11501
11505
  return t;
11502
11506
  }
11503
11507
  function Wne() {
@@ -11517,7 +11521,7 @@ function Kne(e, t, n, r) {
11517
11521
  var c = l.current;
11518
11522
  return o_(function() {
11519
11523
  c == null || c.syncRender();
11520
- }), ve(function() {
11524
+ }), be(function() {
11521
11525
  var u;
11522
11526
  (u = c == null ? void 0 : c.animationState) === null || u === void 0 || u.animateChanges();
11523
11527
  }), o_(function() {
@@ -12282,7 +12286,7 @@ function Og(e, t, n, r) {
12282
12286
  };
12283
12287
  }
12284
12288
  function ZT(e, t, n, r) {
12285
- ve(function() {
12289
+ be(function() {
12286
12290
  var a = e.current;
12287
12291
  if (n && a)
12288
12292
  return Og(a, t, n, r);
@@ -12409,7 +12413,7 @@ var r7 = function(e, t) {
12409
12413
  return t ? e === t ? !0 : r7(e, t.parentElement) : !1;
12410
12414
  };
12411
12415
  function XC(e) {
12412
- return ve(function() {
12416
+ return be(function() {
12413
12417
  return function() {
12414
12418
  return e();
12415
12419
  };
@@ -12932,7 +12936,7 @@ var cie = {
12932
12936
  };
12933
12937
  function uie(e, t, n, r) {
12934
12938
  var a = r.root, i = r.margin, o = r.amount, s = o === void 0 ? "some" : o, l = r.once;
12935
- ve(function() {
12939
+ be(function() {
12936
12940
  if (e) {
12937
12941
  var c = {
12938
12942
  root: a == null ? void 0 : a.current,
@@ -12952,7 +12956,7 @@ function uie(e, t, n, r) {
12952
12956
  }
12953
12957
  function die(e, t, n, r) {
12954
12958
  var a = r.fallback, i = a === void 0 ? !0 : a;
12955
- ve(function() {
12959
+ be(function() {
12956
12960
  !e || !i || (BC !== "production" && R7(!1, "IntersectionObserver not available on this device. whileInView animations will trigger on mount."), requestAnimationFrame(function() {
12957
12961
  var o;
12958
12962
  t.hasEnteredView = !0;
@@ -12980,7 +12984,7 @@ function y7() {
12980
12984
  if (e === null)
12981
12985
  return [!0, null];
12982
12986
  var t = e.isPresent, n = e.onExitComplete, r = e.register, a = N7();
12983
- ve(function() {
12987
+ be(function() {
12984
12988
  return r(a);
12985
12989
  }, []);
12986
12990
  var i = function() {
@@ -13504,13 +13508,13 @@ function $ie() {
13504
13508
  var Wie = {
13505
13509
  animation: vo(function(e) {
13506
13510
  var t = e.visualElement, n = e.animate;
13507
- t.animationState || (t.animationState = Vie(t)), KC(n) && ve(function() {
13511
+ t.animationState || (t.animationState = Vie(t)), KC(n) && be(function() {
13508
13512
  return n.subscribe(t);
13509
13513
  }, [n]);
13510
13514
  }),
13511
13515
  exit: vo(function(e) {
13512
13516
  var t = e.custom, n = e.visualElement, r = Rn(y7(), 2), a = r[0], i = r[1], o = dt(Wd);
13513
- ve(function() {
13517
+ be(function() {
13514
13518
  var s, l;
13515
13519
  n.isPresent = a;
13516
13520
  var c = (s = n.animationState) === null || s === void 0 ? void 0 : s.setActive(on.Exit, !a, { custom: (l = o == null ? void 0 : o.custom) !== null && l !== void 0 ? l : t });
@@ -13948,9 +13952,9 @@ function poe(e) {
13948
13952
  var t = e.dragControls, n = e.visualElement, r = Kd(function() {
13949
13953
  return new uoe(n);
13950
13954
  });
13951
- ve(function() {
13955
+ be(function() {
13952
13956
  return t && t.subscribe(r);
13953
- }, [r, t]), ve(function() {
13957
+ }, [r, t]), be(function() {
13954
13958
  return r.addListeners();
13955
13959
  }, [r]);
13956
13960
  }
@@ -13963,7 +13967,7 @@ function moe(e) {
13963
13967
  s.current = null, r && r(d, p);
13964
13968
  }
13965
13969
  };
13966
- ve(function() {
13970
+ be(function() {
13967
13971
  s.current !== null && s.current.updateHandlers(c);
13968
13972
  });
13969
13973
  function u(d) {
@@ -15286,7 +15290,7 @@ function K7() {
15286
15290
  }, []), e;
15287
15291
  }
15288
15292
  function mse() {
15289
- var e = K7(), t = Rn(Te(0), 2), n = t[0], r = t[1], a = Pe(function() {
15293
+ var e = K7(), t = Rn(ve(0), 2), n = t[0], r = t[1], a = Pe(function() {
15290
15294
  e.current && r(n + 1);
15291
15295
  }, [n]), i = Pe(function() {
15292
15296
  return Ba.postRender(a);
@@ -15404,7 +15408,7 @@ var Ese = function(e) {
15404
15408
  }));
15405
15409
  };
15406
15410
  const wE = 3, Sse = 61, hse = ({ className: e }) => {
15407
- const { t } = Fn(), { state: n, toggleSidebar: r } = _i(), a = sW("--cn-sidebar-container-full-width", 256), i = n === "expanded", [o, s] = Te(!1), l = Pe(() => {
15411
+ const { t } = Fn(), { state: n, toggleSidebar: r } = _i(), a = sW("--cn-sidebar-container-full-width", 256), i = n === "expanded", [o, s] = ve(!1), l = Pe(() => {
15408
15412
  r();
15409
15413
  }, [r]), c = i ? t("component:sidebar.collapse", "Collapse") : t("component:sidebar.expand", "Expand"), u = i ? a : Sse - wE, d = o ? i ? -1 * wE : wE : 0, p = u + d;
15410
15414
  return /* @__PURE__ */ g(
@@ -15433,7 +15437,7 @@ const wE = 3, Sse = 61, hse = ({ className: e }) => {
15433
15437
  className: "text-cn-sidebar-toggle",
15434
15438
  onClick: l
15435
15439
  }
15436
- ) : /* @__PURE__ */ g(be, { className: "text-cn-sidebar-toggle", children: "|" }) })
15440
+ ) : /* @__PURE__ */ g(Te, { className: "text-cn-sidebar-toggle", children: "|" }) })
15437
15441
  }
15438
15442
  ) })
15439
15443
  }
@@ -15485,7 +15489,7 @@ const X7 = ge(
15485
15489
  );
15486
15490
  X7.displayName = "SidebarTrigger";
15487
15491
  const j7 = ge(({ className: e, onClick: t, open: n, animate: r = !1, ...a }, i) => {
15488
- const { toggleSidebar: o } = _i(), { t: s } = Fn(), [l, c] = Te(!1), u = Pe(
15492
+ const { toggleSidebar: o } = _i(), { t: s } = Fn(), [l, c] = ve(!1), u = Pe(
15489
15493
  (p) => {
15490
15494
  t == null || t(p), o();
15491
15495
  },
@@ -15504,7 +15508,7 @@ const j7 = ge(({ className: e, onClick: t, open: n, animate: r = !1, ...a }, i)
15504
15508
  onMouseEnter: () => c(!0),
15505
15509
  onMouseLeave: () => c(!1),
15506
15510
  ...a,
15507
- children: /* @__PURE__ */ g("div", { className: $("absolute top-[calc(50%-var(--cn-header-height))] right-0", { "translate-x-1/2": l }), children: l ? /* @__PURE__ */ g(me, { name: n ? "nav-arrow-left" : "nav-arrow-right", size: "lg" }) : /* @__PURE__ */ g(be, { className: "cn-pl-1 pl-cn-4xs", children: "|" }) })
15511
+ children: /* @__PURE__ */ g("div", { className: $("absolute top-[calc(50%-var(--cn-header-height))] right-0", { "translate-x-1/2": l }), children: l ? /* @__PURE__ */ g(me, { name: n ? "nav-arrow-left" : "nav-arrow-right", size: "lg" }) : /* @__PURE__ */ g(Te, { className: "cn-pl-1 pl-cn-4xs", children: "|" }) })
15508
15512
  }
15509
15513
  );
15510
15514
  });
@@ -15544,7 +15548,7 @@ const bse = (e) => {
15544
15548
  }, n9 = ge(
15545
15549
  ({ className: e, children: t, label: n, actionIcon: r = "list", onActionClick: a, ...i }, o) => /* @__PURE__ */ G("div", { ref: o, role: "group", className: $("cn-sidebar-group", e), ...i, children: [
15546
15550
  n && /* @__PURE__ */ G(tt.Horizontal, { className: "cn-sidebar-group-header", align: "center", justify: "between", children: [
15547
- /* @__PURE__ */ g(be, { variant: "caption-single-line-normal", as: "h6", className: "cn-sidebar-group-label", color: "foreground-3", children: n }),
15551
+ /* @__PURE__ */ g(Te, { variant: "caption-single-line-normal", as: "h6", className: "cn-sidebar-group-label", color: "foreground-3", children: n }),
15548
15552
  a && /* @__PURE__ */ g(
15549
15553
  Je,
15550
15554
  {
@@ -15663,8 +15667,8 @@ const a9 = 264, i9 = 528, Tse = ({
15663
15667
  /* @__PURE__ */ G(he.Header, { className: "flex items-center gap-x-cn-xs", children: [
15664
15668
  /* @__PURE__ */ g(Zi, { name: o, src: e == null ? void 0 : e.url, size: "lg" }),
15665
15669
  /* @__PURE__ */ G(tt.Grid, { className: "gap-cn-3xs", children: [
15666
- /* @__PURE__ */ g(be, { variant: "body-single-line-strong", color: "foreground-1", truncate: !0, children: o }),
15667
- /* @__PURE__ */ g(be, { variant: "caption-single-line-light", color: "foreground-3", truncate: !0, children: e == null ? void 0 : e.email })
15670
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-strong", color: "foreground-1", truncate: !0, children: o }),
15671
+ /* @__PURE__ */ g(Te, { variant: "caption-single-line-light", color: "foreground-3", truncate: !0, children: e == null ? void 0 : e.email })
15668
15672
  ] })
15669
15673
  ] }),
15670
15674
  /* @__PURE__ */ G(he.Group, { children: [
@@ -15723,10 +15727,10 @@ const a9 = 264, i9 = 528, Tse = ({
15723
15727
  }, ur = (e) => /* @__PURE__ */ g(me, { name: e, size: "xs", className: "text-cn-3" });
15724
15728
  function Cse() {
15725
15729
  var _;
15726
- const { t: e } = Fn(), { isOpen: t, setIsOpen: n } = uR(), [r, a] = Te(""), [i, o] = Te([]), s = i[i.length - 1], l = {
15730
+ const { t: e } = Fn(), { isOpen: t, setIsOpen: n } = uR(), [r, a] = ve(""), [i, o] = ve([]), s = i[i.length - 1], l = {
15727
15731
  placeholder: "What do you need?"
15728
- }, [c, u] = Te(l.placeholder);
15729
- ve(() => {
15732
+ }, [c, u] = ve(l.placeholder);
15733
+ be(() => {
15730
15734
  u(s ? `Search ${s}...` : l.placeholder);
15731
15735
  }, [s]);
15732
15736
  function d(f) {
@@ -15851,10 +15855,10 @@ function Cse() {
15851
15855
  className: "gap-x-cn-xs",
15852
15856
  children: [
15853
15857
  /* @__PURE__ */ g("div", { children: v && v() }),
15854
- /* @__PURE__ */ g(be, { color: "foreground-1", children: S }),
15858
+ /* @__PURE__ */ g(Te, { color: "foreground-1", children: S }),
15855
15859
  N && /* @__PURE__ */ G(Da.Shortcut, { children: [
15856
- /* @__PURE__ */ g(be, { variant: "caption-light", children: N[0] }),
15857
- /* @__PURE__ */ g(be, { variant: "caption-light", children: N[1] })
15860
+ /* @__PURE__ */ g(Te, { variant: "caption-light", children: N[0] }),
15861
+ /* @__PURE__ */ g(Te, { variant: "caption-light", children: N[1] })
15858
15862
  ] })
15859
15863
  ]
15860
15864
  },
@@ -15867,10 +15871,10 @@ function Cse() {
15867
15871
  }
15868
15872
  const s9 = Bt(null);
15869
15873
  function Rse({ children: e }) {
15870
- const [t, n] = Te(!1), [r, a] = Te(""), [i, o] = Te(0), s = () => {
15874
+ const [t, n] = ve(!1), [r, a] = ve(""), [i, o] = ve(0), s = () => {
15871
15875
  n((l) => !l);
15872
15876
  };
15873
- return ve(() => {
15877
+ return be(() => {
15874
15878
  const l = (c) => {
15875
15879
  (c.metaKey || c.ctrlKey) && c.key.toLowerCase() === "k" && (c.preventDefault(), s());
15876
15880
  };
@@ -15899,7 +15903,7 @@ function uR() {
15899
15903
  throw new Error("useSearch must be used within a SearchProvider");
15900
15904
  return e;
15901
15905
  }
15902
- const dR = ge(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ g(be, { ref: r, variant: "caption-light", className: $("cn-shortcut", t), ...n, children: e }));
15906
+ const dR = ge(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ g(Te, { ref: r, variant: "caption-light", className: $("cn-shortcut", t), ...n, children: e }));
15903
15907
  dR.displayName = "Shortcut";
15904
15908
  function Nse() {
15905
15909
  const { t: e } = Fn(), t = uR();
@@ -15949,8 +15953,8 @@ const yse = ({
15949
15953
  !!e && /* @__PURE__ */ g(Ld, { name: e, size: t, themeDependent: !0 }),
15950
15954
  /* @__PURE__ */ G(tt.Vertical, { gap: "xl", align: "center", justify: "center", children: [
15951
15955
  /* @__PURE__ */ G(tt.Vertical, { gap: "xs", align: "center", justify: "center", className: s, children: [
15952
- /* @__PURE__ */ g(be, { variant: "heading-section", align: "center", children: n }),
15953
- !!r && r.map((_, f) => /* @__PURE__ */ g(be, { align: "center", children: _ }, f))
15956
+ /* @__PURE__ */ g(Te, { variant: "heading-section", align: "center", children: n }),
15957
+ !!r && r.map((_, f) => /* @__PURE__ */ g(Te, { align: "center", children: _ }, f))
15954
15958
  ] }),
15955
15959
  (!!a || !!i || !!c || !!u) && /* @__PURE__ */ G(tt.Horizontal, { gap: "sm", children: [
15956
15960
  a && (a.to ? /* @__PURE__ */ g(Je, { asChild: !0, ...ci(a, ["to", "label", "icon"]), children: /* @__PURE__ */ G(d, { to: a.to, children: [
@@ -16168,10 +16172,10 @@ const ww = Dt("cn-tabs-list", {
16168
16172
  defaultValue: n,
16169
16173
  onValueChange: r
16170
16174
  }) => {
16171
- const [a, i] = Te(t ?? n), o = (s) => {
16175
+ const [a, i] = ve(t ?? n), o = (s) => {
16172
16176
  r == null || r(s), i(s);
16173
16177
  };
16174
- return ve(() => {
16178
+ return be(() => {
16175
16179
  t !== void 0 && i(t);
16176
16180
  }, [t]), { activeTabValue: a, handleValueChange: o };
16177
16181
  }, wse = ({ children: e, onValueChange: t, value: n, defaultValue: r, className: a }) => {
@@ -16195,7 +16199,7 @@ const ww = Dt("cn-tabs-list", {
16195
16199
  variant: "underlined"
16196
16200
  }), v9 = ge(
16197
16201
  ({ className: e, children: t, variant: n, activeClassName: r, ...a }, i) => {
16198
- const o = Le(null), s = Le(null), { type: l, activeTabValue: c } = dt(ep), [u, d] = Te(!1), [p, m] = Te(!1), [_, f] = Te(!1), E = Fs([
16202
+ const o = Le(null), s = Le(null), { type: l, activeTabValue: c } = dt(ep), [u, d] = ve(!1), [p, m] = ve(!1), [_, f] = ve(!1), E = Fs([
16199
16203
  (y) => {
16200
16204
  y && (o.current = y);
16201
16205
  },
@@ -16221,9 +16225,9 @@ const ww = Dt("cn-tabs-list", {
16221
16225
  y.scrollTo({ left: D, behavior: "smooth" });
16222
16226
  }
16223
16227
  });
16224
- ve(() => {
16228
+ be(() => {
16225
16229
  T.current();
16226
- }, [c]), ve(() => {
16230
+ }, [c]), be(() => {
16227
16231
  const y = s.current, I = o.current;
16228
16232
  if (!y || !I) return;
16229
16233
  S.current(), b.current(), T.current();
@@ -16841,7 +16845,7 @@ var Pse = kse();
16841
16845
  const Fse = /* @__PURE__ */ ko(Pse), Use = "w-full text-cn-1", Bse = 50, Gse = (e) => {
16842
16846
  let t = 0;
16843
16847
  const n = e.highlight((r, a) => /* @__PURE__ */ g("mark", { children: r }, "m-" + a)).filter((r) => typeof r != "string" || r.length > 0).map((r) => typeof r == "string" ? /* @__PURE__ */ g("span", { children: r }, "s-" + t++) : r);
16844
- return /* @__PURE__ */ g(be, { className: $(Use, "break-words"), children: n });
16848
+ return /* @__PURE__ */ g(Te, { className: $(Use, "break-words"), children: n });
16845
16849
  }, Hse = (e) => typeof e == "string" ? { label: e, value: e } : e, Yse = ({
16846
16850
  navigateToFile: e,
16847
16851
  filesList: t,
@@ -16850,7 +16854,7 @@ const Fse = /* @__PURE__ */ ko(Pse), Use = "w-full text-cn-1", Bse = 50, Gse = (
16850
16854
  onSearch: a,
16851
16855
  contentClassName: i
16852
16856
  }) => {
16853
- const [o, s] = Te(!1), [l, c] = Te([]), [u, d] = Te(""), { t: p } = Fn(), { searchInputRef: m, handleSearchKeyDown: _, getItemProps: f } = Bd({
16857
+ const [o, s] = ve(!1), [l, c] = ve([]), [u, d] = ve(""), { t: p } = Fn(), { searchInputRef: m, handleSearchKeyDown: _, getItemProps: f } = Bd({
16854
16858
  onFirstItemKeyDown: () => s(!0),
16855
16859
  onLastItemKeyDown: () => s(!0),
16856
16860
  itemsLength: l.length
@@ -16865,7 +16869,7 @@ const Fse = /* @__PURE__ */ ko(Pse), Use = "w-full text-cn-1", Bse = 50, Gse = (
16865
16869
  },
16866
16870
  [_, m, d]
16867
16871
  );
16868
- ve(() => {
16872
+ be(() => {
16869
16873
  if (!t || !u) {
16870
16874
  c([]);
16871
16875
  return;
@@ -16955,7 +16959,7 @@ const Fse = /* @__PURE__ */ ko(Pse), Use = "w-full text-cn-1", Bse = 50, Gse = (
16955
16959
  size: a,
16956
16960
  buttonsProps: [
16957
16961
  {
16958
- children: /* @__PURE__ */ g(be, { className: "font-body-code", color: "inherit", children: e.substring(0, 6) }),
16962
+ children: /* @__PURE__ */ g(Te, { className: "font-body-code", color: "inherit", children: e.substring(0, 6) }),
16959
16963
  onClick: l,
16960
16964
  className: "font-body-code"
16961
16965
  },
@@ -17534,7 +17538,7 @@ function ole() {
17534
17538
  }
17535
17539
  var sle = ole();
17536
17540
  const oU = /* @__PURE__ */ ko(sle), Fg = ({ onClick: e, copyData: t, color: n, iconSize: r }) => {
17537
- const [a, i] = Te(!1), o = (u) => {
17541
+ const [a, i] = ve(!1), o = (u) => {
17538
17542
  u.stopPropagation(), u.preventDefault(), (async () => {
17539
17543
  try {
17540
17544
  const p = typeof t == "function" ? t() : t;
@@ -17547,7 +17551,7 @@ const oU = /* @__PURE__ */ ko(sle), Fg = ({ onClick: e, copyData: t, color: n, i
17547
17551
  }
17548
17552
  })(), e == null || e(u);
17549
17553
  };
17550
- return ve(() => {
17554
+ return be(() => {
17551
17555
  let u;
17552
17556
  return a && (u = window.setTimeout(() => i(!1), 1e3)), () => {
17553
17557
  clearTimeout(u);
@@ -69510,7 +69514,7 @@ const k1 = (e) => {
69510
69514
  });
69511
69515
  }, ux = (e) => {
69512
69516
  const t = Le(e);
69513
- return ve(() => {
69517
+ return be(() => {
69514
69518
  t.current = e;
69515
69519
  }, [e]), t.current;
69516
69520
  }, w_e = (e, t, n, r, a = !0, i = !1, o = !0, s, l = void 0) => {
@@ -69530,7 +69534,7 @@ const k1 = (e) => {
69530
69534
  D !== y && (k.run(), A());
69531
69535
  }, [k, D, y]), xe(() => {
69532
69536
  B !== I && (k.run(), A());
69533
- }, [k, B, I]), process.env.NODE_ENV === "development" && (k._devSelector = y, k._devCompare = I, k._devActions = l, k._devWithDeep = v, k._devWithStable = N, k._devType = T, k._devState = n, k._devResult = x.current), ve(() => (k.setActive(!0), () => {
69537
+ }, [k, B, I]), process.env.NODE_ENV === "development" && (k._devSelector = y, k._devCompare = I, k._devActions = l, k._devWithDeep = v, k._devWithStable = N, k._devType = T, k._devState = n, k._devResult = x.current), be(() => (k.setActive(!0), () => {
69534
69538
  process.env.NODE_ENV === "development" ? k.setActive(!1) : k.stop();
69535
69539
  }), [k]), x.current;
69536
69540
  }
@@ -69640,15 +69644,15 @@ var ia;
69640
69644
  e[e.SplitGitHub = 1] = "SplitGitHub", e[e.SplitGitLab = 2] = "SplitGitLab", e[e.Split = 3] = "Split", e[e.Unified = 4] = "Unified";
69641
69645
  })(ia || (ia = {}));
69642
69646
  const V_e = () => {
69643
- const [e, t] = Te(!1);
69644
- return ve(() => {
69647
+ const [e, t] = ve(!1);
69648
+ return be(() => {
69645
69649
  t(!0);
69646
69650
  }, []), e;
69647
69651
  }, q_e = (e, t) => {
69648
69652
  const n = Le(e);
69649
- n.current = e, ve(() => n.current, t);
69650
- }, $_e = typeof window < "u", W_e = $_e ? uc : ve, FR = ({ text: e, font: t }) => {
69651
- const [n, r] = Te(() => {
69653
+ n.current = e, be(() => n.current, t);
69654
+ }, $_e = typeof window < "u", W_e = $_e ? uc : be, FR = ({ text: e, font: t }) => {
69655
+ const [n, r] = ve(() => {
69652
69656
  const a = parseInt(t.fontSize);
69653
69657
  let i = 6;
69654
69658
  return i += a > 10 ? (a - 10) * 0.6 : 0, i * e.length;
@@ -69885,8 +69889,8 @@ const to = () => dt(Yg), j_e = ({ index: e, diffFile: t, lineNumber: n, side: r,
69885
69889
  const s = (r === ye.old ? t.getSplitLeftLine : t.getSplitRightLine)(e);
69886
69890
  return s != null && s.isHidden ? null : h.createElement(j_e, { index: e, diffFile: t, lineNumber: n, side: r, enableAddWidget: a, enableHighlight: i });
69887
69891
  }, zg = ({ selector: e, enable: t }) => {
69888
- const [n, r] = Te(0), { useDiffContext: a } = wn(), { id: i, mounted: o } = a.useShallowStableSelector((s) => ({ id: s.id, mounted: s.mounted }));
69889
- return ve(() => {
69892
+ const [n, r] = ve(0), { useDiffContext: a } = wn(), { id: i, mounted: o } = a.useShallowStableSelector((s) => ({ id: s.id, mounted: s.mounted }));
69893
+ return be(() => {
69890
69894
  if (t) {
69891
69895
  const s = document.querySelector(`#diff-root${i}`), l = s == null ? void 0 : s.querySelector(e);
69892
69896
  if (!l)
@@ -69910,7 +69914,7 @@ const to = () => dt(Yg), j_e = ({ index: e, diffFile: t, lineNumber: n, side: r,
69910
69914
  }, [e, t, i, o]), n;
69911
69915
  }, Vg = ({ selector: e, wrapper: t, side: n, enable: r }) => {
69912
69916
  const { useDiffContext: a } = wn(), { id: i, mounted: o } = a.useShallowStableSelector((s) => ({ id: s.id, mounted: s.mounted }));
69913
- ve(() => {
69917
+ be(() => {
69914
69918
  if (r) {
69915
69919
  const s = document.querySelector(`#diff-root${i}`), l = Array.from((s == null ? void 0 : s.querySelectorAll(e)) || []), c = t ? Array.from((s == null ? void 0 : s.querySelectorAll(t)) || []) : l;
69916
69920
  if (l.length === 2 && c.length === 2) {
@@ -70177,7 +70181,7 @@ const to = () => dt(Yg), j_e = ({ index: e, diffFile: t, lineNumber: n, side: r,
70177
70181
  enableAddWidget: f.enableAddWidget,
70178
70182
  enableHighlight: f.enableHighlight
70179
70183
  }));
70180
- Vd.useSyncExternalStore(e.subscribe, e.getUpdateCount, e.getUpdateCount), ve(() => {
70184
+ Vd.useSyncExternalStore(e.subscribe, e.getUpdateCount, e.getUpdateCount), be(() => {
70181
70185
  const f = t.current, E = n.current;
70182
70186
  if (!(!f || !E))
70183
70187
  return Y_e(f, E);
@@ -70661,10 +70665,10 @@ const gge = (e, t) => vB(() => {
70661
70665
  enableWrap: s.enableWrap,
70662
70666
  onCreateUseWidgetHook: s.onCreateUseWidgetHook
70663
70667
  })), i = xe(() => UB(n), []), o = xe(() => ({ useWidget: i }), [i]);
70664
- return ve(() => {
70668
+ return be(() => {
70665
70669
  const { setWidget: s } = i.getReadonlyState();
70666
70670
  s({});
70667
- }, [e, i]), ve(() => {
70671
+ }, [e, i]), be(() => {
70668
70672
  a == null || a(i);
70669
70673
  }, [i, a]), h.createElement(Yg.Provider, { value: o }, r ? h.createElement(FB, { diffFile: e }) : h.createElement(PB, { diffFile: e }));
70670
70674
  });
@@ -70892,10 +70896,10 @@ const Sge = ({ index: e, diffFile: t, lineNumber: n, enableWrap: r, enableHighli
70892
70896
  enableAddWidget: b.enableAddWidget,
70893
70897
  onCreateUseWidgetHook: b.onCreateUseWidgetHook
70894
70898
  }));
70895
- Vd.useSyncExternalStore(e.subscribe, e.getUpdateCount, e.getUpdateCount), ve(() => {
70899
+ Vd.useSyncExternalStore(e.subscribe, e.getUpdateCount, e.getUpdateCount), be(() => {
70896
70900
  const { setWidget: b } = i.getReadonlyState();
70897
70901
  b({});
70898
- }, [e, i]), ve(() => {
70902
+ }, [e, i]), be(() => {
70899
70903
  d == null || d(i);
70900
70904
  }, [i, d]);
70901
70905
  const p = Math.max(e.unifiedLineLength, e.fileLineLength), m = FR({
@@ -70990,7 +70994,7 @@ const Rge = (e) => {
70990
70994
  // eslint-disable-next-line react-hooks/exhaustive-deps
70991
70995
  []
70992
70996
  );
70993
- ve(() => {
70997
+ be(() => {
70994
70998
  const { id: T, setId: v, mode: N, setMode: R, mounted: y, setMounted: I, enableAddWidget: x, setEnableAddWidget: w, enableHighlight: A, setEnableHighlight: M, enableWrap: D, setEnableWrap: B, setExtendData: k, fontSize: V, setFontSize: U, onAddWidgetClick: H, setOnAddWidgetClick: q, renderExtendLine: L, setRenderExtendLine: ce, renderWidgetLine: W, setRenderWidgetLine: O, onCreateUseWidgetHook: F, setOnCreateUseWidgetHook: P } = S.getReadonlyState();
70995
70999
  E && E !== T && v(E), i && i !== N && R(i), y !== f && I(f), p !== x && w(p), l !== A && M(l), o !== D && B(o), d && k(d), s && s !== V && U(s), m !== H.current && q({ current: m }), _ !== F && P(_), u !== L && ce(u), c !== W && O(c);
70996
71000
  }, [
@@ -71038,16 +71042,16 @@ const Rge = (e) => {
71038
71042
  }, [i, s]), u = Le(c), d = Le();
71039
71043
  u.current && u.current !== c && ((r = (n = u.current).clear) === null || r === void 0 || r.call(n), u.current = c);
71040
71044
  const p = V_e();
71041
- return ve(() => {
71045
+ return be(() => {
71042
71046
  if (s && c)
71043
71047
  return s._addClonedInstance(c), () => {
71044
71048
  s._delClonedInstance(c);
71045
71049
  };
71046
- }, [c, s]), ve(() => {
71050
+ }, [c, s]), be(() => {
71047
71051
  c && (c.initTheme(o), c.initRaw(), c.buildSplitDiffLines(), c.buildUnifiedDiffLines());
71048
- }, [c, o]), ve(() => {
71052
+ }, [c, o]), be(() => {
71049
71053
  c && e.diffViewHighlight && (c.initSyntax({ registerHighlighter: a }), c.notifyAll());
71050
- }, [c, e.diffViewHighlight, a]), ve(() => {
71054
+ }, [c, e.diffViewHighlight, a]), be(() => {
71051
71055
  if (!c)
71052
71056
  return;
71053
71057
  const m = () => {
@@ -78680,8 +78684,8 @@ const Q1 = Ei, O0e = new Promise((e) => {
78680
78684
  zi = t;
78681
78685
  }).then(() => e(Q1));
78682
78686
  }), LG = () => O0e, D0e = ({ setLoading: e }) => {
78683
- const [t, n] = Te();
78684
- return ve(() => {
78687
+ const [t, n] = ve();
78688
+ return be(() => {
78685
78689
  (async () => {
78686
78690
  try {
78687
78691
  const a = await LG();
@@ -78716,8 +78720,8 @@ const Q1 = Ei, O0e = new Promise((e) => {
78716
78720
  parentPath: i,
78717
78721
  setParentPath: o
78718
78722
  }) => {
78719
- const s = Le(null), [l, c] = Te(null);
78720
- return ve(() => {
78723
+ const s = Le(null), [l, c] = ve(null);
78724
+ return be(() => {
78721
78725
  l === null || s.current === null || (s.current.setSelectionRange(l, l), c(null));
78722
78726
  }, [l]), /* @__PURE__ */ G(tt.Flex, { align: "center", gap: "2xs", children: [
78723
78727
  /* @__PURE__ */ g(
@@ -78753,7 +78757,7 @@ const Q1 = Ei, O0e = new Promise((e) => {
78753
78757
  autoFocus: !!r
78754
78758
  }
78755
78759
  ),
78756
- /* @__PURE__ */ g(be, { variant: "body-single-line-normal", color: "foreground-3", children: "in" }),
78760
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", color: "foreground-3", children: "in" }),
78757
78761
  /* @__PURE__ */ g(qn, { variant: "secondary", theme: "gray", value: n, icon: "git-branch" })
78758
78762
  ] });
78759
78763
  }, MG = ({ items: e, isEdit: t, isNew: n, ...r }) => {
@@ -79790,7 +79794,7 @@ function xSe(e) {
79790
79794
  }) });
79791
79795
  }
79792
79796
  function LSe(e, t) {
79793
- var n = Te(e), r = n[0], a = n[1], i = t === void 0 ? r : t;
79797
+ var n = ve(e), r = n[0], a = n[1], i = t === void 0 ? r : t;
79794
79798
  return [i, a];
79795
79799
  }
79796
79800
  function MSe(e) {
@@ -80192,7 +80196,7 @@ function bH(e, t) {
80192
80196
  }
80193
80197
  var TH = Bt(void 0);
80194
80198
  function She(e) {
80195
- var t = up(), n = hH(), r = Te(), a = r[0], i = r[1], o = Te(), s = o[0], l = o[1], c = fhe(t.displayMonths, n), u = a ?? (s && t.isDateDisplayed(s)) ? s : c, d = function() {
80199
+ var t = up(), n = hH(), r = ve(), a = r[0], i = r[1], o = ve(), s = o[0], l = o[1], c = fhe(t.displayMonths, n), u = a ?? (s && t.isDateDisplayed(s)) ? s : c, d = function() {
80196
80200
  l(a), i(void 0);
80197
80201
  }, p = function(E) {
80198
80202
  i(E);
@@ -80395,7 +80399,7 @@ function yhe(e, t) {
80395
80399
  }
80396
80400
  function Ahe(e, t, n) {
80397
80401
  var r, a, i, o = ln(), s = nN(), l = hhe(e, t), c = vhe(e, l), u = Che(), d = !!(o.onDayClick || o.mode !== "default");
80398
- ve(function() {
80402
+ be(function() {
80399
80403
  var R;
80400
80404
  l.outside || s.focusedDay && d && Yr(s.focusedDay, e) && ((R = n.current) === null || R === void 0 || R.focus());
80401
80405
  }, [
@@ -80479,15 +80483,15 @@ function xhe(e) {
80479
80483
  function Lhe() {
80480
80484
  return !!(typeof window < "u" && window.document && window.document.createElement);
80481
80485
  }
80482
- var Mhe = Lhe() ? uc : ve, i0 = !1, khe = 0;
80486
+ var Mhe = Lhe() ? uc : be, i0 = !1, khe = 0;
80483
80487
  function Gx() {
80484
80488
  return "react-day-picker-".concat(++khe);
80485
80489
  }
80486
80490
  function Phe(e) {
80487
- var t, n = e ?? (i0 ? Gx() : null), r = Te(n), a = r[0], i = r[1];
80491
+ var t, n = e ?? (i0 ? Gx() : null), r = ve(n), a = r[0], i = r[1];
80488
80492
  return Mhe(function() {
80489
80493
  a === null && i(Gx());
80490
- }, []), ve(function() {
80494
+ }, []), be(function() {
80491
80495
  i0 === !1 && (i0 = !0);
80492
80496
  }, []), (t = e ?? a) !== null && t !== void 0 ? t : void 0;
80493
80497
  }
@@ -80502,8 +80506,8 @@ function Uhe(e) {
80502
80506
  return g("div", { className: n.months, style: r.months, children: e.children });
80503
80507
  }
80504
80508
  function Bhe(e) {
80505
- var t, n, r = e.initialProps, a = ln(), i = nN(), o = up(), s = Te(!1), l = s[0], c = s[1];
80506
- ve(function() {
80509
+ var t, n, r = e.initialProps, a = ln(), i = nN(), o = up(), s = ve(!1), l = s[0], c = s[1];
80510
+ be(function() {
80507
80511
  a.initialFocus && i.focusTarget && (l || (i.focus(i.focusTarget), c(!0)));
80508
80512
  }, [
80509
80513
  a.initialFocus,
@@ -80641,7 +80645,7 @@ const iN = Dt("cn-toggle", {
80641
80645
  defaultValue: _,
80642
80646
  selected: f
80643
80647
  }, E) => {
80644
- const S = f !== void 0, [b, T] = Te(_), v = S ? f : b, N = t === "transparent" ? "transparent" : n, R = Pe(
80648
+ const S = f !== void 0, [b, T] = ve(_), v = S ? f : b, N = t === "transparent" ? "transparent" : n, R = Pe(
80645
80649
  (w) => {
80646
80650
  S || T(w), p == null || p(w);
80647
80651
  },
@@ -80809,10 +80813,10 @@ const xH = Bt({
80809
80813
  className: c,
80810
80814
  ...u
80811
80815
  }, d) => {
80812
- const [p, m] = Te(
80816
+ const [p, m] = ve(
80813
80817
  () => o ?? (i === "multiple" ? [] : "")
80814
80818
  );
80815
- ve(() => {
80819
+ be(() => {
80816
80820
  m(o ?? (i === "multiple" ? [] : ""));
80817
80821
  }, [o, i]);
80818
80822
  const _ = Pe(
@@ -80917,10 +80921,10 @@ const Whe = {
80917
80921
  }, [l, d]), _ = xe(() => /* @__PURE__ */ G(tt.Horizontal, { gap: "xl", align: "center", children: [
80918
80922
  i && /* @__PURE__ */ g(qn, { value: "Stored with Git LFS", icon: "info-circle" }),
80919
80923
  /* @__PURE__ */ G(tt.Horizontal, { gap: "2xs", align: "center", children: [
80920
- /* @__PURE__ */ g(be, { color: "foreground-3", children: `${(r == null ? void 0 : r.split(`
80924
+ /* @__PURE__ */ g(Te, { color: "foreground-3", children: `${(r == null ? void 0 : r.split(`
80921
80925
  `).length) || 0} lines` }),
80922
80926
  /* @__PURE__ */ g(ra, { orientation: "vertical", className: "h-3" }),
80923
- /* @__PURE__ */ g(be, { color: "foreground-3", children: n })
80927
+ /* @__PURE__ */ g(Te, { color: "foreground-3", children: n })
80924
80928
  ] }),
80925
80929
  /* @__PURE__ */ g(
80926
80930
  kH,
@@ -80937,7 +80941,7 @@ const Whe = {
80937
80941
  dropdownProps: {
80938
80942
  content: /* @__PURE__ */ G(ut, { children: [
80939
80943
  /* @__PURE__ */ g(he.Item, { onSelect: p, title: "View Raw" }),
80940
- /* @__PURE__ */ g(he.Item, { onSelect: m, title: /* @__PURE__ */ g(be, { color: "danger", children: "Delete" }) })
80944
+ /* @__PURE__ */ g(he.Item, { onSelect: m, title: /* @__PURE__ */ g(Te, { color: "danger", children: "Delete" }) })
80941
80945
  ] }),
80942
80946
  contentProps: {
80943
80947
  align: "end"
@@ -81126,9 +81130,9 @@ const UH = (e) => {
81126
81130
  }), { register: f, handleSubmit: E, setValue: S, watch: b, reset: T } = _, v = u || d, N = (w) => {
81127
81131
  v || r(w);
81128
81132
  }, R = b("commitToGitRef"), y = b("fileName"), I = b("newBranchName");
81129
- ve(() => {
81133
+ be(() => {
81130
81134
  i(R, y), R === Ur.DIRECTLY && S("newBranchName", "");
81131
- }, [R]), ve(() => {
81135
+ }, [R]), be(() => {
81132
81136
  c({ violation: !1, bypassable: !1, bypassed: !1 });
81133
81137
  }, [I]);
81134
81138
  const x = (w) => {
@@ -81255,7 +81259,7 @@ const ebe = La.object({
81255
81259
  title: n
81256
81260
  }
81257
81261
  }), { register: s, handleSubmit: l, reset: c } = o;
81258
- return ve(() => {
81262
+ return be(() => {
81259
81263
  c({
81260
81264
  message: "",
81261
81265
  title: n
@@ -82521,14 +82525,14 @@ function V_(e, t, n) {
82521
82525
  }
82522
82526
  V_.globalOptions = void 0;
82523
82527
  function pN(e = {}, t = []) {
82524
- const n = Le(e), r = Le(t), [a, i] = Te(), [o, s] = Te(), l = Pe(() => {
82528
+ const n = Le(e), r = Le(t), [a, i] = ve(), [o, s] = ve(), l = Pe(() => {
82525
82529
  a && a.reInit(n.current, r.current);
82526
82530
  }, [a]);
82527
- return ve(() => {
82531
+ return be(() => {
82528
82532
  lN(n.current, e) || (n.current = e, l());
82529
- }, [e, l]), ve(() => {
82533
+ }, [e, l]), be(() => {
82530
82534
  abe(r.current, t) || (r.current = t, l());
82531
- }, [t, l]), ve(() => {
82535
+ }, [t, l]), be(() => {
82532
82536
  if (rbe() && o) {
82533
82537
  V_.globalOptions = pN.globalOptions;
82534
82538
  const c = V_(o, n.current, r.current);
@@ -82553,7 +82557,7 @@ const zH = ge(
82553
82557
  axis: e === "horizontal" ? "x" : "y"
82554
82558
  },
82555
82559
  r
82556
- ), [d, p] = Te(!1), [m, _] = Te(!1), f = Pe((v) => {
82560
+ ), [d, p] = ve(!1), [m, _] = ve(!1), f = Pe((v) => {
82557
82561
  v && (p(v.canScrollPrev()), _(v.canScrollNext()));
82558
82562
  }, []), E = Pe(() => {
82559
82563
  u == null || u.scrollPrev();
@@ -82565,9 +82569,9 @@ const zH = ge(
82565
82569
  },
82566
82570
  [E, S]
82567
82571
  );
82568
- ve(() => {
82572
+ be(() => {
82569
82573
  !u || !n || n(u);
82570
- }, [u, n]), ve(() => {
82574
+ }, [u, n]), be(() => {
82571
82575
  if (u)
82572
82576
  return f(u), u.on("reInit", f), u.on("select", f), () => {
82573
82577
  u == null || u.off("select", f);
@@ -82576,7 +82580,7 @@ const zH = ge(
82576
82580
  const T = Pe(() => {
82577
82581
  u && o && u.scrollTo(o);
82578
82582
  }, [u, o]);
82579
- return ve(() => {
82583
+ return be(() => {
82580
82584
  if (u)
82581
82585
  return T(), u.on("reInit", T), u.on("init", T), () => {
82582
82586
  u == null || u.off("init", T);
@@ -119926,7 +119930,7 @@ function sDe(e) {
119926
119930
  }, 2e3);
119927
119931
  }));
119928
119932
  };
119929
- ve(() => {
119933
+ be(() => {
119930
119934
  var n, r;
119931
119935
  return (n = e.current) == null || n.removeEventListener("click", t, !1), (r = e.current) == null || r.addEventListener("click", t, !1), () => {
119932
119936
  var a;
@@ -169036,7 +169040,7 @@ const k3e = (e) => e === "markdown", P3e = (e) => /^h(1|2|3|4|5|6)/.test(e), F3e
169036
169040
  const { navigate: f } = fr(), E = xe(() => {
169037
169041
  var U;
169038
169042
  return (U = document.getElementById("repository-ref-root")) == null ? void 0 : U.getAttribute("href");
169039
- }, []), S = Le(null), [b, T] = Te(""), [v, N] = Te(0), R = Le(0);
169043
+ }, []), S = Le(null), [b, T] = ve(""), [v, N] = ve(0), R = Le(0);
169040
169044
  R.current = 0;
169041
169045
  const y = xe(() => e.split(`
169042
169046
  `).filter((U) => U !== "" && U !== "```"), [e]), I = n ? { maxHeight: n } : {}, x = Pe(
@@ -169104,13 +169108,13 @@ const k3e = (e) => e === "markdown", P3e = (e) => /^h(1|2|3|4|5|6)/.test(e), F3e
169104
169108
  },
169105
169109
  [y]
169106
169110
  );
169107
- ve(() => {
169111
+ be(() => {
169108
169112
  const U = S.current;
169109
169113
  if (U)
169110
169114
  return U.addEventListener("click", A), () => {
169111
169115
  U.removeEventListener("click", A);
169112
169116
  };
169113
- }, [A]), ve(() => {
169117
+ }, [A]), be(() => {
169114
169118
  if (t && v < e.length) {
169115
169119
  const U = setTimeout(() => {
169116
169120
  T((H) => H + e[v]), N((H) => H + 1);
@@ -169189,7 +169193,7 @@ const k3e = (e) => e === "markdown", P3e = (e) => /^h(1|2|3|4|5|6)/.test(e), F3e
169189
169193
  typeof q == "string" && (L = q);
169190
169194
  const { isSuggestion: ce, codeLines: W } = D(L), O = W.length > 0 && W[W.length - 1] === "" ? W.slice(0, -1) : W, F = s && O.length > 1;
169191
169195
  return ce ? /* @__PURE__ */ G("div", { className: "rounded-cn-2 overflow-hidden border", children: [
169192
- /* @__PURE__ */ g("div", { className: "bg-cn-2 px-cn-md py-cn-sm border-b", children: /* @__PURE__ */ g(be, { variant: "body-strong", color: "foreground-1", className: "!m-0", children: c }) }),
169196
+ /* @__PURE__ */ g("div", { className: "bg-cn-2 px-cn-md py-cn-sm border-b", children: /* @__PURE__ */ g(Te, { variant: "body-strong", color: "foreground-1", className: "!m-0", children: c }) }),
169193
169197
  /* @__PURE__ */ g("pre", { children: U }),
169194
169198
  /* @__PURE__ */ g("div", { className: "p-cn-md", children: u })
169195
169199
  ] }) : /* @__PURE__ */ G(
@@ -169211,7 +169215,7 @@ const k3e = (e) => e === "markdown", P3e = (e) => /^h(1|2|3|4|5|6)/.test(e), F3e
169211
169215
  }
169212
169216
  ),
169213
169217
  /* @__PURE__ */ g("pre", { children: F ? /* @__PURE__ */ G("div", { className: "relative flex w-full bg-transparent", children: [
169214
- /* @__PURE__ */ g("div", { className: "bg-cn-2 flex-none select-none text-right", children: O.map((P, z) => /* @__PURE__ */ g(be, { as: "span", className: "pr-cn-sm block pt-[0.5px]", children: z + 1 }, z)) }),
169218
+ /* @__PURE__ */ g("div", { className: "bg-cn-2 flex-none select-none text-right", children: O.map((P, z) => /* @__PURE__ */ g(Te, { as: "span", className: "pr-cn-sm block pt-[0.5px]", children: z + 1 }, z)) }),
169215
169219
  /* @__PURE__ */ g("div", { className: "relative flex-1 overflow-hidden bg-transparent", children: U })
169216
169220
  ] }) : U })
169217
169221
  ]
@@ -169234,7 +169238,7 @@ const k3e = (e) => e === "markdown", P3e = (e) => /^h(1|2|3|4|5|6)/.test(e), F3e
169234
169238
  };
169235
169239
  pV.displayName = "MarkdownViewer";
169236
169240
  const mV = Qa(pV), G3e = ({ isOpen: e, setIsOpen: t, imgEvent: n, title: r, initialSlide: a }) => {
169237
- const [i, o] = Te(lW);
169241
+ const [i, o] = ve(lW);
169238
169242
  return /* @__PURE__ */ g(
169239
169243
  st.Root,
169240
169244
  {
@@ -169385,9 +169389,9 @@ const _V = {
169385
169389
  ] });
169386
169390
  return /* @__PURE__ */ G("div", { className: $(Y3e({ size: r, state: n }), u), ...p, children: [
169387
169391
  (i || !l || !a) && /* @__PURE__ */ G("label", { className: "cn-progress-header", htmlFor: f, children: [
169388
- /* @__PURE__ */ g("div", { className: "cn-progress-header-left", children: i && /* @__PURE__ */ g(be, { variant: "body-strong", color: "foreground-1", truncate: !0, children: i }) }),
169392
+ /* @__PURE__ */ g("div", { className: "cn-progress-header-left", children: i && /* @__PURE__ */ g(Te, { variant: "body-strong", color: "foreground-1", truncate: !0, children: i }) }),
169389
169393
  /* @__PURE__ */ G("div", { className: "cn-progress-header-right", children: [
169390
- !l && t === "default" && /* @__PURE__ */ G(be, { variant: "body-strong", color: "foreground-1", children: [
169394
+ !l && t === "default" && /* @__PURE__ */ G(Te, { variant: "body-strong", color: "foreground-1", children: [
169391
169395
  _,
169392
169396
  "%"
169393
169397
  ] }),
@@ -169396,8 +169400,8 @@ const _V = {
169396
169400
  ] }),
169397
169401
  /* @__PURE__ */ g("div", { className: "cn-progress-container", children: S() }),
169398
169402
  (o || s) && /* @__PURE__ */ G("div", { className: "cn-progress-footer", children: [
169399
- /* @__PURE__ */ g("div", { className: "cn-progress-description-wrap", children: o && /* @__PURE__ */ g(be, { className: "cn-progress-description", variant: "body-strong", color: "foreground-3", truncate: !0, children: o }) }),
169400
- s && /* @__PURE__ */ g(be, { className: "cn-progress-subtitle", align: "right", variant: "body-normal", color: "foreground-3", truncate: !0, children: s })
169403
+ /* @__PURE__ */ g("div", { className: "cn-progress-description-wrap", children: o && /* @__PURE__ */ g(Te, { className: "cn-progress-description", variant: "body-strong", color: "foreground-3", truncate: !0, children: o }) }),
169404
+ s && /* @__PURE__ */ g(Te, { className: "cn-progress-subtitle", align: "right", variant: "body-normal", color: "foreground-3", truncate: !0, children: s })
169401
169405
  ] })
169402
169406
  ] });
169403
169407
  }
@@ -169420,7 +169424,7 @@ const V3e = ({
169420
169424
  violation: m = !1,
169421
169425
  bypassable: _ = !1
169422
169426
  }) => {
169423
- const { t: f } = Fn(), [E, S] = Te(""), [b, T] = Te(!1), v = (I) => {
169427
+ const { t: f } = Fn(), [E, S] = ve(""), [b, T] = ve(!1), v = (I) => {
169424
169428
  S(I.target.value), b && T(!1);
169425
169429
  }, N = () => {
169426
169430
  s && E !== p && T(!0), !(i || s && E !== p) && (T(!1), r(n));
@@ -169439,7 +169443,7 @@ const V3e = ({
169439
169443
  ).split(I);
169440
169444
  return /* @__PURE__ */ G(ut, { children: [
169441
169445
  w[0],
169442
- (u ?? n) && /* @__PURE__ */ g(be, { as: "span", variant: "body-strong", children: u ?? n }),
169446
+ (u ?? n) && /* @__PURE__ */ g(Te, { as: "span", variant: "body-strong", children: u ?? n }),
169443
169447
  w[1]
169444
169448
  ] });
169445
169449
  }
@@ -169457,7 +169461,7 @@ const V3e = ({
169457
169461
  onConfirm: N,
169458
169462
  loading: i,
169459
169463
  children: /* @__PURE__ */ G(su.Content, { title: c ?? f("component:deleteDialog.title", "Are you sure?"), children: [
169460
- /* @__PURE__ */ g(be, { className: "break-words", wrap: "wrap", children: y }),
169464
+ /* @__PURE__ */ g(Te, { className: "break-words", wrap: "wrap", children: y }),
169461
169465
  s && /* @__PURE__ */ g(
169462
169466
  Dp,
169463
169467
  {
@@ -170023,7 +170027,7 @@ const dMe = (e) => e.length === 1 ? String(e[0]) : e.length === 2 ? `${e[0]} –
170023
170027
  onValueChange: u,
170024
170028
  ...d
170025
170029
  }, p) => {
170026
- const m = xe(() => `slider-${Math.random().toString(36).slice(2, 11)}`, []), [_, f] = Te(l ?? [0]), E = c ?? _, S = Le(/* @__PURE__ */ new Set()), b = Le(/* @__PURE__ */ new Set()), [, T] = Te(!1), v = Pe(
170030
+ const m = xe(() => `slider-${Math.random().toString(36).slice(2, 11)}`, []), [_, f] = ve(l ?? [0]), E = c ?? _, S = Le(/* @__PURE__ */ new Set()), b = Le(/* @__PURE__ */ new Set()), [, T] = ve(!1), v = Pe(
170027
170031
  (R) => S.current.has(R) || b.current.has(R),
170028
170032
  []
170029
170033
  ), N = Pe(
@@ -170206,7 +170210,7 @@ const YV = ({
170206
170210
  contentClassName: c
170207
170211
  }) => {
170208
170212
  const { t: u } = Fn();
170209
- return ve(() => {
170213
+ return be(() => {
170210
170214
  t && (l == null || l(!0));
170211
170215
  }, []), /* @__PURE__ */ G(
170212
170216
  he.Root,
@@ -170226,11 +170230,11 @@ const YV = ({
170226
170230
  } : void 0,
170227
170231
  children: [
170228
170232
  /* @__PURE__ */ G(tt.Grid, { align: "center", columns: o ? "auto 1fr" : void 0, gapX: "2xs", children: [
170229
- /* @__PURE__ */ G(be, { as: "span", color: "foreground-1", truncate: !0, children: [
170233
+ /* @__PURE__ */ G(Te, { as: "span", color: "foreground-1", truncate: !0, children: [
170230
170234
  r,
170231
170235
  !!o && ": "
170232
170236
  ] }),
170233
- !!o && /* @__PURE__ */ g(be, { as: "span", truncate: !0, children: o })
170237
+ !!o && /* @__PURE__ */ g(Te, { as: "span", truncate: !0, children: o })
170234
170238
  ] }),
170235
170239
  /* @__PURE__ */ g(me, { className: "chevron-down", name: "nav-arrow-down" })
170236
170240
  ]
@@ -170238,7 +170242,7 @@ const YV = ({
170238
170242
  ) }),
170239
170243
  /* @__PURE__ */ G(he.Content, { className: $("w-[276px]", c), align: "start", children: [
170240
170244
  /* @__PURE__ */ g(he.Header, { children: /* @__PURE__ */ G(tt.Flex, { align: "center", justify: "between", children: [
170241
- /* @__PURE__ */ g(be, { as: "span", children: r }),
170245
+ /* @__PURE__ */ g(Te, { as: "span", children: r }),
170242
170246
  /* @__PURE__ */ g(
170243
170247
  Je,
170244
170248
  {
@@ -170268,7 +170272,7 @@ const YV = ({
170268
170272
  inputPlaceholder: i,
170269
170273
  buttonLabel: o
170270
170274
  }) => {
170271
- const [s, l] = Te(""), c = a.filter(
170275
+ const [s, l] = ve(""), c = a.filter(
170272
170276
  (u) => !s || u.label.toLowerCase().includes(s.toLowerCase())
170273
170277
  );
170274
170278
  return /* @__PURE__ */ G(he.Root, { children: [
@@ -170322,7 +170326,7 @@ const _Me = ({
170322
170326
  const t = Qj(e, "dd/MM/yyyy", /* @__PURE__ */ new Date());
170323
170327
  return { date: m6(t) ? t : null, formattedValue: e };
170324
170328
  }, fMe = ({ filter: e, onUpdateFilter: t }) => {
170325
- const n = e.value ? new Date(e.value) : /* @__PURE__ */ new Date(), [r, a] = Te({
170329
+ const n = e.value ? new Date(e.value) : /* @__PURE__ */ new Date(), [r, a] = ve({
170326
170330
  input: {
170327
170331
  value: e.value ? r4(new Date(e.value)) : "",
170328
170332
  isError: !1
@@ -170411,7 +170415,7 @@ const _Me = ({
170411
170415
  noResultsMessage: o,
170412
170416
  allowSearch: s = !0
170413
170417
  }) => {
170414
- const [l, c] = Te(t), u = e, { searchInputRef: d, handleSearchKeyDown: p, getItemProps: m } = Bd({
170418
+ const [l, c] = ve(t), u = e, { searchInputRef: d, handleSearchKeyDown: p, getItemProps: m } = Bd({
170415
170419
  itemsLength: l.length
170416
170420
  }), _ = Pe(
170417
170421
  (S) => {
@@ -170421,7 +170425,7 @@ const _Me = ({
170421
170425
  ), f = (S) => {
170422
170426
  r ? r(S) : _(S);
170423
170427
  };
170424
- ve(() => {
170428
+ be(() => {
170425
170429
  var S;
170426
170430
  _(((S = d == null ? void 0 : d.current) == null ? void 0 : S.value) || "");
170427
170431
  }, [_, t, d]);
@@ -170659,10 +170663,10 @@ const dT = (e, t) => {
170659
170663
  }) })
170660
170664
  ] })
170661
170665
  ] }), TMe = ({ filter: e, presets: t, showCustomRange: n = !0, onUpdateFilter: r }) => {
170662
- const [a, i] = Te(
170666
+ const [a, i] = ve(
170663
170667
  e.value ? { from: new Date(e.value.from), to: new Date(e.value.to) } : void 0
170664
- ), [o, s] = Te(e.value ? new Date(e.value.from) : /* @__PURE__ */ new Date());
170665
- ve(() => {
170668
+ ), [o, s] = ve(e.value ? new Date(e.value.from) : /* @__PURE__ */ new Date());
170669
+ be(() => {
170666
170670
  e.value ? (i({ from: new Date(e.value.from), to: new Date(e.value.to) }), s(new Date(e.value.from))) : (i(void 0), s(/* @__PURE__ */ new Date()));
170667
170671
  }, [e.value]);
170668
170672
  const l = t ?? hMe(), c = l.filter((f) => f.group === "recommended"), u = l.filter((f) => f.group === "relative"), d = l.filter((f) => f.group === "calendar"), p = (f) => {
@@ -170739,7 +170743,7 @@ const dT = (e, t) => {
170739
170743
  tooltipContent: R,
170740
170744
  labelSuffix: y
170741
170745
  }, I) => {
170742
- const x = Le(null), [w, A] = Te(!1), [M, D] = Te(!1), B = Le(null), [k, V] = Te(e || r || []), [U, H] = Te(null), [q, L] = Te(""), { search: ce } = vW({
170746
+ const x = Le(null), [w, A] = ve(!1), [M, D] = ve(!1), B = Le(null), [k, V] = ve(e || r || []), [U, H] = ve(null), [q, L] = ve(""), { search: ce } = vW({
170743
170747
  handleChangeSearchValue: o,
170744
170748
  searchValue: i || ""
170745
170749
  }), W = !!e, O = v === "horizontal", F = f ? "danger" : E ? "warning" : m, P = xe(() => (p == null ? void 0 : p.id) || `multi-select-${Md(10)}`, [p == null ? void 0 : p.id]), z = Pe(() => W ? e : k, [W, e, k]);
@@ -170793,9 +170797,9 @@ const dT = (e, t) => {
170793
170797
  },
170794
170798
  [c, z, ee, U, W, o, t]
170795
170799
  );
170796
- return ve(() => (w ? (document.addEventListener("mousedown", X), document.addEventListener("touchend", X)) : (document.removeEventListener("mousedown", X), document.removeEventListener("touchend", X)), () => {
170800
+ return be(() => (w ? (document.addEventListener("mousedown", X), document.addEventListener("touchend", X)) : (document.removeEventListener("mousedown", X), document.removeEventListener("touchend", X)), () => {
170797
170801
  document.removeEventListener("mousedown", X), document.removeEventListener("touchend", X);
170798
- }), [w, X]), ve(() => {
170802
+ }), [w, X]), be(() => {
170799
170803
  if (!a)
170800
170804
  H(null);
170801
170805
  else if (a.length === 0) {
@@ -171121,7 +171125,7 @@ const NMe = (e, t) => {
171121
171125
  const s = {
171122
171126
  type: e.value,
171123
171127
  value: o
171124
- }, [l, c] = Te(n), u = (p) => {
171128
+ }, [l, c] = ve(n), u = (p) => {
171125
171129
  i(p);
171126
171130
  };
171127
171131
  if (e.type === zn.Checkbox)
@@ -171174,10 +171178,10 @@ const NMe = (e, t) => {
171174
171178
  buttonSize: s = "md",
171175
171179
  disabled: l = !1
171176
171180
  }, c) => {
171177
- const { Link: u } = fr(), [d, p] = Te(!1), m = Le(), _ = Pe((f) => {
171181
+ const { Link: u } = fr(), [d, p] = ve(!1), m = Le(), _ = Pe((f) => {
171178
171182
  f || (clearTimeout(m.current), p(!0), m.current = setTimeout(() => p(!1), AMe));
171179
171183
  }, []);
171180
- return ve(() => () => clearTimeout(m.current), []), t.length ? /* @__PURE__ */ G(he.Root, { onOpenChange: _, children: [
171184
+ return be(() => () => clearTimeout(m.current), []), t.length ? /* @__PURE__ */ G(he.Root, { onOpenChange: _, children: [
171181
171185
  /* @__PURE__ */ g(he.Trigger, { ref: c, disabled: l, asChild: !0, children: /* @__PURE__ */ g(
171182
171186
  Je,
171183
171187
  {
@@ -171215,13 +171219,13 @@ const NMe = (e, t) => {
171215
171219
  {
171216
171220
  icon: f.iconName,
171217
171221
  iconClassName: $({ "text-cn-danger": f.isDanger }),
171218
- title: /* @__PURE__ */ g(be, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171222
+ title: /* @__PURE__ */ g(Te, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171219
171223
  disabled: f.disabled
171220
171224
  }
171221
171225
  ) : /* @__PURE__ */ g(
171222
171226
  he.Item,
171223
171227
  {
171224
- title: /* @__PURE__ */ g(be, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171228
+ title: /* @__PURE__ */ g(Te, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171225
171229
  disabled: f.disabled
171226
171230
  }
171227
171231
  )
@@ -171231,7 +171235,7 @@ const NMe = (e, t) => {
171231
171235
  he.IconItem,
171232
171236
  {
171233
171237
  icon: f.iconName,
171234
- title: /* @__PURE__ */ g(be, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171238
+ title: /* @__PURE__ */ g(Te, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171235
171239
  iconClassName: $({ "text-cn-danger": f.isDanger }),
171236
171240
  onClick: (b) => {
171237
171241
  var T;
@@ -171243,7 +171247,7 @@ const NMe = (e, t) => {
171243
171247
  ) : /* @__PURE__ */ g(
171244
171248
  he.Item,
171245
171249
  {
171246
- title: /* @__PURE__ */ g(be, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171250
+ title: /* @__PURE__ */ g(Te, { color: f.isDanger ? "danger" : "foreground-2", truncate: !0, children: f.title }),
171247
171251
  onClick: (b) => {
171248
171252
  var T;
171249
171253
  b.stopPropagation(), (T = f == null ? void 0 : f.onClick) == null || T.call(f);
@@ -171278,7 +171282,7 @@ const qV = ge(
171278
171282
  dropdownContentClassName: m,
171279
171283
  size: _ = "md"
171280
171284
  }, f) => {
171281
- const [E, S] = Te(!1), b = Pe(
171285
+ const [E, S] = ve(!1), b = Pe(
171282
171286
  (T) => {
171283
171287
  const v = r.find((N) => N.value === T);
171284
171288
  !t && v && !v.disabled && (a(T), S(!1));
@@ -171417,7 +171421,7 @@ function DMe() {
171417
171421
  ] });
171418
171422
  }
171419
171423
  const wMe = ({ children: e }) => /* @__PURE__ */ g("div", { className: "bg-cn-1 flex size-full max-w-[460px] flex-col", children: e }), xMe = ({ onClose: e }) => /* @__PURE__ */ G("div", { className: "bg-cn-1 px-cn-xl py-cn-md sticky top-0 flex items-center justify-between", children: [
171420
- /* @__PURE__ */ g(be, { variant: "heading-hero", children: "Harness AI" }),
171424
+ /* @__PURE__ */ g(Te, { variant: "heading-hero", children: "Harness AI" }),
171421
171425
  /* @__PURE__ */ G(Je, { size: "sm", iconOnly: !0, variant: "ghost", onClick: e, ignoreIconOnlyTooltip: !0, children: [
171422
171426
  /* @__PURE__ */ g(me, { name: "xmark" }),
171423
171427
  /* @__PURE__ */ g("span", { className: "sr-only", children: "Close" })
@@ -171468,7 +171472,7 @@ const wMe = ({ children: e }) => /* @__PURE__ */ g("div", { className: "bg-cn-1
171468
171472
  ), FMe = ({ avatar: e }) => /* @__PURE__ */ G("div", { className: "mt-cn-sm gap-x-cn-sm flex items-center", children: [
171469
171473
  e || /* @__PURE__ */ g(Ld, { size: 16, name: "chat-avatar", themeDependent: !0 }),
171470
171474
  /* @__PURE__ */ g("span", { className: "bg-cn-3 size-2.5 rounded-cn-full", "aria-hidden": !0 })
171471
- ] }), UMe = ({ title: e }) => /* @__PURE__ */ g(be, { align: "center", className: "opacity-50", children: e }), BMe = [
171475
+ ] }), UMe = ({ title: e }) => /* @__PURE__ */ g(Te, { align: "center", className: "opacity-50", children: e }), BMe = [
171472
171476
  {
171473
171477
  text: "Pipeline design"
171474
171478
  },
@@ -171483,14 +171487,14 @@ const wMe = ({ children: e }) => /* @__PURE__ */ g("div", { className: "bg-cn-1
171483
171487
  }
171484
171488
  ], GMe = () => /* @__PURE__ */ G("div", { className: "gap-cn-lg mt-auto flex flex-col", children: [
171485
171489
  /* @__PURE__ */ G("div", { children: [
171486
- /* @__PURE__ */ g(be, { variant: "heading-subsection", color: "foreground-2", children: "Hello Steven," }),
171487
- /* @__PURE__ */ G(be, { variant: "heading-subsection", className: "mt-cn-3xs", children: [
171490
+ /* @__PURE__ */ g(Te, { variant: "heading-subsection", color: "foreground-2", children: "Hello Steven," }),
171491
+ /* @__PURE__ */ G(Te, { variant: "heading-subsection", className: "mt-cn-3xs", children: [
171488
171492
  " ",
171489
171493
  "how can I help?"
171490
171494
  ] })
171491
171495
  ] }),
171492
171496
  /* @__PURE__ */ G("div", { children: [
171493
- /* @__PURE__ */ g(be, { as: "span", children: "Here are some suggestions to enhance your CI/CD pipeline:" }),
171497
+ /* @__PURE__ */ g(Te, { as: "span", children: "Here are some suggestions to enhance your CI/CD pipeline:" }),
171494
171498
  /* @__PURE__ */ g("ul", { className: "mt-cn-sm gap-y-cn-2xs flex flex-col", children: BMe.map(({ text: e }, t) => /* @__PURE__ */ g("li", { children: /* @__PURE__ */ g(Je, { className: "w-full justify-start", variant: "secondary", children: e }) }, t)) })
171495
171499
  ] })
171496
171500
  ] }), HMe = ({
@@ -171544,8 +171548,8 @@ const wMe = ({ children: e }) => /* @__PURE__ */ g("div", { className: "bg-cn-1
171544
171548
  EmptyState: GMe,
171545
171549
  Input: HMe
171546
171550
  }, WV = ({ data: e, mode: t = 4, lang: n = "go", fileName: r }) => {
171547
- const [, a] = Te(!1), [i, o] = Te(), [s, l] = Te();
171548
- ve(() => {
171551
+ const [, a] = ve(!1), [i, o] = ve(), [s, l] = ve();
171552
+ be(() => {
171549
171553
  (async () => {
171550
171554
  a(!0);
171551
171555
  try {
@@ -171574,7 +171578,7 @@ const wMe = ({ children: e }) => /* @__PURE__ */ g("div", { className: "bg-cn-1
171574
171578
  }, 100),
171575
171579
  []
171576
171580
  );
171577
- return ve(() => {
171581
+ return be(() => {
171578
171582
  e && c(n, e);
171579
171583
  }, [e, n, c]), /* @__PURE__ */ G("div", { className: "rounded-cn-3 border-cn-2 bg-cn-1 mt-cn-sm mr-[28px] flex flex-col border", children: [
171580
171584
  r && /* @__PURE__ */ g("span", { className: "border-cn-2 bg-cn-2 p-cn-md text-cn-size-2 text-cn-1 rounded-inherit border-b font-medium", children: r }),
@@ -171662,15 +171666,15 @@ const XV = ge(
171662
171666
  );
171663
171667
  XV.displayName = "MessageBubbleContent";
171664
171668
  const jV = ({ children: e, ...t }) => {
171665
- const n = t.speed && typeof e == "string", [r, a] = Te(""), [i, o] = Te(0);
171666
- return ve(() => {
171669
+ const n = t.speed && typeof e == "string", [r, a] = ve(""), [i, o] = ve(0);
171670
+ return be(() => {
171667
171671
  if (n && i < e.length) {
171668
171672
  const s = setTimeout(() => {
171669
171673
  a((l) => l + e[i]), o((l) => l + 1);
171670
171674
  }, t.speed);
171671
171675
  return () => clearTimeout(s);
171672
171676
  }
171673
- }, [n, i, e, t.speed]), /* @__PURE__ */ g(be, { variant: "body-normal", ...t, children: n ? r : e });
171677
+ }, [n, i, e, t.speed]), /* @__PURE__ */ g(Te, { variant: "body-normal", ...t, children: n ? r : e });
171674
171678
  };
171675
171679
  jV.displayName = "MessageBubbleText";
171676
171680
  const ZV = ({ children: e, className: t, ...n }) => /* @__PURE__ */ g(mV, { variant: "sm", markdownClassName: $("bg-transparent", t), source: e, ...n });
@@ -171791,14 +171795,14 @@ const qMe = {
171791
171795
  children: o,
171792
171796
  ...s
171793
171797
  }, l) => {
171794
- const [c, u] = Te(n ?? r), [d, p] = Te(i), [m, _] = Te(!1), f = Le(null);
171795
- ve(() => {
171798
+ const [c, u] = ve(n ?? r), [d, p] = ve(i), [m, _] = ve(!1), f = Le(null);
171799
+ be(() => {
171796
171800
  n !== void 0 && u(n);
171797
- }, [n]), ve(() => {
171801
+ }, [n]), be(() => {
171798
171802
  i !== void 0 && p(i);
171799
- }, [i]), ve(() => {
171803
+ }, [i]), be(() => {
171800
171804
  t ? f.current === null && (f.current = Date.now()) : f.current !== null && (p(Math.ceil((Date.now() - f.current) / QMe)), f.current = null);
171801
- }, [t]), ve(() => {
171805
+ }, [t]), be(() => {
171802
171806
  if (r && !t && c && !m) {
171803
171807
  const S = setTimeout(() => {
171804
171808
  u(!1), _(!0), a == null || a(!1);
@@ -171826,7 +171830,7 @@ const qMe = {
171826
171830
  }
171827
171831
  );
171828
171832
  cq.displayName = "ReasoningRoot";
171829
- const XMe = (e, t) => e || t === 0 ? /* @__PURE__ */ g(sq, { variant: "caption-light", color: "foreground-3", duration: 1, children: "Thinking..." }) : t === void 0 ? /* @__PURE__ */ g(be, { variant: "caption-light", color: "foreground-3", children: "Thought for a few seconds" }) : /* @__PURE__ */ G(be, { variant: "caption-light", color: "foreground-3", children: [
171833
+ const XMe = (e, t) => e || t === 0 ? /* @__PURE__ */ g(sq, { variant: "caption-light", color: "foreground-3", duration: 1, children: "Thinking..." }) : t === void 0 ? /* @__PURE__ */ g(Te, { variant: "caption-light", color: "foreground-3", children: "Thought for a few seconds" }) : /* @__PURE__ */ G(Te, { variant: "caption-light", color: "foreground-3", children: [
171830
171834
  "Thought for ",
171831
171835
  t,
171832
171836
  " seconds"
@@ -171850,7 +171854,7 @@ uq.displayName = "ReasoningTrigger";
171850
171854
  const dq = ge(
171851
171855
  ({ className: e, children: t, ...n }, r) => {
171852
171856
  const a = Le(null), { isStreaming: i } = C2();
171853
- return ve(() => {
171857
+ return be(() => {
171854
171858
  i && a.current && (a.current.scrollTop = a.current.scrollHeight);
171855
171859
  }, [t, i]), /* @__PURE__ */ g(V9, { ref: r, className: $("cn-reasoning-content", e), ...n, children: /* @__PURE__ */ g("div", { ref: a, className: "max-h-[200px] overflow-y-auto scrollbar-hidden", children: t }) });
171856
171860
  }
@@ -171882,7 +171886,7 @@ const jMe = {
171882
171886
  return e;
171883
171887
  }, _q = ge(
171884
171888
  ({ className: e, elements: t, initialSelectedId: n, initialExpendedItems: r, children: a, indicator: i = !0, dir: o, ...s }, l) => {
171885
- const [c, u] = Te(n), [d, p] = Te(r), m = Pe((S) => {
171889
+ const [c, u] = ve(n), [d, p] = ve(r), m = Pe((S) => {
171886
171890
  u(S);
171887
171891
  }, []), _ = Pe((S) => {
171888
171892
  p((b) => b != null && b.includes(S) ? b.filter((T) => T !== S) : [...b ?? [], S]);
@@ -171902,7 +171906,7 @@ const jMe = {
171902
171906
  T(v);
171903
171907
  });
171904
171908
  }, []);
171905
- ve(() => {
171909
+ be(() => {
171906
171910
  n && (f(t, n), u(n));
171907
171911
  }, [n, t]);
171908
171912
  const E = o === "rtl" ? "rtl" : "ltr";
@@ -172076,7 +172080,7 @@ const Eq = ge(
172076
172080
  }, []), l = Pe(() => {
172077
172081
  o == null || o([]);
172078
172082
  }, []);
172079
- return ve(() => {
172083
+ return be(() => {
172080
172084
  t && s(e);
172081
172085
  }, [t]), /* @__PURE__ */ G(
172082
172086
  "button",
@@ -173621,8 +173625,8 @@ const Ike = ({ className: e, ...t }) => /* @__PURE__ */ g(
173621
173625
  second: "2-digit"
173622
173626
  })
173623
173627
  }), Rv = "", Hq = (e, t = !1) => {
173624
- const n = e ? new Date(e) : /* @__PURE__ */ new Date(0), r = !isNaN(n.getTime()) && isFinite(n.getTime()), [, a] = Te(0);
173625
- ve(() => {
173628
+ const n = e ? new Date(e) : /* @__PURE__ */ new Date(0), r = !isNaN(n.getTime()) && isFinite(n.getTime()), [, a] = ve(0);
173629
+ be(() => {
173626
173630
  if (!t || !r || n.getTime() === 0)
173627
173631
  return;
173628
173632
  const l = setInterval(() => {
@@ -173647,21 +173651,21 @@ const Ike = ({ className: e, ...t }) => /* @__PURE__ */ g(
173647
173651
  formattedFull: s,
173648
173652
  time: n
173649
173653
  };
173650
- }, Yq = ({ formattedFullArray: e }) => e.length === 0 ? /* @__PURE__ */ g("div", { className: "cn-time-ago-card-content", children: /* @__PURE__ */ g(be, { variant: "body-single-line-normal", children: "Unknown time" }) }) : /* @__PURE__ */ g("div", { className: "cn-time-ago-card-content", children: e.map(({ date: t, time: n, label: r }) => /* @__PURE__ */ G(Vi, { children: [
173654
+ }, Yq = ({ formattedFullArray: e }) => e.length === 0 ? /* @__PURE__ */ g("div", { className: "cn-time-ago-card-content", children: /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", children: "Unknown time" }) }) : /* @__PURE__ */ g("div", { className: "cn-time-ago-card-content", children: e.map(({ date: t, time: n, label: r }) => /* @__PURE__ */ G(Vi, { children: [
173651
173655
  /* @__PURE__ */ g(gs, { variant: "secondary", size: "sm", children: r }),
173652
- /* @__PURE__ */ g(be, { color: "inherit", variant: "body-single-line-normal", as: "time", dateTime: t, children: t }),
173653
- /* @__PURE__ */ g(be, { variant: "body-single-line-normal", as: "time", dateTime: n, color: "inherit", className: "ml-auto", children: n })
173656
+ /* @__PURE__ */ g(Te, { color: "inherit", variant: "body-single-line-normal", as: "time", dateTime: t, children: t }),
173657
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", as: "time", dateTime: n, color: "inherit", className: "ml-auto", children: n })
173654
173658
  ] }, r)) }), zq = Qa(
173655
173659
  ge(
173656
173660
  ({ timestamp: e, prefix: t, live: n = !1, textProps: r, tooltipProps: a, triggerProps: i, triggerClassName: o }, s) => {
173657
173661
  const { formattedShort: l, formattedFull: c } = Hq(e, n);
173658
- return e == null || l === Rv ? /* @__PURE__ */ g(be, { as: "span", ...r, ref: s, children: Rv }) : /* @__PURE__ */ g($a, { content: /* @__PURE__ */ g(Yq, { formattedFullArray: c }), ...a, children: /* @__PURE__ */ g(
173662
+ return e == null || l === Rv ? /* @__PURE__ */ g(Te, { as: "span", ...r, ref: s, children: Rv }) : /* @__PURE__ */ g($a, { content: /* @__PURE__ */ g(Yq, { formattedFullArray: c }), ...a, children: /* @__PURE__ */ g(
173659
173663
  "button",
173660
173664
  {
173661
173665
  ref: s,
173662
173666
  className: $("cn-time-ago-card-trigger", o),
173663
173667
  ...i,
173664
- children: /* @__PURE__ */ g(be, { as: "time", ...r, dateTime: e.toString(), children: t ? `${t} ${l}` : l })
173668
+ children: /* @__PURE__ */ g(Te, { as: "time", ...r, dateTime: e.toString(), children: t ? `${t} ${l}` : l })
173665
173669
  }
173666
173670
  ) });
173667
173671
  }
@@ -173670,8 +173674,8 @@ const Ike = ({ className: e, ...t }) => /* @__PURE__ */ g(
173670
173674
  zq.displayName = "TimeAgoCard";
173671
173675
  const Vq = ({ className: e, disabled: t, iconProps: n, ...r }) => /* @__PURE__ */ g($a, { ...r, children: /* @__PURE__ */ g("button", { className: $({ "pointer-events-none": t }, e), disabled: t, children: /* @__PURE__ */ g(me, { name: "info-circle", size: "md", ...n }) }) });
173672
173676
  function O2({ ...e }) {
173673
- const { value: t } = e, [n, r] = Te(!1);
173674
- ve(() => {
173677
+ const { value: t } = e, [n, r] = ve(!1);
173678
+ be(() => {
173675
173679
  let i;
173676
173680
  return n && (i = window.setTimeout(() => r(!1), 1e3)), () => {
173677
173681
  clearTimeout(i);
@@ -173755,7 +173759,7 @@ const D2 = ({
173755
173759
  inputPlaceholder: o,
173756
173760
  buttonLabel: s
173757
173761
  }) => {
173758
- const [l, c] = Te(""), u = i.filter(
173762
+ const [l, c] = ve(""), u = i.filter(
173759
173763
  (d) => !l || d.label.toLowerCase().includes(l.toLowerCase())
173760
173764
  );
173761
173765
  return /* @__PURE__ */ G(he.Root, { children: [
@@ -173789,7 +173793,7 @@ const Wq = [
173789
173793
  sortSelections: r,
173790
173794
  updateSortSelections: a
173791
173795
  }) => {
173792
- const [i, o] = Te(!1);
173796
+ const [i, o] = ve(!1);
173793
173797
  return /* @__PURE__ */ g(
173794
173798
  Kq.Provider,
173795
173799
  {
@@ -173967,11 +173971,11 @@ function Fke() {
173967
173971
  }
173968
173972
  function Xq(e) {
173969
173973
  var s;
173970
- const { sortOptions: t, defaultSort: n, onSortChange: r } = e, [a, i] = Te(n), o = (s = t.find((l) => l.value === a)) == null ? void 0 : s.label;
173974
+ const { sortOptions: t, defaultSort: n, onSortChange: r } = e, [a, i] = ve(n), o = (s = t.find((l) => l.value === a)) == null ? void 0 : s.label;
173971
173975
  return /* @__PURE__ */ G(he.Root, { children: [
173972
173976
  /* @__PURE__ */ g(he.Trigger, { asChild: !0, children: /* @__PURE__ */ G(Je, { size: "md", variant: "outline", children: [
173973
173977
  /* @__PURE__ */ g(me, { name: "arrows-updown", size: "sm" }),
173974
- /* @__PURE__ */ g(be, { truncate: !0, children: o || "Sort" }),
173978
+ /* @__PURE__ */ g(Te, { truncate: !0, children: o || "Sort" }),
173975
173979
  /* @__PURE__ */ g(me, { name: "nav-arrow-down", size: "sm" })
173976
173980
  ] }) }),
173977
173981
  /* @__PURE__ */ g(he.Content, { align: "end", className: "min-w-56", children: t.map((l) => /* @__PURE__ */ g(
@@ -173994,7 +173998,7 @@ function Uke({
173994
173998
  onSortChange: n,
173995
173999
  children: r
173996
174000
  }) {
173997
- const [a, i] = Te([]);
174001
+ const [a, i] = ve([]);
173998
174002
  return /* @__PURE__ */ g(
173999
174003
  kke,
174000
174004
  {
@@ -174039,7 +174043,7 @@ const Bke = ({ displayLabel: e, buttonLabel: t }) => {
174039
174043
  return /* @__PURE__ */ g("h2", { className: $("text-cn-size-3 leading-none text-cn-1 font-medium", n), children: t });
174040
174044
  },
174041
174045
  Description: function({ children: t }) {
174042
- return /* @__PURE__ */ g(be, { as: "div", color: "foreground-3", children: t });
174046
+ return /* @__PURE__ */ g(Te, { as: "div", color: "foreground-3", children: t });
174043
174047
  },
174044
174048
  Form: function({ className: t, ...n }) {
174045
174049
  return /* @__PURE__ */ g("div", { className: $("flex flex-col max-w-xl space-y-cn-xl", t), ...n });
@@ -174090,7 +174094,7 @@ function qke({
174090
174094
  rows: u,
174091
174095
  cols: d
174092
174096
  }) {
174093
- const [p, m] = Te(
174097
+ const [p, m] = ve(
174094
174098
  o ?? (t === "multiple" ? [] : void 0)
174095
174099
  ), _ = i ?? p, f = i !== void 0, E = (S) => {
174096
174100
  if (l) return;
@@ -174303,7 +174307,7 @@ const w2 = ge(
174303
174307
  ...l
174304
174308
  }, c) => {
174305
174309
  const u = () => /* @__PURE__ */ g(
174306
- be,
174310
+ Te,
174307
174311
  {
174308
174312
  variant: "caption-normal",
174309
174313
  color: "foreground-3",
@@ -174359,7 +174363,7 @@ const s$ = ge(
174359
174363
  s$.displayName = "TableCell";
174360
174364
  const l$ = ge(
174361
174365
  ({ className: e, ...t }, n) => /* @__PURE__ */ g(
174362
- be,
174366
+ Te,
174363
174367
  {
174364
174368
  as: "caption",
174365
174369
  ref: n,
@@ -176214,7 +176218,7 @@ const S4 = (e) => {
176214
176218
  x
176215
176219
  ]
176216
176220
  ), M = PPe(A);
176217
- ve(() => {
176221
+ be(() => {
176218
176222
  var k;
176219
176223
  if (!M || !I)
176220
176224
  return;
@@ -176311,7 +176315,7 @@ const S4 = (e) => {
176311
176315
  }) => /* @__PURE__ */ G(he.Root, { children: [
176312
176316
  /* @__PURE__ */ g(he.Trigger, { asChild: !0, children: /* @__PURE__ */ G(Je, { variant: "outline", children: [
176313
176317
  "Columns",
176314
- /* @__PURE__ */ G(be, { color: "foreground-4", children: [
176318
+ /* @__PURE__ */ G(Te, { color: "foreground-4", children: [
176315
176319
  (t == null ? void 0 : t.length) || 0,
176316
176320
  "/",
176317
176321
  (e == null ? void 0 : e.length) || 0
@@ -176440,19 +176444,19 @@ const b$ = ({
176440
176444
  isLoading: n = !1,
176441
176445
  itemLayout: r = "horizontal"
176442
176446
  }) => {
176443
- const a = t ? typeof t == "string" ? /* @__PURE__ */ g(be, { color: "inherit", className: "break-words", children: t }, "label") : t : /* @__PURE__ */ g(be, { as: "span", color: "disabled", children: "empty" });
176447
+ const a = t ? typeof t == "string" ? /* @__PURE__ */ g(Te, { color: "inherit", className: "break-words", children: t }, "label") : t : /* @__PURE__ */ g(Te, { as: "span", color: "disabled", children: "empty" });
176444
176448
  return r === "vertical" ? /* @__PURE__ */ g(tt.Vertical, { gapY: "4xs", children: n ? /* @__PURE__ */ G(ut, { children: [
176445
176449
  /* @__PURE__ */ g(er.Typography, { className: "w-1/3" }),
176446
176450
  /* @__PURE__ */ g(er.Typography, { className: "w-2/3" })
176447
176451
  ] }) : /* @__PURE__ */ G(ut, { children: [
176448
- /* @__PURE__ */ g(be, { color: "foreground-1", variant: "body-normal", children: e }),
176449
- /* @__PURE__ */ g(be, { color: "foreground-3", variant: "body-normal", className: "break-all", children: a })
176452
+ /* @__PURE__ */ g(Te, { color: "foreground-1", variant: "body-normal", children: e }),
176453
+ /* @__PURE__ */ g(Te, { color: "foreground-3", variant: "body-normal", className: "break-all", children: a })
176450
176454
  ] }) }, e) : /* @__PURE__ */ g(tt.Grid, { flow: "row", gapX: "2xl", columns: "minmax(0, 200px) minmax(0, 1fr)", align: "start", children: n ? /* @__PURE__ */ G(ut, { children: [
176451
176455
  /* @__PURE__ */ g(er.Typography, { className: "w-full" }),
176452
176456
  /* @__PURE__ */ g(er.Typography, { className: "w-2/3" })
176453
176457
  ] }) : /* @__PURE__ */ G(ut, { children: [
176454
- /* @__PURE__ */ g(be, { color: "foreground-3", as: "dt", children: e }),
176455
- /* @__PURE__ */ g(be, { color: "foreground-1", as: "dd", children: a })
176458
+ /* @__PURE__ */ g(Te, { color: "foreground-3", as: "dt", children: e }),
176459
+ /* @__PURE__ */ g(Te, { color: "foreground-1", as: "dd", children: a })
176456
176460
  ] }) }, e);
176457
176461
  }, b4 = (e) => e >= 800, HPe = ({
176458
176462
  className: e,
@@ -176463,7 +176467,7 @@ const b$ = ({
176463
176467
  isLoading: i = !1,
176464
176468
  forceColumns: o = !1
176465
176469
  }) => {
176466
- const [s, l] = Te(o || r === "columns"), c = Le(null);
176470
+ const [s, l] = ve(o || r === "columns"), c = Le(null);
176467
176471
  uc(() => {
176468
176472
  if (o) return;
176469
176473
  const _ = c.current;
@@ -176495,7 +176499,7 @@ const b$ = ({
176495
176499
  if (!n || n.length === 0) return null;
176496
176500
  const d = s && n.length > 2, p = s ? h4(n)[0] : n, m = s ? h4(n)[1] : null;
176497
176501
  return /* @__PURE__ */ G(tt.Grid, { ref: c, gap: "md", className: $("group", e), children: [
176498
- /* @__PURE__ */ g(be, { variant: "heading-base", as: "h4", children: t }),
176502
+ /* @__PURE__ */ g(Te, { variant: "heading-base", as: "h4", children: t }),
176499
176503
  /* @__PURE__ */ G(
176500
176504
  tt.Grid,
176501
176505
  {
@@ -176514,8 +176518,8 @@ const b$ = ({
176514
176518
  /* @__PURE__ */ g(ra, { className: "group-last:hidden mb-cn-md" })
176515
176519
  ] });
176516
176520
  }, YPe = ({ data: e, isLoading: t = !1, gap: n = "3xs" }) => e.length ? /* @__PURE__ */ g(tt.Flex, { wrap: "wrap", gap: "3xl", children: e.map((r, a) => /* @__PURE__ */ G(tt.Vertical, { gap: n, children: [
176517
- /* @__PURE__ */ g(be, { color: "foreground-3", children: r.label }),
176518
- t ? /* @__PURE__ */ g(er.Typography, { className: "w-16" }) : /* @__PURE__ */ g(be, { as: "div", color: "foreground-1", children: r != null && r.value ? r.value : "-" })
176521
+ /* @__PURE__ */ g(Te, { color: "foreground-3", children: r.label }),
176522
+ t ? /* @__PURE__ */ g(er.Typography, { className: "w-16" }) : /* @__PURE__ */ g(Te, { as: "div", color: "foreground-1", children: r != null && r.value ? r.value : "-" })
176519
176523
  ] }, a)) }) : null, T$ = Bt({
176520
176524
  isTwoColumn: !1
176521
176525
  }), zPe = ({ children: e, isTwoColumn: t = !1 }) => {
@@ -176529,7 +176533,7 @@ const b$ = ({
176529
176533
  className: $("overflow-hidden", { "break-inside-avoid pb-[var(--cn-spacing-10)] last:pb-0": i }),
176530
176534
  children: [
176531
176535
  t ? /* @__PURE__ */ G(tt.Flex, { justify: "between", gap: "md", align: "start", children: [
176532
- /* @__PURE__ */ g(be, { as: "h2", variant: "heading-subsection", children: t }),
176536
+ /* @__PURE__ */ g(Te, { as: "h2", variant: "heading-subsection", children: t }),
176533
176537
  !!n && /* @__PURE__ */ g(ji, { className: "shrink-0", ...n, suffixIcon: "nav-arrow-right", children: o("component:widgets.viewMore", "View more") })
176534
176538
  ] }) : null,
176535
176539
  /* @__PURE__ */ g(
@@ -176675,8 +176679,8 @@ const WPe = Dt("cn-stacked-list-field", {
176675
176679
  disableTruncate: i = !1,
176676
176680
  ...o
176677
176681
  }) => /* @__PURE__ */ G("div", { className: $(WPe({ right: a }), e), ...o, children: [
176678
- t && /* @__PURE__ */ g(be, { className: "cn-stacked-list-field-title", as: "div", color: r, truncate: !i, children: t }),
176679
- n && /* @__PURE__ */ g(be, { as: "div", className: "select-none", truncate: !i, children: n })
176682
+ t && /* @__PURE__ */ g(Te, { className: "cn-stacked-list-field-title", as: "div", color: r, truncate: !i, children: t }),
176683
+ n && /* @__PURE__ */ g(Te, { as: "div", className: "select-none", truncate: !i, children: n })
176680
176684
  ] });
176681
176685
  A$.displayName = "StackedListField";
176682
176686
  const ha = {
@@ -176732,7 +176736,7 @@ function QPe({
176732
176736
  function XPe({ icon: e, title: t, actions: n }) {
176733
176737
  return /* @__PURE__ */ G("div", { className: "cn-studio-card-header", children: [
176734
176738
  e ?? /* @__PURE__ */ g(me, { size: "lg", name: "harness-plugins" }),
176735
- /* @__PURE__ */ g(be, { color: "foreground-1", className: "cn-studio-card-header-title truncate", variant: "body-strong", children: t }),
176739
+ /* @__PURE__ */ g(Te, { color: "foreground-1", className: "cn-studio-card-header-title truncate", variant: "body-strong", children: t }),
176736
176740
  n
176737
176741
  ] });
176738
176742
  }
@@ -176740,7 +176744,7 @@ function jPe({ children: e, className: t }) {
176740
176744
  return /* @__PURE__ */ g(Jd.div, { className: $("cn-studio-card-content", t), children: /* @__PURE__ */ g(Ese, { children: e }) });
176741
176745
  }
176742
176746
  function ZPe({ message: e }) {
176743
- return e ? /* @__PURE__ */ g(be, { className: "cn-studio-card-message", lineClamp: 2, color: "foreground-2", variant: "caption-normal", children: e }) : null;
176747
+ return e ? /* @__PURE__ */ g(Te, { className: "cn-studio-card-message", lineClamp: 2, color: "foreground-2", variant: "caption-normal", children: e }) : null;
176744
176748
  }
176745
176749
  const JPe = {
176746
176750
  hidden: {
@@ -176800,10 +176804,10 @@ function e4e({
176800
176804
  children: [
176801
176805
  /* @__PURE__ */ G("div", { className: "cn-studio-card-expand-button-top", children: [
176802
176806
  a ?? /* @__PURE__ */ g(me, { name: "harness-plugins", size: "lg" }),
176803
- /* @__PURE__ */ g(be, { color: "foreground-1", variant: "body-strong", className: "truncate", children: r })
176807
+ /* @__PURE__ */ g(Te, { color: "foreground-1", variant: "body-strong", className: "truncate", children: r })
176804
176808
  ] }),
176805
176809
  /* @__PURE__ */ G("div", { className: "cn-studio-card-expand-button-bottom", children: [
176806
- /* @__PURE__ */ G(be, { color: "foreground-1", variant: "body-single-line-code", children: [
176810
+ /* @__PURE__ */ G(Te, { color: "foreground-1", variant: "body-single-line-code", children: [
176807
176811
  "+",
176808
176812
  e,
176809
176813
  " more"
@@ -176831,11 +176835,11 @@ function n4e({ tagText: e, icon: t }) {
176831
176835
  const n = e.length > 12 ? `${e.slice(0, 12)}...` : e;
176832
176836
  return /* @__PURE__ */ G("div", { className: "cn-studio-card-tag", children: [
176833
176837
  t && /* @__PURE__ */ g(me, { name: t, size: "xs" }),
176834
- /* @__PURE__ */ g(be, { title: e, className: "text-cn-gray-outline", variant: "caption-single-line-normal", children: n })
176838
+ /* @__PURE__ */ g(Te, { title: e, className: "text-cn-gray-outline", variant: "caption-single-line-normal", children: n })
176835
176839
  ] });
176836
176840
  }
176837
176841
  function r4e({ children: e }) {
176838
- return /* @__PURE__ */ g("div", { className: "cn-studio-card-footer", children: typeof e == "string" ? /* @__PURE__ */ g(be, { color: "foreground-3", variant: "caption-normal", children: e }) : e });
176842
+ return /* @__PURE__ */ g("div", { className: "cn-studio-card-footer", children: typeof e == "string" ? /* @__PURE__ */ g(Te, { color: "foreground-3", variant: "caption-normal", children: e }) : e });
176839
176843
  }
176840
176844
  function a4e({ children: e }) {
176841
176845
  return /* @__PURE__ */ g(ut, { children: e });
@@ -176855,14 +176859,14 @@ function i4e({
176855
176859
  type: "button",
176856
176860
  className: $("cn-studio-card-button", "bg-cn-3 shadow-cn-none self-start", t),
176857
176861
  children: [
176858
- /* @__PURE__ */ g(be, { color: "foreground-1", variant: "body-single-line-code", children: e }),
176862
+ /* @__PURE__ */ g(Te, { color: "foreground-1", variant: "body-single-line-code", children: e }),
176859
176863
  r && /* @__PURE__ */ g(me, { className: "text-cn-2", name: r, size: "sm" })
176860
176864
  ]
176861
176865
  }
176862
176866
  );
176863
176867
  }
176864
176868
  function o4e({ children: e }) {
176865
- return /* @__PURE__ */ g("div", { className: "cn-studio-card-code-preview", children: /* @__PURE__ */ g(be, { variant: "body-code", children: e }) });
176869
+ return /* @__PURE__ */ g("div", { className: "cn-studio-card-code-preview", children: /* @__PURE__ */ g(Te, { variant: "body-code", children: e }) });
176866
176870
  }
176867
176871
  const s4e = {
176868
176872
  Root: QPe,
@@ -176877,8 +176881,8 @@ const s4e = {
176877
176881
  CustomActions: a4e,
176878
176882
  CodePreview: o4e
176879
176883
  }, l4e = ({ text: e, typingSpeed: t = 50, delay: n = 0, onComplete: r, ...a }) => {
176880
- const [i, o] = Te(""), [s, l] = Te(0), [c, u] = Te(!1), d = Le(!1);
176881
- return ve(() => {
176884
+ const [i, o] = ve(""), [s, l] = ve(0), [c, u] = ve(!1), d = Le(!1);
176885
+ return be(() => {
176882
176886
  if (d.current) {
176883
176887
  o(e);
176884
176888
  return;
@@ -176888,7 +176892,7 @@ const s4e = {
176888
176892
  u(!0);
176889
176893
  }, n);
176890
176894
  return () => clearTimeout(p);
176891
- }, [e, n]), ve(() => {
176895
+ }, [e, n]), be(() => {
176892
176896
  if (c)
176893
176897
  if (s < e.length) {
176894
176898
  const p = setTimeout(() => {
@@ -176896,7 +176900,7 @@ const s4e = {
176896
176900
  }, t);
176897
176901
  return () => clearTimeout(p);
176898
176902
  } else s === e.length && (d.current = !0, r == null || r());
176899
- }, [s, c, e, t, r]), /* @__PURE__ */ g(be, { lineClamp: 1, ...a, children: i });
176903
+ }, [s, c, e, t, r]), /* @__PURE__ */ g(Te, { lineClamp: 1, ...a, children: i });
176900
176904
  }, c4e = Qa(l4e), u4e = {
176901
176905
  muted: "bg-cn-gray-primary",
176902
176906
  info: "bg-cn-brand-primary",
@@ -176960,7 +176964,7 @@ const s4e = {
176960
176964
  }
176961
176965
  ), _ = o ? /* @__PURE__ */ g($a, { delay: 200, hideArrow: !0, content: o, ...s, children: m }) : m;
176962
176966
  return /* @__PURE__ */ G("div", { className: "grid gap-cn-2xs", children: [
176963
- i ? /* @__PURE__ */ g(be, { as: "label", variant: "body-strong", color: "foreground-1", children: i }) : null,
176967
+ i ? /* @__PURE__ */ g(Te, { as: "label", variant: "body-strong", color: "foreground-1", children: i }) : null,
176964
176968
  _
176965
176969
  ] });
176966
176970
  }
@@ -177079,13 +177083,13 @@ const b4e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
177079
177083
  ...l,
177080
177084
  children: [
177081
177085
  d && /* @__PURE__ */ g(me, { name: n, size: "md" }),
177082
- /* @__PURE__ */ g(be, { className: "flex-1", align: "left", color: "inherit", truncate: !0, children: t }),
177086
+ /* @__PURE__ */ g(Te, { className: "flex-1", align: "left", color: "inherit", truncate: !0, children: t }),
177083
177087
  p
177084
177088
  ]
177085
177089
  }
177086
177090
  ) : /* @__PURE__ */ G(tt.Flex, { ref: c, className: m, as: "button", ...l, children: [
177087
177091
  d && /* @__PURE__ */ g(me, { name: n, size: "md" }),
177088
- /* @__PURE__ */ g(be, { className: "flex-1", align: "left", color: "inherit", truncate: !0, children: t }),
177092
+ /* @__PURE__ */ g(Te, { className: "flex-1", align: "left", color: "inherit", truncate: !0, children: t }),
177089
177093
  p
177090
177094
  ] });
177091
177095
  }
@@ -177209,8 +177213,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177209
177213
  showGrayColor: s,
177210
177214
  showAccessibilityThemeOptions: l = !1
177211
177215
  }) => {
177212
- const [c, u] = Te(Ml.Blue), [d, p] = Te(rg.First), m = window.matchMedia("(prefers-color-scheme: dark)"), [_, f] = Te(m.matches ? Oa.Dark : Oa.Light);
177213
- ve(() => {
177216
+ const [c, u] = ve(Ml.Blue), [d, p] = ve(rg.First), m = window.matchMedia("(prefers-color-scheme: dark)"), [_, f] = ve(m.matches ? Oa.Dark : Oa.Light);
177217
+ be(() => {
177214
177218
  const v = () => {
177215
177219
  f(m.matches ? Oa.Dark : Oa.Light);
177216
177220
  };
@@ -177225,8 +177229,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177225
177229
  /* @__PURE__ */ g(st.Header, { children: /* @__PURE__ */ g(st.Title, { children: "Appearance settings" }) }),
177226
177230
  /* @__PURE__ */ G(st.Body, { children: [
177227
177231
  /* @__PURE__ */ G("div", { className: "flex flex-col", children: [
177228
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Mode" }),
177229
- /* @__PURE__ */ g(be, { className: "mt-cn-2xs", color: "foreground-3", children: "Choose Dark mode for low light or Light mode for bright spaces." }),
177232
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Mode" }),
177233
+ /* @__PURE__ */ g(Te, { className: "mt-cn-2xs", color: "foreground-3", children: "Choose Dark mode for low light or Light mode for bright spaces." }),
177230
177234
  /* @__PURE__ */ g("div", { className: "mt-cn-md gap-cn-md grid grid-cols-2", children: Object.entries(Oa).map(([v, N]) => {
177231
177235
  if (!i && N === Oa.System) return null;
177232
177236
  const R = N === Oa.System ? _ : N;
@@ -177262,7 +177266,7 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177262
177266
  }
177263
177267
  )
177264
177268
  ] }),
177265
- /* @__PURE__ */ g(be, { as: "span", color: "foreground-1", children: v })
177269
+ /* @__PURE__ */ g(Te, { as: "span", color: "foreground-1", children: v })
177266
177270
  ]
177267
177271
  },
177268
177272
  v
@@ -177273,8 +177277,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177273
177277
  /* @__PURE__ */ g(ra, { className: "bg-cn-2 h-px" }),
177274
177278
  /* @__PURE__ */ G("div", { className: "gap-x-cn-2xl grid grid-cols-[246px_1fr]", children: [
177275
177279
  /* @__PURE__ */ G("div", { children: [
177276
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Contrast" }),
177277
- /* @__PURE__ */ g(be, { className: "mt-cn-2xs", color: "foreground-3", children: "High contrast improves readability, Dimmer mode reduces glare." })
177280
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Contrast" }),
177281
+ /* @__PURE__ */ g(Te, { className: "mt-cn-2xs", color: "foreground-3", children: "High contrast improves readability, Dimmer mode reduces glare." })
177278
177282
  ] }),
177279
177283
  /* @__PURE__ */ g(
177280
177284
  ed,
@@ -177289,8 +177293,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177289
177293
  /* @__PURE__ */ g(ra, { className: "bg-cn-2 h-px" }),
177290
177294
  /* @__PURE__ */ G("div", { className: "gap-x-cn-2xl grid grid-cols-[246px_1fr]", children: [
177291
177295
  /* @__PURE__ */ G("div", { children: [
177292
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Color adjustment" }),
177293
- /* @__PURE__ */ g(be, { className: "mt-cn-2xs", color: "foreground-3", children: "Adjust colors for different types of color blindness." })
177296
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Color adjustment" }),
177297
+ /* @__PURE__ */ g(Te, { className: "mt-cn-2xs", color: "foreground-3", children: "Adjust colors for different types of color blindness." })
177294
177298
  ] }),
177295
177299
  /* @__PURE__ */ g(
177296
177300
  ed,
@@ -177307,8 +177311,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177307
177311
  /* @__PURE__ */ g(ra, { className: "bg-cn-2 h-px" }),
177308
177312
  /* @__PURE__ */ G("div", { className: "gap-x-cn-2xl grid grid-cols-[246px_1fr]", children: [
177309
177313
  /* @__PURE__ */ G("div", { children: [
177310
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Accent color" }),
177311
- /* @__PURE__ */ g(be, { className: "mt-cn-2xs", color: "foreground-3", children: "Select your application accent color." })
177314
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Accent color" }),
177315
+ /* @__PURE__ */ g(Te, { className: "mt-cn-2xs", color: "foreground-3", children: "Select your application accent color." })
177312
177316
  ] }),
177313
177317
  /* @__PURE__ */ g("div", { className: "gap-cn-2xs flex flex-wrap", children: Object.values(Ml).map((v) => /* @__PURE__ */ g(
177314
177318
  "button",
@@ -177338,8 +177342,8 @@ const A4e = Object.entries(V4).map(([e, t]) => ({
177338
177342
  /* @__PURE__ */ g(ra, { className: "bg-cn-2 h-px" }),
177339
177343
  /* @__PURE__ */ G("div", { className: "gap-x-cn-2xl grid grid-cols-[246px_1fr]", children: [
177340
177344
  /* @__PURE__ */ G("div", { children: [
177341
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Gray color" }),
177342
- /* @__PURE__ */ g(be, { className: "mt-cn-2xs", color: "foreground-3", children: "Select your application gray color." })
177345
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Gray color" }),
177346
+ /* @__PURE__ */ g(Te, { className: "mt-cn-2xs", color: "foreground-3", children: "Select your application gray color." })
177343
177347
  ] }),
177344
177348
  /* @__PURE__ */ g("div", { className: "gap-cn-2xs flex flex-wrap", children: Object.values(rg).map((v) => /* @__PURE__ */ g(
177345
177349
  "button",
@@ -177393,8 +177397,8 @@ const D4e = [
177393
177397
  onChange: i,
177394
177398
  children: o
177395
177399
  }) => {
177396
- const [s, l] = Te(null);
177397
- return ve(() => {
177400
+ const [s, l] = ve(null);
177401
+ return be(() => {
177398
177402
  t ? l(t) : e && l(e);
177399
177403
  }, [e, t]), /* @__PURE__ */ G(st.Root, { open: r, onOpenChange: a, children: [
177400
177404
  !!o && /* @__PURE__ */ g(st.Trigger, { children: o }),
@@ -177463,7 +177467,7 @@ const x4e = Dt("cn-input-container", {
177463
177467
  },
177464
177468
  d
177465
177469
  ]);
177466
- ve(() => {
177470
+ be(() => {
177467
177471
  if (s && p.current) {
177468
177472
  const y = setTimeout(() => {
177469
177473
  var I;
@@ -177476,7 +177480,7 @@ const x4e = Dt("cn-input-container", {
177476
177480
  className: $("cn-input-prefix", (v = a.props) == null ? void 0 : v.className)
177477
177481
  }) : /* @__PURE__ */ g(C4, { isPrefix: !0, className: l, children: a }), b = E ? Oo(o, {
177478
177482
  className: $("mr-cn-2xs whitespace-nowrap", (N = o.props) == null ? void 0 : N.className)
177479
- }) : o ? /* @__PURE__ */ g(be, { variant: "caption-strong", color: "foreground-3", wrap: "nowrap", className: "mr-cn-2xs", children: o }) : null, T = f ? Oo(i, {
177483
+ }) : o ? /* @__PURE__ */ g(Te, { variant: "caption-strong", color: "foreground-3", wrap: "nowrap", className: "mr-cn-2xs", children: o }) : null, T = f ? Oo(i, {
177480
177484
  className: $("cn-input-suffix", (R = i.props) == null ? void 0 : R.className)
177481
177485
  }) : /* @__PURE__ */ g(C4, { className: c, children: i });
177482
177486
  return /* @__PURE__ */ G("div", { className: $(x4e({ size: t, theme: e }), r), children: [
@@ -177664,7 +177668,7 @@ const Ti = ge(
177664
177668
  defaultValue: _,
177665
177669
  ...f
177666
177670
  }, E) => {
177667
- const S = p ?? (typeof _ == "string" ? _ : ""), [b, T] = Te(S), v = Le(null), N = Fs([
177671
+ const S = p ?? (typeof _ == "string" ? _ : ""), [b, T] = ve(S), v = Le(null), N = Fs([
177668
177672
  (H) => {
177669
177673
  H && (v.current = H);
177670
177674
  },
@@ -177674,12 +177678,12 @@ const Ti = ge(
177674
177678
  r == null || r(H);
177675
177679
  }, I)
177676
177680
  );
177677
- ve(() => {
177681
+ be(() => {
177678
177682
  const H = x.current;
177679
177683
  return () => {
177680
177684
  H.cancel();
177681
177685
  };
177682
- }, []), ve(() => {
177686
+ }, []), be(() => {
177683
177687
  p !== void 0 && T(p);
177684
177688
  }, [p]);
177685
177689
  const w = Pe(
@@ -178178,7 +178182,7 @@ function kc({
178178
178182
  successMessage: l,
178179
178183
  errorMessage: c
178180
178184
  }) {
178181
- const { t: u } = Fn(), [d, p] = Te(t), [m, _] = Te(n), f = Le(null), [E, S] = Te(!1), [b, T] = Te(!1), v = r && E, N = Pe(() => T((y) => !y), []);
178185
+ const { t: u } = Fn(), [d, p] = ve(t), [m, _] = ve(n), f = Le(null), [E, S] = ve(!1), [b, T] = ve(!1), v = r && E, N = Pe(() => T((y) => !y), []);
178182
178186
  z4(
178183
178187
  f,
178184
178188
  (y) => {
@@ -178214,7 +178218,7 @@ function kc({
178214
178218
  /* @__PURE__ */ G(tt.Flex, { align: "center", gap: "2xs", justify: "between", className: "cn-toast-title", children: [
178215
178219
  /* @__PURE__ */ G(tt.Horizontal, { className: "flex-1", align: "center", gap: "xs", children: [
178216
178220
  R,
178217
- /* @__PURE__ */ g(be, { variant: "body-strong", color: "inherit", children: m })
178221
+ /* @__PURE__ */ g(Te, { variant: "body-strong", color: "inherit", children: m })
178218
178222
  ] }),
178219
178223
  o && /* @__PURE__ */ g(
178220
178224
  Je,
@@ -178238,7 +178242,7 @@ function kc({
178238
178242
  className: $("cn-toast-description-container", {
178239
178243
  "cn-toast-description-container-expanded": b
178240
178244
  }),
178241
- children: /* @__PURE__ */ g(be, { variant: "body-normal", className: $("cn-toast-description"), children: r })
178245
+ children: /* @__PURE__ */ g(Te, { variant: "body-normal", className: $("cn-toast-description"), children: r })
178242
178246
  }
178243
178247
  ),
178244
178248
  v && /* @__PURE__ */ G(ut, { children: [
@@ -178420,7 +178424,7 @@ function h6e({ duration: e = 5e3, className: t }) {
178420
178424
  );
178421
178425
  }
178422
178426
  const b6e = () => {
178423
- const [e, t] = Te(!1), n = Le(null);
178427
+ const [e, t] = ve(!1), n = Le(null);
178424
178428
  return /* @__PURE__ */ g(
178425
178429
  "div",
178426
178430
  {
@@ -178435,7 +178439,7 @@ const b6e = () => {
178435
178439
  const i = !a;
178436
178440
  return !i && n.current && n.current.scrollTo({ top: 0, behavior: "smooth" }), i;
178437
178441
  });
178438
- }, children: /* @__PURE__ */ g(me, { name: "expand-sidebar", skipSize: !0 }) }) }) : /* @__PURE__ */ g(be, { children: "Chat" })
178442
+ }, children: /* @__PURE__ */ g(me, { name: "expand-sidebar", skipSize: !0 }) }) }) : /* @__PURE__ */ g(Te, { children: "Chat" })
178439
178443
  }
178440
178444
  );
178441
178445
  }, T6e = ({
@@ -178443,7 +178447,7 @@ const b6e = () => {
178443
178447
  onRouteChange: t
178444
178448
  }) => {
178445
178449
  const { location: n } = fr();
178446
- ve(() => {
178450
+ be(() => {
178447
178451
  const r = e.find((a) => a.to === n.pathname);
178448
178452
  r && t(r);
178449
178453
  }, [n]);
@@ -178832,7 +178836,7 @@ function I4({
178832
178836
  ] })) });
178833
178837
  }
178834
178838
  function Dm({ item: e, isPinned: t }) {
178835
- const [n, r] = Te(!0), { setRecent: a, setPinned: i } = P$(), o = Pe(
178839
+ const [n, r] = ve(!0), { setRecent: a, setPinned: i } = P$(), o = Pe(
178836
178840
  (c, u) => i(c, u),
178837
178841
  [i]
178838
178842
  ), s = Pe((c) => a(c, !0), [a]), l = xe(() => e.permanentlyPinned ? [] : [
@@ -178868,7 +178872,7 @@ function Dm({ item: e, isPinned: t }) {
178868
178872
  }
178869
178873
  const A6e = ({ routes: e }) => {
178870
178874
  var y, I;
178871
- const { useParams: t } = fr(), n = t(), { recentMenu: r, setRecent: a, pinnedMenu: i, setNavLinks: o } = P$(), { state: s } = _i(), { t: l } = Fn(), [c, u] = Te(!1), [d, p] = Te(!1), [m, _] = Te(!1), f = xe(() => s === "collapsed", [s]), E = { ...n, mode: "all" }, S = xe(() => R6e({ t: l, routes: e, params: E }), [l]), b = xe(() => N6e({ t: l, routes: e, params: E }), [l]), T = xe(() => y6e(), [l]), v = xe(
178875
+ const { useParams: t } = fr(), n = t(), { recentMenu: r, setRecent: a, pinnedMenu: i, setNavLinks: o } = P$(), { state: s } = _i(), { t: l } = Fn(), [c, u] = ve(!1), [d, p] = ve(!1), [m, _] = ve(!1), f = xe(() => s === "collapsed", [s]), E = { ...n, mode: "all" }, S = xe(() => R6e({ t: l, routes: e, params: E }), [l]), b = xe(() => N6e({ t: l, routes: e, params: E }), [l]), T = xe(() => y6e(), [l]), v = xe(
178872
178876
  () => [
178873
178877
  ...T,
178874
178878
  ...S.flatMap((x) => x.items),
@@ -178876,7 +178880,7 @@ const A6e = ({ routes: e }) => {
178876
178880
  ],
178877
178881
  [T, S, b]
178878
178882
  );
178879
- ve(() => {
178883
+ be(() => {
178880
178884
  var A, M, D;
178881
178885
  const x = localStorage.getItem("nav-items");
178882
178886
  let w;
@@ -179141,7 +179145,7 @@ const wv = { Root: x6e, LeftPanel: L6e, LeftSubPanel: M6e, Header: k6e, SubHeade
179141
179145
  actions: c,
179142
179146
  headerActions: u
179143
179147
  }) => {
179144
- const d = typeof n == "string" ? /* @__PURE__ */ g(be, { as: "h1", variant: "heading-section", truncate: !0, children: n }) : n;
179148
+ const d = typeof n == "string" ? /* @__PURE__ */ g(Te, { as: "h1", variant: "heading-section", truncate: !0, children: n }) : n;
179145
179149
  return /* @__PURE__ */ G(tt.Vertical, { gap: "md", className: $("w-full", o ? "mb-cn-md" : "mb-cn-2xl"), children: [
179146
179150
  (!!e || !!u) && /* @__PURE__ */ G(tt.Horizontal, { className: "h-cn-9", children: [
179147
179151
  !!e && /* @__PURE__ */ g(ji, { prefixIcon: !0, ...e.linkProps, children: e.linkText }),
@@ -179163,7 +179167,7 @@ const wv = { Root: x6e, LeftPanel: L6e, LeftSubPanel: M6e, Header: k6e, SubHeade
179163
179167
  ] }),
179164
179168
  !!c && /* @__PURE__ */ g(vs, { className: "flex-1", children: c })
179165
179169
  ] }),
179166
- !!i && /* @__PURE__ */ g(be, { children: i }),
179170
+ !!i && /* @__PURE__ */ g(Te, { children: i }),
179167
179171
  o
179168
179172
  ] });
179169
179173
  };
@@ -179207,7 +179211,7 @@ const H6e = ({
179207
179211
  ] });
179208
179212
  };
179209
179213
  function q6e({ selectedFile: e, onFileChange: t, error: n, accept: r }) {
179210
- const a = Le(null), [i, o] = Te(!1), s = (p) => {
179214
+ const a = Le(null), [i, o] = ve(!1), s = (p) => {
179211
179215
  o(!0), p.target.files && p.target.files.length > 0 && t(p.target.files[0]);
179212
179216
  }, l = () => {
179213
179217
  a.current && a.current.click();
@@ -179219,8 +179223,8 @@ function q6e({ selectedFile: e, onFileChange: t, error: n, accept: r }) {
179219
179223
  /* @__PURE__ */ G(tt.Flex, { direction: "row", gap: "xs", align: "center", children: [
179220
179224
  /* @__PURE__ */ g("div", { className: "p-cn-xs bg-cn-1 rounded border", children: /* @__PURE__ */ g(me, { name: "empty-page", size: "lg" }) }),
179221
179225
  /* @__PURE__ */ G(tt.Vertical, { align: "start", gap: "none", children: [
179222
- /* @__PURE__ */ g(be, { variant: "body-strong", color: "foreground-1", children: e == null ? void 0 : e.name }),
179223
- /* @__PURE__ */ G(be, { variant: "body-normal", color: "foreground-3", children: [
179226
+ /* @__PURE__ */ g(Te, { variant: "body-strong", color: "foreground-1", children: e == null ? void 0 : e.name }),
179227
+ /* @__PURE__ */ G(Te, { variant: "body-normal", color: "foreground-3", children: [
179224
179228
  Math.round((e == null ? void 0 : e.size) / 1024),
179225
179229
  " KB"
179226
179230
  ] })
@@ -179239,15 +179243,15 @@ function q6e({ selectedFile: e, onFileChange: t, error: n, accept: r }) {
179239
179243
  },
179240
179244
  children: i ? /* @__PURE__ */ G("div", { className: "gap-cn-xs flex flex-col items-center", children: [
179241
179245
  /* @__PURE__ */ g(me, { className: "mb-cn-md animate-spin", name: "loader", size: "xl" }),
179242
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Loading..." })
179246
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Loading..." })
179243
179247
  ] }) : /* @__PURE__ */ G("div", { className: "gap-cn-xs flex flex-col items-center", onClick: l, role: "button", tabIndex: 0, children: [
179244
179248
  /* @__PURE__ */ g(me, { name: "cloud-upload", size: "xl", className: "mb-cn-md" }),
179245
- /* @__PURE__ */ g(be, { variant: "heading-base", children: "Click to browse or drag and drop a file" }),
179246
- /* @__PURE__ */ g(be, { variant: "body-single-line-normal", children: "Up to 50MB" })
179249
+ /* @__PURE__ */ g(Te, { variant: "heading-base", children: "Click to browse or drag and drop a file" }),
179250
+ /* @__PURE__ */ g(Te, { variant: "body-single-line-normal", children: "Up to 50MB" })
179247
179251
  ] })
179248
179252
  }
179249
179253
  ),
179250
- n && /* @__PURE__ */ g(be, { color: "danger", className: "mt-cn-3xs", children: n }),
179254
+ n && /* @__PURE__ */ g(Te, { color: "danger", className: "mt-cn-3xs", children: n }),
179251
179255
  /* @__PURE__ */ g(
179252
179256
  vc,
179253
179257
  {
@@ -179279,10 +179283,10 @@ const B$ = ge(
179279
179283
  className: d,
179280
179284
  ...p
179281
179285
  }, m) => {
179282
- const _ = Le(null), f = Le(null), E = Le(null), [S, b] = Te(""), [T, v] = Te(!1), N = Pe(() => {
179286
+ const _ = Le(null), f = Le(null), E = Le(null), [S, b] = ve(""), [T, v] = ve(!1), N = Pe(() => {
179283
179287
  f.current && (v(!1), b(""));
179284
179288
  }, []);
179285
- ve(() => {
179289
+ be(() => {
179286
179290
  if (S) {
179287
179291
  const D = S.replace(n, "");
179288
179292
  i == null || i(D);
@@ -179334,7 +179338,7 @@ const B$ = ge(
179334
179338
  const D = _.current, B = f.current;
179335
179339
  D && B && (nE(D).startsWith(n) || (b(""), v(!1)));
179336
179340
  }, [n]), M = () => a ? /* @__PURE__ */ g(ta.Loading, { className: "min-w-52 px-cn-xs py-cn-md text-cn-3", children: u || /* @__PURE__ */ g("div", { className: "grid place-content-center space-x-cn-xs", children: /* @__PURE__ */ g(me, { className: "animate-spin", name: "loader" }) }) }) : r.length === 0 ? /* @__PURE__ */ g(ta.Empty, { className: "min-w-max p-cn-xs", children: c }) : /* @__PURE__ */ g(ta.Group, { className: "min-w-52 max-w-min overflow-auto", children: r.map((D) => /* @__PURE__ */ g(ta.Item, { value: D.value, onSelect: x, children: l ? l(D) : D.label ?? D.value }, D.id)) });
179337
- return ve(() => {
179341
+ return be(() => {
179338
179342
  const D = _.current, B = f.current;
179339
179343
  return D == null || D.addEventListener("keydown", y), D == null || D.addEventListener("blur", N), document == null || document.addEventListener("selectionchange", A), B == null || B.addEventListener("mousedown", w), () => {
179340
179344
  D == null || D.removeEventListener("keydown", y), D == null || D.removeEventListener("blur", N), document == null || document.removeEventListener("selectionchange", A), B == null || B.removeEventListener("mousedown", w);
@@ -179537,7 +179541,7 @@ const T5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
179537
179541
  Table: jn,
179538
179542
  Tabs: xi,
179539
179543
  Tag: qn,
179540
- Text: be,
179544
+ Text: Te,
179541
179545
  TextInput: Dp,
179542
179546
  Textarea: kd,
179543
179547
  ThemeDialog: O4e,
@@ -179615,7 +179619,7 @@ export {
179615
179619
  ia as Q,
179616
179620
  MG as R,
179617
179621
  NT as S,
179618
- be as T,
179622
+ Te as T,
179619
179623
  _8 as U,
179620
179624
  Jl as V,
179621
179625
  L9 as W,
@@ -179791,4 +179795,4 @@ export {
179791
179795
  Nse as y,
179792
179796
  xi as z
179793
179797
  };
179794
- //# sourceMappingURL=index-BHH9x1eJ.js.map
179798
+ //# sourceMappingURL=index-CHvN8Aah.js.map