ptechcore_ui 1.0.21 → 1.0.22

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.
Files changed (34) hide show
  1. package/dist/imgs/login_illustration.png +0 -0
  2. package/dist/index.cjs +77 -707
  3. package/dist/index.js +78 -850
  4. package/dist/modules-icons/accountingblanc.svg +1 -0
  5. package/dist/modules-icons/accountingblue.svg +1 -0
  6. package/dist/modules-icons/assetblanc.svg +1 -0
  7. package/dist/modules-icons/assetblue.svg +1 -0
  8. package/dist/modules-icons/biblanc.svg +1 -0
  9. package/dist/modules-icons/biblue.svg +1 -0
  10. package/dist/modules-icons/collection_litigationblanc.svg +1 -0
  11. package/dist/modules-icons/collection_litigationblue.svg +1 -0
  12. package/dist/modules-icons/crm-blue.svg +1 -0
  13. package/dist/modules-icons/crmwhite.svg +1 -0
  14. package/dist/modules-icons/facilityblanc.svg +1 -0
  15. package/dist/modules-icons/facilityblue.svg +1 -0
  16. package/dist/modules-icons/financeblanc.svg +1 -0
  17. package/dist/modules-icons/financeblue.svg +1 -0
  18. package/dist/modules-icons/human_capitalblanc.svg +1 -0
  19. package/dist/modules-icons/human_capitalblue.svg +1 -0
  20. package/dist/modules-icons/invoicingblanc.svg +1 -0
  21. package/dist/modules-icons/invoicingblue.svg +1 -0
  22. package/dist/modules-icons/marketingblanc.svg +1 -0
  23. package/dist/modules-icons/marketingblue.svg +1 -0
  24. package/dist/modules-icons/procurementblanc.svg +1 -0
  25. package/dist/modules-icons/procurementblue.svg +1 -0
  26. package/dist/modules-icons/security_managementblanc.svg +1 -0
  27. package/dist/modules-icons/security_managementblue.svg +1 -0
  28. package/dist/modules-icons/sopblancs.svg +1 -0
  29. package/dist/modules-icons/sopblues.svg +1 -0
  30. package/dist/modules-icons/thriveblanc.svg +1 -0
  31. package/dist/modules-icons/thriveblue.svg +1 -0
  32. package/dist/modules-icons/wiseblancs.svg +1 -0
  33. package/dist/modules-icons/wiseblues.svg +1 -0
  34. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5697,783 +5697,11 @@ var useAlert = () => {
5697
5697
  };
5698
5698
 
5699
5699
  // src/components/common/CommonSelect.tsx
