@ostack.tech/ui-kform 1.3.0-beta.2 → 1.3.1

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.
@@ -1,6 +1,6 @@
1
1
  import { c } from "react/compiler-runtime";
2
2
  import { AtPathError, CurrentPath, FormContext, FormattedValue, InvalidPathError, equals, formatNumericAsString, formatTemporalAsString, toFileList, useController, useControllerState, useCurrentPath, useFileInput, useForm, useFormContext, useFormController, useFormManager, useFormattedValue, useFormatter, useInput, useIssuesTracker, useListableInput, useNumericInput, useResolvedPath, useSubmitting, useTemporalInput } from "@ostack.tech/kform-react";
3
- import { Action, ActionMenu, ActionMenuRadioGroup, ActionMenuRadioItem, ActionSplit, Actions, ActionsSecondary, Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Code, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, DescriptionList, DescriptionListItem, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, FeedbackProvider, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, computed, controlStatusToAccent, cx, localeLabel, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, useCombinedEventHandler, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInFeedbackProvider, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, useResponsiveValue, useScrollPosition, useSpacing, useStartPrintingTask, useToastManager, warnOnce, withCleanup } from "@ostack.tech/ui";
3
+ import { Action, ActionMenu, ActionMenuRadioGroup, ActionMenuRadioItem, ActionSplit, Actions, ActionsSecondary, Alert, AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, Card, CardBody, CardHeader, CardTitle, Checkbox, CheckboxGroup, CloseButton, Code, Container, ControlAddon, DataTable, DataTableCell, DataTableContent, DataTablePagination, DataTableRow, DataTableRowsPerPage, DateInput, DateRangeInput, DescriptionList, DescriptionListItem, Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, DialogTrigger, DocumentTitle, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorBoundary, Feedback, FeedbackList, FeedbackPopover, FeedbackProvider, Field, Icon, IconButton, Input, Layer, Link, LocalizationProvider as LocalizationProvider$1, MenuList, MenuListItem, NATIVE_CONTROLS, NumericInput, Option, OptionsGroup, Popover, PopoverContent, PopoverTrigger, PrefixProvider, PrinterTrigger, Radio, RadioGroup, Root, Select, Slot, Spinner, Stack, Step, StepContent, StepList, Stepper, StepperFinishTrigger, StepperNextTrigger, StepperPreviousTrigger, Tab, TabContent, TabList, Tabs, TextArea, Tooltip, VisuallyHidden, boolDataAttr, combineAriaIds, computed, controlStatusToAccent, cx, localeLabel, parseChildren, setBoolDataAttr, useActionsContext, useAlertDialog, useCombinedEventHandler, useCombinedRef, useConstant, useControllableState, useCssVars, useDataTableApiRef, useDataTableColumnLabel, useDateTransformer, useErrorReporter, useIntersectionObserver, useIsInFeedbackProvider, useIsInRoot, useIsInTableCell, useKeyboardShortcut, useLatestRef, useMeasure, useMediaBreakpointUp, useOnLabelChange, usePrefix as usePrefix$1, usePrevious, usePrint, usePrintClassNames, usePrintInProgress, usePrinterDocumentTitle, usePrinting, usePrintingTask, useResponsiveValue, useScrollPosition, useSpacing, useToastManager, warnOnce, withCleanup } from "@ostack.tech/ui";
4
4
  import { Children, Fragment, Suspense, createContext, isValidElement, startTransition, useContext, useDeferredValue, useEffect, useEffectEvent, useId, useImperativeHandle, useRef, useState } from "react";
5
5
  import { createStore, useStore } from "zustand";
6
6
  import { useShallow } from "zustand/react/shallow";
@@ -10,7 +10,7 @@ import { subscribeWithSelector } from "zustand/middleware";
10
10
  import { shallow } from "zustand/shallow";
11
11
  import { fileOpen, fileSave, supported } from "browser-fs-access";
12
12
  import { DEV } from "esm-env";
