flowcore-fn 8.0.7 → 8.0.9

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/pkg-index.js CHANGED
@@ -47,14 +47,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
47
47
  // src/pkg-index.jsx
48
48
  var pkg_index_exports = {};
49
49
  __export(pkg_index_exports, {
50
+ ApiEndpointsProvider: () => ApiEndpointsProvider_default,
50
51
  Layout: () => Layout_default,
51
52
  Sidebar: () => Sidebar
52
53
  });
53
54
  module.exports = __toCommonJS(pkg_index_exports);
54
55
 
55
56
  // src/components/Sidebar.jsx
56
- var import_react36 = require("react");
57
- var import_react37 = require("@remixicon/react");
57
+ var import_react38 = require("react");
58
+ var import_react39 = require("@remixicon/react");
58
59
  var import_router = require("next/router");
59
60
 
60
61
  // src/pages/WorkflowPage.js
@@ -2120,7 +2121,7 @@ function WorkFlowTransition() {
2120
2121
  }
2121
2122
 
2122
2123
  // src/components/user-hierarchy-node-mapping/user_hierarchy_mapping_main.jsx
2123
- var import_react21 = __toESM(require("react"));
2124
+ var import_react23 = __toESM(require("react"));
2124
2125
 
2125
2126
  // src/components/user-hierarchy-node-mapping/adduserhierarchynode.jsx
2126
2127
  var import_react18 = __toESM(require("react"));
@@ -2594,21 +2595,29 @@ function UserHierarchyNodeMappingTable({
2594
2595
  ] });
2595
2596
  }
2596
2597
 
2597
- // src/components/user-hierarchy-node-mapping/user_hierarchy_mapping_main.jsx
2598
+ // src/components/user-hierarchy-node-mapping/edit-mapping.jsx
2599
+ var import_react21 = __toESM(require("react"));
2598
2600
  var import_jsx_runtime21 = require("react/jsx-runtime");
2601
+
2602
+ // src/components/user-hierarchy-node-mapping/delete-mapping.jsx
2603
+ var import_react22 = __toESM(require("react"));
2604
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2605
+
2606
+ // src/components/user-hierarchy-node-mapping/user_hierarchy_mapping_main.jsx
2607
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2599
2608
  function User_hierarchy_mapping_main() {
2600
- const [modalOpen, setModalOpen] = (0, import_react21.useState)(false);
2601
- const [pageSize, setPageSize] = (0, import_react21.useState)(10);
2602
- const [searchQuery, setSearchQuery] = (0, import_react21.useState)("");
2603
- const [currentPage, setCurrentPage] = (0, import_react21.useState)(1);
2604
- const [totalEntries, setTotalEntries] = (0, import_react21.useState)(0);
2609
+ const [modalOpen, setModalOpen] = (0, import_react23.useState)(false);
2610
+ const [pageSize, setPageSize] = (0, import_react23.useState)(10);
2611
+ const [searchQuery, setSearchQuery] = (0, import_react23.useState)("");
2612
+ const [currentPage, setCurrentPage] = (0, import_react23.useState)(1);
2613
+ const [totalEntries, setTotalEntries] = (0, import_react23.useState)(0);
2605
2614
  const handlePageSizeChange = (e) => {
2606
2615
  setPageSize(Number(e.target.value));
2607
2616
  setCurrentPage(1);
2608
2617
  };
2609
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:min-h-screen fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
2610
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:w-full fc:space-y-5", children: [
2611
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CommonHeader, { title: "User Hierarchy Node Mapping", breadcrumbs: [{
2618
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:min-h-screen fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
2619
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:w-full fc:space-y-5", children: [
2620
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CommonHeader, { title: "User Hierarchy Node Mapping", breadcrumbs: [{
2612
2621
  label: "Dashboard",
2613
2622
  href: "/dashboard"
2614
2623
  }, {
@@ -2621,37 +2630,37 @@ function User_hierarchy_mapping_main() {
2621
2630
  label: "User Hierarchy Mapping",
2622
2631
  href: "/user hierarchy mapping"
2623
2632
  }], buttonText: "Add Mapping", onButtonClick: () => setModalOpen(true) }),
2624
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
2625
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
2626
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(MappingSearchBar, { searchQuery, setSearchQuery, setCurrentPage }) }),
2627
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
2628
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: 5, children: "5 Rows" }),
2629
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: 10, children: "10 Rows" }),
2630
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: 20, children: "20 Rows" }),
2631
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: 25, children: "25 Rows" })
2633
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
2634
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
2635
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(MappingSearchBar, { searchQuery, setSearchQuery, setCurrentPage }) }),
2636
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
2637
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: 5, children: "5 Rows" }),
2638
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: 10, children: "10 Rows" }),
2639
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: 20, children: "20 Rows" }),
2640
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: 25, children: "25 Rows" })
2632
2641
  ] }) })
2633
2642
  ] }),
2634
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(UserHierarchyNodeMappingTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
2643
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(UserHierarchyNodeMappingTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
2635
2644
  ] })
2636
2645
  ] }),
2637
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AddUserHierarchyNodeMappingModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
2646
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(AddUserHierarchyNodeMappingModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
2638
2647
  ] });
2639
2648
  }
2640
2649
 
2641
2650
  // src/components/DocumentConfiguration/DocumentConfigurationmain.jsx
2642
- var import_react27 = __toESM(require("react"));
2651
+ var import_react29 = __toESM(require("react"));
2643
2652
 
2644
2653
  // src/components/DocumentConfiguration/SearchBar.jsx
2645
- var import_react22 = __toESM(require("react"));
2646
- var import_jsx_runtime22 = require("react/jsx-runtime");
2654
+ var import_react24 = __toESM(require("react"));
2655
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2647
2656
  function SearchBar3({
2648
2657
  searchQuery,
2649
2658
  setSearchQuery,
2650
2659
  setCurrentPage
2651
2660
  }) {
2652
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
2653
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
2654
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
2661
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
2662
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
2663
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
2655
2664
  setSearchQuery(e.target.value);
2656
2665
  setCurrentPage(1);
2657
2666
  }, placeholder: "Search document name...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
@@ -2659,18 +2668,18 @@ function SearchBar3({
2659
2668
  }
2660
2669
 
2661
2670
  // src/components/DocumentConfiguration/DocumentConfigurationTable.jsx
2662
- var import_react25 = __toESM(require("react"));
2671
+ var import_react27 = __toESM(require("react"));
2663
2672
 
2664
2673
  // src/components/DocumentConfiguration/edit.jsx
2665
- var import_react23 = __toESM(require("react"));
2666
- var import_jsx_runtime23 = require("react/jsx-runtime");
2674
+ var import_react25 = __toESM(require("react"));
2675
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2667
2676
  function EditDocumentConfiguration({
2668
2677
  isOpen,
2669
2678
  onClose,
2670
2679
  initialData,
2671
2680
  onSave
2672
2681
  }) {
2673
- const [formData, setFormData] = (0, import_react23.useState)({
2682
+ const [formData, setFormData] = (0, import_react25.useState)({
2674
2683
  docName: "",
2675
2684
  stepId: "",
2676
2685
  extensions: "",
@@ -2678,8 +2687,8 @@ function EditDocumentConfiguration({
2678
2687
  maxSizeUnit: "MB",
2679
2688
  isMandatory: false
2680
2689
  });
2681
- const [errors, setErrors] = (0, import_react23.useState)({});
2682
- (0, import_react23.useEffect)(() => {
2690
+ const [errors, setErrors] = (0, import_react25.useState)({});
2691
+ (0, import_react25.useEffect)(() => {
2683
2692
  if (initialData) {
2684
2693
  const sizeParts = (initialData.maxSize || "10 MB").split(" ");
2685
2694
  setFormData({
@@ -2731,73 +2740,73 @@ function EditDocumentConfiguration({
2731
2740
  onClose();
2732
2741
  };
2733
2742
  if (!isOpen) return null;
2734
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/10 fc:p-4", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:bg-white fc:rounded-2xl fc:shadow-2xl fc:border fc:border-gray-100 fc:w-full fc:max-w-2xl fc:overflow-hidden fc:transition-all", children: [
2735
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-6 fc:py-5 fc:border-b fc:border-gray-100", children: [
2736
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
2737
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:w-10 fc:h-10 fc:rounded-xl fc:bg-blue-50 fc:text-[#2563eb] fc:flex fc:items-center fc:justify-center fc:font-bold", children: "\u{1F4C4}" }),
2738
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
2739
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h2", { className: "fc:text-xl fc:font-bold fc:text-gray-800", children: "Edit Document Configuration" }),
2740
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "fc:text-xs fc:text-gray-400", children: "Update document parameters and validation settings" })
2743
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/10 fc:p-4", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:bg-white fc:rounded-2xl fc:shadow-2xl fc:border fc:border-gray-100 fc:w-full fc:max-w-2xl fc:overflow-hidden fc:transition-all", children: [
2744
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-6 fc:py-5 fc:border-b fc:border-gray-100", children: [
2745
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
2746
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fc:w-10 fc:h-10 fc:rounded-xl fc:bg-blue-50 fc:text-[#2563eb] fc:flex fc:items-center fc:justify-center fc:font-bold", children: "\u{1F4C4}" }),
2747
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2748
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("h2", { className: "fc:text-xl fc:font-bold fc:text-gray-800", children: "Edit Document Configuration" }),
2749
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "fc:text-xs fc:text-gray-400", children: "Update document parameters and validation settings" })
2741
2750
  ] })
2742
2751
  ] }),
2743
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
2752
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: onClose, className: "fc:text-gray-400 hover:fc:fc:text-gray-600 fc:transition fc:text-xl fc:font-medium", children: "\u2715" })
2744
2753
  ] }),
2745
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("form", { onSubmit: handleSubmit, className: "fc:p-6 fc:space-y-5", children: [
2746
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "fc:bg-gray-50/70 fc:rounded-xl fc:p-5 fc:border fc:border-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
2747
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "md:fc:fc:col-span-2", children: [
2748
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2754
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("form", { onSubmit: handleSubmit, className: "fc:p-6 fc:space-y-5", children: [
2755
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fc:bg-gray-50/70 fc:rounded-xl fc:p-5 fc:border fc:border-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
2756
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "md:fc:fc:col-span-2", children: [
2757
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2749
2758
  "Document Name ",
2750
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
2759
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-red-500", children: "*" })
2751
2760
  ] }),
2752
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "docName", placeholder: "e.g. Identity Proof", value: formData.docName, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.docName ? "border-red-500" : "border-gray-200"}` }),
2753
- errors.docName && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.docName })
2761
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { type: "text", name: "docName", placeholder: "e.g. Identity Proof", value: formData.docName, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.docName ? "border-red-500" : "border-gray-200"}` }),
2762
+ errors.docName && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.docName })
2754
2763
  ] }),
2755
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
2756
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2764
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2765
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2757
2766
  "Workflow Step ID ",
2758
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
2767
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-red-500", children: "*" })
2759
2768
  ] }),
2760
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "stepId", placeholder: "e.g. 1", value: formData.stepId, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.stepId ? "border-red-500" : "border-gray-200"}` }),
2761
- errors.stepId && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.stepId })
2769
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { type: "text", name: "stepId", placeholder: "e.g. 1", value: formData.stepId, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.stepId ? "border-red-500" : "border-gray-200"}` }),
2770
+ errors.stepId && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.stepId })
2762
2771
  ] }),
