Add ResendTransaction component
Add resend button in transactioncontext
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -30,3 +30,6 @@ yarn.lock
|
|||||||
.env
|
.env
|
||||||
|
|
||||||
package-lock.json
|
package-lock.json
|
||||||
|
package.json
|
||||||
|
yarn.lock
|
||||||
|
package-lock.json
|
||||||
|
|||||||
5
package-lock.json
generated
5
package-lock.json
generated
@ -49,6 +49,7 @@
|
|||||||
"https": "^1.0.0",
|
"https": "^1.0.0",
|
||||||
"leaflet": "^1.9.4",
|
"leaflet": "^1.9.4",
|
||||||
"lucide-react": "^0.456.0",
|
"lucide-react": "^0.456.0",
|
||||||
|
"metronic-tailwind-react": "file:",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"next-themes": "^0.4.3",
|
"next-themes": "^0.4.3",
|
||||||
@ -6454,6 +6455,10 @@
|
|||||||
"node": ">= 8"
|
"node": ">= 8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/metronic-tailwind-react": {
|
||||||
|
"resolved": "",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/micromatch": {
|
"node_modules/micromatch": {
|
||||||
"version": "4.0.8",
|
"version": "4.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
|
||||||
|
|||||||
@ -55,6 +55,7 @@
|
|||||||
"https": "^1.0.0",
|
"https": "^1.0.0",
|
||||||
"leaflet": "^1.9.4",
|
"leaflet": "^1.9.4",
|
||||||
"lucide-react": "^0.456.0",
|
"lucide-react": "^0.456.0",
|
||||||
|
"metronic-tailwind-react": "file:",
|
||||||
"mini-svg-data-uri": "^1.4.4",
|
"mini-svg-data-uri": "^1.4.4",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"next-themes": "^0.4.3",
|
"next-themes": "^0.4.3",
|
||||||
|
|||||||
@ -0,0 +1,183 @@
|
|||||||
|
import { useTransactionContext } from '../hooks/useTransactionContext';
|
||||||
|
import { useCallApi } from '@/hooks';
|
||||||
|
import { apiConfig } from '@/config/api.config';
|
||||||
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogBody,
|
||||||
|
DialogContent,
|
||||||
|
DialogDescription,
|
||||||
|
DialogFooter,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle
|
||||||
|
} from '@/components/ui/dialog';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue
|
||||||
|
} from '@/components/ui/select';
|
||||||
|
import { Alert, KeenIcon, useDataGrid } from '@/components';
|
||||||
|
import { doSaveLogActivity } from '@/actions/GlobalActions';
|
||||||
|
import { toast } from 'sonner';
|
||||||
|
import { Input } from '@/components/ui/input';
|
||||||
|
|
||||||
|
const API_URL = apiConfig.transaction;
|
||||||
|
|
||||||
|
const ResendTransaction = () => {
|
||||||
|
const { GetData, PostData } = useCallApi();
|
||||||
|
// const { reload } = useDataGrid();
|
||||||
|
const {
|
||||||
|
showResendDialog,
|
||||||
|
setShowResendDialog,
|
||||||
|
selectedTransactionRowForResend
|
||||||
|
} = useTransactionContext();
|
||||||
|
|
||||||
|
// const [transactionDetails, setTransactionDetails] = useState<any>(null);
|
||||||
|
|
||||||
|
// const [formField, setFormField] = useState({
|
||||||
|
// transaction_code: '',
|
||||||
|
// status: ''
|
||||||
|
// });
|
||||||
|
|
||||||
|
console.log('selectedTransactionRowForResend', selectedTransactionRowForResend);
|
||||||
|
|
||||||
|
const [alert, setAlert] = useState({
|
||||||
|
show: false,
|
||||||
|
message: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
// const doApproval = useCallback(
|
||||||
|
// async (e: React.FormEvent<HTMLFormElement>) => {
|
||||||
|
// e.preventDefault();
|
||||||
|
|
||||||
|
// if (!transactionDetails || !transactionDetails.code) {
|
||||||
|
// toast.error('Transaction data not loaded yet.');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (!formField.status) {
|
||||||
|
// toast.error('Please select a status.');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// const response = await PostData(`${API_URL}/transaction/set-approval`, {
|
||||||
|
// transaction_code: transactionDetails.code,
|
||||||
|
// status: formField.status,
|
||||||
|
// });
|
||||||
|
|
||||||
|
// if (response?.status) {
|
||||||
|
// setAlert((prev) => ({ ...prev, show: false, message: '' }));
|
||||||
|
// toast.success('Success Update Position');
|
||||||
|
// const createActivity = {
|
||||||
|
// module: 'Approval Transaction',
|
||||||
|
// description: `Change status approve for transaction => ${transactionDetails.code}`,
|
||||||
|
// action: 'U'
|
||||||
|
// };
|
||||||
|
// doSaveLogActivity(createActivity);
|
||||||
|
// setShowApprovalDialog(false); // optionally close dialog
|
||||||
|
// } else {
|
||||||
|
// setAlert((prev) => ({ ...prev, show: true, message: response?.message }));
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// [formField, transactionDetails]
|
||||||
|
// );
|
||||||
|
|
||||||
|
// useEffect(() => {
|
||||||
|
// const fetchTransactionDetails = async () => {
|
||||||
|
// if (selectedTransactionIdForApproval) {
|
||||||
|
// try {
|
||||||
|
// const response = await GetData(`${API_URL}/transaction/history/detail/${selectedTransactionIdForApproval}`, {
|
||||||
|
// id: selectedTransactionIdForApproval
|
||||||
|
// });
|
||||||
|
// // console.log(response?.data.code);
|
||||||
|
// // console.log(selectedTransactionIdForApproval);
|
||||||
|
// setTransactionDetails(response?.data);
|
||||||
|
// } catch (error) {
|
||||||
|
// console.error('Error fetching transaction', error);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
|
||||||
|
// if (showApprovalDialog && selectedTransactionIdForApproval) {
|
||||||
|
// fetchTransactionDetails();
|
||||||
|
// }
|
||||||
|
// }, [showApprovalDialog, selectedTransactionIdForApproval, GetData]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Dialog open={showResendDialog} onOpenChange={(open) => setShowResendDialog(open)}>
|
||||||
|
<DialogContent className="container-fixed max-w-md flex flex-col p-5 overflow-hidden [&>button]:hidden">
|
||||||
|
<DialogHeader className="p-0 border-0 block">
|
||||||
|
<DialogTitle></DialogTitle>
|
||||||
|
<DialogDescription></DialogDescription>
|
||||||
|
<Alert variant="warning">
|
||||||
|
<h3 className="text-lg">Are you sure?</h3>
|
||||||
|
<span className="text-sm">You will resend this failed transaction!</span>
|
||||||
|
</Alert>
|
||||||
|
{alert.show && (
|
||||||
|
<Alert variant="danger">
|
||||||
|
<h3>{alert.message}</h3>
|
||||||
|
</Alert>
|
||||||
|
)}
|
||||||
|
</DialogHeader>
|
||||||
|
<DialogFooter className="flex justify-end items-center gap-4 mt-3">
|
||||||
|
<Button variant="outline" onClick={() => setShowResendDialog(false)}>
|
||||||
|
Cancel
|
||||||
|
</Button>
|
||||||
|
<Button variant="default">
|
||||||
|
Resend
|
||||||
|
</Button>
|
||||||
|
</DialogFooter>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
|
);
|
||||||
|
|
||||||
|
// return (
|
||||||
|
// <Dialog open={showResendDialog} onOpenChange={setShowResendDialog}>
|
||||||
|
// <DialogContent className="container-fixed max-w-[1024px] flex flex-col p-5 overflow-hidden">
|
||||||
|
// <DialogHeader>
|
||||||
|
// <DialogTitle>Resend Transaction</DialogTitle>
|
||||||
|
// </DialogHeader>
|
||||||
|
// <DialogBody>
|
||||||
|
// <p>tes dialog</p>
|
||||||
|
// {/* <form action="" onSubmit={doApproval}>
|
||||||
|
// <div className="card-body grid gap-5 p-0">
|
||||||
|
// <div className="w-full">
|
||||||
|
// <div className="flex items-center flex-wrap gap-2.5">
|
||||||
|
// <label className="form-label max-w-56">Status</label>
|
||||||
|
|
||||||
|
// <div className="grow">
|
||||||
|
// <Select
|
||||||
|
// value={formField.status}
|
||||||
|
// onValueChange={(status) => setFormField((prev) => ({ ...prev, status }))}
|
||||||
|
// >
|
||||||
|
// <SelectTrigger>
|
||||||
|
// <SelectValue placeholder="Select" />
|
||||||
|
// </SelectTrigger>
|
||||||
|
// <SelectContent>
|
||||||
|
// <SelectItem value="Y">APPROVE</SelectItem>
|
||||||
|
// <SelectItem value="N">REJECTED</SelectItem>
|
||||||
|
// </SelectContent>
|
||||||
|
// </Select>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
|
||||||
|
|
||||||
|
// <hr />
|
||||||
|
// <div className="flex justify-end">
|
||||||
|
// <Button className="btn btn-primary" type="submit">
|
||||||
|
// Save Changes
|
||||||
|
// </Button>
|
||||||
|
// </div>
|
||||||
|
// </div>
|
||||||
|
// </form> */}
|
||||||
|
// </DialogBody>
|
||||||
|
// </DialogContent>
|
||||||
|
// </Dialog>
|
||||||
|
// );
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ResendTransaction;
|
||||||
@ -9,6 +9,8 @@ import ListToolbar from '../blocks/ListToolbar';
|
|||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import { useNavigate } from 'react-router';
|
import { useNavigate } from 'react-router';
|
||||||
import DetailTransaction from '../blocks/DetailTransaction';
|
import DetailTransaction from '../blocks/DetailTransaction';
|
||||||
|
import { log } from 'console';
|
||||||
|
import ResendTransaction from '../blocks/ResendTransaction';
|
||||||
|
|
||||||
interface TransactionProps {
|
interface TransactionProps {
|
||||||
id: number;
|
id: number;
|
||||||
@ -28,6 +30,10 @@ interface ContextProps {
|
|||||||
setShowDetailDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
setShowDetailDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
selectedTransactionId: number | null;
|
selectedTransactionId: number | null;
|
||||||
setSelectedTransactionId: React.Dispatch<React.SetStateAction<number | null>>;
|
setSelectedTransactionId: React.Dispatch<React.SetStateAction<number | null>>;
|
||||||
|
showResendDialog: boolean;
|
||||||
|
setShowResendDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
||||||
|
selectedTransactionRowForResend: any | null;
|
||||||
|
setTransactionRowForResend: React.Dispatch<React.SetStateAction<any | null>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const initialProps: ContextProps = {
|
const initialProps: ContextProps = {
|
||||||
@ -35,7 +41,11 @@ const initialProps: ContextProps = {
|
|||||||
showDetailDialog: false,
|
showDetailDialog: false,
|
||||||
setShowDetailDialog: () => { },
|
setShowDetailDialog: () => { },
|
||||||
selectedTransactionId: null,
|
selectedTransactionId: null,
|
||||||
setSelectedTransactionId: () => { }
|
setSelectedTransactionId: () => { },
|
||||||
|
showResendDialog: false,
|
||||||
|
setShowResendDialog: () => { },
|
||||||
|
selectedTransactionRowForResend: null,
|
||||||
|
setTransactionRowForResend: () => { }
|
||||||
};
|
};
|
||||||
|
|
||||||
const ManageTransactionContext = createContext<ContextProps>(initialProps);
|
const ManageTransactionContext = createContext<ContextProps>(initialProps);
|
||||||
@ -50,6 +60,8 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
const handleNavigate = (path: string) => {
|
const handleNavigate = (path: string) => {
|
||||||
const url = navigate(`${API_URL}/transaction/history/${path}`);
|
const url = navigate(`${API_URL}/transaction/history/${path}`);
|
||||||
};
|
};
|
||||||
|
const [showResendDialog, setShowResendDialog] = useState(false);
|
||||||
|
const [selectedTransactionRowForResend, setTransactionRowForResend] = useState<any | null>(null);
|
||||||
|
|
||||||
const columns = useMemo<ColumnDef<any>[]>(
|
const columns = useMemo<ColumnDef<any>[]>(
|
||||||
() => [
|
() => [
|
||||||
@ -84,7 +96,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
});
|
});
|
||||||
return formattedDateTime; // Format DD-MM-YYYY HH:MM:SS (menggunakan waktu yang sudah ada)
|
return formattedDateTime; // Format DD-MM-YYYY HH:MM:SS (menggunakan waktu yang sudah ada)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
accessorKey: 'origin_customer.fullname',
|
accessorKey: 'origin_customer.fullname',
|
||||||
header: ({ column }) => <DataGridColumnHeader title="Full Name" column={column} />,
|
header: ({ column }) => <DataGridColumnHeader title="Full Name" column={column} />,
|
||||||
@ -171,6 +183,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
enableHiding: false,
|
enableHiding: false,
|
||||||
cell: (data) => {
|
cell: (data) => {
|
||||||
const row = data.row.original;
|
const row = data.row.original;
|
||||||
|
const isVisible = row.status === 'F' ? true : false || row.status === 'P' ? true : false;
|
||||||
return (
|
return (
|
||||||
<div key={`actions-${row.id}`}>
|
<div key={`actions-${row.id}`}>
|
||||||
<button
|
<button
|
||||||
@ -182,6 +195,19 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
>
|
>
|
||||||
<KeenIcon icon="eye" />
|
<KeenIcon icon="eye" />
|
||||||
</button>
|
</button>
|
||||||
|
{/* add new button for resend transaction failed */}
|
||||||
|
{isVisible &&
|
||||||
|
<button
|
||||||
|
className="btn btn-sm btn-icon btn-clear btn-light"
|
||||||
|
title="Resend Transaction"
|
||||||
|
onClick={() => {
|
||||||
|
setTransactionRowForResend(row);
|
||||||
|
setShowResendDialog(true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<KeenIcon icon="abstract-37" />
|
||||||
|
</button>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@ -241,11 +267,16 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
|
|||||||
showDetailDialog,
|
showDetailDialog,
|
||||||
setShowDetailDialog,
|
setShowDetailDialog,
|
||||||
selectedTransactionId,
|
selectedTransactionId,
|
||||||
setSelectedTransactionId
|
setSelectedTransactionId,
|
||||||
|
showResendDialog,
|
||||||
|
setShowResendDialog,
|
||||||
|
selectedTransactionRowForResend,
|
||||||
|
setTransactionRowForResend
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Toaster expand visibleToasts={9} duration={3000} />
|
<Toaster expand visibleToasts={9} duration={3000} />
|
||||||
<DetailTransaction />
|
<DetailTransaction />
|
||||||
|
<ResendTransaction />
|
||||||
|
|
||||||
<DataGridProvider
|
<DataGridProvider
|
||||||
columns={columns}
|
columns={columns}
|
||||||
|
|||||||
269
yarn.lock
269
yarn.lock
@ -631,11 +631,121 @@
|
|||||||
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz"
|
resolved "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz"
|
||||||
integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==
|
integrity sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==
|
||||||
|
|
||||||
|
"@esbuild/aix-ppc64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz"
|
||||||
|
integrity sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==
|
||||||
|
|
||||||
|
"@esbuild/android-arm@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz"
|
||||||
|
integrity sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==
|
||||||
|
|
||||||
|
"@esbuild/android-arm64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz"
|
||||||
|
integrity sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==
|
||||||
|
|
||||||
|
"@esbuild/android-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==
|
||||||
|
|
||||||
"@esbuild/darwin-arm64@0.21.5":
|
"@esbuild/darwin-arm64@0.21.5":
|
||||||
version "0.21.5"
|
version "0.21.5"
|
||||||
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz"
|
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz"
|
||||||
integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==
|
integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==
|
||||||
|
|
||||||
|
"@esbuild/darwin-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==
|
||||||
|
|
||||||
|
"@esbuild/freebsd-arm64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz"
|
||||||
|
integrity sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==
|
||||||
|
|
||||||
|
"@esbuild/freebsd-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==
|
||||||
|
|
||||||
|
"@esbuild/linux-arm@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz"
|
||||||
|
integrity sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==
|
||||||
|
|
||||||
|
"@esbuild/linux-arm64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz"
|
||||||
|
integrity sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==
|
||||||
|
|
||||||
|
"@esbuild/linux-ia32@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz"
|
||||||
|
integrity sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==
|
||||||
|
|
||||||
|
"@esbuild/linux-loong64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz"
|
||||||
|
integrity sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==
|
||||||
|
|
||||||
|
"@esbuild/linux-mips64el@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz"
|
||||||
|
integrity sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==
|
||||||
|
|
||||||
|
"@esbuild/linux-ppc64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz"
|
||||||
|
integrity sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==
|
||||||
|
|
||||||
|
"@esbuild/linux-riscv64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz"
|
||||||
|
integrity sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==
|
||||||
|
|
||||||
|
"@esbuild/linux-s390x@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz"
|
||||||
|
integrity sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==
|
||||||
|
|
||||||
|
"@esbuild/linux-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==
|
||||||
|
|
||||||
|
"@esbuild/netbsd-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==
|
||||||
|
|
||||||
|
"@esbuild/openbsd-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==
|
||||||
|
|
||||||
|
"@esbuild/sunos-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==
|
||||||
|
|
||||||
|
"@esbuild/win32-arm64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz"
|
||||||
|
integrity sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==
|
||||||
|
|
||||||
|
"@esbuild/win32-ia32@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz"
|
||||||
|
integrity sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==
|
||||||
|
|
||||||
|
"@esbuild/win32-x64@0.21.5":
|
||||||
|
version "0.21.5"
|
||||||
|
resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz"
|
||||||
|
integrity sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==
|
||||||
|
|
||||||
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
|
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
|
||||||
version "4.4.1"
|
version "4.4.1"
|
||||||
resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz"
|
resolved "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz"
|
||||||
@ -1580,11 +1690,96 @@
|
|||||||
resolved "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz"
|
resolved "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz"
|
||||||
integrity sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA==
|
integrity sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA==
|
||||||
|
|
||||||
|
"@rollup/rollup-android-arm-eabi@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.2.tgz"
|
||||||
|
integrity sha512-ufoveNTKDg9t/b7nqI3lwbCG/9IJMhADBNjjz/Jn6LxIZxD7T5L8l2uO/wD99945F1Oo8FvgbbZJRguyk/BdzA==
|
||||||
|
|
||||||
|
"@rollup/rollup-android-arm64@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.2.tgz"
|
||||||
|
integrity sha512-iZoYCiJz3Uek4NI0J06/ZxUgwAfNzqltK0MptPDO4OR0a88R4h0DSELMsflS6ibMCJ4PnLvq8f7O1d7WexUvIA==
|
||||||
|
|
||||||
"@rollup/rollup-darwin-arm64@4.24.2":
|
"@rollup/rollup-darwin-arm64@4.24.2":
|
||||||
version "4.24.2"
|
version "4.24.2"
|
||||||
resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.2.tgz"
|
resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.2.tgz"
|
||||||
integrity sha512-/UhrIxobHYCBfhi5paTkUDQ0w+jckjRZDZ1kcBL132WeHZQ6+S5v9jQPVGLVrLbNUebdIRpIt00lQ+4Z7ys4Rg==
|
integrity sha512-/UhrIxobHYCBfhi5paTkUDQ0w+jckjRZDZ1kcBL132WeHZQ6+S5v9jQPVGLVrLbNUebdIRpIt00lQ+4Z7ys4Rg==
|
||||||
|
|
||||||
|
"@rollup/rollup-darwin-x64@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.2.tgz"
|
||||||
|
integrity sha512-1F/jrfhxJtWILusgx63WeTvGTwE4vmsT9+e/z7cZLKU8sBMddwqw3UV5ERfOV+H1FuRK3YREZ46J4Gy0aP3qDA==
|
||||||
|
|
||||||
|
"@rollup/rollup-freebsd-arm64@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.24.2.tgz"
|
||||||
|
integrity sha512-1YWOpFcGuC6iGAS4EI+o3BV2/6S0H+m9kFOIlyFtp4xIX5rjSnL3AwbTBxROX0c8yWtiWM7ZI6mEPTI7VkSpZw==
|
||||||
|
|
||||||
|
"@rollup/rollup-freebsd-x64@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.24.2.tgz"
|
||||||
|
integrity sha512-3qAqTewYrCdnOD9Gl9yvPoAoFAVmPJsBvleabvx4bnu1Kt6DrB2OALeRVag7BdWGWLhP1yooeMLEi6r2nYSOjg==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm-gnueabihf@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.2.tgz"
|
||||||
|
integrity sha512-ArdGtPHjLqWkqQuoVQ6a5UC5ebdX8INPuJuJNWRe0RGa/YNhVvxeWmCTFQ7LdmNCSUzVZzxAvUznKaYx645Rig==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm-musleabihf@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.2.tgz"
|
||||||
|
integrity sha512-B6UHHeNnnih8xH6wRKB0mOcJGvjZTww1FV59HqJoTJ5da9LCG6R4SEBt6uPqzlawv1LoEXSS0d4fBlHNWl6iYw==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm64-gnu@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.2.tgz"
|
||||||
|
integrity sha512-kr3gqzczJjSAncwOS6i7fpb4dlqcvLidqrX5hpGBIM1wtt0QEVtf4wFaAwVv8QygFU8iWUMYEoJZWuWxyua4GQ==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-arm64-musl@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.2.tgz"
|
||||||
|
integrity sha512-TDdHLKCWgPuq9vQcmyLrhg/bgbOvIQ8rtWQK7MRxJ9nvaxKx38NvY7/Lo6cYuEnNHqf6rMqnivOIPIQt6H2AoA==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-powerpc64le-gnu@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.2.tgz"
|
||||||
|
integrity sha512-xv9vS648T3X4AxFFZGWeB5Dou8ilsv4VVqJ0+loOIgDO20zIhYfDLkk5xoQiej2RiSQkld9ijF/fhLeonrz2mw==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-riscv64-gnu@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.2.tgz"
|
||||||
|
integrity sha512-tbtXwnofRoTt223WUZYiUnbxhGAOVul/3StZ947U4A5NNjnQJV5irKMm76G0LGItWs6y+SCjUn/Q0WaMLkEskg==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-s390x-gnu@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.2.tgz"
|
||||||
|
integrity sha512-gc97UebApwdsSNT3q79glOSPdfwgwj5ELuiyuiMY3pEWMxeVqLGKfpDFoum4ujivzxn6veUPzkGuSYoh5deQ2Q==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-x64-gnu@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.2.tgz"
|
||||||
|
integrity sha512-jOG/0nXb3z+EM6SioY8RofqqmZ+9NKYvJ6QQaa9Mvd3RQxlH68/jcB/lpyVt4lCiqr04IyaC34NzhUqcXbB5FQ==
|
||||||
|
|
||||||
|
"@rollup/rollup-linux-x64-musl@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.2.tgz"
|
||||||
|
integrity sha512-XAo7cJec80NWx9LlZFEJQxqKOMz/lX3geWs2iNT5CHIERLFfd90f3RYLLjiCBm1IMaQ4VOX/lTC9lWfzzQm14Q==
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-arm64-msvc@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.2.tgz"
|
||||||
|
integrity sha512-A+JAs4+EhsTjnPQvo9XY/DC0ztaws3vfqzrMNMKlwQXuniBKOIIvAAI8M0fBYiTCxQnElYu7mLk7JrhlQ+HeOw==
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-ia32-msvc@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.2.tgz"
|
||||||
|
integrity sha512-ZhcrakbqA1SCiJRMKSU64AZcYzlZ/9M5LaYil9QWxx9vLnkQ9Vnkve17Qn4SjlipqIIBFKjBES6Zxhnvh0EAEw==
|
||||||
|
|
||||||
|
"@rollup/rollup-win32-x64-msvc@4.24.2":
|
||||||
|
version "4.24.2"
|
||||||
|
resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.2.tgz"
|
||||||
|
integrity sha512-2mLH46K1u3r6uwc95hU+OR9q/ggYMpnS7pSp83Ece1HUQgF9Nh/QwTK5rcgbFnV9j+08yBrU5sA/P0RK2MSBNA==
|
||||||
|
|
||||||
"@tanstack/query-core@5.59.20":
|
"@tanstack/query-core@5.59.20":
|
||||||
version "5.59.20"
|
version "5.59.20"
|
||||||
resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.59.20.tgz"
|
resolved "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.59.20.tgz"
|
||||||
@ -3055,6 +3250,80 @@ merge2@^1.3.0:
|
|||||||
resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
|
resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
|
||||||
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
|
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
|
||||||
|
|
||||||
|
"metronic-tailwind-react@file:":
|
||||||
|
version "9.1.2"
|
||||||
|
resolved "file:"
|
||||||
|
dependencies:
|
||||||
|
"@auth0/auth0-spa-js" "^2.1.3"
|
||||||
|
"@emotion/cache" "^11.13.1"
|
||||||
|
"@emotion/react" "^11.13.3"
|
||||||
|
"@emotion/styled" "^11.13.0"
|
||||||
|
"@faker-js/faker" "^9.1.0"
|
||||||
|
"@firebase/app" "^0.10.15"
|
||||||
|
"@firebase/auth" "^1.8.0"
|
||||||
|
"@firebase/firestore" "^4.7.4"
|
||||||
|
"@formatjs/intl-pluralrules" "^5.3.4"
|
||||||
|
"@formatjs/intl-relativetimeformat" "^11.4.4"
|
||||||
|
"@mui/base" "5.0.0-beta.40"
|
||||||
|
"@mui/icons-material" "^6.4.6"
|
||||||
|
"@mui/material" "^6.1.6"
|
||||||
|
"@mui/utils" "^6.1.6"
|
||||||
|
"@radix-ui/react-avatar" "^1.1.1"
|
||||||
|
"@radix-ui/react-checkbox" "^1.1.2"
|
||||||
|
"@radix-ui/react-collapsible" "^1.1.1"
|
||||||
|
"@radix-ui/react-dialog" "^1.1.2"
|
||||||
|
"@radix-ui/react-dropdown-menu" "^2.1.2"
|
||||||
|
"@radix-ui/react-popover" "^1.1.2"
|
||||||
|
"@radix-ui/react-scroll-area" "^1.2.0"
|
||||||
|
"@radix-ui/react-select" "^2.1.2"
|
||||||
|
"@radix-ui/react-separator" "^1.1.0"
|
||||||
|
"@radix-ui/react-slider" "^1.2.1"
|
||||||
|
"@radix-ui/react-slot" "^1.1.0"
|
||||||
|
"@radix-ui/react-switch" "^1.1.1"
|
||||||
|
"@radix-ui/react-tooltip" "^1.1.3"
|
||||||
|
"@tanstack/react-query" "^5.59.20"
|
||||||
|
"@tanstack/react-table" "^8.20.5"
|
||||||
|
apexcharts "3.52.0"
|
||||||
|
axios "^1.7.7"
|
||||||
|
class-variance-authority "^0.7.0"
|
||||||
|
clsx "^2.1.1"
|
||||||
|
cmdk "^1.0.4"
|
||||||
|
date-fns "^3.0.0"
|
||||||
|
formik "^2.4.6"
|
||||||
|
helmet "^8.1.0"
|
||||||
|
https "^1.0.0"
|
||||||
|
leaflet "^1.9.4"
|
||||||
|
lucide-react "^0.456.0"
|
||||||
|
metronic-tailwind-react "file:"
|
||||||
|
mini-svg-data-uri "^1.4.4"
|
||||||
|
moment "^2.30.1"
|
||||||
|
next-themes "^0.4.3"
|
||||||
|
notistack "^3.0.1"
|
||||||
|
postcss-preset-env "^10.1.0"
|
||||||
|
qs "^6.13.0"
|
||||||
|
react "^18.3.1"
|
||||||
|
react-apexcharts "1.4.1"
|
||||||
|
react-day-picker "^8.10.1"
|
||||||
|
react-dom "^18.3.1"
|
||||||
|
react-helmet "^6.1.0"
|
||||||
|
react-helmet-async "^2.0.5"
|
||||||
|
react-inlinesvg "^4.1.4"
|
||||||
|
react-intl "^6.8.7"
|
||||||
|
react-leaflet "^4.2.1"
|
||||||
|
react-number-format "^5.4.3"
|
||||||
|
react-query "^3.39.3"
|
||||||
|
react-router "^6.28.0"
|
||||||
|
react-router-dom "^6.28.0"
|
||||||
|
sonner "^1.7.0"
|
||||||
|
styled-components "^6.1.13"
|
||||||
|
stylis "^4.3.4"
|
||||||
|
stylis-plugin-rtl "^2.1.1"
|
||||||
|
tabs "^0.2.0"
|
||||||
|
tailwind-merge "^2.5.4"
|
||||||
|
tailwindcss-animate "^1.0.7"
|
||||||
|
vite-plugin-windicss "^1.9.3"
|
||||||
|
yup "^1.4.0"
|
||||||
|
|
||||||
micromatch@^4.0.4, micromatch@^4.0.5:
|
micromatch@^4.0.4, micromatch@^4.0.5:
|
||||||
version "4.0.8"
|
version "4.0.8"
|
||||||
resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz"
|
resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz"
|
||||||
|
|||||||
Reference in New Issue
Block a user