@starasia/admin 8.11.1 → 8.12.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,12 +342,12 @@ function sc({
342
342
  logoutButton: g
343
343
  }) {
344
344
  var Re, tt;
345
- const [b] = Tt(), B = b.get("embed") === "true", y = hn(), { badges: M } = ri(), k = pr(), W = bt(), C = !De("md"), [H, A] = I(!1), [v, S] = I(!1), [$, O] = I(!1), [j, G] = I(!1), [ne, ge] = I(
345
+ const [b] = Tt(), B = b.get("embed") === "true", y = hn(), { badges: M } = ri(), k = pr(), W = bt(), C = !De("md"), [H, A] = I(!1), [v, S] = I(!1), [$, O] = I(!1), [j, G] = I(!1), [ie, me] = I(
346
346
  () => new Set(Rr)
347
- ), [ie, le] = I(null), { selectedGroupId: J, setSelectedGroupId: q } = gn();
347
+ ), [ne, le] = I(null), { selectedGroupId: J, setSelectedGroupId: q } = gn();
348
348
  U(() => {
349
- Rr = ne;
350
- }, [ne]);
349
+ Rr = ie;
350
+ }, [ie]);
351
351
  const he = ae(null), te = ae(null);
352
352
  U(() => {
353
353
  const F = he.current;
@@ -419,7 +419,7 @@ function sc({
419
419
  var Z;
420
420
  const F = (_) => {
421
421
  var z;
422
- (z = _.children) != null && z.some((V) => W.pathname.startsWith(V.to)) && ge((V) => {
422
+ (z = _.children) != null && z.some((V) => W.pathname.startsWith(V.to)) && me((V) => {
423
423
  const N = new Set(V);
424
424
  return N.add(_.id), N;
425
425
  });
@@ -429,7 +429,7 @@ function sc({
429
429
  }), (Z = y.menuBottom) == null || Z.forEach(F);
430
430
  }, [W.pathname, y.menus, y.menuBottom]);
431
431
  const je = (F) => {
432
- ge((Z) => {
432
+ me((Z) => {
433
433
  const _ = new Set(Z);
434
434
  return _.has(F) ? _.delete(F) : _.add(F), _;
435
435
  });
@@ -451,7 +451,7 @@ function sc({
451
451
  if (B)
452
452
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(zr, {}) });
453
453
  const xe = (F) => {
454
- const Z = F.children && F.children.length > 0, _ = ne.has(F.id), z = Z ? F.children.some((P) => be(P.to)) : be(F.to), V = Qt(F.badge, M[F.id]), N = !!V && v && !C;
454
+ const Z = F.children && F.children.length > 0, _ = ie.has(F.id), z = Z ? F.children.some((P) => be(P.to)) : be(F.to), V = Qt(F.badge, M[F.id]), N = !!V && v && !C;
455
455
  return /* @__PURE__ */ u("div", { "data-menu-active": z || void 0, children: [
456
456
  /* @__PURE__ */ u(
457
457
  "button",
@@ -1316,7 +1316,7 @@ function sc({
1316
1316
  /* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e(T, { primary: !0, onClick: ye, children: "Yes, Sure" }) })
1317
1317
  ] }) }) })
1318
1318
  ] }),
1319
- ie && /* @__PURE__ */ u(oe, { children: [
1319
+ ne && /* @__PURE__ */ u(oe, { children: [
1320
1320
  /* @__PURE__ */ e(
1321
1321
  "div",
1322
1322
  {
@@ -1333,11 +1333,11 @@ function sc({
1333
1333
  "div",
1334
1334
  {
1335
1335
  role: "dialog",
1336
- "aria-label": ie.item.title,
1336
+ "aria-label": ne.item.title,
1337
1337
  style: {
1338
1338
  position: "fixed",
1339
- top: ie.top,
1340
- left: ie.left,
1339
+ top: ne.top,
1340
+ left: ne.left,
1341
1341
  zIndex: 61,
1342
1342
  minWidth: "13rem",
1343
1343
  maxWidth: "16rem",
@@ -1362,10 +1362,10 @@ function sc({
1362
1362
  textTransform: "uppercase",
1363
1363
  letterSpacing: "0.05em"
1364
1364
  },
1365
- children: ie.item.title
1365
+ children: ne.item.title
1366
1366
  }
1367
1367
  ),
1368
- (tt = ie.item.children) == null ? void 0 : tt.map((F) => {
1368
+ (tt = ne.item.children) == null ? void 0 : tt.map((F) => {
1369
1369
  const Z = be(F.to), _ = Qt(
1370
1370
  F.badge,
1371
1371
  M[F.id]
@@ -1938,11 +1938,11 @@ const ui = (t, r) => {
1938
1938
  }
1939
1939
  ) }),
1940
1940
  /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { minWidth: 200 }, children: v.map(({ title: S, icon: $, buttonProps: O, onClick: j }, G) => {
1941
- const ne = (O == null ? void 0 : O.tone) === "error" || (O == null ? void 0 : O.danger) === !0;
1941
+ const ie = (O == null ? void 0 : O.tone) === "error" || (O == null ? void 0 : O.danger) === !0;
1942
1942
  return /* @__PURE__ */ e(
1943
1943
  $e,
1944
1944
  {
1945
- intent: ne ? "danger" : void 0,
1945
+ intent: ie ? "danger" : void 0,
1946
1946
  disabled: O == null ? void 0 : O.disabled,
1947
1947
  startIcon: $ ? /* @__PURE__ */ e(L, { name: $ }) : void 0,
1948
1948
  onClick: j,
@@ -2026,12 +2026,12 @@ const ui = (t, r) => {
2026
2026
  return v.forEach((O, j) => {
2027
2027
  const G = O.order ?? 0;
2028
2028
  G >= $ && ($ = G, S = j);
2029
- }), v.map(({ content: O, order: j, borderBottom: G = !0 }, ne) => /* @__PURE__ */ e(
2029
+ }), v.map(({ content: O, order: j, borderBottom: G = !0, keepBottomPadding: ie = !1 }, me) => /* @__PURE__ */ e(
2030
2030
  m,
2031
2031
  {
2032
2032
  direction: "column",
2033
2033
  paddingTop: "sm",
2034
- paddingBottom: G || ne === S ? "sm" : "spacing-0",
2034
+ paddingBottom: G || ie || me === S ? "sm" : "spacing-0",
2035
2035
  paddingInline: "md",
2036
2036
  style: {
2037
2037
  // Inset box-shadow (not a real border) so the divider line doesn't
@@ -2044,7 +2044,7 @@ const ui = (t, r) => {
2044
2044
  },
2045
2045
  children: O
2046
2046
  },
2047
- `sub-header-${ne}`
2047
+ `sub-header-${me}`
2048
2048
  ));
2049
2049
  }, H = () => {
2050
2050
  const v = l ? w() : null, S = C();
@@ -2452,10 +2452,10 @@ const ui = (t, r) => {
2452
2452
  }) => {
2453
2453
  const k = (g == null ? void 0 : g.isShowLabel) ?? !0, [W, w] = I(!1), [C, H] = I(0), A = () => {
2454
2454
  H((q) => q + 1);
2455
- }, { searchParams: v, setSearchParams: S, getQueryParam: $ } = Oe(), O = Ht(v.toString()), j = xr(t, v, c) || "", [G, ne] = I(j), ge = $(c), le = !!(ge && !(() => {
2456
- if (ge)
2455
+ }, { searchParams: v, setSearchParams: S, getQueryParam: $ } = Oe(), O = Ht(v.toString()), j = xr(t, v, c) || "", [G, ie] = I(j), me = $(c), le = !!(me && !(() => {
2456
+ if (me)
2457
2457
  try {
2458
- const q = JSON.parse(ge);
2458
+ const q = JSON.parse(me);
2459
2459
  return Object.keys(q).length === 1 && q[t] === "";
2460
2460
  } catch (q) {
2461
2461
  console.error("Filter parameter is not a valid JSON:", q);
@@ -2463,7 +2463,7 @@ const ui = (t, r) => {
2463
2463
  return !1;
2464
2464
  })()), J = De("md");
2465
2465
  return U(() => {
2466
- ne(j);
2466
+ ie(j);
2467
2467
  }, [j]), U(() => {
2468
2468
  if (G === j)
2469
2469
  return;
@@ -2503,7 +2503,7 @@ const ui = (t, r) => {
2503
2503
  {
2504
2504
  onClick: () => {
2505
2505
  const q = new URLSearchParams(v);
2506
- q.delete(c), S(q), ne(""), A(), f && f();
2506
+ q.delete(c), S(q), ie(""), A(), f && f();
2507
2507
  },
2508
2508
  variant: "outline",
2509
2509
  tone: "neutral",
@@ -2537,7 +2537,7 @@ const ui = (t, r) => {
2537
2537
  size: "sm",
2538
2538
  name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
2539
2539
  style: {
2540
- color: ge ? "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(L, { name: "Search", width: 20, height: 20 }),
2626
- onChange: (q) => ne(q.target.value),
2626
+ onChange: (q) => ie(q.target.value),
2627
2627
  value: G,
2628
2628
  fullWidth: !0
2629
2629
  },
@@ -4460,9 +4460,9 @@ const mo = 240, wn = ({
4460
4460
  hasColumns: O,
4461
4461
  orderedColumns: j,
4462
4462
  allVisible: G,
4463
- onToggleVisibility: ne,
4464
- onReorder: ge,
4465
- onSetAllHidden: ie,
4463
+ onToggleVisibility: ie,
4464
+ onReorder: me,
4465
+ onSetAllHidden: ne,
4466
4466
  showSavedViews: le,
4467
4467
  savedViews: J,
4468
4468
  onApplyView: q,
@@ -4543,9 +4543,9 @@ const mo = 240, wn = ({
4543
4543
  {
4544
4544
  columns: j,
4545
4545
  allVisible: G,
4546
- onToggle: ne,
4547
- onReorder: ge,
4548
- onSetAllHidden: ie
4546
+ onToggle: ie,
4547
+ onReorder: me,
4548
+ onSetAllHidden: ne
4549
4549
  }
4550
4550
  ),
4551
4551
  /* @__PURE__ */ e(
@@ -4640,9 +4640,9 @@ const mo = 240, wn = ({
4640
4640
  const O = H ?? (A == null ? void 0 : A.scopeId), {
4641
4641
  activeKeys: j,
4642
4642
  configByKey: G,
4643
- hasActiveFilter: ne,
4644
- toggleFilter: ge,
4645
- removeFilter: ie,
4643
+ hasActiveFilter: ie,
4644
+ toggleFilter: me,
4645
+ removeFilter: ne,
4646
4646
  getValue: le,
4647
4647
  setValue: J,
4648
4648
  clearValue: q,
@@ -4728,8 +4728,8 @@ const mo = 240, wn = ({
4728
4728
  {
4729
4729
  configs: r,
4730
4730
  activeKeys: j,
4731
- onToggle: ge,
4732
- hasActiveFilter: ne,
4731
+ onToggle: me,
4732
+ hasActiveFilter: ie,
4733
4733
  onReset: Ve
4734
4734
  }
4735
4735
  ),
@@ -4752,10 +4752,10 @@ const mo = 240, wn = ({
4752
4752
  getValue: le,
4753
4753
  setValue: J,
4754
4754
  clearValue: q,
4755
- removeFilter: ie
4755
+ removeFilter: ne
4756
4756
  }
4757
4757
  ),
4758
- ne && /* @__PURE__ */ e(
4758
+ ie && /* @__PURE__ */ e(
4759
4759
  T,
4760
4760
  {
4761
4761
  variant: "link",
@@ -4815,9 +4815,9 @@ const mo = 240, wn = ({
4815
4815
  configs: r,
4816
4816
  activeKeys: j,
4817
4817
  configByKey: G,
4818
- hasActiveFilter: ne,
4819
- toggleFilter: ge,
4820
- removeFilter: ie,
4818
+ hasActiveFilter: ie,
4819
+ toggleFilter: me,
4820
+ removeFilter: ne,
4821
4821
  getValue: le,
4822
4822
  setValue: J,
4823
4823
  clearValue: q,
@@ -4909,8 +4909,8 @@ const mo = 240, wn = ({
4909
4909
  const j = f == null ? void 0 : f[S], G = j ? j(O) : Co($, O);
4910
4910
  if (G == null || Array.isArray(G) && G.length === 0)
4911
4911
  continue;
4912
- const ne = (d == null ? void 0 : d[S]) ?? S;
4913
- W[ne] = G, v = !0;
4912
+ const ie = (d == null ? void 0 : d[S]) ?? S;
4913
+ W[ie] = G, v = !0;
4914
4914
  }
4915
4915
  return {
4916
4916
  params: W,
@@ -5589,12 +5589,12 @@ const mo = 240, wn = ({
5589
5589
  ), j = S ? C ?? null : $, G = (z) => {
5590
5590
  if (z.sortKey) return z.sortKey;
5591
5591
  if (typeof z.accessor == "string") return z.accessor;
5592
- }, ne = (z) => {
5592
+ }, ie = (z) => {
5593
5593
  const V = G(z);
5594
5594
  if (!V) return;
5595
5595
  let N;
5596
5596
  !j || j.key !== V ? N = { key: V, direction: "asc" } : j.direction === "asc" ? N = { key: V, direction: "desc" } : N = null, S || O(N), A == null || A(N);
5597
- }, ie = [n, o, i].filter((z) => z !== void 0).length, le = !!b, J = !!n || !!o || !!i || le, q = "var(--sa-border-subtle, #0b120e24)", he = `1px solid ${q}`, te = `inset 1px 0 0 ${q}`, ue = `inset -1px 0 0 ${q}`, Fe = ie === 3 ? le ? "178px" : "140px" : ie === 2 ? le ? "140px" : "102px" : ie === 1 ? le ? "112px" : "74px" : le ? "74px" : "", Ge = (z, V) => {
5597
+ }, ne = [n, o, i].filter((z) => z !== void 0).length, le = !!b, J = !!n || !!o || !!i || le, q = "var(--sa-border-subtle, #0b120e24)", he = `1px solid ${q}`, te = `inset 1px 0 0 ${q}`, ue = `inset -1px 0 0 ${q}`, Fe = ne === 3 ? le ? "178px" : "140px" : ne === 2 ? le ? "140px" : "102px" : ne === 1 ? le ? "112px" : "74px" : le ? "74px" : "", Ge = (z, V) => {
5598
5598
  if (!V) return z;
5599
5599
  if (typeof V == "function") return V(z);
5600
5600
  if (typeof V == "string") return z[V];
@@ -5672,7 +5672,7 @@ const mo = 240, wn = ({
5672
5672
  "button",
5673
5673
  {
5674
5674
  type: "button",
5675
- onClick: () => ne(z),
5675
+ onClick: () => ie(z),
5676
5676
  title: Te === "asc" ? "Sorted ascending — click to sort descending" : Te === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
5677
5677
  style: {
5678
5678
  flex: 1,
@@ -6207,21 +6207,21 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6207
6207
  }, [S]);
6208
6208
  const [O, j] = I(
6209
6209
  () => /* @__PURE__ */ new Set()
6210
- ), G = s !== void 0, [ne, ge] = I({}), ie = s ?? ne, le = (x) => {
6211
- c == null || c(x), G || ge(x);
6210
+ ), G = s !== void 0, [ie, me] = I({}), ne = s ?? ie, le = (x) => {
6211
+ c == null || c(x), G || me(x);
6212
6212
  }, J = d !== void 0, [q, he] = I(
6213
6213
  f ?? null
6214
6214
  ), te = J ? d ?? null : q, ue = !p, Fe = (x) => {
6215
6215
  p == null || p(x), J || he(x);
6216
6216
  }, { headerGroups: Ge, leafColumns: ye, hasGroups: Ee } = pe(() => {
6217
6217
  var ve;
6218
- const x = new Set(ie.hidden ?? []), E = (ee, me) => ee.key ?? (typeof ee.accessor == "string" ? ee.accessor : `col-${me}`), R = t.map((ee, me) => {
6218
+ const x = new Set(ne.hidden ?? []), E = (ee, ge) => ee.key ?? (typeof ee.accessor == "string" ? ee.accessor : `col-${ge}`), R = t.map((ee, ge) => {
6219
6219
  var qe;
6220
6220
  if ((qe = ee.children) != null && qe.length) {
6221
- const ut = ee.children.map((ot, Ut) => ({ col: ot, key: E(ot, `${me}-${Ut}`) })).filter((ot) => !x.has(ot.key));
6222
- return { col: ee, key: ee.key ?? `group-${me}`, isGroup: !0, leaves: ut };
6221
+ const ut = ee.children.map((ot, Ut) => ({ col: ot, key: E(ot, `${ge}-${Ut}`) })).filter((ot) => !x.has(ot.key));
6222
+ return { col: ee, key: ee.key ?? `group-${ge}`, isGroup: !0, leaves: ut };
6223
6223
  }
6224
- const Me = { col: ee, key: E(ee, `${me}`) };
6224
+ const Me = { col: ee, key: E(ee, `${ge}`) };
6225
6225
  return {
6226
6226
  col: ee,
6227
6227
  key: Me.key,
@@ -6230,14 +6230,14 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6230
6230
  };
6231
6231
  }).filter((ee) => ee.leaves.length > 0), Q = R.some((ee) => ee.isGroup);
6232
6232
  let fe = R.flatMap((ee) => ee.leaves);
6233
- if (!Q && ((ve = ie.order) != null && ve.length)) {
6234
- const ee = new Map(ie.order.map((me, Me) => [me, Me]));
6233
+ if (!Q && ((ve = ne.order) != null && ve.length)) {
6234
+ const ee = new Map(ne.order.map((ge, Me) => [ge, Me]));
6235
6235
  fe = [...fe].sort(
6236
- (me, Me) => (ee.get(me.key) ?? 1 / 0) - (ee.get(Me.key) ?? 1 / 0)
6236
+ (ge, Me) => (ee.get(ge.key) ?? 1 / 0) - (ee.get(Me.key) ?? 1 / 0)
6237
6237
  );
6238
6238
  }
6239
6239
  return { headerGroups: R, leafColumns: fe, hasGroups: Q };
6240
- }, [t, ie]), Ve = pe(
6240
+ }, [t, ne]), Ve = pe(
6241
6241
  () => new Map(ye.map((x, E) => [x.key, E])),
6242
6242
  [ye]
6243
6243
  ), be = ye.map((x) => x.key).join("|"), je = (x, E) => {
@@ -6269,7 +6269,7 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6269
6269
  if ((_ == null ? void 0 : _[E]) != null) return _[E];
6270
6270
  if (x.width != null) return x.width;
6271
6271
  if ((V == null ? void 0 : V[E]) != null) return V[E];
6272
- }, Le = (x, E) => typeof x.width == "number" ? x.width : V == null ? void 0 : V[E], _e = ie.frozenKey && !Ee ? ye.findIndex((x) => x.key === ie.frozenKey) : -1, Pe = (x) => x <= _e, Te = (x) => {
6272
+ }, Le = (x, E) => typeof x.width == "number" ? x.width : V == null ? void 0 : V[E], _e = ne.frozenKey && !Ee ? ye.findIndex((x) => x.key === ne.frozenKey) : -1, Pe = (x) => x <= _e, Te = (x) => {
6273
6273
  if (!V) return 0;
6274
6274
  let E = 0;
6275
6275
  for (let R = 0; R < x; R++) E += V[R] ?? 0;
@@ -6297,12 +6297,12 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6297
6297
  v && /* @__PURE__ */ e(He, { style: { width: 1, padding: 0, border: "none" } })
6298
6298
  ] }, `sa-tl-sk-${E}`)), Mn = (x, E) => {
6299
6299
  E || le({
6300
- ...ie,
6301
- hidden: [...ie.hidden ?? [], x]
6300
+ ...ne,
6301
+ hidden: [...ne.hidden ?? [], x]
6302
6302
  });
6303
6303
  }, Wn = (x) => le({
6304
- ...ie,
6305
- frozenKey: ie.frozenKey === x ? void 0 : x
6304
+ ...ne,
6305
+ frozenKey: ne.frozenKey === x ? void 0 : x
6306
6306
  }), vt = (x) => (C ?? []).filter((E) => {
6307
6307
  var R;
6308
6308
  return !((R = E.hidden) != null && R.call(E, x));
@@ -6319,7 +6319,7 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6319
6319
  background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
6320
6320
  }, Ct = (x, E, R, Q) => {
6321
6321
  var qe;
6322
- const fe = (qe = x.disabled) == null ? void 0 : qe.call(x, E), ve = (Q == null ? void 0 : Q.showLabel) ?? x.showLabel, ee = (Q == null ? void 0 : Q.size) ?? "xs", me = /* @__PURE__ */ e(
6322
+ const fe = (qe = x.disabled) == null ? void 0 : qe.call(x, E), ve = (Q == null ? void 0 : Q.showLabel) ?? x.showLabel, ee = (Q == null ? void 0 : Q.size) ?? "xs", ge = /* @__PURE__ */ e(
6323
6323
  T,
6324
6324
  {
6325
6325
  size: ee,
@@ -6331,7 +6331,7 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6331
6331
  children: ve && x.label
6332
6332
  }
6333
6333
  ), Me = x.tooltip;
6334
- return Me ? /* @__PURE__ */ e(We, { label: Me, position: "top-end", children: me }) : me;
6334
+ return Me ? /* @__PURE__ */ e(We, { label: Me, position: "top-end", children: ge }) : ge;
6335
6335
  }, Bn = (x, E) => {
6336
6336
  const R = vt(x);
6337
6337
  if (!R.length) return null;
@@ -6349,11 +6349,11 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6349
6349
  size: "xs",
6350
6350
  variant: "tertiary",
6351
6351
  onClick: (ee) => {
6352
- const me = ee.currentTarget.getBoundingClientRect();
6352
+ const ge = ee.currentTarget.getBoundingClientRect();
6353
6353
  $(ve ? null : {
6354
6354
  rowKey: fe,
6355
- top: me.bottom + 4,
6356
- right: window.innerWidth - me.right
6355
+ top: ge.bottom + 4,
6356
+ right: window.innerWidth - ge.right
6357
6357
  });
6358
6358
  },
6359
6359
  children: /* @__PURE__ */ e(L, { name: "MenuVertical", size: "sm" })
@@ -6370,13 +6370,13 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6370
6370
  const R = vt(x);
6371
6371
  return R.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: R.map((Q) => /* @__PURE__ */ e(et.Fragment, { children: Ct(Q, x, E, { showLabel: !1 }) }, Q.key)) }) : null;
6372
6372
  }, _t = (x, E) => {
6373
- const { col: R, key: Q } = x, fe = Ve.get(Q) ?? 0, ve = Pe(fe), ee = ve && fe === _e, me = (te == null ? void 0 : te.key) === Q ? te.direction : null, Me = a && !R.disableMenu ? /* @__PURE__ */ e(
6373
+ const { col: R, key: Q } = x, fe = Ve.get(Q) ?? 0, ve = Pe(fe), ee = ve && fe === _e, ge = (te == null ? void 0 : te.key) === Q ? te.direction : null, Me = a && !R.disableMenu ? /* @__PURE__ */ e(
6374
6374
  Ro,
6375
6375
  {
6376
- active: !!me || ve,
6376
+ active: !!ge || ve,
6377
6377
  canSort: Ye(R),
6378
6378
  canHide: !R.locked,
6379
- sortDir: me,
6379
+ sortDir: ge,
6380
6380
  frozen: ve,
6381
6381
  onSort: (Ut) => Fe({ key: Q, direction: Ut }),
6382
6382
  onClearSort: () => Fe(null),
@@ -6687,20 +6687,20 @@ const Cc = zo(Bo), Qr = 200, nr = "1px solid var(--sa-border-subtle, #0b120e24)"
6687
6687
  var ut;
6688
6688
  const ee = (ut = Q.cellProps) == null ? void 0 : ut.call(Q, x, E, xe);
6689
6689
  if (ee != null && ee.hidden) return null;
6690
- const me = Pe(ve), Me = me && ve === _e, qe = st(Q, x, E);
6690
+ const ge = Pe(ve), Me = ge && ve === _e, qe = st(Q, x, E);
6691
6691
  return /* @__PURE__ */ e(
6692
6692
  He,
6693
6693
  {
6694
- className: me ? "sa-tl-frozen" : void 0,
6694
+ className: ge ? "sa-tl-frozen" : void 0,
6695
6695
  colSpan: ee == null ? void 0 : ee.colSpan,
6696
6696
  rowSpan: ee == null ? void 0 : ee.rowSpan,
6697
6697
  style: {
6698
6698
  textAlign: Et(Q.align),
6699
6699
  width: Ce(Q, ve),
6700
6700
  minWidth: Q.minWidth,
6701
- position: me ? "sticky" : void 0,
6702
- left: me ? Te(ve) : void 0,
6703
- zIndex: me ? 1 : void 0,
6701
+ position: ge ? "sticky" : void 0,
6702
+ left: ge ? Te(ve) : void 0,
6703
+ zIndex: ge ? 1 : void 0,
6704
6704
  boxShadow: Me ? Yr : void 0
6705
6705
  },
6706
6706
  children: typeof qe == "string" ? /* @__PURE__ */ e(
@@ -8092,9 +8092,9 @@ const Kr = {
8092
8092
  (J = j.current) == null || J.click();
8093
8093
  }
8094
8094
  }));
8095
- const ne = parseInt(l, 10), ge = Kr[s];
8096
- let ie, le;
8097
- return ge >= 1 ? (le = ne, ie = ne * ge) : (ie = ne, le = ne / ge), /* @__PURE__ */ u(
8095
+ const ie = parseInt(l, 10), me = Kr[s];
8096
+ let ne, le;
8097
+ return me >= 1 ? (le = ie, ne = ie * me) : (ne = ie, le = ie / me), /* @__PURE__ */ u(
8098
8098
  m,
8099
8099
  {
8100
8100
  direction: "column",
@@ -8109,9 +8109,9 @@ const Kr = {
8109
8109
  align: "center",
8110
8110
  justify: "center",
8111
8111
  style: {
8112
- width: c != null && c.fullWidth ? "100%" : `${ie}px`,
8112
+ width: c != null && c.fullWidth ? "100%" : `${ne}px`,
8113
8113
  height: c != null && c.fullWidth ? "auto" : `${le}px`,
8114
- aspectRatio: ge,
8114
+ aspectRatio: me,
8115
8115
  flexShrink: 0
8116
8116
  },
8117
8117
  onMouseEnter: () => b(!0),
@@ -8249,7 +8249,7 @@ const Kr = {
8249
8249
  borderRadius: "var(--sa-radii-md)",
8250
8250
  boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
8251
8251
  overflow: "hidden",
8252
- width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ie * 2}px)` : "calc(100vw - 2rem)",
8252
+ width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ne * 2}px)` : "calc(100vw - 2rem)",
8253
8253
  display: "flex",
8254
8254
  flexDirection: "column"
8255
8255
  },
@@ -8724,7 +8724,7 @@ const Pc = ({
8724
8724
  const C = De("md"), H = n !== void 0, [A, v] = I(o), S = H ? n : A, $ = () => {
8725
8725
  const he = !S;
8726
8726
  H || v(he), i == null || i(he);
8727
- }, O = s === "left", j = typeof c == "number" ? `${c}px` : c, G = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ne = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, ge = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, ie = S ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", le = M !== void 0 && (k === "mobile" ? !C : k), J = le ? {
8727
+ }, O = s === "left", j = typeof c == "number" ? `${c}px` : c, G = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ie = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, me = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, ne = S ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", le = M !== void 0 && (k === "mobile" ? !C : k), J = le ? {
8728
8728
  position: "absolute",
8729
8729
  top: 0,
8730
8730
  bottom: 0,
@@ -8796,13 +8796,13 @@ const Pc = ({
8796
8796
  justify: "center",
8797
8797
  position: "absolute",
8798
8798
  onClick: $,
8799
- "aria-label": S ? ne.expand : ne.collapse,
8799
+ "aria-label": S ? ie.expand : ie.collapse,
8800
8800
  "aria-expanded": !S,
8801
8801
  "aria-pressed": S,
8802
8802
  customWidth: or,
8803
8803
  customHeight: gl,
8804
8804
  style: {
8805
- ...ge,
8805
+ ...me,
8806
8806
  backgroundColor: rn,
8807
8807
  border: pl,
8808
8808
  zIndex: 5,
@@ -8818,7 +8818,7 @@ const Pc = ({
8818
8818
  // boxShadow: "-2px 0 6px rgba(0, 0, 0, 0.04)",
8819
8819
  }
8820
8820
  },
8821
- children: /* @__PURE__ */ e(L, { name: ie, size: "sm" })
8821
+ children: /* @__PURE__ */ e(L, { name: ne, size: "sm" })
8822
8822
  }
8823
8823
  )
8824
8824
  ]
@@ -10697,8 +10697,8 @@ function Fl(t) {
10697
10697
  };
10698
10698
  }, [r, g]), U(() => {
10699
10699
  if (!r || f) return;
10700
- const G = (ne) => {
10701
- ne.key === "Escape" && n();
10700
+ const G = (ie) => {
10701
+ ie.key === "Escape" && n();
10702
10702
  };
10703
10703
  return window.addEventListener("keydown", G), () => window.removeEventListener("keydown", G);
10704
10704
  }, [r, f, n]);