2763
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
2764
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2772
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2773
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2765
2774
  "Allowed Extensions ",
2766
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
2775
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-red-500", children: "*" })
2767
2776
  ] }),
2768
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "text", name: "extensions", placeholder: "e.g. pdf, jpg, png", value: formData.extensions, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.extensions ? "border-red-500" : "border-gray-200"}` }),
2769
- errors.extensions && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.extensions })
2777
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { type: "text", name: "extensions", placeholder: "e.g. pdf, jpg, png", value: formData.extensions, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.extensions ? "border-red-500" : "border-gray-200"}` }),
2778
+ errors.extensions && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.extensions })
2770
2779
  ] }),
2771
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
2772
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2780
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { children: [
2781
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: "fc:block fc:text-xs fc:font-semibold fc:text-gray-700 fc:mb-1.5", children: [
2773
2782
  "Max Size ",
2774
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-red-500", children: "*" })
2783
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-red-500", children: "*" })
2775
2784
  ] }),
2776
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:gap-2", children: [
2777
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "number", name: "maxSizeNum", placeholder: "10", value: formData.maxSizeNum, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.maxSizeNum ? "border-red-500" : "border-gray-200"}` }),
2778
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("select", { name: "maxSizeUnit", value: formData.maxSizeUnit, onChange: handleChange, className: "fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg fc:outline-none", children: [
2779
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "MB", children: "MB" }),
2780
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("option", { value: "KB", children: "KB" })
2785
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:gap-2", children: [
2786
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { type: "number", name: "maxSizeNum", placeholder: "10", value: formData.maxSizeNum, onChange: handleChange, className: `fc:w-full fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:rounded-lg focus:fc:ring-2 focus:fc:ring-blue-500/20 focus:fc:border-[#2563eb] fc:outline-none fc:transition${errors.maxSizeNum ? "border-red-500" : "border-gray-200"}` }),
2787
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("select", { name: "maxSizeUnit", value: formData.maxSizeUnit, onChange: handleChange, className: "fc:px-3 fc:py-2.5 fc:text-sm fc:bg-white fc:border fc:border-gray-200 fc:rounded-lg fc:outline-none", children: [
2788
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("option", { value: "MB", children: "MB" }),
2789
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("option", { value: "KB", children: "KB" })
2781
2790
  ] })
2782
2791
  ] }),
2783
- errors.maxSizeNum && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.maxSizeNum })
2792
+ errors.maxSizeNum && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "fc:text-xs fc:text-red-500", children: errors.maxSizeNum })
2784
2793
  ] }),
2785
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:pt-6", children: [
2786
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "checkbox", id: "isMandatory", name: "isMandatory", checked: formData.isMandatory, onChange: handleChange, className: "fc:w-4 fc:h-4 fc:text-[#2563eb] fc:rounded fc:border-gray-300 focus:fc:fc:ring-[#2563eb]" }),
2787
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { htmlFor: "isMandatory", className: "fc:text-sm fc:font-medium fc:text-gray-700 fc:cursor-pointer", children: "Is Mandatory" })
2794
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2 fc:pt-6", children: [
2795
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { type: "checkbox", id: "isMandatory", name: "isMandatory", checked: formData.isMandatory, onChange: handleChange, className: "fc:w-4 fc:h-4 fc:text-[#2563eb] fc:rounded fc:border-gray-300 focus:fc:fc:ring-[#2563eb]" }),
2796
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("label", { htmlFor: "isMandatory", className: "fc:text-sm fc:font-medium fc:text-gray-700 fc:cursor-pointer", children: "Is Mandatory" })
2788
2797
  ] })
2789
2798
  ] }) }),
2790
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "fc:flex fc:justify-end fc:items-center fc:gap-3 fc:pt-2", children: [
2791
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
2792
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:fc:bg-[#1d4ed8] active:fc:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Document" })
2799
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:justify-end fc:items-center fc:gap-3 fc:pt-2", children: [
2800
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "button", onClick: onClose, className: "fc:px-5 fc:py-2.5 fc:text-sm fc:font-medium fc:text-gray-600 fc:bg-gray-100 hover:fc:fc:bg-gray-200 fc:rounded-xl fc:transition", children: "Cancel" }),
2801
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { type: "submit", className: "fc:px-6 fc:py-2.5 fc:text-sm fc:font-semibold fc:text-white fc:bg-[#2563eb] hover:fc:fc:bg-[#1d4ed8] active:fc:fc:scale-95 fc:rounded-xl fc:shadow-md fc:transition-all fc:flex fc:items-center fc:gap-2", children: "Save Document" })
2793
2802
  ] })
2794
2803
  ] })
2795
2804
  ] }) });
2796
2805
  }
2797
2806
 
2798
2807
  // src/components/DocumentConfiguration/delete.jsx
2799
- var import_react24 = __toESM(require("react"));
2800
- var import_jsx_runtime24 = require("react/jsx-runtime");
2808
+ var import_react26 = __toESM(require("react"));
2809
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2801
2810
  function DeleteDocumentConfiguration({
2802
2811
  isOpen,
2803
2812
  onClose,
@@ -2813,24 +2822,24 @@ function DeleteDocumentConfiguration({
2813
2822
  };
2814
2823
  return (
2815
2824
  // Backdrop blur & darker backdrop for better focus
2816
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/40 fc:backdrop-blur-sm fc:p-4 fc:animate-in fc:fade-in fc:duration-200", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-md fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:border fc:border-gray-100 fc:overflow-hidden fc:transform fc:transition-all fc:scale-100", children: [
2817
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:fc:text-gray-600 hover:fc:fc:bg-gray-100 fc:transition-colors", "aria-label": "Close", children: "\u2715" }),
2818
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:p-8 fc:text-center", children: [
2819
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "fc:mx-auto fc:mb-4 fc:flex fc:h-14 fc:w-14 fc:items-center fc:justify-center fc:rounded-2xl fc:bg-red-50 fc:border fc:border-red-100 fc:text-red-500 fc:shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "fc:text-2xl", children: "\u26A0\uFE0F" }) }),
2820
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("h3", { className: "fc:text-xl fc:font-bold fc:text-gray-900 fc:tracking-tight fc:mb-2", children: "Delete Configuration" }),
2821
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("p", { className: "fc:text-sm fc:text-gray-500 fc:leading-relaxed fc:px-2 fc:mb-6", children: [
2825
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:bg-black/40 fc:backdrop-blur-sm fc:p-4 fc:animate-in fc:fade-in fc:duration-200", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-md fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:border fc:border-gray-100 fc:overflow-hidden fc:transform fc:transition-all fc:scale-100", children: [
2826
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:absolute fc:top-4 fc:right-4 fc:z-10 fc:flex fc:items-center fc:justify-center fc:w-8 fc:h-8 fc:rounded-full fc:text-gray-400 hover:fc:fc:text-gray-600 hover:fc:fc:bg-gray-100 fc:transition-colors", "aria-label": "Close", children: "\u2715" }),
2827
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:p-8 fc:text-center", children: [
2828
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "fc:mx-auto fc:mb-4 fc:flex fc:h-14 fc:w-14 fc:items-center fc:justify-center fc:rounded-2xl fc:bg-red-50 fc:border fc:border-red-100 fc:text-red-500 fc:shadow-inner", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-2xl", children: "\u26A0\uFE0F" }) }),
2829
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h3", { className: "fc:text-xl fc:font-bold fc:text-gray-900 fc:tracking-tight fc:mb-2", children: "Delete Configuration" }),
2830
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "fc:text-sm fc:text-gray-500 fc:leading-relaxed fc:px-2 fc:mb-6", children: [
2822
2831
  "Are you sure you want to delete",
2823
2832
  " ",
2824
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "fc:font-semibold fc:text-gray-900 fc:bg-gray-100 fc:px-2 fc:py-0.5 fc:rounded-md", children: [
2833
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "fc:font-semibold fc:text-gray-900 fc:bg-gray-100 fc:px-2 fc:py-0.5 fc:rounded-md", children: [
2825
2834
  '"',
2826
2835
  (documentData == null ? void 0 : documentData.docName) || "This item",
2827
2836
  '"'
2828
2837
  ] }),
2829
2838
  "? This action cannot be undone."
2830
2839
  ] }),
2831
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
2832
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:fc:bg-gray-200 active:fc:fc:bg-gray-300 fc:rounded-xl fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-gray-300", children: "Cancel" }),
2833
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("button", { type: "button", onClick: handleDelete, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:fc:bg-red-700 active:fc:fc:bg-red-800 fc:rounded-xl fc:shadow-md hover:fc:fc:shadow-lg fc:shadow-red-500/20 fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-red-500 focus:fc:fc:ring-offset-2", children: "Delete" })
2840
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-3", children: [
2841
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: onClose, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-gray-700 fc:bg-gray-100 hover:fc:fc:bg-gray-200 active:fc:fc:bg-gray-300 fc:rounded-xl fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-gray-300", children: "Cancel" }),
2842
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: handleDelete, className: "fc:w-1/2 fc:py-2.5 fc:px-4 fc:text-sm fc:font-semibold fc:text-white fc:bg-red-600 hover:fc:fc:bg-red-700 active:fc:fc:bg-red-800 fc:rounded-xl fc:shadow-md hover:fc:fc:shadow-lg fc:shadow-red-500/20 fc:transition-all fc:duration-150 focus:fc:fc:outline-none focus:fc:fc:ring-2 focus:fc:fc:ring-red-500 focus:fc:fc:ring-offset-2", children: "Delete" })
2834
2843
  ] })
2835
2844
  ] })
2836
2845
  ] }) })
