pxengine 0.1.96 → 0.1.97

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.cjs CHANGED
@@ -354,7 +354,7 @@ __export(index_exports, {
354
354
  module.exports = __toCommonJS(index_exports);
355
355
 
356
356
  // src/render/PXEngineRenderer.tsx
357
- var import_react94 = __toESM(require("react"), 1);
357
+ var import_react95 = __toESM(require("react"), 1);
358
358
 
359
359
  // src/atoms/index.ts
360
360
  var atoms_exports = {};
@@ -25145,6 +25145,9 @@ var CardAtom = ({
25145
25145
  );
25146
25146
  };
25147
25147
 
25148
+ // src/atoms/InputAtom.tsx
25149
+ var import_react5 = __toESM(require("react"), 1);
25150
+
25148
25151
  // src/components/ui/input.tsx
25149
25152
  var React5 = __toESM(require("react"), 1);
25150
25153
  var import_jsx_runtime8 = require("react/jsx-runtime");
@@ -25471,8 +25474,24 @@ var InputAtom = ({
25471
25474
  config,
25472
25475
  labelColor,
25473
25476
  className,
25474
- style
25477
+ style,
25478
+ fieldKey,
25479
+ id,
25480
+ onValueChange
25475
25481
  }) => {
25482
+ const [liveValue, setLiveValue] = import_react5.default.useState(defaultValue);
25483
+ const isInteractive = typeof onValueChange === "function";
25484
+ import_react5.default.useEffect(() => {
25485
+ if (isInteractive) {
25486
+ setLiveValue(defaultValue);
25487
+ }
25488
+ }, [defaultValue, isInteractive]);
25489
+ const handleChange = (val) => {
25490
+ setLiveValue(val);
25491
+ if (onValueChange) {
25492
+ onValueChange(fieldKey || id || label || "field", val);
25493
+ }
25494
+ };
25476
25495
  const containerClass = cn("flex flex-col gap-2 w-full", className);
25477
25496
  const getAlignmentClass = (textAlign2) => {
25478
25497
  switch (textAlign2) {
@@ -25517,12 +25536,14 @@ var InputAtom = ({
25517
25536
  },
25518
25537
  ...remainingStyle
25519
25538
  };
25539
+ const currentValue = isInteractive ? liveValue : defaultValue;
25520
25540
  const commonProps = {
25521
25541
  placeholder,
25522
- value: defaultValue,
25542
+ value: currentValue,
25523
25543
  disabled,
25524
25544
  required,
25525
- readOnly: true,
25545
+ // Only readOnly when not in interactive mode
25546
+ ...isInteractive ? {} : { readOnly: true },
25526
25547
  className: cn(
25527
25548
  "rounded-xl border-border bg-transparent focus:ring-primary shadow-none",
25528
25549
  className
@@ -25531,29 +25552,45 @@ var InputAtom = ({
25531
25552
  };
25532
25553
  switch (inputType) {
25533
25554
  case "textarea":
25534
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Textarea, { ...commonProps, rows: config?.rows || 3 });
25555
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25556
+ Textarea,
25557
+ {
25558
+ ...commonProps,
25559
+ rows: config?.rows || 3,
25560
+ onChange: isInteractive ? (e) => handleChange(e.target.value) : void 0
25561
+ }
25562
+ );
25535
25563
  case "select":
25536
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Select, { value: defaultValue, disabled, children: [
25537
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25538
- SelectTrigger,
25539
- {
25540
- className: cn("rounded-xl border-border bg-transparent shadow-none", className),
25541
- style: remainingStyle,
25542
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectValue, { placeholder: placeholder || "Select option" })
25543
- }
25544
- ),
25545
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectContent, { className: "rounded-xl border-border shadow-xl", children: options?.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
25546
- ] });
25564
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
25565
+ Select,
25566
+ {
25567
+ value: currentValue,
25568
+ disabled,
25569
+ onValueChange: isInteractive ? (val) => handleChange(val) : void 0,
25570
+ children: [
25571
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25572
+ SelectTrigger,
25573
+ {
25574
+ className: cn("rounded-xl border-border bg-transparent shadow-none", className),
25575
+ style: remainingStyle,
25576
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectValue, { placeholder: placeholder || "Select option" })
25577
+ }
25578
+ ),
25579
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectContent, { className: "rounded-xl border-border shadow-xl", children: options?.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
25580
+ ]
25581
+ }
25582
+ );
25547
25583
  case "slider":
25548
25584
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "pt-2 pb-1 w-full bg-transparent", style: remainingStyle, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25549
25585
  Slider,
25550
25586
  {
25551
- value: [defaultValue || config?.min || 0],
25587
+ value: [currentValue ?? config?.min ?? 0],
25552
25588
  max: config?.max || 100,
25553
25589
  min: config?.min || 0,
25554
25590
  step: config?.step || 1,
25555
25591
  disabled,
25556
- className: cn("py-4", className)
25592
+ className: cn("py-4", className),
25593
+ onValueChange: isInteractive ? ([val]) => handleChange(val) : void 0
25557
25594
  }
25558
25595
  ) });
25559
25596
  case "checkbox":
@@ -25562,9 +25599,10 @@ var InputAtom = ({
25562
25599
  Checkbox,
25563
25600
  {
25564
25601
  id: label,
25565
- checked: defaultValue,
25602
+ checked: Boolean(currentValue),
25566
25603
  disabled,
25567
- className: "rounded-[6px] border-border data-[state=checked]:bg-primary"
25604
+ className: "rounded-[6px] border-border data-[state=checked]:bg-primary",
25605
+ onCheckedChange: isInteractive ? (checked) => handleChange(Boolean(checked)) : void 0
25568
25606
  }
25569
25607
  ),
25570
25608
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
@@ -25592,9 +25630,10 @@ var InputAtom = ({
25592
25630
  Switch,
25593
25631
  {
25594
25632
  id: label,
25595
- checked: defaultValue,
25633
+ checked: Boolean(currentValue),
25596
25634
  disabled,
25597
- className: "data-[state=checked]:bg-primary"
25635
+ className: "data-[state=checked]:bg-primary",
25636
+ onCheckedChange: isInteractive ? (checked) => handleChange(Boolean(checked)) : void 0
25598
25637
  }
25599
25638
  )
25600
25639
  ] });
@@ -25602,10 +25641,11 @@ var InputAtom = ({
25602
25641
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25603
25642
  RadioGroup,
25604
25643
  {
25605
- value: defaultValue,
25644
+ value: currentValue,
25606
25645
  disabled,
25607
25646
  className: cn("gap-2.5 bg-transparent", className),
25608
25647
  style: remainingStyle,
25648
+ onValueChange: isInteractive ? (val) => handleChange(val) : void 0,
25609
25649
  children: options?.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center space-x-3 bg-transparent", children: [
25610
25650
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25611
25651
  RadioGroupItem,
@@ -25628,21 +25668,31 @@ var InputAtom = ({
25628
25668
  }
25629
25669
  );
25630
25670
  case "otp":
25631
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex justify-center py-2 bg-transparent", style: remainingStyle, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputOTP, { maxLength: config?.maxLength || 6, disabled, value: defaultValue, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputOTPGroup, { className: "gap-2 bg-transparent", children: Array.from({ length: config?.maxLength || 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25632
- InputOTPSlot,
25671
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex justify-center py-2 bg-transparent", style: remainingStyle, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25672
+ InputOTP,
25633
25673
  {
25634
- index: i,
25635
- className: "rounded-xl border border-border bg-transparent"
25636
- },
25637
- i
25638
- )) }) }) });
25674
+ maxLength: config?.maxLength || 6,
25675
+ disabled,
25676
+ value: currentValue ?? "",
25677
+ onChange: isInteractive ? (val) => handleChange(val) : void 0,
25678
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(InputOTPGroup, { className: "gap-2 bg-transparent", children: Array.from({ length: config?.maxLength || 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25679
+ InputOTPSlot,
25680
+ {
25681
+ index: i,
25682
+ className: "rounded-xl border border-border bg-transparent"
25683
+ },
25684
+ i
25685
+ )) })
25686
+ }
25687
+ ) });
25639
25688
  default:
25640
25689
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
25641
25690
  Input,
25642
25691
  {
25643
25692
  ...commonProps,
25644
25693
  type: inputType,
25645
- className: cn("rounded-xl border-border bg-transparent focus:ring-primary h-11 shadow-none", className)
25694
+ className: cn("rounded-xl border-border bg-transparent focus:ring-primary h-11 shadow-none", className),
25695
+ onChange: isInteractive ? (e) => handleChange(e.target.value) : void 0
25646
25696
  }
25647
25697
  );
25648
25698
  }
@@ -25716,10 +25766,10 @@ var BadgeAtom = ({
25716
25766
  };
25717
25767
 
25718
25768
  // src/components/ui/avatar.tsx
25719
- var React14 = __toESM(require("react"), 1);
25769
+ var React15 = __toESM(require("react"), 1);
25720
25770
  var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
25721
25771
  var import_jsx_runtime20 = require("react/jsx-runtime");
25722
- var Avatar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25772
+ var Avatar = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25723
25773
  AvatarPrimitive.Root,
25724
25774
  {
25725
25775
  ref,
@@ -25731,7 +25781,7 @@ var Avatar = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
25731
25781
  }
25732
25782
  ));
25733
25783
  Avatar.displayName = AvatarPrimitive.Root.displayName;
25734
- var AvatarImage = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25784
+ var AvatarImage = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25735
25785
  AvatarPrimitive.Image,