5700
- import { useEffect as useEffect19, useState as useState31 } from "react";
5701
-
5702
- // dist/index.js
5703
- import { jsx as jsx17 } from "react/jsx-runtime";
5704
- import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
5705
- import { Link as Link3 } from "react-router-dom";
5706
- import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
5707
- import React42, { useState as useState52, useEffect as useEffect42 } from "react";
5708
- import { useLocation as useLocation3, useNavigate as useNavigate3 } from "react-router-dom";
5709
- import {
5710
- Settings as Settings3,
5711
- ChevronLeft as ChevronLeft3,
5712
- ChevronRight as ChevronRight2,
5713
- Search as Search4,
5714
- Bell as Bell2,
5715
- User as User2,
5716
- LogOut as LogOut2,
5717
- Menu as Menu3,
5718
- X as X32,
5719
- Palette as Palette2,
5720
- DollarSign as DollarSign2,
5721
- HelpCircle as HelpCircle22,
5722
- Building2 as Building22,
5723
- LayoutGrid as LayoutGrid2,
5724
- Mail as Mail2,
5725
- Phone as Phone2,
5726
- Shield as Shield2,
5727
- Briefcase as Briefcase2,
5728
- Edit3 as Edit32,
5729
- Camera as Camera2,
5730
- Eye as Eye22,
5731
- EyeOff as EyeOff3,
5732
- Lock as Lock2,
5733
- Save as Save2,
5734
- Loader2 as Loader22,
5735
- Check as Check22,
5736
- Trash2 as Trash24
5737
- } from "lucide-react";
5738
- import { clsx as clsx2 } from "clsx";
5739
- import { twMerge as twMerge2 } from "tailwind-merge";
5740
- import { createContext as createContext5, useContext as useContext5, useState as useState12, useEffect as useEffect9 } from "react";
5741
- import { jsx as jsx42 } from "react/jsx-runtime";
5742
- import { createContext as createContext22, useContext as useContext22, useEffect as useEffect22, useState as useState22 } from "react";
5743
- import { jsx as jsx52 } from "react/jsx-runtime";
5744
- import { createContext as createContext32, useContext as useContext32, useState as useState32, useCallback as useCallback3 } from "react";
5745
- import { AlertTriangle as AlertTriangle3, HelpCircle as HelpCircle3, AlertCircle as AlertCircle4, X as X8 } from "lucide-react";
5746
- import { jsx as jsx62, jsxs as jsxs32 } from "react/jsx-runtime";
5747
- import { useState as useState42, useEffect as useEffect32 } from "react";
5748
- import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
5749
- import { X as X22, Loader as Loader4, Eye as Eye5, FileText as FileText3, Check as Check3, XCircle as XCircle3, Edit as Edit2, CheckCircle as CheckCircle3, Clock as Clock2, AlertCircle as AlertCircle22, User as UserIcon2, Send as Send2 } from "lucide-react";
5750
- import { useParams as useParams2, useSearchParams as useSearchParams3 } from "react-router-dom";
5751
- import { Fragment as Fragment7, jsx as jsx82, jsxs as jsxs52 } from "react/jsx-runtime";
5752
- import { Fragment as Fragment22, jsx as jsx92, jsxs as jsxs62 } from "react/jsx-runtime";
5753
- import { useEffect as useEffect52, useState as useState62 } from "react";
5754
- import { CheckCircle as CheckCircle23, XCircle as XCircle22, AlertTriangle as AlertTriangle22, Info as Info22, X as X42 } from "lucide-react";
5755
- import { jsx as jsx102, jsxs as jsxs72 } from "react/jsx-runtime";
5756
- import { ChevronLeft as ChevronLeft22, Download as Download3, Menu as Menu22, Settings as Settings23 } from "lucide-react";
5757
- import { useState as useState72 } from "react";
5758
- import { Fragment as Fragment32, jsx as jsx112, jsxs as jsxs82 } from "react/jsx-runtime";
5759
- import React72, { useEffect as useEffect62, useState as useState82, useRef as useRef3 } from "react";
5760
- import { useLocation as useLocation22, useNavigate as useNavigate22, useSearchParams as useSearchParams22, Link as Link22 } from "react-router-dom";
5761
- import { ArrowDownAZ as ArrowDownAZ2, ArrowDownUp as ArrowDownUp2, ArrowUpAZ as ArrowUpAZ2, AlertCircle as AlertCircle32, CheckCircle2 as CheckCircle222, ChevronDown as ChevronDown3, Columns3 as Columns32, Copy as Copy2, Download as Download22, FileSpreadsheet as FileSpreadsheet2, Filter as Filter2, Maximize2 as Maximize22, Minimize2 as Minimize22, MoreVertical as MoreVertical2, Plus as Plus4, Printer as Printer2, RefreshCw as RefreshCw3, Settings2 as Settings222, Trash2 as Trash222, Upload as Upload2, X as X52, Search as Search22, SquareIcon as SquareIcon2 } from "lucide-react";
5762
- import { Fragment as Fragment42, jsx as jsx122, jsxs as jsxs92 } from "react/jsx-runtime";
5763
- import { useState as useState102, useEffect as useEffect82 } from "react";
5764
- import { useState as useState92, useRef as useRef22, useEffect as useEffect72 } from "react";
5765
- import { Search as Search32, ChevronDown as ChevronDown22, X as X62, RefreshCw as RefreshCw22, Plus as Plus22 } from "lucide-react";
5766
- import { Fragment as Fragment52, jsx as jsx132, jsxs as jsxs102 } from "react/jsx-runtime";
5767
- import { X as X72, Plus as Plus32, Trash2 as Trash232, Users as Users2, Loader as Loader32, RotateCcw as RotateCcw2, Ban as Ban2, Eye as Eye42, FileText as FileText22, History as History2 } from "lucide-react";
5768
- import { Fragment as Fragment62, jsx as jsx142, jsxs as jsxs112 } from "react/jsx-runtime";
5769
- import { createContext as createContext42, useContext as useContext42, useState as useState112, useCallback as useCallback22 } from "react";
5770
- import { jsx as jsx152, jsxs as jsxs122 } from "react/jsx-runtime";
5771
- import { jsx as jsx162, jsxs as jsxs132 } from "react/jsx-runtime";
5772
- import { useEffect as useEffect18, useState as useState29 } from "react";
5773
- import { jsx as jsx172 } from "react/jsx-runtime";
5774
- import { jsx as jsx222, jsxs as jsxs142 } from "react/jsx-runtime";
5775
- import { Link as Link32 } from "react-router-dom";
5776
- import { jsx as jsx322, jsxs as jsxs222 } from "react/jsx-runtime";
5777
- import React422, { useState as useState522, useEffect as useEffect422 } from "react";
5778
- import { useLocation as useLocation32, useNavigate as useNavigate32 } from "react-router-dom";
5779
- import {
5780
- Settings as Settings32,
5781
- ChevronLeft as ChevronLeft32,
5782
- ChevronRight as ChevronRight22,
5783
- Search as Search42,
5784
- Bell as Bell22,
5785
- User as User22,
5786
- LogOut as LogOut22,
5787
- Menu as Menu32,
5788
- X as X322,
5789
- Palette as Palette22,
5790
- DollarSign as DollarSign22,
5791
- HelpCircle as HelpCircle222,
5792
- Building2 as Building222,
5793
- LayoutGrid as LayoutGrid22
5794
- } from "lucide-react";
5795
- import { clsx as clsx22 } from "clsx";
5796
- import { twMerge as twMerge22 } from "tailwind-merge";
5797
- import { createContext as createContext52, useContext as useContext52, useState as useState122, useEffect as useEffect92 } from "react";
5798
- import { jsx as jsx422 } from "react/jsx-runtime";
5799
- import { createContext as createContext222, useContext as useContext222, useEffect as useEffect222, useState as useState222 } from "react";
5800
- import { jsx as jsx522 } from "react/jsx-runtime";
5801
- import { createContext as createContext322, useContext as useContext322, useState as useState322, useCallback as useCallback32 } from "react";
5802
- import { AlertTriangle as AlertTriangle32, HelpCircle as HelpCircle32, AlertCircle as AlertCircle42, X as X82 } from "lucide-react";
5803
- import { jsx as jsx622, jsxs as jsxs322 } from "react/jsx-runtime";
5804
- import { useState as useState422, useEffect as useEffect322 } from "react";
5805
- import { jsx as jsx722, jsxs as jsxs422 } from "react/jsx-runtime";
5806
- import { X as X222, Loader as Loader42, Eye as Eye52, FileText as FileText32, Check as Check32, XCircle as XCircle32, Edit as Edit22, CheckCircle as CheckCircle32, Clock as Clock22, AlertCircle as AlertCircle222, User as UserIcon22, Send as Send22 } from "lucide-react";
5807
- import { useParams as useParams22, useSearchParams as useSearchParams32 } from "react-router-dom";
5808
- import { Fragment as Fragment72, jsx as jsx822, jsxs as jsxs522 } from "react/jsx-runtime";
5809
- import { Fragment as Fragment222, jsx as jsx922, jsxs as jsxs622 } from "react/jsx-runtime";
5810
- import { useEffect as useEffect522, useState as useState622 } from "react";
5811
- import { CheckCircle as CheckCircle232, XCircle as XCircle222, AlertTriangle as AlertTriangle222, Info as Info222, X as X422 } from "lucide-react";
5812
- import { jsx as jsx1022, jsxs as jsxs722 } from "react/jsx-runtime";
5813
- import { ChevronLeft as ChevronLeft222, Download as Download32, Menu as Menu222, Settings as Settings232 } from "lucide-react";
5814
- import { useState as useState722 } from "react";
5815
- import { Fragment as Fragment322, jsx as jsx1122, jsxs as jsxs822 } from "react/jsx-runtime";
5816
- import React722, { useEffect as useEffect622, useState as useState822, useRef as useRef32 } from "react";
5817
- import { useLocation as useLocation222, useNavigate as useNavigate222, useSearchParams as useSearchParams222, Link as Link222 } from "react-router-dom";
5818
- import { ArrowDownAZ as ArrowDownAZ22, ArrowDownUp as ArrowDownUp22, ArrowUpAZ as ArrowUpAZ22, AlertCircle as AlertCircle322, CheckCircle2 as CheckCircle2222, ChevronDown as ChevronDown32, Columns3 as Columns322, Copy as Copy22, Download as Download222, FileSpreadsheet as FileSpreadsheet22, Filter as Filter22, Maximize2 as Maximize222, Minimize2 as Minimize222, MoreVertical as MoreVertical22, Plus as Plus42, Printer as Printer22, RefreshCw as RefreshCw32, Settings2 as Settings2222, Trash2 as Trash242, Upload as Upload22, X as X522, Search as Search222, SquareIcon as SquareIcon22 } from "lucide-react";
5819
- import { Fragment as Fragment422, jsx as jsx1222, jsxs as jsxs922 } from "react/jsx-runtime";
5820
- import { useState as useState1022, useEffect as useEffect822 } from "react";
5821
- import { useState as useState922, useRef as useRef222, useEffect as useEffect722 } from "react";
5822
- import { Search as Search322, ChevronDown as ChevronDown222, X as X622, RefreshCw as RefreshCw222, Plus as Plus222 } from "lucide-react";
5823
- import { Fragment as Fragment522, jsx as jsx1322, jsxs as jsxs1022 } from "react/jsx-runtime";
5824
- import { X as X722, Plus as Plus322, Trash2 as Trash2222, Users as Users22, Loader as Loader222, RotateCcw as RotateCcw22, Ban as Ban22, Eye as Eye32, FileText as FileText222, History as History22 } from "lucide-react";
5825
- import { Fragment as Fragment622, jsx as jsx1422, jsxs as jsxs1122 } from "react/jsx-runtime";
5826
- import { createContext as createContext422, useContext as useContext422, useState as useState1122, useCallback as useCallback222 } from "react";
5827
- import { jsx as jsx1522, jsxs as jsxs1222 } from "react/jsx-runtime";
5828
- import { jsx as jsx1622, jsxs as jsxs1322 } from "react/jsx-runtime";
5829
- import { useEffect as useEffect17, useState as useState27 } from "react";
5830
- import { jsx as jsx1722 } from "react/jsx-runtime";
5831
- import { jsx as jsx2222, jsxs as jsxs1422 } from "react/jsx-runtime";
5832
- import { Link as Link322 } from "react-router-dom";
5833
- import { jsx as jsx3222, jsxs as jsxs2222 } from "react/jsx-runtime";
5834
- import React4222, { useState as useState5222, useEffect as useEffect4222 } from "react";
5835
- import { useLocation as useLocation322, useNavigate as useNavigate322 } from "react-router-dom";
5836
- import {
5837
- Settings as Settings322,
5838
- ChevronLeft as ChevronLeft322,
5839
- ChevronRight as ChevronRight222,
5840
- Search as Search422,
5841
- Bell as Bell222,
5842
- User as User222,
5843
- LogOut as LogOut222,
5844
- Menu as Menu322,
5845
- X as X3222,
5846
- Palette as Palette222,
5847
- DollarSign as DollarSign222,
5848
- HelpCircle as HelpCircle2222,
5849
- Building2 as Building2222,
5850
- LayoutGrid as LayoutGrid222
5851
- } from "lucide-react";
5852
- import { clsx as clsx222 } from "clsx";
5853
- import { twMerge as twMerge222 } from "tailwind-merge";
5854
- import { createContext as createContext522, useContext as useContext522, useState as useState1222, useEffect as useEffect922 } from "react";
5855
- import { jsx as jsx4222 } from "react/jsx-runtime";
5856
- import { createContext as createContext2222, useContext as useContext2222, useEffect as useEffect2222, useState as useState2222 } from "react";
5857
- import { jsx as jsx5222 } from "react/jsx-runtime";
5858
- import { createContext as createContext3222, useContext as useContext3222, useState as useState3222, useCallback as useCallback322 } from "react";
5859
- import { AlertTriangle as AlertTriangle322, HelpCircle as HelpCircle322, AlertCircle as AlertCircle422, X as X822 } from "lucide-react";
5860
- import { jsx as jsx6222, jsxs as jsxs3222 } from "react/jsx-runtime";
5861
- import { useState as useState4222, useEffect as useEffect3222 } from "react";
5862
- import { jsx as jsx7222, jsxs as jsxs4222 } from "react/jsx-runtime";
5863
- import { X as X2222, Loader as Loader322, Eye as Eye422, FileText as FileText322, Check as Check222, XCircle as XCircle322, Edit as Edit222, CheckCircle as CheckCircle322, Clock as Clock222, AlertCircle as AlertCircle2222, User as UserIcon222, Send as Send222 } from "lucide-react";
5864
- import { useParams as useParams222, useSearchParams as useSearchParams322 } from "react-router-dom";
5865
- import { Fragment as Fragment722, jsx as jsx8222, jsxs as jsxs5222 } from "react/jsx-runtime";
5866
- import { Fragment as Fragment2222, jsx as jsx9222, jsxs as jsxs6222 } from "react/jsx-runtime";
5867
- import { useEffect as useEffect5222, useState as useState6222 } from "react";
5868
- import { CheckCircle as CheckCircle2322, XCircle as XCircle2222, AlertTriangle as AlertTriangle2222, Info as Info2222, X as X4222 } from "lucide-react";
5869
- import { jsx as jsx10222, jsxs as jsxs7222 } from "react/jsx-runtime";
5870
- import { ChevronLeft as ChevronLeft2222, Download as Download322, Menu as Menu2222, Settings as Settings2322 } from "lucide-react";
5871
- import { useState as useState7222 } from "react";
5872
- import { Fragment as Fragment3222, jsx as jsx11222, jsxs as jsxs8222 } from "react/jsx-runtime";
5873
- import React7222, { useEffect as useEffect6222, useState as useState8222, useRef as useRef322 } from "react";
5874
- import { useLocation as useLocation2222, useNavigate as useNavigate2222, useSearchParams as useSearchParams2222, Link as Link2222 } from "react-router-dom";
5875
- import { ArrowDownAZ as ArrowDownAZ222, ArrowDownUp as ArrowDownUp222, ArrowUpAZ as ArrowUpAZ222, AlertCircle as AlertCircle3222, CheckCircle2 as CheckCircle22222, ChevronDown as ChevronDown322, Columns3 as Columns3222, Copy as Copy222, Download as Download2222, FileSpreadsheet as FileSpreadsheet222, Filter as Filter222, Maximize2 as Maximize2222, Minimize2 as Minimize2222, MoreVertical as MoreVertical222, Plus as Plus422, Printer as Printer222, RefreshCw as RefreshCw322, Settings2 as Settings22222, Trash2 as Trash2322, Upload as Upload222, X as X5222, Search as Search2222, SquareIcon as SquareIcon222 } from "lucide-react";
5876
- import { Fragment as Fragment4222, jsx as jsx12222, jsxs as jsxs9222 } from "react/jsx-runtime";
5877
- import { useState as useState10222, useEffect as useEffect8222 } from "react";
5878
- import { useState as useState9222, useRef as useRef2222, useEffect as useEffect7222 } from "react";
5879
- import { Search as Search3222, ChevronDown as ChevronDown2222, X as X6222, RefreshCw as RefreshCw2222, Plus as Plus2222 } from "lucide-react";
5880
- import { Fragment as Fragment5222, jsx as jsx13222, jsxs as jsxs10222 } from "react/jsx-runtime";
5881
- import { X as X7222, Plus as Plus3222, Trash2 as Trash22222, Users as Users222, Loader as Loader2222, RotateCcw as RotateCcw222, Ban as Ban222, Eye as Eye322, FileText as FileText2222, History as History222 } from "lucide-react";
5882
- import { Fragment as Fragment6222, jsx as jsx14222, jsxs as jsxs11222 } from "react/jsx-runtime";
5883
- import { createContext as createContext4222, useContext as useContext4222, useState as useState11222, useCallback as useCallback2222 } from "react";
5884
- import { jsx as jsx15222, jsxs as jsxs12222 } from "react/jsx-runtime";
5885
- import { jsx as jsx16222, jsxs as jsxs13222 } from "react/jsx-runtime";
5886
- import { useEffect as useEffect16, useState as useState25 } from "react";
5887
- import { jsx as jsx17222 } from "react/jsx-runtime";
5888
- import { jsx as jsx22222, jsxs as jsxs14222 } from "react/jsx-runtime";
5889
- import { Link as Link3222 } from "react-router-dom";
5890
- import { jsx as jsx32222, jsxs as jsxs22222 } from "react/jsx-runtime";
5891
- import React42222, { useState as useState52222, useEffect as useEffect42222 } from "react";
5892
- import { useLocation as useLocation3222, useNavigate as useNavigate3222 } from "react-router-dom";
5893
- import {
5894
- Settings as Settings3222,
5895
- ChevronLeft as ChevronLeft3222,
5896
- ChevronRight as ChevronRight2222,
5897
- Search as Search4222,
5898
- Bell as Bell2222,
5899
- User as User2222,
5900
- LogOut as LogOut2222,
5901
- Menu as Menu3222,
5902
- X as X22222,
5903
- Palette as Palette2222,
5904
- DollarSign as DollarSign2222,
5905
- HelpCircle as HelpCircle3222,
5906
- Building2 as Building22222
5907
- } from "lucide-react";
5908
- import { clsx as clsx2222 } from "clsx";
5909
- import { twMerge as twMerge2222 } from "tailwind-merge";
5910
- import { createContext as createContext5222, useContext as useContext5222, useState as useState12222, useEffect as useEffect9222 } from "react";
5911
- import { jsx as jsx42222 } from "react/jsx-runtime";
5912
- import { createContext as createContext22222, useContext as useContext22222, useEffect as useEffect22222, useState as useState22222 } from "react";
5913
- import { jsx as jsx52222 } from "react/jsx-runtime";
5914
- import { createContext as createContext32222, useContext as useContext32222, useState as useState32222, useCallback as useCallback3222 } from "react";
5915
- import { jsx as jsx62222 } from "react/jsx-runtime";
5916
- import { useState as useState42222, useEffect as useEffect32222 } from "react";
5917
- import { jsx as jsx72222, jsxs as jsxs32222 } from "react/jsx-runtime";
5918
- import { X as X8222, Loader as Loader3222, Eye as Eye4222, FileText as FileText3222, Check as Check2222, XCircle as XCircle3222, Edit as Edit2222, CheckCircle as CheckCircle3222, Clock as Clock2222, AlertCircle as AlertCircle4222, User as UserIcon2222, Send as Send2222 } from "lucide-react";
5919
- import { useParams as useParams2222, useSearchParams as useSearchParams3222 } from "react-router-dom";
5920
- import { Fragment as Fragment7222, jsx as jsx82222, jsxs as jsxs42222 } from "react/jsx-runtime";
5921
- import { Fragment as Fragment22222, jsx as jsx92222, jsxs as jsxs52222 } from "react/jsx-runtime";
5922
- import { useEffect as useEffect52222, useState as useState62222 } from "react";
5923
- import { CheckCircle as CheckCircle23222, XCircle as XCircle22222, AlertTriangle as AlertTriangle3222, Info as Info3, X as X32222 } from "lucide-react";
5924
- import { jsx as jsx102222, jsxs as jsxs62222 } from "react/jsx-runtime";
5925
- import { ChevronLeft as ChevronLeft22222, Download as Download3222, Menu as Menu22222, Settings as Settings23222 } from "lucide-react";
5926
- import { useState as useState72222 } from "react";
5927
- import { Fragment as Fragment32222, jsx as jsx112222, jsxs as jsxs72222 } from "react/jsx-runtime";
5928
- import { useEffect as useEffect62222, useState as useState82222 } from "react";
5929
- import { useLocation as useLocation22222, useNavigate as useNavigate22222, useSearchParams as useSearchParams22222, Link as Link22222 } from "react-router-dom";
5930
- import { ArrowDownAZ as ArrowDownAZ2222, ArrowDownUp as ArrowDownUp2222, ArrowUpAZ as ArrowUpAZ2222, Download as Download22222, Filter as Filter2222, MoreVertical as MoreVertical2222, Printer as Printer2222, Search as Search22222 } from "lucide-react";
5931
- import { Fragment as Fragment42222, jsx as jsx122222, jsxs as jsxs82222 } from "react/jsx-runtime";
5932
- import { useState as useState102222, useEffect as useEffect82222 } from "react";
5933
- import { useState as useState92222, useRef as useRef3222, useEffect as useEffect72222 } from "react";
5934
- import { Search as Search32222, ChevronDown as ChevronDown3222, X as X42222, RefreshCw as RefreshCw3222, Plus as Plus4222 } from "lucide-react";
5935
- import { Fragment as Fragment52222, jsx as jsx132222, jsxs as jsxs92222 } from "react/jsx-runtime";
5936
- import { X as X52222, Plus as Plus22222, Trash2 as Trash23222, Users as Users2222, Loader as Loader22222, RotateCcw as RotateCcw2222, Ban as Ban2222, Eye as Eye222, FileText as FileText22222, History as History2222 } from "lucide-react";
5937
- import { Fragment as Fragment62222, jsx as jsx142222, jsxs as jsxs102222 } from "react/jsx-runtime";
5938
- import { createContext as createContext42222, useContext as useContext42222, useState as useState112222, useCallback as useCallback22222 } from "react";
5939
- import { jsx as jsx152222, jsxs as jsxs112222 } from "react/jsx-runtime";
5940
- import { jsx as jsx162222, jsxs as jsxs122222 } from "react/jsx-runtime";
5941
- import { useEffect as useEffect15, useState as useState23 } from "react";
5942
- import { jsx as jsx172222 } from "react/jsx-runtime";
5943
- import { jsx as jsx222222, jsxs as jsxs132222 } from "react/jsx-runtime";
5944
- import { Link as Link32222 } from "react-router-dom";
5945
- import { jsx as jsx322222, jsxs as jsxs222222 } from "react/jsx-runtime";
5946
- import React422222, { useState as useState522222, useEffect as useEffect422222 } from "react";
5947
- import { useLocation as useLocation32222, useNavigate as useNavigate32222 } from "react-router-dom";
5948
- import {
5949
- Settings as Settings32222,
5950
- ChevronLeft as ChevronLeft32222,
5951
- ChevronRight as ChevronRight22222,
5952
- Search as Search42222,
5953
- Bell as Bell22222,
5954
- User as User22222,
5955
- LogOut as LogOut22222,
5956
- Menu as Menu32222,
5957
- X as X222222,
5958
- Palette as Palette22222,
5959
- DollarSign as DollarSign22222,
5960
- HelpCircle as HelpCircle22222,
5961
- Building2 as Building222222
5962
- } from "lucide-react";
5963
- import { clsx as clsx22222 } from "clsx";
5964
- import { twMerge as twMerge22222 } from "tailwind-merge";
5965
- import { createContext as createContext52222, useContext as useContext52222, useState as useState122222, useEffect as useEffect92222 } from "react";
5966
- import { jsx as jsx422222 } from "react/jsx-runtime";
5967
- import { createContext as createContext222222, useContext as useContext222222, useEffect as useEffect222222, useState as useState222222 } from "react";
5968
- import { jsx as jsx522222 } from "react/jsx-runtime";
5969
- import { createContext as createContext322222, useContext as useContext322222, useState as useState322222, useCallback as useCallback32222 } from "react";
5970
- import { jsx as jsx622222 } from "react/jsx-runtime";
5971
- import { useState as useState422222, useEffect as useEffect322222 } from "react";
5972
- import { jsx as jsx722222, jsxs as jsxs322222 } from "react/jsx-runtime";
5973
- import { X as X62222, Loader as Loader32222, Eye as Eye3222, FileText as FileText32222, Check as Check22222, XCircle as XCircle32222, Edit as Edit22222, CheckCircle as CheckCircle32222, Clock as Clock22222, AlertCircle as AlertCircle22222, User as UserIcon22222, Send as Send22222 } from "lucide-react";
5974
- import { useParams as useParams22222, useSearchParams as useSearchParams32222 } from "react-router-dom";
5975
- import { Fragment as Fragment72222, jsx as jsx822222, jsxs as jsxs422222 } from "react/jsx-runtime";
5976
- import { Fragment as Fragment222222, jsx as jsx922222, jsxs as jsxs522222 } from "react/jsx-runtime";
5977
- import { useEffect as useEffect522222, useState as useState622222 } from "react";
5978
- import { CheckCircle as CheckCircle222222, XCircle as XCircle222222, AlertTriangle as AlertTriangle22222, Info as Info22222, X as X322222 } from "lucide-react";
5979
- import { jsx as jsx1022222, jsxs as jsxs622222 } from "react/jsx-runtime";
5980
- import { ChevronLeft as ChevronLeft222222, Download as Download32222, Menu as Menu222222, Settings as Settings222222 } from "lucide-react";
5981
- import { useState as useState722222 } from "react";
5982
- import { Fragment as Fragment322222, jsx as jsx1122222, jsxs as jsxs722222 } from "react/jsx-runtime";
5983
- import { useEffect as useEffect622222, useState as useState822222 } from "react";
5984
- import { useLocation as useLocation222222, useNavigate as useNavigate222222, useSearchParams as useSearchParams222222, Link as Link222222 } from "react-router-dom";
5985
- import { ArrowDownAZ as ArrowDownAZ22222, ArrowDownUp as ArrowDownUp22222, ArrowUpAZ as ArrowUpAZ22222, Download as Download222222, Filter as Filter22222, MoreVertical as MoreVertical22222, Printer as Printer22222, Search as Search222222 } from "lucide-react";
5986
- import { Fragment as Fragment422222, jsx as jsx1222222, jsxs as jsxs822222 } from "react/jsx-runtime";
5987
- import { useState as useState1022222, useEffect as useEffect822222 } from "react";
5988
- import { useState as useState922222, useRef as useRef22222, useEffect as useEffect722222 } from "react";
5989
- import { Search as Search322222, ChevronDown as ChevronDown22222, X as X422222, RefreshCw as RefreshCw22222, Plus as Plus32222 } from "lucide-react";
5990
- import { Fragment as Fragment522222, jsx as jsx1322222, jsxs as jsxs922222 } from "react/jsx-runtime";
5991
- import { X as X522222, Plus as Plus222222, Trash2 as Trash222222, Users as Users22222, Loader as Loader222222, RotateCcw as RotateCcw22222, Ban as Ban22222, Eye as Eye2222, FileText as FileText222222, History as History22222 } from "lucide-react";
5992
- import { Fragment as Fragment622222, jsx as jsx1422222, jsxs as jsxs1022222 } from "react/jsx-runtime";
5993
- import { createContext as createContext422222, useContext as useContext422222, useState as useState1122222, useCallback as useCallback222222 } from "react";
5994
- import { jsx as jsx1522222, jsxs as jsxs1122222 } from "react/jsx-runtime";
5995
- import { jsx as jsx1622222, jsxs as jsxs1222222 } from "react/jsx-runtime";
5996
- import { useEffect as useEffect14, useState as useState20 } from "react";
5997
- import { jsx as jsx1722222 } from "react/jsx-runtime";
5998
- import { jsx as jsx2222222, jsxs as jsxs1322222 } from "react/jsx-runtime";
5999
- import { Link as Link322222 } from "react-router-dom";
6000
- import { jsx as jsx3222222, jsxs as jsxs2222222 } from "react/jsx-runtime";
6001
- import React4222222, { useState as useState5222222, useEffect as useEffect4222222 } from "react";
6002
- import { useLocation as useLocation322222, useNavigate as useNavigate322222 } from "react-router-dom";
6003
- import {
6004
- Settings as Settings322222,
6005
- ChevronLeft as ChevronLeft322222,
6006
- ChevronRight as ChevronRight222222,
6007
- Search as Search422222,
6008
- Bell as Bell222222,
6009
- User as User222222,
6010
- LogOut as LogOut222222,
6011
- Menu as Menu322222,
6012
- X as X2222222,
6013
- Palette as Palette222222,
6014
- DollarSign as DollarSign222222,
6015
- HelpCircle as HelpCircle222222,
6016
- Building2 as Building2222222
6017
- } from "lucide-react";
6018
- import { clsx as clsx222222 } from "clsx";
6019
- import { twMerge as twMerge222222 } from "tailwind-merge";
6020
- import { createContext as createContext522222, useContext as useContext522222, useState as useState1222222, useEffect as useEffect922222 } from "react";
6021
- import { jsx as jsx4222222 } from "react/jsx-runtime";
6022
- import { createContext as createContext2222222, useContext as useContext2222222, useEffect as useEffect2222222, useState as useState2222222 } from "react";
6023
- import { jsx as jsx5222222 } from "react/jsx-runtime";
6024
- import { createContext as createContext3222222, useContext as useContext3222222, useState as useState3222222, useCallback as useCallback322222 } from "react";
6025
- import { jsx as jsx6222222 } from "react/jsx-runtime";
6026
- import { useState as useState4222222, useEffect as useEffect3222222 } from "react";
6027
- import { jsx as jsx7222222, jsxs as jsxs3222222 } from "react/jsx-runtime";
6028
- import { X as X622222, Loader as Loader322222, Eye as Eye32222, FileText as FileText322222, Check as Check222222, XCircle as XCircle322222, Edit as Edit222222, CheckCircle as CheckCircle322222, Clock as Clock222222, AlertCircle as AlertCircle222222, User as UserIcon222222, Send as Send222222 } from "lucide-react";
6029
- import { useParams as useParams222222, useSearchParams as useSearchParams322222 } from "react-router-dom";
6030
- import { Fragment as Fragment722222, jsx as jsx8222222, jsxs as jsxs4222222 } from "react/jsx-runtime";
6031
- import { Fragment as Fragment2222222, jsx as jsx9222222, jsxs as jsxs5222222 } from "react/jsx-runtime";
6032
- import { useEffect as useEffect5222222, useState as useState6222222 } from "react";
6033
- import { CheckCircle as CheckCircle2222222, XCircle as XCircle2222222, AlertTriangle as AlertTriangle222222, Info as Info222222, X as X3222222 } from "lucide-react";
6034
- import { jsx as jsx10222222, jsxs as jsxs6222222 } from "react/jsx-runtime";
6035
- import { ChevronLeft as ChevronLeft2222222, Download as Download322222, Menu as Menu2222222, Settings as Settings2222222 } from "lucide-react";
6036
- import { useState as useState7222222 } from "react";
6037
- import { Fragment as Fragment3222222, jsx as jsx11222222, jsxs as jsxs7222222 } from "react/jsx-runtime";
6038
- import { useEffect as useEffect6222222, useState as useState8222222 } from "react";
6039
- import { useLocation as useLocation2222222, useNavigate as useNavigate2222222, useSearchParams as useSearchParams2222222, Link as Link2222222 } from "react-router-dom";
6040
- import { ArrowDownAZ as ArrowDownAZ222222, ArrowDownUp as ArrowDownUp222222, ArrowUpAZ as ArrowUpAZ222222, Download as Download2222222, Filter as Filter222222, MoreVertical as MoreVertical222222, Printer as Printer222222, Search as Search2222222 } from "lucide-react";
6041
- import { Fragment as Fragment4222222, jsx as jsx12222222, jsxs as jsxs8222222 } from "react/jsx-runtime";
6042
- import { useState as useState10222222, useEffect as useEffect8222222 } from "react";
6043
- import { useState as useState9222222, useRef as useRef222222, useEffect as useEffect7222222 } from "react";
6044
- import { Search as Search3222222, ChevronDown as ChevronDown222222, X as X4222222, RefreshCw as RefreshCw222222, Plus as Plus322222 } from "lucide-react";
6045
- import { Fragment as Fragment5222222, jsx as jsx13222222, jsxs as jsxs9222222 } from "react/jsx-runtime";
6046
- import { X as X5222222, Plus as Plus2222222, Trash2 as Trash2222222, Users as Users222222, Loader as Loader2222222, RotateCcw as RotateCcw222222, Ban as Ban222222, Eye as Eye22222, FileText as FileText2222222, History as History222222 } from "lucide-react";
6047
- import { Fragment as Fragment6222222, jsx as jsx14222222, jsxs as jsxs10222222 } from "react/jsx-runtime";
6048
- import { createContext as createContext4222222, useContext as useContext4222222, useState as useState11222222, useCallback as useCallback2222222 } from "react";
6049
- import { jsx as jsx15222222, jsxs as jsxs11222222 } from "react/jsx-runtime";
6050
- import { jsx as jsx16222222, jsxs as jsxs12222222 } from "react/jsx-runtime";
6051
- import { useEffect as useEffect13, useState as useState18 } from "react";
6052
- import { jsx as jsx17222222 } from "react/jsx-runtime";
6053
- import { jsx as jsx22222222, jsxs as jsxs13222222 } from "react/jsx-runtime";
6054
- import { Link as Link3222222 } from "react-router-dom";
6055
- import { jsx as jsx32222222, jsxs as jsxs22222222 } from "react/jsx-runtime";
6056
- import React42222222, { useState as useState52222222, useEffect as useEffect42222222 } from "react";
6057
- import { useLocation as useLocation3222222, useNavigate as useNavigate3222222 } from "react-router-dom";
6058
- import {
6059
- Settings as Settings3222222,
6060
- ChevronLeft as ChevronLeft3222222,
6061
- ChevronRight as ChevronRight2222222,
6062
- Search as Search4222222,
6063
- Bell as Bell2222222,
6064
- User as User2222222,
6065
- LogOut as LogOut2222222,
6066
- Menu as Menu3222222,
6067
- X as X22222222,
6068
- Palette as Palette2222222,
6069
- DollarSign as DollarSign2222222,
6070
- HelpCircle as HelpCircle2222222,
6071
- Building2 as Building22222222
6072
- } from "lucide-react";
6073
- import { clsx as clsx2222222 } from "clsx";
6074
- import { twMerge as twMerge2222222 } from "tailwind-merge";
6075
- import { createContext as createContext5222222, useContext as useContext5222222, useState as useState12222222, useEffect as useEffect9222222 } from "react";
6076
- import { jsx as jsx42222222 } from "react/jsx-runtime";
6077
- import { createContext as createContext22222222, useContext as useContext22222222, useEffect as useEffect22222222, useState as useState22222222 } from "react";
6078
- import { jsx as jsx52222222 } from "react/jsx-runtime";
6079
- import { createContext as createContext32222222, useContext as useContext32222222, useState as useState32222222, useCallback as useCallback3222222 } from "react";
6080
- import { jsx as jsx62222222 } from "react/jsx-runtime";
6081
- import { useState as useState42222222, useEffect as useEffect32222222 } from "react";
6082
- import { jsx as jsx72222222, jsxs as jsxs32222222 } from "react/jsx-runtime";
6083
- import { X as X6222222, Loader as Loader3222222, Eye as Eye322222, FileText as FileText3222222, Check as Check2222222, XCircle as XCircle3222222, Edit as Edit2222222, CheckCircle as CheckCircle3222222, Clock as Clock2222222, AlertCircle as AlertCircle2222222, User as UserIcon2222222, Send as Send2222222 } from "lucide-react";
6084
- import { useParams as useParams2222222, useSearchParams as useSearchParams3222222 } from "react-router-dom";
6085
- import { Fragment as Fragment7222222, jsx as jsx82222222, jsxs as jsxs42222222 } from "react/jsx-runtime";
6086
- import { Fragment as Fragment22222222, jsx as jsx92222222, jsxs as jsxs52222222 } from "react/jsx-runtime";
6087
- import { useEffect as useEffect52222222, useState as useState62222222 } from "react";
6088
- import { CheckCircle as CheckCircle22222222, XCircle as XCircle22222222, AlertTriangle as AlertTriangle2222222, Info as Info2222222, X as X32222222 } from "lucide-react";
6089
- import { jsx as jsx102222222, jsxs as jsxs62222222 } from "react/jsx-runtime";
6090
- import { ChevronLeft as ChevronLeft22222222, Download as Download3222222, Menu as Menu22222222, Settings as Settings22222222 } from "lucide-react";
6091
- import { useState as useState72222222 } from "react";
6092
- import { Fragment as Fragment32222222, jsx as jsx112222222, jsxs as jsxs72222222 } from "react/jsx-runtime";
6093
- import { useEffect as useEffect62222222, useState as useState82222222 } from "react";
6094
- import { useLocation as useLocation22222222, useNavigate as useNavigate22222222, useSearchParams as useSearchParams22222222, Link as Link22222222 } from "react-router-dom";
6095
- import { ArrowDownAZ as ArrowDownAZ2222222, ArrowDownUp as ArrowDownUp2222222, ArrowUpAZ as ArrowUpAZ2222222, Download as Download22222222, Filter as Filter2222222, MoreVertical as MoreVertical2222222, Printer as Printer2222222, Search as Search22222222 } from "lucide-react";
6096
- import { Fragment as Fragment42222222, jsx as jsx122222222, jsxs as jsxs82222222 } from "react/jsx-runtime";
6097
- import { useState as useState102222222, useEffect as useEffect82222222 } from "react";
6098
- import { useState as useState92222222, useRef as useRef2222222, useEffect as useEffect72222222 } from "react";
6099
- import { Search as Search32222222, ChevronDown as ChevronDown2222222, X as X42222222, RefreshCw as RefreshCw2222222, Plus as Plus3222222 } from "lucide-react";
6100
- import { Fragment as Fragment52222222, jsx as jsx132222222, jsxs as jsxs92222222 } from "react/jsx-runtime";
6101
- import { X as X52222222, Plus as Plus22222222, Trash2 as Trash22222222, Users as Users2222222, Loader as Loader22222222, RotateCcw as RotateCcw2222222, Ban as Ban2222222, Eye as Eye222222, FileText as FileText22222222, History as History2222222 } from "lucide-react";
6102
- import { Fragment as Fragment62222222, jsx as jsx142222222, jsxs as jsxs102222222 } from "react/jsx-runtime";
6103
- import { createContext as createContext42222222, useContext as useContext42222222, useState as useState112222222, useCallback as useCallback22222222 } from "react";
6104
- import { jsx as jsx152222222, jsxs as jsxs112222222 } from "react/jsx-runtime";
6105
- import { jsx as jsx162222222, jsxs as jsxs122222222 } from "react/jsx-runtime";
6106
- import { useEffect as useEffect12, useState as useState16 } from "react";
6107
- import { jsx as jsx172222222 } from "react/jsx-runtime";
6108
- import { jsx as jsx222222222, jsxs as jsxs132222222 } from "react/jsx-runtime";
6109
- import { Link as Link32222222 } from "react-router-dom";
6110
- import { jsx as jsx322222222, jsxs as jsxs222222222 } from "react/jsx-runtime";
6111
- import React422222222, { useState as useState522222222, useEffect as useEffect422222222 } from "react";
6112
- import { useLocation as useLocation32222222, useNavigate as useNavigate32222222 } from "react-router-dom";
6113
- import {
6114
- Settings as Settings32222222,
6115
- ChevronLeft as ChevronLeft32222222,
6116
- ChevronRight as ChevronRight22222222,
6117
- Search as Search42222222,
6118
- Bell as Bell22222222,
6119
- User as User22222222,
6120
- LogOut as LogOut22222222,
6121
- Menu as Menu32222222,
6122
- X as X222222222,
6123
- Palette as Palette22222222,
6124
- DollarSign as DollarSign22222222,
6125
- HelpCircle as HelpCircle22222222,
6126
- Building2 as Building222222222
6127
- } from "lucide-react";
6128
- import { clsx as clsx22222222 } from "clsx";
6129
- import { twMerge as twMerge22222222 } from "tailwind-merge";
6130
- import { createContext as createContext52222222, useContext as useContext52222222, useState as useState122222222, useEffect as useEffect92222222 } from "react";
6131
- import { jsx as jsx422222222 } from "react/jsx-runtime";
6132
- import { createContext as createContext222222222, useContext as useContext222222222, useEffect as useEffect222222222, useState as useState222222222 } from "react";
6133
- import { jsx as jsx522222222 } from "react/jsx-runtime";
6134
- import { createContext as createContext322222222, useContext as useContext322222222, useState as useState322222222, useCallback as useCallback32222222 } from "react";
6135
- import { jsx as jsx622222222 } from "react/jsx-runtime";
6136
- import { useState as useState422222222, useEffect as useEffect322222222 } from "react";
6137
- import { jsx as jsx722222222, jsxs as jsxs322222222 } from "react/jsx-runtime";
6138
- import { X as X62222222, Loader as Loader32222222, Eye as Eye3222222, FileText as FileText32222222, Check as Check22222222, XCircle as XCircle32222222, Edit as Edit22222222, CheckCircle as CheckCircle32222222, Clock as Clock22222222, AlertCircle as AlertCircle22222222, User as UserIcon22222222, Send as Send22222222 } from "lucide-react";
6139
- import { useParams as useParams22222222, useSearchParams as useSearchParams32222222 } from "react-router-dom";
6140
- import { Fragment as Fragment72222222, jsx as jsx822222222, jsxs as jsxs422222222 } from "react/jsx-runtime";
6141
- import { Fragment as Fragment222222222, jsx as jsx922222222, jsxs as jsxs522222222 } from "react/jsx-runtime";
6142
- import { useEffect as useEffect522222222, useState as useState622222222 } from "react";
6143
- import { CheckCircle as CheckCircle222222222, XCircle as XCircle222222222, AlertTriangle as AlertTriangle22222222, Info as Info22222222, X as X322222222 } from "lucide-react";
6144
- import { jsx as jsx1022222222, jsxs as jsxs622222222 } from "react/jsx-runtime";
6145
- import { ChevronLeft as ChevronLeft222222222, Download as Download32222222, Menu as Menu222222222, Settings as Settings222222222 } from "lucide-react";
6146
- import { useState as useState722222222 } from "react";
6147
- import { Fragment as Fragment322222222, jsx as jsx1122222222, jsxs as jsxs722222222 } from "react/jsx-runtime";
6148
- import { useEffect as useEffect622222222, useState as useState822222222 } from "react";
6149
- import { useLocation as useLocation222222222, useNavigate as useNavigate222222222, useSearchParams as useSearchParams222222222, Link as Link222222222 } from "react-router-dom";
6150
- import { ArrowDownAZ as ArrowDownAZ22222222, ArrowDownUp as ArrowDownUp22222222, ArrowUpAZ as ArrowUpAZ22222222, Download as Download222222222, Filter as Filter22222222, MoreVertical as MoreVertical22222222, Printer as Printer22222222, Search as Search222222222 } from "lucide-react";
6151
- import { Fragment as Fragment422222222, jsx as jsx1222222222, jsxs as jsxs822222222 } from "react/jsx-runtime";
6152
- import { useState as useState1022222222, useEffect as useEffect822222222 } from "react";
6153
- import { useState as useState922222222, useRef as useRef22222222, useEffect as useEffect722222222 } from "react";
6154
- import { Search as Search322222222, ChevronDown as ChevronDown22222222, X as X422222222, RefreshCw as RefreshCw22222222, Plus as Plus32222222 } from "lucide-react";
6155
- import { Fragment as Fragment522222222, jsx as jsx1322222222, jsxs as jsxs922222222 } from "react/jsx-runtime";
6156
- import { X as X522222222, Plus as Plus222222222, Trash2 as Trash222222222, Users as Users22222222, Loader as Loader222222222, RotateCcw as RotateCcw22222222, Ban as Ban22222222, Eye as Eye2222222, FileText as FileText222222222, History as History22222222 } from "lucide-react";
6157
- import { Fragment as Fragment622222222, jsx as jsx1422222222, jsxs as jsxs1022222222 } from "react/jsx-runtime";
6158
- import { createContext as createContext422222222, useContext as useContext422222222, useState as useState1122222222, useCallback as useCallback222222222 } from "react";
6159
- import { jsx as jsx1522222222, jsxs as jsxs1122222222 } from "react/jsx-runtime";
6160
- import { jsx as jsx1622222222, jsxs as jsxs1222222222 } from "react/jsx-runtime";
6161
- import { useEffect as useEffect11, useState as useState14 } from "react";
6162
- import { jsx as jsx1722222222 } from "react/jsx-runtime";
6163
- import { jsx as jsx2222222222, jsxs as jsxs1322222222 } from "react/jsx-runtime";
6164
- import { Link as Link322222222 } from "react-router-dom";
6165
- import { jsx as jsx3222222222, jsxs as jsxs2222222222 } from "react/jsx-runtime";
6166
- import React4222222222, { useState as useState5222222222, useEffect as useEffect4222222222 } from "react";
6167
- import { useLocation as useLocation322222222, useNavigate as useNavigate322222222 } from "react-router-dom";
6168
- import {
6169
- Settings as Settings322222222,
6170
- ChevronLeft as ChevronLeft322222222,
6171
- ChevronRight as ChevronRight222222222,
6172
- Search as Search422222222,
6173
- Bell as Bell222222222,
6174
- User as User222222222,
6175
- LogOut as LogOut222222222,
6176
- Menu as Menu322222222,
6177
- X as X2222222222,
6178
- Palette as Palette222222222,
6179
- DollarSign as DollarSign222222222,
6180
- HelpCircle as HelpCircle222222222,
6181
- Building2 as Building2222222222
6182
- } from "lucide-react";
6183
- import { clsx as clsx222222222 } from "clsx";
6184
- import { twMerge as twMerge222222222 } from "tailwind-merge";
6185
- import { createContext as createContext522222222, useContext as useContext522222222, useState as useState1222222222, useEffect as useEffect922222222 } from "react";
6186
- import { jsx as jsx4222222222 } from "react/jsx-runtime";
6187
- import { createContext as createContext2222222222, useContext as useContext2222222222, useEffect as useEffect2222222222, useState as useState2222222222 } from "react";
6188
- import { jsx as jsx5222222222 } from "react/jsx-runtime";
6189
- import { createContext as createContext3222222222, useContext as useContext3222222222, useState as useState3222222222, useCallback as useCallback322222222 } from "react";
6190
- import { jsx as jsx6222222222 } from "react/jsx-runtime";
6191
- import { useState as useState4222222222, useEffect as useEffect3222222222 } from "react";
6192
- import { jsx as jsx7222222222, jsxs as jsxs3222222222 } from "react/jsx-runtime";
6193
- import { X as X622222222, Loader as Loader322222222, Eye as Eye32222222, FileText as FileText322222222, Check as Check222222222, XCircle as XCircle322222222, Edit as Edit222222222, CheckCircle as CheckCircle322222222, Clock as Clock222222222, AlertCircle as AlertCircle222222222, User as UserIcon222222222, Send as Send222222222 } from "lucide-react";
6194
- import { useParams as useParams222222222, useSearchParams as useSearchParams322222222 } from "react-router-dom";
6195
- import { Fragment as Fragment722222222, jsx as jsx8222222222, jsxs as jsxs4222222222 } from "react/jsx-runtime";
6196
- import { Fragment as Fragment2222222222, jsx as jsx9222222222, jsxs as jsxs5222222222 } from "react/jsx-runtime";
6197
- import { useEffect as useEffect5222222222, useState as useState6222222222 } from "react";
6198
- import { CheckCircle as CheckCircle2222222222, XCircle as XCircle2222222222, AlertTriangle as AlertTriangle222222222, Info as Info222222222, X as X3222222222 } from "lucide-react";
6199
- import { jsx as jsx10222222222, jsxs as jsxs6222222222 } from "react/jsx-runtime";
6200
- import { ChevronLeft as ChevronLeft2222222222, Download as Download322222222, Menu as Menu2222222222, Settings as Settings2222222222 } from "lucide-react";
6201
- import { useState as useState7222222222 } from "react";
6202
- import { Fragment as Fragment3222222222, jsx as jsx11222222222, jsxs as jsxs7222222222 } from "react/jsx-runtime";
6203
- import { useEffect as useEffect6222222222, useState as useState8222222222 } from "react";
6204
- import { useLocation as useLocation2222222222, useNavigate as useNavigate2222222222, useSearchParams as useSearchParams2222222222, Link as Link2222222222 } from "react-router-dom";
6205
- import { ArrowDownAZ as ArrowDownAZ222222222, ArrowDownUp as ArrowDownUp222222222, ArrowUpAZ as ArrowUpAZ222222222, Download as Download2222222222, Filter as Filter222222222, MoreVertical as MoreVertical222222222, Printer as Printer222222222, Search as Search2222222222 } from "lucide-react";
6206
- import { Fragment as Fragment4222222222, jsx as jsx12222222222, jsxs as jsxs8222222222 } from "react/jsx-runtime";
6207
- import { useState as useState10222222222, useEffect as useEffect8222222222 } from "react";
6208
- import { useState as useState9222222222, useRef as useRef222222222, useEffect as useEffect7222222222 } from "react";
6209
- import { Search as Search3222222222, ChevronDown as ChevronDown222222222, X as X4222222222 } from "lucide-react";
6210
- import { Fragment as Fragment5222222222, jsx as jsx13222222222, jsxs as jsxs9222222222 } from "react/jsx-runtime";
6211
- import { X as X5222222222, Plus as Plus322222222, Trash2 as Trash2222222222, Users as Users222222222, Loader as Loader2222222222, RotateCcw as RotateCcw222222222, Ban as Ban222222222, Eye as Eye22222222, FileText as FileText2222222222, History as History222222222 } from "lucide-react";
6212
- import { Fragment as Fragment6222222222, jsx as jsx14222222222, jsxs as jsxs10222222222 } from "react/jsx-runtime";
6213
- import { createContext as createContext4222222222, useContext as useContext4222222222, useState as useState11222222222, useCallback as useCallback2222222222 } from "react";
6214
- import { jsx as jsx15222222222, jsxs as jsxs11222222222 } from "react/jsx-runtime";
6215
- import { jsx as jsx16222222222, jsxs as jsxs12222222222 } from "react/jsx-runtime";
6216
- import { useState as useState13 } from "react";
6217
- import { jsx as jsx18, jsxs as jsxs142222 } from "react/jsx-runtime";
6218
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
6219
- import { useState as useState15 } from "react";
6220
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
6221
- import { jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
6222
- import { jsx as jsx23 } from "react/jsx-runtime";
6223
- import { useState as useState17 } from "react";
6224
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
6225
- import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
6226
- import { jsx as jsx26 } from "react/jsx-runtime";
6227
- import { useState as useState19 } from "react";
6228
- import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
6229
- import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
6230
- import { jsx as jsx29 } from "react/jsx-runtime";
6231
- import { useState as useState21 } from "react";
6232
- import { jsx as jsx30, jsxs as jsxs23 } from "react/jsx-runtime";
6233
- import { jsx as jsx31, jsxs as jsxs24 } from "react/jsx-runtime";
6234
- import { jsx as jsx33 } from "react/jsx-runtime";
6235
- import { useState as useState24 } from "react";
6236
- import { jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
6237
- import { jsx as jsx35, jsxs as jsxs26 } from "react/jsx-runtime";
6238
- import { jsx as jsx36 } from "react/jsx-runtime";
6239
- import { useState as useState26 } from "react";
6240
- import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
6241
- import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
6242
- import { jsx as jsx39 } from "react/jsx-runtime";
6243
- import { useState as useState28 } from "react";
6244
- import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
6245
- import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
6246
- import { jsx as jsx43 } from "react/jsx-runtime";
6247
- var PrimaryButton2 = ({
6248
- loading = false,
6249
- children,
6250
- classname = "",
6251
- variant = "full",
6252
- ...props
6253
- }) => /* @__PURE__ */ jsx17(
6254
- "button",
6255
- {
6256
- type: "submit",
6257
- disabled: loading || props.disabled,
6258
- className: `px-4 py-2 text-sm rounded-lg hover:bg-opacity-80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex justify-center items-center ${classname} ${variant === "full" ? "bg-[#6A8A82] text-white" : variant === "outline" ? "border border-[#6A8A82] text-[#6A8A82] bg-transparent" : "bg-transparent text-[#6A8A82]"}`,
6259
- ...props,
6260
- children: loading ? "Connexion en cours..." : children
6261
- }
6262
- );
6263
- var Buttons_default2 = PrimaryButton2;
6264
- var Modal2 = ({ title, description, width = "max-w-lg", open, onClose, children }) => {
6265
- if (!open) return null;
6266
- return /* @__PURE__ */ jsx22("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */ jsxs14("div", { className: `bg-white rounded-lg p-6 mx-4 w-full ${width}`, children: [
6267
- /* @__PURE__ */ jsxs14("div", { className: "flex justify-between items-start mb-6", children: [
6268
- /* @__PURE__ */ jsxs14("div", { children: [
6269
- /* @__PURE__ */ jsx22("h3", { className: "text-xl font-semibold text-tuatara flex items-center space-x-2", children: /* @__PURE__ */ jsx22("span", { children: title }) }),
6270
- description && /* @__PURE__ */ jsx22("p", { className: "text-sm text-gray-600 mt-1", children: description })
6271
- ] }),
6272
- /* @__PURE__ */ jsx22(
6273
- "button",
6274
- {
6275
- onClick: onClose,
6276
- className: "text-gray-400 hover:text-gray-600 text-xl",
6277
- "aria-label": "Close modal",
6278
- children: "\u2715"
6279
- }
6280
- )
6281
- ] }),
6282
- /* @__PURE__ */ jsx22("div", { className: "w-full max-h-[80vh] overflow-y-auto", children })
6283
- ] }) });
6284
- };
6285
- var Modals_default2 = Modal2;
6286
- var InputField2 = ({
6287
- label,
6288
- name,
6289
- type = "text",
6290
- value,
6291
- placeholder,
6292
- required = false,
6293
- disabled = false,
6294
- error,
6295
- onChange,
6296
- onBlur
6297
- }) => {
6298
- return /* @__PURE__ */ jsxs22("div", { className: "flex flex-col gap-1 w-full", children: [
6299
- label && /* @__PURE__ */ jsxs22("label", { htmlFor: name, className: "block text-gray-700 text-sm font-medium mb-2", children: [
6300
- label,
6301
- " ",
6302
- required && /* @__PURE__ */ jsx32("span", { className: "text-red-500", children: "*" })
6303
- ] }),
6304
- /* @__PURE__ */ jsx32(
6305
- "input",
6306
- {
6307
- id: name,
6308
- name,
6309
- type,
6310
- value,
6311
- placeholder,
6312
- required,
6313
- disabled,
6314
- onChange,
6315
- onBlur,
6316
- className: `w-full px-3 py-2 border border-[#D9D9D9] focus:ring-2 focus:ring-[#6A8A82]/20
6317
- ${error ? "border-red-500" : "border-gray-300"}
6318
- ${disabled ? "bg-gray-100 cursor-not-allowed" : ""}
6319
- `
6320
- }
6321
- ),
6322
- error && /* @__PURE__ */ jsx32("p", { className: "text-xs text-red-500", children: error })
6323
- ] });
6324
- };
6325
- var TextInput2 = (props) => {
6326
- return /* @__PURE__ */ jsx32(InputField2, { ...props, type: "text" });
6327
- };
6328
- var ThemeContext2 = createContext5(void 0);
6329
- var chooseEnv2 = localStorage.getItem("env") ?? "prod";
6330
- var ADDRESS_IP2 = chooseEnv2 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6331
- var ADDRESS_IP_URL2 = chooseEnv2 === "prod" ? `https://${ADDRESS_IP2}/` : `http://${ADDRESS_IP2}/`;
6332
- var API_URL2 = `${ADDRESS_IP_URL2}api`;
6333
- var API_BASE_URL3 = `${API_URL2}/core/auth/`;
6334
- var VENDORS_API_URL2 = `${API_URL2}/accounting/vendors/`;
6335
- var SessionContext2 = createContext22(void 0);
6336
- var API_BASE_URL22 = `${API_URL2}/core/auth/`;
6337
- var USERS_API_URL2 = `${API_URL2}/core/users/`;
6338
- var ToastContext2 = createContext32(void 0);
6339
- var APPROVAL_API_URL2 = `${API_URL2}/approvals/cases/`;
6340
- var AlertContext2 = createContext42(void 0);
6341
- var ThemeContext22 = createContext52(void 0);
6342
- var chooseEnv22 = localStorage.getItem("env") ?? "prod";
6343
- var ADDRESS_IP22 = chooseEnv22 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6344
- var ADDRESS_IP_URL22 = chooseEnv22 === "prod" ? `https://${ADDRESS_IP22}/` : `http://${ADDRESS_IP22}/`;
6345
- var API_URL22 = `${ADDRESS_IP_URL22}api`;
6346
- var API_BASE_URL32 = `${API_URL22}/core/auth/`;
6347
- var VENDORS_API_URL22 = `${API_URL22}/accounting/vendors/`;
6348
- var SessionContext22 = createContext222(void 0);
6349
- var API_BASE_URL222 = `${API_URL22}/core/auth/`;
6350
- var USERS_API_URL22 = `${API_URL22}/core/users/`;
6351
- var ToastContext22 = createContext322(void 0);
6352
- var APPROVAL_API_URL22 = `${API_URL22}/approvals/cases/`;
6353
- var AlertContext22 = createContext422(void 0);
6354
- var ThemeContext222 = createContext522(void 0);
6355
- var chooseEnv222 = localStorage.getItem("env") ?? "prod";
6356
- var ADDRESS_IP222 = chooseEnv222 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6357
- var ADDRESS_IP_URL222 = chooseEnv222 === "prod" ? `https://${ADDRESS_IP222}/` : `http://${ADDRESS_IP222}/`;
6358
- var API_URL222 = `${ADDRESS_IP_URL222}api`;
6359
- var API_BASE_URL322 = `${API_URL222}/core/auth/`;
6360
- var VENDORS_API_URL222 = `${API_URL222}/accounting/vendors/`;
6361
- var SessionContext222 = createContext2222(void 0);
6362
- var API_BASE_URL2222 = `${API_URL222}/core/auth/`;
6363
- var USERS_API_URL222 = `${API_URL222}/core/users/`;
6364
- var ToastContext222 = createContext3222(void 0);
6365
- var APPROVAL_API_URL222 = `${API_URL222}/approvals/cases/`;
6366
- var AlertContext222 = createContext4222(void 0);
6367
- var ThemeContext2222 = createContext5222(void 0);
6368
- var chooseEnv2222 = localStorage.getItem("env") ?? "prod";
6369
- var ADDRESS_IP2222 = chooseEnv2222 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6370
- var ADDRESS_IP_URL2222 = chooseEnv2222 === "prod" ? `https://${ADDRESS_IP2222}/` : `http://${ADDRESS_IP2222}/`;
6371
- var API_URL2222 = `${ADDRESS_IP_URL2222}api`;
6372
- var API_BASE_URL3222 = `${API_URL2222}/core/auth/`;
6373
- var SessionContext2222 = createContext22222(void 0);
6374
- var API_BASE_URL22222 = `${API_URL2222}/core/auth/`;
6375
- var USERS_API_URL2222 = `${API_URL2222}/core/users/`;
6376
- var ToastContext2222 = createContext32222(void 0);
6377
- var APPROVAL_API_URL2222 = `${API_URL2222}/approvals/cases/`;
6378
- var AlertContext2222 = createContext42222(void 0);
6379
- var VENDORS_API_URL2222 = `${API_URL2222}/accounting/vendors/`;
6380
- var ThemeContext22222 = createContext52222(void 0);
6381
- var chooseEnv22222 = localStorage.getItem("env") ?? "prod";
6382
- var ADDRESS_IP22222 = chooseEnv22222 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6383
- var ADDRESS_IP_URL22222 = chooseEnv22222 === "prod" ? `https://${ADDRESS_IP22222}/` : `http://${ADDRESS_IP22222}/`;
6384
- var API_URL22222 = `${ADDRESS_IP_URL22222}api`;
6385
- var API_BASE_URL32222 = `${API_URL22222}/core/auth/`;
6386
- var SessionContext22222 = createContext222222(void 0);
6387
- var API_BASE_URL222222 = `${API_URL22222}/core/auth/`;
6388
- var USERS_API_URL22222 = `${API_URL22222}/core/users/`;
6389
- var ToastContext22222 = createContext322222(void 0);
6390
- var APPROVAL_API_URL22222 = `${API_URL22222}/approvals/cases/`;
6391
- var AlertContext22222 = createContext422222(void 0);
6392
- var VENDORS_API_URL22222 = `${API_URL22222}/accounting/vendors/`;
6393
- var ThemeContext222222 = createContext522222(void 0);
6394
- var chooseEnv222222 = localStorage.getItem("env") ?? "prod";
6395
- var ADDRESS_IP222222 = chooseEnv222222 === "prod" ? "back.rewise.praeduim-tech.com" : "localhost:8000";
6396
- var ADDRESS_IP_URL222222 = chooseEnv222222 === "prod" ? `https://${ADDRESS_IP222222}/` : `http://${ADDRESS_IP222222}/`;
6397
- var API_URL222222 = `${ADDRESS_IP_URL222222}api`;
6398
- var API_BASE_URL322222 = `${API_URL222222}/core/auth/`;
6399
- var SessionContext222222 = createContext2222222(void 0);
6400
- var API_BASE_URL2222222 = `${API_URL222222}/core/auth/`;
6401
- var USERS_API_URL222222 = `${API_URL222222}/core/users/`;
6402
- var ToastContext222222 = createContext3222222(void 0);
6403
- var APPROVAL_API_URL222222 = `${API_URL222222}/approvals/cases/`;
6404
- var AlertContext222222 = createContext4222222(void 0);
6405
- var VENDORS_API_URL222222 = `${API_URL222222}/accounting/vendors/`;
6406
- var ThemeContext2222222 = createContext5222222(void 0);
6407
- var ADDRESS_IP2222222 = "localhost:8000";
6408
- var ADDRESS_IP_URL2222222 = `http://${ADDRESS_IP2222222}/`;
6409
- var API_URL2222222 = `${ADDRESS_IP_URL2222222}api`;
6410
- var API_BASE_URL3222222 = `${API_URL2222222}/core/auth/`;
6411
- var SessionContext2222222 = createContext22222222(void 0);
6412
- var API_BASE_URL22222222 = `${API_URL2222222}/core/auth/`;
6413
- var USERS_API_URL2222222 = `${API_URL2222222}/core/users/`;
6414
- var ToastContext2222222 = createContext32222222(void 0);
6415
- var APPROVAL_API_URL2222222 = `${API_URL2222222}/approvals/cases/`;
6416
- var AlertContext2222222 = createContext42222222(void 0);
6417
- var VENDORS_API_URL2222222 = `${API_URL2222222}/accounting/vendors/`;
6418
- var ThemeContext22222222 = createContext52222222(void 0);
6419
- var ADDRESS_IP22222222 = "localhost:8000";
6420
- var ADDRESS_IP_URL22222222 = `http://${ADDRESS_IP22222222}/`;
6421
- var API_URL22222222 = `${ADDRESS_IP_URL22222222}api`;
6422
- var API_BASE_URL32222222 = `${API_URL22222222}/core/auth/`;
6423
- var SessionContext22222222 = createContext222222222(void 0);
6424
- var API_BASE_URL222222222 = `${API_URL22222222}/core/auth/`;
6425
- var USERS_API_URL22222222 = `${API_URL22222222}/core/users/`;
6426
- var ToastContext22222222 = createContext322222222(void 0);
6427
- var APPROVAL_API_URL22222222 = `${API_URL22222222}/approvals/cases/`;
6428
- var AlertContext22222222 = createContext422222222(void 0);
6429
- var VENDORS_API_URL22222222 = `${API_URL22222222}/accounting/vendors/`;
6430
- var ThemeContext222222222 = createContext522222222(void 0);
6431
- var ADDRESS_IP222222222 = "localhost:8000";
6432
- var ADDRESS_IP_URL222222222 = `http://${ADDRESS_IP222222222}/`;
6433
- var API_URL222222222 = `${ADDRESS_IP_URL222222222}api`;
6434
- var API_BASE_URL322222222 = `${API_URL222222222}/core/auth/`;
6435
- var SessionContext222222222 = createContext2222222222(void 0);
6436
- var API_BASE_URL2222222222 = `${API_URL222222222}/core/auth/`;
6437
- var USERS_API_URL222222222 = `${API_URL222222222}/core/users/`;
6438
- var ToastContext222222222 = createContext3222222222(void 0);
6439
- var APPROVAL_API_URL222222222 = `${API_URL222222222}/approvals/cases/`;
6440
- var AlertContext222222222 = createContext4222222222(void 0);
6441
- var URI = `${API_URL22222222}/core/departments/`;
6442
- var URI2 = `${API_URL22222222}/accounting/profit-or-cost-center/`;
6443
- var COST_URI = `${API_URL22222222}/accounting/cost-center/`;
6444
- var PROFIT_URI = `${API_URL22222222}/accounting/profit-center/`;
6445
- var URI3 = `${API_URL2222222}/core/departments/`;
6446
- var URI4 = `${API_URL2222222}/accounting/profit-or-cost-center/`;
6447
- var COST_URI2 = `${API_URL2222222}/accounting/cost-center/`;
6448
- var PROFIT_URI2 = `${API_URL2222222}/accounting/profit-center/`;
6449
- var URI5 = `${API_URL222222}/core/departments/`;
6450
- var URI6 = `${API_URL222222}/accounting/profit-or-cost-center/`;
6451
- var COST_URI3 = `${API_URL222222}/accounting/cost-center/`;
6452
- var PROFIT_URI3 = `${API_URL222222}/accounting/profit-center/`;
6453
- var URI7 = `${API_URL22222}/core/departments/`;
6454
- var URI8 = `${API_URL22222}/accounting/profit-or-cost-center/`;
6455
- var COST_URI4 = `${API_URL22222}/accounting/cost-center/`;
6456
- var PROFIT_URI4 = `${API_URL22222}/accounting/profit-center/`;
6457
- var URI9 = `${API_URL2222}/core/departments/`;
6458
- var URI10 = `${API_URL2222}/accounting/profit-or-cost-center/`;
6459
- var COST_URI5 = `${API_URL2222}/accounting/cost-center/`;
6460
- var PROFIT_URI5 = `${API_URL2222}/accounting/profit-center/`;
6461
- var URI11 = `${API_URL222}/core/departments/`;
6462
- var URI12 = `${API_URL222}/accounting/profit-or-cost-center/`;
6463
- var COST_URI6 = `${API_URL222}/accounting/cost-center/`;
6464
- var PROFIT_URI6 = `${API_URL222}/accounting/profit-center/`;
6465
- var URI13 = `${API_URL22}/core/departments/`;
6466
- var URI14 = `${API_URL22}/accounting/profit-or-cost-center/`;
6467
- var COST_URI7 = `${API_URL22}/accounting/cost-center/`;
6468
- var PROFIT_URI7 = `${API_URL22}/accounting/profit-center/`;
6469
- var URI15 = `${API_URL2}/core/departments/`;
6470
- var URI16 = `${API_URL2}/accounting/profit-or-cost-center/`;
6471
- var COST_URI8 = `${API_URL2}/accounting/cost-center/`;
6472
- var PROFIT_URI8 = `${API_URL2}/accounting/profit-center/`;
5700
+ import { useEffect as useEffect10, useState as useState13 } from "react";
6473
5701
 