@@ -2838,7 +2847,7 @@ function DeleteDocumentConfiguration({
2838
2847
  }
2839
2848
 
2840
2849
  // src/components/DocumentConfiguration/DocumentConfigurationTable.jsx
2841
- var import_jsx_runtime25 = require("react/jsx-runtime");
2850
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2842
2851
  function DocumentConfigTable({
2843
2852
  pageSize,
2844
2853
  searchQuery = "",
@@ -3022,12 +3031,12 @@ function DocumentConfigTable({
3022
3031
  maxSize: "12 MB",
3023
3032
  isMandatory: true
3024
3033
  }];
3025
- const [data, setData] = (0, import_react25.useState)(initialData);
3026
- const [sortOrder, setSortOrder] = (0, import_react25.useState)("asc");
3027
- const [sortKey, setSortKey] = (0, import_react25.useState)("docName");
3028
- const [isEditOpen, setIsEditOpen] = (0, import_react25.useState)(false);
3029
- const [isDeleteOpen, setIsDeleteOpen] = (0, import_react25.useState)(false);
3030
- const [selectedItem, setSelectedItem] = (0, import_react25.useState)(null);
3034
+ const [data, setData] = (0, import_react27.useState)(initialData);
3035
+ const [sortOrder, setSortOrder] = (0, import_react27.useState)("asc");
3036
+ const [sortKey, setSortKey] = (0, import_react27.useState)("docName");
3037
+ const [isEditOpen, setIsEditOpen] = (0, import_react27.useState)(false);
3038
+ const [isDeleteOpen, setIsDeleteOpen] = (0, import_react27.useState)(false);
3039
+ const [selectedItem, setSelectedItem] = (0, import_react27.useState)(null);
3031
3040
  const handleSort = (columnKey) => {
3032
3041
  const isAsc = sortKey === columnKey && sortOrder === "asc";
3033
3042
  setSortOrder(isAsc ? "desc" : "asc");
@@ -3043,7 +3052,7 @@ function DocumentConfigTable({
3043
3052
  const query = (searchQuery || "").toLowerCase();
3044
3053
  return item.docName.toLowerCase().includes(query) || item.extensions.toLowerCase().includes(query) || item.stepId.toLowerCase().includes(query);
3045
3054
  });
3046
- (0, import_react25.useEffect)(() => {
3055
+ (0, import_react27.useEffect)(() => {
3047
3056
  if (setTotalEntries) setTotalEntries(filteredData.length);
3048
3057
  }, [filteredData.length, setTotalEntries]);
3049
3058
  const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
@@ -3071,134 +3080,134 @@ function DocumentConfigTable({
3071
3080
  const handleConfirmDelete = (id) => {
3072
3081
  setData((prev) => prev.filter((item) => item.id !== id));
3073
3082
  };
3074
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:space-y-5", children: [
3075
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[1050px]", children: [
3076
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3077
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
3078
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("docName"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-60", children: [
3083
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:space-y-5", children: [
3084
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[1050px]", children: [
3085
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3086
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
3087
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("th", { onClick: () => handleSort("docName"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-60", children: [
3079
3088
  "Document Name ",
3080
3089
  sortKey === "docName" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3081
3090
  ] }),
3082
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("stepId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-40", children: [
3091
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("th", { onClick: () => handleSort("stepId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:text-center fc:w-40", children: [
3083
3092
  "Workflow Step ID ",
3084
3093
  sortKey === "stepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3085
3094
  ] }),
3086
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50", children: "Allowed Extensions" }),
3087
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("th", { onClick: () => handleSort("maxSize"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3095
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50", children: "Allowed Extensions" }),
3096
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("th", { onClick: () => handleSort("maxSize"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3088
3097
  "Max Size (MB) ",
3089
3098
  sortKey === "maxSize" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3090
3099
  ] }),
3091
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-32", children: "Is Mandatory" }),
3092
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-36", children: "Action" })
3100
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-32", children: "Is Mandatory" }),
3101
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:text-center fc:w-36", children: "Action" })
3093
3102
  ] }) }),
3094
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3095
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
3096
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.docName }),
3097
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-600 fc:text-center fc:font-semibold", children: item.stepId }),
3098
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs", children: item.extensions }),
3099
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-bold", children: item.maxSize }),
3100
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => toggleMandatory(item.id), className: `fc:relative fc:inline-flex fc:h-5.5 fc:w-10 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${item.isMandatory ? "bg-[#2563eb]" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-4.5 fc:w-4.5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${item.isMandatory ? "translate-x-4.5" : "translate-x-0"}` }) }) }),
3101
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
3102
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
3103
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
3103
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3104
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
3105
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.docName }),
3106
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-600 fc:text-center fc:font-semibold", children: item.stepId }),
3107
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs", children: item.extensions }),
3108
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-bold", children: item.maxSize }),
3109
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => toggleMandatory(item.id), className: `fc:relative fc:inline-flex fc:h-5.5 fc:w-10 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${item.isMandatory ? "bg-[#2563eb]" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-4.5 fc:w-4.5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${item.isMandatory ? "translate-x-4.5" : "translate-x-0"}` }) }) }),
3110
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("td", { className: "fc:py-3 fc:px-2 fc:text-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-center fc:gap-2", children: [
3111
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => handleEdit(item), className: "fc:px-3 fc:py-1 fc:bg-blue-100/70 hover:fc:fc:bg-blue-200/80 fc:text-blue-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Edit" }),
3112
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => handleDelete(item), className: "fc:px-3 fc:py-1 fc:bg-rose-100/70 hover:fc:fc:bg-rose-200/80 fc:text-rose-600 fc:font-semibold fc:text-xs fc:rounded-lg fc:transition-all fc:duration-150 fc:cursor-pointer", children: "Delete" })
3104
3113
  ] }) })
3105
3114
  ] }, item.id)) })
3106
3115
  ] }) }),
3107
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3108
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3109
- pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-[#2563eb] text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3110
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3116
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3117
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3118
+ pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-[#2563eb] text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3119
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3111
3120
  ] }),
3112
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(EditDocumentConfiguration, { isOpen: isEditOpen, onClose: () => setIsEditOpen(false), initialData: selectedItem, onSave: handleSaveEdit }),
3113
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DeleteDocumentConfiguration, { isOpen: isDeleteOpen, onClose: () => setIsDeleteOpen(false), documentData: selectedItem, onConfirm: handleConfirmDelete })
3121
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(EditDocumentConfiguration, { isOpen: isEditOpen, onClose: () => setIsEditOpen(false), initialData: selectedItem, onSave: handleSaveEdit }),
3122
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DeleteDocumentConfiguration, { isOpen: isDeleteOpen, onClose: () => setIsDeleteOpen(false), documentData: selectedItem, onConfirm: handleConfirmDelete })
3114
3123
  ] });
3115
3124
  }
3116
3125
 
3117
3126
  // src/components/DocumentConfiguration/AddDocumentConfigurationModal.jsx
3118
- var import_react26 = __toESM(require("react"));
3119
- var import_jsx_runtime26 = require("react/jsx-runtime");
3127
+ var import_react28 = __toESM(require("react"));
3128
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3120
3129
  function AddDocumentConfigModal({
3121
3130
  isOpen,
3122
3131
  onClose
3123
3132
  }) {
3124
- const [isMandatory, setIsMandatory] = (0, import_react26.useState)(false);
3133
+ const [isMandatory, setIsMandatory] = (0, import_react28.useState)(false);
3125
3134
  if (!isOpen) return null;
3126
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3127
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
3128
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
3129
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
3130
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3131
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Document Configuration" }),
3132
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Configure rule specifications for node file processing" })
3135
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3136
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
3137
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
3138
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
3139
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3140
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Document Configuration" }),
3141
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Configure rule specifications for node file processing" })
3133
3142
  ] }),
3134
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
3143
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
3135
3144
  ] }),
3136
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
3137
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3138
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3145
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
3146
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3147
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3139
3148
  "Document Name ",
3140
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
3149
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "fc:text-red-500", children: "*" })
3141
3150
  ] }),
3142
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. Identity Proof", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3143
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Label name of the required document" })
3151
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "text", placeholder: "e.g. Identity Proof", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3152
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Label name of the required document" })
3144
3153
  ] }),
3145
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3146
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3147
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3154
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3155
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3156
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3148
3157
  "Workflow Step ID ",
3149
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
3158
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "fc:text-red-500", children: "*" })
3150
3159
  ] }),
3151
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "number", placeholder: "e.g. 1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3152
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Numeric step sequence handler" })
3160
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "number", placeholder: "e.g. 1", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3161
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Numeric step sequence handler" })
3153
3162
  ] }),
3154
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3155
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3163
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3164
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3156
3165
  "Max Size (in MB) ",
3157
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" }),
3166
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "fc:text-red-500", children: "*" }),
3158
3167
  " "
3159
3168
  ] }),
3160
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. 10 MB", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3161
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Maximum upload limits permissible" })
3169
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "text", placeholder: "e.g. 10 MB", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3170
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Maximum upload limits permissible" })
3162
3171
  ] })
3163
3172
  ] }),
3164
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3165
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3173
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3174
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: [
3166
3175
  "Allowed Extensions ",
3167
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "fc:text-red-500", children: "*" })
3176
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "fc:text-red-500", children: "*" })
3168
3177
  ] }),
3169
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { type: "text", placeholder: "e.g. pdf, jpg, png", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3170
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Comma-separated standard format extensions" })
3178
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "text", placeholder: "e.g. pdf, jpg, png", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3179
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[9px] fc:text-red-500 fc:mt-0.5", children: "Comma-separated standard format extensions" })
3171
3180
  ] }),
3172
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-3.5 fc:bg-white fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm", children: [
3173
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
3174
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-800", children: "Is Mandatory File Field" }),
3175
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "fc:text-[10px] fc:text-red-500 fc:mt-0.5", children: "Check if user cannot bypass without uploading this file" })
3181
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-between fc:p-3.5 fc:bg-white fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm", children: [
3182
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
3183
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-800", children: "Is Mandatory File Field" }),
3184
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "fc:text-[10px] fc:text-red-500 fc:mt-0.5", children: "Check if user cannot bypass without uploading this file" })
3176
3185
  ] }),
3177
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { type: "button", onClick: () => setIsMandatory(!isMandatory), className: `fc:relative fc:inline-flex fc:h-6 fc:w-11 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${isMandatory ? "bg-blue-600" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-5 fc:w-5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${isMandatory ? "translate-x-5" : "translate-x-0"}` }) })
3186
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("button", { type: "button", onClick: () => setIsMandatory(!isMandatory), className: `fc:relative fc:inline-flex fc:h-6 fc:w-11 fc:shrink-0 fc:cursor-pointer fc:rounded-full fc:border-2 fc:border-transparent fc:transition-colors fc:duration-200 fc:ease-in-out fc:outline-none${isMandatory ? "bg-blue-600" : "bg-slate-200"}`, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: `fc:pointer-events-none fc:inline-block fc:h-5 fc:w-5 fc:transform fc:rounded-full fc:bg-white fc:shadow fc:ring-0 fc:transition fc:duration-200 fc:ease-in-out${isMandatory ? "translate-x-5" : "translate-x-0"}` }) })
3178
3187
  ] })
3179
3188
  ] }),
3180
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
3181
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
3182
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Rules" })
3189
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
3190
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
3191
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Rules" })
3183
3192
  ] })
3184
3193
  ] })
3185
3194
  ] });
3186
3195
  }
3187
3196
 
3188
3197
  // src/components/DocumentConfiguration/DocumentConfigurationmain.jsx
3189
- var import_jsx_runtime27 = require("react/jsx-runtime");
3198
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3190
3199
  function DocumentConfigurationmain() {
3191
- const [modalOpen, setModalOpen] = (0, import_react27.useState)(false);
3192
- const [pageSize, setPageSize] = (0, import_react27.useState)(10);
3193
- const [searchQuery, setSearchQuery] = (0, import_react27.useState)("");
3194
- const [currentPage, setCurrentPage] = (0, import_react27.useState)(1);
3195
- const [totalEntries, setTotalEntries] = (0, import_react27.useState)(0);
3200
+ const [modalOpen, setModalOpen] = (0, import_react29.useState)(false);
3201
+ const [pageSize, setPageSize] = (0, import_react29.useState)(10);
3202
+ const [searchQuery, setSearchQuery] = (0, import_react29.useState)("");
3203
+ const [currentPage, setCurrentPage] = (0, import_react29.useState)(1);
3204
+ const [totalEntries, setTotalEntries] = (0, import_react29.useState)(0);
3196
3205
  const handlePageSizeChange = (e) => {
3197
3206
  setPageSize(Number(e.target.value));
3198
3207
  setCurrentPage(1);
3199
3208
  };
3200
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
3201
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CommonHeader, { title: "Document Configuration", breadcrumbs: [{
3209
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
3210
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CommonHeader, { title: "Document Configuration", breadcrumbs: [{
3202
3211
  label: "Dashboard",
3203
3212
  href: "/dashboard"
3204
3213
  }, {
@@ -3211,36 +3220,36 @@ function DocumentConfigurationmain() {
3211
3220
  label: "Document Configuration",
3212
3221
  href: "/DocumentConfiguration"
3213
3222
  }], buttonText: "Add Document Configuration", onButtonClick: () => setModalOpen(true) }),
3214
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
3215
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
3216
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SearchBar3, { searchQuery, setSearchQuery, setCurrentPage }) }),
3217
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
3218
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: 5, children: "5 Rows" }),
3219
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: 10, children: "10 Rows" }),
3220
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: 20, children: "20 Rows" }),
3221
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("option", { value: 25, children: "25 Rows" })
3223
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
3224
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
3225
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SearchBar3, { searchQuery, setSearchQuery, setCurrentPage }) }),
3226
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
3227
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: 5, children: "5 Rows" }),
3228
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: 10, children: "10 Rows" }),
3229
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: 20, children: "20 Rows" }),
3230
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("option", { value: 25, children: "25 Rows" })
3222
3231
  ] }) })