25736
25786
  {
25737
25787
  ref,
@@ -25740,7 +25790,7 @@ var AvatarImage = React14.forwardRef(({ className, ...props }, ref) => /* @__PUR
25740
25790
  }
25741
25791
  ));
25742
25792
  AvatarImage.displayName = AvatarPrimitive.Image.displayName;
25743
- var AvatarFallback = React14.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25793
+ var AvatarFallback = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
25744
25794
  AvatarPrimitive.Fallback,
25745
25795
  {
25746
25796
  ref,
@@ -25782,14 +25832,14 @@ var AvatarAtom = ({
25782
25832
  };
25783
25833
 
25784
25834
  // src/atoms/TabsAtom.tsx
25785
- var import_react5 = __toESM(require("react"), 1);
25835
+ var import_react6 = __toESM(require("react"), 1);
25786
25836
 
25787
25837
  // src/components/ui/tabs.tsx
25788
- var React15 = __toESM(require("react"), 1);
25838
+ var React16 = __toESM(require("react"), 1);
25789
25839
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
25790
25840
  var import_jsx_runtime22 = require("react/jsx-runtime");
25791
25841
  var Tabs = TabsPrimitive.Root;
25792
- var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25842
+ var TabsList = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25793
25843
  TabsPrimitive.List,
25794
25844
  {
25795
25845
  ref,
@@ -25801,7 +25851,7 @@ var TabsList = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__
25801
25851
  }
25802
25852
  ));
25803
25853
  TabsList.displayName = TabsPrimitive.List.displayName;
25804
- var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25854
+ var TabsTrigger = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25805
25855
  TabsPrimitive.Trigger,
25806
25856
  {
25807
25857
  ref,
@@ -25813,7 +25863,7 @@ var TabsTrigger = React15.forwardRef(({ className, ...props }, ref) => /* @__PUR
25813
25863
  }
25814
25864
  ));
25815
25865
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
25816
- var TabsContent = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25866
+ var TabsContent = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
25817
25867
  TabsPrimitive.Content,
25818
25868
  {
25819
25869
  ref,
@@ -25844,19 +25894,19 @@ var TabsAtom = ({
25844
25894
  },
25845
25895
  tab.value
25846
25896
  )) }),
25847
- tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TabsContent, { value: tab.value, className: "mt-4", children: tab.content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react5.default.Fragment, { children: renderComponent(child) }, child.id)) }, tab.value))
25897
+ tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TabsContent, { value: tab.value, className: "mt-4", children: tab.content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react6.default.Fragment, { children: renderComponent(child) }, child.id)) }, tab.value))
25848
25898
  ] });
25849
25899
  };
25850
25900
 
25851
25901
  // src/atoms/AccordionAtom.tsx
25852
- var import_react6 = __toESM(require("react"), 1);
25902
+ var import_react7 = __toESM(require("react"), 1);
25853
25903
 
25854
25904
  // src/components/ui/accordion.tsx
25855
- var React17 = __toESM(require("react"), 1);
25905
+ var React18 = __toESM(require("react"), 1);
25856
25906
  var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"), 1);
25857
25907
  var import_jsx_runtime24 = require("react/jsx-runtime");
25858
25908
  var Accordion = AccordionPrimitive.Root;
25859
- var AccordionItem = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
25909
+ var AccordionItem = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
25860
25910
  AccordionPrimitive.Item,
25861
25911
  {
25862
25912
  ref,
@@ -25865,7 +25915,7 @@ var AccordionItem = React17.forwardRef(({ className, ...props }, ref) => /* @__P
25865
25915
  }
25866
25916
  ));
25867
25917
  AccordionItem.displayName = "AccordionItem";
25868
- var AccordionTrigger = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
25918
+ var AccordionTrigger = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
25869
25919
  AccordionPrimitive.Trigger,
25870
25920
  {
25871
25921
  ref,
@@ -25881,7 +25931,7 @@ var AccordionTrigger = React17.forwardRef(({ className, children, ...props }, re
25881
25931
  }
25882
25932
  ) }));
25883
25933
  AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
25884
- var AccordionContent = React17.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
25934
+ var AccordionContent = React18.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
25885
25935
  AccordionPrimitive.Content,
25886
25936
  {
25887
25937
  ref,
@@ -25906,7 +25956,7 @@ var AccordionAtom = ({
25906
25956
  className: "border-gray-100",
25907
25957
  children: [
25908
25958
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AccordionTrigger, { className: "text-sm font-semibold hover:no-underline hover:text-purple600 py-4", children: item.trigger }),
25909
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "pt-2 pb-4", children: item.content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react6.default.Fragment, { children: renderComponent(child) }, child.id)) }) })
25959
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AccordionContent, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "pt-2 pb-4", children: item.content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react7.default.Fragment, { children: renderComponent(child) }, child.id)) }) })
25910
25960
  ]
25911
25961
  },
25912
25962
  item.value
@@ -25914,10 +25964,10 @@ var AccordionAtom = ({
25914
25964
  };
25915
25965
 
25916
25966
  // src/components/ui/progress.tsx
25917
- var React19 = __toESM(require("react"), 1);
25967
+ var React20 = __toESM(require("react"), 1);
25918
25968
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
25919
25969
  var import_jsx_runtime26 = require("react/jsx-runtime");
25920
- var Progress = React19.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
25970
+ var Progress = React20.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
25921
25971
  ProgressPrimitive.Root,
25922
25972
  {
25923
25973
  ref,
@@ -25998,7 +26048,7 @@ var SkeletonAtom = ({
25998
26048
  };
25999
26049
 
26000
26050
  // src/components/ui/alert.tsx
26001
- var React20 = __toESM(require("react"), 1);
26051
+ var React21 = __toESM(require("react"), 1);
26002
26052
  var import_class_variance_authority4 = require("class-variance-authority");
26003
26053
  var import_jsx_runtime30 = require("react/jsx-runtime");
26004
26054
  var alertVariants = (0, import_class_variance_authority4.cva)(
@@ -26015,7 +26065,7 @@ var alertVariants = (0, import_class_variance_authority4.cva)(
26015
26065
  }
26016
26066
  }
26017
26067
  );
26018
- var Alert = React20.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26068
+ var Alert = React21.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26019
26069
  "div",
26020
26070
  {
26021
26071
  ref,
@@ -26025,7 +26075,7 @@ var Alert = React20.forwardRef(({ className, variant, ...props }, ref) => /* @__
26025
26075
  }
26026
26076
  ));
26027
26077
  Alert.displayName = "Alert";
26028
- var AlertTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26078
+ var AlertTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26029
26079
  "h5",
26030
26080
  {
26031
26081
  ref,
@@ -26034,7 +26084,7 @@ var AlertTitle = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE
26034
26084
  }
26035
26085
  ));
26036
26086
  AlertTitle.displayName = "AlertTitle";
26037
- var AlertDescription = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26087
+ var AlertDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
26038
26088
  "div",
26039
26089
  {
26040
26090
  ref,
@@ -26094,10 +26144,10 @@ var AlertAtom = ({
26094
26144
  };
26095
26145
 
26096
26146
  // src/components/ui/separator.tsx
26097
- var React21 = __toESM(require("react"), 1);
26147
+ var React22 = __toESM(require("react"), 1);
26098
26148
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
26099
26149
  var import_jsx_runtime32 = require("react/jsx-runtime");
26100
- var Separator2 = React21.forwardRef(
26150
+ var Separator2 = React22.forwardRef(
26101
26151
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
26102
26152
  SeparatorPrimitive.Root,
26103
26153
  {
@@ -26138,9 +26188,9 @@ var SeparatorAtom = ({
26138
26188
  };
26139
26189
 
26140
26190
  // src/components/ui/table.tsx
26141
- var React22 = __toESM(require("react"), 1);
26191
+ var React23 = __toESM(require("react"), 1);
26142
26192
  var import_jsx_runtime34 = require("react/jsx-runtime");
26143
- var Table3 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26193
+ var Table3 = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26144
26194
  "table",
26145
26195
  {
26146
26196
  ref,
@@ -26149,9 +26199,9 @@ var Table3 = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
26149
26199
  }
26150
26200
  ) }));
26151
26201
  Table3.displayName = "Table";
26152
- var TableHeader = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
26202
+ var TableHeader = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
26153
26203
  TableHeader.displayName = "TableHeader";
26154
- var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26204
+ var TableBody = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26155
26205
  "tbody",
26156
26206
  {
26157
26207
  ref,
@@ -26160,7 +26210,7 @@ var TableBody = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
26160
26210
  }
26161
26211
  ));
26162
26212
  TableBody.displayName = "TableBody";
26163
- var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26213
+ var TableFooter = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26164
26214
  "tfoot",
26165
26215
  {
26166
26216
  ref,
@@ -26172,7 +26222,7 @@ var TableFooter = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
26172
26222
  }
26173
26223
  ));
26174
26224
  TableFooter.displayName = "TableFooter";
26175
- var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26225
+ var TableRow = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26176
26226
  "tr",
26177
26227
  {
26178
26228
  ref,
@@ -26184,7 +26234,7 @@ var TableRow = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__
26184
26234
  }
26185
26235
  ));
26186
26236
  TableRow.displayName = "TableRow";
26187
- var TableHead = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26237
+ var TableHead = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26188
26238
  "th",
26189
26239
  {
26190
26240
  ref,
@@ -26196,7 +26246,7 @@ var TableHead = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
26196
26246
  }
26197
26247
  ));
26198
26248
  TableHead.displayName = "TableHead";
26199
- var TableCell = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26249
+ var TableCell = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26200
26250
  "td",
26201
26251
  {
26202
26252
  ref,
@@ -26205,7 +26255,7 @@ var TableCell = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE_
26205
26255
  }
26206
26256
  ));
26207
26257
  TableCell.displayName = "TableCell";
26208
- var TableCaption = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26258
+ var TableCaption = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
26209
26259
  "caption",
26210
26260
  {
26211
26261
  ref,
@@ -26290,13 +26340,13 @@ var TableAtom = ({
26290
26340
  };
26291
26341
 
26292
26342
  // src/atoms/ScrollAreaAtom.tsx
26293
- var import_react7 = __toESM(require("react"), 1);
26343
+ var import_react8 = __toESM(require("react"), 1);
26294
26344
 
26295
26345
  // src/components/ui/scroll-area.tsx
26296
- var React23 = __toESM(require("react"), 1);
26346
+ var React24 = __toESM(require("react"), 1);
26297
26347
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
26298
26348
  var import_jsx_runtime36 = require("react/jsx-runtime");
26299
- var ScrollArea = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
26349
+ var ScrollArea = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
26300
26350
  ScrollAreaPrimitive.Root,
26301
26351
  {
26302
26352
  ref,
@@ -26310,7 +26360,7 @@ var ScrollArea = React23.forwardRef(({ className, children, ...props }, ref) =>
26310
26360
  }
26311
26361
  ));
26312
26362
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
26313
- var ScrollBar = React23.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26363
+ var ScrollBar = React24.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
26314
26364
  ScrollAreaPrimitive.ScrollAreaScrollbar,
26315
26365
  {
26316
26366
  ref,
@@ -26341,7 +26391,7 @@ var ScrollAreaAtom = ({
26341
26391
  className: cn("rounded-xl border", className),
26342
26392
  style: { height: maxHeight },
26343
26393
  children: [
26344
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "p-4", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react7.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26394
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "p-4", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react8.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26345
26395
  /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ScrollBar, { orientation: "vertical" })
26346
26396
  ]
26347
26397
  }
@@ -26349,21 +26399,21 @@ var ScrollAreaAtom = ({
26349
26399
  };
26350
26400
 
26351
26401
  // src/atoms/CarouselAtom.tsx
26352
- var import_react8 = __toESM(require("react"), 1);
26402
+ var import_react9 = __toESM(require("react"), 1);
26353
26403
 
26354
26404
  // src/components/ui/carousel.tsx
26355
- var React25 = __toESM(require("react"), 1);
26405
+ var React26 = __toESM(require("react"), 1);
26356
26406
  var import_embla_carousel_react = __toESM(require("embla-carousel-react"), 1);
26357
26407
  var import_jsx_runtime38 = require("react/jsx-runtime");
26358
- var CarouselContext = React25.createContext(null);
26408
+ var CarouselContext = React26.createContext(null);
26359
26409
  function useCarousel() {
26360
- const context = React25.useContext(CarouselContext);
26410
+ const context = React26.useContext(CarouselContext);
26361
26411
  if (!context) {
26362
26412
  throw new Error("useCarousel must be used within a <Carousel />");
26363
26413
  }
26364
26414
  return context;
26365
26415
  }
26366
- var Carousel = React25.forwardRef(
26416
+ var Carousel = React26.forwardRef(
26367
26417
  ({
26368
26418
  orientation = "horizontal",
26369
26419
  opts,
@@ -26380,22 +26430,22 @@ var Carousel = React25.forwardRef(
26380
26430
  },
26381
26431
  plugins
26382
26432
  );
26383
- const [canScrollPrev, setCanScrollPrev] = React25.useState(false);
26384
- const [canScrollNext, setCanScrollNext] = React25.useState(false);
26385
- const onSelect = React25.useCallback((api2) => {
26433
+ const [canScrollPrev, setCanScrollPrev] = React26.useState(false);
26434
+ const [canScrollNext, setCanScrollNext] = React26.useState(false);
26435
+ const onSelect = React26.useCallback((api2) => {
26386
26436
  if (!api2) {
26387
26437
  return;
26388
26438
  }
26389
26439
  setCanScrollPrev(api2.canScrollPrev());
26390
26440
  setCanScrollNext(api2.canScrollNext());
26391
26441
  }, []);
26392
- const scrollPrev = React25.useCallback(() => {
26442
+ const scrollPrev = React26.useCallback(() => {
26393
26443
  api?.scrollPrev();
26394
26444
  }, [api]);
26395
- const scrollNext = React25.useCallback(() => {
26445
+ const scrollNext = React26.useCallback(() => {
26396
26446
  api?.scrollNext();
26397
26447
  }, [api]);
26398
- const handleKeyDown = React25.useCallback(
26448
+ const handleKeyDown = React26.useCallback(
26399
26449
  (event) => {
26400
26450
  if (event.key === "ArrowLeft") {
26401
26451
  event.preventDefault();
@@ -26407,13 +26457,13 @@ var Carousel = React25.forwardRef(
26407
26457
  },
26408
26458
  [scrollPrev, scrollNext]
26409
26459
  );
26410
- React25.useEffect(() => {
26460
+ React26.useEffect(() => {
26411
26461
  if (!api || !setApi) {
26412
26462
  return;
26413
26463
  }
26414
26464
  setApi(api);
26415
26465
  }, [api, setApi]);
26416
- React25.useEffect(() => {
26466
+ React26.useEffect(() => {
26417
26467
  if (!api) {
26418
26468
  return;
26419
26469
  }
@@ -26454,7 +26504,7 @@ var Carousel = React25.forwardRef(
26454
26504
  }
26455
26505
  );
26456
26506
  Carousel.displayName = "Carousel";
26457
- var CarouselContent = React25.forwardRef(({ className, ...props }, ref) => {
26507
+ var CarouselContent = React26.forwardRef(({ className, ...props }, ref) => {
26458
26508
  const { carouselRef, orientation } = useCarousel();
26459
26509
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
26460
26510
  "div",
@@ -26470,7 +26520,7 @@ var CarouselContent = React25.forwardRef(({ className, ...props }, ref) => {
26470
26520
  ) });
26471
26521
  });
26472
26522
  CarouselContent.displayName = "CarouselContent";
26473
- var CarouselItem = React25.forwardRef(({ className, ...props }, ref) => {
26523
+ var CarouselItem = React26.forwardRef(({ className, ...props }, ref) => {
26474
26524
  const { orientation } = useCarousel();
26475
26525
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
26476
26526
  "div",
@@ -26488,7 +26538,7 @@ var CarouselItem = React25.forwardRef(({ className, ...props }, ref) => {
26488
26538
  );
26489
26539
  });
26490
26540
  CarouselItem.displayName = "CarouselItem";
26491
- var CarouselPrevious = React25.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
26541
+ var CarouselPrevious = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
26492
26542
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
26493
26543
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
26494
26544
  Button,
@@ -26512,7 +26562,7 @@ var CarouselPrevious = React25.forwardRef(({ className, variant = "outline", siz
26512
26562
  );
26513
26563
  });
26514
26564
  CarouselPrevious.displayName = "CarouselPrevious";
26515
- var CarouselNext = React25.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
26565
+ var CarouselNext = React26.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
26516
26566
  const { orientation, scrollNext, canScrollNext } = useCarousel();
26517
26567
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
26518
26568
  Button,
@@ -26545,14 +26595,14 @@ var CarouselAtom = ({
26545
26595
  renderComponent
26546
26596
  }) => {
26547
26597
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Carousel, { className: cn("w-full max-w-xs mx-auto", className), children: [
26548
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselContent, { children: items.map((slide, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "p-1", children: slide.map((child) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react8.default.Fragment, { children: renderComponent(child) }, child.id)) }) }, index)) }),
26598
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselContent, { children: items.map((slide, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselItem, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "p-1", children: slide.map((child) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react9.default.Fragment, { children: renderComponent(child) }, child.id)) }) }, index)) }),
26549
26599
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselPrevious, {}),
26550
26600
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CarouselNext, {})
26551
26601
  ] });
26552
26602
  };
26553
26603
 
26554
26604
  // src/atoms/AspectRatioAtom.tsx
26555
- var import_react9 = __toESM(require("react"), 1);
26605
+ var import_react10 = __toESM(require("react"), 1);
26556
26606
 
26557
26607
  // src/components/ui/aspect-ratio.tsx
26558
26608
  var AspectRatioPrimitive = __toESM(require("@radix-ui/react-aspect-ratio"), 1);
@@ -26566,11 +26616,11 @@ var AspectRatioAtom = ({
26566
26616
  className,
26567
26617
  renderComponent
26568
26618
  }) => {
26569
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AspectRatio, { ratio, children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react9.default.Fragment, { children: renderComponent(child) }, child.id)) }) });
26619
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("w-full", className), children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(AspectRatio, { ratio, children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react10.default.Fragment, { children: renderComponent(child) }, child.id)) }) });
26570
26620
  };
26571
26621
 
26572
26622
  // src/atoms/CollapsibleAtom.tsx
26573
- var import_react10 = __toESM(require("react"), 1);
26623
+ var import_react11 = __toESM(require("react"), 1);
26574
26624
 
26575
26625
  // src/components/ui/collapsible.tsx
26576
26626
  var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"), 1);
@@ -26593,24 +26643,24 @@ var CollapsibleAtom = ({
26593
26643
  defaultOpen,
26594
26644
  className: cn("w-full space-y-2", className),
26595
26645
  children: [
26596
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center justify-between space-x-4 px-4 py-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors", children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react10.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26597
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CollapsibleContent2, { className: "space-y-2", children: content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react10.default.Fragment, { children: renderComponent(child) }, child.id)) })
26646
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CollapsibleTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex items-center justify-between space-x-4 px-4 py-2 bg-gray-50 rounded-lg cursor-pointer hover:bg-gray-100 transition-colors", children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react11.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26647
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CollapsibleContent2, { className: "space-y-2", children: content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react11.default.Fragment, { children: renderComponent(child) }, child.id)) })
26598
26648
  ]
26599
26649
  }
26600
26650
  );
26601
26651
  };
26602
26652
 
26603
26653
  // src/atoms/TooltipAtom.tsx
26604
- var import_react11 = __toESM(require("react"), 1);
26654
+ var import_react12 = __toESM(require("react"), 1);
26605
26655
 
26606
26656
  // src/components/ui/tooltip.tsx
26607
- var React29 = __toESM(require("react"), 1);
26657
+ var React30 = __toESM(require("react"), 1);
26608
26658
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
26609
26659
  var import_jsx_runtime42 = require("react/jsx-runtime");
26610
26660
  var TooltipProvider = TooltipPrimitive.Provider;
26611
26661
  var Tooltip = TooltipPrimitive.Root;
26612
26662
  var TooltipTrigger = TooltipPrimitive.Trigger;
26613
- var TooltipContent = React29.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
26663
+ var TooltipContent = React30.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
26614
26664
  TooltipPrimitive.Content,
26615
26665
  {
26616
26666
  ref,
@@ -26633,21 +26683,21 @@ var TooltipAtom = ({
26633
26683
  renderComponent
26634
26684
  }) => {
26635
26685
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Tooltip, { children: [
26636
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: cn("inline-block", className), children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react11.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26686
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: cn("inline-block", className), children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react12.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26637
26687
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TooltipContent, { className: "bg-gray-900 text-white border-none rounded-lg shadow-xl px-3 py-1.5 text-xs", children: content })
26638
26688
  ] }) });
26639
26689
  };
26640
26690
 
26641
26691
  // src/atoms/PopoverAtom.tsx
26642
- var import_react12 = __toESM(require("react"), 1);
26692
+ var import_react13 = __toESM(require("react"), 1);
26643
26693
 
26644
26694
  // src/components/ui/popover.tsx
26645
- var React31 = __toESM(require("react"), 1);
26695
+ var React32 = __toESM(require("react"), 1);
26646
26696
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
26647
26697
  var import_jsx_runtime44 = require("react/jsx-runtime");
26648
26698
  var Popover = PopoverPrimitive.Root;
26649
26699
  var PopoverTrigger = PopoverPrimitive.Trigger;
26650
- var PopoverContent = React31.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
26700
+ var PopoverContent = React32.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
26651
26701
  PopoverPrimitive.Content,
26652
26702
  {
26653
26703
  ref,
@@ -26671,23 +26721,23 @@ var PopoverAtom = ({
26671
26721
  renderComponent
26672
26722
  }) => {
26673
26723
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(Popover, { children: [
26674
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react12.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26675
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverContent, { className: "w-80 rounded-2xl shadow-2xl border-gray-100 p-4 bg-white/95 backdrop-blur-sm", children: content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react12.default.Fragment, { children: renderComponent(child) }, child.id)) })
26724
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react13.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26725
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PopoverContent, { className: "w-80 rounded-2xl shadow-2xl border-gray-100 p-4 bg-white/95 backdrop-blur-sm", children: content.map((child) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react13.default.Fragment, { children: renderComponent(child) }, child.id)) })
26676
26726
  ] });
26677
26727
  };
26678
26728
 
26679
26729
  // src/atoms/DialogAtom.tsx
26680
- var import_react13 = __toESM(require("react"), 1);
26730
+ var import_react14 = __toESM(require("react"), 1);
26681
26731
 
26682
26732
  // src/components/ui/dialog.tsx
26683
- var React33 = __toESM(require("react"), 1);
26733
+ var React34 = __toESM(require("react"), 1);
26684
26734
  var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
26685
26735
  var import_jsx_runtime46 = require("react/jsx-runtime");
26686
26736
  var Dialog = DialogPrimitive.Root;
26687
26737
  var DialogTrigger = DialogPrimitive.Trigger;
26688
26738
  var DialogPortal = DialogPrimitive.Portal;
26689
26739
  var DialogClose = DialogPrimitive.Close;
26690
- var DialogOverlay = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26740
+ var DialogOverlay = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26691
26741
  DialogPrimitive.Overlay,
26692
26742
  {
26693
26743
  ref,
@@ -26699,7 +26749,7 @@ var DialogOverlay = React33.forwardRef(({ className, ...props }, ref) => /* @__P
26699
26749
  }
26700
26750
  ));
26701
26751
  DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
26702
- var DialogContent = React33.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(DialogPortal, { children: [
26752
+ var DialogContent = React34.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(DialogPortal, { children: [
26703
26753
  /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(DialogOverlay, {}),
26704
26754
  /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
26705
26755
  DialogPrimitive.Content,
@@ -26749,7 +26799,7 @@ var DialogFooter = ({
26749
26799
  }
26750
26800
  );
26751
26801
  DialogFooter.displayName = "DialogFooter";
26752
- var DialogTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26802
+ var DialogTitle = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26753
26803
  DialogPrimitive.Title,
26754
26804
  {
26755
26805
  ref,
@@ -26761,7 +26811,7 @@ var DialogTitle = React33.forwardRef(({ className, ...props }, ref) => /* @__PUR
26761
26811
  }
26762
26812
  ));
26763
26813
  DialogTitle.displayName = DialogPrimitive.Title.displayName;
26764
- var DialogDescription = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26814
+ var DialogDescription = React34.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26765
26815
  DialogPrimitive.Description,
26766
26816
  {
26767
26817
  ref,
@@ -26783,23 +26833,23 @@ var DialogAtom = ({
26783
26833
  renderComponent
26784
26834
  }) => {
26785
26835
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Dialog, { children: [
26786
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react13.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26836
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26787
26837
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DialogContent, { className: "sm:max-w-[425px] rounded-3xl p-6 bg-white/95 backdrop-blur-md shadow-3xl border-gray-100", children: [
26788
26838
  /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(DialogHeader, { children: [
26789
26839
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogTitle, { className: "text-xl font-bold bg-gradient-to-r from-purple600 to-indigo-600 bg-clip-text text-transparent", children: title }),
26790
26840
  description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogDescription, { className: "text-gray-500 font-medium pt-1", children: description })
26791
26841
  ] }),
26792
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "py-4", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react13.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26793
- footer && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogFooter, { className: "pt-2", children: footer.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react13.default.Fragment, { children: renderComponent(child) }, child.id)) })
26842
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "py-4", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26843
+ footer && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DialogFooter, { className: "pt-2", children: footer.map((child) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) })
26794
26844
  ] })
26795
26845
  ] });
26796
26846
  };
26797
26847
 
26798
26848
  // src/atoms/SheetAtom.tsx
26799
- var import_react14 = __toESM(require("react"), 1);
26849
+ var import_react15 = __toESM(require("react"), 1);
26800
26850
 
26801
26851
  // src/components/ui/sheet.tsx
26802
- var React35 = __toESM(require("react"), 1);
26852
+ var React36 = __toESM(require("react"), 1);
26803
26853
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
26804
26854
  var import_class_variance_authority5 = require("class-variance-authority");
26805
26855
  var import_jsx_runtime48 = require("react/jsx-runtime");
@@ -26807,7 +26857,7 @@ var Sheet2 = SheetPrimitive.Root;
26807
26857
  var SheetTrigger = SheetPrimitive.Trigger;
26808
26858
  var SheetClose = SheetPrimitive.Close;
26809
26859
  var SheetPortal = SheetPrimitive.Portal;
26810
- var SheetOverlay = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26860
+ var SheetOverlay = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26811
26861
  SheetPrimitive.Overlay,
26812
26862
  {
26813
26863
  className: cn(
@@ -26835,7 +26885,7 @@ var sheetVariants = (0, import_class_variance_authority5.cva)(
26835
26885
  }
26836
26886
  }
26837
26887
  );
26838
- var SheetContent = React35.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SheetPortal, { children: [
26888
+ var SheetContent = React36.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(SheetPortal, { children: [
26839
26889
  /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SheetOverlay, {}),
26840
26890
  /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
26841
26891
  SheetPrimitive.Content,
@@ -26882,7 +26932,7 @@ var SheetFooter = ({
26882
26932
  }
26883
26933
  );
26884
26934
  SheetFooter.displayName = "SheetFooter";
26885
- var SheetTitle = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26935
+ var SheetTitle = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26886
26936
  SheetPrimitive.Title,
26887
26937
  {
26888
26938
  ref,
@@ -26891,7 +26941,7 @@ var SheetTitle = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE
26891
26941
  }
26892
26942
  ));
26893
26943
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
26894
- var SheetDescription = React35.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26944
+ var SheetDescription = React36.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26895
26945
  SheetPrimitive.Description,
26896
26946
  {
26897
26947
  ref,
@@ -26914,7 +26964,7 @@ var SheetAtom = ({
26914
26964
  renderComponent
26915
26965
  }) => {
26916
26966
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Sheet2, { children: [
26917
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26967
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react15.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
26918
26968
  /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
26919
26969
  SheetContent,
26920
26970
  {
@@ -26925,8 +26975,8 @@ var SheetAtom = ({
26925
26975
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetTitle, { className: "text-xl font-bold text-gray-900", children: title }),
26926
26976
  description && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetDescription, { className: "text-gray-500 font-medium", children: description })
26927
26977
  ] }),
26928
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "py-8", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26929
- footer && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetFooter, { className: "absolute bottom-6 left-6 right-6", children: footer.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react14.default.Fragment, { children: renderComponent(child) }, child.id)) })
26978
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "py-8", children: children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react15.default.Fragment, { children: renderComponent(child) }, child.id)) }),
26979
+ footer && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SheetFooter, { className: "absolute bottom-6 left-6 right-6", children: footer.map((child) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react15.default.Fragment, { children: renderComponent(child) }, child.id)) })
26930
26980
  ]
26931
26981
  }
26932
26982
  )
@@ -26934,16 +26984,16 @@ var SheetAtom = ({
26934
26984
  };
26935
26985
 
26936
26986
  // src/atoms/AlertDialogAtom.tsx
26937
- var import_react15 = __toESM(require("react"), 1);
26987
+ var import_react16 = __toESM(require("react"), 1);
26938
26988
 
26939
26989
  // src/components/ui/alert-dialog.tsx
26940
- var React37 = __toESM(require("react"), 1);
26990
+ var React38 = __toESM(require("react"), 1);
26941
26991
  var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
26942
26992
  var import_jsx_runtime50 = require("react/jsx-runtime");
26943
26993
  var AlertDialog = AlertDialogPrimitive.Root;
26944
26994
  var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
26945
26995
  var AlertDialogPortal = AlertDialogPrimitive.Portal;
26946
- var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
26996
+ var AlertDialogOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
26947
26997
  AlertDialogPrimitive.Overlay,
26948
26998
  {
26949
26999
  className: cn(
@@ -26955,7 +27005,7 @@ var AlertDialogOverlay = React37.forwardRef(({ className, ...props }, ref) => /*
26955
27005
  }
26956
27006
  ));
26957
27007
  AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
26958
- var AlertDialogContent = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(AlertDialogPortal, { children: [
27008
+ var AlertDialogContent = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(AlertDialogPortal, { children: [
26959
27009
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AlertDialogOverlay, {}),
26960
27010
  /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
26961
27011
  AlertDialogPrimitive.Content,
@@ -26998,7 +27048,7 @@ var AlertDialogFooter = ({
26998
27048
  }
26999
27049
  );
27000
27050
  AlertDialogFooter.displayName = "AlertDialogFooter";
27001
- var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27051
+ var AlertDialogTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27002
27052
  AlertDialogPrimitive.Title,
27003
27053
  {
27004
27054
  ref,
@@ -27007,7 +27057,7 @@ var AlertDialogTitle = React37.forwardRef(({ className, ...props }, ref) => /* @
27007
27057
  }
27008
27058
  ));
27009
27059
  AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
27010
- var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27060
+ var AlertDialogDescription = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27011
27061
  AlertDialogPrimitive.Description,
27012
27062
  {
27013
27063
  ref,
@@ -27016,7 +27066,7 @@ var AlertDialogDescription = React37.forwardRef(({ className, ...props }, ref) =
27016
27066
  }
27017
27067
  ));
27018
27068
  AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
27019
- var AlertDialogAction = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27069
+ var AlertDialogAction = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27020
27070
  AlertDialogPrimitive.Action,
27021
27071
  {
27022
27072
  ref,
@@ -27025,7 +27075,7 @@ var AlertDialogAction = React37.forwardRef(({ className, ...props }, ref) => /*
27025
27075
  }
27026
27076
  ));
27027
27077
  AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
27028
- var AlertDialogCancel = React37.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27078
+ var AlertDialogCancel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
27029
27079
  AlertDialogPrimitive.Cancel,
27030
27080
  {
27031
27081
  ref,
@@ -27053,7 +27103,7 @@ var AlertDialogAtom = ({
27053
27103
  renderComponent
27054
27104
  }) => {
27055
27105
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AlertDialog, { children: [
27056
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react15.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
27106
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlertDialogTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: cn("inline-block cursor-pointer", className), children: trigger.map((child) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react16.default.Fragment, { children: renderComponent(child) }, child.id)) }) }),
27057
27107
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AlertDialogContent, { className: "rounded-3xl p-6 bg-white shadow-3xl border-gray-100", children: [
27058
27108
  /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(AlertDialogHeader, { children: [
27059
27109
  /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlertDialogTitle, { className: "text-lg font-bold text-gray-900", children: title }),
@@ -27075,15 +27125,15 @@ var AlertDialogAtom = ({
27075
27125
  };
27076
27126
 
27077
27127
  // src/atoms/BreadcrumbAtom.tsx
27078
- var import_react16 = __toESM(require("react"), 1);
27128
+ var import_react17 = __toESM(require("react"), 1);
27079
27129
 
27080
27130
  // src/components/ui/breadcrumb.tsx
27081
- var React39 = __toESM(require("react"), 1);
27131
+ var React40 = __toESM(require("react"), 1);
27082
27132
  var import_react_slot2 = require("@radix-ui/react-slot");
27083
27133
  var import_jsx_runtime52 = require("react/jsx-runtime");
27084
- var Breadcrumb = React39.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
27134
+ var Breadcrumb = React40.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("nav", { ref, "aria-label": "breadcrumb", ...props }));
27085
27135
  Breadcrumb.displayName = "Breadcrumb";
27086
- var BreadcrumbList = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27136
+ var BreadcrumbList = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27087
27137
  "ol",
27088
27138
  {
27089
27139
  ref,
@@ -27095,7 +27145,7 @@ var BreadcrumbList = React39.forwardRef(({ className, ...props }, ref) => /* @__
27095
27145
  }
27096
27146
  ));
27097
27147
  BreadcrumbList.displayName = "BreadcrumbList";
27098
- var BreadcrumbItem = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27148
+ var BreadcrumbItem = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27099
27149
  "li",
27100
27150
  {
27101
27151
  ref,
@@ -27104,7 +27154,7 @@ var BreadcrumbItem = React39.forwardRef(({ className, ...props }, ref) => /* @__
27104
27154
  }
27105
27155
  ));
27106
27156
  BreadcrumbItem.displayName = "BreadcrumbItem";
27107
- var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref) => {
27157
+ var BreadcrumbLink = React40.forwardRef(({ asChild, className, ...props }, ref) => {
27108
27158
  const Comp = asChild ? import_react_slot2.Slot : "a";
27109
27159
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27110
27160
  Comp,
@@ -27116,7 +27166,7 @@ var BreadcrumbLink = React39.forwardRef(({ asChild, className, ...props }, ref)
27116
27166
  );
27117
27167
  });
27118
27168
  BreadcrumbLink.displayName = "BreadcrumbLink";
27119
- var BreadcrumbPage = React39.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27169
+ var BreadcrumbPage = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
27120
27170
  "span",
27121
27171
  {
27122
27172
  ref,
@@ -27167,7 +27217,7 @@ var BreadcrumbAtom = ({
27167
27217
  items,
27168
27218
  className
27169
27219
  }) => {
27170
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Breadcrumb, { className, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbList, { children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react16.default.Fragment, { children: [
27220
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Breadcrumb, { className, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbList, { children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react17.default.Fragment, { children: [
27171
27221
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbItem, { children: item.isCurrent ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbPage, { children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbLink, { href: item.href || "#", children: item.label }) }),
27172
27222
  index < items.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(BreadcrumbSeparator, {})
27173
27223
  ] }, index)) }) });
@@ -27206,7 +27256,7 @@ var SpinnerAtom = ({
27206
27256
  };
27207
27257
 
27208
27258
  // src/components/ui/calendar.tsx
27209
- var React68 = __toESM(require("react"), 1);
27259
+ var React69 = __toESM(require("react"), 1);
27210
27260
 
27211
27261
  // node_modules/@date-fns/tz/tzName/index.js
27212
27262
  function tzName(timeZone, date, format2 = "long") {
@@ -29659,55 +29709,55 @@ __export(custom_components_exports, {
29659
29709
  });
29660
29710
 
29661
29711
  // node_modules/react-day-picker/dist/esm/components/Button.js
29662
- var import_react17 = __toESM(require("react"), 1);
29712
+ var import_react18 = __toESM(require("react"), 1);
29663
29713
  function Button2(props) {
29664
- return import_react17.default.createElement("button", { ...props });
29714
+ return import_react18.default.createElement("button", { ...props });
29665
29715
  }
29666
29716
 
29667
29717
  // node_modules/react-day-picker/dist/esm/components/CaptionLabel.js
29668
- var import_react18 = __toESM(require("react"), 1);
29718
+ var import_react19 = __toESM(require("react"), 1);
29669
29719
  function CaptionLabel(props) {
29670
- return import_react18.default.createElement("span", { ...props });
29720
+ return import_react19.default.createElement("span", { ...props });
29671
29721
  }
29672
29722
 
29673
29723
  // node_modules/react-day-picker/dist/esm/components/Chevron.js
29674
- var import_react19 = __toESM(require("react"), 1);
29724
+ var import_react20 = __toESM(require("react"), 1);
29675
29725
  function Chevron(props) {
29676
29726
  const { size = 24, orientation = "left", className } = props;
29677
29727
  return (
29678
29728
  // biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
29679
- import_react19.default.createElement(
29729
+ import_react20.default.createElement(
29680
29730
  "svg",
29681
29731
  { className, width: size, height: size, viewBox: "0 0 24 24" },
29682
- orientation === "up" && import_react19.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
29683
- orientation === "down" && import_react19.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
29684
- orientation === "left" && import_react19.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
29685
- orientation === "right" && import_react19.default.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
29732
+ orientation === "up" && import_react20.default.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
29733
+ orientation === "down" && import_react20.default.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
29734
+ orientation === "left" && import_react20.default.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
29735
+ orientation === "right" && import_react20.default.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
29686
29736
  )
29687
29737
  );
29688
29738
  }
29689
29739
 
29690
29740
  // node_modules/react-day-picker/dist/esm/components/Day.js
29691
- var import_react20 = __toESM(require("react"), 1);
29741
+ var import_react21 = __toESM(require("react"), 1);
29692
29742
  function Day(props) {
29693
29743
  const { day, modifiers, ...tdProps } = props;
29694
- return import_react20.default.createElement("td", { ...tdProps });
29744
+ return import_react21.default.createElement("td", { ...tdProps });
29695
29745
  }
29696
29746
 
29697
29747
  // node_modules/react-day-picker/dist/esm/components/DayButton.js
29698
- var import_react21 = __toESM(require("react"), 1);
29748
+ var import_react22 = __toESM(require("react"), 1);
29699
29749
  function DayButton(props) {
29700
29750
  const { day, modifiers, ...buttonProps } = props;
29701
- const ref = import_react21.default.useRef(null);
29702
- import_react21.default.useEffect(() => {
29751
+ const ref = import_react22.default.useRef(null);
29752
+ import_react22.default.useEffect(() => {
29703
29753
  if (modifiers.focused)
29704
29754
  ref.current?.focus();
29705
29755
  }, [modifiers.focused]);
29706
- return import_react21.default.createElement("button", { ref, ...buttonProps });
29756
+ return import_react22.default.createElement("button", { ref, ...buttonProps });
29707
29757
  }
29708
29758
 
29709
29759
  // node_modules/react-day-picker/dist/esm/components/Dropdown.js
29710
- var import_react22 = __toESM(require("react"), 1);
29760
+ var import_react23 = __toESM(require("react"), 1);
29711
29761
 
29712
29762
  // node_modules/react-day-picker/dist/esm/UI.js
29713
29763
  var UI;
@@ -29769,65 +29819,65 @@ function Dropdown(props) {
29769
29819
  const { options, className, components, classNames, ...selectProps } = props;
29770
29820
  const cssClassSelect = [classNames[UI.Dropdown], className].join(" ");
29771
29821
  const selectedOption = options?.find(({ value }) => value === selectProps.value);
29772
- return import_react22.default.createElement(
29822
+ return import_react23.default.createElement(
29773
29823
  "span",
29774
29824
  { "data-disabled": selectProps.disabled, className: classNames[UI.DropdownRoot] },
29775
- import_react22.default.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => import_react22.default.createElement(components.Option, { key: value, value, disabled }, label))),
29776
- import_react22.default.createElement(
29825
+ import_react23.default.createElement(components.Select, { className: cssClassSelect, ...selectProps }, options?.map(({ value, label, disabled }) => import_react23.default.createElement(components.Option, { key: value, value, disabled }, label))),
29826
+ import_react23.default.createElement(
29777
29827
  "span",
29778
29828
  { className: classNames[UI.CaptionLabel], "aria-hidden": true },
29779
29829
  selectedOption?.label,
29780
- import_react22.default.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })
29830
+ import_react23.default.createElement(components.Chevron, { orientation: "down", size: 18, className: classNames[UI.Chevron] })
29781
29831
  )
29782
29832
  );
29783
29833
  }
29784
29834
 
29785
29835
  // node_modules/react-day-picker/dist/esm/components/DropdownNav.js
29786
- var import_react23 = __toESM(require("react"), 1);
29836
+ var import_react24 = __toESM(require("react"), 1);
29787
29837
  function DropdownNav(props) {
29788
- return import_react23.default.createElement("div", { ...props });
29838
+ return import_react24.default.createElement("div", { ...props });
29789
29839
  }
29790
29840
 
29791
29841
  // node_modules/react-day-picker/dist/esm/components/Footer.js
29792
- var import_react24 = __toESM(require("react"), 1);
29842
+ var import_react25 = __toESM(require("react"), 1);
29793
29843
  function Footer(props) {
29794
- return import_react24.default.createElement("div", { ...props });
29844
+ return import_react25.default.createElement("div", { ...props });
29795
29845
  }
29796
29846
 
29797
29847
  // node_modules/react-day-picker/dist/esm/components/Month.js
29798
- var import_react25 = __toESM(require("react"), 1);
29848
+ var import_react26 = __toESM(require("react"), 1);
29799
29849
  function Month(props) {
29800
29850
  const { calendarMonth, displayIndex, ...divProps } = props;
29801
- return import_react25.default.createElement("div", { ...divProps }, props.children);
29851
+ return import_react26.default.createElement("div", { ...divProps }, props.children);
29802
29852
  }
29803
29853
 
29804
29854
  // node_modules/react-day-picker/dist/esm/components/MonthCaption.js
29805
- var import_react26 = __toESM(require("react"), 1);
29855
+ var import_react27 = __toESM(require("react"), 1);
29806
29856
  function MonthCaption(props) {
29807
29857
  const { calendarMonth, displayIndex, ...divProps } = props;
29808
- return import_react26.default.createElement("div", { ...divProps });
29858
+ return import_react27.default.createElement("div", { ...divProps });
29809
29859
  }
29810
29860
 
29811
29861
  // node_modules/react-day-picker/dist/esm/components/MonthGrid.js
29812
- var import_react27 = __toESM(require("react"), 1);
29862
+ var import_react28 = __toESM(require("react"), 1);
29813
29863
  function MonthGrid(props) {
29814
- return import_react27.default.createElement("table", { ...props });
29864
+ return import_react28.default.createElement("table", { ...props });
29815
29865
  }
29816
29866
 
29817
29867
  // node_modules/react-day-picker/dist/esm/components/Months.js
29818
- var import_react28 = __toESM(require("react"), 1);
29868
+ var import_react29 = __toESM(require("react"), 1);
29819
29869
  function Months(props) {
29820
- return import_react28.default.createElement("div", { ...props });
29870
+ return import_react29.default.createElement("div", { ...props });
29821
29871
  }
29822
29872
 
29823
29873
  // node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
29824
- var import_react30 = __toESM(require("react"), 1);
29874
+ var import_react31 = __toESM(require("react"), 1);
29825
29875
 
29826
29876
  // node_modules/react-day-picker/dist/esm/useDayPicker.js
29827
- var import_react29 = require("react");
29828
- var dayPickerContext = (0, import_react29.createContext)(void 0);
29877
+ var import_react30 = require("react");
29878
+ var dayPickerContext = (0, import_react30.createContext)(void 0);
29829
29879
  function useDayPicker() {
29830
- const context = (0, import_react29.useContext)(dayPickerContext);
29880
+ const context = (0, import_react30.useContext)(dayPickerContext);
29831
29881
  if (context === void 0) {
29832
29882
  throw new Error("useDayPicker() must be used within a custom component.");
29833
29883
  }
@@ -29837,124 +29887,124 @@ function useDayPicker() {
29837
29887
  // node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js
29838
29888
  function MonthsDropdown(props) {
29839
29889
  const { components } = useDayPicker();
29840
- return import_react30.default.createElement(components.Dropdown, { ...props });
29890
+ return import_react31.default.createElement(components.Dropdown, { ...props });
29841
29891
  }
29842
29892
 
29843
29893
  // node_modules/react-day-picker/dist/esm/components/Nav.js
29844
- var import_react31 = __toESM(require("react"), 1);
29894
+ var import_react32 = __toESM(require("react"), 1);
29845
29895
  function Nav(props) {
29846
29896
  const { onPreviousClick, onNextClick, previousMonth, nextMonth, ...navProps } = props;
29847
29897
  const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
29848
- const handleNextClick = (0, import_react31.useCallback)((e) => {
29898
+ const handleNextClick = (0, import_react32.useCallback)((e) => {
29849
29899
  if (nextMonth) {
29850
29900
  onNextClick?.(e);
29851
29901
  }
29852
29902
  }, [nextMonth, onNextClick]);
29853
- const handlePreviousClick = (0, import_react31.useCallback)((e) => {
29903
+ const handlePreviousClick = (0, import_react32.useCallback)((e) => {
29854
29904
  if (previousMonth) {
29855
29905
  onPreviousClick?.(e);
29856
29906
  }
29857
29907
  }, [previousMonth, onPreviousClick]);
29858
- return import_react31.default.createElement(
29908
+ return import_react32.default.createElement(
29859
29909
  "nav",
29860
29910
  { ...navProps },
29861
- import_react31.default.createElement(
29911
+ import_react32.default.createElement(
29862
29912
  components.PreviousMonthButton,
29863
29913
  { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
29864
- import_react31.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
29914
+ import_react32.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
29865
29915
  ),
29866
- import_react31.default.createElement(
29916
+ import_react32.default.createElement(
29867
29917
  components.NextMonthButton,
29868
29918
  { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
29869
- import_react31.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
29919
+ import_react32.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
29870
29920
  )
29871
29921
  );
29872
29922
  }
29873
29923
 
29874
29924
  // node_modules/react-day-picker/dist/esm/components/NextMonthButton.js
29875
- var import_react32 = __toESM(require("react"), 1);
29925
+ var import_react33 = __toESM(require("react"), 1);
29876
29926
  function NextMonthButton(props) {
29877
29927
  const { components } = useDayPicker();
29878
- return import_react32.default.createElement(components.Button, { ...props });
29928
+ return import_react33.default.createElement(components.Button, { ...props });
29879
29929
  }
29880
29930
 
29881
29931
  // node_modules/react-day-picker/dist/esm/components/Option.js
29882
- var import_react33 = __toESM(require("react"), 1);
29932
+ var import_react34 = __toESM(require("react"), 1);
29883
29933
  function Option2(props) {
29884
- return import_react33.default.createElement("option", { ...props });
29934
+ return import_react34.default.createElement("option", { ...props });
29885
29935
  }
29886
29936
 
29887
29937
  // node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js
29888
- var import_react34 = __toESM(require("react"), 1);
29938
+ var import_react35 = __toESM(require("react"), 1);
29889
29939
  function PreviousMonthButton(props) {
29890
29940
  const { components } = useDayPicker();
29891
- return import_react34.default.createElement(components.Button, { ...props });
29941
+ return import_react35.default.createElement(components.Button, { ...props });
29892
29942
  }
29893
29943
 
29894
29944
  // node_modules/react-day-picker/dist/esm/components/Root.js
29895
- var import_react35 = __toESM(require("react"), 1);
29945
+ var import_react36 = __toESM(require("react"), 1);
29896
29946
  function Root20(props) {
29897
29947
  const { rootRef, ...rest } = props;
29898
- return import_react35.default.createElement("div", { ...rest, ref: rootRef });
29948
+ return import_react36.default.createElement("div", { ...rest, ref: rootRef });
29899
29949
  }
29900
29950
 
29901
29951
  // node_modules/react-day-picker/dist/esm/components/Select.js
29902
- var import_react36 = __toESM(require("react"), 1);
29952
+ var import_react37 = __toESM(require("react"), 1);
29903
29953
  function Select2(props) {
29904
- return import_react36.default.createElement("select", { ...props });
29954
+ return import_react37.default.createElement("select", { ...props });
29905
29955
  }
29906
29956
 
29907
29957
  // node_modules/react-day-picker/dist/esm/components/Week.js
29908
- var import_react37 = __toESM(require("react"), 1);
29958
+ var import_react38 = __toESM(require("react"), 1);
29909
29959
  function Week(props) {
29910
29960
  const { week, ...trProps } = props;
29911
- return import_react37.default.createElement("tr", { ...trProps });
29961
+ return import_react38.default.createElement("tr", { ...trProps });
29912
29962
  }
29913
29963
 
29914
29964
  // node_modules/react-day-picker/dist/esm/components/Weekday.js
29915
- var import_react38 = __toESM(require("react"), 1);
29965
+ var import_react39 = __toESM(require("react"), 1);
29916
29966
  function Weekday(props) {
29917
- return import_react38.default.createElement("th", { ...props });
29967
+ return import_react39.default.createElement("th", { ...props });
29918
29968
  }
29919
29969
 
29920
29970
  // node_modules/react-day-picker/dist/esm/components/Weekdays.js
29921
- var import_react39 = __toESM(require("react"), 1);
29971
+ var import_react40 = __toESM(require("react"), 1);
29922
29972
  function Weekdays(props) {
29923
- return import_react39.default.createElement(
29973
+ return import_react40.default.createElement(
29924
29974
  "thead",
29925
29975
  { "aria-hidden": true },
29926
- import_react39.default.createElement("tr", { ...props })
29976
+ import_react40.default.createElement("tr", { ...props })
29927
29977
  );
29928
29978
  }
29929
29979
 
29930
29980
  // node_modules/react-day-picker/dist/esm/components/WeekNumber.js
29931
- var import_react40 = __toESM(require("react"), 1);
29981
+ var import_react41 = __toESM(require("react"), 1);
29932
29982
  function WeekNumber(props) {
29933
29983
  const { week, ...thProps } = props;
29934
- return import_react40.default.createElement("th", { ...thProps });
29984
+ return import_react41.default.createElement("th", { ...thProps });
29935
29985
  }
29936
29986
 
29937
29987
  // node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js
29938
- var import_react41 = __toESM(require("react"), 1);
29988
+ var import_react42 = __toESM(require("react"), 1);
29939
29989
  function WeekNumberHeader(props) {
29940
- return import_react41.default.createElement("th", { ...props });
29990
+ return import_react42.default.createElement("th", { ...props });
29941
29991
  }
29942
29992
 
29943
29993
  // node_modules/react-day-picker/dist/esm/components/Weeks.js
29944
- var import_react42 = __toESM(require("react"), 1);
29994
+ var import_react43 = __toESM(require("react"), 1);
29945
29995
  function Weeks(props) {
29946
- return import_react42.default.createElement("tbody", { ...props });
29996
+ return import_react43.default.createElement("tbody", { ...props });
29947
29997
  }
29948
29998
 
29949
29999
  // node_modules/react-day-picker/dist/esm/components/YearsDropdown.js
29950
- var import_react43 = __toESM(require("react"), 1);
30000
+ var import_react44 = __toESM(require("react"), 1);
29951
30001
  function YearsDropdown(props) {
29952
30002
  const { components } = useDayPicker();
29953
- return import_react43.default.createElement(components.Dropdown, { ...props });
30003
+ return import_react44.default.createElement(components.Dropdown, { ...props });
29954
30004
  }
29955
30005
 
29956
30006
  // node_modules/react-day-picker/dist/esm/DayPicker.js
29957
- var import_react48 = __toESM(require("react"), 1);
30007
+ var import_react49 = __toESM(require("react"), 1);
29958
30008
 
29959
30009
  // node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js
29960
30010
  function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
@@ -30557,7 +30607,7 @@ function createNoonOverrides(timeZone, options = {}) {
30557
30607
  }
30558
30608
 
30559
30609
  // node_modules/react-day-picker/dist/esm/useAnimation.js
30560
- var import_react44 = require("react");
30610
+ var import_react45 = require("react");
30561
30611
  var asHtmlElement = (element) => {
30562
30612
  if (element instanceof HTMLElement)
30563
30613
  return element;
@@ -30572,10 +30622,10 @@ var queryWeeksEl = (element) => asHtmlElement(element.querySelector("[data-anima
30572
30622
  var queryNavEl = (element) => asHtmlElement(element.querySelector("[data-animated-nav]"));
30573
30623
  var queryWeekdaysEl = (element) => asHtmlElement(element.querySelector("[data-animated-weekdays]"));
30574
30624
  function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib }) {
30575
- const previousRootElSnapshotRef = (0, import_react44.useRef)(null);
30576
- const previousMonthsRef = (0, import_react44.useRef)(months);
30577
- const animatingRef = (0, import_react44.useRef)(false);
30578
- (0, import_react44.useLayoutEffect)(() => {
30625
+ const previousRootElSnapshotRef = (0, import_react45.useRef)(null);
30626
+ const previousMonthsRef = (0, import_react45.useRef)(months);
30627
+ const animatingRef = (0, import_react45.useRef)(false);
30628
+ (0, import_react45.useLayoutEffect)(() => {
30579
30629
  const previousMonths = previousMonthsRef.current;
30580
30630
  previousMonthsRef.current = months;
30581
30631
  if (!enabled || !rootElRef.current || // safety check because the ref can be set to anything by consumers
@@ -30685,7 +30735,7 @@ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib
30685
30735
  }
30686
30736
 
30687
30737
  // node_modules/react-day-picker/dist/esm/useCalendar.js
30688
- var import_react46 = require("react");
30738
+ var import_react47 = require("react");
30689
30739
 
30690
30740
  // node_modules/react-day-picker/dist/esm/helpers/getDates.js
30691
30741
  function getDates(displayMonths, maxDate, props, dateLib) {
@@ -30880,9 +30930,9 @@ function getWeeks(months) {
30880
30930
  }
30881
30931
 
30882
30932
  // node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js
30883
- var import_react45 = require("react");
30933
+ var import_react46 = require("react");
30884
30934
  function useControlledValue(defaultValue, controlledValue) {
30885
- const [uncontrolledValue, setValue] = (0, import_react45.useState)(defaultValue);
30935
+ const [uncontrolledValue, setValue] = (0, import_react46.useState)(defaultValue);
30886
30936
  const value = controlledValue === void 0 ? uncontrolledValue : controlledValue;
30887
30937
  return [value, setValue];
30888
30938
  }
@@ -30897,11 +30947,11 @@ function useCalendar(props, dateLib) {
30897
30947
  // initialMonth is always computed from props.month if provided
30898
30948
  props.month ? initialMonth : void 0
30899
30949
  );
30900
- (0, import_react46.useEffect)(() => {
30950
+ (0, import_react47.useEffect)(() => {
30901
30951
  const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
30902
30952
  setFirstMonth(newInitialMonth);
30903
30953
  }, [props.timeZone]);
30904
- const { months, weeks, days, previousMonth, nextMonth } = (0, import_react46.useMemo)(() => {
30954
+ const { months, weeks, days, previousMonth, nextMonth } = (0, import_react47.useMemo)(() => {
30905
30955
  const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
30906
30956
  const dates = getDates(displayMonths, props.endMonth ? endOfMonth2(props.endMonth) : void 0, {
30907
30957
  ISOWeek: props.ISOWeek,
@@ -30976,7 +31026,7 @@ function useCalendar(props, dateLib) {
30976
31026
  }
30977
31027
 
30978
31028
  // node_modules/react-day-picker/dist/esm/useFocus.js
30979
- var import_react47 = require("react");
31029
+ var import_react48 = require("react");
30980
31030
 
30981
31031
  // node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
30982
31032
  var FocusTargetPriority;
@@ -31056,9 +31106,9 @@ function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMo
31056
31106
  // node_modules/react-day-picker/dist/esm/useFocus.js
31057
31107
  function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
31058
31108
  const { autoFocus } = props;
31059
- const [lastFocused, setLastFocused] = (0, import_react47.useState)();
31109
+ const [lastFocused, setLastFocused] = (0, import_react48.useState)();
31060
31110
  const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
31061
- const [focusedDay, setFocused] = (0, import_react47.useState)(autoFocus ? focusTarget : void 0);
31111
+ const [focusedDay, setFocused] = (0, import_react48.useState)(autoFocus ? focusTarget : void 0);
31062
31112
  const blur = () => {
31063
31113
  setLastFocused(focusedDay);
31064
31114
  setFocused(void 0);
@@ -31443,7 +31493,7 @@ function DayPicker(initialProps) {
31443
31493
  props.modifiers = nextModifiers;
31444
31494
  }
31445
31495
  }
31446
- const { components, formatters: formatters2, labels, dateLib, locale, classNames } = (0, import_react48.useMemo)(() => {
31496
+ const { components, formatters: formatters2, labels, dateLib, locale, classNames } = (0, import_react49.useMemo)(() => {
31447
31497
  const locale2 = { ...enUS2, ...props.locale };
31448
31498
  const weekStartsOn = props.broadcastCalendar ? 1 : props.weekStartsOn;
31449
31499
  const noonOverrides = props.noonSafe && props.timeZone ? createNoonOverrides(props.timeZone, {
@@ -31495,21 +31545,21 @@ function DayPicker(initialProps) {
31495
31545
  const { isSelected, select, selected: selectedValue } = useSelection(props, dateLib) ?? {};
31496
31546
  const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
31497
31547
  const { labelDayButton: labelDayButton2, labelGridcell: labelGridcell2, labelGrid: labelGrid2, labelMonthDropdown: labelMonthDropdown2, labelNav: labelNav2, labelPrevious: labelPrevious2, labelNext: labelNext2, labelWeekday: labelWeekday2, labelWeekNumber: labelWeekNumber2, labelWeekNumberHeader: labelWeekNumberHeader2, labelYearDropdown: labelYearDropdown2 } = labels;
31498
- const weekdays = (0, import_react48.useMemo)(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
31548
+ const weekdays = (0, import_react49.useMemo)(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
31499
31549
  const isInteractive = mode !== void 0 || onDayClick !== void 0;
31500
- const handlePreviousClick = (0, import_react48.useCallback)(() => {
31550
+ const handlePreviousClick = (0, import_react49.useCallback)(() => {
31501
31551
  if (!previousMonth)
31502
31552
  return;
31503
31553
  goToMonth(previousMonth);
31504
31554
  onPrevClick?.(previousMonth);
31505
31555
  }, [previousMonth, goToMonth, onPrevClick]);
31506
- const handleNextClick = (0, import_react48.useCallback)(() => {
31556
+ const handleNextClick = (0, import_react49.useCallback)(() => {
31507
31557
  if (!nextMonth)
31508
31558
  return;
31509
31559
  goToMonth(nextMonth);
31510
31560
  onNextClick?.(nextMonth);
31511
31561
  }, [goToMonth, nextMonth, onNextClick]);
31512
- const handleDayClick = (0, import_react48.useCallback)((day, m) => (e) => {
31562
+ const handleDayClick = (0, import_react49.useCallback)((day, m) => (e) => {
31513
31563
  e.preventDefault();
31514
31564
  e.stopPropagation();
31515
31565
  setFocused(day);
@@ -31519,15 +31569,15 @@ function DayPicker(initialProps) {
31519
31569
  select?.(day.date, m, e);
31520
31570
  onDayClick?.(day.date, m, e);
31521
31571
  }, [select, onDayClick, setFocused]);
31522
- const handleDayFocus = (0, import_react48.useCallback)((day, m) => (e) => {
31572
+ const handleDayFocus = (0, import_react49.useCallback)((day, m) => (e) => {
31523
31573
  setFocused(day);
31524
31574
  onDayFocus?.(day.date, m, e);
31525
31575
  }, [onDayFocus, setFocused]);
31526
- const handleDayBlur = (0, import_react48.useCallback)((day, m) => (e) => {
31576
+ const handleDayBlur = (0, import_react49.useCallback)((day, m) => (e) => {
31527
31577
  blur();
31528
31578
  onDayBlur?.(day.date, m, e);
31529
31579
  }, [blur, onDayBlur]);
31530
- const handleDayKeyDown = (0, import_react48.useCallback)((day, modifiers) => (e) => {
31580
+ const handleDayKeyDown = (0, import_react49.useCallback)((day, modifiers) => (e) => {
31531
31581
  const keyMap = {
31532
31582
  ArrowLeft: [
31533
31583
  e.shiftKey ? "month" : "day",
@@ -31552,28 +31602,28 @@ function DayPicker(initialProps) {
31552
31602
  }
31553
31603
  onDayKeyDown?.(day.date, modifiers, e);
31554
31604
  }, [moveFocus, onDayKeyDown, props.dir]);
31555
- const handleDayMouseEnter = (0, import_react48.useCallback)((day, modifiers) => (e) => {
31605
+ const handleDayMouseEnter = (0, import_react49.useCallback)((day, modifiers) => (e) => {
31556
31606
  onDayMouseEnter?.(day.date, modifiers, e);
31557
31607
  }, [onDayMouseEnter]);
31558
- const handleDayMouseLeave = (0, import_react48.useCallback)((day, modifiers) => (e) => {
31608
+ const handleDayMouseLeave = (0, import_react49.useCallback)((day, modifiers) => (e) => {
31559
31609
  onDayMouseLeave?.(day.date, modifiers, e);
31560
31610
  }, [onDayMouseLeave]);
31561
- const handleMonthChange = (0, import_react48.useCallback)((date) => (e) => {
31611
+ const handleMonthChange = (0, import_react49.useCallback)((date) => (e) => {
31562
31612
  const selectedMonth = Number(e.target.value);
31563
31613
  const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
31564
31614
  goToMonth(month);
31565
31615
  }, [dateLib, goToMonth]);
31566
- const handleYearChange = (0, import_react48.useCallback)((date) => (e) => {
31616
+ const handleYearChange = (0, import_react49.useCallback)((date) => (e) => {
31567
31617
  const selectedYear = Number(e.target.value);
31568
31618
  const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
31569
31619
  goToMonth(month);
31570
31620
  }, [dateLib, goToMonth]);
31571
- const { className, style } = (0, import_react48.useMemo)(() => ({
31621
+ const { className, style } = (0, import_react49.useMemo)(() => ({
31572
31622
  className: [classNames[UI.Root], props.className].filter(Boolean).join(" "),
31573
31623
  style: { ...styles?.[UI.Root], ...props.style }
31574
31624
  }), [classNames, props.className, props.style, styles]);
31575
31625
  const dataAttributes = getDataAttributes(props);
31576
- const rootElRef = (0, import_react48.useRef)(null);
31626
+ const rootElRef = (0, import_react49.useRef)(null);
31577
31627
  useAnimation(rootElRef, Boolean(props.animate), {
31578
31628
  classNames,
31579
31629
  months,
@@ -31596,18 +31646,18 @@ function DayPicker(initialProps) {
31596
31646
  labels,
31597
31647
  formatters: formatters2
31598
31648
  };
31599
- return import_react48.default.createElement(
31649
+ return import_react49.default.createElement(
31600
31650
  dayPickerContext.Provider,
31601
31651
  { value: contextValue },
31602
- import_react48.default.createElement(
31652
+ import_react49.default.createElement(
31603
31653
  components.Root,
31604
31654
  { rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
31605
- import_react48.default.createElement(
31655
+ import_react49.default.createElement(
31606
31656
  components.Months,
31607
31657
  { className: classNames[UI.Months], style: styles?.[UI.Months] },
31608
- !props.hideNavigation && !navLayout && import_react48.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
31658
+ !props.hideNavigation && !navLayout && import_react49.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
31609
31659
  months.map((calendarMonth, displayIndex) => {
31610
- return import_react48.default.createElement(
31660
+ return import_react49.default.createElement(
31611
31661
  components.Month,
31612
31662
  {
31613
31663
  "data-animated-month": props.animate ? "true" : void 0,
@@ -31618,21 +31668,21 @@ function DayPicker(initialProps) {
31618
31668
  displayIndex,
31619
31669
  calendarMonth
31620
31670
  },
31621
- navLayout === "around" && !props.hideNavigation && displayIndex === 0 && import_react48.default.createElement(
31671
+ navLayout === "around" && !props.hideNavigation && displayIndex === 0 && import_react49.default.createElement(
31622
31672
  components.PreviousMonthButton,
31623
31673
  { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : void 0 },
31624
- import_react48.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
31674
+ import_react49.default.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" })
31625
31675
  ),
31626
- import_react48.default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? import_react48.default.createElement(
31676
+ import_react49.default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth, displayIndex }, captionLayout?.startsWith("dropdown") ? import_react49.default.createElement(
31627
31677
  components.DropdownNav,
31628
31678
  { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
31629
31679
  (() => {
31630
- const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? import_react48.default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : import_react48.default.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
31631
- const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? import_react48.default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : import_react48.default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
31680
+ const monthControl = captionLayout === "dropdown" || captionLayout === "dropdown-months" ? import_react49.default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : import_react49.default.createElement("span", { key: "month" }, formatMonthDropdown2(calendarMonth.date, dateLib));
31681
+ const yearControl = captionLayout === "dropdown" || captionLayout === "dropdown-years" ? import_react49.default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters2, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : import_react49.default.createElement("span", { key: "year" }, formatYearDropdown2(calendarMonth.date, dateLib));
31632
31682
  const controls = dateLib.getMonthYearOrder() === "year-first" ? [yearControl, monthControl] : [monthControl, yearControl];
31633
31683
  return controls;
31634
31684
  })(),
31635
- import_react48.default.createElement("span", { role: "status", "aria-live": "polite", style: {
31685
+ import_react49.default.createElement("span", { role: "status", "aria-live": "polite", style: {
31636
31686
  border: 0,
31637
31687
  clip: "rect(0 0 0 0)",
31638
31688
  height: "1px",
@@ -31644,27 +31694,27 @@ function DayPicker(initialProps) {
31644
31694
  whiteSpace: "nowrap",
31645
31695
  wordWrap: "normal"
31646
31696
  } }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
31647
- ) : import_react48.default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
31648
- navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && import_react48.default.createElement(
31697
+ ) : import_react49.default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
31698
+ navLayout === "around" && !props.hideNavigation && displayIndex === numberOfMonths - 1 && import_react49.default.createElement(
31649
31699
  components.NextMonthButton,
31650
31700
  { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : void 0 },
31651
- import_react48.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
31701
+ import_react49.default.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" })
31652
31702
  ),
31653
- displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && import_react48.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
31654
- import_react48.default.createElement(
31703
+ displayIndex === numberOfMonths - 1 && navLayout === "after" && !props.hideNavigation && import_react49.default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
31704
+ import_react49.default.createElement(
31655
31705
  components.MonthGrid,
31656
31706
  { role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
31657
- !props.hideWeekdays && import_react48.default.createElement(
31707
+ !props.hideWeekdays && import_react49.default.createElement(
31658
31708
  components.Weekdays,
31659
31709
  { "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
31660
- showWeekNumber && import_react48.default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
31661
- weekdays.map((weekday) => import_react48.default.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
31710
+ showWeekNumber && import_react49.default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
31711
+ weekdays.map((weekday) => import_react49.default.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
31662
31712
  ),
31663
- import_react48.default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
31664
- return import_react48.default.createElement(
31713
+ import_react49.default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
31714
+ return import_react49.default.createElement(
31665
31715
  components.Week,
31666
31716
  { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week },
31667
- showWeekNumber && import_react48.default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
31717
+ showWeekNumber && import_react49.default.createElement(components.WeekNumber, { week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber2(week.weekNumber, {
31668
31718
  locale
31669
31719
  }), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber2(week.weekNumber, dateLib)),
31670
31720
  week.days.map((day) => {
@@ -31681,7 +31731,7 @@ function DayPicker(initialProps) {
31681
31731
  const style2 = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
31682
31732
  const className2 = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
31683
31733
  const ariaLabel = !isInteractive && !modifiers.hidden ? labelGridcell2(date, modifiers, dateLib.options, dateLib) : void 0;
31684
- return import_react48.default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? import_react48.default.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
31734
+ return import_react49.default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day, modifiers, className: className2.join(" "), style: style2, role: "gridcell", "aria-selected": modifiers.selected || void 0, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : void 0, "data-selected": modifiers.selected || void 0, "data-disabled": modifiers.disabled || void 0, "data-hidden": modifiers.hidden || void 0, "data-outside": day.outside || void 0, "data-focused": modifiers.focused || void 0, "data-today": modifiers.today || void 0 }, !modifiers.hidden && isInteractive ? import_react49.default.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day, modifiers, disabled: !modifiers.focused && modifiers.disabled || void 0, "aria-disabled": modifiers.focused && modifiers.disabled || void 0, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton2(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay2(date, dateLib.options, dateLib)) : !modifiers.hidden && formatDay2(day.date, dateLib.options, dateLib));
31685
31735
  })
31686
31736
  );
31687
31737
  }))
@@ -31689,7 +31739,7 @@ function DayPicker(initialProps) {
31689
31739
  );
31690
31740
  })
31691
31741
  ),
31692
- props.footer && import_react48.default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
31742
+ props.footer && import_react49.default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)
31693
31743
  )
31694
31744
  );
31695
31745
  }
@@ -31848,8 +31898,8 @@ function CalendarDayButton({
31848
31898
  ...props
31849
31899
  }) {
31850
31900
  const defaultClassNames = getDefaultClassNames();
31851
- const ref = React68.useRef(null);
31852
- React68.useEffect(() => {
31901
+ const ref = React69.useRef(null);
31902
+ React69.useEffect(() => {
31853
31903
  if (modifiers.focused) ref.current?.focus();
31854
31904
  }, [modifiers.focused]);
31855
31905
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
@@ -31906,7 +31956,7 @@ var CalendarAtom = ({
31906
31956
  };
31907
31957
 
31908
31958
  // src/components/ui/pagination.tsx
31909
- var React69 = __toESM(require("react"), 1);
31959
+ var React70 = __toESM(require("react"), 1);
31910
31960
  var import_jsx_runtime57 = require("react/jsx-runtime");
31911
31961
  var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
31912
31962
  "nav",
@@ -31918,7 +31968,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_run
31918
31968
  }
31919
31969
  );
31920
31970
  Pagination.displayName = "Pagination";
31921
- var PaginationContent = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
31971
+ var PaginationContent = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
31922
31972
  "ul",
31923
31973
  {
31924
31974
  ref,
@@ -31927,7 +31977,7 @@ var PaginationContent = React69.forwardRef(({ className, ...props }, ref) => /*
31927
31977
  }
31928
31978
  ));
31929
31979
  PaginationContent.displayName = "PaginationContent";
31930
- var PaginationItem = React69.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { ref, className: cn("", className), ...props }));
31980
+ var PaginationItem = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { ref, className: cn("", className), ...props }));
31931
31981
  PaginationItem.displayName = "PaginationItem";
31932
31982
  var PaginationLink = ({
31933
31983
  className,
@@ -32018,13 +32068,13 @@ var PaginationAtom = ({
32018
32068
  };
32019
32069
 
32020
32070
  // src/atoms/CommandAtom.tsx
32021
- var import_react49 = __toESM(require("react"), 1);
32071
+ var import_react50 = __toESM(require("react"), 1);
32022
32072
 
32023
32073
  // src/components/ui/command.tsx
32024
- var React70 = __toESM(require("react"), 1);
32074
+ var React71 = __toESM(require("react"), 1);
32025
32075
  var import_cmdk = require("cmdk");
32026
32076
  var import_jsx_runtime59 = require("react/jsx-runtime");
32027
- var Command2 = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32077
+ var Command2 = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32028
32078
  import_cmdk.Command,
32029
32079
  {
32030
32080
  ref,
@@ -32039,7 +32089,7 @@ Command2.displayName = import_cmdk.Command.displayName;
32039
32089
  var CommandDialog = ({ children, ...props }) => {
32040
32090
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Dialog, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Command2, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
32041
32091
  };
32042
- var CommandInput = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
32092
+ var CommandInput = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
32043
32093
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
32044
32094
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32045
32095
  import_cmdk.Command.Input,
@@ -32054,7 +32104,7 @@ var CommandInput = React70.forwardRef(({ className, ...props }, ref) => /* @__PU
32054
32104
  )
32055
32105
  ] }));
32056
32106
  CommandInput.displayName = import_cmdk.Command.Input.displayName;
32057
- var CommandList = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32107
+ var CommandList = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32058
32108
  import_cmdk.Command.List,
32059
32109
  {
32060
32110
  ref,
@@ -32063,7 +32113,7 @@ var CommandList = React70.forwardRef(({ className, ...props }, ref) => /* @__PUR
32063
32113
  }
32064
32114
  ));
32065
32115
  CommandList.displayName = import_cmdk.Command.List.displayName;
32066
- var CommandEmpty = React70.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32116
+ var CommandEmpty = React71.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32067
32117
  import_cmdk.Command.Empty,
32068
32118
  {
32069
32119
  ref,
@@ -32072,7 +32122,7 @@ var CommandEmpty = React70.forwardRef((props, ref) => /* @__PURE__ */ (0, import
32072
32122
  }
32073
32123
  ));