13
- import { faAngleLeft, faAngleRight, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faBug, faChevronDown, faChevronUp, faCircleCheck, faCircleExclamation, faCircleQuestion, faDownload, faFileLines, faFloppyDisk, faFolderOpen, faGlobe, faPlus, faPrint, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
13
+ import { faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAnglesLeft, faAnglesRight, faArrowRight, faArrowsToDot, faBug, faCircleCheck, faCircleExclamation, faCircleQuestion, faDownload, faFileLines, faFloppyDisk, faFolderOpen, faGlobe, faPlus, faPrint, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
14
14
  import { addDays, format, formatISO, max, min, parseISO } from "date-fns";
15
15
  import { faCircleCheck as faCircleCheck$1 } from "@fortawesome/free-regular-svg-icons";
16
16
  // src/providers/PrefixSuffixProvider/defaultPrefixSuffix.ts
@@ -562,7 +562,7 @@ function _temp4$22(state) {
562
562
  function useRegisterController(controller) {
563
563
  const $ = c(6);
564
564
  const store = useFormAppContext().store;
565
- const path_0 = useControllerState(controller, _temp5$14);
565
+ const path_0 = useControllerState(controller, _temp5$16);
566
566
  const printing = usePrinting();
567
567
  let t0;
568
568
  let t1;
@@ -588,7 +588,7 @@ function useRegisterController(controller) {
588
588
  }
589
589
  useEffect(t0, t1);
590
590
  }
591
- function _temp5$14(t0) {
591
+ function _temp5$16(t0) {
592
592
  const { path } = t0;
593
593
  return path;
594
594
  }
@@ -612,9 +612,9 @@ function _temp6$9(state) {
612
612
  }
613
613
  /** Hook exposing a function to set the latest path the user has interacted with. */
614
614
  function useSetLatestInteraction() {
615
- return useStore(useFormAppContext().store, _temp7$3);
615
+ return useStore(useFormAppContext().store, _temp7$4);
616
616
  }
617
- function _temp7$3(state) {
617
+ function _temp7$4(state) {
618
618
  return state.actions.setLatestInteraction;
619
619
  }
620
620
  /** Hook used to register issue messages within the form app. */
@@ -738,7 +738,7 @@ function useOnPathFocus(cb, t0) {
738
738
  let t5;
739
739
  if ($[2] !== cb || $[3] !== enabled || $[4] !== fireImmediately || $[5] !== printing || $[6] !== store) {
740
740
  t4 = () => {
741
- if (enabled && !printing) return store.subscribe(_temp10$1, (t6) => {
741
+ if (enabled && !printing) return store.subscribe(_temp10$2, (t6) => {
742
742
  const { focusedPath: focusedPath_0 } = t6;
743
743
  return focusedPath_0 && cb(focusedPath_0);
744
744
  }, {
@@ -766,7 +766,7 @@ function useOnPathFocus(cb, t0) {
766
766
  }
767
767
  useEffect(t4, t5);
768
768
  }
769
- function _temp10$1(t0) {
769
+ function _temp10$2(t0) {
770
770
  const { focusedPath, focusCounter } = t0;
771
771
  return {
772
772
  focusedPath,
@@ -1603,7 +1603,7 @@ function FormApp(t0) {
1603
1603
  t12 = $[109];
1604
1604
  }
1605
1605
  useEffect(t11, t12);
1606
- const absolutePath = useControllerState(controller, _temp5$13);
1606
+ const absolutePath = useControllerState(controller, _temp5$15);
1607
1607
  let t13;
1608
1608
  let t14;
1609
1609
  if ($[110] !== absolutePath || $[111] !== issuesPanelLabel || $[112] !== store) {
@@ -1779,7 +1779,7 @@ function FormApp(t0) {
1779
1779
  function _temp6$8(state) {
1780
1780
  return state.actions;
1781
1781
  }
1782
- function _temp5$13(t0) {
1782
+ function _temp5$15(t0) {
1783
1783
  const { path } = t0;
1784
1784
  return path;
1785
1785
  }
@@ -2012,7 +2012,7 @@ function useCreateAnnexesContext(t0) {
2012
2012
  store.getState().actions.setAnnexes(resolvedAnnexes);
2013
2013
  if (activeAnnex !== void 0) {
2014
2014
  const { activeAnnex: oldActiveAnnex_0, tabStates: tabStates_2, waitingRegistration: waitingRegistration_0 } = store.getState();
2015
- const newActiveAnnex_0 = mostSpecificPath(activeAnnex === null ? null : basePath.resolve(activeAnnex), [...tabStates_2().map(_temp5$12), ...waitingRegistration_0()], oldActiveAnnex_0) ?? null;
2015
+ const newActiveAnnex_0 = mostSpecificPath(activeAnnex === null ? null : basePath.resolve(activeAnnex), [...tabStates_2().map(_temp5$14), ...waitingRegistration_0()], oldActiveAnnex_0) ?? null;
2016
2016
  store.getState().actions.setActiveAnnex(newActiveAnnex_0);
2017
2017
  }
2018
2018
  };
@@ -2048,7 +2048,7 @@ function useCreateAnnexesContext(t0) {
2048
2048
  function _temp6$7(tab_0) {
2049
2049
  return tab_0.path;
2050
2050
  }
2051
- function _temp5$12(tab) {
2051
+ function _temp5$14(tab) {
2052
2052
  return tab.path;
2053
2053
  }
2054
2054
  function _temp4$19(annexes_1, t0, t1) {
@@ -2505,11 +2505,10 @@ function _temp2$42(state) {
2505
2505
  // src/components/Annexes/AnnexRegistrar.tsx
2506
2506
  /** Component used to register a form annex. */
2507
2507
  function AnnexRegistrar(t0) {
2508
- const $ = c(50);
2508
+ const $ = c(49);
2509
2509
  const { path, title, subtitle, description, issuesPanelLabel, itemTitle, itemIssuesPanelLabel, index, documentTitle } = t0;
2510
2510
  const store = useAnnexesContext();
2511
2511
  const printing = usePrinting();
2512
- const finishPrintingTask = useStartPrintingTask();
2513
2512
  const observeDescendants = typeof itemTitle === "function" || typeof title === "function" || typeof subtitle === "function" || typeof documentTitle === "function";
2514
2513
  let t1;
2515
2514
  if ($[0] !== observeDescendants || $[1] !== path) {
@@ -2520,72 +2519,72 @@ function AnnexRegistrar(t0) {
2520
2519
  } else t1 = $[2];
2521
2520
  const t2 = !useFormIsLoading();
2522
2521
  let t3;
2523
- if ($[3] !== finishPrintingTask || $[4] !== t2) {
2522
+ if ($[3] !== t2) {
2524
2523
  t3 = {
2525
2524
  enabled: t2,
2526
- onInitialized: finishPrintingTask,
2527
2525
  format: _temp$45
2528
2526
  };
2529
- $[3] = finishPrintingTask;
2530
- $[4] = t2;
2531
- $[5] = t3;
2532
- } else t3 = $[5];
2527
+ $[3] = t2;
2528
+ $[4] = t3;
2529
+ } else t3 = $[4];
2533
2530
  const [t4, controller] = useFormattedValue(t1, t3);
2534
2531
  const isNull = t4 === void 0 ? true : t4;
2532
+ const initialized_0 = useControllerState(controller, _temp2$41);
2533
+ usePrintingTask(!initialized_0);
2535
2534
  const isRepetitive = index != null;
2536
- const absolutePath = useControllerState(controller, _temp2$41);
2537
- const schema_0 = useControllerState(controller, _temp3$24);
2538
- const exists_0 = useControllerState(controller, _temp4$18);
2539
- const dirty_0 = useControllerState(controller, _temp5$11);
2535
+ const absolutePath = useControllerState(controller, _temp3$24);
2536
+ const schema_0 = useControllerState(controller, _temp4$18);
2537
+ const exists_0 = useControllerState(controller, _temp5$13);
2538
+ const dirty_0 = useControllerState(controller, _temp6$6);
2540
2539
  let t5;
2541
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
2540
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
2542
2541
  t5 = { equalityFn: shallow };
2543
- $[6] = t5;
2544
- } else t5 = $[6];
2545
- const value_1 = useControllerState(controller, _temp6$6, t5).value;
2542
+ $[5] = t5;
2543
+ } else t5 = $[5];
2544
+ const value_1 = useControllerState(controller, _temp7$3, t5).value;
2546
2545
  const deferredValue = useDeferredValue(value_1);
2547
2546
  const relevantValue = printing ? value_1 : deferredValue;
2548
2547
  let t6;
2549
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
2548
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
2550
2549
  t6 = { equalityFn: shallow };
2551
- $[7] = t6;
2552
- } else t6 = $[7];
2553
- const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp7$2, t6));
2554
- const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp8$2));
2550
+ $[6] = t6;
2551
+ } else t6 = $[6];
2552
+ const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp8$2, t6));
2553
+ const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp9$1));
2555
2554
  let t7;
2556
- if ($[8] !== index || $[9] !== isRepetitive || $[10] !== itemTitle || $[11] !== relevantValue || $[12] !== title) {
2555
+ if ($[7] !== index || $[8] !== isRepetitive || $[9] !== itemTitle || $[10] !== relevantValue || $[11] !== title) {
2557
2556
  t7 = isRepetitive ? typeof itemTitle === "function" ? relevantValue === void 0 ? null : itemTitle(relevantValue, index) : itemTitle === void 0 ? title : itemTitle : typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
2558
- $[8] = index;
2559
- $[9] = isRepetitive;
2560
- $[10] = itemTitle;
2561
- $[11] = relevantValue;
2562
- $[12] = title;
2563
- $[13] = t7;
2564
- } else t7 = $[13];
2557
+ $[7] = index;
2558
+ $[8] = isRepetitive;
2559
+ $[9] = itemTitle;
2560
+ $[10] = relevantValue;
2561
+ $[11] = title;
2562
+ $[12] = t7;
2563
+ } else t7 = $[12];
2565
2564
  const actualTitle = t7;
2566
2565
  let t8;
2567
- if ($[14] !== index || $[15] !== relevantValue || $[16] !== subtitle) {
2566
+ if ($[13] !== index || $[14] !== relevantValue || $[15] !== subtitle) {
2568
2567
  t8 = typeof subtitle === "function" ? relevantValue === void 0 ? null : subtitle(relevantValue, index) : subtitle;
2569
- $[14] = index;
2570
- $[15] = relevantValue;
2571
- $[16] = subtitle;
2572
- $[17] = t8;
2573
- } else t8 = $[17];
2568
+ $[13] = index;
2569
+ $[14] = relevantValue;
2570
+ $[15] = subtitle;
2571
+ $[16] = t8;
2572
+ } else t8 = $[16];
2574
2573
  const actualSubtitle = t8;
2575
2574
  let t9;
2576
- if ($[18] !== actualSubtitle || $[19] !== actualTitle || $[20] !== documentTitle || $[21] !== index || $[22] !== relevantValue) {
2577
- t9 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue, index) : documentTitle === void 0 ? (actualTitle === null || typeof actualTitle === "string") && (actualSubtitle == null || typeof actualSubtitle === "string") ? [actualTitle, actualSubtitle].filter(_temp9$1).join(" — ") : void 0 : documentTitle;
2578
- $[18] = actualSubtitle;
2579
- $[19] = actualTitle;
2580
- $[20] = documentTitle;
2581
- $[21] = index;
2582
- $[22] = relevantValue;
2583
- $[23] = t9;
2584
- } else t9 = $[23];
2575
+ if ($[17] !== actualSubtitle || $[18] !== actualTitle || $[19] !== documentTitle || $[20] !== index || $[21] !== relevantValue) {
2576
+ t9 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue, index) : documentTitle === void 0 ? (actualTitle === null || typeof actualTitle === "string") && (actualSubtitle == null || typeof actualSubtitle === "string") ? [actualTitle, actualSubtitle].filter(_temp10$1).join(" — ") : void 0 : documentTitle;
2577
+ $[17] = actualSubtitle;
2578
+ $[18] = actualTitle;
2579
+ $[19] = documentTitle;
2580
+ $[20] = index;
2581
+ $[21] = relevantValue;
2582
+ $[22] = t9;
2583
+ } else t9 = $[22];
2585
2584
  const actualDocumentTitle = t9;
2586
2585
  let t10;
2587
2586
  let t11;
2588
- if ($[24] !== absolutePath || $[25] !== actualDocumentTitle || $[26] !== actualSubtitle || $[27] !== actualTitle || $[28] !== deferredDisplayStatus || $[29] !== deferredIssuesToDisplay || $[30] !== description || $[31] !== dirty_0 || $[32] !== exists_0 || $[33] !== isNull || $[34] !== isRepetitive || $[35] !== schema_0 || $[36] !== store) {
2587
+ if ($[23] !== absolutePath || $[24] !== actualDocumentTitle || $[25] !== actualSubtitle || $[26] !== actualTitle || $[27] !== deferredDisplayStatus || $[28] !== deferredIssuesToDisplay || $[29] !== description || $[30] !== dirty_0 || $[31] !== exists_0 || $[32] !== isNull || $[33] !== isRepetitive || $[34] !== schema_0 || $[35] !== store) {
2589
2588
  t10 = () => {
2590
2589
  if (exists_0) {
2591
2590
  const { registerAnnexState } = store.getState().actions;
@@ -2619,93 +2618,97 @@ function AnnexRegistrar(t0) {
2619
2618
  store,
2620
2619
  actualDocumentTitle
2621
2620
  ];
2622
- $[24] = absolutePath;
2623
- $[25] = actualDocumentTitle;
2624
- $[26] = actualSubtitle;
2625
- $[27] = actualTitle;
2626
- $[28] = deferredDisplayStatus;
2627
- $[29] = deferredIssuesToDisplay;
2628
- $[30] = description;
2629
- $[31] = dirty_0;
2630
- $[32] = exists_0;
2631
- $[33] = isNull;
2632
- $[34] = isRepetitive;
2633
- $[35] = schema_0;
2634
- $[36] = store;
2635
- $[37] = t10;
2636
- $[38] = t11;
2621
+ $[23] = absolutePath;
2622
+ $[24] = actualDocumentTitle;
2623
+ $[25] = actualSubtitle;
2624
+ $[26] = actualTitle;
2625
+ $[27] = deferredDisplayStatus;
2626
+ $[28] = deferredIssuesToDisplay;
2627
+ $[29] = description;
2628
+ $[30] = dirty_0;
2629
+ $[31] = exists_0;
2630
+ $[32] = isNull;
2631
+ $[33] = isRepetitive;
2632
+ $[34] = schema_0;
2633
+ $[35] = store;
2634
+ $[36] = t10;
2635
+ $[37] = t11;
2637
2636
  } else {
2638
- t10 = $[37];
2639
- t11 = $[38];
2637
+ t10 = $[36];
2638
+ t11 = $[37];
2640
2639
  }
2641
2640
  useEffect(t10, t11);
2642
2641
  useRegisterController(controller);
2643
2642
  let t12;
2644
- if ($[39] !== actualSubtitle || $[40] !== actualTitle || $[41] !== deferredValue || $[42] !== index || $[43] !== isRepetitive || $[44] !== issuesPanelLabel || $[45] !== itemIssuesPanelLabel) {
2643
+ if ($[38] !== actualSubtitle || $[39] !== actualTitle || $[40] !== deferredValue || $[41] !== index || $[42] !== isRepetitive || $[43] !== issuesPanelLabel || $[44] !== itemIssuesPanelLabel) {
2645
2644
  t12 = isRepetitive ? typeof itemIssuesPanelLabel === "function" ? deferredValue === void 0 ? null : itemIssuesPanelLabel(deferredValue, index) : itemIssuesPanelLabel === void 0 ? actualSubtitle ?? index + 1 : itemIssuesPanelLabel : issuesPanelLabel ? typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel : /* @__PURE__ */ jsxs(Fragment$1, { children: [actualTitle, actualSubtitle && /* @__PURE__ */ jsxs(Fragment$1, { children: [" — ", actualSubtitle] })] });
2646
- $[39] = actualSubtitle;
2647
- $[40] = actualTitle;
2648
- $[41] = deferredValue;
2649
- $[42] = index;
2650
- $[43] = isRepetitive;
2651
- $[44] = issuesPanelLabel;
2652
- $[45] = itemIssuesPanelLabel;
2653
- $[46] = t12;
2654
- } else t12 = $[46];
2645
+ $[38] = actualSubtitle;
2646
+ $[39] = actualTitle;
2647
+ $[40] = deferredValue;
2648
+ $[41] = index;
2649
+ $[42] = isRepetitive;
2650
+ $[43] = issuesPanelLabel;
2651
+ $[44] = itemIssuesPanelLabel;
2652
+ $[45] = t12;
2653
+ } else t12 = $[45];
2655
2654
  let t13;
2656
- if ($[47] !== absolutePath || $[48] !== t12) {
2655
+ if ($[46] !== absolutePath || $[47] !== t12) {
2657
2656
  t13 = /* @__PURE__ */ jsx(CurrentPath, {
2658
2657
  path: absolutePath,
2659
2658
  children: t12
2660
2659
  });
2661
- $[47] = absolutePath;
2662
- $[48] = t12;
2663
- $[49] = t13;
2664
- } else t13 = $[49];
2660
+ $[46] = absolutePath;
2661
+ $[47] = t12;
2662
+ $[48] = t13;
2663
+ } else t13 = $[48];
2665
2664
  useRegisterLabel(absolutePath, t13);
2666
2665
  return null;
2667
2666
  }
2668
- function _temp9$1(s) {
2667
+ function _temp10$1(s) {
2669
2668
  return s;
2670
2669
  }
2671
- function _temp8$2(t0) {
2670
+ function _temp9$1(t0) {
2672
2671
  const { displayStatus } = t0;
2673
2672
  return displayStatus;
2674
2673
  }
2675
- function _temp7$2(t0) {
2674
+ function _temp8$2(t0) {
2676
2675
  const { touched, issues } = t0;
2677
2676
  return touched ? issues : [];
2678
2677
  }
2679
- function _temp6$6(t0) {
2678
+ function _temp7$3(t0) {
2680
2679
  const { _valueRev, value: value_0 } = t0;
2681
2680
  return {
2682
2681
  _valueRev,
2683
2682
  value: value_0
2684
2683
  };
2685
2684
  }
2686
- function _temp5$11(t0) {
2685
+ function _temp6$6(t0) {
2687
2686
  const { dirty } = t0;
2688
2687
  return dirty;
2689
2688
  }
2690
- function _temp4$18(t0) {
2691
- const { initialized, exists } = t0;
2692
- return initialized && exists;
2689
+ function _temp5$13(t0) {
2690
+ const { initialized: initialized_1, exists } = t0;
2691
+ return initialized_1 && exists;
2693
2692
  }
2694
- function _temp3$24(t0) {
2693
+ function _temp4$18(t0) {
2695
2694
  const { schema } = t0;
2696
2695
  return schema;
2697
2696
  }
2698
- function _temp2$41(t0) {
2697
+ function _temp3$24(t0) {
2699
2698
  const { path: path_0 } = t0;
2700
2699
  return path_0;
2701
2700
  }
2701
+ function _temp2$41(t0) {
2702
+ const { initialized } = t0;
2703
+ return initialized;
2704
+ }
2702
2705
  function _temp$45(value) {
2703
2706
  return value === null;
2704
2707
  }
2705
2708
  // src/components/Annexes/RepetitiveAnnexRegistrar.tsx
2706
2709
  /** Component used to register a repetitive form annex. */
2707
2710
  function RepetitiveAnnexRegistrar(t0) {
2708
- const $ = c(25);
2711
+ const $ = c(24);
2709
2712
  let annexProps;
2710
2713
  let maxAnnexes;
2711
2714
  let path;
@@ -2721,7 +2724,6 @@ function RepetitiveAnnexRegistrar(t0) {
2721
2724
  path = $[3];
2722
2725
  }
2723
2726
  const store = useAnnexesContext();
2724
- const finishPrintingTask = useStartPrintingTask();
2725
2727
  let t1;
2726
2728
  if ($[4] !== path) {
2727
2729
  t1 = path.parent();
@@ -2730,29 +2732,29 @@ function RepetitiveAnnexRegistrar(t0) {
2730
2732
  } else t1 = $[5];
2731
2733
  const t2 = !useFormIsLoading();
2732
2734
  let t3;
2733
- if ($[6] !== finishPrintingTask || $[7] !== t2) {
2735
+ if ($[6] !== t2) {
2734
2736
  t3 = {
2735
2737
  enabled: t2,
2736
- onInitialized: finishPrintingTask,
2737
2738
  format: _temp$44
2738
2739
  };
2739
- $[6] = finishPrintingTask;
2740
- $[7] = t2;
2741
- $[8] = t3;
2742
- } else t3 = $[8];
2740
+ $[6] = t2;
2741
+ $[7] = t3;
2742
+ } else t3 = $[7];
2743
2743
  const [rowIds, controller] = useFormattedValue(t1, t3);
2744
- const schema_0 = useControllerState(controller, _temp2$40);
2745
- const absolutePath = useControllerState(controller, _temp3$23);
2744
+ const initialized_0 = useControllerState(controller, _temp2$40);
2745
+ usePrintingTask(!initialized_0);
2746
+ const schema_0 = useControllerState(controller, _temp3$23);
2747
+ const absolutePath = useControllerState(controller, _temp4$17);
2746
2748
  let t4;
2747
- if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
2749
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
2748
2750
  t4 = { equalityFn: shallow };
2749
- $[9] = t4;
2750
- } else t4 = $[9];
2751
- const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp4$17, t4));
2751
+ $[8] = t4;
2752
+ } else t4 = $[8];
2753
+ const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$12, t4));
2752
2754
  if (schema_0.typeInfo.name !== "Table") throw new InvalidPathError(absolutePath, `Unsupported schema: Expected (possibly nullable) table schema, but got schema representing values of type '${schema_0.typeInfo.toString()}'.`);
2753
2755
  let t5;
2754
2756
  let t6;
2755
- if ($[10] !== absolutePath || $[11] !== deferredIssuesToDisplay || $[12] !== maxAnnexes || $[13] !== rowIds || $[14] !== schema_0 || $[15] !== store) {
2757
+ if ($[9] !== absolutePath || $[10] !== deferredIssuesToDisplay || $[11] !== maxAnnexes || $[12] !== rowIds || $[13] !== schema_0 || $[14] !== store) {
2756
2758
  t5 = () => {
2757
2759
  const { registerRepetitiveAnnexState } = store.getState().actions;
2758
2760
  registerRepetitiveAnnexState(absolutePath, {
@@ -2771,59 +2773,63 @@ function RepetitiveAnnexRegistrar(t0) {
2771
2773
  schema_0,
2772
2774
  store
2773
2775
  ];
2774
- $[10] = absolutePath;
2775
- $[11] = deferredIssuesToDisplay;
2776
- $[12] = maxAnnexes;
2777
- $[13] = rowIds;
2778
- $[14] = schema_0;
2779
- $[15] = store;
2780
- $[16] = t5;
2781
- $[17] = t6;
2776
+ $[9] = absolutePath;
2777
+ $[10] = deferredIssuesToDisplay;
2778
+ $[11] = maxAnnexes;
2779
+ $[12] = rowIds;
2780
+ $[13] = schema_0;
2781
+ $[14] = store;
2782
+ $[15] = t5;
2783
+ $[16] = t6;
2782
2784
  } else {
2783
- t5 = $[16];
2784
- t6 = $[17];
2785
+ t5 = $[15];
2786
+ t6 = $[16];
2785
2787
  }
2786
2788
  useEffect(t5, t6);
2787
2789
  if (typeof annexProps.title === "function" || typeof annexProps.issuesPanelLabel === "function") throw new Error("Repetitive annexes must not set `title` or `issuesPanelLabel` as a function. Use `itemTitle` or `itemIssuesPanelLabel` instead.");
2788
2790
  const actualIssuesPanelLabel = annexProps.issuesPanelLabel ? annexProps.issuesPanelLabel : annexProps.title;
2789
2791
  useRegisterController(controller);
2790
2792
  let t7;
2791
- if ($[18] !== absolutePath || $[19] !== actualIssuesPanelLabel) {
2793
+ if ($[17] !== absolutePath || $[18] !== actualIssuesPanelLabel) {
2792
2794
  t7 = /* @__PURE__ */ jsx(CurrentPath, {
2793
2795
  path: absolutePath,
2794
2796
  children: actualIssuesPanelLabel
2795
2797
  });
2796
- $[18] = absolutePath;
2797
- $[19] = actualIssuesPanelLabel;
2798
- $[20] = t7;
2799
- } else t7 = $[20];
2798
+ $[17] = absolutePath;
2799
+ $[18] = actualIssuesPanelLabel;
2800
+ $[19] = t7;
2801
+ } else t7 = $[19];
2800
2802
  useRegisterLabel(absolutePath, t7);
2801
2803
  let t8;
2802
- if ($[21] !== absolutePath || $[22] !== annexProps || $[23] !== rowIds) {
2804
+ if ($[20] !== absolutePath || $[21] !== annexProps || $[22] !== rowIds) {
2803
2805
  t8 = rowIds?.map((rowId, i) => /* @__PURE__ */ jsx(AnnexRegistrar, {
2804
2806
  path: absolutePath.append(new AbsolutePathFragment.Id(rowId)),
2805
2807
  index: i,
2806
2808
  ...annexProps
2807
2809
  }, rowId));
2808
- $[21] = absolutePath;
2809
- $[22] = annexProps;
2810
- $[23] = rowIds;
2811
- $[24] = t8;
2812
- } else t8 = $[24];
2810
+ $[20] = absolutePath;
2811
+ $[21] = annexProps;
2812
+ $[22] = rowIds;
2813
+ $[23] = t8;
2814
+ } else t8 = $[23];
2813
2815
  return t8;
2814
2816
  }
2815
- function _temp4$17(t0) {
2817
+ function _temp5$12(t0) {
2816
2818
  const { touched, issues } = t0;
2817
2819
  return touched ? issues : [];
2818
2820
  }
2819
- function _temp3$23(t0) {
2821
+ function _temp4$17(t0) {
2820
2822
  const { path: path_0 } = t0;
2821
2823
  return path_0;
2822
2824
  }
2823
- function _temp2$40(t0) {
2825
+ function _temp3$23(t0) {
2824
2826
  const { schema } = t0;
2825
2827
  return schema;
2826
2828
  }
2829
+ function _temp2$40(t0) {
2830
+ const { initialized } = t0;
2831
+ return initialized;
2832
+ }
2827
2833
  function _temp$44(value) {
2828
2834
  return value ? tableIdsToArray(value) : [];
2829
2835
  }
@@ -3055,6 +3061,27 @@ function useReportValidationFailures(info) {
3055
3061
  }
3056
3062
  useEffect(t0, t1);
3057
3063
  }
3064
+ // src/utils/validationIssueKey.ts
3065
+ var keyCache = /* @__PURE__ */ new WeakMap();
3066
+ /**
3067
+ * Returns a React key uniquely identifying the provided validation issue, matching `equals`
3068
+ * semantics.
3069
+ */
3070
+ function validationIssueKey(validationIssue) {
3071
+ let key = keyCache.get(validationIssue);
3072
+ if (key === void 0) {
3073
+ const { code, severity, data } = validationIssue;
3074
+ keyCache.set(validationIssue, key = JSON.stringify([
3075
+ code,
3076
+ severity,
3077
+ Object.entries(data).sort(compareEntriesByKey)
3078
+ ]));
3079
+ }
3080
+ return key;
3081
+ }
3082
+ function compareEntriesByKey([k1], [k2]) {
3083
+ return k1 < k2 ? -1 : k1 > k2 ? 1 : 0;
3084
+ }
3058
3085
  // src/components/IssueMessages/IssueMessages.tsx
3059
3086
  /**
3060
3087
  * Component used to display all issues associated with the relevant path.
@@ -3161,7 +3188,7 @@ function IssueMessages(t0) {
3161
3188
  if ($[27] !== absolutePath || $[28] !== actualSchema || $[29] !== deferredIssuesToDisplay || $[30] !== displayIssueCodes || $[31] !== messagesDataKey || $[32] !== prefix || $[33] !== unknownErrorMessage || $[34] !== unknownWarningMessage || $[35] !== visuallyHiddenErrorCodePrefix || $[36] !== visuallyHiddenWarningCodePrefix) {
3162
3189
  let t8;
3163
3190
  if ($[38] !== absolutePath || $[39] !== actualSchema || $[40] !== displayIssueCodes || $[41] !== messagesDataKey || $[42] !== prefix || $[43] !== unknownErrorMessage || $[44] !== unknownWarningMessage || $[45] !== visuallyHiddenErrorCodePrefix || $[46] !== visuallyHiddenWarningCodePrefix) {
3164
- t8 = (issue, i) => /* @__PURE__ */ jsx(Feedback, {
3191
+ t8 = (issue) => /* @__PURE__ */ jsx(Feedback, {
3165
3192
  type: issue.severity,
3166
3193
  children: /* @__PURE__ */ jsx(IssueMessage, {
3167
3194
  path: absolutePath,
@@ -3175,7 +3202,7 @@ function IssueMessages(t0) {
3175
3202
  unknownWarningMessage,
3176
3203
  issueCodeProps: { className: prefix("issue-messages__issue-code") }
3177
3204
  })
3178
- }, i);
3205
+ }, validationIssueKey(issue));
3179
3206
  $[38] = absolutePath;
3180
3207
  $[39] = actualSchema;
3181
3208
  $[40] = displayIssueCodes;
@@ -3543,7 +3570,7 @@ function TopBarActionsSecondary(props) {
3543
3570
  // src/components/Annexes/AnnexesMenu.tsx
3544
3571
  /** Component that allows to navigate between, add, and remove annexes. */
3545
3572
  function AnnexesMenu(t0) {
3546
- const $ = c(87);
3573
+ const $ = c(84);
3547
3574
  let addAnnexText;
3548
3575
  let controlledOpen;
3549
3576
  let menuButtonLabel;
@@ -3668,85 +3695,73 @@ function AnnexesMenu(t0) {
3668
3695
  $[30] = prefix;
3669
3696
  $[31] = t8;
3670
3697
  } else t8 = $[31];
3671
- const t9 = open ? faChevronUp : faChevronDown;
3672
- const t10 = menuTriggerProps?.iconProps;
3698
+ const t9 = open ? faAngleUp : faAngleDown;
3699
+ const t10 = menuTriggerProps?.ref;
3673
3700
  let t11;
3674
3701
  if ($[32] !== t10) {
3675
- t11 = {
3676
- size: "2xs",
3677
- ...t10
3678
- };
3702
+ t11 = [menuTriggerRef, t10];
3679
3703
  $[32] = t10;
3680
3704
  $[33] = t11;
3681
3705
  } else t11 = $[33];
3682
- const t12 = menuTriggerProps?.ref;
3683
- let t13;
3684
- if ($[34] !== t12) {
3685
- t13 = [menuTriggerRef, t12];
3686
- $[34] = t12;
3687
- $[35] = t13;
3688
- } else t13 = $[35];
3689
- const t14 = useCombinedRef(t13);
3690
- const t15 = menuTriggerProps?.children ?? menuButtonText;
3691
- let t16;
3692
- if ($[36] !== menuButtonLabel || $[37] !== menuTriggerProps || $[38] !== t11 || $[39] !== t14 || $[40] !== t15 || $[41] !== t8 || $[42] !== t9) {
3693
- t16 = /* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
3706
+ const t12 = useCombinedRef(t11);
3707
+ const t13 = menuTriggerProps?.children ?? menuButtonText;
3708
+ let t14;
3709
+ if ($[34] !== menuButtonLabel || $[35] !== menuTriggerProps || $[36] !== t12 || $[37] !== t13 || $[38] !== t8 || $[39] !== t9) {
3710
+ t14 = /* @__PURE__ */ jsx(DropdownMenuTrigger, { children: /* @__PURE__ */ jsx(Button, {
3694
3711
  variant: "ghost",
3695
3712
  iconPlacement: "end",
3696
3713
  "aria-label": menuButtonLabel,
3697
3714
  ...menuTriggerProps,
3698
3715
  className: t8,
3699
3716
  icon: t9,
3700
- iconProps: t11,
3701
- ref: t14,
3702
- children: t15
3717
+ ref: t12,
3718
+ children: t13
3703
3719
  }) });
3704
- $[36] = menuButtonLabel;
3705
- $[37] = menuTriggerProps;
3706
- $[38] = t11;
3707
- $[39] = t14;
3708
- $[40] = t15;
3709
- $[41] = t8;
3710
- $[42] = t9;
3711
- $[43] = t16;
3712
- } else t16 = $[43];
3720
+ $[34] = menuButtonLabel;
3721
+ $[35] = menuTriggerProps;
3722
+ $[36] = t12;
3723
+ $[37] = t13;
3724
+ $[38] = t8;
3725
+ $[39] = t9;
3726
+ $[40] = t14;
3727
+ } else t14 = $[40];
3728
+ let t15;
3729
+ if ($[41] !== menuContentProps?.className || $[42] !== prefix) {
3730
+ t15 = cx(prefix("annexes__menu"), menuContentProps?.className);
3731
+ $[41] = menuContentProps?.className;
3732
+ $[42] = prefix;
3733
+ $[43] = t15;
3734
+ } else t15 = $[43];
3735
+ const t16 = menuContentProps?.onCloseAutoFocus;
3713
3736
  let t17;
3714
- if ($[44] !== menuContentProps?.className || $[45] !== prefix) {
3715
- t17 = cx(prefix("annexes__menu"), menuContentProps?.className);
3716
- $[44] = menuContentProps?.className;
3717
- $[45] = prefix;
3737
+ if ($[44] !== handleCloseAutoFocus || $[45] !== t16) {
3738
+ t17 = [t16, handleCloseAutoFocus];
3739
+ $[44] = handleCloseAutoFocus;
3740
+ $[45] = t16;
3718
3741
  $[46] = t17;
3719
3742
  } else t17 = $[46];
3720
- const t18 = menuContentProps?.onCloseAutoFocus;
3721
- let t19;
3722
- if ($[47] !== handleCloseAutoFocus || $[48] !== t18) {
3723
- t19 = [t18, handleCloseAutoFocus];
3724
- $[47] = handleCloseAutoFocus;
3725
- $[48] = t18;
3726
- $[49] = t19;
3727
- } else t19 = $[49];
3728
- const t20 = useCombinedEventHandler(t19);
3729
- const t21 = topBarEl ?? void 0;
3730
- const t22 = menuContentProps?.portalProps;
3731
- let t23;
3732
- if ($[50] !== t21 || $[51] !== t22) {
3733
- t23 = {
3734
- container: t21,
3735
- ...t22
3743
+ const t18 = useCombinedEventHandler(t17);
3744
+ const t19 = topBarEl ?? void 0;
3745
+ const t20 = menuContentProps?.portalProps;
3746
+ let t21;
3747
+ if ($[47] !== t19 || $[48] !== t20) {
3748
+ t21 = {
3749
+ container: t19,
3750
+ ...t20
3736
3751
  };
3737
- $[50] = t21;
3752
+ $[47] = t19;
3753
+ $[48] = t20;
3754
+ $[49] = t21;
3755
+ } else t21 = $[49];
3756
+ let t22;
3757
+ if ($[50] !== activeAnnex) {
3758
+ t22 = activeAnnex?.toString();
3759
+ $[50] = activeAnnex;
3738
3760
  $[51] = t22;
3739
- $[52] = t23;
3740
- } else t23 = $[52];
3741
- let t24;
3742
- if ($[53] !== activeAnnex) {
3743
- t24 = activeAnnex?.toString();
3744
- $[53] = activeAnnex;
3745
- $[54] = t24;
3746
- } else t24 = $[54];
3747
- let t25;
3748
- if ($[55] !== removeAnnexButtonLabel || $[56] !== removeAnnexConfirmDialogCancelText || $[57] !== removeAnnexConfirmDialogMessage || $[58] !== removeAnnexConfirmDialogOkText || $[59] !== removeAnnexConfirmDialogTitle || $[60] !== removeAnnexKeyboardHint || $[61] !== setOpen || $[62] !== tabStates) {
3749
- t25 = tabStates.map((state_3) => /* @__PURE__ */ jsx(AnnexesMenuItem, {
3761
+ } else t22 = $[51];
3762
+ let t23;
3763
+ if ($[52] !== removeAnnexButtonLabel || $[53] !== removeAnnexConfirmDialogCancelText || $[54] !== removeAnnexConfirmDialogMessage || $[55] !== removeAnnexConfirmDialogOkText || $[56] !== removeAnnexConfirmDialogTitle || $[57] !== removeAnnexKeyboardHint || $[58] !== setOpen || $[59] !== tabStates) {
3764
+ t23 = tabStates.map((state_3) => /* @__PURE__ */ jsx(AnnexesMenuItem, {
3750
3765
  removeAnnexButtonLabel,
3751
3766
  removeAnnexKeyboardHint,
3752
3767
  removeAnnexConfirmDialogTitle,
@@ -3757,31 +3772,31 @@ function AnnexesMenu(t0) {
3757
3772
  setOpen,
3758
3773
  menuRef: menuTriggerRef
3759
3774
  }, state_3.path.toString()));
3760
- $[55] = removeAnnexButtonLabel;
3761
- $[56] = removeAnnexConfirmDialogCancelText;
3762
- $[57] = removeAnnexConfirmDialogMessage;
3763
- $[58] = removeAnnexConfirmDialogOkText;
3764
- $[59] = removeAnnexConfirmDialogTitle;
3765
- $[60] = removeAnnexKeyboardHint;
3766
- $[61] = setOpen;
3767
- $[62] = tabStates;
3768
- $[63] = t25;
3769
- } else t25 = $[63];
3770
- let t26;
3771
- if ($[64] !== handleRadioGroupValueChange || $[65] !== t24 || $[66] !== t25) {
3772
- t26 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
3773
- value: t24,
3775
+ $[52] = removeAnnexButtonLabel;
3776
+ $[53] = removeAnnexConfirmDialogCancelText;
3777
+ $[54] = removeAnnexConfirmDialogMessage;
3778
+ $[55] = removeAnnexConfirmDialogOkText;
3779
+ $[56] = removeAnnexConfirmDialogTitle;
3780
+ $[57] = removeAnnexKeyboardHint;
3781
+ $[58] = setOpen;
3782
+ $[59] = tabStates;
3783
+ $[60] = t23;
3784
+ } else t23 = $[60];
3785
+ let t24;
3786
+ if ($[61] !== handleRadioGroupValueChange || $[62] !== t22 || $[63] !== t23) {
3787
+ t24 = /* @__PURE__ */ jsx(DropdownMenuRadioGroup, {
3788
+ value: t22,
3774
3789
  onValueChange: handleRadioGroupValueChange,
3775
- children: t25
3790
+ children: t23
3776
3791
  });
3777
- $[64] = handleRadioGroupValueChange;
3778
- $[65] = t24;
3779
- $[66] = t25;
3780
- $[67] = t26;
3781
- } else t26 = $[67];
3782
- let t27;
3783
- if ($[68] !== addAnnexText || $[69] !== formIsReadOnly || $[70] !== isLargeScreen || $[71] !== newItems || $[72] !== prefix) {
3784
- t27 = !formIsReadOnly && /* @__PURE__ */ jsx(DropdownMenuGroup, {
3792
+ $[61] = handleRadioGroupValueChange;
3793
+ $[62] = t22;
3794
+ $[63] = t23;
3795
+ $[64] = t24;
3796
+ } else t24 = $[64];
3797
+ let t25;
3798
+ if ($[65] !== addAnnexText || $[66] !== formIsReadOnly || $[67] !== isLargeScreen || $[68] !== newItems || $[69] !== prefix) {
3799
+ t25 = !formIsReadOnly && /* @__PURE__ */ jsx(DropdownMenuGroup, {
3785
3800
  label: isLargeScreen ? void 0 : addAnnexText,
3786
3801
  children: isLargeScreen ? /* @__PURE__ */ jsxs(DropdownMenuSub, { children: [/* @__PURE__ */ jsx(DropdownMenuSubTrigger, {
3787
3802
  className: prefix("annexes__menu-add-annex"),
@@ -3791,52 +3806,52 @@ function AnnexesMenu(t0) {
3791
3806
  children: newItems
3792
3807
  })] }) : newItems
3793
3808
  });
3794
- $[68] = addAnnexText;
3795
- $[69] = formIsReadOnly;
3796
- $[70] = isLargeScreen;
3797
- $[71] = newItems;
3798
- $[72] = prefix;
3799
- $[73] = t27;
3800
- } else t27 = $[73];
3801
- let t28;
3802
- if ($[74] !== menuContentProps || $[75] !== t17 || $[76] !== t20 || $[77] !== t23 || $[78] !== t26 || $[79] !== t27) {
3803
- t28 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
3809
+ $[65] = addAnnexText;
3810
+ $[66] = formIsReadOnly;
3811
+ $[67] = isLargeScreen;
3812
+ $[68] = newItems;
3813
+ $[69] = prefix;
3814
+ $[70] = t25;
3815
+ } else t25 = $[70];
3816
+ let t26;
3817
+ if ($[71] !== menuContentProps || $[72] !== t15 || $[73] !== t18 || $[74] !== t21 || $[75] !== t24 || $[76] !== t25) {
3818
+ t26 = /* @__PURE__ */ jsxs(DropdownMenuContent, {
3804
3819
  variant: "subtle",
3805
3820
  showArrow: false,
3806
3821
  sideOffset: -1,
3807
3822
  avoidCollisions: false,
3808
3823
  align: "start",
3809
3824
  ...menuContentProps,
3810
- className: t17,
3811
- onCloseAutoFocus: t20,
3812
- portalProps: t23,
3813
- children: [t26, t27]
3825
+ className: t15,
3826
+ onCloseAutoFocus: t18,
3827
+ portalProps: t21,
3828
+ children: [t24, t25]
3814
3829
  });
3815
- $[74] = menuContentProps;
3816
- $[75] = t17;
3817
- $[76] = t20;
3818
- $[77] = t23;
3819
- $[78] = t26;
3820
- $[79] = t27;
3821
- $[80] = t28;
3822
- } else t28 = $[80];
3823
- let t29;
3824
- if ($[81] !== open || $[82] !== otherProps || $[83] !== t16 || $[84] !== t28 || $[85] !== t7) {
3825
- t29 = /* @__PURE__ */ jsxs(DropdownMenu, {
3830
+ $[71] = menuContentProps;
3831
+ $[72] = t15;
3832
+ $[73] = t18;
3833
+ $[74] = t21;
3834
+ $[75] = t24;
3835
+ $[76] = t25;
3836
+ $[77] = t26;
3837
+ } else t26 = $[77];
3838
+ let t27;
3839
+ if ($[78] !== open || $[79] !== otherProps || $[80] !== t14 || $[81] !== t26 || $[82] !== t7) {
3840
+ t27 = /* @__PURE__ */ jsxs(DropdownMenu, {
3826
3841
  open,
3827
3842
  onOpenChange: t7,
3828
3843
  modal: false,
3829
3844
  ...otherProps,
3830
- children: [t16, t28]
3845
+ children: [t14, t26]
3831
3846
  });
3832
- $[81] = open;
3833
- $[82] = otherProps;
3834
- $[83] = t16;
3835
- $[84] = t28;
3836
- $[85] = t7;
3837
- $[86] = t29;
3838
- } else t29 = $[86];
3839
- return t29;
3847
+ $[78] = open;
3848
+ $[79] = otherProps;
3849
+ $[80] = t14;
3850
+ $[81] = t26;
3851
+ $[82] = t7;
3852
+ $[83] = t27;
3853
+ } else t27 = $[83];
3854
+ return t27;
3840
3855
  }
3841
3856
  function _temp3$21(state_1) {
3842
3857
  return state_1.tabStates();
@@ -3858,9 +3873,9 @@ function AnnexesMenuItem(t0) {
3858
3873
  const formIsReadOnly = useFormIsReadOnly();
3859
3874
  const { confirm } = useAlertDialog();
3860
3875
  const deferredDisplayStatus = useAnnexState(path, _temp4$15);
3861
- const isRemovable = useAnnexState(path, _temp5$10);
3876
+ const isRemovable = useAnnexState(path, _temp5$11);
3862
3877
  const title = useAnnexState(path, _temp6$5);
3863
- const subtitle = useAnnexState(path, _temp7$1);
3878
+ const subtitle = useAnnexState(path, _temp7$2);
3864
3879
  const nonRepetitiveDescription = useAnnexState(path, _temp8$1);
3865
3880
  let t1;
3866
3881
  if ($[0] !== confirm || $[1] !== formContext || $[2] !== menuRef || $[3] !== path || $[4] !== removeAnnexConfirmDialogCancelText || $[5] !== removeAnnexConfirmDialogMessage || $[6] !== removeAnnexConfirmDialogOkText || $[7] !== removeAnnexConfirmDialogTitle || $[8] !== setOpen || $[9] !== store) {
@@ -4083,13 +4098,13 @@ function AnnexesMenuItem(t0) {
4083
4098
  function _temp8$1(state_3) {
4084
4099
  return state_3 && !state_3.isRepetitive && state_3.description;
4085
4100
  }
4086
- function _temp7$1(state_2) {
4101
+ function _temp7$2(state_2) {
4087
4102
  return state_2?.subtitle;
4088
4103
  }
4089
4104
  function _temp6$5(state_1) {
4090
4105
  return state_1?.title;
4091
4106
  }
4092
- function _temp5$10(state_0) {
4107
+ function _temp5$11(state_0) {
4093
4108
  return state_0 != null && (state_0.schema.typeInfo.nullable || state_0.isRepetitive);
4094
4109
  }
4095
4110
  function _temp4$15(state) {
@@ -4249,7 +4264,7 @@ function AnnexTab(t0) {
4249
4264
  const schema = useAnnexState(path, _temp2$37);
4250
4265
  const deferredDisplayStatus = useAnnexState(path, _temp3$20);
4251
4266
  const title = useAnnexState(path, _temp4$14);
4252
- const subtitle = useAnnexState(path, _temp5$9);
4267
+ const subtitle = useAnnexState(path, _temp5$10);
4253
4268
  const tabRef = useRef(null);
4254
4269
  const resetFocus = useResetFocus();
4255
4270
  let t1;
@@ -4468,7 +4483,7 @@ function AnnexTab(t0) {
4468
4483
  } else t24 = $[67];
4469
4484
  return t24;
4470
4485
  }
4471
- function _temp5$9(state_3) {
4486
+ function _temp5$10(state_3) {
4472
4487
  return state_3?.subtitle;
4473
4488
  }
4474
4489
  function _temp4$14(state_2) {
@@ -4958,9 +4973,9 @@ function AnnexesManager(t0) {
4958
4973
  return t29;
4959
4974
  }
4960
4975
  function _temp6$4(issues_0) {
4961
- return issues_0.some(_temp5$8);
4976
+ return issues_0.some(_temp5$9);
4962
4977
  }
4963
- function _temp5$8(issue) {
4978
+ function _temp5$9(issue) {
4964
4979
  return issue.severity === "error";
4965
4980
  }
4966
4981
  function _temp4$13(issues) {
@@ -5145,7 +5160,7 @@ function useControlIssues(t0) {
5145
5160
  t3 = displayIssues && /* @__PURE__ */ jsx(FeedbackList, {
5146
5161
  ...feedbackListProps,
5147
5162
  hidden: issuesDisplayMode === "panel",
5148
- children: Object.entries(issuesToDisplay).map((t4, i) => {
5163
+ children: Object.entries(issuesToDisplay).map((t4) => {
5149
5164
  const [path, issues] = t4;
5150
5165
  return /* @__PURE__ */ jsx(IssueMessages, {
5151
5166
  path,
@@ -5156,7 +5171,7 @@ function useControlIssues(t0) {
5156
5171
  unknownErrorMessage,
5157
5172
  unknownWarningMessage,
5158
5173
  unwrapped: true
5159
- }, i);
5174
+ }, path);
5160
5175
  })
5161
5176
  });
5162
5177
  $[7] = displayIssueCodes;
@@ -5206,7 +5221,7 @@ function useControlIssues(t0) {
5206
5221
  // src/utils/useRegisterControl.tsx
5207
5222
  /** Hook used to register a control within the form app. */
5208
5223
  function useRegisterControl(t0) {
5209
- const $ = c(24);
5224
+ const $ = c(20);
5210
5225
  const { controller, issuesPanelLabel, ariaLabel, issuesPanelLabelSuffix, preventAutoFocus, apiRef } = t0;
5211
5226
  const printing = usePrinting();
5212
5227
  const path_0 = useControllerState(controller, _temp$37);
@@ -5220,91 +5235,75 @@ function useRegisterControl(t0) {
5220
5235
  t1 = { equalityFn: shallow };
5221
5236
  $[0] = t1;
5222
5237
  } else t1 = $[0];
5223
- const issuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$7, t1));
5224
- const finishPrintingTask = useStartPrintingTask();
5225
- let t2;
5226
- let t3;
5227
- if ($[1] !== finishPrintingTask || $[2] !== initialized_0) {
5228
- t2 = () => {
5229
- if (initialized_0) finishPrintingTask();
5230
- };
5231
- t3 = [finishPrintingTask, initialized_0];
5232
- $[1] = finishPrintingTask;
5233
- $[2] = initialized_0;
5234
- $[3] = t2;
5235
- $[4] = t3;
5236
- } else {
5237
- t2 = $[3];
5238
- t3 = $[4];
5239
- }
5240
- useEffect(t2, t3);
5238
+ const issuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$8, t1));
5239
+ usePrintingTask(!initialized_0);
5241
5240
  const columnLabel = useDataTableColumnLabel();
5242
5241
  useRegisterLabel(path_0, issuesPanelLabel || columnLabel || ariaLabel, issuesPanelLabel ? 1 : -1);
5243
5242
  useRegisterFieldLabel(path_0, issuesPanelLabelSuffix);
5244
5243
  useRegisterController(controller);
5245
- let t4;
5246
- let t5;
5247
- if ($[5] !== controller) {
5248
- t4 = () => controller;
5249
- t5 = [controller];
5250
- $[5] = controller;
5251
- $[6] = t4;
5252
- $[7] = t5;
5244
+ let t2;
5245
+ let t3;
5246
+ if ($[1] !== controller) {
5247
+ t2 = () => controller;
5248
+ t3 = [controller];
5249
+ $[1] = controller;
5250
+ $[2] = t2;
5251
+ $[3] = t3;
5253
5252
  } else {
5254
- t4 = $[6];
5255
- t5 = $[7];
5253
+ t2 = $[2];
5254
+ t3 = $[3];
5256
5255
  }
5257
- useImperativeHandle(apiRef, t4, t5);
5256
+ useImperativeHandle(apiRef, t2, t3);
5258
5257
  const autofocusRef = useControlAutofocus(controller, !preventAutoFocus && !printing);
5259
5258
  const setLatestInteraction = useSetLatestInteraction();
5260
- let t6;
5261
- if ($[8] !== controller || $[9] !== printing || $[10] !== setLatestInteraction) {
5262
- t6 = (event) => {
5259
+ let t4;
5260
+ if ($[4] !== controller || $[5] !== printing || $[6] !== setLatestInteraction) {
5261
+ t4 = (event) => {
5263
5262
  if (!printing && event.target === event.currentTarget && !event.defaultPrevented) setLatestInteraction(controller.getState().path);
5264
5263
  };
5265
- $[8] = controller;
5264
+ $[4] = controller;
5265
+ $[5] = printing;
5266
+ $[6] = setLatestInteraction;
5267
+ $[7] = t4;
5268
+ } else t4 = $[7];
5269
+ const handleFocus = t4;
5270
+ const t5 = printing ? false : !initialized_0;
5271
+ const t6 = printing ? false : formIsDisabled;
5272
+ const t7 = printing ? false : displayReadOnly;
5273
+ const t8 = printing ? void 0 : displayStatusToDisplay;
5274
+ const t9 = printing ? false : displayValidating;
5275
+ let t10;
5276
+ if ($[8] !== issuesToDisplay || $[9] !== printing) {
5277
+ t10 = printing ? [] : issuesToDisplay;
5278
+ $[8] = issuesToDisplay;
5266
5279
  $[9] = printing;
5267
- $[10] = setLatestInteraction;
5268
- $[11] = t6;
5269
- } else t6 = $[11];
5270
- const handleFocus = t6;
5271
- const t7 = printing ? false : !initialized_0;
5272
- const t8 = printing ? false : formIsDisabled;
5273
- const t9 = printing ? false : displayReadOnly;
5274
- const t10 = printing ? void 0 : displayStatusToDisplay;
5275
- const t11 = printing ? false : displayValidating;
5276
- let t12;
5277
- if ($[12] !== issuesToDisplay || $[13] !== printing) {
5278
- t12 = printing ? [] : issuesToDisplay;
5279
- $[12] = issuesToDisplay;
5280
- $[13] = printing;
5281
- $[14] = t12;
5282
- } else t12 = $[14];
5283
- let t13;
5284
- if ($[15] !== autofocusRef || $[16] !== handleFocus || $[17] !== t10 || $[18] !== t11 || $[19] !== t12 || $[20] !== t7 || $[21] !== t8 || $[22] !== t9) {
5285
- t13 = {
5286
- displayLoading: t7,
5287
- displayDisabled: t8,
5288
- displayReadOnly: t9,
5289
- displayStatusToDisplay: t10,
5290
- displayValidating: t11,
5291
- issuesToDisplay: t12,
5280
+ $[10] = t10;
5281
+ } else t10 = $[10];
5282
+ let t11;
5283
+ if ($[11] !== autofocusRef || $[12] !== handleFocus || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9) {
5284
+ t11 = {
5285
+ displayLoading: t5,
5286
+ displayDisabled: t6,
5287
+ displayReadOnly: t7,
5288
+ displayStatusToDisplay: t8,
5289
+ displayValidating: t9,
5290
+ issuesToDisplay: t10,
5292
5291
  autofocusRef,
5293
5292
  handleFocus
5294
5293
  };
5295
- $[15] = autofocusRef;
5296
- $[16] = handleFocus;
5297
- $[17] = t10;
5298
- $[18] = t11;
5299
- $[19] = t12;
5300
- $[20] = t7;
5301
- $[21] = t8;
5302
- $[22] = t9;
5303
- $[23] = t13;
5304
- } else t13 = $[23];
5305
- return t13;
5294
+ $[11] = autofocusRef;
5295
+ $[12] = handleFocus;
5296
+ $[13] = t10;
5297
+ $[14] = t5;
5298
+ $[15] = t6;
5299
+ $[16] = t7;
5300
+ $[17] = t8;
5301
+ $[18] = t9;
5302
+ $[19] = t11;
5303
+ } else t11 = $[19];
5304
+ return t11;
5306
5305
  }
5307
- function _temp5$7(t0) {
5306
+ function _temp5$8(t0) {
5308
5307
  const { touched, issues } = t0;
5309
5308
  return touched ? issues : [];
5310
5309
  }
@@ -5519,7 +5518,7 @@ function _temp2$33(issue, i_0) {
5519
5518
  return /* @__PURE__ */ jsxs(Fragment, { children: [i_0 !== 0 && ", ", /* @__PURE__ */ jsx(Code, {
5520
5519
  color: issue.severity === "error" ? "danger" : "warning",
5521
5520
  children: issue.code
5522
- })] }, i_0);
5521
+ })] }, validationIssueKey(issue));
5523
5522
  }
5524
5523
  function _temp$36(validation, i) {
5525
5524
  return /* @__PURE__ */ jsxs(Fragment, { children: [i !== 0 && ", ", /* @__PURE__ */ jsx(Code, { children: validation.toString() })] }, i);
@@ -6507,7 +6506,7 @@ function CheckboxGroupControl(t0) {
6507
6506
  const controller = useListableInput(path, t6);
6508
6507
  const { inputProps } = controller;
6509
6508
  const schema_0 = useControllerState(controller, _temp4$11);
6510
- const absolutePath = useControllerState(controller, _temp5$6);
6509
+ const absolutePath = useControllerState(controller, _temp5$7);
6511
6510
  const { restrictions } = schema_0.typeInfo;
6512
6511
  const showDebugInfo = useFormInDebugMode() || debug;
6513
6512
  const t7 = otherProps["aria-label"];
@@ -6648,7 +6647,7 @@ function CheckboxGroupControl(t0) {
6648
6647
  value: v,
6649
6648
  label: unknownValueLabel
6650
6649
  })
6651
- }, i);
6650
+ }, -i - 1);
6652
6651
  $[88] = unknownValueLabel;
6653
6652
  $[89] = t30;
6654
6653
  } else t30 = $[89];
@@ -6719,7 +6718,7 @@ function _temp6$3(t0, i_0) {
6719
6718
  children: text ?? value?.toString() ?? ""
6720
6719
  }, key ?? i_0);
6721
6720
  }
6722
- function _temp5$6(t0) {
6721
+ function _temp5$7(t0) {
6723
6722
  const { path: path_0 } = t0;
6724
6723
  return path_0;
6725
6724
  }
@@ -9404,11 +9403,10 @@ function _temp$28(state) {
9404
9403
  // src/components/FormPages/FormPageRegistrar.tsx
9405
9404
  /** Component used to register a form page. */
9406
9405
  function FormPageRegistrar(t0) {
9407
- const $ = c(33);
9406
+ const $ = c(32);
9408
9407
  const { path, title, documentTitle, code, issuesPanelLabel } = t0;
9409
9408
  const store = useFormPagesContext();
9410
9409
  const printing = usePrinting();
9411
- const finishPrintingTask = useStartPrintingTask();
9412
9410
  const observeDescendants = typeof title === "function" || typeof documentTitle === "function";
9413
9411
  let t1;
9414
9412
  if ($[0] !== observeDescendants || $[1] !== path) {
@@ -9419,54 +9417,52 @@ function FormPageRegistrar(t0) {
9419
9417
  } else t1 = $[2];
9420
9418
  const t2 = !useFormIsLoading();
9421
9419
  let t3;
9422
- if ($[3] !== finishPrintingTask || $[4] !== t2) {
9423
- t3 = {
9424
- enabled: t2,
9425
- onInitialized: finishPrintingTask
9426
- };
9427
- $[3] = finishPrintingTask;
9428
- $[4] = t2;
9429
- $[5] = t3;
9430
- } else t3 = $[5];
9420
+ if ($[3] !== t2) {
9421
+ t3 = { enabled: t2 };
9422
+ $[3] = t2;
9423
+ $[4] = t3;
9424
+ } else t3 = $[4];
9431
9425
  const controller = useController(t1, t3);
9432
- const absolutePath = useControllerState(controller, _temp$27);
9433
- const schema_0 = useControllerState(controller, _temp2$24);
9434
- const exists_0 = useControllerState(controller, _temp3$13);
9426
+ const initialized_0 = useControllerState(controller, _temp$27);
9427
+ usePrintingTask(!initialized_0);
9428
+ const absolutePath = useControllerState(controller, _temp2$24);
9429
+ const schema_0 = useControllerState(controller, _temp3$13);
9430
+ const exists_0 = useControllerState(controller, _temp4$9);
9435
9431
  let t4;
9436
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
9432
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
9437
9433
  t4 = { equalityFn: shallow };
9438
- $[6] = t4;
9439
- } else t4 = $[6];
9440
- const value_0 = useControllerState(controller, _temp4$9, t4).value;
9434
+ $[5] = t4;
9435
+ } else t4 = $[5];
9436
+ const value_0 = useControllerState(controller, _temp5$6, t4).value;
9441
9437
  const deferredValue = useDeferredValue(value_0);
9442
9438
  const relevantValue = printing ? value_0 : deferredValue;
9443
9439
  let t5;
9444
- if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
9440
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
9445
9441
  t5 = { equalityFn: shallow };
9446
- $[7] = t5;
9447
- } else t5 = $[7];
9448
- const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp5$5, t5));
9449
- const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp6$2));
9442
+ $[6] = t5;
9443
+ } else t5 = $[6];
9444
+ const deferredIssuesToDisplay = useDeferredValue(useControllerState(controller, _temp6$2, t5));
9445
+ const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp7$1));
9450
9446
  let t6;
9451
- if ($[8] !== relevantValue || $[9] !== title) {
9447
+ if ($[7] !== relevantValue || $[8] !== title) {
9452
9448
  t6 = typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
9453
- $[8] = relevantValue;
9454
- $[9] = title;
9455
- $[10] = t6;
9456
- } else t6 = $[10];
9449
+ $[7] = relevantValue;
9450
+ $[8] = title;
9451
+ $[9] = t6;
9452
+ } else t6 = $[9];
9457
9453
  const actualTitle = t6;
9458
9454
  let t7;
9459
- if ($[11] !== actualTitle || $[12] !== documentTitle || $[13] !== relevantValue) {
9455
+ if ($[10] !== actualTitle || $[11] !== documentTitle || $[12] !== relevantValue) {
9460
9456
  t7 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue) : documentTitle === void 0 ? actualTitle === null || typeof actualTitle === "string" ? actualTitle : void 0 : documentTitle;
9461
- $[11] = actualTitle;
9462
- $[12] = documentTitle;
9463
- $[13] = relevantValue;
9464
- $[14] = t7;
9465
- } else t7 = $[14];
9457
+ $[10] = actualTitle;
9458
+ $[11] = documentTitle;
9459
+ $[12] = relevantValue;
9460
+ $[13] = t7;
9461
+ } else t7 = $[13];
9466
9462
  const actualDocumentTitle = t7;
9467
9463
  let t8;
9468
9464
  let t9;
9469
- if ($[15] !== absolutePath || $[16] !== actualDocumentTitle || $[17] !== actualTitle || $[18] !== code || $[19] !== deferredDisplayStatus || $[20] !== deferredIssuesToDisplay || $[21] !== exists_0 || $[22] !== schema_0 || $[23] !== store) {
9465
+ if ($[14] !== absolutePath || $[15] !== actualDocumentTitle || $[16] !== actualTitle || $[17] !== code || $[18] !== deferredDisplayStatus || $[19] !== deferredIssuesToDisplay || $[20] !== exists_0 || $[21] !== schema_0 || $[22] !== store) {
9470
9466
  t8 = () => {
9471
9467
  const { registerPageState } = store.getState().actions;
9472
9468
  registerPageState(absolutePath, {
@@ -9491,71 +9487,75 @@ function FormPageRegistrar(t0) {
9491
9487
  schema_0,
9492
9488
  store
9493
9489
  ];
9494
- $[15] = absolutePath;
9495
- $[16] = actualDocumentTitle;
9496
- $[17] = actualTitle;
9497
- $[18] = code;
9498
- $[19] = deferredDisplayStatus;
9499
- $[20] = deferredIssuesToDisplay;
9500
- $[21] = exists_0;
9501
- $[22] = schema_0;
9502
- $[23] = store;
9503
- $[24] = t8;
9504
- $[25] = t9;
9490
+ $[14] = absolutePath;
9491
+ $[15] = actualDocumentTitle;
9492
+ $[16] = actualTitle;
9493
+ $[17] = code;
9494
+ $[18] = deferredDisplayStatus;
9495
+ $[19] = deferredIssuesToDisplay;
9496
+ $[20] = exists_0;
9497
+ $[21] = schema_0;
9498
+ $[22] = store;
9499
+ $[23] = t8;
9500
+ $[24] = t9;
9505
9501
  } else {
9506
- t8 = $[24];
9507
- t9 = $[25];
9502
+ t8 = $[23];
9503
+ t9 = $[24];
9508
9504
  }
9509
9505
  useEffect(t8, t9);
9510
9506
  useRegisterController(controller);
9511
9507
  let t10;
9512
- if ($[26] !== actualTitle || $[27] !== deferredValue || $[28] !== issuesPanelLabel) {
9508
+ if ($[25] !== actualTitle || $[26] !== deferredValue || $[27] !== issuesPanelLabel) {
9513
9509
  t10 = typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel || actualTitle;
9514
- $[26] = actualTitle;
9515
- $[27] = deferredValue;
9516
- $[28] = issuesPanelLabel;
9517
- $[29] = t10;
9518
- } else t10 = $[29];
9510
+ $[25] = actualTitle;
9511
+ $[26] = deferredValue;
9512
+ $[27] = issuesPanelLabel;
9513
+ $[28] = t10;
9514
+ } else t10 = $[28];
9519
9515
  let t11;
9520
- if ($[30] !== absolutePath || $[31] !== t10) {
9516
+ if ($[29] !== absolutePath || $[30] !== t10) {
9521
9517
  t11 = /* @__PURE__ */ jsx(CurrentPath, {
9522
9518
  path: absolutePath,
9523
9519
  children: t10
9524
9520
  });
9525
- $[30] = absolutePath;
9526
- $[31] = t10;
9527
- $[32] = t11;
9528
- } else t11 = $[32];
9521
+ $[29] = absolutePath;
9522
+ $[30] = t10;
9523
+ $[31] = t11;
9524
+ } else t11 = $[31];
9529
9525
  useRegisterLabel(absolutePath, t11);
9530
9526
  return null;
9531
9527
  }
9532
- function _temp6$2(t0) {
9528
+ function _temp7$1(t0) {
9533
9529
  const { displayStatus } = t0;
9534
9530
  return displayStatus;
9535
9531
  }
9536
- function _temp5$5(t0) {
9532
+ function _temp6$2(t0) {
9537
9533
  const { touched, issues } = t0;
9538
9534
  return touched ? issues : [];
9539
9535
  }
9540
- function _temp4$9(t0) {
9536
+ function _temp5$6(t0) {
9541
9537
  const { _valueRev, value } = t0;
9542
9538
  return {
9543
9539
  _valueRev,
9544
9540
  value
9545
9541
  };
9546
9542
  }
9547
- function _temp3$13(t0) {
9548
- const { initialized, exists } = t0;
9549
- return initialized && exists;
9543
+ function _temp4$9(t0) {
9544
+ const { initialized: initialized_1, exists } = t0;
9545
+ return initialized_1 && exists;
9550
9546
  }
9551
- function _temp2$24(t0) {
9547
+ function _temp3$13(t0) {
9552
9548
  const { schema } = t0;
9553
9549
  return schema;
9554
9550
  }
9555
- function _temp$27(t0) {
9551
+ function _temp2$24(t0) {
9556
9552
  const { path: path_0 } = t0;
9557
9553
  return path_0;
9558
9554
  }
9555
+ function _temp$27(t0) {
9556
+ const { initialized } = t0;
9557
+ return initialized;
9558
+ }
9559
9559
  // src/components/FormPages/FormPages.tsx
9560
9560
  /**
9561
9561
  * The form pages component can be used to split parts of a form into separate pages, while
@@ -9694,7 +9694,7 @@ function FormPages(t0) {
9694
9694
  useEffect(t6, t7);
9695
9695
  const T0 = CurrentPath;
9696
9696
  const T1 = FormPagesContext;
9697
- const t8 = resolvedPages.map(_temp5$4);
9697
+ const t8 = resolvedPages.map(_temp5$5);
9698
9698
  let t9;
9699
9699
  if ($[25] !== className || $[26] !== prefix) {
9700
9700
  t9 = cx(prefix("form-pages"), className);
@@ -9751,7 +9751,7 @@ function FormPages(t0) {
9751
9751
  } else t15 = $[44];
9752
9752
  return t15;
9753
9753
  }
9754
- function _temp5$4(page_1) {
9754
+ function _temp5$5(page_1) {
9755
9755
  return /* @__PURE__ */ jsx(FormPageRegistrar, { ...page_1 }, page_1.path.toString());
9756
9756
  }
9757
9757
  function _temp4$8(t0) {
@@ -10126,7 +10126,7 @@ function FormPageSidebarItem(t0) {
10126
10126
  const disabled = useFormPageState(path, _temp2$20);
10127
10127
  const deferredDisplayStatus = useFormPageState(path, _temp3$9);
10128
10128
  const code = useFormPageState(path, _temp4$6);
10129
- const title = useFormPageState(path, _temp5$3);
10129
+ const title = useFormPageState(path, _temp5$4);
10130
10130
  let t2;
10131
10131
  if ($[3] !== locale) {
10132
10132
  t2 = (state_4) => state_4?.visuallyHiddenCodePrefix ?? locale.FormPage.visuallyHiddenCodePrefix;
@@ -10314,7 +10314,7 @@ function FormPageSidebarItem(t0) {
10314
10314
  } else t19 = $[65];
10315
10315
  return t19;
10316
10316
  }
10317
- function _temp5$3(state_3) {
10317
+ function _temp5$4(state_3) {
10318
10318
  return state_3?.title;
10319
10319
  }
10320
10320
  function _temp4$6(state_2) {
@@ -10905,11 +10905,10 @@ function _temp$18(state) {
10905
10905
  // src/components/FormStepper/FormStepRegistrar.tsx
10906
10906
  /** Component used to register a form step. */
10907
10907
  function FormStepRegistrar(t0) {
10908
- const $ = c(30);
10908
+ const $ = c(29);
10909
10909
  const { index, path, title, documentTitle, issuesPanelLabel } = t0;
10910
10910
  const store = useFormStepperContext();
10911
10911
  const printing = usePrinting();
10912
- const finishPrintingTask = useStartPrintingTask();
10913
10912
  const observeDescendants = typeof title === "function" || typeof documentTitle === "function";
10914
10913
  let t1;
10915
10914
  if ($[0] !== observeDescendants || $[1] !== path) {
@@ -10920,47 +10919,45 @@ function FormStepRegistrar(t0) {
10920
10919
  } else t1 = $[2];
10921
10920
  const t2 = !useFormIsLoading();
10922
10921
  let t3;
10923
- if ($[3] !== finishPrintingTask || $[4] !== t2) {
10924
- t3 = {
10925
- enabled: t2,
10926
- onInitialized: finishPrintingTask
10927
- };
10928
- $[3] = finishPrintingTask;
10929
- $[4] = t2;
10930
- $[5] = t3;
10931
- } else t3 = $[5];
10922
+ if ($[3] !== t2) {
10923
+ t3 = { enabled: t2 };
10924
+ $[3] = t2;
10925
+ $[4] = t3;
10926
+ } else t3 = $[4];
10932
10927
  const controller = useController(t1, t3);
10933
- const absolutePath = useControllerState(controller, _temp$17);
10934
- const exists_0 = useControllerState(controller, _temp2$14);
10928
+ const initialized_0 = useControllerState(controller, _temp$17);
10929
+ usePrintingTask(!initialized_0);
10930
+ const absolutePath = useControllerState(controller, _temp2$14);
10931
+ const exists_0 = useControllerState(controller, _temp3$5);
10935
10932
  let t4;
10936
- if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
10933
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
10937
10934
  t4 = { equalityFn: shallow };
10938
- $[6] = t4;
10939
- } else t4 = $[6];
10940
- const value_0 = useControllerState(controller, _temp3$5, t4).value;
10935
+ $[5] = t4;
10936
+ } else t4 = $[5];
10937
+ const value_0 = useControllerState(controller, _temp4$5, t4).value;
10941
10938
  const deferredValue = useDeferredValue(value_0);
10942
10939
  const relevantValue = printing ? value_0 : deferredValue;
10943
- const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp4$5));
10940
+ const deferredDisplayStatus = useDeferredValue(useControllerState(controller, _temp5$3));
10944
10941
  let t5;
10945
- if ($[7] !== relevantValue || $[8] !== title) {
10942
+ if ($[6] !== relevantValue || $[7] !== title) {
10946
10943
  t5 = typeof title === "function" ? relevantValue === void 0 ? null : title(relevantValue) : title;
10947
- $[7] = relevantValue;
10948
- $[8] = title;
10949
- $[9] = t5;
10950
- } else t5 = $[9];
10944
+ $[6] = relevantValue;
10945
+ $[7] = title;
10946
+ $[8] = t5;
10947
+ } else t5 = $[8];
10951
10948
  const actualTitle = t5;
10952
10949
  let t6;
10953
- if ($[10] !== actualTitle || $[11] !== documentTitle || $[12] !== relevantValue) {
10950
+ if ($[9] !== actualTitle || $[10] !== documentTitle || $[11] !== relevantValue) {
10954
10951
  t6 = typeof documentTitle === "function" ? relevantValue === void 0 ? null : documentTitle(relevantValue) : documentTitle === void 0 ? actualTitle === null || typeof actualTitle === "string" ? actualTitle : void 0 : documentTitle;
10955
- $[10] = actualTitle;
10956
- $[11] = documentTitle;
10957
- $[12] = relevantValue;
10958
- $[13] = t6;
10959
- } else t6 = $[13];
10952
+ $[9] = actualTitle;
10953
+ $[10] = documentTitle;
10954
+ $[11] = relevantValue;
10955
+ $[12] = t6;
10956
+ } else t6 = $[12];
10960
10957
  const actualDocumentTitle = t6;
10961
10958
  let t7;
10962
10959
  let t8;
10963
- if ($[14] !== absolutePath || $[15] !== actualDocumentTitle || $[16] !== actualTitle || $[17] !== deferredDisplayStatus || $[18] !== exists_0 || $[19] !== index || $[20] !== store) {
10960
+ if ($[13] !== absolutePath || $[14] !== actualDocumentTitle || $[15] !== actualTitle || $[16] !== deferredDisplayStatus || $[17] !== exists_0 || $[18] !== index || $[19] !== store) {
10964
10961
  t7 = () => {
10965
10962
  const { registerStepState } = store.getState().actions;
10966
10963
  registerStepState(absolutePath, {
@@ -10981,61 +10978,65 @@ function FormStepRegistrar(t0) {
10981
10978
  index,
10982
10979
  store
10983
10980
  ];
10984
- $[14] = absolutePath;
10985
- $[15] = actualDocumentTitle;
10986
- $[16] = actualTitle;
10987
- $[17] = deferredDisplayStatus;
10988
- $[18] = exists_0;
10989
- $[19] = index;
10990
- $[20] = store;
10991
- $[21] = t7;
10992
- $[22] = t8;
10981
+ $[13] = absolutePath;
10982
+ $[14] = actualDocumentTitle;
10983
+ $[15] = actualTitle;
10984
+ $[16] = deferredDisplayStatus;
10985
+ $[17] = exists_0;
10986
+ $[18] = index;
10987
+ $[19] = store;
10988
+ $[20] = t7;
10989
+ $[21] = t8;
10993
10990
  } else {
10994
- t7 = $[21];
10995
- t8 = $[22];
10991
+ t7 = $[20];
10992
+ t8 = $[21];
10996
10993
  }
10997
10994
  useEffect(t7, t8);
10998
10995
  useRegisterController(controller);
10999
10996
  let t9;
11000
- if ($[23] !== actualTitle || $[24] !== deferredValue || $[25] !== issuesPanelLabel) {
10997
+ if ($[22] !== actualTitle || $[23] !== deferredValue || $[24] !== issuesPanelLabel) {
11001
10998
  t9 = typeof issuesPanelLabel === "function" ? deferredValue === void 0 ? null : issuesPanelLabel(deferredValue) : issuesPanelLabel || actualTitle;
11002
- $[23] = actualTitle;
11003
- $[24] = deferredValue;
11004
- $[25] = issuesPanelLabel;
11005
- $[26] = t9;
11006
- } else t9 = $[26];
10999
+ $[22] = actualTitle;
11000
+ $[23] = deferredValue;
11001
+ $[24] = issuesPanelLabel;
11002
+ $[25] = t9;
11003
+ } else t9 = $[25];
11007
11004
  let t10;
11008
- if ($[27] !== absolutePath || $[28] !== t9) {
11005
+ if ($[26] !== absolutePath || $[27] !== t9) {
11009
11006
  t10 = /* @__PURE__ */ jsx(CurrentPath, {
11010
11007
  path: absolutePath,
11011
11008
  children: t9
11012
11009
  });
11013
- $[27] = absolutePath;
11014
- $[28] = t9;
11015
- $[29] = t10;
11016
- } else t10 = $[29];
11010
+ $[26] = absolutePath;
11011
+ $[27] = t9;
11012
+ $[28] = t10;
11013
+ } else t10 = $[28];
11017
11014
  useRegisterLabel(absolutePath, t10);
11018
11015
  return null;
11019
11016
  }
11020
- function _temp4$5(t0) {
11017
+ function _temp5$3(t0) {
11021
11018
  const { displayStatus } = t0;
11022
11019
  return displayStatus;
11023
11020
  }
11024
- function _temp3$5(t0) {
11021
+ function _temp4$5(t0) {
11025
11022
  const { _valueRev, value } = t0;
11026
11023
  return {
11027
11024
  _valueRev,
11028
11025
  value
11029
11026
  };
11030
11027
  }
11031
- function _temp2$14(t0) {
11032
- const { initialized, exists } = t0;
11033
- return initialized && exists;
11028
+ function _temp3$5(t0) {
11029
+ const { initialized: initialized_1, exists } = t0;
11030
+ return initialized_1 && exists;
11034
11031
  }
11035
- function _temp$17(t0) {
11032
+ function _temp2$14(t0) {
11036
11033
  const { path: path_0 } = t0;
11037
11034
  return path_0;
11038
11035
  }
11036
+ function _temp$17(t0) {
11037
+ const { initialized } = t0;
11038
+ return initialized;
11039
+ }
11039
11040
  // src/components/FormStepper/FormStepper.tsx
11040
11041
  /**
11041
11042
  * The form stepper component can be used to split parts of a form into separate steps. It is built
@@ -11378,7 +11379,7 @@ function IssuesAlert(t0) {
11378
11379
  if ($[29] !== absolutePath || $[30] !== deferredIssuesToDisplay || $[31] !== displayIssueCodes || $[32] !== messagesDataKey || $[33] !== prefix || $[34] !== schema || $[35] !== unknownErrorMessage || $[36] !== unknownWarningMessage || $[37] !== visuallyHiddenErrorCodePrefix || $[38] !== visuallyHiddenWarningCodePrefix) {
11379
11380
  let t12;
11380
11381
  if ($[40] !== absolutePath || $[41] !== displayIssueCodes || $[42] !== messagesDataKey || $[43] !== prefix || $[44] !== schema || $[45] !== unknownErrorMessage || $[46] !== unknownWarningMessage || $[47] !== visuallyHiddenErrorCodePrefix || $[48] !== visuallyHiddenWarningCodePrefix) {
11381
- t12 = (issue_0, i) => /* @__PURE__ */ jsx(Feedback, {
11382
+ t12 = (issue_0) => /* @__PURE__ */ jsx(Feedback, {
11382
11383
  type: issue_0.severity,
11383
11384
  children: /* @__PURE__ */ jsx(IssueMessage, {
11384
11385
  path: absolutePath,
@@ -11392,7 +11393,7 @@ function IssuesAlert(t0) {
11392
11393
  unknownWarningMessage,
11393
11394
  issueCodeProps: { className: prefix("issue-messages__issue-code") }
11394
11395
  })
11395
- }, i);
11396
+ }, validationIssueKey(issue_0));
11396
11397
  $[40] = absolutePath;
11397
11398
  $[41] = displayIssueCodes;
11398
11399
  $[42] = messagesDataKey;
@@ -11959,7 +11960,7 @@ function IssuesPanelMessagesCard(t0) {
11959
11960
  children: severity === "error" ? errorsLabel?.() : warningsLabel?.()
11960
11961
  }), /* @__PURE__ */ jsx("ul", {
11961
11962
  className: prefix("issues-panel__issues-list"),
11962
- children: currentInfo.issues.filter((issue_0) => issue_0.severity === severity).map((issue_1, i) => /* @__PURE__ */ jsx("li", {
11963
+ children: currentInfo.issues.filter((issue_0) => issue_0.severity === severity).map((issue_1) => /* @__PURE__ */ jsx("li", {
11963
11964
  className: prefix("issues-panel__issue"),
11964
11965
  "data-severity": issue_1.severity,
11965
11966
  children: /* @__PURE__ */ jsx(IssueMessage, {
@@ -11971,7 +11972,7 @@ function IssuesPanelMessagesCard(t0) {
11971
11972
  unknownWarningMessage,
11972
11973
  issueCodeProps: { className: prefix("issues-panel__issue-code") }
11973
11974
  })
11974
- }, i))
11975
+ }, validationIssueKey(issue_1)))
11975
11976
  })] });
11976
11977
  const T0 = Card;
11977
11978
  const t4 = "subtle";
@@ -12336,7 +12337,7 @@ var DEFAULT_FIRST_ISSUE_KEYBINDS = "Alt+Shift+Home";
12336
12337
  var DEFAULT_LAST_ISSUE_KEYBINDS = "Alt+Shift+End";
12337
12338
  /** Component used to navigate through the issues of the form. */
12338
12339
  function IssuesPanel(t0) {
12339
- const $ = c(169);
12340
+ const $ = c(170);
12340
12341
  let bodyProps;
12341
12342
  let closeButtonProps;
12342
12343
  let containerProps;
@@ -12459,6 +12460,7 @@ function IssuesPanel(t0) {
12459
12460
  const defaultOpen = t1 === void 0 ? false : t1;
12460
12461
  const prefix = usePrefix();
12461
12462
  const printing = usePrinting();
12463
+ const { printHidden } = usePrintClassNames();
12462
12464
  const [locale] = useLocale();
12463
12465
  const errorsLabel = errorsLabelProp ?? locale.IssuesPanel.errorsLabel;
12464
12466
  const warningsLabel = warningsLabelProp ?? locale.IssuesPanel.warningsLabel;
@@ -12724,7 +12726,10 @@ function IssuesPanel(t0) {
12724
12726
  const formAppEl = useFormAppElement();
12725
12727
  let t27;
12726
12728
  if ($[107] !== containerEl) {
12727
- t27 = (e) => setBoolDataAttr(containerEl, "stuck", e.intersectionRatio === 1);
12729
+ t27 = (t28) => {
12730
+ const [e] = t28;
12731
+ return setBoolDataAttr(containerEl, "stuck", e.intersectionRatio === 1);
12732
+ };
12728
12733
  $[107] = containerEl;
12729
12734
  $[108] = t27;
12730
12735
  } else t27 = $[108];
@@ -12818,12 +12823,12 @@ function IssuesPanel(t0) {
12818
12823
  } else t32 = $[142];
12819
12824
  const combinedContainerRef = useCombinedRef(t32);
12820
12825
  let t33;
12821
- if ($[143] !== bodyProps || $[144] !== combinedContainerRef || $[145] !== containerProps || $[146] !== currentPageController || $[147] !== currentPageIndex || $[148] !== currentPagePath || $[149] !== deferredIssuesTrackerResult || $[150] !== displayIssueCodes || $[151] !== displayMode || $[152] !== errorsLabel || $[153] !== headerProps || $[154] !== iconProps || $[155] !== loadingSpinnerProps || $[156] !== noIssuesMessage || $[157] !== open || $[158] !== otherProps || $[159] !== prefix || $[160] !== printing || $[161] !== renderControls || $[162] !== resolvedMessage || $[163] !== resolvedTitle || $[164] !== titleProps || $[165] !== unknownErrorMessage || $[166] !== unknownWarningMessage || $[167] !== warningsLabel) {
12826
+ if ($[143] !== bodyProps || $[144] !== combinedContainerRef || $[145] !== containerProps || $[146] !== currentPageController || $[147] !== currentPageIndex || $[148] !== currentPagePath || $[149] !== deferredIssuesTrackerResult || $[150] !== displayIssueCodes || $[151] !== displayMode || $[152] !== errorsLabel || $[153] !== headerProps || $[154] !== iconProps || $[155] !== loadingSpinnerProps || $[156] !== noIssuesMessage || $[157] !== open || $[158] !== otherProps || $[159] !== prefix || $[160] !== printHidden || $[161] !== printing || $[162] !== renderControls || $[163] !== resolvedMessage || $[164] !== resolvedTitle || $[165] !== titleProps || $[166] !== unknownErrorMessage || $[167] !== unknownWarningMessage || $[168] !== warningsLabel) {
12822
12827
  t33 = open && !printing && /* @__PURE__ */ jsx(Layer, {
12823
12828
  zIndex: ["docked", 1],
12824
12829
  children: /* @__PURE__ */ jsx("div", {
12825
12830
  ...containerProps,
12826
- className: cx(prefix("issues-panel__container"), containerProps?.className),
12831
+ className: cx(prefix("issues-panel__container"), printHidden, containerProps?.className),
12827
12832
  ref: combinedContainerRef,
12828
12833
  children: /* @__PURE__ */ jsx(Container, {
12829
12834
  asChild: true,
@@ -12880,16 +12885,17 @@ function IssuesPanel(t0) {
12880
12885
  $[157] = open;
12881
12886
  $[158] = otherProps;
12882
12887
  $[159] = prefix;
12883
- $[160] = printing;
12884
- $[161] = renderControls;
12885
- $[162] = resolvedMessage;
12886
- $[163] = resolvedTitle;
12887
- $[164] = titleProps;
12888
- $[165] = unknownErrorMessage;
12889
- $[166] = unknownWarningMessage;
12890
- $[167] = warningsLabel;
12891
- $[168] = t33;
12892
- } else t33 = $[168];
12888
+ $[160] = printHidden;
12889
+ $[161] = printing;
12890
+ $[162] = renderControls;
12891
+ $[163] = resolvedMessage;
12892
+ $[164] = resolvedTitle;
12893
+ $[165] = titleProps;
12894
+ $[166] = unknownErrorMessage;
12895
+ $[167] = unknownWarningMessage;
12896
+ $[168] = warningsLabel;
12897
+ $[169] = t33;
12898
+ } else t33 = $[169];
12893
12899
  return t33;
12894
12900
  }
12895
12901
  /**
@@ -15240,7 +15246,7 @@ function SelectMultipleControlItemGroup(_props) {
15240
15246
  * ```
15241
15247
  */
15242
15248
  function SelectMultipleControl(t0) {
15243
- const $ = c(112);
15249
+ const $ = c(114);
15244
15250
  let apiRef;
15245
15251
  let children;
15246
15252
  let debug;
@@ -15420,7 +15426,6 @@ function SelectMultipleControl(t0) {
15420
15426
  inputOnChange(newValue);
15421
15427
  setArrayValue(newValue);
15422
15428
  };
15423
- const optionNodes = selectionItemObjectsToNodes(groupedOptions);
15424
15429
  const absolutePathStr = absolutePath.toString();
15425
15430
  let t9;
15426
15431
  if ($[52] !== absolutePathStr || $[53] !== issuesToDisplay) {
@@ -15539,14 +15544,20 @@ function SelectMultipleControl(t0) {
15539
15544
  value: v,
15540
15545
  label: unknownValueLabel
15541
15546
  })
15542
- }, i);
15547
+ }, -i - 1);
15543
15548
  $[87] = unknownValueLabel;
15544
15549
  $[88] = t30;
15545
15550
  } else t30 = $[88];
15546
15551
  const t31 = unknownValues.map(t30);
15547
15552
  let t32;
15548
- if ($[89] !== T1 || $[90] !== formattedValue || $[91] !== handleValueChange || $[92] !== inputProps.name || $[93] !== optionNodes || $[94] !== otherProps || $[95] !== t15 || $[96] !== t16 || $[97] !== t17 || $[98] !== t18 || $[99] !== t19 || $[100] !== t20 || $[101] !== t21 || $[102] !== t23 || $[103] !== t25 || $[104] !== t27 || $[105] !== t29 || $[106] !== t31) {
15549
- t32 = /* @__PURE__ */ jsxs(T1, {
15553
+ if ($[89] !== groupedOptions) {
15554
+ t32 = selectionItemObjectsToNodes(groupedOptions);
15555
+ $[89] = groupedOptions;
15556
+ $[90] = t32;
15557
+ } else t32 = $[90];
15558
+ let t33;
15559
+ if ($[91] !== T1 || $[92] !== formattedValue || $[93] !== handleValueChange || $[94] !== inputProps.name || $[95] !== otherProps || $[96] !== t15 || $[97] !== t16 || $[98] !== t17 || $[99] !== t18 || $[100] !== t19 || $[101] !== t20 || $[102] !== t21 || $[103] !== t23 || $[104] !== t25 || $[105] !== t27 || $[106] !== t29 || $[107] !== t31 || $[108] !== t32) {
15560
+ t33 = /* @__PURE__ */ jsxs(T1, {
15550
15561
  multiple: t13,
15551
15562
  value: formattedValue,
15552
15563
  name: t14,
@@ -15563,37 +15574,37 @@ function SelectMultipleControl(t0) {
15563
15574
  onBlurToOutside: t27,
15564
15575
  ...otherProps,
15565
15576
  ref: t29,
15566
- children: [t31, optionNodes]
15577
+ children: [t31, t32]
15567
15578
  });
15568
- $[89] = T1;
15569
- $[90] = formattedValue;
15570
- $[91] = handleValueChange;
15571
- $[92] = inputProps.name;
15572
- $[93] = optionNodes;
15573
- $[94] = otherProps;
15574
- $[95] = t15;
15575
- $[96] = t16;
15576
- $[97] = t17;
15577
- $[98] = t18;
15578
- $[99] = t19;
15579
- $[100] = t20;
15580
- $[101] = t21;
15581
- $[102] = t23;
15582
- $[103] = t25;
15583
- $[104] = t27;
15584
- $[105] = t29;
15585
- $[106] = t31;
15586
- $[107] = t32;
15587
- } else t32 = $[107];
15588
- let t33;
15589
- if ($[108] !== T0 || $[109] !== inlineIssues || $[110] !== t32) {
15590
- t33 = /* @__PURE__ */ jsxs(T0, { children: [t32, inlineIssues] });
15591
- $[108] = T0;
15592
- $[109] = inlineIssues;
15593
- $[110] = t32;
15594
- $[111] = t33;
15595
- } else t33 = $[111];
15596
- return t33;
15579
+ $[91] = T1;
15580
+ $[92] = formattedValue;
15581
+ $[93] = handleValueChange;
15582
+ $[94] = inputProps.name;
15583
+ $[95] = otherProps;
15584
+ $[96] = t15;
15585
+ $[97] = t16;
15586
+ $[98] = t17;
15587
+ $[99] = t18;
15588
+ $[100] = t19;
15589
+ $[101] = t20;
15590
+ $[102] = t21;
15591
+ $[103] = t23;
15592
+ $[104] = t25;
15593
+ $[105] = t27;
15594
+ $[106] = t29;
15595
+ $[107] = t31;
15596
+ $[108] = t32;
15597
+ $[109] = t33;
15598
+ } else t33 = $[109];
15599
+ let t34;
15600
+ if ($[110] !== T0 || $[111] !== inlineIssues || $[112] !== t33) {
15601
+ t34 = /* @__PURE__ */ jsxs(T0, { children: [t33, inlineIssues] });
15602
+ $[110] = T0;
15603
+ $[111] = inlineIssues;
15604
+ $[112] = t33;
15605
+ $[113] = t34;
15606
+ } else t34 = $[113];
15607
+ return t34;
15597
15608
  }
15598
15609
  function _temp6$1(t0) {
15599
15610
  const { path: path_0 } = t0;
@@ -16207,7 +16218,7 @@ function TableControlColumns(_props) {
16207
16218
  // src/components/TableControl/TableControlRow.tsx
16208
16219
  /** Row of a table control. */
16209
16220
  function TableControlRow(t0) {
16210
- const $ = c(27);
16221
+ const $ = c(21);
16211
16222
  let index;
16212
16223
  let otherProps;
16213
16224
  let row;
@@ -16251,63 +16262,40 @@ function TableControlRow(t0) {
16251
16262
  useRegisterController(controller);
16252
16263
  useRegisterLabel(path_0, row == null ? null : index + 1);
16253
16264
  const initialized_0 = useControllerState(controller, _temp2$4);
16254
- const t5 = row != null;
16255
- let t6;
16256
- if ($[11] !== t5) {
16257
- t6 = { enabled: t5 };
16258
- $[11] = t5;
16259
- $[12] = t6;
16260
- } else t6 = $[12];
16261
- const finishPrintingTask = useStartPrintingTask(t6);
16262
- let t7;
16263
- let t8;
16264
- if ($[13] !== finishPrintingTask || $[14] !== initialized_0) {
16265
- t7 = () => {
16266
- if (initialized_0) finishPrintingTask();
16267
- };
16268
- t8 = [finishPrintingTask, initialized_0];
16269
- $[13] = finishPrintingTask;
16270
- $[14] = initialized_0;
16271
- $[15] = t7;
16272
- $[16] = t8;
16273
- } else {
16274
- t7 = $[15];
16275
- t8 = $[16];
16276
- }
16277
- useEffect(t7, t8);
16278
- let t9;
16279
- if ($[17] !== index || $[18] !== otherProps || $[19] !== row) {
16280
- t9 = /* @__PURE__ */ jsx(DataTableRow, {
16265
+ usePrintingTask(row == null || !initialized_0);
16266
+ let t5;
16267
+ if ($[11] !== index || $[12] !== otherProps || $[13] !== row) {
16268
+ t5 = /* @__PURE__ */ jsx(DataTableRow, {
16281
16269
  row,
16282
16270
  index,
16283
16271
  ...otherProps
16284
16272
  });
16285
- $[17] = index;
16286
- $[18] = otherProps;
16287
- $[19] = row;
16288
- $[20] = t9;
16289
- } else t9 = $[20];
16290
- let t10;
16291
- if ($[21] !== t9 || $[22] !== tableControlRowController) {
16292
- t10 = /* @__PURE__ */ jsx(TableControlRowContext, {
16273
+ $[11] = index;
16274
+ $[12] = otherProps;
16275
+ $[13] = row;
16276
+ $[14] = t5;
16277
+ } else t5 = $[14];
16278
+ let t6;
16279
+ if ($[15] !== t5 || $[16] !== tableControlRowController) {
16280
+ t6 = /* @__PURE__ */ jsx(TableControlRowContext, {
16293
16281
  value: tableControlRowController,
16294
- children: t9
16282
+ children: t5
16295
16283
  });
16296
- $[21] = t9;
16297
- $[22] = tableControlRowController;
16298
- $[23] = t10;
16299
- } else t10 = $[23];
16300
- let t11;
16301
- if ($[24] !== path_0 || $[25] !== t10) {
16302
- t11 = /* @__PURE__ */ jsx(CurrentPath, {
16284
+ $[15] = t5;
16285
+ $[16] = tableControlRowController;
16286
+ $[17] = t6;
16287
+ } else t6 = $[17];
16288
+ let t7;
16289
+ if ($[18] !== path_0 || $[19] !== t6) {
16290
+ t7 = /* @__PURE__ */ jsx(CurrentPath, {
16303
16291
  path: path_0,
16304
- children: t10
16292
+ children: t6
16305
16293
  });
16306
- $[24] = path_0;
16307
- $[25] = t10;
16308
- $[26] = t11;
16309
- } else t11 = $[26];
16310
- return t11;
16294
+ $[18] = path_0;
16295
+ $[19] = t6;
16296
+ $[20] = t7;
16297
+ } else t7 = $[20];
16298
+ return t7;
16311
16299
  }
16312
16300
  function _temp2$4(t0) {
16313
16301
  const { initialized } = t0;