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

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.27" : "0.0.0-dev";
1563
+ var ABP_UI_VERSION = true ? "0.2.0-next.29" : "0.0.0-dev";
1564
1564
 
1565
1565
  // src/provider/time-zone.tsx
1566
1566
  import { createContext, useContext } from "react";
@@ -1577,8 +1577,8 @@ function useAbpTimeZone() {
1577
1577
  import { ChakraProvider, LocaleProvider } from "@chakra-ui/react";
1578
1578
 
1579
1579
  // src/components/ConfirmDialog.tsx
1580
- import { createContext as createContext4, useCallback, useContext as useContext4, useRef as useRef2, useState as useState2 } from "react";
1581
- import { CloseButton, Dialog, Portal } from "@chakra-ui/react";
1580
+ import { createContext as createContext4, useCallback, useContext as useContext4, useId, useRef as useRef2, useState as useState2 } from "react";
1581
+ import { chakra as chakra3, CloseButton, Dialog, Input, Portal, Stack } from "@chakra-ui/react";
1582
1582
 
1583
1583
  // src/provider/labels.tsx
1584
1584
  import { createContext as createContext2, useContext as useContext2 } from "react";
@@ -1707,6 +1707,7 @@ var defaultQueryListLabels = {
1707
1707
  };
1708
1708
  var defaultLabels = {
1709
1709
  close: "Close",
1710
+ typeToConfirm: "Type {value} to confirm",
1710
1711
  cancel: "Cancel",
1711
1712
  confirm: "Confirm",
1712
1713
  retry: "Retry",
@@ -1864,7 +1865,14 @@ function boneWidth(index, min = 8, max = 20) {
1864
1865
 
1865
1866
  // src/components/Button.tsx
1866
1867
  import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
1867
- var chakraVariant = { primary: "solid", secondary: "outline", ghost: "ghost", link: "plain" };
1868
+ var chakraVariant = { primary: "solid", secondary: "outline", ghost: "ghost", link: "plain", cancel: "ghost" };
1869
+ var cancelLook = {
1870
+ bg: { base: "neutral.100", _dark: "neutral.700" },
1871
+ color: { base: "neutral.700", _dark: "neutral.100" },
1872
+ _hover: { bg: { base: "neutral.200", _dark: "neutral.600" } },
1873
+ _active: { bg: { base: "neutral.300", _dark: "neutral.800" } },
1874
+ _disabled: { bg: { base: "neutral.100", _dark: "neutral.800" }, color: "fg.subtle" }
1875
+ };
1868
1876
  function palette2(variant, danger) {
1869
1877
  if (danger) return "danger";
1870
1878
  return variant === "primary" || variant === "link" ? "accent" : "neutral";
@@ -1879,9 +1887,11 @@ var Button = forwardRef(function Button2({ variant = "secondary", size = "md", d
1879
1887
  size,
1880
1888
  variant: chakraVariant[variant],
1881
1889
  colorPalette: palette2(variant, danger),
1890
+ ...variant === "cancel" && !danger ? cancelLook : {},
1882
1891
  css: skeleton ? [ghostCss, css] : css,
1883
1892
  tabIndex: skeleton ? -1 : void 0,
1884
1893
  "aria-hidden": skeleton || void 0,
1894
+ "data-variant": variant === "cancel" ? "cancel" : void 0,
1885
1895
  ...rest
1886
1896
  }
1887
1897
  );
@@ -1939,16 +1949,23 @@ function ConfirmDialog({
1939
1949
  description,
1940
1950
  confirmLabel,
1941
1951
  cancelLabel,
1942
- danger
1952
+ danger,
1953
+ typeToConfirm
1943
1954
  }) {
1944
1955
  const labels = useAbpLabels();
1945
1956
  const cancelRef = useRef2(null);
1957
+ const [typed, setTyped] = useState2("");
1958
+ const typedId = useId();
1959
+ const locked = typeToConfirm != null && typed.trim() !== typeToConfirm;
1946
1960
  return /* @__PURE__ */ jsx6(
1947
1961
  Dialog.Root,
1948
1962
  {
1949
1963
  role: "alertdialog",
1950
1964
  open,
1951
- onOpenChange: (e) => onOpenChange(e.open),
1965
+ onOpenChange: (e) => {
1966
+ if (!e.open) setTyped("");
1967
+ onOpenChange(e.open);
1968
+ },
1952
1969
  initialFocusEl: () => cancelRef.current,
1953
1970
  size: "sm",
1954
1971
  placement: "center",
@@ -1956,10 +1973,28 @@ function ConfirmDialog({
1956
1973
  /* @__PURE__ */ jsx6(Dialog.Backdrop, {}),
1957
1974
  /* @__PURE__ */ jsx6(Dialog.Positioner, { children: /* @__PURE__ */ jsxs3(Dialog.Content, { children: [
1958
1975
  /* @__PURE__ */ jsx6(Dialog.Header, { children: /* @__PURE__ */ jsx6(Dialog.Title, { children: title }) }),
1959
- description != null && /* @__PURE__ */ jsx6(Dialog.Body, { children: /* @__PURE__ */ jsx6(Dialog.Description, { children: description }) }),
1976
+ (description != null || typeToConfirm != null) && /* @__PURE__ */ jsx6(Dialog.Body, { children: /* @__PURE__ */ jsxs3(Stack, { gap: "3", children: [
1977
+ description != null && /* @__PURE__ */ jsx6(Dialog.Description, { children: description }),
1978
+ typeToConfirm != null && /* @__PURE__ */ jsxs3(Stack, { gap: "1.5", children: [
1979
+ /* @__PURE__ */ jsx6(chakra3.label, { htmlFor: typedId, textStyle: "sm", fontWeight: "medium", children: fill(labels.typeToConfirm ?? defaultLabels.typeToConfirm, { value: typeToConfirm }) }),
1980
+ /* @__PURE__ */ jsx6(
1981
+ Input,
1982
+ {
1983
+ id: typedId,
1984
+ value: typed,
1985
+ onChange: (e) => setTyped(e.target.value),
1986
+ autoComplete: "off",
1987
+ spellCheck: false,
1988
+ dir: "ltr",
1989
+ fontFamily: "mono",
1990
+ "data-type-to-confirm": ""
1991
+ }
1992
+ )
1993
+ ] })
1994
+ ] }) }),
1960
1995
  /* @__PURE__ */ jsxs3(Dialog.Footer, { children: [
1961
- /* @__PURE__ */ jsx6(Dialog.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx6(Button, { ref: cancelRef, variant: "secondary", children: cancelLabel ?? labels.cancel }) }),
1962
- /* @__PURE__ */ jsx6(Button, { variant: "primary", danger, loading: busy, onClick: () => void onConfirm(), children: confirmLabel ?? labels.confirm })
1996
+ /* @__PURE__ */ jsx6(Dialog.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx6(Button, { ref: cancelRef, variant: "cancel", children: cancelLabel ?? labels.cancel }) }),
1997
+ /* @__PURE__ */ jsx6(Button, { variant: "primary", danger, loading: busy, disabled: locked, onClick: () => void onConfirm(), children: confirmLabel ?? labels.confirm })
1963
1998
  ] }),
1964
1999
  /* @__PURE__ */ jsx6(Dialog.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx6(CloseButton, { size: "sm", "aria-label": labels.close }) })
1965
2000
  ] }) })
@@ -1967,6 +2002,7 @@ function ConfirmDialog({
1967
2002
  }
1968
2003
  );
1969
2004
  }
2005
+ var fill = (template, values) => template.replace(/\{(\w+)\}/g, (m4, k) => values[k] ?? m4);
1970
2006
  var ConfirmContext = createContext4(null);
1971
2007
  function ConfirmProvider({ children }) {
1972
2008
  const [state, setState] = useState2(null);
@@ -2010,7 +2046,7 @@ import { domAnimation, LazyMotion, MotionConfig } from "motion/react";
2010
2046
  // src/motion/Celebrate.tsx
2011
2047
  import { createContext as createContext6, useCallback as useCallback2, useContext as useContext6, useRef as useRef3, useState as useState3 } from "react";
2012
2048
  import { AnimatePresence, m } from "motion/react";
2013
- import { chakra as chakra3, Portal as Portal2 } from "@chakra-ui/react";
2049
+ import { chakra as chakra4, Portal as Portal2 } from "@chakra-ui/react";
2014
2050
 
2015
2051
  // src/motion/presets.ts
2016
2052
  var STAGGER = 0.04;
@@ -2101,7 +2137,7 @@ var CelebrateContext = createContext6(() => {
2101
2137
  function useCelebrate() {
2102
2138
  return useContext6(CelebrateContext);
2103
2139
  }
2104
- var MotionSpan = chakra3(m.span, {}, { forwardProps: ["transition"] });
2140
+ var MotionSpan = chakra4(m.span, {}, { forwardProps: ["transition"] });
2105
2141
  var TONES = ["accent.solid", "success.solid", "warning.solid", "info.solid"];
2106
2142
  var PARTICLES = 14;
2107
2143
  function CelebrationLayer({ children }) {
@@ -2122,7 +2158,7 @@ function CelebrationLayer({ children }) {
2122
2158
  );
2123
2159
  return /* @__PURE__ */ jsxs4(CelebrateContext.Provider, { value: celebrate, children: [
2124
2160
  children,
2125
- bursts.length > 0 && /* @__PURE__ */ jsx7(Portal2, { children: /* @__PURE__ */ jsx7(chakra3.div, { position: "fixed", inset: "0", pointerEvents: "none", zIndex: "toast", "aria-hidden": "true", children: /* @__PURE__ */ jsx7(AnimatePresence, { children: bursts.map(
2161
+ bursts.length > 0 && /* @__PURE__ */ jsx7(Portal2, { children: /* @__PURE__ */ jsx7(chakra4.div, { position: "fixed", inset: "0", pointerEvents: "none", zIndex: "toast", "aria-hidden": "true", children: /* @__PURE__ */ jsx7(AnimatePresence, { children: bursts.map(
2126
2162
  (b) => b.particles.map((p, i) => /* @__PURE__ */ jsx7(
2127
2163
  MotionSpan,
2128
2164
  {
@@ -2179,7 +2215,7 @@ function MotionProvider({ setting: initial = "system", children }) {
2179
2215
  }
2180
2216
 
2181
2217
  // src/components/Toaster.tsx
2182
- import { createToaster, Portal as Portal3, Spinner, Stack, Toast, Toaster as ChakraToaster } from "@chakra-ui/react";
2218
+ import { createToaster, Portal as Portal3, Spinner, Stack as Stack2, Toast, Toaster as ChakraToaster } from "@chakra-ui/react";
2183
2219
  import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
2184
2220
  var toaster = createToaster({ placement: "bottom-end", pauseOnPageIdle: true, max: 5 });
2185
2221
  function toastDuration(type) {
@@ -2203,7 +2239,7 @@ var rtlPlacementFix = {
2203
2239
  function Toaster() {
2204
2240
  return /* @__PURE__ */ jsx9(Portal3, { children: /* @__PURE__ */ jsx9(ChakraToaster, { toaster, insetInline: { mdDown: "4" }, css: rtlPlacementFix, children: (toast) => /* @__PURE__ */ jsxs5(Toast.Root, { width: { md: "sm" }, children: [
2205
2241
  toast.type === "loading" ? /* @__PURE__ */ jsx9(Spinner, { size: "sm", color: "fg.accent" }) : /* @__PURE__ */ jsx9(Toast.Indicator, {}),
2206
- /* @__PURE__ */ jsxs5(Stack, { gap: "0.5", flex: "1", maxWidth: "full", children: [
2242
+ /* @__PURE__ */ jsxs5(Stack2, { gap: "0.5", flex: "1", maxWidth: "full", children: [
2207
2243
  toast.title && /* @__PURE__ */ jsx9(Toast.Title, { children: toast.title }),
2208
2244
  toast.description && /* @__PURE__ */ jsx9(Toast.Description, { children: toast.description })
2209
2245
  ] }),
@@ -2477,11 +2513,11 @@ function HostSlot({ name, context }) {
2477
2513
 
2478
2514
  // src/host/StepUpDialog.tsx
2479
2515
  import { useEffect as useEffect4, useRef as useRef5, useState as useState7 } from "react";
2480
- import { chakra as chakra5, Dialog as Dialog2, Grid, HStack, Input, Portal as Portal4, Stack as Stack2, Text } from "@chakra-ui/react";
2516
+ import { chakra as chakra6, Dialog as Dialog2, Grid, HStack, Input as Input2, Portal as Portal4, Stack as Stack3, Text } from "@chakra-ui/react";
2481
2517
 
2482
2518
  // src/components/Field.tsx
2483
2519
  import { forwardRef as forwardRef2 } from "react";
2484
- import { chakra as chakra4, Checkbox, Field as ChakraField, NativeSelect, Switch } from "@chakra-ui/react";
2520
+ import { chakra as chakra5, Checkbox, Field as ChakraField, NativeSelect, Switch } from "@chakra-ui/react";
2485
2521
  import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
2486
2522
  var Field = forwardRef2(function Field2({ label, helperText, errorText: errorText2, optionalText, invalid, loading: own, children, ...rest }, ref) {
2487
2523
  const loading = useLoading(own);
@@ -2490,7 +2526,7 @@ var Field = forwardRef2(function Field2({ label, helperText, errorText: errorTex
2490
2526
  label,
2491
2527
  /* @__PURE__ */ jsx13(ChakraField.RequiredIndicator, { fallback: optionalText })
2492
2528
  ] }),
2493
- loading ? /* @__PURE__ */ jsx13(chakra4.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2529
+ loading ? /* @__PURE__ */ jsx13(chakra5.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2494
2530
  helperText != null && /* @__PURE__ */ jsx13(ChakraField.HelperText, { children: helperText }),
2495
2531
  errorText2 != null && /* @__PURE__ */ jsx13(ChakraField.ErrorText, { children: errorText2 })
2496
2532
  ] });
@@ -3134,7 +3170,7 @@ function StepUpDialog() {
3134
3170
  const title = stage === "recovery" ? t("recoveryTitle") : settingUp ? t("setupTitle") : t("title");
3135
3171
  const mayDismiss = stage !== "recovery";
3136
3172
  const codeInput = (label, helper) => /* @__PURE__ */ jsx16(Field, { label, helperText: helper, required: true, children: /* @__PURE__ */ jsx16(
3137
- Input,
3173
+ Input2,
3138
3174
  {
3139
3175
  value: code,
3140
3176
  onChange: (e) => setCode(e.target.value),
@@ -3151,7 +3187,7 @@ function StepUpDialog() {
3151
3187
  },
3152
3188
  method
3153
3189
  ) });
3154
- const passwordField = (focus) => /* @__PURE__ */ jsx16(Field, { label: t("password"), children: /* @__PURE__ */ jsx16(Input, { type: "password", autoComplete: "current-password", autoFocus: focus, value: password, onChange: (e) => setPassword(e.target.value) }) });
3190
+ const passwordField = (focus) => /* @__PURE__ */ jsx16(Field, { label: t("password"), children: /* @__PURE__ */ jsx16(Input2, { type: "password", autoComplete: "current-password", autoFocus: focus, value: password, onChange: (e) => setPassword(e.target.value) }) });
3155
3191
  const footer = (submit, disabled = false, onBack) => /* @__PURE__ */ jsx16(Dialog2.Footer, { children: /* @__PURE__ */ jsxs9(HStack, { children: [
3156
3192
  onBack ? /* @__PURE__ */ jsx16(Button, { variant: "secondary", onClick: onBack, disabled: busy, children: t("back") }) : /* @__PURE__ */ jsx16(Button, { variant: "secondary", onClick: () => close(false), disabled: busy, children: t("cancel") }),
3157
3193
  submit && /* @__PURE__ */ jsx16(Button, { type: "submit", loading: busy, disabled, children: submit })
@@ -3159,7 +3195,7 @@ function StepUpDialog() {
3159
3195
  let body;
3160
3196
  if (stage === "passkey") {
3161
3197
  body = /* @__PURE__ */ jsxs9(Fragment3, { children: [
3162
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", align: "start", children: [
3198
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", align: "start", children: [
3163
3199
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("strongWhy") }),
3164
3200
  /* @__PURE__ */ jsx16(Button, { variant: "primary", onClick: () => void withPasskey(), loading: busy, "data-testid": "use-passkey", children: t("usePasskey") }),
3165
3201
  busy && /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
@@ -3170,11 +3206,11 @@ function StepUpDialog() {
3170
3206
  ] });
3171
3207
  } else if (stage === "code") {
3172
3208
  body = /* @__PURE__ */ jsxs9("form", { onSubmit: (e) => void confirmCode(e), children: [
3173
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3209
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3174
3210
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("appCodeWhy") }),
3175
3211
  codeInput(t("code")),
3176
3212
  /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error }),
3177
- /* @__PURE__ */ jsxs9(Stack2, { gap: "0.5", align: "start", children: [
3213
+ /* @__PURE__ */ jsxs9(Stack3, { gap: "0.5", align: "start", children: [
3178
3214
  need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => toStage("passkey"), children: t("usePasskey") }),
3179
3215
  !strong && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => toStage("confirm"), "data-testid": "use-password", children: t("usePassword") })
3180
3216
  ] })
@@ -3183,7 +3219,7 @@ function StepUpDialog() {
3183
3219
  ] });
3184
3220
  } else if (stage === "confirm" && strong && !settingUp) {
3185
3221
  body = /* @__PURE__ */ jsxs9("form", { onSubmit: (e) => void confirm(e), children: [
3186
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3222
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3187
3223
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: need?.methods.includes("passkey") ? t("strongWhy") : t("strongWhyApp") }),
3188
3224
  passwordField(true),
3189
3225
  codeInput(t("code")),
@@ -3197,18 +3233,18 @@ function StepUpDialog() {
3197
3233
  ] });
3198
3234
  } else if (stage === "confirm") {
3199
3235
  body = /* @__PURE__ */ jsxs9("form", { onSubmit: (e) => void confirm(e), children: [
3200
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3201
- settingUp ? /* @__PURE__ */ jsxs9(Stack2, { gap: "2", children: [
3236
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3237
+ settingUp ? /* @__PURE__ */ jsxs9(Stack3, { gap: "2", children: [
3202
3238
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupWhy") }),
3203
3239
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupPasswordWhy") })
3204
3240
  ] }) : /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: ways ? t("codeWhy") : t("why") }),
3205
3241
  passwordField(!ways),
3206
- ways && /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3207
- sender && !sentTo ? /* @__PURE__ */ jsxs9(Stack2, { gap: "2", align: "start", children: [
3242
+ ways && /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3243
+ sender && !sentTo ? /* @__PURE__ */ jsxs9(Stack3, { gap: "2", align: "start", children: [
3208
3244
  /* @__PURE__ */ jsx16(Text, { children: t("sendTo", { to: sender.to }) }),
3209
3245
  /* @__PURE__ */ jsx16(Button, { onClick: () => void sendCode(), loading: sending, loadingText: t("sending"), "data-testid": "send-code", children: t("send") })
3210
3246
  ] }) : codeInput(recovery ? t("recoveryCode") : sender ? t("sentCode") : t("code"), sentTo ? t("sent", { to: sentTo }) : void 0),
3211
- /* @__PURE__ */ jsxs9(Stack2, { gap: "0.5", align: "start", children: [
3247
+ /* @__PURE__ */ jsxs9(Stack3, { gap: "0.5", align: "start", children: [
3212
3248
  sentTo && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => void sendCode(), disabled: sending, children: t("resend") }),
3213
3249
  ways.hasApp && method !== "app" && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => switchTo("app"), children: t("useApp") }),
3214
3250
  ways.senders.filter((s) => s.method !== method).map((s) => /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => switchTo(s.method), "data-testid": `use-${s.method}`, children: t("byMethod", { name: nameOf(s) }) }, s.method)),
@@ -3222,7 +3258,7 @@ function StepUpDialog() {
3222
3258
  ] });
3223
3259
  } else if (stage === "setup") {
3224
3260
  body = /* @__PURE__ */ jsxs9(Fragment3, { children: [
3225
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", align: "start", children: [
3261
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", align: "start", children: [
3226
3262
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupWhy") }),
3227
3263
  canPasskey ? /* @__PURE__ */ jsx16(Button, { variant: "primary", onClick: () => {
3228
3264
  setPasskeyName(t("passkeyNameDefault"));
@@ -3235,8 +3271,8 @@ function StepUpDialog() {
3235
3271
  ] });
3236
3272
  } else if (stage === "setupPasskey") {
3237
3273
  body = /* @__PURE__ */ jsxs9("form", { onSubmit: (e) => void addPasskey(e), children: [
3238
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3239
- /* @__PURE__ */ jsx16(Field, { label: t("passkeyName"), children: /* @__PURE__ */ jsx16(Input, { value: passkeyName, maxLength: 64, autoFocus: true, onChange: (e) => setPasskeyName(e.target.value), "data-testid": "passkey-name" }) }),
3274
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3275
+ /* @__PURE__ */ jsx16(Field, { label: t("passkeyName"), children: /* @__PURE__ */ jsx16(Input2, { value: passkeyName, maxLength: 64, autoFocus: true, onChange: (e) => setPasskeyName(e.target.value), "data-testid": "passkey-name" }) }),
3240
3276
  busy && /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3241
3277
  /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error })
3242
3278
  ] }) }),
@@ -3247,12 +3283,12 @@ function StepUpDialog() {
3247
3283
  ] });
3248
3284
  } else if (stage === "setupApp") {
3249
3285
  body = /* @__PURE__ */ jsxs9("form", { onSubmit: (e) => void confirmApp(e), children: [
3250
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", children: [
3286
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", children: [
3251
3287
  /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("appScan") }),
3252
- /* @__PURE__ */ jsx16(chakra5.div, { bg: "white", p: "2", rounded: "l2", borderWidth: "1px", w: "fit-content", children: enrolment ? /* @__PURE__ */ jsx16(chakra5.img, { src: enrolment.qr, alt: t("appQrAlt"), width: "44", height: "44", "data-testid": "app-setup-qr" }) : /* @__PURE__ */ jsx16(chakra5.div, { width: "44", height: "44" }) }),
3253
- /* @__PURE__ */ jsxs9(Stack2, { gap: "1", children: [
3288
+ /* @__PURE__ */ jsx16(chakra6.div, { bg: "white", p: "2", rounded: "l2", borderWidth: "1px", w: "fit-content", children: enrolment ? /* @__PURE__ */ jsx16(chakra6.img, { src: enrolment.qr, alt: t("appQrAlt"), width: "44", height: "44", "data-testid": "app-setup-qr" }) : /* @__PURE__ */ jsx16(chakra6.div, { width: "44", height: "44" }) }),
3289
+ /* @__PURE__ */ jsxs9(Stack3, { gap: "1", children: [
3254
3290
  /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("appCantScan") }),
3255
- /* @__PURE__ */ jsx16(chakra5.code, { dir: "ltr", textAlign: "start", fontFamily: "mono", fontSize: "sm", bg: "bg.muted", p: "2", rounded: "l2", wordBreak: "break-all", "data-testid": "app-setup-secret", children: enrolment ? enrolment.secret.replace(/(.{4})/g, "$1 ").trim() : " " })
3291
+ /* @__PURE__ */ jsx16(chakra6.code, { dir: "ltr", textAlign: "start", fontFamily: "mono", fontSize: "sm", bg: "bg.muted", p: "2", rounded: "l2", wordBreak: "break-all", "data-testid": "app-setup-secret", children: enrolment ? enrolment.secret.replace(/(.{4})/g, "$1 ").trim() : " " })
3256
3292
  ] }),
3257
3293
  codeInput(t("appCode")),
3258
3294
  /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error })
@@ -3264,9 +3300,9 @@ function StepUpDialog() {
3264
3300
  ] });
3265
3301
  } else {
3266
3302
  body = /* @__PURE__ */ jsxs9(Fragment3, { children: [
3267
- /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack2, { gap: "field", "data-testid": "recovery-codes", children: [
3303
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs9(Stack3, { gap: "field", "data-testid": "recovery-codes", children: [
3268
3304
  /* @__PURE__ */ jsx16(InlineAlert, { tone: "warning", children: t("recoveryHint") }),
3269
- /* @__PURE__ */ jsx16(Grid, { templateColumns: "repeat(2, max-content)", columnGap: "6", rowGap: "1.5", dir: "ltr", bg: "bg.muted", p: "3", rounded: "l2", w: "fit-content", children: recoveryCodes.map((c2) => /* @__PURE__ */ jsx16(chakra5.code, { fontFamily: "mono", fontSize: "sm", children: c2 }, c2)) })
3305
+ /* @__PURE__ */ jsx16(Grid, { templateColumns: "repeat(2, max-content)", columnGap: "6", rowGap: "1.5", dir: "ltr", bg: "bg.muted", p: "3", rounded: "l2", w: "fit-content", children: recoveryCodes.map((c2) => /* @__PURE__ */ jsx16(chakra6.code, { fontFamily: "mono", fontSize: "sm", children: c2 }, c2)) })
3270
3306
  ] }) }),
3271
3307
  /* @__PURE__ */ jsx16(Dialog2.Footer, { children: /* @__PURE__ */ jsxs9(HStack, { children: [
3272
3308
  /* @__PURE__ */ jsx16(Button, { variant: "secondary", onClick: () => void copyCodes(), children: copied ? t("recoveryCopied") : t("recoveryCopy") }),
@@ -3326,8 +3362,8 @@ function AbpTree({ children, system = defaultSystem, host, locale = "en", labels
3326
3362
  }
3327
3363
 
3328
3364
  // src/components/TranslatedInput.tsx
3329
- import { useEffect as useEffect5, useId, useRef as useRef6, useState as useState8 } from "react";
3330
- import { Box, chakra as chakra6, Group, HStack as HStack2, Input as Input2, Popover, Portal as Portal5, Stack as Stack3, Text as Text2 } from "@chakra-ui/react";
3365
+ import { useEffect as useEffect5, useId as useId2, useRef as useRef6, useState as useState8 } from "react";
3366
+ import { Box, chakra as chakra7, Group, HStack as HStack2, Input as Input3, Popover, Portal as Portal5, Stack as Stack4, Text as Text2 } from "@chakra-ui/react";
3331
3367
  import { Languages } from "lucide-react";
3332
3368
 
3333
3369
  // src/rules/names.ts
@@ -3401,7 +3437,7 @@ function TranslatedInput({
3401
3437
  const others = hostLanguages.filter((l) => l.code !== current.code);
3402
3438
  const filled = others.filter((l) => value[l.code]?.trim()).length;
3403
3439
  const say = (text, values) => formatMessage(locale, text, values);
3404
- const listId = useId();
3440
+ const listId = useId2();
3405
3441
  const input = useRef6(null);
3406
3442
  const [query, setQuery] = useState8("");
3407
3443
  const [focused, setFocused] = useState8(false);
@@ -3477,7 +3513,7 @@ function TranslatedInput({
3477
3513
  const shown = pickName(chain, value, fallback);
3478
3514
  return /* @__PURE__ */ jsxs11(Group, { attached: true, w: "full", children: [
3479
3515
  /* @__PURE__ */ jsx19(
3480
- Input2,
3516
+ Input3,
3481
3517
  {
3482
3518
  ref: input,
3483
3519
  size,
@@ -3545,12 +3581,12 @@ function TranslatedInput({
3545
3581
  },
3546
3582
  children: [
3547
3583
  /* @__PURE__ */ jsxs11(HStack2, { justify: "space-between", gap: "3", align: "baseline", children: [
3548
- /* @__PURE__ */ jsx19(Text2, { textStyle: "body.sm", fontWeight: "medium", lang: current.code, dir: dirOf(current), children: s.names[current.code] ?? /* @__PURE__ */ jsx19(chakra6.span, { color: "fg.muted", children: pickName(chain, s.names, "") }) }),
3584
+ /* @__PURE__ */ jsx19(Text2, { textStyle: "body.sm", fontWeight: "medium", lang: current.code, dir: dirOf(current), children: s.names[current.code] ?? /* @__PURE__ */ jsx19(chakra7.span, { color: "fg.muted", children: pickName(chain, s.names, "") }) }),
3549
3585
  s.source && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", flexShrink: 0, children: s.source })
3550
3586
  ] }),
3551
- others.length > 0 && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", children: others.map((l, j) => /* @__PURE__ */ jsxs11(chakra6.span, { children: [
3587
+ others.length > 0 && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", children: others.map((l, j) => /* @__PURE__ */ jsxs11(chakra7.span, { children: [
3552
3588
  j > 0 && " \xB7 ",
3553
- /* @__PURE__ */ jsx19(chakra6.span, { lang: l.code, dir: dirOf(l), children: s.names[l.code] ?? EMPTY_VALUE })
3589
+ /* @__PURE__ */ jsx19(chakra7.span, { lang: l.code, dir: dirOf(l), children: s.names[l.code] ?? EMPTY_VALUE })
3554
3590
  ] }, l.code)) })
3555
3591
  ]
3556
3592
  },
@@ -3582,11 +3618,11 @@ function TranslatedInput({
3582
3618
  /* @__PURE__ */ jsx19(Popover.Arrow, {}),
3583
3619
  /* @__PURE__ */ jsxs11(Popover.Body, { children: [
3584
3620
  /* @__PURE__ */ jsx19(Text2, { textStyle: "label", mb: "2", children: labels.title }),
3585
- /* @__PURE__ */ jsx19(Stack3, { gap: "3", children: others.map((l) => {
3621
+ /* @__PURE__ */ jsx19(Stack4, { gap: "3", children: others.map((l) => {
3586
3622
  const own = value[l.code] ?? "";
3587
3623
  const fallbackShown = pickName([l.code, ...chain.filter((c2) => c2 !== l.code)], { ...value, [l.code]: "" }, fallback);
3588
3624
  return /* @__PURE__ */ jsxs11(Box, { children: [
3589
- /* @__PURE__ */ jsxs11(chakra6.label, { htmlFor: `tr-${listId}-${l.code}`, textStyle: "body.sm", fontWeight: "medium", children: [
3625
+ /* @__PURE__ */ jsxs11(chakra7.label, { htmlFor: `tr-${listId}-${l.code}`, textStyle: "body.sm", fontWeight: "medium", children: [
3590
3626
  l.name,
3591
3627
  l.englishName && l.englishName !== l.name && /* @__PURE__ */ jsxs11(Text2, { as: "span", color: "fg.muted", fontWeight: "normal", children: [
3592
3628
  " \xB7 ",
@@ -3594,7 +3630,7 @@ function TranslatedInput({
3594
3630
  ] })
3595
3631
  ] }),
3596
3632
  /* @__PURE__ */ jsx19(
3597
- Input2,
3633
+ Input3,
3598
3634
  {
3599
3635
  id: `tr-${listId}-${l.code}`,
3600
3636
  size: "sm",
@@ -3620,12 +3656,12 @@ function TranslatedInput({
3620
3656
  import { Flex, Text as Text4 } from "@chakra-ui/react";
3621
3657
 
3622
3658
  // src/components/Pagination.tsx
3623
- import { chakra as chakra8, HStack as HStack3, Text as Text3 } from "@chakra-ui/react";
3659
+ import { chakra as chakra9, HStack as HStack3, Text as Text3 } from "@chakra-ui/react";
3624
3660
  import { ChevronLeft, ChevronRight } from "lucide-react";
3625
3661
 
3626
3662
  // src/components/DirectionalIcon.tsx
3627
- import { chakra as chakra7 } from "@chakra-ui/react";
3628
- var DirectionalIcon = chakra7("span", {
3663
+ import { chakra as chakra8 } from "@chakra-ui/react";
3664
+ var DirectionalIcon = chakra8("span", {
3629
3665
  base: {
3630
3666
  display: "inline-flex",
3631
3667
  alignItems: "center",
@@ -3675,17 +3711,17 @@ var button = {
3675
3711
  };
3676
3712
  function Pagination({ page, pages, onPage, label, previous, next, pageLabel, disabled, form = "numbered", range, pageOf }) {
3677
3713
  const rangeText = form === "simple" && range ? /* @__PURE__ */ jsx20(Text3, { as: "span", textStyle: "caption", color: "fg.muted", fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap", "aria-live": "polite", children: range }) : null;
3678
- if (pages <= 1) return rangeText ? /* @__PURE__ */ jsx20(chakra8.nav, { "aria-label": label, display: "flex", justifyContent: "center", children: rangeText }) : null;
3714
+ if (pages <= 1) return rangeText ? /* @__PURE__ */ jsx20(chakra9.nav, { "aria-label": label, display: "flex", justifyContent: "center", children: rangeText }) : null;
3679
3715
  const go = (n) => onPage(Math.min(pages, Math.max(1, n)));
3680
- return /* @__PURE__ */ jsx20(chakra8.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs12(HStack3, { gap: "1", justify: "center", wrap: "wrap", children: [
3681
- rangeText && /* @__PURE__ */ jsx20(chakra8.span, { marginEnd: "3", display: "inline-flex", children: rangeText }),
3682
- /* @__PURE__ */ jsx20(chakra8.button, { type: "button", css: button, "aria-label": previous, title: previous, disabled: disabled || page <= 1, onClick: () => go(page - 1), children: /* @__PURE__ */ jsx20(DirectionalIcon, { children: /* @__PURE__ */ jsx20(ChevronLeft, {}) }) }),
3716
+ return /* @__PURE__ */ jsx20(chakra9.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs12(HStack3, { gap: "1", justify: "center", wrap: "wrap", children: [
3717
+ rangeText && /* @__PURE__ */ jsx20(chakra9.span, { marginEnd: "3", display: "inline-flex", children: rangeText }),
3718
+ /* @__PURE__ */ jsx20(chakra9.button, { type: "button", css: button, "aria-label": previous, title: previous, disabled: disabled || page <= 1, onClick: () => go(page - 1), children: /* @__PURE__ */ jsx20(DirectionalIcon, { children: /* @__PURE__ */ jsx20(ChevronLeft, {}) }) }),
3683
3719
  form === "compact" && pageOf && /* @__PURE__ */ jsx20(Text3, { as: "span", textStyle: "sm", px: "1", fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap", children: pageOf }),
3684
3720
  pagesShown(form, page, pages).map(
3685
- (n, i) => n === "gap" ? /* @__PURE__ */ jsx20(chakra8.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3721
+ (n, i) => n === "gap" ? /* @__PURE__ */ jsx20(chakra9.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3686
3722
  // Page buttons stay enabled while a page loads (a second click just asks again); the arrows wait.
3687
3723
  /* @__PURE__ */ jsx20(
3688
- chakra8.button,
3724
+ chakra9.button,
3689
3725
  {
3690
3726
  type: "button",
3691
3727
  css: button,
@@ -3698,7 +3734,7 @@ function Pagination({ page, pages, onPage, label, previous, next, pageLabel, dis
3698
3734
  )
3699
3735
  )
3700
3736
  ),
3701
- /* @__PURE__ */ jsx20(chakra8.button, { type: "button", css: button, "aria-label": next, title: next, disabled: disabled || page >= pages, onClick: () => go(page + 1), children: /* @__PURE__ */ jsx20(DirectionalIcon, { children: /* @__PURE__ */ jsx20(ChevronRight, {}) }) })
3737
+ /* @__PURE__ */ jsx20(chakra9.button, { type: "button", css: button, "aria-label": next, title: next, disabled: disabled || page >= pages, onClick: () => go(page + 1), children: /* @__PURE__ */ jsx20(DirectionalIcon, { children: /* @__PURE__ */ jsx20(ChevronRight, {}) }) })
3702
3738
  ] }) });
3703
3739
  }
3704
3740
 
@@ -3744,8 +3780,8 @@ function useSettledValue(value, ms = 250) {
3744
3780
  }
3745
3781
 
3746
3782
  // src/components/SearchPicker.tsx
3747
- import { Fragment as Fragment4, useEffect as useEffect7, useId as useId2, useMemo as useMemo5, useState as useState10 } from "react";
3748
- import { Box as Box2, chakra as chakra9, Input as Input3, Spinner as Spinner2, Text as Text5 } from "@chakra-ui/react";
3783
+ import { Fragment as Fragment4, useEffect as useEffect7, useId as useId3, useMemo as useMemo5, useState as useState10 } from "react";
3784
+ import { Box as Box2, chakra as chakra10, Input as Input4, Spinner as Spinner2, Text as Text5 } from "@chakra-ui/react";
3749
3785
  import { Plus as Plus2 } from "lucide-react";
3750
3786
  import { Fragment as Fragment5, jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
3751
3787
  var CREATE = /* @__PURE__ */ Symbol("create");
@@ -3759,7 +3795,7 @@ function Highlight({ text, query }) {
3759
3795
  let at = 0;
3760
3796
  for (let i = lower.indexOf(needle); i >= 0; i = lower.indexOf(needle, at)) {
3761
3797
  if (i > at) parts.push(text.slice(at, i));
3762
- parts.push(/* @__PURE__ */ jsx22(chakra9.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3798
+ parts.push(/* @__PURE__ */ jsx22(chakra10.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3763
3799
  at = i + q.length;
3764
3800
  }
3765
3801
  if (parts.length === 0) return /* @__PURE__ */ jsx22(Fragment5, { children: text });
@@ -3791,7 +3827,7 @@ function SearchPicker({
3791
3827
  id,
3792
3828
  "aria-label": ariaLabel
3793
3829
  }) {
3794
- const listId = useId2();
3830
+ const listId = useId3();
3795
3831
  const labels = useAbpLabels().picker;
3796
3832
  const { locale } = useAbpLocale();
3797
3833
  const messages = { placeholder: labels.placeholder, searching: labels.searching, noMatches: labels.noMatches, noKnown: labels.noKnown, ...own };
@@ -3865,7 +3901,7 @@ function SearchPicker({
3865
3901
  }
3866
3902
  return /* @__PURE__ */ jsxs14(Box2, { position: "relative", width: "full", children: [
3867
3903
  /* @__PURE__ */ jsx22(
3868
- Input3,
3904
+ Input4,
3869
3905
  {
3870
3906
  id,
3871
3907
  size,
@@ -3895,7 +3931,7 @@ function SearchPicker({
3895
3931
  }
3896
3932
  ),
3897
3933
  open && /* @__PURE__ */ jsxs14(
3898
- chakra9.ul,
3934
+ chakra10.ul,
3899
3935
  {
3900
3936
  id: listId,
3901
3937
  role: "listbox",
@@ -3917,7 +3953,7 @@ function SearchPicker({
3917
3953
  query.trim() && matches > 0 && /* @__PURE__ */ jsx22(Text5, { as: "li", px: "3", pt: "1", pb: "1.5", textStyle: "caption", color: "fg.muted", "aria-live": "polite", "data-match-count": "", children: formatMessage(locale, canSearch && !failed && found != null && found.length >= SHOWN2 ? labels.firstMatches : labels.matches, { count: matches }) }),
3918
3954
  options.length === 0 && /* @__PURE__ */ jsx22(Text5, { as: "li", px: "3", py: "2", textStyle: "caption", color: "fg.muted", children: canSearch && !failed ? found == null ? messages.searching : messages.noMatches : messages.noKnown }),
3919
3955
  options.map((item, i) => /* @__PURE__ */ jsx22(
3920
- chakra9.li,
3956
+ chakra10.li,
3921
3957
  {
3922
3958
  role: "option",
3923
3959
  "aria-selected": i === active,
@@ -4118,7 +4154,7 @@ function compareOrdinal(a, b) {
4118
4154
  // src/motion/components.tsx
4119
4155
  import { Children, cloneElement, isValidElement, useEffect as useEffect9, useLayoutEffect as useLayoutEffect2, useRef as useRef9 } from "react";
4120
4156
  import { AnimatePresence as AnimatePresence2, m as m2 } from "motion/react";
4121
- import { chakra as chakra10 } from "@chakra-ui/react";
4157
+ import { chakra as chakra11 } from "@chakra-ui/react";
4122
4158
 
4123
4159
  // src/motion/flip-math.ts
4124
4160
  function flipTransform(prev, next, scale) {
@@ -4239,9 +4275,9 @@ function useSlideItems(container, token, options = {}) {
4239
4275
 
4240
4276
  // src/motion/components.tsx
4241
4277
  import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
4242
- var MotionDiv = chakra10(m2.div, {}, { forwardProps: ["transition"] });
4243
- var MotionSpan2 = chakra10(m2.span, {}, { forwardProps: ["transition"] });
4244
- var MotionLi = chakra10(m2.li, {}, { forwardProps: ["transition"] });
4278
+ var MotionDiv = chakra11(m2.div, {}, { forwardProps: ["transition"] });
4279
+ var MotionSpan2 = chakra11(m2.span, {}, { forwardProps: ["transition"] });
4280
+ var MotionLi = chakra11(m2.li, {}, { forwardProps: ["transition"] });
4245
4281
  var OUT = `cubic-bezier(${curves.out.join(", ")})`;
4246
4282
  var easeOut = cubicBezier(...curves.out);
4247
4283
  var SETTLED = { ...SHOWN, transitionEnd: { transform: "none" } };
@@ -4256,7 +4292,7 @@ function FadeIn({ from = "fade", delay = 0, children, ...rest }) {
4256
4292
  }
4257
4293
  function Reveal({ from = "rise", itemAs = "div", children, ...rest }) {
4258
4294
  let index = 0;
4259
- return /* @__PURE__ */ jsx24(chakra10.div, { ...rest, children: Children.map(
4295
+ return /* @__PURE__ */ jsx24(chakra11.div, { ...rest, children: Children.map(
4260
4296
  children,
4261
4297
  (child) => isValidElement(child) || child != null && child !== false ? /* @__PURE__ */ jsx24(RevealItem, { as: itemAs, index: index++, from, children: child }) : null
4262
4298
  ) });
@@ -4288,7 +4324,7 @@ function PresenceList({ children }) {
4288
4324
  });
4289
4325
  useSlideItems(parent, keys);
4290
4326
  return /* @__PURE__ */ jsxs16(Fragment6, { children: [
4291
- /* @__PURE__ */ jsx24(chakra10.span, { ref: marker, display: "none", "aria-hidden": "true" }),
4327
+ /* @__PURE__ */ jsx24(chakra11.span, { ref: marker, display: "none", "aria-hidden": "true" }),
4292
4328
  /* @__PURE__ */ jsx24(AnimatePresence2, { initial: false, mode: "popLayout", children: Children.map(
4293
4329
  children,
4294
4330
  (child) => isValidElement(child) ? cloneElement(child, { "data-slide": String(child.key) }) : child
@@ -4313,10 +4349,10 @@ function PresenceItem({ from = "rise", as = "div", children, ...rest }) {
4313
4349
  function SlideList({ token, children, ...rest }) {
4314
4350
  const ref = useRef9(null);
4315
4351
  useSlideItems(ref, token);
4316
- return /* @__PURE__ */ jsx24(chakra10.div, { ref, ...rest, children });
4352
+ return /* @__PURE__ */ jsx24(chakra11.div, { ref, ...rest, children });
4317
4353
  }
4318
4354
  function SlideItem({ slideId, children, ...rest }) {
4319
- return /* @__PURE__ */ jsx24(chakra10.div, { "data-slide": slideId, ...rest, children });
4355
+ return /* @__PURE__ */ jsx24(chakra11.div, { "data-slide": slideId, ...rest, children });
4320
4356
  }
4321
4357
  function Collapse({ open, children, ...rest }) {
4322
4358
  return /* @__PURE__ */ jsx24(AnimatePresence2, { initial: false, children: open && /* @__PURE__ */ jsx24(
@@ -4377,7 +4413,7 @@ function Counter({ value, format, fromZero = true, ...rest }) {
4377
4413
  frame = requestAnimationFrame(step);
4378
4414
  return () => cancelAnimationFrame(frame);
4379
4415
  }, [value, reduce, locale]);
4380
- return /* @__PURE__ */ jsx24(chakra10.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
4416
+ return /* @__PURE__ */ jsx24(chakra11.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
4381
4417
  }
4382
4418
  var lastMarks = /* @__PURE__ */ new Map();
4383
4419
  function Indicator({ group, css }) {
@@ -4392,11 +4428,11 @@ function Indicator({ group, css }) {
4392
4428
  if (before && !reduce) slide(element, before, now, { scale: true });
4393
4429
  lastMarks.set(group, now);
4394
4430
  });
4395
- return /* @__PURE__ */ jsx24(chakra10.span, { ref, "aria-hidden": "true", css });
4431
+ return /* @__PURE__ */ jsx24(chakra11.span, { ref, "aria-hidden": "true", css });
4396
4432
  }
4397
4433
  function Pressable({ lift = false, css, ...rest }) {
4398
4434
  return /* @__PURE__ */ jsx24(
4399
- chakra10.div,
4435
+ chakra11.div,
4400
4436
  {
4401
4437
  css: {
4402
4438
  transitionProperty: "transform, box-shadow",
@@ -4422,7 +4458,7 @@ function ArriveOnChange({ token, children, ...rest }) {
4422
4458
  }
4423
4459
  ref.current?.animate?.([{ opacity: 0.55 }, { opacity: 1 }], { duration: durations2.quick * 1e3, easing: OUT });
4424
4460
  }, [token]);
4425
- return /* @__PURE__ */ jsx24(chakra10.div, { ref, ...rest, children });
4461
+ return /* @__PURE__ */ jsx24(chakra11.div, { ref, ...rest, children });
4426
4462
  }
4427
4463
  function Nudge({ on, children }) {
4428
4464
  const { reduce } = useMotionSetting();
@@ -4437,12 +4473,12 @@ function Nudge({ on, children }) {
4437
4473
  { duration: durations2.burst * 1e3, easing: OUT }
4438
4474
  );
4439
4475
  }, [on, reduce]);
4440
- return /* @__PURE__ */ jsx24(chakra10.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
4476
+ return /* @__PURE__ */ jsx24(chakra11.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
4441
4477
  }
4442
4478
 
4443
4479
  // src/components/AppShell.tsx
4444
4480
  import { Fragment as Fragment7, useCallback as useCallback8, useState as useState12 } from "react";
4445
- import { chakra as chakra11, Drawer, Portal as Portal7, SkipNavContent, SkipNavLink, useSlotRecipe } from "@chakra-ui/react";
4481
+ import { chakra as chakra12, Drawer, Portal as Portal7, SkipNavContent, SkipNavLink, useSlotRecipe } from "@chakra-ui/react";
4446
4482
  import { ChevronDown, Menu as MenuIcon, PanelLeftClose, PanelLeftOpen, X } from "lucide-react";
4447
4483
 
4448
4484
  // src/components/Tooltip.tsx
@@ -4491,38 +4527,38 @@ function AppShell({
4491
4527
  }, [collapsed, onCollapsedChange]);
4492
4528
  const mark2 = brand.mark ?? (typeof brand.name === "string" ? brand.name.slice(0, 1) : null);
4493
4529
  const brandInner = /* @__PURE__ */ jsxs18(Fragment8, { children: [
4494
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
4495
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandText, children: /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandName, children: brand.name }) })
4530
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
4531
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.brandText, children: /* @__PURE__ */ jsx26(chakra12.span, { css: styles.brandName, children: brand.name }) })
4496
4532
  ] });
4497
- return /* @__PURE__ */ jsxs18(chakra11.div, { css: styles.root, children: [
4533
+ return /* @__PURE__ */ jsxs18(chakra12.div, { css: styles.root, children: [
4498
4534
  /* @__PURE__ */ jsx26(SkipNavLink, { id: MAIN_ID, children: labels.skipToContent }),
4499
- /* @__PURE__ */ jsxs18(chakra11.header, { css: styles.topbar, children: [
4500
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx26(MenuIcon, {}) }) }),
4501
- brand.href ? /* @__PURE__ */ jsx26(chakra11.span, { asChild: true, css: styles.brand, children: /* @__PURE__ */ jsx26(Link, { href: brand.href, children: brandInner }) }) : /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brand, children: brandInner }),
4502
- topbarStart != null && /* @__PURE__ */ jsx26(chakra11.div, { css: styles.topbarStart, children: topbarStart }),
4503
- /* @__PURE__ */ jsxs18(chakra11.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
4535
+ /* @__PURE__ */ jsxs18(chakra12.header, { css: styles.topbar, children: [
4536
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx26(MenuIcon, {}) }) }),
4537
+ brand.href ? /* @__PURE__ */ jsx26(chakra12.span, { asChild: true, css: styles.brand, children: /* @__PURE__ */ jsx26(Link, { href: brand.href, children: brandInner }) }) : /* @__PURE__ */ jsx26(chakra12.span, { css: styles.brand, children: brandInner }),
4538
+ topbarStart != null && /* @__PURE__ */ jsx26(chakra12.div, { css: styles.topbarStart, children: topbarStart }),
4539
+ /* @__PURE__ */ jsxs18(chakra12.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
4504
4540
  topNav.map((item) => /* @__PURE__ */ jsx26(TopNavItem, { item, styles }, item.id)),
4505
4541
  topNavEnd
4506
4542
  ] }),
4507
- /* @__PURE__ */ jsx26(chakra11.div, { css: styles.topbarEnd, children: topbarEnd })
4543
+ /* @__PURE__ */ jsx26(chakra12.div, { css: styles.topbarEnd, children: topbarEnd })
4508
4544
  ] }),
4509
- /* @__PURE__ */ jsxs18(chakra11.div, { css: styles.body, children: [
4510
- hasSidebar && /* @__PURE__ */ jsxs18(chakra11.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
4545
+ /* @__PURE__ */ jsxs18(chakra12.div, { css: styles.body, children: [
4546
+ hasSidebar && /* @__PURE__ */ jsxs18(chakra12.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
4511
4547
  /* @__PURE__ */ jsx26(FadeIn, { from: "start", display: "flex", flexDirection: "column", minH: "0", flex: "1", children: /* @__PURE__ */ jsx26(SidebarContents, { styles, sidebar, navFooter, collapsed }) }, sidebar.id),
4512
- /* @__PURE__ */ jsxs18(chakra11.div, { css: styles.sidebarFooter, children: [
4548
+ /* @__PURE__ */ jsxs18(chakra12.div, { css: styles.sidebarFooter, children: [
4513
4549
  /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": collapsed ? labels.expandSidebar : labels.collapseSidebar, "aria-expanded": !collapsed, onClick: toggle, children: /* @__PURE__ */ jsx26(Swap, { swapKey: collapsed ? "open" : "close", from: "fade", children: /* @__PURE__ */ jsx26(DirectionalIcon, { children: collapsed ? /* @__PURE__ */ jsx26(PanelLeftOpen, {}) : /* @__PURE__ */ jsx26(PanelLeftClose, {}) }) }) }),
4514
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
4550
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
4515
4551
  ] })
4516
4552
  ] }),
4517
- /* @__PURE__ */ jsxs18(chakra11.div, { css: styles.main, children: [
4553
+ /* @__PURE__ */ jsxs18(chakra12.div, { css: styles.main, children: [
4518
4554
  /* @__PURE__ */ jsx26(SkipNavContent, { id: MAIN_ID }),
4519
- /* @__PURE__ */ jsx26(chakra11.main, { css: styles.content, children: /* @__PURE__ */ jsx26(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
4555
+ /* @__PURE__ */ jsx26(chakra12.main, { css: styles.content, children: /* @__PURE__ */ jsx26(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
4520
4556
  ] })
4521
4557
  ] }),
4522
4558
  /* @__PURE__ */ jsx26(Drawer.Root, { open: mobileOpen, onOpenChange: (e) => setMobileOpen(e.open), placement: "start", size: "xs", children: /* @__PURE__ */ jsxs18(Portal7, { children: [
4523
4559
  /* @__PURE__ */ jsx26(Drawer.Backdrop, {}),
4524
4560
  /* @__PURE__ */ jsx26(Drawer.Positioner, { children: /* @__PURE__ */ jsx26(Drawer.Content, { "aria-label": labels.navigation, children: /* @__PURE__ */ jsxs18(
4525
- chakra11.div,
4561
+ chakra12.div,
4526
4562
  {
4527
4563
  css: mobileStyles.sidebar,
4528
4564
  "data-mobile": "",
@@ -4530,8 +4566,8 @@ function AppShell({
4530
4566
  if (e.target.closest("a")) setMobileOpen(false);
4531
4567
  },
4532
4568
  children: [
4533
- /* @__PURE__ */ jsxs18(chakra11.div, { css: mobileStyles.drawerHeader, children: [
4534
- /* @__PURE__ */ jsx26(chakra11.span, { css: mobileStyles.brand, children: brandInner }),
4569
+ /* @__PURE__ */ jsxs18(chakra12.div, { css: mobileStyles.drawerHeader, children: [
4570
+ /* @__PURE__ */ jsx26(chakra12.span, { css: mobileStyles.brand, children: brandInner }),
4535
4571
  /* @__PURE__ */ jsx26(Drawer.CloseTrigger, { asChild: true, position: "static", children: /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": labels.close, children: /* @__PURE__ */ jsx26(X, {}) }) })
4536
4572
  ] }),
4537
4573
  /* @__PURE__ */ jsx26(
@@ -4559,9 +4595,9 @@ function AppShell({
4559
4595
  }
4560
4596
  function TopNavItem({ item, styles }) {
4561
4597
  const Link = useLinkComponent();
4562
- return /* @__PURE__ */ jsx26(chakra11.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs18(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
4598
+ return /* @__PURE__ */ jsx26(chakra12.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs18(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
4563
4599
  item.current && /* @__PURE__ */ jsx26(Indicator, { group: "abp-top-nav", css: styles.topNavIndicator }),
4564
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.topNavLabel, children: item.label })
4600
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.topNavLabel, children: item.label })
4565
4601
  ] }) });
4566
4602
  }
4567
4603
  function SidebarContents({
@@ -4578,38 +4614,38 @@ function SidebarContents({
4578
4614
  const arrive = useArriving(loading) ? arriveCss : void 0;
4579
4615
  const placeMark = place ? place.mark ?? place.name.slice(0, 1).toUpperCase() : null;
4580
4616
  const placeInner = place && /* @__PURE__ */ jsxs18(Fragment8, { children: [
4581
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
4582
- /* @__PURE__ */ jsxs18(chakra11.span, { css: styles.placeText, children: [
4583
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeName, children: place.name }),
4584
- place.detail != null && /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeDetail, children: place.detail })
4617
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
4618
+ /* @__PURE__ */ jsxs18(chakra12.span, { css: styles.placeText, children: [
4619
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.placeName, children: place.name }),
4620
+ place.detail != null && /* @__PURE__ */ jsx26(chakra12.span, { css: styles.placeDetail, children: place.detail })
4585
4621
  ] })
4586
4622
  ] });
4587
4623
  const headerCss = placeAfter === void 0 ? styles.placeHeader : { ...styles.placeHeader, px: "0" };
4588
4624
  const placeBlock = /* @__PURE__ */ jsxs18(Fragment8, { children: [
4589
- place ? /* @__PURE__ */ jsx26(chakra11.div, { css: [headerCss, arrive], children: place.href ? /* @__PURE__ */ jsx26(chakra11.span, { asChild: true, css: styles.place, children: /* @__PURE__ */ jsx26(Link, { href: place.href, children: placeInner }) }) : /* @__PURE__ */ jsx26(chakra11.span, { css: styles.place, children: placeInner }) }) : loading && // The place's card, its name and key coming: the same elements, so it's as tall as the real one.
4590
- /* @__PURE__ */ jsx26(chakra11.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs18(chakra11.span, { css: styles.place, pointerEvents: "none", children: [
4591
- /* @__PURE__ */ jsx26(chakra11.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
4592
- /* @__PURE__ */ jsxs18(chakra11.span, { css: styles.placeText, children: [
4593
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeName, children: /* @__PURE__ */ jsx26(TextBone, { width: 14 }) }),
4594
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx26(TextBone, { width: 4 }) })
4625
+ place ? /* @__PURE__ */ jsx26(chakra12.div, { css: [headerCss, arrive], children: place.href ? /* @__PURE__ */ jsx26(chakra12.span, { asChild: true, css: styles.place, children: /* @__PURE__ */ jsx26(Link, { href: place.href, children: placeInner }) }) : /* @__PURE__ */ jsx26(chakra12.span, { css: styles.place, children: placeInner }) }) : loading && // The place's card, its name and key coming: the same elements, so it's as tall as the real one.
4626
+ /* @__PURE__ */ jsx26(chakra12.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs18(chakra12.span, { css: styles.place, pointerEvents: "none", children: [
4627
+ /* @__PURE__ */ jsx26(chakra12.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
4628
+ /* @__PURE__ */ jsxs18(chakra12.span, { css: styles.placeText, children: [
4629
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.placeName, children: /* @__PURE__ */ jsx26(TextBone, { width: 14 }) }),
4630
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx26(TextBone, { width: 4 }) })
4595
4631
  ] })
4596
4632
  ] }) }),
4597
4633
  sidebar.top != null && // Folded away in the rail (and out of reach of the keyboard there).
4598
- /* @__PURE__ */ jsx26(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.sidebarTop, children: sidebar.top }) }) })
4634
+ /* @__PURE__ */ jsx26(chakra12.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.sidebarTop, children: sidebar.top }) }) })
4599
4635
  ] });
4600
4636
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
4601
4637
  placeAfter === void 0 && placeBlock,
4602
- /* @__PURE__ */ jsxs18(chakra11.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
4638
+ /* @__PURE__ */ jsxs18(chakra12.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
4603
4639
  sidebar.sections.filter((section) => section.items.length > 0).map((section) => /* @__PURE__ */ jsxs18(Fragment7, { children: [
4604
4640
  /* @__PURE__ */ jsx26(NavSection, { section, styles, collapsed, group: sidebar.id }),
4605
4641
  section.id === placeAfter && placeBlock
4606
4642
  ] }, section.id)),
4607
4643
  loading && // The place's pages, coming: rows of the nav's own items, the same in the rail and out of it (ADR 0061).
4608
- /* @__PURE__ */ jsx26(Loading, { when: true, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSection, "aria-hidden": "true", children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSectionItems, children: Array.from({ length: sidebar.skeletonItems ?? 5 }, (_, n) => /* @__PURE__ */ jsxs18(chakra11.span, { css: styles.navItem, pointerEvents: "none", children: [
4609
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx26(Bone, { width: "4", height: "4" }) }),
4610
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx26(TextBone, { width: boneWidth(n, 6, 12) }) })
4644
+ /* @__PURE__ */ jsx26(Loading, { when: true, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navSection, "aria-hidden": "true", children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navSectionItems, children: Array.from({ length: sidebar.skeletonItems ?? 5 }, (_, n) => /* @__PURE__ */ jsxs18(chakra12.span, { css: styles.navItem, pointerEvents: "none", children: [
4645
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx26(Bone, { width: "4", height: "4" }) }),
4646
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx26(TextBone, { width: boneWidth(n, 6, 12) }) })
4611
4647
  ] }, n)) }) }) }),
4612
- navFooter != null && /* @__PURE__ */ jsx26(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.foldInner, children: navFooter }) })
4648
+ navFooter != null && /* @__PURE__ */ jsx26(chakra12.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.foldInner, children: navFooter }) })
4613
4649
  ] })
4614
4650
  ] });
4615
4651
  }
@@ -4618,33 +4654,33 @@ function NavSection({ section, styles, collapsed, group }) {
4618
4654
  const [open, setOpen] = useState12(holdsCurrent || !section.collapsible);
4619
4655
  const shown = !section.collapsible || collapsed || open || holdsCurrent;
4620
4656
  const items = section.items.map((item) => /* @__PURE__ */ jsx26(NavItem, { item, styles, collapsed, group }, item.id));
4621
- return /* @__PURE__ */ jsxs18(chakra11.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
4622
- section.title && /* @__PURE__ */ jsx26(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.foldInner, children: section.collapsible ? /* @__PURE__ */ jsxs18(chakra11.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
4623
- /* @__PURE__ */ jsx26(chakra11.span, { children: section.title }),
4624
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx26(ChevronDown, {}) })
4625
- ] }) : /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
4626
- section.collapsible ? /* @__PURE__ */ jsx26(Collapse, { open: shown, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSectionItems, children: items }) }) : /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSectionItems, children: items })
4657
+ return /* @__PURE__ */ jsxs18(chakra12.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
4658
+ section.title && /* @__PURE__ */ jsx26(chakra12.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.foldInner, children: section.collapsible ? /* @__PURE__ */ jsxs18(chakra12.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
4659
+ /* @__PURE__ */ jsx26(chakra12.span, { children: section.title }),
4660
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx26(ChevronDown, {}) })
4661
+ ] }) : /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
4662
+ section.collapsible ? /* @__PURE__ */ jsx26(Collapse, { open: shown, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navSectionItems, children: items }) }) : /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navSectionItems, children: items })
4627
4663
  ] });
4628
4664
  }
4629
4665
  function NavItem({ item, styles, collapsed, group, nested }) {
4630
4666
  const Link = useLinkComponent();
4631
4667
  const { isRtl } = useAbpLocale();
4632
- const link = /* @__PURE__ */ jsx26(chakra11.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs18(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
4668
+ const link = /* @__PURE__ */ jsx26(chakra12.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs18(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
4633
4669
  item.current && /* @__PURE__ */ jsx26(Indicator, { group: `abp-side-${group}`, css: styles.navItemIndicator }),
4634
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemIcon, "aria-hidden": "true", children: item.icon ?? /* @__PURE__ */ jsx26(chakra11.span, { textStyle: "label", children: item.label.slice(0, 1) }) }),
4635
- /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemLabel, children: item.label })
4670
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.navItemIcon, "aria-hidden": "true", children: item.icon ?? /* @__PURE__ */ jsx26(chakra12.span, { textStyle: "label", children: item.label.slice(0, 1) }) }),
4671
+ /* @__PURE__ */ jsx26(chakra12.span, { css: styles.navItemLabel, children: item.label })
4636
4672
  ] }) });
4637
4673
  const own = /* @__PURE__ */ jsx26(Tooltip, { content: item.label, inactive: !collapsed, positioning: { placement: isRtl ? "left" : "right" }, children: link });
4638
4674
  if (!item.children?.length) return own;
4639
4675
  return /* @__PURE__ */ jsxs18(Fragment8, { children: [
4640
4676
  own,
4641
- /* @__PURE__ */ jsx26(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navChildren, role: "group", "aria-label": item.label, children: item.children.map((child) => /* @__PURE__ */ jsx26(NavItem, { item: child, styles, collapsed, group, nested: true }, child.id)) }) }) })
4677
+ /* @__PURE__ */ jsx26(chakra12.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx26(chakra12.div, { css: styles.navChildren, role: "group", "aria-label": item.label, children: item.children.map((child) => /* @__PURE__ */ jsx26(NavItem, { item: child, styles, collapsed, group, nested: true }, child.id)) }) }) })
4642
4678
  ] });
4643
4679
  }
4644
4680
 
4645
4681
  // src/components/CommandPalette.tsx
4646
- import { Fragment as Fragment9, useEffect as useEffect10, useId as useId3, useMemo as useMemo6, useRef as useRef10, useState as useState13 } from "react";
4647
- import { chakra as chakra12, Dialog as Dialog3, HStack as HStack4, Portal as Portal8, Spinner as Spinner3, Stack as Stack4, Text as Text6 } from "@chakra-ui/react";
4682
+ import { Fragment as Fragment9, useEffect as useEffect10, useId as useId4, useMemo as useMemo6, useRef as useRef10, useState as useState13 } from "react";
4683
+ import { chakra as chakra13, Dialog as Dialog3, HStack as HStack4, Portal as Portal8, Spinner as Spinner3, Stack as Stack5, Text as Text6 } from "@chakra-ui/react";
4648
4684
  import { CornerDownLeft, Search } from "lucide-react";
4649
4685
  import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
4650
4686
  function HighlightText({ text, query }) {
@@ -4655,7 +4691,7 @@ function HighlightText({ text, query }) {
4655
4691
  let at = 0;
4656
4692
  for (let i = lower.indexOf(q); i >= 0; i = lower.indexOf(q, at)) {
4657
4693
  if (i > at) parts.push(text.slice(at, i));
4658
- parts.push(/* @__PURE__ */ jsx27(chakra12.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
4694
+ parts.push(/* @__PURE__ */ jsx27(chakra13.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
4659
4695
  at = i + q.length;
4660
4696
  }
4661
4697
  if (parts.length === 0) return /* @__PURE__ */ jsx27(Fragment10, { children: text });
@@ -4663,7 +4699,7 @@ function HighlightText({ text, query }) {
4663
4699
  return /* @__PURE__ */ jsx27(Fragment10, { children: parts.map((p, i) => /* @__PURE__ */ jsx27(Fragment9, { children: p }, i)) });
4664
4700
  }
4665
4701
  function CommandPalette({ open, onOpenChange, search, labels }) {
4666
- const listId = useId3();
4702
+ const listId = useId4();
4667
4703
  const [text, setText] = useState13("");
4668
4704
  const [groups, setGroups] = useState13(null);
4669
4705
  const [active, setActive] = useState13(0);
@@ -4719,7 +4755,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4719
4755
  /* @__PURE__ */ jsxs19(HStack4, { gap: "2.5", px: "4", borderBottomWidth: "1px", borderColor: "border.muted", color: "fg.muted", _icon: { boxSize: "4.5", flexShrink: 0 }, children: [
4720
4756
  /* @__PURE__ */ jsx27(Search, { "aria-hidden": true }),
4721
4757
  /* @__PURE__ */ jsx27(
4722
- chakra12.input,
4758
+ chakra13.input,
4723
4759
  {
4724
4760
  autoFocus: true,
4725
4761
  flex: "1",
@@ -4741,9 +4777,9 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4741
4777
  ),
4742
4778
  groups == null && /* @__PURE__ */ jsx27(Spinner3, { size: "sm" })
4743
4779
  ] }),
4744
- /* @__PURE__ */ jsx27(Dialog3.Body, { p: "2", maxH: "min(60vh, 32rem)", children: /* @__PURE__ */ jsxs19(Stack4, { gap: "2", role: "listbox", id: listId, "aria-label": labels.placeholder, children: [
4780
+ /* @__PURE__ */ jsx27(Dialog3.Body, { p: "2", maxH: "min(60vh, 32rem)", children: /* @__PURE__ */ jsxs19(Stack5, { gap: "2", role: "listbox", id: listId, "aria-label": labels.placeholder, children: [
4745
4781
  groups != null && items.length === 0 && /* @__PURE__ */ jsx27(Text6, { px: "3", py: "6", textAlign: "center", color: "fg.muted", textStyle: "sm", children: text ? labels.noResults : labels.searching }),
4746
- (groups ?? []).map((g) => /* @__PURE__ */ jsxs19(Stack4, { gap: "0.5", role: "group", "aria-label": g.label, children: [
4782
+ (groups ?? []).map((g) => /* @__PURE__ */ jsxs19(Stack5, { gap: "0.5", role: "group", "aria-label": g.label, children: [
4747
4783
  /* @__PURE__ */ jsx27(Text6, { px: "3", pt: "1", pb: "0.5", textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: g.label }),
4748
4784
  g.items.map((item) => {
4749
4785
  n += 1;
@@ -4787,7 +4823,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4787
4823
  }
4788
4824
 
4789
4825
  // src/components/AvatarStack.tsx
4790
- import { Avatar, Box as Box3, HStack as HStack5, Popover as Popover2, Portal as Portal9, Stack as Stack5, Text as Text7 } from "@chakra-ui/react";
4826
+ import { Avatar, Box as Box3, HStack as HStack5, Popover as Popover2, Portal as Portal9, Stack as Stack6, Text as Text7 } from "@chakra-ui/react";
4791
4827
  import { Check } from "lucide-react";
4792
4828
  import { Fragment as Fragment11, jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
4793
4829
  var PALETTES = ["blue", "teal", "purple", "orange", "pink", "cyan", "green", "red"];
@@ -4882,12 +4918,12 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4882
4918
  ]
4883
4919
  }
4884
4920
  ) }),
4885
- /* @__PURE__ */ jsx28(Portal9, { children: /* @__PURE__ */ jsx28(Popover2.Positioner, { children: /* @__PURE__ */ jsx28(Popover2.Content, { w: "64", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx28(Popover2.Body, { children: /* @__PURE__ */ jsxs20(Stack5, { gap: "3", children: [
4921
+ /* @__PURE__ */ jsx28(Portal9, { children: /* @__PURE__ */ jsx28(Popover2.Positioner, { children: /* @__PURE__ */ jsx28(Popover2.Content, { w: "64", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx28(Popover2.Body, { children: /* @__PURE__ */ jsxs20(Stack6, { gap: "3", children: [
4886
4922
  /* @__PURE__ */ jsx28(Popover2.Title, { textStyle: "label", children: moreTitle }),
4887
- /* @__PURE__ */ jsx28(Stack5, { as: "ul", gap: onToggle ? "0.5" : "2", maxH: "64", overflowY: "auto", listStyleType: "none", mx: onToggle ? "-2" : void 0, children: rest.map((p) => {
4923
+ /* @__PURE__ */ jsx28(Stack6, { as: "ul", gap: onToggle ? "0.5" : "2", maxH: "64", overflowY: "auto", listStyleType: "none", mx: onToggle ? "-2" : void 0, children: rest.map((p) => {
4888
4924
  const row = /* @__PURE__ */ jsxs20(Fragment11, { children: [
4889
4925
  /* @__PURE__ */ jsx28(PersonAvatar, { person: p, selected: onToggle && picked(p), inButton: !!onToggle }),
4890
- /* @__PURE__ */ jsxs20(Stack5, { gap: "0", minW: "0", flex: "1", textAlign: "start", children: [
4926
+ /* @__PURE__ */ jsxs20(Stack6, { gap: "0", minW: "0", flex: "1", textAlign: "start", children: [
4891
4927
  /* @__PURE__ */ jsx28(Text7, { textStyle: "body", truncate: true, children: p.name }),
4892
4928
  p.detail && /* @__PURE__ */ jsx28(Text7, { textStyle: "caption", color: "fg.muted", children: p.detail })
4893
4929
  ] }),
@@ -4917,20 +4953,53 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4917
4953
  ] });
4918
4954
  }
4919
4955
 
4956
+ // src/components/RowMenu.tsx
4957
+ import { Fragment as Fragment12 } from "react";
4958
+ import { Menu, Portal as Portal10, Text as Text8 } from "@chakra-ui/react";
4959
+ import { MoreHorizontal } from "lucide-react";
4960
+ import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
4961
+ var isSeparator = (e) => "separator" in e;
4962
+ var isNote = (e) => "note" in e;
4963
+ function RowMenu({ label, items, size = "sm" }) {
4964
+ return /* @__PURE__ */ jsxs21(Menu.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
4965
+ /* @__PURE__ */ jsx29(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx29(IconButton, { "aria-label": label, size, variant: "ghost", color: "fg.muted", "data-row-menu": "", children: /* @__PURE__ */ jsx29(MoreHorizontal, {}) }) }),
4966
+ /* @__PURE__ */ jsx29(Portal10, { children: /* @__PURE__ */ jsx29(Menu.Positioner, { children: /* @__PURE__ */ jsx29(Menu.Content, { minW: "48", maxW: "18rem", css: { "& [role=menuitem] svg": { width: "4", height: "4", flexShrink: 0 } }, children: items.map(
4967
+ (e, i) => isSeparator(e) ? /* @__PURE__ */ jsx29(Menu.Separator, {}, `sep-${i}`) : isNote(e) ? /* @__PURE__ */ jsxs21(Fragment12, { children: [
4968
+ /* @__PURE__ */ jsx29(Menu.Separator, {}),
4969
+ /* @__PURE__ */ jsx29(Text8, { px: "2", py: "1.5", textStyle: "caption", color: "fg.muted", children: e.note })
4970
+ ] }, `note-${i}`) : /* @__PURE__ */ jsxs21(
4971
+ Menu.Item,
4972
+ {
4973
+ value: e.id,
4974
+ disabled: e.disabled,
4975
+ onSelect: () => e.onSelect?.(),
4976
+ color: e.danger ? "fg.error" : void 0,
4977
+ _highlighted: e.danger ? { bg: "bg.error", color: "fg.error" } : void 0,
4978
+ children: [
4979
+ e.icon,
4980
+ e.label
4981
+ ]
4982
+ },
4983
+ e.id
4984
+ )
4985
+ ) }) }) })
4986
+ ] });
4987
+ }
4988
+
4920
4989
  // src/components/DataTable.tsx
4921
- import { Fragment as Fragment12, useMemo as useMemo7, useRef as useRef11, useState as useState14 } from "react";
4922
- import { chakra as chakra17, Menu, Portal as Portal10, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4990
+ import { Fragment as Fragment13, useMemo as useMemo7, useRef as useRef11, useState as useState14 } from "react";
4991
+ import { chakra as chakra18, Menu as Menu2, Portal as Portal11, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4923
4992
  import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2, ChevronRight as ChevronRight2, ChevronsUpDown, GripVertical } from "lucide-react";
4924
4993
 
4925
4994
  // src/components/EmptyState.tsx
4926
- import { chakra as chakra14, EmptyState as ChakraEmptyState, HStack as HStack6, Text as Text8, VStack } from "@chakra-ui/react";
4995
+ import { chakra as chakra15, EmptyState as ChakraEmptyState, HStack as HStack6, Text as Text9, VStack } from "@chakra-ui/react";
4927
4996
  import { Inbox } from "lucide-react";
4928
4997
  import { m as m3 } from "motion/react";
4929
4998
 
4930
4999
  // src/components/empty-art.tsx
4931
- import { Box as Box4, chakra as chakra13, Flex as Flex2 } from "@chakra-ui/react";
5000
+ import { Box as Box4, chakra as chakra14, Flex as Flex2 } from "@chakra-ui/react";
4932
5001
  import { Search as Search2 } from "lucide-react";
4933
- import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
5002
+ import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
4934
5003
  var R = (items, o = {}) => ({ items, ...o });
4935
5004
  var rows = (n, f) => Array.from({ length: n }, (_, i) => f(i));
4936
5005
  var CARDS = {
@@ -4974,11 +5043,11 @@ var LINE = { base: "neutral.100", _dark: "neutral.800" };
4974
5043
  function Shape({ item }) {
4975
5044
  const [k, w, h] = item;
4976
5045
  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 });
5046
+ if (k === "sp") return /* @__PURE__ */ jsx30(Box4, { flex: "1 1 auto" });
5047
+ if (k === "gap") return /* @__PURE__ */ jsx30(Box4, { flexShrink: 0, ...size });
4979
5048
  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
5049
  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(
5050
+ return /* @__PURE__ */ jsx30(
4982
5051
  Box4,
4983
5052
  {
4984
5053
  flexShrink: 0,
@@ -4994,7 +5063,7 @@ function Shape({ item }) {
4994
5063
  function Card({ id, pos }) {
4995
5064
  const main = pos === "main";
4996
5065
  const fade = pos === "start" ? "to left" : "to right";
4997
- return /* @__PURE__ */ jsx29(
5066
+ return /* @__PURE__ */ jsx30(
4998
5067
  Flex2,
4999
5068
  {
5000
5069
  direction: "column",
@@ -5014,7 +5083,7 @@ function Card({ id, pos }) {
5014
5083
  boxShadow: main ? { base: "0 2px 8px rgba(0,0,0,.025)", _dark: "0 8px 20px -10px rgba(0,0,0,.6)" } : void 0,
5015
5084
  css: main ? void 0 : { maskImage: `linear-gradient(${fade}, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%)` },
5016
5085
  "data-pos": pos,
5017
- children: (CARDS[id] ?? CARDS.list).map((r, i) => /* @__PURE__ */ jsx29(
5086
+ children: (CARDS[id] ?? CARDS.list).map((r, i) => /* @__PURE__ */ jsx30(
5018
5087
  Flex2,
5019
5088
  {
5020
5089
  align: r.end ? "flex-end" : "center",
@@ -5024,7 +5093,7 @@ function Card({ id, pos }) {
5024
5093
  mt: r.mt != null ? `${r.mt}px` : void 0,
5025
5094
  pb: r.sep ? "8px" : void 0,
5026
5095
  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))
5096
+ children: r.items.map((it, j) => /* @__PURE__ */ jsx30(Shape, { item: it }, j))
5028
5097
  },
5029
5098
  i
5030
5099
  ))
@@ -5033,7 +5102,7 @@ function Card({ id, pos }) {
5033
5102
  }
5034
5103
  function PageIllustration({ of, searching, scale = 1 }) {
5035
5104
  const [start, main, end] = TRIOS[of] ?? TRIOS.records;
5036
- return /* @__PURE__ */ jsxs21(
5105
+ return /* @__PURE__ */ jsxs22(
5037
5106
  Flex2,
5038
5107
  {
5039
5108
  "aria-hidden": true,
@@ -5050,10 +5119,10 @@ function PageIllustration({ of, searching, scale = 1 }) {
5050
5119
  css: scale !== 1 ? { zoom: scale } : void 0,
5051
5120
  "data-illustration": of,
5052
5121
  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(
5122
+ /* @__PURE__ */ jsx30(Card, { id: start, pos: "start" }),
5123
+ /* @__PURE__ */ jsx30(Card, { id: main, pos: "main" }),
5124
+ /* @__PURE__ */ jsx30(Card, { id: end, pos: "end" }),
5125
+ searching && /* @__PURE__ */ jsx30(
5057
5126
  Flex2,
5058
5127
  {
5059
5128
  position: "absolute",
@@ -5070,7 +5139,7 @@ function PageIllustration({ of, searching, scale = 1 }) {
5070
5139
  boxShadow: "0 4px 10px -4px rgba(26,29,35,.18)",
5071
5140
  color: "fg.muted",
5072
5141
  _icon: { boxSize: "4" },
5073
- children: /* @__PURE__ */ jsx29(Search2, {})
5142
+ children: /* @__PURE__ */ jsx30(Search2, {})
5074
5143
  }
5075
5144
  )
5076
5145
  ]
@@ -5110,23 +5179,23 @@ var ART = {
5110
5179
  // Couldn't load: a cable unplugged.
5111
5180
  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
5181
  };
5113
- var Path = chakra13("path");
5182
+ var Path = chakra14("path");
5114
5183
  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)
5184
+ return /* @__PURE__ */ jsx30(chakra14.svg, { "aria-hidden": true, viewBox: "0 0 120 96", w: width, h: height, flexShrink: 0, display: "block", "data-art": art, children: ART[art].map(
5185
+ ([d, key], i) => key === "check" ? /* @__PURE__ */ jsx30(Path, { d, fill: "none", stroke: "white", strokeWidth: 6, strokeLinecap: "round", strokeLinejoin: "round" }, i) : /* @__PURE__ */ jsx30(Path, { d, fill: C[key] }, i)
5117
5186
  ) });
5118
5187
  }
5119
5188
 
5120
5189
  // src/components/EmptyState.tsx
5121
- import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
5190
+ import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
5122
5191
  var TONE = {
5123
5192
  neutral: { border: "border.muted", bg: "bg.muted", fg: "fg.muted" },
5124
5193
  accent: { border: "accent.muted", bg: "accent.subtle", fg: "accent.fg" },
5125
5194
  danger: { border: "red.muted", bg: "red.subtle", fg: "fg.error" }
5126
5195
  };
5127
- var MotionSpan3 = chakra14(m3.span, {}, { forwardProps: ["transition"] });
5196
+ var MotionSpan3 = chakra15(m3.span, {}, { forwardProps: ["transition"] });
5128
5197
  function Drawing({ children, size, tone }) {
5129
- return /* @__PURE__ */ jsx30(
5198
+ return /* @__PURE__ */ jsx31(
5130
5199
  MotionSpan3,
5131
5200
  {
5132
5201
  display: "inline-flex",
@@ -5161,14 +5230,14 @@ function EmptyState({
5161
5230
  layout
5162
5231
  }) {
5163
5232
  const tone = own ?? (kind === "first-use" ? "accent" : kind === "error" ? "danger" : "neutral");
5164
- const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs22(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
5233
+ const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs23(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
5165
5234
  action,
5166
5235
  secondaryAction
5167
5236
  ] }) : action ?? secondaryAction;
5168
5237
  const live = kind === "no-results" || kind === "no-filter-match";
5169
5238
  const role = kind === "error" ? "alert" : live ? "status" : void 0;
5170
5239
  if (layout === "inline") {
5171
- return /* @__PURE__ */ jsxs22(
5240
+ return /* @__PURE__ */ jsxs23(
5172
5241
  HStack6,
5173
5242
  {
5174
5243
  gap: "4",
@@ -5184,28 +5253,28 @@ function EmptyState({
5184
5253
  "aria-live": live ? "polite" : void 0,
5185
5254
  _icon: { boxSize: "5", flexShrink: 0, color: "fg.muted" },
5186
5255
  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 })
5256
+ art ? /* @__PURE__ */ jsx31(EmptyArtDrawing, { art, width: "80px", height: "64px" }) : icon,
5257
+ /* @__PURE__ */ jsxs23(VStack, { gap: "0.5", align: "start", flex: "1", minW: "40", children: [
5258
+ /* @__PURE__ */ jsx31(Text9, { as: "span", textStyle: "md", fontWeight: "semibold", color: "fg", children: title }),
5259
+ description != null && /* @__PURE__ */ jsx31(Text9, { as: "span", textStyle: "xs", color: "fg.muted", children: description })
5191
5260
  ] }),
5192
- actions != null && /* @__PURE__ */ jsx30(chakra14.div, { flexShrink: 0, children: actions })
5261
+ actions != null && /* @__PURE__ */ jsx31(chakra15.div, { flexShrink: 0, children: actions })
5193
5262
  ]
5194
5263
  }
5195
5264
  );
5196
5265
  }
5197
5266
  const drawn = variant === "page" && kind !== "error" && !art;
5198
5267
  if (size === "xs") {
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: [
5268
+ return /* @__PURE__ */ jsxs23(HStack6, { gap: "2", justify: "center", py: "4", px: "3", color: "fg.muted", textStyle: "sm", textAlign: "center", _icon: { boxSize: "4", flexShrink: 0 }, children: [
5200
5269
  icon,
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 }),
5270
+ /* @__PURE__ */ jsxs23(VStack, { gap: "0.5", children: [
5271
+ /* @__PURE__ */ jsx31(Text9, { as: "span", children: title }),
5272
+ description != null && /* @__PURE__ */ jsx31(Text9, { as: "span", textStyle: "caption", color: "fg.subtle", children: description }),
5204
5273
  actions
5205
5274
  ] })
5206
5275
  ] });
5207
5276
  }
5208
- return /* @__PURE__ */ jsx30(
5277
+ return /* @__PURE__ */ jsx31(
5209
5278
  ChakraEmptyState.Root,
5210
5279
  {
5211
5280
  size,
@@ -5217,11 +5286,11 @@ function EmptyState({
5217
5286
  justifyContent: "center",
5218
5287
  role,
5219
5288
  "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 })
5289
+ children: /* @__PURE__ */ jsxs23(ChakraEmptyState.Content, { gap: drawn ? "5" : "4", "data-empty-kind": kind, "data-empty-variant": variant, children: [
5290
+ /* @__PURE__ */ jsx31(ChakraEmptyState.Indicator, { children: art ? /* @__PURE__ */ jsx31(EmptyArtDrawing, { art, width: size === "md" ? "200px" : "150px", height: size === "md" ? "160px" : "120px" }) : drawn ? /* @__PURE__ */ jsx31(PageIllustration, { of: illustration ?? "records", searching: live, scale: size === "md" ? 1 : 0.8 }) : /* @__PURE__ */ jsx31(Drawing, { size, tone, children: icon ?? /* @__PURE__ */ jsx31(Inbox, {}) }) }),
5291
+ /* @__PURE__ */ jsxs23(VStack, { gap: "1.5", textAlign: "center", maxW: "md", children: [
5292
+ /* @__PURE__ */ jsx31(ChakraEmptyState.Title, { textStyle: size === "md" ? "lg" : "md", fontWeight: "semibold", color: "fg", children: title }),
5293
+ description != null && /* @__PURE__ */ jsx31(ChakraEmptyState.Description, { textStyle: "sm", color: "fg.muted", children: description })
5225
5294
  ] }),
5226
5295
  actions
5227
5296
  ] })
@@ -5231,8 +5300,8 @@ function EmptyState({
5231
5300
 
5232
5301
  // src/components/RecordKey.tsx
5233
5302
  import { forwardRef as forwardRef5, ViewTransition } from "react";
5234
- import { chakra as chakra15, useRecipe } from "@chakra-ui/react";
5235
- import { jsx as jsx31 } from "react/jsx-runtime";
5303
+ import { chakra as chakra16, useRecipe } from "@chakra-ui/react";
5304
+ import { jsx as jsx32 } from "react/jsx-runtime";
5236
5305
  var glideName = (key) => `abp-key-${key.toUpperCase().replace(/[^A-Z0-9_-]/g, "_")}`;
5237
5306
  var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant = "plain", size = "sm", glide = false, loading: own, css, ...rest }, ref) {
5238
5307
  const recipe = useRecipe({ key: "abpRecordKey" });
@@ -5240,26 +5309,26 @@ var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant
5240
5309
  const Link = useLinkComponent();
5241
5310
  const content = children ?? value;
5242
5311
  if (useLoading(own)) {
5243
- return /* @__PURE__ */ jsx31(chakra15.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
5312
+ return /* @__PURE__ */ jsx32(chakra16.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
5244
5313
  }
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 });
5314
+ const key = href ? /* @__PURE__ */ jsx32(chakra16.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx32(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx32(chakra16.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
5246
5315
  if (!glide || !value || typeof ViewTransition === "undefined") return key;
5247
- return /* @__PURE__ */ jsx31(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
5316
+ return /* @__PURE__ */ jsx32(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
5248
5317
  });
5249
5318
 
5250
5319
  // src/components/StatusPill.tsx
5251
5320
  import { forwardRef as forwardRef6 } from "react";
5252
- import { chakra as chakra16, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
5253
- import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
5321
+ import { chakra as chakra17, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
5322
+ import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
5254
5323
  var StatusPill = forwardRef6(function StatusPill2({ tone = "neutral", category, variant = "subtle", size = "sm", dot = true, loading: own, skeletonWidth = 8, children, css, ...rest }, ref) {
5255
5324
  const recipe = useSlotRecipe2({ key: "abpStatusPill" });
5256
5325
  const styles = recipe({ tone: category ?? tone, variant, size });
5257
5326
  const loading = useLoading(own);
5258
5327
  const arriving = useArriving(loading);
5259
5328
  const unknown = children == null || 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
5329
+ return /* @__PURE__ */ jsxs24(chakra17.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
5330
+ dot && /* @__PURE__ */ jsx33(chakra17.span, { css: styles.indicator, "aria-hidden": "true" }),
5331
+ loading && unknown ? /* @__PURE__ */ jsx33(chakra17.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
5263
5332
  ] });
5264
5333
  });
5265
5334
 
@@ -5325,16 +5394,16 @@ function periodName(day, period, locale, labels) {
5325
5394
  if (!m4) return day;
5326
5395
  const date = new Date(Date.UTC(Number(m4[1]), Number(m4[2]) - 1, Number(m4[3])));
5327
5396
  const format = (options) => new Intl.DateTimeFormat(locale, { numberingSystem: "latn", ...options, timeZone: "UTC" }).format(date);
5328
- const fill4 = (template, values) => template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
5397
+ const fill5 = (template, values) => template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
5329
5398
  switch (period) {
5330
5399
  case "year":
5331
5400
  return format({ year: "numeric" });
5332
5401
  case "quarter":
5333
- return fill4(labels.quarter, { quarter: new Intl.NumberFormat(locale, { numberingSystem: "latn" }).format(Math.floor((Number(m4[2]) - 1) / 3) + 1), year: format({ year: "numeric" }) });
5402
+ return fill5(labels.quarter, { quarter: new Intl.NumberFormat(locale, { numberingSystem: "latn" }).format(Math.floor((Number(m4[2]) - 1) / 3) + 1), year: format({ year: "numeric" }) });
5334
5403
  case "month":
5335
5404
  return format({ month: "long", year: "numeric" });
5336
5405
  case "week":
5337
- return fill4(labels.week, { day: format({ day: "numeric", month: "short", year: "numeric" }) });
5406
+ return fill5(labels.week, { day: format({ day: "numeric", month: "short", year: "numeric" }) });
5338
5407
  default:
5339
5408
  return format({ day: "numeric", month: "short", year: "numeric" });
5340
5409
  }
@@ -5421,28 +5490,28 @@ function visibleInTree(tree, folded) {
5421
5490
  }
5422
5491
 
5423
5492
  // src/components/DataTable.tsx
5424
- import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
5493
+ import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
5425
5494
  function parentFoldKey(parent) {
5426
5495
  return `${parent}`;
5427
5496
  }
5428
5497
  function placeholder(column, row, at) {
5429
5498
  const kind = column.skeleton ?? (column.numeric ? "number" : "text");
5430
- if (typeof kind === "function") return /* @__PURE__ */ jsx33(Loading, { when: true, children: kind(row) });
5499
+ if (typeof kind === "function") return /* @__PURE__ */ jsx34(Loading, { when: true, children: kind(row) });
5431
5500
  switch (kind) {
5432
5501
  case "none":
5433
5502
  return null;
5434
5503
  case "key":
5435
- return /* @__PURE__ */ jsx33(RecordKey, { loading: true });
5504
+ return /* @__PURE__ */ jsx34(RecordKey, { loading: true });
5436
5505
  case "pill":
5437
- return /* @__PURE__ */ jsx33(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5506
+ return /* @__PURE__ */ jsx34(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5438
5507
  case "number":
5439
- return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? 4 });
5508
+ return /* @__PURE__ */ jsx34(TextBone, { width: column.skeletonWidth ?? 4 });
5440
5509
  case "date":
5441
- return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? 11 });
5510
+ return /* @__PURE__ */ jsx34(TextBone, { width: column.skeletonWidth ?? 11 });
5442
5511
  case "person":
5443
- return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5512
+ return /* @__PURE__ */ jsx34(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5444
5513
  default:
5445
- return /* @__PURE__ */ jsx33(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5514
+ return /* @__PURE__ */ jsx34(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5446
5515
  }
5447
5516
  }
5448
5517
  function typing(target) {
@@ -5516,11 +5585,11 @@ function DataTable({
5516
5585
  const align = (c2) => c2.numeric ? "end" : c2.align ?? "start";
5517
5586
  let body;
5518
5587
  if (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 }) }) });
5588
+ body = /* @__PURE__ */ jsx34(Table.Row, { children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, css: styles.state, children: /* @__PURE__ */ jsx34(InlineAlert, { tone: "danger", children: error }) }) });
5520
5589
  } else if (!sorted || loading && sorted.length === 0) {
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}`));
5590
+ body = Array.from({ length: skeletonRows }, (_, r) => /* @__PURE__ */ jsx34(Table.Row, { "aria-hidden": "true", children: columns.map((c2, i) => /* @__PURE__ */ jsx34(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}`));
5522
5591
  } else if (sorted.length === 0) {
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 }) });
5592
+ body = /* @__PURE__ */ jsx34(Table.Row, { children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, p: "0", children: typeof empty === "string" || empty == null ? /* @__PURE__ */ jsx34(EmptyState, { title: empty ?? labels.noData }) : empty }) });
5524
5593
  } else {
5525
5594
  const treeRows = tree ? visibleInTree(inTree(sorted, tree.keyOf, tree.parentOf, tree.context ?? []), treeFolded) : null;
5526
5595
  const hidden = (group) => grouping.folded.has(group) || grouping.parents != null && grouping.folded.has(parentFoldKey(grouping.parents.of(group)));
@@ -5577,8 +5646,8 @@ function DataTable({
5577
5646
  const sub = renderSubRow?.(row);
5578
5647
  const own2 = renderRow?.(row, index);
5579
5648
  const selected = selection ? selection.selectedId === id : void 0;
5580
- return /* @__PURE__ */ jsxs24(Fragment12, { children: [
5581
- /* @__PURE__ */ jsx33(
5649
+ return /* @__PURE__ */ jsxs25(Fragment13, { children: [
5650
+ /* @__PURE__ */ jsx34(
5582
5651
  Table.Row,
5583
5652
  {
5584
5653
  ref: (el) => {
@@ -5615,13 +5684,13 @@ function DataTable({
5615
5684
  if (moving) place.onPlace(moving, grouping.of(row), side === "before" ? { before: row } : { after: row });
5616
5685
  }
5617
5686
  } : {},
5618
- children: own2 != null ? /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci2) => /* @__PURE__ */ jsx33(
5687
+ children: own2 != null ? /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci2) => /* @__PURE__ */ jsx34(
5619
5688
  Table.Cell,
5620
5689
  {
5621
5690
  textAlign: align(c2),
5622
5691
  whiteSpace: c2.nowrap ? "nowrap" : void 0,
5623
5692
  textStyle: c2.numeric ? "numeric" : void 0,
5624
- children: ci2 === 0 && treeRows ? /* @__PURE__ */ jsx33(
5693
+ children: ci2 === 0 && treeRows ? /* @__PURE__ */ jsx34(
5625
5694
  TreeCell,
5626
5695
  {
5627
5696
  node: treeRows[index],
@@ -5637,8 +5706,8 @@ function DataTable({
5637
5706
  }),
5638
5707
  children: c2.cell(row, index)
5639
5708
  }
5640
- ) : ci2 === 0 && grouping?.move ? /* @__PURE__ */ jsxs24(chakra17.div, { display: "flex", alignItems: "center", gap: "1", children: [
5641
- /* @__PURE__ */ jsx33(
5709
+ ) : ci2 === 0 && grouping?.move ? /* @__PURE__ */ jsxs25(chakra18.div, { display: "flex", alignItems: "center", gap: "1", children: [
5710
+ /* @__PURE__ */ jsx34(
5642
5711
  RowGrip,
5643
5712
  {
5644
5713
  move: grouping.move,
@@ -5661,7 +5730,7 @@ function DataTable({
5661
5730
  ))
5662
5731
  }
5663
5732
  ),
5664
- sub != null && /* @__PURE__ */ jsx33(Table.Row, { children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5733
+ sub != null && /* @__PURE__ */ jsx34(Table.Row, { children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5665
5734
  ] }, id);
5666
5735
  };
5667
5736
  if (treeRows || !grouping) {
@@ -5673,28 +5742,28 @@ function DataTable({
5673
5742
  body = groups.map((g, gi) => {
5674
5743
  const parent = parents?.of(g.key);
5675
5744
  const parentFolded = parent != null && grouping.folded.has(parentFoldKey(parent));
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,
5745
+ const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx34(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs25(chakra18.div, { css: styles.groupHeader, children: [
5746
+ /* @__PURE__ */ jsx34(
5747
+ chakra18.button,
5679
5748
  {
5680
5749
  type: "button",
5681
5750
  css: styles.groupToggle,
5682
5751
  "aria-expanded": !parentFolded,
5683
5752
  "aria-label": parents.foldLabel(parent, parentFolded),
5684
5753
  onClick: () => grouping.onFold(parentFoldKey(parent)),
5685
- children: /* @__PURE__ */ jsx33(ChevronDown2, {})
5754
+ children: /* @__PURE__ */ jsx34(ChevronDown2, {})
5686
5755
  }
5687
5756
  ),
5688
5757
  parents.header(parent, groups.filter((x) => parents.of(x.key) === parent))
5689
5758
  ] }) }) }) : null;
5690
- if (parentFolded) return /* @__PURE__ */ jsx33(Fragment12, { children: parentRow }, `group-${g.key}`);
5759
+ if (parentFolded) return /* @__PURE__ */ jsx34(Fragment13, { children: parentRow }, `group-${g.key}`);
5691
5760
  const folded = grouping.folded.has(g.key);
5692
5761
  const footer = folded ? null : grouping.footer?.(g.key, g.rows);
5693
5762
  const start = at;
5694
5763
  if (!folded) at += g.rows.length;
5695
- return /* @__PURE__ */ jsxs24(Fragment12, { children: [
5764
+ return /* @__PURE__ */ jsxs25(Fragment13, { children: [
5696
5765
  parentRow,
5697
- /* @__PURE__ */ jsx33(
5766
+ /* @__PURE__ */ jsx34(
5698
5767
  Table.Row,
5699
5768
  {
5700
5769
  css: styles.groupRow,
@@ -5719,16 +5788,16 @@ function DataTable({
5719
5788
  if (row) grouping.move.onMove(row, g.key);
5720
5789
  }
5721
5790
  } : {},
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,
5791
+ children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs25(chakra18.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
5792
+ /* @__PURE__ */ jsx34(
5793
+ chakra18.button,
5725
5794
  {
5726
5795
  type: "button",
5727
5796
  css: styles.groupToggle,
5728
5797
  "aria-expanded": !folded,
5729
5798
  "aria-label": grouping.foldLabel(g.key, folded),
5730
5799
  onClick: () => grouping.onFold(g.key),
5731
- children: /* @__PURE__ */ jsx33(ChevronDown2, {})
5800
+ children: /* @__PURE__ */ jsx34(ChevronDown2, {})
5732
5801
  }
5733
5802
  ),
5734
5803
  grouping.header(g.key, g.rows)
@@ -5736,12 +5805,12 @@ function DataTable({
5736
5805
  }
5737
5806
  ),
5738
5807
  !folded && g.rows.map((row, i) => drawRow(row, start + i)),
5739
- footer != null && /* @__PURE__ */ jsx33(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx33(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5808
+ footer != null && /* @__PURE__ */ jsx34(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx34(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5740
5809
  ] }, `group-${g.key}`);
5741
5810
  });
5742
5811
  }
5743
5812
  }
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(
5813
+ return /* @__PURE__ */ jsx34(chakra18.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx34(chakra18.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs25(
5745
5814
  Table.Root,
5746
5815
  {
5747
5816
  size,
@@ -5750,17 +5819,17 @@ function DataTable({
5750
5819
  "aria-label": ariaLabel,
5751
5820
  role: selection ? "grid" : void 0,
5752
5821
  children: [
5753
- /* @__PURE__ */ jsx33(Table.Header, { children: /* @__PURE__ */ jsx33(Table.Row, { children: columns.map((c2) => {
5822
+ /* @__PURE__ */ jsx34(Table.Header, { children: /* @__PURE__ */ jsx34(Table.Row, { children: columns.map((c2) => {
5754
5823
  const sortable = Boolean(c2.sortValue);
5755
5824
  const active = sort?.columnId === c2.id ? sort.direction : null;
5756
- return /* @__PURE__ */ jsx33(
5825
+ return /* @__PURE__ */ jsx34(
5757
5826
  Table.ColumnHeader,
5758
5827
  {
5759
5828
  textAlign: align(c2),
5760
5829
  w: c2.width,
5761
5830
  "aria-sort": sortable ? active === "asc" ? "ascending" : active === "desc" ? "descending" : "none" : void 0,
5762
- children: sortable ? /* @__PURE__ */ jsxs24(
5763
- chakra17.button,
5831
+ children: sortable ? /* @__PURE__ */ jsxs25(
5832
+ chakra18.button,
5764
5833
  {
5765
5834
  type: "button",
5766
5835
  css: styles.sortTrigger,
@@ -5769,7 +5838,7 @@ function DataTable({
5769
5838
  title: active === "asc" ? labels.sortDescending : labels.sortAscending,
5770
5839
  children: [
5771
5840
  c2.header,
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, {}) })
5841
+ /* @__PURE__ */ jsx34(chakra18.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx34(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx34(ArrowDown, {}) : /* @__PURE__ */ jsx34(ChevronsUpDown, {}) })
5773
5842
  ]
5774
5843
  }
5775
5844
  ) : c2.header
@@ -5777,7 +5846,7 @@ function DataTable({
5777
5846
  c2.id
5778
5847
  );
5779
5848
  }) }) }),
5780
- /* @__PURE__ */ jsx33(Table.Body, { children: body })
5849
+ /* @__PURE__ */ jsx34(Table.Body, { children: body })
5781
5850
  ]
5782
5851
  }
5783
5852
  ) }) });
@@ -5788,8 +5857,8 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5788
5857
  const targets = move.targets(row);
5789
5858
  const place = move.place;
5790
5859
  const steps = place ? [prev && { value: UP, label: place.up }, next && { value: DOWN, label: place.down }].filter((x) => Boolean(x)) : [];
5791
- return /* @__PURE__ */ jsxs24(
5792
- Menu.Root,
5860
+ return /* @__PURE__ */ jsxs25(
5861
+ Menu2.Root,
5793
5862
  {
5794
5863
  lazyMount: true,
5795
5864
  unmountOnExit: true,
@@ -5800,8 +5869,8 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5800
5869
  else move.onMove(row, e.value);
5801
5870
  },
5802
5871
  children: [
5803
- /* @__PURE__ */ jsx33(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx33(
5804
- chakra17.button,
5872
+ /* @__PURE__ */ jsx34(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx34(
5873
+ chakra18.button,
5805
5874
  {
5806
5875
  type: "button",
5807
5876
  draggable: true,
@@ -5833,18 +5902,18 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5833
5902
  onDragStart();
5834
5903
  },
5835
5904
  onDragEnd,
5836
- children: /* @__PURE__ */ jsx33(GripVertical, {})
5905
+ children: /* @__PURE__ */ jsx34(GripVertical, {})
5837
5906
  }
5838
5907
  ) }),
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, {}),
5908
+ /* @__PURE__ */ jsx34(Portal11, { children: /* @__PURE__ */ jsx34(Menu2.Positioner, { children: /* @__PURE__ */ jsxs25(Menu2.Content, { minW: "44", onClick: (e) => e.stopPropagation(), children: [
5909
+ steps.length > 0 && /* @__PURE__ */ jsx34(Menu2.ItemGroup, { children: steps.map((x) => /* @__PURE__ */ jsxs25(Menu2.Item, { value: x.value, children: [
5910
+ x.value === UP ? /* @__PURE__ */ jsx34(ArrowUp, {}) : /* @__PURE__ */ jsx34(ArrowDown, {}),
5842
5911
  x.label
5843
5912
  ] }, x.value)) }),
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))
5913
+ steps.length > 0 && targets.length > 0 && /* @__PURE__ */ jsx34(Menu2.Separator, {}),
5914
+ targets.length > 0 && /* @__PURE__ */ jsxs25(Menu2.ItemGroup, { children: [
5915
+ /* @__PURE__ */ jsx34(Menu2.ItemGroupLabel, { children: move.menuTitle }),
5916
+ targets.map((x) => /* @__PURE__ */ jsx34(Menu2.Item, { value: x.group, children: x.label }, x.group))
5848
5917
  ] })
5849
5918
  ] }) }) })
5850
5919
  ]
@@ -5852,8 +5921,8 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5852
5921
  );
5853
5922
  }
5854
5923
  function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5855
- return /* @__PURE__ */ jsxs24(
5856
- chakra17.div,
5924
+ return /* @__PURE__ */ jsxs25(
5925
+ chakra18.div,
5857
5926
  {
5858
5927
  display: "flex",
5859
5928
  alignItems: "center",
@@ -5863,8 +5932,8 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5863
5932
  "data-tree-depth": node.depth,
5864
5933
  "data-context": node.context ? "" : void 0,
5865
5934
  children: [
5866
- node.hasChildren ? /* @__PURE__ */ jsx33(
5867
- chakra17.button,
5935
+ node.hasChildren ? /* @__PURE__ */ jsx34(
5936
+ chakra18.button,
5868
5937
  {
5869
5938
  type: "button",
5870
5939
  "aria-expanded": !folded,
@@ -5884,10 +5953,10 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5884
5953
  _hover: { bg: "bg.muted", color: "fg" },
5885
5954
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing" },
5886
5955
  css: { "& svg": { width: "3.5", height: "3.5", transition: "transform 0.15s" } },
5887
- children: folded ? /* @__PURE__ */ jsx33(DirectionalIcon, { children: /* @__PURE__ */ jsx33(ChevronRight2, {}) }) : /* @__PURE__ */ jsx33(ChevronDown2, {})
5956
+ children: folded ? /* @__PURE__ */ jsx34(DirectionalIcon, { children: /* @__PURE__ */ jsx34(ChevronRight2, {}) }) : /* @__PURE__ */ jsx34(ChevronDown2, {})
5888
5957
  }
5889
- ) : /* @__PURE__ */ jsx33(chakra17.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5890
- node.context && /* @__PURE__ */ jsx33(chakra17.span, { srOnly: true, children: contextLabel }),
5958
+ ) : /* @__PURE__ */ jsx34(chakra18.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5959
+ node.context && /* @__PURE__ */ jsx34(chakra18.span, { srOnly: true, children: contextLabel }),
5891
5960
  children
5892
5961
  ]
5893
5962
  }
@@ -5896,9 +5965,9 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5896
5965
 
5897
5966
  // src/components/CalendarGrid.tsx
5898
5967
  import { useEffect as useEffect11, useMemo as useMemo8, useRef as useRef12, useState as useState15 } from "react";
5899
- import { Box as Box5, chakra as chakra18, Grid as Grid2, Stack as Stack6, Text as Text9 } from "@chakra-ui/react";
5968
+ import { Box as Box5, chakra as chakra19, Grid as Grid2, Stack as Stack7, Text as Text10 } from "@chakra-ui/react";
5900
5969
  import { DndContext, DragOverlay, PointerSensor, useDraggable, useDroppable, useSensor, useSensors } from "@dnd-kit/core";
5901
- import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
5970
+ import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
5902
5971
  var addDays = (day, n) => {
5903
5972
  const d = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
5904
5973
  d.setUTCDate(d.getUTCDate() + n);
@@ -5959,7 +6028,7 @@ function CalendarGrid({
5959
6028
  const rtl = getComputedStyle(e.currentTarget).direction === "rtl";
5960
6029
  onMove(item, addDays(item.start, rtl && Math.abs(step) === 1 ? -step : step));
5961
6030
  }
5962
- return /* @__PURE__ */ jsxs25(
6031
+ return /* @__PURE__ */ jsxs26(
5963
6032
  DndContext,
5964
6033
  {
5965
6034
  sensors,
@@ -5967,12 +6036,12 @@ function CalendarGrid({
5967
6036
  onDragEnd: end,
5968
6037
  onDragCancel: () => setActive(null),
5969
6038
  children: [
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) => {
6039
+ /* @__PURE__ */ jsxs26(Box5, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
6040
+ /* @__PURE__ */ jsx35(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx35(Text10, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
6041
+ Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx35(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) => {
5973
6042
  const list = byDay.get(day) ?? [];
5974
6043
  const shown = tall ? list : list.slice(0, maxPerDay);
5975
- return /* @__PURE__ */ jsxs25(
6044
+ return /* @__PURE__ */ jsxs26(
5976
6045
  DayCell,
5977
6046
  {
5978
6047
  day,
@@ -5984,10 +6053,10 @@ function CalendarGrid({
5984
6053
  label: dayLabel(day),
5985
6054
  dragging: !!active,
5986
6055
  children: [
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,
6056
+ loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx35(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
6057
+ !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx35(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
6058
+ list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx35(
6059
+ chakra19.button,
5991
6060
  {
5992
6061
  type: "button",
5993
6062
  alignSelf: "start",
@@ -6003,22 +6072,22 @@ function CalendarGrid({
6003
6072
  "data-more": "",
6004
6073
  children: more(list.length - shown.length)
6005
6074
  }
6006
- ) : /* @__PURE__ */ jsx34(Text9, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
6075
+ ) : /* @__PURE__ */ jsx35(Text10, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
6007
6076
  ]
6008
6077
  },
6009
6078
  day
6010
6079
  );
6011
6080
  }) }, week))
6012
6081
  ] }),
6013
- /* @__PURE__ */ jsx34(DragOverlay, { children: active ? /* @__PURE__ */ jsx34(Box5, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
6082
+ /* @__PURE__ */ jsx35(DragOverlay, { children: active ? /* @__PURE__ */ jsx35(Box5, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
6014
6083
  ]
6015
6084
  }
6016
6085
  );
6017
6086
  }
6018
6087
  function DayCell({ day, name, dim, today, tall, last, label, dragging, children }) {
6019
6088
  const { setNodeRef, isOver } = useDroppable({ id: `day:${day}` });
6020
- return /* @__PURE__ */ jsxs25(
6021
- Stack6,
6089
+ return /* @__PURE__ */ jsxs26(
6090
+ Stack7,
6022
6091
  {
6023
6092
  ref: setNodeRef,
6024
6093
  role: "gridcell",
@@ -6035,8 +6104,8 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
6035
6104
  outlineOffset: "-3px",
6036
6105
  "data-day": day,
6037
6106
  children: [
6038
- /* @__PURE__ */ jsx34(
6039
- Text9,
6107
+ /* @__PURE__ */ jsx35(
6108
+ Text10,
6040
6109
  {
6041
6110
  textStyle: "caption",
6042
6111
  fontWeight: "semibold",
@@ -6061,7 +6130,7 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
6061
6130
  }
6062
6131
  function Chip({ item, continued, onKeyDown, children }) {
6063
6132
  const { attributes, listeners: listeners2, setNodeRef, isDragging } = useDraggable({ id: continued ? `${item.id}:cont` : item.id, disabled: item.movable === false || continued });
6064
- return /* @__PURE__ */ jsx34(
6133
+ return /* @__PURE__ */ jsx35(
6065
6134
  Box5,
6066
6135
  {
6067
6136
  ref: setNodeRef,
@@ -6082,10 +6151,10 @@ function Chip({ item, continued, onKeyDown, children }) {
6082
6151
  }
6083
6152
 
6084
6153
  // src/components/Chart.tsx
6085
- import { Box as Box6, Flex as Flex3, Text as Text10 } from "@chakra-ui/react";
6154
+ import { Box as Box6, Flex as Flex3, Text as Text11 } from "@chakra-ui/react";
6086
6155
  import { Chart as ChakraChart, useChart } from "@chakra-ui/charts";
6087
6156
  import { Area, AreaChart, Bar, BarChart, CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip as Tooltip3, XAxis, YAxis } from "recharts";
6088
- import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
6157
+ import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
6089
6158
  var PALETTE = ["teal.solid", "blue.solid", "orange.solid", "purple.solid", "green.solid", "pink.solid", "cyan.solid", "yellow.solid", "red.solid"];
6090
6159
  function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height = 280, formatX, formatValue, loading: own }) {
6091
6160
  const { isRtl: rtl } = useAbpLocale();
@@ -6096,29 +6165,29 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
6096
6165
  });
6097
6166
  const xs = new Set(data.map((row) => String(row[x])));
6098
6167
  const label = (value) => value == null ? "" : formatX && xs.has(String(value)) ? formatX(String(value)) : String(value);
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;
6168
+ const xAxis = /* @__PURE__ */ jsx36(XAxis, { dataKey: chart.key(x), reversed: rtl, tickLine: false, axisLine: false, tickFormatter: label, minTickGap: 12 });
6169
+ const yAxis = /* @__PURE__ */ jsx36(YAxis, { orientation: rtl ? "right" : "left", tickLine: false, axisLine: false, width: 44, tickFormatter: formatValue, allowDecimals: false });
6170
+ const grid = /* @__PURE__ */ jsx36(CartesianGrid, { stroke: chart.color("border.muted"), vertical: false });
6171
+ const tooltip = /* @__PURE__ */ jsx36(Tooltip3, { cursor: { fill: chart.color("bg.muted") }, animationDuration: 100, content: /* @__PURE__ */ jsx36(ChakraChart.Tooltip, {}), labelFormatter: label });
6172
+ const legend = series.length > 1 ? /* @__PURE__ */ jsx36(Legend, { content: /* @__PURE__ */ jsx36(ChakraChart.Legend, {}) }) : null;
6104
6173
  if (loading) {
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)) }) });
6174
+ return /* @__PURE__ */ jsx36(Box6, { "aria-hidden": "true", children: /* @__PURE__ */ jsx36(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__ */ jsx36(Bone, { flex: "1", width: "auto", height: `${28 + i * 37 % 60}%`, borderRadius: kind === "bar" ? "l1" : "0" }, i)) }) });
6106
6175
  }
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: [
6176
+ return /* @__PURE__ */ jsxs27(Box6, { children: [
6177
+ /* @__PURE__ */ jsx36(ChakraChart.Root, { h: typeof height === "number" ? `${height}px` : height, aspectRatio: "auto", chart, "aria-hidden": true, children: /* @__PURE__ */ jsx36(ResponsiveContainer, { width: "100%", height: "100%", children: kind === "bar" ? /* @__PURE__ */ jsxs27(BarChart, { data: chart.data, children: [
6109
6178
  grid,
6110
6179
  xAxis,
6111
6180
  yAxis,
6112
6181
  tooltip,
6113
6182
  legend,
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: [
6183
+ chart.series.map((s) => /* @__PURE__ */ jsx36(Bar, { isAnimationActive: false, dataKey: chart.key(s.name), fill: chart.color(s.color), stackId: s.stackId, radius: stacked ? 0 : 3 }, s.name))
6184
+ ] }) : kind === "area" ? /* @__PURE__ */ jsxs27(AreaChart, { data: chart.data, children: [
6116
6185
  grid,
6117
6186
  xAxis,
6118
6187
  yAxis,
6119
6188
  tooltip,
6120
6189
  legend,
6121
- chart.series.map((s) => /* @__PURE__ */ jsx35(
6190
+ chart.series.map((s) => /* @__PURE__ */ jsx36(
6122
6191
  Area,
6123
6192
  {
6124
6193
  isAnimationActive: false,
@@ -6132,13 +6201,13 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
6132
6201
  },
6133
6202
  s.name
6134
6203
  ))
6135
- ] }) : /* @__PURE__ */ jsxs26(LineChart, { data: chart.data, children: [
6204
+ ] }) : /* @__PURE__ */ jsxs27(LineChart, { data: chart.data, children: [
6136
6205
  grid,
6137
6206
  xAxis,
6138
6207
  yAxis,
6139
6208
  tooltip,
6140
6209
  legend,
6141
- chart.series.map((s) => /* @__PURE__ */ jsx35(
6210
+ chart.series.map((s) => /* @__PURE__ */ jsx36(
6142
6211
  Line,
6143
6212
  {
6144
6213
  isAnimationActive: false,
@@ -6153,26 +6222,26 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
6153
6222
  s.name
6154
6223
  ))
6155
6224
  ] }) }) }),
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))
6225
+ /* @__PURE__ */ jsxs27(Box6, { as: "table", srOnly: true, children: [
6226
+ /* @__PURE__ */ jsx36("caption", { children: ariaLabel }),
6227
+ /* @__PURE__ */ jsx36("thead", { children: /* @__PURE__ */ jsxs27("tr", { children: [
6228
+ /* @__PURE__ */ jsx36("th", { scope: "col", children: "" }),
6229
+ series.map((s) => /* @__PURE__ */ jsx36("th", { scope: "col", children: s.label }, s.key))
6161
6230
  ] }) }),
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))
6231
+ /* @__PURE__ */ jsx36("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsxs27("tr", { children: [
6232
+ /* @__PURE__ */ jsx36("th", { scope: "row", children: formatX ? formatX(String(row[x])) : String(row[x]) }),
6233
+ series.map((s) => /* @__PURE__ */ jsx36("td", { children: row[s.key] == null ? "" : formatValue ? formatValue(Number(row[s.key])) : String(row[s.key]) }, s.key))
6165
6234
  ] }, i)) })
6166
6235
  ] }),
6167
- data.length === 0 && /* @__PURE__ */ jsx35(Text10, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
6236
+ data.length === 0 && /* @__PURE__ */ jsx36(Text11, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
6168
6237
  ] });
6169
6238
  }
6170
6239
 
6171
6240
  // src/components/DashboardGrid.tsx
6172
6241
  import { useRef as useRef13, useState as useState16 } from "react";
6173
- import { Box as Box7, chakra as chakra19 } from "@chakra-ui/react";
6242
+ import { Box as Box7, chakra as chakra20 } from "@chakra-ui/react";
6174
6243
  import { GripVertical as GripVertical2, MoveDiagonal2 } from "lucide-react";
6175
- import { Fragment as Fragment13, jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
6244
+ import { Fragment as Fragment14, jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
6176
6245
  var GAP = 16;
6177
6246
  var PLACEHOLDER_TILES = [
6178
6247
  { id: "skeleton-1", x: 0, y: 0, w: 6, h: 3 },
@@ -6293,9 +6362,9 @@ function DashboardGrid({
6293
6362
  _hover: { color: "fg", bg: "bg.muted" },
6294
6363
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "1px" }
6295
6364
  };
6296
- return /* @__PURE__ */ jsxs27(Box7, { children: [
6297
- editing && /* @__PURE__ */ jsx36(chakra19.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
6298
- /* @__PURE__ */ jsxs27(
6365
+ return /* @__PURE__ */ jsxs28(Box7, { children: [
6366
+ editing && /* @__PURE__ */ jsx37(chakra20.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
6367
+ /* @__PURE__ */ jsxs28(
6299
6368
  Box7,
6300
6369
  {
6301
6370
  ref,
@@ -6309,7 +6378,7 @@ function DashboardGrid({
6309
6378
  onPointerUp: end,
6310
6379
  onPointerCancel: end,
6311
6380
  children: [
6312
- placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx36(
6381
+ placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx37(
6313
6382
  Box7,
6314
6383
  {
6315
6384
  role: "listitem",
@@ -6327,7 +6396,7 @@ function DashboardGrid({
6327
6396
  if (!item) return null;
6328
6397
  const shown = { ...item, ...place };
6329
6398
  const moving = active === item.id;
6330
- return /* @__PURE__ */ jsxs27(
6399
+ return /* @__PURE__ */ jsxs28(
6331
6400
  Box7,
6332
6401
  {
6333
6402
  role: "listitem",
@@ -6340,9 +6409,9 @@ function DashboardGrid({
6340
6409
  transition: moving ? void 0 : "all 120ms ease",
6341
6410
  children: [
6342
6411
  renderItem(shown),
6343
- editing && /* @__PURE__ */ jsxs27(Fragment13, { children: [
6344
- /* @__PURE__ */ jsx36(
6345
- chakra19.button,
6412
+ editing && /* @__PURE__ */ jsxs28(Fragment14, { children: [
6413
+ /* @__PURE__ */ jsx37(
6414
+ chakra20.button,
6346
6415
  {
6347
6416
  type: "button",
6348
6417
  position: "absolute",
@@ -6355,11 +6424,11 @@ function DashboardGrid({
6355
6424
  "aria-describedby": instructionsId,
6356
6425
  onPointerDown: (e) => start(e, item, "move"),
6357
6426
  onKeyDown: (e) => key(e, item, "move"),
6358
- children: /* @__PURE__ */ jsx36(GripVertical2, { size: 14, "aria-hidden": true })
6427
+ children: /* @__PURE__ */ jsx37(GripVertical2, { size: 14, "aria-hidden": true })
6359
6428
  }
6360
6429
  ),
6361
- /* @__PURE__ */ jsx36(
6362
- chakra19.button,
6430
+ /* @__PURE__ */ jsx37(
6431
+ chakra20.button,
6363
6432
  {
6364
6433
  type: "button",
6365
6434
  position: "absolute",
@@ -6372,7 +6441,7 @@ function DashboardGrid({
6372
6441
  "aria-describedby": instructionsId,
6373
6442
  onPointerDown: (e) => start(e, item, "resize"),
6374
6443
  onKeyDown: (e) => key(e, item, "resize"),
6375
- children: /* @__PURE__ */ jsx36(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6444
+ children: /* @__PURE__ */ jsx37(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6376
6445
  }
6377
6446
  )
6378
6447
  ] })
@@ -6389,7 +6458,7 @@ function DashboardGrid({
6389
6458
 
6390
6459
  // src/components/CategoryProgress.tsx
6391
6460
  import { Box as Box8, HStack as HStack7 } from "@chakra-ui/react";
6392
- import { jsx as jsx37 } from "react/jsx-runtime";
6461
+ import { jsx as jsx38 } from "react/jsx-runtime";
6393
6462
  function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "aria-label": ariaLabel }) {
6394
6463
  const loading = useLoading(own);
6395
6464
  const total = loading ? 0 : todo + inProgress + done;
@@ -6398,15 +6467,15 @@ function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "
6398
6467
  { key: "inProgress", value: inProgress },
6399
6468
  { key: "todo", value: todo }
6400
6469
  ];
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)) });
6470
+ return /* @__PURE__ */ jsx38(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__ */ jsx38(Box8, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
6402
6471
  }
6403
6472
 
6404
6473
  // src/components/AttentionChip.tsx
6405
- import { chakra as chakra21 } from "@chakra-ui/react";
6474
+ import { chakra as chakra22 } from "@chakra-ui/react";
6406
6475
 
6407
6476
  // src/components/CountBadge.tsx
6408
- import { chakra as chakra20 } from "@chakra-ui/react";
6409
- import { jsx as jsx38 } from "react/jsx-runtime";
6477
+ import { chakra as chakra21 } from "@chakra-ui/react";
6478
+ import { jsx as jsx39 } from "react/jsx-runtime";
6410
6479
  var TONES2 = {
6411
6480
  neutral: { bg: "bg.emphasized", color: "fg" },
6412
6481
  accent: { bg: "accent.subtle", color: "accent.fg" },
@@ -6416,8 +6485,8 @@ var TONES2 = {
6416
6485
  function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...rest }) {
6417
6486
  const fmt = useFormatters();
6418
6487
  const loading = useLoading(own);
6419
- return /* @__PURE__ */ jsx38(
6420
- chakra20.span,
6488
+ return /* @__PURE__ */ jsx39(
6489
+ chakra21.span,
6421
6490
  {
6422
6491
  display: "inline-flex",
6423
6492
  alignItems: "center",
@@ -6441,11 +6510,11 @@ function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...res
6441
6510
  }
6442
6511
 
6443
6512
  // src/components/AttentionChip.tsx
6444
- import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
6513
+ import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
6445
6514
  function AttentionChip({ count, children, tone = "neutral", pressed, onClick, disabled, loading: own }) {
6446
6515
  const loading = useLoading(own);
6447
- return /* @__PURE__ */ jsxs28(
6448
- chakra21.button,
6516
+ return /* @__PURE__ */ jsxs29(
6517
+ chakra22.button,
6449
6518
  {
6450
6519
  type: "button",
6451
6520
  display: "inline-flex",
@@ -6470,7 +6539,7 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6470
6539
  disabled: disabled || loading,
6471
6540
  onClick,
6472
6541
  children: [
6473
- /* @__PURE__ */ jsx39(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6542
+ /* @__PURE__ */ jsx40(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6474
6543
  children
6475
6544
  ]
6476
6545
  }
@@ -6478,13 +6547,13 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6478
6547
  }
6479
6548
 
6480
6549
  // src/components/IconTile.tsx
6481
- import { chakra as chakra22 } from "@chakra-ui/react";
6482
- import { jsx as jsx40 } from "react/jsx-runtime";
6550
+ import { chakra as chakra23 } from "@chakra-ui/react";
6551
+ import { jsx as jsx41 } from "react/jsx-runtime";
6483
6552
  var SIZES = { sm: { box: "6", icon: "3.5" }, md: { box: "8", icon: "4" }, lg: { box: "10", icon: "5" } };
6484
6553
  function IconTile({ children, size = "md", active = false, palette: palette3 }) {
6485
6554
  const s = SIZES[size];
6486
- return /* @__PURE__ */ jsx40(
6487
- chakra22.span,
6555
+ return /* @__PURE__ */ jsx41(
6556
+ chakra23.span,
6488
6557
  {
6489
6558
  display: "inline-flex",
6490
6559
  alignItems: "center",
@@ -6506,17 +6575,17 @@ function IconTile({ children, size = "md", active = false, palette: palette3 })
6506
6575
  }
6507
6576
 
6508
6577
  // src/components/PersonChip.tsx
6509
- import { Avatar as Avatar2, chakra as chakra23 } from "@chakra-ui/react";
6510
- import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
6578
+ import { Avatar as Avatar2, chakra as chakra24 } from "@chakra-ui/react";
6579
+ import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
6511
6580
  var SIZES2 = { xs: "5", sm: "6", md: "8" };
6512
6581
  function PersonChip({ id, name, picture, compact = false, size = "sm", loading: own }) {
6513
6582
  if (useLoading(own)) {
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 })
6583
+ return /* @__PURE__ */ jsxs30(chakra24.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
6584
+ /* @__PURE__ */ jsx42(Bone, { circle: true, height: SIZES2[size] }),
6585
+ !compact && /* @__PURE__ */ jsx42(TextBone, { width: 12 })
6517
6586
  ] });
6518
6587
  }
6519
- const avatar = /* @__PURE__ */ jsxs29(
6588
+ const avatar = /* @__PURE__ */ jsxs30(
6520
6589
  Avatar2.Root,
6521
6590
  {
6522
6591
  colorPalette: avatarPalette(id),
@@ -6529,20 +6598,20 @@ function PersonChip({ id, name, picture, compact = false, size = "sm", loading:
6529
6598
  flexShrink: 0,
6530
6599
  ...compact ? { role: "img", "aria-label": name, title: name } : { "aria-hidden": true },
6531
6600
  children: [
6532
- /* @__PURE__ */ jsx41(Avatar2.Fallback, { name }),
6533
- picture && /* @__PURE__ */ jsx41(Avatar2.Image, { src: picture, alt: "" })
6601
+ /* @__PURE__ */ jsx42(Avatar2.Fallback, { name }),
6602
+ picture && /* @__PURE__ */ jsx42(Avatar2.Image, { src: picture, alt: "" })
6534
6603
  ]
6535
6604
  }
6536
6605
  );
6537
6606
  if (compact) return avatar;
6538
- return /* @__PURE__ */ jsxs29(chakra23.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6607
+ return /* @__PURE__ */ jsxs30(chakra24.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6539
6608
  avatar,
6540
- /* @__PURE__ */ jsx41(chakra23.span, { truncate: true, children: name })
6609
+ /* @__PURE__ */ jsx42(chakra24.span, { truncate: true, children: name })
6541
6610
  ] });
6542
6611
  }
6543
6612
 
6544
6613
  // src/components/PriorityMark.tsx
6545
- import { chakra as chakra24 } from "@chakra-ui/react";
6614
+ import { chakra as chakra25 } from "@chakra-ui/react";
6546
6615
 
6547
6616
  // src/components/priority-level.ts
6548
6617
  function priorityLevel(rank, of) {
@@ -6554,12 +6623,12 @@ function priorityLevel(rank, of) {
6554
6623
  }
6555
6624
 
6556
6625
  // src/components/PriorityMark.tsx
6557
- import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
6626
+ import { jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
6558
6627
  function PriorityMark({ rank, of, children, title, loading }) {
6559
- if (useLoading(loading)) return /* @__PURE__ */ jsx42(TextBone, { width: 7 });
6628
+ if (useLoading(loading)) return /* @__PURE__ */ jsx43(TextBone, { width: 7 });
6560
6629
  const { bars, palette: palette3 } = priorityLevel(rank, of);
6561
- return /* @__PURE__ */ jsxs30(
6562
- chakra24.span,
6630
+ return /* @__PURE__ */ jsxs31(
6631
+ chakra25.span,
6563
6632
  {
6564
6633
  display: "inline-flex",
6565
6634
  alignItems: "center",
@@ -6570,8 +6639,8 @@ function PriorityMark({ rank, of, children, title, loading }) {
6570
6639
  "aria-label": children == null ? title : void 0,
6571
6640
  whiteSpace: "nowrap",
6572
6641
  children: [
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,
6642
+ /* @__PURE__ */ jsx43(chakra25.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx43(
6643
+ chakra25.rect,
6575
6644
  {
6576
6645
  x: i * 3 + 0.5,
6577
6646
  y: 9 - i * 3,
@@ -6582,7 +6651,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
6582
6651
  },
6583
6652
  i
6584
6653
  )) }),
6585
- children != null && /* @__PURE__ */ jsx42(chakra24.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6654
+ children != null && /* @__PURE__ */ jsx43(chakra25.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6586
6655
  ]
6587
6656
  }
6588
6657
  );
@@ -6823,8 +6892,8 @@ function useAreaListSource(area, path, options = {}) {
6823
6892
 
6824
6893
  // src/components/FormDialog.tsx
6825
6894
  import { useRef as useRef16, useState as useState18 } from "react";
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";
6895
+ import { chakra as chakra26, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal12, Stack as Stack8 } from "@chakra-ui/react";
6896
+ import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
6828
6897
  var isControl = (el) => el instanceof HTMLInputElement || el instanceof HTMLSelectElement || el instanceof HTMLTextAreaElement;
6829
6898
  function invalidControls(form) {
6830
6899
  return [...form.elements].filter((el) => isControl(el) && !el.disabled && el.willValidate && !el.checkValidity());
@@ -6872,9 +6941,9 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6872
6941
  mark(e.target, wrong);
6873
6942
  if (problems.length > 0) setProblems(invalidControls(e.currentTarget).map(describe2));
6874
6943
  }
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(
6944
+ return /* @__PURE__ */ jsx44(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs32(Portal12, { children: [
6945
+ /* @__PURE__ */ jsx44(Dialog4.Backdrop, {}),
6946
+ /* @__PURE__ */ jsx44(Dialog4.Positioner, { children: /* @__PURE__ */ jsx44(Dialog4.Content, { asChild: true, children: /* @__PURE__ */ jsxs32(
6878
6947
  "form",
6879
6948
  {
6880
6949
  onSubmit: hideSubmit ? (e) => e.preventDefault() : submit,
@@ -6882,11 +6951,11 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6882
6951
  onInput: (e) => typed.current.add(e.target),
6883
6952
  noValidate: true,
6884
6953
  children: [
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,
6954
+ /* @__PURE__ */ jsx44(Dialog4.Header, { children: /* @__PURE__ */ jsx44(Dialog4.Title, { children: title }) }),
6955
+ /* @__PURE__ */ jsx44(Dialog4.Body, { children: /* @__PURE__ */ jsxs32(Stack8, { gap: "field", children: [
6956
+ description != null && /* @__PURE__ */ jsx44(Dialog4.Description, { children: description }),
6957
+ problems.length > 0 && /* @__PURE__ */ jsx44(chakra26.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx44(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx44(chakra26.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx44("li", { children: /* @__PURE__ */ jsx44(
6958
+ chakra26.button,
6890
6959
  {
6891
6960
  type: "button",
6892
6961
  textDecoration: "underline",
@@ -6900,13 +6969,13 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6900
6969
  }
6901
6970
  ) }, i)) }) }) }),
6902
6971
  children,
6903
- /* @__PURE__ */ jsx43(InlineAlert, { tone: "danger", children: error })
6972
+ /* @__PURE__ */ jsx44(InlineAlert, { tone: "danger", children: error })
6904
6973
  ] }) }),
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 })
6974
+ /* @__PURE__ */ jsxs32(Dialog4.Footer, { children: [
6975
+ /* @__PURE__ */ jsx44(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx44(Button, { variant: "secondary", children: labels.cancel }) }),
6976
+ !hideSubmit && /* @__PURE__ */ jsx44(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
6908
6977
  ] }),
6909
- /* @__PURE__ */ jsx43(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx43(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6978
+ /* @__PURE__ */ jsx44(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx44(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6910
6979
  ]
6911
6980
  }
6912
6981
  ) }) })
@@ -6915,32 +6984,32 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6915
6984
 
6916
6985
  // src/settings/SettingsLayout.tsx
6917
6986
  import { useState as useState19 } from "react";
6918
- import { Text as Text11 } from "@chakra-ui/react";
6987
+ import { Text as Text12 } from "@chakra-ui/react";
6919
6988
 
6920
6989
  // src/components/SearchInput.tsx
6921
6990
  import { forwardRef as forwardRef7 } from "react";
6922
- import { Input as Input4, InputGroup } from "@chakra-ui/react";
6991
+ import { Input as Input5, InputGroup } from "@chakra-ui/react";
6923
6992
  import { Search as Search3 } from "lucide-react";
6924
- import { jsx as jsx44 } from "react/jsx-runtime";
6993
+ import { jsx as jsx45 } from "react/jsx-runtime";
6925
6994
  var SearchInput = forwardRef7(function SearchInput2({ size = "md", maxW, ...rest }, ref) {
6926
6995
  const skeleton = useLoading();
6927
- return /* @__PURE__ */ jsx44(
6996
+ return /* @__PURE__ */ jsx45(
6928
6997
  InputGroup,
6929
6998
  {
6930
- startElement: /* @__PURE__ */ jsx44(Search3, {}),
6999
+ startElement: /* @__PURE__ */ jsx45(Search3, {}),
6931
7000
  startOffset: "-0.25rem",
6932
7001
  startElementProps: { color: "fg.subtle", _icon: { boxSize: "4" } },
6933
7002
  maxW,
6934
7003
  borderRadius: "l2",
6935
7004
  "aria-hidden": skeleton || void 0,
6936
7005
  css: skeleton ? ghostCss : void 0,
6937
- children: /* @__PURE__ */ jsx44(Input4, { ref, type: "search", size, ...rest })
7006
+ children: /* @__PURE__ */ jsx45(Input5, { ref, type: "search", size, ...rest })
6938
7007
  }
6939
7008
  );
6940
7009
  });
6941
7010
 
6942
7011
  // src/settings/SettingsLayout.tsx
6943
- import { jsx as jsx45 } from "react/jsx-runtime";
7012
+ import { jsx as jsx46 } from "react/jsx-runtime";
6944
7013
  var isCurrent = (pathname, href) => pathname === href || pathname.startsWith(`${href}/`);
6945
7014
  function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav = [], children, ...shell }) {
6946
7015
  const [find, setFind] = useState19("");
@@ -6951,17 +7020,17 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6951
7020
  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))
6952
7021
  }));
6953
7022
  const found = !q || sections.some((s) => s.items.length > 0);
6954
- return /* @__PURE__ */ jsx45(
7023
+ return /* @__PURE__ */ jsx46(
6955
7024
  AppShell,
6956
7025
  {
6957
7026
  ...shell,
6958
7027
  topNav,
6959
7028
  sidebar: {
6960
7029
  id: sidebarId,
6961
- top: /* @__PURE__ */ jsx45(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
7030
+ top: /* @__PURE__ */ jsx46(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
6962
7031
  sections
6963
7032
  },
6964
- navFooter: !found ? /* @__PURE__ */ jsx45(Text11, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
7033
+ navFooter: !found ? /* @__PURE__ */ jsx46(Text12, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
6965
7034
  children
6966
7035
  }
6967
7036
  );
@@ -6969,7 +7038,7 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6969
7038
 
6970
7039
  // src/components/SegmentedControl.tsx
6971
7040
  import { SegmentGroup } from "@chakra-ui/react";
6972
- import { jsx as jsx46, jsxs as jsxs32 } from "react/jsx-runtime";
7041
+ import { jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
6973
7042
  function SegmentedControl({
6974
7043
  "aria-label": ariaLabel,
6975
7044
  items,
@@ -6981,7 +7050,7 @@ function SegmentedControl({
6981
7050
  }) {
6982
7051
  const loading = useLoading(own);
6983
7052
  const h = size === "sm" ? "7" : "8";
6984
- return /* @__PURE__ */ jsxs32(
7053
+ return /* @__PURE__ */ jsxs33(
6985
7054
  SegmentGroup.Root,
6986
7055
  {
6987
7056
  size: size === "sm" ? "sm" : "md",
@@ -6998,8 +7067,8 @@ function SegmentedControl({
6998
7067
  w: fitted ? "full" : void 0,
6999
7068
  "data-segmented": "",
7000
7069
  children: [
7001
- /* @__PURE__ */ jsx46(SegmentGroup.Indicator, {}),
7002
- items.map((item) => /* @__PURE__ */ jsxs32(
7070
+ /* @__PURE__ */ jsx47(SegmentGroup.Indicator, {}),
7071
+ items.map((item) => /* @__PURE__ */ jsxs33(
7003
7072
  SegmentGroup.Item,
7004
7073
  {
7005
7074
  value: item.value,
@@ -7020,9 +7089,9 @@ function SegmentedControl({
7020
7089
  _icon: { boxSize: "4", flexShrink: 0 },
7021
7090
  children: [
7022
7091
  item.icon,
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, {})
7092
+ /* @__PURE__ */ jsx47(SegmentGroup.ItemText, { children: item.label }),
7093
+ item.count != null && /* @__PURE__ */ jsx47(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
7094
+ /* @__PURE__ */ jsx47(SegmentGroup.ItemHiddenInput, {})
7026
7095
  ]
7027
7096
  },
7028
7097
  item.value
@@ -7034,7 +7103,7 @@ function SegmentedControl({
7034
7103
 
7035
7104
  // src/components/KanbanBoard.tsx
7036
7105
  import { useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef17, useState as useState20 } from "react";
7037
- import { Box as Box9, chakra as chakra26, HStack as HStack8, Stack as Stack8, Text as Text12 } from "@chakra-ui/react";
7106
+ import { Box as Box9, chakra as chakra27, HStack as HStack8, Stack as Stack9, Text as Text13 } from "@chakra-ui/react";
7038
7107
  import { Check as Check2, ChevronsLeft, ChevronsRight, GripVertical as GripVertical3 } from "lucide-react";
7039
7108
  import {
7040
7109
  DndContext as DndContext2,
@@ -7070,13 +7139,13 @@ function between(cell, from, to) {
7070
7139
  }
7071
7140
 
7072
7141
  // src/components/KanbanBoard.tsx
7073
- import { Fragment as Fragment14, jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
7142
+ import { Fragment as Fragment15, jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
7074
7143
  var SKELETON_CARDS = [3, 2, 4, 1, 2];
7075
7144
  function PlaceholderCard({ index }) {
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) }) })
7145
+ return /* @__PURE__ */ jsxs34(Box9, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
7146
+ /* @__PURE__ */ jsx48(Box9, { mb: "1", children: /* @__PURE__ */ jsx48(RecordKey, { loading: true }) }),
7147
+ /* @__PURE__ */ jsx48(Text13, { textStyle: "body.sm", children: /* @__PURE__ */ jsx48(TextBone, { width: boneWidth(index, 14, 34) }) }),
7148
+ /* @__PURE__ */ jsx48(HStack8, { mt: "2", children: /* @__PURE__ */ jsx48(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
7080
7149
  ] });
7081
7150
  }
7082
7151
  var cellId = (lane, column) => `cell:${lane}::${column}`;
@@ -7122,7 +7191,7 @@ function KanbanBoard({
7122
7191
  ids.splice(to, 0, id);
7123
7192
  onReorderColumns(ids);
7124
7193
  };
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;
7194
+ const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx48(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
7126
7195
  const rows2 = lanes && lanes.length > 0 ? lanes : [{ id: "", title: null }];
7127
7196
  const sensors = useSensors2(
7128
7197
  useSensor2(PointerSensor2, { activationConstraint: { distance: 6 } }),
@@ -7234,7 +7303,7 @@ function KanbanBoard({
7234
7303
  document.addEventListener("keydown", key);
7235
7304
  return () => document.removeEventListener("keydown", key);
7236
7305
  }, [onSelect, selected, active]);
7237
- return /* @__PURE__ */ jsxs33(
7306
+ return /* @__PURE__ */ jsxs34(
7238
7307
  DndContext2,
7239
7308
  {
7240
7309
  sensors,
@@ -7247,7 +7316,7 @@ function KanbanBoard({
7247
7316
  },
7248
7317
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
7249
7318
  children: [
7250
- /* @__PURE__ */ jsx47(
7319
+ /* @__PURE__ */ jsx48(
7251
7320
  Box9,
7252
7321
  {
7253
7322
  ref: region,
@@ -7260,7 +7329,7 @@ function KanbanBoard({
7260
7329
  if (Date.now() - draggedAt.current < 300) return;
7261
7330
  if (e.target instanceof Element && !e.target.closest("[data-card], a, button, input, select, textarea")) clear();
7262
7331
  },
7263
- children: /* @__PURE__ */ jsx47(Loading, { when: loading, children: /* @__PURE__ */ jsxs33(
7332
+ children: /* @__PURE__ */ jsx48(Loading, { when: loading, children: /* @__PURE__ */ jsxs34(
7264
7333
  Box9,
7265
7334
  {
7266
7335
  display: "grid",
@@ -7271,7 +7340,7 @@ function KanbanBoard({
7271
7340
  shownColumns.map((c2) => {
7272
7341
  const isFolded = folded.has(c2.id);
7273
7342
  const name = c2.name ?? (typeof c2.title === "string" ? c2.title : c2.id);
7274
- return /* @__PURE__ */ jsxs33(
7343
+ return /* @__PURE__ */ jsxs34(
7275
7344
  Box9,
7276
7345
  {
7277
7346
  position: "sticky",
@@ -7296,7 +7365,7 @@ function KanbanBoard({
7296
7365
  }
7297
7366
  } : {},
7298
7367
  children: [
7299
- overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx47(
7368
+ overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx48(
7300
7369
  Box9,
7301
7370
  {
7302
7371
  position: "absolute",
@@ -7313,11 +7382,11 @@ function KanbanBoard({
7313
7382
  roundedTop: "l3",
7314
7383
  bg: "bg.panel",
7315
7384
  "data-drop-column": "",
7316
- children: /* @__PURE__ */ jsx47(Text12, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
7385
+ children: /* @__PURE__ */ jsx48(Text13, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
7317
7386
  }
7318
7387
  ),
7319
- isFolded ? /* @__PURE__ */ jsx47(
7320
- Stack8,
7388
+ isFolded ? /* @__PURE__ */ jsx48(
7389
+ Stack9,
7321
7390
  {
7322
7391
  align: "center",
7323
7392
  gap: "2",
@@ -7329,9 +7398,9 @@ function KanbanBoard({
7329
7398
  roundedTop: "l3",
7330
7399
  bg: c2.over ? "red.subtle" : "bg.subtle",
7331
7400
  h: "full",
7332
- children: /* @__PURE__ */ jsx47(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
7401
+ children: /* @__PURE__ */ jsx48(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
7333
7402
  }
7334
- ) : /* @__PURE__ */ jsxs33(
7403
+ ) : /* @__PURE__ */ jsxs34(
7335
7404
  HStack8,
7336
7405
  {
7337
7406
  justify: "space-between",
@@ -7348,8 +7417,8 @@ function KanbanBoard({
7348
7417
  h: "full",
7349
7418
  align: "start",
7350
7419
  children: [
7351
- /* @__PURE__ */ jsxs33(HStack8, { gap: "2", minW: "0", children: [
7352
- onReorderColumns && !loading && /* @__PURE__ */ jsx47(
7420
+ /* @__PURE__ */ jsxs34(HStack8, { gap: "2", minW: "0", children: [
7421
+ onReorderColumns && !loading && /* @__PURE__ */ jsx48(
7353
7422
  ColumnGrip,
7354
7423
  {
7355
7424
  label: reorderLabel(name, columns.findIndex((x) => x.id === c2.id) + 1, columns.length),
@@ -7362,11 +7431,11 @@ function KanbanBoard({
7362
7431
  onStep: (by) => reorder(c2.id, columns.findIndex((x) => x.id === c2.id) + by)
7363
7432
  }
7364
7433
  ),
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 })
7434
+ /* @__PURE__ */ jsx48(Text13, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
7435
+ c2.count != null && /* @__PURE__ */ jsx48(CountBadge, { value: c2.count }),
7436
+ c2.meta && /* @__PURE__ */ jsx48(Text13, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
7368
7437
  ] }),
7369
- !loading && /* @__PURE__ */ jsx47(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7438
+ !loading && /* @__PURE__ */ jsx48(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7370
7439
  ]
7371
7440
  }
7372
7441
  )
@@ -7375,20 +7444,20 @@ function KanbanBoard({
7375
7444
  c2.id
7376
7445
  );
7377
7446
  }),
7378
- rows2.map((lane) => /* @__PURE__ */ jsx47(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci2) => {
7447
+ rows2.map((lane) => /* @__PURE__ */ jsx48(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci2) => {
7379
7448
  const id = cellId(lane.id, c2.id);
7380
7449
  const list = byCell.get(id) ?? [];
7381
7450
  const allowed = active ? canDrop?.(active, c2.id, lane.id) !== false : true;
7382
7451
  const last = lane.id === rows2[rows2.length - 1].id;
7383
7452
  if (folded.has(c2.id)) {
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 })
7453
+ return /* @__PURE__ */ jsxs34(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
7454
+ lane.id === rows2[0].id && c2.count != null && /* @__PURE__ */ jsx48(Box9, { alignSelf: "center", children: /* @__PURE__ */ jsx48(CountBadge, { value: c2.count }) }),
7455
+ lane.id === rows2[0].id && /* @__PURE__ */ jsx48(Box9, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
7387
7456
  ] }, id);
7388
7457
  }
7389
7458
  const footer = last && !loading ? columnFooter?.(c2.id) : null;
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(
7459
+ return /* @__PURE__ */ jsxs34(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
7460
+ list.map((item) => /* @__PURE__ */ jsx48(
7392
7461
  SortableCard,
7393
7462
  {
7394
7463
  id: item.id,
@@ -7400,8 +7469,8 @@ function KanbanBoard({
7400
7469
  item.id
7401
7470
  )),
7402
7471
  loading && list.length === 0 && // Not the board's cards: no data-slide, and not in its placement (ADR 0058's slides skip them).
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 })),
7472
+ Array.from({ length: SKELETON_CARDS[ci2 % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx48(Box9, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci2 * 5 + n) : /* @__PURE__ */ jsx48(PlaceholderCard, { index: ci2 * 5 + n }) }, `skeleton-${n}`)),
7473
+ !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx48(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx48(EmptyState, { size: "xs", title: empty })),
7405
7474
  footer
7406
7475
  ] }, id);
7407
7476
  }) }, lane.id))
@@ -7410,24 +7479,24 @@ function KanbanBoard({
7410
7479
  ) })
7411
7480
  }
7412
7481
  ),
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 })
7482
+ /* @__PURE__ */ jsx48(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx48(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
7414
7483
  ]
7415
7484
  }
7416
7485
  );
7417
7486
  }
7418
7487
  function LaneRow({ lane, showTitle, span, children }) {
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 })
7488
+ return /* @__PURE__ */ jsxs34(Fragment15, { children: [
7489
+ showTitle && /* @__PURE__ */ jsxs34(HStack8, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
7490
+ /* @__PURE__ */ jsx48(Text13, { textStyle: "label", children: lane.title }),
7491
+ lane.meta && /* @__PURE__ */ jsx48(Text13, { textStyle: "caption", color: "fg.muted", children: lane.meta })
7423
7492
  ] }),
7424
7493
  children
7425
7494
  ] });
7426
7495
  }
7427
7496
  function Cell({ id, items, allowed, dragging, column, lane, folded = false, last = true, children }) {
7428
7497
  const { setNodeRef, isOver } = useDroppable2({ id, disabled: !allowed });
7429
- return /* @__PURE__ */ jsx47(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx47(
7430
- Stack8,
7498
+ return /* @__PURE__ */ jsx48(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx48(
7499
+ Stack9,
7431
7500
  {
7432
7501
  ref: setNodeRef,
7433
7502
  gap: "2",
@@ -7455,7 +7524,7 @@ function SortableCard({
7455
7524
  children
7456
7525
  }) {
7457
7526
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable({ id, animateLayoutChanges: () => false });
7458
- return /* @__PURE__ */ jsxs33(
7527
+ return /* @__PURE__ */ jsxs34(
7459
7528
  Box9,
7460
7529
  {
7461
7530
  ref: setNodeRef,
@@ -7474,8 +7543,8 @@ function SortableCard({
7474
7543
  cursor: "grab",
7475
7544
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", rounded: "l2" },
7476
7545
  children: [
7477
- /* @__PURE__ */ jsx47(Box9, { "data-slide": id, children: children(isDragging) }),
7478
- selected && !isDragging && !riding && /* @__PURE__ */ jsx47(Mark, {})
7546
+ /* @__PURE__ */ jsx48(Box9, { "data-slide": id, children: children(isDragging) }),
7547
+ selected && !isDragging && !riding && /* @__PURE__ */ jsx48(Mark, {})
7479
7548
  ]
7480
7549
  }
7481
7550
  );
@@ -7503,8 +7572,8 @@ function Lifted({ carried, count, reduce, children }) {
7503
7572
  held.current?.animate?.([{ transform: "none", boxShadow: tv("shadows.sm") }, { transform: HELD, boxShadow: tv("shadows.xl") }], { duration: 160, easing: OUT2 });
7504
7573
  }, []);
7505
7574
  const layers = Math.min(2, Math.max(0, carried - 1));
7506
- return /* @__PURE__ */ jsxs33(Box9, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7507
- Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx47(
7575
+ return /* @__PURE__ */ jsxs34(Box9, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7576
+ Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx48(
7508
7577
  Box9,
7509
7578
  {
7510
7579
  "data-layer": true,
@@ -7519,8 +7588,8 @@ function Lifted({ carried, count, reduce, children }) {
7519
7588
  },
7520
7589
  i
7521
7590
  )),
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 })
7591
+ /* @__PURE__ */ jsx48(Box9, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
7592
+ count != null && /* @__PURE__ */ jsx48(Count, { children: count })
7524
7593
  ] });
7525
7594
  }
7526
7595
  function Mark() {
@@ -7533,8 +7602,8 @@ function Mark() {
7533
7602
  easing: OUT2
7534
7603
  });
7535
7604
  }, []);
7536
- return /* @__PURE__ */ jsx47(
7537
- chakra26.span,
7605
+ return /* @__PURE__ */ jsx48(
7606
+ chakra27.span,
7538
7607
  {
7539
7608
  ref,
7540
7609
  position: "absolute",
@@ -7550,13 +7619,13 @@ function Mark() {
7550
7619
  pointerEvents: "none",
7551
7620
  "aria-hidden": "true",
7552
7621
  _icon: { boxSize: "3" },
7553
- children: /* @__PURE__ */ jsx47(Check2, { strokeWidth: 3 })
7622
+ children: /* @__PURE__ */ jsx48(Check2, { strokeWidth: 3 })
7554
7623
  }
7555
7624
  );
7556
7625
  }
7557
7626
  function Count({ children }) {
7558
- return /* @__PURE__ */ jsx47(
7559
- chakra26.span,
7627
+ return /* @__PURE__ */ jsx48(
7628
+ chakra27.span,
7560
7629
  {
7561
7630
  position: "absolute",
7562
7631
  top: "-3.5",
@@ -7578,8 +7647,8 @@ function Count({ children }) {
7578
7647
  );
7579
7648
  }
7580
7649
  function FoldButton({ folded, label, onClick }) {
7581
- return /* @__PURE__ */ jsx47(
7582
- chakra26.button,
7650
+ return /* @__PURE__ */ jsx48(
7651
+ chakra27.button,
7583
7652
  {
7584
7653
  type: "button",
7585
7654
  display: "inline-flex",
@@ -7599,7 +7668,7 @@ function FoldButton({ folded, label, onClick }) {
7599
7668
  title: label,
7600
7669
  "aria-expanded": !folded,
7601
7670
  onClick,
7602
- children: /* @__PURE__ */ jsx47(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx47(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx47(ChevronsLeft, { size: 16 }) })
7671
+ children: /* @__PURE__ */ jsx48(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx48(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx48(ChevronsLeft, { size: 16 }) })
7603
7672
  }
7604
7673
  );
7605
7674
  }
@@ -7629,8 +7698,8 @@ function useFolded(key) {
7629
7698
  return [folded, fold];
7630
7699
  }
7631
7700
  function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7632
- return /* @__PURE__ */ jsx47(
7633
- chakra26.button,
7701
+ return /* @__PURE__ */ jsx48(
7702
+ chakra27.button,
7634
7703
  {
7635
7704
  type: "button",
7636
7705
  draggable: true,
@@ -7663,27 +7732,27 @@ function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7663
7732
  onDragStart();
7664
7733
  },
7665
7734
  onDragEnd,
7666
- children: /* @__PURE__ */ jsx47(GripVertical3, {})
7735
+ children: /* @__PURE__ */ jsx48(GripVertical3, {})
7667
7736
  }
7668
7737
  );
7669
7738
  }
7670
7739
 
7671
7740
  // src/components/LoadingState.tsx
7672
7741
  import { Box as Box10, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
7673
- import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
7742
+ import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
7674
7743
  function LoadingState({ lines = 3, label }) {
7675
7744
  const labels = useAbpLabels();
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" })
7745
+ return /* @__PURE__ */ jsxs35(Box10, { "aria-busy": "true", role: "status", children: [
7746
+ /* @__PURE__ */ jsx49(VisuallyHidden2, { children: label ?? labels.loading }),
7747
+ /* @__PURE__ */ jsx49(TextBone, { lines, width: "full" })
7679
7748
  ] });
7680
7749
  }
7681
7750
 
7682
7751
  // src/components/PageHeader.tsx
7683
- import { Fragment as Fragment15 } from "react";
7684
- import { Breadcrumb, chakra as chakra27, Menu as Menu2, Portal as Portal12, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
7752
+ import { Fragment as Fragment16 } from "react";
7753
+ import { Breadcrumb, chakra as chakra28, Menu as Menu3, Portal as Portal13, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
7685
7754
  import { ChevronRight as ChevronRight3 } from "lucide-react";
7686
- import { jsx as jsx49, jsxs as jsxs35 } from "react/jsx-runtime";
7755
+ import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
7687
7756
  var textOf = (label) => typeof label === "string" || typeof label === "number" ? String(label) : void 0;
7688
7757
  function PageHeader({ title, description, breadcrumbs, meta, count, adornments, actions, loading: own, titleWidth = 24, documentTitle }) {
7689
7758
  const recipe = useSlotRecipe4({ key: "abpPageHeader" });
@@ -7692,33 +7761,33 @@ function PageHeader({ title, description, breadcrumbs, meta, count, adornments,
7692
7761
  usePageTitle(documentTitle !== void 0 ? documentTitle : text ? [text, where] : null);
7693
7762
  const styles = recipe({});
7694
7763
  const loading = useLoading(own);
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" }),
7764
+ return /* @__PURE__ */ jsxs36(chakra28.div, { css: styles.root, children: [
7765
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx50(Breadcrumbs, { items: breadcrumbs }),
7766
+ /* @__PURE__ */ jsxs36(chakra28.div, { css: styles.row, children: [
7767
+ /* @__PURE__ */ jsxs36(chakra28.div, { css: styles.titleGroup, children: [
7768
+ count != null || adornments != null ? /* @__PURE__ */ jsxs36(chakra28.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
7769
+ /* @__PURE__ */ jsx50(chakra28.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx50(TextBone, { width: titleWidth }) : title }),
7770
+ count != null && /* @__PURE__ */ jsx50(CountBadge, { value: count, size: "md" }),
7702
7771
  adornments
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 })
7772
+ ] }) : /* @__PURE__ */ jsx50(chakra28.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx50(TextBone, { width: titleWidth }) : title }),
7773
+ meta != null && /* @__PURE__ */ jsx50(chakra28.div, { css: styles.meta, children: meta }),
7774
+ description != null && /* @__PURE__ */ jsx50(chakra28.p, { css: styles.description, children: description })
7706
7775
  ] }),
7707
- actions != null && /* @__PURE__ */ jsx49(chakra27.div, { css: styles.actions, children: actions })
7776
+ actions != null && /* @__PURE__ */ jsx50(chakra28.div, { css: styles.actions, children: actions })
7708
7777
  ] })
7709
7778
  ] });
7710
7779
  }
7711
7780
  function Breadcrumbs({ items, loading: own }) {
7712
7781
  const labels = useAbpLabels();
7713
7782
  const loading = useLoading(own);
7714
- const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx49(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7783
+ const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx50(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7715
7784
  const Link = useLinkComponent();
7716
7785
  const { shown, hidden } = foldBreadcrumbs(items);
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,
7786
+ return /* @__PURE__ */ jsx50(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx50(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs36(Fragment16, { children: [
7787
+ n > 0 && /* @__PURE__ */ jsx50(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx50(ChevronRight3, {}) }),
7788
+ entry == null ? /* @__PURE__ */ jsx50(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs36(Menu3.Root, { positioning: { placement: "bottom-start" }, children: [
7789
+ /* @__PURE__ */ jsx50(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsx50(
7790
+ chakra28.button,
7722
7791
  {
7723
7792
  type: "button",
7724
7793
  px: "1",
@@ -7732,74 +7801,74 @@ function Breadcrumbs({ items, loading: own }) {
7732
7801
  children: "\u2026"
7733
7802
  }
7734
7803
  ) }),
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) }) })
7804
+ /* @__PURE__ */ jsx50(Portal13, { children: /* @__PURE__ */ jsx50(Menu3.Positioner, { children: /* @__PURE__ */ jsx50(Menu3.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx50(Menu3.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx50(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx50("span", { children: h.label }) }, k)) }) }) })
7805
+ ] }) }) : /* @__PURE__ */ jsx50(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx50(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx50(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx50(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
7737
7806
  ] }, entry ? entry.index : "more")) }) });
7738
7807
  }
7739
7808
 
7740
7809
  // src/components/Panel.tsx
7741
7810
  import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11 } from "react";
7742
- import { chakra as chakra28, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
7743
- import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
7811
+ import { chakra as chakra29, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
7812
+ import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
7744
7813
  var ToneContext = createContext11("card");
7745
7814
  function PanelTone({ tone, children }) {
7746
- return /* @__PURE__ */ jsx50(ToneContext.Provider, { value: tone, children });
7815
+ return /* @__PURE__ */ jsx51(ToneContext.Provider, { value: tone, children });
7747
7816
  }
7748
7817
  var Panel = forwardRef8(function Panel2({ title, description, actions, footer, flush = false, headingAs = "h2", loading, tone, children, css, ...rest }, ref) {
7749
7818
  const recipe = useSlotRecipe5({ key: "abpPanel" });
7750
7819
  const inherited = useContext11(ToneContext);
7751
7820
  const styles = recipe({ flush, tone: tone ?? inherited });
7752
7821
  const hasHeader = title != null || actions != null || description != null;
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 })
7822
+ return /* @__PURE__ */ jsxs37(chakra29.section, { ref, css: [styles.root, css], ...rest, children: [
7823
+ hasHeader && /* @__PURE__ */ jsxs37(chakra29.header, { css: styles.header, children: [
7824
+ /* @__PURE__ */ jsxs37(chakra29.div, { css: styles.titleGroup, children: [
7825
+ title != null && /* @__PURE__ */ jsx51(chakra29.h2, { as: headingAs, css: styles.title, children: title }),
7826
+ description != null && /* @__PURE__ */ jsx51(chakra29.p, { css: styles.description, children: description })
7758
7827
  ] }),
7759
- actions != null && /* @__PURE__ */ jsx50(chakra28.div, { css: styles.actions, children: actions })
7828
+ actions != null && /* @__PURE__ */ jsx51(chakra29.div, { css: styles.actions, children: actions })
7760
7829
  ] }),
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 })
7830
+ /* @__PURE__ */ jsx51(chakra29.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx51(Loading, { when: loading, children }) }),
7831
+ footer != null && /* @__PURE__ */ jsx51(chakra29.footer, { css: styles.footer, children: footer })
7763
7832
  ] });
7764
7833
  });
7765
7834
 
7766
7835
  // src/components/PathChips.tsx
7767
- import { chakra as chakra29, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
7836
+ import { chakra as chakra30, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
7768
7837
  import { ChevronRight as ChevronRight4 } from "lucide-react";
7769
- import { jsx as jsx51, jsxs as jsxs37 } from "react/jsx-runtime";
7838
+ import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
7770
7839
  function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3, css, ...rest }) {
7771
7840
  const labels = useAbpLabels();
7772
7841
  const recipe = useSlotRecipe6({ key: "abpPathChips" });
7773
7842
  const styles = recipe({});
7774
7843
  const loading = useLoading(own) && path.length === 0;
7775
7844
  const segments = loading ? Array.from({ length: skeletonCount }, (_, i) => "\xA0".repeat(boneWidth(i, 6, 12))) : path;
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 })
7845
+ return /* @__PURE__ */ jsx52(chakra30.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs38(chakra30.li, { css: styles.item, children: [
7846
+ i > 0 && /* @__PURE__ */ jsx52(chakra30.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx52(ChevronRight4, {}) }),
7847
+ /* @__PURE__ */ jsx52(chakra30.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
7779
7848
  ] }, `${i}:${segment}`)) });
7780
7849
  }
7781
7850
 
7782
7851
  // src/components/PropertyList.tsx
7783
- import { chakra as chakra30, DataList } from "@chakra-ui/react";
7784
- import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
7852
+ import { chakra as chakra31, DataList } from "@chakra-ui/react";
7853
+ import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
7785
7854
  function PropertyList({ items, size = "md", loading: own }) {
7786
7855
  const loading = useLoading(own);
7787
7856
  const arriving = useArriving(loading);
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 })
7857
+ return /* @__PURE__ */ jsx53(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs39(DataList.Item, { children: [
7858
+ /* @__PURE__ */ jsx53(DataList.ItemLabel, { children: item.label }),
7859
+ /* @__PURE__ */ jsx53(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx53(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx53(chakra31.span, { css: arriveCss, children: item.value }) : item.value })
7791
7860
  ] }, item.id ?? i)) });
7792
7861
  }
7793
7862
 
7794
7863
  // src/components/QueryableList.tsx
7795
- import { useEffect as useEffect15, useId as useId5, useMemo as useMemo12, useRef as useRef19, useState as useState22 } from "react";
7864
+ import { useEffect as useEffect15, useId as useId6, useMemo as useMemo12, useRef as useRef19, useState as useState22 } from "react";
7796
7865
  import { createPortal } from "react-dom";
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";
7866
+ import { Box as Box11, chakra as chakra33, HStack as HStack11, Input as Input7, Menu as Menu4, Portal as Portal16, Stack as Stack12, Text as Text16 } from "@chakra-ui/react";
7798
7867
  import { ArrowDownWideNarrow, ArrowUpNarrowWide, ChevronDown as ChevronDown3, Download, Filter, Rows3, Save, Trash2 as Trash22, X as X2 } from "lucide-react";
7799
7868
 
7800
7869
  // src/components/query/ColumnsPopover.tsx
7801
7870
  import { useMemo as useMemo11 } from "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";
7871
+ import { chakra as chakra32, HStack as HStack9, Popover as Popover3, Portal as Portal14, Stack as Stack10, Switch as Switch2, Text as Text14 } from "@chakra-ui/react";
7803
7872
  import {
7804
7873
  closestCenter,
7805
7874
  DndContext as DndContext3,
@@ -7811,8 +7880,8 @@ import {
7811
7880
  import { arrayMove, SortableContext as SortableContext2, sortableKeyboardCoordinates as sortableKeyboardCoordinates2, useSortable as useSortable2, verticalListSortingStrategy as verticalListSortingStrategy2 } from "@dnd-kit/sortable";
7812
7881
  import { CSS as CSS3 } from "@dnd-kit/utilities";
7813
7882
  import { Columns3, GripVertical as GripVertical4 } from "lucide-react";
7814
- import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
7815
- function fill(template, values) {
7883
+ import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
7884
+ function fill2(template, values) {
7816
7885
  return template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
7817
7886
  }
7818
7887
  function ColumnsPopover({ fields, columns, onChange }) {
@@ -7828,19 +7897,19 @@ function ColumnsPopover({ fields, columns, onChange }) {
7828
7897
  if (from < 0 || to < 0) return;
7829
7898
  onChange(arrayMove(columns, from, to));
7830
7899
  }
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, {}),
7900
+ return /* @__PURE__ */ jsxs40(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
7901
+ /* @__PURE__ */ jsx54(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs40(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
7902
+ /* @__PURE__ */ jsx54(Columns3, {}),
7834
7903
  labels.columns
7835
7904
  ] }) }),
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 })
7905
+ /* @__PURE__ */ jsx54(Portal14, { children: /* @__PURE__ */ jsx54(Popover3.Positioner, { children: /* @__PURE__ */ jsx54(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs40(Popover3.Body, { p: "0", children: [
7906
+ /* @__PURE__ */ jsxs40(HStack9, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
7907
+ /* @__PURE__ */ jsx54(Text14, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
7908
+ /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
7840
7909
  ] }),
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(
7910
+ /* @__PURE__ */ jsx54(Text14, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
7911
+ /* @__PURE__ */ jsxs40(chakra32.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
7912
+ /* @__PURE__ */ jsx54(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx54(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx54(Stack10, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx54(
7844
7913
  ColumnRow,
7845
7914
  {
7846
7915
  id,
@@ -7851,7 +7920,7 @@ function ColumnsPopover({ fields, columns, onChange }) {
7851
7920
  },
7852
7921
  id
7853
7922
  )) }) }) }),
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)) })
7923
+ hidden.length > 0 && /* @__PURE__ */ jsx54(Stack10, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx54(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
7855
7924
  ] })
7856
7925
  ] }) }) }) })
7857
7926
  ] });
@@ -7860,7 +7929,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7860
7929
  const labels = useAbpLabels().queryList;
7861
7930
  const sortable = useSortable2({ id, disabled: !checked });
7862
7931
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = sortable;
7863
- return /* @__PURE__ */ jsxs39(
7932
+ return /* @__PURE__ */ jsxs40(
7864
7933
  HStack9,
7865
7934
  {
7866
7935
  ref: setNodeRef,
@@ -7877,8 +7946,8 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7877
7946
  style: { transform: CSS3.Transform.toString(transform), transition },
7878
7947
  _hover: { bg: "bg.subtle" },
7879
7948
  children: [
7880
- checked ? /* @__PURE__ */ jsx53(
7881
- chakra31.button,
7949
+ checked ? /* @__PURE__ */ jsx54(
7950
+ chakra32.button,
7882
7951
  {
7883
7952
  type: "button",
7884
7953
  display: "inline-flex",
@@ -7887,16 +7956,16 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7887
7956
  borderRadius: "l1",
7888
7957
  focusVisibleRing: "outside",
7889
7958
  _hover: { color: "fg" },
7890
- "aria-label": fill(labels.dragColumn, { field: label }),
7959
+ "aria-label": fill2(labels.dragColumn, { field: label }),
7891
7960
  ...attributes,
7892
7961
  ...listeners2,
7893
- children: /* @__PURE__ */ jsx53(GripVertical4, { size: 16 })
7962
+ children: /* @__PURE__ */ jsx54(GripVertical4, { size: 16 })
7894
7963
  }
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, {}) })
7964
+ ) : /* @__PURE__ */ jsx54(chakra32.span, { w: "4", flexShrink: 0 }),
7965
+ /* @__PURE__ */ jsx54(Text14, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
7966
+ /* @__PURE__ */ jsxs40(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
7967
+ /* @__PURE__ */ jsx54(Switch2.HiddenInput, {}),
7968
+ /* @__PURE__ */ jsx54(Switch2.Control, { children: /* @__PURE__ */ jsx54(Switch2.Thumb, {}) })
7900
7969
  ] })
7901
7970
  ]
7902
7971
  }
@@ -7904,11 +7973,11 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7904
7973
  }
7905
7974
 
7906
7975
  // src/components/query/FilterBuilder.tsx
7907
- import { useEffect as useEffect14, useId as useId4, useRef as useRef18, useState as useState21 } from "react";
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";
7976
+ import { useEffect as useEffect14, useId as useId5, useRef as useRef18, useState as useState21 } from "react";
7977
+ import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack10, Input as Input6, Portal as Portal15, Stack as Stack11, Text as Text15 } from "@chakra-ui/react";
7909
7978
  import { Trash2 } from "lucide-react";
7910
- import { Fragment as Fragment16, jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
7911
- function fill2(template, values) {
7979
+ import { Fragment as Fragment17, jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
7980
+ function fill3(template, values) {
7912
7981
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
7913
7982
  }
7914
7983
  function conditionOf(d, field, own) {
@@ -7963,23 +8032,23 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7963
8032
  setSeq((n) => n + 1);
7964
8033
  };
7965
8034
  const change = (id, patch) => setRows((r) => r.map((d) => d.id === id ? { ...d, ...patch, dirty: true } : d));
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 })
8035
+ return /* @__PURE__ */ jsx55(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs41(Portal15, { children: [
8036
+ /* @__PURE__ */ jsx55(Dialog5.Backdrop, {}),
8037
+ /* @__PURE__ */ jsx55(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs41(Dialog5.Content, { "data-filter-builder": "", children: [
8038
+ /* @__PURE__ */ jsx55(Dialog5.Header, { children: /* @__PURE__ */ jsxs41(HStack10, { justify: "space-between", w: "full", gap: "3", children: [
8039
+ /* @__PURE__ */ jsx55(Dialog5.Title, { children: labels.buildFilters }),
8040
+ /* @__PURE__ */ jsx55(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows2.length === 0, children: labels.clearAll })
7972
8041
  ] }) }),
7973
- /* @__PURE__ */ jsx54(Dialog5.Body, { children: /* @__PURE__ */ jsxs40(Stack10, { gap: "3", children: [
7974
- /* @__PURE__ */ jsxs40(Text14, { textStyle: "sm", color: "fg.muted", children: [
8042
+ /* @__PURE__ */ jsx55(Dialog5.Body, { children: /* @__PURE__ */ jsxs41(Stack11, { gap: "3", children: [
8043
+ /* @__PURE__ */ jsxs41(Text15, { textStyle: "sm", color: "fg.muted", children: [
7975
8044
  labels.matchAll,
7976
- repeats && /* @__PURE__ */ jsxs40(Fragment16, { children: [
8045
+ repeats && /* @__PURE__ */ jsxs41(Fragment17, { children: [
7977
8046
  " ",
7978
8047
  labels.sameFieldAny
7979
8048
  ] })
7980
8049
  ] }),
7981
- rows2.length === 0 && /* @__PURE__ */ jsx54(Text14, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
7982
- rows2.map((d) => /* @__PURE__ */ jsx54(
8050
+ rows2.length === 0 && /* @__PURE__ */ jsx55(Text15, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
8051
+ rows2.map((d) => /* @__PURE__ */ jsx55(
7983
8052
  ConditionRow,
7984
8053
  {
7985
8054
  draft: d,
@@ -7992,29 +8061,29 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7992
8061
  },
7993
8062
  d.id
7994
8063
  )),
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 ") })
8064
+ /* @__PURE__ */ jsx55(HStack10, { children: /* @__PURE__ */ jsx55(AddButton, { onClick: add, disabled: fields.length === 0, children: labels.addCondition }) }),
8065
+ /* @__PURE__ */ jsxs41(Stack11, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
8066
+ /* @__PURE__ */ jsx55(Text15, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
8067
+ /* @__PURE__ */ jsx55(Text15, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
7999
8068
  ] })
8000
8069
  ] }) }),
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: [
8003
- count != null && fill2(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
8004
- incomplete > 0 && /* @__PURE__ */ jsxs40(Fragment16, { children: [
8070
+ /* @__PURE__ */ jsx55(Dialog5.Footer, { children: /* @__PURE__ */ jsxs41(HStack10, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
8071
+ /* @__PURE__ */ jsxs41(Text15, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
8072
+ count != null && fill3(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
8073
+ incomplete > 0 && /* @__PURE__ */ jsxs41(Fragment17, { children: [
8005
8074
  " \xB7 ",
8006
8075
  labels.incompleteSkipped
8007
8076
  ] })
8008
8077
  ] }),
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: () => {
8078
+ /* @__PURE__ */ jsxs41(HStack10, { gap: "2", children: [
8079
+ /* @__PURE__ */ jsx55(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
8080
+ /* @__PURE__ */ jsx55(Button, { size: "sm", variant: "primary", onClick: () => {
8012
8081
  setTouched(true);
8013
8082
  onApply(mergeSameField(complete, fields));
8014
8083
  }, children: labels.applyFilters })
8015
8084
  ] })
8016
8085
  ] }) }),
8017
- /* @__PURE__ */ jsx54(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(CloseButton3, { size: "sm" }) })
8086
+ /* @__PURE__ */ jsx55(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx55(CloseButton3, { size: "sm" }) })
8018
8087
  ] }) })
8019
8088
  ] }) });
8020
8089
  }
@@ -8025,7 +8094,7 @@ function describe(c2, fields, labels) {
8025
8094
  }
8026
8095
  function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChange, onRemove }) {
8027
8096
  const labels = useAbpLabels().queryList;
8028
- const listId = useId4();
8097
+ const listId = useId5();
8029
8098
  const field = fields.find((f) => f.id === draft.field);
8030
8099
  const { op, text } = draft;
8031
8100
  const [options, setOptions] = useState21([]);
@@ -8043,9 +8112,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
8043
8112
  clearTimeout(timer);
8044
8113
  };
8045
8114
  }, [suggest, field, op, text, own]);
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(
8115
+ return /* @__PURE__ */ jsxs41(Stack11, { gap: "1", "data-condition": "", children: [
8116
+ /* @__PURE__ */ jsxs41(HStack10, { gap: "1.5", wrap: "wrap", align: "start", children: [
8117
+ /* @__PURE__ */ jsx55(
8049
8118
  SelectField,
8050
8119
  {
8051
8120
  width: "auto",
@@ -8059,7 +8128,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
8059
8128
  options: fields.map((f) => ({ value: f.id, label: f.label }))
8060
8129
  }
8061
8130
  ),
8062
- /* @__PURE__ */ jsx54(
8131
+ /* @__PURE__ */ jsx55(
8063
8132
  SelectField,
8064
8133
  {
8065
8134
  width: "auto",
@@ -8071,9 +8140,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
8071
8140
  }
8072
8141
  ),
8073
8142
  own,
8074
- !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs40(Fragment16, { children: [
8075
- /* @__PURE__ */ jsx54(
8076
- Input5,
8143
+ !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs41(Fragment17, { children: [
8144
+ /* @__PURE__ */ jsx55(
8145
+ Input6,
8077
8146
  {
8078
8147
  size: "sm",
8079
8148
  flex: "1",
@@ -8086,16 +8155,16 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
8086
8155
  onChange: (e) => onChange({ text: e.target.value })
8087
8156
  }
8088
8157
  ),
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)) })
8158
+ /* @__PURE__ */ jsx55("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx55("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
8090
8159
  ] }),
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, {}) })
8160
+ /* @__PURE__ */ jsx55(IconButton, { size: "sm", variant: "ghost", remove: true, "aria-label": fill3(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx55(Trash2, {}) })
8092
8161
  ] }),
8093
- warn && /* @__PURE__ */ jsx54(Text14, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
8162
+ warn && /* @__PURE__ */ jsx55(Text15, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
8094
8163
  ] });
8095
8164
  }
8096
8165
 
8097
8166
  // src/components/QueryableList.tsx
8098
- import { Fragment as Fragment17, jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
8167
+ import { Fragment as Fragment18, jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
8099
8168
  var PAIR = "";
8100
8169
  var pairKey = (first, second) => `${first}${PAIR}${second}`;
8101
8170
  var condition = (field, value) => value == null ? { field, op: "isEmpty" } : { field, op: "eq", value };
@@ -8109,7 +8178,7 @@ function basicConditions(where) {
8109
8178
  if ("and" in where && Array.isArray(where.and) && where.and.every(isCondition)) return where.and;
8110
8179
  return null;
8111
8180
  }
8112
- function fill3(template, values) {
8181
+ function fill4(template, values) {
8113
8182
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
8114
8183
  }
8115
8184
  function QueryableList({
@@ -8124,6 +8193,9 @@ function QueryableList({
8124
8193
  renderRow,
8125
8194
  selection,
8126
8195
  leadingColumn,
8196
+ trailingColumn,
8197
+ cards,
8198
+ layout = "list",
8127
8199
  toolbarFooter,
8128
8200
  countMatches,
8129
8201
  suggest,
@@ -8183,7 +8255,7 @@ function QueryableList({
8183
8255
  nowrap: id !== "title",
8184
8256
  skeleton: placeholderOf(id, byId.get(id)?.kind)
8185
8257
  }));
8186
- const columns = leadingColumn ? [leadingColumn, ...fieldColumns] : fieldColumns;
8258
+ const columns = [...leadingColumn ? [leadingColumn] : [], ...fieldColumns, ...trailingColumn ? [trailingColumn] : []];
8187
8259
  const total = result?.total ?? 0;
8188
8260
  const from = total === 0 ? 0 : skip + 1;
8189
8261
  const to = Math.min(skip + take, total);
@@ -8198,7 +8270,7 @@ function QueryableList({
8198
8270
  if (done?.truncated) {
8199
8271
  setExported({
8200
8272
  tone: "warning",
8201
- message: fill3(labels.exportCut, { rows: fmt.number(done.rows), total: fmt.number(done.total), limit: fmt.number(done.limit) })
8273
+ message: fill4(labels.exportCut, { rows: fmt.number(done.rows), total: fmt.number(done.total), limit: fmt.number(done.limit) })
8202
8274
  });
8203
8275
  }
8204
8276
  } catch (e) {
@@ -8239,15 +8311,15 @@ function QueryableList({
8239
8311
  }
8240
8312
  const sortable = (fields ?? []).filter((f) => f.sortable);
8241
8313
  const groupLabel = groupField ? thenField ? `${label(groupField)} \xB7 ${label(thenField)}` : label(groupField) : null;
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: [
8314
+ return /* @__PURE__ */ jsxs42(Stack12, { gap: "3", children: [
8315
+ /* @__PURE__ */ jsxs42(chakra33.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
8316
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
8317
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", wrap: "wrap", minW: "0", children: [
8246
8318
  leading,
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(
8319
+ leading != null && views && onSelectView && /* @__PURE__ */ jsx56(chakra33.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
8320
+ views && onSelectView && /* @__PURE__ */ jsxs42(HStack11, { gap: "2", children: [
8321
+ /* @__PURE__ */ jsx56(Text16, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
8322
+ /* @__PURE__ */ jsx56(
8251
8323
  SelectField,
8252
8324
  {
8253
8325
  width: "auto",
@@ -8259,62 +8331,62 @@ function QueryableList({
8259
8331
  }
8260
8332
  )
8261
8333
  ] }),
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, {}),
8334
+ onSaveView && (naming === null ? /* @__PURE__ */ jsxs42(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
8335
+ /* @__PURE__ */ jsx56(Save, {}),
8264
8336
  labels.saveView
8265
- ] }) : /* @__PURE__ */ jsxs41(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
8337
+ ] }) : /* @__PURE__ */ jsxs42(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
8266
8338
  e.preventDefault();
8267
8339
  if (naming.trim()) onSaveView(naming.trim(), activeView?.isOwner && naming.trim() === activeView.name ? activeView.id : null);
8268
8340
  setNaming(null);
8269
8341
  }, children: [
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, {}) })
8342
+ /* @__PURE__ */ jsx56(Input7, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
8343
+ /* @__PURE__ */ jsx56(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
8344
+ /* @__PURE__ */ jsx56(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx56(X2, {}) })
8273
8345
  ] })),
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, {}) })
8346
+ activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx56(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx56(Trash22, {}) })
8275
8347
  ] }),
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 }),
8348
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", wrap: "wrap", children: [
8349
+ /* @__PURE__ */ jsxs42(Menu4.Root, { positioning: { placement: "bottom-end" }, children: [
8350
+ /* @__PURE__ */ jsx56(Menu4.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs42(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
8351
+ /* @__PURE__ */ jsx56(Rows3, {}),
8352
+ /* @__PURE__ */ jsx56(Text16, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
8281
8353
  groupLabel ?? labels.noGrouping,
8282
- /* @__PURE__ */ jsx55(ChevronDown3, {})
8354
+ /* @__PURE__ */ jsx56(ChevronDown3, {})
8283
8355
  ] }) }),
8284
- /* @__PURE__ */ jsx55(Portal15, { children: /* @__PURE__ */ jsx55(Menu3.Positioner, { children: /* @__PURE__ */ jsxs41(Menu3.Content, { minW: "48", children: [
8285
- /* @__PURE__ */ jsxs41(
8286
- Menu3.RadioItemGroup,
8356
+ /* @__PURE__ */ jsx56(Portal16, { children: /* @__PURE__ */ jsx56(Menu4.Positioner, { children: /* @__PURE__ */ jsxs42(Menu4.Content, { minW: "48", children: [
8357
+ /* @__PURE__ */ jsxs42(
8358
+ Menu4.RadioItemGroup,
8287
8359
  {
8288
8360
  value: groupField ?? "",
8289
8361
  onValueChange: (d) => change({ ...query, groupBy: d.value ? { field: d.value, aggregates: [] } : null }),
8290
8362
  children: [
8291
- /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: "", children: [
8363
+ /* @__PURE__ */ jsxs42(Menu4.RadioItem, { value: "", children: [
8292
8364
  labels.noGrouping,
8293
- /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8365
+ /* @__PURE__ */ jsx56(Menu4.ItemIndicator, {})
8294
8366
  ] }),
8295
- groupable.map((f) => /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: f.id, children: [
8367
+ groupable.map((f) => /* @__PURE__ */ jsxs42(Menu4.RadioItem, { value: f.id, children: [
8296
8368
  f.label,
8297
- /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8369
+ /* @__PURE__ */ jsx56(Menu4.ItemIndicator, {})
8298
8370
  ] }, f.id))
8299
8371
  ]
8300
8372
  }
8301
8373
  ),
8302
- groupField && groupable.length > 1 && /* @__PURE__ */ jsxs41(Fragment17, { children: [
8303
- /* @__PURE__ */ jsx55(Menu3.Separator, {}),
8304
- /* @__PURE__ */ jsxs41(
8305
- Menu3.RadioItemGroup,
8374
+ groupField && groupable.length > 1 && /* @__PURE__ */ jsxs42(Fragment18, { children: [
8375
+ /* @__PURE__ */ jsx56(Menu4.Separator, {}),
8376
+ /* @__PURE__ */ jsxs42(
8377
+ Menu4.RadioItemGroup,
8306
8378
  {
8307
8379
  value: thenField ?? "",
8308
8380
  onValueChange: (d) => change({ ...query, groupBy: { ...query.groupBy, then: d.value ? { field: d.value } : null } }),
8309
8381
  children: [
8310
- /* @__PURE__ */ jsx55(Menu3.ItemGroupLabel, { children: labels.thenBy }),
8311
- /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: "", children: [
8382
+ /* @__PURE__ */ jsx56(Menu4.ItemGroupLabel, { children: labels.thenBy }),
8383
+ /* @__PURE__ */ jsxs42(Menu4.RadioItem, { value: "", children: [
8312
8384
  labels.noSecondGrouping,
8313
- /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8385
+ /* @__PURE__ */ jsx56(Menu4.ItemIndicator, {})
8314
8386
  ] }),
8315
- groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs41(Menu3.RadioItem, { value: f.id, children: [
8387
+ groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs42(Menu4.RadioItem, { value: f.id, children: [
8316
8388
  f.label,
8317
- /* @__PURE__ */ jsx55(Menu3.ItemIndicator, {})
8389
+ /* @__PURE__ */ jsx56(Menu4.ItemIndicator, {})
8318
8390
  ] }, f.id))
8319
8391
  ]
8320
8392
  }
@@ -8322,15 +8394,15 @@ function QueryableList({
8322
8394
  ] })
8323
8395
  ] }) }) })
8324
8396
  ] }),
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),
8397
+ /* @__PURE__ */ jsx56(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
8398
+ onExport && !exportTarget && /* @__PURE__ */ jsx56(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }),
8399
+ onExport && exportTarget && createPortal(/* @__PURE__ */ jsx56(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }), exportTarget),
8328
8400
  actions
8329
8401
  ] })
8330
8402
  ] }),
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(
8403
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
8404
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
8405
+ /* @__PURE__ */ jsx56(
8334
8406
  SegmentedControl,
8335
8407
  {
8336
8408
  size: "sm",
@@ -8343,14 +8415,14 @@ function QueryableList({
8343
8415
  ]
8344
8416
  }
8345
8417
  ),
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: [
8418
+ mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs42(HStack11, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
8419
+ search && /* @__PURE__ */ jsx56(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
8420
+ /* @__PURE__ */ jsxs42(AddButton, { onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
8349
8421
  labels.addFilter,
8350
- chips.length > 0 && /* @__PURE__ */ jsx55(CountBadge, { value: chips.length, tone: "accent" })
8422
+ chips.length > 0 && /* @__PURE__ */ jsx56(CountBadge, { value: chips.length, tone: "accent" })
8351
8423
  ] }),
8352
- sortable.length > 0 && /* @__PURE__ */ jsxs41(HStack11, { gap: "1", flexShrink: 0, children: [
8353
- /* @__PURE__ */ jsx55(
8424
+ sortable.length > 0 && /* @__PURE__ */ jsxs42(HStack11, { gap: "1", flexShrink: 0, children: [
8425
+ /* @__PURE__ */ jsx56(
8354
8426
  SelectField,
8355
8427
  {
8356
8428
  width: "auto",
@@ -8360,12 +8432,12 @@ function QueryableList({
8360
8432
  value: sort?.columnId ?? "",
8361
8433
  onChange: (e) => change({ ...query, orderBy: e.target.value ? [{ field: e.target.value, desc: sort?.direction === "desc" }] : [] }),
8362
8434
  options: [
8363
- { value: "", label: fill3(labels.sortField, { field: labels.defaultOrder }) },
8364
- ...sortable.map((f) => ({ value: f.id, label: fill3(labels.sortField, { field: f.label }) }))
8435
+ { value: "", label: fill4(labels.sortField, { field: labels.defaultOrder }) },
8436
+ ...sortable.map((f) => ({ value: f.id, label: fill4(labels.sortField, { field: f.label }) }))
8365
8437
  ]
8366
8438
  }
8367
8439
  ),
8368
- sort && /* @__PURE__ */ jsx55(
8440
+ sort && /* @__PURE__ */ jsx56(
8369
8441
  IconButton,
8370
8442
  {
8371
8443
  size: "sm",
@@ -8373,11 +8445,11 @@ function QueryableList({
8373
8445
  "aria-label": sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8374
8446
  title: sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8375
8447
  onClick: () => change({ ...query, orderBy: [{ field: sort.columnId, desc: sort.direction !== "desc" }] }),
8376
- children: sort.direction === "desc" ? /* @__PURE__ */ jsx55(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx55(ArrowUpNarrowWide, {})
8448
+ children: sort.direction === "desc" ? /* @__PURE__ */ jsx56(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx56(ArrowUpNarrowWide, {})
8377
8449
  }
8378
8450
  )
8379
8451
  ] })
8380
- ] }) : /* @__PURE__ */ jsx55(
8452
+ ] }) : /* @__PURE__ */ jsx56(
8381
8453
  RqlBox,
8382
8454
  {
8383
8455
  initial: state.rql ?? result?.rql ?? "",
@@ -8388,11 +8460,11 @@ function QueryableList({
8388
8460
  state.rql ?? result?.rql ?? ""
8389
8461
  )
8390
8462
  ] }),
8391
- attention != null && /* @__PURE__ */ jsx55(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8463
+ attention != null && /* @__PURE__ */ jsx56(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8392
8464
  ] }),
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,
8465
+ mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs42(HStack11, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
8466
+ chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs42(
8467
+ chakra33.span,
8396
8468
  {
8397
8469
  display: "inline-flex",
8398
8470
  alignItems: "center",
@@ -8406,17 +8478,17 @@ function QueryableList({
8406
8478
  bg: "bg.selected",
8407
8479
  textStyle: "sm",
8408
8480
  children: [
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, {}) })
8481
+ /* @__PURE__ */ jsx56(Text16, { as: "span", fontWeight: "medium", children: label(c2.field) }),
8482
+ /* @__PURE__ */ jsx56(Text16, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
8483
+ !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx56(Text16, { as: "span", children: valueText(c2.value) }),
8484
+ /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": fill4(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx56(X2, {}) })
8413
8485
  ]
8414
8486
  },
8415
8487
  `${c2.field}-${i}`
8416
8488
  )),
8417
- /* @__PURE__ */ jsx55(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8489
+ /* @__PURE__ */ jsx56(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8418
8490
  ] }),
8419
- adding && fields && conditions !== null && /* @__PURE__ */ jsx55(
8491
+ adding && fields && conditions !== null && /* @__PURE__ */ jsx56(
8420
8492
  FilterBuilderDialog,
8421
8493
  {
8422
8494
  fields,
@@ -8431,26 +8503,26 @@ function QueryableList({
8431
8503
  }
8432
8504
  }
8433
8505
  ),
8434
- toolbarFooter != null && /* @__PURE__ */ jsx55(chakra32.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8506
+ toolbarFooter != null && /* @__PURE__ */ jsx56(chakra33.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8435
8507
  ] }),
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, {}) })
8508
+ mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx56(InlineAlert, { tone: "danger", children: error.message }),
8509
+ exported && /* @__PURE__ */ jsx56(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs42(HStack11, { justify: "space-between", gap: "2", align: "start", children: [
8510
+ /* @__PURE__ */ jsx56(Text16, { as: "span", children: exported.message }),
8511
+ /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx56(X2, {}) })
8440
8512
  ] }) }),
8441
- /* @__PURE__ */ jsx55(
8513
+ /* @__PURE__ */ jsx56(
8442
8514
  Panel,
8443
8515
  {
8444
8516
  flush: true,
8445
8517
  footer: (
8446
8518
  // Expand and collapse at the start, the pages in the middle (the canvas's v12, UI round 9 step 67, round 10 step 73),
8447
8519
  // the range at the end, or with the arrows in the simple form.
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 })
8520
+ /* @__PURE__ */ jsxs42(chakra33.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
8521
+ /* @__PURE__ */ jsx56(HStack11, { gap: "3", children: grouped && /* @__PURE__ */ jsxs42(Fragment18, { children: [
8522
+ /* @__PURE__ */ jsx56(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
8523
+ /* @__PURE__ */ jsx56(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
8452
8524
  ] }) }),
8453
- /* @__PURE__ */ jsx55(
8525
+ /* @__PURE__ */ jsx56(
8454
8526
  Pagination,
8455
8527
  {
8456
8528
  page: Math.floor(skip / take) + 1,
@@ -8460,16 +8532,27 @@ function QueryableList({
8460
8532
  label: labels.pages,
8461
8533
  previous: labels.previous,
8462
8534
  next: labels.next,
8463
- pageLabel: (n) => fill3(labels.page, { page: fmt.number(n) }),
8535
+ pageLabel: (n) => fill4(labels.page, { page: fmt.number(n) }),
8464
8536
  form: pagination,
8465
- range: result ? fill3(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : void 0,
8466
- pageOf: fill3(labels.pageOf, { page: fmt.number(Math.floor(skip / take) + 1), pages: fmt.number(Math.max(1, Math.ceil(total / take))) })
8537
+ range: result ? fill4(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : void 0,
8538
+ pageOf: fill4(labels.pageOf, { page: fmt.number(Math.floor(skip / take) + 1), pages: fmt.number(Math.max(1, Math.ceil(total / take))) })
8467
8539
  }
8468
8540
  ),
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) }) : " " })
8541
+ /* @__PURE__ */ jsx56(Text16, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result && pagination !== "simple" ? fill4(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
8470
8542
  ] })
8471
8543
  ),
8472
- children: /* @__PURE__ */ jsx55(
8544
+ children: layout === "cards" && cards ? /* @__PURE__ */ jsx56(
8545
+ CardGrid,
8546
+ {
8547
+ "aria-label": ariaLabel,
8548
+ rows: error && !result ? [] : result?.items,
8549
+ loading,
8550
+ count: take,
8551
+ minWidth: cards.minWidth ?? "18.75rem",
8552
+ render: cards.render,
8553
+ empty: loadFailed != null && error?.failed && !result ? loadFailed : empty ?? labels.empty
8554
+ }
8555
+ ) : /* @__PURE__ */ jsx56(
8473
8556
  DataTable,
8474
8557
  {
8475
8558
  "aria-label": ariaLabel,
@@ -8492,7 +8575,7 @@ function QueryableList({
8492
8575
  },
8493
8576
  context: tree.context,
8494
8577
  contextLabel: tree.contextLabel,
8495
- foldLabel: (row, isFolded) => fill3(isFolded ? labels.unfoldGroup : labels.foldGroup, { group: row.key })
8578
+ foldLabel: (row, isFolded) => fill4(isFolded ? labels.unfoldGroup : labels.foldGroup, { group: row.key })
8496
8579
  } : void 0,
8497
8580
  grouping: grouped && groupField && !asTree ? {
8498
8581
  of: groupOf,
@@ -8505,7 +8588,7 @@ function QueryableList({
8505
8588
  }),
8506
8589
  foldLabel: (key, isFolded) => {
8507
8590
  const name = groupInfo(key)?.label ?? labels.noGroupValue;
8508
- return fill3(isFolded ? labels.unfoldGroup : labels.foldGroup, { group: name });
8591
+ return fill4(isFolded ? labels.unfoldGroup : labels.foldGroup, { group: name });
8509
8592
  },
8510
8593
  header: (key, rows2) => {
8511
8594
  const info = groupInfo(key);
@@ -8515,11 +8598,11 @@ function QueryableList({
8515
8598
  const label2 = thenField ? info?.then?.label : info?.label;
8516
8599
  const value = thenField ? info?.then?.value ?? null : info?.value ?? null;
8517
8600
  const period = thenField ? query.groupBy?.then?.period : query.groupBy?.period;
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 }),
8601
+ return /* @__PURE__ */ jsxs42(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8602
+ /* @__PURE__ */ jsx56(chakra33.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) }),
8603
+ /* @__PURE__ */ jsx56(CountBadge, { value: info?.count ?? rows2.length }),
8521
8604
  !thenField && renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" }),
8522
- conditions !== null && !period && /* @__PURE__ */ jsxs41(
8605
+ conditions !== null && !period && /* @__PURE__ */ jsxs42(
8523
8606
  Button,
8524
8607
  {
8525
8608
  size: "xs",
@@ -8537,8 +8620,8 @@ function QueryableList({
8537
8620
  condition(field, value)
8538
8621
  ]),
8539
8622
  children: [
8540
- /* @__PURE__ */ jsx55(Filter, {}),
8541
- /* @__PURE__ */ jsx55(chakra32.span, { hideBelow: "md", children: labels.filterToGroup })
8623
+ /* @__PURE__ */ jsx56(Filter, {}),
8624
+ /* @__PURE__ */ jsx56(chakra33.span, { hideBelow: "md", children: labels.filterToGroup })
8542
8625
  ]
8543
8626
  }
8544
8627
  )
@@ -8546,7 +8629,7 @@ function QueryableList({
8546
8629
  },
8547
8630
  parents: thenField ? {
8548
8631
  of: firstOf,
8549
- foldLabel: (parent, isFolded) => fill3(isFolded ? labels.unfoldGroup : labels.foldGroup, {
8632
+ foldLabel: (parent, isFolded) => fill4(isFolded ? labels.unfoldGroup : labels.foldGroup, {
8550
8633
  group: (() => {
8551
8634
  const g = result?.groups?.find((x) => groupKey(x.value) === parent);
8552
8635
  return groupName(g?.value, g?.label, query.groupBy?.period);
@@ -8557,9 +8640,9 @@ function QueryableList({
8557
8640
  const first = groups[0]?.rows[0];
8558
8641
  const raw = first?.values[groupField];
8559
8642
  const count = (result?.groups ?? []).filter((g) => groupKey(g.value) === parent).reduce((n, g) => n + g.count, 0);
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 }),
8643
+ return /* @__PURE__ */ jsxs42(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8644
+ /* @__PURE__ */ jsx56(chakra33.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) }),
8645
+ /* @__PURE__ */ jsx56(CountBadge, { value: count }),
8563
8646
  renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" })
8564
8647
  ] });
8565
8648
  }
@@ -8602,8 +8685,8 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8602
8685
  clearTimeout(timer.current);
8603
8686
  timer.current = setTimeout(() => next.trim() !== initial.trim() && onRun(next), 400);
8604
8687
  }
8605
- return /* @__PURE__ */ jsx55(
8606
- chakra32.form,
8688
+ return /* @__PURE__ */ jsx56(
8689
+ chakra33.form,
8607
8690
  {
8608
8691
  role: "search",
8609
8692
  flex: "1",
@@ -8614,7 +8697,7 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8614
8697
  clearTimeout(timer.current);
8615
8698
  if (text.trim() !== initial.trim()) onRun(text);
8616
8699
  },
8617
- children: /* @__PURE__ */ jsx55(
8700
+ children: /* @__PURE__ */ jsx56(
8618
8701
  SearchInput,
8619
8702
  {
8620
8703
  size: "sm",
@@ -8656,14 +8739,14 @@ function placeholderOf(id, kind) {
8656
8739
  }
8657
8740
  function ExportMenu({ busy, disabled, onExport }) {
8658
8741
  const labels = useAbpLabels().queryList;
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, {}),
8742
+ return /* @__PURE__ */ jsxs42(Menu4.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
8743
+ /* @__PURE__ */ jsx56(Menu4.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs42(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
8744
+ /* @__PURE__ */ jsx56(Download, {}),
8662
8745
  labels.export
8663
8746
  ] }) }),
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 })
8747
+ /* @__PURE__ */ jsx56(Portal16, { children: /* @__PURE__ */ jsx56(Menu4.Positioner, { children: /* @__PURE__ */ jsxs42(Menu4.Content, { minW: "48", children: [
8748
+ /* @__PURE__ */ jsx56(Menu4.Item, { value: "csv", children: labels.exportCsv }),
8749
+ /* @__PURE__ */ jsx56(Menu4.Item, { value: "xlsx", children: labels.exportExcel })
8667
8750
  ] }) }) })
8668
8751
  ] });
8669
8752
  }
@@ -8681,7 +8764,7 @@ function RqlBox({
8681
8764
  const input = useRef19(null);
8682
8765
  const timer = useRef19(void 0);
8683
8766
  const seq = useRef19(0);
8684
- const listId = useId5();
8767
+ const listId = useId6();
8685
8768
  function ask(value, caret) {
8686
8769
  if (!suggest) return;
8687
8770
  clearTimeout(timer.current);
@@ -8743,10 +8826,10 @@ function RqlBox({
8743
8826
  }
8744
8827
  }
8745
8828
  const hasSpan = error?.start != null && error.end != null && error.end >= error.start && error.end <= text.length;
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(
8749
- Input6,
8829
+ return /* @__PURE__ */ jsxs42(Stack12, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
8830
+ /* @__PURE__ */ jsxs42(HStack11, { gap: "2", children: [
8831
+ /* @__PURE__ */ jsx56(
8832
+ Input7,
8750
8833
  {
8751
8834
  ref: input,
8752
8835
  size: "sm",
@@ -8771,9 +8854,9 @@ function RqlBox({
8771
8854
  onKeyDown
8772
8855
  }
8773
8856
  ),
8774
- /* @__PURE__ */ jsx55(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8857
+ /* @__PURE__ */ jsx56(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8775
8858
  ] }),
8776
- open && found && /* @__PURE__ */ jsx55(
8859
+ open && found && /* @__PURE__ */ jsx56(
8777
8860
  Box11,
8778
8861
  {
8779
8862
  id: listId,
@@ -8792,7 +8875,7 @@ function RqlBox({
8792
8875
  borderRadius: "md",
8793
8876
  boxShadow: "md",
8794
8877
  py: "1",
8795
- children: found.items.map((item, i) => /* @__PURE__ */ jsxs41(
8878
+ children: found.items.map((item, i) => /* @__PURE__ */ jsxs42(
8796
8879
  HStack11,
8797
8880
  {
8798
8881
  id: `${listId}-${i}`,
@@ -8810,35 +8893,54 @@ function RqlBox({
8810
8893
  },
8811
8894
  onMouseEnter: () => setActive(i),
8812
8895
  children: [
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 })
8896
+ /* @__PURE__ */ jsx56(Text16, { 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 }),
8897
+ /* @__PURE__ */ jsx56(Text16, { 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 })
8815
8898
  ]
8816
8899
  },
8817
8900
  `${item.kind}-${item.text}`
8818
8901
  ))
8819
8902
  }
8820
8903
  ),
8821
- error && /* @__PURE__ */ jsxs41(InlineAlert, { tone: "danger", size: "sm", children: [
8904
+ error && /* @__PURE__ */ jsxs42(InlineAlert, { tone: "danger", size: "sm", children: [
8822
8905
  error.message,
8823
- hasSpan && /* @__PURE__ */ jsxs41(chakra32.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8906
+ hasSpan && /* @__PURE__ */ jsxs42(chakra33.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8824
8907
  text.slice(0, error.start),
8825
- /* @__PURE__ */ jsx55(chakra32.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8908
+ /* @__PURE__ */ jsx56(chakra33.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8826
8909
  text.slice(error.end)
8827
8910
  ] })
8828
8911
  ] })
8829
8912
  ] });
8830
8913
  }
8914
+ function CardGrid({ rows: rows2, loading, count, minWidth, render: render2, empty, "aria-label": label }) {
8915
+ if (rows2 && rows2.length === 0 && !loading) return typeof empty === "string" ? /* @__PURE__ */ jsx56(EmptyState, { title: empty }) : /* @__PURE__ */ jsx56(Fragment18, { children: empty });
8916
+ return /* @__PURE__ */ jsx56(
8917
+ chakra33.ul,
8918
+ {
8919
+ role: "list",
8920
+ "aria-label": label,
8921
+ "aria-busy": loading || void 0,
8922
+ listStyleType: "none",
8923
+ m: "0",
8924
+ p: "3",
8925
+ display: "grid",
8926
+ gap: "3",
8927
+ gridTemplateColumns: `repeat(auto-fill, minmax(min(${minWidth}, 100%), 1fr))`,
8928
+ "data-layout": "cards",
8929
+ children: rows2 ? rows2.map((row) => /* @__PURE__ */ jsx56(chakra33.li, { display: "flex", minW: "0", children: render2(row) }, row.id)) : Array.from({ length: Math.min(count, 9) }, (_, i) => /* @__PURE__ */ jsx56(chakra33.li, { h: "9.5rem", rounded: "lg", bg: "bg.subtle", "aria-hidden": true }, i))
8930
+ }
8931
+ );
8932
+ }
8831
8933
 
8832
8934
  // src/components/FileDrop.tsx
8833
8935
  import { forwardRef as forwardRef9, useLayoutEffect as useLayoutEffect4, useRef as useRef20 } from "react";
8834
- import { Box as Box12, HStack as HStack12, Portal as Portal16, Text as Text16 } from "@chakra-ui/react";
8936
+ import { Box as Box12, HStack as HStack12, Portal as Portal17, Text as Text17 } from "@chakra-ui/react";
8835
8937
  import { ArrowDownToLine } from "lucide-react";
8836
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
8938
+ import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
8837
8939
  var OUT3 = `cubic-bezier(${curves.out.join(", ")})`;
8838
8940
  var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: over2 = false, hint, children, ...rest }, ref) {
8839
8941
  const { reduce } = useMotionSetting();
8840
8942
  const lit = awake || over2;
8841
- return /* @__PURE__ */ jsxs42(
8943
+ return /* @__PURE__ */ jsxs43(
8842
8944
  Box12,
8843
8945
  {
8844
8946
  ref,
@@ -8857,7 +8959,7 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8857
8959
  ...rest,
8858
8960
  children: [
8859
8961
  children,
8860
- /* @__PURE__ */ jsx56(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs42(
8962
+ /* @__PURE__ */ jsx57(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs43(
8861
8963
  HStack12,
8862
8964
  {
8863
8965
  h: "full",
@@ -8871,8 +8973,8 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8871
8973
  textAlign: "center",
8872
8974
  style: { transition: "background-color 160ms ease" },
8873
8975
  children: [
8874
- /* @__PURE__ */ jsx56(Bob, { active: over2 && !reduce }),
8875
- /* @__PURE__ */ jsx56(Text16, { as: "span", truncate: true, children: hint })
8976
+ /* @__PURE__ */ jsx57(Bob, { active: over2 && !reduce }),
8977
+ /* @__PURE__ */ jsx57(Text17, { as: "span", truncate: true, children: hint })
8876
8978
  ]
8877
8979
  }
8878
8980
  ) })
@@ -8891,59 +8993,59 @@ function Bob({ active }) {
8891
8993
  });
8892
8994
  return () => animation?.cancel();
8893
8995
  }, [active]);
8894
- return /* @__PURE__ */ jsx56(Box12, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx56(ArrowDownToLine, {}) });
8996
+ return /* @__PURE__ */ jsx57(Box12, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx57(ArrowDownToLine, {}) });
8895
8997
  }
8896
8998
  function DropHint({ show, 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 })
8999
+ return /* @__PURE__ */ jsx57(Portal17, { children: /* @__PURE__ */ jsx57(Box12, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx57(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs43(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: [
9000
+ /* @__PURE__ */ jsx57(ArrowDownToLine, {}),
9001
+ /* @__PURE__ */ jsx57(Text17, { as: "span", truncate: true, children })
8900
9002
  ] }) }) }) });
8901
9003
  }
8902
9004
 
8903
9005
  // src/components/UploadList.tsx
8904
9006
  import { useLayoutEffect as useLayoutEffect5, useRef as useRef21 } from "react";
8905
- import { Box as Box13, chakra as chakra33, HStack as HStack13, Stack as Stack12, Text as Text17 } from "@chakra-ui/react";
9007
+ import { Box as Box13, chakra as chakra34, HStack as HStack13, Stack as Stack13, Text as Text18 } from "@chakra-ui/react";
8906
9008
  import { Check as Check3, File as FileIcon, RotateCcw, TriangleAlert, X as X3 } from "lucide-react";
8907
- import { jsx as jsx57, jsxs as jsxs43 } from "react/jsx-runtime";
9009
+ import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
8908
9010
  var OUT4 = `cubic-bezier(${curves.out.join(", ")})`;
8909
9011
  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 })
9012
+ return /* @__PURE__ */ jsxs44(Stack13, { gap: "2", "data-testid": "upload-list", children: [
9013
+ /* @__PURE__ */ jsx58(chakra34.span, { srOnly: true, "aria-live": "polite", children: announce }),
9014
+ rows2.length > 0 && summary != null && /* @__PURE__ */ jsxs44(Stack13, { gap: "1", children: [
9015
+ /* @__PURE__ */ jsx58(Text18, { textStyle: "caption", color: "fg.muted", children: summary }),
9016
+ fraction != null && /* @__PURE__ */ jsx58(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
8915
9017
  ] }),
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)) }) })
9018
+ /* @__PURE__ */ jsx58(Stack13, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx58(PresenceList, { children: rows2.map((row) => /* @__PURE__ */ jsx58(PresenceItem, { children: /* @__PURE__ */ jsx58(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
8917
9019
  ] });
8918
9020
  }
8919
9021
  function Row({ row, labels, onCancel, onRetry, onDismiss }) {
8920
9022
  const going = row.state === "waiting" || row.state === "sending";
8921
9023
  const trouble = row.state === "failed" || row.state === "refused";
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 })
9024
+ return /* @__PURE__ */ jsxs44(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: [
9025
+ /* @__PURE__ */ jsx58(Preview, { src: row.preview }),
9026
+ /* @__PURE__ */ jsxs44(Stack13, { gap: "1", flex: "1", minW: "0", children: [
9027
+ /* @__PURE__ */ jsxs44(HStack13, { gap: "2", justify: "space-between", children: [
9028
+ /* @__PURE__ */ jsx58(Text18, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx58("bdi", { children: row.name }) }),
9029
+ /* @__PURE__ */ jsx58(Text18, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx58(Done, {}) : row.status })
8928
9030
  ] }),
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, {}) }),
9031
+ (going || row.state === "done") && /* @__PURE__ */ jsx58(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
9032
+ row.detail != null && /* @__PURE__ */ jsxs44(Text18, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
9033
+ trouble && /* @__PURE__ */ jsx58(Box13, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx58(TriangleAlert, {}) }),
8932
9034
  row.detail
8933
9035
  ] })
8934
9036
  ] }),
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, {}) })
9037
+ going && /* @__PURE__ */ jsx58(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx58(X3, {}) }),
9038
+ row.state === "failed" && /* @__PURE__ */ jsx58(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx58(RotateCcw, {}) }),
9039
+ trouble && /* @__PURE__ */ jsx58(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx58(X3, {}) })
8938
9040
  ] });
8939
9041
  }
8940
9042
  function Preview({ src }) {
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, {}) });
9043
+ return /* @__PURE__ */ jsx58(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__ */ jsx58(chakra34.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx58(FileIcon, {}) });
8942
9044
  }
8943
9045
  function Bar2({ fraction, tone, label, quiet: quiet2 }) {
8944
9046
  const { reduce } = useMotionSetting();
8945
9047
  const percent = Math.round(Math.max(0, Math.min(1, fraction)) * 100);
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(
9048
+ return /* @__PURE__ */ jsx58(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__ */ jsx58(
8947
9049
  Box13,
8948
9050
  {
8949
9051
  h: "full",
@@ -8970,7 +9072,7 @@ function Done() {
8970
9072
  { duration: 260, easing: OUT4 }
8971
9073
  );
8972
9074
  }, []);
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 }) });
9075
+ return /* @__PURE__ */ jsx58(chakra34.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx58(Check3, { strokeWidth: 3 }) });
8974
9076
  }
8975
9077
 
8976
9078
  // src/files/drop.ts
@@ -9241,7 +9343,7 @@ function usePastedFiles({ enabled = true, onFiles }) {
9241
9343
 
9242
9344
  // src/components/SortableSections.tsx
9243
9345
  import { useMemo as useMemo13, useState as useState24 } from "react";
9244
- import { Box as Box14, Stack as Stack13, Text as Text18 } from "@chakra-ui/react";
9346
+ import { Box as Box14, Stack as Stack14, Text as Text19 } from "@chakra-ui/react";
9245
9347
  import {
9246
9348
  DndContext as DndContext4,
9247
9349
  DragOverlay as DragOverlay3,
@@ -9254,7 +9356,7 @@ import {
9254
9356
  } from "@dnd-kit/core";
9255
9357
  import { SortableContext as SortableContext3, sortableKeyboardCoordinates as sortableKeyboardCoordinates3, useSortable as useSortable3, verticalListSortingStrategy as verticalListSortingStrategy3 } from "@dnd-kit/sortable";
9256
9358
  import { CSS as CSS4 } from "@dnd-kit/utilities";
9257
- import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
9359
+ import { jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
9258
9360
  var sectionId = (id) => `section:${id}`;
9259
9361
  function SortableSections({
9260
9362
  "aria-label": ariaLabel,
@@ -9268,7 +9370,7 @@ function SortableSections({
9268
9370
  skeletonItemHeight = "9"
9269
9371
  }) {
9270
9372
  const loading = useLoading(own);
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;
9373
+ const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx59(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
9272
9374
  const sensors = useSensors4(
9273
9375
  useSensor4(PointerSensor4, { activationConstraint: { distance: 6 } }),
9274
9376
  useSensor4(KeyboardSensor3, { coordinateGetter: sortableKeyboardCoordinates3 })
@@ -9304,7 +9406,7 @@ function SortableSections({
9304
9406
  if (from === target && !move.before && !move.after) return;
9305
9407
  onMove(item, move);
9306
9408
  }
9307
- return /* @__PURE__ */ jsxs44(
9409
+ return /* @__PURE__ */ jsxs45(
9308
9410
  DndContext4,
9309
9411
  {
9310
9412
  sensors,
@@ -9314,16 +9416,16 @@ function SortableSections({
9314
9416
  onDragCancel: () => setActive(null),
9315
9417
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
9316
9418
  children: [
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) })
9419
+ /* @__PURE__ */ jsx59(Stack14, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs45(Section, { section: s, dragging: !!active, children: [
9420
+ loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs45(Box14, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
9421
+ /* @__PURE__ */ jsx59(Bone, { width: "14", height: "4" }),
9422
+ /* @__PURE__ */ jsx59(TextBone, { width: boneWidth(n, 16, 36) })
9321
9423
  ] }, n)),
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 }),
9424
+ s.items.map((item) => /* @__PURE__ */ jsx59(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
9425
+ !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx59(Text19, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
9324
9426
  !loading && s.footer
9325
9427
  ] }, s.id)) }),
9326
- /* @__PURE__ */ jsx58(DragOverlay3, { children: active ? /* @__PURE__ */ jsx58(Box14, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
9428
+ /* @__PURE__ */ jsx59(DragOverlay3, { children: active ? /* @__PURE__ */ jsx59(Box14, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
9327
9429
  ]
9328
9430
  }
9329
9431
  );
@@ -9331,10 +9433,10 @@ function SortableSections({
9331
9433
  function Section({ section, dragging, children }) {
9332
9434
  const id = sectionId(section.id);
9333
9435
  const { setNodeRef, isOver } = useDroppable3({ id });
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(
9337
- Stack13,
9436
+ return /* @__PURE__ */ jsxs45(Box14, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
9437
+ /* @__PURE__ */ jsx59(Box14, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
9438
+ /* @__PURE__ */ jsx59(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx59(
9439
+ Stack14,
9338
9440
  {
9339
9441
  ref: setNodeRef,
9340
9442
  gap: "0",
@@ -9350,7 +9452,7 @@ function Section({ section, dragging, children }) {
9350
9452
  }
9351
9453
  function SortableItem({ id, children }) {
9352
9454
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable3({ id });
9353
- return /* @__PURE__ */ jsx58(
9455
+ return /* @__PURE__ */ jsx59(
9354
9456
  Box14,
9355
9457
  {
9356
9458
  ref: setNodeRef,
@@ -9367,10 +9469,10 @@ function SortableItem({ id, children }) {
9367
9469
  }
9368
9470
 
9369
9471
  // src/components/TimelineChart.tsx
9370
- import { Fragment as Fragment18, useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef23, useState as useState25 } from "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";
9472
+ import { Fragment as Fragment19, useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef23, useState as useState25 } from "react";
9473
+ import { Box as Box15, HStack as HStack14, Popover as Popover4, Portal as Portal18, Stack as Stack15, Text as Text20 } from "@chakra-ui/react";
9372
9474
  import { Flag, Trash2 as Trash23 } from "lucide-react";
9373
- import { jsx as jsx59, jsxs as jsxs45 } from "react/jsx-runtime";
9475
+ import { jsx as jsx60, jsxs as jsxs46 } from "react/jsx-runtime";
9374
9476
  var DAY2 = 864e5;
9375
9477
  var toDay = (day) => Math.round(Date.parse(`${day}T00:00:00Z`) / DAY2);
9376
9478
  var fromDay = (n) => new Date(n * DAY2).toISOString().slice(0, 10);
@@ -9379,7 +9481,7 @@ function TimelineChart({
9379
9481
  from,
9380
9482
  to,
9381
9483
  dayWidth,
9382
- fill: fill4 = false,
9484
+ fill: fill5 = false,
9383
9485
  rows: rows2,
9384
9486
  links = [],
9385
9487
  today,
@@ -9412,13 +9514,13 @@ function TimelineChart({
9412
9514
  const [room, setRoom] = useState25(0);
9413
9515
  useEffect17(() => {
9414
9516
  const el = root.current;
9415
- if (!fill4 || !el) return;
9517
+ if (!fill5 || !el) return;
9416
9518
  const observer = new ResizeObserver(() => setRoom(Math.max(0, el.clientWidth - labelWidth)));
9417
9519
  observer.observe(el);
9418
9520
  return () => observer.disconnect();
9419
- }, [fill4, labelWidth]);
9521
+ }, [fill5, labelWidth]);
9420
9522
  const origin = toDay(from);
9421
- const days = Math.max(toDay(to) - origin + 1, fill4 ? Math.floor(room / dayWidth) : 0);
9523
+ const days = Math.max(toDay(to) - origin + 1, fill5 ? Math.floor(room / dayWidth) : 0);
9422
9524
  const width = days * dayWidth;
9423
9525
  const [drag, setDrag] = useState25(null);
9424
9526
  const moved = useRef23(false);
@@ -9639,7 +9741,7 @@ function TimelineChart({
9639
9741
  const bandsTop = tickHeight, markersTop = tickHeight + (shownBands.length ? STRIP : 0);
9640
9742
  const headerHeight = markersTop + (shownMarkers.length ? STRIP : 0);
9641
9743
  const todayAt = today ? toDay(today) - origin : -1;
9642
- return /* @__PURE__ */ jsxs45(
9744
+ return /* @__PURE__ */ jsxs46(
9643
9745
  Box15,
9644
9746
  {
9645
9747
  ref: root,
@@ -9657,9 +9759,9 @@ function TimelineChart({
9657
9759
  },
9658
9760
  onKeyDown: zoomKey,
9659
9761
  children: [
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(
9762
+ instructions && /* @__PURE__ */ jsx60(Text20, { srOnly: true, children: instructions }),
9763
+ /* @__PURE__ */ jsxs46(Box15, { display: "grid", gridTemplateColumns: fill5 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
9764
+ /* @__PURE__ */ jsx60(
9663
9765
  Box15,
9664
9766
  {
9665
9767
  position: "sticky",
@@ -9678,8 +9780,8 @@ function TimelineChart({
9678
9780
  children: corner
9679
9781
  }
9680
9782
  ),
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(
9783
+ /* @__PURE__ */ jsxs46(Box15, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
9784
+ ticks.map((t, i) => /* @__PURE__ */ jsx60(
9683
9785
  Box15,
9684
9786
  {
9685
9787
  position: "absolute",
@@ -9690,8 +9792,8 @@ function TimelineChart({
9690
9792
  borderInlineStartWidth: "1px",
9691
9793
  borderColor: "border",
9692
9794
  "aria-hidden": true,
9693
- children: /* @__PURE__ */ jsx59(
9694
- Text19,
9795
+ children: /* @__PURE__ */ jsx60(
9796
+ Text20,
9695
9797
  {
9696
9798
  position: "sticky",
9697
9799
  insetStart: `${labelWidth}px`,
@@ -9709,8 +9811,8 @@ function TimelineChart({
9709
9811
  },
9710
9812
  t.day
9711
9813
  )),
9712
- subTicks.map((t) => /* @__PURE__ */ jsx59(
9713
- Text19,
9814
+ subTicks.map((t) => /* @__PURE__ */ jsx60(
9815
+ Text20,
9714
9816
  {
9715
9817
  position: "absolute",
9716
9818
  insetStart: `${t.day * dayWidth}px`,
@@ -9729,7 +9831,7 @@ function TimelineChart({
9729
9831
  },
9730
9832
  t.day
9731
9833
  )),
9732
- offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx59(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx59(
9834
+ offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx60(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx60(
9733
9835
  Box15,
9734
9836
  {
9735
9837
  position: "absolute",
@@ -9744,7 +9846,7 @@ function TimelineChart({
9744
9846
  "aria-label": o.label
9745
9847
  }
9746
9848
  ) }, `h${o.a}`)),
9747
- shownBands.map((b) => /* @__PURE__ */ jsx59(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx59(
9849
+ shownBands.map((b) => /* @__PURE__ */ jsx60(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx60(
9748
9850
  Box15,
9749
9851
  {
9750
9852
  position: "absolute",
@@ -9761,8 +9863,8 @@ function TimelineChart({
9761
9863
  focusVisibleRing: "inside",
9762
9864
  overflow: "clip",
9763
9865
  "aria-label": b.label,
9764
- children: /* @__PURE__ */ jsx59(
9765
- Text19,
9866
+ children: /* @__PURE__ */ jsx60(
9867
+ Text20,
9766
9868
  {
9767
9869
  position: "sticky",
9768
9870
  insetStart: `${labelWidth}px`,
@@ -9774,12 +9876,12 @@ function TimelineChart({
9774
9876
  color: b.current ? "colorPalette.fg" : "fg.muted",
9775
9877
  fontWeight: b.current ? "medium" : void 0,
9776
9878
  truncate: true,
9777
- children: /* @__PURE__ */ jsx59("bdi", { children: b.label })
9879
+ children: /* @__PURE__ */ jsx60("bdi", { children: b.label })
9778
9880
  }
9779
9881
  )
9780
9882
  }
9781
9883
  ) }, b.id)),
9782
- shownMarkers.map((m4) => /* @__PURE__ */ jsx59(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs45(
9884
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx60(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs46(
9783
9885
  Box15,
9784
9886
  {
9785
9887
  position: "absolute",
@@ -9804,15 +9906,15 @@ function TimelineChart({
9804
9906
  focusVisibleRing: "outside",
9805
9907
  "aria-label": m4.label,
9806
9908
  children: [
9807
- /* @__PURE__ */ jsx59(Flag, { size: 11, "aria-hidden": true }),
9808
- /* @__PURE__ */ jsx59("bdi", { children: m4.label })
9909
+ /* @__PURE__ */ jsx60(Flag, { size: 11, "aria-hidden": true }),
9910
+ /* @__PURE__ */ jsx60("bdi", { children: m4.label })
9809
9911
  ]
9810
9912
  }
9811
9913
  ) }, m4.id))
9812
9914
  ] }),
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(
9915
+ /* @__PURE__ */ jsx60(Box15, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx60(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__ */ jsx60(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
9916
+ /* @__PURE__ */ jsxs46(Box15, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
9917
+ offRuns.map((o) => /* @__PURE__ */ jsx60(
9816
9918
  Box15,
9817
9919
  {
9818
9920
  position: "absolute",
@@ -9827,8 +9929,8 @@ function TimelineChart({
9827
9929
  },
9828
9930
  `o${o.a}`
9829
9931
  )),
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(
9932
+ ticks.map((t) => /* @__PURE__ */ jsx60(Box15, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
9933
+ shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx60(
9832
9934
  Box15,
9833
9935
  {
9834
9936
  position: "absolute",
@@ -9843,7 +9945,7 @@ function TimelineChart({
9843
9945
  },
9844
9946
  b.id
9845
9947
  )),
9846
- shownMarkers.map((m4) => /* @__PURE__ */ jsx59(
9948
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx60(
9847
9949
  Box15,
9848
9950
  {
9849
9951
  position: "absolute",
@@ -9860,7 +9962,7 @@ function TimelineChart({
9860
9962
  },
9861
9963
  m4.id
9862
9964
  )),
9863
- todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx59(
9965
+ todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx60(
9864
9966
  Box15,
9865
9967
  {
9866
9968
  position: "absolute",
@@ -9873,7 +9975,7 @@ function TimelineChart({
9873
9975
  "aria-hidden": true
9874
9976
  }
9875
9977
  ),
9876
- shown.map((r, i) => /* @__PURE__ */ jsx59(
9978
+ shown.map((r, i) => /* @__PURE__ */ jsx60(
9877
9979
  Box15,
9878
9980
  {
9879
9981
  position: "absolute",
@@ -9888,7 +9990,7 @@ function TimelineChart({
9888
9990
  },
9889
9991
  r.id
9890
9992
  )),
9891
- placeholders && shown.map((r, i) => /* @__PURE__ */ jsx59(
9993
+ placeholders && shown.map((r, i) => /* @__PURE__ */ jsx60(
9892
9994
  Bone,
9893
9995
  {
9894
9996
  position: "absolute",
@@ -9905,7 +10007,7 @@ function TimelineChart({
9905
10007
  if (!bl || !bl.start && !bl.end) return null;
9906
10008
  const a = Math.max(toDay(bl.start ?? bl.end) - origin, 0), z = Math.min(toDay(bl.end ?? bl.start) - origin, days - 1);
9907
10009
  if (z < a) return null;
9908
- return /* @__PURE__ */ jsx59(
10010
+ return /* @__PURE__ */ jsx60(
9909
10011
  Box15,
9910
10012
  {
9911
10013
  position: "absolute",
@@ -9927,7 +10029,7 @@ function TimelineChart({
9927
10029
  if (z < a) return null;
9928
10030
  const w = (z - a + 1) * dayWidth - 2;
9929
10031
  const palette3 = c2.tone === "over" ? "danger" : c2.tone === "full" ? "warning" : "accent";
9930
- return /* @__PURE__ */ jsx59(
10032
+ return /* @__PURE__ */ jsx60(
9931
10033
  Box15,
9932
10034
  {
9933
10035
  position: "absolute",
@@ -9968,8 +10070,8 @@ function TimelineChart({
9968
10070
  const thin = tone === "rollup" && !single;
9969
10071
  const diamond = single ? { w: `${DIAMOND}px`, h: `${DIAMOND}px`, top: `${i * rowHeight + rowHeight / 2 - DIAMOND / 2}px`, transform: "rotate(45deg)", rounded: "l1" } : null;
9970
10072
  const canLink = !!onLink && item.linkable !== false && !drag;
9971
- return /* @__PURE__ */ jsxs45(Fragment18, { children: [
9972
- /* @__PURE__ */ jsxs45(
10073
+ return /* @__PURE__ */ jsxs46(Fragment19, { children: [
10074
+ /* @__PURE__ */ jsxs46(
9973
10075
  Box15,
9974
10076
  {
9975
10077
  role: "button",
@@ -10025,7 +10127,7 @@ function TimelineChart({
10025
10127
  "data-bar": item.id,
10026
10128
  children: [
10027
10129
  !single && !thin && renderBar?.(item),
10028
- item.progress != null && !single && /* @__PURE__ */ jsx59(
10130
+ item.progress != null && !single && /* @__PURE__ */ jsx60(
10029
10131
  Box15,
10030
10132
  {
10031
10133
  position: "absolute",
@@ -10041,7 +10143,7 @@ function TimelineChart({
10041
10143
  ),
10042
10144
  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
10043
10145
  // change would be saved twice (the second refused as a conflict).
10044
- /* @__PURE__ */ jsx59(
10146
+ /* @__PURE__ */ jsx60(
10045
10147
  Box15,
10046
10148
  {
10047
10149
  position: "absolute",
@@ -10065,7 +10167,7 @@ function TimelineChart({
10065
10167
  ]
10066
10168
  }
10067
10169
  ),
10068
- canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx59(
10170
+ canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx60(
10069
10171
  Box15,
10070
10172
  {
10071
10173
  position: "absolute",
@@ -10087,12 +10189,12 @@ function TimelineChart({
10087
10189
  onPointerUp: linkUp,
10088
10190
  onPointerCancel: () => setLinking(null),
10089
10191
  "aria-hidden": true,
10090
- children: /* @__PURE__ */ jsx59(Box15, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
10192
+ children: /* @__PURE__ */ jsx60(Box15, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
10091
10193
  }
10092
10194
  )
10093
10195
  ] }, item.id);
10094
10196
  }),
10095
- /* @__PURE__ */ jsx59(
10197
+ /* @__PURE__ */ jsx60(
10096
10198
  Box15,
10097
10199
  {
10098
10200
  position: "absolute",
@@ -10104,8 +10206,8 @@ function TimelineChart({
10104
10206
  zIndex: "1",
10105
10207
  _rtl: { transform: "scaleX(-1)" },
10106
10208
  "aria-hidden": !onUnlink,
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" }) }) }),
10209
+ children: /* @__PURE__ */ jsxs46("svg", { width, height: rows2.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
10210
+ /* @__PURE__ */ jsx60("defs", { children: /* @__PURE__ */ jsx60("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx60("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
10109
10211
  links.map((l) => {
10110
10212
  const f = ys.get(l.from), t = ys.get(l.to);
10111
10213
  if (!f || !t) return null;
@@ -10116,8 +10218,8 @@ function TimelineChart({
10116
10218
  const picked = menu?.from === l.from && menu.to === l.to;
10117
10219
  const faint = !l.strong && links.some((x) => x.strong);
10118
10220
  const open = (x, y) => setMenu({ from: l.from, to: l.to, x, y });
10119
- return /* @__PURE__ */ jsxs45("g", { children: [
10120
- /* @__PURE__ */ jsx59(
10221
+ return /* @__PURE__ */ jsxs46("g", { children: [
10222
+ /* @__PURE__ */ jsx60(
10121
10223
  "path",
10122
10224
  {
10123
10225
  d,
@@ -10129,7 +10231,7 @@ function TimelineChart({
10129
10231
  markerEnd: "url(#abp-arrow)"
10130
10232
  }
10131
10233
  ),
10132
- onUnlink && /* @__PURE__ */ jsx59(
10234
+ onUnlink && /* @__PURE__ */ jsx60(
10133
10235
  "path",
10134
10236
  {
10135
10237
  d,
@@ -10154,13 +10256,13 @@ function TimelineChart({
10154
10256
  ] })
10155
10257
  }
10156
10258
  ),
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") })
10259
+ linking && /* @__PURE__ */ jsxs46("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
10260
+ /* @__PURE__ */ jsx60("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
10261
+ /* @__PURE__ */ jsx60("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
10160
10262
  ] })
10161
10263
  ] })
10162
10264
  ] }),
10163
- card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx59(Portal17, { children: /* @__PURE__ */ jsx59(
10265
+ card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx60(Portal18, { children: /* @__PURE__ */ jsx60(
10164
10266
  Box15,
10165
10267
  {
10166
10268
  id: "abp-timeline-card",
@@ -10184,7 +10286,7 @@ function TimelineChart({
10184
10286
  children: renderCard(items.get(card.id))
10185
10287
  }
10186
10288
  ) }),
10187
- onUnlink && /* @__PURE__ */ jsx59(
10289
+ onUnlink && /* @__PURE__ */ jsx60(
10188
10290
  Popover4.Root,
10189
10291
  {
10190
10292
  open: !!menu,
@@ -10193,13 +10295,13 @@ function TimelineChart({
10193
10295
  unmountOnExit: true,
10194
10296
  autoFocus: true,
10195
10297
  positioning: { placement: "bottom", getAnchorRect: () => menu ? { x: menu.x, y: menu.y, width: 1, height: 1 } : null },
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: () => {
10298
+ children: /* @__PURE__ */ jsx60(Portal18, { children: /* @__PURE__ */ jsx60(Popover4.Positioner, { children: /* @__PURE__ */ jsx60(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx60(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs46(Stack15, { gap: "2", children: [
10299
+ /* @__PURE__ */ jsx60(Text20, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
10300
+ /* @__PURE__ */ jsxs46(Button, { size: "sm", variant: "secondary", onClick: () => {
10199
10301
  onUnlink(menu);
10200
10302
  setMenu(null);
10201
10303
  }, children: [
10202
- /* @__PURE__ */ jsx59(Trash23, {}),
10304
+ /* @__PURE__ */ jsx60(Trash23, {}),
10203
10305
  linkTexts?.remove
10204
10306
  ] })
10205
10307
  ] }) }) }) }) })
@@ -10212,7 +10314,7 @@ function TimelineChart({
10212
10314
 
10213
10315
  // src/components/TimelineCards.tsx
10214
10316
  import { useEffect as useEffect18, useMemo as useMemo14, useRef as useRef24, useState as useState26 } from "react";
10215
- import { Box as Box16, chakra as chakra34, Grid as Grid3, Stack as Stack15, Text as Text20 } from "@chakra-ui/react";
10317
+ import { Box as Box16, chakra as chakra35, Grid as Grid3, Stack as Stack16, Text as Text21 } from "@chakra-ui/react";
10216
10318
 
10217
10319
  // src/components/timeline-cards-math.ts
10218
10320
  var DAY3 = 864e5;
@@ -10264,7 +10366,7 @@ function placeCards(items, first, days, scale, colW = columnWidth(scale)) {
10264
10366
  }
10265
10367
 
10266
10368
  // src/components/TimelineCards.tsx
10267
- import { jsx as jsx60, jsxs as jsxs46 } from "react/jsx-runtime";
10369
+ import { jsx as jsx61, jsxs as jsxs47 } from "react/jsx-runtime";
10268
10370
  var LANE = 60;
10269
10371
  var KEYS = { d: "day", w: "week", m: "month" };
10270
10372
  function TimelineCards(props) {
@@ -10278,8 +10380,8 @@ function TimelineCards(props) {
10278
10380
  onScale(next);
10279
10381
  }
10280
10382
  };
10281
- return /* @__PURE__ */ jsxs46(
10282
- chakra34.div,
10383
+ return /* @__PURE__ */ jsxs47(
10384
+ chakra35.div,
10283
10385
  {
10284
10386
  role: "region",
10285
10387
  "aria-label": props["aria-label"],
@@ -10289,15 +10391,15 @@ function TimelineCards(props) {
10289
10391
  overflow: "hidden",
10290
10392
  "data-timeline-cards": scale,
10291
10393
  children: [
10292
- scale === "day" ? /* @__PURE__ */ jsx60(DayGrid, { ...props }) : /* @__PURE__ */ jsx60(Lanes, { ...props, scale }),
10394
+ scale === "day" ? /* @__PURE__ */ jsx61(DayGrid, { ...props }) : /* @__PURE__ */ jsx61(Lanes, { ...props, scale }),
10293
10395
  props.footer
10294
10396
  ]
10295
10397
  }
10296
10398
  );
10297
10399
  }
10298
10400
  function Card2({ item, p, range, cutStart, cutEnd, style }) {
10299
- const card = /* @__PURE__ */ jsxs46(
10300
- chakra34.button,
10401
+ const card = /* @__PURE__ */ jsxs47(
10402
+ chakra35.button,
10301
10403
  {
10302
10404
  type: "button",
10303
10405
  "data-timeline-card": item.id,
@@ -10321,12 +10423,12 @@ function Card2({ item, p, range, cutStart, cutEnd, style }) {
10321
10423
  transition: "background 120ms, border-color 120ms",
10322
10424
  ...style,
10323
10425
  children: [
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 }) })
10426
+ /* @__PURE__ */ jsx61(Box16, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
10427
+ /* @__PURE__ */ jsx61(Stack16, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
10326
10428
  ]
10327
10429
  }
10328
10430
  );
10329
- return p.details ? /* @__PURE__ */ jsx60(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
10431
+ return p.details ? /* @__PURE__ */ jsx61(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
10330
10432
  }
10331
10433
  function Lanes(p) {
10332
10434
  const { days, today, items, scale } = p;
@@ -10348,12 +10450,12 @@ function Lanes(p) {
10348
10450
  const gridW = days.length * colW;
10349
10451
  const placeholders = useLoading(p.loading) && items.length === 0;
10350
10452
  const height = (placeholders ? 4 : Math.max(lanes, 1)) * LANE + 16;
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) => {
10453
+ return /* @__PURE__ */ jsx61(chakra35.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs47(chakra35.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
10454
+ /* @__PURE__ */ jsx61(chakra35.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
10353
10455
  const isToday = d === today;
10354
10456
  const weekStart = new Date(dayNumber(d) * 864e5).getUTCDay() === 0;
10355
- return /* @__PURE__ */ jsxs46(
10356
- chakra34.div,
10457
+ return /* @__PURE__ */ jsxs47(
10458
+ chakra35.div,
10357
10459
  {
10358
10460
  w: `${colW}px`,
10359
10461
  flexShrink: 0,
@@ -10369,9 +10471,9 @@ function Lanes(p) {
10369
10471
  borderInlineStartWidth: weekStart && scale === "month" ? "1px" : "0",
10370
10472
  borderColor: "border",
10371
10473
  children: [
10372
- /* @__PURE__ */ jsx60(Text20, { as: "span", children: p.weekday(d) }),
10373
- /* @__PURE__ */ jsx60(
10374
- Text20,
10474
+ /* @__PURE__ */ jsx61(Text21, { as: "span", children: p.weekday(d) }),
10475
+ /* @__PURE__ */ jsx61(
10476
+ Text21,
10375
10477
  {
10376
10478
  as: "span",
10377
10479
  fontVariantNumeric: "tabular-nums",
@@ -10389,9 +10491,9 @@ function Lanes(p) {
10389
10491
  d
10390
10492
  );
10391
10493
  }) }),
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,
10494
+ /* @__PURE__ */ jsx61(chakra35.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx61(chakra35.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
10495
+ todayIdx >= 0 && /* @__PURE__ */ jsx61(
10496
+ chakra35.div,
10395
10497
  {
10396
10498
  position: "absolute",
10397
10499
  top: "0",
@@ -10405,7 +10507,7 @@ function Lanes(p) {
10405
10507
  zIndex: "1"
10406
10508
  }
10407
10509
  ),
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(
10510
+ placeholders ? /* @__PURE__ */ jsx61(chakra35.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx61(
10409
10511
  Bone,
10410
10512
  {
10411
10513
  position: "absolute",
@@ -10416,10 +10518,10 @@ function Lanes(p) {
10416
10518
  borderRadius: "l2"
10417
10519
  },
10418
10520
  i
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) => {
10521
+ )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx61(chakra35.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx61(chakra35.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
10420
10522
  const item = byId.get(c2.id);
10421
- return /* @__PURE__ */ jsx60(
10422
- chakra34.div,
10523
+ return /* @__PURE__ */ jsx61(
10524
+ chakra35.div,
10423
10525
  {
10424
10526
  role: "listitem",
10425
10527
  position: "absolute",
@@ -10428,7 +10530,7 @@ function Lanes(p) {
10428
10530
  w: `${c2.width}px`,
10429
10531
  display: "flex",
10430
10532
  zIndex: "2",
10431
- children: /* @__PURE__ */ jsx60(Card2, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10533
+ children: /* @__PURE__ */ jsx61(Card2, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10432
10534
  },
10433
10535
  c2.id
10434
10536
  );
@@ -10443,8 +10545,8 @@ function DayGrid(p) {
10443
10545
  const x = dayNumber(day);
10444
10546
  return s <= x && x <= d;
10445
10547
  });
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)) });
10548
+ if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx61(chakra35.div, { py: "6", children: p.empty });
10549
+ return /* @__PURE__ */ jsx61(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx61(chakra35.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx61(Card2, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
10448
10550
  }
10449
10551
  export {
10450
10552
  ABP_UI_VERSION,
@@ -10520,6 +10622,7 @@ export {
10520
10622
  RecordKey,
10521
10623
  Reveal,
10522
10624
  RevealItem,
10625
+ RowMenu,
10523
10626
  SHOWN,
10524
10627
  STEP_UP_REQUIRED,
10525
10628
  STRONG_FACTOR_REQUIRED,