3223
3232
  ] }),
3224
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DocumentConfigTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
3233
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DocumentConfigTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
3225
3234
  ] }) }),
3226
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(AddDocumentConfigModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
3235
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(AddDocumentConfigModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
3227
3236
  ] });
3228
3237
  }
3229
3238
 
3230
3239
  // src/components/AuditLog/AuditLogmain.jsx
3231
- var import_react31 = __toESM(require("react"));
3240
+ var import_react33 = __toESM(require("react"));
3232
3241
 
3233
3242
  // src/components/AuditLog/SearchBar.jsx
3234
- var import_react28 = __toESM(require("react"));
3235
- var import_jsx_runtime28 = require("react/jsx-runtime");
3243
+ var import_react30 = __toESM(require("react"));
3244
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3236
3245
  function SearchBar4({
3237
3246
  searchQuery,
3238
3247
  setSearchQuery,
3239
3248
  setCurrentPage
3240
3249
  }) {
3241
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
3242
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
3243
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
3250
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
3251
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
3252
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
3244
3253
  setSearchQuery(e.target.value);
3245
3254
  setCurrentPage(1);
3246
3255
  }, placeholder: "Search user or action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
@@ -3248,8 +3257,8 @@ function SearchBar4({
3248
3257
  }
3249
3258
 
3250
3259
  // src/components/AuditLog/AuditLogTable.jsx
3251
- var import_react29 = __toESM(require("react"));
3252
- var import_jsx_runtime29 = require("react/jsx-runtime");
3260
+ var import_react31 = __toESM(require("react"));
3261
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3253
3262
  function AuditLogTable({
3254
3263
  pageSize,
3255
3264
  searchQuery = "",
@@ -3458,9 +3467,9 @@ function AuditLogTable({
3458
3467
  ip: "192.168.1.45",
3459
3468
  time: "2026-07-17 15:55"
3460
3469
  }];
3461
- const [data, setData] = (0, import_react29.useState)(initialData);
3462
- const [sortOrder, setSortOrder] = (0, import_react29.useState)("asc");
3463
- const [sortKey, setSortKey] = (0, import_react29.useState)("logId");
3470
+ const [data, setData] = (0, import_react31.useState)(initialData);
3471
+ const [sortOrder, setSortOrder] = (0, import_react31.useState)("asc");
3472
+ const [sortKey, setSortKey] = (0, import_react31.useState)("logId");
3464
3473
  const handleSort = (columnKey) => {
3465
3474
  const isAsc = sortKey === columnKey && sortOrder === "asc";
3466
3475
  setSortOrder(isAsc ? "desc" : "asc");
@@ -3476,7 +3485,7 @@ function AuditLogTable({
3476
3485
  const query = (searchQuery || "").toLowerCase();
3477
3486
  return item.logId.toLowerCase().includes(query) || item.user.toLowerCase().includes(query) || item.section.toLowerCase().includes(query) || item.action.toLowerCase().includes(query);
3478
3487
  });
3479
- (0, import_react29.useEffect)(() => {
3488
+ (0, import_react31.useEffect)(() => {
3480
3489
  if (setTotalEntries) setTotalEntries(filteredData.length);
3481
3490
  }, [filteredData.length, setTotalEntries]);
3482
3491
  const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
@@ -3499,138 +3508,138 @@ function AuditLogTable({
3499
3508
  return "bg-slate-50 text-slate-700 border border-slate-200";
3500
3509
  }
3501
3510
  };
3502
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:space-y-5", children: [
3503
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-auto", children: [
3504
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3505
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("th", { className: "fc:py-4 fc:px-4 fc:w-16 fc:text-center fc:bg-slate-50", children: "S.No" }),
3506
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("logId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3511
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:space-y-5", children: [
3512
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[420px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-auto", children: [
3513
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3514
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("th", { className: "fc:py-4 fc:px-4 fc:w-16 fc:text-center fc:bg-slate-50", children: "S.No" }),
3515
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("th", { onClick: () => handleSort("logId"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3507
3516
  "Log ID ",
3508
3517
  sortKey === "logId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3509
3518
  ] }),
3510
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("user"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3519
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("th", { onClick: () => handleSort("user"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3511
3520
  "User Name ",
3512
3521
  sortKey === "user" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3513
3522
  ] }),
3514
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("action"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3523
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("th", { onClick: () => handleSort("action"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3515
3524
  "Action ",
3516
3525
  sortKey === "action" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3517
3526
  ] }),
3518
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("section"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3527
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("th", { onClick: () => handleSort("section"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3519
3528
  "Section Modules ",
3520
3529
  sortKey === "section" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3521
3530
  ] }),
3522
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:whitespace-nowrap", children: "IP Address" }),
3523
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("th", { onClick: () => handleSort("time"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3531
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("th", { className: "fc:py-4 fc:px-5 fc:text-sm fc:bg-slate-50 fc:whitespace-nowrap", children: "IP Address" }),
3532
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("th", { onClick: () => handleSort("time"), className: "fc:py-4 fc:px-5 fc:text-sm fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:whitespace-nowrap", children: [
3524
3533
  "Timestamp ",
3525
3534
  sortKey === "time" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3526
3535
  ] })
3527
3536
  ] }) }),
3528
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3529
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-4 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
3530
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px] fc:whitespace-nowrap", children: item.logId }),
3531
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-semibold fc:whitespace-nowrap", children: item.user }),
3532
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md fc:tracking-wide${getActionBadge(item.action)}`, children: item.action }) }),
3533
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.section }),
3534
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs fc:whitespace-nowrap", children: item.ip }),
3535
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.time })
3537
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3538
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-4 fc:text-center fc:font-medium fc:text-slate-400", children: startIndex + index + 1 }),
3539
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px] fc:whitespace-nowrap", children: item.logId }),
3540
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-semibold fc:whitespace-nowrap", children: item.user }),
3541
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md fc:tracking-wide${getActionBadge(item.action)}`, children: item.action }) }),
3542
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.section }),
3543
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-mono fc:text-xs fc:whitespace-nowrap", children: item.ip }),
3544
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500 fc:font-medium fc:whitespace-nowrap", children: item.time })
3536
3545
  ] }, item.id)) })
3537
3546
  ] }) }),
3538
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3539
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3540
- pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3541
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3547
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3548
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3549
+ pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3550
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3542
3551
  ] })
3543
3552
  ] });
3544
3553
  }
3545
3554
 
3546
3555
  // src/components/AuditLog/AddAuditLogModal.jsx
3547
- var import_react30 = __toESM(require("react"));
3548
- var import_jsx_runtime30 = require("react/jsx-runtime");
3556
+ var import_react32 = __toESM(require("react"));
3557
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3549
3558
  function AddAuditLogModal({
3550
3559
  isOpen,
3551
3560
  onClose
3552
3561
  }) {
3553
3562
  if (!isOpen) return null;
3554
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3555
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
3556
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
3557
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
3558
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3559
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Audit Entry" }),
3560
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Manually insert security audit trail incident" })
3563
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3564
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
3565
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
3566
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
3567
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3568
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Audit Entry" }),
3569
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Manually insert security audit trail incident" })
3561
3570
  ] }),
3562
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
3571
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
3563
3572
  ] }),
3564
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
3565
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3566
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3567
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Log ID *" }),
3568
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. AUD-926", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3569
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique tracking ledger key code" })
3573
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
3574
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3575
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3576
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Log ID *" }),
3577
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", placeholder: "e.g. AUD-926", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3578
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique tracking ledger key code" })
3570
3579
  ] }),
3571
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3572
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "User Name *" }),
3573
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Amit Sharma", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3574
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Profile designation handling agent" })
3580
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3581
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "User Name *" }),
3582
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", placeholder: "e.g. Amit Sharma", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3583
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Profile designation handling agent" })
3575
3584
  ] })
3576
3585
  ] }),
3577
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3578
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3579
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Type *" }),
3580
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
3581
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "CREATE", children: "CREATE" }),
3582
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "UPDATE", children: "UPDATE" }),
3583
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "DELETE", children: "DELETE" }),
3584
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("option", { value: "LOGIN", children: "LOGIN" })
3586
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3587
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3588
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Type *" }),
3589
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("select", { className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
3590
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "CREATE", children: "CREATE" }),
3591
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "UPDATE", children: "UPDATE" }),
3592
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "DELETE", children: "DELETE" }),
3593
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("option", { value: "LOGIN", children: "LOGIN" })
3585
3594
  ] }),
3586
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Operational type category executed" })
3595
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Operational type category executed" })
3587
3596
  ] }),
3588
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3589
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "IP Address *" }),
3590
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. 192.168.1.45", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3591
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Terminal remote system IP node" })
3597
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3598
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "IP Address *" }),
3599
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", placeholder: "e.g. 192.168.1.45", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3600
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Terminal remote system IP node" })
3592
3601
  ] })
3593
3602
  ] }),
3594
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3595
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3596
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Section Module *" }),
3597
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "text", placeholder: "e.g. Document Config", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3598
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Target segment modified in configuration" })
3603
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
3604
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3605
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Section Module *" }),
3606
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", placeholder: "e.g. Document Config", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none fc:bg-white" }),
3607
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Target segment modified in configuration" })
3599
3608
  ] }),
3600
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3601
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Timestamp *" }),
3602
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("input", { type: "datetime-local", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
3603
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Precise server localized execution record date" })
3609
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3610
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Timestamp *" }),
3611
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "datetime-local", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
3612
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Precise server localized execution record date" })
3604
3613
  ] })
3605
3614
  ] }),
3606
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
3607
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Meta Details / Changes Summary" }),
3608
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("textarea", { rows: 2, placeholder: "Enter technical trace logs or query payload metadata...", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
3609
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Log data state differential dumps if required" })
3615
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
3616
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Meta Details / Changes Summary" }),
3617
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("textarea", { rows: 2, placeholder: "Enter technical trace logs or query payload metadata...", className: "fc:w-full fc:p-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
3618
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Log data state differential dumps if required" })
3610
3619
  ] })
3611
3620
  ] }),
3612
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
3613
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
3614
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Commit Entry" })
3621
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
3622
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
3623
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Commit Entry" })
3615
3624
  ] })
3616
3625
  ] })
3617
3626
  ] });
