warqadui 0.0.62 → 0.0.64

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.mjs CHANGED
@@ -877,11 +877,13 @@ var CodeBlock = ({
877
877
  };
878
878
 
879
879
  // src/components/Card.tsx
880
- import { jsx as jsx13 } from "react/jsx-runtime";
880
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
881
881
  var Card = ({
882
882
  children,
883
883
  className,
884
884
  variant = "default",
885
+ isLoading = false,
886
+ loadingText = "Loading...",
885
887
  ...props
886
888
  }) => {
887
889
  const variants = {
@@ -889,16 +891,34 @@ var Card = ({
889
891
  flat: "bg-gray-50/50 dark:bg-zinc-950/50 border-gray-100 dark:border-zinc-900",
890
892
  glass: "bg-white/70 dark:bg-black/40 backdrop-blur-md border-white/20 dark:border-white/5 shadow-xl"
891
893
  };
892
- return /* @__PURE__ */ jsx13(
894
+ return /* @__PURE__ */ jsxs9(
893
895
  "div",
894
896
  {
895
897
  className: cn(
896
- "rounded-2xl border p-6 transition-all duration-300",
898
+ "relative rounded-2xl border p-6 transition-all duration-300 overflow-hidden",
897
899
  variants[variant],
898
900
  className
899
901
  ),
900
902
  ...props,
901
- children
903
+ children: [
904
+ isLoading && /* @__PURE__ */ jsxs9("div", { className: "absolute inset-0 z-10 flex items-center justify-center bg-white/40 dark:bg-black/20 backdrop-blur-[2px]", children: [
905
+ /* @__PURE__ */ jsx13("div", { className: "absolute inset-0 -translate-x-full animate-shimmer bg-gradient-to-r from-transparent via-white/50 dark:via-zinc-400/10 to-transparent" }),
906
+ /* @__PURE__ */ jsxs9("div", { className: "flex items-center space-x-2 px-4 py-2 rounded-full bg-white/80 dark:bg-zinc-800/80 shadow-sm border border-gray-100 dark:border-zinc-700", children: [
907
+ /* @__PURE__ */ jsx13("div", { className: "h-2 w-2 rounded-full bg-blue-500 animate-pulse" }),
908
+ /* @__PURE__ */ jsx13("span", { className: "text-xs font-medium text-gray-600 dark:text-zinc-400", children: loadingText })
909
+ ] })
910
+ ] }),
911
+ /* @__PURE__ */ jsx13(
912
+ "div",
913
+ {
914
+ className: cn(
915
+ "transition-all duration-300",
916
+ isLoading ? "opacity-40 blur-[1px] pointer-events-none" : "opacity-100"
917
+ ),
918
+ children
919
+ }
920
+ )
921
+ ]
902
922
  }
903
923
  );
904
924
  };
@@ -940,7 +960,7 @@ Card.Footer = CardFooter;
940
960
  // src/components/modal/Modal.tsx
941
961
  import { X } from "lucide-react";
942
962
  import { motion as motion2, AnimatePresence as AnimatePresence2 } from "framer-motion";
943
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
963
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
944
964
  var Modal = ({
945
965
  isOpen,
946
966
  onClose,
@@ -949,7 +969,7 @@ var Modal = ({
949
969
  isLoading = false,
950
970
  width = 500
951
971
  }) => {
952
- return /* @__PURE__ */ jsx14(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs9("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6", children: [
972
+ return /* @__PURE__ */ jsx14(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs10("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6", children: [
953
973
  /* @__PURE__ */ jsx14(
954
974
  motion2.div,
955
975
  {
@@ -960,7 +980,7 @@ var Modal = ({
960
980
  className: "fixed inset-0 bg-black/40 backdrop-blur-sm transition-all"
961
981
  }
962
982
  ),
963
- /* @__PURE__ */ jsxs9(
983
+ /* @__PURE__ */ jsxs10(
964
984
  motion2.div,
965
985
  {
966
986
  initial: { opacity: 0, scale: 0.95, y: 10 },
@@ -970,7 +990,7 @@ var Modal = ({
970
990
  style: { maxWidth: width, maxHeight: "90vh" },
971
991
  className: "w-full bg-white dark:bg-zinc-900 rounded-3xl shadow-2xl border border-gray-200 dark:border-white/5 overflow-hidden relative z-10 flex flex-col",
972
992
  children: [
973
- /* @__PURE__ */ jsxs9("div", { className: "px-8 py-5 border-b border-gray-100 dark:border-white/5 flex items-center justify-between bg-white/50 dark:bg-zinc-900/50 backdrop-blur-xl sticky top-0 z-20", children: [
993
+ /* @__PURE__ */ jsxs10("div", { className: "px-8 py-5 border-b border-gray-100 dark:border-white/5 flex items-center justify-between bg-white/50 dark:bg-zinc-900/50 backdrop-blur-xl sticky top-0 z-20", children: [
974
994
  /* @__PURE__ */ jsx14("h3", { className: "text-xl font-bold text-gray-900 dark:text-white tracking-tight", children: title }),
975
995
  /* @__PURE__ */ jsx14(
976
996
  "button",
@@ -983,7 +1003,7 @@ var Modal = ({
983
1003
  )
984
1004
  ] }),
985
1005
  /* @__PURE__ */ jsx14("div", { className: "absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-blue-500 via-indigo-600 to-purple-500 opacity-60" }),
986
- /* @__PURE__ */ jsxs9("div", { className: "p-8 overflow-y-auto relative flex-1", children: [
1006
+ /* @__PURE__ */ jsxs10("div", { className: "p-8 overflow-y-auto relative flex-1", children: [
987
1007
  isLoading && /* @__PURE__ */ jsx14(ClassicSpin, {}),
988
1008
  /* @__PURE__ */ jsx14(
989
1009
  "div",
@@ -1000,15 +1020,15 @@ var Modal = ({
1000
1020
  };
1001
1021
 
1002
1022
  // src/components/PageHeader.tsx
1003
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
1023
+ import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
1004
1024
  var PageHeader = ({
1005
1025
  title,
1006
1026
  description,
1007
1027
  children,
1008
1028
  className
1009
1029
  }) => {
1010
- return /* @__PURE__ */ jsxs10("div", { className: cn("space-y-2 mb-8", className), children: [
1011
- /* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between", children: [
1030
+ return /* @__PURE__ */ jsxs11("div", { className: cn("space-y-2 mb-8", className), children: [
1031
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between", children: [
1012
1032
  /* @__PURE__ */ jsx15("h1", { className: "text-3xl font-bold text-gray-900 dark:text-white tracking-tight", children: title }),
1013
1033
  children
1014
1034
  ] }),
@@ -1074,7 +1094,7 @@ import { Eye, EyeOff } from "lucide-react";
1074
1094
  import {
1075
1095
  Controller
1076
1096
  } from "react-hook-form";
1077
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
1097
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
1078
1098
  var Input = forwardRef(
1079
1099
  ({
1080
1100
  label,
@@ -1116,12 +1136,12 @@ var Input = forwardRef(
1116
1136
  form.clearErrors("root");
1117
1137
  }
1118
1138
  }, [watchedValue, name, form]);
1119
- const renderInput = (inputProps, localType = type || "text") => /* @__PURE__ */ jsxs11(
1139
+ const renderInput = (inputProps, localType = type || "text") => /* @__PURE__ */ jsxs12(
1120
1140
  "div",
1121
1141
  {
1122
1142
  className: `${label ? "space-y-2" : ""} group relative ${containerClassName} `,
1123
1143
  children: [
1124
- label && /* @__PURE__ */ jsxs11(
1144
+ label && /* @__PURE__ */ jsxs12(
1125
1145
  "label",
1126
1146
  {
1127
1147
  htmlFor: props.id,
@@ -1133,7 +1153,7 @@ var Input = forwardRef(
1133
1153
  ]
1134
1154
  }
1135
1155
  ),
1136
- /* @__PURE__ */ jsxs11("div", { className: "relative", children: [
1156
+ /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
1137
1157
  icon && /* @__PURE__ */ jsx17("div", { className: "absolute inset-y-0 left-0 pl-2.5 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx17(
1138
1158
  "div",
1139
1159
  {
@@ -1275,7 +1295,7 @@ import PhoneInputOriginal, {
1275
1295
  } from "react-phone-number-input";
1276
1296
  import "react-phone-number-input/style.css";
1277
1297
  import { Controller as Controller2 } from "react-hook-form";
1278
- import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1298
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
1279
1299
  var PhoneInput = forwardRef2(
1280
1300
  ({
1281
1301
  label,
@@ -1304,8 +1324,8 @@ var PhoneInput = forwardRef2(
1304
1324
  }
1305
1325
  message4 = currentError?.message || message4;
1306
1326
  }
1307
- const renderInput = (onChangeHandler, currentValue) => /* @__PURE__ */ jsxs12("div", { className: `space-y-2 group relative ${containerClassName}`, children: [
1308
- /* @__PURE__ */ jsxs12(
1327
+ const renderInput = (onChangeHandler, currentValue) => /* @__PURE__ */ jsxs13("div", { className: `space-y-2 group relative ${containerClassName}`, children: [
1328
+ /* @__PURE__ */ jsxs13(
1309
1329
  "label",
1310
1330
  {
1311
1331
  className: `block text-xs font-medium transition-colors duration-200`,
@@ -1318,7 +1338,7 @@ var PhoneInput = forwardRef2(
1318
1338
  ]
1319
1339
  }
1320
1340
  ),
1321
- /* @__PURE__ */ jsxs12("div", { className: "relative", children: [
1341
+ /* @__PURE__ */ jsxs13("div", { className: "relative", children: [
1322
1342
  icon && /* @__PURE__ */ jsx18("div", { className: "absolute inset-y-0 left-0 pl-2.5 flex items-center pointer-events-none z-10", children: /* @__PURE__ */ jsx18(
1323
1343
  "div",
1324
1344
  {
@@ -1380,7 +1400,7 @@ import React6, {
1380
1400
  import { createPortal } from "react-dom";
1381
1401
  import { ChevronDown as ChevronDown2, Check as Check2 } from "lucide-react";
1382
1402
  import { Controller as Controller3 } from "react-hook-form";
1383
- import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1403
+ import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1384
1404
  var SelectContext = createContext3(void 0);
1385
1405
  var useSelectContext = () => {
1386
1406
  const context = useContext3(SelectContext);
@@ -1535,13 +1555,13 @@ var SelectRoot = ({
1535
1555
  disabled
1536
1556
  };
1537
1557
  const hasChildren = React6.Children.count(children) > 0;
1538
- return /* @__PURE__ */ jsx19(SelectContext.Provider, { value: valueCtx, children: /* @__PURE__ */ jsxs13(
1558
+ return /* @__PURE__ */ jsx19(SelectContext.Provider, { value: valueCtx, children: /* @__PURE__ */ jsxs14(
1539
1559
  "div",
1540
1560
  {
1541
1561
  ref: containerRef,
1542
1562
  className: `${label ? "space-y-2" : ""} group relative ${containerClassName}`,
1543
1563
  children: [
1544
- label && /* @__PURE__ */ jsxs13(
1564
+ label && /* @__PURE__ */ jsxs14(
1545
1565
  "label",
1546
1566
  {
1547
1567
  className: `block text-xs font-medium transition-colors duration-200`,
@@ -1552,7 +1572,7 @@ var SelectRoot = ({
1552
1572
  ]
1553
1573
  }
1554
1574
  ),
1555
- hasChildren ? children : /* @__PURE__ */ jsxs13(Fragment3, { children: [
1575
+ hasChildren ? children : /* @__PURE__ */ jsxs14(Fragment3, { children: [
1556
1576
  /* @__PURE__ */ jsx19(
1557
1577
  SelectTrigger,
1558
1578
  {
@@ -1655,7 +1675,7 @@ var SelectTrigger = forwardRef3(
1655
1675
  }
1656
1676
  },
1657
1677
  ...props,
1658
- children: children ? children : /* @__PURE__ */ jsxs13(Fragment3, { children: [
1678
+ children: children ? children : /* @__PURE__ */ jsxs14(Fragment3, { children: [
1659
1679
  icon && /* @__PURE__ */ jsx19(
1660
1680
  "div",
1661
1681
  {
@@ -1758,7 +1778,7 @@ var SelectItem = forwardRef3(
1758
1778
  setIsOpen(false);
1759
1779
  fieldInternalProps?.onBlur?.();
1760
1780
  };
1761
- return /* @__PURE__ */ jsxs13(
1781
+ return /* @__PURE__ */ jsxs14(
1762
1782
  "button",
1763
1783
  {
1764
1784
  ref,
@@ -1794,7 +1814,7 @@ import { forwardRef as forwardRef4, useEffect as useEffect7, useState as useStat
1794
1814
  import {
1795
1815
  Controller as Controller4
1796
1816
  } from "react-hook-form";
1797
- import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
1817
+ import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
1798
1818
  var Textarea = forwardRef4(
1799
1819
  ({
1800
1820
  label,
@@ -1818,8 +1838,8 @@ var Textarea = forwardRef4(
1818
1838
  const errorObj = name.split(".").reduce((acc, current) => acc?.[current], errors);
1819
1839
  message4 = errorObj?.message;
1820
1840
  }
1821
- const renderInput = (inputProps, ref2) => /* @__PURE__ */ jsxs14("div", { className: `space-y-2 group w-full! relative ${containerClassName}`, children: [
1822
- /* @__PURE__ */ jsxs14(
1841
+ const renderInput = (inputProps, ref2) => /* @__PURE__ */ jsxs15("div", { className: `space-y-2 group w-full! relative ${containerClassName}`, children: [
1842
+ /* @__PURE__ */ jsxs15(
1823
1843
  "label",
1824
1844
  {
1825
1845
  htmlFor: props.id,
@@ -2077,7 +2097,7 @@ var useApis_default = useApi;
2077
2097
 
2078
2098
  // src/components/Fields/searchApi.tsx
2079
2099
  import { Controller as Controller5 } from "react-hook-form";
2080
- import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
2100
+ import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
2081
2101
  var SearchApiContext = createContext4(
2082
2102
  void 0
2083
2103
  );
@@ -2394,13 +2414,13 @@ var SearchApiRoot = ({
2394
2414
  onClear
2395
2415
  };
2396
2416
  const hasChildren = !!children;
2397
- return /* @__PURE__ */ jsx21(SearchApiContext.Provider, { value: valueCtx, children: /* @__PURE__ */ jsxs15(
2417
+ return /* @__PURE__ */ jsx21(SearchApiContext.Provider, { value: valueCtx, children: /* @__PURE__ */ jsxs16(
2398
2418
  "div",
2399
2419
  {
2400
2420
  ref: containerRef,
2401
2421
  className: `${label ? "space-y-2" : ""} group relative ${containerClassName}`,
2402
2422
  children: [
2403
- label && /* @__PURE__ */ jsxs15(
2423
+ label && /* @__PURE__ */ jsxs16(
2404
2424
  "label",
2405
2425
  {
2406
2426
  className: `block text-xs font-medium transition-colors duration-200`,
@@ -2411,7 +2431,7 @@ var SearchApiRoot = ({
2411
2431
  ]
2412
2432
  }
2413
2433
  ),
2414
- hasChildren ? children : /* @__PURE__ */ jsxs15(Fragment4, { children: [
2434
+ hasChildren ? children : /* @__PURE__ */ jsxs16(Fragment4, { children: [
2415
2435
  /* @__PURE__ */ jsx21(SearchApiTrigger, { className, children: /* @__PURE__ */ jsx21(SearchApiInput, { ...props }) }),
2416
2436
  /* @__PURE__ */ jsx21(SearchApiContent, { children: filteredOptions.map((opt, index) => /* @__PURE__ */ jsx21(
2417
2437
  SearchApiItem,
@@ -2443,7 +2463,7 @@ var SearchApiTrigger = forwardRef5(
2443
2463
  inputRef,
2444
2464
  searchTerm
2445
2465
  } = useSearchApiContext();
2446
- return /* @__PURE__ */ jsx21("div", { className: "relative", ref: dropdownAnchorRef, children: /* @__PURE__ */ jsxs15(
2466
+ return /* @__PURE__ */ jsx21("div", { className: "relative", ref: dropdownAnchorRef, children: /* @__PURE__ */ jsxs16(
2447
2467
  "div",
2448
2468
  {
2449
2469
  className: `flex items-center w-full px-0 text-gray-900 dark:text-white transition-all duration-200 cursor-text py-1 ${variant === "ghost" ? "bg-transparent border-transparent shadow-none px-0 h-full" : isFocused || isOpen ? "ring-2 bg-white dark:bg-zinc-900 border rounded-md h-(--input-height)" : "border-gray-200 dark:border-zinc-800 border rounded-md bg-white dark:bg-zinc-900/50 h-(--input-height)"} ${className}`,
@@ -2468,7 +2488,7 @@ var SearchApiTrigger = forwardRef5(
2468
2488
  }
2469
2489
  ),
2470
2490
  /* @__PURE__ */ jsx21("div", { className: "flex-1 relative ms-2", children }),
2471
- /* @__PURE__ */ jsx21("div", { className: "pr-2.5 w-16! flex items-center gap-1 shrink-0 min-w-10 justify-end", children: isLoading ? /* @__PURE__ */ jsx21(Loader22, { className: "h-4 w-4 animate-spin text-blue-500 shrink-0" }) : /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-1", children: [
2491
+ /* @__PURE__ */ jsx21("div", { className: "pr-2.5 w-16! flex items-center gap-1 shrink-0 min-w-10 justify-end", children: isLoading ? /* @__PURE__ */ jsx21(Loader22, { className: "h-4 w-4 animate-spin text-blue-500 shrink-0" }) : /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-1", children: [
2472
2492
  selectedValue && !disabled && /* @__PURE__ */ jsx21(
2473
2493
  "button",
2474
2494
  {
@@ -2558,7 +2578,7 @@ var SearchApiInput = forwardRef5(
2558
2578
  break;
2559
2579
  }
2560
2580
  };
2561
- return /* @__PURE__ */ jsxs15(Fragment4, { children: [
2581
+ return /* @__PURE__ */ jsxs16(Fragment4, { children: [
2562
2582
  !isOpen && (selectedValue !== void 0 && selectedValue !== null && selectedValue !== "") && /* @__PURE__ */ jsx21("div", { className: "absolute inset-0 flex items-center ms-1 truncate select-none", children: getDisplayValue() }),
2563
2583
  /* @__PURE__ */ jsx21(
2564
2584
  "input",
@@ -2646,7 +2666,7 @@ var SearchApiContent = forwardRef5(
2646
2666
  }, [isOpen]);
2647
2667
  if (!isOpen || typeof document === "undefined") return null;
2648
2668
  return createPortal2(
2649
- /* @__PURE__ */ jsxs15(
2669
+ /* @__PURE__ */ jsxs16(
2650
2670
  "div",
2651
2671
  {
2652
2672
  ref: dropdownContentRef,
@@ -2656,7 +2676,7 @@ var SearchApiContent = forwardRef5(
2656
2676
  ...props,
2657
2677
  children: [
2658
2678
  error && /* @__PURE__ */ jsx21("div", { className: "px-3 py-2 text-sm text-red-600 dark:text-red-400 border-b border-gray-100 dark:border-zinc-800", children: error }),
2659
- isLoading && options.length === 0 ? /* @__PURE__ */ jsxs15("div", { className: "p-4 text-center text-sm text-gray-500", children: [
2679
+ isLoading && options.length === 0 ? /* @__PURE__ */ jsxs16("div", { className: "p-4 text-center text-sm text-gray-500", children: [
2660
2680
  /* @__PURE__ */ jsx21(Loader22, { className: "h-5 w-5 animate-spin mx-auto mb-2" }),
2661
2681
  "Loading options..."
2662
2682
  ] }) : children ? /* @__PURE__ */ jsx21("div", { className: "py-1", children }) : /* @__PURE__ */ jsx21("div", { className: "p-4 text-center text-sm text-gray-500", children: searchTerm ? `No results for "${searchTerm}"` : "No options available" })
@@ -2688,7 +2708,7 @@ var SearchApiItem = forwardRef5(
2688
2708
  const optValue = getOptionValue(option);
2689
2709
  const isSelected = selectedValue === optValue;
2690
2710
  const isHighlighted = index === activeIndex;
2691
- return /* @__PURE__ */ jsxs15(
2711
+ return /* @__PURE__ */ jsxs16(
2692
2712
  "button",
2693
2713
  {
2694
2714
  ref,
@@ -2726,7 +2746,7 @@ import {
2726
2746
  import dayjs from "dayjs";
2727
2747
  import customParseFormat from "dayjs/plugin/customParseFormat";
2728
2748
  import { Calendar } from "lucide-react";
2729
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
2749
+ import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
2730
2750
  dayjs.extend(customParseFormat);
2731
2751
  var DateInput = forwardRef6(
2732
2752
  ({
@@ -2802,8 +2822,8 @@ var DateInput = forwardRef6(
2802
2822
  }
2803
2823
  );
2804
2824
  };
2805
- return /* @__PURE__ */ jsxs16("div", { className: `space-y-2 group relative ${containerClassName}`, children: [
2806
- label && /* @__PURE__ */ jsxs16(
2825
+ return /* @__PURE__ */ jsxs17("div", { className: `space-y-2 group relative ${containerClassName}`, children: [
2826
+ label && /* @__PURE__ */ jsxs17(
2807
2827
  "label",
2808
2828
  {
2809
2829
  className: "block text-xs font-medium transition-colors duration-200",
@@ -2864,7 +2884,7 @@ import {
2864
2884
  flexRender
2865
2885
  } from "@tanstack/react-table";
2866
2886
  import { ChevronDown as ChevronDown4, Search as Search2 } from "lucide-react";
2867
- import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
2887
+ import { Fragment as Fragment5, jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
2868
2888
  function DataTable({
2869
2889
  columns: userColumns,
2870
2890
  data,
@@ -2999,8 +3019,8 @@ function DataTable({
2999
3019
  table.getState().pagination.pageIndex,
3000
3020
  table.getState().pagination.pageSize
3001
3021
  ]);
3002
- return /* @__PURE__ */ jsxs17("div", { className: `space-y-4 w-full ${className}`, children: [
3003
- filterables && /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between gap-4", children: [
3022
+ return /* @__PURE__ */ jsxs18("div", { className: `space-y-4 w-full ${className}`, children: [
3023
+ filterables && /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between gap-4", children: [
3004
3024
  /* @__PURE__ */ jsx23("div", { className: "flex-1 max-w-sm", children: /* @__PURE__ */ jsx23(
3005
3025
  Fields_default.Input,
3006
3026
  {
@@ -3011,12 +3031,12 @@ function DataTable({
3011
3031
  className: "h-9!"
3012
3032
  }
3013
3033
  ) }),
3014
- /* @__PURE__ */ jsx23("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxs17("div", { className: "relative group", children: [
3015
- /* @__PURE__ */ jsxs17("button", { className: "flex items-center gap-2 px-3 h-9 rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 text-sm font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-800 transition-colors", children: [
3034
+ /* @__PURE__ */ jsx23("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxs18("div", { className: "relative group", children: [
3035
+ /* @__PURE__ */ jsxs18("button", { className: "flex items-center gap-2 px-3 h-9 rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 text-sm font-medium text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-800 transition-colors", children: [
3016
3036
  "Columns",
3017
3037
  /* @__PURE__ */ jsx23(ChevronDown4, { size: 14, className: "text-gray-400" })
3018
3038
  ] }),
3019
- /* @__PURE__ */ jsx23("div", { className: "absolute right-0 top-full mt-2 w-48 py-1 bg-white dark:bg-zinc-900 border border-gray-200 dark:border-zinc-800 rounded-lg shadow-xl opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all z-50", children: table.getAllColumns().filter((column) => column.getCanHide()).map((column) => /* @__PURE__ */ jsxs17(
3039
+ /* @__PURE__ */ jsx23("div", { className: "absolute right-0 top-full mt-2 w-48 py-1 bg-white dark:bg-zinc-900 border border-gray-200 dark:border-zinc-800 rounded-lg shadow-xl opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all z-50", children: table.getAllColumns().filter((column) => column.getCanHide()).map((column) => /* @__PURE__ */ jsxs18(
3020
3040
  "label",
3021
3041
  {
3022
3042
  className: "flex items-center gap-2 px-3 py-2 text-sm text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-zinc-800 cursor-pointer capitalize",
@@ -3038,7 +3058,7 @@ function DataTable({
3038
3058
  )) })
3039
3059
  ] }) })
3040
3060
  ] }),
3041
- /* @__PURE__ */ jsx23("div", { className: "rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 overflow-hidden relative", children: /* @__PURE__ */ jsx23("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs17(
3061
+ /* @__PURE__ */ jsx23("div", { className: "rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 overflow-hidden relative", children: /* @__PURE__ */ jsx23("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs18(
3042
3062
  "table",
3043
3063
  {
3044
3064
  className: "w-full text-left border-collapse",
@@ -3069,7 +3089,7 @@ function DataTable({
3069
3089
  ))
3070
3090
  },
3071
3091
  `skeleton-${i}`
3072
- )) : table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs17(React8.Fragment, { children: [
3092
+ )) : table.getRowModel().rows?.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ jsxs18(React8.Fragment, { children: [
3073
3093
  /* @__PURE__ */ jsx23(
3074
3094
  "tr",
3075
3095
  {
@@ -3098,7 +3118,7 @@ function DataTable({
3098
3118
  ))
3099
3119
  }
3100
3120
  ),
3101
- renderSubComponent && row.getIsExpanded() && hasSubComponent(row.original) && /* @__PURE__ */ jsx23("tr", { className: "border-b border-gray-200 dark:border-zinc-800 bg-gray-50/20 dark:bg-zinc-900/20", children: /* @__PURE__ */ jsx23("td", { colSpan: columns.length, className: "px-2 py-0", children: /* @__PURE__ */ jsxs17("div", { className: "relative pl-6 pb-2 pr-2 pt-2 h-full", children: [
3121
+ renderSubComponent && row.getIsExpanded() && hasSubComponent(row.original) && /* @__PURE__ */ jsx23("tr", { className: "border-b border-gray-200 dark:border-zinc-800 bg-gray-50/20 dark:bg-zinc-900/20", children: /* @__PURE__ */ jsx23("td", { colSpan: columns.length, className: "px-2 py-0", children: /* @__PURE__ */ jsxs18("div", { className: "relative pl-6 pb-2 pr-2 pt-2 h-full", children: [
3102
3122
  /* @__PURE__ */ jsx23("div", { className: "absolute left-2 top-0 bottom-2 w-6 border-l-2 border-b-2 rounded-bl-xl border-(--theme-primary) dark:border-(--theme-primary) pointer-events-none" }),
3103
3123
  renderSubComponent({
3104
3124
  row: row.original,
@@ -3131,16 +3151,16 @@ function DataTable({
3131
3151
  ]
3132
3152
  }
3133
3153
  ) }) }),
3134
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between px-2", children: [
3135
- /* @__PURE__ */ jsx23("div", { className: "flex-1 text-xs text-gray-500", children: selectable && /* @__PURE__ */ jsxs17(Fragment5, { children: [
3154
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center justify-between px-2", children: [
3155
+ /* @__PURE__ */ jsx23("div", { className: "flex-1 text-xs text-gray-500", children: selectable && /* @__PURE__ */ jsxs18(Fragment5, { children: [
3136
3156
  table.getFilteredSelectedRowModel().rows.length,
3137
3157
  " of",
3138
3158
  " ",
3139
3159
  table.getFilteredRowModel().rows.length,
3140
3160
  " row(s) selected."
3141
3161
  ] }) }),
3142
- pageRows && table.getPageCount() > 1 && /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3143
- /* @__PURE__ */ jsxs17("span", { className: "text-sm text-gray-700 dark:text-gray-300 mr-2 select-none", children: [
3162
+ pageRows && table.getPageCount() > 1 && /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3163
+ /* @__PURE__ */ jsxs18("span", { className: "text-sm text-gray-700 dark:text-gray-300 mr-2 select-none", children: [
3144
3164
  "Page",
3145
3165
  " ",
3146
3166
  /* @__PURE__ */ jsx23("span", { className: "font-semibold", children: table.getState().pagination.pageIndex + 1 }),
@@ -3196,7 +3216,7 @@ import {
3196
3216
  ChevronDown as ChevronDown5,
3197
3217
  Loader2 as Loader23
3198
3218
  } from "lucide-react";
3199
- import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
3219
+ import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
3200
3220
  var TableCell = React9.memo(
3201
3221
  ({
3202
3222
  cell,
@@ -3235,7 +3255,7 @@ var TableRow = React9.memo(
3235
3255
  }) => {
3236
3256
  const isExpanded = row.getIsExpanded();
3237
3257
  const subComponentVisible = renderSubComponent && isExpanded && hasSubComponent(row.original);
3238
- return /* @__PURE__ */ jsxs18(React9.Fragment, { children: [
3258
+ return /* @__PURE__ */ jsxs19(React9.Fragment, { children: [
3239
3259
  /* @__PURE__ */ jsx24(
3240
3260
  "tr",
3241
3261
  {
@@ -3260,7 +3280,7 @@ var TableRow = React9.memo(
3260
3280
  ))
3261
3281
  }
3262
3282
  ),
3263
- subComponentVisible && /* @__PURE__ */ jsx24("tr", { className: "border-b border-gray-200 dark:border-zinc-800 bg-gray-50/20 dark:bg-zinc-900/20", children: /* @__PURE__ */ jsx24("td", { colSpan: columnsCount, className: "px-2 py-0", children: /* @__PURE__ */ jsxs18("div", { className: "relative pl-6 pb-2 pr-2 pt-2 h-full", children: [
3283
+ subComponentVisible && /* @__PURE__ */ jsx24("tr", { className: "border-b border-gray-200 dark:border-zinc-800 bg-gray-50/20 dark:bg-zinc-900/20", children: /* @__PURE__ */ jsx24("td", { colSpan: columnsCount, className: "px-2 py-0", children: /* @__PURE__ */ jsxs19("div", { className: "relative pl-6 pb-2 pr-2 pt-2 h-full", children: [
3264
3284
  /* @__PURE__ */ jsx24("div", { className: "absolute left-2 top-0 bottom-2 w-6 border-l-2 border-b-2 rounded-bl-xl border-(--theme-primary) dark:border-(--theme-primary) pointer-events-none" }),
3265
3285
  renderSubComponent({
3266
3286
  row: row.original,
@@ -3516,7 +3536,7 @@ function PostTable({
3516
3536
  header: "Actions",
3517
3537
  cell: ({ row, table: table2 }) => {
3518
3538
  const { handleEdit: handleEdit2, handleDelete: handleDelete2, submitLoading: submitLoading2, isSavingAsync: isSavingAsync2 } = table2.options.meta;
3519
- return /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3539
+ return /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
3520
3540
  /* @__PURE__ */ jsx24(
3521
3541
  "button",
3522
3542
  {
@@ -3556,7 +3576,7 @@ function PostTable({
3556
3576
  size: 40,
3557
3577
  minSize: 40,
3558
3578
  maxSize: 40,
3559
- cell: ({ row }) => /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3579
+ cell: ({ row }) => /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-2", children: [
3560
3580
  /* @__PURE__ */ jsx24("span", { className: "text-gray-500 font-medium ml-1", children: row.index + 1 }),
3561
3581
  renderSubComponent && hasSubComponent(row.original) && /* @__PURE__ */ jsx24(
3562
3582
  ChevronDown5,
@@ -3603,7 +3623,7 @@ function PostTable({
3603
3623
  {
3604
3624
  className: `space-y-4 w-full ${className}`,
3605
3625
  style: { "--theme-primary": primaryColor || "#3b82f6" },
3606
- children: /* @__PURE__ */ jsx24("div", { className: "rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 relative", children: /* @__PURE__ */ jsx24("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs18("table", { className: "w-full text-left border-collapse", children: [
3626
+ children: /* @__PURE__ */ jsx24("div", { className: "rounded-lg border border-gray-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 relative", children: /* @__PURE__ */ jsx24("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs19("table", { className: "w-full text-left border-collapse", children: [
3607
3627
  /* @__PURE__ */ jsx24("thead", { className: "bg-gray-50/50 dark:bg-zinc-900/50 border-b border-gray-200 dark:border-zinc-800", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx24("tr", { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsx24(
3608
3628
  "th",
3609
3629
  {
@@ -3626,7 +3646,7 @@ function PostTable({
3626
3646
  },
3627
3647
  header.id
3628
3648
  )) }, headerGroup.id)) }),
3629
- /* @__PURE__ */ jsxs18("tbody", { className: "", children: [
3649
+ /* @__PURE__ */ jsxs19("tbody", { className: "", children: [
3630
3650
  isLoading ? Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx24(
3631
3651
  "tr",
3632
3652
  {
@@ -3692,7 +3712,7 @@ function PostTable({
3692
3712
  "py-1! text-sm align-middle transition-colors duration-200",
3693
3713
  verticalLines ? "border-x border-gray-200 dark:border-zinc-800" : ""
3694
3714
  ),
3695
- children: /* @__PURE__ */ jsx24("div", { className: "flex items-center gap-2", children: editingIndex !== null ? /* @__PURE__ */ jsxs18(Fragment6, { children: [
3715
+ children: /* @__PURE__ */ jsx24("div", { className: "flex items-center gap-2", children: editingIndex !== null ? /* @__PURE__ */ jsxs19(Fragment6, { children: [
3696
3716
  /* @__PURE__ */ jsx24(
3697
3717
  "button",
3698
3718
  {
@@ -3723,7 +3743,7 @@ function PostTable({
3723
3743
  entryData,
3724
3744
  handleSaveField,
3725
3745
  isSavingAsync
3726
- ) : /* @__PURE__ */ jsxs18(
3746
+ ) : /* @__PURE__ */ jsxs19(
3727
3747
  "button",
3728
3748
  {
3729
3749
  onClick: handleSaveField,
@@ -3793,7 +3813,7 @@ function PostTable({
3793
3813
  minWidth: column.columnDef.meta?.width ?? column.columnDef.minSize,
3794
3814
  maxWidth: column.columnDef.meta?.width ?? column.columnDef.maxSize
3795
3815
  },
3796
- children: /* @__PURE__ */ jsxs18(
3816
+ children: /* @__PURE__ */ jsxs19(
3797
3817
  "div",
3798
3818
  {
3799
3819
  className: cn(
@@ -3886,7 +3906,7 @@ import {
3886
3906
  getCoreRowModel as getCoreRowModel3,
3887
3907
  flexRender as flexRender3
3888
3908
  } from "@tanstack/react-table";
3889
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
3909
+ import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
3890
3910
  function SimpleTable({
3891
3911
  columns: userColumns,
3892
3912
  data,
@@ -3935,8 +3955,8 @@ function SimpleTable({
3935
3955
  )
3936
3956
  );
3937
3957
  }, [table]);
3938
- return /* @__PURE__ */ jsxs19("div", { className: `w-full overflow-hidden ${className}`, children: [
3939
- /* @__PURE__ */ jsxs19(
3958
+ return /* @__PURE__ */ jsxs20("div", { className: `w-full overflow-hidden ${className}`, children: [
3959
+ /* @__PURE__ */ jsxs20(
3940
3960
  "table",
3941
3961
  {
3942
3962
  className: `w-full max-w-full text-left border-collapse table-fixed ${verticalLines ? "border border-black dark:border-white" : ""}`,
@@ -4092,7 +4112,7 @@ import { useState as useState16 } from "react";
4092
4112
  import { ArrowLeft, Copy as Copy2, Check as Check5, ExternalLink } from "lucide-react";
4093
4113
  import { useNavigate as useNavigate2 } from "react-router-dom";
4094
4114
  import { message } from "antd";
4095
- import { jsx as jsx28, jsxs as jsxs20 } from "react/jsx-runtime";
4115
+ import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
4096
4116
  var ProfileCard = ({
4097
4117
  name,
4098
4118
  role,
@@ -4123,7 +4143,7 @@ var ProfileCard = ({
4123
4143
  const getInitials = (userName) => {
4124
4144
  return userName.split(" ").filter(Boolean).map((n) => n[0]).join("").toUpperCase().slice(0, 2);
4125
4145
  };
4126
- return /* @__PURE__ */ jsxs20(Card, { className: cn(
4146
+ return /* @__PURE__ */ jsxs21(Card, { className: cn(
4127
4147
  "overflow-hidden border-0 bg-white/70 dark:bg-zinc-950/70 backdrop-blur-xl shadow-2xl",
4128
4148
  "relative group/card transition-all duration-300",
4129
4149
  className
@@ -4131,8 +4151,8 @@ var ProfileCard = ({
4131
4151
  /* @__PURE__ */ jsx28("div", { className: "absolute top-0 left-0 w-full h-32 bg-linear-to-br from-blue-600/10 via-indigo-600/5 to-purple-600/10 dark:from-blue-500/10 dark:via-indigo-500/5 dark:to-purple-500/10" }),
4132
4152
  /* @__PURE__ */ jsx28("div", { className: "absolute top-0 right-0 w-48 h-48 bg-blue-500/20 blur-3xl -mr-24 -mt-24 rounded-full" }),
4133
4153
  /* @__PURE__ */ jsx28("div", { className: "absolute top-0 left-0 w-32 h-32 bg-indigo-500/10 blur-2xl -ml-16 -mt-16 rounded-full" }),
4134
- /* @__PURE__ */ jsxs20(Card.Content, { className: "relative px-8 pt-8 pb-10 z-10", children: [
4135
- /* @__PURE__ */ jsxs20("div", { className: "flex justify-between items-start mb-10", children: [
4154
+ /* @__PURE__ */ jsxs21(Card.Content, { className: "relative px-8 pt-8 pb-10 z-10", children: [
4155
+ /* @__PURE__ */ jsxs21("div", { className: "flex justify-between items-start mb-10", children: [
4136
4156
  /* @__PURE__ */ jsx28(
4137
4157
  "button",
4138
4158
  {
@@ -4143,15 +4163,15 @@ var ProfileCard = ({
4143
4163
  ),
4144
4164
  /* @__PURE__ */ jsx28("div", { className: "flex gap-2", children: /* @__PURE__ */ jsx28("div", { className: "px-3 py-1 rounded-full bg-blue-50/50 dark:bg-blue-500/10 text-[10px] font-bold text-blue-600 dark:text-blue-400 uppercase tracking-widest border border-blue-100/50 dark:border-blue-500/20", children: "Active Profile" }) })
4145
4165
  ] }),
4146
- /* @__PURE__ */ jsxs20("div", { className: "flex flex-col items-center sm:flex-row gap-8 mb-12", children: [
4147
- /* @__PURE__ */ jsxs20("div", { className: "relative shrink-0 group/avatar", children: [
4166
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center sm:flex-row gap-8 mb-12", children: [
4167
+ /* @__PURE__ */ jsxs21("div", { className: "relative shrink-0 group/avatar", children: [
4148
4168
  /* @__PURE__ */ jsx28("div", { className: "absolute inset-0 bg-blue-500/20 blur-xl opacity-0 group-hover/avatar:opacity-100 transition-opacity" }),
4149
4169
  /* @__PURE__ */ jsx28("div", { className: "relative h-28 w-28 rounded-3xl ring-4 ring-white dark:ring-zinc-950 shadow-2xl overflow-hidden bg-gray-50 dark:bg-zinc-900 flex items-center justify-center transition-transform hover:rotate-3 duration-300", children: image ? /* @__PURE__ */ jsx28("img", { src: image, alt: name, className: "h-full w-full object-cover" }) : /* @__PURE__ */ jsx28("span", { className: "text-3xl font-black text-blue-600 dark:text-blue-400 select-none", children: getInitials(name) }) }),
4150
4170
  /* @__PURE__ */ jsx28("div", { className: "absolute bottom-0 right-0 w-6 h-6 bg-green-500 border-4 border-white dark:border-zinc-950 rounded-full shadow-lg" })
4151
4171
  ] }),
4152
- /* @__PURE__ */ jsxs20("div", { className: "flex flex-col items-center sm:items-start text-center sm:text-left gap-1", children: [
4172
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center sm:items-start text-center sm:text-left gap-1", children: [
4153
4173
  /* @__PURE__ */ jsx28("h2", { className: "text-3xl font-black text-gray-900 dark:text-white tracking-tight leading-tight", children: name }),
4154
- role && /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2", children: [
4174
+ role && /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
4155
4175
  /* @__PURE__ */ jsx28("span", { className: "text-sm font-semibold text-gray-500 dark:text-zinc-400 capitalize", children: role }),
4156
4176
  /* @__PURE__ */ jsx28("span", { className: "w-1 h-1 rounded-full bg-gray-300 dark:bg-zinc-700" }),
4157
4177
  /* @__PURE__ */ jsx28("span", { className: "text-xs font-medium text-blue-600/70 dark:text-blue-400/70", children: "Verified Account" })
@@ -4160,12 +4180,12 @@ var ProfileCard = ({
4160
4180
  ] }),
4161
4181
  /* @__PURE__ */ jsx28("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: Object.entries(details).map(([key, value]) => {
4162
4182
  if (value === void 0 || value === null || value === "") return null;
4163
- return /* @__PURE__ */ jsxs20(
4183
+ return /* @__PURE__ */ jsxs21(
4164
4184
  "div",
4165
4185
  {
4166
4186
  className: "group flex flex-col p-4 rounded-2xl bg-gray-50/50 dark:bg-zinc-900/30 border border-transparent hover:border-blue-100 dark:hover:border-blue-900/30 hover:bg-white dark:hover:bg-zinc-900 transition-all duration-300",
4167
4187
  children: [
4168
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center justify-between mb-1", children: [
4188
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center justify-between mb-1", children: [
4169
4189
  /* @__PURE__ */ jsx28("span", { className: "text-[10px] font-black uppercase tracking-widest text-gray-400 dark:text-zinc-500", children: formatLabel(key) }),
4170
4190
  /* @__PURE__ */ jsx28(
4171
4191
  "button",
@@ -4186,9 +4206,9 @@ var ProfileCard = ({
4186
4206
  );
4187
4207
  }) })
4188
4208
  ] }),
4189
- /* @__PURE__ */ jsxs20("div", { className: "px-8 py-4 bg-gray-50/50 dark:bg-zinc-900/30 border-t border-gray-100 dark:border-zinc-900 flex justify-between items-center", children: [
4209
+ /* @__PURE__ */ jsxs21("div", { className: "px-8 py-4 bg-gray-50/50 dark:bg-zinc-900/30 border-t border-gray-100 dark:border-zinc-900 flex justify-between items-center", children: [
4190
4210
  /* @__PURE__ */ jsx28("p", { className: "text-[10px] text-gray-400 dark:text-zinc-600 font-medium italic", children: "All data is securely encrypted." }),
4191
- /* @__PURE__ */ jsxs20("button", { className: "flex items-center gap-1.5 text-xs font-bold text-blue-600 dark:text-blue-400 hover:underline", children: [
4211
+ /* @__PURE__ */ jsxs21("button", { className: "flex items-center gap-1.5 text-xs font-bold text-blue-600 dark:text-blue-400 hover:underline", children: [
4192
4212
  "Edit Settings ",
4193
4213
  /* @__PURE__ */ jsx28(ExternalLink, { size: 12 })
4194
4214
  ] })
@@ -4200,7 +4220,7 @@ var ProfileCard = ({
4200
4220
  import React13 from "react";
4201
4221
  import { User, Shield, Copy as Copy3, Check as Check6 } from "lucide-react";
4202
4222
  import { message as message2 } from "antd";
4203
- import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
4223
+ import { jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
4204
4224
  var ProfileView = ({
4205
4225
  name,
4206
4226
  role,
@@ -4222,7 +4242,7 @@ var ProfileView = ({
4222
4242
  message2.success(`${formatLabel(label)} copied!`);
4223
4243
  setTimeout(() => setCopiedIndex(null), 2e3);
4224
4244
  };
4225
- return /* @__PURE__ */ jsxs21(
4245
+ return /* @__PURE__ */ jsxs22(
4226
4246
  "div",
4227
4247
  {
4228
4248
  className: cn(
@@ -4230,14 +4250,14 @@ var ProfileView = ({
4230
4250
  className
4231
4251
  ),
4232
4252
  children: [
4233
- /* @__PURE__ */ jsx29("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: /* @__PURE__ */ jsxs21("div", { children: [
4253
+ /* @__PURE__ */ jsx29("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4", children: /* @__PURE__ */ jsxs22("div", { children: [
4234
4254
  /* @__PURE__ */ jsx29("h1", { className: "text-3xl font-black text-gray-900 dark:text-white tracking-tight leading-none", children: title }),
4235
4255
  /* @__PURE__ */ jsx29("p", { className: "text-gray-500 dark:text-gray-400 mt-2 font-medium", children: description })
4236
4256
  ] }) }),
4237
- /* @__PURE__ */ jsxs21("div", { className: "bg-white dark:bg-zinc-900 rounded-[2.5rem] border border-gray-100 dark:border-zinc-800 relative overflow-hidden flex flex-col", children: [
4238
- /* @__PURE__ */ jsxs21("div", { className: "p-8 sm:p-10 border-b border-gray-50 dark:border-zinc-800/50 relative overflow-hidden bg-gray-50/30 dark:bg-zinc-900/10", children: [
4257
+ /* @__PURE__ */ jsxs22("div", { className: "bg-white dark:bg-zinc-900 rounded-[2.5rem] border border-gray-100 dark:border-zinc-800 relative overflow-hidden flex flex-col", children: [
4258
+ /* @__PURE__ */ jsxs22("div", { className: "p-8 sm:p-10 border-b border-gray-50 dark:border-zinc-800/50 relative overflow-hidden bg-gray-50/30 dark:bg-zinc-900/10", children: [
4239
4259
  /* @__PURE__ */ jsx29("div", { className: "absolute top-0 right-0 w-64 h-64 bg-blue-50 dark:bg-blue-900/10 rounded-full blur-3xl -mr-16 -mt-16 pointer-events-none" }),
4240
- /* @__PURE__ */ jsxs21("div", { className: "relative flex flex-col sm:flex-row items-center sm:items-start gap-10", children: [
4260
+ /* @__PURE__ */ jsxs22("div", { className: "relative flex flex-col sm:flex-row items-center sm:items-start gap-10", children: [
4241
4261
  /* @__PURE__ */ jsx29("div", { className: "relative shrink-0", children: /* @__PURE__ */ jsx29("div", { className: "w-28 h-28 sm:w-36 sm:h-36 rounded-[2rem] bg-linear-to-br from-blue-50 to-indigo-50 dark:from-blue-900/20 dark:to-indigo-900/20 flex items-center justify-center text-blue-600 dark:text-blue-400 ring-1 ring-black/5 dark:ring-white/10 overflow-hidden", children: imgUrl ? /* @__PURE__ */ jsx29(
4242
4262
  "img",
4243
4263
  {
@@ -4246,17 +4266,17 @@ var ProfileView = ({
4246
4266
  className: "w-full h-full object-cover"
4247
4267
  }
4248
4268
  ) : /* @__PURE__ */ jsx29(User, { size: 56, className: "opacity-80" }) }) }),
4249
- /* @__PURE__ */ jsxs21("div", { className: "text-center sm:text-left space-y-4 flex-1 pt-4", children: [
4250
- /* @__PURE__ */ jsxs21("div", { children: [
4269
+ /* @__PURE__ */ jsxs22("div", { className: "text-center sm:text-left space-y-4 flex-1 pt-4", children: [
4270
+ /* @__PURE__ */ jsxs22("div", { children: [
4251
4271
  /* @__PURE__ */ jsx29("h2", { className: "text-3xl font-black text-gray-900 dark:text-white tracking-tight leading-none mb-3", children: name }),
4252
4272
  /* @__PURE__ */ jsx29("p", { className: "text-gray-500 dark:text-gray-400 font-semibold text-lg", children: email })
4253
4273
  ] }),
4254
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-wrap justify-center sm:justify-start gap-2.5", children: [
4255
- role && /* @__PURE__ */ jsxs21("span", { className: "inline-flex items-center gap-2 px-4 py-1.5 rounded-2xl bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300 text-xs font-bold capitalize border border-blue-100 dark:border-blue-800 tracking-wide", children: [
4274
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-wrap justify-center sm:justify-start gap-2.5", children: [
4275
+ role && /* @__PURE__ */ jsxs22("span", { className: "inline-flex items-center gap-2 px-4 py-1.5 rounded-2xl bg-blue-50 text-blue-700 dark:bg-blue-900/30 dark:text-blue-300 text-xs font-bold capitalize border border-blue-100 dark:border-blue-800 tracking-wide", children: [
4256
4276
  /* @__PURE__ */ jsx29(Shield, { size: 14 }),
4257
4277
  role
4258
4278
  ] }),
4259
- userId && /* @__PURE__ */ jsxs21("span", { className: "inline-flex items-center gap-2 px-4 py-1.5 rounded-2xl bg-gray-50 text-gray-700 dark:bg-zinc-800 dark:text-gray-300 text-xs font-bold border border-gray-100 dark:border-zinc-700 tracking-wide", children: [
4279
+ userId && /* @__PURE__ */ jsxs22("span", { className: "inline-flex items-center gap-2 px-4 py-1.5 rounded-2xl bg-gray-50 text-gray-700 dark:bg-zinc-800 dark:text-gray-300 text-xs font-bold border border-gray-100 dark:border-zinc-700 tracking-wide", children: [
4260
4280
  "#",
4261
4281
  userId.slice(-6).toUpperCase()
4262
4282
  ] })
@@ -4268,12 +4288,12 @@ var ProfileView = ({
4268
4288
  if (item.value === void 0 || item.value === null || item.value === "")
4269
4289
  return null;
4270
4290
  const isCopiable = item.copiable !== false;
4271
- return /* @__PURE__ */ jsxs21(
4291
+ return /* @__PURE__ */ jsxs22(
4272
4292
  "div",
4273
4293
  {
4274
4294
  className: "group flex flex-col p-6 rounded-3xl bg-gray-50/50 dark:bg-zinc-800/30 border border-gray-100/50 dark:border-zinc-800/50 hover:bg-white dark:hover:bg-zinc-800 hover:border-blue-100 dark:hover:border-blue-900/30 transition-all duration-300",
4275
4295
  children: [
4276
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center justify-between mb-2 capitalize", children: [
4296
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center justify-between mb-2 capitalize", children: [
4277
4297
  /* @__PURE__ */ jsx29("span", { className: "text-[10px] font-black uppercase tracking-widest text-gray-400 dark:text-zinc-500", children: formatLabel(item.label) }),
4278
4298
  isCopiable && /* @__PURE__ */ jsx29(
4279
4299
  "button",
@@ -4317,7 +4337,7 @@ import {
4317
4337
  ArrowLeft as ArrowLeft2
4318
4338
  } from "lucide-react";
4319
4339
  import { useNavigate as useNavigate3 } from "react-router-dom";
4320
- import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
4340
+ import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
4321
4341
  var TechLogin = ({
4322
4342
  form,
4323
4343
  onSubmit,
@@ -4329,8 +4349,8 @@ var TechLogin = ({
4329
4349
  isLoading
4330
4350
  }) => {
4331
4351
  const navigate = useNavigate3();
4332
- return /* @__PURE__ */ jsxs22("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-[#0A0B10]", children: [
4333
- /* @__PURE__ */ jsxs22("div", { className: "hidden lg:flex lg:w-3/5 relative overflow-hidden bg-slate-900 border-r border-slate-800", children: [
4352
+ return /* @__PURE__ */ jsxs23("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-[#0A0B10]", children: [
4353
+ /* @__PURE__ */ jsxs23("div", { className: "hidden lg:flex lg:w-3/5 relative overflow-hidden bg-slate-900 border-r border-slate-800", children: [
4334
4354
  /* @__PURE__ */ jsx30(
4335
4355
  "div",
4336
4356
  {
@@ -4339,29 +4359,29 @@ var TechLogin = ({
4339
4359
  }
4340
4360
  ),
4341
4361
  /* @__PURE__ */ jsx30("div", { className: "absolute inset-0 bg-linear-to-tr from-[#0A0B10] via-transparent to-purple-500/10 z-10" }),
4342
- /* @__PURE__ */ jsxs22("div", { className: "relative z-20 p-12 flex flex-col justify-between w-full h-full", children: [
4343
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-3", children: [
4362
+ /* @__PURE__ */ jsxs23("div", { className: "relative z-20 p-12 flex flex-col justify-between w-full h-full", children: [
4363
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3", children: [
4344
4364
  /* @__PURE__ */ jsx30("div", { className: "h-10 w-10 bg-indigo-600 rounded-lg flex items-center justify-center shadow-[0_0_20px_rgba(79,70,229,0.5)]", children: /* @__PURE__ */ jsx30(Terminal, { className: "text-white w-6 h-6" }) }),
4345
4365
  /* @__PURE__ */ jsx30("span", { className: "text-2xl font-bold text-white tracking-widest uppercase", children: brandName || "DevNode" })
4346
4366
  ] }),
4347
- /* @__PURE__ */ jsxs22("div", { className: "max-w-md", children: [
4348
- /* @__PURE__ */ jsxs22("h1", { className: "text-5xl font-extrabold text-white mb-6 leading-tight", children: [
4367
+ /* @__PURE__ */ jsxs23("div", { className: "max-w-md", children: [
4368
+ /* @__PURE__ */ jsxs23("h1", { className: "text-5xl font-extrabold text-white mb-6 leading-tight", children: [
4349
4369
  "Build the ",
4350
4370
  /* @__PURE__ */ jsx30("span", { className: "text-indigo-400", children: "Future" }),
4351
4371
  " of Web."
4352
4372
  ] }),
4353
4373
  /* @__PURE__ */ jsx30("p", { className: "text-slate-400 text-lg leading-relaxed mb-8", children: "Join thousands of developers building scalable applications with our state-of-the-art infrastructure." })
4354
4374
  ] }),
4355
- /* @__PURE__ */ jsxs22("div", { className: "text-slate-500 text-sm", children: [
4375
+ /* @__PURE__ */ jsxs23("div", { className: "text-slate-500 text-sm", children: [
4356
4376
  "\xA9 2026 ",
4357
4377
  brandName || "DevNode",
4358
4378
  "."
4359
4379
  ] })
4360
4380
  ] })
4361
4381
  ] }),
4362
- /* @__PURE__ */ jsxs22("div", { className: "w-full lg:w-2/5 p-8 lg:p-16 flex flex-col justify-center bg-white dark:bg-[#0A0B10] relative transition-colors duration-300", children: [
4363
- /* @__PURE__ */ jsxs22("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4364
- backUrl && /* @__PURE__ */ jsxs22(
4382
+ /* @__PURE__ */ jsxs23("div", { className: "w-full lg:w-2/5 p-8 lg:p-16 flex flex-col justify-center bg-white dark:bg-[#0A0B10] relative transition-colors duration-300", children: [
4383
+ /* @__PURE__ */ jsxs23("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4384
+ backUrl && /* @__PURE__ */ jsxs23(
4365
4385
  "button",
4366
4386
  {
4367
4387
  onClick: () => navigate(backUrl),
@@ -4375,12 +4395,12 @@ var TechLogin = ({
4375
4395
  ),
4376
4396
  /* @__PURE__ */ jsx30(ThemeToggle, {})
4377
4397
  ] }),
4378
- /* @__PURE__ */ jsxs22("div", { className: "max-w-md w-full mx-auto relative z-10", children: [
4379
- /* @__PURE__ */ jsxs22("div", { className: "mb-12", children: [
4398
+ /* @__PURE__ */ jsxs23("div", { className: "max-w-md w-full mx-auto relative z-10", children: [
4399
+ /* @__PURE__ */ jsxs23("div", { className: "mb-12", children: [
4380
4400
  /* @__PURE__ */ jsx30("h2", { className: "text-3xl font-bold text-slate-900 dark:text-white mb-3 tracking-tight", children: title || "Welcome Back" }),
4381
4401
  /* @__PURE__ */ jsx30("p", { className: "text-slate-500 dark:text-slate-400", children: subtitle || "Please enter your credentials to access your dashboard." })
4382
4402
  ] }),
4383
- /* @__PURE__ */ jsxs22(
4403
+ /* @__PURE__ */ jsxs23(
4384
4404
  "form",
4385
4405
  {
4386
4406
  onSubmit: form.handleSubmit((d) => onSubmit(d, form)),
@@ -4425,7 +4445,7 @@ var TechLogin = ({
4425
4445
  }
4426
4446
  ),
4427
4447
  form.formState.errors.root && /* @__PURE__ */ jsx30("p", { className: "text-red-500 text-sm font-medium animate-in fade-in slide-in-from-top-1 duration-200", children: form.formState.errors.root.message }),
4428
- /* @__PURE__ */ jsxs22(
4448
+ /* @__PURE__ */ jsxs23(
4429
4449
  Button,
4430
4450
  {
4431
4451
  type: "submit",
@@ -4455,8 +4475,8 @@ var TravelLogin = ({
4455
4475
  isLoading
4456
4476
  }) => {
4457
4477
  const navigate = useNavigate3();
4458
- return /* @__PURE__ */ jsxs22("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-slate-950 transition-colors", children: [
4459
- /* @__PURE__ */ jsxs22("div", { className: "hidden lg:flex lg:w-1/2 relative overflow-hidden bg-slate-100 border-r border-slate-100", children: [
4478
+ return /* @__PURE__ */ jsxs23("div", { className: "flex h-screen w-full overflow-hidden bg-white dark:bg-slate-950 transition-colors", children: [
4479
+ /* @__PURE__ */ jsxs23("div", { className: "hidden lg:flex lg:w-1/2 relative overflow-hidden bg-slate-100 border-r border-slate-100", children: [
4460
4480
  /* @__PURE__ */ jsx30(
4461
4481
  "div",
4462
4482
  {
@@ -4465,27 +4485,27 @@ var TravelLogin = ({
4465
4485
  }
4466
4486
  ),
4467
4487
  /* @__PURE__ */ jsx30("div", { className: "absolute inset-0 bg-linear-to-br from-orange-500/20 via-transparent to-black/30 z-10" }),
4468
- /* @__PURE__ */ jsxs22("div", { className: "relative z-20 p-16 flex flex-col justify-between w-full h-full text-white", children: [
4469
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-3", children: [
4488
+ /* @__PURE__ */ jsxs23("div", { className: "relative z-20 p-16 flex flex-col justify-between w-full h-full text-white", children: [
4489
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3", children: [
4470
4490
  /* @__PURE__ */ jsx30("div", { className: "h-10 w-10 bg-orange-500 rounded-full flex items-center justify-center shadow-lg", children: /* @__PURE__ */ jsx30(Plane, { className: "text-white w-6 h-6 rotate-45" }) }),
4471
4491
  /* @__PURE__ */ jsx30("span", { className: "text-2xl font-bold tracking-tight", children: brandName || "Wanderlust" })
4472
4492
  ] }),
4473
- /* @__PURE__ */ jsx30("div", { className: "max-w-md", children: /* @__PURE__ */ jsxs22("h1", { className: "text-6xl font-black mb-8 leading-[1.1]", children: [
4493
+ /* @__PURE__ */ jsx30("div", { className: "max-w-md", children: /* @__PURE__ */ jsxs23("h1", { className: "text-6xl font-black mb-8 leading-[1.1]", children: [
4474
4494
  "Your Next ",
4475
4495
  /* @__PURE__ */ jsx30("span", { className: "text-orange-400", children: "Adventure" }),
4476
4496
  " ",
4477
4497
  "Starts Now."
4478
4498
  ] }) }),
4479
- /* @__PURE__ */ jsxs22("div", { className: "text-white/70 text-sm", children: [
4499
+ /* @__PURE__ */ jsxs23("div", { className: "text-white/70 text-sm", children: [
4480
4500
  "Discover the world with ",
4481
4501
  brandName || "Wanderlust",
4482
4502
  "."
4483
4503
  ] })
4484
4504
  ] })
4485
4505
  ] }),
4486
- /* @__PURE__ */ jsxs22("div", { className: "w-full lg:w-1/2 p-10 lg:p-24 flex flex-col justify-center bg-white dark:bg-slate-950 relative transition-colors", children: [
4487
- /* @__PURE__ */ jsxs22("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4488
- backUrl && /* @__PURE__ */ jsxs22(
4506
+ /* @__PURE__ */ jsxs23("div", { className: "w-full lg:w-1/2 p-10 lg:p-24 flex flex-col justify-center bg-white dark:bg-slate-950 relative transition-colors", children: [
4507
+ /* @__PURE__ */ jsxs23("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4508
+ backUrl && /* @__PURE__ */ jsxs23(
4489
4509
  "button",
4490
4510
  {
4491
4511
  onClick: () => navigate(backUrl),
@@ -4499,12 +4519,12 @@ var TravelLogin = ({
4499
4519
  ),
4500
4520
  /* @__PURE__ */ jsx30(ThemeToggle, {})
4501
4521
  ] }),
4502
- /* @__PURE__ */ jsxs22("div", { className: "max-w-md w-full mx-auto relative z-10", children: [
4503
- /* @__PURE__ */ jsxs22("div", { className: "mb-12 text-center lg:text-left", children: [
4522
+ /* @__PURE__ */ jsxs23("div", { className: "max-w-md w-full mx-auto relative z-10", children: [
4523
+ /* @__PURE__ */ jsxs23("div", { className: "mb-12 text-center lg:text-left", children: [
4504
4524
  /* @__PURE__ */ jsx30("h2", { className: "text-4xl font-bold text-slate-900 dark:text-white mb-4 tracking-tight", children: title || "Login to Explore" }),
4505
4525
  /* @__PURE__ */ jsx30("p", { className: "text-slate-500 dark:text-slate-400 text-lg", children: subtitle || "Enter your details to access your travel dashboard." })
4506
4526
  ] }),
4507
- /* @__PURE__ */ jsxs22(
4527
+ /* @__PURE__ */ jsxs23(
4508
4528
  "form",
4509
4529
  {
4510
4530
  onSubmit: form.handleSubmit((d) => onSubmit(d, form)),
@@ -4549,7 +4569,7 @@ var TravelLogin = ({
4549
4569
  }
4550
4570
  ),
4551
4571
  form.formState.errors.root && /* @__PURE__ */ jsx30("p", { className: "text-orange-600 dark:text-orange-400 text-sm font-bold text-center lg:text-left animate-in fade-in slide-in-from-top-1 duration-200", children: form.formState.errors.root.message }),
4552
- /* @__PURE__ */ jsxs22(
4572
+ /* @__PURE__ */ jsxs23(
4553
4573
  Button,
4554
4574
  {
4555
4575
  type: "submit",
@@ -4579,10 +4599,10 @@ var HealthcareLogin = ({
4579
4599
  isLoading
4580
4600
  }) => {
4581
4601
  const navigate = useNavigate3();
4582
- return /* @__PURE__ */ jsxs22("div", { className: "flex h-screen w-full overflow-hidden bg-[#F0F7FF] dark:bg-slate-950 transition-colors", children: [
4583
- /* @__PURE__ */ jsxs22("div", { className: "w-full lg:w-[450px] flex flex-col justify-center bg-white dark:bg-slate-900 shadow-2xl z-30 relative px-10 lg:px-14 transition-colors", children: [
4584
- /* @__PURE__ */ jsxs22("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4585
- backUrl && /* @__PURE__ */ jsxs22(
4602
+ return /* @__PURE__ */ jsxs23("div", { className: "flex h-screen w-full overflow-hidden bg-[#F0F7FF] dark:bg-slate-950 transition-colors", children: [
4603
+ /* @__PURE__ */ jsxs23("div", { className: "w-full lg:w-[450px] flex flex-col justify-center bg-white dark:bg-slate-900 shadow-2xl z-30 relative px-10 lg:px-14 transition-colors", children: [
4604
+ /* @__PURE__ */ jsxs23("div", { className: "absolute top-4 right-4 z-50 flex items-center gap-2", children: [
4605
+ backUrl && /* @__PURE__ */ jsxs23(
4586
4606
  "button",
4587
4607
  {
4588
4608
  onClick: () => navigate(backUrl),
@@ -4596,16 +4616,16 @@ var HealthcareLogin = ({
4596
4616
  ),
4597
4617
  /* @__PURE__ */ jsx30(ThemeToggle, {})
4598
4618
  ] }),
4599
- /* @__PURE__ */ jsxs22("div", { className: "max-w-[340px] w-full mx-auto", children: [
4600
- /* @__PURE__ */ jsxs22("div", { className: "mb-14", children: [
4601
- /* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-3 mb-8", children: [
4619
+ /* @__PURE__ */ jsxs23("div", { className: "max-w-[340px] w-full mx-auto", children: [
4620
+ /* @__PURE__ */ jsxs23("div", { className: "mb-14", children: [
4621
+ /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-3 mb-8", children: [
4602
4622
  /* @__PURE__ */ jsx30("div", { className: "h-12 w-12 bg-blue-600 rounded-xl flex items-center justify-center shadow-md shadow-blue-200 dark:shadow-blue-900/20", children: /* @__PURE__ */ jsx30(HeartPulse, { className: "text-white w-7 h-7" }) }),
4603
4623
  /* @__PURE__ */ jsx30("span", { className: "text-2xl font-bold text-slate-800 dark:text-white tracking-tight", children: brandName || "CarePoint" })
4604
4624
  ] }),
4605
4625
  /* @__PURE__ */ jsx30("h2", { className: "text-3xl font-bold text-slate-800 dark:text-white mb-3 tracking-tight", children: title || "Clinical Login" }),
4606
4626
  /* @__PURE__ */ jsx30("p", { className: "text-slate-500 dark:text-slate-400 font-medium leading-relaxed", children: subtitle || "Secure access for staff and healthcare professionals." })
4607
4627
  ] }),
4608
- /* @__PURE__ */ jsxs22(
4628
+ /* @__PURE__ */ jsxs23(
4609
4629
  "form",
4610
4630
  {
4611
4631
  onSubmit: form.handleSubmit((d) => onSubmit(d, form)),
@@ -4638,7 +4658,7 @@ var HealthcareLogin = ({
4638
4658
  }
4639
4659
  ),
4640
4660
  form.formState.errors.root && /* @__PURE__ */ jsx30("p", { className: "text-red-600 dark:text-red-400 text-sm font-bold animate-in fade-in slide-in-from-top-1 duration-200", children: form.formState.errors.root.message }),
4641
- /* @__PURE__ */ jsxs22(
4661
+ /* @__PURE__ */ jsxs23(
4642
4662
  Button,
4643
4663
  {
4644
4664
  type: "submit",
@@ -4655,7 +4675,7 @@ var HealthcareLogin = ({
4655
4675
  )
4656
4676
  ] })
4657
4677
  ] }),
4658
- /* @__PURE__ */ jsxs22("div", { className: "hidden lg:flex flex-1 relative overflow-hidden bg-slate-900", children: [
4678
+ /* @__PURE__ */ jsxs23("div", { className: "hidden lg:flex flex-1 relative overflow-hidden bg-slate-900", children: [
4659
4679
  /* @__PURE__ */ jsx30(
4660
4680
  "div",
4661
4681
  {
@@ -4664,7 +4684,7 @@ var HealthcareLogin = ({
4664
4684
  }
4665
4685
  ),
4666
4686
  /* @__PURE__ */ jsx30("div", { className: "absolute inset-0 bg-linear-to-l from-transparent via-blue-900/10 to-blue-900/40 z-10" }),
4667
- /* @__PURE__ */ jsx30("div", { className: "relative z-20 p-20 flex flex-col items-center justify-center w-full h-full text-center", children: /* @__PURE__ */ jsx30("div", { className: "max-w-2xl bg-white/20 backdrop-blur-xl border border-white/30 p-12 rounded-[40px] shadow-2xl", children: /* @__PURE__ */ jsxs22("h1", { className: "text-5xl font-black text-white mb-6 leading-tight drop-shadow-sm", children: [
4687
+ /* @__PURE__ */ jsx30("div", { className: "relative z-20 p-20 flex flex-col items-center justify-center w-full h-full text-center", children: /* @__PURE__ */ jsx30("div", { className: "max-w-2xl bg-white/20 backdrop-blur-xl border border-white/30 p-12 rounded-[40px] shadow-2xl", children: /* @__PURE__ */ jsxs23("h1", { className: "text-5xl font-black text-white mb-6 leading-tight drop-shadow-sm", children: [
4668
4688
  "Next-Gen ",
4669
4689
  /* @__PURE__ */ jsx30("br", {}),
4670
4690
  /* @__PURE__ */ jsx30("span", { className: "text-blue-100", children: "Patient Management" })
@@ -4733,7 +4753,7 @@ import { useState as useState18 } from "react";
4733
4753
  // src/components/Dropdown.tsx
4734
4754
  import { useState as useState17, useRef as useRef6, useEffect as useEffect11, useLayoutEffect } from "react";
4735
4755
  import { createPortal as createPortal3 } from "react-dom";
4736
- import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
4756
+ import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
4737
4757
  var Dropdown = ({
4738
4758
  children,
4739
4759
  items,
@@ -4808,7 +4828,7 @@ var Dropdown = ({
4808
4828
  setIsOpen(false);
4809
4829
  }
4810
4830
  };
4811
- return /* @__PURE__ */ jsxs23(
4831
+ return /* @__PURE__ */ jsxs24(
4812
4832
  "div",
4813
4833
  {
4814
4834
  ref: triggerRef,
@@ -4849,7 +4869,7 @@ var Dropdown = ({
4849
4869
  children: /* @__PURE__ */ jsx32("div", { className: "rounded-2xl bg-white dark:bg-gray-900 shadow-2xl ring-1 ring-black/5 dark:ring-white/10 overflow-hidden", children: /* @__PURE__ */ jsx32("div", { className: "py-2", children: items.map((item, index) => {
4850
4870
  const isLoading = loadingItems[index];
4851
4871
  const isDanger = item.variant === "danger";
4852
- return /* @__PURE__ */ jsxs23(
4872
+ return /* @__PURE__ */ jsxs24(
4853
4873
  "button",
4854
4874
  {
4855
4875
  onClick: () => handleItemClick(item, index),
@@ -4857,7 +4877,10 @@ var Dropdown = ({
4857
4877
  className: cn(
4858
4878
  "flex w-full items-center gap-3 px-4 py-3 text-sm transition-all duration-150",
4859
4879
  isDanger ? "text-red-600 dark:text-red-400" : "text-gray-700 dark:text-gray-200",
4860
- !item.disabled && !isLoading ? isDanger ? "hover:bg-red-50 dark:hover:bg-red-900/10 active:bg-red-100 dark:active:bg-red-900/20" : "hover:bg-blue-50/50 dark:hover:bg-blue-900/10 active:bg-blue-100 dark:active:bg-blue-900/20" : "opacity-40 cursor-not-allowed grayscale",
4880
+ !item.disabled && !isLoading ? cn(
4881
+ "cursor-pointer",
4882
+ isDanger ? "hover:bg-red-50 dark:hover:bg-red-900/10 active:bg-red-100 dark:active:bg-red-900/20" : "hover:bg-blue-50/50 dark:hover:bg-blue-900/10 active:bg-blue-100 dark:active:bg-blue-900/20"
4883
+ ) : "opacity-40 cursor-not-allowed grayscale",
4861
4884
  item.className
4862
4885
  ),
4863
4886
  children: [
@@ -4886,7 +4909,7 @@ var Dropdown = ({
4886
4909
  };
4887
4910
 
4888
4911
  // src/components/ProfileDropdown.tsx
4889
- import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
4912
+ import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
4890
4913
  var ProfileDropdown = ({
4891
4914
  name,
4892
4915
  image,
@@ -4929,7 +4952,7 @@ var ProfileDropdown = ({
4929
4952
  triggerMode,
4930
4953
  onOpenChange: setIsOpen,
4931
4954
  className,
4932
- children: /* @__PURE__ */ jsxs24(
4955
+ children: /* @__PURE__ */ jsxs25(
4933
4956
  "div",
4934
4957
  {
4935
4958
  className: cn(
@@ -4963,7 +4986,7 @@ var ProfileDropdown = ({
4963
4986
  )
4964
4987
  }
4965
4988
  ),
4966
- /* @__PURE__ */ jsxs24("div", { className: "flex flex-col items-start mr-1 min-w-[80px]", children: [
4989
+ /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-start mr-1 min-w-[80px]", children: [
4967
4990
  /* @__PURE__ */ jsx33(
4968
4991
  "span",
4969
4992
  {
@@ -5024,7 +5047,7 @@ import {
5024
5047
  ChevronLeft,
5025
5048
  ChevronRight as ChevronRight2
5026
5049
  } from "lucide-react";
5027
- import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
5050
+ import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
5028
5051
  var useA4StatementView = ({
5029
5052
  url,
5030
5053
  v = 1,
@@ -5095,14 +5118,14 @@ var useA4StatementView = ({
5095
5118
  const columnsWithFooters = columns.filter(
5096
5119
  (col) => col.renderFooter && !col.hide
5097
5120
  );
5098
- const DisplayFinalTotalEl = columnsWithFooters.length > 0 ? /* @__PURE__ */ jsxs25(
5121
+ const DisplayFinalTotalEl = columnsWithFooters.length > 0 ? /* @__PURE__ */ jsxs26(
5099
5122
  "div",
5100
5123
  {
5101
5124
  id: "a4-final-total",
5102
5125
  className: "mt-6 flex flex-wrap justify-end items-center pt-4 border-t border-black dark:border-zinc-700 print:border-black gap-4",
5103
5126
  children: [
5104
5127
  /* @__PURE__ */ jsx34("div", { className: "text-black dark:text-white print:text-black font-bold uppercase tracking-widest text-xs mr-auto", children: "Grand Totals" }),
5105
- columnsWithFooters.map((col, idx) => /* @__PURE__ */ jsxs25(
5128
+ columnsWithFooters.map((col, idx) => /* @__PURE__ */ jsxs26(
5106
5129
  "div",
5107
5130
  {
5108
5131
  className: "flex items-center gap-3 px-4 py-2 rounded-md border border-black dark:border-zinc-700 print:border-black",
@@ -5195,19 +5218,19 @@ var useA4StatementView = ({
5195
5218
  }, 150);
5196
5219
  return () => clearTimeout(timer);
5197
5220
  }, [isMeasuring, depsString]);
5198
- const HeaderEl = /* @__PURE__ */ jsxs25(
5221
+ const HeaderEl = /* @__PURE__ */ jsxs26(
5199
5222
  "div",
5200
5223
  {
5201
5224
  className: "flex justify-between items-start mb-5 px-8 pt-8",
5202
5225
  id: "a4-header-section",
5203
5226
  children: [
5204
- /* @__PURE__ */ jsx34("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx34("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ jsxs25("section", { children: [
5227
+ /* @__PURE__ */ jsx34("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx34("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ jsxs26("section", { children: [
5205
5228
  /* @__PURE__ */ jsx34("h1", { className: "text-4xl font-bold text-blue-600 dark:text-blue-500 print:text-blue-600 tracking-tight uppercase", children: title }),
5206
5229
  /* @__PURE__ */ jsx34("p", { className: "text-gray-500 dark:text-gray-400 print:text-gray-500 mt-1 uppercase text-xs font-semibold tracking-wider", children: subtitle })
5207
5230
  ] }) }) }),
5208
- /* @__PURE__ */ jsxs25("div", { className: "text-right", children: [
5231
+ /* @__PURE__ */ jsxs26("div", { className: "text-right", children: [
5209
5232
  /* @__PURE__ */ jsx34("h2", { className: "text-lg font-bold text-gray-800 dark:text-gray-100 print:text-gray-800", children: store?.name }),
5210
- /* @__PURE__ */ jsxs25("div", { className: "text-sm text-gray-500 dark:text-gray-400 print:text-gray-500 leading-relaxed text-right flex flex-col items-end", children: [
5233
+ /* @__PURE__ */ jsxs26("div", { className: "text-sm text-gray-500 dark:text-gray-400 print:text-gray-500 leading-relaxed text-right flex flex-col items-end", children: [
5211
5234
  store?.address && /* @__PURE__ */ jsx34("span", { className: "whitespace-pre-line", children: store.address }),
5212
5235
  store?.phone && /* @__PURE__ */ jsx34("span", { children: store.phone }),
5213
5236
  store?.email && /* @__PURE__ */ jsx34("span", { children: store.email })
@@ -5224,11 +5247,11 @@ var useA4StatementView = ({
5224
5247
  isLoading: isActuallyLoading
5225
5248
  }
5226
5249
  ) }) : null;
5227
- const statusOverlay = isActuallyLoading || error || !data || data.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "flex flex-col relative w-full items-center justify-center py-12 min-h-[400px]", children: /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5250
+ const statusOverlay = isActuallyLoading || error || !data || data.length === 0 ? /* @__PURE__ */ jsx34("div", { className: "flex flex-col relative w-full items-center justify-center py-12 min-h-[400px]", children: /* @__PURE__ */ jsxs26("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5228
5251
  isActuallyLoading ? /* @__PURE__ */ jsx34("div", { className: "mb-4", children: /* @__PURE__ */ jsx34(ClassicSpin, {}) }) : error ? /* @__PURE__ */ jsx34("div", { className: "w-14 h-14 bg-red-100 dark:bg-red-500/10 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx34(AlertCircle, { className: "w-7 h-7 text-red-600 dark:text-red-500" }) }) : /* @__PURE__ */ jsx34("div", { className: "w-14 h-14 bg-gray-200 dark:bg-zinc-800 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx34(FileX, { className: "w-7 h-7 text-gray-500 dark:text-gray-400" }) }),
5229
5252
  /* @__PURE__ */ jsx34("h3", { className: "text-lg font-bold text-gray-900 dark:text-white mb-2", children: isActuallyLoading ? "Loading data..." : error ? "Failed to Load Statement" : "No Records Found" }),
5230
5253
  /* @__PURE__ */ jsx34("p", { className: "text-sm text-gray-500 dark:text-gray-400 max-w-xs mb-6 leading-relaxed", children: isActuallyLoading ? "Please wait while we prepare your statement." : error ? typeof error === "string" ? error : "An unexpected error occurred while fetching the statement data." : "There are no transactions or records available in this requested statement." }),
5231
- url && !isActuallyLoading && /* @__PURE__ */ jsxs25(
5254
+ url && !isActuallyLoading && /* @__PURE__ */ jsxs26(
5232
5255
  "button",
5233
5256
  {
5234
5257
  onClick: () => getData(),
@@ -5240,13 +5263,13 @@ var useA4StatementView = ({
5240
5263
  }
5241
5264
  )
5242
5265
  ] }) }) : null;
5243
- return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col relative w-full items-center", children: [
5266
+ return /* @__PURE__ */ jsxs26("div", { className: "flex flex-col relative w-full items-center", children: [
5244
5267
  isMeasuring && filteredDisplayData.length > 0 && /* @__PURE__ */ jsx34("div", { className: "absolute top-0 opacity-0 pointer-events-none -left-full", children: /* @__PURE__ */ jsx34(
5245
5268
  "div",
5246
5269
  {
5247
5270
  style: { width: "210mm", boxSizing: "border-box" },
5248
5271
  className: "bg-white",
5249
- children: /* @__PURE__ */ jsxs25(
5272
+ children: /* @__PURE__ */ jsxs26(
5250
5273
  "div",
5251
5274
  {
5252
5275
  ref: measureContainerRef,
@@ -5254,7 +5277,7 @@ var useA4StatementView = ({
5254
5277
  children: [
5255
5278
  HeaderEl,
5256
5279
  DisplayInfoGridEl,
5257
- /* @__PURE__ */ jsxs25("div", { className: "grow w-full px-8 pb-8", children: [
5280
+ /* @__PURE__ */ jsxs26("div", { className: "grow w-full px-8 pb-8", children: [
5258
5281
  /* @__PURE__ */ jsx34("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-800 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2", children: /* @__PURE__ */ jsx34("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: tableTitle }) }),
5259
5282
  /* @__PURE__ */ jsx34(
5260
5283
  SimpleTable,
@@ -5285,11 +5308,11 @@ var useA4StatementView = ({
5285
5308
  pageNumber: pageIndex + 1,
5286
5309
  totalPages: pages.length,
5287
5310
  isLastPage: pageIndex === pages.length - 1,
5288
- children: /* @__PURE__ */ jsxs25("div", { className: "flex flex-col h-full grow w-full", children: [
5289
- /* @__PURE__ */ jsxs25("header", { className: "flex justify-between gap-2 items-center px-8 pt-4 print:hidden", children: [
5311
+ children: /* @__PURE__ */ jsxs26("div", { className: "flex flex-col h-full grow w-full", children: [
5312
+ /* @__PURE__ */ jsxs26("header", { className: "flex justify-between gap-2 items-center px-8 pt-4 print:hidden", children: [
5290
5313
  headers,
5291
- printable && pageIndex === currentPageIndex && /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-end ", children: /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
5292
- /* @__PURE__ */ jsxs25(
5314
+ printable && pageIndex === currentPageIndex && /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-end ", children: /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2", children: [
5315
+ /* @__PURE__ */ jsxs26(
5293
5316
  "button",
5294
5317
  {
5295
5318
  onClick: async () => await getData(),
@@ -5307,7 +5330,7 @@ var useA4StatementView = ({
5307
5330
  ]
5308
5331
  }
5309
5332
  ),
5310
- /* @__PURE__ */ jsxs25(
5333
+ /* @__PURE__ */ jsxs26(
5311
5334
  "button",
5312
5335
  {
5313
5336
  onClick: () => reactToPrintFn(),
@@ -5318,7 +5341,7 @@ var useA4StatementView = ({
5318
5341
  ]
5319
5342
  }
5320
5343
  ),
5321
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1.5 ml-2 pl-2 border-l border-gray-200 dark:border-zinc-700", children: [
5344
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1.5 ml-2 pl-2 border-l border-gray-200 dark:border-zinc-700", children: [
5322
5345
  /* @__PURE__ */ jsx34(
5323
5346
  "button",
5324
5347
  {
@@ -5333,8 +5356,8 @@ var useA4StatementView = ({
5333
5356
  children: /* @__PURE__ */ jsx34(ChevronLeft, { size: 18 })
5334
5357
  }
5335
5358
  ),
5336
- /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
5337
- /* @__PURE__ */ jsxs25(
5359
+ /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
5360
+ /* @__PURE__ */ jsxs26(
5338
5361
  Select,
5339
5362
  {
5340
5363
  value: currentPageIndex + 1,
@@ -5348,7 +5371,7 @@ var useA4StatementView = ({
5348
5371
  containerClassName: "inline-block",
5349
5372
  children: [
5350
5373
  /* @__PURE__ */ jsx34(SelectTrigger, { className: "h-7 px-2 min-w-[40px] border border-gray-200 dark:border-zinc-700 rounded flex items-center justify-center bg-white dark:bg-zinc-900 hover:bg-gray-100 dark:hover:bg-zinc-800 transition-colors", children: /* @__PURE__ */ jsx34("span", { className: "text-gray-900 dark:text-white", children: currentPageIndex + 1 }) }),
5351
- /* @__PURE__ */ jsxs25(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
5374
+ /* @__PURE__ */ jsxs26(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
5352
5375
  /* @__PURE__ */ jsx34("div", { className: "p-2 border-b border-gray-100 dark:border-zinc-800 sticky top-0 bg-white dark:bg-zinc-950 z-10", children: /* @__PURE__ */ jsx34(
5353
5376
  "input",
5354
5377
  {
@@ -5390,8 +5413,8 @@ var useA4StatementView = ({
5390
5413
  ] }),
5391
5414
  pageIndex === 0 && HeaderEl,
5392
5415
  pageIndex === 0 && DisplayInfoGridEl,
5393
- /* @__PURE__ */ jsxs25("div", { className: "grow w-full px-8 pb-8", children: [
5394
- pageIndex === 0 && /* @__PURE__ */ jsxs25("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-700 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2 print:hidden", children: [
5416
+ /* @__PURE__ */ jsxs26("div", { className: "grow w-full px-8 pb-8", children: [
5417
+ pageIndex === 0 && /* @__PURE__ */ jsxs26("div", { className: "mb-4 border-b border-gray-200 dark:border-zinc-700 print:border-gray-200 pb-2 flex items-center gap-2 justify-between px-2 mt-2 print:hidden", children: [
5395
5418
  /* @__PURE__ */ jsx34("h3", { className: "text-sm font-bold text-gray-800 dark:text-gray-100 print:text-gray-800 uppercase tracking-wide shrink-0", children: tableTitle }),
5396
5419
  /* @__PURE__ */ jsx34(
5397
5420
  "input",
@@ -5452,7 +5475,7 @@ import {
5452
5475
  ChevronLeft as ChevronLeft2,
5453
5476
  ChevronRight as ChevronRight3
5454
5477
  } from "lucide-react";
5455
- import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
5478
+ import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
5456
5479
  var useA4CategoryView = ({
5457
5480
  url,
5458
5481
  v = 1,
@@ -5577,19 +5600,19 @@ var useA4CategoryView = ({
5577
5600
  }, 150);
5578
5601
  return () => clearTimeout(timer);
5579
5602
  }, [isMeasuring, depsString]);
5580
- const HeaderEl = /* @__PURE__ */ jsxs26(
5603
+ const HeaderEl = /* @__PURE__ */ jsxs27(
5581
5604
  "div",
5582
5605
  {
5583
5606
  className: "flex justify-between items-start mb-5 px-8 pt-8",
5584
5607
  id: "a4-header-section",
5585
5608
  children: [
5586
- /* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx35("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ jsxs26("section", { children: [
5609
+ /* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx35("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ jsxs27("section", { children: [
5587
5610
  /* @__PURE__ */ jsx35("h1", { className: "text-4xl font-black text-black dark:text-white print:text-black tracking-tighter uppercase", children: title }),
5588
5611
  /* @__PURE__ */ jsx35("p", { className: "text-gray-600 dark:text-gray-400 print:text-gray-600 mt-1 uppercase text-xs font-bold tracking-widest", children: subtitle })
5589
5612
  ] }) }) }),
5590
- /* @__PURE__ */ jsxs26("div", { className: "text-right", children: [
5613
+ /* @__PURE__ */ jsxs27("div", { className: "text-right", children: [
5591
5614
  /* @__PURE__ */ jsx35("h2", { className: "text-lg font-black text-black dark:text-white print:text-black uppercase tracking-tight", children: store?.name }),
5592
- /* @__PURE__ */ jsxs26("div", { className: "text-sm text-gray-600 dark:text-gray-400 print:text-gray-600 leading-relaxed text-right flex flex-col items-end font-medium", children: [
5615
+ /* @__PURE__ */ jsxs27("div", { className: "text-sm text-gray-600 dark:text-gray-400 print:text-gray-600 leading-relaxed text-right flex flex-col items-end font-medium", children: [
5593
5616
  store?.address && /* @__PURE__ */ jsx35("span", { className: "whitespace-pre-line", children: store.address }),
5594
5617
  store?.phone && /* @__PURE__ */ jsx35("span", { children: store.phone }),
5595
5618
  store?.email && /* @__PURE__ */ jsx35("span", { children: store.email })
@@ -5619,11 +5642,11 @@ var useA4CategoryView = ({
5619
5642
  }
5620
5643
  );
5621
5644
  };
5622
- const statusOverlay = isActuallyLoading || error || flattenedNodes.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "flex flex-col relative w-full items-center justify-center py-12 min-h-[400px]", children: /* @__PURE__ */ jsxs26("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5645
+ const statusOverlay = isActuallyLoading || error || flattenedNodes.length === 0 ? /* @__PURE__ */ jsx35("div", { className: "flex flex-col relative w-full items-center justify-center py-12 min-h-[400px]", children: /* @__PURE__ */ jsxs27("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5623
5646
  isActuallyLoading ? /* @__PURE__ */ jsx35("div", { className: "mb-4", children: /* @__PURE__ */ jsx35(ClassicSpin, {}) }) : error ? /* @__PURE__ */ jsx35("div", { className: "w-14 h-14 bg-red-100 dark:bg-red-500/10 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx35(AlertCircle2, { className: "w-7 h-7 text-red-600 dark:text-red-500" }) }) : /* @__PURE__ */ jsx35("div", { className: "w-14 h-14 bg-gray-200 dark:bg-zinc-800 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx35(FileX2, { className: "w-7 h-7 text-gray-500 dark:text-gray-400" }) }),
5624
5647
  /* @__PURE__ */ jsx35("h3", { className: "text-lg font-bold text-gray-900 dark:text-white mb-2", children: isActuallyLoading ? "Loading data..." : error ? "Failed to Load Report" : "No Records Found" }),
5625
5648
  /* @__PURE__ */ jsx35("p", { className: "text-sm text-gray-500 dark:text-gray-400 max-w-xs mb-6 leading-relaxed", children: isActuallyLoading ? "Please wait while we prepare your report." : error ? typeof error === "string" ? error : "An unexpected error occurred while fetching the data." : "There are no items available in this requested report." }),
5626
- url && !isActuallyLoading && /* @__PURE__ */ jsxs26(
5649
+ url && !isActuallyLoading && /* @__PURE__ */ jsxs27(
5627
5650
  "button",
5628
5651
  {
5629
5652
  onClick: () => getData(),
@@ -5635,13 +5658,13 @@ var useA4CategoryView = ({
5635
5658
  }
5636
5659
  )
5637
5660
  ] }) }) : null;
5638
- return /* @__PURE__ */ jsxs26("div", { className: "flex flex-col relative w-full items-center", children: [
5661
+ return /* @__PURE__ */ jsxs27("div", { className: "flex flex-col relative w-full items-center", children: [
5639
5662
  isMeasuring && flattenedNodes.length > 0 && /* @__PURE__ */ jsx35("div", { className: "absolute top-0 opacity-0 pointer-events-none -left-full", children: /* @__PURE__ */ jsx35(
5640
5663
  "div",
5641
5664
  {
5642
5665
  style: { width: "210mm", boxSizing: "border-box" },
5643
5666
  className: "bg-white",
5644
- children: /* @__PURE__ */ jsxs26(
5667
+ children: /* @__PURE__ */ jsxs27(
5645
5668
  "div",
5646
5669
  {
5647
5670
  ref: measureContainerRef,
@@ -5666,9 +5689,9 @@ var useA4CategoryView = ({
5666
5689
  pageNumber: pageIndex + 1,
5667
5690
  totalPages: pages.length,
5668
5691
  isLastPage: pageIndex === pages.length - 1,
5669
- children: /* @__PURE__ */ jsxs26("div", { className: "flex flex-col h-full grow w-full", children: [
5670
- /* @__PURE__ */ jsx35("header", { className: "flex justify-between gap-2 items-center px-8 pt-4 print:hidden", children: printable && pageIndex === currentPageIndex && /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-2", children: [
5671
- /* @__PURE__ */ jsxs26(
5692
+ children: /* @__PURE__ */ jsxs27("div", { className: "flex flex-col h-full grow w-full", children: [
5693
+ /* @__PURE__ */ jsx35("header", { className: "flex justify-between gap-2 items-center px-8 pt-4 print:hidden", children: printable && pageIndex === currentPageIndex && /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2", children: [
5694
+ /* @__PURE__ */ jsxs27(
5672
5695
  "button",
5673
5696
  {
5674
5697
  onClick: async () => await getData(),
@@ -5686,7 +5709,7 @@ var useA4CategoryView = ({
5686
5709
  ]
5687
5710
  }
5688
5711
  ),
5689
- /* @__PURE__ */ jsxs26(
5712
+ /* @__PURE__ */ jsxs27(
5690
5713
  "button",
5691
5714
  {
5692
5715
  onClick: () => reactToPrintFn(),
@@ -5697,7 +5720,7 @@ var useA4CategoryView = ({
5697
5720
  ]
5698
5721
  }
5699
5722
  ),
5700
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1.5 ml-2 pl-2 border-l border-gray-200 dark:border-zinc-700", children: [
5723
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1.5 ml-2 pl-2 border-l border-gray-200 dark:border-zinc-700", children: [
5701
5724
  /* @__PURE__ */ jsx35(
5702
5725
  "button",
5703
5726
  {
@@ -5712,8 +5735,8 @@ var useA4CategoryView = ({
5712
5735
  children: /* @__PURE__ */ jsx35(ChevronLeft2, { size: 18 })
5713
5736
  }
5714
5737
  ),
5715
- /* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
5716
- /* @__PURE__ */ jsxs26(
5738
+ /* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
5739
+ /* @__PURE__ */ jsxs27(
5717
5740
  Select,
5718
5741
  {
5719
5742
  value: currentPageIndex + 1,
@@ -5727,7 +5750,7 @@ var useA4CategoryView = ({
5727
5750
  containerClassName: "inline-block",
5728
5751
  children: [
5729
5752
  /* @__PURE__ */ jsx35(SelectTrigger, { className: "h-7 px-2 min-w-[40px] border border-gray-200 dark:border-zinc-700 rounded flex items-center justify-center bg-white dark:bg-zinc-900 hover:bg-gray-100 dark:hover:bg-zinc-800 transition-colors", children: /* @__PURE__ */ jsx35("span", { className: "text-gray-900 dark:text-white", children: currentPageIndex + 1 }) }),
5730
- /* @__PURE__ */ jsxs26(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
5753
+ /* @__PURE__ */ jsxs27(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
5731
5754
  /* @__PURE__ */ jsx35("div", { className: "p-2 border-b border-gray-100 dark:border-zinc-800 sticky top-0 bg-white dark:bg-zinc-950 z-10", children: /* @__PURE__ */ jsx35(
5732
5755
  "input",
5733
5756
  {
@@ -5768,7 +5791,7 @@ var useA4CategoryView = ({
5768
5791
  ] }) }) }),
5769
5792
  pageIndex === 0 && HeaderEl,
5770
5793
  pageIndex === 0 && DisplayInfoGridEl,
5771
- /* @__PURE__ */ jsxs26("div", { className: "grow w-full px-8 pb-8", children: [
5794
+ /* @__PURE__ */ jsxs27("div", { className: "grow w-full px-8 pb-8", children: [
5772
5795
  pageIndex === 0 && /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-end px-2 mt-2 print:hidden mb-4", children: /* @__PURE__ */ jsx35(
5773
5796
  "input",
5774
5797
  {
@@ -5805,7 +5828,7 @@ var useA4CategoryView_default = useA4CategoryView;
5805
5828
  import { useEffect as useEffect14, useState as useState21 } from "react";
5806
5829
  import { AlertCircle as AlertCircle3, FileX as FileX3, Plus as Plus2, RefreshCw as RefreshCw3 } from "lucide-react";
5807
5830
  import moment from "moment";
5808
- import { jsx as jsx36, jsxs as jsxs27 } from "react/jsx-runtime";
5831
+ import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
5809
5832
  var useTransaction = ({
5810
5833
  url,
5811
5834
  v = 1,
@@ -5862,11 +5885,11 @@ var useTransaction = ({
5862
5885
  "div",
5863
5886
  {
5864
5887
  className: `flex flex-col relative w-full items-center justify-center py-12 min-h-[300px] ${className}`,
5865
- children: /* @__PURE__ */ jsxs27("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5888
+ children: /* @__PURE__ */ jsxs28("div", { className: "flex flex-col items-center justify-center p-8 bg-gray-50/50 dark:bg-zinc-900/30 rounded-2xl border border-dashed border-gray-300 dark:border-zinc-700 w-full max-w-lg text-center shadow-sm", children: [
5866
5889
  error ? /* @__PURE__ */ jsx36("div", { className: "w-14 h-14 bg-red-100 dark:bg-red-500/10 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx36(AlertCircle3, { className: "w-7 h-7 text-red-600 dark:text-red-500" }) }) : /* @__PURE__ */ jsx36("div", { className: "w-14 h-14 bg-gray-200 dark:bg-zinc-800 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ jsx36(FileX3, { className: "w-7 h-7 text-gray-500 dark:text-gray-400" }) }),
5867
5890
  /* @__PURE__ */ jsx36("h3", { className: "text-lg font-bold text-gray-900 dark:text-white mb-2", children: error ? "Failed to Load Data" : "No Records Found" }),
5868
5891
  /* @__PURE__ */ jsx36("p", { className: "text-sm text-gray-500 dark:text-gray-400 max-w-xs mb-6 leading-relaxed", children: error ? typeof error === "string" ? error : "An unexpected error occurred while fetching the data." : "There are no transactions or records available to display here." }),
5869
- url && /* @__PURE__ */ jsxs27(
5892
+ url && /* @__PURE__ */ jsxs28(
5870
5893
  "button",
5871
5894
  {
5872
5895
  onClick: () => getData(),
@@ -5880,13 +5903,13 @@ var useTransaction = ({
5880
5903
  ] })
5881
5904
  }
5882
5905
  ) : void 0;
5883
- return /* @__PURE__ */ jsxs27(Card, { children: [
5884
- /* @__PURE__ */ jsx36(Card.Header, { children: /* @__PURE__ */ jsxs27("header", { className: "flex items-center justify-between gap-4 py-2", children: [
5885
- /* @__PURE__ */ jsxs27("div", { className: "space-y-1", children: [
5906
+ return /* @__PURE__ */ jsxs28(Card, { children: [
5907
+ /* @__PURE__ */ jsx36(Card.Header, { children: /* @__PURE__ */ jsxs28("header", { className: "flex items-center justify-between gap-4 py-2", children: [
5908
+ /* @__PURE__ */ jsxs28("div", { className: "space-y-1", children: [
5886
5909
  /* @__PURE__ */ jsx36(Card.Title, { children: title }),
5887
5910
  /* @__PURE__ */ jsx36(Card.Description, { children: description })
5888
5911
  ] }),
5889
- /* @__PURE__ */ jsxs27("section", { className: "flex gap-2 items-center", children: [
5912
+ /* @__PURE__ */ jsxs28("section", { className: "flex gap-2 items-center", children: [
5890
5913
  dateFilter && /* @__PURE__ */ jsx36(
5891
5914
  Fields_default.DateInput,
5892
5915
  {
@@ -7501,7 +7524,7 @@ var PlusOutlined_default2 = RefIcon;
7501
7524
 
7502
7525
  // src/hooks/uploads/useAntdImageUpload.tsx
7503
7526
  import { Image, Upload } from "antd";
7504
- import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs28 } from "react/jsx-runtime";
7527
+ import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
7505
7528
  var getBase64 = (file) => new Promise((resolve, reject) => {
7506
7529
  const reader = new FileReader();
7507
7530
  reader.readAsDataURL(file);
@@ -7528,7 +7551,7 @@ var useAntdImageUpload = ({ length = 1 }) => {
7528
7551
  }))
7529
7552
  );
7530
7553
  };
7531
- const ImageBox = () => /* @__PURE__ */ jsxs28(Fragment7, { children: [
7554
+ const ImageBox = () => /* @__PURE__ */ jsxs29(Fragment7, { children: [
7532
7555
  /* @__PURE__ */ jsx37(
7533
7556
  Upload,
7534
7557
  {
@@ -7537,7 +7560,7 @@ var useAntdImageUpload = ({ length = 1 }) => {
7537
7560
  onPreview: handlePreview,
7538
7561
  onChange: handleChange,
7539
7562
  beforeUpload: () => false,
7540
- children: fileList.length >= length ? null : /* @__PURE__ */ jsxs28("button", { style: { border: 0, background: "none" }, type: "button", children: [
7563
+ children: fileList.length >= length ? null : /* @__PURE__ */ jsxs29("button", { style: { border: 0, background: "none" }, type: "button", children: [
7541
7564
  /* @__PURE__ */ jsx37(PlusOutlined_default2, {}),
7542
7565
  /* @__PURE__ */ jsx37("div", { style: { marginTop: 8 }, children: "Upload" })
7543
7566
  ] })
@@ -7561,9 +7584,9 @@ var useAntdImageUpload = ({ length = 1 }) => {
7561
7584
  var useAntdImageUpload_default = useAntdImageUpload;
7562
7585
 
7563
7586
  // src/components/Views/CategoryView.tsx
7564
- import { jsx as jsx38, jsxs as jsxs29 } from "react/jsx-runtime";
7587
+ import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
7565
7588
  var CategoryCard = ({ item }) => {
7566
- return /* @__PURE__ */ jsxs29("div", { className: "group bg-white rounded-md overflow-hidden border border-black/80 flex flex-col h-full print:border-black transition-all duration-300", children: [
7589
+ return /* @__PURE__ */ jsxs30("div", { className: "group bg-white rounded-md overflow-hidden border border-black/80 flex flex-col h-full print:border-black transition-all duration-300", children: [
7567
7590
  /* @__PURE__ */ jsx38("div", { className: "relative aspect-square w-full overflow-hidden bg-gray-50 flex-shrink-0 border-b border-black/10", children: /* @__PURE__ */ jsx38(
7568
7591
  "img",
7569
7592
  {
@@ -7580,8 +7603,8 @@ var CategoryView = ({
7580
7603
  items,
7581
7604
  className
7582
7605
  }) => {
7583
- return /* @__PURE__ */ jsx38("div", { className: cn("p-6 bg-gray-50 min-h-full", className), children: /* @__PURE__ */ jsxs29("div", { className: "max-w-7xl mx-auto", children: [
7584
- /* @__PURE__ */ jsxs29("div", { className: "mb-8", children: [
7606
+ return /* @__PURE__ */ jsx38("div", { className: cn("p-6 bg-gray-50 min-h-full", className), children: /* @__PURE__ */ jsxs30("div", { className: "max-w-7xl mx-auto", children: [
7607
+ /* @__PURE__ */ jsxs30("div", { className: "mb-8", children: [
7585
7608
  /* @__PURE__ */ jsx38("h2", { className: "text-2xl md:text-3xl font-bold text-gray-900 tracking-tight", children: categoryName }),
7586
7609
  /* @__PURE__ */ jsx38("div", { className: "mt-2 h-1.5 w-16 bg-green-500 rounded-full" })
7587
7610
  ] }),