warqadui 0.0.63 → 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.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +23 -3
- package/dist/index.mjs +213 -193
- package/dist/styles.js +61 -0
- package/dist/styles.mjs +61 -0
- package/package.json +1 -1
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
1011
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
1308
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
1822
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
2806
|
-
label && /* @__PURE__ */
|
|
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
|
|
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__ */
|
|
3003
|
-
filterables && /* @__PURE__ */
|
|
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__ */
|
|
3015
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
3135
|
-
/* @__PURE__ */ jsx23("div", { className: "flex-1 text-xs text-gray-500", children: selectable && /* @__PURE__ */
|
|
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__ */
|
|
3143
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
3939
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
4135
|
-
/* @__PURE__ */
|
|
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__ */
|
|
4147
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
4238
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
4250
|
-
/* @__PURE__ */
|
|
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__ */
|
|
4255
|
-
role && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
4333
|
-
/* @__PURE__ */
|
|
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__ */
|
|
4343
|
-
/* @__PURE__ */
|
|
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__ */
|
|
4348
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
4363
|
-
/* @__PURE__ */
|
|
4364
|
-
backUrl && /* @__PURE__ */
|
|
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__ */
|
|
4379
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
4459
|
-
/* @__PURE__ */
|
|
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__ */
|
|
4469
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4488
|
-
backUrl && /* @__PURE__ */
|
|
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__ */
|
|
4503
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
4583
|
-
/* @__PURE__ */
|
|
4584
|
-
/* @__PURE__ */
|
|
4585
|
-
backUrl && /* @__PURE__ */
|
|
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__ */
|
|
4600
|
-
/* @__PURE__ */
|
|
4601
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
4872
|
+
return /* @__PURE__ */ jsxs24(
|
|
4853
4873
|
"button",
|
|
4854
4874
|
{
|
|
4855
4875
|
onClick: () => handleItemClick(item, index),
|
|
@@ -4889,7 +4909,7 @@ var Dropdown = ({
|
|
|
4889
4909
|
};
|
|
4890
4910
|
|
|
4891
4911
|
// src/components/ProfileDropdown.tsx
|
|
4892
|
-
import { jsx as jsx33, jsxs as
|
|
4912
|
+
import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4893
4913
|
var ProfileDropdown = ({
|
|
4894
4914
|
name,
|
|
4895
4915
|
image,
|
|
@@ -4932,7 +4952,7 @@ var ProfileDropdown = ({
|
|
|
4932
4952
|
triggerMode,
|
|
4933
4953
|
onOpenChange: setIsOpen,
|
|
4934
4954
|
className,
|
|
4935
|
-
children: /* @__PURE__ */
|
|
4955
|
+
children: /* @__PURE__ */ jsxs25(
|
|
4936
4956
|
"div",
|
|
4937
4957
|
{
|
|
4938
4958
|
className: cn(
|
|
@@ -4966,7 +4986,7 @@ var ProfileDropdown = ({
|
|
|
4966
4986
|
)
|
|
4967
4987
|
}
|
|
4968
4988
|
),
|
|
4969
|
-
/* @__PURE__ */
|
|
4989
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-start mr-1 min-w-[80px]", children: [
|
|
4970
4990
|
/* @__PURE__ */ jsx33(
|
|
4971
4991
|
"span",
|
|
4972
4992
|
{
|
|
@@ -5027,7 +5047,7 @@ import {
|
|
|
5027
5047
|
ChevronLeft,
|
|
5028
5048
|
ChevronRight as ChevronRight2
|
|
5029
5049
|
} from "lucide-react";
|
|
5030
|
-
import { jsx as jsx34, jsxs as
|
|
5050
|
+
import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5031
5051
|
var useA4StatementView = ({
|
|
5032
5052
|
url,
|
|
5033
5053
|
v = 1,
|
|
@@ -5098,14 +5118,14 @@ var useA4StatementView = ({
|
|
|
5098
5118
|
const columnsWithFooters = columns.filter(
|
|
5099
5119
|
(col) => col.renderFooter && !col.hide
|
|
5100
5120
|
);
|
|
5101
|
-
const DisplayFinalTotalEl = columnsWithFooters.length > 0 ? /* @__PURE__ */
|
|
5121
|
+
const DisplayFinalTotalEl = columnsWithFooters.length > 0 ? /* @__PURE__ */ jsxs26(
|
|
5102
5122
|
"div",
|
|
5103
5123
|
{
|
|
5104
5124
|
id: "a4-final-total",
|
|
5105
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",
|
|
5106
5126
|
children: [
|
|
5107
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" }),
|
|
5108
|
-
columnsWithFooters.map((col, idx) => /* @__PURE__ */
|
|
5128
|
+
columnsWithFooters.map((col, idx) => /* @__PURE__ */ jsxs26(
|
|
5109
5129
|
"div",
|
|
5110
5130
|
{
|
|
5111
5131
|
className: "flex items-center gap-3 px-4 py-2 rounded-md border border-black dark:border-zinc-700 print:border-black",
|
|
@@ -5198,19 +5218,19 @@ var useA4StatementView = ({
|
|
|
5198
5218
|
}, 150);
|
|
5199
5219
|
return () => clearTimeout(timer);
|
|
5200
5220
|
}, [isMeasuring, depsString]);
|
|
5201
|
-
const HeaderEl = /* @__PURE__ */
|
|
5221
|
+
const HeaderEl = /* @__PURE__ */ jsxs26(
|
|
5202
5222
|
"div",
|
|
5203
5223
|
{
|
|
5204
5224
|
className: "flex justify-between items-start mb-5 px-8 pt-8",
|
|
5205
5225
|
id: "a4-header-section",
|
|
5206
5226
|
children: [
|
|
5207
|
-
/* @__PURE__ */ jsx34("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx34("div", { className: "flex items-center gap-4", children: /* @__PURE__ */
|
|
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: [
|
|
5208
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 }),
|
|
5209
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 })
|
|
5210
5230
|
] }) }) }),
|
|
5211
|
-
/* @__PURE__ */
|
|
5231
|
+
/* @__PURE__ */ jsxs26("div", { className: "text-right", children: [
|
|
5212
5232
|
/* @__PURE__ */ jsx34("h2", { className: "text-lg font-bold text-gray-800 dark:text-gray-100 print:text-gray-800", children: store?.name }),
|
|
5213
|
-
/* @__PURE__ */
|
|
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: [
|
|
5214
5234
|
store?.address && /* @__PURE__ */ jsx34("span", { className: "whitespace-pre-line", children: store.address }),
|
|
5215
5235
|
store?.phone && /* @__PURE__ */ jsx34("span", { children: store.phone }),
|
|
5216
5236
|
store?.email && /* @__PURE__ */ jsx34("span", { children: store.email })
|
|
@@ -5227,11 +5247,11 @@ var useA4StatementView = ({
|
|
|
5227
5247
|
isLoading: isActuallyLoading
|
|
5228
5248
|
}
|
|
5229
5249
|
) }) : null;
|
|
5230
|
-
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__ */
|
|
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: [
|
|
5231
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" }) }),
|
|
5232
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" }),
|
|
5233
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." }),
|
|
5234
|
-
url && !isActuallyLoading && /* @__PURE__ */
|
|
5254
|
+
url && !isActuallyLoading && /* @__PURE__ */ jsxs26(
|
|
5235
5255
|
"button",
|
|
5236
5256
|
{
|
|
5237
5257
|
onClick: () => getData(),
|
|
@@ -5243,13 +5263,13 @@ var useA4StatementView = ({
|
|
|
5243
5263
|
}
|
|
5244
5264
|
)
|
|
5245
5265
|
] }) }) : null;
|
|
5246
|
-
return /* @__PURE__ */
|
|
5266
|
+
return /* @__PURE__ */ jsxs26("div", { className: "flex flex-col relative w-full items-center", children: [
|
|
5247
5267
|
isMeasuring && filteredDisplayData.length > 0 && /* @__PURE__ */ jsx34("div", { className: "absolute top-0 opacity-0 pointer-events-none -left-full", children: /* @__PURE__ */ jsx34(
|
|
5248
5268
|
"div",
|
|
5249
5269
|
{
|
|
5250
5270
|
style: { width: "210mm", boxSizing: "border-box" },
|
|
5251
5271
|
className: "bg-white",
|
|
5252
|
-
children: /* @__PURE__ */
|
|
5272
|
+
children: /* @__PURE__ */ jsxs26(
|
|
5253
5273
|
"div",
|
|
5254
5274
|
{
|
|
5255
5275
|
ref: measureContainerRef,
|
|
@@ -5257,7 +5277,7 @@ var useA4StatementView = ({
|
|
|
5257
5277
|
children: [
|
|
5258
5278
|
HeaderEl,
|
|
5259
5279
|
DisplayInfoGridEl,
|
|
5260
|
-
/* @__PURE__ */
|
|
5280
|
+
/* @__PURE__ */ jsxs26("div", { className: "grow w-full px-8 pb-8", children: [
|
|
5261
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 }) }),
|
|
5262
5282
|
/* @__PURE__ */ jsx34(
|
|
5263
5283
|
SimpleTable,
|
|
@@ -5288,11 +5308,11 @@ var useA4StatementView = ({
|
|
|
5288
5308
|
pageNumber: pageIndex + 1,
|
|
5289
5309
|
totalPages: pages.length,
|
|
5290
5310
|
isLastPage: pageIndex === pages.length - 1,
|
|
5291
|
-
children: /* @__PURE__ */
|
|
5292
|
-
/* @__PURE__ */
|
|
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: [
|
|
5293
5313
|
headers,
|
|
5294
|
-
printable && pageIndex === currentPageIndex && /* @__PURE__ */ jsx34("div", { className: "flex items-center justify-end ", children: /* @__PURE__ */
|
|
5295
|
-
/* @__PURE__ */
|
|
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(
|
|
5296
5316
|
"button",
|
|
5297
5317
|
{
|
|
5298
5318
|
onClick: async () => await getData(),
|
|
@@ -5310,7 +5330,7 @@ var useA4StatementView = ({
|
|
|
5310
5330
|
]
|
|
5311
5331
|
}
|
|
5312
5332
|
),
|
|
5313
|
-
/* @__PURE__ */
|
|
5333
|
+
/* @__PURE__ */ jsxs26(
|
|
5314
5334
|
"button",
|
|
5315
5335
|
{
|
|
5316
5336
|
onClick: () => reactToPrintFn(),
|
|
@@ -5321,7 +5341,7 @@ var useA4StatementView = ({
|
|
|
5321
5341
|
]
|
|
5322
5342
|
}
|
|
5323
5343
|
),
|
|
5324
|
-
/* @__PURE__ */
|
|
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: [
|
|
5325
5345
|
/* @__PURE__ */ jsx34(
|
|
5326
5346
|
"button",
|
|
5327
5347
|
{
|
|
@@ -5336,8 +5356,8 @@ var useA4StatementView = ({
|
|
|
5336
5356
|
children: /* @__PURE__ */ jsx34(ChevronLeft, { size: 18 })
|
|
5337
5357
|
}
|
|
5338
5358
|
),
|
|
5339
|
-
/* @__PURE__ */
|
|
5340
|
-
/* @__PURE__ */
|
|
5359
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
|
|
5360
|
+
/* @__PURE__ */ jsxs26(
|
|
5341
5361
|
Select,
|
|
5342
5362
|
{
|
|
5343
5363
|
value: currentPageIndex + 1,
|
|
@@ -5351,7 +5371,7 @@ var useA4StatementView = ({
|
|
|
5351
5371
|
containerClassName: "inline-block",
|
|
5352
5372
|
children: [
|
|
5353
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 }) }),
|
|
5354
|
-
/* @__PURE__ */
|
|
5374
|
+
/* @__PURE__ */ jsxs26(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
|
|
5355
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(
|
|
5356
5376
|
"input",
|
|
5357
5377
|
{
|
|
@@ -5393,8 +5413,8 @@ var useA4StatementView = ({
|
|
|
5393
5413
|
] }),
|
|
5394
5414
|
pageIndex === 0 && HeaderEl,
|
|
5395
5415
|
pageIndex === 0 && DisplayInfoGridEl,
|
|
5396
|
-
/* @__PURE__ */
|
|
5397
|
-
pageIndex === 0 && /* @__PURE__ */
|
|
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: [
|
|
5398
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 }),
|
|
5399
5419
|
/* @__PURE__ */ jsx34(
|
|
5400
5420
|
"input",
|
|
@@ -5455,7 +5475,7 @@ import {
|
|
|
5455
5475
|
ChevronLeft as ChevronLeft2,
|
|
5456
5476
|
ChevronRight as ChevronRight3
|
|
5457
5477
|
} from "lucide-react";
|
|
5458
|
-
import { jsx as jsx35, jsxs as
|
|
5478
|
+
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5459
5479
|
var useA4CategoryView = ({
|
|
5460
5480
|
url,
|
|
5461
5481
|
v = 1,
|
|
@@ -5580,19 +5600,19 @@ var useA4CategoryView = ({
|
|
|
5580
5600
|
}, 150);
|
|
5581
5601
|
return () => clearTimeout(timer);
|
|
5582
5602
|
}, [isMeasuring, depsString]);
|
|
5583
|
-
const HeaderEl = /* @__PURE__ */
|
|
5603
|
+
const HeaderEl = /* @__PURE__ */ jsxs27(
|
|
5584
5604
|
"div",
|
|
5585
5605
|
{
|
|
5586
5606
|
className: "flex justify-between items-start mb-5 px-8 pt-8",
|
|
5587
5607
|
id: "a4-header-section",
|
|
5588
5608
|
children: [
|
|
5589
|
-
/* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsx35("div", { className: "flex items-center gap-4", children: /* @__PURE__ */
|
|
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: [
|
|
5590
5610
|
/* @__PURE__ */ jsx35("h1", { className: "text-4xl font-black text-black dark:text-white print:text-black tracking-tighter uppercase", children: title }),
|
|
5591
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 })
|
|
5592
5612
|
] }) }) }),
|
|
5593
|
-
/* @__PURE__ */
|
|
5613
|
+
/* @__PURE__ */ jsxs27("div", { className: "text-right", children: [
|
|
5594
5614
|
/* @__PURE__ */ jsx35("h2", { className: "text-lg font-black text-black dark:text-white print:text-black uppercase tracking-tight", children: store?.name }),
|
|
5595
|
-
/* @__PURE__ */
|
|
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: [
|
|
5596
5616
|
store?.address && /* @__PURE__ */ jsx35("span", { className: "whitespace-pre-line", children: store.address }),
|
|
5597
5617
|
store?.phone && /* @__PURE__ */ jsx35("span", { children: store.phone }),
|
|
5598
5618
|
store?.email && /* @__PURE__ */ jsx35("span", { children: store.email })
|
|
@@ -5622,11 +5642,11 @@ var useA4CategoryView = ({
|
|
|
5622
5642
|
}
|
|
5623
5643
|
);
|
|
5624
5644
|
};
|
|
5625
|
-
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__ */
|
|
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: [
|
|
5626
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" }) }),
|
|
5627
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" }),
|
|
5628
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." }),
|
|
5629
|
-
url && !isActuallyLoading && /* @__PURE__ */
|
|
5649
|
+
url && !isActuallyLoading && /* @__PURE__ */ jsxs27(
|
|
5630
5650
|
"button",
|
|
5631
5651
|
{
|
|
5632
5652
|
onClick: () => getData(),
|
|
@@ -5638,13 +5658,13 @@ var useA4CategoryView = ({
|
|
|
5638
5658
|
}
|
|
5639
5659
|
)
|
|
5640
5660
|
] }) }) : null;
|
|
5641
|
-
return /* @__PURE__ */
|
|
5661
|
+
return /* @__PURE__ */ jsxs27("div", { className: "flex flex-col relative w-full items-center", children: [
|
|
5642
5662
|
isMeasuring && flattenedNodes.length > 0 && /* @__PURE__ */ jsx35("div", { className: "absolute top-0 opacity-0 pointer-events-none -left-full", children: /* @__PURE__ */ jsx35(
|
|
5643
5663
|
"div",
|
|
5644
5664
|
{
|
|
5645
5665
|
style: { width: "210mm", boxSizing: "border-box" },
|
|
5646
5666
|
className: "bg-white",
|
|
5647
|
-
children: /* @__PURE__ */
|
|
5667
|
+
children: /* @__PURE__ */ jsxs27(
|
|
5648
5668
|
"div",
|
|
5649
5669
|
{
|
|
5650
5670
|
ref: measureContainerRef,
|
|
@@ -5669,9 +5689,9 @@ var useA4CategoryView = ({
|
|
|
5669
5689
|
pageNumber: pageIndex + 1,
|
|
5670
5690
|
totalPages: pages.length,
|
|
5671
5691
|
isLastPage: pageIndex === pages.length - 1,
|
|
5672
|
-
children: /* @__PURE__ */
|
|
5673
|
-
/* @__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__ */
|
|
5674
|
-
/* @__PURE__ */
|
|
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(
|
|
5675
5695
|
"button",
|
|
5676
5696
|
{
|
|
5677
5697
|
onClick: async () => await getData(),
|
|
@@ -5689,7 +5709,7 @@ var useA4CategoryView = ({
|
|
|
5689
5709
|
]
|
|
5690
5710
|
}
|
|
5691
5711
|
),
|
|
5692
|
-
/* @__PURE__ */
|
|
5712
|
+
/* @__PURE__ */ jsxs27(
|
|
5693
5713
|
"button",
|
|
5694
5714
|
{
|
|
5695
5715
|
onClick: () => reactToPrintFn(),
|
|
@@ -5700,7 +5720,7 @@ var useA4CategoryView = ({
|
|
|
5700
5720
|
]
|
|
5701
5721
|
}
|
|
5702
5722
|
),
|
|
5703
|
-
/* @__PURE__ */
|
|
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: [
|
|
5704
5724
|
/* @__PURE__ */ jsx35(
|
|
5705
5725
|
"button",
|
|
5706
5726
|
{
|
|
@@ -5715,8 +5735,8 @@ var useA4CategoryView = ({
|
|
|
5715
5735
|
children: /* @__PURE__ */ jsx35(ChevronLeft2, { size: 18 })
|
|
5716
5736
|
}
|
|
5717
5737
|
),
|
|
5718
|
-
/* @__PURE__ */
|
|
5719
|
-
/* @__PURE__ */
|
|
5738
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-1 text-[11px] font-bold tabular-nums", children: [
|
|
5739
|
+
/* @__PURE__ */ jsxs27(
|
|
5720
5740
|
Select,
|
|
5721
5741
|
{
|
|
5722
5742
|
value: currentPageIndex + 1,
|
|
@@ -5730,7 +5750,7 @@ var useA4CategoryView = ({
|
|
|
5730
5750
|
containerClassName: "inline-block",
|
|
5731
5751
|
children: [
|
|
5732
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 }) }),
|
|
5733
|
-
/* @__PURE__ */
|
|
5753
|
+
/* @__PURE__ */ jsxs27(SelectContent, { className: "min-w-[100px] max-h-64 overflow-y-auto p-0", children: [
|
|
5734
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(
|
|
5735
5755
|
"input",
|
|
5736
5756
|
{
|
|
@@ -5771,7 +5791,7 @@ var useA4CategoryView = ({
|
|
|
5771
5791
|
] }) }) }),
|
|
5772
5792
|
pageIndex === 0 && HeaderEl,
|
|
5773
5793
|
pageIndex === 0 && DisplayInfoGridEl,
|
|
5774
|
-
/* @__PURE__ */
|
|
5794
|
+
/* @__PURE__ */ jsxs27("div", { className: "grow w-full px-8 pb-8", children: [
|
|
5775
5795
|
pageIndex === 0 && /* @__PURE__ */ jsx35("div", { className: "flex items-center justify-end px-2 mt-2 print:hidden mb-4", children: /* @__PURE__ */ jsx35(
|
|
5776
5796
|
"input",
|
|
5777
5797
|
{
|
|
@@ -5808,7 +5828,7 @@ var useA4CategoryView_default = useA4CategoryView;
|
|
|
5808
5828
|
import { useEffect as useEffect14, useState as useState21 } from "react";
|
|
5809
5829
|
import { AlertCircle as AlertCircle3, FileX as FileX3, Plus as Plus2, RefreshCw as RefreshCw3 } from "lucide-react";
|
|
5810
5830
|
import moment from "moment";
|
|
5811
|
-
import { jsx as jsx36, jsxs as
|
|
5831
|
+
import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5812
5832
|
var useTransaction = ({
|
|
5813
5833
|
url,
|
|
5814
5834
|
v = 1,
|
|
@@ -5865,11 +5885,11 @@ var useTransaction = ({
|
|
|
5865
5885
|
"div",
|
|
5866
5886
|
{
|
|
5867
5887
|
className: `flex flex-col relative w-full items-center justify-center py-12 min-h-[300px] ${className}`,
|
|
5868
|
-
children: /* @__PURE__ */
|
|
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: [
|
|
5869
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" }) }),
|
|
5870
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" }),
|
|
5871
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." }),
|
|
5872
|
-
url && /* @__PURE__ */
|
|
5892
|
+
url && /* @__PURE__ */ jsxs28(
|
|
5873
5893
|
"button",
|
|
5874
5894
|
{
|
|
5875
5895
|
onClick: () => getData(),
|
|
@@ -5883,13 +5903,13 @@ var useTransaction = ({
|
|
|
5883
5903
|
] })
|
|
5884
5904
|
}
|
|
5885
5905
|
) : void 0;
|
|
5886
|
-
return /* @__PURE__ */
|
|
5887
|
-
/* @__PURE__ */ jsx36(Card.Header, { children: /* @__PURE__ */
|
|
5888
|
-
/* @__PURE__ */
|
|
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: [
|
|
5889
5909
|
/* @__PURE__ */ jsx36(Card.Title, { children: title }),
|
|
5890
5910
|
/* @__PURE__ */ jsx36(Card.Description, { children: description })
|
|
5891
5911
|
] }),
|
|
5892
|
-
/* @__PURE__ */
|
|
5912
|
+
/* @__PURE__ */ jsxs28("section", { className: "flex gap-2 items-center", children: [
|
|
5893
5913
|
dateFilter && /* @__PURE__ */ jsx36(
|
|
5894
5914
|
Fields_default.DateInput,
|
|
5895
5915
|
{
|
|
@@ -7504,7 +7524,7 @@ var PlusOutlined_default2 = RefIcon;
|
|
|
7504
7524
|
|
|
7505
7525
|
// src/hooks/uploads/useAntdImageUpload.tsx
|
|
7506
7526
|
import { Image, Upload } from "antd";
|
|
7507
|
-
import { Fragment as Fragment7, jsx as jsx37, jsxs as
|
|
7527
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7508
7528
|
var getBase64 = (file) => new Promise((resolve, reject) => {
|
|
7509
7529
|
const reader = new FileReader();
|
|
7510
7530
|
reader.readAsDataURL(file);
|
|
@@ -7531,7 +7551,7 @@ var useAntdImageUpload = ({ length = 1 }) => {
|
|
|
7531
7551
|
}))
|
|
7532
7552
|
);
|
|
7533
7553
|
};
|
|
7534
|
-
const ImageBox = () => /* @__PURE__ */
|
|
7554
|
+
const ImageBox = () => /* @__PURE__ */ jsxs29(Fragment7, { children: [
|
|
7535
7555
|
/* @__PURE__ */ jsx37(
|
|
7536
7556
|
Upload,
|
|
7537
7557
|
{
|
|
@@ -7540,7 +7560,7 @@ var useAntdImageUpload = ({ length = 1 }) => {
|
|
|
7540
7560
|
onPreview: handlePreview,
|
|
7541
7561
|
onChange: handleChange,
|
|
7542
7562
|
beforeUpload: () => false,
|
|
7543
|
-
children: fileList.length >= length ? null : /* @__PURE__ */
|
|
7563
|
+
children: fileList.length >= length ? null : /* @__PURE__ */ jsxs29("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
7544
7564
|
/* @__PURE__ */ jsx37(PlusOutlined_default2, {}),
|
|
7545
7565
|
/* @__PURE__ */ jsx37("div", { style: { marginTop: 8 }, children: "Upload" })
|
|
7546
7566
|
] })
|
|
@@ -7564,9 +7584,9 @@ var useAntdImageUpload = ({ length = 1 }) => {
|
|
|
7564
7584
|
var useAntdImageUpload_default = useAntdImageUpload;
|
|
7565
7585
|
|
|
7566
7586
|
// src/components/Views/CategoryView.tsx
|
|
7567
|
-
import { jsx as jsx38, jsxs as
|
|
7587
|
+
import { jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7568
7588
|
var CategoryCard = ({ item }) => {
|
|
7569
|
-
return /* @__PURE__ */
|
|
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: [
|
|
7570
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(
|
|
7571
7591
|
"img",
|
|
7572
7592
|
{
|
|
@@ -7583,8 +7603,8 @@ var CategoryView = ({
|
|
|
7583
7603
|
items,
|
|
7584
7604
|
className
|
|
7585
7605
|
}) => {
|
|
7586
|
-
return /* @__PURE__ */ jsx38("div", { className: cn("p-6 bg-gray-50 min-h-full", className), children: /* @__PURE__ */
|
|
7587
|
-
/* @__PURE__ */
|
|
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: [
|
|
7588
7608
|
/* @__PURE__ */ jsx38("h2", { className: "text-2xl md:text-3xl font-bold text-gray-900 tracking-tight", children: categoryName }),
|
|
7589
7609
|
/* @__PURE__ */ jsx38("div", { className: "mt-2 h-1.5 w-16 bg-green-500 rounded-full" })
|
|
7590
7610
|
] }),
|