3618
3627
  }
3619
3628
 
3620
3629
  // src/components/AuditLog/AuditLogmain.jsx
3621
- var import_jsx_runtime31 = require("react/jsx-runtime");
3630
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3622
3631
  function AuditLogmain() {
3623
- const [modalOpen, setModalOpen] = (0, import_react31.useState)(false);
3624
- const [pageSize, setPageSize] = (0, import_react31.useState)(10);
3625
- const [searchQuery, setSearchQuery] = (0, import_react31.useState)("");
3626
- const [currentPage, setCurrentPage] = (0, import_react31.useState)(1);
3627
- const [totalEntries, setTotalEntries] = (0, import_react31.useState)(0);
3632
+ const [modalOpen, setModalOpen] = (0, import_react33.useState)(false);
3633
+ const [pageSize, setPageSize] = (0, import_react33.useState)(10);
3634
+ const [searchQuery, setSearchQuery] = (0, import_react33.useState)("");
3635
+ const [currentPage, setCurrentPage] = (0, import_react33.useState)(1);
3636
+ const [totalEntries, setTotalEntries] = (0, import_react33.useState)(0);
3628
3637
  const handlePageSizeChange = (e) => {
3629
3638
  setPageSize(Number(e.target.value));
3630
3639
  setCurrentPage(1);
3631
3640
  };
3632
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
3633
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(CommonHeader, { title: "Audit Log", breadcrumbs: [{
3641
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
3642
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(CommonHeader, { title: "Audit Log", breadcrumbs: [{
3634
3643
  label: "Dashboard",
3635
3644
  href: "/dashboard"
3636
3645
  }, {
@@ -3643,36 +3652,36 @@ function AuditLogmain() {
3643
3652
  label: "Audit Log",
3644
3653
  href: "/auditlog"
3645
3654
  }], buttonText: "Add Audit Log", onButtonClick: () => setModalOpen(true) }),
3646
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
3647
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
3648
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SearchBar4, { searchQuery, setSearchQuery, setCurrentPage }) }),
3649
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
3650
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: 5, children: "5 Rows" }),
3651
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: 10, children: "10 Rows" }),
3652
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: 20, children: "20 Rows" }),
3653
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("option", { value: 25, children: "25 Rows" })
3655
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
3656
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
3657
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SearchBar4, { searchQuery, setSearchQuery, setCurrentPage }) }),
3658
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
3659
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: 5, children: "5 Rows" }),
3660
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: 10, children: "10 Rows" }),
3661
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: 20, children: "20 Rows" }),
3662
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("option", { value: 25, children: "25 Rows" })
3654
3663
  ] }) })
3655
3664
  ] }),
3656
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AuditLogTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
3665
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AuditLogTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
3657
3666
  ] }) }),
3658
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(AddAuditLogModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
3667
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(AddAuditLogModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
3659
3668
  ] });
3660
3669
  }
3661
3670
 
3662
3671
  // src/components/MovementHistory/MovementHistorymain.jsx
3663
- var import_react35 = __toESM(require("react"));
3672
+ var import_react37 = __toESM(require("react"));
3664
3673
 
3665
3674
  // src/components/MovementHistory/SearchBar.jsx
3666
- var import_react32 = __toESM(require("react"));
3667
- var import_jsx_runtime32 = require("react/jsx-runtime");
3675
+ var import_react34 = __toESM(require("react"));
3676
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3668
3677
  function SearchBar5({
3669
3678
  searchQuery,
3670
3679
  setSearchQuery,
3671
3680
  setCurrentPage
3672
3681
  }) {
3673
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
3674
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
3675
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
3682
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:relative fc:max-w-sm fc:w-full", children: [
3683
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "fc:absolute fc:inset-y-0 fc:left-0 fc:flex fc:items-center fc:pl-3.5 fc:pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("svg", { className: "fc:w-4.5 fc:h-4.5 fc:text-slate-400", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" }) }) }),
3684
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", value: searchQuery, onChange: (e) => {
3676
3685
  setSearchQuery(e.target.value);
3677
3686
  setCurrentPage(1);
3678
3687
  }, placeholder: "Instance or Action...", className: "fc:w-full fc:pl-10 fc:pr-4 fc:py-2.5 fc:border fc:border-slate-200 fc:rounded-xl fc:text-sm fc:bg-slate-50/50 focus:fc:fc:outline-none focus:fc:fc:ring-4 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:text-slate-700 fc:placeholder-slate-400 fc:transition-all fc:shadow-sm" })
@@ -3680,8 +3689,8 @@ function SearchBar5({
3680
3689
  }
3681
3690
 
3682
3691
  // src/components/MovementHistory/MovementHistoryTable.jsx
3683
- var import_react33 = __toESM(require("react"));
3684
- var import_jsx_runtime33 = require("react/jsx-runtime");
3692
+ var import_react35 = __toESM(require("react"));
3693
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3685
3694
  function MovementHistoryTable({
3686
3695
  pageSize,
3687
3696
  searchQuery = "",
@@ -3890,9 +3899,9 @@ function MovementHistoryTable({
3890
3899
  toStepId: "APPROVE",
3891
3900
  movedOn: "2026-02-12"
3892
3901
  }];
3893
- const [data, setData] = (0, import_react33.useState)(initialData);
3894
- const [sortOrder, setSortOrder] = (0, import_react33.useState)("asc");
3895
- const [sortKey, setSortKey] = (0, import_react33.useState)("movementHistoryId");
3902
+ const [data, setData] = (0, import_react35.useState)(initialData);
3903
+ const [sortOrder, setSortOrder] = (0, import_react35.useState)("asc");
3904
+ const [sortKey, setSortKey] = (0, import_react35.useState)("movementHistoryId");
3896
3905
  const handleSort = (columnKey) => {
3897
3906
  const isAsc = sortKey === columnKey && sortOrder === "asc";
3898
3907
  setSortOrder(isAsc ? "desc" : "asc");
@@ -3908,7 +3917,7 @@ function MovementHistoryTable({
3908
3917
  const query = (searchQuery || "").toLowerCase();
3909
3918
  return item.movementHistoryId.toLowerCase().includes(query) || item.name.toLowerCase().includes(query) || item.toStepId.toLowerCase().includes(query);
3910
3919
  });
3911
- (0, import_react33.useEffect)(() => {
3920
+ (0, import_react35.useEffect)(() => {
3912
3921
  if (setTotalEntries) setTotalEntries(filteredData.length);
3913
3922
  }, [filteredData.length, setTotalEntries]);
3914
3923
  const totalPages = Math.ceil(filteredData.length / pageSize) || 1;
@@ -3931,141 +3940,141 @@ function MovementHistoryTable({
3931
3940
  return "bg-slate-50 text-slate-700 border border-slate-200";
3932
3941
  }
3933
3942
  };
3934
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:space-y-5", children: [
3935
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[400px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[900px]", children: [
3936
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3937
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
3938
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movementHistoryId"), className: "fc:py-4 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-44", children: [
3943
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:space-y-5", children: [
3944
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "fc:w-full fc:overflow-x-auto fc:border fc:border-slate-200 fc:rounded-2xl fc:shadow-sm fc:max-h-[400px] fc:overflow-y-auto fc:custom-scrollbar", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("table", { className: "fc:w-full fc:text-left fc:border-collapse fc:bg-white fc:table-fixed fc:min-w-[900px]", children: [
3945
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("thead", { className: "fc:sticky fc:top-0 fc:z-10 fc:bg-slate-50 fc:shadow-[0_1px_0_0_rgba(226,232,240,1)]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("tr", { className: "fc:text-xs fc:font-bold fc:tracking-wider fc:text-slate-500", children: [
3946
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("th", { className: "fc:py-4 fc:px-5 fc:w-20 fc:text-center fc:bg-slate-50", children: "S.No" }),
3947
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("movementHistoryId"), className: "fc:py-4 fc:px-5 fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-44", children: [
3939
3948
  "Movement History ID ",
3940
3949
  sortKey === "movementHistoryId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3941
3950
  ] }),
3942
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("name"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-56", children: [
3951
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("name"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50 fc:w-56", children: [
3943
3952
  "Name ",
3944
3953
  sortKey === "name" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3945
3954
  ] }),
3946
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fileInstanceId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3955
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("fileInstanceId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3947
3956
  "File Instance ID ",
3948
3957
  sortKey === "fileInstanceId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3949
3958
  ] }),
3950
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("fromStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3959
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("fromStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3951
3960
  "FromStepID ",
3952
3961
  sortKey === "fromStepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3953
3962
  ] }),
3954
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("toStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3963
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("toStepId"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3955
3964
  "ToStepID ",
3956
3965
  sortKey === "toStepId" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3957
3966
  ] }),
3958
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("th", { onClick: () => handleSort("movedOn"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3967
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("th", { onClick: () => handleSort("movedOn"), className: "fc:py-4 fc:px-5 fc:text-medium fc:cursor-pointer fc:select-none hover:fc:fc:text-slate-900 fc:bg-slate-50", children: [
3959
3968
  "ActionCode ",
3960
3969
  sortKey === "movedOn" ? sortOrder === "asc" ? "\u25B2" : "\u25BC" : "\u25B2"
3961
3970
  ] })
3962
3971
  ] }) }),
3963
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3964
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400 fc:w-20", children: startIndex + index + 1 }),
3965
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.movementHistoryId }),
3966
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-medium fc:truncate", children: item.name }),
3967
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fileInstanceId }),
3968
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fromStepId }),
3969
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-semibold fc:text-slate-700", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md${getActionBadgeColor(item.toStepId)}`, children: item.toStepId }) }),
3970
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.movedOn })
3972
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("tbody", { className: "fc:divide-y fc:divide-slate-100 fc:text-sm fc:text-slate-600", children: visibleData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("tr", { className: "hover:fc:fc:bg-slate-50/50 fc:transition-colors", children: [
3973
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-center fc:font-medium fc:text-slate-400 fc:w-20", children: startIndex + index + 1 }),
3974
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-bold fc:text-slate-900 fc:text-[14px]", children: item.movementHistoryId }),
3975
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-900 fc:font-medium fc:truncate", children: item.name }),
3976
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fileInstanceId }),
3977
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.fromStepId }),
3978
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:font-semibold fc:text-slate-700", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: `fc:px-2.5 fc:py-1 fc:text-[11px] fc:font-bold fc:rounded-md${getActionBadgeColor(item.toStepId)}`, children: item.toStepId }) }),
3979
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("td", { className: "fc:py-4 fc:px-5 fc:text-slate-500", children: item.movedOn })
3971
3980
  ] }, item.id)) })
3972
3981
  ] }) }),
3973
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3974
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3975
- pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3976
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3982
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:flex fc:items-center fc:justify-end fc:gap-1 fc:text-[13px] fc:text-slate-700 fc:font-normal fc:mt-4 fc:bg-slate-50/50 fc:p-3 fc:rounded-xl fc:border fc:border-slate-100", children: [
3983
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.max(prev - 1, 1)), disabled: currentPage === 1, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:mr-2 disabled:fc:fc:opacity-40", children: "\u2039 Prev" }),
3984
+ pageNumbers.map((pageNumber) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("button", { onClick: () => setCurrentPage(pageNumber), className: `fc:px-3 fc:py-1 fc:text-center fc:rounded fc:transition-all fc:min-w-[28px]${currentPage === pageNumber ? "bg-blue-600 text-white font-medium shadow-sm" : "text-slate-600 hover:bg-slate-100"}`, children: pageNumber }, pageNumber)),
3985
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("button", { onClick: () => setCurrentPage((prev) => Math.min(prev + 1, totalPages)), disabled: currentPage === totalPages, className: "fc:px-2.5 fc:py-1 fc:text-slate-500 hover:fc:fc:text-slate-900 fc:ml-2 disabled:fc:fc:opacity-40", children: "Next \u203A" })
3977
3986
  ] })
