@abpjs/ui 0.2.0-next.17 → 0.2.0-next.18

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.17" : "0.0.0-dev";
1563
+ var ABP_UI_VERSION = true ? "0.2.0-next.18" : "0.0.0-dev";
1564
1564
 
1565
1565
  // src/provider/time-zone.tsx
1566
1566
  import { createContext, useContext } from "react";
@@ -2222,8 +2222,57 @@ function ColorModeToggle({ size = "sm" }) {
2222
2222
  ) });
2223
2223
  }
2224
2224
 
2225
+ // src/provider/emotion-registry.tsx
2226
+ import { useState as useState5 } from "react";
2227
+ import createCache from "@emotion/cache";
2228
+ import { CacheProvider } from "@emotion/react";
2229
+ import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
2230
+ function EmotionRegistry({ useServerInsertedHTML, children }) {
2231
+ const [{ cache, flush }] = useState5(() => {
2232
+ const cache2 = createCache({ key: "css" });
2233
+ cache2.compat = true;
2234
+ const insert = cache2.insert;
2235
+ let inserted = [];
2236
+ cache2.insert = (...args) => {
2237
+ const [selector, serialized] = args;
2238
+ if (cache2.inserted[serialized.name] === void 0) inserted.push({ name: serialized.name, global: !selector });
2239
+ return insert(...args);
2240
+ };
2241
+ const flush2 = () => {
2242
+ const was = inserted;
2243
+ inserted = [];
2244
+ return was;
2245
+ };
2246
+ return { cache: cache2, flush: flush2 };
2247
+ });
2248
+ useServerInsertedHTML(() => {
2249
+ const names = flush();
2250
+ if (names.length === 0) return null;
2251
+ let styles = "";
2252
+ let attribute = cache.key;
2253
+ const globals = [];
2254
+ for (const { name, global } of names) {
2255
+ const style = cache.inserted[name];
2256
+ if (typeof style !== "string") continue;
2257
+ if (global) globals.push({ name, style });
2258
+ else {
2259
+ styles += style;
2260
+ attribute += ` ${name}`;
2261
+ }
2262
+ }
2263
+ return /* @__PURE__ */ jsxs5(Fragment2, { children: [
2264
+ globals.map(({ name, style }) => (
2265
+ // Emotion's own CSS, written by its serializer from the host's theme: no person's input.
2266
+ /* @__PURE__ */ jsx11("style", { "data-emotion": `${cache.key}-global ${name}`, dangerouslySetInnerHTML: { __html: style } }, name)
2267
+ )),
2268
+ styles && /* @__PURE__ */ jsx11("style", { "data-emotion": attribute, dangerouslySetInnerHTML: { __html: styles } })
2269
+ ] });
2270
+ });
2271
+ return /* @__PURE__ */ jsx11(CacheProvider, { value: cache, children });
2272
+ }
2273
+
2225
2274
  // src/host/HostContext.tsx
2226
- import { createContext as createContext7, useCallback as useCallback4, useContext as useContext7, useEffect as useEffect3, useInsertionEffect, useMemo as useMemo2, useRef as useRef4, useState as useState5 } from "react";
2275
+ import { createContext as createContext7, useCallback as useCallback4, useContext as useContext7, useEffect as useEffect3, useInsertionEffect, useMemo as useMemo2, useRef as useRef4, useState as useState6 } from "react";
2227
2276
 
2228
2277
  // src/host/errors.ts
2229
2278
  var AbpApiError = class extends Error {
@@ -2269,10 +2318,10 @@ var STRONG_FACTOR_REQUIRED = "strong_factor_required";
2269
2318
  var needsStepUp = (e) => e instanceof AbpApiError && e.status === 403 && (e.code === STEP_UP_REQUIRED || e.code === STRONG_FACTOR_REQUIRED);
2270
2319
 
2271
2320
  // src/host/HostContext.tsx
2272
- import { jsx as jsx11 } from "react/jsx-runtime";
2321
+ import { jsx as jsx12 } from "react/jsx-runtime";
2273
2322
  var HostContext = createContext7(null);
2274
2323
  function HostProvider({ value, children }) {
2275
- return /* @__PURE__ */ jsx11(HostContext.Provider, { value: value ?? null, children });
2324
+ return /* @__PURE__ */ jsx12(HostContext.Provider, { value: value ?? null, children });
2276
2325
  }
2277
2326
  function useHost() {
2278
2327
  const host = useContext7(HostContext);
@@ -2298,9 +2347,9 @@ function useAreaRequest(area) {
2298
2347
  }
2299
2348
  function useApiQuery(area, path) {
2300
2349
  const request = useAreaRequest(area);
2301
- const [data, setData] = useState5(void 0);
2302
- const [error, setError] = useState5(null);
2303
- const [loading, setLoading] = useState5(path != null);
2350
+ const [data, setData] = useState6(void 0);
2351
+ const [error, setError] = useState6(null);
2352
+ const [loading, setLoading] = useState6(path != null);
2304
2353
  const seq = useRef4(0);
2305
2354
  const reload = useCallback4(async () => {
2306
2355
  if (path == null) return;
@@ -2324,8 +2373,8 @@ function useApiQuery(area, path) {
2324
2373
  return { data, error, loading, reload, setData };
2325
2374
  }
2326
2375
  function useApiAction() {
2327
- const [busy, setBusy] = useState5(false);
2328
- const [error, setError] = useState5(null);
2376
+ const [busy, setBusy] = useState6(false);
2377
+ const [error, setError] = useState6(null);
2329
2378
  const run = useCallback4(async (fn) => {
2330
2379
  setBusy(true);
2331
2380
  setError(null);
@@ -2381,7 +2430,7 @@ function useNames(kind, ids) {
2381
2430
  const host = useOptionalHost();
2382
2431
  const latest = useLatest(host);
2383
2432
  const can = Boolean(kind === "people" ? host?.names : host?.scopes?.name);
2384
- const [names, setNames] = useState5({});
2433
+ const [names, setNames] = useState6({});
2385
2434
  const key = useMemo2(() => [...new Set(ids)].sort().join(","), [ids]);
2386
2435
  useEffect3(() => {
2387
2436
  const wanted = key ? key.split(",") : [];
@@ -2398,66 +2447,66 @@ function useNames(kind, ids) {
2398
2447
  }
2399
2448
  function HostSlot({ name, context }) {
2400
2449
  const Filled = useOptionalHost()?.slots?.[name];
2401
- return Filled ? /* @__PURE__ */ jsx11(Filled, { ...context }) : null;
2450
+ return Filled ? /* @__PURE__ */ jsx12(Filled, { ...context }) : null;
2402
2451
  }
2403
2452
 
2404
2453
  // src/host/StepUpDialog.tsx
2405
- import { useEffect as useEffect4, useRef as useRef5, useState as useState6 } from "react";
2454
+ import { useEffect as useEffect4, useRef as useRef5, useState as useState7 } from "react";
2406
2455
  import { chakra as chakra5, Dialog as Dialog2, Grid, HStack, Input, Portal as Portal4, Stack as Stack2, Text } from "@chakra-ui/react";
2407
2456
 
2408
2457
  // src/components/Field.tsx
2409
2458
  import { forwardRef as forwardRef2 } from "react";
2410
2459
  import { chakra as chakra4, Checkbox, Field as ChakraField, NativeSelect, Switch } from "@chakra-ui/react";
2411
- import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
2460
+ import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
2412
2461
  var Field = forwardRef2(function Field2({ label, helperText, errorText: errorText2, optionalText, invalid, loading: own, children, ...rest }, ref) {
2413
2462
  const loading = useLoading(own);
2414
- return /* @__PURE__ */ jsxs5(ChakraField.Root, { ref, invalid: invalid ?? Boolean(errorText2), ...rest, children: [
2415
- label != null && /* @__PURE__ */ jsxs5(ChakraField.Label, { children: [
2463
+ return /* @__PURE__ */ jsxs6(ChakraField.Root, { ref, invalid: invalid ?? Boolean(errorText2), ...rest, children: [
2464
+ label != null && /* @__PURE__ */ jsxs6(ChakraField.Label, { children: [
2416
2465
  label,
2417
- /* @__PURE__ */ jsx12(ChakraField.RequiredIndicator, { fallback: optionalText })
2466
+ /* @__PURE__ */ jsx13(ChakraField.RequiredIndicator, { fallback: optionalText })
2418
2467
  ] }),
2419
- loading ? /* @__PURE__ */ jsx12(chakra4.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2420
- helperText != null && /* @__PURE__ */ jsx12(ChakraField.HelperText, { children: helperText }),
2421
- errorText2 != null && /* @__PURE__ */ jsx12(ChakraField.ErrorText, { children: errorText2 })
2468
+ loading ? /* @__PURE__ */ jsx13(chakra4.div, { width: "full", borderRadius: "l2", "aria-hidden": "true", css: ghostCss, children }) : children,
2469
+ helperText != null && /* @__PURE__ */ jsx13(ChakraField.HelperText, { children: helperText }),
2470
+ errorText2 != null && /* @__PURE__ */ jsx13(ChakraField.ErrorText, { children: errorText2 })
2422
2471
  ] });
2423
2472
  });
2424
2473
  var FormField = Field;
2425
2474
  var SelectField = forwardRef2(function SelectField2({ options, size = "md", width, disabled, loading: own, ...rest }, ref) {
2426
2475
  const loading = useLoading(own);
2427
- return /* @__PURE__ */ jsxs5(NativeSelect.Root, { size, width, disabled, borderRadius: "l2", "aria-hidden": loading || void 0, css: loading ? ghostCss : void 0, children: [
2428
- /* @__PURE__ */ jsx12(NativeSelect.Field, { ref, ...rest, children: options.map((o) => /* @__PURE__ */ jsx12("option", { value: o.value, disabled: o.disabled, children: o.label }, o.value)) }),
2429
- /* @__PURE__ */ jsx12(NativeSelect.Indicator, {})
2476
+ return /* @__PURE__ */ jsxs6(NativeSelect.Root, { size, width, disabled, borderRadius: "l2", "aria-hidden": loading || void 0, css: loading ? ghostCss : void 0, children: [
2477
+ /* @__PURE__ */ jsx13(NativeSelect.Field, { ref, ...rest, children: options.map((o) => /* @__PURE__ */ jsx13("option", { value: o.value, disabled: o.disabled, children: o.label }, o.value)) }),
2478
+ /* @__PURE__ */ jsx13(NativeSelect.Indicator, {})
2430
2479
  ] });
2431
2480
  });
2432
2481
  function CheckboxField({ label, checked, onCheckedChange, loading: own, ...rest }) {
2433
2482
  const loading = useLoading(own);
2434
- return /* @__PURE__ */ jsxs5(Checkbox.Root, { checked, onCheckedChange: (e) => onCheckedChange(e.checked === true), ...rest, children: [
2435
- /* @__PURE__ */ jsx12(Checkbox.HiddenInput, {}),
2436
- /* @__PURE__ */ jsx12(Checkbox.Control, { css: loading ? ghostCss : void 0 }),
2437
- /* @__PURE__ */ jsx12(Checkbox.Label, { children: label })
2483
+ return /* @__PURE__ */ jsxs6(Checkbox.Root, { checked, onCheckedChange: (e) => onCheckedChange(e.checked === true), ...rest, children: [
2484
+ /* @__PURE__ */ jsx13(Checkbox.HiddenInput, {}),
2485
+ /* @__PURE__ */ jsx13(Checkbox.Control, { css: loading ? ghostCss : void 0 }),
2486
+ /* @__PURE__ */ jsx13(Checkbox.Label, { children: label })
2438
2487
  ] });
2439
2488
  }
2440
2489
  function SwitchField({ label, checked, onCheckedChange, loading: own, ...rest }) {
2441
2490
  const loading = useLoading(own);
2442
- return /* @__PURE__ */ jsxs5(Switch.Root, { checked, onCheckedChange: (e) => onCheckedChange(e.checked), ...rest, children: [
2443
- /* @__PURE__ */ jsx12(Switch.HiddenInput, {}),
2444
- /* @__PURE__ */ jsx12(Switch.Control, { css: loading ? ghostCss : void 0, children: /* @__PURE__ */ jsx12(Switch.Thumb, {}) }),
2445
- /* @__PURE__ */ jsx12(Switch.Label, { children: label })
2491
+ return /* @__PURE__ */ jsxs6(Switch.Root, { checked, onCheckedChange: (e) => onCheckedChange(e.checked), ...rest, children: [
2492
+ /* @__PURE__ */ jsx13(Switch.HiddenInput, {}),
2493
+ /* @__PURE__ */ jsx13(Switch.Control, { css: loading ? ghostCss : void 0, children: /* @__PURE__ */ jsx13(Switch.Thumb, {}) }),
2494
+ /* @__PURE__ */ jsx13(Switch.Label, { children: label })
2446
2495
  ] });
2447
2496
  }
2448
2497
 
2449
2498
  // src/components/InlineAlert.tsx
2450
2499
  import { Alert } from "@chakra-ui/react";
2451
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
2500
+ import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
2452
2501
  var statusOf = { neutral: "neutral", success: "success", warning: "warning", danger: "error", info: "info" };
2453
2502
  function InlineAlert({ tone = "info", title, children, size = "md", ...rest }) {
2454
2503
  const empty = (children == null || children === false || children === "") && title == null;
2455
2504
  if (empty) return null;
2456
- return /* @__PURE__ */ jsxs6(Alert.Root, { status: statusOf[tone], size, role: tone === "danger" ? "alert" : "status", ...rest, children: [
2457
- /* @__PURE__ */ jsx13(Alert.Indicator, {}),
2458
- /* @__PURE__ */ jsxs6(Alert.Content, { children: [
2459
- title != null && /* @__PURE__ */ jsx13(Alert.Title, { children: title }),
2460
- children != null && children !== false && /* @__PURE__ */ jsx13(Alert.Description, { children })
2505
+ return /* @__PURE__ */ jsxs7(Alert.Root, { status: statusOf[tone], size, role: tone === "danger" ? "alert" : "status", ...rest, children: [
2506
+ /* @__PURE__ */ jsx14(Alert.Indicator, {}),
2507
+ /* @__PURE__ */ jsxs7(Alert.Content, { children: [
2508
+ title != null && /* @__PURE__ */ jsx14(Alert.Title, { children: title }),
2509
+ children != null && children !== false && /* @__PURE__ */ jsx14(Alert.Description, { children })
2461
2510
  ] })
2462
2511
  ] });
2463
2512
  }
@@ -2506,11 +2555,11 @@ function translate(site, bundles, key, values) {
2506
2555
  }
2507
2556
 
2508
2557
  // src/provider/texts.tsx
2509
- import { jsx as jsx14 } from "react/jsx-runtime";
2558
+ import { jsx as jsx15 } from "react/jsx-runtime";
2510
2559
  var PluginTextsContext = createContext8({ texts: {}, product: DEFAULT_PRODUCT_NAME });
2511
2560
  function PluginTextsProvider({ value, product, children }) {
2512
2561
  const texts = useMemo3(() => ({ texts: value ?? {}, product: product ?? DEFAULT_PRODUCT_NAME }), [value, product]);
2513
- return /* @__PURE__ */ jsx14(PluginTextsContext.Provider, { value: texts, children });
2562
+ return /* @__PURE__ */ jsx15(PluginTextsContext.Provider, { value: texts, children });
2514
2563
  }
2515
2564
  function useProductName() {
2516
2565
  return useContext8(PluginTextsContext).product;
@@ -2834,7 +2883,7 @@ async function getPasskey(options, signal) {
2834
2883
  }
2835
2884
 
2836
2885
  // src/host/StepUpDialog.tsx
2837
- import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
2886
+ import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs8 } from "react/jsx-runtime";
2838
2887
  var useStepUpTexts = createAreaTexts("stepUp", { en: en_default, ar: ar_default });
2839
2888
  function looksLikeCode(value, recovery) {
2840
2889
  return recovery ? value.replace(/[^A-Za-z0-9]/g, "").length === 10 : value.replace(/\D/g, "").length === 6 && !/[^\d\s]/.test(value);
@@ -2844,21 +2893,21 @@ function StepUpDialog() {
2844
2893
  const t = useStepUpTexts();
2845
2894
  const host = useHost();
2846
2895
  const base = (host.paths.guard ?? "").replace(/\/$/, "");
2847
- const [open, setOpen] = useState6(false);
2848
- const [need, setNeed] = useState6(null);
2849
- const [stage, setStage] = useState6("confirm");
2850
- const [password, setPassword] = useState6("");
2851
- const [ways, setWays] = useState6(null);
2852
- const [method, setMethod] = useState6("app");
2853
- const [code, setCode] = useState6("");
2854
- const [sent, setSent] = useState6({});
2855
- const [sending, setSending] = useState6(false);
2856
- const [error, setError] = useState6(null);
2857
- const [busy, setBusy] = useState6(false);
2858
- const [passkeyName, setPasskeyName] = useState6("");
2859
- const [enrolment, setEnrolment] = useState6(null);
2860
- const [recoveryCodes, setRecoveryCodes] = useState6([]);
2861
- const [copied, setCopied] = useState6(false);
2896
+ const [open, setOpen] = useState7(false);
2897
+ const [need, setNeed] = useState7(null);
2898
+ const [stage, setStage] = useState7("confirm");
2899
+ const [password, setPassword] = useState7("");
2900
+ const [ways, setWays] = useState7(null);
2901
+ const [method, setMethod] = useState7("app");
2902
+ const [code, setCode] = useState7("");
2903
+ const [sent, setSent] = useState7({});
2904
+ const [sending, setSending] = useState7(false);
2905
+ const [error, setError] = useState7(null);
2906
+ const [busy, setBusy] = useState7(false);
2907
+ const [passkeyName, setPasskeyName] = useState7("");
2908
+ const [enrolment, setEnrolment] = useState7(null);
2909
+ const [recoveryCodes, setRecoveryCodes] = useState7([]);
2910
+ const [copied, setCopied] = useState7(false);
2862
2911
  const settle = useRef5(null);
2863
2912
  const canPasskey = passkeysSupported();
2864
2913
  const strong = need?.level === "strong";
@@ -3059,7 +3108,7 @@ function StepUpDialog() {
3059
3108
  const nameOf = (s) => s.method === "email" ? t("email") : s.name;
3060
3109
  const title = stage === "recovery" ? t("recoveryTitle") : settingUp ? t("setupTitle") : t("title");
3061
3110
  const mayDismiss = stage !== "recovery";
3062
- const codeInput = (label, helper) => /* @__PURE__ */ jsx15(Field, { label, helperText: helper, required: true, children: /* @__PURE__ */ jsx15(
3111
+ const codeInput = (label, helper) => /* @__PURE__ */ jsx16(Field, { label, helperText: helper, required: true, children: /* @__PURE__ */ jsx16(
3063
3112
  Input,
3064
3113
  {
3065
3114
  value: code,
@@ -3077,44 +3126,44 @@ function StepUpDialog() {
3077
3126
  },
3078
3127
  method
3079
3128
  ) });
3080
- const passwordField = (focus) => /* @__PURE__ */ jsx15(Field, { label: t("password"), children: /* @__PURE__ */ jsx15(Input, { type: "password", autoComplete: "current-password", autoFocus: focus, value: password, onChange: (e) => setPassword(e.target.value) }) });
3081
- const footer = (submit, disabled = false, onBack) => /* @__PURE__ */ jsx15(Dialog2.Footer, { children: /* @__PURE__ */ jsxs7(HStack, { children: [
3082
- onBack ? /* @__PURE__ */ jsx15(Button, { variant: "secondary", onClick: onBack, disabled: busy, children: t("back") }) : /* @__PURE__ */ jsx15(Button, { variant: "secondary", onClick: () => close(false), disabled: busy, children: t("cancel") }),
3083
- submit && /* @__PURE__ */ jsx15(Button, { type: "submit", loading: busy, disabled, children: submit })
3129
+ 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) }) });
3130
+ const footer = (submit, disabled = false, onBack) => /* @__PURE__ */ jsx16(Dialog2.Footer, { children: /* @__PURE__ */ jsxs8(HStack, { children: [
3131
+ 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") }),
3132
+ submit && /* @__PURE__ */ jsx16(Button, { type: "submit", loading: busy, disabled, children: submit })
3084
3133
  ] }) });
3085
3134
  let body;
3086
3135
  if (stage === "passkey") {
3087
- body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3088
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", align: "start", children: [
3089
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("strongWhy") }),
3090
- /* @__PURE__ */ jsx15(Button, { variant: "primary", onClick: () => void withPasskey(), loading: busy, "data-testid": "use-passkey", children: t("usePasskey") }),
3091
- busy && /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3092
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3093
- need?.methods.includes("app") && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => toStage(codeAlone ? "code" : "confirm"), "data-testid": "use-password-and-app", children: codeAlone ? t("useAppCode") : t("usePasswordAndApp") })
3136
+ body = /* @__PURE__ */ jsxs8(Fragment3, { children: [
3137
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", align: "start", children: [
3138
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("strongWhy") }),
3139
+ /* @__PURE__ */ jsx16(Button, { variant: "primary", onClick: () => void withPasskey(), loading: busy, "data-testid": "use-passkey", children: t("usePasskey") }),
3140
+ busy && /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3141
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error }),
3142
+ need?.methods.includes("app") && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => toStage(codeAlone ? "code" : "confirm"), "data-testid": "use-password-and-app", children: codeAlone ? t("useAppCode") : t("usePasswordAndApp") })
3094
3143
  ] }) }),
3095
3144
  footer(null)
3096
3145
  ] });
3097
3146
  } else if (stage === "code") {
3098
- body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirmCode(e), children: [
3099
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3100
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("appCodeWhy") }),
3147
+ body = /* @__PURE__ */ jsxs8("form", { onSubmit: (e) => void confirmCode(e), children: [
3148
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3149
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("appCodeWhy") }),
3101
3150
  codeInput(t("code")),
3102
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3103
- /* @__PURE__ */ jsxs7(Stack2, { gap: "0.5", align: "start", children: [
3104
- need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => toStage("passkey"), children: t("usePasskey") }),
3105
- !strong && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => toStage("confirm"), "data-testid": "use-password", children: t("usePassword") })
3151
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error }),
3152
+ /* @__PURE__ */ jsxs8(Stack2, { gap: "0.5", align: "start", children: [
3153
+ need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => toStage("passkey"), children: t("usePasskey") }),
3154
+ !strong && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => toStage("confirm"), "data-testid": "use-password", children: t("usePassword") })
3106
3155
  ] })
3107
3156
  ] }) }),
3108
3157
  footer(t("confirm"), !looksLikeCode(code, false))
3109
3158
  ] });
3110
3159
  } else if (stage === "confirm" && strong && !settingUp) {
3111
- body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirm(e), children: [
3112
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3113
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: need?.methods.includes("passkey") ? t("strongWhy") : t("strongWhyApp") }),
3160
+ body = /* @__PURE__ */ jsxs8("form", { onSubmit: (e) => void confirm(e), children: [
3161
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3162
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: need?.methods.includes("passkey") ? t("strongWhy") : t("strongWhyApp") }),
3114
3163
  passwordField(true),
3115
3164
  codeInput(t("code")),
3116
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3117
- need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", alignSelf: "start", onClick: () => {
3165
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error }),
3166
+ need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", alignSelf: "start", onClick: () => {
3118
3167
  setStage("passkey");
3119
3168
  setError(null);
3120
3169
  }, children: t("usePasskey") })
@@ -3122,49 +3171,49 @@ function StepUpDialog() {
3122
3171
  footer(t("confirm"), !password || !looksLikeCode(code, false))
3123
3172
  ] });
3124
3173
  } else if (stage === "confirm") {
3125
- body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirm(e), children: [
3126
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3127
- settingUp ? /* @__PURE__ */ jsxs7(Stack2, { gap: "2", children: [
3128
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupWhy") }),
3129
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupPasswordWhy") })
3130
- ] }) : /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: ways ? t("codeWhy") : t("why") }),
3174
+ body = /* @__PURE__ */ jsxs8("form", { onSubmit: (e) => void confirm(e), children: [
3175
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3176
+ settingUp ? /* @__PURE__ */ jsxs8(Stack2, { gap: "2", children: [
3177
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupWhy") }),
3178
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupPasswordWhy") })
3179
+ ] }) : /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: ways ? t("codeWhy") : t("why") }),
3131
3180
  passwordField(!ways),
3132
- ways && /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3133
- sender && !sentTo ? /* @__PURE__ */ jsxs7(Stack2, { gap: "2", align: "start", children: [
3134
- /* @__PURE__ */ jsx15(Text, { children: t("sendTo", { to: sender.to }) }),
3135
- /* @__PURE__ */ jsx15(Button, { onClick: () => void sendCode(), loading: sending, loadingText: t("sending"), "data-testid": "send-code", children: t("send") })
3181
+ ways && /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3182
+ sender && !sentTo ? /* @__PURE__ */ jsxs8(Stack2, { gap: "2", align: "start", children: [
3183
+ /* @__PURE__ */ jsx16(Text, { children: t("sendTo", { to: sender.to }) }),
3184
+ /* @__PURE__ */ jsx16(Button, { onClick: () => void sendCode(), loading: sending, loadingText: t("sending"), "data-testid": "send-code", children: t("send") })
3136
3185
  ] }) : codeInput(recovery ? t("recoveryCode") : sender ? t("sentCode") : t("code"), sentTo ? t("sent", { to: sentTo }) : void 0),
3137
- /* @__PURE__ */ jsxs7(Stack2, { gap: "0.5", align: "start", children: [
3138
- sentTo && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => void sendCode(), disabled: sending, children: t("resend") }),
3139
- ways.hasApp && method !== "app" && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => switchTo("app"), children: t("useApp") }),
3140
- ways.senders.filter((s) => s.method !== method).map((s) => /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => switchTo(s.method), "data-testid": `use-${s.method}`, children: t("byMethod", { name: nameOf(s) }) }, s.method)),
3141
- ways.hasApp && !recovery && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => switchTo("recovery"), children: t("useRecovery") })
3186
+ /* @__PURE__ */ jsxs8(Stack2, { gap: "0.5", align: "start", children: [
3187
+ sentTo && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => void sendCode(), disabled: sending, children: t("resend") }),
3188
+ ways.hasApp && method !== "app" && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => switchTo("app"), children: t("useApp") }),
3189
+ 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)),
3190
+ ways.hasApp && !recovery && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", onClick: () => switchTo("recovery"), children: t("useRecovery") })
3142
3191
  ] })
3143
3192
  ] }),
3144
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3145
- codeAlone && !ways && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", alignSelf: "start", onClick: () => toStage("code"), "data-testid": "use-app-code", children: t("useAppCode") })
3193
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error }),
3194
+ codeAlone && !ways && /* @__PURE__ */ jsx16(Button, { variant: "link", size: "sm", alignSelf: "start", onClick: () => toStage("code"), "data-testid": "use-app-code", children: t("useAppCode") })
3146
3195
  ] }) }),
3147
3196
  footer(settingUp ? t("continue") : t("confirm"), !password || !!ways && !looksLikeCode(code, recovery))
3148
3197
  ] });
3149
3198
  } else if (stage === "setup") {
3150
- body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3151
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", align: "start", children: [
3152
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupWhy") }),
3153
- canPasskey ? /* @__PURE__ */ jsx15(Button, { variant: "primary", onClick: () => {
3199
+ body = /* @__PURE__ */ jsxs8(Fragment3, { children: [
3200
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", align: "start", children: [
3201
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("setupWhy") }),
3202
+ canPasskey ? /* @__PURE__ */ jsx16(Button, { variant: "primary", onClick: () => {
3154
3203
  setPasskeyName(t("passkeyNameDefault"));
3155
3204
  setError(null);
3156
3205
  setStage("setupPasskey");
3157
- }, "data-testid": "setup-passkey", children: t("setupPasskey") }) : /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyUnsupported") }),
3158
- /* @__PURE__ */ jsx15(Button, { variant: canPasskey ? "secondary" : "primary", onClick: () => void startApp(), "data-testid": "setup-app", children: t("setupApp") })
3206
+ }, "data-testid": "setup-passkey", children: t("setupPasskey") }) : /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyUnsupported") }),
3207
+ /* @__PURE__ */ jsx16(Button, { variant: canPasskey ? "secondary" : "primary", onClick: () => void startApp(), "data-testid": "setup-app", children: t("setupApp") })
3159
3208
  ] }) }),
3160
3209
  footer(null)
3161
3210
  ] });
3162
3211
  } else if (stage === "setupPasskey") {
3163
- body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void addPasskey(e), children: [
3164
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3165
- /* @__PURE__ */ jsx15(Field, { label: t("passkeyName"), children: /* @__PURE__ */ jsx15(Input, { value: passkeyName, maxLength: 64, autoFocus: true, onChange: (e) => setPasskeyName(e.target.value), "data-testid": "passkey-name" }) }),
3166
- busy && /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3167
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error })
3212
+ body = /* @__PURE__ */ jsxs8("form", { onSubmit: (e) => void addPasskey(e), children: [
3213
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3214
+ /* @__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" }) }),
3215
+ busy && /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3216
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error })
3168
3217
  ] }) }),
3169
3218
  footer(t("passkeyCreate"), false, () => {
3170
3219
  setStage("setup");
@@ -3172,16 +3221,16 @@ function StepUpDialog() {
3172
3221
  })
3173
3222
  ] });
3174
3223
  } else if (stage === "setupApp") {
3175
- body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirmApp(e), children: [
3176
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3177
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("appScan") }),
3178
- /* @__PURE__ */ jsx15(chakra5.div, { bg: "white", p: "2", rounded: "l2", borderWidth: "1px", w: "fit-content", children: enrolment ? /* @__PURE__ */ jsx15(chakra5.img, { src: enrolment.qr, alt: t("appQrAlt"), width: "44", height: "44", "data-testid": "app-setup-qr" }) : /* @__PURE__ */ jsx15(chakra5.div, { width: "44", height: "44" }) }),
3179
- /* @__PURE__ */ jsxs7(Stack2, { gap: "1", children: [
3180
- /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("appCantScan") }),
3181
- /* @__PURE__ */ jsx15(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() : " " })
3224
+ body = /* @__PURE__ */ jsxs8("form", { onSubmit: (e) => void confirmApp(e), children: [
3225
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", children: [
3226
+ /* @__PURE__ */ jsx16(Text, { color: "fg.muted", children: t("appScan") }),
3227
+ /* @__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" }) }),
3228
+ /* @__PURE__ */ jsxs8(Stack2, { gap: "1", children: [
3229
+ /* @__PURE__ */ jsx16(Text, { textStyle: "sm", color: "fg.muted", children: t("appCantScan") }),
3230
+ /* @__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() : " " })
3182
3231
  ] }),
3183
3232
  codeInput(t("appCode")),
3184
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error })
3233
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "danger", children: error })
3185
3234
  ] }) }),
3186
3235
  footer(t("appConfirm"), !enrolment || !looksLikeCode(code, false), () => {
3187
3236
  setStage("setup");
@@ -3189,18 +3238,18 @@ function StepUpDialog() {
3189
3238
  })
3190
3239
  ] });
3191
3240
  } else {
3192
- body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3193
- /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", "data-testid": "recovery-codes", children: [
3194
- /* @__PURE__ */ jsx15(InlineAlert, { tone: "warning", children: t("recoveryHint") }),
3195
- /* @__PURE__ */ jsx15(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__ */ jsx15(chakra5.code, { fontFamily: "mono", fontSize: "sm", children: c2 }, c2)) })
3241
+ body = /* @__PURE__ */ jsxs8(Fragment3, { children: [
3242
+ /* @__PURE__ */ jsx16(Dialog2.Body, { children: /* @__PURE__ */ jsxs8(Stack2, { gap: "field", "data-testid": "recovery-codes", children: [
3243
+ /* @__PURE__ */ jsx16(InlineAlert, { tone: "warning", children: t("recoveryHint") }),
3244
+ /* @__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)) })
3196
3245
  ] }) }),
3197
- /* @__PURE__ */ jsx15(Dialog2.Footer, { children: /* @__PURE__ */ jsxs7(HStack, { children: [
3198
- /* @__PURE__ */ jsx15(Button, { variant: "secondary", onClick: () => void copyCodes(), children: copied ? t("recoveryCopied") : t("recoveryCopy") }),
3199
- /* @__PURE__ */ jsx15(Button, { onClick: () => close(true), "data-testid": "recovery-codes-saved", children: t("recoverySaved") })
3246
+ /* @__PURE__ */ jsx16(Dialog2.Footer, { children: /* @__PURE__ */ jsxs8(HStack, { children: [
3247
+ /* @__PURE__ */ jsx16(Button, { variant: "secondary", onClick: () => void copyCodes(), children: copied ? t("recoveryCopied") : t("recoveryCopy") }),
3248
+ /* @__PURE__ */ jsx16(Button, { onClick: () => close(true), "data-testid": "recovery-codes-saved", children: t("recoverySaved") })
3200
3249
  ] }) })
3201
3250
  ] });
3202
3251
  }
3203
- return /* @__PURE__ */ jsx15(
3252
+ return /* @__PURE__ */ jsx16(
3204
3253
  Dialog2.Root,
3205
3254
  {
3206
3255
  open,
@@ -3209,10 +3258,10 @@ function StepUpDialog() {
3209
3258
  closeOnEscape: mayDismiss,
3210
3259
  placement: "center",
3211
3260
  role: "alertdialog",
3212
- children: /* @__PURE__ */ jsxs7(Portal4, { children: [
3213
- /* @__PURE__ */ jsx15(Dialog2.Backdrop, {}),
3214
- /* @__PURE__ */ jsx15(Dialog2.Positioner, { children: /* @__PURE__ */ jsxs7(Dialog2.Content, { "data-testid": "step-up", "data-stage": stage, children: [
3215
- /* @__PURE__ */ jsx15(Dialog2.Header, { children: /* @__PURE__ */ jsx15(Dialog2.Title, { children: title }) }),
3261
+ children: /* @__PURE__ */ jsxs8(Portal4, { children: [
3262
+ /* @__PURE__ */ jsx16(Dialog2.Backdrop, {}),
3263
+ /* @__PURE__ */ jsx16(Dialog2.Positioner, { children: /* @__PURE__ */ jsxs8(Dialog2.Content, { "data-testid": "step-up", "data-stage": stage, children: [
3264
+ /* @__PURE__ */ jsx16(Dialog2.Header, { children: /* @__PURE__ */ jsx16(Dialog2.Title, { children: title }) }),
3216
3265
  body
3217
3266
  ] }) })
3218
3267
  ] })
@@ -3223,32 +3272,36 @@ function StepUpDialog() {
3223
3272
  // src/provider/link.tsx
3224
3273
  import { createContext as createContext9, forwardRef as forwardRef3, useContext as useContext9 } from "react";
3225
3274
  import { Link as ChakraLink } from "@chakra-ui/react";
3226
- import { jsx as jsx16 } from "react/jsx-runtime";
3275
+ import { jsx as jsx17 } from "react/jsx-runtime";
3227
3276
  var LinkContext = createContext9("a");
3228
3277
  function LinkComponentProvider({ value, children }) {
3229
- return /* @__PURE__ */ jsx16(LinkContext.Provider, { value: value ?? "a", children });
3278
+ return /* @__PURE__ */ jsx17(LinkContext.Provider, { value: value ?? "a", children });
3230
3279
  }
3231
3280
  function useLinkComponent() {
3232
3281
  return useContext9(LinkContext);
3233
3282
  }
3234
3283
  var AppLink = forwardRef3(function AppLink2({ href, children, ...rest }, ref) {
3235
3284
  const Comp = useLinkComponent();
3236
- return /* @__PURE__ */ jsx16(ChakraLink, { asChild: true, ...rest, children: /* @__PURE__ */ jsx16(Comp, { href, ref, children }) });
3285
+ return /* @__PURE__ */ jsx17(ChakraLink, { asChild: true, ...rest, children: /* @__PURE__ */ jsx17(Comp, { href, ref, children }) });
3237
3286
  });
3238
3287
 
3239
3288
  // src/provider/AbpProvider.tsx
3240
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
3289
+ import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
3241
3290
  var defaultSystem = createAbpSystem();
3242
- function AbpProvider({ children, system = defaultSystem, host, locale = "en", labels, linkComponent, defaultColorMode = "system", pluginTexts, productName, timeZone, motion }) {
3243
- return /* @__PURE__ */ jsx17(ChakraProvider, { value: system, children: /* @__PURE__ */ jsx17(ColorModeProvider, { defaultTheme: defaultColorMode, children: /* @__PURE__ */ jsx17(LocaleProvider, { locale, children: /* @__PURE__ */ jsx17(TimeZoneProvider, { value: timeZone, children: /* @__PURE__ */ jsx17(HostProvider, { value: host, children: /* @__PURE__ */ jsx17(LabelsProvider, { value: labels, children: /* @__PURE__ */ jsx17(LinkComponentProvider, { value: linkComponent, children: /* @__PURE__ */ jsx17(PluginTextsProvider, { value: pluginTexts, product: productName, children: /* @__PURE__ */ jsx17(MotionProvider, { setting: motion, children: /* @__PURE__ */ jsxs8(ConfirmProvider, { children: [
3291
+ function AbpProvider({ children, useServerInsertedHTML, ...props }) {
3292
+ const tree = /* @__PURE__ */ jsx18(AbpTree, { ...props, children });
3293
+ return useServerInsertedHTML ? /* @__PURE__ */ jsx18(EmotionRegistry, { useServerInsertedHTML, children: tree }) : tree;
3294
+ }
3295
+ function AbpTree({ children, system = defaultSystem, host, locale = "en", labels, linkComponent, defaultColorMode = "system", pluginTexts, productName, timeZone, motion }) {
3296
+ return /* @__PURE__ */ jsx18(ChakraProvider, { value: system, children: /* @__PURE__ */ jsx18(ColorModeProvider, { defaultTheme: defaultColorMode, children: /* @__PURE__ */ jsx18(LocaleProvider, { locale, children: /* @__PURE__ */ jsx18(TimeZoneProvider, { value: timeZone, children: /* @__PURE__ */ jsx18(HostProvider, { value: host, children: /* @__PURE__ */ jsx18(LabelsProvider, { value: labels, children: /* @__PURE__ */ jsx18(LinkComponentProvider, { value: linkComponent, children: /* @__PURE__ */ jsx18(PluginTextsProvider, { value: pluginTexts, product: productName, children: /* @__PURE__ */ jsx18(MotionProvider, { setting: motion, children: /* @__PURE__ */ jsxs9(ConfirmProvider, { children: [
3244
3297
  children,
3245
- host?.paths.guard !== void 0 && host.stepUpDialog !== false && /* @__PURE__ */ jsx17(StepUpDialog, {}),
3246
- /* @__PURE__ */ jsx17(Toaster, {})
3298
+ host?.paths.guard !== void 0 && host.stepUpDialog !== false && /* @__PURE__ */ jsx18(StepUpDialog, {}),
3299
+ /* @__PURE__ */ jsx18(Toaster, {})
3247
3300
  ] }) }) }) }) }) }) }) }) }) });
3248
3301
  }
3249
3302
 
3250
3303
  // src/components/TranslatedInput.tsx
3251
- import { useEffect as useEffect5, useId, useRef as useRef6, useState as useState7 } from "react";
3304
+ import { useEffect as useEffect5, useId, useRef as useRef6, useState as useState8 } from "react";
3252
3305
  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";
3253
3306
  import { Languages } from "lucide-react";
3254
3307
 
@@ -3296,7 +3349,7 @@ function useFormatters() {
3296
3349
  }
3297
3350
 
3298
3351
  // src/components/TranslatedInput.tsx
3299
- import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
3352
+ import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
3300
3353
  var MIN_QUERY = 2;
3301
3354
  var LIST_MAX_HEIGHT = 288;
3302
3355
  function TranslatedInput({
@@ -3325,11 +3378,11 @@ function TranslatedInput({
3325
3378
  const say = (text, values) => formatMessage(locale, text, values);
3326
3379
  const listId = useId();
3327
3380
  const input = useRef6(null);
3328
- const [query, setQuery] = useState7("");
3329
- const [focused, setFocused] = useState7(false);
3330
- const [suggestions, setSuggestions] = useState7([]);
3331
- const [active, setActive] = useState7(0);
3332
- const [place, setPlace] = useState7(null);
3381
+ const [query, setQuery] = useState8("");
3382
+ const [focused, setFocused] = useState8(false);
3383
+ const [suggestions, setSuggestions] = useState8([]);
3384
+ const [active, setActive] = useState8(0);
3385
+ const [place, setPlace] = useState8(null);
3333
3386
  useEffect5(() => {
3334
3387
  if (!suggestNames || !focused || query.trim().length < MIN_QUERY) {
3335
3388
  setSuggestions([]);
@@ -3397,8 +3450,8 @@ function TranslatedInput({
3397
3450
  }
3398
3451
  }
3399
3452
  const shown = pickName(chain, value, fallback);
3400
- return /* @__PURE__ */ jsxs9(Group, { attached: true, w: "full", children: [
3401
- /* @__PURE__ */ jsx18(
3453
+ return /* @__PURE__ */ jsxs10(Group, { attached: true, w: "full", children: [
3454
+ /* @__PURE__ */ jsx19(
3402
3455
  Input2,
3403
3456
  {
3404
3457
  ref: input,
@@ -3429,7 +3482,7 @@ function TranslatedInput({
3429
3482
  }
3430
3483
  }
3431
3484
  ),
3432
- open && place && /* @__PURE__ */ jsx18(Portal5, { children: /* @__PURE__ */ jsx18(
3485
+ open && place && /* @__PURE__ */ jsx19(Portal5, { children: /* @__PURE__ */ jsx19(
3433
3486
  Box,
3434
3487
  {
3435
3488
  as: "ul",
@@ -3449,7 +3502,7 @@ function TranslatedInput({
3449
3502
  shadow: "lg",
3450
3503
  py: "1",
3451
3504
  style: place,
3452
- children: suggestions.map((s, i) => /* @__PURE__ */ jsxs9(
3505
+ children: suggestions.map((s, i) => /* @__PURE__ */ jsxs10(
3453
3506
  Box,
3454
3507
  {
3455
3508
  as: "li",
@@ -3466,13 +3519,13 @@ function TranslatedInput({
3466
3519
  pick(s);
3467
3520
  },
3468
3521
  children: [
3469
- /* @__PURE__ */ jsxs9(HStack2, { justify: "space-between", gap: "3", align: "baseline", children: [
3470
- /* @__PURE__ */ jsx18(Text2, { textStyle: "body.sm", fontWeight: "medium", lang: current.code, dir: dirOf(current), children: s.names[current.code] ?? /* @__PURE__ */ jsx18(chakra6.span, { color: "fg.muted", children: pickName(chain, s.names, "") }) }),
3471
- s.source && /* @__PURE__ */ jsx18(Text2, { fontSize: "xs", color: "fg.muted", flexShrink: 0, children: s.source })
3522
+ /* @__PURE__ */ jsxs10(HStack2, { justify: "space-between", gap: "3", align: "baseline", children: [
3523
+ /* @__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, "") }) }),
3524
+ s.source && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", flexShrink: 0, children: s.source })
3472
3525
  ] }),
3473
- others.length > 0 && /* @__PURE__ */ jsx18(Text2, { fontSize: "xs", color: "fg.muted", children: others.map((l, j) => /* @__PURE__ */ jsxs9(chakra6.span, { children: [
3526
+ others.length > 0 && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", children: others.map((l, j) => /* @__PURE__ */ jsxs10(chakra6.span, { children: [
3474
3527
  j > 0 && " \xB7 ",
3475
- /* @__PURE__ */ jsx18(chakra6.span, { lang: l.code, dir: dirOf(l), children: s.names[l.code] ?? EMPTY_VALUE })
3528
+ /* @__PURE__ */ jsx19(chakra6.span, { lang: l.code, dir: dirOf(l), children: s.names[l.code] ?? EMPTY_VALUE })
3476
3529
  ] }, l.code)) })
3477
3530
  ]
3478
3531
  },
@@ -3480,8 +3533,8 @@ function TranslatedInput({
3480
3533
  ))
3481
3534
  }
3482
3535
  ) }),
3483
- others.length > 0 && /* @__PURE__ */ jsxs9(Popover.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
3484
- /* @__PURE__ */ jsx18(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs9(
3536
+ others.length > 0 && /* @__PURE__ */ jsxs10(Popover.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
3537
+ /* @__PURE__ */ jsx19(Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs10(
3485
3538
  Button,
3486
3539
  {
3487
3540
  variant: "secondary",
@@ -3491,8 +3544,8 @@ function TranslatedInput({
3491
3544
  title: say(labels.count, { filled, total: others.length }),
3492
3545
  "data-testid": "translations",
3493
3546
  children: [
3494
- /* @__PURE__ */ jsx18(Languages, {}),
3495
- /* @__PURE__ */ jsxs9(Text2, { as: "span", fontVariantNumeric: "tabular-nums", color: filled < others.length ? "fg.muted" : void 0, children: [
3547
+ /* @__PURE__ */ jsx19(Languages, {}),
3548
+ /* @__PURE__ */ jsxs10(Text2, { as: "span", fontVariantNumeric: "tabular-nums", color: filled < others.length ? "fg.muted" : void 0, children: [
3496
3549
  filled,
3497
3550
  "/",
3498
3551
  others.length
@@ -3500,22 +3553,22 @@ function TranslatedInput({
3500
3553
  ]
3501
3554
  }
3502
3555
  ) }),
3503
- /* @__PURE__ */ jsx18(Portal5, { children: /* @__PURE__ */ jsx18(Popover.Positioner, { children: /* @__PURE__ */ jsxs9(Popover.Content, { w: "sm", maxW: "calc(100vw - 32px)", children: [
3504
- /* @__PURE__ */ jsx18(Popover.Arrow, {}),
3505
- /* @__PURE__ */ jsxs9(Popover.Body, { children: [
3506
- /* @__PURE__ */ jsx18(Text2, { textStyle: "label", mb: "2", children: labels.title }),
3507
- /* @__PURE__ */ jsx18(Stack3, { gap: "3", children: others.map((l) => {
3556
+ /* @__PURE__ */ jsx19(Portal5, { children: /* @__PURE__ */ jsx19(Popover.Positioner, { children: /* @__PURE__ */ jsxs10(Popover.Content, { w: "sm", maxW: "calc(100vw - 32px)", children: [
3557
+ /* @__PURE__ */ jsx19(Popover.Arrow, {}),
3558
+ /* @__PURE__ */ jsxs10(Popover.Body, { children: [
3559
+ /* @__PURE__ */ jsx19(Text2, { textStyle: "label", mb: "2", children: labels.title }),
3560
+ /* @__PURE__ */ jsx19(Stack3, { gap: "3", children: others.map((l) => {
3508
3561
  const own = value[l.code] ?? "";
3509
3562
  const fallbackShown = pickName([l.code, ...chain.filter((c2) => c2 !== l.code)], { ...value, [l.code]: "" }, fallback);
3510
- return /* @__PURE__ */ jsxs9(Box, { children: [
3511
- /* @__PURE__ */ jsxs9(chakra6.label, { htmlFor: `tr-${listId}-${l.code}`, textStyle: "body.sm", fontWeight: "medium", children: [
3563
+ return /* @__PURE__ */ jsxs10(Box, { children: [
3564
+ /* @__PURE__ */ jsxs10(chakra6.label, { htmlFor: `tr-${listId}-${l.code}`, textStyle: "body.sm", fontWeight: "medium", children: [
3512
3565
  l.name,
3513
- l.englishName && l.englishName !== l.name && /* @__PURE__ */ jsxs9(Text2, { as: "span", color: "fg.muted", fontWeight: "normal", children: [
3566
+ l.englishName && l.englishName !== l.name && /* @__PURE__ */ jsxs10(Text2, { as: "span", color: "fg.muted", fontWeight: "normal", children: [
3514
3567
  " \xB7 ",
3515
3568
  l.englishName
3516
3569
  ] })
3517
3570
  ] }),
3518
- /* @__PURE__ */ jsx18(
3571
+ /* @__PURE__ */ jsx19(
3519
3572
  Input2,
3520
3573
  {
3521
3574
  id: `tr-${listId}-${l.code}`,
@@ -3529,7 +3582,7 @@ function TranslatedInput({
3529
3582
  onChange: (e) => set2(l.code, e.target.value)
3530
3583
  }
3531
3584
  ),
3532
- !own.trim() && fallbackShown && /* @__PURE__ */ jsx18(Text2, { fontSize: "xs", color: "fg.muted", mt: "0.5", children: say(labels.missing, { shown: fallbackShown }) })
3585
+ !own.trim() && fallbackShown && /* @__PURE__ */ jsx19(Text2, { fontSize: "xs", color: "fg.muted", mt: "0.5", children: say(labels.missing, { shown: fallbackShown }) })
3533
3586
  ] }, l.code);
3534
3587
  }) })
3535
3588
  ] })
@@ -3571,7 +3624,7 @@ function pageList(page, pages) {
3571
3624
  }
3572
3625
 
3573
3626
  // src/components/Pagination.tsx
3574
- import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
3627
+ import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
3575
3628
  var button = {
3576
3629
  display: "inline-flex",
3577
3630
  alignItems: "center",
@@ -3595,12 +3648,12 @@ var button = {
3595
3648
  function Pagination({ page, pages, onPage, label, previous, next, pageLabel, disabled }) {
3596
3649
  if (pages <= 1) return null;
3597
3650
  const go = (n) => onPage(Math.min(pages, Math.max(1, n)));
3598
- return /* @__PURE__ */ jsx19(chakra8.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs10(HStack3, { gap: "1", justify: "center", wrap: "wrap", children: [
3599
- /* @__PURE__ */ jsx19(chakra8.button, { type: "button", css: button, "aria-label": previous, title: previous, disabled: disabled || page <= 1, onClick: () => go(page - 1), children: /* @__PURE__ */ jsx19(DirectionalIcon, { children: /* @__PURE__ */ jsx19(ChevronLeft, {}) }) }),
3651
+ return /* @__PURE__ */ jsx20(chakra8.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs11(HStack3, { gap: "1", justify: "center", wrap: "wrap", children: [
3652
+ /* @__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, {}) }) }),
3600
3653
  pageList(page, pages).map(
3601
- (n, i) => n === "gap" ? /* @__PURE__ */ jsx19(chakra8.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3654
+ (n, i) => n === "gap" ? /* @__PURE__ */ jsx20(chakra8.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3602
3655
  // Page buttons stay enabled while a page loads (a second click just asks again); the arrows wait.
3603
- /* @__PURE__ */ jsx19(
3656
+ /* @__PURE__ */ jsx20(
3604
3657
  chakra8.button,
3605
3658
  {
3606
3659
  type: "button",
@@ -3614,12 +3667,12 @@ function Pagination({ page, pages, onPage, label, previous, next, pageLabel, dis
3614
3667
  )
3615
3668
  )
3616
3669
  ),
3617
- /* @__PURE__ */ jsx19(chakra8.button, { type: "button", css: button, "aria-label": next, title: next, disabled: disabled || page >= pages, onClick: () => go(page + 1), children: /* @__PURE__ */ jsx19(DirectionalIcon, { children: /* @__PURE__ */ jsx19(ChevronRight, {}) }) })
3670
+ /* @__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, {}) }) })
3618
3671
  ] }) });
3619
3672
  }
3620
3673
 
3621
3674
  // src/components/ListFooter.tsx
3622
- import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
3675
+ import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
3623
3676
  function ListFooter({ list }) {
3624
3677
  const labels = useAbpLabels().queryList;
3625
3678
  const { locale } = useAbpLocale();
@@ -3628,8 +3681,8 @@ function ListFooter({ list }) {
3628
3681
  if (list.rows === void 0 || list.total === 0) return null;
3629
3682
  const from = (page - 1) * pageSize + 1;
3630
3683
  const to = Math.min(page * pageSize, list.total);
3631
- return /* @__PURE__ */ jsxs11(Flex, { gap: "3", align: "center", justify: "space-between", wrap: "wrap", "data-testid": "list-footer", children: [
3632
- /* @__PURE__ */ jsx20(
3684
+ return /* @__PURE__ */ jsxs12(Flex, { gap: "3", align: "center", justify: "space-between", wrap: "wrap", "data-testid": "list-footer", children: [
3685
+ /* @__PURE__ */ jsx21(
3633
3686
  Pagination,
3634
3687
  {
3635
3688
  ...list.pagination,
@@ -3640,14 +3693,14 @@ function ListFooter({ list }) {
3640
3693
  pageLabel: (n) => formatMessage(locale, labels.page, { page: fmt.number(n) })
3641
3694
  }
3642
3695
  ),
3643
- /* @__PURE__ */ jsx20(Text3, { textStyle: "caption", color: "fg.muted", fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: formatMessage(locale, labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(list.total) }) })
3696
+ /* @__PURE__ */ jsx21(Text3, { textStyle: "caption", color: "fg.muted", fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: formatMessage(locale, labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(list.total) }) })
3644
3697
  ] });
3645
3698
  }
3646
3699
 
3647
3700
  // src/utils/settled.ts
3648
- import { useEffect as useEffect6, useState as useState8 } from "react";
3701
+ import { useEffect as useEffect6, useState as useState9 } from "react";
3649
3702
  function useSettledValue(value, ms = 250) {
3650
- const [settled, setSettled] = useState8(value);
3703
+ const [settled, setSettled] = useState9(value);
3651
3704
  useEffect6(() => {
3652
3705
  const timer = setTimeout(() => setSettled(value), ms);
3653
3706
  return () => clearTimeout(timer);
@@ -3656,30 +3709,30 @@ function useSettledValue(value, ms = 250) {
3656
3709
  }
3657
3710
 
3658
3711
  // src/components/SearchPicker.tsx
3659
- import { Fragment as Fragment3, useEffect as useEffect7, useId as useId2, useMemo as useMemo5, useState as useState9 } from "react";
3712
+ import { Fragment as Fragment4, useEffect as useEffect7, useId as useId2, useMemo as useMemo5, useState as useState10 } from "react";
3660
3713
  import { Box as Box2, chakra as chakra9, Input as Input3, Spinner as Spinner2, Text as Text4 } from "@chakra-ui/react";
3661
3714
  import { Plus } from "lucide-react";
3662
- import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
3715
+ import { Fragment as Fragment5, jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
3663
3716
  var CREATE = /* @__PURE__ */ Symbol("create");
3664
3717
  var SHOWN2 = 8;
3665
3718
  function Highlight({ text, query }) {
3666
3719
  const q = query.trim();
3667
- if (!q) return /* @__PURE__ */ jsx21(Fragment4, { children: text });
3720
+ if (!q) return /* @__PURE__ */ jsx22(Fragment5, { children: text });
3668
3721
  const lower = text.toLowerCase();
3669
3722
  const needle = q.toLowerCase();
3670
3723
  const parts = [];
3671
3724
  let at = 0;
3672
3725
  for (let i = lower.indexOf(needle); i >= 0; i = lower.indexOf(needle, at)) {
3673
3726
  if (i > at) parts.push(text.slice(at, i));
3674
- parts.push(/* @__PURE__ */ jsx21(chakra9.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3727
+ parts.push(/* @__PURE__ */ jsx22(chakra9.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3675
3728
  at = i + q.length;
3676
3729
  }
3677
- if (parts.length === 0) return /* @__PURE__ */ jsx21(Fragment4, { children: text });
3730
+ if (parts.length === 0) return /* @__PURE__ */ jsx22(Fragment5, { children: text });
3678
3731
  parts.push(text.slice(at));
3679
- return /* @__PURE__ */ jsx21(Fragment4, { children: parts.map((p, i) => /* @__PURE__ */ jsx21(Fragment3, { children: p }, i)) });
3732
+ return /* @__PURE__ */ jsx22(Fragment5, { children: parts.map((p, i) => /* @__PURE__ */ jsx22(Fragment4, { children: p }, i)) });
3680
3733
  }
3681
3734
  function useSettled(value, ms) {
3682
- const [settled, setSettled] = useState9(value);
3735
+ const [settled, setSettled] = useState10(value);
3683
3736
  useEffect7(() => {
3684
3737
  const timer = setTimeout(() => setSettled(value), ms);
3685
3738
  return () => clearTimeout(timer);
@@ -3707,12 +3760,12 @@ function SearchPicker({
3707
3760
  const labels = useAbpLabels().picker;
3708
3761
  const { locale } = useAbpLocale();
3709
3762
  const messages = { placeholder: labels.placeholder, searching: labels.searching, noMatches: labels.noMatches, noKnown: labels.noKnown, ...own };
3710
- const [creating, setCreating] = useState9(false);
3711
- const [open, setOpen] = useState9(false);
3712
- const [query, setQuery] = useState9("");
3713
- const [active, setActive] = useState9(0);
3714
- const [found, setFound] = useState9(null);
3715
- const [failed, setFailed] = useState9(false);
3763
+ const [creating, setCreating] = useState10(false);
3764
+ const [open, setOpen] = useState10(false);
3765
+ const [query, setQuery] = useState10("");
3766
+ const [active, setActive] = useState10(0);
3767
+ const [found, setFound] = useState10(null);
3768
+ const [failed, setFailed] = useState10(false);
3716
3769
  const settled = useSettled(query, 200);
3717
3770
  const canSearch = search != null;
3718
3771
  useEffect7(() => {
@@ -3775,8 +3828,8 @@ function SearchPicker({
3775
3828
  setQuery("");
3776
3829
  }
3777
3830
  }
3778
- return /* @__PURE__ */ jsxs12(Box2, { position: "relative", width: "full", children: [
3779
- /* @__PURE__ */ jsx21(
3831
+ return /* @__PURE__ */ jsxs13(Box2, { position: "relative", width: "full", children: [
3832
+ /* @__PURE__ */ jsx22(
3780
3833
  Input3,
3781
3834
  {
3782
3835
  id,
@@ -3806,7 +3859,7 @@ function SearchPicker({
3806
3859
  onKeyDown
3807
3860
  }
3808
3861
  ),
3809
- open && /* @__PURE__ */ jsxs12(
3862
+ open && /* @__PURE__ */ jsxs13(
3810
3863
  chakra9.ul,
3811
3864
  {
3812
3865
  id: listId,
@@ -3826,9 +3879,9 @@ function SearchPicker({
3826
3879
  py: "1",
3827
3880
  listStyleType: "none",
3828
3881
  children: [
3829
- query.trim() && matches > 0 && /* @__PURE__ */ jsx21(Text4, { 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 }) }),
3830
- options.length === 0 && /* @__PURE__ */ jsx21(Text4, { as: "li", px: "3", py: "2", textStyle: "caption", color: "fg.muted", children: canSearch && !failed ? found == null ? messages.searching : messages.noMatches : messages.noKnown }),
3831
- options.map((item, i) => /* @__PURE__ */ jsx21(
3882
+ query.trim() && matches > 0 && /* @__PURE__ */ jsx22(Text4, { 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 }) }),
3883
+ options.length === 0 && /* @__PURE__ */ jsx22(Text4, { as: "li", px: "3", py: "2", textStyle: "caption", color: "fg.muted", children: canSearch && !failed ? found == null ? messages.searching : messages.noMatches : messages.noKnown }),
3884
+ options.map((item, i) => /* @__PURE__ */ jsx22(
3832
3885
  chakra9.li,
3833
3886
  {
3834
3887
  role: "option",
@@ -3843,14 +3896,14 @@ function SearchPicker({
3843
3896
  void choose(item);
3844
3897
  },
3845
3898
  "data-create": item === CREATE ? "" : void 0,
3846
- children: item === CREATE ? /* @__PURE__ */ jsxs12(Text4, { as: "span", display: "inline-flex", alignItems: "center", gap: "1.5", textStyle: "body.sm", color: "fg.accent", _icon: { boxSize: "3.5" }, children: [
3847
- creating ? /* @__PURE__ */ jsx21(Spinner2, { size: "xs" }) : /* @__PURE__ */ jsx21(Plus, {}),
3899
+ children: item === CREATE ? /* @__PURE__ */ jsxs13(Text4, { as: "span", display: "inline-flex", alignItems: "center", gap: "1.5", textStyle: "body.sm", color: "fg.accent", _icon: { boxSize: "3.5" }, children: [
3900
+ creating ? /* @__PURE__ */ jsx22(Spinner2, { size: "xs" }) : /* @__PURE__ */ jsx22(Plus, {}),
3848
3901
  create.label(query.trim())
3849
- ] }) : item ? renderOption ? renderOption(item, query) : /* @__PURE__ */ jsx21(Text4, { as: "span", textStyle: "body.sm", children: /* @__PURE__ */ jsx21(Highlight, { text: label(item), query }) }) : /* @__PURE__ */ jsx21(Text4, { as: "span", textStyle: "body.sm", color: "fg.muted", children: clearLabel })
3902
+ ] }) : item ? renderOption ? renderOption(item, query) : /* @__PURE__ */ jsx22(Text4, { as: "span", textStyle: "body.sm", children: /* @__PURE__ */ jsx22(Highlight, { text: label(item), query }) }) : /* @__PURE__ */ jsx22(Text4, { as: "span", textStyle: "body.sm", color: "fg.muted", children: clearLabel })
3850
3903
  },
3851
3904
  item === CREATE ? "create" : item ? getId(item) : "none"
3852
3905
  )),
3853
- !canSearch && messages.limitedHint && /* @__PURE__ */ jsx21(Text4, { as: "li", px: "3", pt: "1.5", pb: "1", textStyle: "caption", color: "fg.subtle", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", children: messages.limitedHint })
3906
+ !canSearch && messages.limitedHint && /* @__PURE__ */ jsx22(Text4, { as: "li", px: "3", pt: "1.5", pb: "1", textStyle: "caption", color: "fg.subtle", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", children: messages.limitedHint })
3854
3907
  ]
3855
3908
  }
3856
3909
  )
@@ -3863,18 +3916,18 @@ function PersonPicker({
3863
3916
  ...rest
3864
3917
  }) {
3865
3918
  const labels = useAbpLabels().picker;
3866
- return /* @__PURE__ */ jsx21(
3919
+ return /* @__PURE__ */ jsx22(
3867
3920
  SearchPicker,
3868
3921
  {
3869
3922
  ...rest,
3870
3923
  getId: (p) => p.id,
3871
3924
  label: (p) => personLabel(p),
3872
- renderOption: (p, typed) => /* @__PURE__ */ jsxs12(Fragment4, { children: [
3873
- /* @__PURE__ */ jsx21(Text4, { as: "span", textStyle: "body.sm", fontWeight: "medium", children: /* @__PURE__ */ jsx21(Highlight, { text: p.displayName || p.username, query: typed }) }),
3925
+ renderOption: (p, typed) => /* @__PURE__ */ jsxs13(Fragment5, { children: [
3926
+ /* @__PURE__ */ jsx22(Text4, { as: "span", textStyle: "body.sm", fontWeight: "medium", children: /* @__PURE__ */ jsx22(Highlight, { text: p.displayName || p.username, query: typed }) }),
3874
3927
  " ",
3875
- /* @__PURE__ */ jsxs12(Text4, { as: "span", textStyle: "caption", color: "fg.muted", dir: "ltr", children: [
3928
+ /* @__PURE__ */ jsxs13(Text4, { as: "span", textStyle: "caption", color: "fg.muted", dir: "ltr", children: [
3876
3929
  "@",
3877
- /* @__PURE__ */ jsx21(Highlight, { text: p.username, query: typed })
3930
+ /* @__PURE__ */ jsx22(Highlight, { text: p.username, query: typed })
3878
3931
  ] }),
3879
3932
  badge?.(p)
3880
3933
  ] }),
@@ -3889,7 +3942,7 @@ function PersonPicker({
3889
3942
  }
3890
3943
  function GroupPicker({ messages, ...rest }) {
3891
3944
  const labels = useAbpLabels().picker;
3892
- return /* @__PURE__ */ jsx21(
3945
+ return /* @__PURE__ */ jsx22(
3893
3946
  SearchPicker,
3894
3947
  {
3895
3948
  known: rest.value ? [rest.value] : [],
@@ -3902,7 +3955,7 @@ function GroupPicker({ messages, ...rest }) {
3902
3955
  }
3903
3956
 
3904
3957
  // src/provider/title.tsx
3905
- import { createContext as createContext10, useContext as useContext10, useEffect as useEffect8, useRef as useRef7, useState as useState10, useSyncExternalStore as useSyncExternalStore2 } from "react";
3958
+ import { createContext as createContext10, useContext as useContext10, useEffect as useEffect8, useRef as useRef7, useState as useState11, useSyncExternalStore as useSyncExternalStore2 } from "react";
3906
3959
 
3907
3960
  // src/provider/title-claims.ts
3908
3961
  var TITLE_SEPARATOR = " \xB7 ";
@@ -3973,18 +4026,18 @@ var TitleStore = class {
3973
4026
  };
3974
4027
 
3975
4028
  // src/provider/title.tsx
3976
- import { jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
4029
+ import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
3977
4030
  var TitleContext = createContext10(null);
3978
4031
  var EMPTY = { parts: [], site: void 0 };
3979
4032
  var noSubscription = () => () => {
3980
4033
  };
3981
4034
  function PageTitleProvider({ site, children }) {
3982
- const [store] = useState10(() => new TitleStore());
4035
+ const [store] = useState11(() => new TitleStore());
3983
4036
  const { parts, site: claimed } = useSyncExternalStore2(store.subscribe, store.current, store.current);
3984
4037
  const { isRtl } = useAbpLocale();
3985
4038
  const text = composeTitle(parts, claimed ?? site, isRtl);
3986
- return /* @__PURE__ */ jsxs13(TitleContext.Provider, { value: store, children: [
3987
- text && /* @__PURE__ */ jsx22("title", { children: text }),
4039
+ return /* @__PURE__ */ jsxs14(TitleContext.Provider, { value: store, children: [
4040
+ text && /* @__PURE__ */ jsx23("title", { children: text }),
3988
4041
  children
3989
4042
  ] });
3990
4043
  }
@@ -4150,7 +4203,7 @@ function useSlideItems(container, token, options = {}) {
4150
4203
  }
4151
4204
 
4152
4205
  // src/motion/components.tsx
4153
- import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
4206
+ import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
4154
4207
  var MotionDiv = chakra10(m2.div, {}, { forwardProps: ["transition"] });
4155
4208
  var MotionSpan2 = chakra10(m2.span, {}, { forwardProps: ["transition"] });
4156
4209
  var MotionLi = chakra10(m2.li, {}, { forwardProps: ["transition"] });
@@ -4164,19 +4217,19 @@ function useArrival(kind) {
4164
4217
  }
4165
4218
  function FadeIn({ from = "fade", delay = 0, children, ...rest }) {
4166
4219
  const hidden = useArrival(from);
4167
- return /* @__PURE__ */ jsx23(MotionDiv, { initial: hidden, animate: SETTLED, transition: { duration: durations2.base, ease: curves.out, delay }, ...rest, children });
4220
+ return /* @__PURE__ */ jsx24(MotionDiv, { initial: hidden, animate: SETTLED, transition: { duration: durations2.base, ease: curves.out, delay }, ...rest, children });
4168
4221
  }
4169
4222
  function Reveal({ from = "rise", itemAs = "div", children, ...rest }) {
4170
4223
  let index = 0;
4171
- return /* @__PURE__ */ jsx23(chakra10.div, { ...rest, children: Children.map(
4224
+ return /* @__PURE__ */ jsx24(chakra10.div, { ...rest, children: Children.map(
4172
4225
  children,
4173
- (child) => isValidElement(child) || child != null && child !== false ? /* @__PURE__ */ jsx23(RevealItem, { as: itemAs, index: index++, from, children: child }) : null
4226
+ (child) => isValidElement(child) || child != null && child !== false ? /* @__PURE__ */ jsx24(RevealItem, { as: itemAs, index: index++, from, children: child }) : null
4174
4227
  ) });
4175
4228
  }
4176
4229
  function RevealItem({ index, from = "rise", as = "div", children, ...rest }) {
4177
4230
  const hidden = useArrival(from);
4178
4231
  const Element2 = as === "span" ? MotionSpan2 : as === "li" ? MotionLi : MotionDiv;
4179
- return /* @__PURE__ */ jsx23(
4232
+ return /* @__PURE__ */ jsx24(
4180
4233
  Element2,
4181
4234
  {
4182
4235
  initial: hidden,
@@ -4189,7 +4242,7 @@ function RevealItem({ index, from = "rise", as = "div", children, ...rest }) {
4189
4242
  }
4190
4243
  function Presence({ show, from = "pop", appear = false, children, ...rest }) {
4191
4244
  const hidden = useArrival(from);
4192
- return /* @__PURE__ */ jsx23(AnimatePresence2, { initial: appear, children: show && /* @__PURE__ */ jsx23(MotionDiv, { initial: hidden, animate: SHOWN, exit: hidden, transition: { duration: durations2.base, ease: curves.out }, ...rest, children }, "presence") });
4245
+ return /* @__PURE__ */ jsx24(AnimatePresence2, { initial: appear, children: show && /* @__PURE__ */ jsx24(MotionDiv, { initial: hidden, animate: SHOWN, exit: hidden, transition: { duration: durations2.base, ease: curves.out }, ...rest, children }, "presence") });
4193
4246
  }
4194
4247
  function PresenceList({ children }) {
4195
4248
  const marker = useRef9(null);
@@ -4199,9 +4252,9 @@ function PresenceList({ children }) {
4199
4252
  parent.current = marker.current?.parentElement ?? null;
4200
4253
  });
4201
4254
  useSlideItems(parent, keys);
4202
- return /* @__PURE__ */ jsxs14(Fragment5, { children: [
4203
- /* @__PURE__ */ jsx23(chakra10.span, { ref: marker, display: "none", "aria-hidden": "true" }),
4204
- /* @__PURE__ */ jsx23(AnimatePresence2, { initial: false, mode: "popLayout", children: Children.map(
4255
+ return /* @__PURE__ */ jsxs15(Fragment6, { children: [
4256
+ /* @__PURE__ */ jsx24(chakra10.span, { ref: marker, display: "none", "aria-hidden": "true" }),
4257
+ /* @__PURE__ */ jsx24(AnimatePresence2, { initial: false, mode: "popLayout", children: Children.map(
4205
4258
  children,
4206
4259
  (child) => isValidElement(child) ? cloneElement(child, { "data-slide": String(child.key) }) : child
4207
4260
  ) })
@@ -4210,7 +4263,7 @@ function PresenceList({ children }) {
4210
4263
  function PresenceItem({ from = "rise", as = "div", children, ...rest }) {
4211
4264
  const hidden = useArrival(from);
4212
4265
  const Element2 = as === "li" ? MotionLi : MotionDiv;
4213
- return /* @__PURE__ */ jsx23(
4266
+ return /* @__PURE__ */ jsx24(
4214
4267
  Element2,
4215
4268
  {
4216
4269
  initial: hidden,
@@ -4225,13 +4278,13 @@ function PresenceItem({ from = "rise", as = "div", children, ...rest }) {
4225
4278
  function SlideList({ token, children, ...rest }) {
4226
4279
  const ref = useRef9(null);
4227
4280
  useSlideItems(ref, token);
4228
- return /* @__PURE__ */ jsx23(chakra10.div, { ref, ...rest, children });
4281
+ return /* @__PURE__ */ jsx24(chakra10.div, { ref, ...rest, children });
4229
4282
  }
4230
4283
  function SlideItem({ slideId, children, ...rest }) {
4231
- return /* @__PURE__ */ jsx23(chakra10.div, { "data-slide": slideId, ...rest, children });
4284
+ return /* @__PURE__ */ jsx24(chakra10.div, { "data-slide": slideId, ...rest, children });
4232
4285
  }
4233
4286
  function Collapse({ open, children, ...rest }) {
4234
- return /* @__PURE__ */ jsx23(AnimatePresence2, { initial: false, children: open && /* @__PURE__ */ jsx23(
4287
+ return /* @__PURE__ */ jsx24(AnimatePresence2, { initial: false, children: open && /* @__PURE__ */ jsx24(
4235
4288
  MotionDiv,
4236
4289
  {
4237
4290
  overflow: "hidden",
@@ -4247,7 +4300,7 @@ function Collapse({ open, children, ...rest }) {
4247
4300
  }
4248
4301
  function Swap({ swapKey, from = "rise", children, ...rest }) {
4249
4302
  const hidden = useArrival(from);
4250
- return /* @__PURE__ */ jsx23(AnimatePresence2, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx23(
4303
+ return /* @__PURE__ */ jsx24(AnimatePresence2, { initial: false, mode: "popLayout", children: /* @__PURE__ */ jsx24(
4251
4304
  MotionSpan2,
4252
4305
  {
4253
4306
  display: "inline-block",
@@ -4289,7 +4342,7 @@ function Counter({ value, format, fromZero = true, ...rest }) {
4289
4342
  frame = requestAnimationFrame(step);
4290
4343
  return () => cancelAnimationFrame(frame);
4291
4344
  }, [value, reduce, locale]);
4292
- return /* @__PURE__ */ jsx23(chakra10.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
4345
+ return /* @__PURE__ */ jsx24(chakra10.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
4293
4346
  }
4294
4347
  var lastMarks = /* @__PURE__ */ new Map();
4295
4348
  function Indicator({ group, css }) {
@@ -4304,10 +4357,10 @@ function Indicator({ group, css }) {
4304
4357
  if (before && !reduce) slide(element, before, now, { scale: true });
4305
4358
  lastMarks.set(group, now);
4306
4359
  });
4307
- return /* @__PURE__ */ jsx23(chakra10.span, { ref, "aria-hidden": "true", css });
4360
+ return /* @__PURE__ */ jsx24(chakra10.span, { ref, "aria-hidden": "true", css });
4308
4361
  }
4309
4362
  function Pressable({ lift = false, css, ...rest }) {
4310
- return /* @__PURE__ */ jsx23(
4363
+ return /* @__PURE__ */ jsx24(
4311
4364
  chakra10.div,
4312
4365
  {
4313
4366
  css: {
@@ -4334,7 +4387,7 @@ function ArriveOnChange({ token, children, ...rest }) {
4334
4387
  }
4335
4388
  ref.current?.animate?.([{ opacity: 0.55 }, { opacity: 1 }], { duration: durations2.quick * 1e3, easing: OUT });
4336
4389
  }, [token]);
4337
- return /* @__PURE__ */ jsx23(chakra10.div, { ref, ...rest, children });
4390
+ return /* @__PURE__ */ jsx24(chakra10.div, { ref, ...rest, children });
4338
4391
  }
4339
4392
  function Nudge({ on, children }) {
4340
4393
  const { reduce } = useMotionSetting();
@@ -4349,28 +4402,28 @@ function Nudge({ on, children }) {
4349
4402
  { duration: durations2.burst * 1e3, easing: OUT }
4350
4403
  );
4351
4404
  }, [on, reduce]);
4352
- return /* @__PURE__ */ jsx23(chakra10.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
4405
+ return /* @__PURE__ */ jsx24(chakra10.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
4353
4406
  }
4354
4407
 
4355
4408
  // src/components/AppShell.tsx
4356
- import { Fragment as Fragment6, useCallback as useCallback8, useState as useState11 } from "react";
4409
+ import { Fragment as Fragment7, useCallback as useCallback8, useState as useState12 } from "react";
4357
4410
  import { chakra as chakra11, Drawer, Portal as Portal7, SkipNavContent, SkipNavLink, useSlotRecipe } from "@chakra-ui/react";
4358
4411
  import { ChevronDown, Menu as MenuIcon, PanelLeftClose, PanelLeftOpen, X } from "lucide-react";
4359
4412
 
4360
4413
  // src/components/Tooltip.tsx
4361
4414
  import { forwardRef as forwardRef4 } from "react";
4362
4415
  import { Portal as Portal6, Tooltip as ChakraTooltip } from "@chakra-ui/react";
4363
- import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
4416
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
4364
4417
  var Tooltip = forwardRef4(function Tooltip2({ content, children, disabled, inactive, openDelay = 400, closeDelay = 0, ...rest }, ref) {
4365
4418
  if (disabled) return children;
4366
- return /* @__PURE__ */ jsxs15(ChakraTooltip.Root, { openDelay, closeDelay, disabled: inactive, ...rest, children: [
4367
- /* @__PURE__ */ jsx24(ChakraTooltip.Trigger, { asChild: true, children }),
4368
- /* @__PURE__ */ jsx24(Portal6, { children: /* @__PURE__ */ jsx24(ChakraTooltip.Positioner, { children: /* @__PURE__ */ jsx24(ChakraTooltip.Content, { ref, children: content }) }) })
4419
+ return /* @__PURE__ */ jsxs16(ChakraTooltip.Root, { openDelay, closeDelay, disabled: inactive, ...rest, children: [
4420
+ /* @__PURE__ */ jsx25(ChakraTooltip.Trigger, { asChild: true, children }),
4421
+ /* @__PURE__ */ jsx25(Portal6, { children: /* @__PURE__ */ jsx25(ChakraTooltip.Positioner, { children: /* @__PURE__ */ jsx25(ChakraTooltip.Content, { ref, children: content }) }) })
4369
4422
  ] });
4370
4423
  });
4371
4424
 
4372
4425
  // src/components/AppShell.tsx
4373
- import { Fragment as Fragment7, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
4426
+ import { Fragment as Fragment8, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
4374
4427
  var MAIN_ID = "abp-main";
4375
4428
  function AppShell({
4376
4429
  brand,
@@ -4389,9 +4442,9 @@ function AppShell({
4389
4442
  }) {
4390
4443
  const labels = useAbpLabels();
4391
4444
  const Link = useLinkComponent();
4392
- const [collapsedState, setCollapsedState] = useState11(defaultCollapsed);
4445
+ const [collapsedState, setCollapsedState] = useState12(defaultCollapsed);
4393
4446
  const collapsed = collapsedProp ?? collapsedState;
4394
- const [mobileOpen, setMobileOpen] = useState11(false);
4447
+ const [mobileOpen, setMobileOpen] = useState12(false);
4395
4448
  const recipe = useSlotRecipe({ key: "abpAppShell" });
4396
4449
  const styles = recipe({ collapsed });
4397
4450
  const mobileStyles = recipe({ collapsed: false });
@@ -4402,38 +4455,38 @@ function AppShell({
4402
4455
  onCollapsedChange?.(next);
4403
4456
  }, [collapsed, onCollapsedChange]);
4404
4457
  const mark2 = brand.mark ?? (typeof brand.name === "string" ? brand.name.slice(0, 1) : null);
4405
- const brandInner = /* @__PURE__ */ jsxs16(Fragment7, { children: [
4406
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
4407
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.brandText, children: /* @__PURE__ */ jsx25(chakra11.span, { css: styles.brandName, children: brand.name }) })
4458
+ const brandInner = /* @__PURE__ */ jsxs17(Fragment8, { children: [
4459
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
4460
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandText, children: /* @__PURE__ */ jsx26(chakra11.span, { css: styles.brandName, children: brand.name }) })
4408
4461
  ] });
4409
- return /* @__PURE__ */ jsxs16(chakra11.div, { css: styles.root, children: [
4410
- /* @__PURE__ */ jsx25(SkipNavLink, { id: MAIN_ID, children: labels.skipToContent }),
4411
- /* @__PURE__ */ jsxs16(chakra11.header, { css: styles.topbar, children: [
4412
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx25(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx25(MenuIcon, {}) }) }),
4413
- brand.href ? /* @__PURE__ */ jsx25(chakra11.span, { asChild: true, css: styles.brand, children: /* @__PURE__ */ jsx25(Link, { href: brand.href, children: brandInner }) }) : /* @__PURE__ */ jsx25(chakra11.span, { css: styles.brand, children: brandInner }),
4414
- topbarStart != null && /* @__PURE__ */ jsx25(chakra11.div, { css: styles.topbarStart, children: topbarStart }),
4415
- /* @__PURE__ */ jsxs16(chakra11.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
4416
- topNav.map((item) => /* @__PURE__ */ jsx25(TopNavItem, { item, styles }, item.id)),
4462
+ return /* @__PURE__ */ jsxs17(chakra11.div, { css: styles.root, children: [
4463
+ /* @__PURE__ */ jsx26(SkipNavLink, { id: MAIN_ID, children: labels.skipToContent }),
4464
+ /* @__PURE__ */ jsxs17(chakra11.header, { css: styles.topbar, children: [
4465
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx26(MenuIcon, {}) }) }),
4466
+ 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 }),
4467
+ topbarStart != null && /* @__PURE__ */ jsx26(chakra11.div, { css: styles.topbarStart, children: topbarStart }),
4468
+ /* @__PURE__ */ jsxs17(chakra11.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
4469
+ topNav.map((item) => /* @__PURE__ */ jsx26(TopNavItem, { item, styles }, item.id)),
4417
4470
  topNavEnd
4418
4471
  ] }),
4419
- /* @__PURE__ */ jsx25(chakra11.div, { css: styles.topbarEnd, children: topbarEnd })
4472
+ /* @__PURE__ */ jsx26(chakra11.div, { css: styles.topbarEnd, children: topbarEnd })
4420
4473
  ] }),
4421
- /* @__PURE__ */ jsxs16(chakra11.div, { css: styles.body, children: [
4422
- hasSidebar && /* @__PURE__ */ jsxs16(chakra11.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
4423
- /* @__PURE__ */ jsx25(FadeIn, { from: "start", display: "flex", flexDirection: "column", minH: "0", flex: "1", children: /* @__PURE__ */ jsx25(SidebarContents, { styles, sidebar, navFooter, collapsed }) }, sidebar.id),
4424
- /* @__PURE__ */ jsxs16(chakra11.div, { css: styles.sidebarFooter, children: [
4425
- /* @__PURE__ */ jsx25(IconButton, { size: "sm", "aria-label": collapsed ? labels.expandSidebar : labels.collapseSidebar, "aria-expanded": !collapsed, onClick: toggle, children: /* @__PURE__ */ jsx25(Swap, { swapKey: collapsed ? "open" : "close", from: "fade", children: /* @__PURE__ */ jsx25(DirectionalIcon, { children: collapsed ? /* @__PURE__ */ jsx25(PanelLeftOpen, {}) : /* @__PURE__ */ jsx25(PanelLeftClose, {}) }) }) }),
4426
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
4474
+ /* @__PURE__ */ jsxs17(chakra11.div, { css: styles.body, children: [
4475
+ hasSidebar && /* @__PURE__ */ jsxs17(chakra11.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
4476
+ /* @__PURE__ */ jsx26(FadeIn, { from: "start", display: "flex", flexDirection: "column", minH: "0", flex: "1", children: /* @__PURE__ */ jsx26(SidebarContents, { styles, sidebar, navFooter, collapsed }) }, sidebar.id),
4477
+ /* @__PURE__ */ jsxs17(chakra11.div, { css: styles.sidebarFooter, children: [
4478
+ /* @__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, {}) }) }) }),
4479
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
4427
4480
  ] })
4428
4481
  ] }),
4429
- /* @__PURE__ */ jsxs16(chakra11.div, { css: styles.main, children: [
4430
- /* @__PURE__ */ jsx25(SkipNavContent, { id: MAIN_ID }),
4431
- /* @__PURE__ */ jsx25(chakra11.main, { css: styles.content, children: /* @__PURE__ */ jsx25(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
4482
+ /* @__PURE__ */ jsxs17(chakra11.div, { css: styles.main, children: [
4483
+ /* @__PURE__ */ jsx26(SkipNavContent, { id: MAIN_ID }),
4484
+ /* @__PURE__ */ jsx26(chakra11.main, { css: styles.content, children: /* @__PURE__ */ jsx26(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
4432
4485
  ] })
4433
4486
  ] }),
4434
- /* @__PURE__ */ jsx25(Drawer.Root, { open: mobileOpen, onOpenChange: (e) => setMobileOpen(e.open), placement: "start", size: "xs", children: /* @__PURE__ */ jsxs16(Portal7, { children: [
4435
- /* @__PURE__ */ jsx25(Drawer.Backdrop, {}),
4436
- /* @__PURE__ */ jsx25(Drawer.Positioner, { children: /* @__PURE__ */ jsx25(Drawer.Content, { "aria-label": labels.navigation, children: /* @__PURE__ */ jsxs16(
4487
+ /* @__PURE__ */ jsx26(Drawer.Root, { open: mobileOpen, onOpenChange: (e) => setMobileOpen(e.open), placement: "start", size: "xs", children: /* @__PURE__ */ jsxs17(Portal7, { children: [
4488
+ /* @__PURE__ */ jsx26(Drawer.Backdrop, {}),
4489
+ /* @__PURE__ */ jsx26(Drawer.Positioner, { children: /* @__PURE__ */ jsx26(Drawer.Content, { "aria-label": labels.navigation, children: /* @__PURE__ */ jsxs17(
4437
4490
  chakra11.div,
4438
4491
  {
4439
4492
  css: mobileStyles.sidebar,
@@ -4442,11 +4495,11 @@ function AppShell({
4442
4495
  if (e.target.closest("a")) setMobileOpen(false);
4443
4496
  },
4444
4497
  children: [
4445
- /* @__PURE__ */ jsxs16(chakra11.div, { css: mobileStyles.drawerHeader, children: [
4446
- /* @__PURE__ */ jsx25(chakra11.span, { css: mobileStyles.brand, children: brandInner }),
4447
- /* @__PURE__ */ jsx25(Drawer.CloseTrigger, { asChild: true, position: "static", children: /* @__PURE__ */ jsx25(IconButton, { size: "sm", "aria-label": labels.close, children: /* @__PURE__ */ jsx25(X, {}) }) })
4498
+ /* @__PURE__ */ jsxs17(chakra11.div, { css: mobileStyles.drawerHeader, children: [
4499
+ /* @__PURE__ */ jsx26(chakra11.span, { css: mobileStyles.brand, children: brandInner }),
4500
+ /* @__PURE__ */ jsx26(Drawer.CloseTrigger, { asChild: true, position: "static", children: /* @__PURE__ */ jsx26(IconButton, { size: "sm", "aria-label": labels.close, children: /* @__PURE__ */ jsx26(X, {}) }) })
4448
4501
  ] }),
4449
- /* @__PURE__ */ jsx25(
4502
+ /* @__PURE__ */ jsx26(
4450
4503
  SidebarContents,
4451
4504
  {
4452
4505
  styles: mobileStyles,
@@ -4471,9 +4524,9 @@ function AppShell({
4471
4524
  }
4472
4525
  function TopNavItem({ item, styles }) {
4473
4526
  const Link = useLinkComponent();
4474
- return /* @__PURE__ */ jsx25(chakra11.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs16(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
4475
- item.current && /* @__PURE__ */ jsx25(Indicator, { group: "abp-top-nav", css: styles.topNavIndicator }),
4476
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.topNavLabel, children: item.label })
4527
+ return /* @__PURE__ */ jsx26(chakra11.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs17(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
4528
+ item.current && /* @__PURE__ */ jsx26(Indicator, { group: "abp-top-nav", css: styles.topNavIndicator }),
4529
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.topNavLabel, children: item.label })
4477
4530
  ] }) });
4478
4531
  }
4479
4532
  function SidebarContents({
@@ -4489,96 +4542,96 @@ function SidebarContents({
4489
4542
  const loading = !!sidebar.loading;
4490
4543
  const arrive = useArriving(loading) ? arriveCss : void 0;
4491
4544
  const placeMark = place ? place.mark ?? place.name.slice(0, 1).toUpperCase() : null;
4492
- const placeInner = place && /* @__PURE__ */ jsxs16(Fragment7, { children: [
4493
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
4494
- /* @__PURE__ */ jsxs16(chakra11.span, { css: styles.placeText, children: [
4495
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.placeName, children: place.name }),
4496
- place.detail != null && /* @__PURE__ */ jsx25(chakra11.span, { css: styles.placeDetail, children: place.detail })
4545
+ const placeInner = place && /* @__PURE__ */ jsxs17(Fragment8, { children: [
4546
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
4547
+ /* @__PURE__ */ jsxs17(chakra11.span, { css: styles.placeText, children: [
4548
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeName, children: place.name }),
4549
+ place.detail != null && /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeDetail, children: place.detail })
4497
4550
  ] })
4498
4551
  ] });
4499
4552
  const headerCss = placeAfter === void 0 ? styles.placeHeader : { ...styles.placeHeader, px: "0" };
4500
- const placeBlock = /* @__PURE__ */ jsxs16(Fragment7, { children: [
4501
- place ? /* @__PURE__ */ jsx25(chakra11.div, { css: [headerCss, arrive], children: place.href ? /* @__PURE__ */ jsx25(chakra11.span, { asChild: true, css: styles.place, children: /* @__PURE__ */ jsx25(Link, { href: place.href, children: placeInner }) }) : /* @__PURE__ */ jsx25(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.
4502
- /* @__PURE__ */ jsx25(chakra11.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs16(chakra11.span, { css: styles.place, pointerEvents: "none", children: [
4503
- /* @__PURE__ */ jsx25(chakra11.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
4504
- /* @__PURE__ */ jsxs16(chakra11.span, { css: styles.placeText, children: [
4505
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.placeName, children: /* @__PURE__ */ jsx25(TextBone, { width: 14 }) }),
4506
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx25(TextBone, { width: 4 }) })
4553
+ const placeBlock = /* @__PURE__ */ jsxs17(Fragment8, { children: [
4554
+ 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.
4555
+ /* @__PURE__ */ jsx26(chakra11.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs17(chakra11.span, { css: styles.place, pointerEvents: "none", children: [
4556
+ /* @__PURE__ */ jsx26(chakra11.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
4557
+ /* @__PURE__ */ jsxs17(chakra11.span, { css: styles.placeText, children: [
4558
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeName, children: /* @__PURE__ */ jsx26(TextBone, { width: 14 }) }),
4559
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx26(TextBone, { width: 4 }) })
4507
4560
  ] })
4508
4561
  ] }) }),
4509
4562
  sidebar.top != null && // Folded away in the rail (and out of reach of the keyboard there).
4510
- /* @__PURE__ */ jsx25(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.sidebarTop, children: sidebar.top }) }) })
4563
+ /* @__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 }) }) })
4511
4564
  ] });
4512
- return /* @__PURE__ */ jsxs16(Fragment7, { children: [
4565
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
4513
4566
  placeAfter === void 0 && placeBlock,
4514
- /* @__PURE__ */ jsxs16(chakra11.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
4515
- sidebar.sections.filter((section) => section.items.length > 0).map((section) => /* @__PURE__ */ jsxs16(Fragment6, { children: [
4516
- /* @__PURE__ */ jsx25(NavSection, { section, styles, collapsed, group: sidebar.id }),
4567
+ /* @__PURE__ */ jsxs17(chakra11.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
4568
+ sidebar.sections.filter((section) => section.items.length > 0).map((section) => /* @__PURE__ */ jsxs17(Fragment7, { children: [
4569
+ /* @__PURE__ */ jsx26(NavSection, { section, styles, collapsed, group: sidebar.id }),
4517
4570
  section.id === placeAfter && placeBlock
4518
4571
  ] }, section.id)),
4519
4572
  loading && // The place's pages, coming: rows of the nav's own items, the same in the rail and out of it (ADR 0061).
4520
- /* @__PURE__ */ jsx25(Loading, { when: true, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navSection, "aria-hidden": "true", children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navSectionItems, children: Array.from({ length: sidebar.skeletonItems ?? 5 }, (_, n) => /* @__PURE__ */ jsxs16(chakra11.span, { css: styles.navItem, pointerEvents: "none", children: [
4521
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx25(Bone, { width: "4", height: "4" }) }),
4522
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx25(TextBone, { width: boneWidth(n, 6, 12) }) })
4573
+ /* @__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__ */ jsxs17(chakra11.span, { css: styles.navItem, pointerEvents: "none", children: [
4574
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx26(Bone, { width: "4", height: "4" }) }),
4575
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx26(TextBone, { width: boneWidth(n, 6, 12) }) })
4523
4576
  ] }, n)) }) }) }),
4524
- navFooter != null && /* @__PURE__ */ jsx25(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.foldInner, children: navFooter }) })
4577
+ navFooter != null && /* @__PURE__ */ jsx26(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx26(chakra11.div, { css: styles.foldInner, children: navFooter }) })
4525
4578
  ] })
4526
4579
  ] });
4527
4580
  }
4528
4581
  function NavSection({ section, styles, collapsed, group }) {
4529
4582
  const holdsCurrent = section.items.some((i) => i.current || i.children?.some((c2) => c2.current));
4530
- const [open, setOpen] = useState11(holdsCurrent || !section.collapsible);
4583
+ const [open, setOpen] = useState12(holdsCurrent || !section.collapsible);
4531
4584
  const shown = !section.collapsible || collapsed || open || holdsCurrent;
4532
- const items = section.items.map((item) => /* @__PURE__ */ jsx25(NavItem, { item, styles, collapsed, group }, item.id));
4533
- return /* @__PURE__ */ jsxs16(chakra11.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
4534
- section.title && /* @__PURE__ */ jsx25(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.foldInner, children: section.collapsible ? /* @__PURE__ */ jsxs16(chakra11.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
4535
- /* @__PURE__ */ jsx25(chakra11.span, { children: section.title }),
4536
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx25(ChevronDown, {}) })
4537
- ] }) : /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
4538
- section.collapsible ? /* @__PURE__ */ jsx25(Collapse, { open: shown, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navSectionItems, children: items }) }) : /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navSectionItems, children: items })
4585
+ const items = section.items.map((item) => /* @__PURE__ */ jsx26(NavItem, { item, styles, collapsed, group }, item.id));
4586
+ return /* @__PURE__ */ jsxs17(chakra11.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
4587
+ 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__ */ jsxs17(chakra11.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
4588
+ /* @__PURE__ */ jsx26(chakra11.span, { children: section.title }),
4589
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx26(ChevronDown, {}) })
4590
+ ] }) : /* @__PURE__ */ jsx26(chakra11.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
4591
+ 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 })
4539
4592
  ] });
4540
4593
  }
4541
4594
  function NavItem({ item, styles, collapsed, group, nested }) {
4542
4595
  const Link = useLinkComponent();
4543
4596
  const { isRtl } = useAbpLocale();
4544
- const link = /* @__PURE__ */ jsx25(chakra11.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs16(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
4545
- item.current && /* @__PURE__ */ jsx25(Indicator, { group: `abp-side-${group}`, css: styles.navItemIndicator }),
4546
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.navItemIcon, "aria-hidden": "true", children: item.icon ?? /* @__PURE__ */ jsx25(chakra11.span, { textStyle: "label", children: item.label.slice(0, 1) }) }),
4547
- /* @__PURE__ */ jsx25(chakra11.span, { css: styles.navItemLabel, children: item.label })
4597
+ const link = /* @__PURE__ */ jsx26(chakra11.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs17(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
4598
+ item.current && /* @__PURE__ */ jsx26(Indicator, { group: `abp-side-${group}`, css: styles.navItemIndicator }),
4599
+ /* @__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) }) }),
4600
+ /* @__PURE__ */ jsx26(chakra11.span, { css: styles.navItemLabel, children: item.label })
4548
4601
  ] }) });
4549
- const own = /* @__PURE__ */ jsx25(Tooltip, { content: item.label, inactive: !collapsed, positioning: { placement: isRtl ? "left" : "right" }, children: link });
4602
+ const own = /* @__PURE__ */ jsx26(Tooltip, { content: item.label, inactive: !collapsed, positioning: { placement: isRtl ? "left" : "right" }, children: link });
4550
4603
  if (!item.children?.length) return own;
4551
- return /* @__PURE__ */ jsxs16(Fragment7, { children: [
4604
+ return /* @__PURE__ */ jsxs17(Fragment8, { children: [
4552
4605
  own,
4553
- /* @__PURE__ */ jsx25(chakra11.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx25(chakra11.div, { css: styles.navChildren, role: "group", "aria-label": item.label, children: item.children.map((child) => /* @__PURE__ */ jsx25(NavItem, { item: child, styles, collapsed, group, nested: true }, child.id)) }) }) })
4606
+ /* @__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)) }) }) })
4554
4607
  ] });
4555
4608
  }
4556
4609
 
4557
4610
  // src/components/CommandPalette.tsx
4558
- import { Fragment as Fragment8, useEffect as useEffect10, useId as useId3, useMemo as useMemo6, useRef as useRef10, useState as useState12 } from "react";
4611
+ import { Fragment as Fragment9, useEffect as useEffect10, useId as useId3, useMemo as useMemo6, useRef as useRef10, useState as useState13 } from "react";
4559
4612
  import { chakra as chakra12, Dialog as Dialog3, HStack as HStack4, Portal as Portal8, Spinner as Spinner3, Stack as Stack4, Text as Text5 } from "@chakra-ui/react";
4560
4613
  import { CornerDownLeft, Search } from "lucide-react";
4561
- import { Fragment as Fragment9, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
4614
+ import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
4562
4615
  function HighlightText({ text, query }) {
4563
4616
  const q = query.trim().toLowerCase();
4564
- if (!q) return /* @__PURE__ */ jsx26(Fragment9, { children: text });
4617
+ if (!q) return /* @__PURE__ */ jsx27(Fragment10, { children: text });
4565
4618
  const lower = text.toLowerCase();
4566
4619
  const parts = [];
4567
4620
  let at = 0;
4568
4621
  for (let i = lower.indexOf(q); i >= 0; i = lower.indexOf(q, at)) {
4569
4622
  if (i > at) parts.push(text.slice(at, i));
4570
- parts.push(/* @__PURE__ */ jsx26(chakra12.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
4623
+ parts.push(/* @__PURE__ */ jsx27(chakra12.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
4571
4624
  at = i + q.length;
4572
4625
  }
4573
- if (parts.length === 0) return /* @__PURE__ */ jsx26(Fragment9, { children: text });
4626
+ if (parts.length === 0) return /* @__PURE__ */ jsx27(Fragment10, { children: text });
4574
4627
  parts.push(text.slice(at));
4575
- return /* @__PURE__ */ jsx26(Fragment9, { children: parts.map((p, i) => /* @__PURE__ */ jsx26(Fragment8, { children: p }, i)) });
4628
+ return /* @__PURE__ */ jsx27(Fragment10, { children: parts.map((p, i) => /* @__PURE__ */ jsx27(Fragment9, { children: p }, i)) });
4576
4629
  }
4577
4630
  function CommandPalette({ open, onOpenChange, search, labels }) {
4578
4631
  const listId = useId3();
4579
- const [text, setText] = useState12("");
4580
- const [groups, setGroups] = useState12(null);
4581
- const [active, setActive] = useState12(0);
4632
+ const [text, setText] = useState13("");
4633
+ const [groups, setGroups] = useState13(null);
4634
+ const [active, setActive] = useState13(0);
4582
4635
  const latest = useRef10(search);
4583
4636
  useEffect10(() => {
4584
4637
  latest.current = search;
@@ -4625,12 +4678,12 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4625
4678
  document.getElementById(`${listId}-${active}`)?.scrollIntoView({ block: "nearest" });
4626
4679
  }, [active, listId]);
4627
4680
  let n = -1;
4628
- return /* @__PURE__ */ jsx26(Dialog3.Root, { open, onOpenChange: (e) => !e.open && close(), placement: "top", size: "lg", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs17(Portal8, { children: [
4629
- /* @__PURE__ */ jsx26(Dialog3.Backdrop, {}),
4630
- /* @__PURE__ */ jsx26(Dialog3.Positioner, { children: /* @__PURE__ */ jsxs17(Dialog3.Content, { mt: "16", "data-command-palette": "", children: [
4631
- /* @__PURE__ */ jsxs17(HStack4, { gap: "2.5", px: "4", borderBottomWidth: "1px", borderColor: "border.muted", color: "fg.muted", _icon: { boxSize: "4.5", flexShrink: 0 }, children: [
4632
- /* @__PURE__ */ jsx26(Search, { "aria-hidden": true }),
4633
- /* @__PURE__ */ jsx26(
4681
+ return /* @__PURE__ */ jsx27(Dialog3.Root, { open, onOpenChange: (e) => !e.open && close(), placement: "top", size: "lg", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs18(Portal8, { children: [
4682
+ /* @__PURE__ */ jsx27(Dialog3.Backdrop, {}),
4683
+ /* @__PURE__ */ jsx27(Dialog3.Positioner, { children: /* @__PURE__ */ jsxs18(Dialog3.Content, { mt: "16", "data-command-palette": "", children: [
4684
+ /* @__PURE__ */ jsxs18(HStack4, { gap: "2.5", px: "4", borderBottomWidth: "1px", borderColor: "border.muted", color: "fg.muted", _icon: { boxSize: "4.5", flexShrink: 0 }, children: [
4685
+ /* @__PURE__ */ jsx27(Search, { "aria-hidden": true }),
4686
+ /* @__PURE__ */ jsx27(
4634
4687
  chakra12.input,
4635
4688
  {
4636
4689
  autoFocus: true,
@@ -4651,17 +4704,17 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4651
4704
  onKeyDown: keys
4652
4705
  }
4653
4706
  ),
4654
- groups == null && /* @__PURE__ */ jsx26(Spinner3, { size: "sm" })
4707
+ groups == null && /* @__PURE__ */ jsx27(Spinner3, { size: "sm" })
4655
4708
  ] }),
4656
- /* @__PURE__ */ jsx26(Dialog3.Body, { p: "2", maxH: "min(60vh, 32rem)", children: /* @__PURE__ */ jsxs17(Stack4, { gap: "2", role: "listbox", id: listId, "aria-label": labels.placeholder, children: [
4657
- groups != null && items.length === 0 && /* @__PURE__ */ jsx26(Text5, { px: "3", py: "6", textAlign: "center", color: "fg.muted", textStyle: "sm", children: text ? labels.noResults : labels.searching }),
4658
- (groups ?? []).map((g) => /* @__PURE__ */ jsxs17(Stack4, { gap: "0.5", role: "group", "aria-label": g.label, children: [
4659
- /* @__PURE__ */ jsx26(Text5, { px: "3", pt: "1", pb: "0.5", textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: g.label }),
4709
+ /* @__PURE__ */ jsx27(Dialog3.Body, { p: "2", maxH: "min(60vh, 32rem)", children: /* @__PURE__ */ jsxs18(Stack4, { gap: "2", role: "listbox", id: listId, "aria-label": labels.placeholder, children: [
4710
+ groups != null && items.length === 0 && /* @__PURE__ */ jsx27(Text5, { px: "3", py: "6", textAlign: "center", color: "fg.muted", textStyle: "sm", children: text ? labels.noResults : labels.searching }),
4711
+ (groups ?? []).map((g) => /* @__PURE__ */ jsxs18(Stack4, { gap: "0.5", role: "group", "aria-label": g.label, children: [
4712
+ /* @__PURE__ */ jsx27(Text5, { px: "3", pt: "1", pb: "0.5", textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: g.label }),
4660
4713
  g.items.map((item) => {
4661
4714
  n += 1;
4662
4715
  const i = n;
4663
4716
  const on = i === active;
4664
- return /* @__PURE__ */ jsxs17(
4717
+ return /* @__PURE__ */ jsxs18(
4665
4718
  HStack4,
4666
4719
  {
4667
4720
  id: `${listId}-${i}`,
@@ -4680,11 +4733,11 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4680
4733
  onClick: () => choose(item),
4681
4734
  children: [
4682
4735
  item.icon,
4683
- /* @__PURE__ */ jsx26(Text5, { as: "span", textStyle: "sm", truncate: true, minW: "0", dir: "auto", children: /* @__PURE__ */ jsx26(HighlightText, { text: item.label, query: text }) }),
4684
- item.detail != null && /* @__PURE__ */ jsx26(Text5, { as: "span", textStyle: "xs", color: "fg.muted", truncate: true, flexShrink: 1, minW: "0", children: item.detail }),
4685
- on && /* @__PURE__ */ jsxs17(HStack4, { as: "span", gap: "1", ms: "auto", flexShrink: 0, textStyle: "xs", color: "fg.muted", _icon: { boxSize: "3.5" }, "aria-hidden": true, children: [
4736
+ /* @__PURE__ */ jsx27(Text5, { as: "span", textStyle: "sm", truncate: true, minW: "0", dir: "auto", children: /* @__PURE__ */ jsx27(HighlightText, { text: item.label, query: text }) }),
4737
+ item.detail != null && /* @__PURE__ */ jsx27(Text5, { as: "span", textStyle: "xs", color: "fg.muted", truncate: true, flexShrink: 1, minW: "0", children: item.detail }),
4738
+ on && /* @__PURE__ */ jsxs18(HStack4, { as: "span", gap: "1", ms: "auto", flexShrink: 0, textStyle: "xs", color: "fg.muted", _icon: { boxSize: "3.5" }, "aria-hidden": true, children: [
4686
4739
  labels.open,
4687
- /* @__PURE__ */ jsx26(CornerDownLeft, {})
4740
+ /* @__PURE__ */ jsx27(CornerDownLeft, {})
4688
4741
  ] })
4689
4742
  ]
4690
4743
  },
@@ -4693,7 +4746,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4693
4746
  })
4694
4747
  ] }, g.id))
4695
4748
  ] }) }),
4696
- /* @__PURE__ */ jsx26(Text5, { px: "4", py: "2", borderTopWidth: "1px", borderColor: "border.muted", textStyle: "xs", color: "fg.muted", children: labels.hint })
4749
+ /* @__PURE__ */ jsx27(Text5, { px: "4", py: "2", borderTopWidth: "1px", borderColor: "border.muted", textStyle: "xs", color: "fg.muted", children: labels.hint })
4697
4750
  ] }) })
4698
4751
  ] }) });
4699
4752
  }
@@ -4701,7 +4754,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
4701
4754
  // src/components/AvatarStack.tsx
4702
4755
  import { Avatar, Box as Box3, HStack as HStack5, Popover as Popover2, Portal as Portal9, Stack as Stack5, Text as Text6 } from "@chakra-ui/react";
4703
4756
  import { Check } from "lucide-react";
4704
- import { Fragment as Fragment10, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
4757
+ import { Fragment as Fragment11, jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
4705
4758
  var PALETTES = ["blue", "teal", "purple", "orange", "pink", "cyan", "green", "red"];
4706
4759
  function avatarPalette(id) {
4707
4760
  let hash = 0;
@@ -4709,7 +4762,7 @@ function avatarPalette(id) {
4709
4762
  return PALETTES[Math.abs(hash) % PALETTES.length];
4710
4763
  }
4711
4764
  function PersonAvatar({ person, selected, inButton }) {
4712
- return /* @__PURE__ */ jsxs18(
4765
+ return /* @__PURE__ */ jsxs19(
4713
4766
  Avatar.Root,
4714
4767
  {
4715
4768
  colorPalette: avatarPalette(person.id),
@@ -4723,8 +4776,8 @@ function PersonAvatar({ person, selected, inButton }) {
4723
4776
  outlineColor: "accent.solid",
4724
4777
  ...inButton ? { "aria-hidden": true } : { role: "img", "aria-label": person.name },
4725
4778
  children: [
4726
- /* @__PURE__ */ jsx27(Avatar.Fallback, { name: person.name, "aria-hidden": true }),
4727
- person.picture && /* @__PURE__ */ jsx27(Avatar.Image, { src: person.picture, alt: "" })
4779
+ /* @__PURE__ */ jsx28(Avatar.Fallback, { name: person.name, "aria-hidden": true }),
4780
+ person.picture && /* @__PURE__ */ jsx28(Avatar.Image, { src: person.picture, alt: "" })
4728
4781
  ]
4729
4782
  }
4730
4783
  );
@@ -4732,21 +4785,21 @@ function PersonAvatar({ person, selected, inButton }) {
4732
4785
  function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, moreTitle, loading: own, selected = [], onToggle }) {
4733
4786
  const placeholders = useLoading(own) && people.length === 0;
4734
4787
  if (placeholders) {
4735
- return /* @__PURE__ */ jsx27(HStack5, { gap: "1", "aria-hidden": true, children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx27(Bone, { circle: true, height: "8" }, i)) });
4788
+ return /* @__PURE__ */ jsx28(HStack5, { gap: "1", "aria-hidden": true, children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx28(Bone, { circle: true, height: "8" }, i)) });
4736
4789
  }
4737
4790
  if (people.length === 0) return null;
4738
4791
  const shown = people.slice(0, max);
4739
4792
  const rest = people.slice(max);
4740
4793
  const picked = (p) => selected.includes(p.id);
4741
4794
  const restPicked = rest.some(picked);
4742
- return /* @__PURE__ */ jsxs18(HStack5, { gap: "1", role: "group", "aria-label": ariaLabel, children: [
4743
- shown.map((p) => /* @__PURE__ */ jsx27(Tooltip, { content: p.detail ? /* @__PURE__ */ jsxs18(Fragment10, { children: [
4795
+ return /* @__PURE__ */ jsxs19(HStack5, { gap: "1", role: "group", "aria-label": ariaLabel, children: [
4796
+ shown.map((p) => /* @__PURE__ */ jsx28(Tooltip, { content: p.detail ? /* @__PURE__ */ jsxs19(Fragment11, { children: [
4744
4797
  p.name,
4745
4798
  " \xB7 ",
4746
4799
  p.detail
4747
4800
  ] }) : p.name, children: onToggle ? (
4748
4801
  // Picked avatars sit above their neighbours so the whole ring shows.
4749
- /* @__PURE__ */ jsx27(
4802
+ /* @__PURE__ */ jsx28(
4750
4803
  Box3,
4751
4804
  {
4752
4805
  as: "button",
@@ -4760,12 +4813,12 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4760
4813
  "aria-pressed": picked(p),
4761
4814
  "aria-label": p.name,
4762
4815
  onClick: () => onToggle(p.id),
4763
- children: /* @__PURE__ */ jsx27(PersonAvatar, { person: p, selected: picked(p), inButton: true })
4816
+ children: /* @__PURE__ */ jsx28(PersonAvatar, { person: p, selected: picked(p), inButton: true })
4764
4817
  }
4765
4818
  )
4766
- ) : /* @__PURE__ */ jsx27(Box3, { display: "inline-flex", children: /* @__PURE__ */ jsx27(PersonAvatar, { person: p }) }) }, p.id)),
4767
- rest.length > 0 && /* @__PURE__ */ jsxs18(Popover2.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
4768
- /* @__PURE__ */ jsx27(Popover2.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs18(
4819
+ ) : /* @__PURE__ */ jsx28(Box3, { display: "inline-flex", children: /* @__PURE__ */ jsx28(PersonAvatar, { person: p }) }) }, p.id)),
4820
+ rest.length > 0 && /* @__PURE__ */ jsxs19(Popover2.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
4821
+ /* @__PURE__ */ jsx28(Popover2.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs19(
4769
4822
  Box3,
4770
4823
  {
4771
4824
  as: "button",
@@ -4794,18 +4847,18 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4794
4847
  ]
4795
4848
  }
4796
4849
  ) }),
4797
- /* @__PURE__ */ jsx27(Portal9, { children: /* @__PURE__ */ jsx27(Popover2.Positioner, { children: /* @__PURE__ */ jsx27(Popover2.Content, { w: "64", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx27(Popover2.Body, { children: /* @__PURE__ */ jsxs18(Stack5, { gap: "3", children: [
4798
- /* @__PURE__ */ jsx27(Popover2.Title, { textStyle: "label", children: moreTitle }),
4799
- /* @__PURE__ */ jsx27(Stack5, { as: "ul", gap: onToggle ? "0.5" : "2", maxH: "64", overflowY: "auto", listStyleType: "none", mx: onToggle ? "-2" : void 0, children: rest.map((p) => {
4800
- const row = /* @__PURE__ */ jsxs18(Fragment10, { children: [
4801
- /* @__PURE__ */ jsx27(PersonAvatar, { person: p, selected: onToggle && picked(p), inButton: !!onToggle }),
4802
- /* @__PURE__ */ jsxs18(Stack5, { gap: "0", minW: "0", flex: "1", textAlign: "start", children: [
4803
- /* @__PURE__ */ jsx27(Text6, { textStyle: "body", truncate: true, children: p.name }),
4804
- p.detail && /* @__PURE__ */ jsx27(Text6, { textStyle: "caption", color: "fg.muted", children: p.detail })
4850
+ /* @__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__ */ jsxs19(Stack5, { gap: "3", children: [
4851
+ /* @__PURE__ */ jsx28(Popover2.Title, { textStyle: "label", children: moreTitle }),
4852
+ /* @__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) => {
4853
+ const row = /* @__PURE__ */ jsxs19(Fragment11, { children: [
4854
+ /* @__PURE__ */ jsx28(PersonAvatar, { person: p, selected: onToggle && picked(p), inButton: !!onToggle }),
4855
+ /* @__PURE__ */ jsxs19(Stack5, { gap: "0", minW: "0", flex: "1", textAlign: "start", children: [
4856
+ /* @__PURE__ */ jsx28(Text6, { textStyle: "body", truncate: true, children: p.name }),
4857
+ p.detail && /* @__PURE__ */ jsx28(Text6, { textStyle: "caption", color: "fg.muted", children: p.detail })
4805
4858
  ] }),
4806
- onToggle && picked(p) && /* @__PURE__ */ jsx27(Box3, { as: "span", color: "accent.fg", flexShrink: 0, "aria-hidden": true, children: /* @__PURE__ */ jsx27(Check, { size: 16 }) })
4859
+ onToggle && picked(p) && /* @__PURE__ */ jsx28(Box3, { as: "span", color: "accent.fg", flexShrink: 0, "aria-hidden": true, children: /* @__PURE__ */ jsx28(Check, { size: 16 }) })
4807
4860
  ] });
4808
- return /* @__PURE__ */ jsx27("li", { children: onToggle ? /* @__PURE__ */ jsx27(
4861
+ return /* @__PURE__ */ jsx28("li", { children: onToggle ? /* @__PURE__ */ jsx28(
4809
4862
  HStack5,
4810
4863
  {
4811
4864
  as: "button",
@@ -4822,7 +4875,7 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4822
4875
  onClick: () => onToggle(p.id),
4823
4876
  children: row
4824
4877
  }
4825
- ) : /* @__PURE__ */ jsx27(HStack5, { gap: "2", minW: "0", children: row }) }, p.id);
4878
+ ) : /* @__PURE__ */ jsx28(HStack5, { gap: "2", minW: "0", children: row }) }, p.id);
4826
4879
  }) })
4827
4880
  ] }) }) }) }) })
4828
4881
  ] })
@@ -4830,7 +4883,7 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
4830
4883
  }
4831
4884
 
4832
4885
  // src/components/DataTable.tsx
4833
- import { Fragment as Fragment11, useMemo as useMemo7, useRef as useRef11, useState as useState13 } from "react";
4886
+ import { Fragment as Fragment12, useMemo as useMemo7, useRef as useRef11, useState as useState14 } from "react";
4834
4887
  import { chakra as chakra16, Menu, Portal as Portal10, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4835
4888
  import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2, ChevronRight as ChevronRight2, ChevronsUpDown, GripVertical } from "lucide-react";
4836
4889
 
@@ -4838,7 +4891,7 @@ import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2, ChevronRight as Chevro
4838
4891
  import { chakra as chakra13, EmptyState as ChakraEmptyState, HStack as HStack6, Text as Text7, VStack } from "@chakra-ui/react";
4839
4892
  import { Inbox } from "lucide-react";
4840
4893
  import { m as m3 } from "motion/react";
4841
- import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
4894
+ import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
4842
4895
  var TONE = {
4843
4896
  neutral: { border: "border.muted", bg: "bg.muted", fg: "fg.muted" },
4844
4897
  accent: { border: "accent.muted", bg: "accent.subtle", fg: "accent.fg" },
@@ -4846,7 +4899,7 @@ var TONE = {
4846
4899
  };
4847
4900
  var MotionSpan3 = chakra13(m3.span, {}, { forwardProps: ["transition"] });
4848
4901
  function Drawing({ children, size, tone }) {
4849
- return /* @__PURE__ */ jsx28(
4902
+ return /* @__PURE__ */ jsx29(
4850
4903
  MotionSpan3,
4851
4904
  {
4852
4905
  display: "inline-flex",
@@ -4868,25 +4921,25 @@ function Drawing({ children, size, tone }) {
4868
4921
  }
4869
4922
  function EmptyState({ title, description, icon, action, secondaryAction, kind, size = "sm", tone: own }) {
4870
4923
  const tone = own ?? (kind === "first-use" ? "accent" : kind === "error" ? "danger" : "neutral");
4871
- const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs19(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
4924
+ const actions = action != null && secondaryAction != null ? /* @__PURE__ */ jsxs20(HStack6, { gap: "2", justify: "center", wrap: "wrap", children: [
4872
4925
  action,
4873
4926
  secondaryAction
4874
4927
  ] }) : action ?? secondaryAction;
4875
4928
  if (size === "xs") {
4876
- return /* @__PURE__ */ jsxs19(HStack6, { gap: "2", justify: "center", py: "4", px: "3", color: "fg.muted", textStyle: "sm", textAlign: "center", _icon: { boxSize: "4", flexShrink: 0 }, children: [
4929
+ return /* @__PURE__ */ jsxs20(HStack6, { gap: "2", justify: "center", py: "4", px: "3", color: "fg.muted", textStyle: "sm", textAlign: "center", _icon: { boxSize: "4", flexShrink: 0 }, children: [
4877
4930
  icon,
4878
- /* @__PURE__ */ jsxs19(VStack, { gap: "0.5", children: [
4879
- /* @__PURE__ */ jsx28(Text7, { as: "span", children: title }),
4880
- description != null && /* @__PURE__ */ jsx28(Text7, { as: "span", textStyle: "caption", color: "fg.subtle", children: description }),
4931
+ /* @__PURE__ */ jsxs20(VStack, { gap: "0.5", children: [
4932
+ /* @__PURE__ */ jsx29(Text7, { as: "span", children: title }),
4933
+ description != null && /* @__PURE__ */ jsx29(Text7, { as: "span", textStyle: "caption", color: "fg.subtle", children: description }),
4881
4934
  actions
4882
4935
  ] })
4883
4936
  ] });
4884
4937
  }
4885
- return /* @__PURE__ */ jsx28(ChakraEmptyState.Root, { size, py: size === "md" ? "16" : "10", px: "6", children: /* @__PURE__ */ jsxs19(ChakraEmptyState.Content, { gap: "4", "data-empty-kind": kind, children: [
4886
- /* @__PURE__ */ jsx28(ChakraEmptyState.Indicator, { children: /* @__PURE__ */ jsx28(Drawing, { size, tone, children: icon ?? /* @__PURE__ */ jsx28(Inbox, {}) }) }),
4887
- /* @__PURE__ */ jsxs19(VStack, { gap: "1.5", textAlign: "center", maxW: "md", children: [
4888
- /* @__PURE__ */ jsx28(ChakraEmptyState.Title, { textStyle: size === "md" ? "lg" : "md", fontWeight: "semibold", color: "fg", children: title }),
4889
- description != null && /* @__PURE__ */ jsx28(ChakraEmptyState.Description, { textStyle: "sm", color: "fg.muted", children: description })
4938
+ return /* @__PURE__ */ jsx29(ChakraEmptyState.Root, { size, py: size === "md" ? "16" : "10", px: "6", children: /* @__PURE__ */ jsxs20(ChakraEmptyState.Content, { gap: "4", "data-empty-kind": kind, children: [
4939
+ /* @__PURE__ */ jsx29(ChakraEmptyState.Indicator, { children: /* @__PURE__ */ jsx29(Drawing, { size, tone, children: icon ?? /* @__PURE__ */ jsx29(Inbox, {}) }) }),
4940
+ /* @__PURE__ */ jsxs20(VStack, { gap: "1.5", textAlign: "center", maxW: "md", children: [
4941
+ /* @__PURE__ */ jsx29(ChakraEmptyState.Title, { textStyle: size === "md" ? "lg" : "md", fontWeight: "semibold", color: "fg", children: title }),
4942
+ description != null && /* @__PURE__ */ jsx29(ChakraEmptyState.Description, { textStyle: "sm", color: "fg.muted", children: description })
4890
4943
  ] }),
4891
4944
  actions
4892
4945
  ] }) });
@@ -4895,7 +4948,7 @@ function EmptyState({ title, description, icon, action, secondaryAction, kind, s
4895
4948
  // src/components/RecordKey.tsx
4896
4949
  import { forwardRef as forwardRef5, ViewTransition } from "react";
4897
4950
  import { chakra as chakra14, useRecipe } from "@chakra-ui/react";
4898
- import { jsx as jsx29 } from "react/jsx-runtime";
4951
+ import { jsx as jsx30 } from "react/jsx-runtime";
4899
4952
  var glideName = (key) => `abp-key-${key.toUpperCase().replace(/[^A-Z0-9_-]/g, "_")}`;
4900
4953
  var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant = "plain", size = "sm", glide = false, loading: own, css, ...rest }, ref) {
4901
4954
  const recipe = useRecipe({ key: "abpRecordKey" });
@@ -4903,26 +4956,26 @@ var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant
4903
4956
  const Link = useLinkComponent();
4904
4957
  const content = children ?? value;
4905
4958
  if (useLoading(own)) {
4906
- return /* @__PURE__ */ jsx29(chakra14.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
4959
+ return /* @__PURE__ */ jsx30(chakra14.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
4907
4960
  }
4908
- const key = href ? /* @__PURE__ */ jsx29(chakra14.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx29(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx29(chakra14.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
4961
+ const key = href ? /* @__PURE__ */ jsx30(chakra14.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx30(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx30(chakra14.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
4909
4962
  if (!glide || !value || typeof ViewTransition === "undefined") return key;
4910
- return /* @__PURE__ */ jsx29(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
4963
+ return /* @__PURE__ */ jsx30(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
4911
4964
  });
4912
4965
 
4913
4966
  // src/components/StatusPill.tsx
4914
4967
  import { forwardRef as forwardRef6 } from "react";
4915
4968
  import { chakra as chakra15, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
4916
- import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
4969
+ import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
4917
4970
  var StatusPill = forwardRef6(function StatusPill2({ tone = "neutral", category, variant = "subtle", size = "sm", dot = true, loading: own, skeletonWidth = 8, children, css, ...rest }, ref) {
4918
4971
  const recipe = useSlotRecipe2({ key: "abpStatusPill" });
4919
4972
  const styles = recipe({ tone: category ?? tone, variant, size });
4920
4973
  const loading = useLoading(own);
4921
4974
  const arriving = useArriving(loading);
4922
4975
  const unknown = children == null || children === "";
4923
- return /* @__PURE__ */ jsxs20(chakra15.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
4924
- dot && /* @__PURE__ */ jsx30(chakra15.span, { css: styles.indicator, "aria-hidden": "true" }),
4925
- loading && unknown ? /* @__PURE__ */ jsx30(chakra15.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
4976
+ return /* @__PURE__ */ jsxs21(chakra15.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
4977
+ dot && /* @__PURE__ */ jsx31(chakra15.span, { css: styles.indicator, "aria-hidden": "true" }),
4978
+ loading && unknown ? /* @__PURE__ */ jsx31(chakra15.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
4926
4979
  ] });
4927
4980
  });
4928
4981
 
@@ -5084,28 +5137,28 @@ function visibleInTree(tree, folded) {
5084
5137
  }
5085
5138
 
5086
5139
  // src/components/DataTable.tsx
5087
- import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
5140
+ import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
5088
5141
  function parentFoldKey(parent) {
5089
5142
  return `${parent}`;
5090
5143
  }
5091
5144
  function placeholder(column, row, at) {
5092
5145
  const kind = column.skeleton ?? (column.numeric ? "number" : "text");
5093
- if (typeof kind === "function") return /* @__PURE__ */ jsx31(Loading, { when: true, children: kind(row) });
5146
+ if (typeof kind === "function") return /* @__PURE__ */ jsx32(Loading, { when: true, children: kind(row) });
5094
5147
  switch (kind) {
5095
5148
  case "none":
5096
5149
  return null;
5097
5150
  case "key":
5098
- return /* @__PURE__ */ jsx31(RecordKey, { loading: true });
5151
+ return /* @__PURE__ */ jsx32(RecordKey, { loading: true });
5099
5152
  case "pill":
5100
- return /* @__PURE__ */ jsx31(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5153
+ return /* @__PURE__ */ jsx32(StatusPill, { loading: true, skeletonWidth: column.skeletonWidth ?? boneWidth(at, 6, 11) });
5101
5154
  case "number":
5102
- return /* @__PURE__ */ jsx31(TextBone, { width: column.skeletonWidth ?? 4 });
5155
+ return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? 4 });
5103
5156
  case "date":
5104
- return /* @__PURE__ */ jsx31(TextBone, { width: column.skeletonWidth ?? 11 });
5157
+ return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? 11 });
5105
5158
  case "person":
5106
- return /* @__PURE__ */ jsx31(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5159
+ return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 9, 15) });
5107
5160
  default:
5108
- return /* @__PURE__ */ jsx31(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5161
+ return /* @__PURE__ */ jsx32(TextBone, { width: column.skeletonWidth ?? boneWidth(at, 8, 24) });
5109
5162
  }
5110
5163
  }
5111
5164
  function typing(target) {
@@ -5149,12 +5202,12 @@ function DataTable({
5149
5202
  const loading = useLoading(own);
5150
5203
  const recipe = useSlotRecipe3({ key: "abpDataTable" });
5151
5204
  const styles = recipe({});
5152
- const [sortState, setSortState] = useState13(defaultSort);
5205
+ const [sortState, setSortState] = useState14(defaultSort);
5153
5206
  const sort = sortProp !== void 0 ? sortProp : sortState;
5154
- const [dragging, setDragging] = useState13(null);
5155
- const [treeFolded, setTreeFolded] = useState13(() => /* @__PURE__ */ new Set());
5156
- const [over2, setOver] = useState13(null);
5157
- const [dropAt, setDropAt] = useState13(null);
5207
+ const [dragging, setDragging] = useState14(null);
5208
+ const [treeFolded, setTreeFolded] = useState14(() => /* @__PURE__ */ new Set());
5209
+ const [over2, setOver] = useState14(null);
5210
+ const [dropAt, setDropAt] = useState14(null);
5158
5211
  const rowRefs = useRef11(/* @__PURE__ */ new Map());
5159
5212
  const collator = useMemo7(() => new Intl.Collator(locale, { numeric: true, sensitivity: "base" }), [locale]);
5160
5213
  const sorted = useMemo7(() => {
@@ -5179,11 +5232,11 @@ function DataTable({
5179
5232
  const align = (c2) => c2.numeric ? "end" : c2.align ?? "start";
5180
5233
  let body;
5181
5234
  if (error) {
5182
- body = /* @__PURE__ */ jsx31(Table.Row, { children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, css: styles.state, children: /* @__PURE__ */ jsx31(InlineAlert, { tone: "danger", children: error }) }) });
5235
+ body = /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.state, children: /* @__PURE__ */ jsx32(InlineAlert, { tone: "danger", children: error }) }) });
5183
5236
  } else if (!sorted || loading && sorted.length === 0) {
5184
- body = Array.from({ length: skeletonRows }, (_, r) => /* @__PURE__ */ jsx31(Table.Row, { "aria-hidden": "true", children: columns.map((c2, i) => /* @__PURE__ */ jsx31(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}`));
5237
+ body = Array.from({ length: skeletonRows }, (_, r) => /* @__PURE__ */ jsx32(Table.Row, { "aria-hidden": "true", children: columns.map((c2, i) => /* @__PURE__ */ jsx32(Table.Cell, { textAlign: align(c2), whiteSpace: c2.nowrap ? "nowrap" : void 0, textStyle: c2.numeric ? "numeric" : void 0, children: placeholder(c2, r, r * columns.length + i) }, c2.id)) }, `skeleton-${r}`));
5185
5238
  } else if (sorted.length === 0) {
5186
- body = /* @__PURE__ */ jsx31(Table.Row, { children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, p: "0", children: typeof empty === "string" || empty == null ? /* @__PURE__ */ jsx31(EmptyState, { title: empty ?? labels.noData }) : empty }) });
5239
+ body = /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, p: "0", children: typeof empty === "string" || empty == null ? /* @__PURE__ */ jsx32(EmptyState, { title: empty ?? labels.noData }) : empty }) });
5187
5240
  } else {
5188
5241
  const treeRows = tree ? visibleInTree(inTree(sorted, tree.keyOf, tree.parentOf, tree.context ?? []), treeFolded) : null;
5189
5242
  const hidden = (group) => grouping.folded.has(group) || grouping.parents != null && grouping.folded.has(parentFoldKey(grouping.parents.of(group)));
@@ -5240,8 +5293,8 @@ function DataTable({
5240
5293
  const sub = renderSubRow?.(row);
5241
5294
  const own2 = renderRow?.(row, index);
5242
5295
  const selected = selection ? selection.selectedId === id : void 0;
5243
- return /* @__PURE__ */ jsxs21(Fragment11, { children: [
5244
- /* @__PURE__ */ jsx31(
5296
+ return /* @__PURE__ */ jsxs22(Fragment12, { children: [
5297
+ /* @__PURE__ */ jsx32(
5245
5298
  Table.Row,
5246
5299
  {
5247
5300
  ref: (el) => {
@@ -5278,13 +5331,13 @@ function DataTable({
5278
5331
  if (moving) place.onPlace(moving, grouping.of(row), side === "before" ? { before: row } : { after: row });
5279
5332
  }
5280
5333
  } : {},
5281
- children: own2 != null ? /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci) => /* @__PURE__ */ jsx31(
5334
+ children: own2 != null ? /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, "data-own-row": "", children: own2 }) : columns.map((c2, ci) => /* @__PURE__ */ jsx32(
5282
5335
  Table.Cell,
5283
5336
  {
5284
5337
  textAlign: align(c2),
5285
5338
  whiteSpace: c2.nowrap ? "nowrap" : void 0,
5286
5339
  textStyle: c2.numeric ? "numeric" : void 0,
5287
- children: ci === 0 && treeRows ? /* @__PURE__ */ jsx31(
5340
+ children: ci === 0 && treeRows ? /* @__PURE__ */ jsx32(
5288
5341
  TreeCell,
5289
5342
  {
5290
5343
  node: treeRows[index],
@@ -5300,8 +5353,8 @@ function DataTable({
5300
5353
  }),
5301
5354
  children: c2.cell(row, index)
5302
5355
  }
5303
- ) : ci === 0 && grouping?.move ? /* @__PURE__ */ jsxs21(chakra16.div, { display: "flex", alignItems: "center", gap: "1", children: [
5304
- /* @__PURE__ */ jsx31(
5356
+ ) : ci === 0 && grouping?.move ? /* @__PURE__ */ jsxs22(chakra16.div, { display: "flex", alignItems: "center", gap: "1", children: [
5357
+ /* @__PURE__ */ jsx32(
5305
5358
  RowGrip,
5306
5359
  {
5307
5360
  move: grouping.move,
@@ -5324,7 +5377,7 @@ function DataTable({
5324
5377
  ))
5325
5378
  }
5326
5379
  ),
5327
- sub != null && /* @__PURE__ */ jsx31(Table.Row, { children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5380
+ sub != null && /* @__PURE__ */ jsx32(Table.Row, { children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, bg: "bg.subtle", children: sub }) })
5328
5381
  ] }, id);
5329
5382
  };
5330
5383
  if (treeRows || !grouping) {
@@ -5336,8 +5389,8 @@ function DataTable({
5336
5389
  body = groups.map((g, gi) => {
5337
5390
  const parent = parents?.of(g.key);
5338
5391
  const parentFolded = parent != null && grouping.folded.has(parentFoldKey(parent));
5339
- const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx31(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs21(chakra16.div, { css: styles.groupHeader, children: [
5340
- /* @__PURE__ */ jsx31(
5392
+ const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx32(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs22(chakra16.div, { css: styles.groupHeader, children: [
5393
+ /* @__PURE__ */ jsx32(
5341
5394
  chakra16.button,
5342
5395
  {
5343
5396
  type: "button",
@@ -5345,19 +5398,19 @@ function DataTable({
5345
5398
  "aria-expanded": !parentFolded,
5346
5399
  "aria-label": parents.foldLabel(parent, parentFolded),
5347
5400
  onClick: () => grouping.onFold(parentFoldKey(parent)),
5348
- children: /* @__PURE__ */ jsx31(ChevronDown2, {})
5401
+ children: /* @__PURE__ */ jsx32(ChevronDown2, {})
5349
5402
  }
5350
5403
  ),
5351
5404
  parents.header(parent, groups.filter((x) => parents.of(x.key) === parent))
5352
5405
  ] }) }) }) : null;
5353
- if (parentFolded) return /* @__PURE__ */ jsx31(Fragment11, { children: parentRow }, `group-${g.key}`);
5406
+ if (parentFolded) return /* @__PURE__ */ jsx32(Fragment12, { children: parentRow }, `group-${g.key}`);
5354
5407
  const folded = grouping.folded.has(g.key);
5355
5408
  const footer = folded ? null : grouping.footer?.(g.key, g.rows);
5356
5409
  const start = at;
5357
5410
  if (!folded) at += g.rows.length;
5358
- return /* @__PURE__ */ jsxs21(Fragment11, { children: [
5411
+ return /* @__PURE__ */ jsxs22(Fragment12, { children: [
5359
5412
  parentRow,
5360
- /* @__PURE__ */ jsx31(
5413
+ /* @__PURE__ */ jsx32(
5361
5414
  Table.Row,
5362
5415
  {
5363
5416
  css: styles.groupRow,
@@ -5382,8 +5435,8 @@ function DataTable({
5382
5435
  if (row) grouping.move.onMove(row, g.key);
5383
5436
  }
5384
5437
  } : {},
5385
- children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs21(chakra16.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
5386
- /* @__PURE__ */ jsx31(
5438
+ children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs22(chakra16.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
5439
+ /* @__PURE__ */ jsx32(
5387
5440
  chakra16.button,
5388
5441
  {
5389
5442
  type: "button",
@@ -5391,7 +5444,7 @@ function DataTable({
5391
5444
  "aria-expanded": !folded,
5392
5445
  "aria-label": grouping.foldLabel(g.key, folded),
5393
5446
  onClick: () => grouping.onFold(g.key),
5394
- children: /* @__PURE__ */ jsx31(ChevronDown2, {})
5447
+ children: /* @__PURE__ */ jsx32(ChevronDown2, {})
5395
5448
  }
5396
5449
  ),
5397
5450
  grouping.header(g.key, g.rows)
@@ -5399,12 +5452,12 @@ function DataTable({
5399
5452
  }
5400
5453
  ),
5401
5454
  !folded && g.rows.map((row, i) => drawRow(row, start + i)),
5402
- footer != null && /* @__PURE__ */ jsx31(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx31(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5455
+ footer != null && /* @__PURE__ */ jsx32(Table.Row, { css: styles.groupFooterRow, children: /* @__PURE__ */ jsx32(Table.Cell, { colSpan: colCount, css: styles.groupFooterCell, children: footer }) })
5403
5456
  ] }, `group-${g.key}`);
5404
5457
  });
5405
5458
  }
5406
5459
  }
5407
- return /* @__PURE__ */ jsx31(chakra16.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx31(chakra16.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs21(
5460
+ return /* @__PURE__ */ jsx32(chakra16.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx32(chakra16.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs22(
5408
5461
  Table.Root,
5409
5462
  {
5410
5463
  size,
@@ -5413,16 +5466,16 @@ function DataTable({
5413
5466
  "aria-label": ariaLabel,
5414
5467
  role: selection ? "grid" : void 0,
5415
5468
  children: [
5416
- /* @__PURE__ */ jsx31(Table.Header, { children: /* @__PURE__ */ jsx31(Table.Row, { children: columns.map((c2) => {
5469
+ /* @__PURE__ */ jsx32(Table.Header, { children: /* @__PURE__ */ jsx32(Table.Row, { children: columns.map((c2) => {
5417
5470
  const sortable = Boolean(c2.sortValue);
5418
5471
  const active = sort?.columnId === c2.id ? sort.direction : null;
5419
- return /* @__PURE__ */ jsx31(
5472
+ return /* @__PURE__ */ jsx32(
5420
5473
  Table.ColumnHeader,
5421
5474
  {
5422
5475
  textAlign: align(c2),
5423
5476
  w: c2.width,
5424
5477
  "aria-sort": sortable ? active === "asc" ? "ascending" : active === "desc" ? "descending" : "none" : void 0,
5425
- children: sortable ? /* @__PURE__ */ jsxs21(
5478
+ children: sortable ? /* @__PURE__ */ jsxs22(
5426
5479
  chakra16.button,
5427
5480
  {
5428
5481
  type: "button",
@@ -5432,7 +5485,7 @@ function DataTable({
5432
5485
  title: active === "asc" ? labels.sortDescending : labels.sortAscending,
5433
5486
  children: [
5434
5487
  c2.header,
5435
- /* @__PURE__ */ jsx31(chakra16.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx31(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx31(ArrowDown, {}) : /* @__PURE__ */ jsx31(ChevronsUpDown, {}) })
5488
+ /* @__PURE__ */ jsx32(chakra16.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx32(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx32(ArrowDown, {}) : /* @__PURE__ */ jsx32(ChevronsUpDown, {}) })
5436
5489
  ]
5437
5490
  }
5438
5491
  ) : c2.header
@@ -5440,7 +5493,7 @@ function DataTable({
5440
5493
  c2.id
5441
5494
  );
5442
5495
  }) }) }),
5443
- /* @__PURE__ */ jsx31(Table.Body, { children: body })
5496
+ /* @__PURE__ */ jsx32(Table.Body, { children: body })
5444
5497
  ]
5445
5498
  }
5446
5499
  ) }) });
@@ -5451,7 +5504,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5451
5504
  const targets = move.targets(row);
5452
5505
  const place = move.place;
5453
5506
  const steps = place ? [prev && { value: UP, label: place.up }, next && { value: DOWN, label: place.down }].filter((x) => Boolean(x)) : [];
5454
- return /* @__PURE__ */ jsxs21(
5507
+ return /* @__PURE__ */ jsxs22(
5455
5508
  Menu.Root,
5456
5509
  {
5457
5510
  lazyMount: true,
@@ -5463,7 +5516,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5463
5516
  else move.onMove(row, e.value);
5464
5517
  },
5465
5518
  children: [
5466
- /* @__PURE__ */ jsx31(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx31(
5519
+ /* @__PURE__ */ jsx32(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx32(
5467
5520
  chakra16.button,
5468
5521
  {
5469
5522
  type: "button",
@@ -5496,18 +5549,18 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5496
5549
  onDragStart();
5497
5550
  },
5498
5551
  onDragEnd,
5499
- children: /* @__PURE__ */ jsx31(GripVertical, {})
5552
+ children: /* @__PURE__ */ jsx32(GripVertical, {})
5500
5553
  }
5501
5554
  ) }),
5502
- /* @__PURE__ */ jsx31(Portal10, { children: /* @__PURE__ */ jsx31(Menu.Positioner, { children: /* @__PURE__ */ jsxs21(Menu.Content, { minW: "44", onClick: (e) => e.stopPropagation(), children: [
5503
- steps.length > 0 && /* @__PURE__ */ jsx31(Menu.ItemGroup, { children: steps.map((x) => /* @__PURE__ */ jsxs21(Menu.Item, { value: x.value, children: [
5504
- x.value === UP ? /* @__PURE__ */ jsx31(ArrowUp, {}) : /* @__PURE__ */ jsx31(ArrowDown, {}),
5555
+ /* @__PURE__ */ jsx32(Portal10, { children: /* @__PURE__ */ jsx32(Menu.Positioner, { children: /* @__PURE__ */ jsxs22(Menu.Content, { minW: "44", onClick: (e) => e.stopPropagation(), children: [
5556
+ steps.length > 0 && /* @__PURE__ */ jsx32(Menu.ItemGroup, { children: steps.map((x) => /* @__PURE__ */ jsxs22(Menu.Item, { value: x.value, children: [
5557
+ x.value === UP ? /* @__PURE__ */ jsx32(ArrowUp, {}) : /* @__PURE__ */ jsx32(ArrowDown, {}),
5505
5558
  x.label
5506
5559
  ] }, x.value)) }),
5507
- steps.length > 0 && targets.length > 0 && /* @__PURE__ */ jsx31(Menu.Separator, {}),
5508
- targets.length > 0 && /* @__PURE__ */ jsxs21(Menu.ItemGroup, { children: [
5509
- /* @__PURE__ */ jsx31(Menu.ItemGroupLabel, { children: move.menuTitle }),
5510
- targets.map((x) => /* @__PURE__ */ jsx31(Menu.Item, { value: x.group, children: x.label }, x.group))
5560
+ steps.length > 0 && targets.length > 0 && /* @__PURE__ */ jsx32(Menu.Separator, {}),
5561
+ targets.length > 0 && /* @__PURE__ */ jsxs22(Menu.ItemGroup, { children: [
5562
+ /* @__PURE__ */ jsx32(Menu.ItemGroupLabel, { children: move.menuTitle }),
5563
+ targets.map((x) => /* @__PURE__ */ jsx32(Menu.Item, { value: x.group, children: x.label }, x.group))
5511
5564
  ] })
5512
5565
  ] }) }) })
5513
5566
  ]
@@ -5515,7 +5568,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
5515
5568
  );
5516
5569
  }
5517
5570
  function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5518
- return /* @__PURE__ */ jsxs21(
5571
+ return /* @__PURE__ */ jsxs22(
5519
5572
  chakra16.div,
5520
5573
  {
5521
5574
  display: "flex",
@@ -5526,7 +5579,7 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5526
5579
  "data-tree-depth": node.depth,
5527
5580
  "data-context": node.context ? "" : void 0,
5528
5581
  children: [
5529
- node.hasChildren ? /* @__PURE__ */ jsx31(
5582
+ node.hasChildren ? /* @__PURE__ */ jsx32(
5530
5583
  chakra16.button,
5531
5584
  {
5532
5585
  type: "button",
@@ -5547,10 +5600,10 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5547
5600
  _hover: { bg: "bg.muted", color: "fg" },
5548
5601
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing" },
5549
5602
  css: { "& svg": { width: "3.5", height: "3.5", transition: "transform 0.15s" } },
5550
- children: folded ? /* @__PURE__ */ jsx31(DirectionalIcon, { children: /* @__PURE__ */ jsx31(ChevronRight2, {}) }) : /* @__PURE__ */ jsx31(ChevronDown2, {})
5603
+ children: folded ? /* @__PURE__ */ jsx32(DirectionalIcon, { children: /* @__PURE__ */ jsx32(ChevronRight2, {}) }) : /* @__PURE__ */ jsx32(ChevronDown2, {})
5551
5604
  }
5552
- ) : /* @__PURE__ */ jsx31(chakra16.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5553
- node.context && /* @__PURE__ */ jsx31(chakra16.span, { srOnly: true, children: contextLabel }),
5605
+ ) : /* @__PURE__ */ jsx32(chakra16.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
5606
+ node.context && /* @__PURE__ */ jsx32(chakra16.span, { srOnly: true, children: contextLabel }),
5554
5607
  children
5555
5608
  ]
5556
5609
  }
@@ -5558,10 +5611,10 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
5558
5611
  }
5559
5612
 
5560
5613
  // src/components/CalendarGrid.tsx
5561
- import { useEffect as useEffect11, useMemo as useMemo8, useRef as useRef12, useState as useState14 } from "react";
5614
+ import { useEffect as useEffect11, useMemo as useMemo8, useRef as useRef12, useState as useState15 } from "react";
5562
5615
  import { Box as Box4, chakra as chakra17, Grid as Grid2, Stack as Stack6, Text as Text8 } from "@chakra-ui/react";
5563
5616
  import { DndContext, DragOverlay, PointerSensor, useDraggable, useDroppable, useSensor, useSensors } from "@dnd-kit/core";
5564
- import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
5617
+ import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
5565
5618
  var addDays = (day, n) => {
5566
5619
  const d = /* @__PURE__ */ new Date(`${day}T00:00:00Z`);
5567
5620
  d.setUTCDate(d.getUTCDate() + n);
@@ -5586,7 +5639,7 @@ function CalendarGrid({
5586
5639
  }) {
5587
5640
  const loading = useLoading(own);
5588
5641
  const sensors = useSensors(useSensor(PointerSensor, { activationConstraint: { distance: 6 } }));
5589
- const [active, setActive] = useState14(null);
5642
+ const [active, setActive] = useState15(null);
5590
5643
  const root = useRef12(null);
5591
5644
  const refocus = useRef12(null);
5592
5645
  useEffect11(() => {
@@ -5622,7 +5675,7 @@ function CalendarGrid({
5622
5675
  const rtl = getComputedStyle(e.currentTarget).direction === "rtl";
5623
5676
  onMove(item, addDays(item.start, rtl && Math.abs(step) === 1 ? -step : step));
5624
5677
  }
5625
- return /* @__PURE__ */ jsxs22(
5678
+ return /* @__PURE__ */ jsxs23(
5626
5679
  DndContext,
5627
5680
  {
5628
5681
  sensors,
@@ -5630,12 +5683,12 @@ function CalendarGrid({
5630
5683
  onDragEnd: end,
5631
5684
  onDragCancel: () => setActive(null),
5632
5685
  children: [
5633
- /* @__PURE__ */ jsxs22(Box4, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
5634
- /* @__PURE__ */ jsx32(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx32(Text8, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
5635
- Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx32(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) => {
5686
+ /* @__PURE__ */ jsxs23(Box4, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
5687
+ /* @__PURE__ */ jsx33(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx33(Text8, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
5688
+ Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx33(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", borderBottomWidth: week < days.length / 7 - 1 ? "1px" : 0, borderColor: "border", children: days.slice(week * 7, week * 7 + 7).map((day, i) => {
5636
5689
  const list = byDay.get(day) ?? [];
5637
5690
  const shown = tall ? list : list.slice(0, maxPerDay);
5638
- return /* @__PURE__ */ jsxs22(
5691
+ return /* @__PURE__ */ jsxs23(
5639
5692
  DayCell,
5640
5693
  {
5641
5694
  day,
@@ -5647,9 +5700,9 @@ function CalendarGrid({
5647
5700
  label: dayLabel(day),
5648
5701
  dragging: !!active,
5649
5702
  children: [
5650
- loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx32(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
5651
- !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx32(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
5652
- list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx32(
5703
+ loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx33(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
5704
+ !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx33(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
5705
+ list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx33(
5653
5706
  chakra17.button,
5654
5707
  {
5655
5708
  type: "button",
@@ -5666,21 +5719,21 @@ function CalendarGrid({
5666
5719
  "data-more": "",
5667
5720
  children: more(list.length - shown.length)
5668
5721
  }
5669
- ) : /* @__PURE__ */ jsx32(Text8, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
5722
+ ) : /* @__PURE__ */ jsx33(Text8, { textStyle: "caption", color: "fg.muted", px: "1", children: more(list.length - shown.length) }))
5670
5723
  ]
5671
5724
  },
5672
5725
  day
5673
5726
  );
5674
5727
  }) }, week))
5675
5728
  ] }),
5676
- /* @__PURE__ */ jsx32(DragOverlay, { children: active ? /* @__PURE__ */ jsx32(Box4, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
5729
+ /* @__PURE__ */ jsx33(DragOverlay, { children: active ? /* @__PURE__ */ jsx33(Box4, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true, continued: false }) }) : null })
5677
5730
  ]
5678
5731
  }
5679
5732
  );
5680
5733
  }
5681
5734
  function DayCell({ day, name, dim, today, tall, last, label, dragging, children }) {
5682
5735
  const { setNodeRef, isOver } = useDroppable({ id: `day:${day}` });
5683
- return /* @__PURE__ */ jsxs22(
5736
+ return /* @__PURE__ */ jsxs23(
5684
5737
  Stack6,
5685
5738
  {
5686
5739
  ref: setNodeRef,
@@ -5698,7 +5751,7 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
5698
5751
  outlineOffset: "-3px",
5699
5752
  "data-day": day,
5700
5753
  children: [
5701
- /* @__PURE__ */ jsx32(
5754
+ /* @__PURE__ */ jsx33(
5702
5755
  Text8,
5703
5756
  {
5704
5757
  textStyle: "caption",
@@ -5724,7 +5777,7 @@ function DayCell({ day, name, dim, today, tall, last, label, dragging, children
5724
5777
  }
5725
5778
  function Chip({ item, continued, onKeyDown, children }) {
5726
5779
  const { attributes, listeners: listeners2, setNodeRef, isDragging } = useDraggable({ id: continued ? `${item.id}:cont` : item.id, disabled: item.movable === false || continued });
5727
- return /* @__PURE__ */ jsx32(
5780
+ return /* @__PURE__ */ jsx33(
5728
5781
  Box4,
5729
5782
  {
5730
5783
  ref: setNodeRef,
@@ -5748,7 +5801,7 @@ function Chip({ item, continued, onKeyDown, children }) {
5748
5801
  import { Box as Box5, Flex as Flex2, Text as Text9 } from "@chakra-ui/react";
5749
5802
  import { Chart as ChakraChart, useChart } from "@chakra-ui/charts";
5750
5803
  import { Area, AreaChart, Bar, BarChart, CartesianGrid, Legend, Line, LineChart, ResponsiveContainer, Tooltip as Tooltip3, XAxis, YAxis } from "recharts";
5751
- import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
5804
+ import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
5752
5805
  var PALETTE = ["teal.solid", "blue.solid", "orange.solid", "purple.solid", "green.solid", "pink.solid", "cyan.solid", "yellow.solid", "red.solid"];
5753
5806
  function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height = 280, formatX, formatValue, loading: own }) {
5754
5807
  const { isRtl: rtl } = useAbpLocale();
@@ -5759,29 +5812,29 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5759
5812
  });
5760
5813
  const xs = new Set(data.map((row) => String(row[x])));
5761
5814
  const label = (value) => value == null ? "" : formatX && xs.has(String(value)) ? formatX(String(value)) : String(value);
5762
- const xAxis = /* @__PURE__ */ jsx33(XAxis, { dataKey: chart.key(x), reversed: rtl, tickLine: false, axisLine: false, tickFormatter: label, minTickGap: 12 });
5763
- const yAxis = /* @__PURE__ */ jsx33(YAxis, { orientation: rtl ? "right" : "left", tickLine: false, axisLine: false, width: 44, tickFormatter: formatValue, allowDecimals: false });
5764
- const grid = /* @__PURE__ */ jsx33(CartesianGrid, { stroke: chart.color("border.muted"), vertical: false });
5765
- const tooltip = /* @__PURE__ */ jsx33(Tooltip3, { cursor: { fill: chart.color("bg.muted") }, animationDuration: 100, content: /* @__PURE__ */ jsx33(ChakraChart.Tooltip, {}), labelFormatter: label });
5766
- const legend = series.length > 1 ? /* @__PURE__ */ jsx33(Legend, { content: /* @__PURE__ */ jsx33(ChakraChart.Legend, {}) }) : null;
5815
+ const xAxis = /* @__PURE__ */ jsx34(XAxis, { dataKey: chart.key(x), reversed: rtl, tickLine: false, axisLine: false, tickFormatter: label, minTickGap: 12 });
5816
+ const yAxis = /* @__PURE__ */ jsx34(YAxis, { orientation: rtl ? "right" : "left", tickLine: false, axisLine: false, width: 44, tickFormatter: formatValue, allowDecimals: false });
5817
+ const grid = /* @__PURE__ */ jsx34(CartesianGrid, { stroke: chart.color("border.muted"), vertical: false });
5818
+ const tooltip = /* @__PURE__ */ jsx34(Tooltip3, { cursor: { fill: chart.color("bg.muted") }, animationDuration: 100, content: /* @__PURE__ */ jsx34(ChakraChart.Tooltip, {}), labelFormatter: label });
5819
+ const legend = series.length > 1 ? /* @__PURE__ */ jsx34(Legend, { content: /* @__PURE__ */ jsx34(ChakraChart.Legend, {}) }) : null;
5767
5820
  if (loading) {
5768
- return /* @__PURE__ */ jsx33(Box5, { "aria-hidden": "true", children: /* @__PURE__ */ jsx33(Flex2, { h: typeof height === "number" ? `${height}px` : height, align: "flex-end", gap: kind === "bar" ? "2" : "0.5", ps: "12", pe: "2", pb: "8", pt: "2", children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ jsx33(Bone, { flex: "1", width: "auto", height: `${28 + i * 37 % 60}%`, borderRadius: kind === "bar" ? "l1" : "0" }, i)) }) });
5821
+ return /* @__PURE__ */ jsx34(Box5, { "aria-hidden": "true", children: /* @__PURE__ */ jsx34(Flex2, { h: typeof height === "number" ? `${height}px` : height, align: "flex-end", gap: kind === "bar" ? "2" : "0.5", ps: "12", pe: "2", pb: "8", pt: "2", children: Array.from({ length: 12 }, (_, i) => /* @__PURE__ */ jsx34(Bone, { flex: "1", width: "auto", height: `${28 + i * 37 % 60}%`, borderRadius: kind === "bar" ? "l1" : "0" }, i)) }) });
5769
5822
  }
5770
- return /* @__PURE__ */ jsxs23(Box5, { children: [
5771
- /* @__PURE__ */ jsx33(ChakraChart.Root, { h: typeof height === "number" ? `${height}px` : height, aspectRatio: "auto", chart, "aria-hidden": true, children: /* @__PURE__ */ jsx33(ResponsiveContainer, { width: "100%", height: "100%", children: kind === "bar" ? /* @__PURE__ */ jsxs23(BarChart, { data: chart.data, children: [
5823
+ return /* @__PURE__ */ jsxs24(Box5, { children: [
5824
+ /* @__PURE__ */ jsx34(ChakraChart.Root, { h: typeof height === "number" ? `${height}px` : height, aspectRatio: "auto", chart, "aria-hidden": true, children: /* @__PURE__ */ jsx34(ResponsiveContainer, { width: "100%", height: "100%", children: kind === "bar" ? /* @__PURE__ */ jsxs24(BarChart, { data: chart.data, children: [
5772
5825
  grid,
5773
5826
  xAxis,
5774
5827
  yAxis,
5775
5828
  tooltip,
5776
5829
  legend,
5777
- chart.series.map((s) => /* @__PURE__ */ jsx33(Bar, { isAnimationActive: false, dataKey: chart.key(s.name), fill: chart.color(s.color), stackId: s.stackId, radius: stacked ? 0 : 3 }, s.name))
5778
- ] }) : kind === "area" ? /* @__PURE__ */ jsxs23(AreaChart, { data: chart.data, children: [
5830
+ chart.series.map((s) => /* @__PURE__ */ jsx34(Bar, { isAnimationActive: false, dataKey: chart.key(s.name), fill: chart.color(s.color), stackId: s.stackId, radius: stacked ? 0 : 3 }, s.name))
5831
+ ] }) : kind === "area" ? /* @__PURE__ */ jsxs24(AreaChart, { data: chart.data, children: [
5779
5832
  grid,
5780
5833
  xAxis,
5781
5834
  yAxis,
5782
5835
  tooltip,
5783
5836
  legend,
5784
- chart.series.map((s) => /* @__PURE__ */ jsx33(
5837
+ chart.series.map((s) => /* @__PURE__ */ jsx34(
5785
5838
  Area,
5786
5839
  {
5787
5840
  isAnimationActive: false,
@@ -5795,13 +5848,13 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5795
5848
  },
5796
5849
  s.name
5797
5850
  ))
5798
- ] }) : /* @__PURE__ */ jsxs23(LineChart, { data: chart.data, children: [
5851
+ ] }) : /* @__PURE__ */ jsxs24(LineChart, { data: chart.data, children: [
5799
5852
  grid,
5800
5853
  xAxis,
5801
5854
  yAxis,
5802
5855
  tooltip,
5803
5856
  legend,
5804
- chart.series.map((s) => /* @__PURE__ */ jsx33(
5857
+ chart.series.map((s) => /* @__PURE__ */ jsx34(
5805
5858
  Line,
5806
5859
  {
5807
5860
  isAnimationActive: false,
@@ -5816,26 +5869,26 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
5816
5869
  s.name
5817
5870
  ))
5818
5871
  ] }) }) }),
5819
- /* @__PURE__ */ jsxs23(Box5, { as: "table", srOnly: true, children: [
5820
- /* @__PURE__ */ jsx33("caption", { children: ariaLabel }),
5821
- /* @__PURE__ */ jsx33("thead", { children: /* @__PURE__ */ jsxs23("tr", { children: [
5822
- /* @__PURE__ */ jsx33("th", { scope: "col", children: "" }),
5823
- series.map((s) => /* @__PURE__ */ jsx33("th", { scope: "col", children: s.label }, s.key))
5872
+ /* @__PURE__ */ jsxs24(Box5, { as: "table", srOnly: true, children: [
5873
+ /* @__PURE__ */ jsx34("caption", { children: ariaLabel }),
5874
+ /* @__PURE__ */ jsx34("thead", { children: /* @__PURE__ */ jsxs24("tr", { children: [
5875
+ /* @__PURE__ */ jsx34("th", { scope: "col", children: "" }),
5876
+ series.map((s) => /* @__PURE__ */ jsx34("th", { scope: "col", children: s.label }, s.key))
5824
5877
  ] }) }),
5825
- /* @__PURE__ */ jsx33("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsxs23("tr", { children: [
5826
- /* @__PURE__ */ jsx33("th", { scope: "row", children: formatX ? formatX(String(row[x])) : String(row[x]) }),
5827
- series.map((s) => /* @__PURE__ */ jsx33("td", { children: row[s.key] == null ? "" : formatValue ? formatValue(Number(row[s.key])) : String(row[s.key]) }, s.key))
5878
+ /* @__PURE__ */ jsx34("tbody", { children: data.map((row, i) => /* @__PURE__ */ jsxs24("tr", { children: [
5879
+ /* @__PURE__ */ jsx34("th", { scope: "row", children: formatX ? formatX(String(row[x])) : String(row[x]) }),
5880
+ series.map((s) => /* @__PURE__ */ jsx34("td", { children: row[s.key] == null ? "" : formatValue ? formatValue(Number(row[s.key])) : String(row[s.key]) }, s.key))
5828
5881
  ] }, i)) })
5829
5882
  ] }),
5830
- data.length === 0 && /* @__PURE__ */ jsx33(Text9, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
5883
+ data.length === 0 && /* @__PURE__ */ jsx34(Text9, { textStyle: "caption", color: "fg.muted", children: "\u2014" })
5831
5884
  ] });
5832
5885
  }
5833
5886
 
5834
5887
  // src/components/DashboardGrid.tsx
5835
- import { useRef as useRef13, useState as useState15 } from "react";
5888
+ import { useRef as useRef13, useState as useState16 } from "react";
5836
5889
  import { Box as Box6, chakra as chakra18 } from "@chakra-ui/react";
5837
5890
  import { GripVertical as GripVertical2, MoveDiagonal2 } from "lucide-react";
5838
- import { Fragment as Fragment12, jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
5891
+ import { Fragment as Fragment13, jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
5839
5892
  var GAP = 16;
5840
5893
  var PLACEHOLDER_TILES = [
5841
5894
  { id: "skeleton-1", x: 0, y: 0, w: 6, h: 3 },
@@ -5883,8 +5936,8 @@ function DashboardGrid({
5883
5936
  const placeholders = useLoading(own) && items.length === 0;
5884
5937
  const ref = useRef13(null);
5885
5938
  const gesture = useRef13(null);
5886
- const [preview, setPreview] = useState15(null);
5887
- const [active, setActive] = useState15(null);
5939
+ const [preview, setPreview] = useState16(null);
5940
+ const [active, setActive] = useState16(null);
5888
5941
  const layout = preview ?? items;
5889
5942
  const byId = new Map(items.map((i) => [i.id, i]));
5890
5943
  const instructionsId = `${ariaLabel.replace(/\W+/g, "-")}-grid-help`;
@@ -5956,9 +6009,9 @@ function DashboardGrid({
5956
6009
  _hover: { color: "fg", bg: "bg.muted" },
5957
6010
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "1px" }
5958
6011
  };
5959
- return /* @__PURE__ */ jsxs24(Box6, { children: [
5960
- editing && /* @__PURE__ */ jsx34(chakra18.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
5961
- /* @__PURE__ */ jsxs24(
6012
+ return /* @__PURE__ */ jsxs25(Box6, { children: [
6013
+ editing && /* @__PURE__ */ jsx35(chakra18.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
6014
+ /* @__PURE__ */ jsxs25(
5962
6015
  Box6,
5963
6016
  {
5964
6017
  ref,
@@ -5972,7 +6025,7 @@ function DashboardGrid({
5972
6025
  onPointerUp: end,
5973
6026
  onPointerCancel: end,
5974
6027
  children: [
5975
- placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx34(
6028
+ placeholders && PLACEHOLDER_TILES.map((tile) => /* @__PURE__ */ jsx35(
5976
6029
  Box6,
5977
6030
  {
5978
6031
  role: "listitem",
@@ -5990,7 +6043,7 @@ function DashboardGrid({
5990
6043
  if (!item) return null;
5991
6044
  const shown = { ...item, ...place };
5992
6045
  const moving = active === item.id;
5993
- return /* @__PURE__ */ jsxs24(
6046
+ return /* @__PURE__ */ jsxs25(
5994
6047
  Box6,
5995
6048
  {
5996
6049
  role: "listitem",
@@ -6003,8 +6056,8 @@ function DashboardGrid({
6003
6056
  transition: moving ? void 0 : "all 120ms ease",
6004
6057
  children: [
6005
6058
  renderItem(shown),
6006
- editing && /* @__PURE__ */ jsxs24(Fragment12, { children: [
6007
- /* @__PURE__ */ jsx34(
6059
+ editing && /* @__PURE__ */ jsxs25(Fragment13, { children: [
6060
+ /* @__PURE__ */ jsx35(
6008
6061
  chakra18.button,
6009
6062
  {
6010
6063
  type: "button",
@@ -6018,10 +6071,10 @@ function DashboardGrid({
6018
6071
  "aria-describedby": instructionsId,
6019
6072
  onPointerDown: (e) => start(e, item, "move"),
6020
6073
  onKeyDown: (e) => key(e, item, "move"),
6021
- children: /* @__PURE__ */ jsx34(GripVertical2, { size: 14, "aria-hidden": true })
6074
+ children: /* @__PURE__ */ jsx35(GripVertical2, { size: 14, "aria-hidden": true })
6022
6075
  }
6023
6076
  ),
6024
- /* @__PURE__ */ jsx34(
6077
+ /* @__PURE__ */ jsx35(
6025
6078
  chakra18.button,
6026
6079
  {
6027
6080
  type: "button",
@@ -6035,7 +6088,7 @@ function DashboardGrid({
6035
6088
  "aria-describedby": instructionsId,
6036
6089
  onPointerDown: (e) => start(e, item, "resize"),
6037
6090
  onKeyDown: (e) => key(e, item, "resize"),
6038
- children: /* @__PURE__ */ jsx34(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6091
+ children: /* @__PURE__ */ jsx35(MoveDiagonal2, { size: 14, "aria-hidden": true, style: isRtl ? { transform: "scaleX(-1)" } : void 0 })
6039
6092
  }
6040
6093
  )
6041
6094
  ] })
@@ -6052,7 +6105,7 @@ function DashboardGrid({
6052
6105
 
6053
6106
  // src/components/CategoryProgress.tsx
6054
6107
  import { Box as Box7, HStack as HStack7 } from "@chakra-ui/react";
6055
- import { jsx as jsx35 } from "react/jsx-runtime";
6108
+ import { jsx as jsx36 } from "react/jsx-runtime";
6056
6109
  function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "aria-label": ariaLabel }) {
6057
6110
  const loading = useLoading(own);
6058
6111
  const total = loading ? 0 : todo + inProgress + done;
@@ -6061,7 +6114,7 @@ function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "
6061
6114
  { key: "inProgress", value: inProgress },
6062
6115
  { key: "todo", value: todo }
6063
6116
  ];
6064
- return /* @__PURE__ */ jsx35(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__ */ jsx35(Box7, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
6117
+ return /* @__PURE__ */ jsx36(HStack7, { role: "img", "aria-label": ariaLabel, gap: "0", h: size === "sm" ? "1.5" : "2", w: "full", minW: "16", rounded: "full", overflow: "hidden", bg: "bg.muted", css: loading ? shineCss : void 0, children: total > 0 && parts.filter((p) => p.value > 0).map((p) => /* @__PURE__ */ jsx36(Box7, { h: "full", flexBasis: `${p.value / total * 100}%`, flexShrink: 0, bg: `statusCategory.${p.key}.solid` }, p.key)) });
6065
6118
  }
6066
6119
 
6067
6120
  // src/components/AttentionChip.tsx
@@ -6069,7 +6122,7 @@ import { chakra as chakra20 } from "@chakra-ui/react";
6069
6122
 
6070
6123
  // src/components/CountBadge.tsx
6071
6124
  import { chakra as chakra19 } from "@chakra-ui/react";
6072
- import { jsx as jsx36 } from "react/jsx-runtime";
6125
+ import { jsx as jsx37 } from "react/jsx-runtime";
6073
6126
  var TONES2 = {
6074
6127
  neutral: { bg: "bg.emphasized", color: "fg" },
6075
6128
  accent: { bg: "accent.subtle", color: "accent.fg" },
@@ -6079,7 +6132,7 @@ var TONES2 = {
6079
6132
  function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...rest }) {
6080
6133
  const fmt = useFormatters();
6081
6134
  const loading = useLoading(own);
6082
- return /* @__PURE__ */ jsx36(
6135
+ return /* @__PURE__ */ jsx37(
6083
6136
  chakra19.span,
6084
6137
  {
6085
6138
  display: "inline-flex",
@@ -6104,10 +6157,10 @@ function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...res
6104
6157
  }
6105
6158
 
6106
6159
  // src/components/AttentionChip.tsx
6107
- import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
6160
+ import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
6108
6161
  function AttentionChip({ count, children, tone = "neutral", pressed, onClick, disabled, loading: own }) {
6109
6162
  const loading = useLoading(own);
6110
- return /* @__PURE__ */ jsxs25(
6163
+ return /* @__PURE__ */ jsxs26(
6111
6164
  chakra20.button,
6112
6165
  {
6113
6166
  type: "button",
@@ -6133,7 +6186,7 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6133
6186
  disabled: disabled || loading,
6134
6187
  onClick,
6135
6188
  children: [
6136
- /* @__PURE__ */ jsx37(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6189
+ /* @__PURE__ */ jsx38(CountBadge, { loading, value: count, tone: count === 0 ? "neutral" : tone === "neutral" ? "neutral" : tone }),
6137
6190
  children
6138
6191
  ]
6139
6192
  }
@@ -6142,11 +6195,11 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
6142
6195
 
6143
6196
  // src/components/IconTile.tsx
6144
6197
  import { chakra as chakra21 } from "@chakra-ui/react";
6145
- import { jsx as jsx38 } from "react/jsx-runtime";
6198
+ import { jsx as jsx39 } from "react/jsx-runtime";
6146
6199
  var SIZES = { sm: { box: "6", icon: "3.5" }, md: { box: "8", icon: "4" }, lg: { box: "10", icon: "5" } };
6147
6200
  function IconTile({ children, size = "md", active = false, palette: palette3 }) {
6148
6201
  const s = SIZES[size];
6149
- return /* @__PURE__ */ jsx38(
6202
+ return /* @__PURE__ */ jsx39(
6150
6203
  chakra21.span,
6151
6204
  {
6152
6205
  display: "inline-flex",
@@ -6170,16 +6223,16 @@ function IconTile({ children, size = "md", active = false, palette: palette3 })
6170
6223
 
6171
6224
  // src/components/PersonChip.tsx
6172
6225
  import { Avatar as Avatar2, chakra as chakra22 } from "@chakra-ui/react";
6173
- import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
6226
+ import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
6174
6227
  var SIZES2 = { xs: "5", sm: "6", md: "8" };
6175
6228
  function PersonChip({ id, name, picture, compact = false, size = "sm", loading: own }) {
6176
6229
  if (useLoading(own)) {
6177
- return /* @__PURE__ */ jsxs26(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
6178
- /* @__PURE__ */ jsx39(Bone, { circle: true, height: SIZES2[size] }),
6179
- !compact && /* @__PURE__ */ jsx39(TextBone, { width: 12 })
6230
+ return /* @__PURE__ */ jsxs27(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
6231
+ /* @__PURE__ */ jsx40(Bone, { circle: true, height: SIZES2[size] }),
6232
+ !compact && /* @__PURE__ */ jsx40(TextBone, { width: 12 })
6180
6233
  ] });
6181
6234
  }
6182
- const avatar = /* @__PURE__ */ jsxs26(
6235
+ const avatar = /* @__PURE__ */ jsxs27(
6183
6236
  Avatar2.Root,
6184
6237
  {
6185
6238
  colorPalette: avatarPalette(id),
@@ -6192,15 +6245,15 @@ function PersonChip({ id, name, picture, compact = false, size = "sm", loading:
6192
6245
  flexShrink: 0,
6193
6246
  ...compact ? { role: "img", "aria-label": name, title: name } : { "aria-hidden": true },
6194
6247
  children: [
6195
- /* @__PURE__ */ jsx39(Avatar2.Fallback, { name }),
6196
- picture && /* @__PURE__ */ jsx39(Avatar2.Image, { src: picture, alt: "" })
6248
+ /* @__PURE__ */ jsx40(Avatar2.Fallback, { name }),
6249
+ picture && /* @__PURE__ */ jsx40(Avatar2.Image, { src: picture, alt: "" })
6197
6250
  ]
6198
6251
  }
6199
6252
  );
6200
6253
  if (compact) return avatar;
6201
- return /* @__PURE__ */ jsxs26(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6254
+ return /* @__PURE__ */ jsxs27(chakra22.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
6202
6255
  avatar,
6203
- /* @__PURE__ */ jsx39(chakra22.span, { truncate: true, children: name })
6256
+ /* @__PURE__ */ jsx40(chakra22.span, { truncate: true, children: name })
6204
6257
  ] });
6205
6258
  }
6206
6259
 
@@ -6217,11 +6270,11 @@ function priorityLevel(rank, of) {
6217
6270
  }
6218
6271
 
6219
6272
  // src/components/PriorityMark.tsx
6220
- import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
6273
+ import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
6221
6274
  function PriorityMark({ rank, of, children, title, loading }) {
6222
- if (useLoading(loading)) return /* @__PURE__ */ jsx40(TextBone, { width: 7 });
6275
+ if (useLoading(loading)) return /* @__PURE__ */ jsx41(TextBone, { width: 7 });
6223
6276
  const { bars, palette: palette3 } = priorityLevel(rank, of);
6224
- return /* @__PURE__ */ jsxs27(
6277
+ return /* @__PURE__ */ jsxs28(
6225
6278
  chakra23.span,
6226
6279
  {
6227
6280
  display: "inline-flex",
@@ -6233,7 +6286,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
6233
6286
  "aria-label": children == null ? title : void 0,
6234
6287
  whiteSpace: "nowrap",
6235
6288
  children: [
6236
- /* @__PURE__ */ jsx40(chakra23.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx40(
6289
+ /* @__PURE__ */ jsx41(chakra23.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx41(
6237
6290
  chakra23.rect,
6238
6291
  {
6239
6292
  x: i * 3 + 0.5,
@@ -6245,7 +6298,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
6245
6298
  },
6246
6299
  i
6247
6300
  )) }),
6248
- children != null && /* @__PURE__ */ jsx40(chakra23.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6301
+ children != null && /* @__PURE__ */ jsx41(chakra23.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
6249
6302
  ]
6250
6303
  }
6251
6304
  );
@@ -6391,21 +6444,21 @@ function abpListSource(request, path, options = {}) {
6391
6444
  var pageCount = (total, pageSize) => Math.max(1, Math.ceil(total / Math.max(1, pageSize)));
6392
6445
 
6393
6446
  // src/lists/useListState.ts
6394
- import { useCallback as useCallback10, useEffect as useEffect12, useMemo as useMemo9, useRef as useRef15, useState as useState16 } from "react";
6447
+ import { useCallback as useCallback10, useEffect as useEffect12, useMemo as useMemo9, useRef as useRef15, useState as useState17 } from "react";
6395
6448
  function useListState(source, options = {}) {
6396
6449
  const { searchDelay = 250 } = options;
6397
- const [query, setQuery] = useState16(() => emptyQuery(options.initial));
6398
- const [typed, setTyped] = useState16(query.search);
6399
- const [rows, setRows] = useState16(void 0);
6400
- const [total, setTotal] = useState16(0);
6401
- const [busy, setBusy] = useState16(true);
6402
- const [error, setError] = useState16(null);
6403
- const [round, setRound] = useState16(0);
6450
+ const [query, setQuery] = useState17(() => emptyQuery(options.initial));
6451
+ const [typed, setTyped] = useState17(query.search);
6452
+ const [rows, setRows] = useState17(void 0);
6453
+ const [total, setTotal] = useState17(0);
6454
+ const [busy, setBusy] = useState17(true);
6455
+ const [error, setError] = useState17(null);
6456
+ const [round, setRound] = useState17(0);
6404
6457
  const told = useRef15(options.onQueryChange);
6405
6458
  useEffect12(() => {
6406
6459
  told.current = options.onQueryChange;
6407
6460
  });
6408
- const [shownKey, setShownKey] = useState16(source.key);
6461
+ const [shownKey, setShownKey] = useState17(source.key);
6409
6462
  if (shownKey !== source.key) {
6410
6463
  setShownKey(source.key);
6411
6464
  setRows(void 0);
@@ -6485,9 +6538,9 @@ function useAreaListSource(area, path, options = {}) {
6485
6538
  }
6486
6539
 
6487
6540
  // src/components/FormDialog.tsx
6488
- import { useRef as useRef16, useState as useState17 } from "react";
6541
+ import { useRef as useRef16, useState as useState18 } from "react";
6489
6542
  import { chakra as chakra24, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal11, Stack as Stack7 } from "@chakra-ui/react";
6490
- import { jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
6543
+ import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
6491
6544
  var isControl = (el) => el instanceof HTMLInputElement || el instanceof HTMLSelectElement || el instanceof HTMLTextAreaElement;
6492
6545
  function invalidControls(form) {
6493
6546
  return [...form.elements].filter((el) => isControl(el) && !el.disabled && el.willValidate && !el.checkValidity());
@@ -6510,7 +6563,7 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6510
6563
  const labels = useAbpLabels();
6511
6564
  const { locale } = useAbpLocale();
6512
6565
  const summary = useRef16(null);
6513
- const [problems, setProblems] = useState17([]);
6566
+ const [problems, setProblems] = useState18([]);
6514
6567
  const typed = useRef16(/* @__PURE__ */ new WeakSet());
6515
6568
  const tried = useRef16(false);
6516
6569
  const describe2 = (el) => ({ el, label: labelOf(el), message: el.validity.valueMissing ? labels.formRequired : el.validationMessage });
@@ -6535,9 +6588,9 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6535
6588
  mark(e.target, wrong);
6536
6589
  if (problems.length > 0) setProblems(invalidControls(e.currentTarget).map(describe2));
6537
6590
  }
6538
- return /* @__PURE__ */ jsx41(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs28(Portal11, { children: [
6539
- /* @__PURE__ */ jsx41(Dialog4.Backdrop, {}),
6540
- /* @__PURE__ */ jsx41(Dialog4.Positioner, { children: /* @__PURE__ */ jsx41(Dialog4.Content, { asChild: true, children: /* @__PURE__ */ jsxs28(
6591
+ return /* @__PURE__ */ jsx42(Dialog4.Root, { open, onOpenChange: (e) => onOpenChange(e.open), size, placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs29(Portal11, { children: [
6592
+ /* @__PURE__ */ jsx42(Dialog4.Backdrop, {}),
6593
+ /* @__PURE__ */ jsx42(Dialog4.Positioner, { children: /* @__PURE__ */ jsx42(Dialog4.Content, { asChild: true, children: /* @__PURE__ */ jsxs29(
6541
6594
  "form",
6542
6595
  {
6543
6596
  onSubmit: hideSubmit ? (e) => e.preventDefault() : submit,
@@ -6545,10 +6598,10 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6545
6598
  onInput: (e) => typed.current.add(e.target),
6546
6599
  noValidate: true,
6547
6600
  children: [
6548
- /* @__PURE__ */ jsx41(Dialog4.Header, { children: /* @__PURE__ */ jsx41(Dialog4.Title, { children: title }) }),
6549
- /* @__PURE__ */ jsx41(Dialog4.Body, { children: /* @__PURE__ */ jsxs28(Stack7, { gap: "field", children: [
6550
- description != null && /* @__PURE__ */ jsx41(Dialog4.Description, { children: description }),
6551
- problems.length > 0 && /* @__PURE__ */ jsx41(chakra24.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx41(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx41(chakra24.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx41("li", { children: /* @__PURE__ */ jsx41(
6601
+ /* @__PURE__ */ jsx42(Dialog4.Header, { children: /* @__PURE__ */ jsx42(Dialog4.Title, { children: title }) }),
6602
+ /* @__PURE__ */ jsx42(Dialog4.Body, { children: /* @__PURE__ */ jsxs29(Stack7, { gap: "field", children: [
6603
+ description != null && /* @__PURE__ */ jsx42(Dialog4.Description, { children: description }),
6604
+ problems.length > 0 && /* @__PURE__ */ jsx42(chakra24.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx42(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx42(chakra24.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx42("li", { children: /* @__PURE__ */ jsx42(
6552
6605
  chakra24.button,
6553
6606
  {
6554
6607
  type: "button",
@@ -6563,13 +6616,13 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6563
6616
  }
6564
6617
  ) }, i)) }) }) }),
6565
6618
  children,
6566
- /* @__PURE__ */ jsx41(InlineAlert, { tone: "danger", children: error })
6619
+ /* @__PURE__ */ jsx42(InlineAlert, { tone: "danger", children: error })
6567
6620
  ] }) }),
6568
- /* @__PURE__ */ jsxs28(Dialog4.Footer, { children: [
6569
- /* @__PURE__ */ jsx41(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx41(Button, { variant: "secondary", children: labels.cancel }) }),
6570
- !hideSubmit && /* @__PURE__ */ jsx41(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
6621
+ /* @__PURE__ */ jsxs29(Dialog4.Footer, { children: [
6622
+ /* @__PURE__ */ jsx42(Dialog4.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(Button, { variant: "secondary", children: labels.cancel }) }),
6623
+ !hideSubmit && /* @__PURE__ */ jsx42(Button, { type: "submit", variant: "primary", loading: busy, disabled: submitDisabled, children: submitLabel })
6571
6624
  ] }),
6572
- /* @__PURE__ */ jsx41(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx41(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6625
+ /* @__PURE__ */ jsx42(Dialog4.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx42(CloseButton2, { size: "sm", "aria-label": labels.close }) })
6573
6626
  ]
6574
6627
  }
6575
6628
  ) }) })
@@ -6577,36 +6630,36 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
6577
6630
  }
6578
6631
 
6579
6632
  // src/settings/SettingsLayout.tsx
6580
- import { useState as useState18 } from "react";
6633
+ import { useState as useState19 } from "react";
6581
6634
  import { Text as Text10 } from "@chakra-ui/react";
6582
6635
 
6583
6636
  // src/components/SearchInput.tsx
6584
6637
  import { forwardRef as forwardRef7 } from "react";
6585
6638
  import { Input as Input4, InputGroup } from "@chakra-ui/react";
6586
6639
  import { Search as Search2 } from "lucide-react";
6587
- import { jsx as jsx42 } from "react/jsx-runtime";
6640
+ import { jsx as jsx43 } from "react/jsx-runtime";
6588
6641
  var SearchInput = forwardRef7(function SearchInput2({ size = "md", maxW, ...rest }, ref) {
6589
6642
  const skeleton = useLoading();
6590
- return /* @__PURE__ */ jsx42(
6643
+ return /* @__PURE__ */ jsx43(
6591
6644
  InputGroup,
6592
6645
  {
6593
- startElement: /* @__PURE__ */ jsx42(Search2, {}),
6646
+ startElement: /* @__PURE__ */ jsx43(Search2, {}),
6594
6647
  startOffset: "-0.25rem",
6595
6648
  startElementProps: { color: "fg.subtle", _icon: { boxSize: "4" } },
6596
6649
  maxW,
6597
6650
  borderRadius: "l2",
6598
6651
  "aria-hidden": skeleton || void 0,
6599
6652
  css: skeleton ? ghostCss : void 0,
6600
- children: /* @__PURE__ */ jsx42(Input4, { ref, type: "search", size, ...rest })
6653
+ children: /* @__PURE__ */ jsx43(Input4, { ref, type: "search", size, ...rest })
6601
6654
  }
6602
6655
  );
6603
6656
  });
6604
6657
 
6605
6658
  // src/settings/SettingsLayout.tsx
6606
- import { jsx as jsx43 } from "react/jsx-runtime";
6659
+ import { jsx as jsx44 } from "react/jsx-runtime";
6607
6660
  var isCurrent = (pathname, href) => pathname === href || pathname.startsWith(`${href}/`);
6608
6661
  function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav = [], children, ...shell }) {
6609
- const [find, setFind] = useState18("");
6662
+ const [find, setFind] = useState19("");
6610
6663
  const q = find.trim().toLocaleLowerCase();
6611
6664
  const sections = area.map(({ section, pages }) => ({
6612
6665
  id: section.key,
@@ -6614,17 +6667,17 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6614
6667
  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))
6615
6668
  }));
6616
6669
  const found = !q || sections.some((s) => s.items.length > 0);
6617
- return /* @__PURE__ */ jsx43(
6670
+ return /* @__PURE__ */ jsx44(
6618
6671
  AppShell,
6619
6672
  {
6620
6673
  ...shell,
6621
6674
  topNav,
6622
6675
  sidebar: {
6623
6676
  id: sidebarId,
6624
- top: /* @__PURE__ */ jsx43(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
6677
+ top: /* @__PURE__ */ jsx44(SearchInput, { size: "sm", value: find, onChange: (e) => setFind(e.target.value), placeholder: labels.find, "aria-label": labels.find }),
6625
6678
  sections
6626
6679
  },
6627
- navFooter: !found ? /* @__PURE__ */ jsx43(Text10, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
6680
+ navFooter: !found ? /* @__PURE__ */ jsx44(Text10, { textStyle: "caption", color: "fg.muted", px: "2", children: labels.noSetting }) : void 0,
6628
6681
  children
6629
6682
  }
6630
6683
  );
@@ -6632,7 +6685,7 @@ function SettingsLayout({ area, pathname, sidebarId = "settings", labels, topNav
6632
6685
 
6633
6686
  // src/components/SegmentedControl.tsx
6634
6687
  import { SegmentGroup } from "@chakra-ui/react";
6635
- import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
6688
+ import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
6636
6689
  function SegmentedControl({
6637
6690
  "aria-label": ariaLabel,
6638
6691
  items,
@@ -6644,7 +6697,7 @@ function SegmentedControl({
6644
6697
  }) {
6645
6698
  const loading = useLoading(own);
6646
6699
  const h = size === "sm" ? "7" : "8";
6647
- return /* @__PURE__ */ jsxs29(
6700
+ return /* @__PURE__ */ jsxs30(
6648
6701
  SegmentGroup.Root,
6649
6702
  {
6650
6703
  size: size === "sm" ? "sm" : "md",
@@ -6661,8 +6714,8 @@ function SegmentedControl({
6661
6714
  w: fitted ? "full" : void 0,
6662
6715
  "data-segmented": "",
6663
6716
  children: [
6664
- /* @__PURE__ */ jsx44(SegmentGroup.Indicator, {}),
6665
- items.map((item) => /* @__PURE__ */ jsxs29(
6717
+ /* @__PURE__ */ jsx45(SegmentGroup.Indicator, {}),
6718
+ items.map((item) => /* @__PURE__ */ jsxs30(
6666
6719
  SegmentGroup.Item,
6667
6720
  {
6668
6721
  value: item.value,
@@ -6683,9 +6736,9 @@ function SegmentedControl({
6683
6736
  _icon: { boxSize: "4", flexShrink: 0 },
6684
6737
  children: [
6685
6738
  item.icon,
6686
- /* @__PURE__ */ jsx44(SegmentGroup.ItemText, { children: item.label }),
6687
- item.count != null && /* @__PURE__ */ jsx44(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
6688
- /* @__PURE__ */ jsx44(SegmentGroup.ItemHiddenInput, {})
6739
+ /* @__PURE__ */ jsx45(SegmentGroup.ItemText, { children: item.label }),
6740
+ item.count != null && /* @__PURE__ */ jsx45(CountBadge, { value: item.count, tone: item.value === value ? "accent" : "neutral" }),
6741
+ /* @__PURE__ */ jsx45(SegmentGroup.ItemHiddenInput, {})
6689
6742
  ]
6690
6743
  },
6691
6744
  item.value
@@ -6696,7 +6749,7 @@ function SegmentedControl({
6696
6749
  }
6697
6750
 
6698
6751
  // src/components/KanbanBoard.tsx
6699
- import { useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef17, useState as useState19 } from "react";
6752
+ import { useEffect as useEffect13, useLayoutEffect as useLayoutEffect3, useMemo as useMemo10, useRef as useRef17, useState as useState20 } from "react";
6700
6753
  import { Box as Box8, chakra as chakra25, HStack as HStack8, Stack as Stack8, Text as Text11 } from "@chakra-ui/react";
6701
6754
  import { Check as Check2, ChevronsLeft, ChevronsRight, GripVertical as GripVertical3 } from "lucide-react";
6702
6755
  import {
@@ -6733,13 +6786,13 @@ function between(cell, from, to) {
6733
6786
  }
6734
6787
 
6735
6788
  // src/components/KanbanBoard.tsx
6736
- import { Fragment as Fragment13, jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
6789
+ import { Fragment as Fragment14, jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
6737
6790
  var SKELETON_CARDS = [3, 2, 4, 1, 2];
6738
6791
  function PlaceholderCard({ index }) {
6739
- return /* @__PURE__ */ jsxs30(Box8, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
6740
- /* @__PURE__ */ jsx45(Box8, { mb: "1", children: /* @__PURE__ */ jsx45(RecordKey, { loading: true }) }),
6741
- /* @__PURE__ */ jsx45(Text11, { textStyle: "body.sm", children: /* @__PURE__ */ jsx45(TextBone, { width: boneWidth(index, 14, 34) }) }),
6742
- /* @__PURE__ */ jsx45(HStack8, { mt: "2", children: /* @__PURE__ */ jsx45(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
6792
+ return /* @__PURE__ */ jsxs31(Box8, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
6793
+ /* @__PURE__ */ jsx46(Box8, { mb: "1", children: /* @__PURE__ */ jsx46(RecordKey, { loading: true }) }),
6794
+ /* @__PURE__ */ jsx46(Text11, { textStyle: "body.sm", children: /* @__PURE__ */ jsx46(TextBone, { width: boneWidth(index, 14, 34) }) }),
6795
+ /* @__PURE__ */ jsx46(HStack8, { mt: "2", children: /* @__PURE__ */ jsx46(StatusPill, { loading: true, skeletonWidth: boneWidth(index, 5, 9) }) })
6743
6796
  ] });
6744
6797
  }
6745
6798
  var cellId = (lane, column) => `cell:${lane}::${column}`;
@@ -6772,8 +6825,8 @@ function KanbanBoard({
6772
6825
  }) {
6773
6826
  const loading = useLoading(own);
6774
6827
  const [folded, fold] = useFolded(foldKey);
6775
- const [movingColumn, setMovingColumn] = useState19(null);
6776
- const [overColumn, setOverColumn] = useState19(null);
6828
+ const [movingColumn, setMovingColumn] = useState20(null);
6829
+ const [overColumn, setOverColumn] = useState20(null);
6777
6830
  const movingCol = columns.find((c2) => c2.id === movingColumn);
6778
6831
  const movingName = movingCol?.name ?? (typeof movingCol?.title === "string" ? movingCol.title : movingColumn ?? "");
6779
6832
  const reorder = (id, to) => {
@@ -6785,16 +6838,16 @@ function KanbanBoard({
6785
6838
  ids.splice(to, 0, id);
6786
6839
  onReorderColumns(ids);
6787
6840
  };
6788
- const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx45(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
6841
+ const shownColumns = loading && columns.length === 0 ? Array.from({ length: skeletonColumns }, (_, n) => ({ id: `skeleton-${n}`, title: /* @__PURE__ */ jsx46(TextBone, { width: boneWidth(n, 6, 12) }) })) : columns;
6789
6842
  const rows = lanes && lanes.length > 0 ? lanes : [{ id: "", title: null }];
6790
6843
  const sensors = useSensors2(
6791
6844
  useSensor2(PointerSensor2, { activationConstraint: { distance: 6 } }),
6792
6845
  useSensor2(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates })
6793
6846
  );
6794
6847
  const laned = !!lanes && lanes.length > 0;
6795
- const [active, setActive] = useState19(null);
6796
- const [carried, setCarried] = useState19([]);
6797
- const [pending2, setPending] = useState19(null);
6848
+ const [active, setActive] = useState20(null);
6849
+ const [carried, setCarried] = useState20([]);
6850
+ const [pending2, setPending] = useState20(null);
6798
6851
  const shown = useMemo10(() => pending2 && pending2.on === items ? withMoves(items, pending2.ids, pending2.move, !laned) : items, [items, pending2, laned]);
6799
6852
  const riding = useMemo10(() => new Set(carried.map((i) => i.id)), [carried]);
6800
6853
  const anchor = useRef17(null);
@@ -6897,7 +6950,7 @@ function KanbanBoard({
6897
6950
  document.addEventListener("keydown", key);
6898
6951
  return () => document.removeEventListener("keydown", key);
6899
6952
  }, [onSelect, selected, active]);
6900
- return /* @__PURE__ */ jsxs30(
6953
+ return /* @__PURE__ */ jsxs31(
6901
6954
  DndContext2,
6902
6955
  {
6903
6956
  sensors,
@@ -6910,7 +6963,7 @@ function KanbanBoard({
6910
6963
  },
6911
6964
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
6912
6965
  children: [
6913
- /* @__PURE__ */ jsx45(
6966
+ /* @__PURE__ */ jsx46(
6914
6967
  Box8,
6915
6968
  {
6916
6969
  ref: region,
@@ -6923,7 +6976,7 @@ function KanbanBoard({
6923
6976
  if (Date.now() - draggedAt.current < 300) return;
6924
6977
  if (e.target instanceof Element && !e.target.closest("[data-card], a, button, input, select, textarea")) clear();
6925
6978
  },
6926
- children: /* @__PURE__ */ jsx45(Loading, { when: loading, children: /* @__PURE__ */ jsxs30(
6979
+ children: /* @__PURE__ */ jsx46(Loading, { when: loading, children: /* @__PURE__ */ jsxs31(
6927
6980
  Box8,
6928
6981
  {
6929
6982
  display: "grid",
@@ -6934,7 +6987,7 @@ function KanbanBoard({
6934
6987
  shownColumns.map((c2) => {
6935
6988
  const isFolded = folded.has(c2.id);
6936
6989
  const name = c2.name ?? (typeof c2.title === "string" ? c2.title : c2.id);
6937
- return /* @__PURE__ */ jsxs30(
6990
+ return /* @__PURE__ */ jsxs31(
6938
6991
  Box8,
6939
6992
  {
6940
6993
  position: "sticky",
@@ -6959,7 +7012,7 @@ function KanbanBoard({
6959
7012
  }
6960
7013
  } : {},
6961
7014
  children: [
6962
- overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx45(
7015
+ overColumn === c2.id && movingColumn && movingColumn !== c2.id && /* @__PURE__ */ jsx46(
6963
7016
  Box8,
6964
7017
  {
6965
7018
  position: "absolute",
@@ -6976,10 +7029,10 @@ function KanbanBoard({
6976
7029
  roundedTop: "l3",
6977
7030
  bg: "bg.panel",
6978
7031
  "data-drop-column": "",
6979
- children: /* @__PURE__ */ jsx45(Text11, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
7032
+ children: /* @__PURE__ */ jsx46(Text11, { textStyle: "caption", fontWeight: "bold", color: "fg.accent", truncate: true, children: dropColumnLabel(movingName) })
6980
7033
  }
6981
7034
  ),
6982
- isFolded ? /* @__PURE__ */ jsx45(
7035
+ isFolded ? /* @__PURE__ */ jsx46(
6983
7036
  Stack8,
6984
7037
  {
6985
7038
  align: "center",
@@ -6992,9 +7045,9 @@ function KanbanBoard({
6992
7045
  roundedTop: "l3",
6993
7046
  bg: c2.over ? "red.subtle" : "bg.subtle",
6994
7047
  h: "full",
6995
- children: /* @__PURE__ */ jsx45(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
7048
+ children: /* @__PURE__ */ jsx46(FoldButton, { folded: true, label: foldLabel(name, true), onClick: () => fold(c2.id) })
6996
7049
  }
6997
- ) : /* @__PURE__ */ jsxs30(
7050
+ ) : /* @__PURE__ */ jsxs31(
6998
7051
  HStack8,
6999
7052
  {
7000
7053
  justify: "space-between",
@@ -7011,8 +7064,8 @@ function KanbanBoard({
7011
7064
  h: "full",
7012
7065
  align: "start",
7013
7066
  children: [
7014
- /* @__PURE__ */ jsxs30(HStack8, { gap: "2", minW: "0", children: [
7015
- onReorderColumns && !loading && /* @__PURE__ */ jsx45(
7067
+ /* @__PURE__ */ jsxs31(HStack8, { gap: "2", minW: "0", children: [
7068
+ onReorderColumns && !loading && /* @__PURE__ */ jsx46(
7016
7069
  ColumnGrip,
7017
7070
  {
7018
7071
  label: reorderLabel(name, columns.findIndex((x) => x.id === c2.id) + 1, columns.length),
@@ -7025,11 +7078,11 @@ function KanbanBoard({
7025
7078
  onStep: (by) => reorder(c2.id, columns.findIndex((x) => x.id === c2.id) + by)
7026
7079
  }
7027
7080
  ),
7028
- /* @__PURE__ */ jsx45(Text11, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
7029
- c2.count != null && /* @__PURE__ */ jsx45(CountBadge, { value: c2.count }),
7030
- c2.meta && /* @__PURE__ */ jsx45(Text11, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
7081
+ /* @__PURE__ */ jsx46(Text11, { as: "span", textStyle: "label", truncate: true, display: "inline-flex", minW: "0", children: c2.title }),
7082
+ c2.count != null && /* @__PURE__ */ jsx46(CountBadge, { value: c2.count }),
7083
+ c2.meta && /* @__PURE__ */ jsx46(Text11, { textStyle: "caption", color: c2.over ? "fg.error" : "fg.muted", flexShrink: 0, children: c2.meta })
7031
7084
  ] }),
7032
- !loading && /* @__PURE__ */ jsx45(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7085
+ !loading && /* @__PURE__ */ jsx46(FoldButton, { folded: false, label: foldLabel(name, false), onClick: () => fold(c2.id) })
7033
7086
  ]
7034
7087
  }
7035
7088
  )
@@ -7038,20 +7091,20 @@ function KanbanBoard({
7038
7091
  c2.id
7039
7092
  );
7040
7093
  }),
7041
- rows.map((lane) => /* @__PURE__ */ jsx45(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci) => {
7094
+ rows.map((lane) => /* @__PURE__ */ jsx46(LaneRow, { lane, showTitle: !!lanes && lanes.length > 0, columns: shownColumns, span: shownColumns.length, children: shownColumns.map((c2, ci) => {
7042
7095
  const id = cellId(lane.id, c2.id);
7043
7096
  const list = byCell.get(id) ?? [];
7044
7097
  const allowed = active ? canDrop?.(active, c2.id, lane.id) !== false : true;
7045
7098
  const last = lane.id === rows[rows.length - 1].id;
7046
7099
  if (folded.has(c2.id)) {
7047
- return /* @__PURE__ */ jsxs30(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
7048
- lane.id === rows[0].id && c2.count != null && /* @__PURE__ */ jsx45(Box8, { alignSelf: "center", children: /* @__PURE__ */ jsx45(CountBadge, { value: c2.count }) }),
7049
- lane.id === rows[0].id && /* @__PURE__ */ jsx45(Box8, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
7100
+ return /* @__PURE__ */ jsxs31(Cell, { id, allowed, dragging: !!active, items: [], column: c2.id, lane: lane.id, folded: true, last, children: [
7101
+ lane.id === rows[0].id && c2.count != null && /* @__PURE__ */ jsx46(Box8, { alignSelf: "center", children: /* @__PURE__ */ jsx46(CountBadge, { value: c2.count }) }),
7102
+ lane.id === rows[0].id && /* @__PURE__ */ jsx46(Box8, { css: { writingMode: "vertical-rl" }, alignSelf: "center", maxH: "56", overflow: "hidden", textStyle: "sm", title: c2.name, children: c2.title })
7050
7103
  ] }, id);
7051
7104
  }
7052
7105
  const footer = last && !loading ? columnFooter?.(c2.id) : null;
7053
- return /* @__PURE__ */ jsxs30(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
7054
- list.map((item) => /* @__PURE__ */ jsx45(
7106
+ return /* @__PURE__ */ jsxs31(Cell, { id, allowed, dragging: !!active, items: list.map((i) => i.id), column: c2.id, lane: lane.id, last, children: [
7107
+ list.map((item) => /* @__PURE__ */ jsx46(
7055
7108
  SortableCard,
7056
7109
  {
7057
7110
  id: item.id,
@@ -7063,8 +7116,8 @@ function KanbanBoard({
7063
7116
  item.id
7064
7117
  )),
7065
7118
  loading && list.length === 0 && // Not the board's cards: no data-slide, and not in its placement (ADR 0058's slides skip them).
7066
- Array.from({ length: SKELETON_CARDS[ci % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx45(Box8, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci * 5 + n) : /* @__PURE__ */ jsx45(PlaceholderCard, { index: ci * 5 + n }) }, `skeleton-${n}`)),
7067
- !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx45(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx45(EmptyState, { size: "xs", title: empty })),
7119
+ Array.from({ length: SKELETON_CARDS[ci % SKELETON_CARDS.length] }, (_, n) => /* @__PURE__ */ jsx46(Box8, { "aria-hidden": "true", children: skeletonCard ? skeletonCard(ci * 5 + n) : /* @__PURE__ */ jsx46(PlaceholderCard, { index: ci * 5 + n }) }, `skeleton-${n}`)),
7120
+ !loading && list.length === 0 && empty && (typeof empty === "function" ? /* @__PURE__ */ jsx46(EmptyState, { size: "xs", ...empty(c2.id) }) : /* @__PURE__ */ jsx46(EmptyState, { size: "xs", title: empty })),
7068
7121
  footer
7069
7122
  ] }, id);
7070
7123
  }) }, lane.id))
@@ -7073,23 +7126,23 @@ function KanbanBoard({
7073
7126
  ) })
7074
7127
  }
7075
7128
  ),
7076
- /* @__PURE__ */ jsx45(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx45(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
7129
+ /* @__PURE__ */ jsx46(DragOverlay2, { dropAnimation: reduce ? null : landing, children: active ? /* @__PURE__ */ jsx46(Lifted, { carried: carried.length, reduce, count: carried.length > 1 ? carrying ? carrying(carried.length) : String(carried.length) : void 0, children: renderCard(active, { dragging: true }) }) : null })
7077
7130
  ]
7078
7131
  }
7079
7132
  );
7080
7133
  }
7081
7134
  function LaneRow({ lane, showTitle, span, children }) {
7082
- return /* @__PURE__ */ jsxs30(Fragment13, { children: [
7083
- showTitle && /* @__PURE__ */ jsxs30(HStack8, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
7084
- /* @__PURE__ */ jsx45(Text11, { textStyle: "label", children: lane.title }),
7085
- lane.meta && /* @__PURE__ */ jsx45(Text11, { textStyle: "caption", color: "fg.muted", children: lane.meta })
7135
+ return /* @__PURE__ */ jsxs31(Fragment14, { children: [
7136
+ showTitle && /* @__PURE__ */ jsxs31(HStack8, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
7137
+ /* @__PURE__ */ jsx46(Text11, { textStyle: "label", children: lane.title }),
7138
+ lane.meta && /* @__PURE__ */ jsx46(Text11, { textStyle: "caption", color: "fg.muted", children: lane.meta })
7086
7139
  ] }),
7087
7140
  children
7088
7141
  ] });
7089
7142
  }
7090
7143
  function Cell({ id, items, allowed, dragging, column, lane, folded = false, last = true, children }) {
7091
7144
  const { setNodeRef, isOver } = useDroppable2({ id, disabled: !allowed });
7092
- return /* @__PURE__ */ jsx45(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx45(
7145
+ return /* @__PURE__ */ jsx46(SortableContext, { id, items, strategy: verticalListSortingStrategy, children: /* @__PURE__ */ jsx46(
7093
7146
  Stack8,
7094
7147
  {
7095
7148
  ref: setNodeRef,
@@ -7118,7 +7171,7 @@ function SortableCard({
7118
7171
  children
7119
7172
  }) {
7120
7173
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable({ id, animateLayoutChanges: () => false });
7121
- return /* @__PURE__ */ jsxs30(
7174
+ return /* @__PURE__ */ jsxs31(
7122
7175
  Box8,
7123
7176
  {
7124
7177
  ref: setNodeRef,
@@ -7137,8 +7190,8 @@ function SortableCard({
7137
7190
  cursor: "grab",
7138
7191
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", rounded: "l2" },
7139
7192
  children: [
7140
- /* @__PURE__ */ jsx45(Box8, { "data-slide": id, children: children(isDragging) }),
7141
- selected && !isDragging && !riding && /* @__PURE__ */ jsx45(Mark, {})
7193
+ /* @__PURE__ */ jsx46(Box8, { "data-slide": id, children: children(isDragging) }),
7194
+ selected && !isDragging && !riding && /* @__PURE__ */ jsx46(Mark, {})
7142
7195
  ]
7143
7196
  }
7144
7197
  );
@@ -7166,8 +7219,8 @@ function Lifted({ carried, count, reduce, children }) {
7166
7219
  held.current?.animate?.([{ transform: "none", boxShadow: tv("shadows.sm") }, { transform: HELD, boxShadow: tv("shadows.xl") }], { duration: 160, easing: OUT2 });
7167
7220
  }, []);
7168
7221
  const layers = Math.min(2, Math.max(0, carried - 1));
7169
- return /* @__PURE__ */ jsxs30(Box8, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7170
- Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx45(
7222
+ return /* @__PURE__ */ jsxs31(Box8, { position: "relative", cursor: "grabbing", "data-testid": "drag-preview", children: [
7223
+ Array.from({ length: layers }, (_, i) => /* @__PURE__ */ jsx46(
7171
7224
  Box8,
7172
7225
  {
7173
7226
  "data-layer": true,
@@ -7182,8 +7235,8 @@ function Lifted({ carried, count, reduce, children }) {
7182
7235
  },
7183
7236
  i
7184
7237
  )),
7185
- /* @__PURE__ */ jsx45(Box8, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
7186
- count != null && /* @__PURE__ */ jsx45(Count, { children: count })
7238
+ /* @__PURE__ */ jsx46(Box8, { ref: held, "data-held": true, rounded: "l2", shadow: reduce ? "lg" : "xl", style: { transform: reduce ? void 0 : HELD, transformOrigin: "50% 40%" }, children }),
7239
+ count != null && /* @__PURE__ */ jsx46(Count, { children: count })
7187
7240
  ] });
7188
7241
  }
7189
7242
  function Mark() {
@@ -7196,7 +7249,7 @@ function Mark() {
7196
7249
  easing: OUT2
7197
7250
  });
7198
7251
  }, []);
7199
- return /* @__PURE__ */ jsx45(
7252
+ return /* @__PURE__ */ jsx46(
7200
7253
  chakra25.span,
7201
7254
  {
7202
7255
  ref,
@@ -7213,12 +7266,12 @@ function Mark() {
7213
7266
  pointerEvents: "none",
7214
7267
  "aria-hidden": "true",
7215
7268
  _icon: { boxSize: "3" },
7216
- children: /* @__PURE__ */ jsx45(Check2, { strokeWidth: 3 })
7269
+ children: /* @__PURE__ */ jsx46(Check2, { strokeWidth: 3 })
7217
7270
  }
7218
7271
  );
7219
7272
  }
7220
7273
  function Count({ children }) {
7221
- return /* @__PURE__ */ jsx45(
7274
+ return /* @__PURE__ */ jsx46(
7222
7275
  chakra25.span,
7223
7276
  {
7224
7277
  position: "absolute",
@@ -7241,7 +7294,7 @@ function Count({ children }) {
7241
7294
  );
7242
7295
  }
7243
7296
  function FoldButton({ folded, label, onClick }) {
7244
- return /* @__PURE__ */ jsx45(
7297
+ return /* @__PURE__ */ jsx46(
7245
7298
  chakra25.button,
7246
7299
  {
7247
7300
  type: "button",
@@ -7262,13 +7315,13 @@ function FoldButton({ folded, label, onClick }) {
7262
7315
  title: label,
7263
7316
  "aria-expanded": !folded,
7264
7317
  onClick,
7265
- children: /* @__PURE__ */ jsx45(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx45(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx45(ChevronsLeft, { size: 16 }) })
7318
+ children: /* @__PURE__ */ jsx46(DirectionalIcon, { children: folded ? /* @__PURE__ */ jsx46(ChevronsRight, { size: 16 }) : /* @__PURE__ */ jsx46(ChevronsLeft, { size: 16 }) })
7266
7319
  }
7267
7320
  );
7268
7321
  }
7269
7322
  function useFolded(key) {
7270
7323
  const storage = key ? `board.folded.${key}` : null;
7271
- const [folded, setFolded] = useState19(() => /* @__PURE__ */ new Set());
7324
+ const [folded, setFolded] = useState20(() => /* @__PURE__ */ new Set());
7272
7325
  useEffect13(() => {
7273
7326
  if (!storage) return;
7274
7327
  try {
@@ -7292,7 +7345,7 @@ function useFolded(key) {
7292
7345
  return [folded, fold];
7293
7346
  }
7294
7347
  function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7295
- return /* @__PURE__ */ jsx45(
7348
+ return /* @__PURE__ */ jsx46(
7296
7349
  chakra25.button,
7297
7350
  {
7298
7351
  type: "button",
@@ -7326,27 +7379,27 @@ function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
7326
7379
  onDragStart();
7327
7380
  },
7328
7381
  onDragEnd,
7329
- children: /* @__PURE__ */ jsx45(GripVertical3, {})
7382
+ children: /* @__PURE__ */ jsx46(GripVertical3, {})
7330
7383
  }
7331
7384
  );
7332
7385
  }
7333
7386
 
7334
7387
  // src/components/LoadingState.tsx
7335
7388
  import { Box as Box9, VisuallyHidden as VisuallyHidden2 } from "@chakra-ui/react";
7336
- import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
7389
+ import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
7337
7390
  function LoadingState({ lines = 3, label }) {
7338
7391
  const labels = useAbpLabels();
7339
- return /* @__PURE__ */ jsxs31(Box9, { "aria-busy": "true", role: "status", children: [
7340
- /* @__PURE__ */ jsx46(VisuallyHidden2, { children: label ?? labels.loading }),
7341
- /* @__PURE__ */ jsx46(TextBone, { lines, width: "full" })
7392
+ return /* @__PURE__ */ jsxs32(Box9, { "aria-busy": "true", role: "status", children: [
7393
+ /* @__PURE__ */ jsx47(VisuallyHidden2, { children: label ?? labels.loading }),
7394
+ /* @__PURE__ */ jsx47(TextBone, { lines, width: "full" })
7342
7395
  ] });
7343
7396
  }
7344
7397
 
7345
7398
  // src/components/PageHeader.tsx
7346
- import { Fragment as Fragment14 } from "react";
7399
+ import { Fragment as Fragment15 } from "react";
7347
7400
  import { Breadcrumb, chakra as chakra26, Menu as Menu2, Portal as Portal12, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
7348
7401
  import { ChevronRight as ChevronRight3 } from "lucide-react";
7349
- import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
7402
+ import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
7350
7403
  var textOf = (label) => typeof label === "string" || typeof label === "number" ? String(label) : void 0;
7351
7404
  function PageHeader({ title, description, breadcrumbs, meta, count, adornments, actions, loading: own, titleWidth = 24, documentTitle }) {
7352
7405
  const recipe = useSlotRecipe4({ key: "abpPageHeader" });
@@ -7355,32 +7408,32 @@ function PageHeader({ title, description, breadcrumbs, meta, count, adornments,
7355
7408
  usePageTitle(documentTitle !== void 0 ? documentTitle : text ? [text, where] : null);
7356
7409
  const styles = recipe({});
7357
7410
  const loading = useLoading(own);
7358
- return /* @__PURE__ */ jsxs32(chakra26.div, { css: styles.root, children: [
7359
- breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx47(Breadcrumbs, { items: breadcrumbs }),
7360
- /* @__PURE__ */ jsxs32(chakra26.div, { css: styles.row, children: [
7361
- /* @__PURE__ */ jsxs32(chakra26.div, { css: styles.titleGroup, children: [
7362
- count != null || adornments != null ? /* @__PURE__ */ jsxs32(chakra26.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
7363
- /* @__PURE__ */ jsx47(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx47(TextBone, { width: titleWidth }) : title }),
7364
- count != null && /* @__PURE__ */ jsx47(CountBadge, { value: count, size: "md" }),
7411
+ return /* @__PURE__ */ jsxs33(chakra26.div, { css: styles.root, children: [
7412
+ breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx48(Breadcrumbs, { items: breadcrumbs }),
7413
+ /* @__PURE__ */ jsxs33(chakra26.div, { css: styles.row, children: [
7414
+ /* @__PURE__ */ jsxs33(chakra26.div, { css: styles.titleGroup, children: [
7415
+ count != null || adornments != null ? /* @__PURE__ */ jsxs33(chakra26.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
7416
+ /* @__PURE__ */ jsx48(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx48(TextBone, { width: titleWidth }) : title }),
7417
+ count != null && /* @__PURE__ */ jsx48(CountBadge, { value: count, size: "md" }),
7365
7418
  adornments
7366
- ] }) : /* @__PURE__ */ jsx47(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx47(TextBone, { width: titleWidth }) : title }),
7367
- meta != null && /* @__PURE__ */ jsx47(chakra26.div, { css: styles.meta, children: meta }),
7368
- description != null && /* @__PURE__ */ jsx47(chakra26.p, { css: styles.description, children: description })
7419
+ ] }) : /* @__PURE__ */ jsx48(chakra26.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx48(TextBone, { width: titleWidth }) : title }),
7420
+ meta != null && /* @__PURE__ */ jsx48(chakra26.div, { css: styles.meta, children: meta }),
7421
+ description != null && /* @__PURE__ */ jsx48(chakra26.p, { css: styles.description, children: description })
7369
7422
  ] }),
7370
- actions != null && /* @__PURE__ */ jsx47(chakra26.div, { css: styles.actions, children: actions })
7423
+ actions != null && /* @__PURE__ */ jsx48(chakra26.div, { css: styles.actions, children: actions })
7371
7424
  ] })
7372
7425
  ] });
7373
7426
  }
7374
7427
  function Breadcrumbs({ items, loading: own }) {
7375
7428
  const labels = useAbpLabels();
7376
7429
  const loading = useLoading(own);
7377
- const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx47(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7430
+ const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx48(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
7378
7431
  const Link = useLinkComponent();
7379
7432
  const { shown, hidden } = foldBreadcrumbs(items);
7380
- return /* @__PURE__ */ jsx47(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx47(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs32(Fragment14, { children: [
7381
- n > 0 && /* @__PURE__ */ jsx47(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx47(ChevronRight3, {}) }),
7382
- entry == null ? /* @__PURE__ */ jsx47(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs32(Menu2.Root, { positioning: { placement: "bottom-start" }, children: [
7383
- /* @__PURE__ */ jsx47(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx47(
7433
+ return /* @__PURE__ */ jsx48(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx48(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs33(Fragment15, { children: [
7434
+ n > 0 && /* @__PURE__ */ jsx48(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx48(ChevronRight3, {}) }),
7435
+ entry == null ? /* @__PURE__ */ jsx48(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs33(Menu2.Root, { positioning: { placement: "bottom-start" }, children: [
7436
+ /* @__PURE__ */ jsx48(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx48(
7384
7437
  chakra26.button,
7385
7438
  {
7386
7439
  type: "button",
@@ -7395,67 +7448,67 @@ function Breadcrumbs({ items, loading: own }) {
7395
7448
  children: "\u2026"
7396
7449
  }
7397
7450
  ) }),
7398
- /* @__PURE__ */ jsx47(Portal12, { children: /* @__PURE__ */ jsx47(Menu2.Positioner, { children: /* @__PURE__ */ jsx47(Menu2.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx47(Menu2.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx47(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx47("span", { children: h.label }) }, k)) }) }) })
7399
- ] }) }) : /* @__PURE__ */ jsx47(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx47(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx47(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx47(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
7451
+ /* @__PURE__ */ jsx48(Portal12, { children: /* @__PURE__ */ jsx48(Menu2.Positioner, { children: /* @__PURE__ */ jsx48(Menu2.Content, { minW: "40", children: hidden.map((h, k) => /* @__PURE__ */ jsx48(Menu2.Item, { value: String(k), asChild: Boolean(h.href), children: h.href ? /* @__PURE__ */ jsx48(Link, { href: h.href, children: h.label }) : /* @__PURE__ */ jsx48("span", { children: h.label }) }, k)) }) }) })
7452
+ ] }) }) : /* @__PURE__ */ jsx48(Breadcrumb.Item, { children: entry.item.href && entry.index < items.length - 1 ? /* @__PURE__ */ jsx48(Breadcrumb.Link, { asChild: true, children: /* @__PURE__ */ jsx48(Link, { href: entry.item.href, children: label(entry.item, entry.index) }) }) : /* @__PURE__ */ jsx48(Breadcrumb.CurrentLink, { children: label(entry.item, entry.index) }) })
7400
7453
  ] }, entry ? entry.index : "more")) }) });
7401
7454
  }
7402
7455
 
7403
7456
  // src/components/Panel.tsx
7404
7457
  import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11 } from "react";
7405
7458
  import { chakra as chakra27, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
7406
- import { jsx as jsx48, jsxs as jsxs33 } from "react/jsx-runtime";
7459
+ import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
7407
7460
  var ToneContext = createContext11("card");
7408
7461
  function PanelTone({ tone, children }) {
7409
- return /* @__PURE__ */ jsx48(ToneContext.Provider, { value: tone, children });
7462
+ return /* @__PURE__ */ jsx49(ToneContext.Provider, { value: tone, children });
7410
7463
  }
7411
7464
  var Panel = forwardRef8(function Panel2({ title, description, actions, footer, flush = false, headingAs = "h2", loading, tone, children, css, ...rest }, ref) {
7412
7465
  const recipe = useSlotRecipe5({ key: "abpPanel" });
7413
7466
  const inherited = useContext11(ToneContext);
7414
7467
  const styles = recipe({ flush, tone: tone ?? inherited });
7415
7468
  const hasHeader = title != null || actions != null || description != null;
7416
- return /* @__PURE__ */ jsxs33(chakra27.section, { ref, css: [styles.root, css], ...rest, children: [
7417
- hasHeader && /* @__PURE__ */ jsxs33(chakra27.header, { css: styles.header, children: [
7418
- /* @__PURE__ */ jsxs33(chakra27.div, { css: styles.titleGroup, children: [
7419
- title != null && /* @__PURE__ */ jsx48(chakra27.h2, { as: headingAs, css: styles.title, children: title }),
7420
- description != null && /* @__PURE__ */ jsx48(chakra27.p, { css: styles.description, children: description })
7469
+ return /* @__PURE__ */ jsxs34(chakra27.section, { ref, css: [styles.root, css], ...rest, children: [
7470
+ hasHeader && /* @__PURE__ */ jsxs34(chakra27.header, { css: styles.header, children: [
7471
+ /* @__PURE__ */ jsxs34(chakra27.div, { css: styles.titleGroup, children: [
7472
+ title != null && /* @__PURE__ */ jsx49(chakra27.h2, { as: headingAs, css: styles.title, children: title }),
7473
+ description != null && /* @__PURE__ */ jsx49(chakra27.p, { css: styles.description, children: description })
7421
7474
  ] }),
7422
- actions != null && /* @__PURE__ */ jsx48(chakra27.div, { css: styles.actions, children: actions })
7475
+ actions != null && /* @__PURE__ */ jsx49(chakra27.div, { css: styles.actions, children: actions })
7423
7476
  ] }),
7424
- /* @__PURE__ */ jsx48(chakra27.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx48(Loading, { when: loading, children }) }),
7425
- footer != null && /* @__PURE__ */ jsx48(chakra27.footer, { css: styles.footer, children: footer })
7477
+ /* @__PURE__ */ jsx49(chakra27.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx49(Loading, { when: loading, children }) }),
7478
+ footer != null && /* @__PURE__ */ jsx49(chakra27.footer, { css: styles.footer, children: footer })
7426
7479
  ] });
7427
7480
  });
7428
7481
 
7429
7482
  // src/components/PathChips.tsx
7430
7483
  import { chakra as chakra28, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
7431
7484
  import { ChevronRight as ChevronRight4 } from "lucide-react";
7432
- import { jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
7485
+ import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
7433
7486
  function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3, css, ...rest }) {
7434
7487
  const labels = useAbpLabels();
7435
7488
  const recipe = useSlotRecipe6({ key: "abpPathChips" });
7436
7489
  const styles = recipe({});
7437
7490
  const loading = useLoading(own) && path.length === 0;
7438
7491
  const segments = loading ? Array.from({ length: skeletonCount }, (_, i) => "\xA0".repeat(boneWidth(i, 6, 12))) : path;
7439
- return /* @__PURE__ */ jsx49(chakra28.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs34(chakra28.li, { css: styles.item, children: [
7440
- i > 0 && /* @__PURE__ */ jsx49(chakra28.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx49(ChevronRight4, {}) }),
7441
- /* @__PURE__ */ jsx49(chakra28.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
7492
+ return /* @__PURE__ */ jsx50(chakra28.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs35(chakra28.li, { css: styles.item, children: [
7493
+ i > 0 && /* @__PURE__ */ jsx50(chakra28.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx50(ChevronRight4, {}) }),
7494
+ /* @__PURE__ */ jsx50(chakra28.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
7442
7495
  ] }, `${i}:${segment}`)) });
7443
7496
  }
7444
7497
 
7445
7498
  // src/components/PropertyList.tsx
7446
7499
  import { chakra as chakra29, DataList } from "@chakra-ui/react";
7447
- import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
7500
+ import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
7448
7501
  function PropertyList({ items, size = "md", loading: own }) {
7449
7502
  const loading = useLoading(own);
7450
7503
  const arriving = useArriving(loading);
7451
- return /* @__PURE__ */ jsx50(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs35(DataList.Item, { children: [
7452
- /* @__PURE__ */ jsx50(DataList.ItemLabel, { children: item.label }),
7453
- /* @__PURE__ */ jsx50(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx50(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx50(chakra29.span, { css: arriveCss, children: item.value }) : item.value })
7504
+ return /* @__PURE__ */ jsx51(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs36(DataList.Item, { children: [
7505
+ /* @__PURE__ */ jsx51(DataList.ItemLabel, { children: item.label }),
7506
+ /* @__PURE__ */ jsx51(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx51(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx51(chakra29.span, { css: arriveCss, children: item.value }) : item.value })
7454
7507
  ] }, item.id ?? i)) });
7455
7508
  }
7456
7509
 
7457
7510
  // src/components/QueryableList.tsx
7458
- import { useEffect as useEffect15, useId as useId5, useMemo as useMemo12, useRef as useRef19, useState as useState21 } from "react";
7511
+ import { useEffect as useEffect15, useId as useId5, useMemo as useMemo12, useRef as useRef19, useState as useState22 } from "react";
7459
7512
  import { createPortal } from "react-dom";
7460
7513
  import { Box as Box10, chakra as chakra31, HStack as HStack11, Input as Input6, Menu as Menu3, Portal as Portal15, Stack as Stack11, Text as Text14 } from "@chakra-ui/react";
7461
7514
  import { ArrowDownWideNarrow, ArrowUpNarrowWide, ChevronDown as ChevronDown3, Download, Filter, Plus as Plus3, Rows3, Save, Trash2 as Trash22, X as X2 } from "lucide-react";
@@ -7474,7 +7527,7 @@ import {
7474
7527
  import { arrayMove, SortableContext as SortableContext2, sortableKeyboardCoordinates as sortableKeyboardCoordinates2, useSortable as useSortable2, verticalListSortingStrategy as verticalListSortingStrategy2 } from "@dnd-kit/sortable";
7475
7528
  import { CSS as CSS3 } from "@dnd-kit/utilities";
7476
7529
  import { Columns3, GripVertical as GripVertical4 } from "lucide-react";
7477
- import { jsx as jsx51, jsxs as jsxs36 } from "react/jsx-runtime";
7530
+ import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
7478
7531
  function fill(template, values) {
7479
7532
  return template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? `{${k}}`);
7480
7533
  }
@@ -7491,19 +7544,19 @@ function ColumnsPopover({ fields, columns, onChange }) {
7491
7544
  if (from < 0 || to < 0) return;
7492
7545
  onChange(arrayMove(columns, from, to));
7493
7546
  }
7494
- return /* @__PURE__ */ jsxs36(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
7495
- /* @__PURE__ */ jsx51(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs36(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
7496
- /* @__PURE__ */ jsx51(Columns3, {}),
7547
+ return /* @__PURE__ */ jsxs37(Popover3.Root, { positioning: { placement: "bottom-end" }, lazyMount: true, unmountOnExit: true, children: [
7548
+ /* @__PURE__ */ jsx52(Popover3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs37(Button, { size: "sm", variant: "secondary", disabled: fields.length === 0, children: [
7549
+ /* @__PURE__ */ jsx52(Columns3, {}),
7497
7550
  labels.columns
7498
7551
  ] }) }),
7499
- /* @__PURE__ */ jsx51(Portal13, { children: /* @__PURE__ */ jsx51(Popover3.Positioner, { children: /* @__PURE__ */ jsx51(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs36(Popover3.Body, { p: "0", children: [
7500
- /* @__PURE__ */ jsxs36(HStack9, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
7501
- /* @__PURE__ */ jsx51(Text12, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
7502
- /* @__PURE__ */ jsx51(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
7552
+ /* @__PURE__ */ jsx52(Portal13, { children: /* @__PURE__ */ jsx52(Popover3.Positioner, { children: /* @__PURE__ */ jsx52(Popover3.Content, { w: "80", maxW: "calc(100vw - 2rem)", children: /* @__PURE__ */ jsxs37(Popover3.Body, { p: "0", children: [
7553
+ /* @__PURE__ */ jsxs37(HStack9, { justify: "space-between", px: "3.5", pt: "3", pb: "1", children: [
7554
+ /* @__PURE__ */ jsx52(Text12, { textStyle: "sm", fontWeight: "semibold", children: labels.visibleColumns }),
7555
+ /* @__PURE__ */ jsx52(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
7503
7556
  ] }),
7504
- /* @__PURE__ */ jsx51(Text12, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
7505
- /* @__PURE__ */ jsxs36(chakra30.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
7506
- /* @__PURE__ */ jsx51(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx51(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx51(Stack9, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx51(
7557
+ /* @__PURE__ */ jsx52(Text12, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
7558
+ /* @__PURE__ */ jsxs37(chakra30.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
7559
+ /* @__PURE__ */ jsx52(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx52(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx52(Stack9, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx52(
7507
7560
  ColumnRow,
7508
7561
  {
7509
7562
  id,
@@ -7514,7 +7567,7 @@ function ColumnsPopover({ fields, columns, onChange }) {
7514
7567
  },
7515
7568
  id
7516
7569
  )) }) }) }),
7517
- hidden.length > 0 && /* @__PURE__ */ jsx51(Stack9, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx51(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
7570
+ hidden.length > 0 && /* @__PURE__ */ jsx52(Stack9, { gap: "0", borderTopWidth: "1px", borderColor: "border.muted", mt: "1", pt: "1", role: "list", "aria-label": labels.hiddenColumns, children: hidden.map((f) => /* @__PURE__ */ jsx52(ColumnRow, { id: f.id, label: f.label, checked: false, onCheckedChange: () => onChange([...columns, f.id]) }, f.id)) })
7518
7571
  ] })
7519
7572
  ] }) }) }) })
7520
7573
  ] });
@@ -7523,7 +7576,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7523
7576
  const labels = useAbpLabels().queryList;
7524
7577
  const sortable = useSortable2({ id, disabled: !checked });
7525
7578
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = sortable;
7526
- return /* @__PURE__ */ jsxs36(
7579
+ return /* @__PURE__ */ jsxs37(
7527
7580
  HStack9,
7528
7581
  {
7529
7582
  ref: setNodeRef,
@@ -7540,7 +7593,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7540
7593
  style: { transform: CSS3.Transform.toString(transform), transition },
7541
7594
  _hover: { bg: "bg.subtle" },
7542
7595
  children: [
7543
- checked ? /* @__PURE__ */ jsx51(
7596
+ checked ? /* @__PURE__ */ jsx52(
7544
7597
  chakra30.button,
7545
7598
  {
7546
7599
  type: "button",
@@ -7553,13 +7606,13 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7553
7606
  "aria-label": fill(labels.dragColumn, { field: label }),
7554
7607
  ...attributes,
7555
7608
  ...listeners2,
7556
- children: /* @__PURE__ */ jsx51(GripVertical4, { size: 16 })
7609
+ children: /* @__PURE__ */ jsx52(GripVertical4, { size: 16 })
7557
7610
  }
7558
- ) : /* @__PURE__ */ jsx51(chakra30.span, { w: "4", flexShrink: 0 }),
7559
- /* @__PURE__ */ jsx51(Text12, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
7560
- /* @__PURE__ */ jsxs36(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
7561
- /* @__PURE__ */ jsx51(Switch2.HiddenInput, {}),
7562
- /* @__PURE__ */ jsx51(Switch2.Control, { children: /* @__PURE__ */ jsx51(Switch2.Thumb, {}) })
7611
+ ) : /* @__PURE__ */ jsx52(chakra30.span, { w: "4", flexShrink: 0 }),
7612
+ /* @__PURE__ */ jsx52(Text12, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
7613
+ /* @__PURE__ */ jsxs37(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
7614
+ /* @__PURE__ */ jsx52(Switch2.HiddenInput, {}),
7615
+ /* @__PURE__ */ jsx52(Switch2.Control, { children: /* @__PURE__ */ jsx52(Switch2.Thumb, {}) })
7563
7616
  ] })
7564
7617
  ]
7565
7618
  }
@@ -7567,10 +7620,10 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
7567
7620
  }
7568
7621
 
7569
7622
  // src/components/query/FilterBuilder.tsx
7570
- import { useEffect as useEffect14, useId as useId4, useRef as useRef18, useState as useState20 } from "react";
7623
+ import { useEffect as useEffect14, useId as useId4, useRef as useRef18, useState as useState21 } from "react";
7571
7624
  import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack10, Input as Input5, Portal as Portal14, Stack as Stack10, Text as Text13 } from "@chakra-ui/react";
7572
7625
  import { Plus as Plus2, Trash2 } from "lucide-react";
7573
- import { Fragment as Fragment15, jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
7626
+ import { Fragment as Fragment16, jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
7574
7627
  function fill2(template, values) {
7575
7628
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
7576
7629
  }
@@ -7583,9 +7636,9 @@ function conditionOf(d, field, own) {
7583
7636
  }
7584
7637
  function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, countMatches, onApply, onClose }) {
7585
7638
  const labels = useAbpLabels().queryList;
7586
- const [seq, setSeq] = useState20(initial.length + 1);
7587
- const [rows, setRows] = useState20(() => initial.flatMap((c2, i) => c2.op === "in" && Array.isArray(c2.value) && fields.find((f) => f.id === c2.field)?.operators.includes("eq") ? c2.value.map((v, j) => ({ id: i * 100 + j + 1, field: c2.field, op: "eq", text: valueText(v), chosen: v })) : [{ id: i * 100 + 1, field: c2.field, op: c2.op, text: valueText(c2.value), chosen: c2.value }]));
7588
- const [touched, setTouched] = useState20(false);
7639
+ const [seq, setSeq] = useState21(initial.length + 1);
7640
+ const [rows, setRows] = useState21(() => initial.flatMap((c2, i) => c2.op === "in" && Array.isArray(c2.value) && fields.find((f) => f.id === c2.field)?.operators.includes("eq") ? c2.value.map((v, j) => ({ id: i * 100 + j + 1, field: c2.field, op: "eq", text: valueText(v), chosen: v })) : [{ id: i * 100 + 1, field: c2.field, op: c2.op, text: valueText(c2.value), chosen: c2.value }]));
7641
+ const [touched, setTouched] = useState21(false);
7589
7642
  const own = (d) => {
7590
7643
  const f = fields.find((x) => x.id === d.field);
7591
7644
  return Boolean(f && renderValueEditor && !NO_VALUE_OPS.has(d.op) && renderValueEditor({ field: f, op: d.op, value: d.chosen, onChange: () => void 0 }) != null);
@@ -7599,8 +7652,8 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7599
7652
  counter.current = countMatches;
7600
7653
  });
7601
7654
  const counts = Boolean(countMatches);
7602
- const [count, setCount] = useState20(null);
7603
- const [total, setTotal] = useState20(null);
7655
+ const [count, setCount] = useState21(null);
7656
+ const [total, setTotal] = useState21(null);
7604
7657
  useEffect14(() => {
7605
7658
  if (!counts) return;
7606
7659
  let gone = false;
@@ -7626,23 +7679,23 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7626
7679
  setSeq((n) => n + 1);
7627
7680
  };
7628
7681
  const change = (id, patch) => setRows((r) => r.map((d) => d.id === id ? { ...d, ...patch, dirty: true } : d));
7629
- return /* @__PURE__ */ jsx52(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs37(Portal14, { children: [
7630
- /* @__PURE__ */ jsx52(Dialog5.Backdrop, {}),
7631
- /* @__PURE__ */ jsx52(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs37(Dialog5.Content, { "data-filter-builder": "", children: [
7632
- /* @__PURE__ */ jsx52(Dialog5.Header, { children: /* @__PURE__ */ jsxs37(HStack10, { justify: "space-between", w: "full", gap: "3", children: [
7633
- /* @__PURE__ */ jsx52(Dialog5.Title, { children: labels.buildFilters }),
7634
- /* @__PURE__ */ jsx52(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows.length === 0, children: labels.clearAll })
7682
+ return /* @__PURE__ */ jsx53(Dialog5.Root, { open: true, onOpenChange: (e) => !e.open && onClose(), size: "lg", placement: "center", scrollBehavior: "inside", children: /* @__PURE__ */ jsxs38(Portal14, { children: [
7683
+ /* @__PURE__ */ jsx53(Dialog5.Backdrop, {}),
7684
+ /* @__PURE__ */ jsx53(Dialog5.Positioner, { children: /* @__PURE__ */ jsxs38(Dialog5.Content, { "data-filter-builder": "", children: [
7685
+ /* @__PURE__ */ jsx53(Dialog5.Header, { children: /* @__PURE__ */ jsxs38(HStack10, { justify: "space-between", w: "full", gap: "3", children: [
7686
+ /* @__PURE__ */ jsx53(Dialog5.Title, { children: labels.buildFilters }),
7687
+ /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", onClick: () => setRows([]), disabled: rows.length === 0, children: labels.clearAll })
7635
7688
  ] }) }),
7636
- /* @__PURE__ */ jsx52(Dialog5.Body, { children: /* @__PURE__ */ jsxs37(Stack10, { gap: "3", children: [
7637
- /* @__PURE__ */ jsxs37(Text13, { textStyle: "sm", color: "fg.muted", children: [
7689
+ /* @__PURE__ */ jsx53(Dialog5.Body, { children: /* @__PURE__ */ jsxs38(Stack10, { gap: "3", children: [
7690
+ /* @__PURE__ */ jsxs38(Text13, { textStyle: "sm", color: "fg.muted", children: [
7638
7691
  labels.matchAll,
7639
- repeats && /* @__PURE__ */ jsxs37(Fragment15, { children: [
7692
+ repeats && /* @__PURE__ */ jsxs38(Fragment16, { children: [
7640
7693
  " ",
7641
7694
  labels.sameFieldAny
7642
7695
  ] })
7643
7696
  ] }),
7644
- rows.length === 0 && /* @__PURE__ */ jsx52(Text13, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
7645
- rows.map((d) => /* @__PURE__ */ jsx52(
7697
+ rows.length === 0 && /* @__PURE__ */ jsx53(Text13, { textStyle: "sm", color: "fg.muted", py: "2", children: labels.noConditions }),
7698
+ rows.map((d) => /* @__PURE__ */ jsx53(
7646
7699
  ConditionRow,
7647
7700
  {
7648
7701
  draft: d,
@@ -7655,32 +7708,32 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
7655
7708
  },
7656
7709
  d.id
7657
7710
  )),
7658
- /* @__PURE__ */ jsx52(HStack10, { children: /* @__PURE__ */ jsxs37(Button, { size: "sm", variant: "secondary", onClick: add, disabled: fields.length === 0, children: [
7659
- /* @__PURE__ */ jsx52(Plus2, {}),
7711
+ /* @__PURE__ */ jsx53(HStack10, { children: /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "secondary", onClick: add, disabled: fields.length === 0, children: [
7712
+ /* @__PURE__ */ jsx53(Plus2, {}),
7660
7713
  labels.addCondition
7661
7714
  ] }) }),
7662
- /* @__PURE__ */ jsxs37(Stack10, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
7663
- /* @__PURE__ */ jsx52(Text13, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
7664
- /* @__PURE__ */ jsx52(Text13, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
7715
+ /* @__PURE__ */ jsxs38(Stack10, { gap: "1", borderTopWidth: "1px", borderColor: "border.muted", pt: "3", children: [
7716
+ /* @__PURE__ */ jsx53(Text13, { textStyle: "xs", fontWeight: "bold", color: "fg.muted", children: labels.activeFilters }),
7717
+ /* @__PURE__ */ jsx53(Text13, { textStyle: "sm", "data-active-filters": "", children: complete.length === 0 ? labels.noneActive : complete.map((c2) => describe(c2, fields, labels)).join(" \xB7 ") })
7665
7718
  ] })
7666
7719
  ] }) }),
7667
- /* @__PURE__ */ jsx52(Dialog5.Footer, { children: /* @__PURE__ */ jsxs37(HStack10, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
7668
- /* @__PURE__ */ jsxs37(Text13, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
7720
+ /* @__PURE__ */ jsx53(Dialog5.Footer, { children: /* @__PURE__ */ jsxs38(HStack10, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
7721
+ /* @__PURE__ */ jsxs38(Text13, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
7669
7722
  count != null && fill2(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
7670
- incomplete > 0 && /* @__PURE__ */ jsxs37(Fragment15, { children: [
7723
+ incomplete > 0 && /* @__PURE__ */ jsxs38(Fragment16, { children: [
7671
7724
  " \xB7 ",
7672
7725
  labels.incompleteSkipped
7673
7726
  ] })
7674
7727
  ] }),
7675
- /* @__PURE__ */ jsxs37(HStack10, { gap: "2", children: [
7676
- /* @__PURE__ */ jsx52(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
7677
- /* @__PURE__ */ jsx52(Button, { size: "sm", variant: "primary", onClick: () => {
7728
+ /* @__PURE__ */ jsxs38(HStack10, { gap: "2", children: [
7729
+ /* @__PURE__ */ jsx53(Button, { size: "sm", variant: "ghost", onClick: onClose, children: labels.cancel }),
7730
+ /* @__PURE__ */ jsx53(Button, { size: "sm", variant: "primary", onClick: () => {
7678
7731
  setTouched(true);
7679
7732
  onApply(mergeSameField(complete, fields));
7680
7733
  }, children: labels.applyFilters })
7681
7734
  ] })
7682
7735
  ] }) }),
7683
- /* @__PURE__ */ jsx52(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx52(CloseButton3, { size: "sm" }) })
7736
+ /* @__PURE__ */ jsx53(Dialog5.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx53(CloseButton3, { size: "sm" }) })
7684
7737
  ] }) })
7685
7738
  ] }) });
7686
7739
  }
@@ -7694,7 +7747,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7694
7747
  const listId = useId4();
7695
7748
  const field = fields.find((f) => f.id === draft.field);
7696
7749
  const { op, text } = draft;
7697
- const [options, setOptions] = useState20([]);
7750
+ const [options, setOptions] = useState21([]);
7698
7751
  const own = field && renderValueEditor && !NO_VALUE_OPS.has(op) ? renderValueEditor({ field, op, value: draft.chosen, onChange: (v) => onChange({ chosen: v }) }) : null;
7699
7752
  useEffect14(() => {
7700
7753
  if (!suggest || !field || NO_VALUE_OPS.has(op) || own != null) return;
@@ -7709,9 +7762,9 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7709
7762
  clearTimeout(timer);
7710
7763
  };
7711
7764
  }, [suggest, field, op, text, own]);
7712
- return /* @__PURE__ */ jsxs37(Stack10, { gap: "1", "data-condition": "", children: [
7713
- /* @__PURE__ */ jsxs37(HStack10, { gap: "1.5", wrap: "wrap", align: "start", children: [
7714
- /* @__PURE__ */ jsx52(
7765
+ return /* @__PURE__ */ jsxs38(Stack10, { gap: "1", "data-condition": "", children: [
7766
+ /* @__PURE__ */ jsxs38(HStack10, { gap: "1.5", wrap: "wrap", align: "start", children: [
7767
+ /* @__PURE__ */ jsx53(
7715
7768
  SelectField,
7716
7769
  {
7717
7770
  width: "auto",
@@ -7725,7 +7778,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7725
7778
  options: fields.map((f) => ({ value: f.id, label: f.label }))
7726
7779
  }
7727
7780
  ),
7728
- /* @__PURE__ */ jsx52(
7781
+ /* @__PURE__ */ jsx53(
7729
7782
  SelectField,
7730
7783
  {
7731
7784
  width: "auto",
@@ -7737,8 +7790,8 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7737
7790
  }
7738
7791
  ),
7739
7792
  own,
7740
- !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs37(Fragment15, { children: [
7741
- /* @__PURE__ */ jsx52(
7793
+ !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs38(Fragment16, { children: [
7794
+ /* @__PURE__ */ jsx53(
7742
7795
  Input5,
7743
7796
  {
7744
7797
  size: "sm",
@@ -7752,16 +7805,16 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
7752
7805
  onChange: (e) => onChange({ text: e.target.value })
7753
7806
  }
7754
7807
  ),
7755
- /* @__PURE__ */ jsx52("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx52("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
7808
+ /* @__PURE__ */ jsx53("datalist", { id: listId, children: options.filter((o) => o.kind !== "keyword").map((o) => /* @__PURE__ */ jsx53("option", { value: o.text.replace(/^"|"$/g, ""), children: o.label }, o.text)) })
7756
7809
  ] }),
7757
- /* @__PURE__ */ jsx52(IconButton, { size: "sm", variant: "ghost", "aria-label": fill2(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx52(Trash2, {}) })
7810
+ /* @__PURE__ */ jsx53(IconButton, { size: "sm", variant: "ghost", "aria-label": fill2(labels.removeFilter, { field: field?.label ?? draft.field }), onClick: onRemove, children: /* @__PURE__ */ jsx53(Trash2, {}) })
7758
7811
  ] }),
7759
- warn && /* @__PURE__ */ jsx52(Text13, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
7812
+ warn && /* @__PURE__ */ jsx53(Text13, { textStyle: "xs", color: "fg.error", children: labels.incomplete })
7760
7813
  ] });
7761
7814
  }
7762
7815
 
7763
7816
  // src/components/QueryableList.tsx
7764
- import { Fragment as Fragment16, jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
7817
+ import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
7765
7818
  var PAIR = "";
7766
7819
  var pairKey = (first, second) => `${first}${PAIR}${second}`;
7767
7820
  var condition = (field, value) => value == null ? { field, op: "isEmpty" } : { field, op: "eq", value };
@@ -7821,11 +7874,11 @@ function QueryableList({
7821
7874
  const byId = useMemo12(() => new Map((fields ?? []).map((f) => [f.id, f])), [fields]);
7822
7875
  const query = result?.query ?? state.query ?? {};
7823
7876
  const conditions = basicConditions(query.where ?? null);
7824
- const [mode, setMode] = useState21(conditions === null ? "rql" : "basic");
7825
- const [adding, setAdding] = useState21(false);
7826
- const [naming, setNaming] = useState21(null);
7827
- const [exporting, setExporting] = useState21(false);
7828
- const [exported, setExported] = useState21(null);
7877
+ const [mode, setMode] = useState22(conditions === null ? "rql" : "basic");
7878
+ const [adding, setAdding] = useState22(false);
7879
+ const [naming, setNaming] = useState22(null);
7880
+ const [exporting, setExporting] = useState22(false);
7881
+ const [exported, setExported] = useState22(null);
7829
7882
  const complex = conditions === null;
7830
7883
  const failed = Boolean(error && state.rql);
7831
7884
  useEffect15(() => {
@@ -7874,7 +7927,7 @@ function QueryableList({
7874
7927
  }
7875
7928
  const groupField = query.groupBy?.field ?? null;
7876
7929
  const thenField = groupField ? query.groupBy?.then?.field ?? null : null;
7877
- const [folded, setFolded] = useState21(() => /* @__PURE__ */ new Set());
7930
+ const [folded, setFolded] = useState22(() => /* @__PURE__ */ new Set());
7878
7931
  useEffect15(() => setFolded(/* @__PURE__ */ new Set()), [groupField, thenField]);
7879
7932
  const grouped = Boolean(groupField && result?.groups && result.groups.length > 0);
7880
7933
  const asTree = Boolean(tree && groupField === tree.field);
@@ -7904,15 +7957,15 @@ function QueryableList({
7904
7957
  }
7905
7958
  const sortable = (fields ?? []).filter((f) => f.sortable);
7906
7959
  const groupLabel = groupField ? thenField ? `${label(groupField)} \xB7 ${label(thenField)}` : label(groupField) : null;
7907
- return /* @__PURE__ */ jsxs38(Stack11, { gap: "3", children: [
7908
- /* @__PURE__ */ jsxs38(chakra31.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
7909
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
7910
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", wrap: "wrap", minW: "0", children: [
7960
+ return /* @__PURE__ */ jsxs39(Stack11, { gap: "3", children: [
7961
+ /* @__PURE__ */ jsxs39(chakra31.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
7962
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
7963
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", wrap: "wrap", minW: "0", children: [
7911
7964
  leading,
7912
- leading != null && views && onSelectView && /* @__PURE__ */ jsx53(chakra31.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
7913
- views && onSelectView && /* @__PURE__ */ jsxs38(HStack11, { gap: "2", children: [
7914
- /* @__PURE__ */ jsx53(Text14, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
7915
- /* @__PURE__ */ jsx53(
7965
+ leading != null && views && onSelectView && /* @__PURE__ */ jsx54(chakra31.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
7966
+ views && onSelectView && /* @__PURE__ */ jsxs39(HStack11, { gap: "2", children: [
7967
+ /* @__PURE__ */ jsx54(Text14, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
7968
+ /* @__PURE__ */ jsx54(
7916
7969
  SelectField,
7917
7970
  {
7918
7971
  width: "auto",
@@ -7924,62 +7977,62 @@ function QueryableList({
7924
7977
  }
7925
7978
  )
7926
7979
  ] }),
7927
- onSaveView && (naming === null ? /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
7928
- /* @__PURE__ */ jsx53(Save, {}),
7980
+ onSaveView && (naming === null ? /* @__PURE__ */ jsxs39(Button, { size: "sm", variant: "ghost", color: "fg.accent", onClick: () => setNaming(activeView?.isOwner ? activeView.name : ""), children: [
7981
+ /* @__PURE__ */ jsx54(Save, {}),
7929
7982
  labels.saveView
7930
- ] }) : /* @__PURE__ */ jsxs38(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
7983
+ ] }) : /* @__PURE__ */ jsxs39(HStack11, { gap: "1", as: "form", onSubmit: (e) => {
7931
7984
  e.preventDefault();
7932
7985
  if (naming.trim()) onSaveView(naming.trim(), activeView?.isOwner && naming.trim() === activeView.name ? activeView.id : null);
7933
7986
  setNaming(null);
7934
7987
  }, children: [
7935
- /* @__PURE__ */ jsx53(Input6, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
7936
- /* @__PURE__ */ jsx53(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
7937
- /* @__PURE__ */ jsx53(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx53(X2, {}) })
7988
+ /* @__PURE__ */ jsx54(Input6, { size: "sm", autoFocus: true, "aria-label": labels.viewName, placeholder: labels.viewName, value: naming, onChange: (e) => setNaming(e.target.value), maxW: "56" }),
7989
+ /* @__PURE__ */ jsx54(Button, { size: "sm", type: "submit", variant: "primary", disabled: !naming.trim(), children: labels.save }),
7990
+ /* @__PURE__ */ jsx54(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.cancel, onClick: () => setNaming(null), children: /* @__PURE__ */ jsx54(X2, {}) })
7938
7991
  ] })),
7939
- activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx53(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx53(Trash22, {}) })
7992
+ activeView?.isOwner && onDeleteView && naming === null && /* @__PURE__ */ jsx54(IconButton, { size: "sm", variant: "ghost", "aria-label": labels.deleteView, onClick: () => onDeleteView(activeView.id), children: /* @__PURE__ */ jsx54(Trash22, {}) })
7940
7993
  ] }),
7941
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", wrap: "wrap", children: [
7942
- /* @__PURE__ */ jsxs38(Menu3.Root, { positioning: { placement: "bottom-end" }, children: [
7943
- /* @__PURE__ */ jsx53(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
7944
- /* @__PURE__ */ jsx53(Rows3, {}),
7945
- /* @__PURE__ */ jsx53(Text14, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
7994
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", wrap: "wrap", children: [
7995
+ /* @__PURE__ */ jsxs39(Menu3.Root, { positioning: { placement: "bottom-end" }, children: [
7996
+ /* @__PURE__ */ jsx54(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs39(Button, { size: "sm", variant: "secondary", "aria-label": labels.groupBy, disabled: groupable.length === 0, children: [
7997
+ /* @__PURE__ */ jsx54(Rows3, {}),
7998
+ /* @__PURE__ */ jsx54(Text14, { as: "span", color: "fg.muted", fontWeight: "normal", children: labels.group }),
7946
7999
  groupLabel ?? labels.noGrouping,
7947
- /* @__PURE__ */ jsx53(ChevronDown3, {})
8000
+ /* @__PURE__ */ jsx54(ChevronDown3, {})
7948
8001
  ] }) }),
7949
- /* @__PURE__ */ jsx53(Portal15, { children: /* @__PURE__ */ jsx53(Menu3.Positioner, { children: /* @__PURE__ */ jsxs38(Menu3.Content, { minW: "48", children: [
7950
- /* @__PURE__ */ jsxs38(
8002
+ /* @__PURE__ */ jsx54(Portal15, { children: /* @__PURE__ */ jsx54(Menu3.Positioner, { children: /* @__PURE__ */ jsxs39(Menu3.Content, { minW: "48", children: [
8003
+ /* @__PURE__ */ jsxs39(
7951
8004
  Menu3.RadioItemGroup,
7952
8005
  {
7953
8006
  value: groupField ?? "",
7954
8007
  onValueChange: (d) => change({ ...query, groupBy: d.value ? { field: d.value, aggregates: [] } : null }),
7955
8008
  children: [
7956
- /* @__PURE__ */ jsxs38(Menu3.RadioItem, { value: "", children: [
8009
+ /* @__PURE__ */ jsxs39(Menu3.RadioItem, { value: "", children: [
7957
8010
  labels.noGrouping,
7958
- /* @__PURE__ */ jsx53(Menu3.ItemIndicator, {})
8011
+ /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
7959
8012
  ] }),
7960
- groupable.map((f) => /* @__PURE__ */ jsxs38(Menu3.RadioItem, { value: f.id, children: [
8013
+ groupable.map((f) => /* @__PURE__ */ jsxs39(Menu3.RadioItem, { value: f.id, children: [
7961
8014
  f.label,
7962
- /* @__PURE__ */ jsx53(Menu3.ItemIndicator, {})
8015
+ /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
7963
8016
  ] }, f.id))
7964
8017
  ]
7965
8018
  }
7966
8019
  ),
7967
- groupField && groupable.length > 1 && /* @__PURE__ */ jsxs38(Fragment16, { children: [
7968
- /* @__PURE__ */ jsx53(Menu3.Separator, {}),
7969
- /* @__PURE__ */ jsxs38(
8020
+ groupField && groupable.length > 1 && /* @__PURE__ */ jsxs39(Fragment17, { children: [
8021
+ /* @__PURE__ */ jsx54(Menu3.Separator, {}),
8022
+ /* @__PURE__ */ jsxs39(
7970
8023
  Menu3.RadioItemGroup,
7971
8024
  {
7972
8025
  value: thenField ?? "",
7973
8026
  onValueChange: (d) => change({ ...query, groupBy: { ...query.groupBy, then: d.value ? { field: d.value } : null } }),
7974
8027
  children: [
7975
- /* @__PURE__ */ jsx53(Menu3.ItemGroupLabel, { children: labels.thenBy }),
7976
- /* @__PURE__ */ jsxs38(Menu3.RadioItem, { value: "", children: [
8028
+ /* @__PURE__ */ jsx54(Menu3.ItemGroupLabel, { children: labels.thenBy }),
8029
+ /* @__PURE__ */ jsxs39(Menu3.RadioItem, { value: "", children: [
7977
8030
  labels.noSecondGrouping,
7978
- /* @__PURE__ */ jsx53(Menu3.ItemIndicator, {})
8031
+ /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
7979
8032
  ] }),
7980
- groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs38(Menu3.RadioItem, { value: f.id, children: [
8033
+ groupable.filter((f) => f.id !== groupField).map((f) => /* @__PURE__ */ jsxs39(Menu3.RadioItem, { value: f.id, children: [
7981
8034
  f.label,
7982
- /* @__PURE__ */ jsx53(Menu3.ItemIndicator, {})
8035
+ /* @__PURE__ */ jsx54(Menu3.ItemIndicator, {})
7983
8036
  ] }, f.id))
7984
8037
  ]
7985
8038
  }
@@ -7987,15 +8040,15 @@ function QueryableList({
7987
8040
  ] })
7988
8041
  ] }) }) })
7989
8042
  ] }),
7990
- /* @__PURE__ */ jsx53(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
7991
- onExport && !exportTarget && /* @__PURE__ */ jsx53(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }),
7992
- onExport && exportTarget && createPortal(/* @__PURE__ */ jsx53(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }), exportTarget),
8043
+ /* @__PURE__ */ jsx54(ColumnsPopover, { fields: fields ?? [], columns: state.columns, onChange: (next) => onStateChange({ ...state, rql: result?.rql ?? state.rql, query: void 0, columns: next }) }),
8044
+ onExport && !exportTarget && /* @__PURE__ */ jsx54(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }),
8045
+ onExport && exportTarget && createPortal(/* @__PURE__ */ jsx54(ExportMenu, { busy: exporting, disabled: !result || Boolean(loading), onExport: runExport }), exportTarget),
7993
8046
  actions
7994
8047
  ] })
7995
8048
  ] }),
7996
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
7997
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
7998
- /* @__PURE__ */ jsx53(
8049
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", align: "start", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", children: [
8050
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", align: "start", wrap: "wrap", flex: "1", minW: { base: "full", md: "0" }, children: [
8051
+ /* @__PURE__ */ jsx54(
7999
8052
  SegmentedControl,
8000
8053
  {
8001
8054
  size: "sm",
@@ -8008,15 +8061,15 @@ function QueryableList({
8008
8061
  ]
8009
8062
  }
8010
8063
  ),
8011
- mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs38(HStack11, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
8012
- search && /* @__PURE__ */ jsx53(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
8013
- /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "secondary", onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
8014
- /* @__PURE__ */ jsx53(Plus3, {}),
8064
+ mode === "basic" && conditions !== null ? /* @__PURE__ */ jsxs39(HStack11, { gap: "2", wrap: "wrap", flex: "1", minW: "0", children: [
8065
+ search && /* @__PURE__ */ jsx54(QuickSearch, { initial: searchText, placeholder: search.placeholder ?? labels.searchPlaceholder, onRun: runSearch }, searchText),
8066
+ /* @__PURE__ */ jsxs39(Button, { size: "sm", variant: "secondary", onClick: () => setAdding(true), disabled: !fields, "data-add-filter": "", children: [
8067
+ /* @__PURE__ */ jsx54(Plus3, {}),
8015
8068
  labels.addFilter,
8016
- chips.length > 0 && /* @__PURE__ */ jsx53(CountBadge, { value: chips.length, tone: "accent" })
8069
+ chips.length > 0 && /* @__PURE__ */ jsx54(CountBadge, { value: chips.length, tone: "accent" })
8017
8070
  ] }),
8018
- sortable.length > 0 && /* @__PURE__ */ jsxs38(HStack11, { gap: "1", flexShrink: 0, children: [
8019
- /* @__PURE__ */ jsx53(
8071
+ sortable.length > 0 && /* @__PURE__ */ jsxs39(HStack11, { gap: "1", flexShrink: 0, children: [
8072
+ /* @__PURE__ */ jsx54(
8020
8073
  SelectField,
8021
8074
  {
8022
8075
  width: "auto",
@@ -8031,7 +8084,7 @@ function QueryableList({
8031
8084
  ]
8032
8085
  }
8033
8086
  ),
8034
- sort && /* @__PURE__ */ jsx53(
8087
+ sort && /* @__PURE__ */ jsx54(
8035
8088
  IconButton,
8036
8089
  {
8037
8090
  size: "sm",
@@ -8039,11 +8092,11 @@ function QueryableList({
8039
8092
  "aria-label": sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8040
8093
  title: sort.direction === "desc" ? labels.sortDescending : labels.sortAscending,
8041
8094
  onClick: () => change({ ...query, orderBy: [{ field: sort.columnId, desc: sort.direction !== "desc" }] }),
8042
- children: sort.direction === "desc" ? /* @__PURE__ */ jsx53(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx53(ArrowUpNarrowWide, {})
8095
+ children: sort.direction === "desc" ? /* @__PURE__ */ jsx54(ArrowDownWideNarrow, {}) : /* @__PURE__ */ jsx54(ArrowUpNarrowWide, {})
8043
8096
  }
8044
8097
  )
8045
8098
  ] })
8046
- ] }) : /* @__PURE__ */ jsx53(
8099
+ ] }) : /* @__PURE__ */ jsx54(
8047
8100
  RqlBox,
8048
8101
  {
8049
8102
  initial: state.rql ?? result?.rql ?? "",
@@ -8054,10 +8107,10 @@ function QueryableList({
8054
8107
  state.rql ?? result?.rql ?? ""
8055
8108
  )
8056
8109
  ] }),
8057
- attention != null && /* @__PURE__ */ jsx53(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8110
+ attention != null && /* @__PURE__ */ jsx54(HStack11, { gap: "2", wrap: "wrap", flexShrink: 0, children: attention })
8058
8111
  ] }),
8059
- mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs38(HStack11, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
8060
- chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs38(
8112
+ mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs39(HStack11, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
8113
+ chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs39(
8061
8114
  chakra31.span,
8062
8115
  {
8063
8116
  display: "inline-flex",
@@ -8072,17 +8125,17 @@ function QueryableList({
8072
8125
  bg: "bg.selected",
8073
8126
  textStyle: "sm",
8074
8127
  children: [
8075
- /* @__PURE__ */ jsx53(Text14, { as: "span", fontWeight: "medium", children: label(c2.field) }),
8076
- /* @__PURE__ */ jsx53(Text14, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
8077
- !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx53(Text14, { as: "span", children: valueText(c2.value) }),
8078
- /* @__PURE__ */ jsx53(IconButton, { size: "xs", variant: "ghost", "aria-label": fill3(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx53(X2, {}) })
8128
+ /* @__PURE__ */ jsx54(Text14, { as: "span", fontWeight: "medium", children: label(c2.field) }),
8129
+ /* @__PURE__ */ jsx54(Text14, { as: "span", color: "fg.muted", children: opLabel(c2.op, c2.field) }),
8130
+ !NO_VALUE_OPS.has(c2.op) && /* @__PURE__ */ jsx54(Text14, { as: "span", children: valueText(c2.value) }),
8131
+ /* @__PURE__ */ jsx54(IconButton, { size: "xs", variant: "ghost", "aria-label": fill3(labels.removeFilter, { field: label(c2.field) }), onClick: () => setConditions(conditions.filter((_, j) => j !== i)), children: /* @__PURE__ */ jsx54(X2, {}) })
8079
8132
  ]
8080
8133
  },
8081
8134
  `${c2.field}-${i}`
8082
8135
  )),
8083
- /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8136
+ /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", onClick: () => setConditions(searching >= 0 ? [conditions[searching]] : []), children: labels.clearAll })
8084
8137
  ] }),
8085
- adding && fields && conditions !== null && /* @__PURE__ */ jsx53(
8138
+ adding && fields && conditions !== null && /* @__PURE__ */ jsx54(
8086
8139
  FilterBuilderDialog,
8087
8140
  {
8088
8141
  fields,
@@ -8097,25 +8150,25 @@ function QueryableList({
8097
8150
  }
8098
8151
  }
8099
8152
  ),
8100
- toolbarFooter != null && /* @__PURE__ */ jsx53(chakra31.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8153
+ toolbarFooter != null && /* @__PURE__ */ jsx54(chakra31.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
8101
8154
  ] }),
8102
- mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx53(InlineAlert, { tone: "danger", children: error.message }),
8103
- exported && /* @__PURE__ */ jsx53(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs38(HStack11, { justify: "space-between", gap: "2", align: "start", children: [
8104
- /* @__PURE__ */ jsx53(Text14, { as: "span", children: exported.message }),
8105
- /* @__PURE__ */ jsx53(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx53(X2, {}) })
8155
+ mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx54(InlineAlert, { tone: "danger", children: error.message }),
8156
+ exported && /* @__PURE__ */ jsx54(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs39(HStack11, { justify: "space-between", gap: "2", align: "start", children: [
8157
+ /* @__PURE__ */ jsx54(Text14, { as: "span", children: exported.message }),
8158
+ /* @__PURE__ */ jsx54(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss, onClick: () => setExported(null), children: /* @__PURE__ */ jsx54(X2, {}) })
8106
8159
  ] }) }),
8107
- /* @__PURE__ */ jsx53(
8160
+ /* @__PURE__ */ jsx54(
8108
8161
  Panel,
8109
8162
  {
8110
8163
  flush: true,
8111
8164
  footer: (
8112
8165
  // Expand and collapse at the start, the pages in the middle (the canvas's v12, UI round 9 step 67), the range at the end.
8113
- /* @__PURE__ */ jsxs38(chakra31.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
8114
- /* @__PURE__ */ jsx53(HStack11, { gap: "3", children: grouped && /* @__PURE__ */ jsxs38(Fragment16, { children: [
8115
- /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
8116
- /* @__PURE__ */ jsx53(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
8166
+ /* @__PURE__ */ jsxs39(chakra31.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
8167
+ /* @__PURE__ */ jsx54(HStack11, { gap: "3", children: grouped && /* @__PURE__ */ jsxs39(Fragment17, { children: [
8168
+ /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
8169
+ /* @__PURE__ */ jsx54(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
8117
8170
  ] }) }),
8118
- /* @__PURE__ */ jsx53(
8171
+ /* @__PURE__ */ jsx54(
8119
8172
  Pagination,
8120
8173
  {
8121
8174
  page: Math.floor(skip / take) + 1,
@@ -8128,10 +8181,10 @@ function QueryableList({
8128
8181
  pageLabel: (n) => fill3(labels.page, { page: fmt.number(n) })
8129
8182
  }
8130
8183
  ),
8131
- /* @__PURE__ */ jsx53(Text14, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result ? fill3(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
8184
+ /* @__PURE__ */ jsx54(Text14, { textStyle: "caption", color: "fg.muted", textAlign: { md: "end" }, fontVariantNumeric: "tabular-nums", "aria-live": "polite", children: result ? fill3(labels.range, { from: fmt.number(from), to: fmt.number(to), total: fmt.number(total) }) : " " })
8132
8185
  ] })
8133
8186
  ),
8134
- children: /* @__PURE__ */ jsx53(
8187
+ children: /* @__PURE__ */ jsx54(
8135
8188
  DataTable,
8136
8189
  {
8137
8190
  "aria-label": ariaLabel,
@@ -8177,11 +8230,11 @@ function QueryableList({
8177
8230
  const label2 = thenField ? info?.then?.label : info?.label;
8178
8231
  const value = thenField ? info?.then?.value ?? null : info?.value ?? null;
8179
8232
  const period = thenField ? query.groupBy?.then?.period : query.groupBy?.period;
8180
- return /* @__PURE__ */ jsxs38(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8181
- /* @__PURE__ */ jsx53(chakra31.span, { display: "inline-flex", alignItems: "center", fontWeight: "medium", textStyle: "sm", minW: "0", children: raw == null || period || value == null ? groupName(value, label2, period) : renderCell(field, raw, first) }),
8182
- /* @__PURE__ */ jsx53(CountBadge, { value: info?.count ?? rows.length }),
8233
+ return /* @__PURE__ */ jsxs39(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8234
+ /* @__PURE__ */ jsx54(chakra31.span, { display: "inline-flex", alignItems: "center", fontWeight: "medium", textStyle: "sm", minW: "0", children: raw == null || period || value == null ? groupName(value, label2, period) : renderCell(field, raw, first) }),
8235
+ /* @__PURE__ */ jsx54(CountBadge, { value: info?.count ?? rows.length }),
8183
8236
  !thenField && renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" }),
8184
- conditions !== null && !period && /* @__PURE__ */ jsxs38(
8237
+ conditions !== null && !period && /* @__PURE__ */ jsxs39(
8185
8238
  Button,
8186
8239
  {
8187
8240
  size: "xs",
@@ -8199,8 +8252,8 @@ function QueryableList({
8199
8252
  condition(field, value)
8200
8253
  ]),
8201
8254
  children: [
8202
- /* @__PURE__ */ jsx53(Filter, {}),
8203
- /* @__PURE__ */ jsx53(chakra31.span, { hideBelow: "md", children: labels.filterToGroup })
8255
+ /* @__PURE__ */ jsx54(Filter, {}),
8256
+ /* @__PURE__ */ jsx54(chakra31.span, { hideBelow: "md", children: labels.filterToGroup })
8204
8257
  ]
8205
8258
  }
8206
8259
  )
@@ -8219,9 +8272,9 @@ function QueryableList({
8219
8272
  const first = groups[0]?.rows[0];
8220
8273
  const raw = first?.values[groupField];
8221
8274
  const count = (result?.groups ?? []).filter((g) => groupKey(g.value) === parent).reduce((n, g) => n + g.count, 0);
8222
- return /* @__PURE__ */ jsxs38(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8223
- /* @__PURE__ */ jsx53(chakra31.span, { display: "inline-flex", alignItems: "center", fontWeight: "bold", textStyle: "sm", minW: "0", children: raw == null || query.groupBy?.period || info?.value == null ? groupName(info?.value, info?.label, query.groupBy?.period) : renderCell(groupField, raw, first) }),
8224
- /* @__PURE__ */ jsx53(CountBadge, { value: count }),
8275
+ return /* @__PURE__ */ jsxs39(HStack11, { gap: "2.5", flex: "1", minW: "0", children: [
8276
+ /* @__PURE__ */ jsx54(chakra31.span, { display: "inline-flex", alignItems: "center", fontWeight: "bold", textStyle: "sm", minW: "0", children: raw == null || query.groupBy?.period || info?.value == null ? groupName(info?.value, info?.label, query.groupBy?.period) : renderCell(groupField, raw, first) }),
8277
+ /* @__PURE__ */ jsx54(CountBadge, { value: count }),
8225
8278
  renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" })
8226
8279
  ] });
8227
8280
  }
@@ -8257,14 +8310,14 @@ function QueryableList({
8257
8310
  }
8258
8311
  function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8259
8312
  const labels = useAbpLabels().queryList;
8260
- const [text, setText] = useState21(initial);
8313
+ const [text, setText] = useState22(initial);
8261
8314
  const timer = useRef19(void 0);
8262
8315
  useEffect15(() => () => clearTimeout(timer.current), []);
8263
8316
  function later(next) {
8264
8317
  clearTimeout(timer.current);
8265
8318
  timer.current = setTimeout(() => next.trim() !== initial.trim() && onRun(next), 400);
8266
8319
  }
8267
- return /* @__PURE__ */ jsx53(
8320
+ return /* @__PURE__ */ jsx54(
8268
8321
  chakra31.form,
8269
8322
  {
8270
8323
  role: "search",
@@ -8276,7 +8329,7 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
8276
8329
  clearTimeout(timer.current);
8277
8330
  if (text.trim() !== initial.trim()) onRun(text);
8278
8331
  },
8279
- children: /* @__PURE__ */ jsx53(
8332
+ children: /* @__PURE__ */ jsx54(
8280
8333
  SearchInput,
8281
8334
  {
8282
8335
  size: "sm",
@@ -8318,14 +8371,14 @@ function placeholderOf(id, kind) {
8318
8371
  }
8319
8372
  function ExportMenu({ busy, disabled, onExport }) {
8320
8373
  const labels = useAbpLabels().queryList;
8321
- return /* @__PURE__ */ jsxs38(Menu3.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
8322
- /* @__PURE__ */ jsx53(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs38(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
8323
- /* @__PURE__ */ jsx53(Download, {}),
8374
+ return /* @__PURE__ */ jsxs39(Menu3.Root, { positioning: { placement: "bottom-end" }, onSelect: (d) => onExport(d.value), children: [
8375
+ /* @__PURE__ */ jsx54(Menu3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs39(Button, { size: "sm", variant: "secondary", disabled: disabled || busy, loading: busy, loadingText: labels.exporting, children: [
8376
+ /* @__PURE__ */ jsx54(Download, {}),
8324
8377
  labels.export
8325
8378
  ] }) }),
8326
- /* @__PURE__ */ jsx53(Portal15, { children: /* @__PURE__ */ jsx53(Menu3.Positioner, { children: /* @__PURE__ */ jsxs38(Menu3.Content, { minW: "48", children: [
8327
- /* @__PURE__ */ jsx53(Menu3.Item, { value: "csv", children: labels.exportCsv }),
8328
- /* @__PURE__ */ jsx53(Menu3.Item, { value: "xlsx", children: labels.exportExcel })
8379
+ /* @__PURE__ */ jsx54(Portal15, { children: /* @__PURE__ */ jsx54(Menu3.Positioner, { children: /* @__PURE__ */ jsxs39(Menu3.Content, { minW: "48", children: [
8380
+ /* @__PURE__ */ jsx54(Menu3.Item, { value: "csv", children: labels.exportCsv }),
8381
+ /* @__PURE__ */ jsx54(Menu3.Item, { value: "xlsx", children: labels.exportExcel })
8329
8382
  ] }) }) })
8330
8383
  ] });
8331
8384
  }
@@ -8336,10 +8389,10 @@ function RqlBox({
8336
8389
  onRun
8337
8390
  }) {
8338
8391
  const labels = useAbpLabels().queryList;
8339
- const [text, setText] = useState21(initial);
8340
- const [found, setFound] = useState21(null);
8341
- const [active, setActive] = useState21(0);
8342
- const [open, setOpen] = useState21(false);
8392
+ const [text, setText] = useState22(initial);
8393
+ const [found, setFound] = useState22(null);
8394
+ const [active, setActive] = useState22(0);
8395
+ const [open, setOpen] = useState22(false);
8343
8396
  const input = useRef19(null);
8344
8397
  const timer = useRef19(void 0);
8345
8398
  const seq = useRef19(0);
@@ -8405,9 +8458,9 @@ function RqlBox({
8405
8458
  }
8406
8459
  }
8407
8460
  const hasSpan = error?.start != null && error.end != null && error.end >= error.start && error.end <= text.length;
8408
- return /* @__PURE__ */ jsxs38(Stack11, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
8409
- /* @__PURE__ */ jsxs38(HStack11, { gap: "2", children: [
8410
- /* @__PURE__ */ jsx53(
8461
+ return /* @__PURE__ */ jsxs39(Stack11, { gap: "1.5", flex: "1", minW: "0", position: "relative", children: [
8462
+ /* @__PURE__ */ jsxs39(HStack11, { gap: "2", children: [
8463
+ /* @__PURE__ */ jsx54(
8411
8464
  Input6,
8412
8465
  {
8413
8466
  ref: input,
@@ -8433,9 +8486,9 @@ function RqlBox({
8433
8486
  onKeyDown
8434
8487
  }
8435
8488
  ),
8436
- /* @__PURE__ */ jsx53(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8489
+ /* @__PURE__ */ jsx54(Button, { size: "sm", variant: "primary", onClick: () => onRun(text.trim()), children: labels.run })
8437
8490
  ] }),
8438
- open && found && /* @__PURE__ */ jsx53(
8491
+ open && found && /* @__PURE__ */ jsx54(
8439
8492
  Box10,
8440
8493
  {
8441
8494
  id: listId,
@@ -8454,7 +8507,7 @@ function RqlBox({
8454
8507
  borderRadius: "md",
8455
8508
  boxShadow: "md",
8456
8509
  py: "1",
8457
- children: found.items.map((item, i) => /* @__PURE__ */ jsxs38(
8510
+ children: found.items.map((item, i) => /* @__PURE__ */ jsxs39(
8458
8511
  HStack11,
8459
8512
  {
8460
8513
  id: `${listId}-${i}`,
@@ -8472,19 +8525,19 @@ function RqlBox({
8472
8525
  },
8473
8526
  onMouseEnter: () => setActive(i),
8474
8527
  children: [
8475
- /* @__PURE__ */ jsx53(Text14, { 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 }),
8476
- /* @__PURE__ */ jsx53(Text14, { 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 })
8528
+ /* @__PURE__ */ jsx54(Text14, { 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 }),
8529
+ /* @__PURE__ */ jsx54(Text14, { 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 })
8477
8530
  ]
8478
8531
  },
8479
8532
  `${item.kind}-${item.text}`
8480
8533
  ))
8481
8534
  }
8482
8535
  ),
8483
- error && /* @__PURE__ */ jsxs38(InlineAlert, { tone: "danger", size: "sm", children: [
8536
+ error && /* @__PURE__ */ jsxs39(InlineAlert, { tone: "danger", size: "sm", children: [
8484
8537
  error.message,
8485
- hasSpan && /* @__PURE__ */ jsxs38(chakra31.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8538
+ hasSpan && /* @__PURE__ */ jsxs39(chakra31.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
8486
8539
  text.slice(0, error.start),
8487
- /* @__PURE__ */ jsx53(chakra31.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8540
+ /* @__PURE__ */ jsx54(chakra31.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
8488
8541
  text.slice(error.end)
8489
8542
  ] })
8490
8543
  ] })
@@ -8495,12 +8548,12 @@ function RqlBox({
8495
8548
  import { forwardRef as forwardRef9, useLayoutEffect as useLayoutEffect4, useRef as useRef20 } from "react";
8496
8549
  import { Box as Box11, HStack as HStack12, Portal as Portal16, Text as Text15 } from "@chakra-ui/react";
8497
8550
  import { ArrowDownToLine } from "lucide-react";
8498
- import { jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
8551
+ import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
8499
8552
  var OUT3 = `cubic-bezier(${curves.out.join(", ")})`;
8500
8553
  var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: over2 = false, hint, children, ...rest }, ref) {
8501
8554
  const { reduce } = useMotionSetting();
8502
8555
  const lit = awake || over2;
8503
- return /* @__PURE__ */ jsxs39(
8556
+ return /* @__PURE__ */ jsxs40(
8504
8557
  Box11,
8505
8558
  {
8506
8559
  ref,
@@ -8519,7 +8572,7 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8519
8572
  ...rest,
8520
8573
  children: [
8521
8574
  children,
8522
- /* @__PURE__ */ jsx54(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs39(
8575
+ /* @__PURE__ */ jsx55(Presence, { show: lit, from: "fade", position: "absolute", inset: "0", rounded: "l2", zIndex: "1", pointerEvents: "none", children: /* @__PURE__ */ jsxs40(
8523
8576
  HStack12,
8524
8577
  {
8525
8578
  h: "full",
@@ -8533,8 +8586,8 @@ var FileDropArea = forwardRef9(function FileDropArea2({ awake = false, over: ove
8533
8586
  textAlign: "center",
8534
8587
  style: { transition: "background-color 160ms ease" },
8535
8588
  children: [
8536
- /* @__PURE__ */ jsx54(Bob, { active: over2 && !reduce }),
8537
- /* @__PURE__ */ jsx54(Text15, { as: "span", truncate: true, children: hint })
8589
+ /* @__PURE__ */ jsx55(Bob, { active: over2 && !reduce }),
8590
+ /* @__PURE__ */ jsx55(Text15, { as: "span", truncate: true, children: hint })
8538
8591
  ]
8539
8592
  }
8540
8593
  ) })
@@ -8553,12 +8606,12 @@ function Bob({ active }) {
8553
8606
  });
8554
8607
  return () => animation?.cancel();
8555
8608
  }, [active]);
8556
- return /* @__PURE__ */ jsx54(Box11, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx54(ArrowDownToLine, {}) });
8609
+ return /* @__PURE__ */ jsx55(Box11, { as: "span", ref, display: "inline-flex", flexShrink: 0, _icon: { boxSize: "4" }, children: /* @__PURE__ */ jsx55(ArrowDownToLine, {}) });
8557
8610
  }
8558
8611
  function DropHint({ show, children }) {
8559
- return /* @__PURE__ */ jsx54(Portal16, { children: /* @__PURE__ */ jsx54(Box11, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx54(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs39(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: [
8560
- /* @__PURE__ */ jsx54(ArrowDownToLine, {}),
8561
- /* @__PURE__ */ jsx54(Text15, { as: "span", truncate: true, children })
8612
+ return /* @__PURE__ */ jsx55(Portal16, { children: /* @__PURE__ */ jsx55(Box11, { position: "fixed", insetInline: "0", bottom: "6", display: "flex", justifyContent: "center", pointerEvents: "none", zIndex: "toast", px: "4", children: /* @__PURE__ */ jsx55(Presence, { show, from: "rise", children: /* @__PURE__ */ jsxs40(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: [
8613
+ /* @__PURE__ */ jsx55(ArrowDownToLine, {}),
8614
+ /* @__PURE__ */ jsx55(Text15, { as: "span", truncate: true, children })
8562
8615
  ] }) }) }) });
8563
8616
  }
8564
8617
 
@@ -8566,46 +8619,46 @@ function DropHint({ show, children }) {
8566
8619
  import { useLayoutEffect as useLayoutEffect5, useRef as useRef21 } from "react";
8567
8620
  import { Box as Box12, chakra as chakra32, HStack as HStack13, Stack as Stack12, Text as Text16 } from "@chakra-ui/react";
8568
8621
  import { Check as Check3, File as FileIcon, RotateCcw, TriangleAlert, X as X3 } from "lucide-react";
8569
- import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
8622
+ import { jsx as jsx56, jsxs as jsxs41 } from "react/jsx-runtime";
8570
8623
  var OUT4 = `cubic-bezier(${curves.out.join(", ")})`;
8571
8624
  function UploadList({ rows, summary, fraction, announce, labels, onCancel, onRetry, onDismiss }) {
8572
- return /* @__PURE__ */ jsxs40(Stack12, { gap: "2", "data-testid": "upload-list", children: [
8573
- /* @__PURE__ */ jsx55(chakra32.span, { srOnly: true, "aria-live": "polite", children: announce }),
8574
- rows.length > 0 && summary != null && /* @__PURE__ */ jsxs40(Stack12, { gap: "1", children: [
8575
- /* @__PURE__ */ jsx55(Text16, { textStyle: "caption", color: "fg.muted", children: summary }),
8576
- fraction != null && /* @__PURE__ */ jsx55(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
8625
+ return /* @__PURE__ */ jsxs41(Stack12, { gap: "2", "data-testid": "upload-list", children: [
8626
+ /* @__PURE__ */ jsx56(chakra32.span, { srOnly: true, "aria-live": "polite", children: announce }),
8627
+ rows.length > 0 && summary != null && /* @__PURE__ */ jsxs41(Stack12, { gap: "1", children: [
8628
+ /* @__PURE__ */ jsx56(Text16, { textStyle: "caption", color: "fg.muted", children: summary }),
8629
+ fraction != null && /* @__PURE__ */ jsx56(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
8577
8630
  ] }),
8578
- /* @__PURE__ */ jsx55(Stack12, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx55(PresenceList, { children: rows.map((row) => /* @__PURE__ */ jsx55(PresenceItem, { children: /* @__PURE__ */ jsx55(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
8631
+ /* @__PURE__ */ jsx56(Stack12, { gap: "1.5", position: "relative", children: /* @__PURE__ */ jsx56(PresenceList, { children: rows.map((row) => /* @__PURE__ */ jsx56(PresenceItem, { children: /* @__PURE__ */ jsx56(Row, { row, labels, onCancel, onRetry, onDismiss }) }, row.id)) }) })
8579
8632
  ] });
8580
8633
  }
8581
8634
  function Row({ row, labels, onCancel, onRetry, onDismiss }) {
8582
8635
  const going = row.state === "waiting" || row.state === "sending";
8583
8636
  const trouble = row.state === "failed" || row.state === "refused";
8584
- return /* @__PURE__ */ jsxs40(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: [
8585
- /* @__PURE__ */ jsx55(Preview, { src: row.preview }),
8586
- /* @__PURE__ */ jsxs40(Stack12, { gap: "1", flex: "1", minW: "0", children: [
8587
- /* @__PURE__ */ jsxs40(HStack13, { gap: "2", justify: "space-between", children: [
8588
- /* @__PURE__ */ jsx55(Text16, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx55("bdi", { children: row.name }) }),
8589
- /* @__PURE__ */ jsx55(Text16, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx55(Done, {}) : row.status })
8637
+ return /* @__PURE__ */ jsxs41(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: [
8638
+ /* @__PURE__ */ jsx56(Preview, { src: row.preview }),
8639
+ /* @__PURE__ */ jsxs41(Stack12, { gap: "1", flex: "1", minW: "0", children: [
8640
+ /* @__PURE__ */ jsxs41(HStack13, { gap: "2", justify: "space-between", children: [
8641
+ /* @__PURE__ */ jsx56(Text16, { as: "span", fontWeight: "medium", truncate: true, children: /* @__PURE__ */ jsx56("bdi", { children: row.name }) }),
8642
+ /* @__PURE__ */ jsx56(Text16, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", flexShrink: 0, fontVariantNumeric: "tabular-nums", children: row.state === "done" ? /* @__PURE__ */ jsx56(Done, {}) : row.status })
8590
8643
  ] }),
8591
- (going || row.state === "done") && /* @__PURE__ */ jsx55(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
8592
- row.detail != null && /* @__PURE__ */ jsxs40(Text16, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
8593
- trouble && /* @__PURE__ */ jsx55(Box12, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx55(TriangleAlert, {}) }),
8644
+ (going || row.state === "done") && /* @__PURE__ */ jsx56(Bar2, { fraction: row.state === "done" ? 1 : row.fraction, tone: row.state === "done" ? "success" : "accent", label: row.name, quiet: row.state === "waiting" }),
8645
+ row.detail != null && /* @__PURE__ */ jsxs41(Text16, { as: "span", textStyle: "caption", color: trouble ? "fg.error" : "fg.muted", truncate: true, children: [
8646
+ trouble && /* @__PURE__ */ jsx56(Box12, { as: "span", display: "inline-flex", verticalAlign: "-0.15em", me: "1", _icon: { boxSize: "3.5" }, children: /* @__PURE__ */ jsx56(TriangleAlert, {}) }),
8594
8647
  row.detail
8595
8648
  ] })
8596
8649
  ] }),
8597
- going && /* @__PURE__ */ jsx55(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx55(X3, {}) }),
8598
- row.state === "failed" && /* @__PURE__ */ jsx55(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx55(RotateCcw, {}) }),
8599
- trouble && /* @__PURE__ */ jsx55(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx55(X3, {}) })
8650
+ going && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.cancel(row.name), onClick: () => onCancel(row.id), children: /* @__PURE__ */ jsx56(X3, {}) }),
8651
+ row.state === "failed" && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.retry(row.name), onClick: () => onRetry(row.id), children: /* @__PURE__ */ jsx56(RotateCcw, {}) }),
8652
+ trouble && /* @__PURE__ */ jsx56(IconButton, { size: "xs", variant: "ghost", "aria-label": labels.dismiss(row.name), onClick: () => onDismiss(row.id), children: /* @__PURE__ */ jsx56(X3, {}) })
8600
8653
  ] });
8601
8654
  }
8602
8655
  function Preview({ src }) {
8603
- return /* @__PURE__ */ jsx55(Box12, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx55(chakra32.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx55(FileIcon, {}) });
8656
+ return /* @__PURE__ */ jsx56(Box12, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx56(chakra32.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx56(FileIcon, {}) });
8604
8657
  }
8605
8658
  function Bar2({ fraction, tone, label, quiet: quiet2 }) {
8606
8659
  const { reduce } = useMotionSetting();
8607
8660
  const percent = Math.round(Math.max(0, Math.min(1, fraction)) * 100);
8608
- return /* @__PURE__ */ jsx55(Box12, { h: "1", rounded: "full", bg: "bg.emphasized", overflow: "hidden", opacity: quiet2 ? 0.6 : 1, role: "progressbar", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": percent, children: /* @__PURE__ */ jsx55(
8661
+ return /* @__PURE__ */ jsx56(Box12, { h: "1", rounded: "full", bg: "bg.emphasized", overflow: "hidden", opacity: quiet2 ? 0.6 : 1, role: "progressbar", "aria-label": label, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": percent, children: /* @__PURE__ */ jsx56(
8609
8662
  Box12,
8610
8663
  {
8611
8664
  h: "full",
@@ -8632,11 +8685,11 @@ function Done() {
8632
8685
  { duration: 260, easing: OUT4 }
8633
8686
  );
8634
8687
  }, []);
8635
- return /* @__PURE__ */ jsx55(chakra32.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx55(Check3, { strokeWidth: 3 }) });
8688
+ return /* @__PURE__ */ jsx56(chakra32.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx56(Check3, { strokeWidth: 3 }) });
8636
8689
  }
8637
8690
 
8638
8691
  // src/files/drop.ts
8639
- import { useEffect as useEffect16, useRef as useRef22, useState as useState22, useSyncExternalStore as useSyncExternalStore3 } from "react";
8692
+ import { useEffect as useEffect16, useRef as useRef22, useState as useState23, useSyncExternalStore as useSyncExternalStore3 } from "react";
8640
8693
 
8641
8694
  // src/files/upload-plan.ts
8642
8695
  var UPLOADS_AT_ONCE = 3;
@@ -8795,7 +8848,7 @@ function droppedFiles(data) {
8795
8848
  return Promise.resolve(Array.from(data.files).filter((f) => !JUNK.test(f.name)).map((file) => ({ file, path: file.name })));
8796
8849
  }
8797
8850
  function useDropZone(ref, { enabled = true, onFiles }) {
8798
- const [state, setState] = useState22({ over: false, part: null });
8851
+ const [state, setState] = useState23({ over: false, part: null });
8799
8852
  const take = useRef22(onFiles);
8800
8853
  useEffect16(() => {
8801
8854
  take.current = onFiles;
@@ -8902,7 +8955,7 @@ function usePastedFiles({ enabled = true, onFiles }) {
8902
8955
  }
8903
8956
 
8904
8957
  // src/components/SortableSections.tsx
8905
- import { useMemo as useMemo13, useState as useState23 } from "react";
8958
+ import { useMemo as useMemo13, useState as useState24 } from "react";
8906
8959
  import { Box as Box13, Stack as Stack13, Text as Text17 } from "@chakra-ui/react";
8907
8960
  import {
8908
8961
  DndContext as DndContext4,
@@ -8916,7 +8969,7 @@ import {
8916
8969
  } from "@dnd-kit/core";
8917
8970
  import { SortableContext as SortableContext3, sortableKeyboardCoordinates as sortableKeyboardCoordinates3, useSortable as useSortable3, verticalListSortingStrategy as verticalListSortingStrategy3 } from "@dnd-kit/sortable";
8918
8971
  import { CSS as CSS4 } from "@dnd-kit/utilities";
8919
- import { jsx as jsx56, jsxs as jsxs41 } from "react/jsx-runtime";
8972
+ import { jsx as jsx57, jsxs as jsxs42 } from "react/jsx-runtime";
8920
8973
  var sectionId = (id) => `section:${id}`;
8921
8974
  function SortableSections({
8922
8975
  "aria-label": ariaLabel,
@@ -8930,12 +8983,12 @@ function SortableSections({
8930
8983
  skeletonItemHeight = "9"
8931
8984
  }) {
8932
8985
  const loading = useLoading(own);
8933
- const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx56(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
8986
+ const shown = loading && sections.length === 0 ? [0, 1].map((n) => ({ id: `skeleton-${n}`, header: /* @__PURE__ */ jsx57(TextBone, { width: boneWidth(n, 14, 22) }), items: [] })) : sections;
8934
8987
  const sensors = useSensors4(
8935
8988
  useSensor4(PointerSensor4, { activationConstraint: { distance: 6 } }),
8936
8989
  useSensor4(KeyboardSensor3, { coordinateGetter: sortableKeyboardCoordinates3 })
8937
8990
  );
8938
- const [active, setActive] = useState23(null);
8991
+ const [active, setActive] = useState24(null);
8939
8992
  const sectionOf = useMemo13(() => {
8940
8993
  const map = /* @__PURE__ */ new Map();
8941
8994
  for (const s of sections) for (const item of s.items) map.set(item.id, s.id);
@@ -8966,7 +9019,7 @@ function SortableSections({
8966
9019
  if (from === target && !move.before && !move.after) return;
8967
9020
  onMove(item, move);
8968
9021
  }
8969
- return /* @__PURE__ */ jsxs41(
9022
+ return /* @__PURE__ */ jsxs42(
8970
9023
  DndContext4,
8971
9024
  {
8972
9025
  sensors,
@@ -8976,16 +9029,16 @@ function SortableSections({
8976
9029
  onDragCancel: () => setActive(null),
8977
9030
  accessibility: { announcements, screenReaderInstructions: screenReaderInstructions ? { draggable: screenReaderInstructions } : void 0 },
8978
9031
  children: [
8979
- /* @__PURE__ */ jsx56(Stack13, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs41(Section, { section: s, dragging: !!active, children: [
8980
- loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs41(Box13, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
8981
- /* @__PURE__ */ jsx56(Bone, { width: "14", height: "4" }),
8982
- /* @__PURE__ */ jsx56(TextBone, { width: boneWidth(n, 16, 36) })
9032
+ /* @__PURE__ */ jsx57(Stack13, { role: "region", "aria-label": ariaLabel, gap: "4", children: shown.map((s) => /* @__PURE__ */ jsxs42(Section, { section: s, dragging: !!active, children: [
9033
+ loading && s.items.length === 0 && Array.from({ length: skeletonItems }, (_, n) => /* @__PURE__ */ jsxs42(Box13, { h: skeletonItemHeight, px: "2", display: "flex", alignItems: "center", gap: "3", "aria-hidden": "true", children: [
9034
+ /* @__PURE__ */ jsx57(Bone, { width: "14", height: "4" }),
9035
+ /* @__PURE__ */ jsx57(TextBone, { width: boneWidth(n, 16, 36) })
8983
9036
  ] }, n)),
8984
- s.items.map((item) => /* @__PURE__ */ jsx56(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
8985
- !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx56(Text17, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
9037
+ s.items.map((item) => /* @__PURE__ */ jsx57(SortableItem, { id: item.id, children: (dragging) => renderItem(item, { dragging }) }, item.id)),
9038
+ !loading && s.items.length === 0 && s.empty && /* @__PURE__ */ jsx57(Text17, { textStyle: "caption", color: "fg.subtle", textAlign: "center", py: "4", children: s.empty }),
8986
9039
  !loading && s.footer
8987
9040
  ] }, s.id)) }),
8988
- /* @__PURE__ */ jsx56(DragOverlay3, { children: active ? /* @__PURE__ */ jsx56(Box13, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
9041
+ /* @__PURE__ */ jsx57(DragOverlay3, { children: active ? /* @__PURE__ */ jsx57(Box13, { shadow: "lg", rounded: "l2", bg: "bg.panel", children: renderItem(active, { dragging: true }) }) : null })
8989
9042
  ]
8990
9043
  }
8991
9044
  );
@@ -8993,9 +9046,9 @@ function SortableSections({
8993
9046
  function Section({ section, dragging, children }) {
8994
9047
  const id = sectionId(section.id);
8995
9048
  const { setNodeRef, isOver } = useDroppable3({ id });
8996
- return /* @__PURE__ */ jsxs41(Box13, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
8997
- /* @__PURE__ */ jsx56(Box13, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
8998
- /* @__PURE__ */ jsx56(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx56(
9049
+ return /* @__PURE__ */ jsxs42(Box13, { as: "section", borderWidth: "1px", borderColor: "border", rounded: "l3", bg: "bg.panel", "data-section": section.id, children: [
9050
+ /* @__PURE__ */ jsx57(Box13, { px: "3", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: section.header }),
9051
+ /* @__PURE__ */ jsx57(SortableContext3, { id, items: section.items.map((i) => i.id), strategy: verticalListSortingStrategy3, children: /* @__PURE__ */ jsx57(
8999
9052
  Stack13,
9000
9053
  {
9001
9054
  ref: setNodeRef,
@@ -9012,7 +9065,7 @@ function Section({ section, dragging, children }) {
9012
9065
  }
9013
9066
  function SortableItem({ id, children }) {
9014
9067
  const { attributes, listeners: listeners2, setNodeRef, transform, transition, isDragging } = useSortable3({ id });
9015
- return /* @__PURE__ */ jsx56(
9068
+ return /* @__PURE__ */ jsx57(
9016
9069
  Box13,
9017
9070
  {
9018
9071
  ref: setNodeRef,
@@ -9029,10 +9082,10 @@ function SortableItem({ id, children }) {
9029
9082
  }
9030
9083
 
9031
9084
  // src/components/TimelineChart.tsx
9032
- import { Fragment as Fragment17, useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef23, useState as useState24 } from "react";
9085
+ import { Fragment as Fragment18, useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef23, useState as useState25 } from "react";
9033
9086
  import { Box as Box14, HStack as HStack14, Popover as Popover4, Portal as Portal17, Stack as Stack14, Text as Text18 } from "@chakra-ui/react";
9034
9087
  import { Flag, Trash2 as Trash23 } from "lucide-react";
9035
- import { jsx as jsx57, jsxs as jsxs42 } from "react/jsx-runtime";
9088
+ import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
9036
9089
  var DAY2 = 864e5;
9037
9090
  var toDay = (day) => Math.round(Date.parse(`${day}T00:00:00Z`) / DAY2);
9038
9091
  var fromDay = (n) => new Date(n * DAY2).toISOString().slice(0, 10);
@@ -9071,7 +9124,7 @@ function TimelineChart({
9071
9124
  const placeholders = useLoading(own) && rows.length === 0;
9072
9125
  const shown = placeholders ? Array.from({ length: skeletonRows }, (_, i) => ({ id: `skeleton-${i}` })) : rows;
9073
9126
  const root = useRef23(null);
9074
- const [room, setRoom] = useState24(0);
9127
+ const [room, setRoom] = useState25(0);
9075
9128
  useEffect17(() => {
9076
9129
  const el = root.current;
9077
9130
  if (!fill4 || !el) return;
@@ -9082,7 +9135,7 @@ function TimelineChart({
9082
9135
  const origin = toDay(from);
9083
9136
  const days = Math.max(toDay(to) - origin + 1, fill4 ? Math.floor(room / dayWidth) : 0);
9084
9137
  const width = days * dayWidth;
9085
- const [drag, setDrag] = useState24(null);
9138
+ const [drag, setDrag] = useState25(null);
9086
9139
  const moved = useRef23(false);
9087
9140
  const scrolled = useRef23(0);
9088
9141
  const lastWidth = useRef23(dayWidth);
@@ -9130,16 +9183,16 @@ function TimelineChart({
9130
9183
  }
9131
9184
  const { reduce } = useMotionSetting();
9132
9185
  const layer = useRef23(null);
9133
- const [linking, setLinking] = useState24(null);
9134
- const [hot, setHot] = useState24(null);
9135
- const [menu, setMenu] = useState24(null);
9186
+ const [linking, setLinking] = useState25(null);
9187
+ const [hot, setHot] = useState25(null);
9188
+ const [menu, setMenu] = useState25(null);
9136
9189
  useEffect17(() => {
9137
9190
  if (!linking) return;
9138
9191
  const cancel = (e) => e.key === "Escape" && setLinking(null);
9139
9192
  window.addEventListener("keydown", cancel);
9140
9193
  return () => window.removeEventListener("keydown", cancel);
9141
9194
  }, [linking]);
9142
- const [card, setCard] = useState24(null);
9195
+ const [card, setCard] = useState25(null);
9143
9196
  const cardTimer = useRef23(void 0);
9144
9197
  const cardOff = () => {
9145
9198
  clearTimeout(cardTimer.current);
@@ -9301,7 +9354,7 @@ function TimelineChart({
9301
9354
  const bandsTop = tickHeight, markersTop = tickHeight + (shownBands.length ? STRIP : 0);
9302
9355
  const headerHeight = markersTop + (shownMarkers.length ? STRIP : 0);
9303
9356
  const todayAt = today ? toDay(today) - origin : -1;
9304
- return /* @__PURE__ */ jsxs42(
9357
+ return /* @__PURE__ */ jsxs43(
9305
9358
  Box14,
9306
9359
  {
9307
9360
  ref: root,
@@ -9319,9 +9372,9 @@ function TimelineChart({
9319
9372
  },
9320
9373
  onKeyDown: zoomKey,
9321
9374
  children: [
9322
- instructions && /* @__PURE__ */ jsx57(Text18, { srOnly: true, children: instructions }),
9323
- /* @__PURE__ */ jsxs42(Box14, { display: "grid", gridTemplateColumns: fill4 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
9324
- /* @__PURE__ */ jsx57(
9375
+ instructions && /* @__PURE__ */ jsx58(Text18, { srOnly: true, children: instructions }),
9376
+ /* @__PURE__ */ jsxs43(Box14, { display: "grid", gridTemplateColumns: fill4 ? `${labelWidth}px minmax(${width}px, 1fr)` : `${labelWidth}px ${width}px`, minW: "fit-content", children: [
9377
+ /* @__PURE__ */ jsx58(
9325
9378
  Box14,
9326
9379
  {
9327
9380
  position: "sticky",
@@ -9340,8 +9393,8 @@ function TimelineChart({
9340
9393
  children: corner
9341
9394
  }
9342
9395
  ),
9343
- /* @__PURE__ */ jsxs42(Box14, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
9344
- ticks.map((t, i) => /* @__PURE__ */ jsx57(
9396
+ /* @__PURE__ */ jsxs43(Box14, { position: "sticky", top: "0", zIndex: "2", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", h: `${headerHeight}px`, overflow: "clip", children: [
9397
+ ticks.map((t, i) => /* @__PURE__ */ jsx58(
9345
9398
  Box14,
9346
9399
  {
9347
9400
  position: "absolute",
@@ -9352,7 +9405,7 @@ function TimelineChart({
9352
9405
  borderInlineStartWidth: "1px",
9353
9406
  borderColor: "border",
9354
9407
  "aria-hidden": true,
9355
- children: /* @__PURE__ */ jsx57(
9408
+ children: /* @__PURE__ */ jsx58(
9356
9409
  Text18,
9357
9410
  {
9358
9411
  position: "sticky",
@@ -9371,7 +9424,7 @@ function TimelineChart({
9371
9424
  },
9372
9425
  t.day
9373
9426
  )),
9374
- subTicks.map((t) => /* @__PURE__ */ jsx57(
9427
+ subTicks.map((t) => /* @__PURE__ */ jsx58(
9375
9428
  Text18,
9376
9429
  {
9377
9430
  position: "absolute",
@@ -9391,7 +9444,7 @@ function TimelineChart({
9391
9444
  },
9392
9445
  t.day
9393
9446
  )),
9394
- offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx57(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx57(
9447
+ offRuns.filter((o) => o.kind === "holiday").map((o) => /* @__PURE__ */ jsx58(Tooltip, { content: o.label, children: /* @__PURE__ */ jsx58(
9395
9448
  Box14,
9396
9449
  {
9397
9450
  position: "absolute",
@@ -9406,7 +9459,7 @@ function TimelineChart({
9406
9459
  "aria-label": o.label
9407
9460
  }
9408
9461
  ) }, `h${o.a}`)),
9409
- shownBands.map((b) => /* @__PURE__ */ jsx57(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx57(
9462
+ shownBands.map((b) => /* @__PURE__ */ jsx58(Tooltip, { content: b.detail ?? b.label, children: /* @__PURE__ */ jsx58(
9410
9463
  Box14,
9411
9464
  {
9412
9465
  position: "absolute",
@@ -9423,7 +9476,7 @@ function TimelineChart({
9423
9476
  focusVisibleRing: "inside",
9424
9477
  overflow: "clip",
9425
9478
  "aria-label": b.label,
9426
- children: /* @__PURE__ */ jsx57(
9479
+ children: /* @__PURE__ */ jsx58(
9427
9480
  Text18,
9428
9481
  {
9429
9482
  position: "sticky",
@@ -9436,12 +9489,12 @@ function TimelineChart({
9436
9489
  color: b.current ? "colorPalette.fg" : "fg.muted",
9437
9490
  fontWeight: b.current ? "medium" : void 0,
9438
9491
  truncate: true,
9439
- children: /* @__PURE__ */ jsx57("bdi", { children: b.label })
9492
+ children: /* @__PURE__ */ jsx58("bdi", { children: b.label })
9440
9493
  }
9441
9494
  )
9442
9495
  }
9443
9496
  ) }, b.id)),
9444
- shownMarkers.map((m4) => /* @__PURE__ */ jsx57(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs42(
9497
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx58(Tooltip, { content: m4.detail ?? m4.label, children: /* @__PURE__ */ jsxs43(
9445
9498
  Box14,
9446
9499
  {
9447
9500
  position: "absolute",
@@ -9466,15 +9519,15 @@ function TimelineChart({
9466
9519
  focusVisibleRing: "outside",
9467
9520
  "aria-label": m4.label,
9468
9521
  children: [
9469
- /* @__PURE__ */ jsx57(Flag, { size: 11, "aria-hidden": true }),
9470
- /* @__PURE__ */ jsx57("bdi", { children: m4.label })
9522
+ /* @__PURE__ */ jsx58(Flag, { size: 11, "aria-hidden": true }),
9523
+ /* @__PURE__ */ jsx58("bdi", { children: m4.label })
9471
9524
  ]
9472
9525
  }
9473
9526
  ) }, m4.id))
9474
9527
  ] }),
9475
- /* @__PURE__ */ jsx57(Box14, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx57(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__ */ jsx57(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
9476
- /* @__PURE__ */ jsxs42(Box14, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
9477
- offRuns.map((o) => /* @__PURE__ */ jsx57(
9528
+ /* @__PURE__ */ jsx58(Box14, { position: "sticky", insetStart: "0", zIndex: "1", bg: "bg.panel", borderInlineEndWidth: "1px", borderColor: "border", children: shown.map((r, i) => /* @__PURE__ */ jsx58(HStack14, { h: `${rowHeight}px`, px: "3", gap: "2", borderBottomWidth: "1px", borderColor: "border.muted", bg: r.heading && !r.lane ? "bg.subtle" : void 0, minW: "0", children: placeholders ? /* @__PURE__ */ jsx58(TextBone, { width: boneWidth(i, 12, 26) }) : r.heading ?? (r.item && renderLabel(r.item)) }, r.id)) }),
9529
+ /* @__PURE__ */ jsxs43(Box14, { ref: layer, position: "relative", zIndex: "0", h: `${shown.length * rowHeight}px`, children: [
9530
+ offRuns.map((o) => /* @__PURE__ */ jsx58(
9478
9531
  Box14,
9479
9532
  {
9480
9533
  position: "absolute",
@@ -9489,8 +9542,8 @@ function TimelineChart({
9489
9542
  },
9490
9543
  `o${o.a}`
9491
9544
  )),
9492
- ticks.map((t) => /* @__PURE__ */ jsx57(Box14, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
9493
- shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx57(
9545
+ ticks.map((t) => /* @__PURE__ */ jsx58(Box14, { position: "absolute", insetStart: `${t.day * dayWidth}px`, top: "0", bottom: "0", borderInlineStartWidth: "1px", borderColor: "border.muted", "aria-hidden": true }, t.day)),
9546
+ shownBands.filter((b) => b.current).map((b) => /* @__PURE__ */ jsx58(
9494
9547
  Box14,
9495
9548
  {
9496
9549
  position: "absolute",
@@ -9505,7 +9558,7 @@ function TimelineChart({
9505
9558
  },
9506
9559
  b.id
9507
9560
  )),
9508
- shownMarkers.map((m4) => /* @__PURE__ */ jsx57(
9561
+ shownMarkers.map((m4) => /* @__PURE__ */ jsx58(
9509
9562
  Box14,
9510
9563
  {
9511
9564
  position: "absolute",
@@ -9522,7 +9575,7 @@ function TimelineChart({
9522
9575
  },
9523
9576
  m4.id
9524
9577
  )),
9525
- todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx57(
9578
+ todayAt >= 0 && todayAt < days && /* @__PURE__ */ jsx58(
9526
9579
  Box14,
9527
9580
  {
9528
9581
  position: "absolute",
@@ -9535,7 +9588,7 @@ function TimelineChart({
9535
9588
  "aria-hidden": true
9536
9589
  }
9537
9590
  ),
9538
- shown.map((r, i) => /* @__PURE__ */ jsx57(
9591
+ shown.map((r, i) => /* @__PURE__ */ jsx58(
9539
9592
  Box14,
9540
9593
  {
9541
9594
  position: "absolute",
@@ -9550,7 +9603,7 @@ function TimelineChart({
9550
9603
  },
9551
9604
  r.id
9552
9605
  )),
9553
- placeholders && shown.map((r, i) => /* @__PURE__ */ jsx57(
9606
+ placeholders && shown.map((r, i) => /* @__PURE__ */ jsx58(
9554
9607
  Bone,
9555
9608
  {
9556
9609
  position: "absolute",
@@ -9567,7 +9620,7 @@ function TimelineChart({
9567
9620
  if (!bl || !bl.start && !bl.end) return null;
9568
9621
  const a = Math.max(toDay(bl.start ?? bl.end) - origin, 0), z = Math.min(toDay(bl.end ?? bl.start) - origin, days - 1);
9569
9622
  if (z < a) return null;
9570
- return /* @__PURE__ */ jsx57(
9623
+ return /* @__PURE__ */ jsx58(
9571
9624
  Box14,
9572
9625
  {
9573
9626
  position: "absolute",
@@ -9589,7 +9642,7 @@ function TimelineChart({
9589
9642
  if (z < a) return null;
9590
9643
  const w = (z - a + 1) * dayWidth - 2;
9591
9644
  const palette3 = c2.tone === "over" ? "danger" : c2.tone === "full" ? "warning" : "accent";
9592
- return /* @__PURE__ */ jsx57(
9645
+ return /* @__PURE__ */ jsx58(
9593
9646
  Box14,
9594
9647
  {
9595
9648
  position: "absolute",
@@ -9630,8 +9683,8 @@ function TimelineChart({
9630
9683
  const thin = tone === "rollup" && !single;
9631
9684
  const diamond = single ? { w: `${DIAMOND}px`, h: `${DIAMOND}px`, top: `${i * rowHeight + rowHeight / 2 - DIAMOND / 2}px`, transform: "rotate(45deg)", rounded: "l1" } : null;
9632
9685
  const canLink = !!onLink && item.linkable !== false && !drag;
9633
- return /* @__PURE__ */ jsxs42(Fragment17, { children: [
9634
- /* @__PURE__ */ jsxs42(
9686
+ return /* @__PURE__ */ jsxs43(Fragment18, { children: [
9687
+ /* @__PURE__ */ jsxs43(
9635
9688
  Box14,
9636
9689
  {
9637
9690
  role: "button",
@@ -9687,7 +9740,7 @@ function TimelineChart({
9687
9740
  "data-bar": item.id,
9688
9741
  children: [
9689
9742
  !single && !thin && renderBar?.(item),
9690
- item.progress != null && !single && /* @__PURE__ */ jsx57(
9743
+ item.progress != null && !single && /* @__PURE__ */ jsx58(
9691
9744
  Box14,
9692
9745
  {
9693
9746
  position: "absolute",
@@ -9703,7 +9756,7 @@ function TimelineChart({
9703
9756
  ),
9704
9757
  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
9705
9758
  // change would be saved twice (the second refused as a conflict).
9706
- /* @__PURE__ */ jsx57(
9759
+ /* @__PURE__ */ jsx58(
9707
9760
  Box14,
9708
9761
  {
9709
9762
  position: "absolute",
@@ -9727,7 +9780,7 @@ function TimelineChart({
9727
9780
  ]
9728
9781
  }
9729
9782
  ),
9730
- canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx57(
9783
+ canLink && (hot === item.id || linking?.from.id === item.id) && /* @__PURE__ */ jsx58(
9731
9784
  Box14,
9732
9785
  {
9733
9786
  position: "absolute",
@@ -9749,12 +9802,12 @@ function TimelineChart({
9749
9802
  onPointerUp: linkUp,
9750
9803
  onPointerCancel: () => setLinking(null),
9751
9804
  "aria-hidden": true,
9752
- children: /* @__PURE__ */ jsx57(Box14, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
9805
+ children: /* @__PURE__ */ jsx58(Box14, { w: "2.5", h: "2.5", rounded: "full", bg: "bg.panel", borderWidth: "2px", borderColor: "accent.solid" })
9753
9806
  }
9754
9807
  )
9755
9808
  ] }, item.id);
9756
9809
  }),
9757
- /* @__PURE__ */ jsx57(
9810
+ /* @__PURE__ */ jsx58(
9758
9811
  Box14,
9759
9812
  {
9760
9813
  position: "absolute",
@@ -9766,8 +9819,8 @@ function TimelineChart({
9766
9819
  zIndex: "1",
9767
9820
  _rtl: { transform: "scaleX(-1)" },
9768
9821
  "aria-hidden": !onUnlink,
9769
- children: /* @__PURE__ */ jsxs42("svg", { width, height: rows.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
9770
- /* @__PURE__ */ jsx57("defs", { children: /* @__PURE__ */ jsx57("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx57("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
9822
+ children: /* @__PURE__ */ jsxs43("svg", { width, height: rows.length * rowHeight, style: { position: "absolute", left: 0, top: 0 }, children: [
9823
+ /* @__PURE__ */ jsx58("defs", { children: /* @__PURE__ */ jsx58("marker", { id: "abp-arrow", viewBox: "0 0 8 8", refX: "7", refY: "4", markerWidth: "7", markerHeight: "7", orient: "auto-start-reverse", children: /* @__PURE__ */ jsx58("path", { d: "M 0 0 L 8 4 L 0 8 z", fill: "context-stroke" }) }) }),
9771
9824
  links.map((l) => {
9772
9825
  const f = ys.get(l.from), t = ys.get(l.to);
9773
9826
  if (!f || !t) return null;
@@ -9778,8 +9831,8 @@ function TimelineChart({
9778
9831
  const picked = menu?.from === l.from && menu.to === l.to;
9779
9832
  const faint = !l.strong && links.some((x) => x.strong);
9780
9833
  const open = (x, y) => setMenu({ from: l.from, to: l.to, x, y });
9781
- return /* @__PURE__ */ jsxs42("g", { children: [
9782
- /* @__PURE__ */ jsx57(
9834
+ return /* @__PURE__ */ jsxs43("g", { children: [
9835
+ /* @__PURE__ */ jsx58(
9783
9836
  "path",
9784
9837
  {
9785
9838
  d,
@@ -9791,7 +9844,7 @@ function TimelineChart({
9791
9844
  markerEnd: "url(#abp-arrow)"
9792
9845
  }
9793
9846
  ),
9794
- onUnlink && /* @__PURE__ */ jsx57(
9847
+ onUnlink && /* @__PURE__ */ jsx58(
9795
9848
  "path",
9796
9849
  {
9797
9850
  d,
@@ -9816,13 +9869,13 @@ function TimelineChart({
9816
9869
  ] })
9817
9870
  }
9818
9871
  ),
9819
- linking && /* @__PURE__ */ jsxs42("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
9820
- /* @__PURE__ */ jsx57("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
9821
- /* @__PURE__ */ jsx57("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
9872
+ linking && /* @__PURE__ */ jsxs43("svg", { width: "100%", height: shown.length * rowHeight, style: { position: "absolute", left: 0, top: 0, pointerEvents: "none", zIndex: 3 }, "aria-hidden": true, children: [
9873
+ /* @__PURE__ */ jsx58("line", { x1: linking.x0, y1: linking.y0, x2: linking.x, y2: linking.y, stroke: tv("colors.accent.solid"), strokeWidth: 2, strokeDasharray: "5 4" }),
9874
+ /* @__PURE__ */ jsx58("circle", { cx: linking.x, cy: linking.y, r: 4, fill: tv("colors.accent.solid") })
9822
9875
  ] })
9823
9876
  ] })
9824
9877
  ] }),
9825
- card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx57(Portal17, { children: /* @__PURE__ */ jsx57(
9878
+ card && renderCard && items.has(card.id) && /* @__PURE__ */ jsx58(Portal17, { children: /* @__PURE__ */ jsx58(
9826
9879
  Box14,
9827
9880
  {
9828
9881
  id: "abp-timeline-card",
@@ -9846,7 +9899,7 @@ function TimelineChart({
9846
9899
  children: renderCard(items.get(card.id))
9847
9900
  }
9848
9901
  ) }),
9849
- onUnlink && /* @__PURE__ */ jsx57(
9902
+ onUnlink && /* @__PURE__ */ jsx58(
9850
9903
  Popover4.Root,
9851
9904
  {
9852
9905
  open: !!menu,
@@ -9855,13 +9908,13 @@ function TimelineChart({
9855
9908
  unmountOnExit: true,
9856
9909
  autoFocus: true,
9857
9910
  positioning: { placement: "bottom", getAnchorRect: () => menu ? { x: menu.x, y: menu.y, width: 1, height: 1 } : null },
9858
- children: /* @__PURE__ */ jsx57(Portal17, { children: /* @__PURE__ */ jsx57(Popover4.Positioner, { children: /* @__PURE__ */ jsx57(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx57(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs42(Stack14, { gap: "2", children: [
9859
- /* @__PURE__ */ jsx57(Text18, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
9860
- /* @__PURE__ */ jsxs42(Button, { size: "sm", variant: "secondary", onClick: () => {
9911
+ children: /* @__PURE__ */ jsx58(Portal17, { children: /* @__PURE__ */ jsx58(Popover4.Positioner, { children: /* @__PURE__ */ jsx58(Popover4.Content, { w: "auto", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx58(Popover4.Body, { children: menu && /* @__PURE__ */ jsxs43(Stack14, { gap: "2", children: [
9912
+ /* @__PURE__ */ jsx58(Text18, { textStyle: "label", children: linkTexts?.arrow(menu.from, menu.to) }),
9913
+ /* @__PURE__ */ jsxs43(Button, { size: "sm", variant: "secondary", onClick: () => {
9861
9914
  onUnlink(menu);
9862
9915
  setMenu(null);
9863
9916
  }, children: [
9864
- /* @__PURE__ */ jsx57(Trash23, {}),
9917
+ /* @__PURE__ */ jsx58(Trash23, {}),
9865
9918
  linkTexts?.remove
9866
9919
  ] })
9867
9920
  ] }) }) }) }) })
@@ -9873,7 +9926,7 @@ function TimelineChart({
9873
9926
  }
9874
9927
 
9875
9928
  // src/components/TimelineCards.tsx
9876
- import { useEffect as useEffect18, useMemo as useMemo14, useRef as useRef24, useState as useState25 } from "react";
9929
+ import { useEffect as useEffect18, useMemo as useMemo14, useRef as useRef24, useState as useState26 } from "react";
9877
9930
  import { Box as Box15, chakra as chakra33, Grid as Grid3, Stack as Stack15, Text as Text19 } from "@chakra-ui/react";
9878
9931
 
9879
9932
  // src/components/timeline-cards-math.ts
@@ -9926,7 +9979,7 @@ function placeCards(items, first, days, scale, colW = columnWidth(scale)) {
9926
9979
  }
9927
9980
 
9928
9981
  // src/components/TimelineCards.tsx
9929
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
9982
+ import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
9930
9983
  var LANE = 60;
9931
9984
  var KEYS = { d: "day", w: "week", m: "month" };
9932
9985
  function TimelineCards(props) {
@@ -9940,7 +9993,7 @@ function TimelineCards(props) {
9940
9993
  onScale(next);
9941
9994
  }
9942
9995
  };
9943
- return /* @__PURE__ */ jsxs43(
9996
+ return /* @__PURE__ */ jsxs44(
9944
9997
  chakra33.div,
9945
9998
  {
9946
9999
  role: "region",
@@ -9951,14 +10004,14 @@ function TimelineCards(props) {
9951
10004
  overflow: "hidden",
9952
10005
  "data-timeline-cards": scale,
9953
10006
  children: [
9954
- scale === "day" ? /* @__PURE__ */ jsx58(DayGrid, { ...props }) : /* @__PURE__ */ jsx58(Lanes, { ...props, scale }),
10007
+ scale === "day" ? /* @__PURE__ */ jsx59(DayGrid, { ...props }) : /* @__PURE__ */ jsx59(Lanes, { ...props, scale }),
9955
10008
  props.footer
9956
10009
  ]
9957
10010
  }
9958
10011
  );
9959
10012
  }
9960
10013
  function Card({ item, p, range, cutStart, cutEnd, style }) {
9961
- const card = /* @__PURE__ */ jsxs43(
10014
+ const card = /* @__PURE__ */ jsxs44(
9962
10015
  chakra33.button,
9963
10016
  {
9964
10017
  type: "button",
@@ -9983,17 +10036,17 @@ function Card({ item, p, range, cutStart, cutEnd, style }) {
9983
10036
  transition: "background 120ms, border-color 120ms",
9984
10037
  ...style,
9985
10038
  children: [
9986
- /* @__PURE__ */ jsx58(Box15, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
9987
- /* @__PURE__ */ jsx58(Stack15, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
10039
+ /* @__PURE__ */ jsx59(Box15, { as: "span", w: "3px", flexShrink: 0, bg: p.accent?.(item) ?? "border.emphasized", "aria-hidden": true }),
10040
+ /* @__PURE__ */ jsx59(Stack15, { as: "span", gap: "0.5", px: "2.5", py: "1.5", minW: "0", flex: "1", justify: "center", children: p.renderCard(item, { range }) })
9988
10041
  ]
9989
10042
  }
9990
10043
  );
9991
- return p.details ? /* @__PURE__ */ jsx58(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
10044
+ return p.details ? /* @__PURE__ */ jsx59(Tooltip, { content: p.details(item), positioning: { placement: "bottom-start" }, openDelay: 250, children: card }) : card;
9992
10045
  }
9993
10046
  function Lanes(p) {
9994
10047
  const { days, today, items, scale } = p;
9995
10048
  const box = useRef24(null);
9996
- const [available, setAvailable] = useState25(0);
10049
+ const [available, setAvailable] = useState26(0);
9997
10050
  useEffect18(() => {
9998
10051
  const el = box.current;
9999
10052
  if (!el) return;
@@ -10010,11 +10063,11 @@ function Lanes(p) {
10010
10063
  const gridW = days.length * colW;
10011
10064
  const placeholders = useLoading(p.loading) && items.length === 0;
10012
10065
  const height = (placeholders ? 4 : Math.max(lanes, 1)) * LANE + 16;
10013
- return /* @__PURE__ */ jsx58(chakra33.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs43(chakra33.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
10014
- /* @__PURE__ */ jsx58(chakra33.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
10066
+ return /* @__PURE__ */ jsx59(chakra33.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs44(chakra33.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
10067
+ /* @__PURE__ */ jsx59(chakra33.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
10015
10068
  const isToday = d === today;
10016
10069
  const weekStart = new Date(dayNumber(d) * 864e5).getUTCDay() === 0;
10017
- return /* @__PURE__ */ jsxs43(
10070
+ return /* @__PURE__ */ jsxs44(
10018
10071
  chakra33.div,
10019
10072
  {
10020
10073
  w: `${colW}px`,
@@ -10031,8 +10084,8 @@ function Lanes(p) {
10031
10084
  borderInlineStartWidth: weekStart && scale === "month" ? "1px" : "0",
10032
10085
  borderColor: "border",
10033
10086
  children: [
10034
- /* @__PURE__ */ jsx58(Text19, { as: "span", children: p.weekday(d) }),
10035
- /* @__PURE__ */ jsx58(
10087
+ /* @__PURE__ */ jsx59(Text19, { as: "span", children: p.weekday(d) }),
10088
+ /* @__PURE__ */ jsx59(
10036
10089
  Text19,
10037
10090
  {
10038
10091
  as: "span",
@@ -10051,8 +10104,8 @@ function Lanes(p) {
10051
10104
  d
10052
10105
  );
10053
10106
  }) }),
10054
- /* @__PURE__ */ jsx58(chakra33.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx58(chakra33.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
10055
- todayIdx >= 0 && /* @__PURE__ */ jsx58(
10107
+ /* @__PURE__ */ jsx59(chakra33.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx59(chakra33.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
10108
+ todayIdx >= 0 && /* @__PURE__ */ jsx59(
10056
10109
  chakra33.div,
10057
10110
  {
10058
10111
  position: "absolute",
@@ -10067,7 +10120,7 @@ function Lanes(p) {
10067
10120
  zIndex: "1"
10068
10121
  }
10069
10122
  ),
10070
- placeholders ? /* @__PURE__ */ jsx58(chakra33.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx58(
10123
+ placeholders ? /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx59(
10071
10124
  Bone,
10072
10125
  {
10073
10126
  position: "absolute",
@@ -10078,9 +10131,9 @@ function Lanes(p) {
10078
10131
  borderRadius: "l2"
10079
10132
  },
10080
10133
  i
10081
- )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx58(chakra33.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx58(chakra33.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
10134
+ )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx59(chakra33.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
10082
10135
  const item = byId.get(c2.id);
10083
- return /* @__PURE__ */ jsx58(
10136
+ return /* @__PURE__ */ jsx59(
10084
10137
  chakra33.div,
10085
10138
  {
10086
10139
  role: "listitem",
@@ -10090,7 +10143,7 @@ function Lanes(p) {
10090
10143
  w: `${c2.width}px`,
10091
10144
  display: "flex",
10092
10145
  zIndex: "2",
10093
- children: /* @__PURE__ */ jsx58(Card, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10146
+ children: /* @__PURE__ */ jsx59(Card, { item, p, range: c2.range, cutStart: c2.cutStart, cutEnd: c2.cutEnd, style: { w: "full" } })
10094
10147
  },
10095
10148
  c2.id
10096
10149
  );
@@ -10105,8 +10158,8 @@ function DayGrid(p) {
10105
10158
  const x = dayNumber(day);
10106
10159
  return s <= x && x <= d;
10107
10160
  });
10108
- if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx58(chakra33.div, { py: "6", children: p.empty });
10109
- return /* @__PURE__ */ jsx58(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx58(chakra33.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx58(Card, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
10161
+ if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx59(chakra33.div, { py: "6", children: p.empty });
10162
+ return /* @__PURE__ */ jsx59(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx59(chakra33.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx59(Card, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
10110
10163
  }
10111
10164
  export {
10112
10165
  ABP_UI_VERSION,
@@ -10138,6 +10191,7 @@ export {
10138
10191
  DirectionalIcon,
10139
10192
  DropHint,
10140
10193
  EMPTY_VALUE,
10194
+ EmotionRegistry,
10141
10195
  EmptyState,
10142
10196
  FadeIn,
10143
10197
  Field,