6474
5702
  // src/components/common/FormVendor.tsx
6475
- import { useState as useState30 } from "react";
6476
- import { jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
5703
+ import { useState as useState12 } from "react";
5704
+ import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
6477
5705
  var MinimalVendorForm = ({
6478
5706
  isOpen,
6479
5707
  onClose,
@@ -6482,13 +5710,13 @@ var MinimalVendorForm = ({
6482
5710
  refresh = () => {
6483
5711
  }
6484
5712
  }) => {
6485
- const [formData, setFormData] = useState30(object || {
5713
+ const [formData, setFormData] = useState12(object || {
6486
5714
  from_module: from ?? null,
6487
5715
  legal_name: "",
6488
5716
  trading_name: ""
6489
5717
  });
6490
- const [errors, setErrors] = useState30({});
6491
- const [loading, setLoading] = useState30(false);
5718
+ const [errors, setErrors] = useState12({});
5719
+ const [loading, setLoading] = useState12(false);
6492
5720
  const { token } = useSession();
6493
5721
  const { success, error: showError } = useToast();
6494
5722
  const handleInputChange = (e) => {
@@ -6547,18 +5775,18 @@ var MinimalVendorForm = ({
6547
5775
  }
6548
5776
  };
6549
5777
  if (!isOpen) return null;
6550
- return /* @__PURE__ */ jsx44(
6551
- Modals_default2,
5778
+ return /* @__PURE__ */ jsx17(
5779
+ Modals_default,
6552
5780
  {
6553
5781
  title: "Ajouter un fournisseur",
6554
5782
  width: "w-[100%]",
6555
5783
  description: ``,
6556
5784
  open: isOpen,
6557
5785
  onClose,
6558
- children: /* @__PURE__ */ jsxs31("form", { onSubmit: handleSubmit, className: "p-", children: [
6559
- /* @__PURE__ */ jsx44("div", { className: "space-y-4", children: /* @__PURE__ */ jsxs31("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6560
- /* @__PURE__ */ jsx44(
6561
- TextInput2,
5786
+ children: /* @__PURE__ */ jsxs14("form", { onSubmit: handleSubmit, className: "p-", children: [
5787
+ /* @__PURE__ */ jsx17("div", { className: "space-y-4", children: /* @__PURE__ */ jsxs14("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
5788
+ /* @__PURE__ */ jsx17(
5789
+ TextInput,
6562
5790
  {
6563
5791
  label: "Raison sociale",
6564
5792
  name: "legal_name",
@@ -6569,8 +5797,8 @@ var MinimalVendorForm = ({
6569
5797
  onChange: handleInputChange
6570
5798
  }
6571
5799
  ),
6572
- /* @__PURE__ */ jsx44(
6573
- TextInput2,
5800
+ /* @__PURE__ */ jsx17(
5801
+ TextInput,
6574
5802
  {
6575
5803
  label: "Nom commercial",
6576
5804
  name: "trading_name",
@@ -6580,8 +5808,8 @@ var MinimalVendorForm = ({
6580
5808
  }
6581
5809
  )
6582
5810
  ] }) }),
6583
- /* @__PURE__ */ jsxs31("div", { className: "flex justify-between pt-6 mt-8", children: [
6584
- /* @__PURE__ */ jsx44(
5811
+ /* @__PURE__ */ jsxs14("div", { className: "flex justify-between pt-6 mt-8", children: [
5812
+ /* @__PURE__ */ jsx17(
6585
5813
  "button",
6586
5814
  {
6587
5815
  type: "button",
@@ -6590,8 +5818,8 @@ var MinimalVendorForm = ({
6590
5818
  children: "Annuler"
6591
5819
  }
6592
5820
  ),
6593
- /* @__PURE__ */ jsx44(
6594
- Buttons_default2,
5821
+ /* @__PURE__ */ jsx17(
5822
+ Buttons_default,
6595
5823
  {
6596
5824
  type: "button",
6597
5825
  onClick: handleSubmit,
@@ -6606,43 +5834,43 @@ var MinimalVendorForm = ({
6606
5834
  };
6607
5835
 
6608
5836
  // src/services/DepartmentServices.ts
6609
- var URI17 = `${API_URL}/core/departments/`;
5837
+ var URI = `${API_URL}/core/departments/`;
6610
5838
  var DepartmentServices = {
6611
- create: (data) => FetchApi.post(`${URI17}`, data),
6612
- get: (id) => FetchApi.get(`${URI17}${id}/`),
6613
- list: (params) => FetchApi.get(`${URI17}?${new URLSearchParams(params).toString()}`),
6614
- update: (id, data) => FetchApi.put(`${URI17}${id}/`, data),
6615
- delete: (id) => FetchApi.delete(`${URI17}${id}/`)
5839
+ create: (data) => FetchApi.post(`${URI}`, data),
5840
+ get: (id) => FetchApi.get(`${URI}${id}/`),
5841
+ list: (params) => FetchApi.get(`${URI}?${new URLSearchParams(params).toString()}`),
5842
+ update: (id, data) => FetchApi.put(`${URI}${id}/`, data),
5843
+ delete: (id) => FetchApi.delete(`${URI}${id}/`)
6616
5844
  };
6617
5845
 
6618
5846
  // src/services/ProfitCostsServices.ts
6619
- var URI18 = `${API_URL}/accounting/profit-or-cost-center/`;
6620
- var COST_URI9 = `${API_URL}/accounting/cost-center/`;
5847
+ var URI2 = `${API_URL}/accounting/profit-or-cost-center/`;
5848
+ var COST_URI = `${API_URL}/accounting/cost-center/`;
6621
5849
  var CostServices = {
6622
- create: (data) => FetchApi.post(`${COST_URI9}`, data),
6623
- get: (id) => FetchApi.get(`${COST_URI9}${id}/`),
6624
- list: (params) => FetchApi.get(`${COST_URI9}?${new URLSearchParams(params).toString()}`),
6625
- update: (id, data) => FetchApi.put(`${COST_URI9}${id}/`, data),
6626
- delete: (id) => FetchApi.delete(`${COST_URI9}${id}/`)
5850
+ create: (data) => FetchApi.post(`${COST_URI}`, data),
5851
+ get: (id) => FetchApi.get(`${COST_URI}${id}/`),
5852
+ list: (params) => FetchApi.get(`${COST_URI}?${new URLSearchParams(params).toString()}`),
5853
+ update: (id, data) => FetchApi.put(`${COST_URI}${id}/`, data),
5854
+ delete: (id) => FetchApi.delete(`${COST_URI}${id}/`)
6627
5855
  };
6628
- var PROFIT_URI9 = `${API_URL}/accounting/profit-center/`;
5856
+ var PROFIT_URI = `${API_URL}/accounting/profit-center/`;
6629
5857
 
6630
5858
  // src/components/common/CommonSelect.tsx
6631
- import { jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
5859
+ import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
6632
5860
  var SelectVendor = ({
6633
5861
  value,
6634
5862
  onSelect
6635
5863
  }) => {
6636
- const [showModal, setShowModal] = useState31(false);
6637
- const [selectedVendor, setSelectedVendor] = useState31(null);
5864
+ const [showModal, setShowModal] = useState13(false);
5865
+ const [selectedVendor, setSelectedVendor] = useState13(null);
6638
5866
  const { token, activeBusinessEntity } = useSession();
6639
- const [vendors, setVendors] = useState31(() => {
5867
+ const [vendors, setVendors] = useState13(() => {
6640
5868
  const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
6641
5869
  const cached = sessionStorage.getItem(cacheKey);
6642
5870
  return cached ? JSON.parse(cached) : [];
6643
5871
  });
6644
- const [loadingVendors, setLoadingVendors] = useState31(false);
6645
- useEffect19(() => {
5872
+ const [loadingVendors, setLoadingVendors] = useState13(false);
5873
+ useEffect10(() => {
6646
5874
  const cacheKey = `vendors_cache_${activeBusinessEntity?.id || "default"}`;
6647
5875
  const cached = sessionStorage.getItem(cacheKey);
6648
5876
  if (!cached) {
@@ -6680,9 +5908,9 @@ var SelectVendor = ({
6680
5908
  sessionStorage.removeItem(cacheKey);
6681
5909
  loadVendors();
6682
5910
  };
6683
- return /* @__PURE__ */ jsxs33("div", { children: [
6684
- /* @__PURE__ */ jsx45("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx45("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Ajouter un fournisseur" }) }),
6685
- /* @__PURE__ */ jsx45(
5911
+ return /* @__PURE__ */ jsxs15("div", { children: [
5912
+ /* @__PURE__ */ jsx18("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx18("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "Ajouter un fournisseur" }) }),
5913
+ /* @__PURE__ */ jsx18(
6686
5914
  SearchableSelect,
6687
5915
  {
6688
5916
  value,
@@ -6698,8 +5926,8 @@ var SelectVendor = ({
6698
5926
  },
6699
5927
  "fourni" + value
6700
5928
  ),
6701
- loadingVendors && /* @__PURE__ */ jsx45("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des fournisseurs..." }),
6702
- showModal && /* @__PURE__ */ jsx45(
5929
+ loadingVendors && /* @__PURE__ */ jsx18("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des fournisseurs..." }),
5930
+ showModal && /* @__PURE__ */ jsx18(
6703
5931
  MinimalVendorForm,
6704
5932
  {
6705
5933
  object: selectedVendor,
@@ -6716,13 +5944,13 @@ var SelectUser = ({
6716
5944
  onSelect
6717
5945
  }) => {
6718
5946
  const { token, activeBusinessEntity } = useSession();
6719
- const [users, setUsers] = useState31(() => {
5947
+ const [users, setUsers] = useState13(() => {
6720
5948
  const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
6721
5949
  const cached = sessionStorage.getItem(cacheKey);
6722
5950
  return cached ? JSON.parse(cached) : [];
6723
5951
  });
6724
- const [loading, setLoading] = useState31(false);
6725
- useEffect19(() => {
5952
+ const [loading, setLoading] = useState13(false);
5953
+ useEffect10(() => {
6726
5954
  const cacheKey = `users_cache_${activeBusinessEntity?.id || "default"}`;
6727
5955
  const cached = sessionStorage.getItem(cacheKey);
6728
5956
  if (!cached) {
@@ -6758,19 +5986,19 @@ var SelectUser = ({
6758
5986
  return users.map((user) => ({
6759
5987
  value: user.id,
6760
5988
  label: `${user.first_name} ${user.last_name}`,
6761
- content: /* @__PURE__ */ jsx45("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs33("div", { className: "flex-1", children: [
6762
- /* @__PURE__ */ jsxs33("div", { className: "font-medium text-gray-900", children: [
5989
+ content: /* @__PURE__ */ jsx18("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs15("div", { className: "flex-1", children: [
5990
+ /* @__PURE__ */ jsxs15("div", { className: "font-medium text-gray-900", children: [
6763
5991
  user.first_name,
6764
5992
  " ",
6765
5993
  user.last_name
6766
5994
  ] }),
6767
- /* @__PURE__ */ jsx45("div", { className: "text-sm text-gray-500", children: user.email })
5995
+ /* @__PURE__ */ jsx18("div", { className: "text-sm text-gray-500", children: user.email })
6768
5996
  ] }) })
6769
5997
  }));
6770
5998
  };
6771
- return /* @__PURE__ */ jsxs33("div", { children: [
6772
- /* @__PURE__ */ jsx45("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx45("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un utilisateur" }) }),
6773
- /* @__PURE__ */ jsx45(
5999
+ return /* @__PURE__ */ jsxs15("div", { children: [
6000
+ /* @__PURE__ */ jsx18("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx18("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un utilisateur" }) }),
6001
+ /* @__PURE__ */ jsx18(
6774
6002
  SearchableSelect,
6775
6003
  {
6776
6004
  value,
@@ -6783,7 +6011,7 @@ var SelectUser = ({
6783
6011
  },
6784
6012
  "user" + value
6785
6013
  ),
6786
- loading && /* @__PURE__ */ jsx45("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des utilisateurs..." })
6014
+ loading && /* @__PURE__ */ jsx18("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des utilisateurs..." })
6787
6015
  ] });
6788
6016
  };
6789
6017
  var SelectDepartment = ({
@@ -6791,13 +6019,13 @@ var SelectDepartment = ({
6791
6019
  onSelect
6792
6020
  }) => {
6793
6021
  const { token, activeBusinessEntity } = useSession();
6794
- const [departments, setDepartments] = useState31(() => {
6022
+ const [departments, setDepartments] = useState13(() => {
6795
6023
  const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
6796
6024
  const cached = sessionStorage.getItem(cacheKey);
6797
6025
  return cached ? JSON.parse(cached) : [];
6798
6026
  });
6799
- const [loading, setLoading] = useState31(false);
6800
- useEffect19(() => {
6027
+ const [loading, setLoading] = useState13(false);
6028
+ useEffect10(() => {
6801
6029
  const cacheKey = `departments_cache_${activeBusinessEntity?.id || "default"}`;
6802
6030
  const cached = sessionStorage.getItem(cacheKey);
6803
6031
  if (!cached) {
@@ -6833,9 +6061,9 @@ var SelectDepartment = ({
6833
6061
  label: dept.name
6834
6062
  }));
6835
6063
  };
6836
- return /* @__PURE__ */ jsxs33("div", { children: [
6837
- /* @__PURE__ */ jsx45("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx45("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un d\xE9partement" }) }),
6838
- /* @__PURE__ */ jsx45(
6064
+ return /* @__PURE__ */ jsxs15("div", { children: [
6065
+ /* @__PURE__ */ jsx18("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx18("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un d\xE9partement" }) }),
6066
+ /* @__PURE__ */ jsx18(
6839
6067
  SearchableSelect,
6840
6068
  {
6841
6069
  value,
@@ -6848,7 +6076,7 @@ var SelectDepartment = ({
6848
6076
  },
6849
6077
  "dept" + value
6850
6078
  ),
6851
- loading && /* @__PURE__ */ jsx45("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des d\xE9partements..." })
6079
+ loading && /* @__PURE__ */ jsx18("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des d\xE9partements..." })
6852
6080
  ] });
6853
6081
  };
6854
6082
  var SelectCostCenter = ({
@@ -6856,13 +6084,13 @@ var SelectCostCenter = ({
6856
6084
  onSelect
6857
6085
  }) => {
6858
6086
  const { token, activeBusinessEntity } = useSession();
6859
- const [costCenters, setCostCenters] = useState31(() => {
6087
+ const [costCenters, setCostCenters] = useState13(() => {
6860
6088
  const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
6861
6089
  const cached = sessionStorage.getItem(cacheKey);
6862
6090
  return cached ? JSON.parse(cached) : [];
6863
6091
  });
6864
- const [loading, setLoading] = useState31(false);
6865
- useEffect19(() => {
6092
+ const [loading, setLoading] = useState13(false);
6093
+ useEffect10(() => {
6866
6094
  const cacheKey = `cost_centers_cache_${activeBusinessEntity?.id || "default"}`;
6867
6095
  const cached = sessionStorage.getItem(cacheKey);
6868
6096
  if (!cached) {
@@ -6896,18 +6124,18 @@ var SelectCostCenter = ({
6896
6124
  return costCenters.map((center) => ({
6897
6125
  value: center.id,
6898
6126
  label: `${center.code ? `[${center.code}] ` : ""}${center.name}`,
6899
- content: /* @__PURE__ */ jsx45("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs33("div", { className: "flex-1", children: [
6900
- /* @__PURE__ */ jsx45("div", { className: "font-medium text-gray-900", children: center.name }),
6901
- center.code && /* @__PURE__ */ jsxs33("div", { className: "text-sm text-gray-500", children: [
6127
+ content: /* @__PURE__ */ jsx18("div", { className: "flex items-center space-x-3", children: /* @__PURE__ */ jsxs15("div", { className: "flex-1", children: [
6128
+ /* @__PURE__ */ jsx18("div", { className: "font-medium text-gray-900", children: center.name }),
6129
+ center.code && /* @__PURE__ */ jsxs15("div", { className: "text-sm text-gray-500", children: [
6902
6130
  "Code: ",
6903
6131
  center.code
6904
6132
  ] })
6905
6133
  ] }) })
6906
6134
  }));
6907
6135
  };
6908
- return /* @__PURE__ */ jsxs33("div", { children: [
6909
- /* @__PURE__ */ jsx45("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx45("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un centre de co\xFBt" }) }),
6910
- /* @__PURE__ */ jsx45(
6136
+ return /* @__PURE__ */ jsxs15("div", { children: [
6137
+ /* @__PURE__ */ jsx18("div", { className: "flex justify-between ", children: /* @__PURE__ */ jsx18("label", { className: "block text-sm font-medium text-gray-700 mb-2", children: "S\xE9lectionner un centre de co\xFBt" }) }),
6138
+ /* @__PURE__ */ jsx18(
6911
6139
  SearchableSelect,
6912
6140
  {
6913
6141
  value,
@@ -6920,12 +6148,12 @@ var SelectCostCenter = ({
6920
6148
  },
6921
6149
  "cost" + value
6922
6150
  ),
6923
- loading && /* @__PURE__ */ jsx45("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des centres de co\xFBt..." })
6151
+ loading && /* @__PURE__ */ jsx18("p", { className: "text-sm text-gray-500 mt-2", children: "Chargement des centres de co\xFBt..." })
6924
6152
  ] });
6925
6153
  };
6926
6154
 
6927
6155
  // src/components/common/Choices.tsx
6928
- import { jsx as jsx46 } from "react/jsx-runtime";
6156
+ import { jsx as jsx19 } from "react/jsx-runtime";
6929
6157
  var CHOICES = {
6930
6158
  INVOICE_TYPES: [
6931
6159
  { value: "sale", label: { fr: "Vente", en: "Sale", default: "Sale" } },
@@ -7183,7 +6411,7 @@ var InvoiceTypeSelector = ({
7183
6411
  value: item.value,
7184
6412
  label: item.label[language]
7185
6413
  }));
7186
- return /* @__PURE__ */ jsx46(
6414
+ return /* @__PURE__ */ jsx19(
7187
6415
  SearchableSelect,
7188
6416
  {
7189
6417
  value,
@@ -7206,7 +6434,7 @@ var PaymentMethodSelector = ({
7206
6434
  value: item.value,
7207
6435
  label: item.label[language]
7208
6436
  }));
7209
- return /* @__PURE__ */ jsx46(
6437
+ return /* @__PURE__ */ jsx19(
7210
6438
  SearchableSelect,
7211
6439
  {
7212
6440
  value,
@@ -7229,7 +6457,7 @@ var TemplateFNESelector = ({
7229
6457
  value: item.value,
7230
6458
  label: item.label[language]
7231
6459
  }));
7232
- return /* @__PURE__ */ jsx46(
6460
+ return /* @__PURE__ */ jsx19(
7233
6461
  SearchableSelect,
7234
6462
  {
7235
6463
  value,
@@ -7252,7 +6480,7 @@ var ForeignCurrencySelector = ({
7252
6480
  value: item.value,
7253
6481
  label: item.label[language]
7254
6482
  }));
7255
- return /* @__PURE__ */ jsx46(
6483
+ return /* @__PURE__ */ jsx19(
7256
6484
  SearchableSelect,
7257
6485
  {
7258
6486
  value,
@@ -7276,7 +6504,7 @@ var TaxSelector = ({
7276
6504
  value: item.value,
7277
6505
  label: item.label[language]
7278
6506
  }));
7279
- return /* @__PURE__ */ jsx46(
6507
+ return /* @__PURE__ */ jsx19(
7280
6508
  SearchableSelect,
7281
6509
  {
7282
6510
  value,
@@ -7304,7 +6532,7 @@ var LegalFormSelector = ({
7304
6532
  value: item.value,
7305
6533
  label: item.label[language] ?? item.label.default
7306
6534
  }));
7307
- return /* @__PURE__ */ jsx46(
6535
+ return /* @__PURE__ */ jsx19(
7308
6536
  SearchableSelect,
7309
6537
  {
7310
6538
  value,
@@ -7327,7 +6555,7 @@ var CountrySelector = ({
7327
6555
  value: item.value,
7328
6556
  label: item.label[language]
7329
6557
  }));
7330
- return /* @__PURE__ */ jsx46(
6558
+ return /* @__PURE__ */ jsx19(
7331
6559
  SearchableSelect,
7332
6560
  {
7333
6561
  value,