32074
32124
  CommandEmpty.displayName = import_cmdk.Command.Empty.displayName;
32075
- var CommandGroup = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32125
+ var CommandGroup = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32076
32126
  import_cmdk.Command.Group,
32077
32127
  {
32078
32128
  ref,
@@ -32084,7 +32134,7 @@ var CommandGroup = React70.forwardRef(({ className, ...props }, ref) => /* @__PU
32084
32134
  }
32085
32135
  ));
32086
32136
  CommandGroup.displayName = import_cmdk.Command.Group.displayName;
32087
- var CommandSeparator = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32137
+ var CommandSeparator = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32088
32138
  import_cmdk.Command.Separator,
32089
32139
  {
32090
32140
  ref,
@@ -32093,7 +32143,7 @@ var CommandSeparator = React70.forwardRef(({ className, ...props }, ref) => /* @
32093
32143
  }
32094
32144
  ));
32095
32145
  CommandSeparator.displayName = import_cmdk.Command.Separator.displayName;
32096
- var CommandItem = React70.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32146
+ var CommandItem = React71.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
32097
32147
  import_cmdk.Command.Item,
32098
32148
  {
32099
32149
  ref,
@@ -32140,7 +32190,7 @@ var CommandAtom = ({
32140
32190
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CommandInput, { placeholder }),
32141
32191
  /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(CommandList, { children: [
32142
32192
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CommandEmpty, { children: "No results found." }),
32143
- groups.map((group, i) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react49.default.Fragment, { children: [
32193
+ groups.map((group, i) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react50.default.Fragment, { children: [
32144
32194
  /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CommandGroup, { heading: group.heading, children: group.items.map((item, j) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CommandItem, { value: item.value, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { children: item.label }) }, j)) }),
32145
32195
  i < groups.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(CommandSeparator, {})
32146
32196
  ] }, i))
@@ -32151,20 +32201,20 @@ var CommandAtom = ({
32151
32201
  };
32152
32202
 
32153
32203
  // src/components/ui/form.tsx
32154
- var React72 = __toESM(require("react"), 1);
32204
+ var React73 = __toESM(require("react"), 1);
32155
32205
  var import_react_slot3 = require("@radix-ui/react-slot");
32156
32206
  var import_react_hook_form = require("react-hook-form");
32157
32207
  var import_jsx_runtime61 = require("react/jsx-runtime");
32158
32208
  var Form = import_react_hook_form.FormProvider;
32159
- var FormFieldContext = React72.createContext(null);
32209
+ var FormFieldContext = React73.createContext(null);
32160
32210
  var FormField = ({
32161
32211
  ...props
32162
32212
  }) => {
32163
32213
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_hook_form.Controller, { ...props }) });
32164
32214
  };
32165
32215
  var useFormField = () => {
32166
- const fieldContext = React72.useContext(FormFieldContext);
32167
- const itemContext = React72.useContext(FormItemContext);
32216
+ const fieldContext = React73.useContext(FormFieldContext);
32217
+ const itemContext = React73.useContext(FormItemContext);
32168
32218
  const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
32169
32219
  if (!fieldContext) {
32170
32220
  throw new Error("useFormField should be used within <FormField>");
@@ -32183,13 +32233,13 @@ var useFormField = () => {
32183
32233
  ...fieldState
32184
32234
  };
32185
32235
  };
32186
- var FormItemContext = React72.createContext(null);
32187
- var FormItem = React72.forwardRef(({ className, ...props }, ref) => {
32188
- const id = React72.useId();
32236
+ var FormItemContext = React73.createContext(null);
32237
+ var FormItem = React73.forwardRef(({ className, ...props }, ref) => {
32238
+ const id = React73.useId();
32189
32239
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
32190
32240
  });
32191
32241
  FormItem.displayName = "FormItem";
32192
- var FormLabel = React72.forwardRef(({ className, ...props }, ref) => {
32242
+ var FormLabel = React73.forwardRef(({ className, ...props }, ref) => {
32193
32243
  const { error, formItemId } = useFormField();
32194
32244
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
32195
32245
  Label,
@@ -32202,7 +32252,7 @@ var FormLabel = React72.forwardRef(({ className, ...props }, ref) => {
32202
32252
  );
32203
32253
  });
32204
32254
  FormLabel.displayName = "FormLabel";
32205
- var FormControl = React72.forwardRef(({ ...props }, ref) => {
32255
+ var FormControl = React73.forwardRef(({ ...props }, ref) => {
32206
32256
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
32207
32257
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
32208
32258
  import_react_slot3.Slot,
@@ -32216,7 +32266,7 @@ var FormControl = React72.forwardRef(({ ...props }, ref) => {
32216
32266
  );
32217
32267
  });
32218
32268
  FormControl.displayName = "FormControl";
32219
- var FormDescription = React72.forwardRef(({ className, ...props }, ref) => {
32269
+ var FormDescription = React73.forwardRef(({ className, ...props }, ref) => {
32220
32270
  const { formDescriptionId } = useFormField();
32221
32271
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
32222
32272
  "p",
@@ -32229,7 +32279,7 @@ var FormDescription = React72.forwardRef(({ className, ...props }, ref) => {
32229
32279
  );
32230
32280
  });
32231
32281
  FormDescription.displayName = "FormDescription";
32232
- var FormMessage = React72.forwardRef(({ className, children, ...props }, ref) => {
32282
+ var FormMessage = React73.forwardRef(({ className, children, ...props }, ref) => {
32233
32283
  const { error, formMessageId } = useFormField();
32234
32284
  const body = error ? String(error?.message ?? "") : children;
32235
32285
  if (!body) {
@@ -32506,7 +32556,7 @@ var TextareaAtom = ({
32506
32556
  };
32507
32557
 
32508
32558
  // src/components/ui/toggle.tsx
32509
- var React73 = __toESM(require("react"), 1);
32559
+ var React74 = __toESM(require("react"), 1);
32510
32560
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
32511
32561
  var import_class_variance_authority6 = require("class-variance-authority");
32512
32562
  var import_jsx_runtime69 = require("react/jsx-runtime");
@@ -32530,7 +32580,7 @@ var toggleVariants = (0, import_class_variance_authority6.cva)(
32530
32580
  }
32531
32581
  }
32532
32582
  );
32533
- var Toggle = React73.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
32583
+ var Toggle = React74.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
32534
32584
  TogglePrimitive.Root,
32535
32585
  {
32536
32586
  ref,
@@ -32708,7 +32758,7 @@ var RadioAtom = ({ id, label, value, checked, disabled, className, style, onValu
32708
32758
  };
32709
32759
 
32710
32760
  // src/components/ui/dropdown-menu.tsx
32711
- var React74 = __toESM(require("react"), 1);
32761
+ var React75 = __toESM(require("react"), 1);
32712
32762
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
32713
32763
  var import_jsx_runtime74 = require("react/jsx-runtime");
32714
32764
  var DropdownMenu = DropdownMenuPrimitive.Root;
@@ -32717,7 +32767,7 @@ var DropdownMenuGroup = DropdownMenuPrimitive.Group;
32717
32767
  var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
32718
32768
  var DropdownMenuSub = DropdownMenuPrimitive.Sub;
32719
32769
  var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
32720
- var DropdownMenuSubTrigger = React74.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32770
+ var DropdownMenuSubTrigger = React75.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32721
32771
  DropdownMenuPrimitive.SubTrigger,
32722
32772
  {
32723
32773
  ref,
@@ -32734,7 +32784,7 @@ var DropdownMenuSubTrigger = React74.forwardRef(({ className, inset, children, .
32734
32784
  }
32735
32785
  ));
32736
32786
  DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
32737
- var DropdownMenuSubContent = React74.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32787
+ var DropdownMenuSubContent = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32738
32788
  DropdownMenuPrimitive.SubContent,
32739
32789
  {
32740
32790
  ref,
@@ -32746,7 +32796,7 @@ var DropdownMenuSubContent = React74.forwardRef(({ className, ...props }, ref) =
32746
32796
  }
32747
32797
  ));
32748
32798
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
32749
- var DropdownMenuContent = React74.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32799
+ var DropdownMenuContent = React75.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32750
32800
  DropdownMenuPrimitive.Content,
32751
32801
  {
32752
32802
  ref,
@@ -32759,7 +32809,7 @@ var DropdownMenuContent = React74.forwardRef(({ className, sideOffset = 4, ...pr
32759
32809
  }
32760
32810
  ) }));
32761
32811
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
32762
- var DropdownMenuItem = React74.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32812
+ var DropdownMenuItem = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32763
32813
  DropdownMenuPrimitive.Item,
32764
32814
  {
32765
32815
  ref,
@@ -32772,7 +32822,7 @@ var DropdownMenuItem = React74.forwardRef(({ className, inset, ...props }, ref)
32772
32822
  }
32773
32823
  ));
32774
32824
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
32775
- var DropdownMenuCheckboxItem = React74.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32825
+ var DropdownMenuCheckboxItem = React75.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32776
32826
  DropdownMenuPrimitive.CheckboxItem,
32777
32827
  {
32778
32828
  ref,
@@ -32789,7 +32839,7 @@ var DropdownMenuCheckboxItem = React74.forwardRef(({ className, children, checke
32789
32839
  }
32790
32840
  ));
32791
32841
  DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
32792
- var DropdownMenuRadioItem = React74.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32842
+ var DropdownMenuRadioItem = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
32793
32843
  DropdownMenuPrimitive.RadioItem,
32794
32844
  {
32795
32845
  ref,
@@ -32805,7 +32855,7 @@ var DropdownMenuRadioItem = React74.forwardRef(({ className, children, ...props
32805
32855
  }
32806
32856
  ));
32807
32857
  DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
32808
- var DropdownMenuLabel = React74.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32858
+ var DropdownMenuLabel = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32809
32859
  DropdownMenuPrimitive.Label,
32810
32860
  {
32811
32861
  ref,
@@ -32818,7 +32868,7 @@ var DropdownMenuLabel = React74.forwardRef(({ className, inset, ...props }, ref)
32818
32868
  }
32819
32869
  ));
32820
32870
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
32821
- var DropdownMenuSeparator = React74.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32871
+ var DropdownMenuSeparator = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
32822
32872
  DropdownMenuPrimitive.Separator,
32823
32873
  {
32824
32874
  ref,
@@ -32878,7 +32928,7 @@ var DropdownMenuAtom = ({ trigger, items, className, onAction }) => {
32878
32928
  };
32879
32929
 
32880
32930
  // src/components/ui/context-menu.tsx
32881
- var React75 = __toESM(require("react"), 1);
32931
+ var React76 = __toESM(require("react"), 1);
32882
32932
  var ContextMenuPrimitive = __toESM(require("@radix-ui/react-context-menu"), 1);
32883
32933
  var import_jsx_runtime76 = require("react/jsx-runtime");
32884
32934
  var ContextMenu = ContextMenuPrimitive.Root;
@@ -32887,7 +32937,7 @@ var ContextMenuGroup = ContextMenuPrimitive.Group;
32887
32937
  var ContextMenuPortal = ContextMenuPrimitive.Portal;
32888
32938
  var ContextMenuSub = ContextMenuPrimitive.Sub;
32889
32939
  var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
32890
- var ContextMenuSubTrigger = React75.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
32940
+ var ContextMenuSubTrigger = React76.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
32891
32941
  ContextMenuPrimitive.SubTrigger,
32892
32942
  {
32893
32943
  ref,
@@ -32904,7 +32954,7 @@ var ContextMenuSubTrigger = React75.forwardRef(({ className, inset, children, ..
32904
32954
  }
32905
32955
  ));
32906
32956
  ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
32907
- var ContextMenuSubContent = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32957
+ var ContextMenuSubContent = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32908
32958
  ContextMenuPrimitive.SubContent,
32909
32959
  {
32910
32960
  ref,
@@ -32916,7 +32966,7 @@ var ContextMenuSubContent = React75.forwardRef(({ className, ...props }, ref) =>
32916
32966
  }
32917
32967
  ));
32918
32968
  ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
32919
- var ContextMenuContent = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32969
+ var ContextMenuContent = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32920
32970
  ContextMenuPrimitive.Content,
32921
32971
  {
32922
32972
  ref,
@@ -32928,7 +32978,7 @@ var ContextMenuContent = React75.forwardRef(({ className, ...props }, ref) => /*
32928
32978
  }
32929
32979
  ) }));
32930
32980
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
32931
- var ContextMenuItem = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32981
+ var ContextMenuItem = React76.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32932
32982
  ContextMenuPrimitive.Item,
32933
32983
  {
32934
32984
  ref,
@@ -32941,7 +32991,7 @@ var ContextMenuItem = React75.forwardRef(({ className, inset, ...props }, ref) =
32941
32991
  }
32942
32992
  ));
32943
32993
  ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
32944
- var ContextMenuCheckboxItem = React75.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
32994
+ var ContextMenuCheckboxItem = React76.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
32945
32995
  ContextMenuPrimitive.CheckboxItem,
32946
32996
  {
32947
32997
  ref,
@@ -32958,7 +33008,7 @@ var ContextMenuCheckboxItem = React75.forwardRef(({ className, children, checked
32958
33008
  }
32959
33009
  ));
32960
33010
  ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
32961
- var ContextMenuRadioItem = React75.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
33011
+ var ContextMenuRadioItem = React76.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
32962
33012
  ContextMenuPrimitive.RadioItem,
32963
33013
  {
32964
33014
  ref,
@@ -32974,7 +33024,7 @@ var ContextMenuRadioItem = React75.forwardRef(({ className, children, ...props }
32974
33024
  }
32975
33025
  ));
32976
33026
  ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
32977
- var ContextMenuLabel = React75.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
33027
+ var ContextMenuLabel = React76.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32978
33028
  ContextMenuPrimitive.Label,
32979
33029
  {
32980
33030
  ref,
@@ -32987,7 +33037,7 @@ var ContextMenuLabel = React75.forwardRef(({ className, inset, ...props }, ref)
32987
33037
  }
32988
33038
  ));
32989
33039
  ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
32990
- var ContextMenuSeparator = React75.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
33040
+ var ContextMenuSeparator = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
32991
33041
  ContextMenuPrimitive.Separator,
32992
33042
  {
32993
33043
  ref,
@@ -33050,7 +33100,7 @@ var ContextMenuAtom = ({ trigger, items, className, onAction }) => {
33050
33100
  };
33051
33101
 
33052
33102
  // src/components/ui/drawer.tsx
33053
- var React76 = __toESM(require("react"), 1);
33103
+ var React77 = __toESM(require("react"), 1);
33054
33104
  var import_vaul = require("vaul");
33055
33105
  var import_jsx_runtime78 = require("react/jsx-runtime");
33056
33106
  var Drawer = ({
@@ -33067,7 +33117,7 @@ Drawer.displayName = "Drawer";
33067
33117
  var DrawerTrigger = import_vaul.Drawer.Trigger;
33068
33118
  var DrawerPortal = import_vaul.Drawer.Portal;
33069
33119
  var DrawerClose = import_vaul.Drawer.Close;
33070
- var DrawerOverlay = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33120
+ var DrawerOverlay = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33071
33121
  import_vaul.Drawer.Overlay,
33072
33122
  {
33073
33123
  ref,
@@ -33076,7 +33126,7 @@ var DrawerOverlay = React76.forwardRef(({ className, ...props }, ref) => /* @__P
33076
33126
  }
33077
33127
  ));
33078
33128
  DrawerOverlay.displayName = import_vaul.Drawer.Overlay.displayName;
33079
- var DrawerContent = React76.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(DrawerPortal, { children: [
33129
+ var DrawerContent = React77.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(DrawerPortal, { children: [
33080
33130
  /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DrawerOverlay, {}),
33081
33131
  /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
33082
33132
  import_vaul.Drawer.Content,
@@ -33117,7 +33167,7 @@ var DrawerFooter = ({
33117
33167
  }
33118
33168
  );
33119
33169
  DrawerFooter.displayName = "DrawerFooter";
33120
- var DrawerTitle = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33170
+ var DrawerTitle = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33121
33171
  import_vaul.Drawer.Title,
33122
33172
  {
33123
33173
  ref,
@@ -33129,7 +33179,7 @@ var DrawerTitle = React76.forwardRef(({ className, ...props }, ref) => /* @__PUR
33129
33179
  }
33130
33180
  ));
33131
33181
  DrawerTitle.displayName = import_vaul.Drawer.Title.displayName;
33132
- var DrawerDescription = React76.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33182
+ var DrawerDescription = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
33133
33183
  import_vaul.Drawer.Description,
33134
33184
  {
33135
33185
  ref,
@@ -33204,7 +33254,7 @@ var InputOTPAtom = ({ length, className, onChange }) => {
33204
33254
  };
33205
33255
 
33206
33256
  // src/atoms/KbdAtom.tsx
33207
- var import_react50 = __toESM(require("react"), 1);
33257
+ var import_react51 = __toESM(require("react"), 1);
33208
33258
  var import_jsx_runtime81 = require("react/jsx-runtime");
33209
33259
  var KbdAtom = ({ keys, className }) => {
33210
33260
  return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
@@ -33214,7 +33264,7 @@ var KbdAtom = ({ keys, className }) => {
33214
33264
  "pointer-events-none inline-flex h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100",
33215
33265
  className
33216
33266
  ),
33217
- children: keys.map((key, i) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react50.default.Fragment, { children: [
33267
+ children: keys.map((key, i) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_react51.default.Fragment, { children: [
33218
33268
  /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "text-xs", children: key }),
33219
33269
  i < keys.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { children: "+" })
33220
33270
  ] }, i))
@@ -33223,7 +33273,7 @@ var KbdAtom = ({ keys, className }) => {
33223
33273
  };
33224
33274
 
33225
33275
  // src/atoms/ResizableAtom.tsx
33226
- var import_react51 = __toESM(require("react"), 1);
33276
+ var import_react52 = __toESM(require("react"), 1);
33227
33277
 
33228
33278
  // src/components/ui/resizable.tsx
33229
33279
  var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
@@ -33272,9 +33322,9 @@ var ResizableAtom = ({
33272
33322
  "min-h-[200px] w-full rounded-lg border border-purple-100",
33273
33323
  className
33274
33324
  ),
33275
- children: panels.map((panel, i) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react51.default.Fragment, { children: [
33325
+ children: panels.map((panel, i) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_react52.default.Fragment, { children: [
33276
33326
  /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ResizablePanel, { defaultSize: panel.defaultSize, className: "p-4", children: panel.children.map((child, childIdx) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
33277
- import_react51.default.Fragment,
33327
+ import_react52.default.Fragment,
33278
33328
  {
33279
33329
  children: renderComponent(child)
33280
33330
  },
@@ -33287,20 +33337,20 @@ var ResizableAtom = ({
33287
33337
  };
33288
33338
 
33289
33339
  // src/components/ui/chart.tsx
33290
- var React79 = __toESM(require("react"), 1);
33340
+ var React80 = __toESM(require("react"), 1);
33291
33341
  var RechartsPrimitive = __toESM(require("recharts"), 1);
33292
33342
  var import_jsx_runtime84 = require("react/jsx-runtime");
33293
33343
  var THEMES = { light: "", dark: ".dark" };
33294
- var ChartContext = React79.createContext(null);
33344
+ var ChartContext = React80.createContext(null);
33295
33345
  function useChart() {
33296
- const context = React79.useContext(ChartContext);
33346
+ const context = React80.useContext(ChartContext);
33297
33347
  if (!context) {
33298
33348
  throw new Error("useChart must be used within a <ChartContainer />");
33299
33349
  }
33300
33350
  return context;
33301
33351
  }
33302
- var ChartContainer = React79.forwardRef(({ id, className, children, config, ...props }, ref) => {
33303
- const uniqueId = React79.useId();
33352
+ var ChartContainer = React80.forwardRef(({ id, className, children, config, ...props }, ref) => {
33353
+ const uniqueId = React80.useId();
33304
33354
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
33305
33355
  return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
33306
33356
  "div",
@@ -33346,7 +33396,7 @@ ${colorConfig.map(([key, itemConfig]) => {
33346
33396
  );
33347
33397
  };
33348
33398
  var ChartTooltip = RechartsPrimitive.Tooltip;
33349
- var ChartTooltipContent = React79.forwardRef(
33399
+ var ChartTooltipContent = React80.forwardRef(
33350
33400
  ({
33351
33401
  active,
33352
33402
  payload,
@@ -33363,7 +33413,7 @@ var ChartTooltipContent = React79.forwardRef(
33363
33413
  labelKey
33364
33414
  }, ref) => {
33365
33415
  const { config } = useChart();
33366
- const tooltipLabel = React79.useMemo(() => {
33416
+ const tooltipLabel = React80.useMemo(() => {
33367
33417
  if (hideLabel || !payload?.length) {
33368
33418
  return null;
33369
33419
  }
@@ -33459,7 +33509,7 @@ var ChartTooltipContent = React79.forwardRef(
33459
33509
  );
33460
33510
  ChartTooltipContent.displayName = "ChartTooltip";
33461
33511
  var ChartLegend = RechartsPrimitive.Legend;
33462
- var ChartLegendContent = React79.forwardRef(
33512
+ var ChartLegendContent = React80.forwardRef(
33463
33513
  ({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
33464
33514
  const { config } = useChart();
33465
33515
  if (!payload?.length) {
@@ -33755,10 +33805,10 @@ var VideoAtom = ({
33755
33805
  };
33756
33806
 
33757
33807
  // src/atoms/RatingAtom.tsx
33758
- var import_react52 = __toESM(require("react"), 1);
33808
+ var import_react53 = __toESM(require("react"), 1);
33759
33809
  var import_jsx_runtime87 = require("react/jsx-runtime");
33760
33810
  var RatingAtom = ({ id, label, value, max: max2 = 5, readonly = false, className, style, onChange }) => {
33761
- const [hoverValue, setHoverValue] = import_react52.default.useState(null);
33811
+ const [hoverValue, setHoverValue] = import_react53.default.useState(null);
33762
33812
  const hasPxVars = style && Object.keys(style).some((k) => k.startsWith("--px-"));
33763
33813
  const stars = /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: cn("flex items-center gap-1", className), style, "data-px-styled": hasPxVars ? "" : void 0, children: Array.from({ length: max2 }, (_, i) => {
33764
33814
  const starValue = i + 1;
@@ -33848,7 +33898,7 @@ var TimelineAtom = ({
33848
33898
  };
33849
33899
 
33850
33900
  // src/atoms/ArrowToggleAtom.tsx
33851
- var import_react53 = require("react");
33901
+ var import_react54 = require("react");
33852
33902
  var import_jsx_runtime89 = require("react/jsx-runtime");
33853
33903
  var ArrowToggleAtom = ({
33854
33904
  isExpanded: controlledExpanded,
@@ -33857,7 +33907,7 @@ var ArrowToggleAtom = ({
33857
33907
  className,
33858
33908
  style
33859
33909
  }) => {
33860
- const [internalExpanded, setInternalExpanded] = (0, import_react53.useState)(false);
33910
+ const [internalExpanded, setInternalExpanded] = (0, import_react54.useState)(false);
33861
33911
  const isExpanded = controlledExpanded !== void 0 ? controlledExpanded : internalExpanded;
33862
33912
  const handleToggle = (e) => {
33863
33913
  e.preventDefault();
@@ -33976,10 +34026,10 @@ __export(molecules_exports, {
33976
34026
  });
33977
34027
 
33978
34028
  // src/molecules/generic/widgetTheme.ts
33979
- var import_react54 = require("react");
33980
- var WidgetThemeContext = (0, import_react54.createContext)(void 0);
34029
+ var import_react55 = require("react");
34030
+ var WidgetThemeContext = (0, import_react55.createContext)(void 0);
33981
34031
  function useWidgetTheme(explicit) {
33982
- const ctx = (0, import_react54.useContext)(WidgetThemeContext);
34032
+ const ctx = (0, import_react55.useContext)(WidgetThemeContext);
33983
34033
  return explicit ?? ctx;
33984
34034
  }
33985
34035
  function withAlpha(color, alpha) {
@@ -34054,15 +34104,15 @@ function th(theme) {
34054
34104
  }
34055
34105
 
34056
34106
  // src/molecules/generic/EditableField/EditableField.tsx
34057
- var import_react55 = __toESM(require("react"), 1);
34107
+ var import_react56 = __toESM(require("react"), 1);
34058
34108
 
34059
34109
  // src/components/ui/hover-card.tsx
34060
- var React82 = __toESM(require("react"), 1);
34110
+ var React83 = __toESM(require("react"), 1);
34061
34111
  var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
34062
34112
  var import_jsx_runtime90 = require("react/jsx-runtime");
34063
34113
  var HoverCard = HoverCardPrimitive.Root;
34064
34114
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
34065
- var HoverCardContent = React82.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
34115
+ var HoverCardContent = React83.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
34066
34116
  HoverCardPrimitive.Content,
34067
34117
  {
34068
34118
  ref,
@@ -34078,7 +34128,7 @@ var HoverCardContent = React82.forwardRef(({ className, align = "center", sideOf
34078
34128
  HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
34079
34129
 
34080
34130
  // src/components/ui/menubar.tsx
34081
- var React83 = __toESM(require("react"), 1);
34131
+ var React84 = __toESM(require("react"), 1);
34082
34132
  var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
34083
34133
  var import_jsx_runtime91 = require("react/jsx-runtime");
34084
34134
  function MenubarMenu({
@@ -34106,7 +34156,7 @@ function MenubarSub({
34106
34156
  }) {
34107
34157
  return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
34108
34158
  }
34109
- var Menubar = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34159
+ var Menubar = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34110
34160
  MenubarPrimitive.Root,
34111
34161
  {
34112
34162
  ref,
@@ -34118,7 +34168,7 @@ var Menubar = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__
34118
34168
  }
34119
34169
  ));
34120
34170
  Menubar.displayName = MenubarPrimitive.Root.displayName;
34121
- var MenubarTrigger = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34171
+ var MenubarTrigger = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34122
34172
  MenubarPrimitive.Trigger,
34123
34173
  {
34124
34174
  ref,
@@ -34130,7 +34180,7 @@ var MenubarTrigger = React83.forwardRef(({ className, ...props }, ref) => /* @__
34130
34180
  }
34131
34181
  ));
34132
34182
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
34133
- var MenubarSubTrigger = React83.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34183
+ var MenubarSubTrigger = React84.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34134
34184
  MenubarPrimitive.SubTrigger,
34135
34185
  {
34136
34186
  ref,
@@ -34147,7 +34197,7 @@ var MenubarSubTrigger = React83.forwardRef(({ className, inset, children, ...pro
34147
34197
  }
34148
34198
  ));
34149
34199
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
34150
- var MenubarSubContent = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34200
+ var MenubarSubContent = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34151
34201
  MenubarPrimitive.SubContent,
34152
34202
  {
34153
34203
  ref,
@@ -34159,7 +34209,7 @@ var MenubarSubContent = React83.forwardRef(({ className, ...props }, ref) => /*
34159
34209
  }
34160
34210
  ));
34161
34211
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
34162
- var MenubarContent = React83.forwardRef(
34212
+ var MenubarContent = React84.forwardRef(
34163
34213
  ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34164
34214
  MenubarPrimitive.Content,
34165
34215
  {
@@ -34176,7 +34226,7 @@ var MenubarContent = React83.forwardRef(
34176
34226
  ) })
34177
34227
  );
34178
34228
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
34179
- var MenubarItem = React83.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34229
+ var MenubarItem = React84.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34180
34230
  MenubarPrimitive.Item,
34181
34231
  {
34182
34232
  ref,
@@ -34189,7 +34239,7 @@ var MenubarItem = React83.forwardRef(({ className, inset, ...props }, ref) => /*
34189
34239
  }
34190
34240
  ));
34191
34241
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
34192
- var MenubarCheckboxItem = React83.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34242
+ var MenubarCheckboxItem = React84.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34193
34243
  MenubarPrimitive.CheckboxItem,
34194
34244
  {
34195
34245
  ref,
@@ -34206,7 +34256,7 @@ var MenubarCheckboxItem = React83.forwardRef(({ className, children, checked, ..
34206
34256
  }
34207
34257
  ));
34208
34258
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
34209
- var MenubarRadioItem = React83.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34259
+ var MenubarRadioItem = React84.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
34210
34260
  MenubarPrimitive.RadioItem,
34211
34261
  {
34212
34262
  ref,
@@ -34222,7 +34272,7 @@ var MenubarRadioItem = React83.forwardRef(({ className, children, ...props }, re
34222
34272
  }
34223
34273
  ));
34224
34274
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
34225
- var MenubarLabel = React83.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34275
+ var MenubarLabel = React84.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34226
34276
  MenubarPrimitive.Label,
34227
34277
  {
34228
34278
  ref,
@@ -34235,7 +34285,7 @@ var MenubarLabel = React83.forwardRef(({ className, inset, ...props }, ref) => /
34235
34285
  }
34236
34286
  ));
34237
34287
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
34238
- var MenubarSeparator = React83.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34288
+ var MenubarSeparator = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
34239
34289
  MenubarPrimitive.Separator,
34240
34290
  {
34241
34291
  ref,
@@ -34262,11 +34312,11 @@ var MenubarShortcut = ({
34262
34312
  MenubarShortcut.displayname = "MenubarShortcut";
34263
34313
 
34264
34314
  // src/components/ui/navigation-menu.tsx
34265
- var React84 = __toESM(require("react"), 1);
34315
+ var React85 = __toESM(require("react"), 1);
34266
34316
  var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
34267
34317
  var import_class_variance_authority7 = require("class-variance-authority");
34268
34318
  var import_jsx_runtime92 = require("react/jsx-runtime");
34269
- var NavigationMenu = React84.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
34319
+ var NavigationMenu = React85.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
34270
34320
  NavigationMenuPrimitive.Root,
34271
34321
  {
34272
34322
  ref,
@@ -34282,7 +34332,7 @@ var NavigationMenu = React84.forwardRef(({ className, children, ...props }, ref)
34282
34332
  }
34283
34333
  ));
34284
34334
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
34285
- var NavigationMenuList = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34335
+ var NavigationMenuList = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34286
34336
  NavigationMenuPrimitive.List,
34287
34337
  {
34288
34338
  ref,
@@ -34298,7 +34348,7 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
34298
34348
  var navigationMenuTriggerStyle = (0, import_class_variance_authority7.cva)(
34299
34349
  "group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
34300
34350
  );
34301
- var NavigationMenuTrigger = React84.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
34351
+ var NavigationMenuTrigger = React85.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
34302
34352
  NavigationMenuPrimitive.Trigger,
34303
34353
  {
34304
34354
  ref,
@@ -34318,7 +34368,7 @@ var NavigationMenuTrigger = React84.forwardRef(({ className, children, ...props
34318
34368
  }
34319
34369
  ));
34320
34370
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
34321
- var NavigationMenuContent = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34371
+ var NavigationMenuContent = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34322
34372
  NavigationMenuPrimitive.Content,
34323
34373
  {
34324
34374
  ref,
@@ -34331,7 +34381,7 @@ var NavigationMenuContent = React84.forwardRef(({ className, ...props }, ref) =>
34331
34381
  ));
34332
34382
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
34333
34383
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
34334
- var NavigationMenuViewport = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34384
+ var NavigationMenuViewport = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34335
34385
  NavigationMenuPrimitive.Viewport,
34336
34386
  {
34337
34387
  className: cn(
@@ -34343,7 +34393,7 @@ var NavigationMenuViewport = React84.forwardRef(({ className, ...props }, ref) =
34343
34393
  }
34344
34394
  ) }));
34345
34395
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
34346
- var NavigationMenuIndicator = React84.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34396
+ var NavigationMenuIndicator = React85.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
34347
34397
  NavigationMenuPrimitive.Indicator,
34348
34398
  {
34349
34399
  ref,
@@ -34373,7 +34423,7 @@ function Spinner({ className, ...props }) {
34373
34423
 
34374
34424
  // src/molecules/generic/EditableField/EditableField.tsx
34375
34425
  var import_jsx_runtime94 = require("react/jsx-runtime");
34376
- var EditableField = import_react55.default.memo(
34426
+ var EditableField = import_react56.default.memo(
34377
34427
  ({
34378
34428
  label,
34379
34429
  value,
@@ -34393,12 +34443,12 @@ var EditableField = import_react55.default.memo(
34393
34443
  ...rest
34394
34444
  }) => {
34395
34445
  void rest;
34396
- const [localValue, setLocalValue] = (0, import_react55.useState)(value);
34397
- const inputRef = (0, import_react55.useRef)(null);
34398
- (0, import_react55.useEffect)(() => {
34446
+ const [localValue, setLocalValue] = (0, import_react56.useState)(value);
34447
+ const inputRef = (0, import_react56.useRef)(null);
34448
+ (0, import_react56.useEffect)(() => {
34399
34449
  setLocalValue(value);
34400
34450
  }, [value, isEditingProp]);
34401
- (0, import_react55.useEffect)(() => {
34451
+ (0, import_react56.useEffect)(() => {
34402
34452
  if (isEditingProp) {
34403
34453
  setTimeout(() => inputRef.current?.focus(), 0);
34404
34454
  }
@@ -34585,9 +34635,9 @@ var EditableField = import_react55.default.memo(
34585
34635
  EditableField.displayName = "EditableField";
34586
34636
 
34587
34637
  // src/molecules/generic/ActionButton/ActionButton.tsx
34588
- var import_react56 = __toESM(require("react"), 1);
34638
+ var import_react57 = __toESM(require("react"), 1);
34589
34639
  var import_jsx_runtime95 = require("react/jsx-runtime");
34590
- var ActionButton = import_react56.default.memo(
34640
+ var ActionButton = import_react57.default.memo(
34591
34641
  ({
34592
34642
  label,
34593
34643
  secondaryLabel,
@@ -34602,13 +34652,13 @@ var ActionButton = import_react56.default.memo(
34602
34652
  className,
34603
34653
  showCountdown = true
34604
34654
  }) => {
34605
- const [timeLeft, setTimeLeft] = (0, import_react56.useState)(countdownProp || 0);
34606
- (0, import_react56.useEffect)(() => {
34655
+ const [timeLeft, setTimeLeft] = (0, import_react57.useState)(countdownProp || 0);
34656
+ (0, import_react57.useEffect)(() => {
34607
34657
  if (countdownProp !== void 0) {
34608
34658
  setTimeLeft(countdownProp);
34609
34659
  }
34610
34660
  }, [countdownProp]);
34611
- (0, import_react56.useEffect)(() => {
34661
+ (0, import_react57.useEffect)(() => {
34612
34662
  if (countdownProp === void 0 || countdownProp <= 0 || isPaused || isLoading || disabled) {
34613
34663
  return;
34614
34664
  }
@@ -34677,10 +34727,10 @@ var ActionButton = import_react56.default.memo(
34677
34727
  ActionButton.displayName = "ActionButton";
34678
34728
 
34679
34729
  // src/molecules/generic/FormCard/FormCard.tsx
34680
- var import_react57 = __toESM(require("react"), 1);
34730
+ var import_react58 = __toESM(require("react"), 1);
34681
34731
  var import_jsx_runtime96 = require("react/jsx-runtime");
34682
34732
  var humanizeKey = (key) => key.replace(/[_-]+/g, " ").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/\b\w/g, (c) => c.toUpperCase()).trim();
34683
- var FormCard = import_react57.default.memo(
34733
+ var FormCard = import_react58.default.memo(
34684
34734
  ({
34685
34735
  title,
34686
34736
  fields = [],
@@ -34701,12 +34751,12 @@ var FormCard = import_react57.default.memo(
34701
34751
  footer,
34702
34752
  shouldStopPropagation = true
34703
34753
  }) => {
34704
- const [copied, setCopied] = (0, import_react57.useState)(false);
34705
- const [internalEditingFields, setInternalEditingFields] = (0, import_react57.useState)({});
34706
- const [internalSavingFields, setInternalSavingFields] = (0, import_react57.useState)({});
34707
- const [internalData, setInternalData] = (0, import_react57.useState)(data);
34708
- const [userEditedFields, setUserEditedFields] = (0, import_react57.useState)({});
34709
- import_react57.default.useEffect(() => {
34754
+ const [copied, setCopied] = (0, import_react58.useState)(false);
34755
+ const [internalEditingFields, setInternalEditingFields] = (0, import_react58.useState)({});
34756
+ const [internalSavingFields, setInternalSavingFields] = (0, import_react58.useState)({});
34757
+ const [internalData, setInternalData] = (0, import_react58.useState)(data);
34758
+ const [userEditedFields, setUserEditedFields] = (0, import_react58.useState)({});
34759
+ import_react58.default.useEffect(() => {
34710
34760
  setInternalData((prev) => {
34711
34761
  const newData = { ...data };
34712
34762
  Object.keys(userEditedFields).forEach((key) => {
@@ -34868,7 +34918,7 @@ var FormCard = import_react57.default.memo(
34868
34918
  FormCard.displayName = "FormCard";
34869
34919
 
34870
34920
  // src/molecules/generic/DynamicFormCard/DynamicFormCard.tsx
34871
- var import_react58 = __toESM(require("react"), 1);
34921
+ var import_react59 = __toESM(require("react"), 1);
34872
34922
 
34873
34923
  // src/lib/field-utils.ts
34874
34924
  function normalizeLabel(key) {
@@ -34944,7 +34994,7 @@ function generateFieldsFromPropDefinitions(propDefs, data) {
34944
34994
 
34945
34995
  // src/molecules/generic/DynamicFormCard/DynamicFormCard.tsx
34946
34996
  var import_jsx_runtime97 = require("react/jsx-runtime");
34947
- var DynamicFormCard = import_react58.default.memo(
34997
+ var DynamicFormCard = import_react59.default.memo(
34948
34998
  ({
34949
34999
  data = {},
34950
35000
  fields: providedFields,
@@ -34957,7 +35007,7 @@ var DynamicFormCard = import_react58.default.memo(
34957
35007
  showTimeline = true,
34958
35008
  ...rest
34959
35009
  }) => {
34960
- const fields = (0, import_react58.useMemo)(
35010
+ const fields = (0, import_react59.useMemo)(
34961
35011
  () => providedFields ?? generateFieldsFromData(data),
34962
35012
  [providedFields, data]
34963
35013
  );
@@ -35220,10 +35270,10 @@ var FilterBar = ({ filters, showSearch = true, className, onFilterToggle, onSear
35220
35270
  };
35221
35271
 
35222
35272
  // src/molecules/generic/FileUpload/FileUpload.tsx
35223
- var import_react59 = __toESM(require("react"), 1);
35273
+ var import_react60 = __toESM(require("react"), 1);
35224
35274
  var import_jsx_runtime102 = require("react/jsx-runtime");
35225
35275
  var FileUpload = ({ title, accept, multiple, className, style, onFilesSelected }) => {
35226
- const [isDragging, setIsDragging] = import_react59.default.useState(false);
35276
+ const [isDragging, setIsDragging] = import_react60.default.useState(false);
35227
35277
  const hasPxVars = style && Object.keys(style).some((k) => k.startsWith("--px-"));
35228
35278
  const wrapperStyle = {
35229
35279
  ...hasPxVars && {
@@ -35385,7 +35435,7 @@ var DataGrid = ({
35385
35435
  };
35386
35436
 
35387
35437
  // src/molecules/generic/StepWizard/StepWizard.tsx
35388
- var import_react60 = __toESM(require("react"), 1);
35438
+ var import_react61 = __toESM(require("react"), 1);
35389
35439
  var import_jsx_runtime105 = require("react/jsx-runtime");
35390
35440
  var StepWizard = ({
35391
35441
  steps,
@@ -35396,7 +35446,7 @@ var StepWizard = ({
35396
35446
  const isCompleted = i < currentStep;
35397
35447
  const isActive = i === currentStep;
35398
35448
  const isLast = i === steps.length - 1;
35399
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_react60.default.Fragment, { children: [
35449
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_react61.default.Fragment, { children: [
35400
35450
  /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col items-center relative group", children: [
35401
35451
  /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
35402
35452
  "div",
@@ -35495,10 +35545,10 @@ var NotificationList = ({
35495
35545
  };
35496
35546
 
35497
35547
  // src/molecules/generic/SocialPostCard/SocialPostCard.tsx
35498
- var import_react62 = require("react");
35548
+ var import_react63 = require("react");
35499
35549
 
35500
35550
  // src/molecules/generic/SocialPostCard/PlatformPost.tsx
35501
- var import_react61 = require("react");
35551
+ var import_react62 = require("react");
35502
35552
  var import_jsx_runtime107 = require("react/jsx-runtime");
35503
35553
  var PLATFORM_STYLES = {
35504
35554
  twitter: {
@@ -35524,8 +35574,8 @@ var PLATFORM_STYLES = {
35524
35574
  }
35525
35575
  };
35526
35576
  var PlatformPost = ({ post, loading, className }) => {
35527
- const [copied, setCopied] = (0, import_react61.useState)(false);
35528
- const [caption, setCaption] = (0, import_react61.useState)(post.caption);
35577
+ const [copied, setCopied] = (0, import_react62.useState)(false);
35578
+ const [caption, setCaption] = (0, import_react62.useState)(post.caption);
35529
35579
  const style = PLATFORM_STYLES[post.platform] || PLATFORM_STYLES.twitter;
35530
35580
  const charCount = caption.length;
35531
35581
  const isOverLimit = charCount > post.character_limit;
@@ -35654,7 +35704,7 @@ var SocialPostCard = ({
35654
35704
  sendMessage: _sendMessage
35655
35705
  }) => {
35656
35706
  const initialSelected = posts?.map((p) => p.platform) || ALL_PLATFORMS.slice();
35657
- const [selectedPlatforms, setSelectedPlatforms] = (0, import_react62.useState)(initialSelected);
35707
+ const [selectedPlatforms, setSelectedPlatforms] = (0, import_react63.useState)(initialSelected);
35658
35708
  const togglePlatform = (platform) => {
35659
35709
  setSelectedPlatforms((prev) => {
35660
35710
  if (prev.includes(platform)) {
@@ -36790,9 +36840,9 @@ var GoogleSheetsListCard = ({
36790
36840
  };
36791
36841
 
36792
36842
  // src/molecules/generic/RecommendationCard/RecommendationCard.tsx
36793
- var import_react63 = __toESM(require("react"), 1);
36843
+ var import_react64 = __toESM(require("react"), 1);
36794
36844
  var import_jsx_runtime121 = require("react/jsx-runtime");
36795
- var RecommendationCard = import_react63.default.memo(
36845
+ var RecommendationCard = import_react64.default.memo(
36796
36846
  ({
36797
36847
  question,
36798
36848
  recommended,
@@ -36804,11 +36854,11 @@ var RecommendationCard = import_react63.default.memo(
36804
36854
  className,
36805
36855
  onAction
36806
36856
  }) => {
36807
- const [mode, setMode] = import_react63.default.useState(
36857
+ const [mode, setMode] = import_react64.default.useState(
36808
36858
  "recommended"
36809
36859
  );
36810
- const [customText, setCustomText] = import_react63.default.useState("");
36811
- const [isSubmitted, setIsSubmitted] = import_react63.default.useState(false);
36860
+ const [customText, setCustomText] = import_react64.default.useState("");
36861
+ const [isSubmitted, setIsSubmitted] = import_react64.default.useState(false);
36812
36862
  const isInteractive = isLatestMessage && !disabled && !isSubmitted;
36813
36863
  const handleModeChange = (newMode) => {
36814
36864
  if (isInteractive) {
@@ -36955,9 +37005,9 @@ var RecommendationCard = import_react63.default.memo(
36955
37005
  RecommendationCard.displayName = "RecommendationCard";
36956
37006
 
36957
37007
  // src/molecules/generic/ConfirmationCard/ConfirmationCard.tsx
36958
- var import_react64 = __toESM(require("react"), 1);
37008
+ var import_react65 = __toESM(require("react"), 1);
36959
37009
  var import_jsx_runtime122 = require("react/jsx-runtime");
36960
- var ConfirmationCard = import_react64.default.memo(
37010
+ var ConfirmationCard = import_react65.default.memo(
36961
37011
  ({
36962
37012
  title,
36963
37013
  description,
@@ -36970,8 +37020,8 @@ var ConfirmationCard = import_react64.default.memo(
36970
37020
  className,
36971
37021
  onAction
36972
37022
  }) => {
36973
- const [isSubmitted, setIsSubmitted] = import_react64.default.useState(false);
36974
- const [choice, setChoice] = import_react64.default.useState(null);
37023
+ const [isSubmitted, setIsSubmitted] = import_react65.default.useState(false);
37024
+ const [choice, setChoice] = import_react65.default.useState(null);
36975
37025
  const isInteractive = isLatestMessage && !disabled && !isSubmitted;
36976
37026
  const handleConfirm = (e) => {
36977
37027
  e.preventDefault();
@@ -37040,7 +37090,7 @@ var ConfirmationCard = import_react64.default.memo(
37040
37090
  ConfirmationCard.displayName = "ConfirmationCard";
37041
37091
 
37042
37092
  // src/molecules/generic/InputWidget/InputWidget.tsx
37043
- var import_react65 = __toESM(require("react"), 1);
37093
+ var import_react66 = __toESM(require("react"), 1);
37044
37094
 
37045
37095
  // src/lib/run-sse.ts
37046
37096
  var INPUT_ATOM_NAMES = /* @__PURE__ */ new Set([
@@ -37162,7 +37212,7 @@ var InputWidget = ({
37162
37212
  onAction,
37163
37213
  isSubmitting = false
37164
37214
  }) => {
37165
- const [values, setValues] = import_react65.default.useState(() => {
37215
+ const [values, setValues] = import_react66.default.useState(() => {
37166
37216
  const initial = {};
37167
37217
  for (const f of fields) {
37168
37218
  initial[f.key] = f.defaultValue ?? defaultForKind(f.kind);
@@ -37418,7 +37468,7 @@ function stringifyValue(value, atomName, props) {
37418
37468
  }
37419
37469
 
37420
37470
  // src/molecules/generic/KPIStatsCard/KPIStatsCard.tsx
37421
- var import_react66 = __toESM(require("react"), 1);
37471
+ var import_react67 = __toESM(require("react"), 1);
37422
37472
  var import_jsx_runtime124 = require("react/jsx-runtime");
37423
37473
  var TrendBadge = ({ item }) => {
37424
37474
  if (!item.delta && item.trend === void 0) return null;
@@ -37435,7 +37485,7 @@ var TrendBadge = ({ item }) => {
37435
37485
  item.delta
37436
37486
  ] });
37437
37487
  };
37438
- var KPIStatsCard = import_react66.default.memo(
37488
+ var KPIStatsCard = import_react67.default.memo(
37439
37489
  ({ title, subtitle, stats, items, theme, className, onAction: _onAction }) => {
37440
37490
  const s = th(theme);
37441
37491
  const displayStats = stats || items || [];
@@ -37495,7 +37545,7 @@ var KPIStatsCard = import_react66.default.memo(
37495
37545
  KPIStatsCard.displayName = "KPIStatsCard";
37496
37546
 
37497
37547
  // src/molecules/generic/ApprovalCard/ApprovalCard.tsx
37498
- var import_react67 = __toESM(require("react"), 1);
37548
+ var import_react68 = __toESM(require("react"), 1);
37499
37549
  var import_jsx_runtime125 = require("react/jsx-runtime");
37500
37550
  var STATUS_CONFIG2 = {
37501
37551
  pending: { label: "Pending Review", icon: Clock, className: "text-yellow-400 bg-yellow-500/10 border-yellow-500/20" },
@@ -37503,7 +37553,7 @@ var STATUS_CONFIG2 = {
37503
37553
  rejected: { label: "Rejected", icon: CircleX, className: "text-rose-400 bg-rose-500/10 border-rose-500/20" },
37504
37554
  changes_requested: { label: "Changes Requested", icon: MessageSquare, className: "text-blue-400 bg-blue-500/10 border-blue-500/20" }
37505
37555
  };
37506
- var ApprovalCard = import_react67.default.memo(
37556
+ var ApprovalCard = import_react68.default.memo(
37507
37557
  ({
37508
37558
  title,
37509
37559
  description,
@@ -37521,9 +37571,9 @@ var ApprovalCard = import_react67.default.memo(
37521
37571
  onAction
37522
37572
  }) => {
37523
37573
  const s = th(theme);
37524
- const [status, setStatus] = import_react67.default.useState(propStatus || "pending");
37525
- const [isSubmitted, setIsSubmitted] = import_react67.default.useState(!!propStatus && propStatus !== "pending");
37526
- import_react67.default.useEffect(() => {
37574
+ const [status, setStatus] = import_react68.default.useState(propStatus || "pending");
37575
+ const [isSubmitted, setIsSubmitted] = import_react68.default.useState(!!propStatus && propStatus !== "pending");
37576
+ import_react68.default.useEffect(() => {
37527
37577
  if (propStatus) {
37528
37578
  setStatus(propStatus);
37529
37579
  setIsSubmitted(propStatus !== "pending");
@@ -37611,7 +37661,7 @@ var ApprovalCard = import_react67.default.memo(
37611
37661
  ApprovalCard.displayName = "ApprovalCard";
37612
37662
 
37613
37663
  // src/molecules/generic/TimelineCard/TimelineCard.tsx
37614
- var import_react68 = __toESM(require("react"), 1);
37664
+ var import_react69 = __toESM(require("react"), 1);
37615
37665
  var import_jsx_runtime126 = require("react/jsx-runtime");
37616
37666
  var StepDot = ({ step, accentColor }) => {
37617
37667
  if (step.status === "completed") return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-emerald-500/20 ring-2 ring-emerald-500/40", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Check, { className: "h-3 w-3 text-emerald-400", strokeWidth: 2.5 }) });
@@ -37629,7 +37679,7 @@ var StepDot = ({ step, accentColor }) => {
37629
37679
  }
37630
37680
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-gray400/20 ring-2 ring-gray400/20", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Circle, { className: "h-2.5 w-2.5 text-cardText/20" }) });
37631
37681
  };
37632
- var TimelineCard = import_react68.default.memo(
37682
+ var TimelineCard = import_react69.default.memo(
37633
37683
  ({ title, steps, milestones, theme, className, onAction: _onAction }) => {
37634
37684
  const s = th(theme);
37635
37685
  const displaySteps = steps || milestones || [];
@@ -37687,9 +37737,9 @@ var TimelineCard = import_react68.default.memo(
37687
37737
  TimelineCard.displayName = "TimelineCard";
37688
37738
 
37689
37739
  // src/molecules/generic/FeedbackRatingCard/FeedbackRatingCard.tsx
37690
- var import_react69 = __toESM(require("react"), 1);
37740
+ var import_react70 = __toESM(require("react"), 1);
37691
37741
  var import_jsx_runtime127 = require("react/jsx-runtime");
37692
- var FeedbackRatingCard = import_react69.default.memo(
37742
+ var FeedbackRatingCard = import_react70.default.memo(
37693
37743
  ({
37694
37744
  question,
37695
37745
  max_rating = 5,
@@ -37705,10 +37755,10 @@ var FeedbackRatingCard = import_react69.default.memo(
37705
37755
  onAction
37706
37756
  }) => {
37707
37757
  const s = th(theme);
37708
- const [rating, setRating] = import_react69.default.useState(0);
37709
- const [hovered, setHovered] = import_react69.default.useState(0);
37710
- const [comment, setComment] = import_react69.default.useState("");
37711
- const [isSubmitted, setIsSubmitted] = import_react69.default.useState(false);
37758
+ const [rating, setRating] = import_react70.default.useState(0);
37759
+ const [hovered, setHovered] = import_react70.default.useState(0);
37760
+ const [comment, setComment] = import_react70.default.useState("");
37761
+ const [isSubmitted, setIsSubmitted] = import_react70.default.useState(false);
37712
37762
  const isInteractive = isLatestMessage && !disabled && !isSubmitted;
37713
37763
  const stars = Array.from({ length: max_rating }, (_, i) => i + 1);
37714
37764
  const handleSubmit = (e) => {
@@ -37787,9 +37837,9 @@ Feedback: ${comment}` : `Rating: ${rating}/${max_rating} ${label}`;
37787
37837
  FeedbackRatingCard.displayName = "FeedbackRatingCard";
37788
37838
 
37789
37839
  // src/molecules/generic/DataTableCard/DataTableCard.tsx
37790
- var import_react70 = __toESM(require("react"), 1);
37840
+ var import_react71 = __toESM(require("react"), 1);
37791
37841
  var import_jsx_runtime128 = require("react/jsx-runtime");
37792
- var DataTableCard = import_react70.default.memo(
37842
+ var DataTableCard = import_react71.default.memo(
37793
37843
  ({ title, caption, columns, rows, highlight_column, theme, className, onAction: _onAction }) => {
37794
37844
  const s = th(theme);
37795
37845
  return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: cn("w-full rounded-[16px] border border-gray400 bg-cardSurface overflow-hidden", className), style: s.root, children: [
@@ -37839,9 +37889,9 @@ var DataTableCard = import_react70.default.memo(
37839
37889
  DataTableCard.displayName = "DataTableCard";
37840
37890
 
37841
37891
  // src/molecules/generic/ChecklistCard/ChecklistCard.tsx
37842
- var import_react71 = __toESM(require("react"), 1);
37892
+ var import_react72 = __toESM(require("react"), 1);
37843
37893
  var import_jsx_runtime129 = require("react/jsx-runtime");
37844
- var ChecklistCard = import_react71.default.memo(
37894
+ var ChecklistCard = import_react72.default.memo(
37845
37895
  ({
37846
37896
  title,
37847
37897
  description,
@@ -37858,10 +37908,10 @@ var ChecklistCard = import_react71.default.memo(
37858
37908
  }) => {
37859
37909
  const s = th(theme);
37860
37910
  const source = items || tasks || [];
37861
- const [checked, setChecked] = import_react71.default.useState(
37911
+ const [checked, setChecked] = import_react72.default.useState(
37862
37912
  () => new Set(source.filter((i) => i.checked).map((i) => i.id))
37863
37913
  );
37864
- const [isSubmitted, setIsSubmitted] = import_react71.default.useState(false);
37914
+ const [isSubmitted, setIsSubmitted] = import_react72.default.useState(false);
37865
37915
  const isInteractive = isLatestMessage && !disabled && !isSubmitted;
37866
37916
  const toggle = (id) => {
37867
37917
  if (!isInteractive) return;
@@ -37974,9 +38024,9 @@ var ChecklistCard = import_react71.default.memo(
37974
38024
  ChecklistCard.displayName = "ChecklistCard";
37975
38025
 
37976
38026
  // src/molecules/generic/PollCard/PollCard.tsx
37977
- var import_react72 = __toESM(require("react"), 1);
38027
+ var import_react73 = __toESM(require("react"), 1);
37978
38028
  var import_jsx_runtime130 = require("react/jsx-runtime");
37979
- var PollCard = import_react72.default.memo(
38029
+ var PollCard = import_react73.default.memo(
37980
38030
  ({
37981
38031
  question,
37982
38032
  options,
@@ -37993,9 +38043,9 @@ var PollCard = import_react72.default.memo(
37993
38043
  }) => {
37994
38044
  const s = th(theme);
37995
38045
  const source = options || choices || [];
37996
- const [selected, setSelected] = import_react72.default.useState(/* @__PURE__ */ new Set());
37997
- const [hasVoted, setHasVoted] = import_react72.default.useState(false);
37998
- const [voteCounts, setVoteCounts] = import_react72.default.useState(
38046
+ const [selected, setSelected] = import_react73.default.useState(/* @__PURE__ */ new Set());
38047
+ const [hasVoted, setHasVoted] = import_react73.default.useState(false);
38048
+ const [voteCounts, setVoteCounts] = import_react73.default.useState(
37999
38049
  () => Object.fromEntries(source.map((o) => [o.id, o.votes ?? 0]))
38000
38050
  );
38001
38051
  const isInteractive = isLatestMessage && !disabled && !hasVoted;
@@ -38134,7 +38184,7 @@ Selected: ${labels.join(", ")}`);
38134
38184
  PollCard.displayName = "PollCard";
38135
38185
 
38136
38186
  // src/molecules/generic/CalendarEventCard/CalendarEventCard.tsx
38137
- var import_react73 = __toESM(require("react"), 1);
38187
+ var import_react74 = __toESM(require("react"), 1);
38138
38188
  var import_jsx_runtime131 = require("react/jsx-runtime");
38139
38189
  var STATUS_STYLES = {
38140
38190
  upcoming: { label: "Upcoming", className: "text-blue-400 bg-blue-500/10 border-blue-500/20", dot: "bg-blue-400" },
@@ -38155,7 +38205,7 @@ function AvatarInitials({ name }) {
38155
38205
  }
38156
38206
  );
38157
38207
  }
38158
- var CalendarEventCard = import_react73.default.memo(
38208
+ var CalendarEventCard = import_react74.default.memo(
38159
38209
  ({
38160
38210
  title,
38161
38211
  date,
@@ -38172,7 +38222,7 @@ var CalendarEventCard = import_react73.default.memo(
38172
38222
  }) => {
38173
38223
  const s = th(theme);
38174
38224
  const cfg = STATUS_STYLES[status];
38175
- const parsedDate = import_react73.default.useMemo(() => {
38225
+ const parsedDate = import_react74.default.useMemo(() => {
38176
38226
  try {
38177
38227
  const d = new Date(date);
38178
38228
  if (isNaN(d.getTime())) {
@@ -38258,7 +38308,7 @@ var CalendarEventCard = import_react73.default.memo(
38258
38308
  CalendarEventCard.displayName = "CalendarEventCard";
38259
38309
 
38260
38310
  // src/molecules/generic/BudgetAllocCard/BudgetAllocCard.tsx
38261
- var import_react74 = __toESM(require("react"), 1);
38311
+ var import_react75 = __toESM(require("react"), 1);
38262
38312
  var import_jsx_runtime132 = require("react/jsx-runtime");
38263
38313
  var PALETTE = [
38264
38314
  "#BFAD82",
@@ -38284,7 +38334,7 @@ function formatAmount(amount, currency) {
38284
38334
  if (amount >= 1e3) return `${currency}${(amount / 1e3).toFixed(0)}K`;
38285
38335
  return `${currency}${amount.toLocaleString()}`;
38286
38336
  }
38287
- var BudgetAllocCard = import_react74.default.memo(
38337
+ var BudgetAllocCard = import_react75.default.memo(
38288
38338
  ({
38289
38339
  title,
38290
38340
  currency = "$",
@@ -38401,7 +38451,7 @@ var BudgetAllocCard = import_react74.default.memo(
38401
38451
  BudgetAllocCard.displayName = "BudgetAllocCard";
38402
38452
 
38403
38453
  // src/molecules/generic/ComparisonCard/ComparisonCard.tsx
38404
- var import_react75 = __toESM(require("react"), 1);
38454
+ var import_react76 = __toESM(require("react"), 1);
38405
38455
  var import_jsx_runtime133 = require("react/jsx-runtime");
38406
38456
  var BADGE_COLORS = {
38407
38457
  gold: "text-gold border-gold/30 bg-gold/10",
@@ -38409,7 +38459,7 @@ var BADGE_COLORS = {
38409
38459
  emerald: "text-emerald-400 border-emerald-500/30 bg-emerald-500/10",
38410
38460
  violet: "text-violet-400 border-violet-500/30 bg-violet-500/10"
38411
38461
  };
38412
- var ComparisonCard = import_react75.default.memo(
38462
+ var ComparisonCard = import_react76.default.memo(
38413
38463
  ({
38414
38464
  title,
38415
38465
  description,
@@ -38424,8 +38474,8 @@ var ComparisonCard = import_react75.default.memo(
38424
38474
  onAction
38425
38475
  }) => {
38426
38476
  const s = th(theme);
38427
- const [selected, setSelected] = import_react75.default.useState(null);
38428
- const [isSubmitted, setIsSubmitted] = import_react75.default.useState(false);
38477
+ const [selected, setSelected] = import_react76.default.useState(null);
38478
+ const [isSubmitted, setIsSubmitted] = import_react76.default.useState(false);
38429
38479
  const isInteractive = isLatestMessage && !disabled && !isSubmitted;
38430
38480
  const handleSelect = (opt) => (e) => {
38431
38481
  e.preventDefault();
@@ -39020,7 +39070,7 @@ var NextStepCard = ({
39020
39070
  ] });
39021
39071
 
39022
39072
  // src/molecules/generic/PresentationJobCard/PresentationJobCard.tsx
39023
- var import_react76 = require("react");
39073
+ var import_react77 = require("react");
39024
39074
  var import_jsx_runtime147 = require("react/jsx-runtime");
39025
39075
  var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.2", strokeLinecap: "round", strokeLinejoin: "round", children: [
39026
39076
  /* @__PURE__ */ (0, import_jsx_runtime147.jsx)("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
@@ -39077,7 +39127,7 @@ var FORMATS = [
39077
39127
  var ExportModal = ({ formats, title, onClose }) => {
39078
39128
  const available = FORMATS.filter((f) => formats[f.key]);
39079
39129
  const filename = title.replace(/[^a-z0-9]/gi, "-").toLowerCase();
39080
- const [downloadingKey, setDownloadingKey] = (0, import_react76.useState)(null);
39130
+ const [downloadingKey, setDownloadingKey] = (0, import_react77.useState)(null);
39081
39131
  const handleDownload = async (fmtKey, url, ext) => {
39082
39132
  if (downloadingKey) return;
39083
39133
  const downloadName = `${filename}${ext}`;
@@ -39145,10 +39195,10 @@ var ExportModal = ({ formats, title, onClose }) => {
39145
39195
  ] });
39146
39196
  };
39147
39197
  var FullscreenModal = ({ url, title, slideCount, initialSlide = 1, onClose }) => {
39148
- const [currentSlide, setCurrentSlide] = (0, import_react76.useState)(initialSlide);
39149
- const [iframeReady, setIframeReady] = (0, import_react76.useState)(false);
39150
- const iframeRef = (0, import_react76.useRef)(null);
39151
- (0, import_react76.useEffect)(() => {
39198
+ const [currentSlide, setCurrentSlide] = (0, import_react77.useState)(initialSlide);
39199
+ const [iframeReady, setIframeReady] = (0, import_react77.useState)(false);
39200
+ const iframeRef = (0, import_react77.useRef)(null);
39201
+ (0, import_react77.useEffect)(() => {
39152
39202
  const onKey = (e) => {
39153
39203
  if (e.key === "Escape") onClose();
39154
39204
  };
@@ -39166,7 +39216,7 @@ var FullscreenModal = ({ url, title, slideCount, initialSlide = 1, onClose }) =>
39166
39216
  window.removeEventListener("message", onMsg);
39167
39217
  };
39168
39218
  }, [onClose, iframeReady]);
39169
- (0, import_react76.useEffect)(() => {
39219
+ (0, import_react77.useEffect)(() => {
39170
39220
  document.body.style.overflow = "hidden";
39171
39221
  return () => {
39172
39222
  document.body.style.overflow = "";
@@ -39264,46 +39314,46 @@ var PresentationJobCard = ({
39264
39314
  }) => {
39265
39315
  const t = th(theme);
39266
39316
  const accentGradient = theme?.gradient;
39267
- const [status, setStatus] = (0, import_react76.useState)(initialStatus);
39268
- const [title, setTitle] = (0, import_react76.useState)(initialTitle);
39269
- const [slideCount, setSlideCount] = (0, import_react76.useState)(initialSlideCount ?? 0);
39270
- const [formats, setFormats] = (0, import_react76.useState)(initialFormats);
39271
- const [error, setError] = (0, import_react76.useState)(initialError);
39272
- const [progress, setProgress] = (0, import_react76.useState)(initialProgress);
39273
- const [showExport, setShowExport] = (0, import_react76.useState)(false);
39274
- const [showFullscreen, setShowFullscreen] = (0, import_react76.useState)(false);
39275
- const [copied, setCopied] = (0, import_react76.useState)(false);
39276
- const [currentSlide, setCurrentSlide] = (0, import_react76.useState)(1);
39277
- const [previewScale, setPreviewScale] = (0, import_react76.useState)(1);
39278
- const [iframeReady, setIframeReady] = (0, import_react76.useState)(false);
39279
- const intervalRef = (0, import_react76.useRef)(null);
39280
- const previewRef = (0, import_react76.useRef)(null);
39281
- const iframeRef = (0, import_react76.useRef)(null);
39282
- (0, import_react76.useEffect)(() => {
39317
+ const [status, setStatus] = (0, import_react77.useState)(initialStatus);
39318
+ const [title, setTitle] = (0, import_react77.useState)(initialTitle);
39319
+ const [slideCount, setSlideCount] = (0, import_react77.useState)(initialSlideCount ?? 0);
39320
+ const [formats, setFormats] = (0, import_react77.useState)(initialFormats);
39321
+ const [error, setError] = (0, import_react77.useState)(initialError);
39322
+ const [progress, setProgress] = (0, import_react77.useState)(initialProgress);
39323
+ const [showExport, setShowExport] = (0, import_react77.useState)(false);
39324
+ const [showFullscreen, setShowFullscreen] = (0, import_react77.useState)(false);
39325
+ const [copied, setCopied] = (0, import_react77.useState)(false);
39326
+ const [currentSlide, setCurrentSlide] = (0, import_react77.useState)(1);
39327
+ const [previewScale, setPreviewScale] = (0, import_react77.useState)(1);
39328
+ const [iframeReady, setIframeReady] = (0, import_react77.useState)(false);
39329
+ const intervalRef = (0, import_react77.useRef)(null);
39330
+ const previewRef = (0, import_react77.useRef)(null);
39331
+ const iframeRef = (0, import_react77.useRef)(null);
39332
+ (0, import_react77.useEffect)(() => {
39283
39333
  setStatus(initialStatus);
39284
39334
  }, [initialStatus]);
39285
39335
  const progressPct = initialProgress?.percentage;
39286
39336
  const progressStep = initialProgress?.current_step;
39287
- (0, import_react76.useEffect)(() => {
39337
+ (0, import_react77.useEffect)(() => {
39288
39338
  if (initialProgress) setProgress(initialProgress);
39289
39339
  }, [progressPct, progressStep]);
39290
- (0, import_react76.useEffect)(() => {
39340
+ (0, import_react77.useEffect)(() => {
39291
39341
  if (initialError) setError(initialError);
39292
39342
  }, [initialError]);
39293
- (0, import_react76.useEffect)(() => {
39343
+ (0, import_react77.useEffect)(() => {
39294
39344
  if (initialSlideCount !== void 0) setSlideCount(initialSlideCount);
39295
39345
  }, [initialSlideCount]);
39296
39346
  const htmlUrl = initialFormats?.html_url;
39297
- (0, import_react76.useEffect)(() => {
39347
+ (0, import_react77.useEffect)(() => {
39298
39348
  if (initialFormats) setFormats(initialFormats);
39299
39349
  }, [htmlUrl]);
39300
- (0, import_react76.useEffect)(() => {
39350
+ (0, import_react77.useEffect)(() => {
39301
39351
  if (initialTitle) setTitle(initialTitle);
39302
39352
  }, [initialTitle]);
39303
- const updateScale = (0, import_react76.useCallback)(() => {
39353
+ const updateScale = (0, import_react77.useCallback)(() => {
39304
39354
  if (previewRef.current) setPreviewScale(previewRef.current.offsetWidth / 1280);
39305
39355
  }, []);
39306
- (0, import_react76.useEffect)(() => {
39356
+ (0, import_react77.useEffect)(() => {
39307
39357
  updateScale();
39308
39358
  setIframeReady(false);
39309
39359
  if (typeof ResizeObserver === "undefined") return;
@@ -39311,7 +39361,7 @@ var PresentationJobCard = ({
39311
39361
  if (previewRef.current) ro.observe(previewRef.current);
39312
39362
  return () => ro.disconnect();
39313
39363
  }, [updateScale, formats.html_url]);
39314
- (0, import_react76.useEffect)(() => {
39364
+ (0, import_react77.useEffect)(() => {
39315
39365
  const handler = (e) => {
39316
39366
  if (e.data?.type === "slideChanged") {
39317
39367
  setCurrentSlide(e.data.slide);
@@ -39336,12 +39386,12 @@ var PresentationJobCard = ({
39336
39386
  iframe.contentWindow.postMessage({ type: command }, "*");
39337
39387
  };
39338
39388
  const isTerminal = status === "complete" || status === "failed";
39339
- const onCompleteRef = (0, import_react76.useRef)(onComplete);
39340
- const onFailedRef = (0, import_react76.useRef)(onFailed);
39341
- const hasNotifiedRef = (0, import_react76.useRef)(false);
39389
+ const onCompleteRef = (0, import_react77.useRef)(onComplete);
39390
+ const onFailedRef = (0, import_react77.useRef)(onFailed);
39391
+ const hasNotifiedRef = (0, import_react77.useRef)(false);
39342
39392
  onCompleteRef.current = onComplete;
39343
39393
  onFailedRef.current = onFailed;
39344
- (0, import_react76.useEffect)(() => {
39394
+ (0, import_react77.useEffect)(() => {
39345
39395
  if (isTerminal || !pollUrl) return;
39346
39396
  const poll = async () => {
39347
39397
  try {
@@ -39390,7 +39440,7 @@ var PresentationJobCard = ({
39390
39440
  if (intervalRef.current) clearInterval(intervalRef.current);
39391
39441
  };
39392
39442
  }, [isTerminal, pollUrl, authToken, initialTitle]);
39393
- (0, import_react76.useEffect)(() => {
39443
+ (0, import_react77.useEffect)(() => {
39394
39444
  if (isTerminal && intervalRef.current) {
39395
39445
  clearInterval(intervalRef.current);
39396
39446
  intervalRef.current = null;
@@ -39667,7 +39717,7 @@ var PresentationJobCard = ({
39667
39717
  };
39668
39718
 
39669
39719
  // src/molecules/generic/ResearchReportJobCard/ResearchReportJobCard.tsx
39670
- var import_react77 = require("react");
39720
+ var import_react78 = require("react");
39671
39721
  var import_jsx_runtime148 = require("react/jsx-runtime");
39672
39722
  var DEFAULT_THEME = {
39673
39723
  primary: "#8b5cf6",
@@ -39710,14 +39760,14 @@ var ExpandIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime148.jsxs)("svg", {
39710
39760
  /* @__PURE__ */ (0, import_jsx_runtime148.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
39711
39761
  ] });
39712
39762
  var FullscreenPreviewModal = ({ url, title, onClose }) => {
39713
- (0, import_react77.useEffect)(() => {
39763
+ (0, import_react78.useEffect)(() => {
39714
39764
  const onKey = (e) => {
39715
39765
  if (e.key === "Escape") onClose();
39716
39766
  };
39717
39767
  document.addEventListener("keydown", onKey);
39718
39768
  return () => document.removeEventListener("keydown", onKey);
39719
39769
  }, [onClose]);
39720
- (0, import_react77.useEffect)(() => {
39770
+ (0, import_react78.useEffect)(() => {
39721
39771
  document.body.style.overflow = "hidden";
39722
39772
  return () => {
39723
39773
  document.body.style.overflow = "";
@@ -39776,79 +39826,79 @@ var ResearchReportJobCard = (props) => {
39776
39826
  compact = false
39777
39827
  } = props;
39778
39828
  const inferredStatus = initialStatus ?? (initialHtmlUrl ? "complete" : void 0);
39779
- const [status, setStatus] = (0, import_react77.useState)(inferredStatus);
39780
- const [title, setTitle] = (0, import_react77.useState)(initialTitle);
39781
- const [depth, setDepth] = (0, import_react77.useState)(initialDepth || "");
39782
- const [sectionCount, setSectionCount] = (0, import_react77.useState)(initialSectionCount ?? 0);
39783
- const [sourceCount, setSourceCount] = (0, import_react77.useState)(initialSourceCount ?? 0);
39784
- const [wordCount, setWordCount] = (0, import_react77.useState)(initialWordCount ?? 0);
39785
- const [summary, setSummary] = (0, import_react77.useState)(initialSummary || "");
39786
- const [htmlUrl, setHtmlUrl] = (0, import_react77.useState)(initialHtmlUrl || "");
39787
- const [theme, setTheme] = (0, import_react77.useState)(initialTheme || DEFAULT_THEME);
39788
- const [error, setError] = (0, import_react77.useState)(initialError);
39789
- const [progress, setProgress] = (0, import_react77.useState)(initialProgress);
39790
- const [showPreview, setShowPreview] = (0, import_react77.useState)(false);
39791
- const [previewScale, setPreviewScale] = (0, import_react77.useState)(1);
39792
- const previewRef = (0, import_react77.useRef)(null);
39793
- const intervalRef = (0, import_react77.useRef)(null);
39794
- const onCompleteRef = (0, import_react77.useRef)(onComplete);
39795
- const onFailedRef = (0, import_react77.useRef)(onFailed);
39796
- const hasNotifiedRef = (0, import_react77.useRef)(false);
39829
+ const [status, setStatus] = (0, import_react78.useState)(inferredStatus);
39830
+ const [title, setTitle] = (0, import_react78.useState)(initialTitle);
39831
+ const [depth, setDepth] = (0, import_react78.useState)(initialDepth || "");
39832
+ const [sectionCount, setSectionCount] = (0, import_react78.useState)(initialSectionCount ?? 0);
39833
+ const [sourceCount, setSourceCount] = (0, import_react78.useState)(initialSourceCount ?? 0);
39834
+ const [wordCount, setWordCount] = (0, import_react78.useState)(initialWordCount ?? 0);
39835
+ const [summary, setSummary] = (0, import_react78.useState)(initialSummary || "");
39836
+ const [htmlUrl, setHtmlUrl] = (0, import_react78.useState)(initialHtmlUrl || "");
39837
+ const [theme, setTheme] = (0, import_react78.useState)(initialTheme || DEFAULT_THEME);
39838
+ const [error, setError] = (0, import_react78.useState)(initialError);
39839
+ const [progress, setProgress] = (0, import_react78.useState)(initialProgress);
39840
+ const [showPreview, setShowPreview] = (0, import_react78.useState)(false);
39841
+ const [previewScale, setPreviewScale] = (0, import_react78.useState)(1);
39842
+ const previewRef = (0, import_react78.useRef)(null);
39843
+ const intervalRef = (0, import_react78.useRef)(null);
39844
+ const onCompleteRef = (0, import_react78.useRef)(onComplete);
39845
+ const onFailedRef = (0, import_react78.useRef)(onFailed);
39846
+ const hasNotifiedRef = (0, import_react78.useRef)(false);
39797
39847
  onCompleteRef.current = onComplete;
39798
39848
  onFailedRef.current = onFailed;
39799
- (0, import_react77.useEffect)(() => {
39849
+ (0, import_react78.useEffect)(() => {
39800
39850
  const newStatus = initialStatus ?? (initialHtmlUrl ? "complete" : void 0);
39801
39851
  setStatus(newStatus);
39802
39852
  }, [initialStatus, initialHtmlUrl]);
39803
- (0, import_react77.useEffect)(() => {
39853
+ (0, import_react78.useEffect)(() => {
39804
39854
  if (initialTitle) setTitle(initialTitle);
39805
39855
  }, [initialTitle]);
39806
- (0, import_react77.useEffect)(() => {
39856
+ (0, import_react78.useEffect)(() => {
39807
39857
  if (initialHtmlUrl) setHtmlUrl(initialHtmlUrl);
39808
39858
  }, [initialHtmlUrl]);
39809
- (0, import_react77.useEffect)(() => {
39859
+ (0, import_react78.useEffect)(() => {
39810
39860
  if (initialDepth) setDepth(initialDepth);
39811
39861
  }, [initialDepth]);
39812
- (0, import_react77.useEffect)(() => {
39862
+ (0, import_react78.useEffect)(() => {
39813
39863
  if (initialSectionCount !== void 0) setSectionCount(initialSectionCount);
39814
39864
  }, [initialSectionCount]);
39815
- (0, import_react77.useEffect)(() => {
39865
+ (0, import_react78.useEffect)(() => {
39816
39866
  if (initialSourceCount !== void 0) setSourceCount(initialSourceCount);
39817
39867
  }, [initialSourceCount]);
39818
- (0, import_react77.useEffect)(() => {
39868
+ (0, import_react78.useEffect)(() => {
39819
39869
  if (initialWordCount !== void 0) setWordCount(initialWordCount);
39820
39870
  }, [initialWordCount]);
39821
- (0, import_react77.useEffect)(() => {
39871
+ (0, import_react78.useEffect)(() => {
39822
39872
  if (initialSummary) setSummary(initialSummary);
39823
39873
  }, [initialSummary]);
39824
39874
  const themePrimary = initialTheme?.primary;
39825
- (0, import_react77.useEffect)(() => {
39875
+ (0, import_react78.useEffect)(() => {
39826
39876
  if (initialTheme) setTheme(initialTheme);
39827
39877
  }, [themePrimary]);
39828
- (0, import_react77.useEffect)(() => {
39878
+ (0, import_react78.useEffect)(() => {
39829
39879
  if (initialError) setError(initialError);
39830
39880
  }, [initialError]);
39831
39881
  const progressPct = initialProgress?.percentage;
39832
39882
  const progressStep = initialProgress?.current_step;
39833
- (0, import_react77.useEffect)(() => {
39883
+ (0, import_react78.useEffect)(() => {
39834
39884
  if (initialProgress) setProgress(initialProgress);
39835
39885
  }, [progressPct, progressStep]);
39836
39886
  const isTerminal = status === "complete" || status === "failed";
39837
39887
  const primaryColor = theme?.primary || DEFAULT_THEME.primary;
39838
39888
  const hasHTML = Boolean(htmlUrl);
39839
- const updateScale = (0, import_react77.useCallback)(() => {
39889
+ const updateScale = (0, import_react78.useCallback)(() => {
39840
39890
  if (previewRef.current) {
39841
39891
  setPreviewScale(previewRef.current.offsetWidth / 800);
39842
39892
  }
39843
39893
  }, []);
39844
- (0, import_react77.useEffect)(() => {
39894
+ (0, import_react78.useEffect)(() => {
39845
39895
  updateScale();
39846
39896
  if (typeof ResizeObserver === "undefined") return;
39847
39897
  const ro = new ResizeObserver(updateScale);
39848
39898
  if (previewRef.current) ro.observe(previewRef.current);
39849
39899
  return () => ro.disconnect();
39850
39900
  }, [updateScale, htmlUrl]);
39851
- (0, import_react77.useEffect)(() => {
39901
+ (0, import_react78.useEffect)(() => {
39852
39902
  if (isTerminal || !pollUrl) return;
39853
39903
  const poll = async () => {
39854
39904
  try {
@@ -39898,7 +39948,7 @@ var ResearchReportJobCard = (props) => {
39898
39948
  if (intervalRef.current) clearInterval(intervalRef.current);
39899
39949
  };
39900
39950
  }, [isTerminal, pollUrl, authToken, initialTitle]);
39901
- (0, import_react77.useEffect)(() => {
39951
+ (0, import_react78.useEffect)(() => {
39902
39952
  if (isTerminal && intervalRef.current) {
39903
39953
  clearInterval(intervalRef.current);
39904
39954
  intervalRef.current = null;
@@ -40169,7 +40219,7 @@ var ResearchReportJobCard = (props) => {
40169
40219
  };
40170
40220
 
40171
40221
  // src/molecules/generic/WebSearchJobCard/WebSearchJobCard.tsx
40172
- var import_react78 = require("react");
40222
+ var import_react79 = require("react");
40173
40223
  var import_jsx_runtime149 = require("react/jsx-runtime");
40174
40224
  var SearchIcon = () => /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
40175
40225
  /* @__PURE__ */ (0, import_jsx_runtime149.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
@@ -40198,51 +40248,51 @@ var WebSearchJobCard = ({
40198
40248
  onFailed,
40199
40249
  compact = false
40200
40250
  }) => {
40201
- const [status, setStatus] = (0, import_react78.useState)(initialStatus);
40202
- const [query, setQuery] = (0, import_react78.useState)(initialQuery || initialTitle || "");
40203
- const [resultCount, setResultCount] = (0, import_react78.useState)(initialResultCount ?? 0);
40204
- const [searchCount, setSearchCount] = (0, import_react78.useState)(initialSearchCount ?? 0);
40205
- const [summary, setSummary] = (0, import_react78.useState)(initialSummary || "");
40206
- const [results, setResults] = (0, import_react78.useState)(initialResults || []);
40207
- const [error, setError] = (0, import_react78.useState)(initialError);
40208
- const [progress, setProgress] = (0, import_react78.useState)(initialProgress);
40209
- const intervalRef = (0, import_react78.useRef)(null);
40210
- const onCompleteRef = (0, import_react78.useRef)(onComplete);
40211
- const onFailedRef = (0, import_react78.useRef)(onFailed);
40212
- const hasNotifiedRef = (0, import_react78.useRef)(false);
40251
+ const [status, setStatus] = (0, import_react79.useState)(initialStatus);
40252
+ const [query, setQuery] = (0, import_react79.useState)(initialQuery || initialTitle || "");
40253
+ const [resultCount, setResultCount] = (0, import_react79.useState)(initialResultCount ?? 0);
40254
+ const [searchCount, setSearchCount] = (0, import_react79.useState)(initialSearchCount ?? 0);
40255
+ const [summary, setSummary] = (0, import_react79.useState)(initialSummary || "");
40256
+ const [results, setResults] = (0, import_react79.useState)(initialResults || []);
40257
+ const [error, setError] = (0, import_react79.useState)(initialError);
40258
+ const [progress, setProgress] = (0, import_react79.useState)(initialProgress);
40259
+ const intervalRef = (0, import_react79.useRef)(null);
40260
+ const onCompleteRef = (0, import_react79.useRef)(onComplete);
40261
+ const onFailedRef = (0, import_react79.useRef)(onFailed);
40262
+ const hasNotifiedRef = (0, import_react79.useRef)(false);
40213
40263
  onCompleteRef.current = onComplete;
40214
40264
  onFailedRef.current = onFailed;
40215
- (0, import_react78.useEffect)(() => {
40265
+ (0, import_react79.useEffect)(() => {
40216
40266
  setStatus(initialStatus);
40217
40267
  }, [initialStatus]);
40218
- (0, import_react78.useEffect)(() => {
40268
+ (0, import_react79.useEffect)(() => {
40219
40269
  if (initialQuery) setQuery(initialQuery);
40220
40270
  }, [initialQuery]);
40221
- (0, import_react78.useEffect)(() => {
40271
+ (0, import_react79.useEffect)(() => {
40222
40272
  if (initialTitle && !initialQuery) setQuery(initialTitle);
40223
40273
  }, [initialTitle, initialQuery]);
40224
- (0, import_react78.useEffect)(() => {
40274
+ (0, import_react79.useEffect)(() => {
40225
40275
  if (initialResultCount !== void 0) setResultCount(initialResultCount);
40226
40276
  }, [initialResultCount]);
40227
- (0, import_react78.useEffect)(() => {
40277
+ (0, import_react79.useEffect)(() => {
40228
40278
  if (initialSearchCount !== void 0) setSearchCount(initialSearchCount);
40229
40279
  }, [initialSearchCount]);
40230
- (0, import_react78.useEffect)(() => {
40280
+ (0, import_react79.useEffect)(() => {
40231
40281
  if (initialSummary) setSummary(initialSummary);
40232
40282
  }, [initialSummary]);
40233
- (0, import_react78.useEffect)(() => {
40283
+ (0, import_react79.useEffect)(() => {
40234
40284
  if (initialResults) setResults(initialResults);
40235
40285
  }, [initialResults]);
40236
- (0, import_react78.useEffect)(() => {
40286
+ (0, import_react79.useEffect)(() => {
40237
40287
  if (initialError) setError(initialError);
40238
40288
  }, [initialError]);
40239
40289
  const progressPct = initialProgress?.percentage;
40240
40290
  const progressStep = initialProgress?.current_step;
40241
- (0, import_react78.useEffect)(() => {
40291
+ (0, import_react79.useEffect)(() => {
40242
40292
  if (initialProgress) setProgress(initialProgress);
40243
40293
  }, [progressPct, progressStep]);
40244
40294
  const isTerminal = status === "complete" || status === "failed";
40245
- (0, import_react78.useEffect)(() => {
40295
+ (0, import_react79.useEffect)(() => {
40246
40296
  if (isTerminal || !pollUrl) return;
40247
40297
  const poll = async () => {
40248
40298
  try {
@@ -40285,7 +40335,7 @@ var WebSearchJobCard = ({
40285
40335
  if (intervalRef.current) clearInterval(intervalRef.current);
40286
40336
  };
40287
40337
  }, [isTerminal, pollUrl, authToken]);
40288
- (0, import_react78.useEffect)(() => {
40338
+ (0, import_react79.useEffect)(() => {
40289
40339
  if (isTerminal && intervalRef.current) {
40290
40340
  clearInterval(intervalRef.current);
40291
40341
  intervalRef.current = null;
@@ -40429,10 +40479,10 @@ var WebSearchJobCard = ({
40429
40479
  };
40430
40480
 
40431
40481
  // src/molecules/creator-discovery/CampaignSeedCard/CampaignSeedCard.tsx
40432
- var import_react80 = __toESM(require("react"), 1);
40482
+ var import_react81 = __toESM(require("react"), 1);
40433
40483
 
40434
40484
  // src/molecules/creator-discovery/SearchSpecCard/CustomFieldRenderers.tsx
40435
- var import_react79 = require("react");
40485
+ var import_react80 = require("react");
40436
40486
 
40437
40487
  // src/lib/countries.ts
40438
40488
  var countries = [
@@ -40644,10 +40694,10 @@ var CountrySelectEdit = ({
40644
40694
  value,
40645
40695
  onChange
40646
40696
  }) => {
40647
- const [isDropdownOpen, setIsDropdownOpen] = (0, import_react79.useState)(false);
40648
- const [searchTerm, setSearchTerm] = (0, import_react79.useState)("");
40649
- const dropdownRef = (0, import_react79.useRef)(null);
40650
- (0, import_react79.useEffect)(() => {
40697
+ const [isDropdownOpen, setIsDropdownOpen] = (0, import_react80.useState)(false);
40698
+ const [searchTerm, setSearchTerm] = (0, import_react80.useState)("");
40699
+ const dropdownRef = (0, import_react80.useRef)(null);
40700
+ (0, import_react80.useEffect)(() => {
40651
40701
  const handleClickOutside = (event) => {
40652
40702
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
40653
40703
  setIsDropdownOpen(false);
@@ -40656,7 +40706,7 @@ var CountrySelectEdit = ({
40656
40706
  document.addEventListener("mousedown", handleClickOutside);
40657
40707
  return () => document.removeEventListener("mousedown", handleClickOutside);
40658
40708
  }, []);
40659
- const inputValue = (0, import_react79.useMemo)(() => {
40709
+ const inputValue = (0, import_react80.useMemo)(() => {
40660
40710
  if (Array.isArray(value)) return value;
40661
40711
  if (typeof value === "string" && value.trim() !== "") {
40662
40712
  const foundCountry = countries.find(
@@ -40757,7 +40807,7 @@ var CountrySelectEdit = ({
40757
40807
  ] });
40758
40808
  };
40759
40809
  var CountrySelectDisplay = ({ value }) => {
40760
- const displayValues = (0, import_react79.useMemo)(() => {
40810
+ const displayValues = (0, import_react80.useMemo)(() => {
40761
40811
  if (Array.isArray(value)) return value;
40762
40812
  if (typeof value === "string" && value.trim() !== "") return [value];
40763
40813
  return [];
@@ -40933,7 +40983,7 @@ var PlatformSelectEdit = ({
40933
40983
  value,
40934
40984
  onChange
40935
40985
  }) => {
40936
- const selectedPlatforms = (0, import_react79.useMemo)(() => {
40986
+ const selectedPlatforms = (0, import_react80.useMemo)(() => {
40937
40987
  if (Array.isArray(value)) return value;
40938
40988
  if (typeof value === "string" && value.trim() !== "") {
40939
40989
  return value.split(",").map((s) => s.trim()).filter(Boolean);
@@ -40952,7 +41002,7 @@ var PlatformSelectEdit = ({
40952
41002
  onChange([...selectedPlatforms, platform]);
40953
41003
  }
40954
41004
  };
40955
- const options = (0, import_react79.useMemo)(() => {
41005
+ const options = (0, import_react80.useMemo)(() => {
40956
41006
  return DEFAULT_PLATFORMS;
40957
41007
  }, []);
40958
41008
  return /* @__PURE__ */ (0, import_jsx_runtime150.jsx)("div", { className: "flex flex-wrap gap-4 py-2", children: options.map((platform) => /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)(
@@ -40978,7 +41028,7 @@ var PlatformSelectEdit = ({
40978
41028
  )) });
40979
41029
  };
40980
41030
  var PlatformSelectDisplay = ({ value }) => {
40981
- const displayValues = (0, import_react79.useMemo)(() => {
41031
+ const displayValues = (0, import_react80.useMemo)(() => {
40982
41032
  if (Array.isArray(value)) return value;
40983
41033
  if (typeof value === "string" && value.trim() !== "") {
40984
41034
  return value.split(",").map((s) => s.trim()).filter(Boolean);
@@ -41138,7 +41188,7 @@ function buildCampaignSeedFields(data) {
41138
41188
  return generated;
41139
41189
  });
41140
41190
  }
41141
- var CampaignSeedCard = import_react80.default.memo(
41191
+ var CampaignSeedCard = import_react81.default.memo(
41142
41192
  ({
41143
41193
  selectionStatus,
41144
41194
  isLatestMessage = true,
@@ -41150,7 +41200,7 @@ var CampaignSeedCard = import_react80.default.memo(
41150
41200
  sendMessage,
41151
41201
  ...formCardProps
41152
41202
  }) => {
41153
- const fields = (0, import_react80.useMemo)(() => {
41203
+ const fields = (0, import_react81.useMemo)(() => {
41154
41204
  return providedFields || buildCampaignSeedFields(data);
41155
41205
  }, [providedFields, data]);
41156
41206
  const handleProceed = () => {
@@ -41184,7 +41234,7 @@ var CampaignSeedCard = import_react80.default.memo(
41184
41234
  CampaignSeedCard.displayName = "CampaignSeedCard";
41185
41235
 
41186
41236
  // src/molecules/creator-discovery/SearchSpecCard/SearchSpecCard.tsx
41187
- var import_react81 = __toESM(require("react"), 1);
41237
+ var import_react82 = __toESM(require("react"), 1);
41188
41238
  var import_jsx_runtime152 = require("react/jsx-runtime");
41189
41239
  var ObjectDisplay2 = ({ value }) => {
41190
41240
  if (!value || typeof value !== "object") return null;
@@ -41300,7 +41350,7 @@ function buildSearchSpecFields(data) {
41300
41350
  return generated;
41301
41351
  });
41302
41352
  }
41303
- var SearchSpecCard = import_react81.default.memo(
41353
+ var SearchSpecCard = import_react82.default.memo(
41304
41354
  ({
41305
41355
  selectionStatus,
41306
41356
  isLatestMessage = true,
@@ -41314,7 +41364,7 @@ var SearchSpecCard = import_react81.default.memo(
41314
41364
  ...formCardProps
41315
41365
  }) => {
41316
41366
  const resolvedData = data || specData;
41317
- const fields = (0, import_react81.useMemo)(() => {
41367
+ const fields = (0, import_react82.useMemo)(() => {
41318
41368
  return providedFields || buildSearchSpecFields(resolvedData ?? {});
41319
41369
  }, [providedFields, resolvedData]);
41320
41370
  const handleProceed = () => {
@@ -41350,7 +41400,7 @@ var SearchSpecCard = import_react81.default.memo(
41350
41400
  SearchSpecCard.displayName = "SearchSpecCard";
41351
41401
 
41352
41402
  // src/molecules/creator-discovery/MCQCard/MCQCard.tsx
41353
- var import_react82 = __toESM(require("react"), 1);
41403
+ var import_react83 = __toESM(require("react"), 1);
41354
41404
 
41355
41405
  // src/molecules/creator-discovery/MCQCard/defaultFetchers.ts
41356
41406
  function getBackendOrigin() {
@@ -41451,7 +41501,7 @@ async function defaultPersistSelection(sessionId, questionKey, value) {
41451
41501
 
41452
41502
  // src/molecules/creator-discovery/MCQCard/MCQCard.tsx
41453
41503
  var import_jsx_runtime153 = require("react/jsx-runtime");
41454
- var MCQCard = import_react82.default.memo(
41504
+ var MCQCard = import_react83.default.memo(
41455
41505
  ({
41456
41506
  question,
41457
41507
  options,
@@ -41476,16 +41526,16 @@ var MCQCard = import_react82.default.memo(
41476
41526
  const resolvedQuestion = question || allProps.Question || allProps.q || "";
41477
41527
  const resolvedOptions = options || allProps.Options || allProps.opts || {};
41478
41528
  const t = th(theme);
41479
- const [selectedOption, setSelectedOption] = import_react82.default.useState(propsSelectedOption);
41480
- const [isProceeded, setIsProceeded] = import_react82.default.useState(false);
41481
- const fetchedSessionRef = import_react82.default.useRef("");
41482
- import_react82.default.useEffect(() => {
41529
+ const [selectedOption, setSelectedOption] = import_react83.default.useState(propsSelectedOption);
41530
+ const [isProceeded, setIsProceeded] = import_react83.default.useState(false);
41531
+ const fetchedSessionRef = import_react83.default.useRef("");
41532
+ import_react83.default.useEffect(() => {
41483
41533
  if (propsSelectedOption) {
41484
41534
  setSelectedOption(propsSelectedOption);
41485
41535
  setIsProceeded(true);
41486
41536
  }
41487
41537
  }, [propsSelectedOption]);
41488
- const buildQuestionKey = import_react82.default.useCallback((sid, question2) => {
41538
+ const buildQuestionKey = import_react83.default.useCallback((sid, question2) => {
41489
41539
  let hash = 2166136261;
41490
41540
  for (let i = 0; i < question2.length; i++) {
41491
41541
  hash ^= question2.charCodeAt(i);
@@ -41493,7 +41543,7 @@ var MCQCard = import_react82.default.memo(
41493
41543
  }
41494
41544
  return `mcq_${sid}_${hash.toString(36)}`;
41495
41545
  }, []);
41496
- import_react82.default.useEffect(() => {
41546
+ import_react83.default.useEffect(() => {
41497
41547
  if (!sessionId || !resolvedQuestion) return;
41498
41548
  const fetchKey = `${sessionId}::${resolvedQuestion}`;
41499
41549
  if (fetchedSessionRef.current === fetchKey) return;
@@ -42102,9 +42152,9 @@ var CreatorActionHeader = ({
42102
42152
  };
42103
42153
 
42104
42154
  // src/molecules/creator-discovery/CreatorSearchBox/CreatorSearch.tsx
42105
- var import_react83 = __toESM(require("react"), 1);
42155
+ var import_react84 = __toESM(require("react"), 1);
42106
42156
  var import_jsx_runtime164 = require("react/jsx-runtime");
42107
- var CreatorSearch = import_react83.default.memo(
42157
+ var CreatorSearch = import_react84.default.memo(
42108
42158
  ({
42109
42159
  selectionStatus,
42110
42160
  isLatestMessage = true,
@@ -42113,7 +42163,7 @@ var CreatorSearch = import_react83.default.memo(
42113
42163
  data,
42114
42164
  ...formCardProps
42115
42165
  }) => {
42116
- const fields = (0, import_react83.useMemo)(() => {
42166
+ const fields = (0, import_react84.useMemo)(() => {
42117
42167
  const baseFields = providedFields || generateFieldsFromData(data);
42118
42168
  return baseFields.map((field) => {
42119
42169
  if (field.key === "platforms") {
@@ -42193,10 +42243,10 @@ var CreatorSearch = import_react83.default.memo(
42193
42243
  CreatorSearch.displayName = "CreatorSearch";
42194
42244
 
42195
42245
  // src/molecules/creator-discovery/CampaignConceptCard/CampaignConceptCard.tsx
42196
- var import_react84 = __toESM(require("react"), 1);
42246
+ var import_react85 = __toESM(require("react"), 1);
42197
42247
  var import_framer_motion = require("framer-motion");
42198
42248
  var import_jsx_runtime165 = require("react/jsx-runtime");
42199
- var CampaignConceptCard = import_react84.default.memo(
42249
+ var CampaignConceptCard = import_react85.default.memo(
42200
42250
  ({
42201
42251
  index,
42202
42252
  isRecommended,
@@ -42212,7 +42262,7 @@ var CampaignConceptCard = import_react84.default.memo(
42212
42262
  onAction,
42213
42263
  ...formCardProps
42214
42264
  }) => {
42215
- const [internalIsOpen, setInternalIsOpen] = (0, import_react84.useState)(false);
42265
+ const [internalIsOpen, setInternalIsOpen] = (0, import_react85.useState)(false);
42216
42266
  const isOpen = controlledIsOpen !== void 0 ? controlledIsOpen : internalIsOpen;
42217
42267
  const handleToggle = () => {
42218
42268
  if (onToggle) {
@@ -42231,7 +42281,7 @@ var CampaignConceptCard = import_react84.default.memo(
42231
42281
  });
42232
42282
  };
42233
42283
  const effectiveIsLatest = isLatestMessage && !hasUserResponded;
42234
- const fields = (0, import_react84.useMemo)(() => {
42284
+ const fields = (0, import_react85.useMemo)(() => {
42235
42285
  const baseFields = providedFields || generateFieldsFromData(data);
42236
42286
  const FIELD_ORDER = [
42237
42287
  "description",
@@ -42543,14 +42593,14 @@ var CampaignConceptCard = import_react84.default.memo(
42543
42593
  CampaignConceptCard.displayName = "CampaignConceptCard";
42544
42594
 
42545
42595
  // src/molecules/creator-discovery/CreatorWidget/CreatorWidget.tsx
42546
- var import_react92 = require("react");
42596
+ var import_react93 = require("react");
42547
42597
 
42548
42598
  // src/molecules/creator-discovery/CreatorWidget/CreatorImageList.tsx
42549
- var import_react85 = require("react");
42599
+ var import_react86 = require("react");
42550
42600
  var import_jsx_runtime166 = require("react/jsx-runtime");
42551
42601
  function useMediaQuery(query) {
42552
- const [matches, setMatches] = (0, import_react85.useState)(false);
42553
- (0, import_react85.useEffect)(() => {
42602
+ const [matches, setMatches] = (0, import_react86.useState)(false);
42603
+ (0, import_react86.useEffect)(() => {
42554
42604
  const media = window.matchMedia(query);
42555
42605
  const listener = () => setMatches(media.matches);
42556
42606
  listener();
@@ -42633,7 +42683,7 @@ function CreatorImageList({
42633
42683
  }
42634
42684
 
42635
42685
  // src/molecules/creator-discovery/CreatorWidget/CreatorProgressBar.tsx
42636
- var import_react86 = require("react");
42686
+ var import_react87 = require("react");
42637
42687
  var import_framer_motion2 = require("framer-motion");
42638
42688
  var import_jsx_runtime167 = require("react/jsx-runtime");
42639
42689
  function truncateName(name, maxLength) {
@@ -42641,8 +42691,8 @@ function truncateName(name, maxLength) {
42641
42691
  return name.substring(0, maxLength) + "...";
42642
42692
  }
42643
42693
  function ProgressBar({ overallPercentage }) {
42644
- const [showTooltip, setShowTooltip] = (0, import_react86.useState)(true);
42645
- (0, import_react86.useEffect)(() => {
42694
+ const [showTooltip, setShowTooltip] = (0, import_react87.useState)(true);
42695
+ (0, import_react87.useEffect)(() => {
42646
42696
  if (overallPercentage && overallPercentage >= 100) {
42647
42697
  setShowTooltip(false);
42648
42698
  }
@@ -42802,7 +42852,7 @@ function CreatorCompactView({
42802
42852
  }
42803
42853
 
42804
42854
  // src/molecules/creator-discovery/CreatorWidget/CreatorExpandedPanel.tsx
42805
- var import_react90 = require("react");
42855
+ var import_react91 = require("react");
42806
42856
  var import_react_dom2 = __toESM(require("react-dom"), 1);
42807
42857
  var import_framer_motion5 = require("framer-motion");
42808
42858
 
@@ -43288,7 +43338,7 @@ function getPlatformIconColor(platform) {
43288
43338
  }
43289
43339
 
43290
43340
  // src/molecules/creator-discovery/CreatorWidget/PostCard.tsx
43291
- var import_react87 = require("react");
43341
+ var import_react88 = require("react");
43292
43342
  var import_jsx_runtime172 = require("react/jsx-runtime");
43293
43343
  var formatFollowerCount = (count) => {
43294
43344
  if (count >= 1e6) {
@@ -43302,8 +43352,8 @@ var formatFollowerCount = (count) => {
43302
43352
  return Math.floor(count).toString();
43303
43353
  };
43304
43354
  function PostCard({ post, platformUsername }) {
43305
- const [expanded, setExpanded] = (0, import_react87.useState)(false);
43306
- const [errored, setErrored] = (0, import_react87.useState)(false);
43355
+ const [expanded, setExpanded] = (0, import_react88.useState)(false);
43356
+ const [errored, setErrored] = (0, import_react88.useState)(false);
43307
43357
  const thumbnail = post.thumbnail_url || post.thumbnail || post.image || "";
43308
43358
  const likes = post.engagement?.likes ?? post.likes ?? null;
43309
43359
  const comments = post.engagement?.comments ?? post.comments ?? null;
@@ -43512,7 +43562,7 @@ function PlatformPostsSection({
43512
43562
  }
43513
43563
 
43514
43564
  // src/molecules/creator-discovery/CreatorWidget/BrandCollaborationsList.tsx
43515
- var import_react88 = require("react");
43565
+ var import_react89 = require("react");
43516
43566
  var import_react_dom = __toESM(require("react-dom"), 1);
43517
43567
  var import_framer_motion3 = require("framer-motion");
43518
43568
  var import_jsx_runtime174 = require("react/jsx-runtime");
@@ -43714,8 +43764,8 @@ function BrandMentionDetails({
43714
43764
  function BrandCollaborationsList({
43715
43765
  brandBreakdown
43716
43766
  }) {
43717
- const [openDetails, setOpenDetails] = (0, import_react88.useState)(false);
43718
- const [selectedBrand, setSelectedBrand] = (0, import_react88.useState)("");
43767
+ const [openDetails, setOpenDetails] = (0, import_react89.useState)(false);
43768
+ const [selectedBrand, setSelectedBrand] = (0, import_react89.useState)("");
43719
43769
  if (!brandBreakdown?.insights?.brandBreakdown || brandBreakdown.insights.brandBreakdown.length === 0) {
43720
43770
  return null;
43721
43771
  }
@@ -43774,7 +43824,7 @@ function BrandCollaborationsList({
43774
43824
  }
43775
43825
 
43776
43826
  // src/molecules/creator-discovery/CreatorWidget/CreatorGridView.tsx
43777
- var import_react89 = require("react");
43827
+ var import_react90 = require("react");
43778
43828
  var import_framer_motion4 = require("framer-motion");
43779
43829
  var import_jsx_runtime175 = require("react/jsx-runtime");
43780
43830
  var formatFollowerCount3 = (count) => {
@@ -43823,25 +43873,25 @@ var itemsExplanation = [
43823
43873
  { key: "brandSafety", label: "Brand Safety" }
43824
43874
  ];
43825
43875
  function CreatorGridViewCard({ creator }) {
43826
- const [isExpanded, setIsExpanded] = (0, import_react89.useState)(false);
43827
- const [showFullDescription, setShowFullDescription] = (0, import_react89.useState)(false);
43828
- const [isDescriptionOverflowing, setIsDescriptionOverflowing] = (0, import_react89.useState)(false);
43829
- const descriptionRef = (0, import_react89.useRef)(null);
43830
- const cardRef = (0, import_react89.useRef)(null);
43831
- const checkDescriptionOverflow = (0, import_react89.useCallback)(() => {
43876
+ const [isExpanded, setIsExpanded] = (0, import_react90.useState)(false);
43877
+ const [showFullDescription, setShowFullDescription] = (0, import_react90.useState)(false);
43878
+ const [isDescriptionOverflowing, setIsDescriptionOverflowing] = (0, import_react90.useState)(false);
43879
+ const descriptionRef = (0, import_react90.useRef)(null);
43880
+ const cardRef = (0, import_react90.useRef)(null);
43881
+ const checkDescriptionOverflow = (0, import_react90.useCallback)(() => {
43832
43882
  const el = descriptionRef.current;
43833
43883
  if (!el) return;
43834
43884
  setIsDescriptionOverflowing(el.scrollHeight > el.clientHeight + 1);
43835
43885
  }, []);
43836
- (0, import_react89.useEffect)(() => {
43886
+ (0, import_react90.useEffect)(() => {
43837
43887
  checkDescriptionOverflow();
43838
43888
  }, [checkDescriptionOverflow, isExpanded, showFullDescription]);
43839
- (0, import_react89.useEffect)(() => {
43889
+ (0, import_react90.useEffect)(() => {
43840
43890
  const onResize = () => checkDescriptionOverflow();
43841
43891
  window.addEventListener("resize", onResize);
43842
43892
  return () => window.removeEventListener("resize", onResize);
43843
43893
  }, [checkDescriptionOverflow]);
43844
- const platformStats = (0, import_react89.useMemo)(() => {
43894
+ const platformStats = (0, import_react90.useMemo)(() => {
43845
43895
  return [
43846
43896
  {
43847
43897
  platform: "instagram",
@@ -44259,7 +44309,7 @@ function BrandMentionPerformance({ creator }) {
44259
44309
  ] });
44260
44310
  }
44261
44311
  function CreatorFitSummary({ creator, showBrandPerformance }) {
44262
- const [contentExpanded, setContentExpanded] = (0, import_react90.useState)(false);
44312
+ const [contentExpanded, setContentExpanded] = (0, import_react91.useState)(false);
44263
44313
  const hasDeepAnalysis = creator?.sentiment?.deepAnalysis?.deepAnalysis;
44264
44314
  const title = hasDeepAnalysis ? "CREATOR DEEP ANALYSIS" : "CREATOR FIT SUMMARY";
44265
44315
  const content = hasDeepAnalysis ? creator.sentiment.deepAnalysis.deepAnalysis : creator?.sentiment?.aiReasoning || "No data available.";
@@ -44279,7 +44329,7 @@ function CreatorFitSummary({ creator, showBrandPerformance }) {
44279
44329
  ] });
44280
44330
  }
44281
44331
  function ProfileSection({ creator, isValidationComplete }) {
44282
- const [descriptionExpanded, setDescriptionExpanded] = (0, import_react90.useState)(false);
44332
+ const [descriptionExpanded, setDescriptionExpanded] = (0, import_react91.useState)(false);
44283
44333
  const username = creator.platformMetrics?.instagramMetrics?.username ? `@${creator.platformMetrics.instagramMetrics.username}` : creator.platformMetrics?.youtubeMetrics?.channelName ? `@${creator.platformMetrics.youtubeMetrics.channelName}` : creator.platformMetrics?.tiktokMetrics?.username ? `@${creator.platformMetrics.tiktokMetrics.username}` : "";
44284
44334
  const iso2 = normalizeToIso2(creator.country);
44285
44335
  const meta = codeToMeta[iso2];
@@ -44369,7 +44419,7 @@ function CreatorCard({
44369
44419
  creator,
44370
44420
  isValidationComplete
44371
44421
  }) {
44372
- const [detailsExpanded, setDetailsExpanded] = (0, import_react90.useState)(false);
44422
+ const [detailsExpanded, setDetailsExpanded] = (0, import_react91.useState)(false);
44373
44423
  const hasValidBrandMention = (() => {
44374
44424
  const insights = creator?.brandCollaborations?.insights;
44375
44425
  if (!insights) return false;
@@ -44411,7 +44461,7 @@ function CreatorDisplay({
44411
44461
  creators,
44412
44462
  isValidationComplete
44413
44463
  }) {
44414
- const [viewMode, setViewMode] = (0, import_react90.useState)("list");
44464
+ const [viewMode, setViewMode] = (0, import_react91.useState)("list");
44415
44465
  return /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("div", { className: "px-4", children: [
44416
44466
  /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("div", { className: "flex justify-end items-center my-3 gap-1", children: [
44417
44467
  /* @__PURE__ */ (0, import_jsx_runtime176.jsxs)("span", { className: "text-xs text-gray600 mr-2", children: [
@@ -44492,10 +44542,10 @@ function CreatorExpandedPanel({
44492
44542
  searchSpec,
44493
44543
  fetchCreatorDetails
44494
44544
  }) {
44495
- const [creators, setCreators] = (0, import_react90.useState)([]);
44496
- const [loading, setLoading] = (0, import_react90.useState)(false);
44545
+ const [creators, setCreators] = (0, import_react91.useState)([]);
44546
+ const [loading, setLoading] = (0, import_react91.useState)(false);
44497
44547
  const fetcher = fetchCreatorDetails ?? defaultFetchCreatorDetails;
44498
- const loadCreators = (0, import_react90.useCallback)(async () => {
44548
+ const loadCreators = (0, import_react91.useCallback)(async () => {
44499
44549
  if (!creatorIds.length) return;
44500
44550
  setLoading(true);
44501
44551
  try {
@@ -44507,7 +44557,7 @@ function CreatorExpandedPanel({
44507
44557
  setLoading(false);
44508
44558
  }
44509
44559
  }, [creatorIds, sessionId, version, fetcher]);
44510
- (0, import_react90.useEffect)(() => {
44560
+ (0, import_react91.useEffect)(() => {
44511
44561
  if (isOpen && creatorIds.length > 0) {
44512
44562
  loadCreators();
44513
44563
  }
@@ -44561,7 +44611,7 @@ function CreatorExpandedPanel({
44561
44611
  }
44562
44612
 
44563
44613
  // src/molecules/creator-discovery/CreatorWidget/useCreatorWidgetPolling.ts
44564
- var import_react91 = require("react");
44614
+ var import_react92 = require("react");
44565
44615
  var DEFAULT_POLLING_CONFIG = {
44566
44616
  pollInterval: 5e3,
44567
44617
  maxDuration: 15 * 60 * 1e3,
@@ -44578,22 +44628,22 @@ function useCreatorWidgetPolling({
44578
44628
  }) {
44579
44629
  const fetchVersions = fetchVersionsProp ?? defaultFetchVersions;
44580
44630
  const fetchStatus = fetchStatusProp ?? defaultFetchStatus;
44581
- const config = (0, import_react91.useMemo)(
44631
+ const config = (0, import_react92.useMemo)(
44582
44632
  () => ({ ...DEFAULT_POLLING_CONFIG, ...pollingConfig }),
44583
44633
  [pollingConfig]
44584
44634
  );
44585
- const [versionData, setVersionData] = (0, import_react91.useState)(null);
44586
- const [totalVersions, setTotalVersions] = (0, import_react91.useState)(0);
44587
- const [selectedVersion, setSelectedVersion] = (0, import_react91.useState)();
44588
- const [isLoadingVersion, setIsLoadingVersion] = (0, import_react91.useState)(false);
44589
- const [isValidationComplete, setIsValidationComplete] = (0, import_react91.useState)(false);
44590
- const [versionStatus, setVersionStatus] = (0, import_react91.useState)("checking");
44591
- const [statusDetails, setStatusDetails] = (0, import_react91.useState)();
44592
- const [timeDisplay, setTimeDisplay] = (0, import_react91.useState)("");
44593
- const [loadingStatus, setLoadingStatus] = (0, import_react91.useState)(true);
44594
- const remainingTimeRef = (0, import_react91.useRef)(0);
44635
+ const [versionData, setVersionData] = (0, import_react92.useState)(null);
44636
+ const [totalVersions, setTotalVersions] = (0, import_react92.useState)(0);
44637
+ const [selectedVersion, setSelectedVersion] = (0, import_react92.useState)();
44638
+ const [isLoadingVersion, setIsLoadingVersion] = (0, import_react92.useState)(false);
44639
+ const [isValidationComplete, setIsValidationComplete] = (0, import_react92.useState)(false);
44640
+ const [versionStatus, setVersionStatus] = (0, import_react92.useState)("checking");
44641
+ const [statusDetails, setStatusDetails] = (0, import_react92.useState)();
44642
+ const [timeDisplay, setTimeDisplay] = (0, import_react92.useState)("");
44643
+ const [loadingStatus, setLoadingStatus] = (0, import_react92.useState)(true);
44644
+ const remainingTimeRef = (0, import_react92.useRef)(0);
44595
44645
  const requestedVersion = selectedVersion ?? currentVersion ?? versionData?.currentVersion;
44596
- const fetchVersionData = (0, import_react91.useCallback)(async () => {
44646
+ const fetchVersionData = (0, import_react92.useCallback)(async () => {
44597
44647
  if (!sessionId) return;
44598
44648
  if (!versionData) setIsLoadingVersion(true);
44599
44649
  try {
@@ -44614,17 +44664,17 @@ function useCreatorWidgetPolling({
44614
44664
  setIsLoadingVersion(false);
44615
44665
  }
44616
44666
  }, [sessionId, requestedVersion, isValidationComplete, fetchVersions, versionData]);
44617
- (0, import_react91.useEffect)(() => {
44667
+ (0, import_react92.useEffect)(() => {
44618
44668
  fetchVersionData();
44619
44669
  }, [sessionId, requestedVersion, isValidationComplete]);
44620
- (0, import_react91.useEffect)(() => {
44670
+ (0, import_react92.useEffect)(() => {
44621
44671
  if (totalVersions > 0 || !sessionId) return;
44622
44672
  const interval = setInterval(() => {
44623
44673
  if (totalVersions === 0) fetchVersionData();
44624
44674
  }, config.pollInterval);
44625
44675
  return () => clearInterval(interval);
44626
44676
  }, [totalVersions, sessionId, fetchVersionData, config.pollInterval]);
44627
- (0, import_react91.useEffect)(() => {
44677
+ (0, import_react92.useEffect)(() => {
44628
44678
  if (!selectedVersion && !requestedVersion) return;
44629
44679
  const activeVersion = selectedVersion ?? requestedVersion;
44630
44680
  let isMounted = true;
@@ -44707,7 +44757,7 @@ function useCreatorWidgetPolling({
44707
44757
  stopPolling();
44708
44758
  };
44709
44759
  }, [selectedVersion, requestedVersion, sessionId]);
44710
- const versionNumbers = (0, import_react91.useMemo)(() => {
44760
+ const versionNumbers = (0, import_react92.useMemo)(() => {
44711
44761
  if (!totalVersions) return [];
44712
44762
  return Array.from({ length: totalVersions }, (_, i) => i + 1);
44713
44763
  }, [totalVersions]);
@@ -44747,7 +44797,7 @@ function CreatorWidgetInner({
44747
44797
  onAction,
44748
44798
  className
44749
44799
  }) {
44750
- const [isExpanded, setIsExpanded] = (0, import_react92.useState)(false);
44800
+ const [isExpanded, setIsExpanded] = (0, import_react93.useState)(false);
44751
44801
  const {
44752
44802
  versionNumbers,
44753
44803
  selectedVersion,
@@ -44768,11 +44818,11 @@ function CreatorWidgetInner({
44768
44818
  pollingConfig,
44769
44819
  onStatusChange
44770
44820
  });
44771
- const handleVersionSelect = (0, import_react92.useCallback)(
44821
+ const handleVersionSelect = (0, import_react93.useCallback)(
44772
44822
  (version) => setSelectedVersion(version),
44773
44823
  [setSelectedVersion]
44774
44824
  );
44775
- const handleViewCreators = (0, import_react92.useCallback)(() => {
44825
+ const handleViewCreators = (0, import_react93.useCallback)(() => {
44776
44826
  setIsExpanded(true);
44777
44827
  onAction?.({
44778
44828
  type: "view-creators",
@@ -44813,7 +44863,7 @@ function CreatorWidgetInner({
44813
44863
  )
44814
44864
  ] });
44815
44865
  }
44816
- var CreatorWidget = (0, import_react92.memo)(CreatorWidgetInner);
44866
+ var CreatorWidget = (0, import_react93.memo)(CreatorWidgetInner);
44817
44867
 
44818
44868
  // src/components/ui/index.ts
44819
44869
  var ui_exports = {};
@@ -45270,7 +45320,7 @@ function EmptyContent({ className, ...props }) {
45270
45320
  }
45271
45321
 
45272
45322
  // src/components/ui/field.tsx
45273
- var import_react93 = require("react");
45323
+ var import_react94 = require("react");
45274
45324
  var import_class_variance_authority10 = require("class-variance-authority");
45275
45325
  var import_jsx_runtime180 = require("react/jsx-runtime");
45276
45326
  function FieldSet({ className, ...props }) {
@@ -45453,7 +45503,7 @@ function FieldError({
45453
45503
  errors,
45454
45504
  ...props
45455
45505
  }) {
45456
- const content = (0, import_react93.useMemo)(() => {
45506
+ const content = (0, import_react94.useMemo)(() => {
45457
45507
  if (children) {
45458
45508
  return children;
45459
45509
  }
@@ -45830,16 +45880,16 @@ function KbdGroup({ className, ...props }) {
45830
45880
  }
45831
45881
 
45832
45882
  // src/components/ui/sidebar.tsx
45833
- var React115 = __toESM(require("react"), 1);
45883
+ var React116 = __toESM(require("react"), 1);
45834
45884
  var import_react_slot6 = require("@radix-ui/react-slot");
45835
45885
  var import_class_variance_authority13 = require("class-variance-authority");
45836
45886
 
45837
45887
  // src/hooks/use-mobile.tsx
45838
- var React114 = __toESM(require("react"), 1);
45888
+ var React115 = __toESM(require("react"), 1);
45839
45889
  var MOBILE_BREAKPOINT = 768;
45840
45890
  function useIsMobile() {
45841
- const [isMobile, setIsMobile] = React114.useState(void 0);
45842
- React114.useEffect(() => {
45891
+ const [isMobile, setIsMobile] = React115.useState(void 0);
45892
+ React115.useEffect(() => {
45843
45893
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
45844
45894
  const onChange = () => {
45845
45895
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
@@ -45859,15 +45909,15 @@ var SIDEBAR_WIDTH = "16rem";
45859
45909
  var SIDEBAR_WIDTH_MOBILE = "18rem";
45860
45910
  var SIDEBAR_WIDTH_ICON = "3rem";
45861
45911
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
45862
- var SidebarContext = React115.createContext(null);
45912
+ var SidebarContext = React116.createContext(null);
45863
45913
  function useSidebar() {
45864
- const context = React115.useContext(SidebarContext);
45914
+ const context = React116.useContext(SidebarContext);
45865
45915
  if (!context) {
45866
45916
  throw new Error("useSidebar must be used within a SidebarProvider.");
45867
45917
  }
45868
45918
  return context;
45869
45919
  }
45870
- var SidebarProvider = React115.forwardRef(
45920
+ var SidebarProvider = React116.forwardRef(
45871
45921
  ({
45872
45922
  defaultOpen = true,
45873
45923
  open: openProp,
@@ -45878,10 +45928,10 @@ var SidebarProvider = React115.forwardRef(
45878
45928
  ...props
45879
45929
  }, ref) => {
45880
45930
  const isMobile = useIsMobile();
45881
- const [openMobile, setOpenMobile] = React115.useState(false);
45882
- const [_open, _setOpen] = React115.useState(defaultOpen);
45931
+ const [openMobile, setOpenMobile] = React116.useState(false);
45932
+ const [_open, _setOpen] = React116.useState(defaultOpen);
45883
45933
  const open = openProp ?? _open;
45884
- const setOpen = React115.useCallback(
45934
+ const setOpen = React116.useCallback(
45885
45935
  (value) => {
45886
45936
  const openState = typeof value === "function" ? value(open) : value;
45887
45937
  if (setOpenProp) {
@@ -45893,10 +45943,10 @@ var SidebarProvider = React115.forwardRef(
45893
45943
  },
45894
45944
  [setOpenProp, open]
45895
45945
  );
45896
- const toggleSidebar = React115.useCallback(() => {
45946
+ const toggleSidebar = React116.useCallback(() => {
45897
45947
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
45898
45948
  }, [isMobile, setOpen, setOpenMobile]);
45899
- React115.useEffect(() => {
45949
+ React116.useEffect(() => {
45900
45950
  const handleKeyDown = (event) => {
45901
45951
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
45902
45952
  event.preventDefault();
@@ -45907,7 +45957,7 @@ var SidebarProvider = React115.forwardRef(
45907
45957
  return () => window.removeEventListener("keydown", handleKeyDown);
45908
45958
  }, [toggleSidebar]);
45909
45959
  const state = open ? "expanded" : "collapsed";
45910
- const contextValue = React115.useMemo(
45960
+ const contextValue = React116.useMemo(
45911
45961
  () => ({
45912
45962
  state,
45913
45963
  open,
@@ -45939,7 +45989,7 @@ var SidebarProvider = React115.forwardRef(
45939
45989
  }
45940
45990
  );
45941
45991
  SidebarProvider.displayName = "SidebarProvider";
45942
- var Sidebar = React115.forwardRef(
45992
+ var Sidebar = React116.forwardRef(
45943
45993
  ({
45944
45994
  side = "left",
45945
45995
  variant = "sidebar",
@@ -46032,7 +46082,7 @@ var Sidebar = React115.forwardRef(
46032
46082
  }
46033
46083
  );
46034
46084
  Sidebar.displayName = "Sidebar";
46035
- var SidebarTrigger = React115.forwardRef(({ className, onClick, ...props }, ref) => {
46085
+ var SidebarTrigger = React116.forwardRef(({ className, onClick, ...props }, ref) => {
46036
46086
  const { toggleSidebar } = useSidebar();
46037
46087
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
46038
46088
  Button,
@@ -46055,7 +46105,7 @@ var SidebarTrigger = React115.forwardRef(({ className, onClick, ...props }, ref)
46055
46105
  );
46056
46106
  });
46057
46107
  SidebarTrigger.displayName = "SidebarTrigger";
46058
- var SidebarRail = React115.forwardRef(({ className, ...props }, ref) => {
46108
+ var SidebarRail = React116.forwardRef(({ className, ...props }, ref) => {
46059
46109
  const { toggleSidebar } = useSidebar();
46060
46110
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46061
46111
  "button",
@@ -46080,7 +46130,7 @@ var SidebarRail = React115.forwardRef(({ className, ...props }, ref) => {
46080
46130
  );
46081
46131
  });
46082
46132
  SidebarRail.displayName = "SidebarRail";
46083
- var SidebarInset = React115.forwardRef(({ className, ...props }, ref) => {
46133
+ var SidebarInset = React116.forwardRef(({ className, ...props }, ref) => {
46084
46134
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46085
46135
  "main",
46086
46136
  {
@@ -46095,7 +46145,7 @@ var SidebarInset = React115.forwardRef(({ className, ...props }, ref) => {
46095
46145
  );
46096
46146
  });
46097
46147
  SidebarInset.displayName = "SidebarInset";
46098
- var SidebarInput = React115.forwardRef(({ className, ...props }, ref) => {
46148
+ var SidebarInput = React116.forwardRef(({ className, ...props }, ref) => {
46099
46149
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46100
46150
  Input,
46101
46151
  {
@@ -46110,7 +46160,7 @@ var SidebarInput = React115.forwardRef(({ className, ...props }, ref) => {
46110
46160
  );
46111
46161
  });
46112
46162
  SidebarInput.displayName = "SidebarInput";
46113
- var SidebarHeader = React115.forwardRef(({ className, ...props }, ref) => {
46163
+ var SidebarHeader = React116.forwardRef(({ className, ...props }, ref) => {
46114
46164
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46115
46165
  "div",
46116
46166
  {
@@ -46122,7 +46172,7 @@ var SidebarHeader = React115.forwardRef(({ className, ...props }, ref) => {
46122
46172
  );
46123
46173
  });
46124
46174
  SidebarHeader.displayName = "SidebarHeader";
46125
- var SidebarFooter = React115.forwardRef(({ className, ...props }, ref) => {
46175
+ var SidebarFooter = React116.forwardRef(({ className, ...props }, ref) => {
46126
46176
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46127
46177
  "div",
46128
46178
  {
@@ -46134,7 +46184,7 @@ var SidebarFooter = React115.forwardRef(({ className, ...props }, ref) => {
46134
46184
  );
46135
46185
  });
46136
46186
  SidebarFooter.displayName = "SidebarFooter";
46137
- var SidebarSeparator = React115.forwardRef(({ className, ...props }, ref) => {
46187
+ var SidebarSeparator = React116.forwardRef(({ className, ...props }, ref) => {
46138
46188
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46139
46189
  Separator2,
46140
46190
  {
@@ -46146,7 +46196,7 @@ var SidebarSeparator = React115.forwardRef(({ className, ...props }, ref) => {
46146
46196
  );
46147
46197
  });
46148
46198
  SidebarSeparator.displayName = "SidebarSeparator";
46149
- var SidebarContent = React115.forwardRef(({ className, ...props }, ref) => {
46199
+ var SidebarContent = React116.forwardRef(({ className, ...props }, ref) => {
46150
46200
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46151
46201
  "div",
46152
46202
  {
@@ -46161,7 +46211,7 @@ var SidebarContent = React115.forwardRef(({ className, ...props }, ref) => {
46161
46211
  );
46162
46212
  });
46163
46213
  SidebarContent.displayName = "SidebarContent";
46164
- var SidebarGroup = React115.forwardRef(({ className, ...props }, ref) => {
46214
+ var SidebarGroup = React116.forwardRef(({ className, ...props }, ref) => {
46165
46215
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46166
46216
  "div",
46167
46217
  {
@@ -46173,7 +46223,7 @@ var SidebarGroup = React115.forwardRef(({ className, ...props }, ref) => {
46173
46223
  );
46174
46224
  });
46175
46225
  SidebarGroup.displayName = "SidebarGroup";
46176
- var SidebarGroupLabel = React115.forwardRef(({ className, asChild = false, ...props }, ref) => {
46226
+ var SidebarGroupLabel = React116.forwardRef(({ className, asChild = false, ...props }, ref) => {
46177
46227
  const Comp = asChild ? import_react_slot6.Slot : "div";
46178
46228
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46179
46229
  Comp,
@@ -46190,7 +46240,7 @@ var SidebarGroupLabel = React115.forwardRef(({ className, asChild = false, ...pr
46190
46240
  );
46191
46241
  });
46192
46242
  SidebarGroupLabel.displayName = "SidebarGroupLabel";
46193
- var SidebarGroupAction = React115.forwardRef(({ className, asChild = false, ...props }, ref) => {
46243
+ var SidebarGroupAction = React116.forwardRef(({ className, asChild = false, ...props }, ref) => {
46194
46244
  const Comp = asChild ? import_react_slot6.Slot : "button";
46195
46245
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46196
46246
  Comp,
@@ -46209,7 +46259,7 @@ var SidebarGroupAction = React115.forwardRef(({ className, asChild = false, ...p
46209
46259
  );
46210
46260
  });
46211
46261
  SidebarGroupAction.displayName = "SidebarGroupAction";
46212
- var SidebarGroupContent = React115.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46262
+ var SidebarGroupContent = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46213
46263
  "div",
46214
46264
  {
46215
46265
  ref,
@@ -46219,7 +46269,7 @@ var SidebarGroupContent = React115.forwardRef(({ className, ...props }, ref) =>
46219
46269
  }
46220
46270
  ));
46221
46271
  SidebarGroupContent.displayName = "SidebarGroupContent";
46222
- var SidebarMenu = React115.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46272
+ var SidebarMenu = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46223
46273
  "ul",
46224
46274
  {
46225
46275
  ref,
@@ -46229,7 +46279,7 @@ var SidebarMenu = React115.forwardRef(({ className, ...props }, ref) => /* @__PU
46229
46279
  }
46230
46280
  ));
46231
46281
  SidebarMenu.displayName = "SidebarMenu";
46232
- var SidebarMenuItem = React115.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46282
+ var SidebarMenuItem = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46233
46283
  "li",
46234
46284
  {
46235
46285
  ref,
@@ -46259,7 +46309,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority13.cva)(
46259
46309
  }
46260
46310
  }
46261
46311
  );
46262
- var SidebarMenuButton = React115.forwardRef(
46312
+ var SidebarMenuButton = React116.forwardRef(
46263
46313
  ({
46264
46314
  asChild = false,
46265
46315
  isActive = false,
@@ -46305,7 +46355,7 @@ var SidebarMenuButton = React115.forwardRef(
46305
46355
  }
46306
46356
  );
46307
46357
  SidebarMenuButton.displayName = "SidebarMenuButton";
46308
- var SidebarMenuAction = React115.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
46358
+ var SidebarMenuAction = React116.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
46309
46359
  const Comp = asChild ? import_react_slot6.Slot : "button";
46310
46360
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46311
46361
  Comp,
@@ -46328,7 +46378,7 @@ var SidebarMenuAction = React115.forwardRef(({ className, asChild = false, showO
46328
46378
  );
46329
46379
  });
46330
46380
  SidebarMenuAction.displayName = "SidebarMenuAction";
46331
- var SidebarMenuBadge = React115.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46381
+ var SidebarMenuBadge = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46332
46382
  "div",
46333
46383
  {
46334
46384
  ref,
@@ -46346,8 +46396,8 @@ var SidebarMenuBadge = React115.forwardRef(({ className, ...props }, ref) => /*
46346
46396
  }
46347
46397
  ));
46348
46398
  SidebarMenuBadge.displayName = "SidebarMenuBadge";
46349
- var SidebarMenuSkeleton = React115.forwardRef(({ className, showIcon = false, ...props }, ref) => {
46350
- const width = React115.useMemo(() => {
46399
+ var SidebarMenuSkeleton = React116.forwardRef(({ className, showIcon = false, ...props }, ref) => {
46400
+ const width = React116.useMemo(() => {
46351
46401
  return `${Math.floor(Math.random() * 40) + 50}%`;
46352
46402
  }, []);
46353
46403
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsxs)(
@@ -46380,7 +46430,7 @@ var SidebarMenuSkeleton = React115.forwardRef(({ className, showIcon = false, ..
46380
46430
  );
46381
46431
  });
46382
46432
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
46383
- var SidebarMenuSub = React115.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46433
+ var SidebarMenuSub = React116.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46384
46434
  "ul",
46385
46435
  {
46386
46436
  ref,
@@ -46394,9 +46444,9 @@ var SidebarMenuSub = React115.forwardRef(({ className, ...props }, ref) => /* @_
46394
46444
  }
46395
46445
  ));
46396
46446
  SidebarMenuSub.displayName = "SidebarMenuSub";
46397
- var SidebarMenuSubItem = React115.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("li", { ref, ...props }));
46447
+ var SidebarMenuSubItem = React116.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("li", { ref, ...props }));
46398
46448
  SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
46399
- var SidebarMenuSubButton = React115.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
46449
+ var SidebarMenuSubButton = React116.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
46400
46450
  const Comp = asChild ? import_react_slot6.Slot : "a";
46401
46451
  return /* @__PURE__ */ (0, import_jsx_runtime184.jsx)(
46402
46452
  Comp,
@@ -46451,14 +46501,14 @@ var Toaster = ({ ...props }) => {
46451
46501
  };
46452
46502
 
46453
46503
  // src/components/ui/toggle-group.tsx
46454
- var React116 = __toESM(require("react"), 1);
46504
+ var React117 = __toESM(require("react"), 1);
46455
46505
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
46456
46506
  var import_jsx_runtime186 = require("react/jsx-runtime");
46457
- var ToggleGroupContext = React116.createContext({
46507
+ var ToggleGroupContext = React117.createContext({
46458
46508
  size: "default",
46459
46509
  variant: "default"
46460
46510
  });
46461
- var ToggleGroup = React116.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
46511
+ var ToggleGroup = React117.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
46462
46512
  ToggleGroupPrimitive.Root,
46463
46513
  {
46464
46514
  ref,
@@ -46468,8 +46518,8 @@ var ToggleGroup = React116.forwardRef(({ className, variant, size, children, ...
46468
46518
  }
46469
46519
  ));
46470
46520
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
46471
- var ToggleGroupItem = React116.forwardRef(({ className, children, variant, size, ...props }, ref) => {
46472
- const context = React116.useContext(ToggleGroupContext);
46521
+ var ToggleGroupItem = React117.forwardRef(({ className, children, variant, size, ...props }, ref) => {
46522
+ const context = React117.useContext(ToggleGroupContext);
46473
46523
  return /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(
46474
46524
  ToggleGroupPrimitive.Item,
46475
46525
  {
@@ -46681,24 +46731,48 @@ var normalizeProps = (props) => {
46681
46731
  });
46682
46732
  return { normalized, dynamicStyle };
46683
46733
  };
46734
+ var FORM_INPUT_ATOM_NAMES = /* @__PURE__ */ new Set([
46735
+ "InputAtom",
46736
+ "TextareaAtom",
46737
+ "SelectAtom",
46738
+ "SliderAtom",
46739
+ "CheckboxAtom",
46740
+ "SwitchAtom",
46741
+ "RadioAtom",
46742
+ "RadioGroupAtom",
46743
+ "FormInputAtom",
46744
+ "FormSelectAtom",
46745
+ "FormTextareaAtom",
46746
+ "RatingAtom",
46747
+ "CalendarAtom",
46748
+ "InputOTPAtom",
46749
+ "ToggleAtom"
46750
+ ]);
46684
46751
  var PXEngineRenderer = ({
46685
46752
  schema,
46686
46753
  onAction,
46687
46754
  disabled,
46688
- theme
46755
+ theme,
46756
+ onFormSubmit
46689
46757
  }) => {
46690
- const contextTheme = import_react94.default.useContext(WidgetThemeContext);
46758
+ const contextTheme = import_react95.default.useContext(WidgetThemeContext);
46691
46759
  const effectiveTheme = theme ?? contextTheme;
46760
+ const formValuesRef = import_react95.default.useRef({});
46761
+ const [, forceUpdate] = import_react95.default.useReducer((x) => x + 1, 0);
46762
+ const handleInputValueChange = import_react95.default.useCallback((key, value) => {
46763
+ formValuesRef.current[key] = value;
46764
+ forceUpdate();
46765
+ }, []);
46692
46766
  if (!schema) return null;
46693
46767
  const root = schema.root || schema;
46694
46768
  const renderRecursive = (component, index) => {
46695
46769
  if (Array.isArray(component)) {
46696
- return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_react94.default.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
46770
+ return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_react95.default.Fragment, { children: component.map((child, idx) => renderRecursive(child, idx)) }, index !== void 0 ? `array-${index}` : "array-root");
46697
46771
  }
46698
46772
  if (typeof component === "string" || typeof component === "number") {
46699
46773
  return component;
46700
46774
  }
46701
- if (import_react94.default.isValidElement(component)) {
46775
+ if (import_react95.default.isValidElement(component)) {
46702
46776
  return component;
46703
46777
  }
46704
46778
  if (!component || typeof component !== "object") return null;
@@ -46720,12 +46794,43 @@ var PXEngineRenderer = ({
46720
46794
  if (disabled !== void 0 && rawProps.disabled === void 0) {
46721
46795
  rawProps.disabled = disabled;
46722
46796
  }
46797
+ const normalizedName = componentName.charAt(0).toUpperCase() + componentName.slice(1);
46798
+ const earlyAtomName = normalizedName.endsWith("Atom") ? normalizedName : `${normalizedName}Atom`;
46799
+ if (onFormSubmit && FORM_INPUT_ATOM_NAMES.has(earlyAtomName)) {
46800
+ const fieldKey = rawProps.fieldKey || rawProps.id || id || rawProps.label || componentName;
46801
+ const storedValue = formValuesRef.current[fieldKey];
46802
+ if (storedValue !== void 0) {
46803
+ rawProps.defaultValue = storedValue;
46804
+ }
46805
+ rawProps.onValueChange = handleInputValueChange;
46806
+ rawProps.fieldKey = fieldKey;
46807
+ if (id) rawProps.id = id;
46808
+ }
46809
+ if (onFormSubmit && earlyAtomName === "ButtonAtom") {
46810
+ const action = rawProps.action || rawProps.buttonAction;
46811
+ if (action === "submit") {
46812
+ const originalOnAction = rawProps.onAction;
46813
+ rawProps.onAction = (evt) => {
46814
+ const elements = Object.entries(formValuesRef.current).map(
46815
+ ([key, value]) => ({
46816
+ id: key,
46817
+ atomName: "InputAtom",
46818
+ props: { fieldKey: key, label: key, question: key },
46819
+ value
46820
+ })
46821
+ );
46822
+ const qaText = formatQAMessage(elements);
46823
+ const values = { ...formValuesRef.current };
46824
+ onFormSubmit(qaText, values);
46825
+ if (originalOnAction) originalOnAction(evt);
46826
+ };
46827
+ }
46828
+ }
46723
46829
  const { normalized: finalProps, dynamicStyle } = normalizeProps(rawProps);
46724
46830
  if (id && !finalProps.id) {
46725
46831
  finalProps.id = id;
46726
46832
  }
46727
46833
  const uniqueKey = id || (index !== void 0 ? `${componentName}-${index}` : `${componentName}-root`);
46728
- const normalizedName = componentName.charAt(0).toUpperCase() + componentName.slice(1);
46729
46834
  const resolveComponent = (identifier) => {
46730
46835
  const normalized = identifier.split(/[-_]/).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("");
46731
46836
  const atomName2 = normalized.endsWith("Atom") ? normalized : `${normalized}Atom`;
@@ -46782,13 +46887,15 @@ var PXEngineRenderer = ({
46782
46887
  finalProps.theme = effectiveTheme;
46783
46888
  }
46784
46889
  const finalStyle = { ...dynamicStyle, ...finalProps.style || {} };
46890
+ const effectiveOnAction = finalProps.onAction ?? onAction;
46891
+ delete finalProps.onAction;
46785
46892
  if (isAtomWithRenderProp) {
46786
46893
  return /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
46787
46894
  TargetComponent,
46788
46895
  {
46789
46896
  ...finalProps,
46790
46897
  style: finalStyle,
46791
- onAction,
46898
+ onAction: effectiveOnAction,
46792
46899
  renderComponent: renderRecursive,
46793
46900
  children
46794
46901
  },
@@ -46800,7 +46907,7 @@ var PXEngineRenderer = ({
46800
46907
  {
46801
46908
  ...finalProps,
46802
46909
  style: finalStyle,
46803
- onAction,
46910
+ onAction: effectiveOnAction,
46804
46911
  children: Array.isArray(children) ? children.map((child, idx) => renderRecursive(child, idx)) : children
46805
46912
  },
46806
46913
  uniqueKey