@abpjs/ui 0.2.0-next.40 → 0.2.0-next.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1603,7 +1603,7 @@ function useTokenVar() {
1603
1603
  }
1604
1604
 
1605
1605
  // src/version.ts
1606
- var ABP_UI_VERSION = true ? "0.2.0-next.40" : "0.0.0-dev";
1606
+ var ABP_UI_VERSION = true ? "0.2.0-next.42" : "0.0.0-dev";
1607
1607
 
1608
1608
  // src/provider/time-zone.tsx
1609
1609
  import { createContext, useContext } from "react";
@@ -2590,7 +2590,12 @@ var Field = forwardRef2(function Field2({ label, helperText, errorText: errorTex
2590
2590
  return /* @__PURE__ */ jsxs7(ChakraField.Root, { ref, invalid: invalid ?? Boolean(errorText2), ...rest, children: [
2591
2591
  label != null && /* @__PURE__ */ jsxs7(ChakraField.Label, { children: [
2592
2592
  label,
2593
- /* @__PURE__ */ jsx13(ChakraField.RequiredIndicator, { fallback: optionalText })
2593
+ /* @__PURE__ */ jsx13(
2594
+ ChakraField.RequiredIndicator,
2595
+ {
2596
+ fallback: optionalText != null ? /* @__PURE__ */ jsx13(chakra5.span, { ms: "1.5", color: "fg.muted", fontWeight: "normal", textStyle: "caption", children: optionalText }) : void 0
2597
+ }
2598
+ )
2594
2599
  ] }),
2595
2600
  loading ? /* @__PURE__ */ jsx13(chakra5.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2596
2601
  helperText != null && /* @__PURE__ */ jsx13(ChakraField.HelperText, { children: helperText }),
@@ -6814,9 +6819,168 @@ async function readTable(file) {
6814
6819
  throw new Error(kind === "old" ? "old" : "type");
6815
6820
  }
6816
6821
 
6822
+ // src/files/columns.ts
6823
+ var PATTERNS = [
6824
+ ["integer", /^[-+]?\d+$/],
6825
+ ["decimal", /^[-+]?(\d+[.,]\d*|\d*[.,]\d+)([eE][-+]?\d+)?$/],
6826
+ ["boolean", /^(true|false|yes|no)$/i],
6827
+ ["date", /^\d{4}-\d{2}-\d{2}$/],
6828
+ ["timestamp", /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?$/],
6829
+ ["uuid", /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i]
6830
+ ];
6831
+ function guessType(values) {
6832
+ const filled = values.map((v) => v.trim()).filter((v) => v !== "");
6833
+ if (filled.length === 0) return "text";
6834
+ const fits = (re) => filled.every((v) => re.test(v));
6835
+ for (const [kind, re] of PATTERNS) {
6836
+ if (kind === "decimal" ? filled.every((v) => PATTERNS[0][1].test(v) || re.test(v)) : fits(re)) return kind;
6837
+ }
6838
+ return "text";
6839
+ }
6840
+ var headerKey = (text) => text.normalize("NFKC").toLowerCase().replace(/[\s_\-.]+/g, "");
6841
+ function guessTargets(headers, samples, fields, options = {}) {
6842
+ const allowNew = options.allowNew ?? !(fields && fields.length > 0);
6843
+ const used = /* @__PURE__ */ new Set();
6844
+ return headers.map((header, i) => {
6845
+ const key = headerKey(header);
6846
+ const field = (fields ?? []).find((f) => !used.has(f.name) && key !== "" && (headerKey(f.name) === key || f.label != null && headerKey(f.label) === key));
6847
+ if (field) {
6848
+ used.add(field.name);
6849
+ return { kind: "field", name: field.name };
6850
+ }
6851
+ if (!allowNew) return { kind: "skip" };
6852
+ const kind = guessType(samples.map((row) => row[i] ?? ""));
6853
+ return { kind: "new", name: options.nameOf ? options.nameOf(header, i) : header.trim() || `column${i + 1}`, type: options.typeOf ? options.typeOf(kind) : kind };
6854
+ });
6855
+ }
6856
+ function columnCounts(targets) {
6857
+ return {
6858
+ total: targets.length,
6859
+ created: targets.filter((t) => t.kind === "new").length,
6860
+ matched: targets.filter((t) => t.kind === "field").length,
6861
+ skipped: targets.filter((t) => t.kind === "skip").length
6862
+ };
6863
+ }
6864
+ function columnProblems(targets) {
6865
+ const fields = targets.flatMap((t) => t.kind === "field" ? [t.name] : []);
6866
+ const names = targets.flatMap((t) => t.kind === "new" && t.name.trim() ? [t.name.trim().toLowerCase()] : []);
6867
+ const dupes = (list) => [...new Set(list.filter((x, i) => list.indexOf(x) !== i))];
6868
+ return {
6869
+ twice: dupes(fields),
6870
+ unnamed: targets.flatMap((t, i) => t.kind === "new" && !t.name.trim() ? [i] : []),
6871
+ sameName: dupes(names)
6872
+ };
6873
+ }
6874
+
6875
+ // src/components/ColumnMatcher.tsx
6876
+ import { useId as useId5 } from "react";
6877
+ import { Box as Box8, chakra as chakra21, HStack as HStack7, Input as Input5, Stack as Stack8, Table as Table2, Text as Text12 } from "@chakra-ui/react";
6878
+ import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
6879
+ var DEFAULT_LABELS = {
6880
+ title: "Match columns",
6881
+ column: "Column in your file",
6882
+ samples: "First values",
6883
+ target: "Goes to",
6884
+ targetFor: "Field for {column}",
6885
+ newField: "New field\u2026",
6886
+ skip: "Don\u2019t import",
6887
+ newName: "New field\u2019s name",
6888
+ newType: "New field\u2019s type",
6889
+ summary: "{total, plural, one {# column} other {# columns}}: {created} new, {matched} matched, {skipped} skipped",
6890
+ twice: "{field} is picked for more than one column",
6891
+ unnamed: "Name the new field",
6892
+ sameName: "Two new fields are called {name}"
6893
+ };
6894
+ function ColumnMatcher({ headers, samples, fields, allowNew, types, typeOf, value, onChange, renderExtra, extraHeader, disabled, labels: given }) {
6895
+ const labels = { ...DEFAULT_LABELS, ...given };
6896
+ const { locale } = useAbpLocale();
6897
+ const titleId = useId5();
6898
+ const canNew = allowNew ?? !(fields && fields.length > 0);
6899
+ const counts = columnCounts(value);
6900
+ const problems = columnProblems(value);
6901
+ const named = (name) => fields?.find((f) => f.name === name)?.label ?? name;
6902
+ const set2 = (i, target) => onChange(value.map((t, j) => j === i ? target : t));
6903
+ const options = [
6904
+ ...(fields ?? []).map((f) => ({ value: `field:${f.name}`, label: f.label ?? f.name })),
6905
+ ...canNew ? [{ value: "new", label: labels.newField }] : [],
6906
+ { value: "skip", label: labels.skip }
6907
+ ];
6908
+ const lines = [
6909
+ ...problems.twice.map((f) => formatMessage(locale, labels.twice, { field: named(f) })),
6910
+ ...problems.unnamed.length ? [labels.unnamed] : [],
6911
+ ...problems.sameName.map((n) => formatMessage(locale, labels.sameName, { name: n }))
6912
+ ];
6913
+ return /* @__PURE__ */ jsxs29(Stack8, { gap: "2", minW: "0", children: [
6914
+ /* @__PURE__ */ jsx38(Text12, { id: titleId, textStyle: "label", children: labels.title }),
6915
+ /* @__PURE__ */ jsx38(Box8, { overflowX: "auto", borderWidth: "1px", borderColor: "border", borderRadius: "l2", children: /* @__PURE__ */ jsxs29(Table2.Root, { size: "sm", "aria-labelledby": titleId, children: [
6916
+ /* @__PURE__ */ jsx38(Table2.Header, { children: /* @__PURE__ */ jsxs29(Table2.Row, { bg: "bg.muted", children: [
6917
+ /* @__PURE__ */ jsx38(Table2.ColumnHeader, { children: labels.column }),
6918
+ /* @__PURE__ */ jsx38(Table2.ColumnHeader, { children: labels.samples }),
6919
+ /* @__PURE__ */ jsx38(Table2.ColumnHeader, { children: labels.target }),
6920
+ renderExtra && /* @__PURE__ */ jsx38(Table2.ColumnHeader, { children: extraHeader })
6921
+ ] }) }),
6922
+ /* @__PURE__ */ jsx38(Table2.Body, { children: headers.map((header, i) => {
6923
+ const target = value[i] ?? { kind: "skip" };
6924
+ const picked = target.kind === "field" ? `field:${target.name}` : target.kind;
6925
+ const shown = samples.map((row) => row[i] ?? "").filter((v) => v.trim() !== "").slice(0, 3);
6926
+ return /* @__PURE__ */ jsxs29(Table2.Row, { opacity: target.kind === "skip" ? 0.7 : void 0, children: [
6927
+ /* @__PURE__ */ jsx38(Table2.Cell, { fontWeight: "semibold", maxW: "48", truncate: true, title: header, children: header }),
6928
+ /* @__PURE__ */ jsx38(Table2.Cell, { color: "fg.muted", maxW: "56", children: /* @__PURE__ */ jsx38(Stack8, { gap: "0", children: shown.map((v, k) => /* @__PURE__ */ jsx38(Text12, { as: "span", textStyle: "caption", truncate: true, title: v, children: v }, k)) }) }),
6929
+ /* @__PURE__ */ jsx38(Table2.Cell, { minW: "56", children: /* @__PURE__ */ jsxs29(Stack8, { gap: "1.5", children: [
6930
+ /* @__PURE__ */ jsx38(
6931
+ SelectField,
6932
+ {
6933
+ size: "sm",
6934
+ "aria-label": formatMessage(locale, labels.targetFor, { column: header }),
6935
+ value: picked,
6936
+ disabled,
6937
+ onChange: (e) => {
6938
+ const v = e.target.value;
6939
+ const guessed = typeOf?.(guessType(samples.map((row) => row[i] ?? "")));
6940
+ const type = guessed && types.some((x) => x.value === guessed) ? guessed : types[0]?.value ?? "text";
6941
+ set2(i, v === "skip" ? { kind: "skip" } : v === "new" ? { kind: "new", name: header.trim(), type } : { kind: "field", name: v.slice(6) });
6942
+ },
6943
+ options
6944
+ }
6945
+ ),
6946
+ target.kind === "new" && /* @__PURE__ */ jsxs29(HStack7, { gap: "1.5", align: "stretch", children: [
6947
+ /* @__PURE__ */ jsx38(
6948
+ Input5,
6949
+ {
6950
+ size: "sm",
6951
+ "aria-label": labels.newName,
6952
+ value: target.name,
6953
+ disabled,
6954
+ "aria-invalid": !target.name.trim() || void 0,
6955
+ onChange: (e) => set2(i, { ...target, name: e.target.value })
6956
+ }
6957
+ ),
6958
+ /* @__PURE__ */ jsx38(
6959
+ SelectField,
6960
+ {
6961
+ size: "sm",
6962
+ "aria-label": labels.newType,
6963
+ value: target.type,
6964
+ disabled,
6965
+ maxW: "10rem",
6966
+ onChange: (e) => set2(i, { ...target, type: e.target.value }),
6967
+ options: types
6968
+ }
6969
+ )
6970
+ ] })
6971
+ ] }) }),
6972
+ renderExtra && /* @__PURE__ */ jsx38(Table2.Cell, { children: renderExtra(i, target) })
6973
+ ] }, i);
6974
+ }) })
6975
+ ] }) }),
6976
+ /* @__PURE__ */ jsx38(Text12, { textStyle: "caption", color: "fg.muted", "aria-live": "polite", children: formatMessage(locale, labels.summary, { total: counts.total, created: counts.created, matched: counts.matched, skipped: counts.skipped }) }),
6977
+ lines.length > 0 && /* @__PURE__ */ jsx38(chakra21.ul, { ps: "4", listStyleType: "disc", color: "fg.error", textStyle: "caption", role: "alert", children: lines.map((l) => /* @__PURE__ */ jsx38("li", { children: l }, l)) })
6978
+ ] });
6979
+ }
6980
+
6817
6981
  // src/components/WidgetBoard.tsx
6818
6982
  import { useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useMemo as useMemo9, useRef as useRef14, useState as useState17 } from "react";
6819
- import { Box as Box8, chakra as chakra21, HStack as HStack7, Text as Text12 } from "@chakra-ui/react";
6983
+ import { Box as Box9, chakra as chakra22, HStack as HStack8, Text as Text13 } from "@chakra-ui/react";
6820
6984
  import { ArrowDown as ArrowDown2, ArrowUp as ArrowUp2, GripVertical as GripVertical3, Maximize2, Minimize2 } from "lucide-react";
6821
6985
 
6822
6986
  // src/components/widget-board/layout.ts
@@ -6906,7 +7070,7 @@ function fromTwelve(items) {
6906
7070
  }
6907
7071
 
6908
7072
  // src/components/WidgetBoard.tsx
6909
- import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
7073
+ import { jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
6910
7074
  var strip = (i) => ({ id: i.id, x: i.x, y: i.y, w: i.w });
6911
7075
  function WidgetBoard({
6912
7076
  items,
@@ -7097,11 +7261,11 @@ function WidgetBoard({
7097
7261
  const moving = gesture?.mode === "move" ? gesture : null;
7098
7262
  const slot = moving ? at.get(moving.id) : null;
7099
7263
  const reveal = { opacity: 0 };
7100
- return /* @__PURE__ */ jsxs29(Box8, { children: [
7101
- can && /* @__PURE__ */ jsx38(chakra21.p, { id: help, srOnly: true, children: labels.instructions }),
7102
- /* @__PURE__ */ jsx38(chakra21.p, { srOnly: true, role: "status", "aria-live": "polite", children: said }),
7103
- /* @__PURE__ */ jsxs29(
7104
- Box8,
7264
+ return /* @__PURE__ */ jsxs30(Box9, { children: [
7265
+ can && /* @__PURE__ */ jsx39(chakra22.p, { id: help, srOnly: true, children: labels.instructions }),
7266
+ /* @__PURE__ */ jsx39(chakra22.p, { srOnly: true, role: "status", "aria-live": "polite", children: said }),
7267
+ /* @__PURE__ */ jsxs30(
7268
+ Box9,
7105
7269
  {
7106
7270
  ref: board,
7107
7271
  role: "list",
@@ -7113,8 +7277,8 @@ function WidgetBoard({
7113
7277
  onPointerCancel: cancel,
7114
7278
  css: { "@media (prefers-reduced-motion: reduce)": { "& [data-widget-slot]": { transition: "none !important" } } },
7115
7279
  children: [
7116
- waiting && [[0, 30, 0], [30, 30, 0], [0, 20, 1], [20, 20, 1], [40, 20, 1]].map(([x, w, row], i) => /* @__PURE__ */ jsx38(
7117
- Box8,
7280
+ waiting && [[0, 30, 0], [30, 30, 0], [0, 20, 1], [20, 20, 1], [40, 20, 1]].map(([x, w, row], i) => /* @__PURE__ */ jsx39(
7281
+ Box9,
7118
7282
  {
7119
7283
  "aria-hidden": true,
7120
7284
  position: "absolute",
@@ -7127,8 +7291,8 @@ function WidgetBoard({
7127
7291
  },
7128
7292
  i
7129
7293
  )),
7130
- slot && /* @__PURE__ */ jsx38(
7131
- Box8,
7294
+ slot && /* @__PURE__ */ jsx39(
7295
+ Box9,
7132
7296
  {
7133
7297
  "aria-hidden": true,
7134
7298
  position: "absolute",
@@ -7160,14 +7324,14 @@ function WidgetBoard({
7160
7324
  { id: "two", label: labels.twoThirds, onSelect: () => setWidthOf(item, PRESETS.two) },
7161
7325
  { id: "full", label: labels.full, onSelect: () => setWidthOf(item, PRESETS.full) },
7162
7326
  { separator: true },
7163
- { id: "up", label: labels.moveUp, icon: /* @__PURE__ */ jsx38(ArrowUp2, {}), onSelect: () => moveBy(item, { vertical: "up" }) },
7164
- { id: "down", label: labels.moveDown, icon: /* @__PURE__ */ jsx38(ArrowDown2, {}), onSelect: () => moveBy(item, { vertical: "down" }) }
7327
+ { id: "up", label: labels.moveUp, icon: /* @__PURE__ */ jsx39(ArrowUp2, {}), onSelect: () => moveBy(item, { vertical: "up" }) },
7328
+ { id: "down", label: labels.moveDown, icon: /* @__PURE__ */ jsx39(ArrowDown2, {}), onSelect: () => moveBy(item, { vertical: "down" }) }
7165
7329
  ] : [];
7166
7330
  const own2 = menu?.(item) ?? [];
7167
7331
  const red = own2.filter((e) => "danger" in e && e.danger);
7168
7332
  const entries2 = [...own2.filter((e) => !red.includes(e)), ...presets, ...red.length ? [{ separator: true }, ...red] : []].filter((e, i, all) => !("separator" in e) || i > 0 && i < all.length - 1 && !("separator" in all[i - 1]));
7169
- return /* @__PURE__ */ jsx38(
7170
- Box8,
7333
+ return /* @__PURE__ */ jsx39(
7334
+ Box9,
7171
7335
  {
7172
7336
  role: "listitem",
7173
7337
  "data-widget-slot": "",
@@ -7178,8 +7342,8 @@ function WidgetBoard({
7178
7342
  zIndex: dragging ? 3 : sizing ? 2 : void 0,
7179
7343
  visibility: width ? void 0 : "hidden",
7180
7344
  transition: dragging || sizing ? void 0 : "top 200ms ease, inset-inline-start 200ms ease, width 150ms ease",
7181
- children: /* @__PURE__ */ jsxs29(
7182
- chakra21.section,
7345
+ children: /* @__PURE__ */ jsxs30(
7346
+ chakra22.section,
7183
7347
  {
7184
7348
  "data-widget": p.id,
7185
7349
  ref: measure(p.id),
@@ -7200,10 +7364,10 @@ function WidgetBoard({
7200
7364
  "@media (hover: none)": { "& [data-reveal]": { opacity: 1 } }
7201
7365
  },
7202
7366
  children: [
7203
- /* @__PURE__ */ jsxs29(HStack7, { gap: "1", ps: "4", pe: "2", pt: "2", minH: "11", children: [
7204
- /* @__PURE__ */ jsx38(Text12, { as: "h3", flex: "1", minW: "0", truncate: true, fontWeight: "semibold", textStyle: "body.sm", children: name }),
7205
- /* @__PURE__ */ jsxs29(HStack7, { gap: "0.5", flexShrink: 0, children: [
7206
- can && /* @__PURE__ */ jsx38(chakra21.span, { "data-reveal": "", display: "inline-flex", children: /* @__PURE__ */ jsx38(
7367
+ /* @__PURE__ */ jsxs30(HStack8, { gap: "1", ps: "4", pe: "2", pt: "2", minH: "11", children: [
7368
+ /* @__PURE__ */ jsx39(Text13, { as: "h3", flex: "1", minW: "0", truncate: true, fontWeight: "semibold", textStyle: "body.sm", children: name }),
7369
+ /* @__PURE__ */ jsxs30(HStack8, { gap: "0.5", flexShrink: 0, children: [
7370
+ can && /* @__PURE__ */ jsx39(chakra22.span, { "data-reveal": "", display: "inline-flex", children: /* @__PURE__ */ jsx39(
7207
7371
  IconButton,
7208
7372
  {
7209
7373
  size: "xs",
@@ -7215,16 +7379,16 @@ function WidgetBoard({
7215
7379
  css: { touchAction: "none" },
7216
7380
  onPointerDown: (e) => grab(e, item),
7217
7381
  onKeyDown: (e) => gripKey(e, item),
7218
- children: /* @__PURE__ */ jsx38(GripVertical3, {})
7382
+ children: /* @__PURE__ */ jsx39(GripVertical3, {})
7219
7383
  }
7220
7384
  ) }),
7221
- !narrow && /* @__PURE__ */ jsx38(chakra21.span, { "data-reveal": "", display: "inline-flex", children: /* @__PURE__ */ jsx38(Tooltip, { content: isOpen ? labels.restore : labels.expand, children: /* @__PURE__ */ jsx38(IconButton, { size: "xs", variant: "ghost", color: "fg.muted", "aria-label": isOpen ? labels.restore : labels.expand, "aria-pressed": isOpen, onClick: () => toggle(p.id), children: isOpen ? /* @__PURE__ */ jsx38(Minimize2, {}) : /* @__PURE__ */ jsx38(Maximize2, {}) }) }) }),
7222
- entries2.length > 0 && /* @__PURE__ */ jsx38(RowMenu, { label: labels.actions(name), items: entries2, size: "xs" })
7385
+ !narrow && /* @__PURE__ */ jsx39(chakra22.span, { "data-reveal": "", display: "inline-flex", children: /* @__PURE__ */ jsx39(Tooltip, { content: isOpen ? labels.restore : labels.expand, children: /* @__PURE__ */ jsx39(IconButton, { size: "xs", variant: "ghost", color: "fg.muted", "aria-label": isOpen ? labels.restore : labels.expand, "aria-pressed": isOpen, onClick: () => toggle(p.id), children: isOpen ? /* @__PURE__ */ jsx39(Minimize2, {}) : /* @__PURE__ */ jsx39(Maximize2, {}) }) }) }),
7386
+ entries2.length > 0 && /* @__PURE__ */ jsx39(RowMenu, { label: labels.actions(name), items: entries2, size: "xs" })
7223
7387
  ] })
7224
7388
  ] }),
7225
- /* @__PURE__ */ jsx38(Box8, { px: "4", pb: "4", pt: "1", minW: "0", overflowX: "auto", children: renderItem(item, { expanded: isOpen }) }),
7226
- can && !isOpen && /* @__PURE__ */ jsx38(
7227
- chakra21.span,
7389
+ /* @__PURE__ */ jsx39(Box9, { px: "4", pb: "4", pt: "1", minW: "0", overflowX: "auto", children: renderItem(item, { expanded: isOpen }) }),
7390
+ can && !isOpen && /* @__PURE__ */ jsx39(
7391
+ chakra22.span,
7228
7392
  {
7229
7393
  role: "slider",
7230
7394
  tabIndex: 0,
@@ -7248,7 +7412,7 @@ function WidgetBoard({
7248
7412
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "1px", borderRadius: "full" },
7249
7413
  onPointerDown: (e) => resizeStart(e, item),
7250
7414
  onKeyDown: (e) => handleKey(e, item),
7251
- children: /* @__PURE__ */ jsx38(chakra21.span, { w: "1", h: "8", borderRadius: "full", bg: "border.emphasized" })
7415
+ children: /* @__PURE__ */ jsx39(chakra22.span, { w: "1", h: "8", borderRadius: "full", bg: "border.emphasized" })
7252
7416
  }
7253
7417
  )
7254
7418
  ]
@@ -7268,8 +7432,8 @@ function draftWidth(p, draft) {
7268
7432
  }
7269
7433
 
7270
7434
  // src/components/CategoryProgress.tsx
7271
- import { Box as Box9, HStack as HStack8 } from "@chakra-ui/react";
7272
- import { jsx as jsx39 } from "react/jsx-runtime";
7435
+ import { Box as Box10, HStack as HStack9 } from "@chakra-ui/react";
7436
+ import { jsx as jsx40 } from "react/jsx-runtime";
7273
7437
  function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "aria-label": ariaLabel }) {
7274
7438
  const loading = useLoading(own);
7275
7439
  const total = loading ? 0 : todo + inProgress + done;
@@ -7278,15 +7442,15 @@ function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "
7278
7442
  { key: "inProgress", value: inProgress },
7279
7443
  { key: "todo", value: todo }
7280
7444
  ];
7281
- return /* @__PURE__ */ jsx39(HStack8, { role: "img", "aria-label": ariaLabel, gap: "0", h: size === "sm" ? "1.5" : "2", w: "full", minW: "16", rounded: "full", overflow: "hidden", bg: "bg.muted", css: loading ? shineCss : void 0, children: total > 0 && parts.filter((p) => p.value > 0).map((p) => /* @__PURE__ */ jsx39(Box9, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
7445
+ return /* @__PURE__ */ jsx40(HStack9, { role: "img", "aria-label": ariaLabel, gap: "0", h: size === "sm" ? "1.5" : "2", w: "full", minW: "16", rounded: "full", overflow: "hidden", bg: "bg.muted", css: loading ? shineCss : void 0, children: total > 0 && parts.filter((p) => p.value > 0).map((p) => /* @__PURE__ */ jsx40(Box10, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
7282
7446
  }
7283
7447
 
7284
7448
  // src/components/AttentionChip.tsx
7285
- import { chakra as chakra23 } from "@chakra-ui/react";
7449
+ import { chakra as chakra24 } from "@chakra-ui/react";
7286
7450
 
7287
7451
  // src/components/CountBadge.tsx
7288
- import { chakra as chakra22 } from "@chakra-ui/react";
7289
- import { jsx as jsx40 } from "react/jsx-runtime";
7452
+ import { chakra as chakra23 } from "@chakra-ui/react";
7453
+ import { jsx as jsx41 } from "react/jsx-runtime";
7290
7454
  var TONES2 = {
7291
7455
  neutral: { bg: "bg.emphasized", color: "fg" },
7292
7456
  accent: { bg: "accent.subtle", color: "accent.fg" },
@@ -7296,8 +7460,8 @@ var TONES2 = {
7296
7460
  function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...rest }) {
7297
7461
  const fmt = useFormatters();
7298
7462
  const loading = useLoading(own);
7299
- return /* @__PURE__ */ jsx40(
7300
- chakra22.span,
7463
+ return /* @__PURE__ */ jsx41(
7464
+ chakra23.span,
7301
7465
  {
7302
7466
  display: "inline-flex",
7303
7467
  alignItems: "center",
@@ -7321,11 +7485,11 @@ function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...res
7321
7485
  }
7322
7486
 
7323
7487
  // src/components/AttentionChip.tsx
7324
- import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
7488
+ import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
7325
7489
  function AttentionChip({ count, children, tone = "neutral", pressed, onClick, disabled, loading: own }) {
7326
7490
  const loading = useLoading(own);
7327
- return /* @__PURE__ */ jsxs30(
7328
- chakra23.button,
7491
+ return /* @__PURE__ */ jsxs31(
7492
+ chakra24.button,
7329
7493
  {
7330
7494
  type: "button",
7331
7495
  display: "inline-flex",
@@ -7350,7 +7514,7 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
7350
7514
  disabled: disabled || loading,
7351
7515
  onClick,
7352
7516
  children: [
7353
- /* @__PURE__ */ jsx41(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
7517
+ /* @__PURE__ */ jsx42(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
7354
7518
  children
7355
7519
  ]
7356
7520
  }
@@ -7358,13 +7522,13 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
7358
7522
  }
7359
7523
 
7360
7524
  // src/components/IconTile.tsx
7361
- import { chakra as chakra24 } from "@chakra-ui/react";
7362
- import { jsx as jsx42 } from "react/jsx-runtime";
7525
+ import { chakra as chakra25 } from "@chakra-ui/react";
7526
+ import { jsx as jsx43 } from "react/jsx-runtime";
7363
7527
  var SIZES = { sm: { box: "6", icon: "3.5" }, md: { box: "8", icon: "4" }, lg: { box: "10", icon: "5" } };
7364
7528
  function IconTile({ children, size = "md", active = false, palette: palette3 }) {
7365
7529
  const s = SIZES[size];
7366
- return /* @__PURE__ */ jsx42(
7367
- chakra24.span,
7530
+ return /* @__PURE__ */ jsx43(
7531
+ chakra25.span,
7368
7532
  {
7369
7533
  display: "inline-flex",
7370
7534
  alignItems: "center",
@@ -7386,17 +7550,17 @@ function IconTile({ children, size = "md", active = false, palette: palette3 })
7386
7550
  }
7387
7551
 
7388
7552
  // src/components/PersonChip.tsx
7389
- import { Avatar as Avatar2, chakra as chakra25 } from "@chakra-ui/react";
7390
- import { jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
7553
+ import { Avatar as Avatar2, chakra as chakra26 } from "@chakra-ui/react";
7554
+ import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
7391
7555
  var SIZES2 = { xs: "5", sm: "6", md: "8" };
7392
7556
  function PersonChip({ id, name, picture, compact = false, size = "sm", loading: own }) {
7393
7557
  if (useLoading(own)) {
7394
- return /* @__PURE__ */ jsxs31(chakra25.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
7395
- /* @__PURE__ */ jsx43(Bone, { circle: true, height: SIZES2[size] }),
7396
- !compact && /* @__PURE__ */ jsx43(TextBone, { width: 12 })
7558
+ return /* @__PURE__ */ jsxs32(chakra26.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
7559
+ /* @__PURE__ */ jsx44(Bone, { circle: true, height: SIZES2[size] }),
7560
+ !compact && /* @__PURE__ */ jsx44(TextBone, { width: 12 })
7397
7561
  ] });
7398
7562
  }
7399
- const avatar = /* @__PURE__ */ jsxs31(
7563
+ const avatar = /* @__PURE__ */ jsxs32(
7400
7564
  Avatar2.Root,
7401
7565
  {
7402
7566
  colorPalette: avatarPalette(id),
@@ -7409,20 +7573,20 @@ function PersonChip({ id, name, picture, compact = false, size = "sm", loading:
7409
7573
  flexShrink: 0,
7410
7574
  ...compact ? { role: "img", "aria-label": name, title: name } : { "aria-hidden": true },
7411
7575
  children: [
7412
- /* @__PURE__ */ jsx43(Avatar2.Fallback, { name }),
7413
- picture && /* @__PURE__ */ jsx43(Avatar2.Image, { src: picture, alt: "" })
7576
+ /* @__PURE__ */ jsx44(Avatar2.Fallback, { name }),
7577
+ picture && /* @__PURE__ */ jsx44(Avatar2.Image, { src: picture, alt: "" })
7414
7578
  ]
7415
7579
  }
7416
7580
  );
7417
7581
  if (compact) return avatar;
7418
- return /* @__PURE__ */ jsxs31(chakra25.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
7582
+ return /* @__PURE__ */ jsxs32(chakra26.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
7419
7583
  avatar,
7420
- /* @__PURE__ */ jsx43(chakra25.span, { truncate: true, children: name })
7584
+ /* @__PURE__ */ jsx44(chakra26.span, { truncate: true, children: name })
7421
7585
  ] });
7422
7586
  }
7423
7587
 
7424
7588
  // src/components/PriorityMark.tsx
7425
- import { chakra as chakra26 } from "@chakra-ui/react";
7589
+ import { chakra as chakra27 } from "@chakra-ui/react";
7426
7590
 
7427
7591
  // src/components/priority-level.ts
7428
7592
  function priorityLevel(rank, of) {
@@ -7434,12 +7598,12 @@ function priorityLevel(rank, of) {
7434
7598
  }
7435
7599
 
7436
7600
  // src/components/PriorityMark.tsx
7437
- import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
7601
+ import { jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
7438
7602
  function PriorityMark({ rank, of, children, title, loading }) {
7439
- if (useLoading(loading)) return /* @__PURE__ */ jsx44(TextBone, { width: 7 });
7603
+ if (useLoading(loading)) return /* @__PURE__ */ jsx45(TextBone, { width: 7 });
7440
7604
  const { bars, palette: palette3 } = priorityLevel(rank, of);
7441
- return /* @__PURE__ */ jsxs32(
7442
- chakra26.span,
7605
+ return /* @__PURE__ */ jsxs33(
7606
+ chakra27.span,
7443
7607
  {
7444
7608
  display: "inline-flex",
7445
7609
  alignItems: "center",
@@ -7450,8 +7614,8 @@ function PriorityMark({ rank, of, children, title, loading }) {
7450
7614
  "aria-label": children == null ? title : void 0,
7451
7615
  whiteSpace: "nowrap",
7452
7616
  children: [
7453
- /* @__PURE__ */ jsx44(chakra26.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx44(
7454
- chakra26.rect,
7617
+ /* @__PURE__ */ jsx45(chakra27.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx45(
7618
+ chakra27.rect,
7455
7619
  {
7456
7620
  x: i * 3 + 0.5,
7457
7621
  y: 9 - i * 3,
@@ -7462,7 +7626,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
7462
7626
  },
7463
7627
  i
7464
7628
  )) }),
7465
- children != null && /* @__PURE__ */ jsx44(chakra26.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
7629
+ children != null && /* @__PURE__ */ jsx45(chakra27.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
7466
7630
  ]
7467
7631
  }
7468
7632
  );
@@ -7702,9 +7866,9 @@ function useAreaListSource(area, path, options = {}) {
7702
7866
  }
7703
7867
 
7704
7868
  // src/components/FormDialog.tsx
7705
- import { Fragment as Fragment15, useId as useId5, useRef as useRef17, useState as useState19 } from "react";
7706
- import { chakra as chakra27, CloseButton as CloseButton2, Dialog as Dialog4, Grid as Grid3, HStack as HStack9, Portal as Portal12, Stack as Stack8, Text as Text13 } from "@chakra-ui/react";
7707
- import { Fragment as Fragment16, jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
7869
+ import { Fragment as Fragment15, useId as useId6, useRef as useRef17, useState as useState19 } from "react";
7870
+ import { chakra as chakra28, CloseButton as CloseButton2, Dialog as Dialog4, Grid as Grid3, HStack as HStack10, Portal as Portal12, Stack as Stack9, Text as Text14 } from "@chakra-ui/react";
7871
+ import { Fragment as Fragment16, jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
7708
7872
  var isControl = (el) => el instanceof HTMLInputElement || el instanceof HTMLSelectElement || el instanceof HTMLTextAreaElement;
7709
7873
  function invalidControls(form) {
7710
7874
  return [...form.elements].filter((el) => isControl(el) && !el.disabled && el.willValidate && !el.checkValidity());
@@ -7741,7 +7905,7 @@ function FormDialog({
7741
7905
  children
7742
7906
  }) {
7743
7907
  const shape = size ?? (preview != null ? "wide" : "md");
7744
- const previewHeading = useId5();
7908
+ const previewHeading = useId6();
7745
7909
  const labels = useAbpLabels();
7746
7910
  const { locale } = useAbpLocale();
7747
7911
  const summary = useRef17(null);
@@ -7776,9 +7940,9 @@ function FormDialog({
7776
7940
  mark(el, false);
7777
7941
  if (problems.length > 0) setProblems(invalidControls(e.currentTarget).map(describe2));
7778
7942
  }
7779
- return /* @__PURE__ */ jsx45(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size: shape === "wide" ? "xl" : shape, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs33(Portal12, { children: [
7780
- /* @__PURE__ */ jsx45(Dialog4.Backdrop, {}),
7781
- /* @__PURE__ */ jsx45(Dialog4.Positioner, { children: /* @__PURE__ */ jsx45(Dialog4.Content, { asChild: true, ...shape === "wide" ? { maxW: "min(57.5rem, calc(100vw - 2rem))", w: "full" } : {}, children: /* @__PURE__ */ jsxs33(
7943
+ return /* @__PURE__ */ jsx46(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size: shape === "wide" ? "xl" : shape, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs34(Portal12, { children: [
7944
+ /* @__PURE__ */ jsx46(Dialog4.Backdrop, {}),
7945
+ /* @__PURE__ */ jsx46(Dialog4.Positioner, { children: /* @__PURE__ */ jsx46(Dialog4.Content, { asChild: true, ...shape === "wide" ? { maxW: "min(57.5rem, calc(100vw - 2rem))", w: "full" } : {}, children: /* @__PURE__ */ jsxs34(
7782
7946
  "form",
7783
7947
  {
7784
7948
  onSubmit: hideSubmit ? (e) => e.preventDefault() : submit,
@@ -7787,18 +7951,18 @@ function FormDialog({
7787
7951
  onInput: (e) => typed.current.add(e.target),
7788
7952
  noValidate: true,
7789
7953
  children: [
7790
- /* @__PURE__ */ jsx45(Dialog4.Header, { children: /* @__PURE__ */ jsx45(Dialog4.Title, { children: title }) }),
7791
- /* @__PURE__ */ jsx45(Dialog4.Body, { children: /* @__PURE__ */ jsxs33(
7954
+ /* @__PURE__ */ jsx46(Dialog4.Header, { children: /* @__PURE__ */ jsx46(Dialog4.Title, { children: title }) }),
7955
+ /* @__PURE__ */ jsx46(Dialog4.Body, { children: /* @__PURE__ */ jsxs34(
7792
7956
  Grid3,
7793
7957
  {
7794
7958
  templateColumns: preview != null ? { base: "minmax(0, 1fr)", md: "minmax(0, 1.35fr) minmax(0, 1fr)" } : "minmax(0, 1fr)",
7795
7959
  gap: "6",
7796
7960
  alignItems: "start",
7797
7961
  children: [
7798
- /* @__PURE__ */ jsxs33(Stack8, { gap: "field", minW: "0", children: [
7799
- description != null && /* @__PURE__ */ jsx45(Dialog4.Description, { children: description }),
7800
- problems.length > 0 && /* @__PURE__ */ jsx45(chakra27.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx45(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx45(chakra27.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx45("li", { children: /* @__PURE__ */ jsx45(
7801
- chakra27.button,
7962
+ /* @__PURE__ */ jsxs34(Stack9, { gap: "field", minW: "0", children: [
7963
+ description != null && /* @__PURE__ */ jsx46(Dialog4.Description, { children: description }),
7964
+ problems.length > 0 && /* @__PURE__ */ jsx46(chakra28.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx46(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx46(chakra28.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx46("li", { children: /* @__PURE__ */ jsx46(
7965
+ chakra28.button,
7802
7966
  {
7803
7967
  type: "button",
7804
7968
  textDecoration: "underline",
@@ -7812,10 +7976,10 @@ function FormDialog({
7812
7976
  }
7813
7977
  ) }, i)) }) }) }),
7814
7978
  children,
7815
- /* @__PURE__ */ jsx45(InlineAlert, { tone: "danger", children: error })
7979
+ /* @__PURE__ */ jsx46(InlineAlert, { tone: "danger", children: error })
7816
7980
  ] }),
7817
- preview != null && /* @__PURE__ */ jsxs33(
7818
- chakra27.aside,
7981
+ preview != null && /* @__PURE__ */ jsxs34(
7982
+ chakra28.aside,
7819
7983
  {
7820
7984
  "aria-labelledby": previewHeading,
7821
7985
  display: "flex",
@@ -7828,7 +7992,7 @@ function FormDialog({
7828
7992
  position: { md: "sticky" },
7829
7993
  top: "0",
7830
7994
  children: [
7831
- /* @__PURE__ */ jsx45(Text13, { id: previewHeading, textStyle: "label", children: previewTitle ?? labels.preview ?? "Preview" }),
7995
+ /* @__PURE__ */ jsx46(Text14, { id: previewHeading, textStyle: "label", children: previewTitle ?? labels.preview ?? "Preview" }),
7832
7996
  preview
7833
7997
  ]
7834
7998
  }
@@ -7836,48 +8000,48 @@ function FormDialog({
7836
8000
  ]
7837
8001
  }
7838
8002
  ) }),
7839
- /* @__PURE__ */ jsxs33(Dialog4.Footer, { children: [
7840
- dangerAction && /* @__PURE__ */ jsxs33(Fragment16, { children: [
7841
- /* @__PURE__ */ jsx45(Button, { variant: "link", danger: true, onClick: dangerAction.onClick, disabled: dangerAction.disabled, children: dangerAction.label }),
7842
- /* @__PURE__ */ jsx45(chakra27.span, { flex: "1", "aria-hidden": true })
8003
+ /* @__PURE__ */ jsxs34(Dialog4.Footer, { children: [
8004
+ dangerAction && /* @__PURE__ */ jsxs34(Fragment16, { children: [
8005
+ /* @__PURE__ */ jsx46(Button, { variant: "link", danger: true, onClick: dangerAction.onClick, disabled: dangerAction.disabled, children: dangerAction.label }),
8006
+ /* @__PURE__ */ jsx46(chakra28.span, { flex: "1", "aria-hidden": true })
7843
8007
  ] }),
7844
- /* @__PURE__ */ jsx45(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx45(Button, { variant: "cancel", children: labels.cancel }) }),
7845
- !hideSubmit && /* @__PURE__ */ jsx45(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
8008
+ /* @__PURE__ */ jsx46(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx46(Button, { variant: "cancel", children: labels.cancel }) }),
8009
+ !hideSubmit && /* @__PURE__ */ jsx46(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
7846
8010
  ] }),
7847
- /* @__PURE__ */ jsx45(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx45(CloseButton2, { size: "sm", "aria-label": labels.close }) })
8011
+ /* @__PURE__ */ jsx46(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx46(CloseButton2, { size: "sm", "aria-label": labels.close }) })
7848
8012
  ]
7849
8013
  }
7850
8014
  ) }) })
7851
8015
  ] }) });
7852
8016
  }
7853
8017
  function PreviewCard({ media, title, subtitle, items = [] }) {
7854
- return /* @__PURE__ */ jsxs33(Stack8, { gap: "4", p: "4", bg: "bg.panel", borderRadius: "l2", minW: "0", children: [
7855
- /* @__PURE__ */ jsxs33(HStack9, { gap: "3", minW: "0", children: [
8018
+ return /* @__PURE__ */ jsxs34(Stack9, { gap: "4", p: "4", bg: "bg.panel", borderRadius: "l2", minW: "0", children: [
8019
+ /* @__PURE__ */ jsxs34(HStack10, { gap: "3", minW: "0", children: [
7856
8020
  media,
7857
- /* @__PURE__ */ jsxs33(Stack8, { gap: "0.5", minW: "0", children: [
7858
- /* @__PURE__ */ jsx45(Text13, { textStyle: "lg", fontWeight: "semibold", truncate: true, children: title }),
7859
- subtitle != null && /* @__PURE__ */ jsx45(Text13, { as: "div", textStyle: "caption", color: "fg.muted", truncate: true, children: subtitle })
8021
+ /* @__PURE__ */ jsxs34(Stack9, { gap: "0.5", minW: "0", children: [
8022
+ /* @__PURE__ */ jsx46(Text14, { textStyle: "lg", fontWeight: "semibold", truncate: true, children: title }),
8023
+ subtitle != null && /* @__PURE__ */ jsx46(Text14, { as: "div", textStyle: "caption", color: "fg.muted", truncate: true, children: subtitle })
7860
8024
  ] })
7861
8025
  ] }),
7862
- items.length > 0 && /* @__PURE__ */ jsx45(chakra27.dl, { display: "grid", gridTemplateColumns: "auto minmax(0, 1fr)", columnGap: "4", rowGap: "2", textStyle: "body.sm", m: "0", children: items.map((item, i) => /* @__PURE__ */ jsxs33(Fragment15, { children: [
7863
- /* @__PURE__ */ jsx45(chakra27.dt, { color: "fg.muted", children: item.label }),
7864
- /* @__PURE__ */ jsx45(chakra27.dd, { m: "0", minW: "0", ...item.wrap ? { lineClamp: 3 } : { truncate: true }, children: item.value ?? EMPTY_VALUE })
8026
+ items.length > 0 && /* @__PURE__ */ jsx46(chakra28.dl, { display: "grid", gridTemplateColumns: "auto minmax(0, 1fr)", columnGap: "4", rowGap: "2", textStyle: "body.sm", m: "0", children: items.map((item, i) => /* @__PURE__ */ jsxs34(Fragment15, { children: [
8027
+ /* @__PURE__ */ jsx46(chakra28.dt, { color: "fg.muted", children: item.label }),
8028
+ /* @__PURE__ */ jsx46(chakra28.dd, { m: "0", minW: "0", ...item.wrap ? { lineClamp: 3 } : { truncate: true }, children: item.value ?? EMPTY_VALUE })
7865
8029
  ] }, i)) })
7866
8030
  ] });
7867
8031
  }
7868
8032
 
7869
8033
  // src/components/SaveBar.tsx
7870
- import { useId as useId6 } from "react";
7871
- import { Box as Box10, chakra as chakra28, Stack as Stack9, Text as Text14 } from "@chakra-ui/react";
8034
+ import { useId as useId7 } from "react";
8035
+ import { Box as Box11, chakra as chakra29, Stack as Stack10, Text as Text15 } from "@chakra-ui/react";
7872
8036
  import { FilePen } from "lucide-react";
7873
- import { jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
8037
+ import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
7874
8038
  var UNSAVED = "{count, plural, one {# change isn't saved yet} other {# changes aren't saved yet}}";
7875
8039
  function SaveBar({ open, onSave, onDiscard, count = 1, message, title, saveLabel, busy, saveDisabled }) {
7876
8040
  const labels = useAbpLabels();
7877
8041
  const { locale } = useAbpLocale();
7878
- const heading = useId6();
7879
- return /* @__PURE__ */ jsx46(Box10, { position: "fixed", insetInline: "0", bottom: "6", zIndex: "sticky", display: "flex", justifyContent: "center", px: "4", pointerEvents: "none", children: /* @__PURE__ */ jsx46(Presence, { show: open, from: "rise", maxW: "full", children: /* @__PURE__ */ jsxs34(
7880
- chakra28.section,
8042
+ const heading = useId7();
8043
+ return /* @__PURE__ */ jsx47(Box11, { position: "fixed", insetInline: "0", bottom: "6", zIndex: "sticky", display: "flex", justifyContent: "center", px: "4", pointerEvents: "none", children: /* @__PURE__ */ jsx47(Presence, { show: open, from: "rise", maxW: "full", children: /* @__PURE__ */ jsxs35(
8044
+ chakra29.section,
7881
8045
  {
7882
8046
  "aria-labelledby": heading,
7883
8047
  "data-testid": "save-bar",
@@ -7891,13 +8055,13 @@ function SaveBar({ open, onSave, onDiscard, count = 1, message, title, saveLabel
7891
8055
  bg: "bg.selected",
7892
8056
  color: "accent.fg",
7893
8057
  children: [
7894
- /* @__PURE__ */ jsx46(Box10, { flex: "none", display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: "8", borderRadius: "l2", bg: "bg.panel", "aria-hidden": true, children: /* @__PURE__ */ jsx46(FilePen, { size: 18, strokeWidth: 1.75 }) }),
7895
- /* @__PURE__ */ jsxs34(Stack9, { gap: "0", flex: "1", minW: { base: "0", sm: "11.25rem" }, me: { sm: "4" }, "aria-live": "polite", children: [
7896
- /* @__PURE__ */ jsx46(Text14, { id: heading, textStyle: "body.sm", fontWeight: "bold", color: "fg", children: title ?? labels.saveBar ?? "Save your changes?" }),
7897
- /* @__PURE__ */ jsx46(Text14, { textStyle: "caption", children: message ?? formatMessage(locale, labels.unsavedChanges ?? UNSAVED, { count }) })
8058
+ /* @__PURE__ */ jsx47(Box11, { flex: "none", display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: "8", borderRadius: "l2", bg: "bg.panel", "aria-hidden": true, children: /* @__PURE__ */ jsx47(FilePen, { size: 18, strokeWidth: 1.75 }) }),
8059
+ /* @__PURE__ */ jsxs35(Stack10, { gap: "0", flex: "1", minW: { base: "0", sm: "11.25rem" }, me: { sm: "4" }, "aria-live": "polite", children: [
8060
+ /* @__PURE__ */ jsx47(Text15, { id: heading, textStyle: "body.sm", fontWeight: "bold", color: "fg", children: title ?? labels.saveBar ?? "Save your changes?" }),
8061
+ /* @__PURE__ */ jsx47(Text15, { textStyle: "caption", children: message ?? formatMessage(locale, labels.unsavedChanges ?? UNSAVED, { count }) })
7898
8062
  ] }),
7899
- /* @__PURE__ */ jsx46(Button, { variant: "ghost", color: "accent.fg", fontWeight: "bold", _hover: { bg: "accent.emphasized" }, onClick: onDiscard, disabled: busy, children: labels.discard ?? "Discard" }),
7900
- /* @__PURE__ */ jsx46(Button, { variant: "primary", onClick: onSave, loading: busy, disabled: saveDisabled, children: saveLabel ?? labels.save ?? "Save" })
8063
+ /* @__PURE__ */ jsx47(Button, { variant: "ghost", color: "accent.fg", fontWeight: "bold", _hover: { bg: "accent.emphasized" }, onClick: onDiscard, disabled: busy, children: labels.discard ?? "Discard" }),
8064
+ /* @__PURE__ */ jsx47(Button, { variant: "primary", onClick: onSave, loading: busy, disabled: saveDisabled, children: saveLabel ?? labels.save ?? "Save" })
7901
8065
  ]
7902
8066
  }
7903
8067
  ) }) });
@@ -7905,32 +8069,32 @@ function SaveBar({ open, onSave, onDiscard, count = 1, message, title, saveLabel
7905
8069
 
7906
8070
  // src/settings/SettingsLayout.tsx
7907
8071
  import { useState as useState20 } from "react";
7908
- import { Text as Text15 } from "@chakra-ui/react";
8072
+ import { Text as Text16 } from "@chakra-ui/react";
7909
8073
 
7910
8074
  // src/components/SearchInput.tsx
7911
8075
  import { forwardRef as forwardRef7 } from "react";
7912
- import { Input as Input5, InputGroup } from "@chakra-ui/react";
8076
+ import { Input as Input6, InputGroup } from "@chakra-ui/react";
7913
8077
  import { Search as Search3 } from "lucide-react";
7914
- import { jsx as jsx47 } from "react/jsx-runtime";
8078
+ import { jsx as jsx48 } from "react/jsx-runtime";
7915
8079
  var SearchInput = forwardRef7(function SearchInput2({ size = "md", maxW, ...rest }, ref) {
7916
8080
  const skeleton = useLoading();
7917
- return /* @__PURE__ */ jsx47(
8081
+ return /* @__PURE__ */ jsx48(
7918
8082
  InputGroup,
7919
8083
  {
7920
- startElement: /* @__PURE__ */ jsx47(Search3, {}),
8084
+ startElement: /* @__PURE__ */ jsx48(Search3, {}),
7921
8085
  startOffset: "-0.25rem",
7922
8086
  startElementProps: { color: "fg.subtle", _icon: { boxSize: "4" } },
7923
8087
  maxW,
7924
8088
  borderRadius: "l2",
7925
8089
  "aria-hidden": skeleton || void 0,
7926
8090
  css: skeleton ? ghostCss : void 0,
7927
- children: /* @__PURE__ */ jsx47(Input5, { ref, type: "search", size, ...rest })
8091
+ children: /* @__PURE__ */ jsx48(Input6, { ref, type: "search", size, ...rest })
7928
8092
  }
7929
8093
  );
7930
8094
  });
7931
8095
 
7932
8096
  // src/settings/SettingsLayout.tsx
7933
- import { jsx as jsx48 } from "react/jsx-runtime";
8097
+ import { jsx as jsx49 } from "react/jsx-runtime";
7934
8098
  var isCurrent = (pathname, href) => pathname === href || pathname.startsWith(`${href}/`);
7935
8099
  function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav = [], children, ...shell }) {
7936
8100
  const [find, setFind] = useState20("");
@@ -7941,17 +8105,17 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
7941
8105
  items: pages.map((p) => ({ id: p.id, href: p.href, icon: p.icon, label: p.title, current: isCurrent(pathname, p.href) })).filter((i) => !q || i.label.toLocaleLowerCase().includes(q) || section.title.toLocaleLowerCase().includes(q))
7942
8106
  }));
7943
8107
  const found = !q || sections.some((s) => s.items.length > 0);
7944
- return /* @__PURE__ */ jsx48(
8108
+ return /* @__PURE__ */ jsx49(
7945
8109
  AppShell,
7946
8110
  {
7947
8111
  ...shell,
7948
8112
  topNav,
7949
8113
  sidebar: {
7950
8114
  id: sidebarId,
7951
- top: /* @__PURE__ */ jsx48(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
8115
+ top: /* @__PURE__ */ jsx49(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
7952
8116
  sections
7953
8117
  },
7954
- navFooter: !found ? /* @__PURE__ */ jsx48(Text15, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
8118
+ navFooter: !found ? /* @__PURE__ */ jsx49(Text16, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
7955
8119
  children
7956
8120
  }
7957
8121
  );
@@ -7959,7 +8123,7 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
7959
8123
 
7960
8124
  // src/components/SegmentedControl.tsx
7961
8125
  import { SegmentGroup } from "@chakra-ui/react";
7962
- import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
8126
+ import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
7963
8127
  function SegmentedControl({
7964
8128
  "aria-label": ariaLabel,
7965
8129
  items,
@@ -7971,7 +8135,7 @@ function SegmentedControl({
7971
8135
  }) {
7972
8136
  const loading = useLoading(own);
7973
8137
  const h = size === "sm" ? "7" : "8";
7974
- return /* @__PURE__ */ jsxs35(
8138
+ return /* @__PURE__ */ jsxs36(
7975
8139
  SegmentGroup.Root,
7976
8140
  {
7977
8141
  size: size === "sm" ? "sm" : "md",
@@ -7988,8 +8152,8 @@ function SegmentedControl({
7988
8152
  w: fitted ? "full" : void 0,
7989
8153
  "data-segmented": "",
7990
8154
  children: [
7991
- /* @__PURE__ */ jsx49(SegmentGroup.Indicator, {}),
7992
- items.map((item) => /* @__PURE__ */ jsxs35(
8155
+ /* @__PURE__ */ jsx50(SegmentGroup.Indicator, {}),
8156
+ items.map((item) => /* @__PURE__ */ jsxs36(
7993
8157
  SegmentGroup.Item,
7994
8158
  {
7995
8159
  value: item.value,
@@ -8010,9 +8174,9 @@ function SegmentedControl({
8010
8174
  _icon: { boxSize: "4", flexShrink: 0 },
8011
8175
  children: [
8012
8176
  item.icon,
8013
- /* @__PURE__ */ jsx49(SegmentGroup.ItemText, { children: item.label }),
8014
- item.count != null && /* @__PURE__ */ jsx49(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
8015
- /* @__PURE__ */ jsx49(SegmentGroup.ItemHiddenInput, {})
8177
+ /* @__PURE__ */ jsx50(SegmentGroup.ItemText, { children: item.label }),
8178
+ item.count != null && /* @__PURE__ */ jsx50(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
8179
+ /* @__PURE__ */ jsx50(SegmentGroup.ItemHiddenInput, {})
8016
8180
  ]
8017
8181
  },
8018
8182
  item.value
@@ -8024,7 +8188,7 @@ function SegmentedControl({
8024
8188
 
8025
8189
  // src/components/KanbanBoard.tsx
8026
8190
  import { useEffect as useEffect15, useLayoutEffect as useLayoutEffect4, useMemo as useMemo11, useRef as useRef18, useState as useState21 } from "react";
8027
- import { Box as Box11, chakra as chakra29, HStack as HStack10, Stack as Stack10, Text as Text16 } from "@chakra-ui/react";
8191
+ import { Box as Box12, chakra as chakra30, HStack as HStack11, Stack as Stack11, Text as Text17 } from "@chakra-ui/react";
8028
8192
  import { Check as Check2, ChevronsLeft, ChevronsRight, GripVertical as GripVertical4 } from "lucide-react";
8029
8193
  import {
8030
8194
  DndContext as DndContext2,
@@ -8060,13 +8224,13 @@ function between(cell, from, to) {
8060
8224
  }
8061
8225
 
8062
8226
  // src/components/KanbanBoard.tsx
8063
- import { Fragment as Fragment17, jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
8227
+ import { Fragment as Fragment17, jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
8064
8228
  var SKELETON_CARDS = [3, 2, 4, 1, 2];
8065
8229
  function PlaceholderCard({ index }) {
8066
- return /* @__PURE__ */ jsxs36(Box11, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
8067
- /* @__PURE__ */ jsx50(Box11, { mb: "1", children: /* @__PURE__ */ jsx50(RecordKey, { loading: true }) }),
8068
- /* @__PURE__ */ jsx50(Text16, { textStyle: "body.sm", children: /* @__PURE__ */ jsx50(TextBone, { width: boneWidth(index, 14, 34) }) }),
8069
- /* @__PURE__ */ jsx50(HStack10, { mt: "2", children: /* @__PURE__ */ jsx50(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
8230
+ return /* @__PURE__ */ jsxs37(Box12, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
8231
+ /* @__PURE__ */ jsx51(Box12, { mb: "1", children: /* @__PURE__ */ jsx51(RecordKey, { loading: true }) }),
8232
+ /* @__PURE__ */ jsx51(Text17, { textStyle: "body.sm", children: /* @__PURE__ */ jsx51(TextBone, { width: boneWidth(index, 14, 34) }) }),
8233
+ /* @__PURE__ */ jsx51(HStack11, { mt: "2", children: /* @__PURE__ */ jsx51(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
8070
8234
  ] });
8071
8235
  }
8072
8236
  var cellId = (lane, column) => `cell:${lane}::${column}`;
@@ -8112,7 +8276,7 @@ function KanbanBoard({
8112
8276
  ids.splice(to, 0, id);
8113
8277
  onReorderColumns(ids);
8114
8278
  };
8115
- const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx50(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
8279
+ const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx51(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
8116
8280
  const rows2 = lanes && lanes.length > 0 ? lanes : [{ id: "", title: null }];
8117
8281
  const sensors = useSensors2(
8118
8282
  useSensor2(PointerSensor2, { activationConstraint: { distance: 6 } }),
@@ -8224,7 +8388,7 @@ function KanbanBoard({
8224
8388
  document.addEventListener("keydown", key);
8225
8389
  return () => document.removeEventListener("keydown", key);
8226
8390
  }, [onSelect, selected, active]);
8227
- return /* @__PURE__ */ jsxs36(
8391
+ return /* @__PURE__ */ jsxs37(
8228
8392
  DndContext2,
8229
8393
  {
8230
8394
  sensors,
@@ -8237,8 +8401,8 @@ function KanbanBoard({
8237
8401
  },
8238
8402
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
8239
8403
  children: [
8240
- /* @__PURE__ */ jsx50(
8241
- Box11,
8404
+ /* @__PURE__ */ jsx51(
8405
+ Box12,
8242
8406
  {
8243
8407
  ref: region,
8244
8408
  role: "region",
@@ -8250,8 +8414,8 @@ function KanbanBoard({
8250
8414
  if (Date.now() - draggedAt.current < 300) return;
8251
8415
  if (e.target instanceof Element && !e.target.closest("[data-card], a, button, input, select, textarea")) clear();
8252
8416
  },
8253
- children: /* @__PURE__ */ jsx50(Loading, { when: loading, children: /* @__PURE__ */ jsxs36(
8254
- Box11,
8417
+ children: /* @__PURE__ */ jsx51(Loading, { when: loading, children: /* @__PURE__ */ jsxs37(
8418
+ Box12,
8255
8419
  {
8256
8420
  display: "grid",
8257
8421
  gridTemplateColumns: shownColumns.map((c2) => folded.has(c2.id) ? "3rem" : "minmax(288px, 1fr)").join(" "),
@@ -8261,8 +8425,8 @@ function KanbanBoard({
8261
8425
  shownColumns.map((c2) => {
8262
8426
  const isFolded = folded.has(c2.id);
8263
8427
  const name = c2.name ?? (typeof c2.title === "string" ? c2.title : c2.id);
8264
- return /* @__PURE__ */ jsxs36(
8265
- Box11,
8428
+ return /* @__PURE__ */ jsxs37(
8429
+ Box12,
8266
8430
  {
8267
8431
  position: "sticky",
8268
8432
  top: "0",
@@ -8286,8 +8450,8 @@ function KanbanBoard({
8286
8450
  }
8287
8451
  } : {},
8288
8452
  children: [
8289
- overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx50(
8290
- Box11,
8453
+ overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx51(
8454
+ Box12,
8291
8455
  {
8292
8456
  position: "absolute",
8293
8457
  inset: "0",
@@ -8303,11 +8467,11 @@ function KanbanBoard({
8303
8467
  roundedTop: "l3",
8304
8468
  bg: "bg.panel",
8305
8469
  "data-drop-column": "",
8306
- children: /* @__PURE__ */ jsx50(Text16, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
8470
+ children: /* @__PURE__ */ jsx51(Text17, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
8307
8471
  }
8308
8472
  ),
8309
- isFolded ? /* @__PURE__ */ jsx50(
8310
- Stack10,
8473
+ isFolded ? /* @__PURE__ */ jsx51(
8474
+ Stack11,
8311
8475
  {
8312
8476
  align: "center",
8313
8477
  gap: "2",
@@ -8319,10 +8483,10 @@ function KanbanBoard({
8319
8483
  roundedTop: "l3",
8320
8484
  bg: c2.over ? "red.subtle" : "bg.subtle",
8321
8485
  h: "full",
8322
- children: /* @__PURE__ */ jsx50(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
8486
+ children: /* @__PURE__ */ jsx51(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
8323
8487
  }
8324
- ) : /* @__PURE__ */ jsxs36(
8325
- HStack10,
8488
+ ) : /* @__PURE__ */ jsxs37(
8489
+ HStack11,
8326
8490
  {
8327
8491
  justify: "space-between",
8328
8492
  gap: "2",
@@ -8338,8 +8502,8 @@ function KanbanBoard({
8338
8502
  h: "full",
8339
8503
  align: "start",
8340
8504
  children: [
8341
- /* @__PURE__ */ jsxs36(HStack10, { gap: "2", minW: "0", children: [
8342
- onReorderColumns && !loading && /* @__PURE__ */ jsx50(
8505
+ /* @__PURE__ */ jsxs37(HStack11, { gap: "2", minW: "0", children: [
8506
+ onReorderColumns && !loading && /* @__PURE__ */ jsx51(
8343
8507
  ColumnGrip,
8344
8508
  {
8345
8509
  label: reorderLabel(name, columns.findIndex((x) => x.id === c2.id) + 1, columns.length),
@@ -8352,11 +8516,11 @@ function KanbanBoard({
8352
8516
  onStep: (by) => reorder(c2.id, columns.findIndex((x) => x.id === c2.id) + by)
8353
8517
  }
8354
8518
  ),
8355
- /* @__PURE__ */ jsx50(Text16, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
8356
- c2.count != null && /* @__PURE__ */ jsx50(CountBadge, { value: c2.count }),
8357
- c2.meta && /* @__PURE__ */ jsx50(Text16, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
8519
+ /* @__PURE__ */ jsx51(Text17, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
8520
+ c2.count != null && /* @__PURE__ */ jsx51(CountBadge, { value: c2.count }),
8521
+ c2.meta && /* @__PURE__ */ jsx51(Text17, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
8358
8522
  ] }),
8359
- !loading && /* @__PURE__ */ jsx50(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
8523
+ !loading && /* @__PURE__ */ jsx51(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
8360
8524
  ]
8361
8525
  }
8362
8526
  )
@@ -8365,20 +8529,20 @@ function KanbanBoard({
8365
8529
  c2.id
8366
8530
  );
8367
8531
  }),
8368
- rows2.map((lane) => /* @__PURE__ */ jsx50(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci2) => {
8532
+ rows2.map((lane) => /* @__PURE__ */ jsx51(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci2) => {
8369
8533
  const id = cellId(lane.id, c2.id);
8370
8534
  const list = byCell.get(id) ?? [];
8371
8535
  const allowed = active ? canDrop?.(active, c2.id, lane.id) !== false : true;
8372
8536
  const last = lane.id === rows2[rows2.length - 1].id;
8373
8537
  if (folded.has(c2.id)) {
8374
- return /* @__PURE__ */ jsxs36(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
8375
- lane.id === rows2[0].id && c2.count != null && /* @__PURE__ */ jsx50(Box11, { alignSelf: "center", children: /* @__PURE__ */ jsx50(CountBadge, { value: c2.count }) }),
8376
- lane.id === rows2[0].id && /* @__PURE__ */ jsx50(Box11, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
8538
+ return /* @__PURE__ */ jsxs37(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
8539
+ lane.id === rows2[0].id && c2.count != null && /* @__PURE__ */ jsx51(Box12, { alignSelf: "center", children: /* @__PURE__ */ jsx51(CountBadge, { value: c2.count }) }),
8540
+ lane.id === rows2[0].id && /* @__PURE__ */ jsx51(Box12, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
8377
8541
  ] }, id);
8378
8542
  }
8379
8543
  const footer = last && !loading ? columnFooter?.(c2.id) : null;
8380
- return /* @__PURE__ */ jsxs36(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
8381
- list.map((item) => /* @__PURE__ */ jsx50(
8544
+ return /* @__PURE__ */ jsxs37(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
8545
+ list.map((item) => /* @__PURE__ */ jsx51(
8382
8546
  SortableCard,
8383
8547
  {
8384
8548
  id: item.id,
@@ -8390,8 +8554,8 @@ function KanbanBoard({
8390
8554
  item.id
8391
8555
  )),
8392
8556
  loading && list.length === 0 && // Not the board's cards: no data-slide, and not in its placement (ADR 0058's slides skip them).
8393
- Array.from({ length: SKELETON_CARDS[ci2 % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx50(Box11, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci2 * 5 + n) : /* @__PURE__ */ jsx50(PlaceholderCard, { index: ci2 * 5 + n }) }, `skeleton-${n}`)),
8394
- !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx50(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx50(EmptyState, { size: "xs", title: empty })),
8557
+ Array.from({ length: SKELETON_CARDS[ci2 % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx51(Box12, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci2 * 5 + n) : /* @__PURE__ */ jsx51(PlaceholderCard, { index: ci2 * 5 + n }) }, `skeleton-${n}`)),
8558
+ !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx51(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx51(EmptyState, { size: "xs", title: empty })),
8395
8559
  footer
8396
8560
  ] }, id);
8397
8561
  }) }, lane.id))
@@ -8400,24 +8564,24 @@ function KanbanBoard({
8400
8564
  ) })
8401
8565
  }
8402
8566
  ),
8403
- /* @__PURE__ */ jsx50(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx50(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
8567
+ /* @__PURE__ */ jsx51(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx51(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
8404
8568
  ]
8405
8569
  }
8406
8570
  );
8407
8571
  }
8408
8572
  function LaneRow({ lane, showTitle, span, children }) {
8409
- return /* @__PURE__ */ jsxs36(Fragment17, { children: [
8410
- showTitle && /* @__PURE__ */ jsxs36(HStack10, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
8411
- /* @__PURE__ */ jsx50(Text16, { textStyle: "label", children: lane.title }),
8412
- lane.meta && /* @__PURE__ */ jsx50(Text16, { textStyle: "caption", color: "fg.muted", children: lane.meta })
8573
+ return /* @__PURE__ */ jsxs37(Fragment17, { children: [
8574
+ showTitle && /* @__PURE__ */ jsxs37(HStack11, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
8575
+ /* @__PURE__ */ jsx51(Text17, { textStyle: "label", children: lane.title }),
8576
+ lane.meta && /* @__PURE__ */ jsx51(Text17, { textStyle: "caption", color: "fg.muted", children: lane.meta })
8413
8577
  ] }),
8414
8578
  children
8415
8579
  ] });
8416
8580
  }
8417
8581
  function Cell({ id, items, allowed, dragging, column, lane, folded = false, last = true, children }) {
8418
8582
  const { setNodeRef, isOver } = useDroppable2({ id, disabled: !allowed });
8419
- return /* @__PURE__ */ jsx50(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx50(
8420
- Stack10,
8583
+ return /* @__PURE__ */ jsx51(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx51(
8584
+ Stack11,
8421
8585
  {
8422
8586
  ref: setNodeRef,
8423
8587
  gap: "2",
@@ -8445,8 +8609,8 @@ function SortableCard({
8445
8609
  children
8446
8610
  }) {
8447
8611
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable({ id, animateLayoutChanges: () => false });
8448
- return /* @__PURE__ */ jsxs36(
8449
- Box11,
8612
+ return /* @__PURE__ */ jsxs37(
8613
+ Box12,
8450
8614
  {
8451
8615
  ref: setNodeRef,
8452
8616
  position: "relative",
@@ -8464,8 +8628,8 @@ function SortableCard({
8464
8628
  cursor: "grab",
8465
8629
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", rounded: "l2" },
8466
8630
  children: [
8467
- /* @__PURE__ */ jsx50(Box11, { "data-slide": id, children: children(isDragging) }),
8468
- selected && !isDragging && !riding && /* @__PURE__ */ jsx50(Mark, {})
8631
+ /* @__PURE__ */ jsx51(Box12, { "data-slide": id, children: children(isDragging) }),
8632
+ selected && !isDragging && !riding && /* @__PURE__ */ jsx51(Mark, {})
8469
8633
  ]
8470
8634
  }
8471
8635
  );
@@ -8493,9 +8657,9 @@ function Lifted({ carried, count, reduce, children }) {
8493
8657
  held.current?.animate?.([{ transform: "none", boxShadow: tv("shadows.sm") }, { transform: HELD, boxShadow: tv("shadows.xl") }], { duration: 160, easing: OUT2 });
8494
8658
  }, []);
8495
8659
  const layers = Math.min(2, Math.max(0, carried - 1));
8496
- return /* @__PURE__ */ jsxs36(Box11, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
8497
- Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx50(
8498
- Box11,
8660
+ return /* @__PURE__ */ jsxs37(Box12, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
8661
+ Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx51(
8662
+ Box12,
8499
8663
  {
8500
8664
  "data-layer": true,
8501
8665
  position: "absolute",
@@ -8509,8 +8673,8 @@ function Lifted({ carried, count, reduce, children }) {
8509
8673
  },
8510
8674
  i
8511
8675
  )),
8512
- /* @__PURE__ */ jsx50(Box11, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
8513
- count != null && /* @__PURE__ */ jsx50(Count, { children: count })
8676
+ /* @__PURE__ */ jsx51(Box12, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
8677
+ count != null && /* @__PURE__ */ jsx51(Count, { children: count })
8514
8678
  ] });
8515
8679
  }
8516
8680
  function Mark() {
@@ -8523,8 +8687,8 @@ function Mark() {
8523
8687
  easing: OUT2
8524
8688
  });
8525
8689
  }, []);
8526
- return /* @__PURE__ */ jsx50(
8527
- chakra29.span,
8690
+ return /* @__PURE__ */ jsx51(
8691
+ chakra30.span,
8528
8692
  {
8529
8693
  ref,
8530
8694
  position: "absolute",
@@ -8540,13 +8704,13 @@ function Mark() {
8540
8704
  pointerEvents: "none",
8541
8705
  "aria-hidden": "true",
8542
8706
  _icon: { boxSize: "3" },
8543
- children: /* @__PURE__ */ jsx50(Check2, { strokeWidth: 3 })
8707
+ children: /* @__PURE__ */ jsx51(Check2, { strokeWidth: 3 })
8544
8708
  }
8545
8709
  );
8546
8710
  }
8547
8711
  function Count({ children }) {
8548
- return /* @__PURE__ */ jsx50(
8549
- chakra29.span,
8712
+ return /* @__PURE__ */ jsx51(
8713
+ chakra30.span,
8550
8714
  {
8551
8715
  position: "absolute",
8552
8716
  top: "-3.5",
@@ -8568,8 +8732,8 @@ function Count({ children }) {
8568
8732
  );
8569
8733
  }
8570
8734
  function FoldButton({ folded, label, onClick }) {
8571
- return /* @__PURE__ */ jsx50(
8572
- chakra29.button,
8735
+ return /* @__PURE__ */ jsx51(
8736
+ chakra30.button,
8573
8737
  {
8574
8738
  type: "button",
8575
8739
  display: "inline-flex",
@@ -8589,7 +8753,7 @@ function FoldButton({ folded, label, onClick }) {
8589
8753
  title: label,
8590
8754
  "aria-expanded": !folded,
8591
8755
  onClick,
8592
- children: /* @__PURE__ */ jsx50(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx50(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx50(ChevronsLeft, { size: 16 }) })
8756
+ children: /* @__PURE__ */ jsx51(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx51(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx51(ChevronsLeft, { size: 16 }) })
8593
8757
  }
8594
8758
  );
8595
8759
  }
@@ -8619,8 +8783,8 @@ function useFolded(key) {
8619
8783
  return [folded, fold];
8620
8784
  }
8621
8785
  function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
8622
- return /* @__PURE__ */ jsx50(
8623
- chakra29.button,
8786
+ return /* @__PURE__ */ jsx51(
8787
+ chakra30.button,
8624
8788
  {
8625
8789
  type: "button",
8626
8790
  draggable: true,
@@ -8653,27 +8817,27 @@ function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
8653
8817
  onDragStart();
8654
8818
  },
8655
8819
  onDragEnd,
8656
- children: /* @__PURE__ */ jsx50(GripVertical4, {})
8820
+ children: /* @__PURE__ */ jsx51(GripVertical4, {})
8657
8821
  }
8658
8822
  );
8659
8823
  }
8660
8824
 
8661
8825
  // src/components/LoadingState.tsx
8662
- import { Box as Box12, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
8663
- import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
8826
+ import { Box as Box13, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
8827
+ import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
8664
8828
  function LoadingState({ lines = 3, label }) {
8665
8829
  const labels = useAbpLabels();
8666
- return /* @__PURE__ */ jsxs37(Box12, { "aria-busy": "true", role: "status", children: [
8667
- /* @__PURE__ */ jsx51(VisuallyHidden2, { children: label ?? labels.loading }),
8668
- /* @__PURE__ */ jsx51(TextBone, { lines, width: "full" })
8830
+ return /* @__PURE__ */ jsxs38(Box13, { "aria-busy": "true", role: "status", children: [
8831
+ /* @__PURE__ */ jsx52(VisuallyHidden2, { children: label ?? labels.loading }),
8832
+ /* @__PURE__ */ jsx52(TextBone, { lines, width: "full" })
8669
8833
  ] });
8670
8834
  }
8671
8835
 
8672
8836
  // src/components/PageHeader.tsx
8673
8837
  import { Fragment as Fragment18 } from "react";
8674
- import { Breadcrumb, chakra as chakra30, Menu as Menu4, Portal as Portal13, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
8838
+ import { Breadcrumb, chakra as chakra31, Menu as Menu4, Portal as Portal13, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
8675
8839
  import { ChevronRight as ChevronRight3 } from "lucide-react";
8676
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
8840
+ import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
8677
8841
  var textOf = (label) => typeof label === "string" || typeof label === "number" ? String(label) : void 0;
8678
8842
  function PageHeader({ title, description, breadcrumbs, meta, count, adornments, actions, loading: own, titleWidth = 24, documentTitle }) {
8679
8843
  const recipe = useSlotRecipe4({ key: "abpPageHeader" });
@@ -8682,33 +8846,33 @@ function PageHeader({ title, description, breadcrumbs, meta, count, adornments,
8682
8846
  usePageTitle(documentTitle !== void 0 ? documentTitle : text ? [text, where] : null);
8683
8847
  const styles = recipe({});
8684
8848
  const loading = useLoading(own);
8685
- return /* @__PURE__ */ jsxs38(chakra30.div, { css: styles.root, children: [
8686
- breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx52(Breadcrumbs, { items: breadcrumbs }),
8687
- /* @__PURE__ */ jsxs38(chakra30.div, { css: styles.row, children: [
8688
- /* @__PURE__ */ jsxs38(chakra30.div, { css: styles.titleGroup, children: [
8689
- count != null || adornments != null ? /* @__PURE__ */ jsxs38(chakra30.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
8690
- /* @__PURE__ */ jsx52(chakra30.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx52(TextBone, { width: titleWidth }) : title }),
8691
- count != null && /* @__PURE__ */ jsx52(CountBadge, { value: count, size: "md" }),
8849
+ return /* @__PURE__ */ jsxs39(chakra31.div, { css: styles.root, children: [
8850
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx53(Breadcrumbs, { items: breadcrumbs }),
8851
+ /* @__PURE__ */ jsxs39(chakra31.div, { css: styles.row, children: [
8852
+ /* @__PURE__ */ jsxs39(chakra31.div, { css: styles.titleGroup, children: [
8853
+ count != null || adornments != null ? /* @__PURE__ */ jsxs39(chakra31.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
8854
+ /* @__PURE__ */ jsx53(chakra31.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx53(TextBone, { width: titleWidth }) : title }),
8855
+ count != null && /* @__PURE__ */ jsx53(CountBadge, { value: count, size: "md" }),
8692
8856
  adornments
8693
- ] }) : /* @__PURE__ */ jsx52(chakra30.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx52(TextBone, { width: titleWidth }) : title }),
8694
- meta != null && /* @__PURE__ */ jsx52(chakra30.div, { css: styles.meta, children: meta }),
8695
- description != null && /* @__PURE__ */ jsx52(chakra30.p, { css: styles.description, children: description })
8857
+ ] }) : /* @__PURE__ */ jsx53(chakra31.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx53(TextBone, { width: titleWidth }) : title }),
8858
+ meta != null && /* @__PURE__ */ jsx53(chakra31.div, { css: styles.meta, children: meta }),
8859
+ description != null && /* @__PURE__ */ jsx53(chakra31.p, { css: styles.description, children: description })
8696
8860
  ] }),
8697
- actions != null && /* @__PURE__ */ jsx52(chakra30.div, { css: styles.actions, children: actions })
8861
+ actions != null && /* @__PURE__ */ jsx53(chakra31.div, { css: styles.actions, children: actions })
8698
8862
  ] })
8699
8863
  ] });
8700
8864
  }
8701
8865
  function Breadcrumbs({ items, loading: own }) {
8702
8866
  const labels = useAbpLabels();
8703
8867
  const loading = useLoading(own);
8704
- const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx52(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
8868
+ const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx53(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
8705
8869
  const Link = useLinkComponent();
8706
8870
  const { shown, hidden } = foldBreadcrumbs(items);
8707
- return /* @__PURE__ */ jsx52(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx52(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs38(Fragment18, { children: [
8708
- n > 0 && /* @__PURE__ */ jsx52(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx52(ChevronRight3, {}) }),
8709
- entry == null ? /* @__PURE__ */ jsx52(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs38(Menu4.Root, { positioning: { placement: "bottom-start" }, children: [
8710
- /* @__PURE__ */ jsx52(Menu4.Trigger, { asChild: true, children: /* @__PURE__ */ jsx52(
8711
- chakra30.button,
8871
+ return /* @__PURE__ */ jsx53(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx53(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs39(Fragment18, { children: [
8872
+ n > 0 && /* @__PURE__ */ jsx53(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx53(ChevronRight3, {}) }),
8873
+ entry == null ? /* @__PURE__ */ jsx53(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs39(Menu4.Root, { positioning: { placement: "bottom-start" }, children: [
8874
+ /* @__PURE__ */ jsx53(Menu4.Trigger, { asChild: true, children: /* @__PURE__ */ jsx53(
8875
+ chakra31.button,
8712
8876
  {
8713
8877
  type: "button",
8714
8878
  px: "1",
@@ -8722,19 +8886,19 @@ function Breadcrumbs({ items, loading: own }) {
8722
8886
  children: "\u2026"
8723
8887
  }
8724
8888
  ) }),
8725
- /* @__PURE__ */ jsx52(Portal13, { children: /* @__PURE__ */ jsx52(Menu4.Positioner, { children: /* @__PURE__ */ jsx52(Menu4.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx52(Menu4.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx52(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx52("span", { children: h.label }) }, k)) }) }) })
8726
- ] }) }) : /* @__PURE__ */ jsx52(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx52(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx52(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx52(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
8889
+ /* @__PURE__ */ jsx53(Portal13, { children: /* @__PURE__ */ jsx53(Menu4.Positioner, { children: /* @__PURE__ */ jsx53(Menu4.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx53(Menu4.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx53(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx53("span", { children: h.label }) }, k)) }) }) })
8890
+ ] }) }) : /* @__PURE__ */ jsx53(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx53(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx53(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx53(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
8727
8891
  ] }, entry ? entry.index : "more")) }) });
8728
8892
  }
8729
8893
 
8730
8894
  // src/components/Panel.tsx
8731
- import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11, useId as useId7, useState as useState22 } from "react";
8732
- import { chakra as chakra31, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
8895
+ import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11, useId as useId8, useState as useState22 } from "react";
8896
+ import { chakra as chakra32, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
8733
8897
  import { ChevronRight as ChevronRight4 } from "lucide-react";
8734
- import { Fragment as Fragment19, jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
8898
+ import { Fragment as Fragment19, jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
8735
8899
  var ToneContext = createContext11("card");
8736
8900
  function PanelTone({ tone, children }) {
8737
- return /* @__PURE__ */ jsx53(ToneContext.Provider, { value: tone, children });
8901
+ return /* @__PURE__ */ jsx54(ToneContext.Provider, { value: tone, children });
8738
8902
  }
8739
8903
  var Panel = forwardRef8(function Panel2({
8740
8904
  title,
@@ -8759,71 +8923,71 @@ var Panel = forwardRef8(function Panel2({
8759
8923
  const [ownCollapsed, setOwnCollapsed] = useState22(defaultCollapsed);
8760
8924
  const folded = collapsible && (collapsedProp ?? ownCollapsed);
8761
8925
  const styles = recipe({ flush, tone: tone ?? inherited, collapsed: folded });
8762
- const bodyId = useId7();
8926
+ const bodyId = useId8();
8763
8927
  const hasHeader = title != null || actions != null || description != null;
8764
8928
  const toggle = () => {
8765
8929
  const next = !folded;
8766
8930
  if (collapsedProp === void 0) setOwnCollapsed(next);
8767
8931
  onCollapsedChange?.(next);
8768
8932
  };
8769
- const heading = /* @__PURE__ */ jsxs39(chakra31.div, { css: styles.titleGroup, children: [
8770
- title != null && /* @__PURE__ */ jsx53(chakra31.h2, { as: headingAs, css: styles.title, children: title }),
8771
- description != null && !folded && /* @__PURE__ */ jsx53(chakra31.p, { css: styles.description, children: description })
8933
+ const heading = /* @__PURE__ */ jsxs40(chakra32.div, { css: styles.titleGroup, children: [
8934
+ title != null && /* @__PURE__ */ jsx54(chakra32.h2, { as: headingAs, css: styles.title, children: title }),
8935
+ description != null && !folded && /* @__PURE__ */ jsx54(chakra32.p, { css: styles.description, children: description })
8772
8936
  ] });
8773
- const content = /* @__PURE__ */ jsxs39(Fragment19, { children: [
8774
- /* @__PURE__ */ jsx53(chakra31.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx53(Loading, { when: loading, children }) }),
8775
- footer != null && /* @__PURE__ */ jsx53(chakra31.footer, { css: styles.footer, children: footer })
8937
+ const content = /* @__PURE__ */ jsxs40(Fragment19, { children: [
8938
+ /* @__PURE__ */ jsx54(chakra32.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx54(Loading, { when: loading, children }) }),
8939
+ footer != null && /* @__PURE__ */ jsx54(chakra32.footer, { css: styles.footer, children: footer })
8776
8940
  ] });
8777
- return /* @__PURE__ */ jsxs39(chakra31.section, { ref, css: [styles.root, css], "data-collapsed": folded ? "" : void 0, ...rest, children: [
8778
- hasHeader && /* @__PURE__ */ jsxs39(chakra31.header, { css: styles.header, children: [
8779
- collapsible ? /* @__PURE__ */ jsxs39(chakra31.button, { type: "button", css: styles.toggle, "aria-expanded": !folded, "aria-controls": bodyId, onClick: toggle, children: [
8780
- /* @__PURE__ */ jsx53(chakra31.span, { css: styles.chevron, "data-open": folded ? void 0 : "", "aria-hidden": true, children: /* @__PURE__ */ jsx53(ChevronRight4, { size: 16 }) }),
8941
+ return /* @__PURE__ */ jsxs40(chakra32.section, { ref, css: [styles.root, css], "data-collapsed": folded ? "" : void 0, ...rest, children: [
8942
+ hasHeader && /* @__PURE__ */ jsxs40(chakra32.header, { css: styles.header, children: [
8943
+ collapsible ? /* @__PURE__ */ jsxs40(chakra32.button, { type: "button", css: styles.toggle, "aria-expanded": !folded, "aria-controls": bodyId, onClick: toggle, children: [
8944
+ /* @__PURE__ */ jsx54(chakra32.span, { css: styles.chevron, "data-open": folded ? void 0 : "", "aria-hidden": true, children: /* @__PURE__ */ jsx54(ChevronRight4, { size: 16 }) }),
8781
8945
  heading,
8782
- folded && summary != null && /* @__PURE__ */ jsx53(chakra31.span, { css: styles.summary, children: summary })
8946
+ folded && summary != null && /* @__PURE__ */ jsx54(chakra32.span, { css: styles.summary, children: summary })
8783
8947
  ] }) : heading,
8784
- actions != null && /* @__PURE__ */ jsx53(chakra31.div, { css: styles.actions, children: actions })
8948
+ actions != null && /* @__PURE__ */ jsx54(chakra32.div, { css: styles.actions, children: actions })
8785
8949
  ] }),
8786
- collapsible ? /* @__PURE__ */ jsx53(Collapse, { open: !folded, id: bodyId, display: "flex", flexDirection: "column", flex: "1", minW: "0", children: content }) : content
8950
+ collapsible ? /* @__PURE__ */ jsx54(Collapse, { open: !folded, id: bodyId, display: "flex", flexDirection: "column", flex: "1", minW: "0", children: content }) : content
8787
8951
  ] });
8788
8952
  });
8789
8953
 
8790
8954
  // src/components/PathChips.tsx
8791
- import { chakra as chakra32, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
8955
+ import { chakra as chakra33, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
8792
8956
  import { ChevronRight as ChevronRight5 } from "lucide-react";
8793
- import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
8957
+ import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
8794
8958
  function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3, css, ...rest }) {
8795
8959
  const labels = useAbpLabels();
8796
8960
  const recipe = useSlotRecipe6({ key: "abpPathChips" });
8797
8961
  const styles = recipe({});
8798
8962
  const loading = useLoading(own) && path.length === 0;
8799
8963
  const segments = loading ? Array.from({ length: skeletonCount }, (_, i) => "\xA0".repeat(boneWidth(i, 6, 12))) : path;
8800
- return /* @__PURE__ */ jsx54(chakra32.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs40(chakra32.li, { css: styles.item, children: [
8801
- i > 0 && /* @__PURE__ */ jsx54(chakra32.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx54(ChevronRight5, {}) }),
8802
- /* @__PURE__ */ jsx54(chakra32.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
8964
+ return /* @__PURE__ */ jsx55(chakra33.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs41(chakra33.li, { css: styles.item, children: [
8965
+ i > 0 && /* @__PURE__ */ jsx55(chakra33.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx55(ChevronRight5, {}) }),
8966
+ /* @__PURE__ */ jsx55(chakra33.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
8803
8967
  ] }, `${i}:${segment}`)) });
8804
8968
  }
8805
8969
 
8806
8970
  // src/components/PropertyList.tsx
8807
- import { chakra as chakra33, DataList } from "@chakra-ui/react";
8808
- import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
8971
+ import { chakra as chakra34, DataList } from "@chakra-ui/react";
8972
+ import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
8809
8973
  function PropertyList({ items, size = "md", loading: own }) {
8810
8974
  const loading = useLoading(own);
8811
8975
  const arriving = useArriving(loading);
8812
- return /* @__PURE__ */ jsx55(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs41(DataList.Item, { children: [
8813
- /* @__PURE__ */ jsx55(DataList.ItemLabel, { children: item.label }),
8814
- /* @__PURE__ */ jsx55(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx55(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx55(chakra33.span, { css: arriveCss, children: item.value }) : item.value })
8976
+ return /* @__PURE__ */ jsx56(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs42(DataList.Item, { children: [
8977
+ /* @__PURE__ */ jsx56(DataList.ItemLabel, { children: item.label }),
8978
+ /* @__PURE__ */ jsx56(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx56(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx56(chakra34.span, { css: arriveCss, children: item.value }) : item.value })
8815
8979
  ] }, item.id ?? i)) });
8816
8980
  }
8817
8981
 
8818
8982
  // src/components/QueryableList.tsx
8819
- import { useEffect as useEffect18, useId as useId9, useMemo as useMemo14, useRef as useRef20, useState as useState25 } from "react";
8983
+ import { useEffect as useEffect18, useId as useId10, useMemo as useMemo14, useRef as useRef20, useState as useState25 } from "react";
8820
8984
  import { createPortal } from "react-dom";
8821
- import { Box as Box13, chakra as chakra36, HStack as HStack13, Input as Input7, Menu as Menu5, Portal as Portal17, Stack as Stack14, Text as Text20 } from "@chakra-ui/react";
8985
+ import { Box as Box14, chakra as chakra37, HStack as HStack14, Input as Input8, Menu as Menu5, Portal as Portal17, Stack as Stack15, Text as Text21 } from "@chakra-ui/react";
8822
8986
  import { ArrowDownWideNarrow, ArrowUpNarrowWide, ChevronDown as ChevronDown3, Download, Filter, Rows3, Save, Trash2 as Trash22, X as X2 } from "lucide-react";
8823
8987
 
8824
8988
  // src/components/query/ColumnsPopover.tsx
8825
8989
  import { useMemo as useMemo12 } from "react";
8826
- import { chakra as chakra34, HStack as HStack11, Popover as Popover3, Portal as Portal14, Stack as Stack11, Switch as Switch2, Text as Text17 } from "@chakra-ui/react";
8990
+ import { chakra as chakra35, HStack as HStack12, Popover as Popover3, Portal as Portal14, Stack as Stack12, Switch as Switch2, Text as Text18 } from "@chakra-ui/react";
8827
8991
  import {
8828
8992
  closestCenter,
8829
8993
  DndContext as DndContext3,
@@ -8835,7 +8999,7 @@ import {
8835
8999
  import { arrayMove, SortableContext as SortableContext2, sortableKeyboardCoordinates as sortableKeyboardCoordinates2, useSortable as useSortable2, verticalListSortingStrategy as verticalListSortingStrategy2 } from "@dnd-kit/sortable";
8836
9000
  import { CSS as CSS3 } from "@dnd-kit/utilities";
8837
9001
  import { Columns3, GripVertical as GripVertical5 } from "lucide-react";
8838
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
9002
+ import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
8839
9003
  function fill2(template, values) {
8840
9004
  return template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
8841
9005
  }
@@ -8852,19 +9016,19 @@ function ColumnsPopover({ fields, columns, onChange }) {
8852
9016
  if (from < 0 || to < 0) return;
8853
9017
  onChange(arrayMove(columns, from, to));
8854
9018
  }
8855
- return /* @__PURE__ */ jsxs42(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
8856
- /* @__PURE__ */ jsx56(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs42(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
8857
- /* @__PURE__ */ jsx56(Columns3, {}),
9019
+ return /* @__PURE__ */ jsxs43(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
9020
+ /* @__PURE__ */ jsx57(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs43(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
9021
+ /* @__PURE__ */ jsx57(Columns3, {}),
8858
9022
  labels.columns
8859
9023
  ] }) }),
8860
- /* @__PURE__ */ jsx56(Portal14, { children: /* @__PURE__ */ jsx56(Popover3.Positioner, { children: /* @__PURE__ */ jsx56(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs42(Popover3.Body, { p: "0", children: [
8861
- /* @__PURE__ */ jsxs42(HStack11, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
8862
- /* @__PURE__ */ jsx56(Text17, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
8863
- /* @__PURE__ */ jsx56(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
9024
+ /* @__PURE__ */ jsx57(Portal14, { children: /* @__PURE__ */ jsx57(Popover3.Positioner, { children: /* @__PURE__ */ jsx57(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs43(Popover3.Body, { p: "0", children: [
9025
+ /* @__PURE__ */ jsxs43(HStack12, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
9026
+ /* @__PURE__ */ jsx57(Text18, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
9027
+ /* @__PURE__ */ jsx57(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
8864
9028
  ] }),
8865
- /* @__PURE__ */ jsx56(Text17, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
8866
- /* @__PURE__ */ jsxs42(chakra34.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
8867
- /* @__PURE__ */ jsx56(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx56(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx56(Stack11, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx56(
9029
+ /* @__PURE__ */ jsx57(Text18, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
9030
+ /* @__PURE__ */ jsxs43(chakra35.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
9031
+ /* @__PURE__ */ jsx57(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx57(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx57(Stack12, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx57(
8868
9032
  ColumnRow,
8869
9033
  {
8870
9034
  id,
@@ -8875,7 +9039,7 @@ function ColumnsPopover({ fields, columns, onChange }) {
8875
9039
  },
8876
9040
  id
8877
9041
  )) }) }) }),
8878
- hidden.length > 0 && /* @__PURE__ */ jsx56(Stack11, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx56(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
9042
+ hidden.length > 0 && /* @__PURE__ */ jsx57(Stack12, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx57(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
8879
9043
  ] })
8880
9044
  ] }) }) }) })
8881
9045
  ] });
@@ -8884,8 +9048,8 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
8884
9048
  const labels = useAbpLabels().queryList;
8885
9049
  const sortable = useSortable2({ id, disabled: !checked });
8886
9050
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = sortable;
8887
- return /* @__PURE__ */ jsxs42(
8888
- HStack11,
9051
+ return /* @__PURE__ */ jsxs43(
9052
+ HStack12,
8889
9053
  {
8890
9054
  ref: setNodeRef,
8891
9055
  role: "listitem",
@@ -8901,8 +9065,8 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
8901
9065
  style: { transform: CSS3.Transform.toString(transform), transition },
8902
9066
  _hover: { bg: "bg.subtle" },
8903
9067
  children: [
8904
- checked ? /* @__PURE__ */ jsx56(
8905
- chakra34.button,
9068
+ checked ? /* @__PURE__ */ jsx57(
9069
+ chakra35.button,
8906
9070
  {
8907
9071
  type: "button",
8908
9072
  display: "inline-flex",
@@ -8914,13 +9078,13 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
8914
9078
  "aria-label": fill2(labels.dragColumn, { field: label }),
8915
9079
  ...attributes,
8916
9080
  ...listeners2,
8917
- children: /* @__PURE__ */ jsx56(GripVertical5, { size: 16 })
9081
+ children: /* @__PURE__ */ jsx57(GripVertical5, { size: 16 })
8918
9082
  }
8919
- ) : /* @__PURE__ */ jsx56(chakra34.span, { w: "4", flexShrink: 0 }),
8920
- /* @__PURE__ */ jsx56(Text17, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
8921
- /* @__PURE__ */ jsxs42(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
8922
- /* @__PURE__ */ jsx56(Switch2.HiddenInput, {}),
8923
- /* @__PURE__ */ jsx56(Switch2.Control, { children: /* @__PURE__ */ jsx56(Switch2.Thumb, {}) })
9083
+ ) : /* @__PURE__ */ jsx57(chakra35.span, { w: "4", flexShrink: 0 }),
9084
+ /* @__PURE__ */ jsx57(Text18, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
9085
+ /* @__PURE__ */ jsxs43(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
9086
+ /* @__PURE__ */ jsx57(Switch2.HiddenInput, {}),
9087
+ /* @__PURE__ */ jsx57(Switch2.Control, { children: /* @__PURE__ */ jsx57(Switch2.Thumb, {}) })
8924
9088
  ] })
8925
9089
  ]
8926
9090
  }
@@ -8928,10 +9092,10 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
8928
9092
  }
8929
9093
 
8930
9094
  // src/components/query/FilterBuilder.tsx
8931
- import { useEffect as useEffect16, useId as useId8, useRef as useRef19, useState as useState23 } from "react";
8932
- import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack12, Input as Input6, Portal as Portal15, Stack as Stack12, Text as Text18 } from "@chakra-ui/react";
9095
+ import { useEffect as useEffect16, useId as useId9, useRef as useRef19, useState as useState23 } from "react";
9096
+ import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack13, Input as Input7, Portal as Portal15, Stack as Stack13, Text as Text19 } from "@chakra-ui/react";
8933
9097
  import { Trash2 } from "lucide-react";
8934
- import { Fragment as Fragment20, jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
9098
+ import { Fragment as Fragment20, jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
8935
9099
  function fill3(template, values) {
8936
9100
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
8937
9101
  }
@@ -8987,23 +9151,23 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
8987
9151
  setSeq((n) => n + 1);
8988
9152
  };
8989
9153
  const change = (id, patch) => setRows((r) => r.map((d) => d.id === id ? { ...d, ...patch, dirty: true } : d));
8990
- return /* @__PURE__ */ jsx57(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs43(Portal15, { children: [
8991
- /* @__PURE__ */ jsx57(Dialog5.Backdrop, {}),
8992
- /* @__PURE__ */ jsx57(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs43(Dialog5.Content, { "data-filter-builder": "", children: [
8993
- /* @__PURE__ */ jsx57(Dialog5.Header, { children: /* @__PURE__ */ jsxs43(HStack12, { justify: "space-between", w: "full", gap: "3", children: [
8994
- /* @__PURE__ */ jsx57(Dialog5.Title, { children: labels.buildFilters }),
8995
- /* @__PURE__ */ jsx57(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows2.length === 0, children: labels.clearAll })
9154
+ return /* @__PURE__ */ jsx58(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs44(Portal15, { children: [
9155
+ /* @__PURE__ */ jsx58(Dialog5.Backdrop, {}),
9156
+ /* @__PURE__ */ jsx58(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs44(Dialog5.Content, { "data-filter-builder": "", children: [
9157
+ /* @__PURE__ */ jsx58(Dialog5.Header, { children: /* @__PURE__ */ jsxs44(HStack13, { justify: "space-between", w: "full", gap: "3", children: [
9158
+ /* @__PURE__ */ jsx58(Dialog5.Title, { children: labels.buildFilters }),
9159
+ /* @__PURE__ */ jsx58(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows2.length === 0, children: labels.clearAll })
8996
9160
  ] }) }),
8997
- /* @__PURE__ */ jsx57(Dialog5.Body, { children: /* @__PURE__ */ jsxs43(Stack12, { gap: "3", children: [
8998
- /* @__PURE__ */ jsxs43(Text18, { textStyle: "sm", color: "fg.muted", children: [
9161
+ /* @__PURE__ */ jsx58(Dialog5.Body, { children: /* @__PURE__ */ jsxs44(Stack13, { gap: "3", children: [
9162
+ /* @__PURE__ */ jsxs44(Text19, { textStyle: "sm", color: "fg.muted", children: [
8999
9163
  labels.matchAll,
9000
- repeats && /* @__PURE__ */ jsxs43(Fragment20, { children: [
9164
+ repeats && /* @__PURE__ */ jsxs44(Fragment20, { children: [
9001
9165
  " ",
9002
9166
  labels.sameFieldAny
9003
9167
  ] })
9004
9168
  ] }),
9005
- rows2.length === 0 && /* @__PURE__ */ jsx57(Text18, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
9006
- rows2.map((d) => /* @__PURE__ */ jsx57(
9169
+ rows2.length === 0 && /* @__PURE__ */ jsx58(Text19, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
9170
+ rows2.map((d) => /* @__PURE__ */ jsx58(
9007
9171
  ConditionRow,
9008
9172
  {
9009
9173
  draft: d,
@@ -9016,29 +9180,29 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
9016
9180
  },
9017
9181
  d.id
9018
9182
  )),
9019
- /* @__PURE__ */ jsx57(HStack12, { children: /* @__PURE__ */ jsx57(AddButton, { onClick: add, disabled: fields.length === 0, children: labels.addCondition }) }),
9020
- /* @__PURE__ */ jsxs43(Stack12, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
9021
- /* @__PURE__ */ jsx57(Text18, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
9022
- /* @__PURE__ */ jsx57(Text18, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
9183
+ /* @__PURE__ */ jsx58(HStack13, { children: /* @__PURE__ */ jsx58(AddButton, { onClick: add, disabled: fields.length === 0, children: labels.addCondition }) }),
9184
+ /* @__PURE__ */ jsxs44(Stack13, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
9185
+ /* @__PURE__ */ jsx58(Text19, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
9186
+ /* @__PURE__ */ jsx58(Text19, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
9023
9187
  ] })
9024
9188
  ] }) }),
9025
- /* @__PURE__ */ jsx57(Dialog5.Footer, { children: /* @__PURE__ */ jsxs43(HStack12, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
9026
- /* @__PURE__ */ jsxs43(Text18, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
9189
+ /* @__PURE__ */ jsx58(Dialog5.Footer, { children: /* @__PURE__ */ jsxs44(HStack13, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
9190
+ /* @__PURE__ */ jsxs44(Text19, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
9027
9191
  count != null && fill3(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
9028
- incomplete > 0 && /* @__PURE__ */ jsxs43(Fragment20, { children: [
9192
+ incomplete > 0 && /* @__PURE__ */ jsxs44(Fragment20, { children: [
9029
9193
  " \xB7 ",
9030
9194
  labels.incompleteSkipped
9031
9195
  ] })
9032
9196
  ] }),
9033
- /* @__PURE__ */ jsxs43(HStack12, { gap: "2", children: [
9034
- /* @__PURE__ */ jsx57(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
9035
- /* @__PURE__ */ jsx57(Button, { size: "sm", variant: "primary", onClick: () => {
9197
+ /* @__PURE__ */ jsxs44(HStack13, { gap: "2", children: [
9198
+ /* @__PURE__ */ jsx58(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
9199
+ /* @__PURE__ */ jsx58(Button, { size: "sm", variant: "primary", onClick: () => {
9036
9200
  setTouched(true);
9037
9201
  onApply(mergeSameField(complete, fields));
9038
9202
  }, children: labels.applyFilters })
9039
9203
  ] })
9040
9204
  ] }) }),
9041
- /* @__PURE__ */ jsx57(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx57(CloseButton3, { size: "sm" }) })
9205
+ /* @__PURE__ */ jsx58(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(CloseButton3, { size: "sm" }) })
9042
9206
  ] }) })
9043
9207
  ] }) });
9044
9208
  }
@@ -9049,7 +9213,7 @@ function describe(c2, fields, labels) {
9049
9213
  }
9050
9214
  function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChange, onRemove }) {
9051
9215
  const labels = useAbpLabels().queryList;
9052
- const listId = useId8();
9216
+ const listId = useId9();
9053
9217
  const field = fields.find((f) => f.id === draft.field);
9054
9218
  const { op, text } = draft;
9055
9219
  const [options, setOptions] = useState23([]);
@@ -9067,9 +9231,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
9067
9231
  clearTimeout(timer);
9068
9232
  };
9069
9233
  }, [suggest, field, op, text, own]);
9070
- return /* @__PURE__ */ jsxs43(Stack12, { gap: "1", "data-condition": "", children: [
9071
- /* @__PURE__ */ jsxs43(HStack12, { gap: "1.5", wrap: "wrap", align: "start", children: [
9072
- /* @__PURE__ */ jsx57(
9234
+ return /* @__PURE__ */ jsxs44(Stack13, { gap: "1", "data-condition": "", children: [
9235
+ /* @__PURE__ */ jsxs44(HStack13, { gap: "1.5", wrap: "wrap", align: "start", children: [
9236
+ /* @__PURE__ */ jsx58(
9073
9237
  SelectField,
9074
9238
  {
9075
9239
  width: "auto",
@@ -9083,7 +9247,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
9083
9247
  options: fields.map((f) => ({ value: f.id, label: f.label }))
9084
9248
  }
9085
9249
  ),
9086
- /* @__PURE__ */ jsx57(
9250
+ /* @__PURE__ */ jsx58(
9087
9251
  SelectField,
9088
9252
  {
9089
9253
  width: "auto",
@@ -9095,9 +9259,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
9095
9259
  }
9096
9260
  ),
9097
9261
  own,
9098
- !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs43(Fragment20, { children: [
9099
- /* @__PURE__ */ jsx57(
9100
- Input6,
9262
+ !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs44(Fragment20, { children: [
9263
+ /* @__PURE__ */ jsx58(
9264
+ Input7,
9101
9265
  {
9102
9266
  size: "sm",
9103
9267
  flex: "1",
@@ -9110,17 +9274,17 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
9110
9274
  onChange: (e) => onChange({ text: e.target.value })
9111
9275
  }
9112
9276
  ),
9113
- /* @__PURE__ */ jsx57("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx57("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
9277
+ /* @__PURE__ */ jsx58("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx58("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
9114
9278
  ] }),
9115
- /* @__PURE__ */ jsx57(IconButton, { size: "sm", variant: "ghost", remove: true, "aria-label": fill3(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx57(Trash2, {}) })
9279
+ /* @__PURE__ */ jsx58(IconButton, { size: "sm", variant: "ghost", remove: true, "aria-label": fill3(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx58(Trash2, {}) })
9116
9280
  ] }),
9117
- warn && /* @__PURE__ */ jsx57(Text18, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
9281
+ warn && /* @__PURE__ */ jsx58(Text19, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
9118
9282
  ] });
9119
9283
  }
9120
9284
 
9121
9285
  // src/components/query/ExportDialog.tsx
9122
9286
  import { useEffect as useEffect17, useMemo as useMemo13, useState as useState24 } from "react";
9123
- import { chakra as chakra35, CloseButton as CloseButton4, Dialog as Dialog6, Portal as Portal16, Stack as Stack13, Text as Text19 } from "@chakra-ui/react";
9287
+ import { chakra as chakra36, CloseButton as CloseButton4, Dialog as Dialog6, Portal as Portal16, Stack as Stack14, Text as Text20 } from "@chakra-ui/react";
9124
9288
 
9125
9289
  // src/components/query/exportText.ts
9126
9290
  function exportText(value) {
@@ -9138,7 +9302,7 @@ function csvField(text, separator) {
9138
9302
  }
9139
9303
 
9140
9304
  // src/components/query/ExportDialog.tsx
9141
- import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
9305
+ import { jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
9142
9306
  var SEPARATORS = { comma: ",", semicolon: ";", tab: " " };
9143
9307
  function ExportDialog({ format, onClose, fields, shown, columnLabels, found, filtered, sample, onExport }) {
9144
9308
  const labels = useAbpLabels();
@@ -9167,14 +9331,14 @@ function ExportDialog({ format, onClose, fields, shown, columnLabels, found, fil
9167
9331
  const rows2 = sample.slice(0, 3);
9168
9332
  const sep = SEPARATORS[separator];
9169
9333
  const csv = [columns.map((id) => csvField(name(id), sep)), ...rows2.map((r) => columns.map((id) => csvField(exportText(r.values[id]), sep)))].map((cells) => cells.join(sep === " " ? " " : sep)).join("\n");
9170
- return /* @__PURE__ */ jsx58(Dialog6.Root, { open: format != null, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs44(Portal16, { children: [
9171
- /* @__PURE__ */ jsx58(Dialog6.Backdrop, {}),
9172
- /* @__PURE__ */ jsx58(Dialog6.Positioner, { children: /* @__PURE__ */ jsxs44(Dialog6.Content, { "data-export-dialog": "", children: [
9173
- /* @__PURE__ */ jsx58(Dialog6.Header, { children: /* @__PURE__ */ jsx58(Dialog6.Title, { children: format === "xlsx" ? q.exportTitleExcel ?? "Export to Excel" : q.exportTitleCsv ?? "Export to CSV" }) }),
9174
- /* @__PURE__ */ jsx58(Dialog6.Body, { children: /* @__PURE__ */ jsxs44(Stack13, { gap: "5", children: [
9175
- filtered && /* @__PURE__ */ jsxs44(Stack13, { gap: "1.5", children: [
9176
- /* @__PURE__ */ jsx58(Text19, { textStyle: "label", children: q.exportRows ?? "Rows" }),
9177
- /* @__PURE__ */ jsx58(
9334
+ return /* @__PURE__ */ jsx59(Dialog6.Root, { open: format != null, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs45(Portal16, { children: [
9335
+ /* @__PURE__ */ jsx59(Dialog6.Backdrop, {}),
9336
+ /* @__PURE__ */ jsx59(Dialog6.Positioner, { children: /* @__PURE__ */ jsxs45(Dialog6.Content, { "data-export-dialog": "", children: [
9337
+ /* @__PURE__ */ jsx59(Dialog6.Header, { children: /* @__PURE__ */ jsx59(Dialog6.Title, { children: format === "xlsx" ? q.exportTitleExcel ?? "Export to Excel" : q.exportTitleCsv ?? "Export to CSV" }) }),
9338
+ /* @__PURE__ */ jsx59(Dialog6.Body, { children: /* @__PURE__ */ jsxs45(Stack14, { gap: "5", children: [
9339
+ filtered && /* @__PURE__ */ jsxs45(Stack14, { gap: "1.5", children: [
9340
+ /* @__PURE__ */ jsx59(Text20, { textStyle: "label", children: q.exportRows ?? "Rows" }),
9341
+ /* @__PURE__ */ jsx59(
9178
9342
  SegmentedControl,
9179
9343
  {
9180
9344
  size: "sm",
@@ -9188,9 +9352,9 @@ function ExportDialog({ format, onClose, fields, shown, columnLabels, found, fil
9188
9352
  }
9189
9353
  )
9190
9354
  ] }),
9191
- /* @__PURE__ */ jsxs44(Stack13, { gap: "1.5", role: "group", "aria-labelledby": "export-columns", children: [
9192
- /* @__PURE__ */ jsx58(Text19, { id: "export-columns", textStyle: "label", children: q.exportColumns ?? "Columns" }),
9193
- /* @__PURE__ */ jsx58(chakra35.div, { display: "grid", gridTemplateColumns: { base: "1fr", sm: "repeat(2, minmax(0, 1fr))" }, gap: "2", children: ordered.map((id) => /* @__PURE__ */ jsx58(
9355
+ /* @__PURE__ */ jsxs45(Stack14, { gap: "1.5", role: "group", "aria-labelledby": "export-columns", children: [
9356
+ /* @__PURE__ */ jsx59(Text20, { id: "export-columns", textStyle: "label", children: q.exportColumns ?? "Columns" }),
9357
+ /* @__PURE__ */ jsx59(chakra36.div, { display: "grid", gridTemplateColumns: { base: "1fr", sm: "repeat(2, minmax(0, 1fr))" }, gap: "2", children: ordered.map((id) => /* @__PURE__ */ jsx59(
9194
9358
  CheckboxField,
9195
9359
  {
9196
9360
  label: name(id),
@@ -9205,9 +9369,9 @@ function ExportDialog({ format, onClose, fields, shown, columnLabels, found, fil
9205
9369
  id
9206
9370
  )) })
9207
9371
  ] }),
9208
- format === "csv" && /* @__PURE__ */ jsxs44(Stack13, { gap: "1.5", children: [
9209
- /* @__PURE__ */ jsx58(chakra35.label, { textStyle: "label", htmlFor: "export-separator", children: q.exportSeparator ?? "Separator" }),
9210
- /* @__PURE__ */ jsx58(
9372
+ format === "csv" && /* @__PURE__ */ jsxs45(Stack14, { gap: "1.5", children: [
9373
+ /* @__PURE__ */ jsx59(chakra36.label, { textStyle: "label", htmlFor: "export-separator", children: q.exportSeparator ?? "Separator" }),
9374
+ /* @__PURE__ */ jsx59(
9211
9375
  SelectField,
9212
9376
  {
9213
9377
  id: "export-separator",
@@ -9222,25 +9386,25 @@ function ExportDialog({ format, onClose, fields, shown, columnLabels, found, fil
9222
9386
  }
9223
9387
  )
9224
9388
  ] }),
9225
- columns.length > 0 && rows2.length > 0 && /* @__PURE__ */ jsxs44(Stack13, { gap: "1.5", children: [
9226
- /* @__PURE__ */ jsx58(Text19, { textStyle: "label", children: q.exportPreview ?? "Preview" }),
9227
- format === "csv" ? /* @__PURE__ */ jsx58(chakra35.pre, { dir: "ltr", textAlign: "start", m: "0", p: "3", bg: "bg.subtle", borderRadius: "l2", textStyle: "code", overflowX: "auto", whiteSpace: "pre", "data-export-preview": "", children: csv }) : /* @__PURE__ */ jsx58(chakra35.div, { overflowX: "auto", bg: "bg.subtle", borderRadius: "l2", "data-export-preview": "", children: /* @__PURE__ */ jsxs44(chakra35.table, { textStyle: "body.sm", borderCollapse: "collapse", w: "full", children: [
9228
- /* @__PURE__ */ jsx58("thead", { children: /* @__PURE__ */ jsx58("tr", { children: columns.map((id) => /* @__PURE__ */ jsx58(chakra35.th, { textAlign: "start", fontWeight: "bold", px: "3", py: "1.5", borderBottomWidth: "1px", whiteSpace: "nowrap", children: name(id) }, id)) }) }),
9229
- /* @__PURE__ */ jsx58("tbody", { children: rows2.map((r) => /* @__PURE__ */ jsx58("tr", { children: columns.map((id) => /* @__PURE__ */ jsx58(chakra35.td, { px: "3", py: "1.5", whiteSpace: "nowrap", maxW: "16rem", truncate: true, children: exportText(r.values[id]) }, id)) }, r.id)) })
9389
+ columns.length > 0 && rows2.length > 0 && /* @__PURE__ */ jsxs45(Stack14, { gap: "1.5", children: [
9390
+ /* @__PURE__ */ jsx59(Text20, { textStyle: "label", children: q.exportPreview ?? "Preview" }),
9391
+ format === "csv" ? /* @__PURE__ */ jsx59(chakra36.pre, { dir: "ltr", textAlign: "start", m: "0", p: "3", bg: "bg.subtle", borderRadius: "l2", textStyle: "code", overflowX: "auto", whiteSpace: "pre", "data-export-preview": "", children: csv }) : /* @__PURE__ */ jsx59(chakra36.div, { overflowX: "auto", bg: "bg.subtle", borderRadius: "l2", "data-export-preview": "", children: /* @__PURE__ */ jsxs45(chakra36.table, { textStyle: "body.sm", borderCollapse: "collapse", w: "full", children: [
9392
+ /* @__PURE__ */ jsx59("thead", { children: /* @__PURE__ */ jsx59("tr", { children: columns.map((id) => /* @__PURE__ */ jsx59(chakra36.th, { textAlign: "start", fontWeight: "bold", px: "3", py: "1.5", borderBottomWidth: "1px", whiteSpace: "nowrap", children: name(id) }, id)) }) }),
9393
+ /* @__PURE__ */ jsx59("tbody", { children: rows2.map((r) => /* @__PURE__ */ jsx59("tr", { children: columns.map((id) => /* @__PURE__ */ jsx59(chakra36.td, { px: "3", py: "1.5", whiteSpace: "nowrap", maxW: "16rem", truncate: true, children: exportText(r.values[id]) }, id)) }, r.id)) })
9230
9394
  ] }) })
9231
9395
  ] })
9232
9396
  ] }) }),
9233
- /* @__PURE__ */ jsxs44(Dialog6.Footer, { children: [
9234
- /* @__PURE__ */ jsx58(Dialog6.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(Button, { variant: "cancel", children: labels.cancel }) }),
9235
- /* @__PURE__ */ jsx58(Button, { variant: "primary", disabled: columns.length === 0, onClick: () => onExport({ columns, all, separator }), children: q.exportRun ?? "Export" })
9397
+ /* @__PURE__ */ jsxs45(Dialog6.Footer, { children: [
9398
+ /* @__PURE__ */ jsx59(Dialog6.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx59(Button, { variant: "cancel", children: labels.cancel }) }),
9399
+ /* @__PURE__ */ jsx59(Button, { variant: "primary", disabled: columns.length === 0, onClick: () => onExport({ columns, all, separator }), children: q.exportRun ?? "Export" })
9236
9400
  ] }),
9237
- /* @__PURE__ */ jsx58(Dialog6.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx58(CloseButton4, { size: "sm" }) })
9401
+ /* @__PURE__ */ jsx59(Dialog6.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx59(CloseButton4, { size: "sm" }) })
9238
9402
  ] }) })
9239
9403
  ] }) });
9240
9404
  }
9241
9405
 
9242
9406
  // src/components/QueryableList.tsx
9243
- import { Fragment as Fragment21, jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
9407
+ import { Fragment as Fragment21, jsx as jsx60, jsxs as jsxs46 } from "react/jsx-runtime";
9244
9408
  var PAIR = "";
9245
9409
  var pairKey = (first, second) => `${first}${PAIR}${second}`;
9246
9410
  var condition = (field, value) => value == null ? { field, op: "isEmpty" } : { field, op: "eq", value };
@@ -9401,15 +9565,15 @@ function QueryableList({
9401
9565
  }
9402
9566
  const sortable = (fields ?? []).filter((f) => f.sortable);
9403
9567
  const groupLabel = groupField ? thenField ? `${label(groupField)} \xB7 ${label(thenField)}` : label(groupField) : null;
9404
- return /* @__PURE__ */ jsxs45(Stack14, { gap: "3", children: [
9405
- /* @__PURE__ */ jsxs45(chakra36.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
9406
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
9407
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", wrap: "wrap", minW: "0", children: [
9568
+ return /* @__PURE__ */ jsxs46(Stack15, { gap: "3", children: [
9569
+ /* @__PURE__ */ jsxs46(chakra37.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
9570
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
9571
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", wrap: "wrap", minW: "0", children: [
9408
9572
  leading,
9409
- leading != null && views && onSelectView && /* @__PURE__ */ jsx59(chakra36.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
9410
- views && onSelectView && /* @__PURE__ */ jsxs45(HStack13, { gap: "2", children: [
9411
- /* @__PURE__ */ jsx59(Text20, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
9412
- /* @__PURE__ */ jsx59(
9573
+ leading != null && views && onSelectView && /* @__PURE__ */ jsx60(chakra37.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
9574
+ views && onSelectView && /* @__PURE__ */ jsxs46(HStack14, { gap: "2", children: [
9575
+ /* @__PURE__ */ jsx60(Text21, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
9576
+ /* @__PURE__ */ jsx60(
9413
9577
  SelectField,
9414
9578
  {
9415
9579
  width: "auto",
@@ -9421,62 +9585,62 @@ function QueryableList({
9421
9585
  }
9422
9586
  )
9423
9587
  ] }),
9424
- onSaveView && (naming === null ? /* @__PURE__ */ jsxs45(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
9425
- /* @__PURE__ */ jsx59(Save, {}),
9588
+ onSaveView && (naming === null ? /* @__PURE__ */ jsxs46(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
9589
+ /* @__PURE__ */ jsx60(Save, {}),
9426
9590
  labels.saveView
9427
- ] }) : /* @__PURE__ */ jsxs45(HStack13, { gap: "1", as: "form", onSubmit: (e) => {
9591
+ ] }) : /* @__PURE__ */ jsxs46(HStack14, { gap: "1", as: "form", onSubmit: (e) => {
9428
9592
  e.preventDefault();
9429
9593
  if (naming.trim()) onSaveView(naming.trim(), activeView?.isOwner && naming.trim() === activeView.name ? activeView.id : null);
9430
9594
  setNaming(null);
9431
9595
  }, children: [
9432
- /* @__PURE__ */ jsx59(Input7, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
9433
- /* @__PURE__ */ jsx59(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
9434
- /* @__PURE__ */ jsx59(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx59(X2, {}) })
9596
+ /* @__PURE__ */ jsx60(Input8, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
9597
+ /* @__PURE__ */ jsx60(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
9598
+ /* @__PURE__ */ jsx60(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx60(X2, {}) })
9435
9599
  ] })),
9436
- activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx59(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx59(Trash22, {}) })
9600
+ activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx60(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx60(Trash22, {}) })
9437
9601
  ] }),
9438
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", wrap: "wrap", children: [
9439
- /* @__PURE__ */ jsxs45(Menu5.Root, { positioning: { placement: "bottom-end" }, children: [
9440
- /* @__PURE__ */ jsx59(Menu5.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs45(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
9441
- /* @__PURE__ */ jsx59(Rows3, {}),
9442
- /* @__PURE__ */ jsx59(Text20, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
9602
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", wrap: "wrap", children: [
9603
+ /* @__PURE__ */ jsxs46(Menu5.Root, { positioning: { placement: "bottom-end" }, children: [
9604
+ /* @__PURE__ */ jsx60(Menu5.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs46(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
9605
+ /* @__PURE__ */ jsx60(Rows3, {}),
9606
+ /* @__PURE__ */ jsx60(Text21, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
9443
9607
  groupLabel ?? labels.noGrouping,
9444
- /* @__PURE__ */ jsx59(ChevronDown3, {})
9608
+ /* @__PURE__ */ jsx60(ChevronDown3, {})
9445
9609
  ] }) }),
9446
- /* @__PURE__ */ jsx59(Portal17, { children: /* @__PURE__ */ jsx59(Menu5.Positioner, { children: /* @__PURE__ */ jsxs45(Menu5.Content, { minW: "48", children: [
9447
- /* @__PURE__ */ jsxs45(
9610
+ /* @__PURE__ */ jsx60(Portal17, { children: /* @__PURE__ */ jsx60(Menu5.Positioner, { children: /* @__PURE__ */ jsxs46(Menu5.Content, { minW: "48", children: [
9611
+ /* @__PURE__ */ jsxs46(
9448
9612
  Menu5.RadioItemGroup,
9449
9613
  {
9450
9614
  value: groupField ?? "",
9451
9615
  onValueChange: (d) => change({ ...query, groupBy: d.value ? { field: d.value, aggregates: [] } : null }),
9452
9616
  children: [
9453
- /* @__PURE__ */ jsxs45(Menu5.RadioItem, { value: "", children: [
9617
+ /* @__PURE__ */ jsxs46(Menu5.RadioItem, { value: "", children: [
9454
9618
  labels.noGrouping,
9455
- /* @__PURE__ */ jsx59(Menu5.ItemIndicator, {})
9619
+ /* @__PURE__ */ jsx60(Menu5.ItemIndicator, {})
9456
9620
  ] }),
9457
- groupable.map((f) => /* @__PURE__ */ jsxs45(Menu5.RadioItem, { value: f.id, children: [
9621
+ groupable.map((f) => /* @__PURE__ */ jsxs46(Menu5.RadioItem, { value: f.id, children: [
9458
9622
  f.label,
9459
- /* @__PURE__ */ jsx59(Menu5.ItemIndicator, {})
9623
+ /* @__PURE__ */ jsx60(Menu5.ItemIndicator, {})
9460
9624
  ] }, f.id))
9461
9625
  ]
9462
9626
  }
9463
9627
  ),
9464
- groupField && groupable.length > 1 && /* @__PURE__ */ jsxs45(Fragment21, { children: [
9465
- /* @__PURE__ */ jsx59(Menu5.Separator, {}),
9466
- /* @__PURE__ */ jsxs45(
9628
+ groupField && groupable.length > 1 && /* @__PURE__ */ jsxs46(Fragment21, { children: [
9629
+ /* @__PURE__ */ jsx60(Menu5.Separator, {}),
9630
+ /* @__PURE__ */ jsxs46(
9467
9631
  Menu5.RadioItemGroup,
9468
9632
  {
9469
9633
  value: thenField ?? "",
9470
9634
  onValueChange: (d) => change({ ...query, groupBy: { ...query.groupBy, then: d.value ? { field: d.value } : null } }),
9471
9635
  children: [
9472
- /* @__PURE__ */ jsx59(Menu5.ItemGroupLabel, { children: labels.thenBy }),
9473
- /* @__PURE__ */ jsxs45(Menu5.RadioItem, { value: "", children: [
9636
+ /* @__PURE__ */ jsx60(Menu5.ItemGroupLabel, { children: labels.thenBy }),
9637
+ /* @__PURE__ */ jsxs46(Menu5.RadioItem, { value: "", children: [
9474
9638
  labels.noSecondGrouping,
9475
- /* @__PURE__ */ jsx59(Menu5.ItemIndicator, {})
9639
+ /* @__PURE__ */ jsx60(Menu5.ItemIndicator, {})
9476
9640
  ] }),
9477
- groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs45(Menu5.RadioItem, { value: f.id, children: [
9641
+ groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs46(Menu5.RadioItem, { value: f.id, children: [
9478
9642
  f.label,
9479
- /* @__PURE__ */ jsx59(Menu5.ItemIndicator, {})
9643
+ /* @__PURE__ */ jsx60(Menu5.ItemIndicator, {})
9480
9644
  ] }, f.id))
9481
9645
  ]
9482
9646
  }
@@ -9484,10 +9648,10 @@ function QueryableList({
9484
9648
  ] })
9485
9649
  ] }) }) })
9486
9650
  ] }),
9487
- /* @__PURE__ */ jsx59(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
9488
- onExport && !exportTarget && /* @__PURE__ */ jsx59(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: setExportFormat }),
9489
- onExport && exportTarget && createPortal(/* @__PURE__ */ jsx59(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: setExportFormat }), exportTarget),
9490
- onExport && /* @__PURE__ */ jsx59(
9651
+ /* @__PURE__ */ jsx60(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
9652
+ onExport && !exportTarget && /* @__PURE__ */ jsx60(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: setExportFormat }),
9653
+ onExport && exportTarget && createPortal(/* @__PURE__ */ jsx60(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: setExportFormat }), exportTarget),
9654
+ onExport && /* @__PURE__ */ jsx60(
9491
9655
  ExportDialog,
9492
9656
  {
9493
9657
  format: exportFormat,
@@ -9504,9 +9668,9 @@ function QueryableList({
9504
9668
  actions
9505
9669
  ] })
9506
9670
  ] }),
9507
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
9508
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
9509
- /* @__PURE__ */ jsx59(
9671
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
9672
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
9673
+ /* @__PURE__ */ jsx60(
9510
9674
  SegmentedControl,
9511
9675
  {
9512
9676
  size: "sm",
@@ -9519,14 +9683,14 @@ function QueryableList({
9519
9683
  ]
9520
9684
  }
9521
9685
  ),
9522
- mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs45(HStack13, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
9523
- search && /* @__PURE__ */ jsx59(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
9524
- /* @__PURE__ */ jsxs45(AddButton, { onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
9686
+ mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs46(HStack14, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
9687
+ search && /* @__PURE__ */ jsx60(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
9688
+ /* @__PURE__ */ jsxs46(AddButton, { onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
9525
9689
  labels.addFilter,
9526
- chips.length > 0 && /* @__PURE__ */ jsx59(CountBadge, { value: chips.length, tone: "accent" })
9690
+ chips.length > 0 && /* @__PURE__ */ jsx60(CountBadge, { value: chips.length, tone: "accent" })
9527
9691
  ] }),
9528
- sortable.length > 0 && /* @__PURE__ */ jsxs45(HStack13, { gap: "1", flexShrink: 0, children: [
9529
- /* @__PURE__ */ jsx59(
9692
+ sortable.length > 0 && /* @__PURE__ */ jsxs46(HStack14, { gap: "1", flexShrink: 0, children: [
9693
+ /* @__PURE__ */ jsx60(
9530
9694
  SelectField,
9531
9695
  {
9532
9696
  width: "auto",
@@ -9541,7 +9705,7 @@ function QueryableList({
9541
9705
  ]
9542
9706
  }
9543
9707
  ),
9544
- sort && /* @__PURE__ */ jsx59(
9708
+ sort && /* @__PURE__ */ jsx60(
9545
9709
  IconButton,
9546
9710
  {
9547
9711
  size: "sm",
@@ -9549,11 +9713,11 @@ function QueryableList({
9549
9713
  "aria-label": sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
9550
9714
  title: sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
9551
9715
  onClick: () => change({ ...query, orderBy: [{ field: sort.columnId, desc: sort.direction !== "desc" }] }),
9552
- children: sort.direction === "desc" ? /* @__PURE__ */ jsx59(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx59(ArrowUpNarrowWide, {})
9716
+ children: sort.direction === "desc" ? /* @__PURE__ */ jsx60(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx60(ArrowUpNarrowWide, {})
9553
9717
  }
9554
9718
  )
9555
9719
  ] })
9556
- ] }) : /* @__PURE__ */ jsx59(
9720
+ ] }) : /* @__PURE__ */ jsx60(
9557
9721
  RqlBox,
9558
9722
  {
9559
9723
  initial: state.rql ?? result?.rql ?? "",
@@ -9564,11 +9728,11 @@ function QueryableList({
9564
9728
  state.rql ?? result?.rql ?? ""
9565
9729
  )
9566
9730
  ] }),
9567
- attention != null && /* @__PURE__ */ jsx59(HStack13, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
9731
+ attention != null && /* @__PURE__ */ jsx60(HStack14, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
9568
9732
  ] }),
9569
- mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs45(HStack13, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
9570
- chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs45(
9571
- chakra36.span,
9733
+ mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs46(HStack14, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
9734
+ chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs46(
9735
+ chakra37.span,
9572
9736
  {
9573
9737
  display: "inline-flex",
9574
9738
  alignItems: "center",
@@ -9582,17 +9746,17 @@ function QueryableList({
9582
9746
  bg: "bg.selected",
9583
9747
  textStyle: "sm",
9584
9748
  children: [
9585
- /* @__PURE__ */ jsx59(Text20, { as: "span", fontWeight: "medium", children: label(c2.field) }),
9586
- /* @__PURE__ */ jsx59(Text20, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
9587
- !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx59(Text20, { as: "span", children: valueText(c2.value) }),
9588
- /* @__PURE__ */ jsx59(IconButton, { size: "xs", variant: "ghost", "aria-label": fill4(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx59(X2, {}) })
9749
+ /* @__PURE__ */ jsx60(Text21, { as: "span", fontWeight: "medium", children: label(c2.field) }),
9750
+ /* @__PURE__ */ jsx60(Text21, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
9751
+ !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx60(Text21, { as: "span", children: valueText(c2.value) }),
9752
+ /* @__PURE__ */ jsx60(IconButton, { size: "xs", variant: "ghost", "aria-label": fill4(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx60(X2, {}) })
9589
9753
  ]
9590
9754
  },
9591
9755
  `${c2.field}-${i}`
9592
9756
  )),
9593
- /* @__PURE__ */ jsx59(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
9757
+ /* @__PURE__ */ jsx60(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
9594
9758
  ] }),
9595
- adding && fields && conditions !== null && /* @__PURE__ */ jsx59(
9759
+ adding && fields && conditions !== null && /* @__PURE__ */ jsx60(
9596
9760
  FilterBuilderDialog,
9597
9761
  {
9598
9762
  fields,
@@ -9607,26 +9771,26 @@ function QueryableList({
9607
9771
  }
9608
9772
  }
9609
9773
  ),
9610
- toolbarFooter != null && /* @__PURE__ */ jsx59(chakra36.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
9774
+ toolbarFooter != null && /* @__PURE__ */ jsx60(chakra37.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
9611
9775
  ] }),
9612
- mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx59(InlineAlert, { tone: "danger", children: error.message }),
9613
- exported && /* @__PURE__ */ jsx59(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs45(HStack13, { justify: "space-between", gap: "2", align: "start", children: [
9614
- /* @__PURE__ */ jsx59(Text20, { as: "span", children: exported.message }),
9615
- /* @__PURE__ */ jsx59(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx59(X2, {}) })
9776
+ mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx60(InlineAlert, { tone: "danger", children: error.message }),
9777
+ exported && /* @__PURE__ */ jsx60(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs46(HStack14, { justify: "space-between", gap: "2", align: "start", children: [
9778
+ /* @__PURE__ */ jsx60(Text21, { as: "span", children: exported.message }),
9779
+ /* @__PURE__ */ jsx60(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx60(X2, {}) })
9616
9780
  ] }) }),
9617
- /* @__PURE__ */ jsx59(
9781
+ /* @__PURE__ */ jsx60(
9618
9782
  Panel,
9619
9783
  {
9620
9784
  flush: true,
9621
9785
  footer: (
9622
9786
  // Expand and collapse at the start, the pages in the middle (the canvas's v12, UI round 9 step 67, round 10 step 73),
9623
9787
  // the range at the end, or with the arrows in the simple form.
9624
- /* @__PURE__ */ jsxs45(chakra36.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
9625
- /* @__PURE__ */ jsx59(HStack13, { gap: "3", children: grouped && /* @__PURE__ */ jsxs45(Fragment21, { children: [
9626
- /* @__PURE__ */ jsx59(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
9627
- /* @__PURE__ */ jsx59(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
9788
+ /* @__PURE__ */ jsxs46(chakra37.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
9789
+ /* @__PURE__ */ jsx60(HStack14, { gap: "3", children: grouped && /* @__PURE__ */ jsxs46(Fragment21, { children: [
9790
+ /* @__PURE__ */ jsx60(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
9791
+ /* @__PURE__ */ jsx60(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
9628
9792
  ] }) }),
9629
- /* @__PURE__ */ jsx59(
9793
+ /* @__PURE__ */ jsx60(
9630
9794
  Pagination,
9631
9795
  {
9632
9796
  page: Math.floor(skip / take) + 1,
@@ -9642,10 +9806,10 @@ function QueryableList({
9642
9806
  pageOf: fill4(labels.pageOf, { page: fmt.number(Math.floor(skip / take) + 1), pages: fmt.number(Math.max(1, Math.ceil(total / take))) })
9643
9807
  }
9644
9808
  ),
9645
- /* @__PURE__ */ jsx59(Text20, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result && pagination !== "simple" ? fill4(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
9809
+ /* @__PURE__ */ jsx60(Text21, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result && pagination !== "simple" ? fill4(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
9646
9810
  ] })
9647
9811
  ),
9648
- children: layout === "cards" && cards ? /* @__PURE__ */ jsx59(
9812
+ children: layout === "cards" && cards ? /* @__PURE__ */ jsx60(
9649
9813
  CardGrid,
9650
9814
  {
9651
9815
  "aria-label": ariaLabel,
@@ -9656,7 +9820,7 @@ function QueryableList({
9656
9820
  render: cards.render,
9657
9821
  empty: loadFailed != null && error?.failed && !result ? loadFailed : empty ?? labels.empty
9658
9822
  }
9659
- ) : /* @__PURE__ */ jsx59(
9823
+ ) : /* @__PURE__ */ jsx60(
9660
9824
  DataTable,
9661
9825
  {
9662
9826
  "aria-label": ariaLabel,
@@ -9702,11 +9866,11 @@ function QueryableList({
9702
9866
  const label2 = thenField ? info?.then?.label : info?.label;
9703
9867
  const value = thenField ? info?.then?.value ?? null : info?.value ?? null;
9704
9868
  const period = thenField ? query.groupBy?.then?.period : query.groupBy?.period;
9705
- return /* @__PURE__ */ jsxs45(HStack13, { gap: "2.5", flex: "1", minW: "0", children: [
9706
- /* @__PURE__ */ jsx59(chakra36.span, { display: "inline-flex", alignItems: "center", fontWeight: "medium", textStyle: "sm", minW: "0", children: raw == null || period || value == null ? groupName(value, label2, period) : renderCell(field, raw, first) }),
9707
- /* @__PURE__ */ jsx59(CountBadge, { value: info?.count ?? rows2.length }),
9869
+ return /* @__PURE__ */ jsxs46(HStack14, { gap: "2.5", flex: "1", minW: "0", children: [
9870
+ /* @__PURE__ */ jsx60(chakra37.span, { display: "inline-flex", alignItems: "center", fontWeight: "medium", textStyle: "sm", minW: "0", children: raw == null || period || value == null ? groupName(value, label2, period) : renderCell(field, raw, first) }),
9871
+ /* @__PURE__ */ jsx60(CountBadge, { value: info?.count ?? rows2.length }),
9708
9872
  !thenField && renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" }),
9709
- conditions !== null && !period && /* @__PURE__ */ jsxs45(
9873
+ conditions !== null && !period && /* @__PURE__ */ jsxs46(
9710
9874
  Button,
9711
9875
  {
9712
9876
  size: "xs",
@@ -9724,8 +9888,8 @@ function QueryableList({
9724
9888
  condition(field, value)
9725
9889
  ]),
9726
9890
  children: [
9727
- /* @__PURE__ */ jsx59(Filter, {}),
9728
- /* @__PURE__ */ jsx59(chakra36.span, { hideBelow: "md", children: labels.filterToGroup })
9891
+ /* @__PURE__ */ jsx60(Filter, {}),
9892
+ /* @__PURE__ */ jsx60(chakra37.span, { hideBelow: "md", children: labels.filterToGroup })
9729
9893
  ]
9730
9894
  }
9731
9895
  )
@@ -9744,9 +9908,9 @@ function QueryableList({
9744
9908
  const first = groups[0]?.rows[0];
9745
9909
  const raw = first?.values[groupField];
9746
9910
  const count = (result?.groups ?? []).filter((g) => groupKey(g.value) === parent).reduce((n, g) => n + g.count, 0);
9747
- return /* @__PURE__ */ jsxs45(HStack13, { gap: "2.5", flex: "1", minW: "0", children: [
9748
- /* @__PURE__ */ jsx59(chakra36.span, { display: "inline-flex", alignItems: "center", fontWeight: "bold", textStyle: "sm", minW: "0", children: raw == null || query.groupBy?.period || info?.value == null ? groupName(info?.value, info?.label, query.groupBy?.period) : renderCell(groupField, raw, first) }),
9749
- /* @__PURE__ */ jsx59(CountBadge, { value: count }),
9911
+ return /* @__PURE__ */ jsxs46(HStack14, { gap: "2.5", flex: "1", minW: "0", children: [
9912
+ /* @__PURE__ */ jsx60(chakra37.span, { display: "inline-flex", alignItems: "center", fontWeight: "bold", textStyle: "sm", minW: "0", children: raw == null || query.groupBy?.period || info?.value == null ? groupName(info?.value, info?.label, query.groupBy?.period) : renderCell(groupField, raw, first) }),
9913
+ /* @__PURE__ */ jsx60(CountBadge, { value: count }),
9750
9914
  renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" })
9751
9915
  ] });
9752
9916
  }
@@ -9789,8 +9953,8 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
9789
9953
  clearTimeout(timer.current);
9790
9954
  timer.current = setTimeout(() => next.trim() !== initial.trim() && onRun(next), 400);
9791
9955
  }
9792
- return /* @__PURE__ */ jsx59(
9793
- chakra36.form,
9956
+ return /* @__PURE__ */ jsx60(
9957
+ chakra37.form,
9794
9958
  {
9795
9959
  role: "search",
9796
9960
  flex: "1",
@@ -9801,7 +9965,7 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
9801
9965
  clearTimeout(timer.current);
9802
9966
  if (text.trim() !== initial.trim()) onRun(text);
9803
9967
  },
9804
- children: /* @__PURE__ */ jsx59(
9968
+ children: /* @__PURE__ */ jsx60(
9805
9969
  SearchInput,
9806
9970
  {
9807
9971
  size: "sm",
@@ -9843,14 +10007,14 @@ function placeholderOf(id, kind) {
9843
10007
  }
9844
10008
  function ExportMenu({ busy, disabled, onExport }) {
9845
10009
  const labels = useAbpLabels().queryList;
9846
- return /* @__PURE__ */ jsxs45(Menu5.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
9847
- /* @__PURE__ */ jsx59(Menu5.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs45(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
9848
- /* @__PURE__ */ jsx59(Download, {}),
10010
+ return /* @__PURE__ */ jsxs46(Menu5.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
10011
+ /* @__PURE__ */ jsx60(Menu5.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs46(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
10012
+ /* @__PURE__ */ jsx60(Download, {}),
9849
10013
  labels.export
9850
10014
  ] }) }),
9851
- /* @__PURE__ */ jsx59(Portal17, { children: /* @__PURE__ */ jsx59(Menu5.Positioner, { children: /* @__PURE__ */ jsxs45(Menu5.Content, { minW: "48", children: [
9852
- /* @__PURE__ */ jsx59(Menu5.Item, { value: "csv", children: labels.exportCsv }),
9853
- /* @__PURE__ */ jsx59(Menu5.Item, { value: "xlsx", children: labels.exportExcel })
10015
+ /* @__PURE__ */ jsx60(Portal17, { children: /* @__PURE__ */ jsx60(Menu5.Positioner, { children: /* @__PURE__ */ jsxs46(Menu5.Content, { minW: "48", children: [
10016
+ /* @__PURE__ */ jsx60(Menu5.Item, { value: "csv", children: labels.exportCsv }),
10017
+ /* @__PURE__ */ jsx60(Menu5.Item, { value: "xlsx", children: labels.exportExcel })
9854
10018
  ] }) }) })
9855
10019
  ] });
9856
10020
  }
@@ -9868,7 +10032,7 @@ function RqlBox({
9868
10032
  const input = useRef20(null);
9869
10033
  const timer = useRef20(void 0);
9870
10034
  const seq = useRef20(0);
9871
- const listId = useId9();
10035
+ const listId = useId10();
9872
10036
  function ask(value, caret) {
9873
10037
  if (!suggest) return;
9874
10038
  clearTimeout(timer.current);
@@ -9930,10 +10094,10 @@ function RqlBox({
9930
10094
  }
9931
10095
  }
9932
10096
  const hasSpan = error?.start != null && error.end != null && error.end >= error.start && error.end <= text.length;
9933
- return /* @__PURE__ */ jsxs45(Stack14, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
9934
- /* @__PURE__ */ jsxs45(HStack13, { gap: "2", children: [
9935
- /* @__PURE__ */ jsx59(
9936
- Input7,
10097
+ return /* @__PURE__ */ jsxs46(Stack15, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
10098
+ /* @__PURE__ */ jsxs46(HStack14, { gap: "2", children: [
10099
+ /* @__PURE__ */ jsx60(
10100
+ Input8,
9937
10101
  {
9938
10102
  ref: input,
9939
10103
  size: "sm",
@@ -9958,10 +10122,10 @@ function RqlBox({
9958
10122
  onKeyDown
9959
10123
  }
9960
10124
  ),
9961
- /* @__PURE__ */ jsx59(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
10125
+ /* @__PURE__ */ jsx60(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
9962
10126
  ] }),
9963
- open && found && /* @__PURE__ */ jsx59(
9964
- Box13,
10127
+ open && found && /* @__PURE__ */ jsx60(
10128
+ Box14,
9965
10129
  {
9966
10130
  id: listId,
9967
10131
  role: "listbox",
@@ -9979,8 +10143,8 @@ function RqlBox({
9979
10143
  borderRadius: "md",
9980
10144
  boxShadow: "md",
9981
10145
  py: "1",
9982
- children: found.items.map((item, i) => /* @__PURE__ */ jsxs45(
9983
- HStack13,
10146
+ children: found.items.map((item, i) => /* @__PURE__ */ jsxs46(
10147
+ HStack14,
9984
10148
  {
9985
10149
  id: `${listId}-${i}`,
9986
10150
  role: "option",
@@ -9997,28 +10161,28 @@ function RqlBox({
9997
10161
  },
9998
10162
  onMouseEnter: () => setActive(i),
9999
10163
  children: [
10000
- /* @__PURE__ */ jsx59(Text20, { as: "span", textStyle: "sm", fontFamily: item.kind === "person" || item.kind === "value" ? void 0 : "mono", truncate: true, children: item.kind === "field" || item.kind === "person" ? item.label : item.text }),
10001
- /* @__PURE__ */ jsx59(Text20, { as: "span", textStyle: "xs", color: "fg.muted", truncate: true, children: item.kind === "field" || item.kind === "person" ? item.text : item.label !== item.text ? item.label : labels.kinds[item.kind] ?? item.kind })
10164
+ /* @__PURE__ */ jsx60(Text21, { as: "span", textStyle: "sm", fontFamily: item.kind === "person" || item.kind === "value" ? void 0 : "mono", truncate: true, children: item.kind === "field" || item.kind === "person" ? item.label : item.text }),
10165
+ /* @__PURE__ */ jsx60(Text21, { as: "span", textStyle: "xs", color: "fg.muted", truncate: true, children: item.kind === "field" || item.kind === "person" ? item.text : item.label !== item.text ? item.label : labels.kinds[item.kind] ?? item.kind })
10002
10166
  ]
10003
10167
  },
10004
10168
  `${item.kind}-${item.text}`
10005
10169
  ))
10006
10170
  }
10007
10171
  ),
10008
- error && /* @__PURE__ */ jsxs45(InlineAlert, { tone: "danger", size: "sm", children: [
10172
+ error && /* @__PURE__ */ jsxs46(InlineAlert, { tone: "danger", size: "sm", children: [
10009
10173
  error.message,
10010
- hasSpan && /* @__PURE__ */ jsxs45(chakra36.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
10174
+ hasSpan && /* @__PURE__ */ jsxs46(chakra37.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
10011
10175
  text.slice(0, error.start),
10012
- /* @__PURE__ */ jsx59(chakra36.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
10176
+ /* @__PURE__ */ jsx60(chakra37.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
10013
10177
  text.slice(error.end)
10014
10178
  ] })
10015
10179
  ] })
10016
10180
  ] });
10017
10181
  }
10018
10182
  function CardGrid({ rows: rows2, loading, count, minWidth, render: render2, empty, "aria-label": label }) {
10019
- if (rows2 && rows2.length === 0 && !loading) return typeof empty === "string" ? /* @__PURE__ */ jsx59(EmptyState, { title: empty }) : /* @__PURE__ */ jsx59(Fragment21, { children: empty });
10020
- return /* @__PURE__ */ jsx59(
10021
- chakra36.ul,
10183
+ if (rows2 && rows2.length === 0 && !loading) return typeof empty === "string" ? /* @__PURE__ */ jsx60(EmptyState, { title: empty }) : /* @__PURE__ */ jsx60(Fragment21, { children: empty });
10184
+ return /* @__PURE__ */ jsx60(
10185
+ chakra37.ul,
10022
10186
  {
10023
10187
  role: "list",
10024
10188
  "aria-label": label,
@@ -10030,22 +10194,22 @@ function CardGrid({ rows: rows2, loading, count, minWidth, render: render2, empt
10030
10194
  gap: "3",
10031
10195
  gridTemplateColumns: `repeat(auto-fill, minmax(min(${minWidth}, 100%), 1fr))`,
10032
10196
  "data-layout": "cards",
10033
- children: rows2 ? rows2.map((row) => /* @__PURE__ */ jsx59(chakra36.li, { display: "flex", minW: "0", children: render2(row) }, row.id)) : Array.from({ length: Math.min(count, 9) }, (_, i) => /* @__PURE__ */ jsx59(chakra36.li, { h: "9.5rem", rounded: "lg", bg: "bg.subtle", "aria-hidden": true }, i))
10197
+ children: rows2 ? rows2.map((row) => /* @__PURE__ */ jsx60(chakra37.li, { display: "flex", minW: "0", children: render2(row) }, row.id)) : Array.from({ length: Math.min(count, 9) }, (_, i) => /* @__PURE__ */ jsx60(chakra37.li, { h: "9.5rem", rounded: "lg", bg: "bg.subtle", "aria-hidden": true }, i))
10034
10198
  }
10035
10199
  );
10036
10200
  }
10037
10201
 
10038
10202
  // src/components/FileDrop.tsx
10039
10203
  import { forwardRef as forwardRef9, useLayoutEffect as useLayoutEffect5, useRef as useRef21 } from "react";
10040
- import { Box as Box14, HStack as HStack14, Portal as Portal18, Text as Text21 } from "@chakra-ui/react";
10204
+ import { Box as Box15, HStack as HStack15, Portal as Portal18, Text as Text22 } from "@chakra-ui/react";
10041
10205
  import { ArrowDownToLine } from "lucide-react";
10042
- import { jsx as jsx60, jsxs as jsxs46 } from "react/jsx-runtime";
10206
+ import { jsx as jsx61, jsxs as jsxs47 } from "react/jsx-runtime";
10043
10207
  var OUT3 = `cubic-bezier(${curves.out.join(", ")})`;
10044
10208
  var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: over2 = false, hint, children, ...rest }, ref) {
10045
10209
  const { reduce } = useMotionSetting();
10046
10210
  const lit = awake || over2;
10047
- return /* @__PURE__ */ jsxs46(
10048
- Box14,
10211
+ return /* @__PURE__ */ jsxs47(
10212
+ Box15,
10049
10213
  {
10050
10214
  ref,
10051
10215
  position: "relative",
@@ -10063,8 +10227,8 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
10063
10227
  ...rest,
10064
10228
  children: [
10065
10229
  children,
10066
- /* @__PURE__ */ jsx60(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs46(
10067
- HStack14,
10230
+ /* @__PURE__ */ jsx61(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs47(
10231
+ HStack15,
10068
10232
  {
10069
10233
  h: "full",
10070
10234
  justify: "center",
@@ -10077,8 +10241,8 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
10077
10241
  textAlign: "center",
10078
10242
  style: { transition: "background-color 160ms ease" },
10079
10243
  children: [
10080
- /* @__PURE__ */ jsx60(Bob, { active: over2 && !reduce }),
10081
- /* @__PURE__ */ jsx60(Text21, { as: "span", truncate: true, children: hint })
10244
+ /* @__PURE__ */ jsx61(Bob, { active: over2 && !reduce }),
10245
+ /* @__PURE__ */ jsx61(Text22, { as: "span", truncate: true, children: hint })
10082
10246
  ]
10083
10247
  }
10084
10248
  ) })
@@ -10097,60 +10261,60 @@ function Bob({ active }) {
10097
10261
  });
10098
10262
  return () => animation?.cancel();
10099
10263
  }, [active]);
10100
- return /* @__PURE__ */ jsx60(Box14, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx60(ArrowDownToLine, {}) });
10264
+ return /* @__PURE__ */ jsx61(Box15, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx61(ArrowDownToLine, {}) });
10101
10265
  }
10102
10266
  function DropHint({ show, children }) {
10103
- return /* @__PURE__ */ jsx60(Portal18, { children: /* @__PURE__ */ jsx60(Box14, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx60(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs46(HStack14, { gap: "2", px: "4", py: "2", rounded: "full", bg: "bg.inverted", color: "fg.inverted", shadow: "lg", textStyle: "body.sm", fontWeight: "medium", maxW: "lg", "data-testid": "drop-hint", _icon: { boxSize: "4" }, children: [
10104
- /* @__PURE__ */ jsx60(ArrowDownToLine, {}),
10105
- /* @__PURE__ */ jsx60(Text21, { as: "span", truncate: true, children })
10267
+ return /* @__PURE__ */ jsx61(Portal18, { children: /* @__PURE__ */ jsx61(Box15, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx61(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs47(HStack15, { gap: "2", px: "4", py: "2", rounded: "full", bg: "bg.inverted", color: "fg.inverted", shadow: "lg", textStyle: "body.sm", fontWeight: "medium", maxW: "lg", "data-testid": "drop-hint", _icon: { boxSize: "4" }, children: [
10268
+ /* @__PURE__ */ jsx61(ArrowDownToLine, {}),
10269
+ /* @__PURE__ */ jsx61(Text22, { as: "span", truncate: true, children })
10106
10270
  ] }) }) }) });
10107
10271
  }
10108
10272
 
10109
10273
  // src/components/UploadList.tsx
10110
10274
  import { useLayoutEffect as useLayoutEffect6, useRef as useRef22 } from "react";
10111
- import { Box as Box15, chakra as chakra37, HStack as HStack15, Stack as Stack15, Text as Text22 } from "@chakra-ui/react";
10275
+ import { Box as Box16, chakra as chakra38, HStack as HStack16, Stack as Stack16, Text as Text23 } from "@chakra-ui/react";
10112
10276
  import { Check as Check3, File as FileIcon, RotateCcw, TriangleAlert, X as X3 } from "lucide-react";
10113
- import { jsx as jsx61, jsxs as jsxs47 } from "react/jsx-runtime";
10277
+ import { jsx as jsx62, jsxs as jsxs48 } from "react/jsx-runtime";
10114
10278
  var OUT4 = `cubic-bezier(${curves.out.join(", ")})`;
10115
10279
  function UploadList({ rows: rows2, summary, fraction, announce, labels, onCancel, onRetry, onDismiss }) {
10116
- return /* @__PURE__ */ jsxs47(Stack15, { gap: "2", "data-testid": "upload-list", children: [
10117
- /* @__PURE__ */ jsx61(chakra37.span, { srOnly: true, "aria-live": "polite", children: announce }),
10118
- rows2.length > 0 && summary != null && /* @__PURE__ */ jsxs47(Stack15, { gap: "1", children: [
10119
- /* @__PURE__ */ jsx61(Text22, { textStyle: "caption", color: "fg.muted", children: summary }),
10120
- fraction != null && /* @__PURE__ */ jsx61(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
10280
+ return /* @__PURE__ */ jsxs48(Stack16, { gap: "2", "data-testid": "upload-list", children: [
10281
+ /* @__PURE__ */ jsx62(chakra38.span, { srOnly: true, "aria-live": "polite", children: announce }),
10282
+ rows2.length > 0 && summary != null && /* @__PURE__ */ jsxs48(Stack16, { gap: "1", children: [
10283
+ /* @__PURE__ */ jsx62(Text23, { textStyle: "caption", color: "fg.muted", children: summary }),
10284
+ fraction != null && /* @__PURE__ */ jsx62(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
10121
10285
  ] }),
10122
- /* @__PURE__ */ jsx61(Stack15, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx61(PresenceList, { children: rows2.map((row) => /* @__PURE__ */ jsx61(PresenceItem, { children: /* @__PURE__ */ jsx61(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
10286
+ /* @__PURE__ */ jsx62(Stack16, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx62(PresenceList, { children: rows2.map((row) => /* @__PURE__ */ jsx62(PresenceItem, { children: /* @__PURE__ */ jsx62(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
10123
10287
  ] });
10124
10288
  }
10125
10289
  function Row({ row, labels, onCancel, onRetry, onDismiss }) {
10126
10290
  const going = row.state === "waiting" || row.state === "sending";
10127
10291
  const trouble = row.state === "failed" || row.state === "refused";
10128
- return /* @__PURE__ */ jsxs47(HStack15, { gap: "3", px: "3", py: "2", rounded: "l2", bg: "bg.subtle", borderWidth: "1px", borderColor: trouble ? "border.error" : "border.muted", "data-upload": row.name, "data-state": row.state, children: [
10129
- /* @__PURE__ */ jsx61(Preview, { src: row.preview }),
10130
- /* @__PURE__ */ jsxs47(Stack15, { gap: "1", flex: "1", minW: "0", children: [
10131
- /* @__PURE__ */ jsxs47(HStack15, { gap: "2", justify: "space-between", children: [
10132
- /* @__PURE__ */ jsx61(Text22, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx61("bdi", { children: row.name }) }),
10133
- /* @__PURE__ */ jsx61(Text22, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx61(Done, {}) : row.status })
10292
+ return /* @__PURE__ */ jsxs48(HStack16, { gap: "3", px: "3", py: "2", rounded: "l2", bg: "bg.subtle", borderWidth: "1px", borderColor: trouble ? "border.error" : "border.muted", "data-upload": row.name, "data-state": row.state, children: [
10293
+ /* @__PURE__ */ jsx62(Preview, { src: row.preview }),
10294
+ /* @__PURE__ */ jsxs48(Stack16, { gap: "1", flex: "1", minW: "0", children: [
10295
+ /* @__PURE__ */ jsxs48(HStack16, { gap: "2", justify: "space-between", children: [
10296
+ /* @__PURE__ */ jsx62(Text23, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx62("bdi", { children: row.name }) }),
10297
+ /* @__PURE__ */ jsx62(Text23, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx62(Done, {}) : row.status })
10134
10298
  ] }),
10135
- (going || row.state === "done") && /* @__PURE__ */ jsx61(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
10136
- row.detail != null && /* @__PURE__ */ jsxs47(Text22, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
10137
- trouble && /* @__PURE__ */ jsx61(Box15, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx61(TriangleAlert, {}) }),
10299
+ (going || row.state === "done") && /* @__PURE__ */ jsx62(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
10300
+ row.detail != null && /* @__PURE__ */ jsxs48(Text23, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
10301
+ trouble && /* @__PURE__ */ jsx62(Box16, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx62(TriangleAlert, {}) }),
10138
10302
  row.detail
10139
10303
  ] })
10140
10304
  ] }),
10141
- going && /* @__PURE__ */ jsx61(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx61(X3, {}) }),
10142
- row.state === "failed" && /* @__PURE__ */ jsx61(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx61(RotateCcw, {}) }),
10143
- trouble && /* @__PURE__ */ jsx61(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx61(X3, {}) })
10305
+ going && /* @__PURE__ */ jsx62(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx62(X3, {}) }),
10306
+ row.state === "failed" && /* @__PURE__ */ jsx62(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx62(RotateCcw, {}) }),
10307
+ trouble && /* @__PURE__ */ jsx62(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx62(X3, {}) })
10144
10308
  ] });
10145
10309
  }
10146
10310
  function Preview({ src }) {
10147
- return /* @__PURE__ */ jsx61(Box15, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx61(chakra37.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx61(FileIcon, {}) });
10311
+ return /* @__PURE__ */ jsx62(Box16, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx62(chakra38.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx62(FileIcon, {}) });
10148
10312
  }
10149
10313
  function Bar2({ fraction, tone, label, quiet: quiet2 }) {
10150
10314
  const { reduce } = useMotionSetting();
10151
10315
  const percent = Math.round(Math.max(0, Math.min(1, fraction)) * 100);
10152
- return /* @__PURE__ */ jsx61(Box15, { h: "1", rounded: "full", bg: "bg.emphasized", overflow: "hidden", opacity: quiet2 ? 0.6 : 1, role: "progressbar", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": percent, children: /* @__PURE__ */ jsx61(
10153
- Box15,
10316
+ return /* @__PURE__ */ jsx62(Box16, { h: "1", rounded: "full", bg: "bg.emphasized", overflow: "hidden", opacity: quiet2 ? 0.6 : 1, role: "progressbar", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": percent, children: /* @__PURE__ */ jsx62(
10317
+ Box16,
10154
10318
  {
10155
10319
  h: "full",
10156
10320
  rounded: "full",
@@ -10176,7 +10340,7 @@ function Done() {
10176
10340
  { duration: 260, easing: OUT4 }
10177
10341
  );
10178
10342
  }, []);
10179
- return /* @__PURE__ */ jsx61(chakra37.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx61(Check3, { strokeWidth: 3 }) });
10343
+ return /* @__PURE__ */ jsx62(chakra38.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx62(Check3, { strokeWidth: 3 }) });
10180
10344
  }
10181
10345
 
10182
10346
  // src/files/drop.ts
@@ -10447,7 +10611,7 @@ function usePastedFiles({ enabled = true, onFiles }) {
10447
10611
 
10448
10612
  // src/components/SortableSections.tsx
10449
10613
  import { useMemo as useMemo15, useState as useState27 } from "react";
10450
- import { Box as Box16, Stack as Stack16, Text as Text23 } from "@chakra-ui/react";
10614
+ import { Box as Box17, Stack as Stack17, Text as Text24 } from "@chakra-ui/react";
10451
10615
  import {
10452
10616
  DndContext as DndContext4,
10453
10617
  DragOverlay as DragOverlay3,
@@ -10460,7 +10624,7 @@ import {
10460
10624
  } from "@dnd-kit/core";
10461
10625
  import { SortableContext as SortableContext3, sortableKeyboardCoordinates as sortableKeyboardCoordinates3, useSortable as useSortable3, verticalListSortingStrategy as verticalListSortingStrategy3 } from "@dnd-kit/sortable";
10462
10626
  import { CSS as CSS4 } from "@dnd-kit/utilities";
10463
- import { jsx as jsx62, jsxs as jsxs48 } from "react/jsx-runtime";
10627
+ import { jsx as jsx63, jsxs as jsxs49 } from "react/jsx-runtime";
10464
10628
  var sectionId = (id) => `section:${id}`;
10465
10629
  function SortableSections({
10466
10630
  "aria-label": ariaLabel,
@@ -10474,7 +10638,7 @@ function SortableSections({
10474
10638
  skeletonItemHeight = "9"
10475
10639
  }) {
10476
10640
  const loading = useLoading(own);
10477
- const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx62(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
10641
+ const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx63(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
10478
10642
  const sensors = useSensors4(
10479
10643
  useSensor4(PointerSensor4, { activationConstraint: { distance: 6 } }),
10480
10644
  useSensor4(KeyboardSensor3, { coordinateGetter: sortableKeyboardCoordinates3 })
@@ -10510,7 +10674,7 @@ function SortableSections({
10510
10674
  if (from === target && !move.before && !move.after) return;
10511
10675
  onMove(item, move);
10512
10676
  }
10513
- return /* @__PURE__ */ jsxs48(
10677
+ return /* @__PURE__ */ jsxs49(
10514
10678
  DndContext4,
10515
10679
  {
10516
10680
  sensors,
@@ -10520,16 +10684,16 @@ function SortableSections({
10520
10684
  onDragCancel: () => setActive(null),
10521
10685
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
10522
10686
  children: [
10523
- /* @__PURE__ */ jsx62(Stack16, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs48(Section, { section: s, dragging: !!active, children: [
10524
- loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs48(Box16, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
10525
- /* @__PURE__ */ jsx62(Bone, { width: "14", height: "4" }),
10526
- /* @__PURE__ */ jsx62(TextBone, { width: boneWidth(n, 16, 36) })
10687
+ /* @__PURE__ */ jsx63(Stack17, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs49(Section, { section: s, dragging: !!active, children: [
10688
+ loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs49(Box17, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
10689
+ /* @__PURE__ */ jsx63(Bone, { width: "14", height: "4" }),
10690
+ /* @__PURE__ */ jsx63(TextBone, { width: boneWidth(n, 16, 36) })
10527
10691
  ] }, n)),
10528
- s.items.map((item) => /* @__PURE__ */ jsx62(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
10529
- !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx62(Text23, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
10692
+ s.items.map((item) => /* @__PURE__ */ jsx63(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
10693
+ !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx63(Text24, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
10530
10694
  !loading && s.footer
10531
10695
  ] }, s.id)) }),
10532
- /* @__PURE__ */ jsx62(DragOverlay3, { children: active ? /* @__PURE__ */ jsx62(Box16, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
10696
+ /* @__PURE__ */ jsx63(DragOverlay3, { children: active ? /* @__PURE__ */ jsx63(Box17, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
10533
10697
  ]
10534
10698
  }
10535
10699
  );
@@ -10537,10 +10701,10 @@ function SortableSections({
10537
10701
  function Section({ section, dragging, children }) {
10538
10702
  const id = sectionId(section.id);
10539
10703
  const { setNodeRef, isOver } = useDroppable3({ id });
10540
- return /* @__PURE__ */ jsxs48(Box16, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
10541
- /* @__PURE__ */ jsx62(Box16, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
10542
- /* @__PURE__ */ jsx62(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx62(
10543
- Stack16,
10704
+ return /* @__PURE__ */ jsxs49(Box17, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
10705
+ /* @__PURE__ */ jsx63(Box17, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
10706
+ /* @__PURE__ */ jsx63(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx63(
10707
+ Stack17,
10544
10708
  {
10545
10709
  ref: setNodeRef,
10546
10710
  gap: "0",
@@ -10556,8 +10720,8 @@ function Section({ section, dragging, children }) {
10556
10720
  }
10557
10721
  function SortableItem({ id, children }) {
10558
10722
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable3({ id });
10559
- return /* @__PURE__ */ jsx62(
10560
- Box16,
10723
+ return /* @__PURE__ */ jsx63(
10724
+ Box17,
10561
10725
  {
10562
10726
  ref: setNodeRef,
10563
10727
  style: { transform: CSS4.Transform.toString(transform), transition },
@@ -10574,9 +10738,9 @@ function SortableItem({ id, children }) {
10574
10738
 
10575
10739
  // src/components/TimelineChart.tsx
10576
10740
  import { Fragment as Fragment22, useEffect as useEffect20, useLayoutEffect as useLayoutEffect7, useRef as useRef24, useState as useState28 } from "react";
10577
- import { Box as Box17, HStack as HStack16, Popover as Popover4, Portal as Portal19, Stack as Stack17, Text as Text24 } from "@chakra-ui/react";
10741
+ import { Box as Box18, HStack as HStack17, Popover as Popover4, Portal as Portal19, Stack as Stack18, Text as Text25 } from "@chakra-ui/react";
10578
10742
  import { Flag, Trash2 as Trash23 } from "lucide-react";
10579
- import { jsx as jsx63, jsxs as jsxs49 } from "react/jsx-runtime";
10743
+ import { jsx as jsx64, jsxs as jsxs50 } from "react/jsx-runtime";
10580
10744
  var DAY2 = 864e5;
10581
10745
  var toDay = (day) => Math.round(Date.parse(`${day}T00:00:00Z`) / DAY2);
10582
10746
  var fromDay = (n) => new Date(n * DAY2).toISOString().slice(0, 10);
@@ -10845,8 +11009,8 @@ function TimelineChart({
10845
11009
  const bandsTop = tickHeight, markersTop = tickHeight + (shownBands.length ? STRIP : 0);
10846
11010
  const headerHeight = markersTop + (shownMarkers.length ? STRIP : 0);
10847
11011
  const todayAt = today ? toDay(today) - origin : -1;
10848
- return /* @__PURE__ */ jsxs49(
10849
- Box17,
11012
+ return /* @__PURE__ */ jsxs50(
11013
+ Box18,
10850
11014
  {
10851
11015
  ref: root,
10852
11016
  role: "region",
@@ -10863,10 +11027,10 @@ function TimelineChart({
10863
11027
  },
10864
11028
  onKeyDown: zoomKey,
10865
11029
  children: [
10866
- instructions && /* @__PURE__ */ jsx63(Text24, { srOnly: true, children: instructions }),
10867
- /* @__PURE__ */ jsxs49(Box17, { display: "grid", gridTemplateColumns: fill5 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
10868
- /* @__PURE__ */ jsx63(
10869
- Box17,
11030
+ instructions && /* @__PURE__ */ jsx64(Text25, { srOnly: true, children: instructions }),
11031
+ /* @__PURE__ */ jsxs50(Box18, { display: "grid", gridTemplateColumns: fill5 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
11032
+ /* @__PURE__ */ jsx64(
11033
+ Box18,
10870
11034
  {
10871
11035
  position: "sticky",
10872
11036
  top: "0",
@@ -10884,9 +11048,9 @@ function TimelineChart({
10884
11048
  children: corner
10885
11049
  }
10886
11050
  ),
10887
- /* @__PURE__ */ jsxs49(Box17, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
10888
- ticks.map((t, i) => /* @__PURE__ */ jsx63(
10889
- Box17,
11051
+ /* @__PURE__ */ jsxs50(Box18, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
11052
+ ticks.map((t, i) => /* @__PURE__ */ jsx64(
11053
+ Box18,
10890
11054
  {
10891
11055
  position: "absolute",
10892
11056
  insetStart: `${t.day * dayWidth}px`,
@@ -10896,8 +11060,8 @@ function TimelineChart({
10896
11060
  borderInlineStartWidth: "1px",
10897
11061
  borderColor: "border",
10898
11062
  "aria-hidden": true,
10899
- children: /* @__PURE__ */ jsx63(
10900
- Text24,
11063
+ children: /* @__PURE__ */ jsx64(
11064
+ Text25,
10901
11065
  {
10902
11066
  position: "sticky",
10903
11067
  insetStart: `${labelWidth}px`,
@@ -10915,8 +11079,8 @@ function TimelineChart({
10915
11079
  },
10916
11080
  t.day
10917
11081
  )),
10918
- subTicks.map((t) => /* @__PURE__ */ jsx63(
10919
- Text24,
11082
+ subTicks.map((t) => /* @__PURE__ */ jsx64(
11083
+ Text25,
10920
11084
  {
10921
11085
  position: "absolute",
10922
11086
  insetStart: `${t.day * dayWidth}px`,
@@ -10935,8 +11099,8 @@ function TimelineChart({
10935
11099
  },
10936
11100
  t.day
10937
11101
  )),
10938
- offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx63(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx63(
10939
- Box17,
11102
+ offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx64(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx64(
11103
+ Box18,
10940
11104
  {
10941
11105
  position: "absolute",
10942
11106
  insetStart: `${o.a * dayWidth}px`,
@@ -10950,8 +11114,8 @@ function TimelineChart({
10950
11114
  "aria-label": o.label
10951
11115
  }
10952
11116
  ) }, `h${o.a}`)),
10953
- shownBands.map((b) => /* @__PURE__ */ jsx63(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx63(
10954
- Box17,
11117
+ shownBands.map((b) => /* @__PURE__ */ jsx64(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx64(
11118
+ Box18,
10955
11119
  {
10956
11120
  position: "absolute",
10957
11121
  insetStart: `${b.a * dayWidth + 1}px`,
@@ -10967,8 +11131,8 @@ function TimelineChart({
10967
11131
  focusVisibleRing: "inside",
10968
11132
  overflow: "clip",
10969
11133
  "aria-label": b.label,
10970
- children: /* @__PURE__ */ jsx63(
10971
- Text24,
11134
+ children: /* @__PURE__ */ jsx64(
11135
+ Text25,
10972
11136
  {
10973
11137
  position: "sticky",
10974
11138
  insetStart: `${labelWidth}px`,
@@ -10980,13 +11144,13 @@ function TimelineChart({
10980
11144
  color: b.current ? "colorPalette.fg" : "fg.muted",
10981
11145
  fontWeight: b.current ? "medium" : void 0,
10982
11146
  truncate: true,
10983
- children: /* @__PURE__ */ jsx63("bdi", { children: b.label })
11147
+ children: /* @__PURE__ */ jsx64("bdi", { children: b.label })
10984
11148
  }
10985
11149
  )
10986
11150
  }
10987
11151
  ) }, b.id)),
10988
- shownMarkers.map((m4) => /* @__PURE__ */ jsx63(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs49(
10989
- Box17,
11152
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx64(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs50(
11153
+ Box18,
10990
11154
  {
10991
11155
  position: "absolute",
10992
11156
  insetStart: `${m4.at * dayWidth + dayWidth / 2 - 1}px`,
@@ -11010,16 +11174,16 @@ function TimelineChart({
11010
11174
  focusVisibleRing: "outside",
11011
11175
  "aria-label": m4.label,
11012
11176
  children: [
11013
- /* @__PURE__ */ jsx63(Flag, { size: 11, "aria-hidden": true }),
11014
- /* @__PURE__ */ jsx63("bdi", { children: m4.label })
11177
+ /* @__PURE__ */ jsx64(Flag, { size: 11, "aria-hidden": true }),
11178
+ /* @__PURE__ */ jsx64("bdi", { children: m4.label })
11015
11179
  ]
11016
11180
  }
11017
11181
  ) }, m4.id))
11018
11182
  ] }),
11019
- /* @__PURE__ */ jsx63(Box17, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx63(HStack16, { h: `${rowHeight}px`, px: "3", gap: "2", borderBottomWidth: "1px", borderColor: "border.muted", bg: r.heading && !r.lane ? "bg.subtle" : void 0, minW: "0", children: placeholders ? /* @__PURE__ */ jsx63(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
11020
- /* @__PURE__ */ jsxs49(Box17, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
11021
- offRuns.map((o) => /* @__PURE__ */ jsx63(
11022
- Box17,
11183
+ /* @__PURE__ */ jsx64(Box18, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx64(HStack17, { h: `${rowHeight}px`, px: "3", gap: "2", borderBottomWidth: "1px", borderColor: "border.muted", bg: r.heading && !r.lane ? "bg.subtle" : void 0, minW: "0", children: placeholders ? /* @__PURE__ */ jsx64(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
11184
+ /* @__PURE__ */ jsxs50(Box18, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
11185
+ offRuns.map((o) => /* @__PURE__ */ jsx64(
11186
+ Box18,
11023
11187
  {
11024
11188
  position: "absolute",
11025
11189
  insetStart: `${o.a * dayWidth}px`,
@@ -11033,9 +11197,9 @@ function TimelineChart({
11033
11197
  },
11034
11198
  `o${o.a}`
11035
11199
  )),
11036
- ticks.map((t) => /* @__PURE__ */ jsx63(Box17, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
11037
- shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx63(
11038
- Box17,
11200
+ ticks.map((t) => /* @__PURE__ */ jsx64(Box18, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
11201
+ shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx64(
11202
+ Box18,
11039
11203
  {
11040
11204
  position: "absolute",
11041
11205
  insetStart: `${b.a * dayWidth}px`,
@@ -11049,8 +11213,8 @@ function TimelineChart({
11049
11213
  },
11050
11214
  b.id
11051
11215
  )),
11052
- shownMarkers.map((m4) => /* @__PURE__ */ jsx63(
11053
- Box17,
11216
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx64(
11217
+ Box18,
11054
11218
  {
11055
11219
  position: "absolute",
11056
11220
  insetStart: `${m4.at * dayWidth + dayWidth / 2 - 1}px`,
@@ -11066,8 +11230,8 @@ function TimelineChart({
11066
11230
  },
11067
11231
  m4.id
11068
11232
  )),
11069
- todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx63(
11070
- Box17,
11233
+ todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx64(
11234
+ Box18,
11071
11235
  {
11072
11236
  position: "absolute",
11073
11237
  insetStart: `${todayAt * dayWidth + dayWidth / 2}px`,
@@ -11079,8 +11243,8 @@ function TimelineChart({
11079
11243
  "aria-hidden": true
11080
11244
  }
11081
11245
  ),
11082
- shown.map((r, i) => /* @__PURE__ */ jsx63(
11083
- Box17,
11246
+ shown.map((r, i) => /* @__PURE__ */ jsx64(
11247
+ Box18,
11084
11248
  {
11085
11249
  position: "absolute",
11086
11250
  insetStart: "0",
@@ -11094,7 +11258,7 @@ function TimelineChart({
11094
11258
  },
11095
11259
  r.id
11096
11260
  )),
11097
- placeholders && shown.map((r, i) => /* @__PURE__ */ jsx63(
11261
+ placeholders && shown.map((r, i) => /* @__PURE__ */ jsx64(
11098
11262
  Bone,
11099
11263
  {
11100
11264
  position: "absolute",
@@ -11111,8 +11275,8 @@ function TimelineChart({
11111
11275
  if (!bl || !bl.start && !bl.end) return null;
11112
11276
  const a = Math.max(toDay(bl.start ?? bl.end) - origin, 0), z = Math.min(toDay(bl.end ?? bl.start) - origin, days - 1);
11113
11277
  if (z < a) return null;
11114
- return /* @__PURE__ */ jsx63(
11115
- Box17,
11278
+ return /* @__PURE__ */ jsx64(
11279
+ Box18,
11116
11280
  {
11117
11281
  position: "absolute",
11118
11282
  insetStart: `${a * dayWidth}px`,
@@ -11133,8 +11297,8 @@ function TimelineChart({
11133
11297
  if (z < a) return null;
11134
11298
  const w = (z - a + 1) * dayWidth - 2;
11135
11299
  const palette3 = c2.tone === "over" ? "danger" : c2.tone === "full" ? "warning" : "accent";
11136
- return /* @__PURE__ */ jsx63(
11137
- Box17,
11300
+ return /* @__PURE__ */ jsx64(
11301
+ Box18,
11138
11302
  {
11139
11303
  position: "absolute",
11140
11304
  insetStart: `${a * dayWidth + 1}px`,
@@ -11174,9 +11338,9 @@ function TimelineChart({
11174
11338
  const thin = tone === "rollup" && !single;
11175
11339
  const diamond = single ? { w: `${DIAMOND}px`, h: `${DIAMOND}px`, top: `${i * rowHeight + rowHeight / 2 - DIAMOND / 2}px`, transform: "rotate(45deg)", rounded: "l1" } : null;
11176
11340
  const canLink = !!onLink && item.linkable !== false && !drag;
11177
- return /* @__PURE__ */ jsxs49(Fragment22, { children: [
11178
- /* @__PURE__ */ jsxs49(
11179
- Box17,
11341
+ return /* @__PURE__ */ jsxs50(Fragment22, { children: [
11342
+ /* @__PURE__ */ jsxs50(
11343
+ Box18,
11180
11344
  {
11181
11345
  role: "button",
11182
11346
  tabIndex: 0,
@@ -11231,8 +11395,8 @@ function TimelineChart({
11231
11395
  "data-bar": item.id,
11232
11396
  children: [
11233
11397
  !single && !thin && renderBar?.(item),
11234
- item.progress != null && !single && /* @__PURE__ */ jsx63(
11235
- Box17,
11398
+ item.progress != null && !single && /* @__PURE__ */ jsx64(
11399
+ Box18,
11236
11400
  {
11237
11401
  position: "absolute",
11238
11402
  insetStart: "0",
@@ -11247,8 +11411,8 @@ function TimelineChart({
11247
11411
  ),
11248
11412
  item.movable !== false && !single && // The edge sits inside the bar: its moves and release stop here, or the bar would handle them too and the
11249
11413
  // change would be saved twice (the second refused as a conflict).
11250
- /* @__PURE__ */ jsx63(
11251
- Box17,
11414
+ /* @__PURE__ */ jsx64(
11415
+ Box18,
11252
11416
  {
11253
11417
  position: "absolute",
11254
11418
  insetEnd: "0",
@@ -11271,8 +11435,8 @@ function TimelineChart({
11271
11435
  ]
11272
11436
  }
11273
11437
  ),
11274
- canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx63(
11275
- Box17,
11438
+ canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx64(
11439
+ Box18,
11276
11440
  {
11277
11441
  position: "absolute",
11278
11442
  insetStart: `${single ? right + 3 : Math.max(right, left + 6)}px`,
@@ -11293,13 +11457,13 @@ function TimelineChart({
11293
11457
  onPointerUp: linkUp,
11294
11458
  onPointerCancel: () => setLinking(null),
11295
11459
  "aria-hidden": true,
11296
- children: /* @__PURE__ */ jsx63(Box17, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
11460
+ children: /* @__PURE__ */ jsx64(Box18, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
11297
11461
  }
11298
11462
  )
11299
11463
  ] }, item.id);
11300
11464
  }),
11301
- /* @__PURE__ */ jsx63(
11302
- Box17,
11465
+ /* @__PURE__ */ jsx64(
11466
+ Box18,
11303
11467
  {
11304
11468
  position: "absolute",
11305
11469
  insetInlineStart: "0",
@@ -11310,8 +11474,8 @@ function TimelineChart({
11310
11474
  zIndex: "1",
11311
11475
  _rtl: { transform: "scaleX(-1)" },
11312
11476
  "aria-hidden": !onUnlink,
11313
- children: /* @__PURE__ */ jsxs49("svg", { width, height: rows2.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
11314
- /* @__PURE__ */ jsx63("defs", { children: /* @__PURE__ */ jsx63("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx63("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
11477
+ children: /* @__PURE__ */ jsxs50("svg", { width, height: rows2.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
11478
+ /* @__PURE__ */ jsx64("defs", { children: /* @__PURE__ */ jsx64("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx64("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
11315
11479
  links.map((l) => {
11316
11480
  const f = ys.get(l.from), t = ys.get(l.to);
11317
11481
  if (!f || !t) return null;
@@ -11322,8 +11486,8 @@ function TimelineChart({
11322
11486
  const picked = menu?.from === l.from && menu.to === l.to;
11323
11487
  const faint = !l.strong && links.some((x) => x.strong);
11324
11488
  const open = (x, y) => setMenu({ from: l.from, to: l.to, x, y });
11325
- return /* @__PURE__ */ jsxs49("g", { children: [
11326
- /* @__PURE__ */ jsx63(
11489
+ return /* @__PURE__ */ jsxs50("g", { children: [
11490
+ /* @__PURE__ */ jsx64(
11327
11491
  "path",
11328
11492
  {
11329
11493
  d,
@@ -11335,7 +11499,7 @@ function TimelineChart({
11335
11499
  markerEnd: "url(#abp-arrow)"
11336
11500
  }
11337
11501
  ),
11338
- onUnlink && /* @__PURE__ */ jsx63(
11502
+ onUnlink && /* @__PURE__ */ jsx64(
11339
11503
  "path",
11340
11504
  {
11341
11505
  d,
@@ -11360,14 +11524,14 @@ function TimelineChart({
11360
11524
  ] })
11361
11525
  }
11362
11526
  ),
11363
- linking && /* @__PURE__ */ jsxs49("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
11364
- /* @__PURE__ */ jsx63("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
11365
- /* @__PURE__ */ jsx63("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
11527
+ linking && /* @__PURE__ */ jsxs50("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
11528
+ /* @__PURE__ */ jsx64("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
11529
+ /* @__PURE__ */ jsx64("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
11366
11530
  ] })
11367
11531
  ] })
11368
11532
  ] }),
11369
- card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx63(Portal19, { children: /* @__PURE__ */ jsx63(
11370
- Box17,
11533
+ card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx64(Portal19, { children: /* @__PURE__ */ jsx64(
11534
+ Box18,
11371
11535
  {
11372
11536
  id: "abp-timeline-card",
11373
11537
  role: "tooltip",
@@ -11390,7 +11554,7 @@ function TimelineChart({
11390
11554
  children: renderCard(items.get(card.id))
11391
11555
  }
11392
11556
  ) }),
11393
- onUnlink && /* @__PURE__ */ jsx63(
11557
+ onUnlink && /* @__PURE__ */ jsx64(
11394
11558
  Popover4.Root,
11395
11559
  {
11396
11560
  open: !!menu,
@@ -11399,13 +11563,13 @@ function TimelineChart({
11399
11563
  unmountOnExit: true,
11400
11564
  autoFocus: true,
11401
11565
  positioning: { placement: "bottom", getAnchorRect: () => menu ? { x: menu.x, y: menu.y, width: 1, height: 1 } : null },
11402
- children: /* @__PURE__ */ jsx63(Portal19, { children: /* @__PURE__ */ jsx63(Popover4.Positioner, { children: /* @__PURE__ */ jsx63(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx63(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs49(Stack17, { gap: "2", children: [
11403
- /* @__PURE__ */ jsx63(Text24, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
11404
- /* @__PURE__ */ jsxs49(Button, { size: "sm", variant: "secondary", onClick: () => {
11566
+ children: /* @__PURE__ */ jsx64(Portal19, { children: /* @__PURE__ */ jsx64(Popover4.Positioner, { children: /* @__PURE__ */ jsx64(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx64(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs50(Stack18, { gap: "2", children: [
11567
+ /* @__PURE__ */ jsx64(Text25, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
11568
+ /* @__PURE__ */ jsxs50(Button, { size: "sm", variant: "secondary", onClick: () => {
11405
11569
  onUnlink(menu);
11406
11570
  setMenu(null);
11407
11571
  }, children: [
11408
- /* @__PURE__ */ jsx63(Trash23, {}),
11572
+ /* @__PURE__ */ jsx64(Trash23, {}),
11409
11573
  linkTexts?.remove
11410
11574
  ] })
11411
11575
  ] }) }) }) }) })
@@ -11418,7 +11582,7 @@ function TimelineChart({
11418
11582
 
11419
11583
  // src/components/TimelineCards.tsx
11420
11584
  import { useEffect as useEffect21, useMemo as useMemo16, useRef as useRef25, useState as useState29 } from "react";
11421
- import { Box as Box18, chakra as chakra38, Grid as Grid4, Stack as Stack18, Text as Text25 } from "@chakra-ui/react";
11585
+ import { Box as Box19, chakra as chakra39, Grid as Grid4, Stack as Stack19, Text as Text26 } from "@chakra-ui/react";
11422
11586
 
11423
11587
  // src/components/timeline-cards-math.ts
11424
11588
  var DAY3 = 864e5;
@@ -11470,7 +11634,7 @@ function placeCards(items, first, days, scale, colW = columnWidth(scale)) {
11470
11634
  }
11471
11635
 
11472
11636
  // src/components/TimelineCards.tsx
11473
- import { jsx as jsx64, jsxs as jsxs50 } from "react/jsx-runtime";
11637
+ import { jsx as jsx65, jsxs as jsxs51 } from "react/jsx-runtime";
11474
11638
  var LANE = 60;
11475
11639
  var KEYS = { d: "day", w: "week", m: "month" };
11476
11640
  function TimelineCards(props) {
@@ -11484,8 +11648,8 @@ function TimelineCards(props) {
11484
11648
  onScale(next);
11485
11649
  }
11486
11650
  };
11487
- return /* @__PURE__ */ jsxs50(
11488
- chakra38.div,
11651
+ return /* @__PURE__ */ jsxs51(
11652
+ chakra39.div,
11489
11653
  {
11490
11654
  role: "region",
11491
11655
  "aria-label": props["aria-label"],
@@ -11495,15 +11659,15 @@ function TimelineCards(props) {
11495
11659
  overflow: "hidden",
11496
11660
  "data-timeline-cards": scale,
11497
11661
  children: [
11498
- scale === "day" ? /* @__PURE__ */ jsx64(DayGrid, { ...props }) : /* @__PURE__ */ jsx64(Lanes, { ...props, scale }),
11662
+ scale === "day" ? /* @__PURE__ */ jsx65(DayGrid, { ...props }) : /* @__PURE__ */ jsx65(Lanes, { ...props, scale }),
11499
11663
  props.footer
11500
11664
  ]
11501
11665
  }
11502
11666
  );
11503
11667
  }
11504
11668
  function Card2({ item, p, range, cutStart, cutEnd, style }) {
11505
- const card = /* @__PURE__ */ jsxs50(
11506
- chakra38.button,
11669
+ const card = /* @__PURE__ */ jsxs51(
11670
+ chakra39.button,
11507
11671
  {
11508
11672
  type: "button",
11509
11673
  "data-timeline-card": item.id,
@@ -11527,12 +11691,12 @@ function Card2({ item, p, range, cutStart, cutEnd, style }) {
11527
11691
  transition: "background 120ms, border-color 120ms",
11528
11692
  ...style,
11529
11693
  children: [
11530
- /* @__PURE__ */ jsx64(Box18, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
11531
- /* @__PURE__ */ jsx64(Stack18, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
11694
+ /* @__PURE__ */ jsx65(Box19, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
11695
+ /* @__PURE__ */ jsx65(Stack19, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
11532
11696
  ]
11533
11697
  }
11534
11698
  );
11535
- return p.details ? /* @__PURE__ */ jsx64(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
11699
+ return p.details ? /* @__PURE__ */ jsx65(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
11536
11700
  }
11537
11701
  function Lanes(p) {
11538
11702
  const { days, today, items, scale } = p;
@@ -11554,12 +11718,12 @@ function Lanes(p) {
11554
11718
  const gridW = days.length * colW;
11555
11719
  const placeholders = useLoading(p.loading) && items.length === 0;
11556
11720
  const height = (placeholders ? 4 : Math.max(lanes, 1)) * LANE + 16;
11557
- return /* @__PURE__ */ jsx64(chakra38.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs50(chakra38.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
11558
- /* @__PURE__ */ jsx64(chakra38.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
11721
+ return /* @__PURE__ */ jsx65(chakra39.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs51(chakra39.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
11722
+ /* @__PURE__ */ jsx65(chakra39.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
11559
11723
  const isToday = d === today;
11560
11724
  const weekStart = new Date(dayNumber(d) * 864e5).getUTCDay() === 0;
11561
- return /* @__PURE__ */ jsxs50(
11562
- chakra38.div,
11725
+ return /* @__PURE__ */ jsxs51(
11726
+ chakra39.div,
11563
11727
  {
11564
11728
  w: `${colW}px`,
11565
11729
  flexShrink: 0,
@@ -11575,9 +11739,9 @@ function Lanes(p) {
11575
11739
  borderInlineStartWidth: weekStart && scale === "month" ? "1px" : "0",
11576
11740
  borderColor: "border",
11577
11741
  children: [
11578
- /* @__PURE__ */ jsx64(Text25, { as: "span", children: p.weekday(d) }),
11579
- /* @__PURE__ */ jsx64(
11580
- Text25,
11742
+ /* @__PURE__ */ jsx65(Text26, { as: "span", children: p.weekday(d) }),
11743
+ /* @__PURE__ */ jsx65(
11744
+ Text26,
11581
11745
  {
11582
11746
  as: "span",
11583
11747
  fontVariantNumeric: "tabular-nums",
@@ -11595,9 +11759,9 @@ function Lanes(p) {
11595
11759
  d
11596
11760
  );
11597
11761
  }) }),
11598
- /* @__PURE__ */ jsx64(chakra38.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx64(chakra38.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
11599
- todayIdx >= 0 && /* @__PURE__ */ jsx64(
11600
- chakra38.div,
11762
+ /* @__PURE__ */ jsx65(chakra39.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx65(chakra39.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
11763
+ todayIdx >= 0 && /* @__PURE__ */ jsx65(
11764
+ chakra39.div,
11601
11765
  {
11602
11766
  position: "absolute",
11603
11767
  top: "0",
@@ -11611,7 +11775,7 @@ function Lanes(p) {
11611
11775
  zIndex: "1"
11612
11776
  }
11613
11777
  ),
11614
- placeholders ? /* @__PURE__ */ jsx64(chakra38.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx64(
11778
+ placeholders ? /* @__PURE__ */ jsx65(chakra39.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx65(
11615
11779
  Bone,
11616
11780
  {
11617
11781
  position: "absolute",
@@ -11622,10 +11786,10 @@ function Lanes(p) {
11622
11786
  borderRadius: "l2"
11623
11787
  },
11624
11788
  i
11625
- )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx64(chakra38.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx64(chakra38.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
11789
+ )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx65(chakra39.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx65(chakra39.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
11626
11790
  const item = byId.get(c2.id);
11627
- return /* @__PURE__ */ jsx64(
11628
- chakra38.div,
11791
+ return /* @__PURE__ */ jsx65(
11792
+ chakra39.div,
11629
11793
  {
11630
11794
  role: "listitem",
11631
11795
  position: "absolute",
@@ -11634,7 +11798,7 @@ function Lanes(p) {
11634
11798
  w: `${c2.width}px`,
11635
11799
  display: "flex",
11636
11800
  zIndex: "2",
11637
- children: /* @__PURE__ */ jsx64(Card2, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
11801
+ children: /* @__PURE__ */ jsx65(Card2, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
11638
11802
  },
11639
11803
  c2.id
11640
11804
  );
@@ -11649,8 +11813,8 @@ function DayGrid(p) {
11649
11813
  const x = dayNumber(day);
11650
11814
  return s <= x && x <= d;
11651
11815
  });
11652
- if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx64(chakra38.div, { py: "6", children: p.empty });
11653
- return /* @__PURE__ */ jsx64(Grid4, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx64(chakra38.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx64(Card2, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
11816
+ if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx65(chakra39.div, { py: "6", children: p.empty });
11817
+ return /* @__PURE__ */ jsx65(Grid4, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx65(chakra39.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx65(Card2, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
11654
11818
  }
11655
11819
  export {
11656
11820
  ABP_UI_VERSION,
@@ -11672,6 +11836,7 @@ export {
11672
11836
  Collapse,
11673
11837
  ColorModeProvider,
11674
11838
  ColorModeToggle,
11839
+ ColumnMatcher,
11675
11840
  CommandPalette,
11676
11841
  ConfirmDialog,
11677
11842
  ConfirmProvider,
@@ -11769,6 +11934,8 @@ export {
11769
11934
  basicConditions,
11770
11935
  boneWidth,
11771
11936
  burst,
11937
+ columnCounts,
11938
+ columnProblems,
11772
11939
  compactLayout,
11773
11940
  compareOrdinal,
11774
11941
  composeTitle,
@@ -11800,6 +11967,9 @@ export {
11800
11967
  ghostCss,
11801
11968
  groupKey,
11802
11969
  guessSeparator,
11970
+ guessTargets,
11971
+ guessType,
11972
+ headerKey,
11803
11973
  heavierFirst,
11804
11974
  hiddenPose,
11805
11975
  inSections,