3978
3987
  ] });
3979
3988
  }
3980
3989
 
3981
3990
  // src/components/MovementHistory/AddMovementHistoryModal.jsx
3982
- var import_react34 = __toESM(require("react"));
3983
- var import_jsx_runtime34 = require("react/jsx-runtime");
3991
+ var import_react36 = __toESM(require("react"));
3992
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3984
3993
  function AddMovementHistoryModal({
3985
3994
  isOpen,
3986
3995
  onClose
3987
3996
  }) {
3988
3997
  if (!isOpen) return null;
3989
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3990
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
3991
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
3992
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
3993
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
3994
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Movement History" }),
3995
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Create a new movement audit trail entry" })
3998
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:fixed fc:inset-0 fc:z-50 fc:flex fc:items-center fc:justify-center fc:p-4", children: [
3999
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:fixed fc:inset-0 fc:bg-slate-900/50 fc:backdrop-blur-sm fc:transition-opacity", onClick: onClose }),
4000
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:relative fc:w-full fc:max-w-2xl fc:bg-white fc:rounded-3xl fc:shadow-2xl fc:flex fc:flex-col fc:z-10 fc:max-h-[92vh] fc:overflow-hidden fc:animate-in fc:fade-in fc:zoom-in-95 fc:duration-200", children: [
4001
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:px-8 fc:py-5 fc:border-b fc:border-slate-100", children: [
4002
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4003
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h2", { className: "fc:text-lg fc:font-extrabold fc:text-slate-800", children: "Add Movement History" }),
4004
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[11px] fc:text-slate-400 fc:mt-0.5", children: "Create a new movement audit trail entry" })
3996
4005
  ] }),
3997
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
4006
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { onClick: onClose, className: "fc:text-slate-400 hover:fc:fc:text-slate-600 fc:p-1.5 fc:rounded-full fc:transition-all fc:text-sm fc:font-semibold", children: "\u2715" })
3998
4007
  ] }),
3999
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
4000
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4001
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4002
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement History ID *" }),
4003
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 21", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4004
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique primary key for history record" })
4008
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:p-6 fc:space-y-5 fc:overflow-y-auto fc:bg-slate-50/30", children: [
4009
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4010
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement History ID *" }),
4012
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { type: "text", placeholder: "e.g. 21", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4013
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Unique primary key for history record" })
4005
4014
  ] }),
4006
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4007
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "File Instance ID *" }),
4008
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 101", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4009
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Associated unique document/transaction ID" })
4015
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4016
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "File Instance ID *" }),
4017
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { type: "text", placeholder: "e.g. 101", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4018
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Associated unique document/transaction ID" })
4010
4019
  ] })
4011
4020
  ] }),
4012
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4013
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4014
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "From Step ID *" }),
4015
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 1", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4016
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Starting step workflow node" })
4021
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4022
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4023
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "From Step ID *" }),
4024
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { type: "text", placeholder: "e.g. 1", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4025
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Starting step workflow node" })
4017
4026
  ] }),
4018
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4019
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "To Step ID *" }),
4020
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "text", placeholder: "e.g. 2", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4021
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Destination target step node" })
4027
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4028
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "To Step ID *" }),
4029
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { type: "text", placeholder: "e.g. 2", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 focus:fc:fc:ring-2 focus:fc:fc:ring-blue-500/10 focus:fc:fc:border-blue-500 fc:outline-none" }),
4030
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Destination target step node" })
4022
4031
  ] })
4023
4032
  ] }),
4024
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4025
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4026
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Code *" }),
4027
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("select", { className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
4028
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "APPROVE", children: "APPROVE" }),
4029
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "RETURN", children: "RETURN" }),
4030
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "FORWARD", children: "FORWARD" }),
4031
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("option", { value: "REJECT", children: "REJECT" })
4033
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:grid fc:grid-cols-1 md:fc:fc:grid-cols-2 fc:gap-4", children: [
4034
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4035
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Action Code *" }),
4036
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("select", { className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none", children: [
4037
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { value: "APPROVE", children: "APPROVE" }),
4038
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { value: "RETURN", children: "RETURN" }),
4039
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { value: "FORWARD", children: "FORWARD" }),
4040
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("option", { value: "REJECT", children: "REJECT" })
4032
4041
  ] }),
4033
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Execution code action state" })
4042
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Execution code action state" })
4034
4043
  ] }),
4035
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4036
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Moved On *" }),
4037
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { type: "date", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
4038
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Movement record date timestamp" })
4044
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4045
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Moved On *" }),
4046
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { type: "date", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:bg-white fc:text-slate-700 focus:fc:fc:border-blue-500 fc:outline-none" }),
4047
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Movement record date timestamp" })
4039
4048
  ] })
4040
4049
  ] }),
4041
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
4042
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement Comments / Remarks" }),
4043
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("textarea", { rows: 2, placeholder: "Enter audit remarks or transaction notes...", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
4044
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Optional workflow remarks for documentation" })
4050
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4051
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: "fc:block fc:text-xs fc:font-bold fc:text-slate-700 fc:mb-1", children: "Movement Comments / Remarks" }),
4052
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("textarea", { rows: 2, placeholder: "Enter audit remarks or transaction notes...", className: "fc:w-full fc:p-2 fc:border fc:border-slate-200 fc:rounded-xl fc:text-xs fc:placeholder-slate-400 fc:text-slate-700 fc:resize-none focus:fc:fc:border-blue-500 fc:outline-none" }),
4053
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[9px] fc:text-slate-400 fc:mt-0.5", children: "Optional workflow remarks for documentation" })
4045
4054
  ] })
4046
4055
  ] }),
4047
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
4048
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
4049
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Record" })
4056
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:justify-end fc:gap-3 fc:px-8 fc:py-4 fc:border-t fc:border-slate-100 fc:bg-white", children: [
4057
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { onClick: onClose, className: "fc:px-4 fc:py-2 fc:text-xs fc:font-bold fc:text-slate-500 hover:fc:fc:text-slate-700 fc:transition-colors", children: "\u2715 Cancel" }),
4058
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { className: "fc:px-5 fc:py-2 fc:text-xs fc:font-bold fc:text-white fc:bg-blue-600 hover:fc:fc:bg-blue-700 fc:rounded-xl fc:transition-all fc:shadow-sm", children: "Save Record" })
4050
4059
  ] })
4051
4060
  ] })
4052
4061
  ] });
4053
4062
  }
4054
4063
 
4055
4064
  // src/components/MovementHistory/MovementHistorymain.jsx
4056
- var import_jsx_runtime35 = require("react/jsx-runtime");
4065
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4057
4066
  function MovementHistorymain() {
4058
- const [modalOpen, setModalOpen] = (0, import_react35.useState)(false);
4059
- const [pageSize, setPageSize] = (0, import_react35.useState)(10);
4060
- const [searchQuery, setSearchQuery] = (0, import_react35.useState)("");
4061
- const [currentPage, setCurrentPage] = (0, import_react35.useState)(1);
4062
- const [totalEntries, setTotalEntries] = (0, import_react35.useState)(0);
4067
+ const [modalOpen, setModalOpen] = (0, import_react37.useState)(false);
4068
+ const [pageSize, setPageSize] = (0, import_react37.useState)(10);
4069
+ const [searchQuery, setSearchQuery] = (0, import_react37.useState)("");
4070
+ const [currentPage, setCurrentPage] = (0, import_react37.useState)(1);
4071
+ const [totalEntries, setTotalEntries] = (0, import_react37.useState)(0);
4063
4072
  const handlePageSizeChange = (e) => {
4064
4073
  setPageSize(Number(e.target.value));
4065
4074
  setCurrentPage(1);
4066
4075
  };
4067
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
4068
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CommonHeader, { title: "Movement History", breadcrumbs: [{
4076
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "fc:h-screen fc:overflow-hidden fc:bg-slate-50 fc:p-4 md:fc:fc:p-6", children: [
4077
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CommonHeader, { title: "Movement History", breadcrumbs: [{
4069
4078
  label: "Dashboard",
4070
4079
  href: "/dashboard"
4071
4080
  }, {
@@ -4078,113 +4087,113 @@ function MovementHistorymain() {
4078
4087
  label: "Movement History",
4079
4088
  href: "/movementhistory"
4080
4089
  }], buttonText: "Add Movement History", onButtonClick: () => setModalOpen(true) }),
4081
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
4082
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
4083
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SearchBar5, { searchQuery, setSearchQuery, setCurrentPage }) }),
4084
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
4085
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: 5, children: "5 Rows" }),
4086
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: 10, children: "10 Rows" }),
4087
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: 20, children: "20 Rows" }),
4088
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("option", { value: 25, children: "25 Rows" })
4090
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "fc:w-full fc:space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "fc:bg-white fc:p-6 fc:rounded-2xl fc:border fc:border-slate-200/80 fc:shadow-sm fc:space-y-5", children: [
4091
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "fc:flex fc:justify-between fc:items-center fc:w-full fc:gap-4", children: [
4092
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "fc:w-full fc:max-w-xs", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SearchBar5, { searchQuery, setSearchQuery, setCurrentPage }) }),
4093
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("select", { value: pageSize, onChange: handlePageSizeChange, className: "fc:border fc:border-slate-200 fc:rounded-lg fc:px-3 fc:py-2 fc:text-sm fc:bg-white fc:cursor-pointer fc:outline-none fc:shadow-sm fc:text-slate-700", children: [
4094
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("option", { value: 5, children: "5 Rows" }),
4095
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("option", { value: 10, children: "10 Rows" }),
4096
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("option", { value: 20, children: "20 Rows" }),
4097
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("option", { value: 25, children: "25 Rows" })
4089
4098
  ] }) })
4090
4099
  ] }),
4091
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(MovementHistoryTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
4100
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(MovementHistoryTable, { pageSize, searchQuery, currentPage, setCurrentPage, setTotalEntries })
4092
4101
  ] }) }),
4093
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(AddMovementHistoryModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
4102
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AddMovementHistoryModal, { isOpen: modalOpen, onClose: () => setModalOpen(false) })
4094
4103
  ] });
4095
4104
  }
4096
4105
 
4097
4106
  // src/components/Sidebar.jsx
