@starasia/admin 8.25.0 → 8.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -342,15 +342,15 @@ function Zc({
342
342
  logoutButton: g
343
343
  }) {
344
344
  var Pe, et;
345
- const [x] = qt(), W = x.get("embed") === "true", b = Nn(), { badges: B } = Ti(), F = Ar(), z = St(), w = !Fe("md"), [I, R] = O(!1), [C, L] = O(!1), [H, V] = O(!1), [j, q] = O(!1), [ee, fe] = O(
345
+ const [x] = qt(), W = x.get("embed") === "true", b = Nn(), { badges: B } = Ti(), F = Ar(), z = St(), w = !Fe("md"), [I, R] = O(!1), [C, L] = O(!1), [H, V] = O(!1), [j, q] = O(!1), [te, me] = O(
346
346
  () => new Set(an)
347
- ), [me, te] = O(null), { selectedGroupId: P, setSelectedGroupId: U } = _n();
347
+ ), [ue, ee] = O(null), { selectedGroupId: P, setSelectedGroupId: U } = _n();
348
348
  Y(() => {
349
- an = ee;
350
- }, [ee]);
351
- const he = le(null), De = le(null);
349
+ an = te;
350
+ }, [te]);
351
+ const fe = le(null), De = le(null);
352
352
  Y(() => {
353
- const S = he.current;
353
+ const S = fe.current;
354
354
  if (!S) return;
355
355
  const _ = () => {
356
356
  dt || (Bt = S.scrollTop);
@@ -358,7 +358,7 @@ function Zc({
358
358
  return S.addEventListener("scroll", _), () => S.removeEventListener("scroll", _);
359
359
  }, []);
360
360
  const se = () => {
361
- const S = he.current;
361
+ const S = fe.current;
362
362
  S && Bt > 0 && (dt = !0, S.scrollTop = Bt, requestAnimationFrame(() => {
363
363
  dt = !1;
364
364
  }));
@@ -372,7 +372,7 @@ function Zc({
372
372
  }, []), at(() => {
373
373
  b.menus.length > 0 && (Bt > 0 ? se() : requestAnimationFrame(() => {
374
374
  var _;
375
- const S = (_ = he.current) == null ? void 0 : _.querySelector(
375
+ const S = (_ = fe.current) == null ? void 0 : _.querySelector(
376
376
  "[data-menu-active='true']"
377
377
  );
378
378
  S && S.scrollIntoView({ block: "center", behavior: "instant" });
@@ -382,7 +382,7 @@ function Zc({
382
382
  const S = setTimeout(se, 0), _ = setTimeout(se, 50), Q = setTimeout(se, 100), A = setTimeout(se, 200), Z = setTimeout(() => {
383
383
  dt = !1;
384
384
  }, 300), $ = setTimeout(() => {
385
- const G = he.current, T = G == null ? void 0 : G.querySelector("[data-menu-active='true']");
385
+ const G = fe.current, T = G == null ? void 0 : G.querySelector("[data-menu-active='true']");
386
386
  if (G && T) {
387
387
  const ge = G.getBoundingClientRect(), Me = T.getBoundingClientRect();
388
388
  Me.top >= ge.top && Me.bottom <= ge.bottom || T.scrollIntoView({ block: "center", behavior: "smooth" });
@@ -419,7 +419,7 @@ function Zc({
419
419
  var _;
420
420
  const S = (Q) => {
421
421
  var A;
422
- (A = Q.children) != null && A.some((Z) => z.pathname.startsWith(Z.to)) && fe((Z) => {
422
+ (A = Q.children) != null && A.some((Z) => z.pathname.startsWith(Z.to)) && me((Z) => {
423
423
  const $ = new Set(Z);
424
424
  return $.add(Q.id), $;
425
425
  });
@@ -429,7 +429,7 @@ function Zc({
429
429
  }), (_ = b.menuBottom) == null || _.forEach(S);
430
430
  }, [z.pathname, b.menus, b.menuBottom]);
431
431
  const Ye = (S) => {
432
- fe((_) => {
432
+ me((_) => {
433
433
  const Q = new Set(_);
434
434
  return Q.has(S) ? Q.delete(S) : Q.add(S), Q;
435
435
  });
@@ -451,7 +451,7 @@ function Zc({
451
451
  if (W)
452
452
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(cn, {}) });
453
453
  const Ze = (S) => {
454
- const _ = S.children && S.children.length > 0, Q = ee.has(S.id), A = _ ? S.children.some((G) => xe(G.to)) : xe(S.to), Z = hr(S.badge, B[S.id]), $ = !!Z && C && !w;
454
+ const _ = S.children && S.children.length > 0, Q = te.has(S.id), A = _ ? S.children.some((G) => xe(G.to)) : xe(S.to), Z = hr(S.badge, B[S.id]), $ = !!Z && C && !w;
455
455
  return /* @__PURE__ */ u("div", { "data-menu-active": A || void 0, children: [
456
456
  /* @__PURE__ */ u(
457
457
  "button",
@@ -460,7 +460,7 @@ function Zc({
460
460
  if (_)
461
461
  if (C && !w) {
462
462
  const T = G.currentTarget.getBoundingClientRect();
463
- te({
463
+ ee({
464
464
  item: S,
465
465
  top: T.top,
466
466
  left: T.right + 8
@@ -919,7 +919,7 @@ function Zc({
919
919
  /* @__PURE__ */ e(
920
920
  "div",
921
921
  {
922
- ref: he,
922
+ ref: fe,
923
923
  style: {
924
924
  flex: 1,
925
925
  overflowY: "auto",
@@ -1316,11 +1316,11 @@ function Zc({
1316
1316
  /* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(N, { primary: !0, onClick: ke, children: "Yes, Sure" }) })
1317
1317
  ] }) }) })
1318
1318
  ] }),
1319
- me && /* @__PURE__ */ u(ie, { children: [
1319
+ ue && /* @__PURE__ */ u(ie, { children: [
1320
1320
  /* @__PURE__ */ e(
1321
1321
  "div",
1322
1322
  {
1323
- onClick: () => te(null),
1323
+ onClick: () => ee(null),
1324
1324
  style: {
1325
1325
  position: "fixed",
1326
1326
  inset: 0,
@@ -1333,11 +1333,11 @@ function Zc({
1333
1333
  "div",
1334
1334
  {
1335
1335
  role: "dialog",
1336
- "aria-label": me.item.title,
1336
+ "aria-label": ue.item.title,
1337
1337
  style: {
1338
1338
  position: "fixed",
1339
- top: me.top,
1340
- left: me.left,
1339
+ top: ue.top,
1340
+ left: ue.left,
1341
1341
  zIndex: 61,
1342
1342
  minWidth: "13rem",
1343
1343
  maxWidth: "16rem",
@@ -1362,10 +1362,10 @@ function Zc({
1362
1362
  textTransform: "uppercase",
1363
1363
  letterSpacing: "0.05em"
1364
1364
  },
1365
- children: me.item.title
1365
+ children: ue.item.title
1366
1366
  }
1367
1367
  ),
1368
- (et = me.item.children) == null ? void 0 : et.map((S) => {
1368
+ (et = ue.item.children) == null ? void 0 : et.map((S) => {
1369
1369
  const _ = xe(S.to), Q = hr(
1370
1370
  S.badge,
1371
1371
  B[S.id]
@@ -1374,7 +1374,7 @@ function Zc({
1374
1374
  "button",
1375
1375
  {
1376
1376
  onClick: () => {
1377
- F(S.to), te(null);
1377
+ F(S.to), ee(null);
1378
1378
  },
1379
1379
  style: {
1380
1380
  width: "100%",
@@ -1938,11 +1938,11 @@ const Ui = (t, r) => {
1938
1938
  }
1939
1939
  ) }),
1940
1940
  /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Ie, { style: { minWidth: 200 }, children: C.map(({ title: L, icon: H, buttonProps: V, onClick: j }, q) => {
1941
- const ee = (V == null ? void 0 : V.tone) === "error" || (V == null ? void 0 : V.danger) === !0;
1941
+ const te = (V == null ? void 0 : V.tone) === "error" || (V == null ? void 0 : V.danger) === !0;
1942
1942
  return /* @__PURE__ */ e(
1943
1943
  je,
1944
1944
  {
1945
- intent: ee ? "danger" : void 0,
1945
+ intent: te ? "danger" : void 0,
1946
1946
  disabled: V == null ? void 0 : V.disabled,
1947
1947
  startIcon: H ? /* @__PURE__ */ e(M, { name: H }) : void 0,
1948
1948
  onClick: j,
@@ -2026,13 +2026,13 @@ const Ui = (t, r) => {
2026
2026
  return C.forEach((V, j) => {
2027
2027
  const q = V.order ?? 0;
2028
2028
  q >= H && (H = q, L = j);
2029
- }), C.map(({ content: V, order: j, borderBottom: q = !0, keepBottomPadding: ee = !1 }, fe) => /* @__PURE__ */ e(
2029
+ }), C.map(({ content: V, order: j, borderBottom: q = !0, keepBottomPadding: te = !1, paddingInline: me = !0, paddingBlock: ue = !0 }, ee) => /* @__PURE__ */ e(
2030
2030
  f,
2031
2031
  {
2032
2032
  direction: "column",
2033
- paddingTop: "sm",
2034
- paddingBottom: q || ee || fe === L ? "sm" : "spacing-0",
2035
- paddingInline: "md",
2033
+ paddingTop: ue ? "sm" : "spacing-0",
2034
+ paddingBottom: ue && (q || te || ee === L) ? "sm" : "spacing-0",
2035
+ paddingInline: me ? "md" : "spacing-0",
2036
2036
  style: {
2037
2037
  // Inset box-shadow (not a real border) so the divider line doesn't
2038
2038
  // add 1px to the row height — keeps the sub-header stack from shifting
@@ -2044,7 +2044,7 @@ const Ui = (t, r) => {
2044
2044
  },
2045
2045
  children: V
2046
2046
  },
2047
- `sub-header-${fe}`
2047
+ `sub-header-${ee}`
2048
2048
  ));
2049
2049
  }, I = () => {
2050
2050
  const C = l ? D() : null, L = w();
@@ -2452,10 +2452,10 @@ const Ui = (t, r) => {
2452
2452
  }) => {
2453
2453
  const F = (g == null ? void 0 : g.isShowLabel) ?? !0, [z, D] = O(!1), [w, I] = O(0), R = () => {
2454
2454
  I((U) => U + 1);
2455
- }, { searchParams: C, setSearchParams: L, getQueryParam: H } = Ve(), V = Pt(C.toString()), j = Or(t, C, c) || "", [q, ee] = O(j), fe = H(c), te = !!(fe && !(() => {
2456
- if (fe)
2455
+ }, { searchParams: C, setSearchParams: L, getQueryParam: H } = Ve(), V = Pt(C.toString()), j = Or(t, C, c) || "", [q, te] = O(j), me = H(c), ee = !!(me && !(() => {
2456
+ if (me)
2457
2457
  try {
2458
- const U = JSON.parse(fe);
2458
+ const U = JSON.parse(me);
2459
2459
  return Object.keys(U).length === 1 && U[t] === "";
2460
2460
  } catch (U) {
2461
2461
  console.error("Filter parameter is not a valid JSON:", U);
@@ -2463,7 +2463,7 @@ const Ui = (t, r) => {
2463
2463
  return !1;
2464
2464
  })()), P = Fe("md");
2465
2465
  return Y(() => {
2466
- ee(j);
2466
+ te(j);
2467
2467
  }, [j]), Y(() => {
2468
2468
  if (q === j)
2469
2469
  return;
@@ -2498,19 +2498,19 @@ const Ui = (t, r) => {
2498
2498
  },
2499
2499
  align: "flex-end",
2500
2500
  children: [
2501
- te && /* @__PURE__ */ e(f, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
2501
+ ee && /* @__PURE__ */ e(f, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
2502
2502
  N,
2503
2503
  {
2504
2504
  onClick: () => {
2505
2505
  const U = new URLSearchParams(C);
2506
- U.delete(c), L(U), ee(""), R(), m && m();
2506
+ U.delete(c), L(U), te(""), R(), m && m();
2507
2507
  },
2508
2508
  variant: "outline",
2509
2509
  tone: "neutral",
2510
2510
  children: /* @__PURE__ */ e(k, { color: "error", fontWeight: "semibold", children: "Reset" })
2511
2511
  }
2512
2512
  ) }),
2513
- i == null ? void 0 : i.map(({ minWidth: U, content: he, title: De, onClickContainer: se }, ve) => /* @__PURE__ */ u(
2513
+ i == null ? void 0 : i.map(({ minWidth: U, content: fe, title: De, onClickContainer: se }, ve) => /* @__PURE__ */ u(
2514
2514
  f,
2515
2515
  {
2516
2516
  direction: "column",
@@ -2521,7 +2521,7 @@ const Ui = (t, r) => {
2521
2521
  },
2522
2522
  children: [
2523
2523
  De && /* @__PURE__ */ e(Je.SubH3, { children: De }),
2524
- he
2524
+ fe
2525
2525
  ]
2526
2526
  },
2527
2527
  `extended-filter-${ve}-${w}`
@@ -2529,15 +2529,15 @@ const Ui = (t, r) => {
2529
2529
  !!(p != null && p.length) && /* @__PURE__ */ e(
2530
2530
  N,
2531
2531
  {
2532
- primary: te,
2533
- secondary: !te,
2532
+ primary: ee,
2533
+ secondary: !ee,
2534
2534
  iconLeft: /* @__PURE__ */ e(
2535
2535
  M,
2536
2536
  {
2537
2537
  size: "sm",
2538
2538
  name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
2539
2539
  style: {
2540
- color: fe ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
2540
+ color: me ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
2541
2541
  }
2542
2542
  }
2543
2543
  ),
@@ -2623,7 +2623,7 @@ const Ui = (t, r) => {
2623
2623
  {
2624
2624
  placeholder: n,
2625
2625
  leftIcon: /* @__PURE__ */ e(M, { name: "Search", width: 20, height: 20 }),
2626
- onChange: (U) => ee(U.target.value),
2626
+ onChange: (U) => te(U.target.value),
2627
2627
  value: q,
2628
2628
  fullWidth: !0
2629
2629
  },
@@ -4460,13 +4460,13 @@ const Yo = 240, Qn = ({
4460
4460
  hasColumns: V,
4461
4461
  orderedColumns: j,
4462
4462
  allVisible: q,
4463
- onToggleVisibility: ee,
4464
- onReorder: fe,
4465
- onSetAllHidden: me,
4466
- showSavedViews: te,
4463
+ onToggleVisibility: te,
4464
+ onReorder: me,
4465
+ onSetAllHidden: ue,
4466
+ showSavedViews: ee,
4467
4467
  savedViews: P,
4468
4468
  onApplyView: U,
4469
- onDeleteView: he,
4469
+ onDeleteView: fe,
4470
4470
  onSaveView: De,
4471
4471
  leadingActions: se
4472
4472
  } = t, [ve, Te] = O(!1), { searchQueries: ke, setSearchParams: _e } = Ve(), Ne = (D == null ? void 0 : D.rangeStart) ?? (((D == null ? void 0 : D.currentPage) || 0) > 1 ? (((D == null ? void 0 : D.currentPage) || 0) - 1) * ((D == null ? void 0 : D.perPage) || 0) + 1 : 1), xe = (D == null ? void 0 : D.rangeEnd) ?? ((D == null ? void 0 : D.totalCurrentPage) !== (D == null ? void 0 : D.perPage) ? D == null ? void 0 : D.totalData : ((D == null ? void 0 : D.currentPage) || 1) * ((D == null ? void 0 : D.totalCurrentPage) || 0)), Ye = (et) => {
@@ -4531,12 +4531,12 @@ const Yo = 240, Qn = ({
4531
4531
  style: { marginLeft: "auto" },
4532
4532
  children: [
4533
4533
  se,
4534
- te && /* @__PURE__ */ e(
4534
+ ee && /* @__PURE__ */ e(
4535
4535
  Xn,
4536
4536
  {
4537
4537
  views: P,
4538
4538
  onApply: U,
4539
- onDelete: he,
4539
+ onDelete: fe,
4540
4540
  onSave: De
4541
4541
  }
4542
4542
  ),
@@ -4545,9 +4545,9 @@ const Yo = 240, Qn = ({
4545
4545
  {
4546
4546
  columns: j,
4547
4547
  allVisible: q,
4548
- onToggle: ee,
4549
- onReorder: fe,
4550
- onSetAllHidden: me
4548
+ onToggle: te,
4549
+ onReorder: me,
4550
+ onSetAllHidden: ue
4551
4551
  }
4552
4552
  ),
4553
4553
  /* @__PURE__ */ e(
@@ -4642,13 +4642,13 @@ const Yo = 240, Qn = ({
4642
4642
  }) => {
4643
4643
  const j = I ?? (R == null ? void 0 : R.scopeId), {
4644
4644
  activeKeys: q,
4645
- configByKey: ee,
4646
- hasActiveFilter: fe,
4647
- toggleFilter: me,
4648
- removeFilter: te,
4645
+ configByKey: te,
4646
+ hasActiveFilter: me,
4647
+ toggleFilter: ue,
4648
+ removeFilter: ee,
4649
4649
  getValue: P,
4650
4650
  setValue: U,
4651
- clearValue: he,
4651
+ clearValue: fe,
4652
4652
  clearAll: De
4653
4653
  } = Hr({
4654
4654
  configs: r,
@@ -4731,8 +4731,8 @@ const Yo = 240, Qn = ({
4731
4731
  {
4732
4732
  configs: r,
4733
4733
  activeKeys: q,
4734
- onToggle: me,
4735
- hasActiveFilter: fe,
4734
+ onToggle: ue,
4735
+ hasActiveFilter: me,
4736
4736
  onReset: xe
4737
4737
  }
4738
4738
  ),
@@ -4751,14 +4751,14 @@ const Yo = 240, Qn = ({
4751
4751
  Jn,
4752
4752
  {
4753
4753
  activeKeys: q,
4754
- configByKey: ee,
4754
+ configByKey: te,
4755
4755
  getValue: P,
4756
4756
  setValue: U,
4757
- clearValue: he,
4758
- removeFilter: te
4757
+ clearValue: fe,
4758
+ removeFilter: ee
4759
4759
  }
4760
4760
  ),
4761
- fe && /* @__PURE__ */ e(
4761
+ me && /* @__PURE__ */ e(
4762
4762
  N,
4763
4763
  {
4764
4764
  variant: "link",
@@ -4818,13 +4818,13 @@ const Yo = 240, Qn = ({
4818
4818
  withPadding: t,
4819
4819
  configs: r,
4820
4820
  activeKeys: q,
4821
- configByKey: ee,
4822
- hasActiveFilter: fe,
4823
- toggleFilter: me,
4824
- removeFilter: te,
4821
+ configByKey: te,
4822
+ hasActiveFilter: me,
4823
+ toggleFilter: ue,
4824
+ removeFilter: ee,
4825
4825
  getValue: P,
4826
4826
  setValue: U,
4827
- clearValue: he,
4827
+ clearValue: fe,
4828
4828
  onReset: xe,
4829
4829
  searchable: p,
4830
4830
  searchKey: g,
@@ -4914,8 +4914,8 @@ const Yo = 240, Qn = ({
4914
4914
  const j = m == null ? void 0 : m[L], q = j ? j(V) : il(H, V);
4915
4915
  if (q == null || Array.isArray(q) && q.length === 0)
4916
4916
  continue;
4917
- const ee = (d == null ? void 0 : d[L]) ?? L;
4918
- z[ee] = q, C = !0;
4917
+ const te = (d == null ? void 0 : d[L]) ?? L;
4918
+ z[te] = q, C = !0;
4919
4919
  }
4920
4920
  return {
4921
4921
  params: z,
@@ -5594,12 +5594,12 @@ const Yo = 240, Qn = ({
5594
5594
  ), j = L ? w ?? null : H, q = (A) => {
5595
5595
  if (A.sortKey) return A.sortKey;
5596
5596
  if (typeof A.accessor == "string") return A.accessor;
5597
- }, ee = (A) => {
5597
+ }, te = (A) => {
5598
5598
  const Z = q(A);
5599
5599
  if (!Z) return;
5600
5600
  let $;
5601
5601
  !j || j.key !== Z ? $ = { key: Z, direction: "asc" } : j.direction === "asc" ? $ = { key: Z, direction: "desc" } : $ = null, L || V($), R == null || R($);
5602
- }, me = [n, o, i].filter((A) => A !== void 0).length, te = !!x, P = !!n || !!o || !!i || te, U = "var(--sa-border-subtle, #0b120e24)", he = `1px solid ${U}`, De = `inset 1px 0 0 ${U}`, se = `inset -1px 0 0 ${U}`, ve = me === 3 ? te ? "178px" : "140px" : me === 2 ? te ? "140px" : "102px" : me === 1 ? te ? "112px" : "74px" : te ? "74px" : "", Te = (A, Z) => {
5602
+ }, ue = [n, o, i].filter((A) => A !== void 0).length, ee = !!x, P = !!n || !!o || !!i || ee, U = "var(--sa-border-subtle, #0b120e24)", fe = `1px solid ${U}`, De = `inset 1px 0 0 ${U}`, se = `inset -1px 0 0 ${U}`, ve = ue === 3 ? ee ? "178px" : "140px" : ue === 2 ? ee ? "140px" : "102px" : ue === 1 ? ee ? "112px" : "74px" : ee ? "74px" : "", Te = (A, Z) => {
5603
5603
  if (!Z) return A;
5604
5604
  if (typeof Z == "function") return Z(A);
5605
5605
  if (typeof Z == "string") return A[Z];
@@ -5677,7 +5677,7 @@ const Yo = 240, Qn = ({
5677
5677
  "button",
5678
5678
  {
5679
5679
  type: "button",
5680
- onClick: () => ee(A),
5680
+ onClick: () => te(A),
5681
5681
  title: Be === "asc" ? "Sorted ascending — click to sort descending" : Be === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
5682
5682
  style: {
5683
5683
  flex: 1,
@@ -5713,8 +5713,8 @@ const Yo = 240, Qn = ({
5713
5713
  left: $ ? G : void 0,
5714
5714
  zIndex: $ ? 4 : 2,
5715
5715
  paddingLeft: Z === 0 ? "12px" : "",
5716
- borderRight: d && !Me && !$ ? he : void 0,
5717
- borderBottom: d ? he : void 0,
5716
+ borderRight: d && !Me && !$ ? fe : void 0,
5717
+ borderBottom: d ? fe : void 0,
5718
5718
  boxShadow: d && $ ? se : void 0,
5719
5719
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
5720
5720
  textAlign: A.textAlign === "text-right" ? "right" : A.textAlign === "text-center" ? "center" : "left",
@@ -5798,7 +5798,7 @@ const Yo = 240, Qn = ({
5798
5798
  top: 0,
5799
5799
  right: 0,
5800
5800
  zIndex: 3,
5801
- borderBottom: d ? he : void 0,
5801
+ borderBottom: d ? fe : void 0,
5802
5802
  boxShadow: d && C ? De : void 0
5803
5803
  }
5804
5804
  }
@@ -5847,8 +5847,8 @@ const Yo = 240, Qn = ({
5847
5847
  paddingLeft: G === 0 ? "12px" : "",
5848
5848
  whiteSpace: "nowrap",
5849
5849
  overflow: Xe ? "hidden" : void 0,
5850
- borderLeft: $.showBorderLeft ? he : void 0,
5851
- borderRight: $.showBorderRight ? he : void 0,
5850
+ borderLeft: $.showBorderLeft ? fe : void 0,
5851
+ borderRight: $.showBorderRight ? fe : void 0,
5852
5852
  boxShadow: Ge ? se : void 0,
5853
5853
  textAlign: $.textAlign === "text-right" ? "right" : $.textAlign === "text-center" ? "center" : "left",
5854
5854
  ...S(G, $.width)
@@ -6222,10 +6222,10 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6222
6222
  selectedKeys: V,
6223
6223
  defaultSelectedKeys: j,
6224
6224
  onSelectionChange: q,
6225
- isRowSelectable: ee
6225
+ isRowSelectable: te
6226
6226
  }) => {
6227
6227
  xl();
6228
- const me = !Fe(B) && b !== "scroll", te = !!(L != null && L.length), [P, U] = O(null);
6228
+ const ue = !Fe(B) && b !== "scroll", ee = !!(L != null && L.length), [P, U] = O(null);
6229
6229
  Y(() => {
6230
6230
  if (!P) return;
6231
6231
  const y = () => U(null), v = setTimeout(() => document.addEventListener("click", y), 0);
@@ -6233,7 +6233,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6233
6233
  clearTimeout(v), document.removeEventListener("click", y);
6234
6234
  };
6235
6235
  }, [P]);
6236
- const [he, De] = O(
6236
+ const [fe, De] = O(
6237
6237
  () => /* @__PURE__ */ new Set()
6238
6238
  ), se = a !== void 0, [ve, Te] = O({}), ke = a ?? ve, _e = (y) => {
6239
6239
  d == null || d(y), se || Te(y);
@@ -6331,19 +6331,19 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6331
6331
  const v = T.filter((E, J) => y.has(rt(E, J)));
6332
6332
  q(Array.from(y), v);
6333
6333
  }
6334
- }, er = (y, v) => H && (ee ? ee(y, v) : !0), tr = (y) => {
6334
+ }, er = (y, v) => H && (te ? te(y, v) : !0), tr = (y) => {
6335
6335
  const v = new Set(nt);
6336
6336
  v.has(y) ? v.delete(y) : v.add(y), qr(v);
6337
6337
  }, ft = pe(
6338
6338
  () => H ? T.map((y, v) => ({ row: y, i: v, key: rt(y, v) })).filter(
6339
- ({ row: y, i: v }) => ee ? ee(y, v) : !0
6339
+ ({ row: y, i: v }) => te ? te(y, v) : !0
6340
6340
  ).map(({ key: y }) => y) : [],
6341
6341
  // eslint-disable-next-line react-hooks/exhaustive-deps
6342
- [H, T, ee, n]
6342
+ [H, T, te, n]
6343
6343
  ), Ur = ft.filter((y) => nt.has(y)), rr = ft.length > 0 && Ur.length === ft.length, Jr = Ur.length > 0 && !rr, ni = () => {
6344
6344
  const y = new Set(nt);
6345
6345
  rr ? ft.forEach((v) => y.delete(v)) : ft.forEach((v) => y.add(v)), qr(y);
6346
- }, nr = (y, v, E) => y.render ? y.render(v, E, T) : Cl(v, y.accessor), ir = S.length + (H ? 1 : 0) + (te ? 1 : 0), Qr = ["80%", "55%", "70%", "45%", "90%", "60%"], ii = (y, v) => Qr[(y * 7 + v * 3) % Qr.length], oi = (y, v) => /* @__PURE__ */ e(Ke, { height: 14, width: ii(y, v), borderRadius: "rounded-sm" }), li = Array.from({ length: C }, (y, v) => /* @__PURE__ */ u(He, { children: [
6346
+ }, nr = (y, v, E) => y.render ? y.render(v, E, T) : Cl(v, y.accessor), ir = S.length + (H ? 1 : 0) + (ee ? 1 : 0), Qr = ["80%", "55%", "70%", "45%", "90%", "60%"], ii = (y, v) => Qr[(y * 7 + v * 3) % Qr.length], oi = (y, v) => /* @__PURE__ */ e(Ke, { height: 14, width: ii(y, v), borderRadius: "rounded-sm" }), li = Array.from({ length: C }, (y, v) => /* @__PURE__ */ u(He, { children: [
6347
6347
  H && /* @__PURE__ */ e(Ee, { style: { width: Ct, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ke, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
6348
6348
  S.map(({ col: E, key: J }, ne) => /* @__PURE__ */ e(
6349
6349
  Ee,
@@ -6353,7 +6353,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6353
6353
  },
6354
6354
  `sa-tl-sk-${v}-${J}`
6355
6355
  )),
6356
- te && /* @__PURE__ */ e(Ee, { style: { width: 1, padding: 0, border: "none" } })
6356
+ ee && /* @__PURE__ */ e(Ee, { style: { width: 1, padding: 0, border: "none" } })
6357
6357
  ] }, `sa-tl-sk-${v}`)), ci = (y, v) => {
6358
6358
  v || _e({
6359
6359
  ...ke,
@@ -6675,7 +6675,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6675
6675
  children: I == null ? void 0 : I.content
6676
6676
  }
6677
6677
  ), yi = R ? pi : T.length === 0 ? en : b === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: T.map((y, v) => {
6678
- const E = rt(y, v), J = he.has(E), ae = H && nt.has(E) ? vr : It(o == null ? void 0 : o(y, v));
6678
+ const E = rt(y, v), J = fe.has(E), ae = H && nt.has(E) ? vr : It(o == null ? void 0 : o(y, v));
6679
6679
  return /* @__PURE__ */ u(
6680
6680
  "div",
6681
6681
  {
@@ -6737,7 +6737,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6737
6737
  ]
6738
6738
  }
6739
6739
  ),
6740
- te && ui(y, v)
6740
+ ee && ui(y, v)
6741
6741
  ] }),
6742
6742
  J && /* @__PURE__ */ e(
6743
6743
  "div",
@@ -6790,7 +6790,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6790
6790
  sr(y, v)
6791
6791
  ),
6792
6792
  Kr(y, v),
6793
- te && di(y, v)
6793
+ ee && di(y, v)
6794
6794
  ]
6795
6795
  },
6796
6796
  E
@@ -6819,7 +6819,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6819
6819
  xi && /* @__PURE__ */ u("colgroup", { children: [
6820
6820
  H && /* @__PURE__ */ e("col", { style: { width: Ct } }),
6821
6821
  S.map(({ col: y, key: v }, E) => /* @__PURE__ */ e("col", { style: { width: ht(y, E) } }, `col-${v}`)),
6822
- te && /* @__PURE__ */ e("col", { style: { width: 1 } })
6822
+ ee && /* @__PURE__ */ e("col", { style: { width: 1 } })
6823
6823
  ] }),
6824
6824
  /* @__PURE__ */ e(On, { ref: tt, children: _ ? /* @__PURE__ */ u(ie, { children: [
6825
6825
  /* @__PURE__ */ u(He, { children: [
@@ -6841,7 +6841,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6841
6841
  `grp-${y.key}`
6842
6842
  ) : or(y.leaves[0], { rowSpan: 2 })
6843
6843
  ),
6844
- te && /* @__PURE__ */ e(
6844
+ ee && /* @__PURE__ */ e(
6845
6845
  ut,
6846
6846
  {
6847
6847
  rowSpan: 2,
@@ -6864,7 +6864,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6864
6864
  ] }) : /* @__PURE__ */ u(He, { children: [
6865
6865
  H && Xr(),
6866
6866
  hi(),
6867
- te && /* @__PURE__ */ e(
6867
+ ee && /* @__PURE__ */ e(
6868
6868
  ut,
6869
6869
  {
6870
6870
  style: {
@@ -6928,7 +6928,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6928
6928
  `tl-cell-${v}-${oe}`
6929
6929
  );
6930
6930
  }),
6931
- te && /* @__PURE__ */ e(
6931
+ ee && /* @__PURE__ */ e(
6932
6932
  Ee,
6933
6933
  {
6934
6934
  style: {
@@ -6962,7 +6962,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
6962
6962
  overflow: "auto",
6963
6963
  height: W ?? ei
6964
6964
  },
6965
- children: me ? /* @__PURE__ */ u(ie, { children: [
6965
+ children: ue ? /* @__PURE__ */ u(ie, { children: [
6966
6966
  yi,
6967
6967
  Wt && !R && T.length > 0 && /* @__PURE__ */ e(f, { style: { borderTop: vt }, children: /* @__PURE__ */ e(Vt, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(kr, { children: Wt }) }) })
6968
6968
  ] }) : vi
@@ -7027,7 +7027,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7027
7027
  children: n,
7028
7028
  loading: o,
7029
7029
  isLoading: i
7030
- }) => /* @__PURE__ */ e(ie, { children: i ? o : t ? n : r }), ue = (t) => /* @__PURE__ */ e(
7030
+ }) => /* @__PURE__ */ e(ie, { children: i ? o : t ? n : r }), he = (t) => /* @__PURE__ */ e(
7031
7031
  k,
7032
7032
  {
7033
7033
  ...t,
@@ -7064,7 +7064,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7064
7064
  customMaxWidth: s,
7065
7065
  fullWidth: o,
7066
7066
  children: [
7067
- /* @__PURE__ */ e(ue, { children: i.title }),
7067
+ /* @__PURE__ */ e(he, { children: i.title }),
7068
7068
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
7069
7069
  ]
7070
7070
  }
@@ -7077,8 +7077,8 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7077
7077
  fullWidth: o,
7078
7078
  children: [
7079
7079
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
7080
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
7081
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
7080
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
7081
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
7082
7082
  /* @__PURE__ */ e(ce, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7083
7083
  ze,
7084
7084
  {
@@ -7149,7 +7149,7 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7149
7149
  customMaxWidth: s,
7150
7150
  fullWidth: o,
7151
7151
  children: [
7152
- /* @__PURE__ */ e(ue, { children: i.title }),
7152
+ /* @__PURE__ */ e(he, { children: i.title }),
7153
7153
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
7154
7154
  ]
7155
7155
  }
@@ -7162,8 +7162,8 @@ const is = gl(ml), Sn = 200, xr = "1px solid var(--sa-border-subtle, #0b120e24)"
7162
7162
  fullWidth: o,
7163
7163
  children: [
7164
7164
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
7165
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
7166
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
7165
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
7166
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
7167
7167
  /* @__PURE__ */ e(ce, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7168
7168
  ze,
7169
7169
  {
@@ -7651,7 +7651,7 @@ const Rl = (t) => {
7651
7651
  customMaxWidth: s,
7652
7652
  fullWidth: o,
7653
7653
  children: [
7654
- /* @__PURE__ */ e(ue, { children: i.title }),
7654
+ /* @__PURE__ */ e(he, { children: i.title }),
7655
7655
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
7656
7656
  ]
7657
7657
  }
@@ -7664,8 +7664,8 @@ const Rl = (t) => {
7664
7664
  fullWidth: o,
7665
7665
  children: [
7666
7666
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
7667
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
7668
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
7667
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
7668
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
7669
7669
  /* @__PURE__ */ e(ce, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7670
7670
  ze,
7671
7671
  {
@@ -7733,7 +7733,7 @@ const Rl = (t) => {
7733
7733
  customMaxWidth: c,
7734
7734
  fullWidth: o,
7735
7735
  children: [
7736
- /* @__PURE__ */ e(ue, { children: l.title }),
7736
+ /* @__PURE__ */ e(he, { children: l.title }),
7737
7737
  /* @__PURE__ */ e(Je.Body3, { props: { color: "gray-500" }, children: l.description })
7738
7738
  ]
7739
7739
  }
@@ -7746,8 +7746,8 @@ const Rl = (t) => {
7746
7746
  fullWidth: o,
7747
7747
  children: [
7748
7748
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
7749
- /* @__PURE__ */ e(ue, { fontSize: t, children: l.title }),
7750
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
7749
+ /* @__PURE__ */ e(he, { fontSize: t, children: l.title }),
7750
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
7751
7751
  /* @__PURE__ */ e(ce, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
7752
7752
  ze,
7753
7753
  {
@@ -7849,7 +7849,7 @@ const Rl = (t) => {
7849
7849
  customMaxWidth: i,
7850
7850
  fullWidth: n,
7851
7851
  children: [
7852
- o.title && /* @__PURE__ */ e(ue, { children: o.title }),
7852
+ o.title && /* @__PURE__ */ e(he, { children: o.title }),
7853
7853
  /* @__PURE__ */ e(ce, { condition: !!o.description, children: /* @__PURE__ */ e(k, { color: "gray-500", children: o.description }) })
7854
7854
  ]
7855
7855
  }
@@ -7933,7 +7933,7 @@ const Rl = (t) => {
7933
7933
  customMaxWidth: s,
7934
7934
  fullWidth: o,
7935
7935
  children: [
7936
- /* @__PURE__ */ e(ue, { children: i.title }),
7936
+ /* @__PURE__ */ e(he, { children: i.title }),
7937
7937
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
7938
7938
  ]
7939
7939
  }
@@ -7946,8 +7946,8 @@ const Rl = (t) => {
7946
7946
  fullWidth: o,
7947
7947
  children: [
7948
7948
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
7949
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
7950
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
7949
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
7950
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
7951
7951
  /* @__PURE__ */ e(ce, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
7952
7952
  ze,
7953
7953
  {
@@ -8017,7 +8017,7 @@ const Rl = (t) => {
8017
8017
  customMaxWidth: s,
8018
8018
  fullWidth: i,
8019
8019
  children: [
8020
- /* @__PURE__ */ e(ue, { children: l.title }),
8020
+ /* @__PURE__ */ e(he, { children: l.title }),
8021
8021
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: l.titleDescription })
8022
8022
  ]
8023
8023
  }
@@ -8030,8 +8030,8 @@ const Rl = (t) => {
8030
8030
  fullWidth: i,
8031
8031
  children: [
8032
8032
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
8033
- /* @__PURE__ */ e(ue, { fontSize: t, children: l.title }),
8034
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
8033
+ /* @__PURE__ */ e(he, { fontSize: t, children: l.title }),
8034
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
8035
8035
  /* @__PURE__ */ e(ce, { condition: !!((c = l.tooltip) != null && c.label), children: /* @__PURE__ */ e(
8036
8036
  ze,
8037
8037
  {
@@ -8151,7 +8151,7 @@ const Rl = (t) => {
8151
8151
  customMaxWidth: s,
8152
8152
  fullWidth: o,
8153
8153
  children: [
8154
- /* @__PURE__ */ e(ue, { children: i.title }),
8154
+ /* @__PURE__ */ e(he, { children: i.title }),
8155
8155
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
8156
8156
  ]
8157
8157
  }
@@ -8164,8 +8164,8 @@ const Rl = (t) => {
8164
8164
  fullWidth: o,
8165
8165
  children: [
8166
8166
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
8167
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
8168
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
8167
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
8168
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
8169
8169
  /* @__PURE__ */ e(ce, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
8170
8170
  ze,
8171
8171
  {
@@ -8278,10 +8278,10 @@ const Ln = {
8278
8278
  var De;
8279
8279
  const U = (De = P.target.files) == null ? void 0 : De[0];
8280
8280
  if (!U) return;
8281
- const he = new FileReader();
8282
- he.onload = () => {
8283
- b(he.result), F(!0);
8284
- }, he.readAsDataURL(U);
8281
+ const fe = new FileReader();
8282
+ fe.onload = () => {
8283
+ b(fe.result), F(!0);
8284
+ }, fe.readAsDataURL(U);
8285
8285
  }, V = async () => {
8286
8286
  if (!(!W || !R))
8287
8287
  try {
@@ -8305,9 +8305,9 @@ const Ln = {
8305
8305
  (P = j.current) == null || P.click();
8306
8306
  }
8307
8307
  }));
8308
- const ee = parseInt(l, 10), fe = Ln[s];
8309
- let me, te;
8310
- return fe >= 1 ? (te = ee, me = ee * fe) : (me = ee, te = ee / fe), /* @__PURE__ */ u(
8308
+ const te = parseInt(l, 10), me = Ln[s];
8309
+ let ue, ee;
8310
+ return me >= 1 ? (ee = te, ue = te * me) : (ue = te, ee = te / me), /* @__PURE__ */ u(
8311
8311
  f,
8312
8312
  {
8313
8313
  direction: "column",
@@ -8322,9 +8322,9 @@ const Ln = {
8322
8322
  align: "center",
8323
8323
  justify: "center",
8324
8324
  style: {
8325
- width: c != null && c.fullWidth ? "100%" : `${me}px`,
8326
- height: c != null && c.fullWidth ? "auto" : `${te}px`,
8327
- aspectRatio: fe,
8325
+ width: c != null && c.fullWidth ? "100%" : `${ue}px`,
8326
+ height: c != null && c.fullWidth ? "auto" : `${ee}px`,
8327
+ aspectRatio: me,
8328
8328
  flexShrink: 0
8329
8329
  },
8330
8330
  onMouseEnter: () => x(!0),
@@ -8462,7 +8462,7 @@ const Ln = {
8462
8462
  borderRadius: "var(--sa-radii-md)",
8463
8463
  boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
8464
8464
  overflow: "hidden",
8465
- width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${me * 2}px)` : "calc(100vw - 2rem)",
8465
+ width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ue * 2}px)` : "calc(100vw - 2rem)",
8466
8466
  display: "flex",
8467
8467
  flexDirection: "column"
8468
8468
  },
@@ -8549,7 +8549,7 @@ const Ln = {
8549
8549
  customMaxWidth: c,
8550
8550
  fullWidth: o,
8551
8551
  children: [
8552
- /* @__PURE__ */ e(ue, { children: l.title }),
8552
+ /* @__PURE__ */ e(he, { children: l.title }),
8553
8553
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: l.description })
8554
8554
  ]
8555
8555
  }
@@ -8562,8 +8562,8 @@ const Ln = {
8562
8562
  fullWidth: o,
8563
8563
  children: [
8564
8564
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
8565
- /* @__PURE__ */ e(ue, { fontSize: t, children: l.title }),
8566
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
8565
+ /* @__PURE__ */ e(he, { fontSize: t, children: l.title }),
8566
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
8567
8567
  /* @__PURE__ */ e(ce, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
8568
8568
  ze,
8569
8569
  {
@@ -8624,7 +8624,7 @@ const Ln = {
8624
8624
  customMaxWidth: l,
8625
8625
  fullWidth: o,
8626
8626
  children: [
8627
- /* @__PURE__ */ e(ue, { children: i.title }),
8627
+ /* @__PURE__ */ e(he, { children: i.title }),
8628
8628
  /* @__PURE__ */ e(k, { fontSize: t, color: "gray-500", children: i.description })
8629
8629
  ]
8630
8630
  }
@@ -8637,8 +8637,8 @@ const Ln = {
8637
8637
  fullWidth: o,
8638
8638
  children: [
8639
8639
  /* @__PURE__ */ u(de, { direction: "row", gap: "xs", align: "center", children: [
8640
- /* @__PURE__ */ e(ue, { fontSize: t, children: i.title }),
8641
- /* @__PURE__ */ e(ue, { color: "error", fontSize: t, children: n }),
8640
+ /* @__PURE__ */ e(he, { fontSize: t, children: i.title }),
8641
+ /* @__PURE__ */ e(he, { color: "error", fontSize: t, children: n }),
8642
8642
  /* @__PURE__ */ e(ce, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8643
8643
  ze,
8644
8644
  {
@@ -8935,9 +8935,9 @@ const Es = ({
8935
8935
  contentProps: D
8936
8936
  }) => {
8937
8937
  const w = Fe("md"), I = n !== void 0, [R, C] = O(o), L = I ? n : R, H = () => {
8938
- const he = !L;
8939
- I || C(he), i == null || i(he);
8940
- }, V = s === "left", j = typeof c == "number" ? `${c}px` : c, q = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ee = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, fe = m === "center" ? { top: "50%", transform: "translateY(-50%)" } : m === "bottom" ? { bottom: p } : { top: p }, me = L ? V ? "ChevronRight" : "ChevronLeft" : V ? "ChevronLeft" : "ChevronRight", te = B !== void 0 && (F === "mobile" ? !w : F), P = te ? {
8938
+ const fe = !L;
8939
+ I || C(fe), i == null || i(fe);
8940
+ }, V = s === "left", j = typeof c == "number" ? `${c}px` : c, q = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, te = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, me = m === "center" ? { top: "50%", transform: "translateY(-50%)" } : m === "bottom" ? { bottom: p } : { top: p }, ue = L ? V ? "ChevronRight" : "ChevronLeft" : V ? "ChevronLeft" : "ChevronRight", ee = B !== void 0 && (F === "mobile" ? !w : F), P = ee ? {
8941
8941
  position: "absolute",
8942
8942
  top: 0,
8943
8943
  bottom: 0,
@@ -9009,13 +9009,13 @@ const Es = ({
9009
9009
  justify: "center",
9010
9010
  position: "absolute",
9011
9011
  onClick: H,
9012
- "aria-label": L ? ee.expand : ee.collapse,
9012
+ "aria-label": L ? te.expand : te.collapse,
9013
9013
  "aria-expanded": !L,
9014
9014
  "aria-pressed": L,
9015
9015
  customWidth: wr,
9016
9016
  customHeight: Kl,
9017
9017
  style: {
9018
- ...fe,
9018
+ ...me,
9019
9019
  backgroundColor: Bn,
9020
9020
  border: ec,
9021
9021
  zIndex: 5,
@@ -9031,7 +9031,7 @@ const Es = ({
9031
9031
  // boxShadow: "-2px 0 6px rgba(0, 0, 0, 0.04)",
9032
9032
  }
9033
9033
  },
9034
- children: /* @__PURE__ */ e(M, { name: me, size: "sm" })
9034
+ children: /* @__PURE__ */ e(M, { name: ue, size: "sm" })
9035
9035
  }
9036
9036
  )
9037
9037
  ]
@@ -9049,7 +9049,7 @@ const Es = ({
9049
9049
  ...(z == null ? void 0 : z.style) ?? {}
9050
9050
  },
9051
9051
  children: [
9052
- !te && V ? U : null,
9052
+ !ee && V ? U : null,
9053
9053
  /* @__PURE__ */ e(
9054
9054
  f,
9055
9055
  {
@@ -9065,8 +9065,8 @@ const Es = ({
9065
9065
  children: B
9066
9066
  }
9067
9067
  ),
9068
- !te && !V ? U : null,
9069
- te && /* @__PURE__ */ u(ie, { children: [
9068
+ !ee && !V ? U : null,
9069
+ ee && /* @__PURE__ */ u(ie, { children: [
9070
9070
  !L && /* @__PURE__ */ e(
9071
9071
  "div",
9072
9072
  {
@@ -10925,8 +10925,8 @@ function dc(t) {
10925
10925
  };
10926
10926
  }, [r, g]), Y(() => {
10927
10927
  if (!r || m) return;
10928
- const q = (ee) => {
10929
- ee.key === "Escape" && n();
10928
+ const q = (te) => {
10929
+ te.key === "Escape" && n();
10930
10930
  };
10931
10931
  return window.addEventListener("keydown", q), () => window.removeEventListener("keydown", q);
10932
10932
  }, [r, m, n]);