@abpjs/ui 0.2.0-next.25 → 0.2.0-next.27

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
@@ -1560,7 +1560,7 @@ function useTokenVar() {
1560
1560
  }
1561
1561
 
1562
1562
  // src/version.ts
1563
- var ABP_UI_VERSION = true ? "0.2.0-next.25" : "0.0.0-dev";
1563
+ var ABP_UI_VERSION = true ? "0.2.0-next.27" : "0.0.0-dev";
1564
1564
 
1565
1565
  // src/provider/time-zone.tsx
1566
1566
  import { createContext, useContext } from "react";
@@ -4919,22 +4919,214 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4919
4919
 
4920
4920
  // src/components/DataTable.tsx
4921
4921
  import { Fragment as Fragment12, useMemo as useMemo7, useRef as useRef11, useState as useState14 } from "react";
4922
- import { chakra as chakra16, Menu, Portal as Portal10, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4922
+ import { chakra as chakra17, Menu, Portal as Portal10, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4923
4923
  import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2, ChevronRight as ChevronRight2, ChevronsUpDown, GripVertical } from "lucide-react";
4924
4924
 
4925
4925
  // src/components/EmptyState.tsx
4926
- import { chakra as chakra13, EmptyState as ChakraEmptyState, HStack as HStack6, Text as Text8, VStack } from "@chakra-ui/react";
4926
+ import { chakra as chakra14, EmptyState as ChakraEmptyState, HStack as HStack6, Text as Text8, VStack } from "@chakra-ui/react";
4927
4927
  import { Inbox } from "lucide-react";
4928
4928
  import { m as m3 } from "motion/react";
4929
+
4930
+ // src/components/empty-art.tsx
4931
+ import { Box as Box4, chakra as chakra13, Flex as Flex2 } from "@chakra-ui/react";
4932
+ import { Search as Search2 } from "lucide-react";
4929
4933
  import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
4934
+ var R = (items, o = {}) => ({ items, ...o });
4935
+ var rows = (n, f) => Array.from({ length: n }, (_, i) => f(i));
4936
+ var CARDS = {
4937
+ rec: [R([["dot", 18, 18], ["strong", 84, 7], ["sp"], ["soft", 26, 7]]), R([["", 140, 6]]), R([["soft", 96, 6]]), R([["soft", 40, 14], ["soft", 40, 14]], { mt: 4 })],
4938
+ list: [R([["strong", 64, 7], ["sp"], ["soft", 22, 7]], { sep: true }), ...rows(4, (i) => R([["dot", 10, 10], ["", [90, 70, 96, 60][i], 6], ["sp"], ["soft", 18, 6]]))],
4939
+ cal: [R([["strong", 52, 7], ["sp"], ["soft", 20, 7]]), ...rows(3, (r) => R(Array.from({ length: 6 }, (_, c2) => [r === 1 && c2 === 2 ? "cellacc" : "cell", 18, 14]), { gap: 4 }))],
4940
+ num: [R([["soft", 48, 6]]), R([["strong", 76, 22]]), R([["", 58, 6]])],
4941
+ bars: [R([["strong", 60, 7], ["sp"], ["soft", 22, 7]]), R([["", 14, 26], ["", 14, 42], ["", 14, 34], ["acc", 14, 56], ["", 14, 38], ["", 14, 48], ["", 14, 30]], { end: true, height: 60, gap: 9 }), R([["soft", 160, 2]])],
4942
+ board: [R([["strong", 64, 7], ["sp"], ["soft", 22, 7]]), R([["soft", 56, 74], ["soft", 56, 74], ["soft", 56, 74]], { gap: 8 })],
4943
+ boardcard: [R([["acc", 34, 8]]), R([["strong", 120, 7]]), R([["", 80, 6]]), R([["dot", 12, 12], ["sp"], ["soft", 26, 6]])],
4944
+ tl: [R([["strong", 60, 7], ["sp"], ["soft", 22, 7]], { sep: true }), ...[[0, 92], [30, 110], [64, 70], [16, 128]].map(([g, w], i) => R([["gap", g, 8], [i === 1 ? "acc" : "", w, 10]]))],
4945
+ rows: rows(3, (i) => R([["box", 12, 12], ["strong", [96, 80, 108][i], 7], ["sp"], ["dot", 14, 14]], { sep: i < 2 })),
4946
+ report: [R([["strong", 80, 8]]), R([["soft", 150, 5]]), ...[90, 130, 60, 110].map((w) => R([["soft", 30, 6], ["", w, 8]]))],
4947
+ table: rows(4, () => R([["cell", 36, 12], ["cell", 48, 12], ["cell", 36, 12]], { gap: 4 })),
4948
+ chat: [R([["dot", 18, 18], ["soft", 120, 22]], { gap: 8 }), R([["sp"], ["acc", 96, 18]]), R([["dot", 18, 18], ["soft", 80, 18]], { gap: 8 })],
4949
+ file: [R([["strong", 24, 30], ["strong", 100, 7]], { gap: 10 }), R([["", 150, 6]]), R([["soft", 104, 6]])],
4950
+ // A miniature dashboard: a title bar, three number tiles (one in the accent), a small bar chart beside a table block.
4951
+ minidash: [
4952
+ R([["strong", 64, 7], ["sp"], ["acc", 34, 10]], { sep: true }),
4953
+ R([["cell", 60, 30], ["cellacc", 60, 30], ["cell", 60, 30]], { gap: 6 }),
4954
+ R([["", 8, 16], ["", 8, 26], ["acc", 8, 36], ["", 8, 22], ["", 8, 30], ["gap", 10, 1], ["cell", 90, 36]], { end: true, gap: 6 })
4955
+ ]
4956
+ };
4957
+ var TRIOS = {
4958
+ dashboards: ["num", "minidash", "bars"],
4959
+ records: ["rec", "list", "rec"],
4960
+ board: ["boardcard", "boardcard", "boardcard"],
4961
+ views: ["list", "board", "cal"],
4962
+ dashboard: ["num", "bars", "list"],
4963
+ reports: ["table", "report", "num"],
4964
+ calendar: ["list", "cal", "list"],
4965
+ timeline: ["rows", "tl", "rows"],
4966
+ gantt: ["rows", "tl", "rows"],
4967
+ backlog: ["rec", "rows", "rec"],
4968
+ queue: ["rec", "rows", "rec"],
4969
+ comments: ["chat", "chat", "chat"],
4970
+ files: ["file", "file", "file"]
4971
+ };
4972
+ var EDGE = { base: "neutral.100", _dark: "neutral.800" };
4973
+ var LINE = { base: "neutral.100", _dark: "neutral.800" };
4974
+ function Shape({ item }) {
4975
+ const [k, w, h] = item;
4976
+ const size = { w: w != null ? `${w}px` : void 0, h: h != null ? `${h}px` : void 0 };
4977
+ if (k === "sp") return /* @__PURE__ */ jsx29(Box4, { flex: "1 1 auto" });
4978
+ if (k === "gap") return /* @__PURE__ */ jsx29(Box4, { flexShrink: 0, ...size });
4979
+ const bg = k === "soft" ? { base: "neutral.50", _dark: "neutral.850" } : k === "strong" ? { base: "neutral.200", _dark: "neutral.700" } : k === "acc" ? { base: "accent.200", _dark: "accent.800" } : k === "cellacc" ? { base: "accent.100", _dark: "accent.900" } : k === "cell" || k === "box" ? "transparent" : { base: "neutral.100", _dark: "neutral.800" };
4980
+ const border = k === "cell" ? LINE : k === "cellacc" ? { base: "accent.200", _dark: "accent.800" } : k === "box" ? { base: "neutral.300", _dark: "neutral.600" } : void 0;
4981
+ return /* @__PURE__ */ jsx29(
4982
+ Box4,
4983
+ {
4984
+ flexShrink: 0,
4985
+ display: "block",
4986
+ rounded: k === "dot" ? "full" : "3px",
4987
+ bg,
4988
+ borderWidth: border ? "1px" : void 0,
4989
+ borderColor: border,
4990
+ ...size
4991
+ }
4992
+ );
4993
+ }
4994
+ function Card({ id, pos }) {
4995
+ const main = pos === "main";
4996
+ const fade = pos === "start" ? "to left" : "to right";
4997
+ return /* @__PURE__ */ jsx29(
4998
+ Flex2,
4999
+ {
5000
+ direction: "column",
5001
+ justify: "center",
5002
+ gap: "8px",
5003
+ p: "12px",
5004
+ flexShrink: 0,
5005
+ position: "relative",
5006
+ overflow: "hidden",
5007
+ rounded: "lg",
5008
+ bg: "bg.panel",
5009
+ borderWidth: "1px",
5010
+ borderColor: EDGE,
5011
+ w: main ? "220px" : "168px",
5012
+ minH: main ? "132px" : "104px",
5013
+ opacity: main ? 1 : 0.85,
5014
+ boxShadow: main ? { base: "0 2px 8px rgba(0,0,0,.025)", _dark: "0 8px 20px -10px rgba(0,0,0,.6)" } : void 0,
5015
+ css: main ? void 0 : { maskImage: `linear-gradient(${fade}, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%)` },
5016
+ "data-pos": pos,
5017
+ children: (CARDS[id] ?? CARDS.list).map((r, i) => /* @__PURE__ */ jsx29(
5018
+ Flex2,
5019
+ {
5020
+ align: r.end ? "flex-end" : "center",
5021
+ gap: `${r.gap ?? 6}px`,
5022
+ minW: "0",
5023
+ h: r.height != null ? `${r.height}px` : void 0,
5024
+ mt: r.mt != null ? `${r.mt}px` : void 0,
5025
+ pb: r.sep ? "8px" : void 0,
5026
+ boxShadow: r.sep ? { base: "inset 0 -1px 0 {colors.neutral.100}", _dark: "inset 0 -1px 0 {colors.neutral.800}" } : void 0,
5027
+ children: r.items.map((it, j) => /* @__PURE__ */ jsx29(Shape, { item: it }, j))
5028
+ },
5029
+ i
5030
+ ))
5031
+ }
5032
+ );
5033
+ }
5034
+ function PageIllustration({ of, searching, scale = 1 }) {
5035
+ const [start, main, end] = TRIOS[of] ?? TRIOS.records;
5036
+ return /* @__PURE__ */ jsxs21(
5037
+ Flex2,
5038
+ {
5039
+ "aria-hidden": true,
5040
+ dir: "ltr",
5041
+ position: "relative",
5042
+ flexShrink: 0,
5043
+ align: "center",
5044
+ justify: "center",
5045
+ gap: "14px",
5046
+ maxW: "full",
5047
+ overflow: "hidden",
5048
+ pt: "10px",
5049
+ pb: "14px",
5050
+ css: scale !== 1 ? { zoom: scale } : void 0,
5051
+ "data-illustration": of,
5052
+ children: [
5053
+ /* @__PURE__ */ jsx29(Card, { id: start, pos: "start" }),
5054
+ /* @__PURE__ */ jsx29(Card, { id: main, pos: "main" }),
5055
+ /* @__PURE__ */ jsx29(Card, { id: end, pos: "end" }),
5056
+ searching && /* @__PURE__ */ jsx29(
5057
+ Flex2,
5058
+ {
5059
+ position: "absolute",
5060
+ right: "calc(50% - 128px)",
5061
+ bottom: "4px",
5062
+ zIndex: 2,
5063
+ align: "center",
5064
+ justify: "center",
5065
+ boxSize: "34px",
5066
+ rounded: "full",
5067
+ bg: "bg.panel",
5068
+ borderWidth: "1px",
5069
+ borderColor: LINE,
5070
+ boxShadow: "0 4px 10px -4px rgba(26,29,35,.18)",
5071
+ color: "fg.muted",
5072
+ _icon: { boxSize: "4" },
5073
+ children: /* @__PURE__ */ jsx29(Search2, {})
5074
+ }
5075
+ )
5076
+ ]
5077
+ }
5078
+ );
5079
+ }
5080
+ var C = {
5081
+ acc1: { base: "accent.100", _dark: "accent.950" },
5082
+ acc2: { base: "accent.200", _dark: "accent.800" },
5083
+ acc3: { base: "accent.300", _dark: "accent.600" },
5084
+ acc6: { base: "accent.600", _dark: "accent.400" },
5085
+ acc7: { base: "accent.700", _dark: "accent.300" },
5086
+ warm2: { base: "amber.200", _dark: "amber.800" },
5087
+ warm4: { base: "amber.400", _dark: "amber.400" },
5088
+ warm7: { base: "amber.700", _dark: "amber.200" },
5089
+ surface: "bg.panel",
5090
+ gray: { base: "neutral.100", _dark: "neutral.800" },
5091
+ gray3: { base: "neutral.300", _dark: "neutral.600" },
5092
+ green1: { base: "green.100", _dark: "green.950" },
5093
+ green6: { base: "green.600", _dark: "green.400" }
5094
+ };
5095
+ var rr = (x, y, w, h, r) => `M${x + r} ${y}h${w - 2 * r}a${r} ${r} 0 0 1 ${r} ${r}v${h - 2 * r}a${r} ${r} 0 0 1 -${r} ${r}h-${w - 2 * r}a${r} ${r} 0 0 1 -${r} -${r}v-${h - 2 * r}a${r} ${r} 0 0 1 ${r} -${r}z`;
5096
+ var ci = (cx, cy, r) => `M${cx - r} ${cy}a${r} ${r} 0 1 0 ${2 * r} 0a${r} ${r} 0 1 0 -${2 * r} 0z`;
5097
+ var ART = {
5098
+ // Away or handing over: a calendar with a warm "away" day and a stand-in person.
5099
+ handover: [[ci(60, 50, 42), "acc1"], [rr(28, 24, 52, 48, 8), "surface"], [rr(28, 24, 52, 14, 7), "acc6"], [rr(28, 32, 52, 6, 0), "acc6"], [rr(36, 46, 8, 8, 2), "acc2"], [rr(50, 46, 8, 8, 2), "warm4"], [rr(64, 46, 8, 8, 2), "acc2"], [rr(36, 58, 8, 8, 2), "acc2"], [ci(86, 66, 16), "warm2"], [ci(86, 61, 5), "warm7"], [rr(78, 68, 16, 8, 4), "warm7"], [ci(40, 20, 3), "warm4"]],
5100
+ // Agents: a friendly assistant tile with a key it is trusted with.
5101
+ agent: [[ci(60, 50, 42), "acc1"], [rr(36, 30, 48, 40, 12), "acc6"], [ci(50, 48, 5), "surface"], [ci(70, 48, 5), "surface"], [rr(52, 58, 16, 4, 2), "acc3"], [rr(58, 20, 4, 10, 2), "acc7"], [ci(60, 18, 5), "warm4"], [ci(90, 70, 12), "warm2"], [ci(87, 70, 4), "warm7"], [rr(90, 68, 12, 4, 2), "warm7"], [ci(26, 34, 3), "warm4"], [ci(96, 30, 2), "acc3"]],
5102
+ // Nothing new: a warm bell resting, with soft dots.
5103
+ bell: [[ci(60, 50, 42), "acc1"], [rr(42, 30, 36, 38, 18), "warm4"], [rr(38, 60, 44, 8, 4), "warm4"], [ci(60, 72, 6), "warm7"], [ci(60, 26, 4), "warm7"], [rr(84, 26, 10, 3, 1.5), "acc3"], [rr(88, 34, 8, 3, 1.5), "acc2"], [ci(28, 40, 3), "acc3"], [ci(32, 70, 2), "warm4"]],
5104
+ // No results: a magnifier over a stack of records.
5105
+ search: [[ci(60, 50, 42), "acc1"], [rr(26, 26, 52, 12, 4), "surface"], [rr(26, 42, 52, 12, 4), "surface"], [rr(26, 58, 40, 12, 4), "surface"], [rr(32, 30, 20, 4, 2), "acc2"], [rr(32, 46, 28, 4, 2), "acc2"], [ci(80, 58, 16), "acc6"], [ci(80, 58, 10), "acc1"], [rr(90, 70, 16, 8, 4), "acc7"], [ci(98, 28, 3), "warm4"]],
5106
+ // All done: a big check with warm sparkles.
5107
+ done: [[ci(60, 50, 42), "green1"], [ci(60, 50, 24), "green6"], ["M50 50l7 7l14 -14", "check"], [ci(28, 28, 4), "warm4"], [ci(94, 34, 3), "warm4"], [ci(92, 74, 5), "warm2"], [ci(26, 70, 2), "warm4"]],
5108
+ // First use: stacked cards and a plus tile.
5109
+ records: [[ci(60, 50, 42), "acc1"], [rr(30, 22, 48, 56, 8), "acc2"], [rr(36, 28, 48, 56, 8), "surface"], [rr(44, 38, 28, 5, 2.5), "acc3"], [rr(44, 48, 20, 5, 2.5), "gray3"], [rr(44, 58, 24, 5, 2.5), "gray3"], [rr(76, 62, 24, 24, 8), "warm4"], [rr(86, 67, 4, 14, 2), "surface"], [rr(81, 72, 14, 4, 2), "surface"], [ci(98, 24, 3), "acc3"]],
5110
+ // Couldn't load: a cable unplugged.
5111
+ error: [[ci(60, 50, 42), "gray"], [rr(22, 44, 30, 12, 6), "acc6"], [rr(50, 46, 8, 3, 1.5), "acc7"], [rr(50, 51, 8, 3, 1.5), "acc7"], [rr(66, 42, 32, 16, 8), "warm4"], [rr(62, 46, 6, 8, 2), "warm7"], [ci(60, 30, 3), "acc3"], [ci(64, 70, 3), "acc3"]]
5112
+ };
5113
+ var Path = chakra13("path");
5114
+ function EmptyArtDrawing({ art, width, height }) {
5115
+ return /* @__PURE__ */ jsx29(chakra13.svg, { "aria-hidden": true, viewBox: "0 0 120 96", w: width, h: height, flexShrink: 0, display: "block", "data-art": art, children: ART[art].map(
5116
+ ([d, key], i) => key === "check" ? /* @__PURE__ */ jsx29(Path, { d, fill: "none", stroke: "white", strokeWidth: 6, strokeLinecap: "round", strokeLinejoin: "round" }, i) : /* @__PURE__ */ jsx29(Path, { d, fill: C[key] }, i)
5117
+ ) });
5118
+ }
5119
+
5120
+ // src/components/EmptyState.tsx
5121
+ import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
4930
5122
  var TONE = {
4931
5123
  neutral: { border: "border.muted", bg: "bg.muted", fg: "fg.muted" },
4932
5124
  accent: { border: "accent.muted", bg: "accent.subtle", fg: "accent.fg" },
4933
5125
  danger: { border: "red.muted", bg: "red.subtle", fg: "fg.error" }
4934
5126
  };
4935
- var MotionSpan3 = chakra13(m3.span, {}, { forwardProps: ["transition"] });
5127
+ var MotionSpan3 = chakra14(m3.span, {}, { forwardProps: ["transition"] });
4936
5128
  function Drawing({ children, size, tone }) {
4937
- return /* @__PURE__ */ jsx29(
5129
+ return /* @__PURE__ */ jsx30(
4938
5130
  MotionSpan3,
4939
5131
  {
4940
5132
  display: "inline-flex",
@@ -4954,36 +5146,93 @@ function Drawing({ children, size, tone }) {
4954
5146
  }
4955
5147
  );
4956
5148
  }
4957
- function EmptyState({ title, description, icon, action, secondaryAction, kind, size = "sm", tone: own }) {
5149
+ function EmptyState({
5150
+ title,
5151
+ description,
5152
+ icon,
5153
+ action,
5154
+ secondaryAction,
5155
+ kind,
5156
+ size = "sm",
5157
+ tone: own,
5158
+ variant,
5159
+ illustration,
5160
+ art,
5161
+ layout
5162
+ }) {
4958
5163
  const tone = own ?? (kind === "first-use" ? "accent" : kind === "error" ? "danger" : "neutral");
4959
- const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs21(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
5164
+ const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs22(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
4960
5165
  action,
4961
5166
  secondaryAction
4962
5167
  ] }) : action ?? secondaryAction;
5168
+ const live = kind === "no-results" || kind === "no-filter-match";
5169
+ const role = kind === "error" ? "alert" : live ? "status" : void 0;
5170
+ if (layout === "inline") {
5171
+ return /* @__PURE__ */ jsxs22(
5172
+ HStack6,
5173
+ {
5174
+ gap: "4",
5175
+ rowGap: "2",
5176
+ wrap: "wrap",
5177
+ py: "3",
5178
+ px: "4",
5179
+ rounded: "l2",
5180
+ bg: "bg.subtle",
5181
+ textAlign: "start",
5182
+ "data-empty-kind": kind,
5183
+ role,
5184
+ "aria-live": live ? "polite" : void 0,
5185
+ _icon: { boxSize: "5", flexShrink: 0, color: "fg.muted" },
5186
+ children: [
5187
+ art ? /* @__PURE__ */ jsx30(EmptyArtDrawing, { art, width: "80px", height: "64px" }) : icon,
5188
+ /* @__PURE__ */ jsxs22(VStack, { gap: "0.5", align: "start", flex: "1", minW: "40", children: [
5189
+ /* @__PURE__ */ jsx30(Text8, { as: "span", textStyle: "md", fontWeight: "semibold", color: "fg", children: title }),
5190
+ description != null && /* @__PURE__ */ jsx30(Text8, { as: "span", textStyle: "xs", color: "fg.muted", children: description })
5191
+ ] }),
5192
+ actions != null && /* @__PURE__ */ jsx30(chakra14.div, { flexShrink: 0, children: actions })
5193
+ ]
5194
+ }
5195
+ );
5196
+ }
5197
+ const drawn = variant === "page" && kind !== "error" && !art;
4963
5198
  if (size === "xs") {
4964
- return /* @__PURE__ */ jsxs21(HStack6, { gap: "2", justify: "center", py: "4", px: "3", color: "fg.muted", textStyle: "sm", textAlign: "center", _icon: { boxSize: "4", flexShrink: 0 }, children: [
5199
+ return /* @__PURE__ */ jsxs22(HStack6, { gap: "2", justify: "center", py: "4", px: "3", color: "fg.muted", textStyle: "sm", textAlign: "center", _icon: { boxSize: "4", flexShrink: 0 }, children: [
4965
5200
  icon,
4966
- /* @__PURE__ */ jsxs21(VStack, { gap: "0.5", children: [
4967
- /* @__PURE__ */ jsx29(Text8, { as: "span", children: title }),
4968
- description != null && /* @__PURE__ */ jsx29(Text8, { as: "span", textStyle: "caption", color: "fg.subtle", children: description }),
5201
+ /* @__PURE__ */ jsxs22(VStack, { gap: "0.5", children: [
5202
+ /* @__PURE__ */ jsx30(Text8, { as: "span", children: title }),
5203
+ description != null && /* @__PURE__ */ jsx30(Text8, { as: "span", textStyle: "caption", color: "fg.subtle", children: description }),
4969
5204
  actions
4970
5205
  ] })
4971
5206
  ] });
4972
5207
  }
4973
- return /* @__PURE__ */ jsx29(ChakraEmptyState.Root, { size, py: size === "md" ? "16" : "10", px: "6", children: /* @__PURE__ */ jsxs21(ChakraEmptyState.Content, { gap: "4", "data-empty-kind": kind, children: [
4974
- /* @__PURE__ */ jsx29(ChakraEmptyState.Indicator, { children: /* @__PURE__ */ jsx29(Drawing, { size, tone, children: icon ?? /* @__PURE__ */ jsx29(Inbox, {}) }) }),
4975
- /* @__PURE__ */ jsxs21(VStack, { gap: "1.5", textAlign: "center", maxW: "md", children: [
4976
- /* @__PURE__ */ jsx29(ChakraEmptyState.Title, { textStyle: size === "md" ? "lg" : "md", fontWeight: "semibold", color: "fg", children: title }),
4977
- description != null && /* @__PURE__ */ jsx29(ChakraEmptyState.Description, { textStyle: "sm", color: "fg.muted", children: description })
4978
- ] }),
4979
- actions
4980
- ] }) });
5208
+ return /* @__PURE__ */ jsx30(
5209
+ ChakraEmptyState.Root,
5210
+ {
5211
+ size,
5212
+ py: size === "md" ? "16" : "10",
5213
+ px: "6",
5214
+ minH: drawn ? "80" : void 0,
5215
+ display: drawn ? "flex" : void 0,
5216
+ alignItems: "center",
5217
+ justifyContent: "center",
5218
+ role,
5219
+ "aria-live": live ? "polite" : void 0,
5220
+ children: /* @__PURE__ */ jsxs22(ChakraEmptyState.Content, { gap: drawn ? "5" : "4", "data-empty-kind": kind, "data-empty-variant": variant, children: [
5221
+ /* @__PURE__ */ jsx30(ChakraEmptyState.Indicator, { children: art ? /* @__PURE__ */ jsx30(EmptyArtDrawing, { art, width: size === "md" ? "200px" : "150px", height: size === "md" ? "160px" : "120px" }) : drawn ? /* @__PURE__ */ jsx30(PageIllustration, { of: illustration ?? "records", searching: live, scale: size === "md" ? 1 : 0.8 }) : /* @__PURE__ */ jsx30(Drawing, { size, tone, children: icon ?? /* @__PURE__ */ jsx30(Inbox, {}) }) }),
5222
+ /* @__PURE__ */ jsxs22(VStack, { gap: "1.5", textAlign: "center", maxW: "md", children: [
5223
+ /* @__PURE__ */ jsx30(ChakraEmptyState.Title, { textStyle: size === "md" ? "lg" : "md", fontWeight: "semibold", color: "fg", children: title }),
5224
+ description != null && /* @__PURE__ */ jsx30(ChakraEmptyState.Description, { textStyle: "sm", color: "fg.muted", children: description })
5225
+ ] }),
5226
+ actions
5227
+ ] })
5228
+ }
5229
+ );
4981
5230
  }
4982
5231
 
4983
5232
  // src/components/RecordKey.tsx
4984
5233
  import { forwardRef as forwardRef5, ViewTransition } from "react";
4985
- import { chakra as chakra14, useRecipe } from "@chakra-ui/react";
4986
- import { jsx as jsx30 } from "react/jsx-runtime";
5234
+ import { chakra as chakra15, useRecipe } from "@chakra-ui/react";
5235
+ import { jsx as jsx31 } from "react/jsx-runtime";
4987
5236
  var glideName = (key) => `abp-key-${key.toUpperCase().replace(/[^A-Z0-9_-]/g, "_")}`;
4988
5237
  var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant = "plain", size = "sm", glide = false, loading: own, css, ...rest }, ref) {
4989
5238
  const recipe = useRecipe({ key: "abpRecordKey" });
@@ -4991,26 +5240,26 @@ var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant
4991
5240
  const Link = useLinkComponent();
4992
5241
  const content = children ?? value;
4993
5242
  if (useLoading(own)) {
4994
- return /* @__PURE__ */ jsx30(chakra14.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
5243
+ return /* @__PURE__ */ jsx31(chakra15.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
4995
5244
  }
4996
- const key = href ? /* @__PURE__ */ jsx30(chakra14.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx30(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx30(chakra14.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
5245
+ const key = href ? /* @__PURE__ */ jsx31(chakra15.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx31(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx31(chakra15.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
4997
5246
  if (!glide || !value || typeof ViewTransition === "undefined") return key;
4998
- return /* @__PURE__ */ jsx30(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
5247
+ return /* @__PURE__ */ jsx31(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
4999
5248
  });
5000
5249
 
5001
5250
  // src/components/StatusPill.tsx
5002
5251
  import { forwardRef as forwardRef6 } from "react";
5003
- import { chakra as chakra15, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
5004
- import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
5252
+ import { chakra as chakra16, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
5253
+ import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
5005
5254
  var StatusPill = forwardRef6(function StatusPill2({ tone = "neutral", category, variant = "subtle", size = "sm", dot = true, loading: own, skeletonWidth = 8, children, css, ...rest }, ref) {
5006
5255
  const recipe = useSlotRecipe2({ key: "abpStatusPill" });
5007
5256
  const styles = recipe({ tone: category ?? tone, variant, size });
5008
5257
  const loading = useLoading(own);
5009
5258
  const arriving = useArriving(loading);
5010
5259
  const unknown = children == null || children === "";
5011
- return /* @__PURE__ */ jsxs22(chakra15.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
5012
- dot && /* @__PURE__ */ jsx31(chakra15.span, { css: styles.indicator, "aria-hidden": "true" }),
5013
- loading && unknown ? /* @__PURE__ */ jsx31(chakra15.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
5260
+ return /* @__PURE__ */ jsxs23(chakra16.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
5261
+ dot && /* @__PURE__ */ jsx32(chakra16.span, { css: styles.indicator, "aria-hidden": "true" }),
5262
+ loading && unknown ? /* @__PURE__ */ jsx32(chakra16.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
5014
5263
  ] });
5015
5264
  });
5016
5265
 
@@ -5090,9 +5339,9 @@ function periodName(day, period, locale, labels) {
5090
5339
  return format({ day: "numeric", month: "short", year: "numeric" });
5091
5340
  }
5092
5341
  }
5093
- function inGroups(rows, of) {
5342
+ function inGroups(rows2, of) {
5094
5343
  const groups = [];
5095
- for (const row of rows) {
5344
+ for (const row of rows2) {
5096
5345
  const key = of(row);
5097
5346
  const last = groups[groups.length - 1];
5098
5347
  if (last && last.key === key) last.rows.push(row);
@@ -5116,10 +5365,10 @@ function findSettingsPage(pages, pathname) {
5116
5365
  }
5117
5366
 
5118
5367
  // src/components/query/tree.ts
5119
- function inTree(rows, keyOf, parentOf, context = []) {
5120
- const found = new Set(rows.map(keyOf));
5368
+ function inTree(rows2, keyOf, parentOf, context = []) {
5369
+ const found = new Set(rows2.map(keyOf));
5121
5370
  const all = [
5122
- ...rows.map((row) => ({ row, key: keyOf(row), context: false })),
5371
+ ...rows2.map((row) => ({ row, key: keyOf(row), context: false })),
5123
5372
  ...context.filter((row) => !found.has(keyOf(row))).map((row) => ({ row, key: keyOf(row), context: true }))
5124
5373
  ];
5125
5374
  const byKey = new Map(all.map((x) => [x.key, x]));
@@ -5172,28 +5421,28 @@ function visibleInTree(tree, folded) {
5172
5421
  }
5173
5422
 
5174
5423
  // src/components/DataTable.tsx
5175
- import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
5424
+ import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
5176
5425
  function parentFoldKey(parent) {
5177
5426
  return `${parent}`;
5178
5427
  }
5179
5428
  function placeholder(column, row, at) {
5180
5429
  const kind = column.skeleton ?? (column.numeric ? "number" : "text");
5181
- if (typeof kind === "function") return /* @__PURE__ */ jsx32(Loading, { when: true, children: kind(row) });
5430
+ if (typeof kind === "function") return /* @__PURE__ */ jsx33(Loading, { when: true, children: kind(row) });
5182
5431
  switch (kind) {
5183
5432
  case "none":
5184
5433
  return null;
5185
5434
  case "key":
5186
- return /* @__PURE__ */ jsx32(RecordKey, { loading: true });
5435
+ return /* @__PURE__ */ jsx33(RecordKey, { loading: true });
5187
5436
  case "pill":
5188
- return /* @__PURE__ */ jsx32(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5437
+ return /* @__PURE__ */ jsx33(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5189
5438
  case "number":
5190
- return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? 4 });
5439
+ return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? 4 });
5191
5440
  case "date":
5192
- return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? 11 });
5441
+ return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? 11 });
5193
5442
  case "person":
5194
- return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5443
+ return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5195
5444
  default:
5196
- return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5445
+ return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5197
5446
  }
5198
5447
  }
5199
5448
  function typing(target) {
@@ -5210,7 +5459,7 @@ function compare(a, b, collator) {
5210
5459
  }
5211
5460
  function DataTable({
5212
5461
  columns,
5213
- rows,
5462
+ rows: rows2,
5214
5463
  getRowId,
5215
5464
  loading: own,
5216
5465
  skeletonRows = 5,
@@ -5246,18 +5495,18 @@ function DataTable({
5246
5495
  const rowRefs = useRef11(/* @__PURE__ */ new Map());
5247
5496
  const collator = useMemo7(() => new Intl.Collator(locale, { numeric: true, sensitivity: "base" }), [locale]);
5248
5497
  const sorted = useMemo7(() => {
5249
- if (!rows || !sort || sortMode === "manual") return rows;
5498
+ if (!rows2 || !sort || sortMode === "manual") return rows2;
5250
5499
  const col = columns.find((c2) => c2.id === sort.columnId);
5251
- if (!col?.sortValue) return rows;
5500
+ if (!col?.sortValue) return rows2;
5252
5501
  const get = col.sortValue;
5253
5502
  const dir = sort.direction === "asc" ? 1 : -1;
5254
- return [...rows].sort((a, b) => {
5503
+ return [...rows2].sort((a, b) => {
5255
5504
  const va = get(a);
5256
5505
  const vb = get(b);
5257
5506
  if (va == null || vb == null) return compare(va, vb, collator);
5258
5507
  return dir * compare(va, vb, collator);
5259
5508
  });
5260
- }, [rows, sort, sortMode, columns, collator]);
5509
+ }, [rows2, sort, sortMode, columns, collator]);
5261
5510
  function toggleSort(columnId) {
5262
5511
  const next = sort?.columnId !== columnId ? { columnId, direction: "asc" } : sort.direction === "asc" ? { columnId, direction: "desc" } : null;
5263
5512
  if (sortProp === void 0) setSortState(next);
@@ -5267,11 +5516,11 @@ function DataTable({
5267
5516
  const align = (c2) => c2.numeric ? "end" : c2.align ?? "start";
5268
5517
  let body;
5269
5518
  if (error) {
5270
- body = /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.state, children: /* @__PURE__ */ jsx32(InlineAlert, { tone: "danger", children: error }) }) });
5519
+ body = /* @__PURE__ */ jsx33(Table.Row, { children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, css: styles.state, children: /* @__PURE__ */ jsx33(InlineAlert, { tone: "danger", children: error }) }) });
5271
5520
  } else if (!sorted || loading && sorted.length === 0) {
5272
- body = Array.from({ length: skeletonRows }, (_, r) => /* @__PURE__ */ jsx32(Table.Row, { "aria-hidden": "true", children: columns.map((c2, i) => /* @__PURE__ */ jsx32(Table.Cell, { textAlign: align(c2), whiteSpace: c2.nowrap ? "nowrap" : void 0, textStyle: c2.numeric ? "numeric" : void 0, children: placeholder(c2, r, r * columns.length + i) }, c2.id)) }, `skeleton-${r}`));
5521
+ body = Array.from({ length: skeletonRows }, (_, r) => /* @__PURE__ */ jsx33(Table.Row, { "aria-hidden": "true", children: columns.map((c2, i) => /* @__PURE__ */ jsx33(Table.Cell, { textAlign: align(c2), whiteSpace: c2.nowrap ? "nowrap" : void 0, textStyle: c2.numeric ? "numeric" : void 0, children: placeholder(c2, r, r * columns.length + i) }, c2.id)) }, `skeleton-${r}`));
5273
5522
  } else if (sorted.length === 0) {
5274
- body = /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, p: "0", children: typeof empty === "string" || empty == null ? /* @__PURE__ */ jsx32(EmptyState, { title: empty ?? labels.noData }) : empty }) });
5523
+ body = /* @__PURE__ */ jsx33(Table.Row, { children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, p: "0", children: typeof empty === "string" || empty == null ? /* @__PURE__ */ jsx33(EmptyState, { title: empty ?? labels.noData }) : empty }) });
5275
5524
  } else {
5276
5525
  const treeRows = tree ? visibleInTree(inTree(sorted, tree.keyOf, tree.parentOf, tree.context ?? []), treeFolded) : null;
5277
5526
  const hidden = (group) => grouping.folded.has(group) || grouping.parents != null && grouping.folded.has(parentFoldKey(grouping.parents.of(group)));
@@ -5328,8 +5577,8 @@ function DataTable({
5328
5577
  const sub = renderSubRow?.(row);
5329
5578
  const own2 = renderRow?.(row, index);
5330
5579
  const selected = selection ? selection.selectedId === id : void 0;
5331
- return /* @__PURE__ */ jsxs23(Fragment12, { children: [
5332
- /* @__PURE__ */ jsx32(
5580
+ return /* @__PURE__ */ jsxs24(Fragment12, { children: [
5581
+ /* @__PURE__ */ jsx33(
5333
5582
  Table.Row,
5334
5583
  {
5335
5584
  ref: (el) => {
@@ -5366,13 +5615,13 @@ function DataTable({
5366
5615
  if (moving) place.onPlace(moving, grouping.of(row), side === "before" ? { before: row } : { after: row });
5367
5616
  }
5368
5617
  } : {},
5369
- children: own2 != null ? /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci) => /* @__PURE__ */ jsx32(
5618
+ children: own2 != null ? /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci2) => /* @__PURE__ */ jsx33(
5370
5619
  Table.Cell,
5371
5620
  {
5372
5621
  textAlign: align(c2),
5373
5622
  whiteSpace: c2.nowrap ? "nowrap" : void 0,
5374
5623
  textStyle: c2.numeric ? "numeric" : void 0,
5375
- children: ci === 0 && treeRows ? /* @__PURE__ */ jsx32(
5624
+ children: ci2 === 0 && treeRows ? /* @__PURE__ */ jsx33(
5376
5625
  TreeCell,
5377
5626
  {
5378
5627
  node: treeRows[index],
@@ -5388,8 +5637,8 @@ function DataTable({
5388
5637
  }),
5389
5638
  children: c2.cell(row, index)
5390
5639
  }
5391
- ) : ci === 0 && grouping?.move ? /* @__PURE__ */ jsxs23(chakra16.div, { display: "flex", alignItems: "center", gap: "1", children: [
5392
- /* @__PURE__ */ jsx32(
5640
+ ) : ci2 === 0 && grouping?.move ? /* @__PURE__ */ jsxs24(chakra17.div, { display: "flex", alignItems: "center", gap: "1", children: [
5641
+ /* @__PURE__ */ jsx33(
5393
5642
  RowGrip,
5394
5643
  {
5395
5644
  move: grouping.move,
@@ -5412,7 +5661,7 @@ function DataTable({
5412
5661
  ))
5413
5662
  }
5414
5663
  ),
5415
- sub != null && /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5664
+ sub != null && /* @__PURE__ */ jsx33(Table.Row, { children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5416
5665
  ] }, id);
5417
5666
  };
5418
5667
  if (treeRows || !grouping) {
@@ -5424,28 +5673,28 @@ function DataTable({
5424
5673
  body = groups.map((g, gi) => {
5425
5674
  const parent = parents?.of(g.key);
5426
5675
  const parentFolded = parent != null && grouping.folded.has(parentFoldKey(parent));
5427
- const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx32(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs23(chakra16.div, { css: styles.groupHeader, children: [
5428
- /* @__PURE__ */ jsx32(
5429
- chakra16.button,
5676
+ const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx33(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs24(chakra17.div, { css: styles.groupHeader, children: [
5677
+ /* @__PURE__ */ jsx33(
5678
+ chakra17.button,
5430
5679
  {
5431
5680
  type: "button",
5432
5681
  css: styles.groupToggle,
5433
5682
  "aria-expanded": !parentFolded,
5434
5683
  "aria-label": parents.foldLabel(parent, parentFolded),
5435
5684
  onClick: () => grouping.onFold(parentFoldKey(parent)),
5436
- children: /* @__PURE__ */ jsx32(ChevronDown2, {})
5685
+ children: /* @__PURE__ */ jsx33(ChevronDown2, {})
5437
5686
  }
5438
5687
  ),
5439
5688
  parents.header(parent, groups.filter((x) => parents.of(x.key) === parent))
5440
5689
  ] }) }) }) : null;
5441
- if (parentFolded) return /* @__PURE__ */ jsx32(Fragment12, { children: parentRow }, `group-${g.key}`);
5690
+ if (parentFolded) return /* @__PURE__ */ jsx33(Fragment12, { children: parentRow }, `group-${g.key}`);
5442
5691
  const folded = grouping.folded.has(g.key);
5443
5692
  const footer = folded ? null : grouping.footer?.(g.key, g.rows);
5444
5693
  const start = at;
5445
5694
  if (!folded) at += g.rows.length;
5446
- return /* @__PURE__ */ jsxs23(Fragment12, { children: [
5695
+ return /* @__PURE__ */ jsxs24(Fragment12, { children: [
5447
5696
  parentRow,
5448
- /* @__PURE__ */ jsx32(
5697
+ /* @__PURE__ */ jsx33(
5449
5698
  Table.Row,
5450
5699
  {
5451
5700
  css: styles.groupRow,
@@ -5470,16 +5719,16 @@ function DataTable({
5470
5719
  if (row) grouping.move.onMove(row, g.key);
5471
5720
  }
5472
5721
  } : {},
5473
- children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs23(chakra16.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
5474
- /* @__PURE__ */ jsx32(
5475
- chakra16.button,
5722
+ children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs24(chakra17.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
5723
+ /* @__PURE__ */ jsx33(
5724
+ chakra17.button,
5476
5725
  {
5477
5726
  type: "button",
5478
5727
  css: styles.groupToggle,
5479
5728
  "aria-expanded": !folded,
5480
5729
  "aria-label": grouping.foldLabel(g.key, folded),
5481
5730
  onClick: () => grouping.onFold(g.key),
5482
- children: /* @__PURE__ */ jsx32(ChevronDown2, {})
5731
+ children: /* @__PURE__ */ jsx33(ChevronDown2, {})
5483
5732
  }
5484
5733
  ),
5485
5734
  grouping.header(g.key, g.rows)
@@ -5487,12 +5736,12 @@ function DataTable({
5487
5736
  }
5488
5737
  ),
5489
5738
  !folded && g.rows.map((row, i) => drawRow(row, start + i)),
5490
- footer != null && /* @__PURE__ */ jsx32(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5739
+ footer != null && /* @__PURE__ */ jsx33(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5491
5740
  ] }, `group-${g.key}`);
5492
5741
  });
5493
5742
  }
5494
5743
  }
5495
- return /* @__PURE__ */ jsx32(chakra16.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx32(chakra16.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs23(
5744
+ return /* @__PURE__ */ jsx33(chakra17.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx33(chakra17.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs24(
5496
5745
  Table.Root,
5497
5746
  {
5498
5747
  size,
@@ -5501,17 +5750,17 @@ function DataTable({
5501
5750
  "aria-label": ariaLabel,
5502
5751
  role: selection ? "grid" : void 0,
5503
5752
  children: [
5504
- /* @__PURE__ */ jsx32(Table.Header, { children: /* @__PURE__ */ jsx32(Table.Row, { children: columns.map((c2) => {
5753
+ /* @__PURE__ */ jsx33(Table.Header, { children: /* @__PURE__ */ jsx33(Table.Row, { children: columns.map((c2) => {
5505
5754
  const sortable = Boolean(c2.sortValue);
5506
5755
  const active = sort?.columnId === c2.id ? sort.direction : null;
5507
- return /* @__PURE__ */ jsx32(
5756
+ return /* @__PURE__ */ jsx33(
5508
5757
  Table.ColumnHeader,
5509
5758
  {
5510
5759
  textAlign: align(c2),
5511
5760
  w: c2.width,
5512
5761
  "aria-sort": sortable ? active === "asc" ? "ascending" : active === "desc" ? "descending" : "none" : void 0,
5513
- children: sortable ? /* @__PURE__ */ jsxs23(
5514
- chakra16.button,
5762
+ children: sortable ? /* @__PURE__ */ jsxs24(
5763
+ chakra17.button,
5515
5764
  {
5516
5765
  type: "button",
5517
5766
  css: styles.sortTrigger,
@@ -5520,7 +5769,7 @@ function DataTable({
5520
5769
  title: active === "asc" ? labels.sortDescending : labels.sortAscending,
5521
5770
  children: [
5522
5771
  c2.header,
5523
- /* @__PURE__ */ jsx32(chakra16.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx32(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx32(ArrowDown, {}) : /* @__PURE__ */ jsx32(ChevronsUpDown, {}) })
5772
+ /* @__PURE__ */ jsx33(chakra17.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx33(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx33(ArrowDown, {}) : /* @__PURE__ */ jsx33(ChevronsUpDown, {}) })
5524
5773
  ]
5525
5774
  }
5526
5775
  ) : c2.header
@@ -5528,7 +5777,7 @@ function DataTable({
5528
5777
  c2.id
5529
5778
  );
5530
5779
  }) }) }),
5531
- /* @__PURE__ */ jsx32(Table.Body, { children: body })
5780
+ /* @__PURE__ */ jsx33(Table.Body, { children: body })
5532
5781
  ]
5533
5782
  }
5534
5783
  ) }) });
@@ -5539,7 +5788,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5539
5788
  const targets = move.targets(row);
5540
5789
  const place = move.place;
5541
5790
  const steps = place ? [prev && { value: UP, label: place.up }, next && { value: DOWN, label: place.down }].filter((x) => Boolean(x)) : [];
5542
- return /* @__PURE__ */ jsxs23(
5791
+ return /* @__PURE__ */ jsxs24(
5543
5792
  Menu.Root,
5544
5793
  {
5545
5794
  lazyMount: true,
@@ -5551,8 +5800,8 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5551
5800
  else move.onMove(row, e.value);
5552
5801
  },
5553
5802
  children: [
5554
- /* @__PURE__ */ jsx32(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx32(
5555
- chakra16.button,
5803
+ /* @__PURE__ */ jsx33(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx33(
5804
+ chakra17.button,
5556
5805
  {
5557
5806
  type: "button",
5558
5807
  draggable: true,
@@ -5584,18 +5833,18 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5584
5833
  onDragStart();
5585
5834
  },
5586
5835
  onDragEnd,
5587
- children: /* @__PURE__ */ jsx32(GripVertical, {})
5836
+ children: /* @__PURE__ */ jsx33(GripVertical, {})
5588
5837
  }
5589
5838
  ) }),
5590
- /* @__PURE__ */ jsx32(Portal10, { children: /* @__PURE__ */ jsx32(Menu.Positioner, { children: /* @__PURE__ */ jsxs23(Menu.Content, { minW: "44", onClick: (e) => e.stopPropagation(), children: [
5591
- steps.length > 0 && /* @__PURE__ */ jsx32(Menu.ItemGroup, { children: steps.map((x) => /* @__PURE__ */ jsxs23(Menu.Item, { value: x.value, children: [
5592
- x.value === UP ? /* @__PURE__ */ jsx32(ArrowUp, {}) : /* @__PURE__ */ jsx32(ArrowDown, {}),
5839
+ /* @__PURE__ */ jsx33(Portal10, { children: /* @__PURE__ */ jsx33(Menu.Positioner, { children: /* @__PURE__ */ jsxs24(Menu.Content, { minW: "44", onClick: (e) => e.stopPropagation(), children: [
5840
+ steps.length > 0 && /* @__PURE__ */ jsx33(Menu.ItemGroup, { children: steps.map((x) => /* @__PURE__ */ jsxs24(Menu.Item, { value: x.value, children: [
5841
+ x.value === UP ? /* @__PURE__ */ jsx33(ArrowUp, {}) : /* @__PURE__ */ jsx33(ArrowDown, {}),
5593
5842
  x.label
5594
5843
  ] }, x.value)) }),
5595
- steps.length > 0 && targets.length > 0 && /* @__PURE__ */ jsx32(Menu.Separator, {}),
5596
- targets.length > 0 && /* @__PURE__ */ jsxs23(Menu.ItemGroup, { children: [
5597
- /* @__PURE__ */ jsx32(Menu.ItemGroupLabel, { children: move.menuTitle }),
5598
- targets.map((x) => /* @__PURE__ */ jsx32(Menu.Item, { value: x.group, children: x.label }, x.group))
5844
+ steps.length > 0 && targets.length > 0 && /* @__PURE__ */ jsx33(Menu.Separator, {}),
5845
+ targets.length > 0 && /* @__PURE__ */ jsxs24(Menu.ItemGroup, { children: [
5846
+ /* @__PURE__ */ jsx33(Menu.ItemGroupLabel, { children: move.menuTitle }),
5847
+ targets.map((x) => /* @__PURE__ */ jsx33(Menu.Item, { value: x.group, children: x.label }, x.group))
5599
5848
  ] })
5600
5849
  ] }) }) })
5601
5850
  ]
@@ -5603,8 +5852,8 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5603
5852
  );
5604
5853
  }
5605
5854
  function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5606
- return /* @__PURE__ */ jsxs23(
5607
- chakra16.div,
5855
+ return /* @__PURE__ */ jsxs24(
5856
+ chakra17.div,
5608
5857
  {
5609
5858
  display: "flex",
5610
5859
  alignItems: "center",
@@ -5614,8 +5863,8 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5614
5863
  "data-tree-depth": node.depth,
5615
5864
  "data-context": node.context ? "" : void 0,
5616
5865
  children: [
5617
- node.hasChildren ? /* @__PURE__ */ jsx32(
5618
- chakra16.button,
5866
+ node.hasChildren ? /* @__PURE__ */ jsx33(
5867
+ chakra17.button,
5619
5868
  {
5620
5869
  type: "button",
5621
5870
  "aria-expanded": !folded,
@@ -5635,10 +5884,10 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5635
5884
  _hover: { bg: "bg.muted", color: "fg" },
5636
5885
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing" },
5637
5886
  css: { "& svg": { width: "3.5", height: "3.5", transition: "transform 0.15s" } },
5638
- children: folded ? /* @__PURE__ */ jsx32(DirectionalIcon, { children: /* @__PURE__ */ jsx32(ChevronRight2, {}) }) : /* @__PURE__ */ jsx32(ChevronDown2, {})
5887
+ children: folded ? /* @__PURE__ */ jsx33(DirectionalIcon, { children: /* @__PURE__ */ jsx33(ChevronRight2, {}) }) : /* @__PURE__ */ jsx33(ChevronDown2, {})
5639
5888
  }
5640
- ) : /* @__PURE__ */ jsx32(chakra16.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5641
- node.context && /* @__PURE__ */ jsx32(chakra16.span, { srOnly: true, children: contextLabel }),
5889
+ ) : /* @__PURE__ */ jsx33(chakra17.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5890
+ node.context && /* @__PURE__ */ jsx33(chakra17.span, { srOnly: true, children: contextLabel }),
5642
5891
  children
5643
5892
  ]
5644
5893
  }
@@ -5647,9 +5896,9 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5647
5896
 
5648
5897
  // src/components/CalendarGrid.tsx
5649
5898
  import { useEffect as useEffect11, useMemo as useMemo8, useRef as useRef12, useState as useState15 } from "react";
5650
- import { Box as Box4, chakra as chakra17, Grid as Grid2, Stack as Stack6, Text as Text9 } from "@chakra-ui/react";
5899
+ import { Box as Box5, chakra as chakra18, Grid as Grid2, Stack as Stack6, Text as Text9 } from "@chakra-ui/react";
5651
5900
  import { DndContext, DragOverlay, PointerSensor, useDraggable, useDroppable, useSensor, useSensors } from "@dnd-kit/core";
5652
- import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
5901
+ import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
5653
5902
  var addDays = (day, n) => {
5654
5903
  const d = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
5655
5904
  d.setUTCDate(d.getUTCDate() + n);
@@ -5710,7 +5959,7 @@ function CalendarGrid({
5710
5959
  const rtl = getComputedStyle(e.currentTarget).direction === "rtl";
5711
5960
  onMove(item, addDays(item.start, rtl && Math.abs(step) === 1 ? -step : step));
5712
5961
  }
5713
- return /* @__PURE__ */ jsxs24(
5962
+ return /* @__PURE__ */ jsxs25(
5714
5963
  DndContext,
5715
5964
  {
5716
5965
  sensors,
@@ -5718,12 +5967,12 @@ function CalendarGrid({
5718
5967
  onDragEnd: end,
5719
5968
  onDragCancel: () => setActive(null),
5720
5969
  children: [
5721
- /* @__PURE__ */ jsxs24(Box4, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
5722
- /* @__PURE__ */ jsx33(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx33(Text9, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
5723
- Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx33(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", borderBottomWidth: week < days.length / 7 - 1 ? "1px" : 0, borderColor: "border", children: days.slice(week * 7, week * 7 + 7).map((day, i) => {
5970
+ /* @__PURE__ */ jsxs25(Box5, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
5971
+ /* @__PURE__ */ jsx34(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx34(Text9, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
5972
+ Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx34(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", borderBottomWidth: week < days.length / 7 - 1 ? "1px" : 0, borderColor: "border", children: days.slice(week * 7, week * 7 + 7).map((day, i) => {
5724
5973
  const list = byDay.get(day) ?? [];
5725
5974
  const shown = tall ? list : list.slice(0, maxPerDay);
5726
- return /* @__PURE__ */ jsxs24(
5975
+ return /* @__PURE__ */ jsxs25(
5727
5976
  DayCell,
5728
5977
  {
5729
5978
  day,
@@ -5735,10 +5984,10 @@ function CalendarGrid({
5735
5984
  label: dayLabel(day),
5736
5985
  dragging: !!active,
5737
5986
  children: [
5738
- loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx33(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
5739
- !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx33(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
5740
- list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx33(
5741
- chakra17.button,
5987
+ loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx34(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
5988
+ !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx34(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
5989
+ list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx34(
5990
+ chakra18.button,
5742
5991
  {
5743
5992
  type: "button",
5744
5993
  alignSelf: "start",
@@ -5754,21 +6003,21 @@ function CalendarGrid({
5754
6003
  "data-more": "",
5755
6004
  children: more(list.length - shown.length)
5756
6005
  }
5757
- ) : /* @__PURE__ */ jsx33(Text9, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
6006
+ ) : /* @__PURE__ */ jsx34(Text9, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
5758
6007
  ]
5759
6008
  },
5760
6009
  day
5761
6010
  );
5762
6011
  }) }, week))
5763
6012
  ] }),
5764
- /* @__PURE__ */ jsx33(DragOverlay, { children: active ? /* @__PURE__ */ jsx33(Box4, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
6013
+ /* @__PURE__ */ jsx34(DragOverlay, { children: active ? /* @__PURE__ */ jsx34(Box5, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
5765
6014
  ]
5766
6015
  }
5767
6016
  );
5768
6017
  }
5769
6018
  function DayCell({ day, name, dim, today, tall, last, label, dragging, children }) {
5770
6019
  const { setNodeRef, isOver } = useDroppable({ id: `day:${day}` });
5771
- return /* @__PURE__ */ jsxs24(
6020
+ return /* @__PURE__ */ jsxs25(
5772
6021
  Stack6,
5773
6022
  {
5774
6023
  ref: setNodeRef,
@@ -5786,7 +6035,7 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
5786
6035
  outlineOffset: "-3px",
5787
6036
  "data-day": day,
5788
6037
  children: [
5789
- /* @__PURE__ */ jsx33(
6038
+ /* @__PURE__ */ jsx34(
5790
6039
  Text9,
5791
6040
  {
5792
6041
  textStyle: "caption",
@@ -5812,8 +6061,8 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
5812
6061
  }
5813
6062
  function Chip({ item, continued, onKeyDown, children }) {
5814
6063
  const { attributes, listeners: listeners2, setNodeRef, isDragging } = useDraggable({ id: continued ? `${item.id}:cont` : item.id, disabled: item.movable === false || continued });
5815
- return /* @__PURE__ */ jsx33(
5816
- Box4,
6064
+ return /* @__PURE__ */ jsx34(
6065
+ Box5,
5817
6066
  {
5818
6067
  ref: setNodeRef,
5819
6068
  ...attributes,
@@ -5833,10 +6082,10 @@ function Chip({ item, continued, onKeyDown, children }) {
5833
6082
  }
5834
6083
 
5835
6084
  // src/components/Chart.tsx
5836
- import { Box as Box5, Flex as Flex2, Text as Text10 } from "@chakra-ui/react";
6085
+ import { Box as Box6, Flex as Flex3, Text as Text10 } from "@chakra-ui/react";
5837
6086
  import { Chart as ChakraChart, useChart } from "@chakra-ui/charts";
5838
6087
  import { Area, AreaChart, Bar, BarChart, CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip as Tooltip3, XAxis, YAxis } from "recharts";
5839
- import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
6088
+ import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
5840
6089
  var PALETTE = ["teal.solid", "blue.solid", "orange.solid", "purple.solid", "green.solid", "pink.solid", "cyan.solid", "yellow.solid", "red.solid"];
5841
6090
  function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height = 280, formatX, formatValue, loading: own }) {
5842
6091
  const { isRtl: rtl } = useAbpLocale();
@@ -5847,29 +6096,29 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5847
6096
  });
5848
6097
  const xs = new Set(data.map((row) => String(row[x])));
5849
6098
  const label = (value) => value == null ? "" : formatX && xs.has(String(value)) ? formatX(String(value)) : String(value);
5850
- const xAxis = /* @__PURE__ */ jsx34(XAxis, { dataKey: chart.key(x), reversed: rtl, tickLine: false, axisLine: false, tickFormatter: label, minTickGap: 12 });
5851
- const yAxis = /* @__PURE__ */ jsx34(YAxis, { orientation: rtl ? "right" : "left", tickLine: false, axisLine: false, width: 44, tickFormatter: formatValue, allowDecimals: false });
5852
- const grid = /* @__PURE__ */ jsx34(CartesianGrid, { stroke: chart.color("border.muted"), vertical: false });
5853
- const tooltip = /* @__PURE__ */ jsx34(Tooltip3, { cursor: { fill: chart.color("bg.muted") }, animationDuration: 100, content: /* @__PURE__ */ jsx34(ChakraChart.Tooltip, {}), labelFormatter: label });
5854
- const legend = series.length > 1 ? /* @__PURE__ */ jsx34(Legend, { content: /* @__PURE__ */ jsx34(ChakraChart.Legend, {}) }) : null;
6099
+ const xAxis = /* @__PURE__ */ jsx35(XAxis, { dataKey: chart.key(x), reversed: rtl, tickLine: false, axisLine: false, tickFormatter: label, minTickGap: 12 });
6100
+ const yAxis = /* @__PURE__ */ jsx35(YAxis, { orientation: rtl ? "right" : "left", tickLine: false, axisLine: false, width: 44, tickFormatter: formatValue, allowDecimals: false });
6101
+ const grid = /* @__PURE__ */ jsx35(CartesianGrid, { stroke: chart.color("border.muted"), vertical: false });
6102
+ const tooltip = /* @__PURE__ */ jsx35(Tooltip3, { cursor: { fill: chart.color("bg.muted") }, animationDuration: 100, content: /* @__PURE__ */ jsx35(ChakraChart.Tooltip, {}), labelFormatter: label });
6103
+ const legend = series.length > 1 ? /* @__PURE__ */ jsx35(Legend, { content: /* @__PURE__ */ jsx35(ChakraChart.Legend, {}) }) : null;
5855
6104
  if (loading) {
5856
- return /* @__PURE__ */ jsx34(Box5, { "aria-hidden": "true", children: /* @__PURE__ */ jsx34(Flex2, { h: typeof height === "number" ? `${height}px` : height, align: "flex-end", gap: kind === "bar" ? "2" : "0.5", ps: "12", pe: "2", pb: "8", pt: "2", children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ jsx34(Bone, { flex: "1", width: "auto", height: `${28 + i * 37 % 60}%`, borderRadius: kind === "bar" ? "l1" : "0" }, i)) }) });
6105
+ return /* @__PURE__ */ jsx35(Box6, { "aria-hidden": "true", children: /* @__PURE__ */ jsx35(Flex3, { h: typeof height === "number" ? `${height}px` : height, align: "flex-end", gap: kind === "bar" ? "2" : "0.5", ps: "12", pe: "2", pb: "8", pt: "2", children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ jsx35(Bone, { flex: "1", width: "auto", height: `${28 + i * 37 % 60}%`, borderRadius: kind === "bar" ? "l1" : "0" }, i)) }) });
5857
6106
  }
5858
- return /* @__PURE__ */ jsxs25(Box5, { children: [
5859
- /* @__PURE__ */ jsx34(ChakraChart.Root, { h: typeof height === "number" ? `${height}px` : height, aspectRatio: "auto", chart, "aria-hidden": true, children: /* @__PURE__ */ jsx34(ResponsiveContainer, { width: "100%", height: "100%", children: kind === "bar" ? /* @__PURE__ */ jsxs25(BarChart, { data: chart.data, children: [
6107
+ return /* @__PURE__ */ jsxs26(Box6, { children: [
6108
+ /* @__PURE__ */ jsx35(ChakraChart.Root, { h: typeof height === "number" ? `${height}px` : height, aspectRatio: "auto", chart, "aria-hidden": true, children: /* @__PURE__ */ jsx35(ResponsiveContainer, { width: "100%", height: "100%", children: kind === "bar" ? /* @__PURE__ */ jsxs26(BarChart, { data: chart.data, children: [
5860
6109
  grid,
5861
6110
  xAxis,
5862
6111
  yAxis,
5863
6112
  tooltip,
5864
6113
  legend,
5865
- chart.series.map((s) => /* @__PURE__ */ jsx34(Bar, { isAnimationActive: false, dataKey: chart.key(s.name), fill: chart.color(s.color), stackId: s.stackId, radius: stacked ? 0 : 3 }, s.name))
5866
- ] }) : kind === "area" ? /* @__PURE__ */ jsxs25(AreaChart, { data: chart.data, children: [
6114
+ chart.series.map((s) => /* @__PURE__ */ jsx35(Bar, { isAnimationActive: false, dataKey: chart.key(s.name), fill: chart.color(s.color), stackId: s.stackId, radius: stacked ? 0 : 3 }, s.name))
6115
+ ] }) : kind === "area" ? /* @__PURE__ */ jsxs26(AreaChart, { data: chart.data, children: [
5867
6116
  grid,
5868
6117
  xAxis,
5869
6118
  yAxis,
5870
6119
  tooltip,
5871
6120
  legend,
5872
- chart.series.map((s) => /* @__PURE__ */ jsx34(
6121
+ chart.series.map((s) => /* @__PURE__ */ jsx35(
5873
6122
  Area,
5874
6123
  {
5875
6124
  isAnimationActive: false,
@@ -5883,13 +6132,13 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5883
6132
  },
5884
6133
  s.name
5885
6134
  ))
5886
- ] }) : /* @__PURE__ */ jsxs25(LineChart, { data: chart.data, children: [
6135
+ ] }) : /* @__PURE__ */ jsxs26(LineChart, { data: chart.data, children: [
5887
6136
  grid,
5888
6137
  xAxis,
5889
6138
  yAxis,
5890
6139
  tooltip,
5891
6140
  legend,
5892
- chart.series.map((s) => /* @__PURE__ */ jsx34(
6141
+ chart.series.map((s) => /* @__PURE__ */ jsx35(
5893
6142
  Line,
5894
6143
  {
5895
6144
  isAnimationActive: false,
@@ -5904,26 +6153,26 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5904
6153
  s.name
5905
6154
  ))
5906
6155
  ] }) }) }),
5907
- /* @__PURE__ */ jsxs25(Box5, { as: "table", srOnly: true, children: [
5908
- /* @__PURE__ */ jsx34("caption", { children: ariaLabel }),
5909
- /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsxs25("tr", { children: [
5910
- /* @__PURE__ */ jsx34("th", { scope: "col", children: "" }),
5911
- series.map((s) => /* @__PURE__ */ jsx34("th", { scope: "col", children: s.label }, s.key))
6156
+ /* @__PURE__ */ jsxs26(Box6, { as: "table", srOnly: true, children: [
6157
+ /* @__PURE__ */ jsx35("caption", { children: ariaLabel }),
6158
+ /* @__PURE__ */ jsx35("thead", { children: /* @__PURE__ */ jsxs26("tr", { children: [
6159
+ /* @__PURE__ */ jsx35("th", { scope: "col", children: "" }),
6160
+ series.map((s) => /* @__PURE__ */ jsx35("th", { scope: "col", children: s.label }, s.key))
5912
6161
  ] }) }),
5913
- /* @__PURE__ */ jsx34("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsxs25("tr", { children: [
5914
- /* @__PURE__ */ jsx34("th", { scope: "row", children: formatX ? formatX(String(row[x])) : String(row[x]) }),
5915
- series.map((s) => /* @__PURE__ */ jsx34("td", { children: row[s.key] == null ? "" : formatValue ? formatValue(Number(row[s.key])) : String(row[s.key]) }, s.key))
6162
+ /* @__PURE__ */ jsx35("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsxs26("tr", { children: [
6163
+ /* @__PURE__ */ jsx35("th", { scope: "row", children: formatX ? formatX(String(row[x])) : String(row[x]) }),
6164
+ series.map((s) => /* @__PURE__ */ jsx35("td", { children: row[s.key] == null ? "" : formatValue ? formatValue(Number(row[s.key])) : String(row[s.key]) }, s.key))
5916
6165
  ] }, i)) })
5917
6166
  ] }),
5918
- data.length === 0 && /* @__PURE__ */ jsx34(Text10, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
6167
+ data.length === 0 && /* @__PURE__ */ jsx35(Text10, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
5919
6168
  ] });
5920
6169
  }
5921
6170
 
5922
6171
  // src/components/DashboardGrid.tsx
5923
6172
  import { useRef as useRef13, useState as useState16 } from "react";
5924
- import { Box as Box6, chakra as chakra18 } from "@chakra-ui/react";
6173
+ import { Box as Box7, chakra as chakra19 } from "@chakra-ui/react";
5925
6174
  import { GripVertical as GripVertical2, MoveDiagonal2 } from "lucide-react";
5926
- import { Fragment as Fragment13, jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
6175
+ import { Fragment as Fragment13, jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
5927
6176
  var GAP = 16;
5928
6177
  var PLACEHOLDER_TILES = [
5929
6178
  { id: "skeleton-1", x: 0, y: 0, w: 6, h: 3 },
@@ -6044,10 +6293,10 @@ function DashboardGrid({
6044
6293
  _hover: { color: "fg", bg: "bg.muted" },
6045
6294
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "1px" }
6046
6295
  };
6047
- return /* @__PURE__ */ jsxs26(Box6, { children: [
6048
- editing && /* @__PURE__ */ jsx35(chakra18.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
6049
- /* @__PURE__ */ jsxs26(
6050
- Box6,
6296
+ return /* @__PURE__ */ jsxs27(Box7, { children: [
6297
+ editing && /* @__PURE__ */ jsx36(chakra19.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
6298
+ /* @__PURE__ */ jsxs27(
6299
+ Box7,
6051
6300
  {
6052
6301
  ref,
6053
6302
  role: "list",
@@ -6060,8 +6309,8 @@ function DashboardGrid({
6060
6309
  onPointerUp: end,
6061
6310
  onPointerCancel: end,
6062
6311
  children: [
6063
- placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx35(
6064
- Box6,
6312
+ placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx36(
6313
+ Box7,
6065
6314
  {
6066
6315
  role: "listitem",
6067
6316
  "aria-hidden": "true",
@@ -6078,8 +6327,8 @@ function DashboardGrid({
6078
6327
  if (!item) return null;
6079
6328
  const shown = { ...item, ...place };
6080
6329
  const moving = active === item.id;
6081
- return /* @__PURE__ */ jsxs26(
6082
- Box6,
6330
+ return /* @__PURE__ */ jsxs27(
6331
+ Box7,
6083
6332
  {
6084
6333
  role: "listitem",
6085
6334
  position: "relative",
@@ -6091,9 +6340,9 @@ function DashboardGrid({
6091
6340
  transition: moving ? void 0 : "all 120ms ease",
6092
6341
  children: [
6093
6342
  renderItem(shown),
6094
- editing && /* @__PURE__ */ jsxs26(Fragment13, { children: [
6095
- /* @__PURE__ */ jsx35(
6096
- chakra18.button,
6343
+ editing && /* @__PURE__ */ jsxs27(Fragment13, { children: [
6344
+ /* @__PURE__ */ jsx36(
6345
+ chakra19.button,
6097
6346
  {
6098
6347
  type: "button",
6099
6348
  position: "absolute",
@@ -6106,11 +6355,11 @@ function DashboardGrid({
6106
6355
  "aria-describedby": instructionsId,
6107
6356
  onPointerDown: (e) => start(e, item, "move"),
6108
6357
  onKeyDown: (e) => key(e, item, "move"),
6109
- children: /* @__PURE__ */ jsx35(GripVertical2, { size: 14, "aria-hidden": true })
6358
+ children: /* @__PURE__ */ jsx36(GripVertical2, { size: 14, "aria-hidden": true })
6110
6359
  }
6111
6360
  ),
6112
- /* @__PURE__ */ jsx35(
6113
- chakra18.button,
6361
+ /* @__PURE__ */ jsx36(
6362
+ chakra19.button,
6114
6363
  {
6115
6364
  type: "button",
6116
6365
  position: "absolute",
@@ -6123,7 +6372,7 @@ function DashboardGrid({
6123
6372
  "aria-describedby": instructionsId,
6124
6373
  onPointerDown: (e) => start(e, item, "resize"),
6125
6374
  onKeyDown: (e) => key(e, item, "resize"),
6126
- children: /* @__PURE__ */ jsx35(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6375
+ children: /* @__PURE__ */ jsx36(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6127
6376
  }
6128
6377
  )
6129
6378
  ] })
@@ -6139,8 +6388,8 @@ function DashboardGrid({
6139
6388
  }
6140
6389
 
6141
6390
  // src/components/CategoryProgress.tsx
6142
- import { Box as Box7, HStack as HStack7 } from "@chakra-ui/react";
6143
- import { jsx as jsx36 } from "react/jsx-runtime";
6391
+ import { Box as Box8, HStack as HStack7 } from "@chakra-ui/react";
6392
+ import { jsx as jsx37 } from "react/jsx-runtime";
6144
6393
  function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "aria-label": ariaLabel }) {
6145
6394
  const loading = useLoading(own);
6146
6395
  const total = loading ? 0 : todo + inProgress + done;
@@ -6149,15 +6398,15 @@ function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "
6149
6398
  { key: "inProgress", value: inProgress },
6150
6399
  { key: "todo", value: todo }
6151
6400
  ];
6152
- return /* @__PURE__ */ jsx36(HStack7, { 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__ */ jsx36(Box7, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
6401
+ return /* @__PURE__ */ jsx37(HStack7, { 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__ */ jsx37(Box8, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
6153
6402
  }
6154
6403
 
6155
6404
  // src/components/AttentionChip.tsx
6156
- import { chakra as chakra20 } from "@chakra-ui/react";
6405
+ import { chakra as chakra21 } from "@chakra-ui/react";
6157
6406
 
6158
6407
  // src/components/CountBadge.tsx
6159
- import { chakra as chakra19 } from "@chakra-ui/react";
6160
- import { jsx as jsx37 } from "react/jsx-runtime";
6408
+ import { chakra as chakra20 } from "@chakra-ui/react";
6409
+ import { jsx as jsx38 } from "react/jsx-runtime";
6161
6410
  var TONES2 = {
6162
6411
  neutral: { bg: "bg.emphasized", color: "fg" },
6163
6412
  accent: { bg: "accent.subtle", color: "accent.fg" },
@@ -6167,8 +6416,8 @@ var TONES2 = {
6167
6416
  function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...rest }) {
6168
6417
  const fmt = useFormatters();
6169
6418
  const loading = useLoading(own);
6170
- return /* @__PURE__ */ jsx37(
6171
- chakra19.span,
6419
+ return /* @__PURE__ */ jsx38(
6420
+ chakra20.span,
6172
6421
  {
6173
6422
  display: "inline-flex",
6174
6423
  alignItems: "center",
@@ -6192,11 +6441,11 @@ function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...res
6192
6441
  }
6193
6442
 
6194
6443
  // src/components/AttentionChip.tsx
6195
- import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
6444
+ import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
6196
6445
  function AttentionChip({ count, children, tone = "neutral", pressed, onClick, disabled, loading: own }) {
6197
6446
  const loading = useLoading(own);
6198
- return /* @__PURE__ */ jsxs27(
6199
- chakra20.button,
6447
+ return /* @__PURE__ */ jsxs28(
6448
+ chakra21.button,
6200
6449
  {
6201
6450
  type: "button",
6202
6451
  display: "inline-flex",
@@ -6221,7 +6470,7 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6221
6470
  disabled: disabled || loading,
6222
6471
  onClick,
6223
6472
  children: [
6224
- /* @__PURE__ */ jsx38(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6473
+ /* @__PURE__ */ jsx39(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6225
6474
  children
6226
6475
  ]
6227
6476
  }
@@ -6229,13 +6478,13 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6229
6478
  }
6230
6479
 
6231
6480
  // src/components/IconTile.tsx
6232
- import { chakra as chakra21 } from "@chakra-ui/react";
6233
- import { jsx as jsx39 } from "react/jsx-runtime";
6481
+ import { chakra as chakra22 } from "@chakra-ui/react";
6482
+ import { jsx as jsx40 } from "react/jsx-runtime";
6234
6483
  var SIZES = { sm: { box: "6", icon: "3.5" }, md: { box: "8", icon: "4" }, lg: { box: "10", icon: "5" } };
6235
6484
  function IconTile({ children, size = "md", active = false, palette: palette3 }) {
6236
6485
  const s = SIZES[size];
6237
- return /* @__PURE__ */ jsx39(
6238
- chakra21.span,
6486
+ return /* @__PURE__ */ jsx40(
6487
+ chakra22.span,
6239
6488
  {
6240
6489
  display: "inline-flex",
6241
6490
  alignItems: "center",
@@ -6257,17 +6506,17 @@ function IconTile({ children, size = "md", active = false, palette: palette3 })
6257
6506
  }
6258
6507
 
6259
6508
  // src/components/PersonChip.tsx
6260
- import { Avatar as Avatar2, chakra as chakra22 } from "@chakra-ui/react";
6261
- import { jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
6509
+ import { Avatar as Avatar2, chakra as chakra23 } from "@chakra-ui/react";
6510
+ import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
6262
6511
  var SIZES2 = { xs: "5", sm: "6", md: "8" };
6263
6512
  function PersonChip({ id, name, picture, compact = false, size = "sm", loading: own }) {
6264
6513
  if (useLoading(own)) {
6265
- return /* @__PURE__ */ jsxs28(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
6266
- /* @__PURE__ */ jsx40(Bone, { circle: true, height: SIZES2[size] }),
6267
- !compact && /* @__PURE__ */ jsx40(TextBone, { width: 12 })
6514
+ return /* @__PURE__ */ jsxs29(chakra23.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
6515
+ /* @__PURE__ */ jsx41(Bone, { circle: true, height: SIZES2[size] }),
6516
+ !compact && /* @__PURE__ */ jsx41(TextBone, { width: 12 })
6268
6517
  ] });
6269
6518
  }
6270
- const avatar = /* @__PURE__ */ jsxs28(
6519
+ const avatar = /* @__PURE__ */ jsxs29(
6271
6520
  Avatar2.Root,
6272
6521
  {
6273
6522
  colorPalette: avatarPalette(id),
@@ -6280,20 +6529,20 @@ function PersonChip({ id, name, picture, compact = false, size = "sm", loading:
6280
6529
  flexShrink: 0,
6281
6530
  ...compact ? { role: "img", "aria-label": name, title: name } : { "aria-hidden": true },
6282
6531
  children: [
6283
- /* @__PURE__ */ jsx40(Avatar2.Fallback, { name }),
6284
- picture && /* @__PURE__ */ jsx40(Avatar2.Image, { src: picture, alt: "" })
6532
+ /* @__PURE__ */ jsx41(Avatar2.Fallback, { name }),
6533
+ picture && /* @__PURE__ */ jsx41(Avatar2.Image, { src: picture, alt: "" })
6285
6534
  ]
6286
6535
  }
6287
6536
  );
6288
6537
  if (compact) return avatar;
6289
- return /* @__PURE__ */ jsxs28(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6538
+ return /* @__PURE__ */ jsxs29(chakra23.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6290
6539
  avatar,
6291
- /* @__PURE__ */ jsx40(chakra22.span, { truncate: true, children: name })
6540
+ /* @__PURE__ */ jsx41(chakra23.span, { truncate: true, children: name })
6292
6541
  ] });
6293
6542
  }
6294
6543
 
6295
6544
  // src/components/PriorityMark.tsx
6296
- import { chakra as chakra23 } from "@chakra-ui/react";
6545
+ import { chakra as chakra24 } from "@chakra-ui/react";
6297
6546
 
6298
6547
  // src/components/priority-level.ts
6299
6548
  function priorityLevel(rank, of) {
@@ -6305,12 +6554,12 @@ function priorityLevel(rank, of) {
6305
6554
  }
6306
6555
 
6307
6556
  // src/components/PriorityMark.tsx
6308
- import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
6557
+ import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
6309
6558
  function PriorityMark({ rank, of, children, title, loading }) {
6310
- if (useLoading(loading)) return /* @__PURE__ */ jsx41(TextBone, { width: 7 });
6559
+ if (useLoading(loading)) return /* @__PURE__ */ jsx42(TextBone, { width: 7 });
6311
6560
  const { bars, palette: palette3 } = priorityLevel(rank, of);
6312
- return /* @__PURE__ */ jsxs29(
6313
- chakra23.span,
6561
+ return /* @__PURE__ */ jsxs30(
6562
+ chakra24.span,
6314
6563
  {
6315
6564
  display: "inline-flex",
6316
6565
  alignItems: "center",
@@ -6321,8 +6570,8 @@ function PriorityMark({ rank, of, children, title, loading }) {
6321
6570
  "aria-label": children == null ? title : void 0,
6322
6571
  whiteSpace: "nowrap",
6323
6572
  children: [
6324
- /* @__PURE__ */ jsx41(chakra23.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx41(
6325
- chakra23.rect,
6573
+ /* @__PURE__ */ jsx42(chakra24.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx42(
6574
+ chakra24.rect,
6326
6575
  {
6327
6576
  x: i * 3 + 0.5,
6328
6577
  y: 9 - i * 3,
@@ -6333,7 +6582,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
6333
6582
  },
6334
6583
  i
6335
6584
  )) }),
6336
- children != null && /* @__PURE__ */ jsx41(chakra23.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6585
+ children != null && /* @__PURE__ */ jsx42(chakra24.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6337
6586
  ]
6338
6587
  }
6339
6588
  );
@@ -6484,7 +6733,7 @@ function useListState(source, options = {}) {
6484
6733
  const { searchDelay = 250 } = options;
6485
6734
  const [query, setQuery] = useState17(() => emptyQuery(options.initial));
6486
6735
  const [typed, setTyped] = useState17(query.search);
6487
- const [rows, setRows] = useState17(void 0);
6736
+ const [rows2, setRows] = useState17(void 0);
6488
6737
  const [total, setTotal] = useState17(0);
6489
6738
  const [busy, setBusy] = useState17(true);
6490
6739
  const [error, setError] = useState17(null);
@@ -6544,15 +6793,15 @@ function useListState(source, options = {}) {
6544
6793
  const setPageSize = useCallback10((pageSize) => change((q) => ({ ...q, pageSize, page: 1 })), [change]);
6545
6794
  const reload = useCallback10(() => setRound((r) => r + 1), []);
6546
6795
  const pages = pageCount(total, query.pageSize);
6547
- const loading = busy && rows === void 0;
6796
+ const loading = busy && rows2 === void 0;
6548
6797
  return useMemo9(
6549
6798
  () => ({
6550
6799
  query: { ...query, search: typed },
6551
- rows,
6800
+ rows: rows2,
6552
6801
  total,
6553
6802
  pages,
6554
6803
  loading,
6555
- refreshing: busy && rows !== void 0,
6804
+ refreshing: busy && rows2 !== void 0,
6556
6805
  error,
6557
6806
  setSearch: setTyped,
6558
6807
  setFilter,
@@ -6560,10 +6809,10 @@ function useListState(source, options = {}) {
6560
6809
  setPage,
6561
6810
  setPageSize,
6562
6811
  reload,
6563
- table: { rows, loading, error, sort: query.sort, onSortChange: setSort, sortMode: "manual" },
6812
+ table: { rows: rows2, loading, error, sort: query.sort, onSortChange: setSort, sortMode: "manual" },
6564
6813
  pagination: { page: query.page, pages, onPage: setPage }
6565
6814
  }),
6566
- [query, typed, rows, total, pages, loading, busy, error, setFilter, setSort, setPage, setPageSize, reload]
6815
+ [query, typed, rows2, total, pages, loading, busy, error, setFilter, setSort, setPage, setPageSize, reload]
6567
6816
  );
6568
6817
  }
6569
6818
  function useAreaListSource(area, path, options = {}) {
@@ -6574,8 +6823,8 @@ function useAreaListSource(area, path, options = {}) {
6574
6823
 
6575
6824
  // src/components/FormDialog.tsx
6576
6825
  import { useRef as useRef16, useState as useState18 } from "react";
6577
- import { chakra as chakra24, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal11, Stack as Stack7 } from "@chakra-ui/react";
6578
- import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
6826
+ import { chakra as chakra25, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal11, Stack as Stack7 } from "@chakra-ui/react";
6827
+ import { jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
6579
6828
  var isControl = (el) => el instanceof HTMLInputElement || el instanceof HTMLSelectElement || el instanceof HTMLTextAreaElement;
6580
6829
  function invalidControls(form) {
6581
6830
  return [...form.elements].filter((el) => isControl(el) && !el.disabled && el.willValidate && !el.checkValidity());
@@ -6623,9 +6872,9 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6623
6872
  mark(e.target, wrong);
6624
6873
  if (problems.length > 0) setProblems(invalidControls(e.currentTarget).map(describe2));
6625
6874
  }
6626
- return /* @__PURE__ */ jsx42(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs30(Portal11, { children: [
6627
- /* @__PURE__ */ jsx42(Dialog4.Backdrop, {}),
6628
- /* @__PURE__ */ jsx42(Dialog4.Positioner, { children: /* @__PURE__ */ jsx42(Dialog4.Content, { asChild: true, children: /* @__PURE__ */ jsxs30(
6875
+ return /* @__PURE__ */ jsx43(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs31(Portal11, { children: [
6876
+ /* @__PURE__ */ jsx43(Dialog4.Backdrop, {}),
6877
+ /* @__PURE__ */ jsx43(Dialog4.Positioner, { children: /* @__PURE__ */ jsx43(Dialog4.Content, { asChild: true, children: /* @__PURE__ */ jsxs31(
6629
6878
  "form",
6630
6879
  {
6631
6880
  onSubmit: hideSubmit ? (e) => e.preventDefault() : submit,
@@ -6633,11 +6882,11 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6633
6882
  onInput: (e) => typed.current.add(e.target),
6634
6883
  noValidate: true,
6635
6884
  children: [
6636
- /* @__PURE__ */ jsx42(Dialog4.Header, { children: /* @__PURE__ */ jsx42(Dialog4.Title, { children: title }) }),
6637
- /* @__PURE__ */ jsx42(Dialog4.Body, { children: /* @__PURE__ */ jsxs30(Stack7, { gap: "field", children: [
6638
- description != null && /* @__PURE__ */ jsx42(Dialog4.Description, { children: description }),
6639
- problems.length > 0 && /* @__PURE__ */ jsx42(chakra24.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx42(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx42(chakra24.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx42("li", { children: /* @__PURE__ */ jsx42(
6640
- chakra24.button,
6885
+ /* @__PURE__ */ jsx43(Dialog4.Header, { children: /* @__PURE__ */ jsx43(Dialog4.Title, { children: title }) }),
6886
+ /* @__PURE__ */ jsx43(Dialog4.Body, { children: /* @__PURE__ */ jsxs31(Stack7, { gap: "field", children: [
6887
+ description != null && /* @__PURE__ */ jsx43(Dialog4.Description, { children: description }),
6888
+ problems.length > 0 && /* @__PURE__ */ jsx43(chakra25.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx43(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx43(chakra25.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx43("li", { children: /* @__PURE__ */ jsx43(
6889
+ chakra25.button,
6641
6890
  {
6642
6891
  type: "button",
6643
6892
  textDecoration: "underline",
@@ -6651,13 +6900,13 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6651
6900
  }
6652
6901
  ) }, i)) }) }) }),
6653
6902
  children,
6654
- /* @__PURE__ */ jsx42(InlineAlert, { tone: "danger", children: error })
6903
+ /* @__PURE__ */ jsx43(InlineAlert, { tone: "danger", children: error })
6655
6904
  ] }) }),
6656
- /* @__PURE__ */ jsxs30(Dialog4.Footer, { children: [
6657
- /* @__PURE__ */ jsx42(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(Button, { variant: "secondary", children: labels.cancel }) }),
6658
- !hideSubmit && /* @__PURE__ */ jsx42(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
6905
+ /* @__PURE__ */ jsxs31(Dialog4.Footer, { children: [
6906
+ /* @__PURE__ */ jsx43(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx43(Button, { variant: "secondary", children: labels.cancel }) }),
6907
+ !hideSubmit && /* @__PURE__ */ jsx43(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
6659
6908
  ] }),
6660
- /* @__PURE__ */ jsx42(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6909
+ /* @__PURE__ */ jsx43(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx43(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6661
6910
  ]
6662
6911
  }
6663
6912
  ) }) })
@@ -6671,27 +6920,27 @@ import { Text as Text11 } from "@chakra-ui/react";
6671
6920
  // src/components/SearchInput.tsx
6672
6921
  import { forwardRef as forwardRef7 } from "react";
6673
6922
  import { Input as Input4, InputGroup } from "@chakra-ui/react";
6674
- import { Search as Search2 } from "lucide-react";
6675
- import { jsx as jsx43 } from "react/jsx-runtime";
6923
+ import { Search as Search3 } from "lucide-react";
6924
+ import { jsx as jsx44 } from "react/jsx-runtime";
6676
6925
  var SearchInput = forwardRef7(function SearchInput2({ size = "md", maxW, ...rest }, ref) {
6677
6926
  const skeleton = useLoading();
6678
- return /* @__PURE__ */ jsx43(
6927
+ return /* @__PURE__ */ jsx44(
6679
6928
  InputGroup,
6680
6929
  {
6681
- startElement: /* @__PURE__ */ jsx43(Search2, {}),
6930
+ startElement: /* @__PURE__ */ jsx44(Search3, {}),
6682
6931
  startOffset: "-0.25rem",
6683
6932
  startElementProps: { color: "fg.subtle", _icon: { boxSize: "4" } },
6684
6933
  maxW,
6685
6934
  borderRadius: "l2",
6686
6935
  "aria-hidden": skeleton || void 0,
6687
6936
  css: skeleton ? ghostCss : void 0,
6688
- children: /* @__PURE__ */ jsx43(Input4, { ref, type: "search", size, ...rest })
6937
+ children: /* @__PURE__ */ jsx44(Input4, { ref, type: "search", size, ...rest })
6689
6938
  }
6690
6939
  );
6691
6940
  });
6692
6941
 
6693
6942
  // src/settings/SettingsLayout.tsx
6694
- import { jsx as jsx44 } from "react/jsx-runtime";
6943
+ import { jsx as jsx45 } from "react/jsx-runtime";
6695
6944
  var isCurrent = (pathname, href) => pathname === href || pathname.startsWith(`${href}/`);
6696
6945
  function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav = [], children, ...shell }) {
6697
6946
  const [find, setFind] = useState19("");
@@ -6702,17 +6951,17 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6702
6951
  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))
6703
6952
  }));
6704
6953
  const found = !q || sections.some((s) => s.items.length > 0);
6705
- return /* @__PURE__ */ jsx44(
6954
+ return /* @__PURE__ */ jsx45(
6706
6955
  AppShell,
6707
6956
  {
6708
6957
  ...shell,
6709
6958
  topNav,
6710
6959
  sidebar: {
6711
6960
  id: sidebarId,
6712
- top: /* @__PURE__ */ jsx44(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
6961
+ top: /* @__PURE__ */ jsx45(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
6713
6962
  sections
6714
6963
  },
6715
- navFooter: !found ? /* @__PURE__ */ jsx44(Text11, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
6964
+ navFooter: !found ? /* @__PURE__ */ jsx45(Text11, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
6716
6965
  children
6717
6966
  }
6718
6967
  );
@@ -6720,7 +6969,7 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6720
6969
 
6721
6970
  // src/components/SegmentedControl.tsx
6722
6971
  import { SegmentGroup } from "@chakra-ui/react";
6723
- import { jsx as jsx45, jsxs as jsxs31 } from "react/jsx-runtime";
6972
+ import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
6724
6973
  function SegmentedControl({
6725
6974
  "aria-label": ariaLabel,
6726
6975
  items,
@@ -6732,7 +6981,7 @@ function SegmentedControl({
6732
6981
  }) {
6733
6982
  const loading = useLoading(own);
6734
6983
  const h = size === "sm" ? "7" : "8";
6735
- return /* @__PURE__ */ jsxs31(
6984
+ return /* @__PURE__ */ jsxs32(
6736
6985
  SegmentGroup.Root,
6737
6986
  {
6738
6987
  size: size === "sm" ? "sm" : "md",
@@ -6749,8 +6998,8 @@ function SegmentedControl({
6749
6998
  w: fitted ? "full" : void 0,
6750
6999
  "data-segmented": "",
6751
7000
  children: [
6752
- /* @__PURE__ */ jsx45(SegmentGroup.Indicator, {}),
6753
- items.map((item) => /* @__PURE__ */ jsxs31(
7001
+ /* @__PURE__ */ jsx46(SegmentGroup.Indicator, {}),
7002
+ items.map((item) => /* @__PURE__ */ jsxs32(
6754
7003
  SegmentGroup.Item,
6755
7004
  {
6756
7005
  value: item.value,
@@ -6771,9 +7020,9 @@ function SegmentedControl({
6771
7020
  _icon: { boxSize: "4", flexShrink: 0 },
6772
7021
  children: [
6773
7022
  item.icon,
6774
- /* @__PURE__ */ jsx45(SegmentGroup.ItemText, { children: item.label }),
6775
- item.count != null && /* @__PURE__ */ jsx45(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
6776
- /* @__PURE__ */ jsx45(SegmentGroup.ItemHiddenInput, {})
7023
+ /* @__PURE__ */ jsx46(SegmentGroup.ItemText, { children: item.label }),
7024
+ item.count != null && /* @__PURE__ */ jsx46(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
7025
+ /* @__PURE__ */ jsx46(SegmentGroup.ItemHiddenInput, {})
6777
7026
  ]
6778
7027
  },
6779
7028
  item.value
@@ -6785,7 +7034,7 @@ function SegmentedControl({
6785
7034
 
6786
7035
  // src/components/KanbanBoard.tsx
6787
7036
  import { useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef17, useState as useState20 } from "react";
6788
- import { Box as Box8, chakra as chakra25, HStack as HStack8, Stack as Stack8, Text as Text12 } from "@chakra-ui/react";
7037
+ import { Box as Box9, chakra as chakra26, HStack as HStack8, Stack as Stack8, Text as Text12 } from "@chakra-ui/react";
6789
7038
  import { Check as Check2, ChevronsLeft, ChevronsRight, GripVertical as GripVertical3 } from "lucide-react";
6790
7039
  import {
6791
7040
  DndContext as DndContext2,
@@ -6821,13 +7070,13 @@ function between(cell, from, to) {
6821
7070
  }
6822
7071
 
6823
7072
  // src/components/KanbanBoard.tsx
6824
- import { Fragment as Fragment14, jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
7073
+ import { Fragment as Fragment14, jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
6825
7074
  var SKELETON_CARDS = [3, 2, 4, 1, 2];
6826
7075
  function PlaceholderCard({ index }) {
6827
- return /* @__PURE__ */ jsxs32(Box8, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
6828
- /* @__PURE__ */ jsx46(Box8, { mb: "1", children: /* @__PURE__ */ jsx46(RecordKey, { loading: true }) }),
6829
- /* @__PURE__ */ jsx46(Text12, { textStyle: "body.sm", children: /* @__PURE__ */ jsx46(TextBone, { width: boneWidth(index, 14, 34) }) }),
6830
- /* @__PURE__ */ jsx46(HStack8, { mt: "2", children: /* @__PURE__ */ jsx46(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
7076
+ return /* @__PURE__ */ jsxs33(Box9, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
7077
+ /* @__PURE__ */ jsx47(Box9, { mb: "1", children: /* @__PURE__ */ jsx47(RecordKey, { loading: true }) }),
7078
+ /* @__PURE__ */ jsx47(Text12, { textStyle: "body.sm", children: /* @__PURE__ */ jsx47(TextBone, { width: boneWidth(index, 14, 34) }) }),
7079
+ /* @__PURE__ */ jsx47(HStack8, { mt: "2", children: /* @__PURE__ */ jsx47(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
6831
7080
  ] });
6832
7081
  }
6833
7082
  var cellId = (lane, column) => `cell:${lane}::${column}`;
@@ -6873,8 +7122,8 @@ function KanbanBoard({
6873
7122
  ids.splice(to, 0, id);
6874
7123
  onReorderColumns(ids);
6875
7124
  };
6876
- const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx46(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
6877
- const rows = lanes && lanes.length > 0 ? lanes : [{ id: "", title: null }];
7125
+ const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx47(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
7126
+ const rows2 = lanes && lanes.length > 0 ? lanes : [{ id: "", title: null }];
6878
7127
  const sensors = useSensors2(
6879
7128
  useSensor2(PointerSensor2, { activationConstraint: { distance: 6 } }),
6880
7129
  useSensor2(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates })
@@ -6985,7 +7234,7 @@ function KanbanBoard({
6985
7234
  document.addEventListener("keydown", key);
6986
7235
  return () => document.removeEventListener("keydown", key);
6987
7236
  }, [onSelect, selected, active]);
6988
- return /* @__PURE__ */ jsxs32(
7237
+ return /* @__PURE__ */ jsxs33(
6989
7238
  DndContext2,
6990
7239
  {
6991
7240
  sensors,
@@ -6998,8 +7247,8 @@ function KanbanBoard({
6998
7247
  },
6999
7248
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
7000
7249
  children: [
7001
- /* @__PURE__ */ jsx46(
7002
- Box8,
7250
+ /* @__PURE__ */ jsx47(
7251
+ Box9,
7003
7252
  {
7004
7253
  ref: region,
7005
7254
  role: "region",
@@ -7011,8 +7260,8 @@ function KanbanBoard({
7011
7260
  if (Date.now() - draggedAt.current < 300) return;
7012
7261
  if (e.target instanceof Element && !e.target.closest("[data-card], a, button, input, select, textarea")) clear();
7013
7262
  },
7014
- children: /* @__PURE__ */ jsx46(Loading, { when: loading, children: /* @__PURE__ */ jsxs32(
7015
- Box8,
7263
+ children: /* @__PURE__ */ jsx47(Loading, { when: loading, children: /* @__PURE__ */ jsxs33(
7264
+ Box9,
7016
7265
  {
7017
7266
  display: "grid",
7018
7267
  gridTemplateColumns: shownColumns.map((c2) => folded.has(c2.id) ? "3rem" : "minmax(288px, 1fr)").join(" "),
@@ -7022,8 +7271,8 @@ function KanbanBoard({
7022
7271
  shownColumns.map((c2) => {
7023
7272
  const isFolded = folded.has(c2.id);
7024
7273
  const name = c2.name ?? (typeof c2.title === "string" ? c2.title : c2.id);
7025
- return /* @__PURE__ */ jsxs32(
7026
- Box8,
7274
+ return /* @__PURE__ */ jsxs33(
7275
+ Box9,
7027
7276
  {
7028
7277
  position: "sticky",
7029
7278
  top: "0",
@@ -7047,8 +7296,8 @@ function KanbanBoard({
7047
7296
  }
7048
7297
  } : {},
7049
7298
  children: [
7050
- overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx46(
7051
- Box8,
7299
+ overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx47(
7300
+ Box9,
7052
7301
  {
7053
7302
  position: "absolute",
7054
7303
  inset: "0",
@@ -7064,10 +7313,10 @@ function KanbanBoard({
7064
7313
  roundedTop: "l3",
7065
7314
  bg: "bg.panel",
7066
7315
  "data-drop-column": "",
7067
- children: /* @__PURE__ */ jsx46(Text12, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
7316
+ children: /* @__PURE__ */ jsx47(Text12, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
7068
7317
  }
7069
7318
  ),
7070
- isFolded ? /* @__PURE__ */ jsx46(
7319
+ isFolded ? /* @__PURE__ */ jsx47(
7071
7320
  Stack8,
7072
7321
  {
7073
7322
  align: "center",
@@ -7080,9 +7329,9 @@ function KanbanBoard({
7080
7329
  roundedTop: "l3",
7081
7330
  bg: c2.over ? "red.subtle" : "bg.subtle",
7082
7331
  h: "full",
7083
- children: /* @__PURE__ */ jsx46(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
7332
+ children: /* @__PURE__ */ jsx47(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
7084
7333
  }
7085
- ) : /* @__PURE__ */ jsxs32(
7334
+ ) : /* @__PURE__ */ jsxs33(
7086
7335
  HStack8,
7087
7336
  {
7088
7337
  justify: "space-between",
@@ -7099,8 +7348,8 @@ function KanbanBoard({
7099
7348
  h: "full",
7100
7349
  align: "start",
7101
7350
  children: [
7102
- /* @__PURE__ */ jsxs32(HStack8, { gap: "2", minW: "0", children: [
7103
- onReorderColumns && !loading && /* @__PURE__ */ jsx46(
7351
+ /* @__PURE__ */ jsxs33(HStack8, { gap: "2", minW: "0", children: [
7352
+ onReorderColumns && !loading && /* @__PURE__ */ jsx47(
7104
7353
  ColumnGrip,
7105
7354
  {
7106
7355
  label: reorderLabel(name, columns.findIndex((x) => x.id === c2.id) + 1, columns.length),
@@ -7113,11 +7362,11 @@ function KanbanBoard({
7113
7362
  onStep: (by) => reorder(c2.id, columns.findIndex((x) => x.id === c2.id) + by)
7114
7363
  }
7115
7364
  ),
7116
- /* @__PURE__ */ jsx46(Text12, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
7117
- c2.count != null && /* @__PURE__ */ jsx46(CountBadge, { value: c2.count }),
7118
- c2.meta && /* @__PURE__ */ jsx46(Text12, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
7365
+ /* @__PURE__ */ jsx47(Text12, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
7366
+ c2.count != null && /* @__PURE__ */ jsx47(CountBadge, { value: c2.count }),
7367
+ c2.meta && /* @__PURE__ */ jsx47(Text12, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
7119
7368
  ] }),
7120
- !loading && /* @__PURE__ */ jsx46(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7369
+ !loading && /* @__PURE__ */ jsx47(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7121
7370
  ]
7122
7371
  }
7123
7372
  )
@@ -7126,20 +7375,20 @@ function KanbanBoard({
7126
7375
  c2.id
7127
7376
  );
7128
7377
  }),
7129
- rows.map((lane) => /* @__PURE__ */ jsx46(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci) => {
7378
+ rows2.map((lane) => /* @__PURE__ */ jsx47(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci2) => {
7130
7379
  const id = cellId(lane.id, c2.id);
7131
7380
  const list = byCell.get(id) ?? [];
7132
7381
  const allowed = active ? canDrop?.(active, c2.id, lane.id) !== false : true;
7133
- const last = lane.id === rows[rows.length - 1].id;
7382
+ const last = lane.id === rows2[rows2.length - 1].id;
7134
7383
  if (folded.has(c2.id)) {
7135
- return /* @__PURE__ */ jsxs32(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
7136
- lane.id === rows[0].id && c2.count != null && /* @__PURE__ */ jsx46(Box8, { alignSelf: "center", children: /* @__PURE__ */ jsx46(CountBadge, { value: c2.count }) }),
7137
- lane.id === rows[0].id && /* @__PURE__ */ jsx46(Box8, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
7384
+ return /* @__PURE__ */ jsxs33(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
7385
+ lane.id === rows2[0].id && c2.count != null && /* @__PURE__ */ jsx47(Box9, { alignSelf: "center", children: /* @__PURE__ */ jsx47(CountBadge, { value: c2.count }) }),
7386
+ lane.id === rows2[0].id && /* @__PURE__ */ jsx47(Box9, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
7138
7387
  ] }, id);
7139
7388
  }
7140
7389
  const footer = last && !loading ? columnFooter?.(c2.id) : null;
7141
- return /* @__PURE__ */ jsxs32(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
7142
- list.map((item) => /* @__PURE__ */ jsx46(
7390
+ return /* @__PURE__ */ jsxs33(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
7391
+ list.map((item) => /* @__PURE__ */ jsx47(
7143
7392
  SortableCard,
7144
7393
  {
7145
7394
  id: item.id,
@@ -7151,8 +7400,8 @@ function KanbanBoard({
7151
7400
  item.id
7152
7401
  )),
7153
7402
  loading && list.length === 0 && // Not the board's cards: no data-slide, and not in its placement (ADR 0058's slides skip them).
7154
- Array.from({ length: SKELETON_CARDS[ci % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx46(Box8, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci * 5 + n) : /* @__PURE__ */ jsx46(PlaceholderCard, { index: ci * 5 + n }) }, `skeleton-${n}`)),
7155
- !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx46(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx46(EmptyState, { size: "xs", title: empty })),
7403
+ Array.from({ length: SKELETON_CARDS[ci2 % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx47(Box9, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci2 * 5 + n) : /* @__PURE__ */ jsx47(PlaceholderCard, { index: ci2 * 5 + n }) }, `skeleton-${n}`)),
7404
+ !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx47(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx47(EmptyState, { size: "xs", title: empty })),
7156
7405
  footer
7157
7406
  ] }, id);
7158
7407
  }) }, lane.id))
@@ -7161,23 +7410,23 @@ function KanbanBoard({
7161
7410
  ) })
7162
7411
  }
7163
7412
  ),
7164
- /* @__PURE__ */ jsx46(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx46(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
7413
+ /* @__PURE__ */ jsx47(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx47(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
7165
7414
  ]
7166
7415
  }
7167
7416
  );
7168
7417
  }
7169
7418
  function LaneRow({ lane, showTitle, span, children }) {
7170
- return /* @__PURE__ */ jsxs32(Fragment14, { children: [
7171
- showTitle && /* @__PURE__ */ jsxs32(HStack8, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
7172
- /* @__PURE__ */ jsx46(Text12, { textStyle: "label", children: lane.title }),
7173
- lane.meta && /* @__PURE__ */ jsx46(Text12, { textStyle: "caption", color: "fg.muted", children: lane.meta })
7419
+ return /* @__PURE__ */ jsxs33(Fragment14, { children: [
7420
+ showTitle && /* @__PURE__ */ jsxs33(HStack8, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
7421
+ /* @__PURE__ */ jsx47(Text12, { textStyle: "label", children: lane.title }),
7422
+ lane.meta && /* @__PURE__ */ jsx47(Text12, { textStyle: "caption", color: "fg.muted", children: lane.meta })
7174
7423
  ] }),
7175
7424
  children
7176
7425
  ] });
7177
7426
  }
7178
7427
  function Cell({ id, items, allowed, dragging, column, lane, folded = false, last = true, children }) {
7179
7428
  const { setNodeRef, isOver } = useDroppable2({ id, disabled: !allowed });
7180
- return /* @__PURE__ */ jsx46(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx46(
7429
+ return /* @__PURE__ */ jsx47(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx47(
7181
7430
  Stack8,
7182
7431
  {
7183
7432
  ref: setNodeRef,
@@ -7206,8 +7455,8 @@ function SortableCard({
7206
7455
  children
7207
7456
  }) {
7208
7457
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable({ id, animateLayoutChanges: () => false });
7209
- return /* @__PURE__ */ jsxs32(
7210
- Box8,
7458
+ return /* @__PURE__ */ jsxs33(
7459
+ Box9,
7211
7460
  {
7212
7461
  ref: setNodeRef,
7213
7462
  position: "relative",
@@ -7225,8 +7474,8 @@ function SortableCard({
7225
7474
  cursor: "grab",
7226
7475
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", rounded: "l2" },
7227
7476
  children: [
7228
- /* @__PURE__ */ jsx46(Box8, { "data-slide": id, children: children(isDragging) }),
7229
- selected && !isDragging && !riding && /* @__PURE__ */ jsx46(Mark, {})
7477
+ /* @__PURE__ */ jsx47(Box9, { "data-slide": id, children: children(isDragging) }),
7478
+ selected && !isDragging && !riding && /* @__PURE__ */ jsx47(Mark, {})
7230
7479
  ]
7231
7480
  }
7232
7481
  );
@@ -7254,9 +7503,9 @@ function Lifted({ carried, count, reduce, children }) {
7254
7503
  held.current?.animate?.([{ transform: "none", boxShadow: tv("shadows.sm") }, { transform: HELD, boxShadow: tv("shadows.xl") }], { duration: 160, easing: OUT2 });
7255
7504
  }, []);
7256
7505
  const layers = Math.min(2, Math.max(0, carried - 1));
7257
- return /* @__PURE__ */ jsxs32(Box8, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7258
- Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx46(
7259
- Box8,
7506
+ return /* @__PURE__ */ jsxs33(Box9, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7507
+ Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx47(
7508
+ Box9,
7260
7509
  {
7261
7510
  "data-layer": true,
7262
7511
  position: "absolute",
@@ -7270,8 +7519,8 @@ function Lifted({ carried, count, reduce, children }) {
7270
7519
  },
7271
7520
  i
7272
7521
  )),
7273
- /* @__PURE__ */ jsx46(Box8, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
7274
- count != null && /* @__PURE__ */ jsx46(Count, { children: count })
7522
+ /* @__PURE__ */ jsx47(Box9, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
7523
+ count != null && /* @__PURE__ */ jsx47(Count, { children: count })
7275
7524
  ] });
7276
7525
  }
7277
7526
  function Mark() {
@@ -7284,8 +7533,8 @@ function Mark() {
7284
7533
  easing: OUT2
7285
7534
  });
7286
7535
  }, []);
7287
- return /* @__PURE__ */ jsx46(
7288
- chakra25.span,
7536
+ return /* @__PURE__ */ jsx47(
7537
+ chakra26.span,
7289
7538
  {
7290
7539
  ref,
7291
7540
  position: "absolute",
@@ -7301,13 +7550,13 @@ function Mark() {
7301
7550
  pointerEvents: "none",
7302
7551
  "aria-hidden": "true",
7303
7552
  _icon: { boxSize: "3" },
7304
- children: /* @__PURE__ */ jsx46(Check2, { strokeWidth: 3 })
7553
+ children: /* @__PURE__ */ jsx47(Check2, { strokeWidth: 3 })
7305
7554
  }
7306
7555
  );
7307
7556
  }
7308
7557
  function Count({ children }) {
7309
- return /* @__PURE__ */ jsx46(
7310
- chakra25.span,
7558
+ return /* @__PURE__ */ jsx47(
7559
+ chakra26.span,
7311
7560
  {
7312
7561
  position: "absolute",
7313
7562
  top: "-3.5",
@@ -7329,8 +7578,8 @@ function Count({ children }) {
7329
7578
  );
7330
7579
  }
7331
7580
  function FoldButton({ folded, label, onClick }) {
7332
- return /* @__PURE__ */ jsx46(
7333
- chakra25.button,
7581
+ return /* @__PURE__ */ jsx47(
7582
+ chakra26.button,
7334
7583
  {
7335
7584
  type: "button",
7336
7585
  display: "inline-flex",
@@ -7350,7 +7599,7 @@ function FoldButton({ folded, label, onClick }) {
7350
7599
  title: label,
7351
7600
  "aria-expanded": !folded,
7352
7601
  onClick,
7353
- children: /* @__PURE__ */ jsx46(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx46(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx46(ChevronsLeft, { size: 16 }) })
7602
+ children: /* @__PURE__ */ jsx47(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx47(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx47(ChevronsLeft, { size: 16 }) })
7354
7603
  }
7355
7604
  );
7356
7605
  }
@@ -7380,8 +7629,8 @@ function useFolded(key) {
7380
7629
  return [folded, fold];
7381
7630
  }
7382
7631
  function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7383
- return /* @__PURE__ */ jsx46(
7384
- chakra25.button,
7632
+ return /* @__PURE__ */ jsx47(
7633
+ chakra26.button,
7385
7634
  {
7386
7635
  type: "button",
7387
7636
  draggable: true,
@@ -7414,27 +7663,27 @@ function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7414
7663
  onDragStart();
7415
7664
  },
7416
7665
  onDragEnd,
7417
- children: /* @__PURE__ */ jsx46(GripVertical3, {})
7666
+ children: /* @__PURE__ */ jsx47(GripVertical3, {})
7418
7667
  }
7419
7668
  );
7420
7669
  }
7421
7670
 
7422
7671
  // src/components/LoadingState.tsx
7423
- import { Box as Box9, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
7424
- import { jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
7672
+ import { Box as Box10, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
7673
+ import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
7425
7674
  function LoadingState({ lines = 3, label }) {
7426
7675
  const labels = useAbpLabels();
7427
- return /* @__PURE__ */ jsxs33(Box9, { "aria-busy": "true", role: "status", children: [
7428
- /* @__PURE__ */ jsx47(VisuallyHidden2, { children: label ?? labels.loading }),
7429
- /* @__PURE__ */ jsx47(TextBone, { lines, width: "full" })
7676
+ return /* @__PURE__ */ jsxs34(Box10, { "aria-busy": "true", role: "status", children: [
7677
+ /* @__PURE__ */ jsx48(VisuallyHidden2, { children: label ?? labels.loading }),
7678
+ /* @__PURE__ */ jsx48(TextBone, { lines, width: "full" })
7430
7679
  ] });
7431
7680
  }
7432
7681
 
7433
7682
  // src/components/PageHeader.tsx
7434
7683
  import { Fragment as Fragment15 } from "react";
7435
- import { Breadcrumb, chakra as chakra26, Menu as Menu2, Portal as Portal12, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
7684
+ import { Breadcrumb, chakra as chakra27, Menu as Menu2, Portal as Portal12, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
7436
7685
  import { ChevronRight as ChevronRight3 } from "lucide-react";
7437
- import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
7686
+ import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
7438
7687
  var textOf = (label) => typeof label === "string" || typeof label === "number" ? String(label) : void 0;
7439
7688
  function PageHeader({ title, description, breadcrumbs, meta, count, adornments, actions, loading: own, titleWidth = 24, documentTitle }) {
7440
7689
  const recipe = useSlotRecipe4({ key: "abpPageHeader" });
@@ -7443,33 +7692,33 @@ function PageHeader({ title, description, breadcrumbs, meta, count, adornments,
7443
7692
  usePageTitle(documentTitle !== void 0 ? documentTitle : text ? [text, where] : null);
7444
7693
  const styles = recipe({});
7445
7694
  const loading = useLoading(own);
7446
- return /* @__PURE__ */ jsxs34(chakra26.div, { css: styles.root, children: [
7447
- breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx48(Breadcrumbs, { items: breadcrumbs }),
7448
- /* @__PURE__ */ jsxs34(chakra26.div, { css: styles.row, children: [
7449
- /* @__PURE__ */ jsxs34(chakra26.div, { css: styles.titleGroup, children: [
7450
- count != null || adornments != null ? /* @__PURE__ */ jsxs34(chakra26.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
7451
- /* @__PURE__ */ jsx48(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx48(TextBone, { width: titleWidth }) : title }),
7452
- count != null && /* @__PURE__ */ jsx48(CountBadge, { value: count, size: "md" }),
7695
+ return /* @__PURE__ */ jsxs35(chakra27.div, { css: styles.root, children: [
7696
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx49(Breadcrumbs, { items: breadcrumbs }),
7697
+ /* @__PURE__ */ jsxs35(chakra27.div, { css: styles.row, children: [
7698
+ /* @__PURE__ */ jsxs35(chakra27.div, { css: styles.titleGroup, children: [
7699
+ count != null || adornments != null ? /* @__PURE__ */ jsxs35(chakra27.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
7700
+ /* @__PURE__ */ jsx49(chakra27.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx49(TextBone, { width: titleWidth }) : title }),
7701
+ count != null && /* @__PURE__ */ jsx49(CountBadge, { value: count, size: "md" }),
7453
7702
  adornments
7454
- ] }) : /* @__PURE__ */ jsx48(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx48(TextBone, { width: titleWidth }) : title }),
7455
- meta != null && /* @__PURE__ */ jsx48(chakra26.div, { css: styles.meta, children: meta }),
7456
- description != null && /* @__PURE__ */ jsx48(chakra26.p, { css: styles.description, children: description })
7703
+ ] }) : /* @__PURE__ */ jsx49(chakra27.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx49(TextBone, { width: titleWidth }) : title }),
7704
+ meta != null && /* @__PURE__ */ jsx49(chakra27.div, { css: styles.meta, children: meta }),
7705
+ description != null && /* @__PURE__ */ jsx49(chakra27.p, { css: styles.description, children: description })
7457
7706
  ] }),
7458
- actions != null && /* @__PURE__ */ jsx48(chakra26.div, { css: styles.actions, children: actions })
7707
+ actions != null && /* @__PURE__ */ jsx49(chakra27.div, { css: styles.actions, children: actions })
7459
7708
  ] })
7460
7709
  ] });
7461
7710
  }
7462
7711
  function Breadcrumbs({ items, loading: own }) {
7463
7712
  const labels = useAbpLabels();
7464
7713
  const loading = useLoading(own);
7465
- const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx48(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7714
+ const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx49(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7466
7715
  const Link = useLinkComponent();
7467
7716
  const { shown, hidden } = foldBreadcrumbs(items);
7468
- return /* @__PURE__ */ jsx48(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx48(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs34(Fragment15, { children: [
7469
- n > 0 && /* @__PURE__ */ jsx48(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx48(ChevronRight3, {}) }),
7470
- entry == null ? /* @__PURE__ */ jsx48(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs34(Menu2.Root, { positioning: { placement: "bottom-start" }, children: [
7471
- /* @__PURE__ */ jsx48(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx48(
7472
- chakra26.button,
7717
+ return /* @__PURE__ */ jsx49(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx49(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs35(Fragment15, { children: [
7718
+ n > 0 && /* @__PURE__ */ jsx49(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx49(ChevronRight3, {}) }),
7719
+ entry == null ? /* @__PURE__ */ jsx49(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs35(Menu2.Root, { positioning: { placement: "bottom-start" }, children: [
7720
+ /* @__PURE__ */ jsx49(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx49(
7721
+ chakra27.button,
7473
7722
  {
7474
7723
  type: "button",
7475
7724
  px: "1",
@@ -7483,74 +7732,74 @@ function Breadcrumbs({ items, loading: own }) {
7483
7732
  children: "\u2026"
7484
7733
  }
7485
7734
  ) }),
7486
- /* @__PURE__ */ jsx48(Portal12, { children: /* @__PURE__ */ jsx48(Menu2.Positioner, { children: /* @__PURE__ */ jsx48(Menu2.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx48(Menu2.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx48(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx48("span", { children: h.label }) }, k)) }) }) })
7487
- ] }) }) : /* @__PURE__ */ jsx48(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx48(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx48(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx48(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
7735
+ /* @__PURE__ */ jsx49(Portal12, { children: /* @__PURE__ */ jsx49(Menu2.Positioner, { children: /* @__PURE__ */ jsx49(Menu2.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx49(Menu2.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx49(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx49("span", { children: h.label }) }, k)) }) }) })
7736
+ ] }) }) : /* @__PURE__ */ jsx49(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx49(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx49(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx49(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
7488
7737
  ] }, entry ? entry.index : "more")) }) });
7489
7738
  }
7490
7739
 
7491
7740
  // src/components/Panel.tsx
7492
7741
  import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11 } from "react";
7493
- import { chakra as chakra27, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
7494
- import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
7742
+ import { chakra as chakra28, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
7743
+ import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
7495
7744
  var ToneContext = createContext11("card");
7496
7745
  function PanelTone({ tone, children }) {
7497
- return /* @__PURE__ */ jsx49(ToneContext.Provider, { value: tone, children });
7746
+ return /* @__PURE__ */ jsx50(ToneContext.Provider, { value: tone, children });
7498
7747
  }
7499
7748
  var Panel = forwardRef8(function Panel2({ title, description, actions, footer, flush = false, headingAs = "h2", loading, tone, children, css, ...rest }, ref) {
7500
7749
  const recipe = useSlotRecipe5({ key: "abpPanel" });
7501
7750
  const inherited = useContext11(ToneContext);
7502
7751
  const styles = recipe({ flush, tone: tone ?? inherited });
7503
7752
  const hasHeader = title != null || actions != null || description != null;
7504
- return /* @__PURE__ */ jsxs35(chakra27.section, { ref, css: [styles.root, css], ...rest, children: [
7505
- hasHeader && /* @__PURE__ */ jsxs35(chakra27.header, { css: styles.header, children: [
7506
- /* @__PURE__ */ jsxs35(chakra27.div, { css: styles.titleGroup, children: [
7507
- title != null && /* @__PURE__ */ jsx49(chakra27.h2, { as: headingAs, css: styles.title, children: title }),
7508
- description != null && /* @__PURE__ */ jsx49(chakra27.p, { css: styles.description, children: description })
7753
+ return /* @__PURE__ */ jsxs36(chakra28.section, { ref, css: [styles.root, css], ...rest, children: [
7754
+ hasHeader && /* @__PURE__ */ jsxs36(chakra28.header, { css: styles.header, children: [
7755
+ /* @__PURE__ */ jsxs36(chakra28.div, { css: styles.titleGroup, children: [
7756
+ title != null && /* @__PURE__ */ jsx50(chakra28.h2, { as: headingAs, css: styles.title, children: title }),
7757
+ description != null && /* @__PURE__ */ jsx50(chakra28.p, { css: styles.description, children: description })
7509
7758
  ] }),
7510
- actions != null && /* @__PURE__ */ jsx49(chakra27.div, { css: styles.actions, children: actions })
7759
+ actions != null && /* @__PURE__ */ jsx50(chakra28.div, { css: styles.actions, children: actions })
7511
7760
  ] }),
7512
- /* @__PURE__ */ jsx49(chakra27.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx49(Loading, { when: loading, children }) }),
7513
- footer != null && /* @__PURE__ */ jsx49(chakra27.footer, { css: styles.footer, children: footer })
7761
+ /* @__PURE__ */ jsx50(chakra28.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx50(Loading, { when: loading, children }) }),
7762
+ footer != null && /* @__PURE__ */ jsx50(chakra28.footer, { css: styles.footer, children: footer })
7514
7763
  ] });
7515
7764
  });
7516
7765
 
7517
7766
  // src/components/PathChips.tsx
7518
- import { chakra as chakra28, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
7767
+ import { chakra as chakra29, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
7519
7768
  import { ChevronRight as ChevronRight4 } from "lucide-react";
7520
- import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
7769
+ import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
7521
7770
  function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3, css, ...rest }) {
7522
7771
  const labels = useAbpLabels();
7523
7772
  const recipe = useSlotRecipe6({ key: "abpPathChips" });
7524
7773
  const styles = recipe({});
7525
7774
  const loading = useLoading(own) && path.length === 0;
7526
7775
  const segments = loading ? Array.from({ length: skeletonCount }, (_, i) => "\xA0".repeat(boneWidth(i, 6, 12))) : path;
7527
- return /* @__PURE__ */ jsx50(chakra28.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs36(chakra28.li, { css: styles.item, children: [
7528
- i > 0 && /* @__PURE__ */ jsx50(chakra28.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx50(ChevronRight4, {}) }),
7529
- /* @__PURE__ */ jsx50(chakra28.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
7776
+ return /* @__PURE__ */ jsx51(chakra29.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs37(chakra29.li, { css: styles.item, children: [
7777
+ i > 0 && /* @__PURE__ */ jsx51(chakra29.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx51(ChevronRight4, {}) }),
7778
+ /* @__PURE__ */ jsx51(chakra29.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
7530
7779
  ] }, `${i}:${segment}`)) });
7531
7780
  }
7532
7781
 
7533
7782
  // src/components/PropertyList.tsx
7534
- import { chakra as chakra29, DataList } from "@chakra-ui/react";
7535
- import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
7783
+ import { chakra as chakra30, DataList } from "@chakra-ui/react";
7784
+ import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
7536
7785
  function PropertyList({ items, size = "md", loading: own }) {
7537
7786
  const loading = useLoading(own);
7538
7787
  const arriving = useArriving(loading);
7539
- return /* @__PURE__ */ jsx51(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs37(DataList.Item, { children: [
7540
- /* @__PURE__ */ jsx51(DataList.ItemLabel, { children: item.label }),
7541
- /* @__PURE__ */ jsx51(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx51(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx51(chakra29.span, { css: arriveCss, children: item.value }) : item.value })
7788
+ return /* @__PURE__ */ jsx52(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs38(DataList.Item, { children: [
7789
+ /* @__PURE__ */ jsx52(DataList.ItemLabel, { children: item.label }),
7790
+ /* @__PURE__ */ jsx52(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx52(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx52(chakra30.span, { css: arriveCss, children: item.value }) : item.value })
7542
7791
  ] }, item.id ?? i)) });
7543
7792
  }
7544
7793
 
7545
7794
  // src/components/QueryableList.tsx
7546
7795
  import { useEffect as useEffect15, useId as useId5, useMemo as useMemo12, useRef as useRef19, useState as useState22 } from "react";
7547
7796
  import { createPortal } from "react-dom";
7548
- import { Box as Box10, chakra as chakra31, HStack as HStack11, Input as Input6, Menu as Menu3, Portal as Portal15, Stack as Stack11, Text as Text15 } from "@chakra-ui/react";
7797
+ import { Box as Box11, chakra as chakra32, HStack as HStack11, Input as Input6, Menu as Menu3, Portal as Portal15, Stack as Stack11, Text as Text15 } from "@chakra-ui/react";
7549
7798
  import { ArrowDownWideNarrow, ArrowUpNarrowWide, ChevronDown as ChevronDown3, Download, Filter, Rows3, Save, Trash2 as Trash22, X as X2 } from "lucide-react";
7550
7799
 
7551
7800
  // src/components/query/ColumnsPopover.tsx
7552
7801
  import { useMemo as useMemo11 } from "react";
7553
- import { chakra as chakra30, HStack as HStack9, Popover as Popover3, Portal as Portal13, Stack as Stack9, Switch as Switch2, Text as Text13 } from "@chakra-ui/react";
7802
+ import { chakra as chakra31, HStack as HStack9, Popover as Popover3, Portal as Portal13, Stack as Stack9, Switch as Switch2, Text as Text13 } from "@chakra-ui/react";
7554
7803
  import {
7555
7804
  closestCenter,
7556
7805
  DndContext as DndContext3,
@@ -7562,7 +7811,7 @@ import {
7562
7811
  import { arrayMove, SortableContext as SortableContext2, sortableKeyboardCoordinates as sortableKeyboardCoordinates2, useSortable as useSortable2, verticalListSortingStrategy as verticalListSortingStrategy2 } from "@dnd-kit/sortable";
7563
7812
  import { CSS as CSS3 } from "@dnd-kit/utilities";
7564
7813
  import { Columns3, GripVertical as GripVertical4 } from "lucide-react";
7565
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
7814
+ import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
7566
7815
  function fill(template, values) {
7567
7816
  return template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
7568
7817
  }
@@ -7579,19 +7828,19 @@ function ColumnsPopover({ fields, columns, onChange }) {
7579
7828
  if (from < 0 || to < 0) return;
7580
7829
  onChange(arrayMove(columns, from, to));
7581
7830
  }
7582
- return /* @__PURE__ */ jsxs38(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
7583
- /* @__PURE__ */ jsx52(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
7584
- /* @__PURE__ */ jsx52(Columns3, {}),
7831
+ return /* @__PURE__ */ jsxs39(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
7832
+ /* @__PURE__ */ jsx53(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs39(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
7833
+ /* @__PURE__ */ jsx53(Columns3, {}),
7585
7834
  labels.columns
7586
7835
  ] }) }),
7587
- /* @__PURE__ */ jsx52(Portal13, { children: /* @__PURE__ */ jsx52(Popover3.Positioner, { children: /* @__PURE__ */ jsx52(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs38(Popover3.Body, { p: "0", children: [
7588
- /* @__PURE__ */ jsxs38(HStack9, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
7589
- /* @__PURE__ */ jsx52(Text13, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
7590
- /* @__PURE__ */ jsx52(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
7836
+ /* @__PURE__ */ jsx53(Portal13, { children: /* @__PURE__ */ jsx53(Popover3.Positioner, { children: /* @__PURE__ */ jsx53(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs39(Popover3.Body, { p: "0", children: [
7837
+ /* @__PURE__ */ jsxs39(HStack9, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
7838
+ /* @__PURE__ */ jsx53(Text13, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
7839
+ /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
7591
7840
  ] }),
7592
- /* @__PURE__ */ jsx52(Text13, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
7593
- /* @__PURE__ */ jsxs38(chakra30.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
7594
- /* @__PURE__ */ jsx52(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx52(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx52(Stack9, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx52(
7841
+ /* @__PURE__ */ jsx53(Text13, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
7842
+ /* @__PURE__ */ jsxs39(chakra31.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
7843
+ /* @__PURE__ */ jsx53(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx53(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx53(Stack9, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx53(
7595
7844
  ColumnRow,
7596
7845
  {
7597
7846
  id,
@@ -7602,7 +7851,7 @@ function ColumnsPopover({ fields, columns, onChange }) {
7602
7851
  },
7603
7852
  id
7604
7853
  )) }) }) }),
7605
- hidden.length > 0 && /* @__PURE__ */ jsx52(Stack9, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx52(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
7854
+ hidden.length > 0 && /* @__PURE__ */ jsx53(Stack9, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx53(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
7606
7855
  ] })
7607
7856
  ] }) }) }) })
7608
7857
  ] });
@@ -7611,7 +7860,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7611
7860
  const labels = useAbpLabels().queryList;
7612
7861
  const sortable = useSortable2({ id, disabled: !checked });
7613
7862
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = sortable;
7614
- return /* @__PURE__ */ jsxs38(
7863
+ return /* @__PURE__ */ jsxs39(
7615
7864
  HStack9,
7616
7865
  {
7617
7866
  ref: setNodeRef,
@@ -7628,8 +7877,8 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7628
7877
  style: { transform: CSS3.Transform.toString(transform), transition },
7629
7878
  _hover: { bg: "bg.subtle" },
7630
7879
  children: [
7631
- checked ? /* @__PURE__ */ jsx52(
7632
- chakra30.button,
7880
+ checked ? /* @__PURE__ */ jsx53(
7881
+ chakra31.button,
7633
7882
  {
7634
7883
  type: "button",
7635
7884
  display: "inline-flex",
@@ -7641,13 +7890,13 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7641
7890
  "aria-label": fill(labels.dragColumn, { field: label }),
7642
7891
  ...attributes,
7643
7892
  ...listeners2,
7644
- children: /* @__PURE__ */ jsx52(GripVertical4, { size: 16 })
7893
+ children: /* @__PURE__ */ jsx53(GripVertical4, { size: 16 })
7645
7894
  }
7646
- ) : /* @__PURE__ */ jsx52(chakra30.span, { w: "4", flexShrink: 0 }),
7647
- /* @__PURE__ */ jsx52(Text13, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
7648
- /* @__PURE__ */ jsxs38(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
7649
- /* @__PURE__ */ jsx52(Switch2.HiddenInput, {}),
7650
- /* @__PURE__ */ jsx52(Switch2.Control, { children: /* @__PURE__ */ jsx52(Switch2.Thumb, {}) })
7895
+ ) : /* @__PURE__ */ jsx53(chakra31.span, { w: "4", flexShrink: 0 }),
7896
+ /* @__PURE__ */ jsx53(Text13, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
7897
+ /* @__PURE__ */ jsxs39(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
7898
+ /* @__PURE__ */ jsx53(Switch2.HiddenInput, {}),
7899
+ /* @__PURE__ */ jsx53(Switch2.Control, { children: /* @__PURE__ */ jsx53(Switch2.Thumb, {}) })
7651
7900
  ] })
7652
7901
  ]
7653
7902
  }
@@ -7658,7 +7907,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7658
7907
  import { useEffect as useEffect14, useId as useId4, useRef as useRef18, useState as useState21 } from "react";
7659
7908
  import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack10, Input as Input5, Portal as Portal14, Stack as Stack10, Text as Text14 } from "@chakra-ui/react";
7660
7909
  import { Trash2 } from "lucide-react";
7661
- import { Fragment as Fragment16, jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
7910
+ import { Fragment as Fragment16, jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
7662
7911
  function fill2(template, values) {
7663
7912
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
7664
7913
  }
@@ -7672,15 +7921,15 @@ function conditionOf(d, field, own) {
7672
7921
  function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, countMatches, onApply, onClose }) {
7673
7922
  const labels = useAbpLabels().queryList;
7674
7923
  const [seq, setSeq] = useState21(initial.length + 1);
7675
- const [rows, setRows] = useState21(() => initial.flatMap((c2, i) => c2.op === "in" && Array.isArray(c2.value) && fields.find((f) => f.id === c2.field)?.operators.includes("eq") ? c2.value.map((v, j) => ({ id: i * 100 + j + 1, field: c2.field, op: "eq", text: valueText(v), chosen: v })) : [{ id: i * 100 + 1, field: c2.field, op: c2.op, text: valueText(c2.value), chosen: c2.value }]));
7924
+ const [rows2, setRows] = useState21(() => initial.flatMap((c2, i) => c2.op === "in" && Array.isArray(c2.value) && fields.find((f) => f.id === c2.field)?.operators.includes("eq") ? c2.value.map((v, j) => ({ id: i * 100 + j + 1, field: c2.field, op: "eq", text: valueText(v), chosen: v })) : [{ id: i * 100 + 1, field: c2.field, op: c2.op, text: valueText(c2.value), chosen: c2.value }]));
7676
7925
  const [touched, setTouched] = useState21(false);
7677
7926
  const own = (d) => {
7678
7927
  const f = fields.find((x) => x.id === d.field);
7679
7928
  return Boolean(f && renderValueEditor && !NO_VALUE_OPS.has(d.op) && renderValueEditor({ field: f, op: d.op, value: d.chosen, onChange: () => void 0 }) != null);
7680
7929
  };
7681
- const complete = rows.map((d) => conditionOf(d, fields.find((f) => f.id === d.field), own(d))).filter((c2) => c2 != null);
7682
- const incomplete = rows.length - complete.length;
7683
- const repeats = new Set(rows.map((r) => r.field)).size < rows.length;
7930
+ const complete = rows2.map((d) => conditionOf(d, fields.find((f) => f.id === d.field), own(d))).filter((c2) => c2 != null);
7931
+ const incomplete = rows2.length - complete.length;
7932
+ const repeats = new Set(rows2.map((r) => r.field)).size < rows2.length;
7684
7933
  const key = JSON.stringify(complete);
7685
7934
  const counter = useRef18(countMatches);
7686
7935
  useEffect14(() => {
@@ -7714,23 +7963,23 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7714
7963
  setSeq((n) => n + 1);
7715
7964
  };
7716
7965
  const change = (id, patch) => setRows((r) => r.map((d) => d.id === id ? { ...d, ...patch, dirty: true } : d));
7717
- return /* @__PURE__ */ jsx53(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs39(Portal14, { children: [
7718
- /* @__PURE__ */ jsx53(Dialog5.Backdrop, {}),
7719
- /* @__PURE__ */ jsx53(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs39(Dialog5.Content, { "data-filter-builder": "", children: [
7720
- /* @__PURE__ */ jsx53(Dialog5.Header, { children: /* @__PURE__ */ jsxs39(HStack10, { justify: "space-between", w: "full", gap: "3", children: [
7721
- /* @__PURE__ */ jsx53(Dialog5.Title, { children: labels.buildFilters }),
7722
- /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows.length === 0, children: labels.clearAll })
7966
+ return /* @__PURE__ */ jsx54(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs40(Portal14, { children: [
7967
+ /* @__PURE__ */ jsx54(Dialog5.Backdrop, {}),
7968
+ /* @__PURE__ */ jsx54(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs40(Dialog5.Content, { "data-filter-builder": "", children: [
7969
+ /* @__PURE__ */ jsx54(Dialog5.Header, { children: /* @__PURE__ */ jsxs40(HStack10, { justify: "space-between", w: "full", gap: "3", children: [
7970
+ /* @__PURE__ */ jsx54(Dialog5.Title, { children: labels.buildFilters }),
7971
+ /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows2.length === 0, children: labels.clearAll })
7723
7972
  ] }) }),
7724
- /* @__PURE__ */ jsx53(Dialog5.Body, { children: /* @__PURE__ */ jsxs39(Stack10, { gap: "3", children: [
7725
- /* @__PURE__ */ jsxs39(Text14, { textStyle: "sm", color: "fg.muted", children: [
7973
+ /* @__PURE__ */ jsx54(Dialog5.Body, { children: /* @__PURE__ */ jsxs40(Stack10, { gap: "3", children: [
7974
+ /* @__PURE__ */ jsxs40(Text14, { textStyle: "sm", color: "fg.muted", children: [
7726
7975
  labels.matchAll,
7727
- repeats && /* @__PURE__ */ jsxs39(Fragment16, { children: [
7976
+ repeats && /* @__PURE__ */ jsxs40(Fragment16, { children: [
7728
7977
  " ",
7729
7978
  labels.sameFieldAny
7730
7979
  ] })
7731
7980
  ] }),
7732
- rows.length === 0 && /* @__PURE__ */ jsx53(Text14, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
7733
- rows.map((d) => /* @__PURE__ */ jsx53(
7981
+ rows2.length === 0 && /* @__PURE__ */ jsx54(Text14, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
7982
+ rows2.map((d) => /* @__PURE__ */ jsx54(
7734
7983
  ConditionRow,
7735
7984
  {
7736
7985
  draft: d,
@@ -7743,29 +7992,29 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7743
7992
  },
7744
7993
  d.id
7745
7994
  )),
7746
- /* @__PURE__ */ jsx53(HStack10, { children: /* @__PURE__ */ jsx53(AddButton, { onClick: add, disabled: fields.length === 0, children: labels.addCondition }) }),
7747
- /* @__PURE__ */ jsxs39(Stack10, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
7748
- /* @__PURE__ */ jsx53(Text14, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
7749
- /* @__PURE__ */ jsx53(Text14, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
7995
+ /* @__PURE__ */ jsx54(HStack10, { children: /* @__PURE__ */ jsx54(AddButton, { onClick: add, disabled: fields.length === 0, children: labels.addCondition }) }),
7996
+ /* @__PURE__ */ jsxs40(Stack10, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
7997
+ /* @__PURE__ */ jsx54(Text14, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
7998
+ /* @__PURE__ */ jsx54(Text14, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
7750
7999
  ] })
7751
8000
  ] }) }),
7752
- /* @__PURE__ */ jsx53(Dialog5.Footer, { children: /* @__PURE__ */ jsxs39(HStack10, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
7753
- /* @__PURE__ */ jsxs39(Text14, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
8001
+ /* @__PURE__ */ jsx54(Dialog5.Footer, { children: /* @__PURE__ */ jsxs40(HStack10, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
8002
+ /* @__PURE__ */ jsxs40(Text14, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
7754
8003
  count != null && fill2(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
7755
- incomplete > 0 && /* @__PURE__ */ jsxs39(Fragment16, { children: [
8004
+ incomplete > 0 && /* @__PURE__ */ jsxs40(Fragment16, { children: [
7756
8005
  " \xB7 ",
7757
8006
  labels.incompleteSkipped
7758
8007
  ] })
7759
8008
  ] }),
7760
- /* @__PURE__ */ jsxs39(HStack10, { gap: "2", children: [
7761
- /* @__PURE__ */ jsx53(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
7762
- /* @__PURE__ */ jsx53(Button, { size: "sm", variant: "primary", onClick: () => {
8009
+ /* @__PURE__ */ jsxs40(HStack10, { gap: "2", children: [
8010
+ /* @__PURE__ */ jsx54(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
8011
+ /* @__PURE__ */ jsx54(Button, { size: "sm", variant: "primary", onClick: () => {
7763
8012
  setTouched(true);
7764
8013
  onApply(mergeSameField(complete, fields));
7765
8014
  }, children: labels.applyFilters })
7766
8015
  ] })
7767
8016
  ] }) }),
7768
- /* @__PURE__ */ jsx53(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx53(CloseButton3, { size: "sm" }) })
8017
+ /* @__PURE__ */ jsx54(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(CloseButton3, { size: "sm" }) })
7769
8018
  ] }) })
7770
8019
  ] }) });
7771
8020
  }
@@ -7794,9 +8043,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7794
8043
  clearTimeout(timer);
7795
8044
  };
7796
8045
  }, [suggest, field, op, text, own]);
7797
- return /* @__PURE__ */ jsxs39(Stack10, { gap: "1", "data-condition": "", children: [
7798
- /* @__PURE__ */ jsxs39(HStack10, { gap: "1.5", wrap: "wrap", align: "start", children: [
7799
- /* @__PURE__ */ jsx53(
8046
+ return /* @__PURE__ */ jsxs40(Stack10, { gap: "1", "data-condition": "", children: [
8047
+ /* @__PURE__ */ jsxs40(HStack10, { gap: "1.5", wrap: "wrap", align: "start", children: [
8048
+ /* @__PURE__ */ jsx54(
7800
8049
  SelectField,
7801
8050
  {
7802
8051
  width: "auto",
@@ -7810,7 +8059,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7810
8059
  options: fields.map((f) => ({ value: f.id, label: f.label }))
7811
8060
  }
7812
8061
  ),
7813
- /* @__PURE__ */ jsx53(
8062
+ /* @__PURE__ */ jsx54(
7814
8063
  SelectField,
7815
8064
  {
7816
8065
  width: "auto",
@@ -7822,8 +8071,8 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7822
8071
  }
7823
8072
  ),
7824
8073
  own,
7825
- !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs39(Fragment16, { children: [
7826
- /* @__PURE__ */ jsx53(
8074
+ !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs40(Fragment16, { children: [
8075
+ /* @__PURE__ */ jsx54(
7827
8076
  Input5,
7828
8077
  {
7829
8078
  size: "sm",
@@ -7837,16 +8086,16 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7837
8086
  onChange: (e) => onChange({ text: e.target.value })
7838
8087
  }
7839
8088
  ),
7840
- /* @__PURE__ */ jsx53("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx53("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
8089
+ /* @__PURE__ */ jsx54("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx54("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
7841
8090
  ] }),
7842
- /* @__PURE__ */ jsx53(IconButton, { size: "sm", variant: "ghost", remove: true, "aria-label": fill2(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx53(Trash2, {}) })
8091
+ /* @__PURE__ */ jsx54(IconButton, { size: "sm", variant: "ghost", remove: true, "aria-label": fill2(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx54(Trash2, {}) })
7843
8092
  ] }),
7844
- warn && /* @__PURE__ */ jsx53(Text14, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
8093
+ warn && /* @__PURE__ */ jsx54(Text14, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
7845
8094
  ] });
7846
8095
  }
7847
8096
 
7848
8097
  // src/components/QueryableList.tsx
7849
- import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
8098
+ import { Fragment as Fragment17, jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
7850
8099
  var PAIR = "";
7851
8100
  var pairKey = (first, second) => `${first}${PAIR}${second}`;
7852
8101
  var condition = (field, value) => value == null ? { field, op: "isEmpty" } : { field, op: "eq", value };
@@ -7990,15 +8239,15 @@ function QueryableList({
7990
8239
  }
7991
8240
  const sortable = (fields ?? []).filter((f) => f.sortable);
7992
8241
  const groupLabel = groupField ? thenField ? `${label(groupField)} \xB7 ${label(thenField)}` : label(groupField) : null;
7993
- return /* @__PURE__ */ jsxs40(Stack11, { gap: "3", children: [
7994
- /* @__PURE__ */ jsxs40(chakra31.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
7995
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
7996
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", wrap: "wrap", minW: "0", children: [
8242
+ return /* @__PURE__ */ jsxs41(Stack11, { gap: "3", children: [
8243
+ /* @__PURE__ */ jsxs41(chakra32.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
8244
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
8245
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", wrap: "wrap", minW: "0", children: [
7997
8246
  leading,
7998
- leading != null && views && onSelectView && /* @__PURE__ */ jsx54(chakra31.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
7999
- views && onSelectView && /* @__PURE__ */ jsxs40(HStack11, { gap: "2", children: [
8000
- /* @__PURE__ */ jsx54(Text15, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
8001
- /* @__PURE__ */ jsx54(
8247
+ leading != null && views && onSelectView && /* @__PURE__ */ jsx55(chakra32.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
8248
+ views && onSelectView && /* @__PURE__ */ jsxs41(HStack11, { gap: "2", children: [
8249
+ /* @__PURE__ */ jsx55(Text15, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
8250
+ /* @__PURE__ */ jsx55(
8002
8251
  SelectField,
8003
8252
  {
8004
8253
  width: "auto",
@@ -8010,62 +8259,62 @@ function QueryableList({
8010
8259
  }
8011
8260
  )
8012
8261
  ] }),
8013
- onSaveView && (naming === null ? /* @__PURE__ */ jsxs40(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
8014
- /* @__PURE__ */ jsx54(Save, {}),
8262
+ onSaveView && (naming === null ? /* @__PURE__ */ jsxs41(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
8263
+ /* @__PURE__ */ jsx55(Save, {}),
8015
8264
  labels.saveView
8016
- ] }) : /* @__PURE__ */ jsxs40(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
8265
+ ] }) : /* @__PURE__ */ jsxs41(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
8017
8266
  e.preventDefault();
8018
8267
  if (naming.trim()) onSaveView(naming.trim(), activeView?.isOwner && naming.trim() === activeView.name ? activeView.id : null);
8019
8268
  setNaming(null);
8020
8269
  }, children: [
8021
- /* @__PURE__ */ jsx54(Input6, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
8022
- /* @__PURE__ */ jsx54(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
8023
- /* @__PURE__ */ jsx54(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx54(X2, {}) })
8270
+ /* @__PURE__ */ jsx55(Input6, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
8271
+ /* @__PURE__ */ jsx55(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
8272
+ /* @__PURE__ */ jsx55(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx55(X2, {}) })
8024
8273
  ] })),
8025
- activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx54(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx54(Trash22, {}) })
8274
+ activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx55(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx55(Trash22, {}) })
8026
8275
  ] }),
8027
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", wrap: "wrap", children: [
8028
- /* @__PURE__ */ jsxs40(Menu3.Root, { positioning: { placement: "bottom-end" }, children: [
8029
- /* @__PURE__ */ jsx54(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs40(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
8030
- /* @__PURE__ */ jsx54(Rows3, {}),
8031
- /* @__PURE__ */ jsx54(Text15, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
8276
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", wrap: "wrap", children: [
8277
+ /* @__PURE__ */ jsxs41(Menu3.Root, { positioning: { placement: "bottom-end" }, children: [
8278
+ /* @__PURE__ */ jsx55(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs41(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
8279
+ /* @__PURE__ */ jsx55(Rows3, {}),
8280
+ /* @__PURE__ */ jsx55(Text15, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
8032
8281
  groupLabel ?? labels.noGrouping,
8033
- /* @__PURE__ */ jsx54(ChevronDown3, {})
8282
+ /* @__PURE__ */ jsx55(ChevronDown3, {})
8034
8283
  ] }) }),
8035
- /* @__PURE__ */ jsx54(Portal15, { children: /* @__PURE__ */ jsx54(Menu3.Positioner, { children: /* @__PURE__ */ jsxs40(Menu3.Content, { minW: "48", children: [
8036
- /* @__PURE__ */ jsxs40(
8284
+ /* @__PURE__ */ jsx55(Portal15, { children: /* @__PURE__ */ jsx55(Menu3.Positioner, { children: /* @__PURE__ */ jsxs41(Menu3.Content, { minW: "48", children: [
8285
+ /* @__PURE__ */ jsxs41(
8037
8286
  Menu3.RadioItemGroup,
8038
8287
  {
8039
8288
  value: groupField ?? "",
8040
8289
  onValueChange: (d) => change({ ...query, groupBy: d.value ? { field: d.value, aggregates: [] } : null }),
8041
8290
  children: [
8042
- /* @__PURE__ */ jsxs40(Menu3.RadioItem, { value: "", children: [
8291
+ /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: "", children: [
8043
8292
  labels.noGrouping,
8044
- /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
8293
+ /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8045
8294
  ] }),
8046
- groupable.map((f) => /* @__PURE__ */ jsxs40(Menu3.RadioItem, { value: f.id, children: [
8295
+ groupable.map((f) => /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: f.id, children: [
8047
8296
  f.label,
8048
- /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
8297
+ /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8049
8298
  ] }, f.id))
8050
8299
  ]
8051
8300
  }
8052
8301
  ),
8053
- groupField && groupable.length > 1 && /* @__PURE__ */ jsxs40(Fragment17, { children: [
8054
- /* @__PURE__ */ jsx54(Menu3.Separator, {}),
8055
- /* @__PURE__ */ jsxs40(
8302
+ groupField && groupable.length > 1 && /* @__PURE__ */ jsxs41(Fragment17, { children: [
8303
+ /* @__PURE__ */ jsx55(Menu3.Separator, {}),
8304
+ /* @__PURE__ */ jsxs41(
8056
8305
  Menu3.RadioItemGroup,
8057
8306
  {
8058
8307
  value: thenField ?? "",
8059
8308
  onValueChange: (d) => change({ ...query, groupBy: { ...query.groupBy, then: d.value ? { field: d.value } : null } }),
8060
8309
  children: [
8061
- /* @__PURE__ */ jsx54(Menu3.ItemGroupLabel, { children: labels.thenBy }),
8062
- /* @__PURE__ */ jsxs40(Menu3.RadioItem, { value: "", children: [
8310
+ /* @__PURE__ */ jsx55(Menu3.ItemGroupLabel, { children: labels.thenBy }),
8311
+ /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: "", children: [
8063
8312
  labels.noSecondGrouping,
8064
- /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
8313
+ /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8065
8314
  ] }),
8066
- groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs40(Menu3.RadioItem, { value: f.id, children: [
8315
+ groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: f.id, children: [
8067
8316
  f.label,
8068
- /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
8317
+ /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8069
8318
  ] }, f.id))
8070
8319
  ]
8071
8320
  }
@@ -8073,15 +8322,15 @@ function QueryableList({
8073
8322
  ] })
8074
8323
  ] }) }) })
8075
8324
  ] }),
8076
- /* @__PURE__ */ jsx54(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
8077
- onExport && !exportTarget && /* @__PURE__ */ jsx54(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }),
8078
- onExport && exportTarget && createPortal(/* @__PURE__ */ jsx54(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }), exportTarget),
8325
+ /* @__PURE__ */ jsx55(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
8326
+ onExport && !exportTarget && /* @__PURE__ */ jsx55(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }),
8327
+ onExport && exportTarget && createPortal(/* @__PURE__ */ jsx55(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }), exportTarget),
8079
8328
  actions
8080
8329
  ] })
8081
8330
  ] }),
8082
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
8083
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
8084
- /* @__PURE__ */ jsx54(
8331
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
8332
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
8333
+ /* @__PURE__ */ jsx55(
8085
8334
  SegmentedControl,
8086
8335
  {
8087
8336
  size: "sm",
@@ -8094,14 +8343,14 @@ function QueryableList({
8094
8343
  ]
8095
8344
  }
8096
8345
  ),
8097
- mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs40(HStack11, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
8098
- search && /* @__PURE__ */ jsx54(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
8099
- /* @__PURE__ */ jsxs40(AddButton, { onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
8346
+ mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs41(HStack11, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
8347
+ search && /* @__PURE__ */ jsx55(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
8348
+ /* @__PURE__ */ jsxs41(AddButton, { onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
8100
8349
  labels.addFilter,
8101
- chips.length > 0 && /* @__PURE__ */ jsx54(CountBadge, { value: chips.length, tone: "accent" })
8350
+ chips.length > 0 && /* @__PURE__ */ jsx55(CountBadge, { value: chips.length, tone: "accent" })
8102
8351
  ] }),
8103
- sortable.length > 0 && /* @__PURE__ */ jsxs40(HStack11, { gap: "1", flexShrink: 0, children: [
8104
- /* @__PURE__ */ jsx54(
8352
+ sortable.length > 0 && /* @__PURE__ */ jsxs41(HStack11, { gap: "1", flexShrink: 0, children: [
8353
+ /* @__PURE__ */ jsx55(
8105
8354
  SelectField,
8106
8355
  {
8107
8356
  width: "auto",
@@ -8116,7 +8365,7 @@ function QueryableList({
8116
8365
  ]
8117
8366
  }
8118
8367
  ),
8119
- sort && /* @__PURE__ */ jsx54(
8368
+ sort && /* @__PURE__ */ jsx55(
8120
8369
  IconButton,
8121
8370
  {
8122
8371
  size: "sm",
@@ -8124,11 +8373,11 @@ function QueryableList({
8124
8373
  "aria-label": sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8125
8374
  title: sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8126
8375
  onClick: () => change({ ...query, orderBy: [{ field: sort.columnId, desc: sort.direction !== "desc" }] }),
8127
- children: sort.direction === "desc" ? /* @__PURE__ */ jsx54(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx54(ArrowUpNarrowWide, {})
8376
+ children: sort.direction === "desc" ? /* @__PURE__ */ jsx55(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx55(ArrowUpNarrowWide, {})
8128
8377
  }
8129
8378
  )
8130
8379
  ] })
8131
- ] }) : /* @__PURE__ */ jsx54(
8380
+ ] }) : /* @__PURE__ */ jsx55(
8132
8381
  RqlBox,
8133
8382
  {
8134
8383
  initial: state.rql ?? result?.rql ?? "",
@@ -8139,11 +8388,11 @@ function QueryableList({
8139
8388
  state.rql ?? result?.rql ?? ""
8140
8389
  )
8141
8390
  ] }),
8142
- attention != null && /* @__PURE__ */ jsx54(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8391
+ attention != null && /* @__PURE__ */ jsx55(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8143
8392
  ] }),
8144
- mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs40(HStack11, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
8145
- chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs40(
8146
- chakra31.span,
8393
+ mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs41(HStack11, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
8394
+ chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs41(
8395
+ chakra32.span,
8147
8396
  {
8148
8397
  display: "inline-flex",
8149
8398
  alignItems: "center",
@@ -8157,17 +8406,17 @@ function QueryableList({
8157
8406
  bg: "bg.selected",
8158
8407
  textStyle: "sm",
8159
8408
  children: [
8160
- /* @__PURE__ */ jsx54(Text15, { as: "span", fontWeight: "medium", children: label(c2.field) }),
8161
- /* @__PURE__ */ jsx54(Text15, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
8162
- !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx54(Text15, { as: "span", children: valueText(c2.value) }),
8163
- /* @__PURE__ */ jsx54(IconButton, { size: "xs", variant: "ghost", "aria-label": fill3(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx54(X2, {}) })
8409
+ /* @__PURE__ */ jsx55(Text15, { as: "span", fontWeight: "medium", children: label(c2.field) }),
8410
+ /* @__PURE__ */ jsx55(Text15, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
8411
+ !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx55(Text15, { as: "span", children: valueText(c2.value) }),
8412
+ /* @__PURE__ */ jsx55(IconButton, { size: "xs", variant: "ghost", "aria-label": fill3(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx55(X2, {}) })
8164
8413
  ]
8165
8414
  },
8166
8415
  `${c2.field}-${i}`
8167
8416
  )),
8168
- /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8417
+ /* @__PURE__ */ jsx55(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8169
8418
  ] }),
8170
- adding && fields && conditions !== null && /* @__PURE__ */ jsx54(
8419
+ adding && fields && conditions !== null && /* @__PURE__ */ jsx55(
8171
8420
  FilterBuilderDialog,
8172
8421
  {
8173
8422
  fields,
@@ -8182,26 +8431,26 @@ function QueryableList({
8182
8431
  }
8183
8432
  }
8184
8433
  ),
8185
- toolbarFooter != null && /* @__PURE__ */ jsx54(chakra31.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8434
+ toolbarFooter != null && /* @__PURE__ */ jsx55(chakra32.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8186
8435
  ] }),
8187
- mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx54(InlineAlert, { tone: "danger", children: error.message }),
8188
- exported && /* @__PURE__ */ jsx54(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs40(HStack11, { justify: "space-between", gap: "2", align: "start", children: [
8189
- /* @__PURE__ */ jsx54(Text15, { as: "span", children: exported.message }),
8190
- /* @__PURE__ */ jsx54(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx54(X2, {}) })
8436
+ mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx55(InlineAlert, { tone: "danger", children: error.message }),
8437
+ exported && /* @__PURE__ */ jsx55(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs41(HStack11, { justify: "space-between", gap: "2", align: "start", children: [
8438
+ /* @__PURE__ */ jsx55(Text15, { as: "span", children: exported.message }),
8439
+ /* @__PURE__ */ jsx55(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx55(X2, {}) })
8191
8440
  ] }) }),
8192
- /* @__PURE__ */ jsx54(
8441
+ /* @__PURE__ */ jsx55(
8193
8442
  Panel,
8194
8443
  {
8195
8444
  flush: true,
8196
8445
  footer: (
8197
8446
  // Expand and collapse at the start, the pages in the middle (the canvas's v12, UI round 9 step 67, round 10 step 73),
8198
8447
  // the range at the end, or with the arrows in the simple form.
8199
- /* @__PURE__ */ jsxs40(chakra31.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
8200
- /* @__PURE__ */ jsx54(HStack11, { gap: "3", children: grouped && /* @__PURE__ */ jsxs40(Fragment17, { children: [
8201
- /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
8202
- /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
8448
+ /* @__PURE__ */ jsxs41(chakra32.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
8449
+ /* @__PURE__ */ jsx55(HStack11, { gap: "3", children: grouped && /* @__PURE__ */ jsxs41(Fragment17, { children: [
8450
+ /* @__PURE__ */ jsx55(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
8451
+ /* @__PURE__ */ jsx55(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
8203
8452
  ] }) }),
8204
- /* @__PURE__ */ jsx54(
8453
+ /* @__PURE__ */ jsx55(
8205
8454
  Pagination,
8206
8455
  {
8207
8456
  page: Math.floor(skip / take) + 1,
@@ -8217,10 +8466,10 @@ function QueryableList({
8217
8466
  pageOf: fill3(labels.pageOf, { page: fmt.number(Math.floor(skip / take) + 1), pages: fmt.number(Math.max(1, Math.ceil(total / take))) })
8218
8467
  }
8219
8468
  ),
8220
- /* @__PURE__ */ jsx54(Text15, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result && pagination !== "simple" ? fill3(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
8469
+ /* @__PURE__ */ jsx55(Text15, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result && pagination !== "simple" ? fill3(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
8221
8470
  ] })
8222
8471
  ),
8223
- children: /* @__PURE__ */ jsx54(
8472
+ children: /* @__PURE__ */ jsx55(
8224
8473
  DataTable,
8225
8474
  {
8226
8475
  "aria-label": ariaLabel,
@@ -8258,19 +8507,19 @@ function QueryableList({
8258
8507
  const name = groupInfo(key)?.label ?? labels.noGroupValue;
8259
8508
  return fill3(isFolded ? labels.unfoldGroup : labels.foldGroup, { group: name });
8260
8509
  },
8261
- header: (key, rows) => {
8510
+ header: (key, rows2) => {
8262
8511
  const info = groupInfo(key);
8263
- const first = rows[0];
8512
+ const first = rows2[0];
8264
8513
  const field = thenField ?? groupField;
8265
8514
  const raw = first?.values[field];
8266
8515
  const label2 = thenField ? info?.then?.label : info?.label;
8267
8516
  const value = thenField ? info?.then?.value ?? null : info?.value ?? null;
8268
8517
  const period = thenField ? query.groupBy?.then?.period : query.groupBy?.period;
8269
- return /* @__PURE__ */ jsxs40(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8270
- /* @__PURE__ */ jsx54(chakra31.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) }),
8271
- /* @__PURE__ */ jsx54(CountBadge, { value: info?.count ?? rows.length }),
8518
+ return /* @__PURE__ */ jsxs41(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8519
+ /* @__PURE__ */ jsx55(chakra32.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) }),
8520
+ /* @__PURE__ */ jsx55(CountBadge, { value: info?.count ?? rows2.length }),
8272
8521
  !thenField && renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" }),
8273
- conditions !== null && !period && /* @__PURE__ */ jsxs40(
8522
+ conditions !== null && !period && /* @__PURE__ */ jsxs41(
8274
8523
  Button,
8275
8524
  {
8276
8525
  size: "xs",
@@ -8288,8 +8537,8 @@ function QueryableList({
8288
8537
  condition(field, value)
8289
8538
  ]),
8290
8539
  children: [
8291
- /* @__PURE__ */ jsx54(Filter, {}),
8292
- /* @__PURE__ */ jsx54(chakra31.span, { hideBelow: "md", children: labels.filterToGroup })
8540
+ /* @__PURE__ */ jsx55(Filter, {}),
8541
+ /* @__PURE__ */ jsx55(chakra32.span, { hideBelow: "md", children: labels.filterToGroup })
8293
8542
  ]
8294
8543
  }
8295
8544
  )
@@ -8308,9 +8557,9 @@ function QueryableList({
8308
8557
  const first = groups[0]?.rows[0];
8309
8558
  const raw = first?.values[groupField];
8310
8559
  const count = (result?.groups ?? []).filter((g) => groupKey(g.value) === parent).reduce((n, g) => n + g.count, 0);
8311
- return /* @__PURE__ */ jsxs40(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8312
- /* @__PURE__ */ jsx54(chakra31.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) }),
8313
- /* @__PURE__ */ jsx54(CountBadge, { value: count }),
8560
+ return /* @__PURE__ */ jsxs41(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8561
+ /* @__PURE__ */ jsx55(chakra32.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) }),
8562
+ /* @__PURE__ */ jsx55(CountBadge, { value: count }),
8314
8563
  renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" })
8315
8564
  ] });
8316
8565
  }
@@ -8353,8 +8602,8 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8353
8602
  clearTimeout(timer.current);
8354
8603
  timer.current = setTimeout(() => next.trim() !== initial.trim() && onRun(next), 400);
8355
8604
  }
8356
- return /* @__PURE__ */ jsx54(
8357
- chakra31.form,
8605
+ return /* @__PURE__ */ jsx55(
8606
+ chakra32.form,
8358
8607
  {
8359
8608
  role: "search",
8360
8609
  flex: "1",
@@ -8365,7 +8614,7 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8365
8614
  clearTimeout(timer.current);
8366
8615
  if (text.trim() !== initial.trim()) onRun(text);
8367
8616
  },
8368
- children: /* @__PURE__ */ jsx54(
8617
+ children: /* @__PURE__ */ jsx55(
8369
8618
  SearchInput,
8370
8619
  {
8371
8620
  size: "sm",
@@ -8407,14 +8656,14 @@ function placeholderOf(id, kind) {
8407
8656
  }
8408
8657
  function ExportMenu({ busy, disabled, onExport }) {
8409
8658
  const labels = useAbpLabels().queryList;
8410
- return /* @__PURE__ */ jsxs40(Menu3.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
8411
- /* @__PURE__ */ jsx54(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs40(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
8412
- /* @__PURE__ */ jsx54(Download, {}),
8659
+ return /* @__PURE__ */ jsxs41(Menu3.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
8660
+ /* @__PURE__ */ jsx55(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs41(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
8661
+ /* @__PURE__ */ jsx55(Download, {}),
8413
8662
  labels.export
8414
8663
  ] }) }),
8415
- /* @__PURE__ */ jsx54(Portal15, { children: /* @__PURE__ */ jsx54(Menu3.Positioner, { children: /* @__PURE__ */ jsxs40(Menu3.Content, { minW: "48", children: [
8416
- /* @__PURE__ */ jsx54(Menu3.Item, { value: "csv", children: labels.exportCsv }),
8417
- /* @__PURE__ */ jsx54(Menu3.Item, { value: "xlsx", children: labels.exportExcel })
8664
+ /* @__PURE__ */ jsx55(Portal15, { children: /* @__PURE__ */ jsx55(Menu3.Positioner, { children: /* @__PURE__ */ jsxs41(Menu3.Content, { minW: "48", children: [
8665
+ /* @__PURE__ */ jsx55(Menu3.Item, { value: "csv", children: labels.exportCsv }),
8666
+ /* @__PURE__ */ jsx55(Menu3.Item, { value: "xlsx", children: labels.exportExcel })
8418
8667
  ] }) }) })
8419
8668
  ] });
8420
8669
  }
@@ -8494,9 +8743,9 @@ function RqlBox({
8494
8743
  }
8495
8744
  }
8496
8745
  const hasSpan = error?.start != null && error.end != null && error.end >= error.start && error.end <= text.length;
8497
- return /* @__PURE__ */ jsxs40(Stack11, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
8498
- /* @__PURE__ */ jsxs40(HStack11, { gap: "2", children: [
8499
- /* @__PURE__ */ jsx54(
8746
+ return /* @__PURE__ */ jsxs41(Stack11, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
8747
+ /* @__PURE__ */ jsxs41(HStack11, { gap: "2", children: [
8748
+ /* @__PURE__ */ jsx55(
8500
8749
  Input6,
8501
8750
  {
8502
8751
  ref: input,
@@ -8522,10 +8771,10 @@ function RqlBox({
8522
8771
  onKeyDown
8523
8772
  }
8524
8773
  ),
8525
- /* @__PURE__ */ jsx54(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8774
+ /* @__PURE__ */ jsx55(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8526
8775
  ] }),
8527
- open && found && /* @__PURE__ */ jsx54(
8528
- Box10,
8776
+ open && found && /* @__PURE__ */ jsx55(
8777
+ Box11,
8529
8778
  {
8530
8779
  id: listId,
8531
8780
  role: "listbox",
@@ -8543,7 +8792,7 @@ function RqlBox({
8543
8792
  borderRadius: "md",
8544
8793
  boxShadow: "md",
8545
8794
  py: "1",
8546
- children: found.items.map((item, i) => /* @__PURE__ */ jsxs40(
8795
+ children: found.items.map((item, i) => /* @__PURE__ */ jsxs41(
8547
8796
  HStack11,
8548
8797
  {
8549
8798
  id: `${listId}-${i}`,
@@ -8561,19 +8810,19 @@ function RqlBox({
8561
8810
  },
8562
8811
  onMouseEnter: () => setActive(i),
8563
8812
  children: [
8564
- /* @__PURE__ */ jsx54(Text15, { 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 }),
8565
- /* @__PURE__ */ jsx54(Text15, { 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 })
8813
+ /* @__PURE__ */ jsx55(Text15, { 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 }),
8814
+ /* @__PURE__ */ jsx55(Text15, { 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 })
8566
8815
  ]
8567
8816
  },
8568
8817
  `${item.kind}-${item.text}`
8569
8818
  ))
8570
8819
  }
8571
8820
  ),
8572
- error && /* @__PURE__ */ jsxs40(InlineAlert, { tone: "danger", size: "sm", children: [
8821
+ error && /* @__PURE__ */ jsxs41(InlineAlert, { tone: "danger", size: "sm", children: [
8573
8822
  error.message,
8574
- hasSpan && /* @__PURE__ */ jsxs40(chakra31.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8823
+ hasSpan && /* @__PURE__ */ jsxs41(chakra32.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8575
8824
  text.slice(0, error.start),
8576
- /* @__PURE__ */ jsx54(chakra31.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8825
+ /* @__PURE__ */ jsx55(chakra32.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8577
8826
  text.slice(error.end)
8578
8827
  ] })
8579
8828
  ] })
@@ -8582,15 +8831,15 @@ function RqlBox({
8582
8831
 
8583
8832
  // src/components/FileDrop.tsx
8584
8833
  import { forwardRef as forwardRef9, useLayoutEffect as useLayoutEffect4, useRef as useRef20 } from "react";
8585
- import { Box as Box11, HStack as HStack12, Portal as Portal16, Text as Text16 } from "@chakra-ui/react";
8834
+ import { Box as Box12, HStack as HStack12, Portal as Portal16, Text as Text16 } from "@chakra-ui/react";
8586
8835
  import { ArrowDownToLine } from "lucide-react";
8587
- import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
8836
+ import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
8588
8837
  var OUT3 = `cubic-bezier(${curves.out.join(", ")})`;
8589
8838
  var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: over2 = false, hint, children, ...rest }, ref) {
8590
8839
  const { reduce } = useMotionSetting();
8591
8840
  const lit = awake || over2;
8592
- return /* @__PURE__ */ jsxs41(
8593
- Box11,
8841
+ return /* @__PURE__ */ jsxs42(
8842
+ Box12,
8594
8843
  {
8595
8844
  ref,
8596
8845
  position: "relative",
@@ -8608,7 +8857,7 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8608
8857
  ...rest,
8609
8858
  children: [
8610
8859
  children,
8611
- /* @__PURE__ */ jsx55(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs41(
8860
+ /* @__PURE__ */ jsx56(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs42(
8612
8861
  HStack12,
8613
8862
  {
8614
8863
  h: "full",
@@ -8622,8 +8871,8 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8622
8871
  textAlign: "center",
8623
8872
  style: { transition: "background-color 160ms ease" },
8624
8873
  children: [
8625
- /* @__PURE__ */ jsx55(Bob, { active: over2 && !reduce }),
8626
- /* @__PURE__ */ jsx55(Text16, { as: "span", truncate: true, children: hint })
8874
+ /* @__PURE__ */ jsx56(Bob, { active: over2 && !reduce }),
8875
+ /* @__PURE__ */ jsx56(Text16, { as: "span", truncate: true, children: hint })
8627
8876
  ]
8628
8877
  }
8629
8878
  ) })
@@ -8642,60 +8891,60 @@ function Bob({ active }) {
8642
8891
  });
8643
8892
  return () => animation?.cancel();
8644
8893
  }, [active]);
8645
- return /* @__PURE__ */ jsx55(Box11, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx55(ArrowDownToLine, {}) });
8894
+ return /* @__PURE__ */ jsx56(Box12, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx56(ArrowDownToLine, {}) });
8646
8895
  }
8647
8896
  function DropHint({ show, children }) {
8648
- return /* @__PURE__ */ jsx55(Portal16, { children: /* @__PURE__ */ jsx55(Box11, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx55(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs41(HStack12, { 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: [
8649
- /* @__PURE__ */ jsx55(ArrowDownToLine, {}),
8650
- /* @__PURE__ */ jsx55(Text16, { as: "span", truncate: true, children })
8897
+ return /* @__PURE__ */ jsx56(Portal16, { children: /* @__PURE__ */ jsx56(Box12, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx56(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs42(HStack12, { 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: [
8898
+ /* @__PURE__ */ jsx56(ArrowDownToLine, {}),
8899
+ /* @__PURE__ */ jsx56(Text16, { as: "span", truncate: true, children })
8651
8900
  ] }) }) }) });
8652
8901
  }
8653
8902
 
8654
8903
  // src/components/UploadList.tsx
8655
8904
  import { useLayoutEffect as useLayoutEffect5, useRef as useRef21 } from "react";
8656
- import { Box as Box12, chakra as chakra32, HStack as HStack13, Stack as Stack12, Text as Text17 } from "@chakra-ui/react";
8905
+ import { Box as Box13, chakra as chakra33, HStack as HStack13, Stack as Stack12, Text as Text17 } from "@chakra-ui/react";
8657
8906
  import { Check as Check3, File as FileIcon, RotateCcw, TriangleAlert, X as X3 } from "lucide-react";
8658
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
8907
+ import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
8659
8908
  var OUT4 = `cubic-bezier(${curves.out.join(", ")})`;
8660
- function UploadList({ rows, summary, fraction, announce, labels, onCancel, onRetry, onDismiss }) {
8661
- return /* @__PURE__ */ jsxs42(Stack12, { gap: "2", "data-testid": "upload-list", children: [
8662
- /* @__PURE__ */ jsx56(chakra32.span, { srOnly: true, "aria-live": "polite", children: announce }),
8663
- rows.length > 0 && summary != null && /* @__PURE__ */ jsxs42(Stack12, { gap: "1", children: [
8664
- /* @__PURE__ */ jsx56(Text17, { textStyle: "caption", color: "fg.muted", children: summary }),
8665
- fraction != null && /* @__PURE__ */ jsx56(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
8909
+ function UploadList({ rows: rows2, summary, fraction, announce, labels, onCancel, onRetry, onDismiss }) {
8910
+ return /* @__PURE__ */ jsxs43(Stack12, { gap: "2", "data-testid": "upload-list", children: [
8911
+ /* @__PURE__ */ jsx57(chakra33.span, { srOnly: true, "aria-live": "polite", children: announce }),
8912
+ rows2.length > 0 && summary != null && /* @__PURE__ */ jsxs43(Stack12, { gap: "1", children: [
8913
+ /* @__PURE__ */ jsx57(Text17, { textStyle: "caption", color: "fg.muted", children: summary }),
8914
+ fraction != null && /* @__PURE__ */ jsx57(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
8666
8915
  ] }),
8667
- /* @__PURE__ */ jsx56(Stack12, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx56(PresenceList, { children: rows.map((row) => /* @__PURE__ */ jsx56(PresenceItem, { children: /* @__PURE__ */ jsx56(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
8916
+ /* @__PURE__ */ jsx57(Stack12, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx57(PresenceList, { children: rows2.map((row) => /* @__PURE__ */ jsx57(PresenceItem, { children: /* @__PURE__ */ jsx57(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
8668
8917
  ] });
8669
8918
  }
8670
8919
  function Row({ row, labels, onCancel, onRetry, onDismiss }) {
8671
8920
  const going = row.state === "waiting" || row.state === "sending";
8672
8921
  const trouble = row.state === "failed" || row.state === "refused";
8673
- return /* @__PURE__ */ jsxs42(HStack13, { 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: [
8674
- /* @__PURE__ */ jsx56(Preview, { src: row.preview }),
8675
- /* @__PURE__ */ jsxs42(Stack12, { gap: "1", flex: "1", minW: "0", children: [
8676
- /* @__PURE__ */ jsxs42(HStack13, { gap: "2", justify: "space-between", children: [
8677
- /* @__PURE__ */ jsx56(Text17, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx56("bdi", { children: row.name }) }),
8678
- /* @__PURE__ */ jsx56(Text17, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx56(Done, {}) : row.status })
8922
+ return /* @__PURE__ */ jsxs43(HStack13, { 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: [
8923
+ /* @__PURE__ */ jsx57(Preview, { src: row.preview }),
8924
+ /* @__PURE__ */ jsxs43(Stack12, { gap: "1", flex: "1", minW: "0", children: [
8925
+ /* @__PURE__ */ jsxs43(HStack13, { gap: "2", justify: "space-between", children: [
8926
+ /* @__PURE__ */ jsx57(Text17, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx57("bdi", { children: row.name }) }),
8927
+ /* @__PURE__ */ jsx57(Text17, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx57(Done, {}) : row.status })
8679
8928
  ] }),
8680
- (going || row.state === "done") && /* @__PURE__ */ jsx56(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
8681
- row.detail != null && /* @__PURE__ */ jsxs42(Text17, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
8682
- trouble && /* @__PURE__ */ jsx56(Box12, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx56(TriangleAlert, {}) }),
8929
+ (going || row.state === "done") && /* @__PURE__ */ jsx57(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
8930
+ row.detail != null && /* @__PURE__ */ jsxs43(Text17, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
8931
+ trouble && /* @__PURE__ */ jsx57(Box13, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx57(TriangleAlert, {}) }),
8683
8932
  row.detail
8684
8933
  ] })
8685
8934
  ] }),
8686
- going && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx56(X3, {}) }),
8687
- row.state === "failed" && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx56(RotateCcw, {}) }),
8688
- trouble && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx56(X3, {}) })
8935
+ going && /* @__PURE__ */ jsx57(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx57(X3, {}) }),
8936
+ row.state === "failed" && /* @__PURE__ */ jsx57(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx57(RotateCcw, {}) }),
8937
+ trouble && /* @__PURE__ */ jsx57(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx57(X3, {}) })
8689
8938
  ] });
8690
8939
  }
8691
8940
  function Preview({ src }) {
8692
- return /* @__PURE__ */ jsx56(Box12, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx56(chakra32.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx56(FileIcon, {}) });
8941
+ return /* @__PURE__ */ jsx57(Box13, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx57(chakra33.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx57(FileIcon, {}) });
8693
8942
  }
8694
8943
  function Bar2({ fraction, tone, label, quiet: quiet2 }) {
8695
8944
  const { reduce } = useMotionSetting();
8696
8945
  const percent = Math.round(Math.max(0, Math.min(1, fraction)) * 100);
8697
- return /* @__PURE__ */ jsx56(Box12, { 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__ */ jsx56(
8698
- Box12,
8946
+ return /* @__PURE__ */ jsx57(Box13, { 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__ */ jsx57(
8947
+ Box13,
8699
8948
  {
8700
8949
  h: "full",
8701
8950
  rounded: "full",
@@ -8721,7 +8970,7 @@ function Done() {
8721
8970
  { duration: 260, easing: OUT4 }
8722
8971
  );
8723
8972
  }, []);
8724
- return /* @__PURE__ */ jsx56(chakra32.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx56(Check3, { strokeWidth: 3 }) });
8973
+ return /* @__PURE__ */ jsx57(chakra33.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx57(Check3, { strokeWidth: 3 }) });
8725
8974
  }
8726
8975
 
8727
8976
  // src/files/drop.ts
@@ -8992,7 +9241,7 @@ function usePastedFiles({ enabled = true, onFiles }) {
8992
9241
 
8993
9242
  // src/components/SortableSections.tsx
8994
9243
  import { useMemo as useMemo13, useState as useState24 } from "react";
8995
- import { Box as Box13, Stack as Stack13, Text as Text18 } from "@chakra-ui/react";
9244
+ import { Box as Box14, Stack as Stack13, Text as Text18 } from "@chakra-ui/react";
8996
9245
  import {
8997
9246
  DndContext as DndContext4,
8998
9247
  DragOverlay as DragOverlay3,
@@ -9005,7 +9254,7 @@ import {
9005
9254
  } from "@dnd-kit/core";
9006
9255
  import { SortableContext as SortableContext3, sortableKeyboardCoordinates as sortableKeyboardCoordinates3, useSortable as useSortable3, verticalListSortingStrategy as verticalListSortingStrategy3 } from "@dnd-kit/sortable";
9007
9256
  import { CSS as CSS4 } from "@dnd-kit/utilities";
9008
- import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
9257
+ import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
9009
9258
  var sectionId = (id) => `section:${id}`;
9010
9259
  function SortableSections({
9011
9260
  "aria-label": ariaLabel,
@@ -9019,7 +9268,7 @@ function SortableSections({
9019
9268
  skeletonItemHeight = "9"
9020
9269
  }) {
9021
9270
  const loading = useLoading(own);
9022
- const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx57(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
9271
+ const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx58(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
9023
9272
  const sensors = useSensors4(
9024
9273
  useSensor4(PointerSensor4, { activationConstraint: { distance: 6 } }),
9025
9274
  useSensor4(KeyboardSensor3, { coordinateGetter: sortableKeyboardCoordinates3 })
@@ -9055,7 +9304,7 @@ function SortableSections({
9055
9304
  if (from === target && !move.before && !move.after) return;
9056
9305
  onMove(item, move);
9057
9306
  }
9058
- return /* @__PURE__ */ jsxs43(
9307
+ return /* @__PURE__ */ jsxs44(
9059
9308
  DndContext4,
9060
9309
  {
9061
9310
  sensors,
@@ -9065,16 +9314,16 @@ function SortableSections({
9065
9314
  onDragCancel: () => setActive(null),
9066
9315
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
9067
9316
  children: [
9068
- /* @__PURE__ */ jsx57(Stack13, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs43(Section, { section: s, dragging: !!active, children: [
9069
- loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs43(Box13, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
9070
- /* @__PURE__ */ jsx57(Bone, { width: "14", height: "4" }),
9071
- /* @__PURE__ */ jsx57(TextBone, { width: boneWidth(n, 16, 36) })
9317
+ /* @__PURE__ */ jsx58(Stack13, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs44(Section, { section: s, dragging: !!active, children: [
9318
+ loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs44(Box14, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
9319
+ /* @__PURE__ */ jsx58(Bone, { width: "14", height: "4" }),
9320
+ /* @__PURE__ */ jsx58(TextBone, { width: boneWidth(n, 16, 36) })
9072
9321
  ] }, n)),
9073
- s.items.map((item) => /* @__PURE__ */ jsx57(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
9074
- !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx57(Text18, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
9322
+ s.items.map((item) => /* @__PURE__ */ jsx58(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
9323
+ !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx58(Text18, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
9075
9324
  !loading && s.footer
9076
9325
  ] }, s.id)) }),
9077
- /* @__PURE__ */ jsx57(DragOverlay3, { children: active ? /* @__PURE__ */ jsx57(Box13, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
9326
+ /* @__PURE__ */ jsx58(DragOverlay3, { children: active ? /* @__PURE__ */ jsx58(Box14, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
9078
9327
  ]
9079
9328
  }
9080
9329
  );
@@ -9082,9 +9331,9 @@ function SortableSections({
9082
9331
  function Section({ section, dragging, children }) {
9083
9332
  const id = sectionId(section.id);
9084
9333
  const { setNodeRef, isOver } = useDroppable3({ id });
9085
- return /* @__PURE__ */ jsxs43(Box13, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
9086
- /* @__PURE__ */ jsx57(Box13, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
9087
- /* @__PURE__ */ jsx57(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx57(
9334
+ return /* @__PURE__ */ jsxs44(Box14, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
9335
+ /* @__PURE__ */ jsx58(Box14, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
9336
+ /* @__PURE__ */ jsx58(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx58(
9088
9337
  Stack13,
9089
9338
  {
9090
9339
  ref: setNodeRef,
@@ -9101,8 +9350,8 @@ function Section({ section, dragging, children }) {
9101
9350
  }
9102
9351
  function SortableItem({ id, children }) {
9103
9352
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable3({ id });
9104
- return /* @__PURE__ */ jsx57(
9105
- Box13,
9353
+ return /* @__PURE__ */ jsx58(
9354
+ Box14,
9106
9355
  {
9107
9356
  ref: setNodeRef,
9108
9357
  style: { transform: CSS4.Transform.toString(transform), transition },
@@ -9119,9 +9368,9 @@ function SortableItem({ id, children }) {
9119
9368
 
9120
9369
  // src/components/TimelineChart.tsx
9121
9370
  import { Fragment as Fragment18, useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef23, useState as useState25 } from "react";
9122
- import { Box as Box14, HStack as HStack14, Popover as Popover4, Portal as Portal17, Stack as Stack14, Text as Text19 } from "@chakra-ui/react";
9371
+ import { Box as Box15, HStack as HStack14, Popover as Popover4, Portal as Portal17, Stack as Stack14, Text as Text19 } from "@chakra-ui/react";
9123
9372
  import { Flag, Trash2 as Trash23 } from "lucide-react";
9124
- import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
9373
+ import { jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
9125
9374
  var DAY2 = 864e5;
9126
9375
  var toDay = (day) => Math.round(Date.parse(`${day}T00:00:00Z`) / DAY2);
9127
9376
  var fromDay = (n) => new Date(n * DAY2).toISOString().slice(0, 10);
@@ -9131,7 +9380,7 @@ function TimelineChart({
9131
9380
  to,
9132
9381
  dayWidth,
9133
9382
  fill: fill4 = false,
9134
- rows,
9383
+ rows: rows2,
9135
9384
  links = [],
9136
9385
  today,
9137
9386
  bands = [],
@@ -9157,8 +9406,8 @@ function TimelineChart({
9157
9406
  skeletonRows = 6
9158
9407
  }) {
9159
9408
  const tv = useTokenVar();
9160
- const placeholders = useLoading(own) && rows.length === 0;
9161
- const shown = placeholders ? Array.from({ length: skeletonRows }, (_, i) => ({ id: `skeleton-${i}` })) : rows;
9409
+ const placeholders = useLoading(own) && rows2.length === 0;
9410
+ const shown = placeholders ? Array.from({ length: skeletonRows }, (_, i) => ({ id: `skeleton-${i}` })) : rows2;
9162
9411
  const root = useRef23(null);
9163
9412
  const [room, setRoom] = useState25(0);
9164
9413
  useEffect17(() => {
@@ -9253,7 +9502,7 @@ function TimelineChart({
9253
9502
  if (!refocus.current) return;
9254
9503
  const bar = root.current?.querySelector(`[data-bar="${CSS.escape(refocus.current)}"]`);
9255
9504
  if (bar && document.activeElement !== bar) bar.focus();
9256
- }, [rows]);
9505
+ }, [rows2]);
9257
9506
  const span = (item) => {
9258
9507
  const s = item.start ?? item.end, e = item.end ?? item.start;
9259
9508
  let a = toDay(s), b = toDay(e);
@@ -9313,7 +9562,7 @@ function TimelineChart({
9313
9562
  onMove(item, fromDay(s + step), fromDay(en + step));
9314
9563
  }
9315
9564
  }
9316
- const items = new Map(rows.flatMap((r) => r.item ? [[r.item.id, r.item]] : []));
9565
+ const items = new Map(rows2.flatMap((r) => r.item ? [[r.item.id, r.item]] : []));
9317
9566
  const barAt = (x, y) => document.elementsFromPoint(x, y).map((el) => el.closest("[data-bar]")?.dataset.bar).find((id) => !!id) ?? null;
9318
9567
  function linkDown(item, e) {
9319
9568
  if (e.button !== 0 || !layer.current) return;
@@ -9352,7 +9601,7 @@ function TimelineChart({
9352
9601
  return { x1: (Math.max(a, origin) - origin) * dayWidth, x2: (Math.min(b, origin + days - 1) - origin + 1) * dayWidth };
9353
9602
  };
9354
9603
  const ys = /* @__PURE__ */ new Map();
9355
- rows.forEach((r, i) => {
9604
+ rows2.forEach((r, i) => {
9356
9605
  if (r.item && (r.item.start || r.item.end)) {
9357
9606
  const { a, b } = span(r.item);
9358
9607
  ys.set(r.item.id, { y: i * rowHeight + rowHeight / 2, a, b, ...extent(r.item) });
@@ -9390,8 +9639,8 @@ function TimelineChart({
9390
9639
  const bandsTop = tickHeight, markersTop = tickHeight + (shownBands.length ? STRIP : 0);
9391
9640
  const headerHeight = markersTop + (shownMarkers.length ? STRIP : 0);
9392
9641
  const todayAt = today ? toDay(today) - origin : -1;
9393
- return /* @__PURE__ */ jsxs44(
9394
- Box14,
9642
+ return /* @__PURE__ */ jsxs45(
9643
+ Box15,
9395
9644
  {
9396
9645
  ref: root,
9397
9646
  role: "region",
@@ -9408,10 +9657,10 @@ function TimelineChart({
9408
9657
  },
9409
9658
  onKeyDown: zoomKey,
9410
9659
  children: [
9411
- instructions && /* @__PURE__ */ jsx58(Text19, { srOnly: true, children: instructions }),
9412
- /* @__PURE__ */ jsxs44(Box14, { display: "grid", gridTemplateColumns: fill4 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
9413
- /* @__PURE__ */ jsx58(
9414
- Box14,
9660
+ instructions && /* @__PURE__ */ jsx59(Text19, { srOnly: true, children: instructions }),
9661
+ /* @__PURE__ */ jsxs45(Box15, { display: "grid", gridTemplateColumns: fill4 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
9662
+ /* @__PURE__ */ jsx59(
9663
+ Box15,
9415
9664
  {
9416
9665
  position: "sticky",
9417
9666
  top: "0",
@@ -9429,9 +9678,9 @@ function TimelineChart({
9429
9678
  children: corner
9430
9679
  }
9431
9680
  ),
9432
- /* @__PURE__ */ jsxs44(Box14, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
9433
- ticks.map((t, i) => /* @__PURE__ */ jsx58(
9434
- Box14,
9681
+ /* @__PURE__ */ jsxs45(Box15, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
9682
+ ticks.map((t, i) => /* @__PURE__ */ jsx59(
9683
+ Box15,
9435
9684
  {
9436
9685
  position: "absolute",
9437
9686
  insetStart: `${t.day * dayWidth}px`,
@@ -9441,7 +9690,7 @@ function TimelineChart({
9441
9690
  borderInlineStartWidth: "1px",
9442
9691
  borderColor: "border",
9443
9692
  "aria-hidden": true,
9444
- children: /* @__PURE__ */ jsx58(
9693
+ children: /* @__PURE__ */ jsx59(
9445
9694
  Text19,
9446
9695
  {
9447
9696
  position: "sticky",
@@ -9460,7 +9709,7 @@ function TimelineChart({
9460
9709
  },
9461
9710
  t.day
9462
9711
  )),
9463
- subTicks.map((t) => /* @__PURE__ */ jsx58(
9712
+ subTicks.map((t) => /* @__PURE__ */ jsx59(
9464
9713
  Text19,
9465
9714
  {
9466
9715
  position: "absolute",
@@ -9480,8 +9729,8 @@ function TimelineChart({
9480
9729
  },
9481
9730
  t.day
9482
9731
  )),
9483
- offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx58(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx58(
9484
- Box14,
9732
+ offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx59(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx59(
9733
+ Box15,
9485
9734
  {
9486
9735
  position: "absolute",
9487
9736
  insetStart: `${o.a * dayWidth}px`,
@@ -9495,8 +9744,8 @@ function TimelineChart({
9495
9744
  "aria-label": o.label
9496
9745
  }
9497
9746
  ) }, `h${o.a}`)),
9498
- shownBands.map((b) => /* @__PURE__ */ jsx58(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx58(
9499
- Box14,
9747
+ shownBands.map((b) => /* @__PURE__ */ jsx59(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx59(
9748
+ Box15,
9500
9749
  {
9501
9750
  position: "absolute",
9502
9751
  insetStart: `${b.a * dayWidth + 1}px`,
@@ -9512,7 +9761,7 @@ function TimelineChart({
9512
9761
  focusVisibleRing: "inside",
9513
9762
  overflow: "clip",
9514
9763
  "aria-label": b.label,
9515
- children: /* @__PURE__ */ jsx58(
9764
+ children: /* @__PURE__ */ jsx59(
9516
9765
  Text19,
9517
9766
  {
9518
9767
  position: "sticky",
@@ -9525,13 +9774,13 @@ function TimelineChart({
9525
9774
  color: b.current ? "colorPalette.fg" : "fg.muted",
9526
9775
  fontWeight: b.current ? "medium" : void 0,
9527
9776
  truncate: true,
9528
- children: /* @__PURE__ */ jsx58("bdi", { children: b.label })
9777
+ children: /* @__PURE__ */ jsx59("bdi", { children: b.label })
9529
9778
  }
9530
9779
  )
9531
9780
  }
9532
9781
  ) }, b.id)),
9533
- shownMarkers.map((m4) => /* @__PURE__ */ jsx58(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs44(
9534
- Box14,
9782
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx59(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs45(
9783
+ Box15,
9535
9784
  {
9536
9785
  position: "absolute",
9537
9786
  insetStart: `${m4.at * dayWidth + dayWidth / 2 - 1}px`,
@@ -9555,16 +9804,16 @@ function TimelineChart({
9555
9804
  focusVisibleRing: "outside",
9556
9805
  "aria-label": m4.label,
9557
9806
  children: [
9558
- /* @__PURE__ */ jsx58(Flag, { size: 11, "aria-hidden": true }),
9559
- /* @__PURE__ */ jsx58("bdi", { children: m4.label })
9807
+ /* @__PURE__ */ jsx59(Flag, { size: 11, "aria-hidden": true }),
9808
+ /* @__PURE__ */ jsx59("bdi", { children: m4.label })
9560
9809
  ]
9561
9810
  }
9562
9811
  ) }, m4.id))
9563
9812
  ] }),
9564
- /* @__PURE__ */ jsx58(Box14, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx58(HStack14, { 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__ */ jsx58(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
9565
- /* @__PURE__ */ jsxs44(Box14, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
9566
- offRuns.map((o) => /* @__PURE__ */ jsx58(
9567
- Box14,
9813
+ /* @__PURE__ */ jsx59(Box15, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx59(HStack14, { 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__ */ jsx59(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
9814
+ /* @__PURE__ */ jsxs45(Box15, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
9815
+ offRuns.map((o) => /* @__PURE__ */ jsx59(
9816
+ Box15,
9568
9817
  {
9569
9818
  position: "absolute",
9570
9819
  insetStart: `${o.a * dayWidth}px`,
@@ -9578,9 +9827,9 @@ function TimelineChart({
9578
9827
  },
9579
9828
  `o${o.a}`
9580
9829
  )),
9581
- ticks.map((t) => /* @__PURE__ */ jsx58(Box14, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
9582
- shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx58(
9583
- Box14,
9830
+ ticks.map((t) => /* @__PURE__ */ jsx59(Box15, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
9831
+ shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx59(
9832
+ Box15,
9584
9833
  {
9585
9834
  position: "absolute",
9586
9835
  insetStart: `${b.a * dayWidth}px`,
@@ -9594,8 +9843,8 @@ function TimelineChart({
9594
9843
  },
9595
9844
  b.id
9596
9845
  )),
9597
- shownMarkers.map((m4) => /* @__PURE__ */ jsx58(
9598
- Box14,
9846
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx59(
9847
+ Box15,
9599
9848
  {
9600
9849
  position: "absolute",
9601
9850
  insetStart: `${m4.at * dayWidth + dayWidth / 2 - 1}px`,
@@ -9611,8 +9860,8 @@ function TimelineChart({
9611
9860
  },
9612
9861
  m4.id
9613
9862
  )),
9614
- todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx58(
9615
- Box14,
9863
+ todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx59(
9864
+ Box15,
9616
9865
  {
9617
9866
  position: "absolute",
9618
9867
  insetStart: `${todayAt * dayWidth + dayWidth / 2}px`,
@@ -9624,8 +9873,8 @@ function TimelineChart({
9624
9873
  "aria-hidden": true
9625
9874
  }
9626
9875
  ),
9627
- shown.map((r, i) => /* @__PURE__ */ jsx58(
9628
- Box14,
9876
+ shown.map((r, i) => /* @__PURE__ */ jsx59(
9877
+ Box15,
9629
9878
  {
9630
9879
  position: "absolute",
9631
9880
  insetStart: "0",
@@ -9639,7 +9888,7 @@ function TimelineChart({
9639
9888
  },
9640
9889
  r.id
9641
9890
  )),
9642
- placeholders && shown.map((r, i) => /* @__PURE__ */ jsx58(
9891
+ placeholders && shown.map((r, i) => /* @__PURE__ */ jsx59(
9643
9892
  Bone,
9644
9893
  {
9645
9894
  position: "absolute",
@@ -9651,13 +9900,13 @@ function TimelineChart({
9651
9900
  },
9652
9901
  `bar-${r.id}`
9653
9902
  )),
9654
- rows.map((r, i) => {
9903
+ rows2.map((r, i) => {
9655
9904
  const bl = r.item?.baseline;
9656
9905
  if (!bl || !bl.start && !bl.end) return null;
9657
9906
  const a = Math.max(toDay(bl.start ?? bl.end) - origin, 0), z = Math.min(toDay(bl.end ?? bl.start) - origin, days - 1);
9658
9907
  if (z < a) return null;
9659
- return /* @__PURE__ */ jsx58(
9660
- Box14,
9908
+ return /* @__PURE__ */ jsx59(
9909
+ Box15,
9661
9910
  {
9662
9911
  position: "absolute",
9663
9912
  insetStart: `${a * dayWidth}px`,
@@ -9673,13 +9922,13 @@ function TimelineChart({
9673
9922
  `bl:${r.id}`
9674
9923
  );
9675
9924
  }),
9676
- rows.map((r, i) => r.lane?.map((c2) => {
9925
+ rows2.map((r, i) => r.lane?.map((c2) => {
9677
9926
  const a = Math.max(toDay(c2.start) - origin, 0), z = Math.min(toDay(c2.end) - origin, days - 1);
9678
9927
  if (z < a) return null;
9679
9928
  const w = (z - a + 1) * dayWidth - 2;
9680
9929
  const palette3 = c2.tone === "over" ? "danger" : c2.tone === "full" ? "warning" : "accent";
9681
- return /* @__PURE__ */ jsx58(
9682
- Box14,
9930
+ return /* @__PURE__ */ jsx59(
9931
+ Box15,
9683
9932
  {
9684
9933
  position: "absolute",
9685
9934
  insetStart: `${a * dayWidth + 1}px`,
@@ -9707,7 +9956,7 @@ function TimelineChart({
9707
9956
  `${r.id}:${c2.start}`
9708
9957
  );
9709
9958
  })),
9710
- rows.map((r, i) => {
9959
+ rows2.map((r, i) => {
9711
9960
  const item = r.item;
9712
9961
  if (!item || !item.start && !item.end) return null;
9713
9962
  const { a, b } = span(item);
@@ -9719,9 +9968,9 @@ function TimelineChart({
9719
9968
  const thin = tone === "rollup" && !single;
9720
9969
  const diamond = single ? { w: `${DIAMOND}px`, h: `${DIAMOND}px`, top: `${i * rowHeight + rowHeight / 2 - DIAMOND / 2}px`, transform: "rotate(45deg)", rounded: "l1" } : null;
9721
9970
  const canLink = !!onLink && item.linkable !== false && !drag;
9722
- return /* @__PURE__ */ jsxs44(Fragment18, { children: [
9723
- /* @__PURE__ */ jsxs44(
9724
- Box14,
9971
+ return /* @__PURE__ */ jsxs45(Fragment18, { children: [
9972
+ /* @__PURE__ */ jsxs45(
9973
+ Box15,
9725
9974
  {
9726
9975
  role: "button",
9727
9976
  tabIndex: 0,
@@ -9776,8 +10025,8 @@ function TimelineChart({
9776
10025
  "data-bar": item.id,
9777
10026
  children: [
9778
10027
  !single && !thin && renderBar?.(item),
9779
- item.progress != null && !single && /* @__PURE__ */ jsx58(
9780
- Box14,
10028
+ item.progress != null && !single && /* @__PURE__ */ jsx59(
10029
+ Box15,
9781
10030
  {
9782
10031
  position: "absolute",
9783
10032
  insetStart: "0",
@@ -9792,8 +10041,8 @@ function TimelineChart({
9792
10041
  ),
9793
10042
  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
9794
10043
  // change would be saved twice (the second refused as a conflict).
9795
- /* @__PURE__ */ jsx58(
9796
- Box14,
10044
+ /* @__PURE__ */ jsx59(
10045
+ Box15,
9797
10046
  {
9798
10047
  position: "absolute",
9799
10048
  insetEnd: "0",
@@ -9816,8 +10065,8 @@ function TimelineChart({
9816
10065
  ]
9817
10066
  }
9818
10067
  ),
9819
- canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx58(
9820
- Box14,
10068
+ canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx59(
10069
+ Box15,
9821
10070
  {
9822
10071
  position: "absolute",
9823
10072
  insetStart: `${single ? right + 3 : Math.max(right, left + 6)}px`,
@@ -9838,25 +10087,25 @@ function TimelineChart({
9838
10087
  onPointerUp: linkUp,
9839
10088
  onPointerCancel: () => setLinking(null),
9840
10089
  "aria-hidden": true,
9841
- children: /* @__PURE__ */ jsx58(Box14, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
10090
+ children: /* @__PURE__ */ jsx59(Box15, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
9842
10091
  }
9843
10092
  )
9844
10093
  ] }, item.id);
9845
10094
  }),
9846
- /* @__PURE__ */ jsx58(
9847
- Box14,
10095
+ /* @__PURE__ */ jsx59(
10096
+ Box15,
9848
10097
  {
9849
10098
  position: "absolute",
9850
10099
  insetInlineStart: "0",
9851
10100
  top: "0",
9852
10101
  w: `${width}px`,
9853
- h: `${rows.length * rowHeight}px`,
10102
+ h: `${rows2.length * rowHeight}px`,
9854
10103
  pointerEvents: "none",
9855
10104
  zIndex: "1",
9856
10105
  _rtl: { transform: "scaleX(-1)" },
9857
10106
  "aria-hidden": !onUnlink,
9858
- children: /* @__PURE__ */ jsxs44("svg", { width, height: rows.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
9859
- /* @__PURE__ */ jsx58("defs", { children: /* @__PURE__ */ jsx58("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx58("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
10107
+ children: /* @__PURE__ */ jsxs45("svg", { width, height: rows2.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
10108
+ /* @__PURE__ */ jsx59("defs", { children: /* @__PURE__ */ jsx59("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx59("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
9860
10109
  links.map((l) => {
9861
10110
  const f = ys.get(l.from), t = ys.get(l.to);
9862
10111
  if (!f || !t) return null;
@@ -9867,8 +10116,8 @@ function TimelineChart({
9867
10116
  const picked = menu?.from === l.from && menu.to === l.to;
9868
10117
  const faint = !l.strong && links.some((x) => x.strong);
9869
10118
  const open = (x, y) => setMenu({ from: l.from, to: l.to, x, y });
9870
- return /* @__PURE__ */ jsxs44("g", { children: [
9871
- /* @__PURE__ */ jsx58(
10119
+ return /* @__PURE__ */ jsxs45("g", { children: [
10120
+ /* @__PURE__ */ jsx59(
9872
10121
  "path",
9873
10122
  {
9874
10123
  d,
@@ -9880,7 +10129,7 @@ function TimelineChart({
9880
10129
  markerEnd: "url(#abp-arrow)"
9881
10130
  }
9882
10131
  ),
9883
- onUnlink && /* @__PURE__ */ jsx58(
10132
+ onUnlink && /* @__PURE__ */ jsx59(
9884
10133
  "path",
9885
10134
  {
9886
10135
  d,
@@ -9905,14 +10154,14 @@ function TimelineChart({
9905
10154
  ] })
9906
10155
  }
9907
10156
  ),
9908
- linking && /* @__PURE__ */ jsxs44("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
9909
- /* @__PURE__ */ jsx58("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
9910
- /* @__PURE__ */ jsx58("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
10157
+ linking && /* @__PURE__ */ jsxs45("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
10158
+ /* @__PURE__ */ jsx59("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
10159
+ /* @__PURE__ */ jsx59("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
9911
10160
  ] })
9912
10161
  ] })
9913
10162
  ] }),
9914
- card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx58(Portal17, { children: /* @__PURE__ */ jsx58(
9915
- Box14,
10163
+ card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx59(Portal17, { children: /* @__PURE__ */ jsx59(
10164
+ Box15,
9916
10165
  {
9917
10166
  id: "abp-timeline-card",
9918
10167
  role: "tooltip",
@@ -9935,7 +10184,7 @@ function TimelineChart({
9935
10184
  children: renderCard(items.get(card.id))
9936
10185
  }
9937
10186
  ) }),
9938
- onUnlink && /* @__PURE__ */ jsx58(
10187
+ onUnlink && /* @__PURE__ */ jsx59(
9939
10188
  Popover4.Root,
9940
10189
  {
9941
10190
  open: !!menu,
@@ -9944,13 +10193,13 @@ function TimelineChart({
9944
10193
  unmountOnExit: true,
9945
10194
  autoFocus: true,
9946
10195
  positioning: { placement: "bottom", getAnchorRect: () => menu ? { x: menu.x, y: menu.y, width: 1, height: 1 } : null },
9947
- children: /* @__PURE__ */ jsx58(Portal17, { children: /* @__PURE__ */ jsx58(Popover4.Positioner, { children: /* @__PURE__ */ jsx58(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx58(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs44(Stack14, { gap: "2", children: [
9948
- /* @__PURE__ */ jsx58(Text19, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
9949
- /* @__PURE__ */ jsxs44(Button, { size: "sm", variant: "secondary", onClick: () => {
10196
+ children: /* @__PURE__ */ jsx59(Portal17, { children: /* @__PURE__ */ jsx59(Popover4.Positioner, { children: /* @__PURE__ */ jsx59(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx59(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs45(Stack14, { gap: "2", children: [
10197
+ /* @__PURE__ */ jsx59(Text19, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
10198
+ /* @__PURE__ */ jsxs45(Button, { size: "sm", variant: "secondary", onClick: () => {
9950
10199
  onUnlink(menu);
9951
10200
  setMenu(null);
9952
10201
  }, children: [
9953
- /* @__PURE__ */ jsx58(Trash23, {}),
10202
+ /* @__PURE__ */ jsx59(Trash23, {}),
9954
10203
  linkTexts?.remove
9955
10204
  ] })
9956
10205
  ] }) }) }) }) })
@@ -9963,7 +10212,7 @@ function TimelineChart({
9963
10212
 
9964
10213
  // src/components/TimelineCards.tsx
9965
10214
  import { useEffect as useEffect18, useMemo as useMemo14, useRef as useRef24, useState as useState26 } from "react";
9966
- import { Box as Box15, chakra as chakra33, Grid as Grid3, Stack as Stack15, Text as Text20 } from "@chakra-ui/react";
10215
+ import { Box as Box16, chakra as chakra34, Grid as Grid3, Stack as Stack15, Text as Text20 } from "@chakra-ui/react";
9967
10216
 
9968
10217
  // src/components/timeline-cards-math.ts
9969
10218
  var DAY3 = 864e5;
@@ -10015,7 +10264,7 @@ function placeCards(items, first, days, scale, colW = columnWidth(scale)) {
10015
10264
  }
10016
10265
 
10017
10266
  // src/components/TimelineCards.tsx
10018
- import { jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
10267
+ import { jsx as jsx60, jsxs as jsxs46 } from "react/jsx-runtime";
10019
10268
  var LANE = 60;
10020
10269
  var KEYS = { d: "day", w: "week", m: "month" };
10021
10270
  function TimelineCards(props) {
@@ -10029,8 +10278,8 @@ function TimelineCards(props) {
10029
10278
  onScale(next);
10030
10279
  }
10031
10280
  };
10032
- return /* @__PURE__ */ jsxs45(
10033
- chakra33.div,
10281
+ return /* @__PURE__ */ jsxs46(
10282
+ chakra34.div,
10034
10283
  {
10035
10284
  role: "region",
10036
10285
  "aria-label": props["aria-label"],
@@ -10040,15 +10289,15 @@ function TimelineCards(props) {
10040
10289
  overflow: "hidden",
10041
10290
  "data-timeline-cards": scale,
10042
10291
  children: [
10043
- scale === "day" ? /* @__PURE__ */ jsx59(DayGrid, { ...props }) : /* @__PURE__ */ jsx59(Lanes, { ...props, scale }),
10292
+ scale === "day" ? /* @__PURE__ */ jsx60(DayGrid, { ...props }) : /* @__PURE__ */ jsx60(Lanes, { ...props, scale }),
10044
10293
  props.footer
10045
10294
  ]
10046
10295
  }
10047
10296
  );
10048
10297
  }
10049
- function Card({ item, p, range, cutStart, cutEnd, style }) {
10050
- const card = /* @__PURE__ */ jsxs45(
10051
- chakra33.button,
10298
+ function Card2({ item, p, range, cutStart, cutEnd, style }) {
10299
+ const card = /* @__PURE__ */ jsxs46(
10300
+ chakra34.button,
10052
10301
  {
10053
10302
  type: "button",
10054
10303
  "data-timeline-card": item.id,
@@ -10072,12 +10321,12 @@ function Card({ item, p, range, cutStart, cutEnd, style }) {
10072
10321
  transition: "background 120ms, border-color 120ms",
10073
10322
  ...style,
10074
10323
  children: [
10075
- /* @__PURE__ */ jsx59(Box15, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
10076
- /* @__PURE__ */ jsx59(Stack15, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
10324
+ /* @__PURE__ */ jsx60(Box16, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
10325
+ /* @__PURE__ */ jsx60(Stack15, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
10077
10326
  ]
10078
10327
  }
10079
10328
  );
10080
- return p.details ? /* @__PURE__ */ jsx59(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
10329
+ return p.details ? /* @__PURE__ */ jsx60(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
10081
10330
  }
10082
10331
  function Lanes(p) {
10083
10332
  const { days, today, items, scale } = p;
@@ -10099,12 +10348,12 @@ function Lanes(p) {
10099
10348
  const gridW = days.length * colW;
10100
10349
  const placeholders = useLoading(p.loading) && items.length === 0;
10101
10350
  const height = (placeholders ? 4 : Math.max(lanes, 1)) * LANE + 16;
10102
- return /* @__PURE__ */ jsx59(chakra33.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs45(chakra33.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
10103
- /* @__PURE__ */ jsx59(chakra33.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
10351
+ return /* @__PURE__ */ jsx60(chakra34.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs46(chakra34.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
10352
+ /* @__PURE__ */ jsx60(chakra34.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
10104
10353
  const isToday = d === today;
10105
10354
  const weekStart = new Date(dayNumber(d) * 864e5).getUTCDay() === 0;
10106
- return /* @__PURE__ */ jsxs45(
10107
- chakra33.div,
10355
+ return /* @__PURE__ */ jsxs46(
10356
+ chakra34.div,
10108
10357
  {
10109
10358
  w: `${colW}px`,
10110
10359
  flexShrink: 0,
@@ -10120,8 +10369,8 @@ function Lanes(p) {
10120
10369
  borderInlineStartWidth: weekStart && scale === "month" ? "1px" : "0",
10121
10370
  borderColor: "border",
10122
10371
  children: [
10123
- /* @__PURE__ */ jsx59(Text20, { as: "span", children: p.weekday(d) }),
10124
- /* @__PURE__ */ jsx59(
10372
+ /* @__PURE__ */ jsx60(Text20, { as: "span", children: p.weekday(d) }),
10373
+ /* @__PURE__ */ jsx60(
10125
10374
  Text20,
10126
10375
  {
10127
10376
  as: "span",
@@ -10140,9 +10389,9 @@ function Lanes(p) {
10140
10389
  d
10141
10390
  );
10142
10391
  }) }),
10143
- /* @__PURE__ */ jsx59(chakra33.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx59(chakra33.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
10144
- todayIdx >= 0 && /* @__PURE__ */ jsx59(
10145
- chakra33.div,
10392
+ /* @__PURE__ */ jsx60(chakra34.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx60(chakra34.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
10393
+ todayIdx >= 0 && /* @__PURE__ */ jsx60(
10394
+ chakra34.div,
10146
10395
  {
10147
10396
  position: "absolute",
10148
10397
  top: "0",
@@ -10156,7 +10405,7 @@ function Lanes(p) {
10156
10405
  zIndex: "1"
10157
10406
  }
10158
10407
  ),
10159
- placeholders ? /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx59(
10408
+ placeholders ? /* @__PURE__ */ jsx60(chakra34.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx60(
10160
10409
  Bone,
10161
10410
  {
10162
10411
  position: "absolute",
@@ -10167,10 +10416,10 @@ function Lanes(p) {
10167
10416
  borderRadius: "l2"
10168
10417
  },
10169
10418
  i
10170
- )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
10419
+ )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx60(chakra34.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx60(chakra34.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
10171
10420
  const item = byId.get(c2.id);
10172
- return /* @__PURE__ */ jsx59(
10173
- chakra33.div,
10421
+ return /* @__PURE__ */ jsx60(
10422
+ chakra34.div,
10174
10423
  {
10175
10424
  role: "listitem",
10176
10425
  position: "absolute",
@@ -10179,7 +10428,7 @@ function Lanes(p) {
10179
10428
  w: `${c2.width}px`,
10180
10429
  display: "flex",
10181
10430
  zIndex: "2",
10182
- children: /* @__PURE__ */ jsx59(Card, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10431
+ children: /* @__PURE__ */ jsx60(Card2, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10183
10432
  },
10184
10433
  c2.id
10185
10434
  );
@@ -10194,8 +10443,8 @@ function DayGrid(p) {
10194
10443
  const x = dayNumber(day);
10195
10444
  return s <= x && x <= d;
10196
10445
  });
10197
- if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx59(chakra33.div, { py: "6", children: p.empty });
10198
- return /* @__PURE__ */ jsx59(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx59(chakra33.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx59(Card, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
10446
+ if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx60(chakra34.div, { py: "6", children: p.empty });
10447
+ return /* @__PURE__ */ jsx60(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx60(chakra34.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx60(Card2, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
10199
10448
  }
10200
10449
  export {
10201
10450
  ABP_UI_VERSION,
@@ -10229,6 +10478,7 @@ export {
10229
10478
  DropHint,
10230
10479
  EMPTY_VALUE,
10231
10480
  EmotionRegistry,
10481
+ EmptyArtDrawing,
10232
10482
  EmptyState,
10233
10483
  FadeIn,
10234
10484
  Field,
@@ -10251,6 +10501,7 @@ export {
10251
10501
  MotionProvider,
10252
10502
  Nudge,
10253
10503
  PageHeader,
10504
+ PageIllustration,
10254
10505
  PageTitleProvider,
10255
10506
  Pagination,
10256
10507
  Panel,