4098
- var import_jsx_runtime36 = require("react/jsx-runtime");
4107
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4099
4108
  var workflowItems = [
4100
- // Menu Name // component or page-Use function name
4109
+ // Menu Name testing // component or page-Use function name
4101
4110
  {
4102
4111
  name: "Workflow Type",
4103
4112
  component: "workflowType",
4104
- icon: import_react37.RiGitMergeLine
4113
+ icon: import_react39.RiGitMergeLine
4105
4114
  },
4106
4115
  {
4107
4116
  name: "Workflow",
4108
4117
  component: "workflow",
4109
- icon: import_react37.RiNodeTree
4118
+ icon: import_react39.RiNodeTree
4110
4119
  },
4111
4120
  {
4112
4121
  name: "Workflow Step",
4113
4122
  component: "workflowStep",
4114
- icon: import_react37.RiGitBranchLine
4123
+ icon: import_react39.RiGitBranchLine
4115
4124
  },
4116
4125
  {
4117
4126
  name: "Workflow Transition",
4118
4127
  component: "workflowTransition",
4119
- icon: import_react37.RiCornerDownRightLine
4128
+ icon: import_react39.RiCornerDownRightLine
4120
4129
  }
4121
4130
  ];
4122
4131
  var permissionItems = [{
4123
4132
  name: "Task Permission",
4124
4133
  component: "Task_permission_main",
4125
- icon: import_react37.RiUserSettingsLine
4134
+ icon: import_react39.RiUserSettingsLine
4126
4135
  }, {
4127
4136
  name: "Assignment Rule",
4128
4137
  component: "Assignment_rule_main",
4129
- icon: import_react37.RiFileShieldLine
4138
+ icon: import_react39.RiFileShieldLine
4130
4139
  }];
4131
4140
  var hierarchyItems = [{
4132
4141
  name: "Hierarchy Node",
4133
4142
  path: "/HierarchyNodePage",
4134
- icon: import_react37.RiNodeTree
4143
+ icon: import_react39.RiNodeTree
4135
4144
  }, {
4136
4145
  name: "User Hierarchy Mapping",
4137
4146
  component: "User_hierarchy_mapping_main",
4138
- icon: import_react37.RiUserSharedLine
4147
+ icon: import_react39.RiUserSharedLine
4139
4148
  }, {
4140
4149
  name: "Workflow Settings",
4141
4150
  component: "WorkflowSettingMain",
4142
- icon: import_react37.RiSettings4Line
4151
+ icon: import_react39.RiSettings4Line
4143
4152
  }];
4144
4153
  var documentItems = [{
4145
4154
  name: "Document Configuration",
4146
4155
  component: "DocumentConfigurationmain",
4147
- icon: import_react37.RiFileSettingsLine
4156
+ icon: import_react39.RiFileSettingsLine
4148
4157
  }];
4149
4158
  var fileItems = [{
4150
4159
  name: "File Instance",
4151
4160
  path: "/FileInstance",
4152
- icon: import_react37.RiFileList3Line
4161
+ icon: import_react39.RiFileList3Line
4153
4162
  }, {
4154
4163
  name: "BusinessEntity",
4155
4164
  path: "/BusinessEntity",
4156
- icon: import_react37.RiFileList3Line
4165
+ icon: import_react39.RiFileList3Line
4157
4166
  }, {
4158
4167
  name: "File Pool",
4159
4168
  path: "/FilePoolPage",
4160
- icon: import_react37.RiDatabase2Line
4169
+ icon: import_react39.RiDatabase2Line
4161
4170
  }, {
4162
4171
  name: "Uploaded Document",
4163
4172
  path: "/UploadedDocumentPage",
4164
- icon: import_react37.RiFileUploadLine
4173
+ icon: import_react39.RiFileUploadLine
4165
4174
  }];
4166
4175
  var communicationItems = [{
4167
4176
  name: "Notification",
4168
4177
  component: "Notification_main",
4169
- icon: import_react37.RiNotification4Line
4178
+ icon: import_react39.RiNotification4Line
4170
4179
  }, {
4171
4180
  name: "Comment",
4172
4181
  path: "/comment",
4173
- icon: import_react37.RiChat3Line
4182
+ icon: import_react39.RiChat3Line
4174
4183
  }];
4175
4184
  var taskItems = [{
4176
4185
  name: "Task Instance",
4177
4186
  path: "/taskinstance",
4178
- icon: import_react37.RiCheckboxMultipleLine
4187
+ icon: import_react39.RiCheckboxMultipleLine
4179
4188
  }];
4180
4189
  var trackingItems = [{
4181
4190
  name: "Audit Log",
4182
4191
  component: "AuditLogmain",
4183
- icon: import_react37.RiShieldCheckLine
4192
+ icon: import_react39.RiShieldCheckLine
4184
4193
  }, {
4185
4194
  name: "Movement History",
4186
4195
  component: "MovementHistorymain",
4187
- icon: import_react37.RiHistoryLine
4196
+ icon: import_react39.RiHistoryLine
4188
4197
  }];
4189
4198
  function Sidebar({
4190
4199
  isOpen,
@@ -4192,20 +4201,20 @@ function Sidebar({
4192
4201
  childrens
4193
4202
  }) {
4194
4203
  const router = (0, import_router.useRouter)();
4195
- const [workflowOpen, setWorkflowOpen] = (0, import_react36.useState)(false);
4196
- const [permissionOpen, setPermissionOpen] = (0, import_react36.useState)(false);
4197
- const [hierarchyOpen, setHierarchyOpen] = (0, import_react36.useState)(false);
4198
- const [documentOpen, setDocumentOpen] = (0, import_react36.useState)(false);
4199
- const [filesOpen, setFilesOpen] = (0, import_react36.useState)(false);
4200
- const [tasksOpen, setTasksOpen] = (0, import_react36.useState)(false);
4201
- const [trackingOpen, setTrackingOpen] = (0, import_react36.useState)(false);
4202
- const [communicationOpen, setCommunicationOpen] = (0, import_react36.useState)(false);
4203
- const [activeComponent, setActiveComponent] = (0, import_react36.useState)("workflowType");
4204
+ const [workflowOpen, setWorkflowOpen] = (0, import_react38.useState)(false);
4205
+ const [permissionOpen, setPermissionOpen] = (0, import_react38.useState)(false);
4206
+ const [hierarchyOpen, setHierarchyOpen] = (0, import_react38.useState)(false);
4207
+ const [documentOpen, setDocumentOpen] = (0, import_react38.useState)(false);
4208
+ const [filesOpen, setFilesOpen] = (0, import_react38.useState)(false);
4209
+ const [tasksOpen, setTasksOpen] = (0, import_react38.useState)(false);
4210
+ const [trackingOpen, setTrackingOpen] = (0, import_react38.useState)(false);
4211
+ const [communicationOpen, setCommunicationOpen] = (0, import_react38.useState)(false);
4212
+ const [activeComponent, setActiveComponent] = (0, import_react38.useState)("workflowType");
4204
4213
  const renderMenuItemold = (item) => {
4205
4214
  const Icon = item.icon;
4206
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", className: `fc:flex fc:h-[48px] fc:w-full fc:items-center fc:gap-[8px] fc:rounded-[9px] fc:px-[8px] fc:text-left fc:transition-colors fc:duration-150${router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, onClick: () => router.push(item.path), children: [
4207
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:flex fc:h-[20px] fc:w-[20px] fc:shrink-0 fc:items-center fc:justify-center fc:rounded-[6px] fc:text-[#405170]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { size: 17 }) }),
4208
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
4215
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("button", { type: "button", className: `fc:flex fc:h-[48px] fc:w-full fc:items-center fc:gap-[8px] fc:rounded-[9px] fc:px-[8px] fc:text-left fc:transition-colors fc:duration-150${router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, onClick: () => router.push(item.path), children: [
4216
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "fc:flex fc:h-[20px] fc:w-[20px] fc:shrink-0 fc:items-center fc:justify-center fc:rounded-[6px] fc:text-[#405170]", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { size: 17 }) }),
4217
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
4209
4218
  ] }, item.name);
4210
4219
  };
4211
4220
  const renderMenuItem = (item) => {
@@ -4221,94 +4230,94 @@ function Sidebar({
4221
4230
  router.push(item.path);
4222
4231
  }
4223
4232
  };
4224
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { onClick: handleClick, className: `fc:flex fc:h-[48px] fc:w-full fc:min-w-0 fc:items-center fc:gap-[6px] fc:rounded-[9px] fc:px-[6px]${item.component ? activeComponent === item.component ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]" : router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, children: [
4225
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon, { size: 16 }),
4226
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:min-w-0 fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
4233
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("button", { onClick: handleClick, className: `fc:flex fc:h-[48px] fc:w-full fc:min-w-0 fc:items-center fc:gap-[6px] fc:rounded-[9px] fc:px-[6px]${item.component ? activeComponent === item.component ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]" : router.pathname === item.path ? "bg-blue-50 text-blue-600" : "text-[#344261] hover:bg-[#F6F8FC]"}`, children: [
4234
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon, { size: 16 }),
4235
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "fc:min-w-0 fc:flex-1 fc:whitespace-nowrap fc:text-[13px] fc:font-medium fc:leading-[20px]", children: item.name })
4227
4236
  ] }, item.name);
4228
4237
  };
4229
4238
  const renderContent = () => {
4230
4239
  switch (activeComponent) {
4231
4240
  case "workflowType":
4232
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(WorkflowTypeMains, {});
4241
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WorkflowTypeMains, {});
4233
4242
  case "workflow":
4234
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(WorkflowPage, {});
4243
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WorkflowPage, {});
4235
4244
  case "workflowStep":
4236
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(WorkflowStep, {});
4245
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WorkflowStep, {});
4237
4246
  case "workflowTransition":
4238
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(WorkFlowTransition, {});
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WorkFlowTransition, {});
4239
4248
  case "User_hierarchy_mapping_main":
4240
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(User_hierarchy_mapping_main, {});
4249
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(User_hierarchy_mapping_main, {});
4241
4250
  case "DocumentConfigurationmain":
4242
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DocumentConfigurationmain, {});
4251
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DocumentConfigurationmain, {});
4243
4252
  case "AuditLogmain":
4244
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(AuditLogmain, {});
4253
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(AuditLogmain, {});
4245
4254
  case "MovementHistorymain":
4246
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(MovementHistorymain, {});
4255
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(MovementHistorymain, {});
4247
4256
  default:
4248
4257
  return childrens;
4249
4258
  }
4250
4259
  };
4251
4260
  const renderDropdown = (title, open, setOpen, items, HeadingIcon) => {
4252
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:mb-2", children: [
4253
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", onClick: () => setOpen(!open), className: "fc:flex fc:h-[50px] fc:w-full fc:items-center fc:justify-between fc:rounded-[9px] fc:px-[17px] fc:text-left fc:text-[#344261] fc:transition-colors fc:duration-150 hover:fc:fc:bg-[#F6F8FC]", children: [
4254
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-[8px]", children: [
4255
- HeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(HeadingIcon, { size: 18, className: "fc:text-[#405170] fc:shrink-0" }),
4256
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "fc:text-[16px] fc:font-semibold", children: title })
4261
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:mb-2", children: [
4262
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("button", { type: "button", onClick: () => setOpen(!open), className: "fc:flex fc:h-[50px] fc:w-full fc:items-center fc:justify-between fc:rounded-[9px] fc:px-[17px] fc:text-left fc:text-[#344261] fc:transition-colors fc:duration-150 hover:fc:fc:bg-[#F6F8FC]", children: [
4263
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-[8px]", children: [
4264
+ HeadingIcon && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(HeadingIcon, { size: 18, className: "fc:text-[#405170] fc:shrink-0" }),
4265
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "fc:text-[16px] fc:font-semibold", children: title })
4257
4266
  ] }),
