@abpjs/ui 0.2.0-next.3 → 0.2.0-next.5

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.3" : "0.0.0-dev";
1563
+ var ABP_UI_VERSION = true ? "0.2.0-next.5" : "0.0.0-dev";
1564
1564
 
1565
1565
  // src/provider/time-zone.tsx
1566
1566
  import { createContext, useContext } from "react";
@@ -2236,6 +2236,8 @@ function errorText(e) {
2236
2236
  return e instanceof Error ? e.message : String(e);
2237
2237
  }
2238
2238
  var isStepUp = (e) => e instanceof AbpApiError && e.status === 403 && e.code === STEP_UP_REQUIRED;
2239
+ var STRONG_FACTOR_REQUIRED = "strong_factor_required";
2240
+ var needsStepUp = (e) => e instanceof AbpApiError && e.status === 403 && (e.code === STEP_UP_REQUIRED || e.code === STRONG_FACTOR_REQUIRED);
2239
2241
 
2240
2242
  // src/host/HostContext.tsx
2241
2243
  import { jsx as jsx11 } from "react/jsx-runtime";
@@ -2372,7 +2374,7 @@ function HostSlot({ name, context }) {
2372
2374
 
2373
2375
  // src/host/StepUpDialog.tsx
2374
2376
  import { useEffect as useEffect4, useRef as useRef5, useState as useState6 } from "react";
2375
- import { Dialog as Dialog2, HStack, Input, Portal as Portal4, Stack as Stack2, Text } from "@chakra-ui/react";
2377
+ import { chakra as chakra5, Dialog as Dialog2, Grid, HStack, Input, Portal as Portal4, Stack as Stack2, Text } from "@chakra-ui/react";
2376
2378
 
2377
2379
  // src/components/Field.tsx
2378
2380
  import { forwardRef as forwardRef2 } from "react";
@@ -2591,9 +2593,14 @@ var pending = null;
2591
2593
  function setStepUpHandler(next) {
2592
2594
  handler = next;
2593
2595
  }
2594
- function requestStepUp() {
2596
+ function stepUpNeedOf(code, data) {
2597
+ const level = code === "strong_factor_required" || data?.level === "strong" ? "strong" : "password";
2598
+ const methods = Array.isArray(data?.methods) ? data.methods.filter((m4) => typeof m4 === "string") : [];
2599
+ return { code, level, category: typeof data?.category === "string" ? data.category : null, methods };
2600
+ }
2601
+ function requestStepUp(need = { code: "step_up_required", level: "password", category: null, methods: [] }) {
2595
2602
  if (!handler) return Promise.resolve(false);
2596
- pending ??= handler().finally(() => {
2603
+ pending ??= handler(need).finally(() => {
2597
2604
  pending = null;
2598
2605
  });
2599
2606
  return pending;
@@ -2623,7 +2630,36 @@ var ar_default = {
2623
2630
  unreachable: "\u0644\u0627 \u064A\u0648\u062C\u062F \u0639\u0646\u0648\u0627\u0646 \u0644\u0625\u0631\u0633\u0627\u0644 \u0647\u0630\u0627 \u0627\u0644\u0631\u0645\u0632 \u0625\u0644\u064A\u0647. \u062C\u0631\u0651\u0628 \u0637\u0631\u064A\u0642\u0629 \u0623\u062E\u0631\u0649.",
2624
2631
  notSent: "\u062A\u0639\u0630\u0651\u0631 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0645\u0632. \u062C\u0631\u0651\u0628 \u0637\u0631\u064A\u0642\u0629 \u0623\u062E\u0631\u0649\u060C \u0623\u0648 \u0623\u0639\u062F \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0644\u0627\u062D\u0642\u064B\u0627.",
2625
2632
  notAllowed: "\u0644\u0627 \u064A\u0631\u0633\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u0631\u0645\u0648\u0632 \u0628\u0647\u0630\u0647 \u0627\u0644\u0637\u0631\u064A\u0642\u0629.",
2626
- email: "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A"
2633
+ email: "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
2634
+ strongWhy: "\u064A\u062A\u0637\u0644\u0628 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631: \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631\u060C \u0623\u0648 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0645\u0639 \u0631\u0645\u0632 \u0645\u0646 \u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629.",
2635
+ usePasskey: "\u0627\u0633\u062A\u062E\u062F\u0645 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
2636
+ usePasswordAndApp: "\u0627\u0633\u062A\u062E\u062F\u0645 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0648\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0628\u062F\u0644\u064B\u0627 \u0645\u0646 \u0630\u0644\u0643",
2637
+ useAnotherWay: "\u0627\u0633\u062A\u062E\u062F\u0645 \u0637\u0631\u064A\u0642\u0629 \u0623\u062E\u0631\u0649",
2638
+ passkeyPrompt: "\u0627\u062A\u0628\u0639 \u0645\u0627 \u064A\u0637\u0644\u0628\u0647 \u062C\u0647\u0627\u0632\u0643 \u0644\u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631.",
2639
+ passkeyCancelled: "\u0644\u0645 \u064A\u064F\u0633\u062A\u062E\u062F\u0645 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631. \u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649\u060C \u0623\u0648 \u0627\u0633\u062A\u062E\u062F\u0645 \u0637\u0631\u064A\u0642\u0629 \u0623\u062E\u0631\u0649.",
2640
+ passkeyUnsupported: "\u0644\u0627 \u064A\u0645\u0643\u0646 \u0644\u0647\u0630\u0627 \u0627\u0644\u0645\u062A\u0635\u0641\u062D \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0645\u0641\u0627\u062A\u064A\u062D \u0627\u0644\u0645\u0631\u0648\u0631 \u0647\u0646\u0627.",
2641
+ setupTitle: "\u0623\u0639\u062F\u0651 \u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631 \u0623\u0648 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
2642
+ setupWhy: "\u064A\u062A\u0637\u0644\u0628 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621 \u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631 \u0623\u0648 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629\u060C \u0648\u0644\u064A\u0633 \u0644\u062F\u064A\u0643 \u0623\u064A\u064C\u0651 \u0645\u0646\u0647\u0645\u0627 \u0628\u0639\u062F. \u0623\u0639\u062F\u0651 \u0623\u062D\u062F\u0647\u0645\u0627 \u0627\u0644\u0622\u0646\u060C \u062B\u0645 \u0623\u0643\u0651\u062F \u0647\u0648\u064A\u062A\u0643 \u0628\u0647.",
2643
+ setupPasswordWhy: "\u0623\u0648\u0644\u064B\u0627\u060C \u0623\u062F\u062E\u0644 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631.",
2644
+ setupPasskey: "\u0623\u0639\u062F\u0651 \u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631",
2645
+ setupApp: "\u0623\u0639\u062F\u0651 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
2646
+ passkeyName: "\u0627\u0633\u0645 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
2647
+ passkeyNameDefault: "\u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631",
2648
+ passkeyCreate: "\u0623\u0646\u0634\u0626 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
2649
+ appScan: "\u0627\u0645\u0633\u062D \u0647\u0630\u0627 \u0627\u0644\u0631\u0645\u0632 \u0628\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629\u060C \u062B\u0645 \u0623\u062F\u062E\u0644 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0630\u064A \u064A\u0638\u0647\u0631 \u0641\u064A\u0647.",
2650
+ appQrAlt: "\u0631\u0645\u0632 QR \u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629",
2651
+ appCantScan: "\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0645\u0633\u062D\u061F \u0623\u062F\u062E\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0641\u062A\u0627\u062D \u0641\u064A \u0627\u0644\u062A\u0637\u0628\u064A\u0642:",
2652
+ appCode: "\u0627\u0644\u0631\u0645\u0632 \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",
2653
+ appConfirm: "\u062A\u0623\u0643\u064A\u062F \u0627\u0644\u0631\u0645\u0632",
2654
+ appWrongCode: "\u0627\u0644\u0631\u0645\u0632 \u063A\u064A\u0631 \u0635\u062D\u064A\u062D. \u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u0648\u0642\u062A \u0641\u064A \u0647\u0627\u062A\u0641\u0643\u060C \u0648\u0623\u062F\u062E\u0644 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0630\u064A \u064A\u0638\u0647\u0631 \u0627\u0644\u0622\u0646.",
2655
+ recoveryTitle: "\u0627\u062D\u0641\u0638 \u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F",
2656
+ recoveryHint: "\u0643\u0644 \u0631\u0645\u0632 \u064A\u064F\u062F\u062E\u0644\u0643 \u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629 \u0625\u0630\u0627 \u0641\u0642\u062F\u062A \u062C\u0647\u0627\u0632\u0643. \u0644\u0646 \u062A\u0638\u0647\u0631 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",
2657
+ recoveryCopy: "\u0646\u0633\u062E",
2658
+ recoveryCopied: "\u0646\u064F\u0633\u062E\u062A",
2659
+ recoverySaved: "\u062D\u0641\u0638\u062A\u0647\u0627",
2660
+ continue: "\u0645\u062A\u0627\u0628\u0639\u0629",
2661
+ back: "\u0631\u062C\u0648\u0639",
2662
+ strongWhyApp: "\u064A\u062A\u0637\u0644\u0628 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621 \u0623\u0643\u062B\u0631 \u0645\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631: \u0623\u062F\u062E\u0644\u0647\u0627 \u0645\u0639 \u0631\u0645\u0632 \u0645\u0646 \u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629."
2627
2663
  };
2628
2664
 
2629
2665
  // src/host/step-up-texts/en.json
@@ -2650,11 +2686,120 @@ var en_default = {
2650
2686
  unreachable: "There's no address to send that code to. Try another way.",
2651
2687
  notSent: "The code couldn't be sent. Try another way, or again later.",
2652
2688
  notAllowed: "This site doesn't send codes that way.",
2653
- email: "email"
2689
+ email: "email",
2690
+ strongWhy: "This action needs more than your password: your passkey, or your password and a code from your authenticator app.",
2691
+ usePasskey: "Use a passkey",
2692
+ usePasswordAndApp: "Use your password and authenticator app instead",
2693
+ useAnotherWay: "Use another way",
2694
+ passkeyPrompt: "Follow your device's prompt to use your passkey.",
2695
+ passkeyCancelled: "The passkey wasn't used. Try again, or use another way.",
2696
+ passkeyUnsupported: "This browser can't use passkeys here.",
2697
+ setupTitle: "Set up a passkey or authenticator",
2698
+ setupWhy: "This action needs a passkey or an authenticator app, and you don't have one yet. Set one up now; you'll then confirm with it.",
2699
+ setupPasswordWhy: "First, enter your password.",
2700
+ setupPasskey: "Set up a passkey",
2701
+ setupApp: "Set up an authenticator app",
2702
+ passkeyName: "Name for this passkey",
2703
+ passkeyNameDefault: "Passkey",
2704
+ passkeyCreate: "Create the passkey",
2705
+ appScan: "Scan this with your authenticator app, then enter the code it shows.",
2706
+ appQrAlt: "QR code for your authenticator app",
2707
+ appCantScan: "Can't scan it? Enter this key in the app:",
2708
+ appCode: "Code from the app",
2709
+ appConfirm: "Confirm the code",
2710
+ appWrongCode: "That code is incorrect. Check the time on your phone, and enter the code it shows now.",
2711
+ recoveryTitle: "Save your recovery codes",
2712
+ recoveryHint: "Each one signs you in once if you lose your device. They won't be shown again.",
2713
+ recoveryCopy: "Copy",
2714
+ recoveryCopied: "Copied",
2715
+ recoverySaved: "I've saved them",
2716
+ continue: "Continue",
2717
+ back: "Back",
2718
+ strongWhyApp: "This action needs more than your password: enter it with a code from your authenticator app."
2654
2719
  };
2655
2720
 
2721
+ // src/host/webauthn.ts
2722
+ function passkeysSupported() {
2723
+ return typeof window !== "undefined" && window.isSecureContext && typeof window.PublicKeyCredential === "function" && !!navigator.credentials;
2724
+ }
2725
+ function fromBase64Url(text) {
2726
+ const base64 = text.replace(/-/g, "+").replace(/_/g, "/").padEnd(Math.ceil(text.length / 4) * 4, "=");
2727
+ const bytes = Uint8Array.from(atob(base64), (c2) => c2.charCodeAt(0));
2728
+ return bytes.buffer;
2729
+ }
2730
+ function toBase64Url(buffer) {
2731
+ if (!buffer) return void 0;
2732
+ let text = "";
2733
+ for (const b of new Uint8Array(buffer)) text += String.fromCharCode(b);
2734
+ return btoa(text).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2735
+ }
2736
+ var withIds = (list) => Array.isArray(list) ? list.map((c2) => ({ ...c2, id: fromBase64Url(c2.id) })) : void 0;
2737
+ function creationOptions(json) {
2738
+ const pkc = PublicKeyCredential;
2739
+ if (pkc.parseCreationOptionsFromJSON) return pkc.parseCreationOptionsFromJSON(json);
2740
+ const user = json.user;
2741
+ return {
2742
+ ...json,
2743
+ challenge: fromBase64Url(json.challenge),
2744
+ user: { ...user, id: fromBase64Url(user.id) },
2745
+ excludeCredentials: withIds(json.excludeCredentials)
2746
+ };
2747
+ }
2748
+ function requestOptions(json) {
2749
+ const pkc = PublicKeyCredential;
2750
+ if (pkc.parseRequestOptionsFromJSON) return pkc.parseRequestOptionsFromJSON(json);
2751
+ return {
2752
+ ...json,
2753
+ challenge: fromBase64Url(json.challenge),
2754
+ allowCredentials: withIds(json.allowCredentials)
2755
+ };
2756
+ }
2757
+ function credentialJson(credential) {
2758
+ const own = credential;
2759
+ if (typeof own.toJSON === "function") return own.toJSON();
2760
+ const r = credential.response;
2761
+ const response = { clientDataJSON: toBase64Url(r.clientDataJSON) };
2762
+ if (r.attestationObject) {
2763
+ response.attestationObject = toBase64Url(r.attestationObject);
2764
+ response.transports = r.getTransports?.() ?? [];
2765
+ response.authenticatorData = toBase64Url(r.getAuthenticatorData?.());
2766
+ response.publicKey = toBase64Url(r.getPublicKey?.() ?? void 0);
2767
+ response.publicKeyAlgorithm = r.getPublicKeyAlgorithm?.();
2768
+ } else {
2769
+ response.authenticatorData = toBase64Url(r.authenticatorData);
2770
+ response.signature = toBase64Url(r.signature);
2771
+ response.userHandle = toBase64Url(r.userHandle ?? void 0);
2772
+ }
2773
+ return {
2774
+ id: credential.id,
2775
+ rawId: toBase64Url(credential.rawId),
2776
+ type: credential.type,
2777
+ authenticatorAttachment: credential.authenticatorAttachment ?? void 0,
2778
+ clientExtensionResults: credential.getClientExtensionResults(),
2779
+ response
2780
+ };
2781
+ }
2782
+ async function createPasskey(options, signal) {
2783
+ try {
2784
+ const credential = await navigator.credentials.create({ publicKey: creationOptions(options), signal });
2785
+ return credential ? credentialJson(credential) : null;
2786
+ } catch (e) {
2787
+ if (e instanceof DOMException && (e.name === "NotAllowedError" || e.name === "AbortError")) return null;
2788
+ throw e;
2789
+ }
2790
+ }
2791
+ async function getPasskey(options, signal) {
2792
+ try {
2793
+ const credential = await navigator.credentials.get({ publicKey: requestOptions(options), signal });
2794
+ return credential ? credentialJson(credential) : null;
2795
+ } catch (e) {
2796
+ if (e instanceof DOMException && (e.name === "NotAllowedError" || e.name === "AbortError")) return null;
2797
+ throw e;
2798
+ }
2799
+ }
2800
+
2656
2801
  // src/host/StepUpDialog.tsx
2657
- import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
2802
+ import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
2658
2803
  var useStepUpTexts = createAreaTexts("stepUp", { en: en_default, ar: ar_default });
2659
2804
  function looksLikeCode(value, recovery) {
2660
2805
  return recovery ? value.replace(/[^A-Za-z0-9]/g, "").length === 10 : value.replace(/\D/g, "").length === 6 && !/[^\d\s]/.test(value);
@@ -2665,6 +2810,8 @@ function StepUpDialog() {
2665
2810
  const host = useHost();
2666
2811
  const base = (host.paths.guard ?? "").replace(/\/$/, "");
2667
2812
  const [open, setOpen] = useState6(false);
2813
+ const [need, setNeed] = useState6(null);
2814
+ const [stage, setStage] = useState6("confirm");
2668
2815
  const [password, setPassword] = useState6("");
2669
2816
  const [ways, setWays] = useState6(null);
2670
2817
  const [method, setMethod] = useState6("app");
@@ -2673,17 +2820,31 @@ function StepUpDialog() {
2673
2820
  const [sending, setSending] = useState6(false);
2674
2821
  const [error, setError] = useState6(null);
2675
2822
  const [busy, setBusy] = useState6(false);
2823
+ const [passkeyName, setPasskeyName] = useState6("");
2824
+ const [enrolment, setEnrolment] = useState6(null);
2825
+ const [recoveryCodes, setRecoveryCodes] = useState6([]);
2826
+ const [copied, setCopied] = useState6(false);
2676
2827
  const settle = useRef5(null);
2828
+ const canPasskey = passkeysSupported();
2829
+ const strong = need?.level === "strong";
2830
+ const settingUp = need?.code === "strong_factor_required";
2831
+ const call = (path, init = {}) => host.request(`${base}${path}`, { ...init, stepUp: false });
2677
2832
  useEffect4(() => {
2678
2833
  setStepUpHandler(
2679
- () => new Promise((resolve) => {
2834
+ (asked) => new Promise((resolve) => {
2680
2835
  settle.current = resolve;
2836
+ setNeed(asked);
2681
2837
  setPassword("");
2682
2838
  setWays(null);
2683
- setMethod("app");
2684
2839
  setCode("");
2685
2840
  setSent({});
2686
2841
  setError(null);
2842
+ setEnrolment(null);
2843
+ setRecoveryCodes([]);
2844
+ setCopied(false);
2845
+ const passkeyFirst = asked.code !== "strong_factor_required" && asked.level === "strong" && asked.methods.includes("passkey") && passkeysSupported();
2846
+ setStage(passkeyFirst ? "passkey" : "confirm");
2847
+ setMethod("app");
2687
2848
  setOpen(true);
2688
2849
  })
2689
2850
  );
@@ -2697,7 +2858,7 @@ function StepUpDialog() {
2697
2858
  settle.current = null;
2698
2859
  }
2699
2860
  async function askForCode() {
2700
- const mine = await host.request(`${base}/me/second-factors`).catch(() => null);
2861
+ const mine = await call("/me/second-factors").catch(() => null);
2701
2862
  const found = { hasApp: mine?.factors.some((f) => f.kind === "app") ?? true, senders: mine?.senders ?? [] };
2702
2863
  setWays(found);
2703
2864
  setMethod(found.hasApp ? "app" : found.senders[0]?.method ?? "app");
@@ -2706,7 +2867,7 @@ function StepUpDialog() {
2706
2867
  setSending(true);
2707
2868
  setError(null);
2708
2869
  try {
2709
- const answer = await host.request(`${base}/me/second-factors/send`, { method: "POST", body: { method } });
2870
+ const answer = await call("/me/second-factors/send", { method: "POST", body: { method } });
2710
2871
  setSent({ ...sent, [method]: answer.to });
2711
2872
  setCode("");
2712
2873
  } catch (e) {
@@ -2720,24 +2881,33 @@ function StepUpDialog() {
2720
2881
  setCode("");
2721
2882
  setError(null);
2722
2883
  }
2884
+ function ended(e) {
2885
+ if (e instanceof AbpApiError && e.status === 401) {
2886
+ close(false);
2887
+ return true;
2888
+ }
2889
+ return false;
2890
+ }
2723
2891
  async function confirm(e) {
2724
2892
  e.preventDefault();
2725
2893
  setBusy(true);
2726
2894
  setError(null);
2727
2895
  try {
2728
- await host.request(`${base}/session/step-up`, { method: "POST", body: ways ? { password, method, code } : { password } });
2729
- close(true);
2730
- } catch (e2) {
2731
- if (e2 instanceof AbpApiError && e2.status === 401) {
2732
- close(false);
2896
+ const withCode = strong && !settingUp ? { password, method: "app", code } : ways ? { password, method, code } : { password };
2897
+ await call("/session/step-up", { method: "POST", body: withCode });
2898
+ if (settingUp) {
2899
+ setStage("setup");
2733
2900
  return;
2734
2901
  }
2735
- if (e2 instanceof AbpApiError && e2.code === "second_factor_required") {
2902
+ close(true);
2903
+ } catch (e2) {
2904
+ if (ended(e2)) return;
2905
+ if (e2 instanceof AbpApiError && e2.code === "second_factor_required" && !(strong && !settingUp)) {
2736
2906
  await askForCode();
2737
2907
  return;
2738
2908
  }
2739
2909
  setError(e2 instanceof AbpApiError && e2.message ? e2.message : t("failed"));
2740
- if (ways && !(e2 instanceof AbpApiError && e2.code === "step_up_failed")) {
2910
+ if ((ways || strong && !settingUp) && !(e2 instanceof AbpApiError && e2.code === "step_up_failed")) {
2741
2911
  setCode("");
2742
2912
  return;
2743
2913
  }
@@ -2746,39 +2916,157 @@ function StepUpDialog() {
2746
2916
  setBusy(false);
2747
2917
  }
2748
2918
  }
2919
+ async function withPasskey() {
2920
+ setBusy(true);
2921
+ setError(null);
2922
+ try {
2923
+ const options = await call("/session/step-up/options", { method: "POST" });
2924
+ const credential = await getPasskey(options);
2925
+ if (!credential) {
2926
+ setError(t("passkeyCancelled"));
2927
+ return;
2928
+ }
2929
+ await call("/session/step-up", { method: "POST", body: { method: "passkey", credential } });
2930
+ close(true);
2931
+ } catch (e) {
2932
+ if (ended(e)) return;
2933
+ if (e instanceof AbpApiError && e.code === "no_passkey") setStage("confirm");
2934
+ setError(e instanceof AbpApiError && e.message ? e.message : t("failed"));
2935
+ } finally {
2936
+ setBusy(false);
2937
+ }
2938
+ }
2939
+ function setUp(codes) {
2940
+ if (codes && codes.length) {
2941
+ setRecoveryCodes(codes);
2942
+ setStage("recovery");
2943
+ } else close(true);
2944
+ }
2945
+ async function addPasskey(e) {
2946
+ e.preventDefault();
2947
+ setBusy(true);
2948
+ setError(null);
2949
+ try {
2950
+ const options = await call("/me/passkeys/options", { method: "POST" });
2951
+ const credential = await createPasskey(options);
2952
+ if (!credential) {
2953
+ setError(t("passkeyCancelled"));
2954
+ return;
2955
+ }
2956
+ const added = await call("/me/passkeys", { method: "POST", body: { name: passkeyName.trim() || t("passkeyNameDefault"), credential } });
2957
+ setUp(added.recoveryCodes);
2958
+ } catch (e2) {
2959
+ if (ended(e2)) return;
2960
+ setError(e2 instanceof AbpApiError && e2.message ? e2.message : t("failed"));
2961
+ } finally {
2962
+ setBusy(false);
2963
+ }
2964
+ }
2965
+ async function startApp() {
2966
+ setStage("setupApp");
2967
+ setCode("");
2968
+ setError(null);
2969
+ try {
2970
+ setEnrolment(await call("/me/second-factors/app", { method: "POST" }));
2971
+ } catch (e) {
2972
+ if (ended(e)) return;
2973
+ setError(e instanceof AbpApiError && e.message ? e.message : t("failed"));
2974
+ }
2975
+ }
2976
+ async function confirmApp(e) {
2977
+ e.preventDefault();
2978
+ setBusy(true);
2979
+ setError(null);
2980
+ try {
2981
+ const enrolled = await call("/me/second-factors/app/confirm", { method: "POST", body: { code: code.replace(/\D/g, "") } });
2982
+ setUp(enrolled.recoveryCodes);
2983
+ } catch (e2) {
2984
+ if (ended(e2)) return;
2985
+ setError(e2 instanceof AbpApiError && e2.code === "second_factor_failed" ? t("appWrongCode") : e2 instanceof AbpApiError && e2.message ? e2.message : t("failed"));
2986
+ setCode("");
2987
+ } finally {
2988
+ setBusy(false);
2989
+ }
2990
+ }
2991
+ async function copyCodes() {
2992
+ try {
2993
+ await navigator.clipboard.writeText(recoveryCodes.join("\n"));
2994
+ setCopied(true);
2995
+ } catch {
2996
+ setCopied(false);
2997
+ }
2998
+ }
2749
2999
  const sender = ways?.senders.find((s) => s.method === method);
2750
3000
  const recovery = method === "recovery";
2751
3001
  const sentTo = sent[method];
2752
3002
  const nameOf = (s) => s.method === "email" ? t("email") : s.name;
2753
- return /* @__PURE__ */ jsx15(Dialog2.Root, { open, onOpenChange: (e) => !e.open && close(false), placement: "center", role: "alertdialog", children: /* @__PURE__ */ jsxs7(Portal4, { children: [
2754
- /* @__PURE__ */ jsx15(Dialog2.Backdrop, {}),
2755
- /* @__PURE__ */ jsx15(Dialog2.Positioner, { children: /* @__PURE__ */ jsx15(Dialog2.Content, { "data-testid": "step-up", children: /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirm(e), children: [
2756
- /* @__PURE__ */ jsx15(Dialog2.Header, { children: /* @__PURE__ */ jsx15(Dialog2.Title, { children: t("title") }) }),
3003
+ const title = stage === "recovery" ? t("recoveryTitle") : settingUp ? t("setupTitle") : t("title");
3004
+ const mayDismiss = stage !== "recovery";
3005
+ const codeInput = (label, helper) => /* @__PURE__ */ jsx15(Field, { label, helperText: helper, required: true, children: /* @__PURE__ */ jsx15(
3006
+ Input,
3007
+ {
3008
+ value: code,
3009
+ onChange: (e) => setCode(e.target.value),
3010
+ autoFocus: true,
3011
+ autoComplete: "one-time-code",
3012
+ inputMode: recovery ? "text" : "numeric",
3013
+ maxLength: recovery ? 16 : 7,
3014
+ dir: "ltr",
3015
+ textAlign: "start",
3016
+ fontFamily: "mono",
3017
+ letterSpacing: recovery ? void 0 : "0.2em",
3018
+ width: recovery ? "48" : "32",
3019
+ "data-testid": "second-factor-code"
3020
+ },
3021
+ method
3022
+ ) });
3023
+ 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) }) });
3024
+ const footer = (submit, disabled = false, onBack) => /* @__PURE__ */ jsx15(Dialog2.Footer, { children: /* @__PURE__ */ jsxs7(HStack, { children: [
3025
+ 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") }),
3026
+ submit && /* @__PURE__ */ jsx15(Button, { type: "submit", loading: busy, disabled, children: submit })
3027
+ ] }) });
3028
+ let body;
3029
+ if (stage === "passkey") {
3030
+ body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3031
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", align: "start", children: [
3032
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("strongWhy") }),
3033
+ /* @__PURE__ */ jsx15(Button, { variant: "primary", onClick: () => void withPasskey(), loading: busy, "data-testid": "use-passkey", children: t("usePasskey") }),
3034
+ busy && /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3035
+ /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3036
+ need?.methods.includes("app") && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => {
3037
+ setStage("confirm");
3038
+ setError(null);
3039
+ }, "data-testid": "use-password-and-app", children: t("usePasswordAndApp") })
3040
+ ] }) }),
3041
+ footer(null)
3042
+ ] });
3043
+ } else if (stage === "confirm" && strong && !settingUp) {
3044
+ body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirm(e), children: [
3045
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3046
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: need?.methods.includes("passkey") ? t("strongWhy") : t("strongWhyApp") }),
3047
+ passwordField(true),
3048
+ codeInput(t("code")),
3049
+ /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error }),
3050
+ need?.methods.includes("passkey") && canPasskey && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", alignSelf: "start", onClick: () => {
3051
+ setStage("passkey");
3052
+ setError(null);
3053
+ }, children: t("usePasskey") })
3054
+ ] }) }),
3055
+ footer(t("confirm"), !password || !looksLikeCode(code, false))
3056
+ ] });
3057
+ } else if (stage === "confirm") {
3058
+ body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirm(e), children: [
2757
3059
  /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
2758
- /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: ways ? t("codeWhy") : t("why") }),
2759
- /* @__PURE__ */ jsx15(Field, { label: t("password"), children: /* @__PURE__ */ jsx15(Input, { type: "password", autoComplete: "current-password", autoFocus: !ways, value: password, onChange: (e) => setPassword(e.target.value) }) }),
3060
+ settingUp ? /* @__PURE__ */ jsxs7(Stack2, { gap: "2", children: [
3061
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupWhy") }),
3062
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupPasswordWhy") })
3063
+ ] }) : /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: ways ? t("codeWhy") : t("why") }),
3064
+ passwordField(!ways),
2760
3065
  ways && /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