4258
- open ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiArrowDownSLine, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiArrowRightSLine, { size: 18 })
4267
+ open ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react39.RiArrowDownSLine, { size: 18 }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react39.RiArrowRightSLine, { size: 18 })
4259
4268
  ] }),
4260
- open && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:ml-[2px] fc:border-l fc:border-[#E5E9F1] fc:pl-[2px]", children: items.map(renderMenuItem) })
4269
+ open && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "fc:ml-[2px] fc:border-l fc:border-[#E5E9F1] fc:pl-[2px]", children: items.map(renderMenuItem) })
4261
4270
  ] });
4262
4271
  };
4263
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
4264
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("aside", { className: `fc:flex fc:h-screen fc:flex-col fc:overflow-hidden fc:border-r fc:border-[#E5E9F1] fc:bg-white fc:font-sans fc:text-[#273657] fc:transition-all fc:duration-300 fc:ease-in-out${isOpen ? "w-[285px] min-w-[285px] translate-x-0 opacity-100" : "w-0 min-w-0 -translate-x-full opacity-0"}`, children: [
4265
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("header", { className: "fc:flex fc:h-[84px] fc:items-center fc:justify-between fc:border-b fc:border-[#EDF0F5] fc:px-[14px]", children: [
4266
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2", children: [
4267
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { width: "36", height: "42", viewBox: "0 0 48 56", fill: "none", children: [
4268
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M24 2L45 12.5L24 23L3 12.5L24 2Z", fill: "#356AF3" }),
4269
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M24 8L34 13L24 18L14 13L24 8Z", fill: "white" }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M3 20L24 30.5L45 20V27L24 37.5L3 27V20Z", fill: "#356AF3" }),
4271
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { d: "M3 33L24 43.5L45 33V40L24 50.5L3 40V33Z", fill: "#356AF3" })
4272
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
4273
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("aside", { className: `fc:flex fc:h-screen fc:flex-col fc:overflow-hidden fc:border-r fc:border-[#E5E9F1] fc:bg-white fc:font-sans fc:text-[#273657] fc:transition-all fc:duration-300 fc:ease-in-out${isOpen ? "w-[285px] min-w-[285px] translate-x-0 opacity-100" : "w-0 min-w-0 -translate-x-full opacity-0"}`, children: [
4274
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("header", { className: "fc:flex fc:h-[84px] fc:items-center fc:justify-between fc:border-b fc:border-[#EDF0F5] fc:px-[14px]", children: [
4275
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:flex fc:items-center fc:gap-2", children: [
4276
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("svg", { width: "36", height: "42", viewBox: "0 0 48 56", fill: "none", children: [
4277
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M24 2L45 12.5L24 23L3 12.5L24 2Z", fill: "#356AF3" }),
4278
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M24 8L34 13L24 18L14 13L24 8Z", fill: "white" }),
4279
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M3 20L24 30.5L45 20V27L24 37.5L3 27V20Z", fill: "#356AF3" }),
4280
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M3 33L24 43.5L45 33V40L24 50.5L3 40V33Z", fill: "#356AF3" })
4272
4281
  ] }),
4273
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { children: [
4274
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("h1", { className: "fc:text-[18px] fc:font-extrabold fc:text-[#101318]", children: "FLOWCORE" }),
4275
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:text-[12px] fc:text-[#344261]", children: "Workflow Engine" })
4282
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
4283
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h1", { className: "fc:text-[18px] fc:font-extrabold fc:text-[#101318]", children: "FLOWCORE" }),
4284
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "fc:text-[12px] fc:text-[#344261]", children: "Workflow Engine" })
4276
4285
  ] })
4277
4286
  ] }),
4278
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { type: "button", onClick: onToggle, className: "fc:flex fc:h-8 fc:w-8 fc:items-center fc:justify-center fc:rounded-lg hover:fc:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
4287
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", onClick: onToggle, className: "fc:flex fc:h-8 fc:w-8 fc:items-center fc:justify-center fc:rounded-lg hover:fc:fc:bg-gray-100", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react39.RiMenuLine, { size: 18 }) })
4279
4288
  ] }),
4280
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:min-h-0 fc:flex-1 fc:overflow-y-auto fc:overflow-x-hidden fc:px-[27px] fc:pb-[30px] fc:pt-[31px]", children: [
4281
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Configuration Masters" }),
4282
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
4283
- renderDropdown("Workflow", workflowOpen, setWorkflowOpen, workflowItems, import_react37.RiNodeTree),
4284
- renderDropdown("Permissions", permissionOpen, setPermissionOpen, permissionItems, import_react37.RiShieldUserLine),
4285
- renderDropdown("Documents", documentOpen, setDocumentOpen, documentItems, import_react37.RiFileSettingsLine),
4286
- renderDropdown("Hierarchy", hierarchyOpen, setHierarchyOpen, hierarchyItems, import_react37.RiNodeTree)
4289
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:min-h-0 fc:flex-1 fc:overflow-y-auto fc:overflow-x-hidden fc:px-[27px] fc:pb-[30px] fc:pt-[31px]", children: [
4290
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Configuration Masters" }),
4291
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
4292
+ renderDropdown("Workflow", workflowOpen, setWorkflowOpen, workflowItems, import_react39.RiNodeTree),
4293
+ renderDropdown("Permissions", permissionOpen, setPermissionOpen, permissionItems, import_react39.RiShieldUserLine),
4294
+ renderDropdown("Documents", documentOpen, setDocumentOpen, documentItems, import_react39.RiFileSettingsLine),
4295
+ renderDropdown("Hierarchy", hierarchyOpen, setHierarchyOpen, hierarchyItems, import_react39.RiNodeTree)
4287
4296
  ] }),
4288
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:mt-[39px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Runtime" }),
4289
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
4290
- renderDropdown("Files", filesOpen, setFilesOpen, fileItems, import_react37.RiFolder3Line),
4291
- renderDropdown("Tasks", tasksOpen, setTasksOpen, taskItems, import_react37.RiCheckboxCircleLine),
4292
- renderDropdown("Tracking", trackingOpen, setTrackingOpen, trackingItems, import_react37.RiRouteLine),
4293
- renderDropdown("Communication", communicationOpen, setCommunicationOpen, communicationItems, import_react37.RiMessage2Line)
4297
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "fc:mb-[19px] fc:ml-[15px] fc:mt-[39px] fc:text-[14px] fc:font-bold fc:uppercase fc:leading-[20px] fc:tracking-[0.2px] fc:text-[#3C4D74]", children: "Runtime" }),
4298
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "fc:flex fc:flex-col fc:gap-[3px]", children: [
4299
+ renderDropdown("Files", filesOpen, setFilesOpen, fileItems, import_react39.RiFolder3Line),
4300
+ renderDropdown("Tasks", tasksOpen, setTasksOpen, taskItems, import_react39.RiCheckboxCircleLine),
4301
+ renderDropdown("Tracking", trackingOpen, setTrackingOpen, trackingItems, import_react39.RiRouteLine),
4302
+ renderDropdown("Communication", communicationOpen, setCommunicationOpen, communicationItems, import_react39.RiMessage2Line)
4294
4303
  ] })
4295
4304
  ] }),
4296
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:shrink-0 fc:bg-white fc:px-[27px] fc:pb-[34px] fc:pt-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("button", { type: "button", className: "fc:flex fc:h-[66px] fc:w-full fc:items-center fc:gap-[18px] fc:rounded-[10px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:px-[23px] fc:text-left fc:text-[16px] fc:font-semibold fc:text-[#2D3A58] fc:shadow-sm hover:fc:fc:bg-[#F7F8FC] fc:transition", children: [
4297
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiSettings4Line, { size: 20 }),
4298
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "Settings" })
4305
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "fc:shrink-0 fc:bg-white fc:px-[27px] fc:pb-[34px] fc:pt-[18px]", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("button", { type: "button", className: "fc:flex fc:h-[66px] fc:w-full fc:items-center fc:gap-[18px] fc:rounded-[10px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:px-[23px] fc:text-left fc:text-[16px] fc:font-semibold fc:text-[#2D3A58] fc:shadow-sm hover:fc:fc:bg-[#F7F8FC] fc:transition", children: [
4306
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react39.RiSettings4Line, { size: 20 }),
4307
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Settings" })
4299
4308
  ] }) })
4300
4309
  ] }),
4301
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "fc:flex-1 fc:overflow-auto fc:bg-[#F5F7FB]", children: renderContent() }),
4302
- !isOpen && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[20px] fc:top-[30px] fc:z-[100] fc:flex fc:h-[46px] fc:w-[46px] fc:items-center fc:justify-center fc:rounded-[9px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:text-[#344261] fc:shadow-[0_2px_8px_rgba(0,0,0,0.08)] fc:transition-colors hover:fc:fc:bg-[#F3F5F9]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react37.RiMenuLine, { size: 18 }) })
4310
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "fc:flex-1 fc:overflow-auto fc:bg-[#F5F7FB]", children: renderContent() }),
4311
+ !isOpen && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("button", { type: "button", onClick: onToggle, "aria-label": "Open sidebar", className: "fc:fixed fc:left-[20px] fc:top-[30px] fc:z-[100] fc:flex fc:h-[46px] fc:w-[46px] fc:items-center fc:justify-center fc:rounded-[9px] fc:border fc:border-[#E1E5ED] fc:bg-white fc:text-[#344261] fc:shadow-[0_2px_8px_rgba(0,0,0,0.08)] fc:transition-colors hover:fc:fc:bg-[#F3F5F9]", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react39.RiMenuLine, { size: 18 }) })
4303
4312
  ] });
4304
4313
  }
4305
4314
 
4306
4315
  // src/components/Layout.jsx
4307
- var import_react38 = require("react");
4308
- var import_jsx_runtime37 = require("react/jsx-runtime");
4316
+ var import_react40 = require("react");
4317
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4309
4318
  var Layout = ({ children }) => {
4310
- const [isOpen, setIsOpen] = (0, import_react38.useState)(true);
4311
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flowcore fc:flex fc:min-h-screen", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4319
+ const [isOpen, setIsOpen] = (0, import_react40.useState)(true);
4320
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flowcore fc:flex fc:min-h-screen", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4312
4321
  Sidebar,
4313
4322
  {
4314
4323
  isOpen,
@@ -4318,8 +4327,24 @@ var Layout = ({ children }) => {
4318
4327
  ) });
4319
4328
  };
4320
4329
  var Layout_default = Layout;
4330
+
4331
+ // src/components/Service/ApiEndpointsProvider.js
4332
+ var STORAGE_KEY = "FLOWCORE_API_ENDPOINTS";
4333
+ var apiEndpoints = null;
4334
+ var ApiEndpointsProvider = ({ apiEndpoints: endpoints }) => {
4335
+ if (typeof window !== "undefined" && endpoints) {
4336
+ apiEndpoints = endpoints;
4337
+ sessionStorage.setItem(
4338
+ STORAGE_KEY,
4339
+ JSON.stringify(endpoints)
4340
+ );
4341
+ }
4342
+ return null;
4343
+ };
4344
+ var ApiEndpointsProvider_default = ApiEndpointsProvider;
4321
4345
  // Annotate the CommonJS export names for ESM import in node:
4322
4346
  0 && (module.exports = {
4347
+ ApiEndpointsProvider,
4323
4348
  Layout,
4324
4349
  Sidebar
4325
4350
  });