2761
3066
  sender && !sentTo ? /* @__PURE__ */ jsxs7(Stack2, { gap: "2", align: "start", children: [
2762
3067
  /* @__PURE__ */ jsx15(Text, { children: t("sendTo", { to: sender.to }) }),
2763
3068
  /* @__PURE__ */ jsx15(Button, { onClick: () => void sendCode(), loading: sending, loadingText: t("sending"), "data-testid": "send-code", children: t("send") })
2764
- ] }) : /* @__PURE__ */ jsx15(Field, { label: recovery ? t("recoveryCode") : sender ? t("sentCode") : t("code"), helperText: sentTo ? t("sent", { to: sentTo }) : void 0, required: true, children: /* @__PURE__ */ jsx15(
2765
- Input,
2766
- {
2767
- value: code,
2768
- onChange: (e) => setCode(e.target.value),
2769
- autoFocus: true,
2770
- autoComplete: "one-time-code",
2771
- inputMode: recovery ? "text" : "numeric",
2772
- maxLength: recovery ? 16 : 7,
2773
- dir: "ltr",
2774
- textAlign: "start",
2775
- fontFamily: "mono",
2776
- letterSpacing: recovery ? void 0 : "0.2em",
2777
- width: recovery ? "48" : "32",
2778
- "data-testid": "second-factor-code"
2779
- },
2780
- method
2781
- ) }),
3069
+ ] }) : codeInput(recovery ? t("recoveryCode") : sender ? t("sentCode") : t("code"), sentTo ? t("sent", { to: sentTo }) : void 0),
2782
3070
  /* @__PURE__ */ jsxs7(Stack2, { gap: "0.5", align: "start", children: [
2783
3071
  sentTo && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => void sendCode(), disabled: sending, children: t("resend") }),
2784
3072
  ways.hasApp && method !== "app" && /* @__PURE__ */ jsx15(Button, { variant: "link", size: "sm", onClick: () => switchTo("app"), children: t("useApp") }),
@@ -2788,12 +3076,80 @@ function StepUpDialog() {
2788
3076
  ] }),
2789
3077
  /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error })
2790
3078
  ] }) }),
3079
+ footer(settingUp ? t("continue") : t("confirm"), !password || !!ways && !looksLikeCode(code, recovery))
3080
+ ] });
3081
+ } else if (stage === "setup") {
3082
+ body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3083
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", align: "start", children: [
3084
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("setupWhy") }),
3085
+ canPasskey ? /* @__PURE__ */ jsx15(Button, { variant: "primary", onClick: () => {
3086
+ setPasskeyName(t("passkeyNameDefault"));
3087
+ setError(null);
3088
+ setStage("setupPasskey");
3089
+ }, "data-testid": "setup-passkey", children: t("setupPasskey") }) : /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyUnsupported") }),
3090
+ /* @__PURE__ */ jsx15(Button, { variant: canPasskey ? "secondary" : "primary", onClick: () => void startApp(), "data-testid": "setup-app", children: t("setupApp") })
3091
+ ] }) }),
3092
+ footer(null)
3093
+ ] });
3094
+ } else if (stage === "setupPasskey") {
3095
+ body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void addPasskey(e), children: [
3096
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3097
+ /* @__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" }) }),
3098
+ busy && /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("passkeyPrompt") }),
3099
+ /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error })
3100
+ ] }) }),
3101
+ footer(t("passkeyCreate"), false, () => {
3102
+ setStage("setup");
3103
+ setError(null);
3104
+ })
3105
+ ] });
3106
+ } else if (stage === "setupApp") {
3107
+ body = /* @__PURE__ */ jsxs7("form", { onSubmit: (e) => void confirmApp(e), children: [
3108
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", children: [
3109
+ /* @__PURE__ */ jsx15(Text, { color: "fg.muted", children: t("appScan") }),
3110
+ /* @__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" }) }),
3111
+ /* @__PURE__ */ jsxs7(Stack2, { gap: "1", children: [
3112
+ /* @__PURE__ */ jsx15(Text, { textStyle: "sm", color: "fg.muted", children: t("appCantScan") }),
3113
+ /* @__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() : " " })
3114
+ ] }),
3115
+ codeInput(t("appCode")),
3116
+ /* @__PURE__ */ jsx15(InlineAlert, { tone: "danger", children: error })
3117
+ ] }) }),
3118
+ footer(t("appConfirm"), !enrolment || !looksLikeCode(code, false), () => {
3119
+ setStage("setup");
3120
+ setError(null);
3121
+ })
3122
+ ] });
3123
+ } else {
3124
+ body = /* @__PURE__ */ jsxs7(Fragment2, { children: [
3125
+ /* @__PURE__ */ jsx15(Dialog2.Body, { children: /* @__PURE__ */ jsxs7(Stack2, { gap: "field", "data-testid": "recovery-codes", children: [
3126
+ /* @__PURE__ */ jsx15(InlineAlert, { tone: "warning", children: t("recoveryHint") }),
3127
+ /* @__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)) })
3128
+ ] }) }),
2791
3129
  /* @__PURE__ */ jsx15(Dialog2.Footer, { children: /* @__PURE__ */ jsxs7(HStack, { children: [
2792
- /* @__PURE__ */ jsx15(Button, { variant: "secondary", onClick: () => close(false), disabled: busy, children: t("cancel") }),
2793
- /* @__PURE__ */ jsx15(Button, { type: "submit", loading: busy, disabled: !password || !!ways && !looksLikeCode(code, recovery), children: t("confirm") })
3130
+ /* @__PURE__ */ jsx15(Button, { variant: "secondary", onClick: () => void copyCodes(), children: copied ? t("recoveryCopied") : t("recoveryCopy") }),
3131
+ /* @__PURE__ */ jsx15(Button, { onClick: () => close(true), "data-testid": "recovery-codes-saved", children: t("recoverySaved") })
2794
3132
  ] }) })
2795
- ] }) }) })
2796
- ] }) });
3133
+ ] });
3134
+ }
3135
+ return /* @__PURE__ */ jsx15(
3136
+ Dialog2.Root,
3137
+ {
3138
+ open,
3139
+ onOpenChange: (e) => !e.open && mayDismiss && close(false),
3140
+ closeOnInteractOutside: mayDismiss,
3141
+ closeOnEscape: mayDismiss,
3142
+ placement: "center",
3143
+ role: "alertdialog",
3144
+ children: /* @__PURE__ */ jsxs7(Portal4, { children: [
3145
+ /* @__PURE__ */ jsx15(Dialog2.Backdrop, {}),
3146
+ /* @__PURE__ */ jsx15(Dialog2.Positioner, { children: /* @__PURE__ */ jsxs7(Dialog2.Content, { "data-testid": "step-up", "data-stage": stage, children: [
3147
+ /* @__PURE__ */ jsx15(Dialog2.Header, { children: /* @__PURE__ */ jsx15(Dialog2.Title, { children: title }) }),
3148
+ body
3149
+ ] }) })
3150
+ ] })
3151
+ }
3152
+ );
2797
3153
  }
2798
3154
 
2799
3155
  // src/provider/link.tsx
@@ -2980,7 +3336,7 @@ function useFormatters() {
2980
3336
  // src/motion/components.tsx
2981
3337
  import { Children, cloneElement, isValidElement, useEffect as useEffect6, useLayoutEffect as useLayoutEffect2, useRef as useRef8 } from "react";
2982
3338
  import { AnimatePresence as AnimatePresence2, m as m2 } from "motion/react";
2983
- import { chakra as chakra5 } from "@chakra-ui/react";
3339
+ import { chakra as chakra6 } from "@chakra-ui/react";
2984
3340
 
2985
3341
  // src/motion/flip-math.ts
2986
3342
  function flipTransform(prev, next, scale) {
@@ -3100,10 +3456,10 @@ function useSlideItems(container, token, options = {}) {
3100
3456
  }
3101
3457
 
3102
3458
  // src/motion/components.tsx
3103
- import { Fragment as Fragment2, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
3104
- var MotionDiv = chakra5(m2.div, {}, { forwardProps: ["transition"] });
3105
- var MotionSpan2 = chakra5(m2.span, {}, { forwardProps: ["transition"] });
3106
- var MotionLi = chakra5(m2.li, {}, { forwardProps: ["transition"] });
3459
+ import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
3460
+ var MotionDiv = chakra6(m2.div, {}, { forwardProps: ["transition"] });
3461
+ var MotionSpan2 = chakra6(m2.span, {}, { forwardProps: ["transition"] });
3462
+ var MotionLi = chakra6(m2.li, {}, { forwardProps: ["transition"] });
3107
3463
  var OUT = `cubic-bezier(${curves.out.join(", ")})`;
3108
3464
  var easeOut = cubicBezier(...curves.out);
3109
3465
  var SETTLED = { ...SHOWN, transitionEnd: { transform: "none" } };
@@ -3118,7 +3474,7 @@ function FadeIn({ from = "fade", delay = 0, children, ...rest }) {
3118
3474
  }
3119
3475
  function Reveal({ from = "rise", itemAs = "div", children, ...rest }) {
3120
3476
  let index = 0;
3121
- return /* @__PURE__ */ jsx19(chakra5.div, { ...rest, children: Children.map(
3477
+ return /* @__PURE__ */ jsx19(chakra6.div, { ...rest, children: Children.map(
3122
3478
  children,
3123
3479
  (child) => isValidElement(child) || child != null && child !== false ? /* @__PURE__ */ jsx19(RevealItem, { as: itemAs, index: index++, from, children: child }) : null
3124
3480
  ) });
@@ -3149,8 +3505,8 @@ function PresenceList({ children }) {
3149
3505
  parent.current = marker.current?.parentElement ?? null;
3150
3506
  });
3151
3507
  useSlideItems(parent, keys);
3152
- return /* @__PURE__ */ jsxs10(Fragment2, { children: [
3153
- /* @__PURE__ */ jsx19(chakra5.span, { ref: marker, display: "none", "aria-hidden": "true" }),
3508
+ return /* @__PURE__ */ jsxs10(Fragment3, { children: [
3509
+ /* @__PURE__ */ jsx19(chakra6.span, { ref: marker, display: "none", "aria-hidden": "true" }),
3154
3510
  /* @__PURE__ */ jsx19(AnimatePresence2, { initial: false, mode: "popLayout", children: Children.map(
3155
3511
  children,
3156
3512
  (child) => isValidElement(child) ? cloneElement(child, { "data-slide": String(child.key) }) : child
@@ -3175,10 +3531,10 @@ function PresenceItem({ from = "rise", as = "div", children, ...rest }) {
3175
3531
  function SlideList({ token, children, ...rest }) {
3176
3532
  const ref = useRef8(null);
3177
3533
  useSlideItems(ref, token);
3178
- return /* @__PURE__ */ jsx19(chakra5.div, { ref, ...rest, children });
3534
+ return /* @__PURE__ */ jsx19(chakra6.div, { ref, ...rest, children });
3179
3535
  }
3180
3536
  function SlideItem({ slideId, children, ...rest }) {
3181
- return /* @__PURE__ */ jsx19(chakra5.div, { "data-slide": slideId, ...rest, children });
3537
+ return /* @__PURE__ */ jsx19(chakra6.div, { "data-slide": slideId, ...rest, children });
3182
3538
  }
3183
3539
  function Collapse({ open, children, ...rest }) {
3184
3540
  return /* @__PURE__ */ jsx19(AnimatePresence2, { initial: false, children: open && /* @__PURE__ */ jsx19(
@@ -3239,7 +3595,7 @@ function Counter({ value, format, fromZero = true, ...rest }) {
3239
3595
  frame = requestAnimationFrame(step);
3240
3596
  return () => cancelAnimationFrame(frame);
3241
3597
  }, [value, reduce, locale]);
3242
- return /* @__PURE__ */ jsx19(chakra5.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
3598
+ return /* @__PURE__ */ jsx19(chakra6.span, { ref, fontVariantNumeric: "tabular-nums", ...rest, children: write(reduce || !fromZero ? value : shown.current) });
3243
3599
  }
3244
3600
  var lastMarks = /* @__PURE__ */ new Map();
3245
3601
  function Indicator({ group, css }) {
@@ -3254,11 +3610,11 @@ function Indicator({ group, css }) {
3254
3610
  if (before && !reduce) slide(element, before, now, { scale: true });
3255
3611
  lastMarks.set(group, now);
3256
3612
  });
3257
- return /* @__PURE__ */ jsx19(chakra5.span, { ref, "aria-hidden": "true", css });
3613
+ return /* @__PURE__ */ jsx19(chakra6.span, { ref, "aria-hidden": "true", css });
3258
3614
  }
3259
3615
  function Pressable({ lift = false, css, ...rest }) {
3260
3616
  return /* @__PURE__ */ jsx19(
3261
- chakra5.div,
3617
+ chakra6.div,
3262
3618
  {
3263
3619
  css: {
3264
3620
  transitionProperty: "transform, box-shadow",
@@ -3284,7 +3640,7 @@ function ArriveOnChange({ token, children, ...rest }) {
3284
3640
  }
3285
3641
  ref.current?.animate?.([{ opacity: 0.55 }, { opacity: 1 }], { duration: durations2.quick * 1e3, easing: OUT });
3286
3642
  }, [token]);
3287
- return /* @__PURE__ */ jsx19(chakra5.div, { ref, ...rest, children });
3643
+ return /* @__PURE__ */ jsx19(chakra6.div, { ref, ...rest, children });
3288
3644
  }
3289
3645
  function Nudge({ on, children }) {
3290
3646
  const { reduce } = useMotionSetting();
@@ -3299,17 +3655,17 @@ function Nudge({ on, children }) {
3299
3655
  { duration: durations2.burst * 1e3, easing: OUT }
3300
3656
  );
3301
3657
  }, [on, reduce]);
3302
- return /* @__PURE__ */ jsx19(chakra5.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
3658
+ return /* @__PURE__ */ jsx19(chakra6.span, { ref, display: "inline-flex", transformOrigin: "top center", children });
3303
3659
  }
3304
3660
 
3305
3661
  // src/components/AppShell.tsx
3306
- import { Fragment as Fragment3, useCallback as useCallback8, useState as useState8 } from "react";
3307
- import { chakra as chakra7, Drawer, Portal as Portal6, SkipNavContent, SkipNavLink, useSlotRecipe } from "@chakra-ui/react";
3662
+ import { Fragment as Fragment4, useCallback as useCallback8, useState as useState8 } from "react";
3663
+ import { chakra as chakra8, Drawer, Portal as Portal6, SkipNavContent, SkipNavLink, useSlotRecipe } from "@chakra-ui/react";
3308
3664
  import { ChevronDown, Menu as MenuIcon, PanelLeftClose, PanelLeftOpen, X } from "lucide-react";
3309
3665
 
3310
3666
  // src/components/DirectionalIcon.tsx
3311
- import { chakra as chakra6 } from "@chakra-ui/react";
3312
- var DirectionalIcon = chakra6("span", {
3667
+ import { chakra as chakra7 } from "@chakra-ui/react";
3668
+ var DirectionalIcon = chakra7("span", {
3313
3669
  base: {
3314
3670
  display: "inline-flex",
3315
3671
  alignItems: "center",
@@ -3331,7 +3687,7 @@ var Tooltip = forwardRef4(function Tooltip2({ content, children, disabled, inact
3331
3687
  });
3332
3688
 
3333
3689
  // src/components/AppShell.tsx
3334
- import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
3690
+ import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
3335
3691
  var MAIN_ID = "abp-main";
3336
3692
  function AppShell({
3337
3693
  brand,
@@ -3363,39 +3719,39 @@ function AppShell({
3363
3719
  onCollapsedChange?.(next);
3364
3720
  }, [collapsed, onCollapsedChange]);
3365
3721
  const mark2 = brand.mark ?? (typeof brand.name === "string" ? brand.name.slice(0, 1) : null);
3366
- const brandInner = /* @__PURE__ */ jsxs12(Fragment4, { children: [
3367
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
3368
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.brandText, children: /* @__PURE__ */ jsx21(chakra7.span, { css: styles.brandName, children: brand.name }) })
3722
+ const brandInner = /* @__PURE__ */ jsxs12(Fragment5, { children: [
3723
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.brandMark, "aria-hidden": "true", children: mark2 }),
3724
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.brandText, children: /* @__PURE__ */ jsx21(chakra8.span, { css: styles.brandName, children: brand.name }) })
3369
3725
  ] });
3370
- return /* @__PURE__ */ jsxs12(chakra7.div, { css: styles.root, children: [
3726
+ return /* @__PURE__ */ jsxs12(chakra8.div, { css: styles.root, children: [
3371
3727
  /* @__PURE__ */ jsx21(SkipNavLink, { id: MAIN_ID, children: labels.skipToContent }),
3372
- /* @__PURE__ */ jsxs12(chakra7.header, { css: styles.topbar, children: [
3373
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx21(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx21(MenuIcon, {}) }) }),
3374
- brand.href ? /* @__PURE__ */ jsx21(chakra7.span, { asChild: true, css: styles.brand, children: /* @__PURE__ */ jsx21(Link, { href: brand.href, children: brandInner }) }) : /* @__PURE__ */ jsx21(chakra7.span, { css: styles.brand, children: brandInner }),
3375
- topbarStart != null && /* @__PURE__ */ jsx21(chakra7.div, { css: styles.topbarStart, children: topbarStart }),
3376
- /* @__PURE__ */ jsxs12(chakra7.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
3728
+ /* @__PURE__ */ jsxs12(chakra8.header, { css: styles.topbar, children: [
3729
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.mobileToggle, children: /* @__PURE__ */ jsx21(IconButton, { size: "sm", "aria-label": labels.openNavigation, onClick: () => setMobileOpen(true), children: /* @__PURE__ */ jsx21(MenuIcon, {}) }) }),
3730
+ brand.href ? /* @__PURE__ */ jsx21(chakra8.span, { asChild: true, css: styles.brand, children: /* @__PURE__ */ jsx21(Link, { href: brand.href, children: brandInner }) }) : /* @__PURE__ */ jsx21(chakra8.span, { css: styles.brand, children: brandInner }),
3731
+ topbarStart != null && /* @__PURE__ */ jsx21(chakra8.div, { css: styles.topbarStart, children: topbarStart }),
3732
+ /* @__PURE__ */ jsxs12(chakra8.nav, { css: styles.topNav, "aria-label": labels.navigation, children: [
3377
3733
  topNav.map((item) => /* @__PURE__ */ jsx21(TopNavItem, { item, styles }, item.id)),
3378
3734
  topNavEnd
3379
3735
  ] }),
3380
- /* @__PURE__ */ jsx21(chakra7.div, { css: styles.topbarEnd, children: topbarEnd })
3736
+ /* @__PURE__ */ jsx21(chakra8.div, { css: styles.topbarEnd, children: topbarEnd })
3381
3737
  ] }),
3382
- /* @__PURE__ */ jsxs12(chakra7.div, { css: styles.body, children: [
3383
- hasSidebar && /* @__PURE__ */ jsxs12(chakra7.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
3738
+ /* @__PURE__ */ jsxs12(chakra8.div, { css: styles.body, children: [
3739
+ hasSidebar && /* @__PURE__ */ jsxs12(chakra8.aside, { css: styles.sidebar, "aria-label": sidebar.place?.name ?? labels.navigation, "data-collapsed": collapsed || void 0, children: [
3384
3740
  /* @__PURE__ */ jsx21(FadeIn, { from: "start", display: "flex", flexDirection: "column", minH: "0", flex: "1", children: /* @__PURE__ */ jsx21(SidebarContents, { styles, sidebar, navFooter, collapsed }) }, sidebar.id),
3385
- /* @__PURE__ */ jsxs12(chakra7.div, { css: styles.sidebarFooter, children: [
3741
+ /* @__PURE__ */ jsxs12(chakra8.div, { css: styles.sidebarFooter, children: [
3386
3742
  /* @__PURE__ */ jsx21(IconButton, { size: "sm", "aria-label": collapsed ? labels.expandSidebar : labels.collapseSidebar, "aria-expanded": !collapsed, onClick: toggle, children: /* @__PURE__ */ jsx21(Swap, { swapKey: collapsed ? "open" : "close", from: "fade", children: /* @__PURE__ */ jsx21(DirectionalIcon, { children: collapsed ? /* @__PURE__ */ jsx21(PanelLeftOpen, {}) : /* @__PURE__ */ jsx21(PanelLeftClose, {}) }) }) }),
3387
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
3743
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.sidebarFooterText, "aria-hidden": collapsed || void 0, children: sidebarFooter })
3388
3744
  ] })
3389
3745
  ] }),
3390
- /* @__PURE__ */ jsxs12(chakra7.div, { css: styles.main, children: [
3746
+ /* @__PURE__ */ jsxs12(chakra8.div, { css: styles.main, children: [
3391
3747
  /* @__PURE__ */ jsx21(SkipNavContent, { id: MAIN_ID }),
3392
- /* @__PURE__ */ jsx21(chakra7.main, { css: styles.content, children: /* @__PURE__ */ jsx21(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
3748
+ /* @__PURE__ */ jsx21(chakra8.main, { css: styles.content, children: /* @__PURE__ */ jsx21(ArriveOnChange, { token: pageKey ?? "", css: styles.contentInner, children }) })
3393
3749
  ] })
3394
3750
  ] }),
3395
3751
  /* @__PURE__ */ jsx21(Drawer.Root, { open: mobileOpen, onOpenChange: (e) => setMobileOpen(e.open), placement: "start", size: "xs", children: /* @__PURE__ */ jsxs12(Portal6, { children: [
3396
3752
  /* @__PURE__ */ jsx21(Drawer.Backdrop, {}),
3397
3753
  /* @__PURE__ */ jsx21(Drawer.Positioner, { children: /* @__PURE__ */ jsx21(Drawer.Content, { "aria-label": labels.navigation, children: /* @__PURE__ */ jsxs12(
3398
- chakra7.div,
3754
+ chakra8.div,
3399
3755
  {
3400
3756
  css: mobileStyles.sidebar,
3401
3757
  "data-mobile": "",
@@ -3403,8 +3759,8 @@ function AppShell({
3403
3759
  if (e.target.closest("a")) setMobileOpen(false);
3404
3760
  },
3405
3761
  children: [
3406
- /* @__PURE__ */ jsxs12(chakra7.div, { css: mobileStyles.drawerHeader, children: [
3407
- /* @__PURE__ */ jsx21(chakra7.span, { css: mobileStyles.brand, children: brandInner }),
3762
+ /* @__PURE__ */ jsxs12(chakra8.div, { css: mobileStyles.drawerHeader, children: [
3763
+ /* @__PURE__ */ jsx21(chakra8.span, { css: mobileStyles.brand, children: brandInner }),
3408
3764
  /* @__PURE__ */ jsx21(Drawer.CloseTrigger, { asChild: true, position: "static", children: /* @__PURE__ */ jsx21(IconButton, { size: "sm", "aria-label": labels.close, children: /* @__PURE__ */ jsx21(X, {}) }) })
3409
3765
  ] }),
3410
3766
  /* @__PURE__ */ jsx21(
@@ -3432,9 +3788,9 @@ function AppShell({
3432
3788
  }
3433
3789
  function TopNavItem({ item, styles }) {
3434
3790
  const Link = useLinkComponent();
3435
- return /* @__PURE__ */ jsx21(chakra7.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs12(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
3791
+ return /* @__PURE__ */ jsx21(chakra8.a, { asChild: true, css: styles.topNavItem, children: /* @__PURE__ */ jsxs12(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, children: [
3436
3792
  item.current && /* @__PURE__ */ jsx21(Indicator, { group: "abp-top-nav", css: styles.topNavIndicator }),
3437
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.topNavLabel, children: item.label })
3793
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.topNavLabel, children: item.label })
3438
3794
  ] }) });
3439
3795
  }
3440
3796
  function SidebarContents({
@@ -3450,39 +3806,39 @@ function SidebarContents({
3450
3806
  const loading = !!sidebar.loading;
3451
3807
  const arrive = useArriving(loading) ? arriveCss : void 0;
3452
3808
  const placeMark = place ? place.mark ?? place.name.slice(0, 1).toUpperCase() : null;
3453
- const placeInner = place && /* @__PURE__ */ jsxs12(Fragment4, { children: [
3454
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
3455
- /* @__PURE__ */ jsxs12(chakra7.span, { css: styles.placeText, children: [
3456
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.placeName, children: place.name }),
3457
- place.detail != null && /* @__PURE__ */ jsx21(chakra7.span, { css: styles.placeDetail, children: place.detail })
3809
+ const placeInner = place && /* @__PURE__ */ jsxs12(Fragment5, { children: [
3810
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.placeMark, "aria-hidden": "true", children: placeMark }),
3811
+ /* @__PURE__ */ jsxs12(chakra8.span, { css: styles.placeText, children: [
3812
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.placeName, children: place.name }),
3813
+ place.detail != null && /* @__PURE__ */ jsx21(chakra8.span, { css: styles.placeDetail, children: place.detail })
3458
3814
  ] })
3459
3815
  ] });
3460
3816
  const headerCss = placeAfter === void 0 ? styles.placeHeader : { ...styles.placeHeader, px: "0" };
3461
- const placeBlock = /* @__PURE__ */ jsxs12(Fragment4, { children: [
3462
- place ? /* @__PURE__ */ jsx21(chakra7.div, { css: [headerCss, arrive], children: place.href ? /* @__PURE__ */ jsx21(chakra7.span, { asChild: true, css: styles.place, children: /* @__PURE__ */ jsx21(Link, { href: place.href, children: placeInner }) }) : /* @__PURE__ */ jsx21(chakra7.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.
3463
- /* @__PURE__ */ jsx21(chakra7.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs12(chakra7.span, { css: styles.place, pointerEvents: "none", children: [
3464
- /* @__PURE__ */ jsx21(chakra7.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
3465
- /* @__PURE__ */ jsxs12(chakra7.span, { css: styles.placeText, children: [
3466
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.placeName, children: /* @__PURE__ */ jsx21(TextBone, { width: 14 }) }),
3467
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx21(TextBone, { width: 4 }) })
3817
+ const placeBlock = /* @__PURE__ */ jsxs12(Fragment5, { children: [
3818
+ place ? /* @__PURE__ */ jsx21(chakra8.div, { css: [headerCss, arrive], children: place.href ? /* @__PURE__ */ jsx21(chakra8.span, { asChild: true, css: styles.place, children: /* @__PURE__ */ jsx21(Link, { href: place.href, children: placeInner }) }) : /* @__PURE__ */ jsx21(chakra8.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.
3819
+ /* @__PURE__ */ jsx21(chakra8.div, { css: headerCss, "aria-hidden": "true", children: /* @__PURE__ */ jsxs12(chakra8.span, { css: styles.place, pointerEvents: "none", children: [
3820
+ /* @__PURE__ */ jsx21(chakra8.span, { css: [styles.placeMark, ghostCss], children: "\xA0" }),
3821
+ /* @__PURE__ */ jsxs12(chakra8.span, { css: styles.placeText, children: [
3822
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.placeName, children: /* @__PURE__ */ jsx21(TextBone, { width: 14 }) }),
3823
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.placeDetail, children: /* @__PURE__ */ jsx21(TextBone, { width: 4 }) })
3468
3824
  ] })
3469
3825
  ] }) }),
3470
3826
  sidebar.top != null && // Folded away in the rail (and out of reach of the keyboard there).
3471
- /* @__PURE__ */ jsx21(chakra7.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.sidebarTop, children: sidebar.top }) }) })
3827
+ /* @__PURE__ */ jsx21(chakra8.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.sidebarTop, children: sidebar.top }) }) })
3472
3828
  ] });
3473
- return /* @__PURE__ */ jsxs12(Fragment4, { children: [
3829
+ return /* @__PURE__ */ jsxs12(Fragment5, { children: [
3474
3830
  placeAfter === void 0 && placeBlock,
3475
- /* @__PURE__ */ jsxs12(chakra7.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
3476
- sidebar.sections.filter((section) => section.items.length > 0).map((section) => /* @__PURE__ */ jsxs12(Fragment3, { children: [
3831
+ /* @__PURE__ */ jsxs12(chakra8.nav, { css: [styles.nav, arrive], "aria-label": place?.name ?? labels.navigation, children: [
3832
+ sidebar.sections.filter((section) => section.items.length > 0).map((section) => /* @__PURE__ */ jsxs12(Fragment4, { children: [
3477
3833
  /* @__PURE__ */ jsx21(NavSection, { section, styles, collapsed, group: sidebar.id }),
3478
3834
  section.id === placeAfter && placeBlock
3479
3835
  ] }, section.id)),
3480
3836
  loading && // The place's pages, coming: rows of the nav's own items, the same in the rail and out of it (ADR 0061).
3481
- /* @__PURE__ */ jsx21(Loading, { when: true, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navSection, "aria-hidden": "true", children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navSectionItems, children: Array.from({ length: sidebar.skeletonItems ?? 5 }, (_, n) => /* @__PURE__ */ jsxs12(chakra7.span, { css: styles.navItem, pointerEvents: "none", children: [
3482
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx21(Bone, { width: "4", height: "4" }) }),
3483
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx21(TextBone, { width: boneWidth(n, 6, 12) }) })
3837
+ /* @__PURE__ */ jsx21(Loading, { when: true, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navSection, "aria-hidden": "true", children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navSectionItems, children: Array.from({ length: sidebar.skeletonItems ?? 5 }, (_, n) => /* @__PURE__ */ jsxs12(chakra8.span, { css: styles.navItem, pointerEvents: "none", children: [
3838
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.navItemIcon, children: /* @__PURE__ */ jsx21(Bone, { width: "4", height: "4" }) }),
3839
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.navItemLabel, children: /* @__PURE__ */ jsx21(TextBone, { width: boneWidth(n, 6, 12) }) })
3484
3840
  ] }, n)) }) }) }),
3485
- navFooter != null && /* @__PURE__ */ jsx21(chakra7.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.foldInner, children: navFooter }) })
3841
+ navFooter != null && /* @__PURE__ */ jsx21(chakra8.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.foldInner, children: navFooter }) })
3486
3842
  ] })
3487
3843
  ] });
3488
3844
  }
@@ -3491,32 +3847,32 @@ function NavSection({ section, styles, collapsed, group }) {
3491
3847
  const [open, setOpen] = useState8(holdsCurrent || !section.collapsible);
3492
3848
  const shown = !section.collapsible || collapsed || open || holdsCurrent;
3493
3849
  const items = section.items.map((item) => /* @__PURE__ */ jsx21(NavItem, { item, styles, collapsed, group }, item.id));
3494
- return /* @__PURE__ */ jsxs12(chakra7.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
3495
- section.title && /* @__PURE__ */ jsx21(chakra7.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.foldInner, children: section.collapsible ? /* @__PURE__ */ jsxs12(chakra7.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
3496
- /* @__PURE__ */ jsx21(chakra7.span, { children: section.title }),
3497
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx21(ChevronDown, {}) })
3498
- ] }) : /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
3499
- section.collapsible ? /* @__PURE__ */ jsx21(Collapse, { open: shown, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navSectionItems, children: items }) }) : /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navSectionItems, children: items })
3850
+ return /* @__PURE__ */ jsxs12(chakra8.div, { css: styles.navSection, role: "group", "aria-label": section.title, children: [
3851
+ section.title && /* @__PURE__ */ jsx21(chakra8.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.foldInner, children: section.collapsible ? /* @__PURE__ */ jsxs12(chakra8.button, { type: "button", css: styles.navSectionToggle, "aria-expanded": shown, onClick: () => setOpen(!shown), children: [
3852
+ /* @__PURE__ */ jsx21(chakra8.span, { children: section.title }),
3853
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.navSectionChevron, "data-open": shown || void 0, "aria-hidden": "true", children: /* @__PURE__ */ jsx21(ChevronDown, {}) })
3854
+ ] }) : /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navSectionTitle, "aria-hidden": "true", children: section.title }) }) }),
3855
+ section.collapsible ? /* @__PURE__ */ jsx21(Collapse, { open: shown, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navSectionItems, children: items }) }) : /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navSectionItems, children: items })
3500
3856
  ] });
3501
3857
  }
3502
3858
  function NavItem({ item, styles, collapsed, group, nested }) {
3503
3859
  const Link = useLinkComponent();
3504
3860
  const { isRtl } = useAbpLocale();
3505
- const link = /* @__PURE__ */ jsx21(chakra7.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs12(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
3861
+ const link = /* @__PURE__ */ jsx21(chakra8.a, { asChild: true, css: styles.navItem, children: /* @__PURE__ */ jsxs12(Link, { href: item.href, "aria-current": item.current ? "page" : void 0, "data-nested": nested || void 0, children: [
3506
3862
  item.current && /* @__PURE__ */ jsx21(Indicator, { group: `abp-side-${group}`, css: styles.navItemIndicator }),
3507
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.navItemIcon, "aria-hidden": "true", children: item.icon ?? /* @__PURE__ */ jsx21(chakra7.span, { textStyle: "label", children: item.label.slice(0, 1) }) }),
3508
- /* @__PURE__ */ jsx21(chakra7.span, { css: styles.navItemLabel, children: item.label })
3863
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.navItemIcon, "aria-hidden": "true", children: item.icon ?? /* @__PURE__ */ jsx21(chakra8.span, { textStyle: "label", children: item.label.slice(0, 1) }) }),
3864
+ /* @__PURE__ */ jsx21(chakra8.span, { css: styles.navItemLabel, children: item.label })
3509
3865
  ] }) });
3510
3866
  const own = /* @__PURE__ */ jsx21(Tooltip, { content: item.label, inactive: !collapsed, positioning: { placement: isRtl ? "left" : "right" }, children: link });
3511
3867
  if (!item.children?.length) return own;
3512
- return /* @__PURE__ */ jsxs12(Fragment4, { children: [
3868
+ return /* @__PURE__ */ jsxs12(Fragment5, { children: [
3513
3869
  own,
3514
- /* @__PURE__ */ jsx21(chakra7.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx21(chakra7.div, { css: styles.navChildren, role: "group", "aria-label": item.label, children: item.children.map((child) => /* @__PURE__ */ jsx21(NavItem, { item: child, styles, collapsed, group, nested: true }, child.id)) }) }) })
3870
+ /* @__PURE__ */ jsx21(chakra8.div, { css: styles.fold, inert: collapsed || void 0, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.foldInner, children: /* @__PURE__ */ jsx21(chakra8.div, { css: styles.navChildren, role: "group", "aria-label": item.label, children: item.children.map((child) => /* @__PURE__ */ jsx21(NavItem, { item: child, styles, collapsed, group, nested: true }, child.id)) }) }) })
3515
3871
  ] });
3516
3872
  }
3517
3873
 
3518
3874
  // src/components/Pagination.tsx
3519
- import { chakra as chakra8, HStack as HStack2 } from "@chakra-ui/react";
3875
+ import { chakra as chakra9, HStack as HStack2 } from "@chakra-ui/react";
3520
3876
  import { ChevronLeft, ChevronRight } from "lucide-react";
3521
3877
 
3522
3878
  // src/components/pageList.ts
@@ -3558,13 +3914,13 @@ var button = {
3558
3914
  function Pagination({ page, pages, onPage, label, previous, next, pageLabel, disabled }) {
3559
3915
  if (pages <= 1) return null;
3560
3916
  const go = (n) => onPage(Math.min(pages, Math.max(1, n)));
3561
- return /* @__PURE__ */ jsx22(chakra8.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs13(HStack2, { gap: "1", justify: "center", wrap: "wrap", children: [
3562
- /* @__PURE__ */ jsx22(chakra8.button, { type: "button", css: button, "aria-label": previous, title: previous, disabled: disabled || page <= 1, onClick: () => go(page - 1), children: /* @__PURE__ */ jsx22(DirectionalIcon, { children: /* @__PURE__ */ jsx22(ChevronLeft, {}) }) }),
3917
+ return /* @__PURE__ */ jsx22(chakra9.nav, { "aria-label": label, children: /* @__PURE__ */ jsxs13(HStack2, { gap: "1", justify: "center", wrap: "wrap", children: [
3918
+ /* @__PURE__ */ jsx22(chakra9.button, { type: "button", css: button, "aria-label": previous, title: previous, disabled: disabled || page <= 1, onClick: () => go(page - 1), children: /* @__PURE__ */ jsx22(DirectionalIcon, { children: /* @__PURE__ */ jsx22(ChevronLeft, {}) }) }),
3563
3919
  pageList(page, pages).map(
3564
- (n, i) => n === "gap" ? /* @__PURE__ */ jsx22(chakra8.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3920
+ (n, i) => n === "gap" ? /* @__PURE__ */ jsx22(chakra9.span, { minW: "5", textAlign: "center", color: "fg.muted", "aria-hidden": "true", children: "\u2026" }, `gap-${i}`) : (
3565
3921
  // Page buttons stay enabled while a page loads (a second click just asks again); the arrows wait.
3566
3922
  /* @__PURE__ */ jsx22(
3567
- chakra8.button,
3923
+ chakra9.button,
3568
3924
  {
3569
3925
  type: "button",
3570
3926
  css: button,
@@ -3577,29 +3933,29 @@ function Pagination({ page, pages, onPage, label, previous, next, pageLabel, dis
3577
3933
  )
3578
3934
  )
3579
3935
  ),
3580
- /* @__PURE__ */ jsx22(chakra8.button, { type: "button", css: button, "aria-label": next, title: next, disabled: disabled || page >= pages, onClick: () => go(page + 1), children: /* @__PURE__ */ jsx22(DirectionalIcon, { children: /* @__PURE__ */ jsx22(ChevronRight, {}) }) })
3936
+ /* @__PURE__ */ jsx22(chakra9.button, { type: "button", css: button, "aria-label": next, title: next, disabled: disabled || page >= pages, onClick: () => go(page + 1), children: /* @__PURE__ */ jsx22(DirectionalIcon, { children: /* @__PURE__ */ jsx22(ChevronRight, {}) }) })
3581
3937
  ] }) });
3582
3938
  }
3583
3939
 
3584
3940
  // src/components/CommandPalette.tsx
3585
- import { Fragment as Fragment5, useEffect as useEffect7, useId, useMemo as useMemo5, useRef as useRef9, useState as useState9 } from "react";
3586
- import { chakra as chakra9, Dialog as Dialog3, HStack as HStack3, Portal as Portal7, Spinner as Spinner2, Stack as Stack3, Text as Text2 } from "@chakra-ui/react";
3941
+ import { Fragment as Fragment6, useEffect as useEffect7, useId, useMemo as useMemo5, useRef as useRef9, useState as useState9 } from "react";
3942
+ import { chakra as chakra10, Dialog as Dialog3, HStack as HStack3, Portal as Portal7, Spinner as Spinner2, Stack as Stack3, Text as Text2 } from "@chakra-ui/react";
3587
3943
  import { CornerDownLeft, Search } from "lucide-react";
3588
- import { Fragment as Fragment6, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
3944
+ import { Fragment as Fragment7, jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
3589
3945
  function HighlightText({ text, query }) {
3590
3946
  const q = query.trim().toLowerCase();
3591
- if (!q) return /* @__PURE__ */ jsx23(Fragment6, { children: text });
3947
+ if (!q) return /* @__PURE__ */ jsx23(Fragment7, { children: text });
3592
3948
  const lower = text.toLowerCase();
3593
3949
  const parts = [];
3594
3950
  let at = 0;
3595
3951
  for (let i = lower.indexOf(q); i >= 0; i = lower.indexOf(q, at)) {
3596
3952
  if (i > at) parts.push(text.slice(at, i));
3597
- parts.push(/* @__PURE__ */ jsx23(chakra9.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3953
+ parts.push(/* @__PURE__ */ jsx23(chakra10.strong, { fontWeight: "bold", children: text.slice(i, i + q.length) }, i));
3598
3954
  at = i + q.length;
3599
3955
  }
3600
- if (parts.length === 0) return /* @__PURE__ */ jsx23(Fragment6, { children: text });
3956
+ if (parts.length === 0) return /* @__PURE__ */ jsx23(Fragment7, { children: text });
3601
3957
  parts.push(text.slice(at));
3602
- return /* @__PURE__ */ jsx23(Fragment6, { children: parts.map((p, i) => /* @__PURE__ */ jsx23(Fragment5, { children: p }, i)) });
3958
+ return /* @__PURE__ */ jsx23(Fragment7, { children: parts.map((p, i) => /* @__PURE__ */ jsx23(Fragment6, { children: p }, i)) });
3603
3959
  }
3604
3960
  function CommandPalette({ open, onOpenChange, search, labels }) {
3605
3961
  const listId = useId();
@@ -3658,7 +4014,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
3658
4014
  /* @__PURE__ */ jsxs14(HStack3, { gap: "2.5", px: "4", borderBottomWidth: "1px", borderColor: "border.muted", color: "fg.muted", _icon: { boxSize: "4.5", flexShrink: 0 }, children: [
3659
4015
  /* @__PURE__ */ jsx23(Search, { "aria-hidden": true }),
3660
4016
  /* @__PURE__ */ jsx23(
3661
- chakra9.input,
4017
+ chakra10.input,
3662
4018
  {
3663
4019
  autoFocus: true,
3664
4020
  flex: "1",
@@ -3728,7 +4084,7 @@ function CommandPalette({ open, onOpenChange, search, labels }) {
3728
4084
  // src/components/AvatarStack.tsx
3729
4085
  import { Avatar, Box, HStack as HStack4, Popover, Portal as Portal8, Stack as Stack4, Text as Text3 } from "@chakra-ui/react";
3730
4086
  import { Check } from "lucide-react";
3731
- import { Fragment as Fragment7, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
4087
+ import { Fragment as Fragment8, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
3732
4088
  var PALETTES = ["blue", "teal", "purple", "orange", "pink", "cyan", "green", "red"];
3733
4089
  function avatarPalette(id) {
3734
4090
  let hash = 0;
@@ -3767,7 +4123,7 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
3767
4123
  const picked = (p) => selected.includes(p.id);
3768
4124
  const restPicked = rest.some(picked);
3769
4125
  return /* @__PURE__ */ jsxs15(HStack4, { gap: "1", role: "group", "aria-label": ariaLabel, children: [
3770
- shown.map((p) => /* @__PURE__ */ jsx24(Tooltip, { content: p.detail ? /* @__PURE__ */ jsxs15(Fragment7, { children: [
4126
+ shown.map((p) => /* @__PURE__ */ jsx24(Tooltip, { content: p.detail ? /* @__PURE__ */ jsxs15(Fragment8, { children: [
3771
4127
  p.name,
3772
4128
  " \xB7 ",
3773
4129
  p.detail
@@ -3824,7 +4180,7 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
3824
4180
  /* @__PURE__ */ jsx24(Portal8, { children: /* @__PURE__ */ jsx24(Popover.Positioner, { children: /* @__PURE__ */ jsx24(Popover.Content, { w: "64", maxW: "calc(100vw - 32px)", children: /* @__PURE__ */ jsx24(Popover.Body, { children: /* @__PURE__ */ jsxs15(Stack4, { gap: "3", children: [
3825
4181
  /* @__PURE__ */ jsx24(Popover.Title, { textStyle: "label", children: moreTitle }),
3826
4182
  /* @__PURE__ */ jsx24(Stack4, { as: "ul", gap: onToggle ? "0.5" : "2", maxH: "64", overflowY: "auto", listStyleType: "none", mx: onToggle ? "-2" : void 0, children: rest.map((p) => {
3827
- const row = /* @__PURE__ */ jsxs15(Fragment7, { children: [
4183
+ const row = /* @__PURE__ */ jsxs15(Fragment8, { children: [
3828
4184
  /* @__PURE__ */ jsx24(PersonAvatar, { person: p, selected: onToggle && picked(p), inButton: !!onToggle }),
3829
4185
  /* @__PURE__ */ jsxs15(Stack4, { gap: "0", minW: "0", flex: "1", textAlign: "start", children: [
3830
4186
  /* @__PURE__ */ jsx24(Text3, { textStyle: "body", truncate: true, children: p.name }),
@@ -3857,12 +4213,12 @@ function AvatarStack({ "aria-label": ariaLabel, people, max = 3, moreLabel, more
3857
4213
  }
3858
4214
 
3859
4215
  // src/components/DataTable.tsx
3860
- import { Fragment as Fragment8, useMemo as useMemo6, useRef as useRef10, useState as useState10 } from "react";
3861
- import { chakra as chakra13, Menu, Portal as Portal9, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
4216
+ import { Fragment as Fragment9, useMemo as useMemo6, useRef as useRef10, useState as useState10 } from "react";
4217
+ import { chakra as chakra14, Menu, Portal as Portal9, Table, useSlotRecipe as useSlotRecipe3 } from "@chakra-ui/react";
3862
4218
  import { ArrowDown, ArrowUp, ChevronDown as ChevronDown2, ChevronRight as ChevronRight2, ChevronsUpDown, GripVertical } from "lucide-react";
3863
4219
 
3864
4220
  // src/components/EmptyState.tsx
3865
- import { chakra as chakra10, EmptyState as ChakraEmptyState, HStack as HStack5, Text as Text4, VStack } from "@chakra-ui/react";
4221
+ import { chakra as chakra11, EmptyState as ChakraEmptyState, HStack as HStack5, Text as Text4, VStack } from "@chakra-ui/react";
3866
4222
  import { Inbox } from "lucide-react";
3867
4223
  import { m as m3 } from "motion/react";
3868
4224
  import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
@@ -3871,7 +4227,7 @@ var TONE = {
3871
4227
  accent: { border: "accent.muted", bg: "accent.subtle", fg: "accent.fg" },
3872
4228
  danger: { border: "red.muted", bg: "red.subtle", fg: "fg.error" }
3873
4229
  };
3874
- var MotionSpan3 = chakra10(m3.span, {}, { forwardProps: ["transition"] });
4230
+ var MotionSpan3 = chakra11(m3.span, {}, { forwardProps: ["transition"] });
3875
4231
  function Drawing({ children, size, tone }) {
3876
4232
  return /* @__PURE__ */ jsx25(
3877
4233
  MotionSpan3,
@@ -3921,7 +4277,7 @@ function EmptyState({ title, description, icon, action, secondaryAction, kind, s
3921
4277
 
3922
4278
  // src/components/RecordKey.tsx
3923
4279
  import { forwardRef as forwardRef5, ViewTransition } from "react";
3924
- import { chakra as chakra11, useRecipe } from "@chakra-ui/react";
4280
+ import { chakra as chakra12, useRecipe } from "@chakra-ui/react";
3925
4281
  import { jsx as jsx26 } from "react/jsx-runtime";
3926
4282
  var glideName = (key) => `abp-key-${key.toUpperCase().replace(/[^A-Z0-9_-]/g, "_")}`;
3927
4283
  var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant = "plain", size = "sm", glide = false, loading: own, css, ...rest }, ref) {
@@ -3930,16 +4286,16 @@ var RecordKey = forwardRef5(function RecordKey2({ value, children, href, variant
3930
4286
  const Link = useLinkComponent();
3931
4287
  const content = children ?? value;
3932
4288
  if (useLoading(own)) {
3933
- return /* @__PURE__ */ jsx26(chakra11.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
4289
+ return /* @__PURE__ */ jsx26(chakra12.span, { ref, dir: "ltr", "aria-hidden": "true", css: [styles, ghostCss, css], ...rest, children: content ?? "XXXX-000" });
3934
4290
  }
3935
- const key = href ? /* @__PURE__ */ jsx26(chakra11.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx26(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx26(chakra11.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
4291
+ const key = href ? /* @__PURE__ */ jsx26(chakra12.span, { asChild: true, css: [styles, css], ...rest, children: /* @__PURE__ */ jsx26(Link, { href, dir: "ltr", ref, children: content }) }) : /* @__PURE__ */ jsx26(chakra12.span, { ref, dir: "ltr", css: [styles, css], ...rest, children: content });
3936
4292
  if (!glide || !value || typeof ViewTransition === "undefined") return key;
3937
4293
  return /* @__PURE__ */ jsx26(ViewTransition, { name: glideName(value), share: "morph", default: "none", children: key });
3938
4294
  });
3939
4295
 
3940
4296
  // src/components/StatusPill.tsx
3941
4297
  import { forwardRef as forwardRef6 } from "react";
3942
- import { chakra as chakra12, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
4298
+ import { chakra as chakra13, useSlotRecipe as useSlotRecipe2 } from "@chakra-ui/react";
3943
4299
  import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
3944
4300
  var StatusPill = forwardRef6(function StatusPill2({ tone = "neutral", category, variant = "subtle", size = "sm", dot = true, loading: own, skeletonWidth = 8, children, css, ...rest }, ref) {
3945
4301
  const recipe = useSlotRecipe2({ key: "abpStatusPill" });
@@ -3947,9 +4303,9 @@ var StatusPill = forwardRef6(function StatusPill2({ tone = "neutral", category,
3947
4303
  const loading = useLoading(own);
3948
4304
  const arriving = useArriving(loading);
3949
4305
  const unknown = children == null || children === "";
3950
- return /* @__PURE__ */ jsxs17(chakra12.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
3951
- dot && /* @__PURE__ */ jsx27(chakra12.span, { css: styles.indicator, "aria-hidden": "true" }),
3952
- loading && unknown ? /* @__PURE__ */ jsx27(chakra12.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
4306
+ return /* @__PURE__ */ jsxs17(chakra13.span, { ref, css: [styles.root, loading ? ghostCss : arriving ? arriveCss : void 0, css], "aria-hidden": loading || void 0, ...rest, children: [
4307
+ dot && /* @__PURE__ */ jsx27(chakra13.span, { css: styles.indicator, "aria-hidden": "true" }),
4308
+ loading && unknown ? /* @__PURE__ */ jsx27(chakra13.span, { display: "inline-block", width: `${skeletonWidth}ch`, children: "\xA0" }) : children
3953
4309
  ] });
3954
4310
  });
3955
4311
 
@@ -4267,7 +4623,7 @@ function DataTable({
4267
4623
  const sub = renderSubRow?.(row);
4268
4624
  const own2 = renderRow?.(row, index);
4269
4625
  const selected = selection ? selection.selectedId === id : void 0;
4270
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
4626
+ return /* @__PURE__ */ jsxs18(Fragment9, { children: [
4271
4627
  /* @__PURE__ */ jsx28(
4272
4628
  Table.Row,
4273
4629
  {
@@ -4327,7 +4683,7 @@ function DataTable({
4327
4683
  }),
4328
4684
  children: c2.cell(row, index)
4329
4685
  }
4330
- ) : ci === 0 && grouping?.move ? /* @__PURE__ */ jsxs18(chakra13.div, { display: "flex", alignItems: "center", gap: "1", children: [
4686
+ ) : ci === 0 && grouping?.move ? /* @__PURE__ */ jsxs18(chakra14.div, { display: "flex", alignItems: "center", gap: "1", children: [
4331
4687
  /* @__PURE__ */ jsx28(
4332
4688
  RowGrip,
4333
4689
  {
@@ -4363,9 +4719,9 @@ function DataTable({
4363
4719
  body = groups.map((g, gi) => {
4364
4720
  const parent = parents?.of(g.key);
4365
4721
  const parentFolded = parent != null && grouping.folded.has(parentFoldKey(parent));
4366
- const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx28(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx28(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs18(chakra13.div, { css: styles.groupHeader, children: [
4722
+ const parentRow = parents && parent != null && (gi === 0 || parents.of(groups[gi - 1].key) !== parent) ? /* @__PURE__ */ jsx28(Table.Row, { css: styles.groupRow, "data-group-parent": parent, "data-folded": parentFolded ? "" : void 0, children: /* @__PURE__ */ jsx28(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs18(chakra14.div, { css: styles.groupHeader, children: [
4367
4723
  /* @__PURE__ */ jsx28(
4368
- chakra13.button,
4724
+ chakra14.button,
4369
4725
  {
4370
4726
  type: "button",
4371
4727
  css: styles.groupToggle,
@@ -4377,12 +4733,12 @@ function DataTable({
4377
4733
  ),
4378
4734
  parents.header(parent, groups.filter((x) => parents.of(x.key) === parent))
4379
4735
  ] }) }) }) : null;
4380
- if (parentFolded) return /* @__PURE__ */ jsx28(Fragment8, { children: parentRow }, `group-${g.key}`);
4736
+ if (parentFolded) return /* @__PURE__ */ jsx28(Fragment9, { children: parentRow }, `group-${g.key}`);
4381
4737
  const folded = grouping.folded.has(g.key);
4382
4738
  const footer = folded ? null : grouping.footer?.(g.key, g.rows);
4383
4739
  const start = at;
4384
4740
  if (!folded) at += g.rows.length;
4385
- return /* @__PURE__ */ jsxs18(Fragment8, { children: [
4741
+ return /* @__PURE__ */ jsxs18(Fragment9, { children: [
4386
4742
  parentRow,
4387
4743
  /* @__PURE__ */ jsx28(
4388
4744
  Table.Row,
@@ -4409,9 +4765,9 @@ function DataTable({
4409
4765
  if (row) grouping.move.onMove(row, g.key);
4410
4766
  }
4411
4767
  } : {},
4412
- children: /* @__PURE__ */ jsx28(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs18(chakra13.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
4768
+ children: /* @__PURE__ */ jsx28(Table.Cell, { colSpan: colCount, css: styles.groupCell, children: /* @__PURE__ */ jsxs18(chakra14.div, { css: styles.groupHeader, ps: parents ? "6" : void 0, children: [
4413
4769
  /* @__PURE__ */ jsx28(
4414
- chakra13.button,
4770
+ chakra14.button,
4415
4771
  {
4416
4772
  type: "button",
4417
4773
  css: styles.groupToggle,
@@ -4431,7 +4787,7 @@ function DataTable({
4431
4787
  });
4432
4788
  }
4433
4789
  }
4434
- return /* @__PURE__ */ jsx28(chakra13.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx28(chakra13.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs18(
4790
+ return /* @__PURE__ */ jsx28(chakra14.div, { css: styles.root, "aria-busy": loading || void 0, children: /* @__PURE__ */ jsx28(chakra14.div, { css: [styles.scrollArea, maxHeight ? { maxH: maxHeight } : void 0], children: /* @__PURE__ */ jsxs18(
4435
4791
  Table.Root,
4436
4792
  {
4437
4793
  size,
@@ -4450,7 +4806,7 @@ function DataTable({
4450
4806
  w: c2.width,
4451
4807
  "aria-sort": sortable ? active === "asc" ? "ascending" : active === "desc" ? "descending" : "none" : void 0,
4452
4808
  children: sortable ? /* @__PURE__ */ jsxs18(
4453
- chakra13.button,
4809
+ chakra14.button,
4454
4810
  {
4455
4811
  type: "button",
4456
4812
  css: styles.sortTrigger,
@@ -4459,7 +4815,7 @@ function DataTable({
4459
4815
  title: active === "asc" ? labels.sortDescending : labels.sortAscending,
4460
4816
  children: [
4461
4817
  c2.header,
4462
- /* @__PURE__ */ jsx28(chakra13.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx28(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx28(ArrowDown, {}) : /* @__PURE__ */ jsx28(ChevronsUpDown, {}) })
4818
+ /* @__PURE__ */ jsx28(chakra14.span, { css: styles.sortIcon, "aria-hidden": "true", children: active === "asc" ? /* @__PURE__ */ jsx28(ArrowUp, {}) : active === "desc" ? /* @__PURE__ */ jsx28(ArrowDown, {}) : /* @__PURE__ */ jsx28(ChevronsUpDown, {}) })
4463
4819
  ]
4464
4820
  }
4465
4821
  ) : c2.header
@@ -4491,7 +4847,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
4491
4847
  },
4492
4848
  children: [
4493
4849
  /* @__PURE__ */ jsx28(Menu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx28(
4494
- chakra13.button,
4850
+ chakra14.button,
4495
4851
  {
4496
4852
  type: "button",
4497
4853
  draggable: true,
@@ -4543,7 +4899,7 @@ function RowGrip({ move, row, dragging, group, prev, next, onDragStart, onDragEn
4543
4899
  }
4544
4900
  function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
4545
4901
  return /* @__PURE__ */ jsxs18(
4546
- chakra13.div,
4902
+ chakra14.div,
4547
4903
  {
4548
4904
  display: "flex",
4549
4905
  alignItems: "center",
@@ -4554,7 +4910,7 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
4554
4910
  "data-context": node.context ? "" : void 0,
4555
4911
  children: [
4556
4912
  node.hasChildren ? /* @__PURE__ */ jsx28(
4557
- chakra13.button,
4913
+ chakra14.button,
4558
4914
  {
4559
4915
  type: "button",
4560
4916
  "aria-expanded": !folded,
@@ -4576,8 +4932,8 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
4576
4932
  css: { "& svg": { width: "3.5", height: "3.5", transition: "transform 0.15s" } },
4577
4933
  children: folded ? /* @__PURE__ */ jsx28(DirectionalIcon, { children: /* @__PURE__ */ jsx28(ChevronRight2, {}) }) : /* @__PURE__ */ jsx28(ChevronDown2, {})
4578
4934
  }
4579
- ) : /* @__PURE__ */ jsx28(chakra13.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
4580
- node.context && /* @__PURE__ */ jsx28(chakra13.span, { srOnly: true, children: contextLabel }),
4935
+ ) : /* @__PURE__ */ jsx28(chakra14.span, { boxSize: "6", flexShrink: "0", "aria-hidden": true }),
4936
+ node.context && /* @__PURE__ */ jsx28(chakra14.span, { srOnly: true, children: contextLabel }),
4581
4937
  children
4582
4938
  ]
4583
4939
  }
@@ -4586,7 +4942,7 @@ function TreeCell({ node, folded, label, contextLabel, onFold, children }) {
4586
4942
 
4587
4943
  // src/components/CalendarGrid.tsx
4588
4944
  import { useEffect as useEffect8, useMemo as useMemo7, useRef as useRef11, useState as useState11 } from "react";
4589
- import { Box as Box2, chakra as chakra14, Grid, Stack as Stack5, Text as Text5 } from "@chakra-ui/react";
4945
+ import { Box as Box2, chakra as chakra15, Grid as Grid2, Stack as Stack5, Text as Text5 } from "@chakra-ui/react";
4590
4946
  import { DndContext, DragOverlay, PointerSensor, useDraggable, useDroppable, useSensor, useSensors } from "@dnd-kit/core";
4591
4947
  import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
4592
4948
  var addDays = (day, n) => {
@@ -4658,8 +5014,8 @@ function CalendarGrid({
4658
5014
  onDragCancel: () => setActive(null),
4659
5015
  children: [
4660
5016
  /* @__PURE__ */ jsxs19(Box2, { ref: root, role: "grid", "aria-label": ariaLabel, borderWidth: "1px", borderColor: "border", rounded: "l3", overflow: "hidden", children: [
4661
- /* @__PURE__ */ jsx29(Grid, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx29(Text5, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
4662
- Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx29(Grid, { 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) => {
5017
+ /* @__PURE__ */ jsx29(Grid2, { role: "row", templateColumns: "repeat(7, minmax(0, 1fr))", bg: "bg.muted", borderBottomWidth: "1px", borderColor: "border", children: weekdays.map((w, i) => /* @__PURE__ */ jsx29(Text5, { role: "columnheader", textStyle: "caption", fontWeight: "medium", color: "fg.muted", px: "2", py: "1.5", truncate: true, children: w }, i)) }),
5018
+ Array.from({ length: Math.ceil(days.length / 7) }, (_, week) => /* @__PURE__ */ jsx29(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) => {
4663
5019
  const list = byDay.get(day) ?? [];
4664
5020
  const shown = tall ? list : list.slice(0, maxPerDay);
4665
5021
  return /* @__PURE__ */ jsxs19(
@@ -4677,7 +5033,7 @@ function CalendarGrid({
4677
5033
  loading && Array.from({ length: (week * 7 + i) % 4 === 1 ? 2 : (week * 7 + i) % 3 === 0 ? 1 : 0 }, (_2, n) => /* @__PURE__ */ jsx29(Bone, { height: "5", width: n === 0 ? "full" : "3/4", "aria-hidden": "true" }, n)),
4678
5034
  !loading && shown.map(({ item, continued }) => /* @__PURE__ */ jsx29(Chip, { item, continued, onKeyDown: (e) => key(item, e), children: (dragging) => renderItem(item, { dragging, continued }) }, `${item.id}:${day}`)),
4679
5035
  list.length > shown.length && more && (onMore ? /* @__PURE__ */ jsx29(
4680
- chakra14.button,
5036
+ chakra15.button,
4681
5037
  {
4682
5038
  type: "button",
4683
5039
  alignSelf: "start",
@@ -4860,9 +5216,9 @@ function Chart({ kind, stacked, data, x, series, "aria-label": ariaLabel, height
4860
5216
 
4861
5217
  // src/components/DashboardGrid.tsx
4862
5218
  import { useRef as useRef12, useState as useState12 } from "react";
4863
- import { Box as Box4, chakra as chakra15 } from "@chakra-ui/react";
5219
+ import { Box as Box4, chakra as chakra16 } from "@chakra-ui/react";
4864
5220
  import { GripVertical as GripVertical2, MoveDiagonal2 } from "lucide-react";
4865
- import { Fragment as Fragment9, jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
5221
+ import { Fragment as Fragment10, jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
4866
5222
  var GAP = 16;
4867
5223
  var PLACEHOLDER_TILES = [
4868
5224
  { id: "skeleton-1", x: 0, y: 0, w: 6, h: 3 },
@@ -4984,7 +5340,7 @@ function DashboardGrid({
4984
5340
  _focusVisible: { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "1px" }
4985
5341
  };
4986
5342
  return /* @__PURE__ */ jsxs21(Box4, { children: [
4987
- editing && /* @__PURE__ */ jsx31(chakra15.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
5343
+ editing && /* @__PURE__ */ jsx31(chakra16.p, { id: instructionsId, srOnly: true, children: labels.instructions }),
4988
5344
  /* @__PURE__ */ jsxs21(
4989
5345
  Box4,
4990
5346
  {
@@ -5030,9 +5386,9 @@ function DashboardGrid({
5030
5386
  transition: moving ? void 0 : "all 120ms ease",
5031
5387
  children: [
5032
5388
  renderItem(shown),
5033
- editing && /* @__PURE__ */ jsxs21(Fragment9, { children: [
5389
+ editing && /* @__PURE__ */ jsxs21(Fragment10, { children: [
5034
5390
  /* @__PURE__ */ jsx31(
5035
- chakra15.button,
5391
+ chakra16.button,
5036
5392
  {
5037
5393
  type: "button",
5038
5394
  position: "absolute",
@@ -5049,7 +5405,7 @@ function DashboardGrid({
5049
5405
  }
5050
5406
  ),
5051
5407
  /* @__PURE__ */ jsx31(
5052
- chakra15.button,
5408
+ chakra16.button,
5053
5409
  {
5054
5410
  type: "button",
5055
5411
  position: "absolute",
@@ -5092,10 +5448,10 @@ function CategoryProgress({ todo, inProgress, done, size = "md", loading: own, "
5092
5448
  }
5093
5449
 
5094
5450
  // src/components/AttentionChip.tsx
5095
- import { chakra as chakra17 } from "@chakra-ui/react";
5451
+ import { chakra as chakra18 } from "@chakra-ui/react";
5096
5452
 
5097
5453
  // src/components/CountBadge.tsx
5098
- import { chakra as chakra16 } from "@chakra-ui/react";
5454
+ import { chakra as chakra17 } from "@chakra-ui/react";
5099
5455
  import { jsx as jsx33 } from "react/jsx-runtime";
5100
5456
  var TONES2 = {
5101
5457
  neutral: { bg: "bg.emphasized", color: "fg" },
@@ -5107,7 +5463,7 @@ function CountBadge({ value, tone = "neutral", size = "sm", loading: own, ...res
5107
5463
  const fmt = useFormatters();
5108
5464
  const loading = useLoading(own);
5109
5465
  return /* @__PURE__ */ jsx33(
5110
- chakra16.span,
5466
+ chakra17.span,
5111
5467
  {
5112
5468
  display: "inline-flex",
5113
5469
  alignItems: "center",
@@ -5135,7 +5491,7 @@ import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
5135
5491
  function AttentionChip({ count, children, tone = "neutral", pressed, onClick, disabled, loading: own }) {
5136
5492
  const loading = useLoading(own);
5137
5493
  return /* @__PURE__ */ jsxs22(
5138
- chakra17.button,
5494
+ chakra18.button,
5139
5495
  {
5140
5496
  type: "button",
5141
5497
  display: "inline-flex",
@@ -5168,13 +5524,13 @@ function AttentionChip({ count, children, tone = "neutral", pressed, onClick, di
5168
5524
  }
5169
5525
 
5170
5526
  // src/components/IconTile.tsx
5171
- import { chakra as chakra18 } from "@chakra-ui/react";
5527
+ import { chakra as chakra19 } from "@chakra-ui/react";
5172
5528
  import { jsx as jsx35 } from "react/jsx-runtime";
5173
5529
  var SIZES = { sm: { box: "6", icon: "3.5" }, md: { box: "8", icon: "4" }, lg: { box: "10", icon: "5" } };
5174
5530
  function IconTile({ children, size = "md", active = false, palette: palette3 }) {
5175
5531
  const s = SIZES[size];
5176
5532
  return /* @__PURE__ */ jsx35(
5177
- chakra18.span,
5533
+ chakra19.span,
5178
5534
  {
5179
5535
  display: "inline-flex",
5180
5536
  alignItems: "center",
@@ -5196,12 +5552,12 @@ function IconTile({ children, size = "md", active = false, palette: palette3 })
5196
5552
  }
5197
5553
 
5198
5554
  // src/components/PersonChip.tsx
5199
- import { Avatar as Avatar2, chakra as chakra19 } from "@chakra-ui/react";
5555
+ import { Avatar as Avatar2, chakra as chakra20 } from "@chakra-ui/react";
5200
5556
  import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
5201
5557
  var SIZES2 = { xs: "5", sm: "6", md: "8" };
5202
5558
  function PersonChip({ id, name, picture, compact = false, size = "sm", loading: own }) {
5203
5559
  if (useLoading(own)) {
5204
- return /* @__PURE__ */ jsxs23(chakra19.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
5560
+ return /* @__PURE__ */ jsxs23(chakra20.span, { display: "inline-flex", alignItems: "center", gap: "2", "aria-hidden": true, children: [
5205
5561
  /* @__PURE__ */ jsx36(Bone, { circle: true, height: SIZES2[size] }),
5206
5562
  !compact && /* @__PURE__ */ jsx36(TextBone, { width: 12 })
5207
5563
  ] });
@@ -5225,14 +5581,14 @@ function PersonChip({ id, name, picture, compact = false, size = "sm", loading:
5225
5581
  }
5226
5582
  );
5227
5583
  if (compact) return avatar;
5228
- return /* @__PURE__ */ jsxs23(chakra19.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
5584
+ return /* @__PURE__ */ jsxs23(chakra20.span, { display: "inline-flex", alignItems: "center", gap: "2", minW: "0", maxW: "full", children: [
5229
5585
  avatar,
5230
- /* @__PURE__ */ jsx36(chakra19.span, { truncate: true, children: name })
5586
+ /* @__PURE__ */ jsx36(chakra20.span, { truncate: true, children: name })
5231
5587
  ] });
5232
5588
  }
5233
5589
 
5234
5590
  // src/components/PriorityMark.tsx
5235
- import { chakra as chakra20 } from "@chakra-ui/react";
5591
+ import { chakra as chakra21 } from "@chakra-ui/react";
5236
5592
 
5237
5593
  // src/components/priority-level.ts
5238
5594
  function priorityLevel(rank, of) {
@@ -5249,7 +5605,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
5249
5605
  if (useLoading(loading)) return /* @__PURE__ */ jsx37(TextBone, { width: 7 });
5250
5606
  const { bars, palette: palette3 } = priorityLevel(rank, of);
5251
5607
  return /* @__PURE__ */ jsxs24(
5252
- chakra20.span,
5608
+ chakra21.span,
5253
5609
  {
5254
5610
  display: "inline-flex",
5255
5611
  alignItems: "center",
@@ -5260,8 +5616,8 @@ function PriorityMark({ rank, of, children, title, loading }) {
5260
5616
  "aria-label": children == null ? title : void 0,
5261
5617
  whiteSpace: "nowrap",
5262
5618
  children: [
5263
- /* @__PURE__ */ jsx37(chakra20.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx37(
5264
- chakra20.rect,
5619
+ /* @__PURE__ */ jsx37(chakra21.svg, { viewBox: "0 0 12 12", w: "3", h: "3", flexShrink: 0, "aria-hidden": "true", children: [0, 1, 2, 3].map((i) => /* @__PURE__ */ jsx37(
5620
+ chakra21.rect,
5265
5621
  {
5266
5622
  x: i * 3 + 0.5,
5267
5623
  y: 9 - i * 3,
@@ -5272,7 +5628,7 @@ function PriorityMark({ rank, of, children, title, loading }) {
5272
5628
  },
5273
5629
  i
5274
5630
  )) }),
5275
- children != null && /* @__PURE__ */ jsx37(chakra20.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
5631
+ children != null && /* @__PURE__ */ jsx37(chakra21.span, { color: palette3 === "blue" || palette3 === "gray" ? "fg.muted" : "colorPalette.fg", fontWeight: "medium", children })
5276
5632
  ]
5277
5633
  }
5278
5634
  );
@@ -5306,6 +5662,7 @@ async function readEvents(res, onEvent) {
5306
5662
  }
5307
5663
  function createHostEvents(options = {}) {
5308
5664
  const doFetch = options.fetch ?? ((input, init) => fetch(input, init));
5665
+ const stepUp = options.stepUp ?? requestStepUp;
5309
5666
  return async function events(path, onEvent, { lastEventId = null, signal } = {}) {
5310
5667
  const open = () => {
5311
5668
  const headers = { Accept: "text/event-stream", ...options.headers?.() };
@@ -5313,12 +5670,11 @@ function createHostEvents(options = {}) {
5313
5670
  return doFetch(path, { method: "GET", headers, credentials: "same-origin", cache: "no-store", signal });
5314
5671
  };
5315
5672
  let res = await open();
5316
- if (!res.ok) {
5673
+ for (let asked = 0; !res.ok; asked++) {
5317
5674
  const error = await readAbpError(res.clone());
5318
5675
  if (res.status === 401) options.onUnauthorized?.();
5319
- if (isStepUp(error) && options.stepUp && await options.stepUp()) res = await open();
5676
+ if (asked < 3 && needsStepUp(error) && await stepUp(stepUpNeedOf(error.code, error.data))) res = await open();
5320
5677
  else throw error;
5321
- if (!res.ok) throw await readAbpError(res);
5322
5678
  }
5323
5679
  let last = lastEventId;
5324
5680
  await readEvents(res, (name, data, id) => {
@@ -5363,12 +5719,11 @@ function createHostRequest(options = {}) {
5363
5719
  }
5364
5720
  return async function request(path, init = {}) {
5365
5721
  let res = await send(path, init);
5366
- if (!res.ok) {
5722
+ for (let asked = 0; !res.ok; asked++) {
5367
5723
  const error = await readAbpError(res.clone());
5368
5724
  if (res.status === 401) options.onUnauthorized?.();
5369
- if (isStepUp(error) && await stepUp()) res = await send(path, init);
5725
+ if (asked < 3 && init.stepUp !== false && needsStepUp(error) && await stepUp(stepUpNeedOf(error.code, error.data))) res = await send(path, init);
5370
5726
  else throw error;
5371
- if (!res.ok) throw await readAbpError(res);
5372
5727
  }
5373
5728
  if (init.as === "file") return { blob: await res.blob(), name: fileNameOf(res.headers.get("Content-Disposition")) };
5374
5729
  if (res.status === 204) return void 0;
@@ -5395,7 +5750,7 @@ function useSlotSaves() {
5395
5750
 
5396
5751
  // src/components/FormDialog.tsx
5397
5752
  import { useRef as useRef14, useState as useState13 } from "react";
5398
- import { chakra as chakra21, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal10, Stack as Stack6 } from "@chakra-ui/react";
5753
+ import { chakra as chakra22, CloseButton as CloseButton2, Dialog as Dialog4, Portal as Portal10, Stack as Stack6 } from "@chakra-ui/react";
5399
5754
  import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
5400
5755
  var isControl = (el) => el instanceof HTMLInputElement || el instanceof HTMLSelectElement || el instanceof HTMLTextAreaElement;
5401
5756
  function invalidControls(form) {
@@ -5457,8 +5812,8 @@ function FormDialog({ open, onOpenChange, title, description, submitLabel, onSub
5457
5812
  /* @__PURE__ */ jsx38(Dialog4.Header, { children: /* @__PURE__ */ jsx38(Dialog4.Title, { children: title }) }),
5458
5813
  /* @__PURE__ */ jsx38(Dialog4.Body, { children: /* @__PURE__ */ jsxs25(Stack6, { gap: "field", children: [
5459
5814
  description != null && /* @__PURE__ */ jsx38(Dialog4.Description, { children: description }),
5460
- problems.length > 0 && /* @__PURE__ */ jsx38(chakra21.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx38(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx38(chakra21.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx38("li", { children: /* @__PURE__ */ jsx38(
5461
- chakra21.button,
5815
+ problems.length > 0 && /* @__PURE__ */ jsx38(chakra22.div, { ref: summary, tabIndex: -1, outline: "none", "data-form-problems": "", children: /* @__PURE__ */ jsx38(InlineAlert, { tone: "danger", title: formatMessage(locale, labels.formFix, { count: problems.length }), children: /* @__PURE__ */ jsx38(chakra22.ul, { ps: "4", listStyleType: "disc", children: problems.map((p, i) => /* @__PURE__ */ jsx38("li", { children: /* @__PURE__ */ jsx38(
5816
+ chakra22.button,
5462
5817
  {
5463
5818
  type: "button",
5464
5819
  textDecoration: "underline",
@@ -5606,7 +5961,7 @@ function SegmentedControl({
5606
5961
 
5607
5962
  // src/components/KanbanBoard.tsx
5608
5963
  import { useEffect as useEffect9, useLayoutEffect as useLayoutEffect3, useMemo as useMemo8, useRef as useRef15, useState as useState15 } from "react";
5609
- import { Box as Box6, chakra as chakra22, HStack as HStack7, Stack as Stack7, Text as Text8 } from "@chakra-ui/react";
5964
+ import { Box as Box6, chakra as chakra23, HStack as HStack7, Stack as Stack7, Text as Text8 } from "@chakra-ui/react";
5610
5965
  import { Check as Check2, ChevronsLeft, ChevronsRight, GripVertical as GripVertical3 } from "lucide-react";
5611
5966
  import {
5612
5967
  DndContext as DndContext2,
@@ -5642,7 +5997,7 @@ function between(cell, from, to) {
5642
5997
  }
5643
5998
 
5644
5999
  // src/components/KanbanBoard.tsx
5645
- import { Fragment as Fragment10, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
6000
+ import { Fragment as Fragment11, jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
5646
6001
  var SKELETON_CARDS = [3, 2, 4, 1, 2];
5647
6002
  function PlaceholderCard({ index }) {
5648
6003
  return /* @__PURE__ */ jsxs27(Box6, { bg: "bg.panel", borderWidth: "1px", borderColor: "border", rounded: "l2", p: "2.5", children: [
@@ -5988,7 +6343,7 @@ function KanbanBoard({
5988
6343
  );
5989
6344
  }
5990
6345
  function LaneRow({ lane, showTitle, span, children }) {
5991
- return /* @__PURE__ */ jsxs27(Fragment10, { children: [
6346
+ return /* @__PURE__ */ jsxs27(Fragment11, { children: [
5992
6347
  showTitle && /* @__PURE__ */ jsxs27(HStack7, { gridColumn: `1 / span ${span}`, gap: "2", pt: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-lane": lane.id, children: [
5993
6348
  /* @__PURE__ */ jsx42(Text8, { textStyle: "label", children: lane.title }),
5994
6349
  lane.meta && /* @__PURE__ */ jsx42(Text8, { textStyle: "caption", color: "fg.muted", children: lane.meta })
@@ -6106,7 +6461,7 @@ function Mark() {
6106
6461
  });
6107
6462
  }, []);
6108
6463
  return /* @__PURE__ */ jsx42(
6109
- chakra22.span,
6464
+ chakra23.span,
6110
6465
  {
6111
6466
  ref,
6112
6467
  position: "absolute",
@@ -6128,7 +6483,7 @@ function Mark() {
6128
6483
  }
6129
6484
  function Count({ children }) {
6130
6485
  return /* @__PURE__ */ jsx42(
6131
- chakra22.span,
6486
+ chakra23.span,
6132
6487
  {
6133
6488
  position: "absolute",
6134
6489
  top: "-3.5",
@@ -6151,7 +6506,7 @@ function Count({ children }) {
6151
6506
  }
6152
6507
  function FoldButton({ folded, label, onClick }) {
6153
6508
  return /* @__PURE__ */ jsx42(
6154
- chakra22.button,
6509
+ chakra23.button,
6155
6510
  {
6156
6511
  type: "button",
6157
6512
  display: "inline-flex",
@@ -6202,7 +6557,7 @@ function useFolded(key) {
6202
6557
  }
6203
6558
  function ColumnGrip({ label, moving, onDragStart, onDragEnd, onStep }) {
6204
6559
  return /* @__PURE__ */ jsx42(
6205
- chakra22.button,
6560
+ chakra23.button,
6206
6561
  {
6207
6562
  type: "button",
6208
6563
  draggable: true,
@@ -6252,8 +6607,8 @@ function LoadingState({ lines = 3, label }) {
6252
6607
  }
6253
6608
 
6254
6609
  // src/components/PageHeader.tsx
6255
- import { Fragment as Fragment11 } from "react";
6256
- import { Breadcrumb, chakra as chakra23, Menu as Menu2, Portal as Portal11, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
6610
+ import { Fragment as Fragment12 } from "react";
6611
+ import { Breadcrumb, chakra as chakra24, Menu as Menu2, Portal as Portal11, useSlotRecipe as useSlotRecipe4 } from "@chakra-ui/react";
6257
6612
  import { ChevronRight as ChevronRight3 } from "lucide-react";
6258
6613
  import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
6259
6614
  var textOf = (label) => typeof label === "string" || typeof label === "number" ? String(label) : void 0;
@@ -6264,19 +6619,19 @@ function PageHeader({ title, description, breadcrumbs, meta, count, adornments,
6264
6619
  usePageTitle(documentTitle !== void 0 ? documentTitle : text ? [text, where] : null);
6265
6620
  const styles = recipe({});
6266
6621
  const loading = useLoading(own);
6267
- return /* @__PURE__ */ jsxs29(chakra23.div, { css: styles.root, children: [
6622
+ return /* @__PURE__ */ jsxs29(chakra24.div, { css: styles.root, children: [
6268
6623
  breadcrumbs && breadcrumbs.length > 0 && /* @__PURE__ */ jsx44(Breadcrumbs, { items: breadcrumbs }),
6269
- /* @__PURE__ */ jsxs29(chakra23.div, { css: styles.row, children: [
6270
- /* @__PURE__ */ jsxs29(chakra23.div, { css: styles.titleGroup, children: [
6271
- count != null || adornments != null ? /* @__PURE__ */ jsxs29(chakra23.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
6272
- /* @__PURE__ */ jsx44(chakra23.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx44(TextBone, { width: titleWidth }) : title }),
6624
+ /* @__PURE__ */ jsxs29(chakra24.div, { css: styles.row, children: [
6625
+ /* @__PURE__ */ jsxs29(chakra24.div, { css: styles.titleGroup, children: [
6626
+ count != null || adornments != null ? /* @__PURE__ */ jsxs29(chakra24.div, { display: "flex", alignItems: "center", gap: "2.5", flexWrap: "wrap", minW: "0", children: [
6627
+ /* @__PURE__ */ jsx44(chakra24.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx44(TextBone, { width: titleWidth }) : title }),
6273
6628
  count != null && /* @__PURE__ */ jsx44(CountBadge, { value: count, size: "md" }),
6274
6629
  adornments
6275
- ] }) : /* @__PURE__ */ jsx44(chakra23.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx44(TextBone, { width: titleWidth }) : title }),
6276
- meta != null && /* @__PURE__ */ jsx44(chakra23.div, { css: styles.meta, children: meta }),
6277
- description != null && /* @__PURE__ */ jsx44(chakra23.p, { css: styles.description, children: description })
6630
+ ] }) : /* @__PURE__ */ jsx44(chakra24.h1, { css: styles.title, children: loading && title == null ? /* @__PURE__ */ jsx44(TextBone, { width: titleWidth }) : title }),
6631
+ meta != null && /* @__PURE__ */ jsx44(chakra24.div, { css: styles.meta, children: meta }),
6632
+ description != null && /* @__PURE__ */ jsx44(chakra24.p, { css: styles.description, children: description })
6278
6633
  ] }),
6279
- actions != null && /* @__PURE__ */ jsx44(chakra23.div, { css: styles.actions, children: actions })
6634
+ actions != null && /* @__PURE__ */ jsx44(chakra24.div, { css: styles.actions, children: actions })
6280
6635
  ] })
6281
6636
  ] });
6282
6637
  }
@@ -6286,11 +6641,11 @@ function Breadcrumbs({ items, loading: own }) {
6286
6641
  const label = (item, i) => loading && item.label == null ? /* @__PURE__ */ jsx44(TextBone, { width: 8 + i % 3 * 3 }) : item.label;
6287
6642
  const Link = useLinkComponent();
6288
6643
  const { shown, hidden } = foldBreadcrumbs(items);
6289
- return /* @__PURE__ */ jsx44(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx44(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs29(Fragment11, { children: [
6644
+ return /* @__PURE__ */ jsx44(Breadcrumb.Root, { "aria-label": labels.breadcrumb, children: /* @__PURE__ */ jsx44(Breadcrumb.List, { children: shown.map((entry, n) => /* @__PURE__ */ jsxs29(Fragment12, { children: [
6290
6645
  n > 0 && /* @__PURE__ */ jsx44(Breadcrumb.Separator, { children: /* @__PURE__ */ jsx44(ChevronRight3, {}) }),
6291
6646
  entry == null ? /* @__PURE__ */ jsx44(Breadcrumb.Item, { children: /* @__PURE__ */ jsxs29(Menu2.Root, { positioning: { placement: "bottom-start" }, children: [
6292
6647
  /* @__PURE__ */ jsx44(Menu2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx44(
6293
- chakra23.button,
6648
+ chakra24.button,
6294
6649
  {
6295
6650
  type: "button",
6296
6651
  px: "1",
@@ -6311,7 +6666,7 @@ function Breadcrumbs({ items, loading: own }) {
6311
6666
 
6312
6667
  // src/components/Panel.tsx
6313
6668
  import { createContext as createContext11, forwardRef as forwardRef8, useContext as useContext11 } from "react";
6314
- import { chakra as chakra24, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
6669
+ import { chakra as chakra25, useSlotRecipe as useSlotRecipe5 } from "@chakra-ui/react";
6315
6670
  import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
6316
6671
  var ToneContext = createContext11("card");
6317
6672
  function PanelTone({ tone, children }) {
@@ -6322,21 +6677,21 @@ var Panel = forwardRef8(function Panel2({ title, description, actions, footer, f
6322
6677
  const inherited = useContext11(ToneContext);
6323
6678
  const styles = recipe({ flush, tone: tone ?? inherited });
6324
6679
  const hasHeader = title != null || actions != null || description != null;
6325
- return /* @__PURE__ */ jsxs30(chakra24.section, { ref, css: [styles.root, css], ...rest, children: [
6326
- hasHeader && /* @__PURE__ */ jsxs30(chakra24.header, { css: styles.header, children: [
6327
- /* @__PURE__ */ jsxs30(chakra24.div, { css: styles.titleGroup, children: [
6328
- title != null && /* @__PURE__ */ jsx45(chakra24.h2, { as: headingAs, css: styles.title, children: title }),
6329
- description != null && /* @__PURE__ */ jsx45(chakra24.p, { css: styles.description, children: description })
6680
+ return /* @__PURE__ */ jsxs30(chakra25.section, { ref, css: [styles.root, css], ...rest, children: [
6681
+ hasHeader && /* @__PURE__ */ jsxs30(chakra25.header, { css: styles.header, children: [
6682
+ /* @__PURE__ */ jsxs30(chakra25.div, { css: styles.titleGroup, children: [
6683
+ title != null && /* @__PURE__ */ jsx45(chakra25.h2, { as: headingAs, css: styles.title, children: title }),
6684
+ description != null && /* @__PURE__ */ jsx45(chakra25.p, { css: styles.description, children: description })
6330
6685
  ] }),
6331
- actions != null && /* @__PURE__ */ jsx45(chakra24.div, { css: styles.actions, children: actions })
6686
+ actions != null && /* @__PURE__ */ jsx45(chakra25.div, { css: styles.actions, children: actions })
6332
6687
  ] }),
6333
- /* @__PURE__ */ jsx45(chakra24.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx45(Loading, { when: loading, children }) }),
6334
- footer != null && /* @__PURE__ */ jsx45(chakra24.footer, { css: styles.footer, children: footer })
6688
+ /* @__PURE__ */ jsx45(chakra25.div, { css: styles.body, children: loading === void 0 ? children : /* @__PURE__ */ jsx45(Loading, { when: loading, children }) }),
6689
+ footer != null && /* @__PURE__ */ jsx45(chakra25.footer, { css: styles.footer, children: footer })
6335
6690
  ] });
6336
6691
  });
6337
6692
 
6338
6693
  // src/components/PathChips.tsx
6339
- import { chakra as chakra25, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
6694
+ import { chakra as chakra26, useSlotRecipe as useSlotRecipe6 } from "@chakra-ui/react";
6340
6695
  import { ChevronRight as ChevronRight4 } from "lucide-react";
6341
6696
  import { jsx as jsx46, jsxs as jsxs31 } from "react/jsx-runtime";
6342
6697
  function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3, css, ...rest }) {
@@ -6345,33 +6700,33 @@ function PathChips({ path, highlightLast = true, loading: own, skeletonCount = 3
6345
6700
  const styles = recipe({});
6346
6701
  const loading = useLoading(own) && path.length === 0;
6347
6702
  const segments = loading ? Array.from({ length: skeletonCount }, (_, i) => "\xA0".repeat(boneWidth(i, 6, 12))) : path;
6348
- return /* @__PURE__ */ jsx46(chakra25.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs31(chakra25.li, { css: styles.item, children: [
6349
- i > 0 && /* @__PURE__ */ jsx46(chakra25.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx46(ChevronRight4, {}) }),
6350
- /* @__PURE__ */ jsx46(chakra25.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
6703
+ return /* @__PURE__ */ jsx46(chakra26.ol, { "aria-label": rest["aria-label"] ?? labels.path, "aria-hidden": loading || void 0, css: [styles.root, css], ...rest, children: segments.map((segment, i) => /* @__PURE__ */ jsxs31(chakra26.li, { css: styles.item, children: [
6704
+ i > 0 && /* @__PURE__ */ jsx46(chakra26.span, { css: styles.separator, "aria-hidden": "true", children: /* @__PURE__ */ jsx46(ChevronRight4, {}) }),
6705
+ /* @__PURE__ */ jsx46(chakra26.span, { css: loading ? [styles.chip, ghostCss] : styles.chip, "aria-current": !loading && highlightLast && i === path.length - 1 ? true : void 0, children: segment })
6351
6706
  ] }, `${i}:${segment}`)) });
6352
6707
  }
6353
6708
 
6354
6709
  // src/components/PropertyList.tsx
6355
- import { chakra as chakra26, DataList } from "@chakra-ui/react";
6710
+ import { chakra as chakra27, DataList } from "@chakra-ui/react";
6356
6711
  import { jsx as jsx47, jsxs as jsxs32 } from "react/jsx-runtime";
6357
6712
  function PropertyList({ items, size = "md", loading: own }) {
6358
6713
  const loading = useLoading(own);
6359
6714
  const arriving = useArriving(loading);
6360
6715
  return /* @__PURE__ */ jsx47(DataList.Root, { orientation: "horizontal", size, children: items.map((item, i) => /* @__PURE__ */ jsxs32(DataList.Item, { children: [
6361
6716
  /* @__PURE__ */ jsx47(DataList.ItemLabel, { children: item.label }),
6362
- /* @__PURE__ */ jsx47(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx47(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx47(chakra26.span, { css: arriveCss, children: item.value }) : item.value })
6717
+ /* @__PURE__ */ jsx47(DataList.ItemValue, { children: loading && item.value == null ? /* @__PURE__ */ jsx47(TextBone, { width: item.skeletonWidth ?? boneWidth(i, 8, 16) }) : arriving ? /* @__PURE__ */ jsx47(chakra27.span, { css: arriveCss, children: item.value }) : item.value })
6363
6718
  ] }, item.id ?? i)) });
6364
6719
  }
6365
6720
 
6366
6721
  // src/components/QueryableList.tsx
6367
6722
  import { useEffect as useEffect11, useId as useId3, useMemo as useMemo10, useRef as useRef17, useState as useState17 } from "react";
6368
6723
  import { createPortal } from "react-dom";
6369
- import { Box as Box8, chakra as chakra28, HStack as HStack10, Input as Input4, Menu as Menu3, Portal as Portal14, Stack as Stack10, Text as Text11 } from "@chakra-ui/react";
6724
+ import { Box as Box8, chakra as chakra29, HStack as HStack10, Input as Input4, Menu as Menu3, Portal as Portal14, Stack as Stack10, Text as Text11 } from "@chakra-ui/react";
6370
6725
  import { ArrowDownWideNarrow, ArrowUpNarrowWide, ChevronDown as ChevronDown3, Download, Filter, Plus as Plus2, Rows3, Save, Trash2 as Trash22, X as X2 } from "lucide-react";
6371
6726
 
6372
6727
  // src/components/query/ColumnsPopover.tsx
6373
6728
  import { useMemo as useMemo9 } from "react";
6374
- import { chakra as chakra27, HStack as HStack8, Popover as Popover2, Portal as Portal12, Stack as Stack8, Switch as Switch2, Text as Text9 } from "@chakra-ui/react";
6729
+ import { chakra as chakra28, HStack as HStack8, Popover as Popover2, Portal as Portal12, Stack as Stack8, Switch as Switch2, Text as Text9 } from "@chakra-ui/react";
6375
6730
  import {
6376
6731
  closestCenter,
6377
6732
  DndContext as DndContext3,
@@ -6411,7 +6766,7 @@ function ColumnsPopover({ fields, columns, onChange }) {
6411
6766
  /* @__PURE__ */ jsx48(Button, { size: "xs", variant: "ghost", disabled: hidden.length === 0, onClick: () => onChange([...columns, ...hidden.map((f) => f.id)]), children: labels.showAllColumns })
6412
6767
  ] }),
6413
6768
  /* @__PURE__ */ jsx48(Text9, { textStyle: "caption", color: "fg.muted", px: "3.5", pb: "2", children: labels.columnsHint }),
6414
- /* @__PURE__ */ jsxs33(chakra27.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
6769
+ /* @__PURE__ */ jsxs33(chakra28.div, { maxH: "80", overflowY: "auto", pb: "2", children: [
6415
6770
  /* @__PURE__ */ jsx48(DndContext3, { sensors, collisionDetection: closestCenter, onDragEnd, children: /* @__PURE__ */ jsx48(SortableContext2, { items: shown, strategy: verticalListSortingStrategy2, children: /* @__PURE__ */ jsx48(Stack8, { gap: "0", role: "list", "aria-label": labels.visibleColumns, children: shown.map((id) => /* @__PURE__ */ jsx48(
6416
6771
  ColumnRow,
6417
6772
  {
@@ -6450,7 +6805,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
6450
6805
  _hover: { bg: "bg.subtle" },
6451
6806
  children: [
6452
6807
  checked ? /* @__PURE__ */ jsx48(
6453
- chakra27.button,
6808
+ chakra28.button,
6454
6809
  {
6455
6810
  type: "button",
6456
6811
  display: "inline-flex",
@@ -6464,7 +6819,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
6464
6819
  ...listeners2,
6465
6820
  children: /* @__PURE__ */ jsx48(GripVertical4, { size: 16 })
6466
6821
  }
6467
- ) : /* @__PURE__ */ jsx48(chakra27.span, { w: "4", flexShrink: 0 }),
6822
+ ) : /* @__PURE__ */ jsx48(chakra28.span, { w: "4", flexShrink: 0 }),
6468
6823
  /* @__PURE__ */ jsx48(Text9, { as: "span", flex: "1", textStyle: "sm", truncate: true, color: checked ? "fg" : "fg.muted", children: label }),
6469
6824
  /* @__PURE__ */ jsxs33(Switch2.Root, { size: "sm", colorPalette: "accent", checked, disabled, onCheckedChange, "aria-label": label, children: [
6470
6825
  /* @__PURE__ */ jsx48(Switch2.HiddenInput, {}),
@@ -6479,7 +6834,7 @@ function ColumnRow({ id, label, checked, disabled, onCheckedChange }) {
6479
6834
  import { useEffect as useEffect10, useId as useId2, useRef as useRef16, useState as useState16 } from "react";
6480
6835
  import { CloseButton as CloseButton3, Dialog as Dialog5, HStack as HStack9, Input as Input3, Portal as Portal13, Stack as Stack9, Text as Text10 } from "@chakra-ui/react";
6481
6836
  import { Plus, Trash2 } from "lucide-react";
6482
- import { Fragment as Fragment12, jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
6837
+ import { Fragment as Fragment13, jsx as jsx49, jsxs as jsxs34 } from "react/jsx-runtime";
6483
6838
  function fill2(template, values) {
6484
6839
  return template.replace(/\{(\w+)\}/g, (_, k) => String(values[k] ?? `{${k}}`));
6485
6840
  }
@@ -6545,7 +6900,7 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
6545
6900
  /* @__PURE__ */ jsx49(Dialog5.Body, { children: /* @__PURE__ */ jsxs34(Stack9, { gap: "3", children: [
6546
6901
  /* @__PURE__ */ jsxs34(Text10, { textStyle: "sm", color: "fg.muted", children: [
6547
6902
  labels.matchAll,
6548
- repeats && /* @__PURE__ */ jsxs34(Fragment12, { children: [
6903
+ repeats && /* @__PURE__ */ jsxs34(Fragment13, { children: [
6549
6904
  " ",
6550
6905
  labels.sameFieldAny
6551
6906
  ] })
@@ -6576,7 +6931,7 @@ function FilterBuilderDialog({ fields, initial, suggest, renderValueEditor, coun
6576
6931
  /* @__PURE__ */ jsx49(Dialog5.Footer, { children: /* @__PURE__ */ jsxs34(HStack9, { justify: "space-between", w: "full", wrap: "wrap", gap: "2", children: [
6577
6932
  /* @__PURE__ */ jsxs34(Text10, { textStyle: "sm", color: "fg.muted", "aria-live": "polite", "data-filter-count": "", children: [
6578
6933
  count != null && fill2(total != null ? labels.matchCount : labels.matchCountOnly, { count, total: total ?? "" }),
6579
- incomplete > 0 && /* @__PURE__ */ jsxs34(Fragment12, { children: [
6934
+ incomplete > 0 && /* @__PURE__ */ jsxs34(Fragment13, { children: [
6580
6935
  " \xB7 ",
6581
6936
  labels.incompleteSkipped
6582
6937
  ] })
@@ -6646,7 +7001,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
6646
7001
  }
6647
7002
  ),
6648
7003
  own,
6649
- !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs34(Fragment12, { children: [
7004
+ !NO_VALUE_OPS.has(op) && own == null && /* @__PURE__ */ jsxs34(Fragment13, { children: [
6650
7005
  /* @__PURE__ */ jsx49(
6651
7006
  Input3,
6652
7007
  {
@@ -6670,7 +7025,7 @@ function ConditionRow({ draft, fields, suggest, renderValueEditor, warn, onChang
6670
7025
  }
6671
7026
 
6672
7027
  // src/components/QueryableList.tsx
6673
- import { Fragment as Fragment13, jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
7028
+ import { Fragment as Fragment14, jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
6674
7029
  var PAIR = "";
6675
7030
  var pairKey = (first, second) => `${first}${PAIR}${second}`;
6676
7031
  var condition = (field, value) => value == null ? { field, op: "isEmpty" } : { field, op: "eq", value };
@@ -6814,11 +7169,11 @@ function QueryableList({
6814
7169
  const sortable = (fields ?? []).filter((f) => f.sortable);
6815
7170
  const groupLabel = groupField ? thenField ? `${label(groupField)} \xB7 ${label(thenField)}` : label(groupField) : null;
6816
7171
  return /* @__PURE__ */ jsxs35(Stack10, { gap: "3", children: [
6817
- /* @__PURE__ */ jsxs35(chakra28.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
7172
+ /* @__PURE__ */ jsxs35(chakra29.div, { layerStyle: "panel", borderRadius: "l3", "data-query-toolbar": "", children: [
6818
7173
  /* @__PURE__ */ jsxs35(HStack10, { gap: "2", wrap: "wrap", justify: "space-between", px: "2.5", py: "2", borderBottomWidth: "1px", borderColor: "border.muted", children: [
6819
7174
  /* @__PURE__ */ jsxs35(HStack10, { gap: "2", wrap: "wrap", minW: "0", children: [
6820
7175
  leading,
6821
- leading != null && views && onSelectView && /* @__PURE__ */ jsx50(chakra28.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
7176
+ leading != null && views && onSelectView && /* @__PURE__ */ jsx50(chakra29.span, { w: "1px", h: "6", bg: "border", mx: "1", "aria-hidden": true }),
6822
7177
  views && onSelectView && /* @__PURE__ */ jsxs35(HStack10, { gap: "2", children: [
6823
7178
  /* @__PURE__ */ jsx50(Text11, { as: "span", textStyle: "xs", fontWeight: "semibold", color: "fg.muted", whiteSpace: "nowrap", hideBelow: "2xl", children: labels.savedView }),
6824
7179
  /* @__PURE__ */ jsx50(
@@ -6873,7 +7228,7 @@ function QueryableList({
6873
7228
  ]
6874
7229
  }
6875
7230
  ),
6876
- groupField && groupable.length > 1 && /* @__PURE__ */ jsxs35(Fragment13, { children: [
7231
+ groupField && groupable.length > 1 && /* @__PURE__ */ jsxs35(Fragment14, { children: [
6877
7232
  /* @__PURE__ */ jsx50(Menu3.Separator, {}),
6878
7233
  /* @__PURE__ */ jsxs35(
6879
7234
  Menu3.RadioItemGroup,
@@ -6967,7 +7322,7 @@ function QueryableList({
6967
7322
  ] }),
6968
7323
  mode === "basic" && conditions !== null && chips.length > 0 && /* @__PURE__ */ jsxs35(HStack10, { gap: "2", wrap: "wrap", px: "2.5", py: "2", borderTopWidth: "1px", borderColor: "border.muted", "data-filter-chips": "", children: [
6969
7324
  chips.map(({ c: c2, i }) => /* @__PURE__ */ jsxs35(
6970
- chakra28.span,
7325
+ chakra29.span,
6971
7326
  {
6972
7327
  display: "inline-flex",
6973
7328
  alignItems: "center",
@@ -7006,7 +7361,7 @@ function QueryableList({
7006
7361
  }
7007
7362
  }
7008
7363
  ),
7009
- toolbarFooter != null && /* @__PURE__ */ jsx50(chakra28.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
7364
+ toolbarFooter != null && /* @__PURE__ */ jsx50(chakra29.div, { borderTopWidth: "1px", borderColor: "border.muted", "data-toolbar-footer": "", children: toolbarFooter })
7010
7365
  ] }),
7011
7366
  mode === "basic" && error && !(loadFailed != null && error.failed && !result) && /* @__PURE__ */ jsx50(InlineAlert, { tone: "danger", children: error.message }),
7012
7367
  exported && /* @__PURE__ */ jsx50(InlineAlert, { tone: exported.tone, title: exported.tone === "danger" ? labels.exportFailed : void 0, children: /* @__PURE__ */ jsxs35(HStack10, { justify: "space-between", gap: "2", align: "start", children: [
@@ -7019,8 +7374,8 @@ function QueryableList({
7019
7374
  flush: true,
7020
7375
  footer: (
7021
7376
  // 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.
7022
- /* @__PURE__ */ jsxs35(chakra28.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
7023
- /* @__PURE__ */ jsx50(HStack10, { gap: "3", children: grouped && /* @__PURE__ */ jsxs35(Fragment13, { children: [
7377
+ /* @__PURE__ */ jsxs35(chakra29.div, { display: "grid", w: "full", gridTemplateColumns: { base: "1fr", md: "1fr auto 1fr" }, alignItems: "center", gap: "3", children: [
7378
+ /* @__PURE__ */ jsx50(HStack10, { gap: "3", children: grouped && /* @__PURE__ */ jsxs35(Fragment14, { children: [
7024
7379
  /* @__PURE__ */ jsx50(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: folded.size === 0, onClick: () => setFolded(/* @__PURE__ */ new Set()), children: labels.expandAll }),
7025
7380
  /* @__PURE__ */ jsx50(Button, { size: "xs", variant: "ghost", color: "fg.accent", disabled: groupKeys.every((k) => folded.has(k)), onClick: () => setFolded(new Set(groupKeys)), children: labels.collapseAll })
7026
7381
  ] }) }),
@@ -7087,7 +7442,7 @@ function QueryableList({
7087
7442
  const value = thenField ? info?.then?.value ?? null : info?.value ?? null;
7088
7443
  const period = thenField ? query.groupBy?.then?.period : query.groupBy?.period;
7089
7444
  return /* @__PURE__ */ jsxs35(HStack10, { gap: "2.5", flex: "1", minW: "0", children: [
7090
- /* @__PURE__ */ jsx50(chakra28.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) }),
7445
+ /* @__PURE__ */ jsx50(chakra29.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) }),
7091
7446
  /* @__PURE__ */ jsx50(CountBadge, { value: info?.count ?? rows.length }),
7092
7447
  !thenField && renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" }),
7093
7448
  conditions !== null && !period && /* @__PURE__ */ jsxs35(
@@ -7109,7 +7464,7 @@ function QueryableList({
7109
7464
  ]),
7110
7465
  children: [
7111
7466
  /* @__PURE__ */ jsx50(Filter, {}),
7112
- /* @__PURE__ */ jsx50(chakra28.span, { hideBelow: "md", children: labels.filterToGroup })
7467
+ /* @__PURE__ */ jsx50(chakra29.span, { hideBelow: "md", children: labels.filterToGroup })
7113
7468
  ]
7114
7469
  }
7115
7470
  )
@@ -7129,7 +7484,7 @@ function QueryableList({
7129
7484
  const raw = first?.values[groupField];
7130
7485
  const count = (result?.groups ?? []).filter((g) => groupKey(g.value) === parent).reduce((n, g) => n + g.count, 0);
7131
7486
  return /* @__PURE__ */ jsxs35(HStack10, { gap: "2.5", flex: "1", minW: "0", children: [
7132
- /* @__PURE__ */ jsx50(chakra28.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) }),
7487
+ /* @__PURE__ */ jsx50(chakra29.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) }),
7133
7488
  /* @__PURE__ */ jsx50(CountBadge, { value: count }),
7134
7489
  renderGroupAside?.({ field: groupField, value: info?.value ?? null, label: info?.label ?? "" })
7135
7490
  ] });
@@ -7174,7 +7529,7 @@ function QuickSearch({ initial, placeholder: placeholder2, onRun }) {
7174
7529
  timer.current = setTimeout(() => next.trim() !== initial.trim() && onRun(next), 400);
7175
7530
  }
7176
7531
  return /* @__PURE__ */ jsx50(
7177
- chakra28.form,
7532
+ chakra29.form,
7178
7533
  {
7179
7534
  role: "search",
7180
7535
  flex: "1",
@@ -7391,9 +7746,9 @@ function RqlBox({
7391
7746
  ),
7392
7747
  error && /* @__PURE__ */ jsxs35(InlineAlert, { tone: "danger", size: "sm", children: [
7393
7748
  error.message,
7394
- hasSpan && /* @__PURE__ */ jsxs35(chakra28.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
7749
+ hasSpan && /* @__PURE__ */ jsxs35(chakra29.code, { display: "block", mt: "1", fontFamily: "mono", whiteSpace: "pre-wrap", children: [
7395
7750
  text.slice(0, error.start),
7396
- /* @__PURE__ */ jsx50(chakra28.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
7751
+ /* @__PURE__ */ jsx50(chakra29.mark, { bg: "red.subtle", color: "fg", textDecoration: "underline wavy", textDecorationColor: "fg.error", children: text.slice(error.start, error.end) || " " }),
7397
7752
  text.slice(error.end)
7398
7753
  ] })
7399
7754
  ] })
@@ -7473,13 +7828,13 @@ function DropHint({ show, children }) {
7473
7828
 
7474
7829
  // src/components/UploadList.tsx
7475
7830
  import { useLayoutEffect as useLayoutEffect5, useRef as useRef19 } from "react";
7476
- import { Box as Box10, chakra as chakra29, HStack as HStack12, Stack as Stack11, Text as Text13 } from "@chakra-ui/react";
7831
+ import { Box as Box10, chakra as chakra30, HStack as HStack12, Stack as Stack11, Text as Text13 } from "@chakra-ui/react";
7477
7832
  import { Check as Check3, File as FileIcon, RotateCcw, TriangleAlert, X as X3 } from "lucide-react";
7478
7833
  import { jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
7479
7834
  var OUT4 = `cubic-bezier(${curves.out.join(", ")})`;
7480
7835
  function UploadList({ rows, summary, fraction, announce, labels, onCancel, onRetry, onDismiss }) {
7481
7836
  return /* @__PURE__ */ jsxs37(Stack11, { gap: "2", "data-testid": "upload-list", children: [
7482
- /* @__PURE__ */ jsx52(chakra29.span, { srOnly: true, "aria-live": "polite", children: announce }),
7837
+ /* @__PURE__ */ jsx52(chakra30.span, { srOnly: true, "aria-live": "polite", children: announce }),
7483
7838
  rows.length > 0 && summary != null && /* @__PURE__ */ jsxs37(Stack11, { gap: "1", children: [
7484
7839
  /* @__PURE__ */ jsx52(Text13, { textStyle: "caption", color: "fg.muted", children: summary }),
7485
7840
  fraction != null && /* @__PURE__ */ jsx52(Bar2, { fraction, tone: "accent", label: typeof summary === "string" ? summary : void 0 })
@@ -7509,7 +7864,7 @@ function Row({ row, labels, onCancel, onRetry, onDismiss }) {
7509
7864
  ] });
7510
7865
  }
7511
7866
  function Preview({ src }) {
7512
- return /* @__PURE__ */ jsx52(Box10, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx52(chakra29.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx52(FileIcon, {}) });
7867
+ return /* @__PURE__ */ jsx52(Box10, { boxSize: "8", flexShrink: 0, rounded: "l1", overflow: "hidden", bg: "bg.muted", color: "fg.subtle", display: "grid", placeItems: "center", _icon: { boxSize: "4" }, children: src ? /* @__PURE__ */ jsx52(chakra30.img, { src, alt: "", boxSize: "full", objectFit: "cover" }) : /* @__PURE__ */ jsx52(FileIcon, {}) });
7513
7868
  }
7514
7869
  function Bar2({ fraction, tone, label, quiet: quiet2 }) {
7515
7870
  const { reduce } = useMotionSetting();
@@ -7541,7 +7896,7 @@ function Done() {
7541
7896
  { duration: 260, easing: OUT4 }
7542
7897
  );
7543
7898
  }, []);
7544
- return /* @__PURE__ */ jsx52(chakra29.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx52(Check3, { strokeWidth: 3 }) });
7899
+ return /* @__PURE__ */ jsx52(chakra30.span, { ref, display: "inline-grid", placeItems: "center", boxSize: "4", rounded: "full", bg: "fg.success", color: "bg", _icon: { boxSize: "3" }, children: /* @__PURE__ */ jsx52(Check3, { strokeWidth: 3 }) });
7545
7900
  }
7546
7901
 
7547
7902
  // src/files/drop.ts
@@ -7938,7 +8293,7 @@ function SortableItem({ id, children }) {
7938
8293
  }
7939
8294
 
7940
8295
  // src/components/TimelineChart.tsx
7941
- import { Fragment as Fragment14, useEffect as useEffect13, useLayoutEffect as useLayoutEffect6, useRef as useRef21, useState as useState20 } from "react";
8296
+ import { Fragment as Fragment15, useEffect as useEffect13, useLayoutEffect as useLayoutEffect6, useRef as useRef21, useState as useState20 } from "react";
7942
8297
  import { Box as Box12, HStack as HStack13, Popover as Popover3, Portal as Portal16, Stack as Stack13, Text as Text15 } from "@chakra-ui/react";
7943
8298
  import { Flag, Trash2 as Trash23 } from "lucide-react";
7944
8299
  import { jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
@@ -8539,7 +8894,7 @@ function TimelineChart({
8539
8894
  const thin = tone === "rollup" && !single;
8540
8895
  const diamond = single ? { w: `${DIAMOND}px`, h: `${DIAMOND}px`, top: `${i * rowHeight + rowHeight / 2 - DIAMOND / 2}px`, transform: "rotate(45deg)", rounded: "l1" } : null;
8541
8896
  const canLink = !!onLink && item.linkable !== false && !drag;
8542
- return /* @__PURE__ */ jsxs39(Fragment14, { children: [
8897
+ return /* @__PURE__ */ jsxs39(Fragment15, { children: [
8543
8898
  /* @__PURE__ */ jsxs39(
8544
8899
  Box12,
8545
8900
  {
@@ -8783,7 +9138,7 @@ function TimelineChart({
8783
9138
 
8784
9139
  // src/components/TimelineCards.tsx
8785
9140
  import { useEffect as useEffect14, useMemo as useMemo12, useRef as useRef22, useState as useState21 } from "react";
8786
- import { Box as Box13, chakra as chakra30, Grid as Grid2, Stack as Stack14, Text as Text16 } from "@chakra-ui/react";
9141
+ import { Box as Box13, chakra as chakra31, Grid as Grid3, Stack as Stack14, Text as Text16 } from "@chakra-ui/react";
8787
9142
 
8788
9143
  // src/components/timeline-cards-math.ts
8789
9144
  var DAY3 = 864e5;
@@ -8850,7 +9205,7 @@ function TimelineCards(props) {
8850
9205
  }
8851
9206
  };
8852
9207
  return /* @__PURE__ */ jsxs40(
8853
- chakra30.div,
9208
+ chakra31.div,
8854
9209
  {
8855
9210
  role: "region",
8856
9211
  "aria-label": props["aria-label"],
@@ -8868,7 +9223,7 @@ function TimelineCards(props) {
8868
9223
  }
8869
9224
  function Card({ item, p, range, cutStart, cutEnd, style }) {
8870
9225
  const card = /* @__PURE__ */ jsxs40(
8871
- chakra30.button,
9226
+ chakra31.button,
8872
9227
  {
8873
9228
  type: "button",
8874
9229
  "data-timeline-card": item.id,
@@ -8919,12 +9274,12 @@ function Lanes(p) {
8919
9274
  const gridW = days.length * colW;
8920
9275
  const placeholders = useLoading(p.loading) && items.length === 0;
8921
9276
  const height = (placeholders ? 4 : Math.max(lanes, 1)) * LANE + 16;
8922
- return /* @__PURE__ */ jsx55(chakra30.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs40(chakra30.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
8923
- /* @__PURE__ */ jsx55(chakra30.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
9277
+ return /* @__PURE__ */ jsx55(chakra31.div, { overflowX: "auto", ref: box, children: /* @__PURE__ */ jsxs40(chakra31.div, { position: "relative", minW: "full", w: `${gridW}px`, children: [
9278
+ /* @__PURE__ */ jsx55(chakra31.div, { display: "flex", borderBottomWidth: "1px", borderColor: "border", bg: "bg.subtle", position: "sticky", top: "0", zIndex: "1", children: days.map((d) => {
8924
9279
  const isToday = d === today;
8925
9280
  const weekStart = new Date(dayNumber(d) * 864e5).getUTCDay() === 0;
8926
9281
  return /* @__PURE__ */ jsxs40(
8927
- chakra30.div,
9282
+ chakra31.div,
8928
9283
  {
8929
9284
  w: `${colW}px`,
8930
9285
  flexShrink: 0,
@@ -8960,9 +9315,9 @@ function Lanes(p) {
8960
9315
  d
8961
9316
  );
8962
9317
  }) }),
8963
- /* @__PURE__ */ jsx55(chakra30.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx55(chakra30.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
9318
+ /* @__PURE__ */ jsx55(chakra31.div, { position: "absolute", insetInlineStart: "0", top: "0", bottom: "0", display: "flex", pointerEvents: "none", "aria-hidden": true, children: days.map((d) => /* @__PURE__ */ jsx55(chakra31.div, { w: `${colW}px`, flexShrink: 0, borderInlineEndWidth: "1px", borderStyle: "dashed", borderColor: "border.muted" }, d)) }),
8964
9319
  todayIdx >= 0 && /* @__PURE__ */ jsx55(
8965
- chakra30.div,
9320
+ chakra31.div,
8966
9321
  {
8967
9322
  position: "absolute",
8968
9323
  top: "0",
@@ -8976,7 +9331,7 @@ function Lanes(p) {
8976
9331
  zIndex: "1"
8977
9332
  }
8978
9333
  ),
8979
- placeholders ? /* @__PURE__ */ jsx55(chakra30.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx55(
9334
+ placeholders ? /* @__PURE__ */ jsx55(chakra31.div, { position: "relative", h: `${height}px`, "aria-hidden": true, children: [0, 1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx55(
8980
9335
  Bone,
8981
9336
  {
8982
9337
  position: "absolute",
@@ -8987,10 +9342,10 @@ function Lanes(p) {
8987
9342
  borderRadius: "l2"
8988
9343
  },
8989
9344
  i
8990
- )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx55(chakra30.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx55(chakra30.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
9345
+ )) }) : cards.length === 0 && p.empty ? /* @__PURE__ */ jsx55(chakra31.div, { position: "relative", py: "6", children: p.empty }) : /* @__PURE__ */ jsx55(chakra31.div, { position: "relative", h: `${height}px`, role: "list", children: cards.map((c2) => {
8991
9346
  const item = byId.get(c2.id);
8992
9347
  return /* @__PURE__ */ jsx55(
8993
- chakra30.div,
9348
+ chakra31.div,
8994
9349
  {
8995
9350
  role: "listitem",
8996
9351
  position: "absolute",
@@ -9014,8 +9369,8 @@ function DayGrid(p) {
9014
9369
  const x = dayNumber(day);
9015
9370
  return s <= x && x <= d;
9016
9371
  });
9017
- if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx55(chakra30.div, { py: "6", children: p.empty });
9018
- return /* @__PURE__ */ jsx55(Grid2, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx55(chakra30.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx55(Card, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
9372
+ if (due.length === 0 && p.empty) return /* @__PURE__ */ jsx55(chakra31.div, { py: "6", children: p.empty });
9373
+ return /* @__PURE__ */ jsx55(Grid3, { role: "list", templateColumns: "repeat(auto-fill, minmax(16rem, 1fr))", gap: "2", p: "3", children: due.map((i) => /* @__PURE__ */ jsx55(chakra31.div, { role: "listitem", display: "flex", children: /* @__PURE__ */ jsx55(Card, { item: i, p, range: Boolean(i.start && i.start < i.due), style: { w: "full" } }) }, i.id)) });
9019
9374
  }
9020
9375
  export {
9021
9376
  ABP_UI_VERSION,
@@ -9084,6 +9439,7 @@ export {
9084
9439
  RevealItem,
9085
9440
  SHOWN,
9086
9441
  STEP_UP_REQUIRED,
9442
+ STRONG_FACTOR_REQUIRED,
9087
9443
  SearchInput,
9088
9444
  SegmentedControl,
9089
9445
  SelectField,
@@ -9141,6 +9497,7 @@ export {
9141
9497
  isStepUp,
9142
9498
  looksLikeCode,
9143
9499
  durations2 as motionDurations,
9500
+ needsStepUp,
9144
9501
  notify,
9145
9502
  pageList,
9146
9503
  partsOf,
@@ -9158,6 +9515,7 @@ export {
9158
9515
  shineCss,
9159
9516
  springs,
9160
9517
  staggerDelay,
9518
+ stepUpNeedOf,
9161
9519
  targetOf,
9162
9520
  toStart,
9163
9521
  toaster,