cortex-react-components 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Manrope-Bold-CPQACTSE.ttf +0 -0
- package/dist/Manrope-ExtraBold-WMIW3IUY.ttf +0 -0
- package/dist/Manrope-ExtraLight-73PSLEHW.ttf +0 -0
- package/dist/Manrope-Light-Y5DQMGPD.ttf +0 -0
- package/dist/Manrope-Medium-EG6W7WPF.ttf +0 -0
- package/dist/Manrope-Regular-XVH52NWZ.ttf +0 -0
- package/dist/Manrope-SemiBold-UGY74FUV.ttf +0 -0
- package/dist/about-1-ANS44UVM.png +0 -0
- package/dist/about-2-NDWHP4QV.png +0 -0
- package/dist/about-3-RNUOVF6S.png +0 -0
- package/dist/about-4-V5ITRBOZ.png +0 -0
- package/dist/chunk-22LHS2J6.mjs +4 -0
- package/dist/chunk-2BR55L74.mjs +1 -0
- package/dist/chunk-2QZUKVBA.mjs +1 -0
- package/dist/chunk-2VZWOBGP.mjs +1 -0
- package/dist/chunk-3ALU5XV6.mjs +1 -0
- package/dist/chunk-3MKCQLBY.mjs +4 -0
- package/dist/chunk-3OKVKXQT.mjs +4 -0
- package/dist/chunk-3RJA57BI.mjs +4 -0
- package/dist/chunk-3SK6PULC.mjs +4 -0
- package/dist/chunk-3SZR5DC2.mjs +1 -0
- package/dist/chunk-3TVLETYW.mjs +1 -0
- package/dist/chunk-3U3PZBHQ.mjs +4 -0
- package/dist/chunk-3UMMMQEH.mjs +4 -0
- package/dist/chunk-3WPEAKCQ.mjs +4 -0
- package/dist/chunk-43IUXVGW.mjs +4 -0
- package/dist/chunk-44QDT35M.mjs +1 -0
- package/dist/chunk-4BUBW5TX.mjs +4 -0
- package/dist/chunk-4CU7D3X2.mjs +1 -0
- package/dist/chunk-4DJ6HKHR.mjs +1 -0
- package/dist/chunk-4QRKVSTE.mjs +1 -0
- package/dist/chunk-4TU4OACM.mjs +4 -0
- package/dist/chunk-4TVYOBYI.mjs +4 -0
- package/dist/chunk-4UIARERB.mjs +4 -0
- package/dist/chunk-53QLSQCO.mjs +4 -0
- package/dist/chunk-55EX54R7.mjs +4 -0
- package/dist/chunk-5AWZJAK3.mjs +4 -0
- package/dist/chunk-5BT4EWU5.mjs +1 -0
- package/dist/chunk-5C2TR5P3.mjs +4 -0
- package/dist/chunk-5ME75SQ2.mjs +218 -0
- package/dist/chunk-5NRGSTPV.mjs +4 -0
- package/dist/chunk-5OQF3MNO.mjs +1 -0
- package/dist/chunk-5RTGHMF3.mjs +4 -0
- package/dist/chunk-5WV5ZFEP.mjs +4 -0
- package/dist/chunk-5Z5PL7N3.mjs +1 -0
- package/dist/chunk-637VXITY.mjs +4 -0
- package/dist/chunk-66WBIP2O.mjs +1 -0
- package/dist/chunk-6AFX6PFG.mjs +470 -0
- package/dist/chunk-6C4WESLL.mjs +1 -0
- package/dist/chunk-6DEY5ZDD.mjs +1 -0
- package/dist/chunk-6HLXIE4P.mjs +1 -0
- package/dist/chunk-6LZRVGXZ.mjs +4 -0
- package/dist/chunk-6QSBVWNG.mjs +4 -0
- package/dist/chunk-6U2XBCMC.mjs +4 -0
- package/dist/chunk-6VPRGZON.mjs +4 -0
- package/dist/chunk-6XXAI7IR.mjs +1 -0
- package/dist/chunk-6YHVVP3S.mjs +1 -0
- package/dist/chunk-75WE6ZXB.mjs +1 -0
- package/dist/chunk-76M7JE4D.mjs +1 -0
- package/dist/chunk-7A3BV5SJ.mjs +1 -0
- package/dist/chunk-7BXIU4ZM.mjs +4 -0
- package/dist/chunk-7DICAJS4.mjs +1 -0
- package/dist/chunk-7EXAS7HK.mjs +4 -0
- package/dist/chunk-7GSXNSLD.mjs +1 -0
- package/dist/chunk-7WIO2CIC.mjs +1 -0
- package/dist/chunk-A24EPYUY.mjs +1 -0
- package/dist/chunk-A24IEDVI.mjs +1 -0
- package/dist/chunk-AB43AQKL.mjs +1 -0
- package/dist/chunk-AEBUMA72.mjs +1 -0
- package/dist/chunk-ALI7Z4HH.mjs +4 -0
- package/dist/chunk-AMV3MECK.mjs +1 -0
- package/dist/chunk-AQLCYCLG.mjs +1 -0
- package/dist/chunk-AUBKJ4XO.mjs +1 -0
- package/dist/chunk-AV5SA2JB.mjs +9 -0
- package/dist/chunk-AZ4VR5JX.mjs +3 -0
- package/dist/chunk-AZKOVKSK.mjs +4 -0
- package/dist/chunk-B4H6T2GP.mjs +1 -0
- package/dist/chunk-BG7QXNV5.mjs +1 -0
- package/dist/chunk-BHKBIYMM.mjs +4 -0
- package/dist/chunk-BMA4266L.mjs +1 -0
- package/dist/chunk-BPTRLIWH.mjs +1 -0
- package/dist/chunk-BUC3OG2I.mjs +4 -0
- package/dist/chunk-BWTA3BKK.mjs +4 -0
- package/dist/chunk-BXHNSQWH.mjs +1 -0
- package/dist/chunk-BZAYEKYC.mjs +1 -0
- package/dist/chunk-C4UPRDGQ.mjs +1 -0
- package/dist/chunk-CA7JDZIQ.mjs +4 -0
- package/dist/chunk-CG2SBWT7.mjs +4 -0
- package/dist/chunk-CGDLOY7W.mjs +4 -0
- package/dist/chunk-CSBGSBEU.mjs +1 -0
- package/dist/chunk-CSWXKGJE.mjs +4 -0
- package/dist/chunk-CTKUF2I6.mjs +4 -0
- package/dist/chunk-CV7PH2KH.mjs +4 -0
- package/dist/chunk-CXV6AWOX.mjs +4 -0
- package/dist/chunk-D4IMQTVU.mjs +4 -0
- package/dist/chunk-D6W4VUUS.mjs +1 -0
- package/dist/chunk-DBVX4BDP.mjs +4 -0
- package/dist/chunk-DBY4SXQI.mjs +1 -0
- package/dist/chunk-DFIXTV2M.mjs +1 -0
- package/dist/chunk-DYHW653F.mjs +1 -0
- package/dist/chunk-E37JPSPB.mjs +4 -0
- package/dist/chunk-E4TE4NV6.mjs +4 -0
- package/dist/chunk-EGHHWTFA.mjs +1 -0
- package/dist/chunk-EHSOO47V.mjs +1 -0
- package/dist/chunk-EPTHSTUM.mjs +1 -0
- package/dist/chunk-F4UGWCXY.mjs +1 -0
- package/dist/chunk-F5N6KQA2.mjs +1 -0
- package/dist/chunk-FHMQVAKQ.mjs +4 -0
- package/dist/chunk-FLHDNCNY.mjs +1 -0
- package/dist/chunk-FMH5CZ7X.mjs +4 -0
- package/dist/chunk-FMJBJ3HN.mjs +1 -0
- package/dist/chunk-FRWX5YES.mjs +4 -0
- package/dist/chunk-FT3AE7L2.mjs +4 -0
- package/dist/chunk-FVM5SQT2.mjs +4 -0
- package/dist/chunk-GLLR2OOI.mjs +1 -0
- package/dist/chunk-GQVNL534.mjs +4 -0
- package/dist/chunk-H4X3VQIN.mjs +4 -0
- package/dist/chunk-H7D3PZKE.mjs +1 -0
- package/dist/chunk-HIHXHTK3.mjs +1 -0
- package/dist/chunk-HNCC3AOT.mjs +4 -0
- package/dist/chunk-HR6PBSS5.mjs +1 -0
- package/dist/chunk-I3E2TYYZ.mjs +1 -0
- package/dist/chunk-IB6VPDZQ.mjs +1 -0
- package/dist/chunk-IC2ABKAM.mjs +4 -0
- package/dist/chunk-IEUDWPYZ.mjs +1 -0
- package/dist/chunk-IJQC7T2R.mjs +1 -0
- package/dist/chunk-IN55EBPV.mjs +1 -0
- package/dist/chunk-INCYANPB.mjs +4 -0
- package/dist/chunk-IQKWNF37.mjs +5 -0
- package/dist/chunk-IQPZEEYJ.mjs +1 -0
- package/dist/chunk-ISBVFNWD.mjs +4 -0
- package/dist/chunk-IZ3PDOST.mjs +1 -0
- package/dist/chunk-J4IHIM6A.mjs +1 -0
- package/dist/chunk-JCH2CCQ7.mjs +1 -0
- package/dist/chunk-JFFTEK6Z.mjs +4 -0
- package/dist/chunk-JHNVX4UB.mjs +4 -0
- package/dist/chunk-JYL3XIJX.mjs +1 -0
- package/dist/chunk-KCCDR7HB.mjs +4 -0
- package/dist/chunk-KDSAOIPC.mjs +1 -0
- package/dist/chunk-KFCSVEI6.mjs +4 -0
- package/dist/chunk-KGEIN56Y.mjs +4 -0
- package/dist/chunk-KGYX6TIY.mjs +4 -0
- package/dist/chunk-KLEXMJR2.mjs +1 -0
- package/dist/chunk-KML6U7IE.mjs +1 -0
- package/dist/chunk-KN65DDFI.mjs +1 -0
- package/dist/chunk-KSYES4GX.mjs +1 -0
- package/dist/chunk-KUVGGKGR.mjs +4 -0
- package/dist/chunk-KVD6XDZT.mjs +1 -0
- package/dist/chunk-KX2NCNCS.mjs +1 -0
- package/dist/chunk-KY7WQYN4.mjs +4 -0
- package/dist/chunk-L2CGDHVO.mjs +1 -0
- package/dist/chunk-L5JPAKPM.mjs +1 -0
- package/dist/chunk-LALFQI3P.mjs +4 -0
- package/dist/chunk-LEC6GEWS.mjs +5 -0
- package/dist/chunk-LKGCU7H6.mjs +1 -0
- package/dist/chunk-LTTO57ZK.mjs +1 -0
- package/dist/chunk-LVFMFRBR.mjs +4 -0
- package/dist/chunk-LVK4QE5D.mjs +1 -0
- package/dist/chunk-LXZAOORS.mjs +1 -0
- package/dist/chunk-M245YHYF.mjs +4 -0
- package/dist/chunk-M6LJ4BNZ.mjs +1 -0
- package/dist/chunk-MDJREBVI.mjs +1 -0
- package/dist/chunk-MGJTWNXD.mjs +1 -0
- package/dist/chunk-MGYV46AJ.mjs +4 -0
- package/dist/chunk-MWXZUSRT.mjs +4 -0
- package/dist/chunk-MZP7RIQZ.mjs +1 -0
- package/dist/chunk-N25B5TQ5.mjs +4 -0
- package/dist/chunk-N5SEZED7.mjs +1 -0
- package/dist/chunk-NOHO4XDS.mjs +1 -0
- package/dist/chunk-NSMXJCXE.mjs +1 -0
- package/dist/chunk-O5BAW5XQ.mjs +3 -0
- package/dist/chunk-OCPX4QPC.mjs +4 -0
- package/dist/chunk-OFFFATED.mjs +4 -0
- package/dist/chunk-OFXZKSCN.mjs +1 -0
- package/dist/chunk-OJLQ6G4W.mjs +4 -0
- package/dist/chunk-OM5ZUHCN.mjs +4 -0
- package/dist/chunk-ORNGKQM7.mjs +1 -0
- package/dist/chunk-OYZDAMCS.mjs +4 -0
- package/dist/chunk-PA3BZDTY.mjs +245 -0
- package/dist/chunk-PANOPGUW.mjs +4 -0
- package/dist/chunk-PDY7JYY3.mjs +4 -0
- package/dist/chunk-PPZXBKTO.mjs +4 -0
- package/dist/chunk-Q2DPE66H.mjs +1 -0
- package/dist/chunk-Q3G5UAAD.mjs +1 -0
- package/dist/chunk-Q5NHYYRS.mjs +4 -0
- package/dist/chunk-Q5Q3DJWU.mjs +4 -0
- package/dist/chunk-Q5XT55O3.mjs +1 -0
- package/dist/chunk-Q6PKGY27.mjs +4 -0
- package/dist/chunk-QDYF4Z2F.mjs +4 -0
- package/dist/chunk-QKGEV7LG.mjs +1 -0
- package/dist/chunk-QQ36F4C4.mjs +1 -0
- package/dist/chunk-QRJOCPHI.mjs +1 -0
- package/dist/chunk-QTILVWJA.mjs +4 -0
- package/dist/chunk-RAGDUV7M.mjs +4 -0
- package/dist/chunk-RENPEB5D.mjs +1 -0
- package/dist/chunk-RIK7YEA6.mjs +2 -0
- package/dist/chunk-RLVKIMGU.mjs +4 -0
- package/dist/chunk-RR4QSUV2.mjs +1 -0
- package/dist/chunk-RTAA6HZ2.mjs +1 -0
- package/dist/chunk-RULSHTXR.mjs +1 -0
- package/dist/chunk-RVRIMD6M.mjs +4 -0
- package/dist/chunk-RYZTCMVC.mjs +4 -0
- package/dist/chunk-S7SHOCHM.mjs +1 -0
- package/dist/chunk-SG5QL77J.mjs +4 -0
- package/dist/chunk-SOIRB5TV.mjs +1 -0
- package/dist/chunk-SOLZ4VQH.mjs +4 -0
- package/dist/chunk-SRCJSWQF.mjs +1 -0
- package/dist/chunk-SV7NMNDI.mjs +1 -0
- package/dist/chunk-TAYYCGWX.mjs +4 -0
- package/dist/chunk-TEB67NCD.mjs +4 -0
- package/dist/chunk-TJVEQJW3.mjs +4 -0
- package/dist/chunk-TK4JC5PG.mjs +4 -0
- package/dist/chunk-TLBLUYXL.mjs +1 -0
- package/dist/chunk-TVZOULLL.mjs +4 -0
- package/dist/chunk-U3ZHU3UY.mjs +1 -0
- package/dist/chunk-U5PBLRRV.mjs +4 -0
- package/dist/chunk-UDPQ4MXR.mjs +4 -0
- package/dist/chunk-UEBQJNVT.mjs +4 -0
- package/dist/chunk-UG7D3VNG.mjs +1 -0
- package/dist/chunk-UKYWLNKE.mjs +1 -0
- package/dist/chunk-UWEU6TLS.mjs +6 -0
- package/dist/chunk-V6GC3UGV.mjs +1 -0
- package/dist/chunk-VBGNLDO6.mjs +4 -0
- package/dist/chunk-VM25PG5R.mjs +4 -0
- package/dist/chunk-VMAPGGGW.mjs +4 -0
- package/dist/chunk-VN7TASR4.mjs +1 -0
- package/dist/chunk-VNMKCJBJ.mjs +6 -0
- package/dist/chunk-WISC5QJV.mjs +1 -0
- package/dist/chunk-WISCWNL2.mjs +1 -0
- package/dist/chunk-WU3JMLSC.mjs +1 -0
- package/dist/chunk-WUA65ZZB.mjs +4 -0
- package/dist/chunk-WV2LZOPM.mjs +1 -0
- package/dist/chunk-X3JZSN3W.mjs +1 -0
- package/dist/chunk-X5KZKO2V.mjs +4 -0
- package/dist/chunk-XBCYPOFD.mjs +1 -0
- package/dist/chunk-XCCL5CIT.mjs +4 -0
- package/dist/chunk-XGIYNUGC.mjs +1 -0
- package/dist/chunk-XHMVS6GT.mjs +4 -0
- package/dist/chunk-XP4XLR2J.mjs +4 -0
- package/dist/chunk-YFAZQYK4.mjs +4 -0
- package/dist/chunk-YNCJATT7.mjs +4 -0
- package/dist/chunk-YNNW2C2U.mjs +1 -0
- package/dist/chunk-YO3GQYRJ.mjs +1 -0
- package/dist/chunk-YVI5URXW.mjs +4 -0
- package/dist/chunk-YX3BAJ2N.mjs +1 -0
- package/dist/chunk-ZDOLX6I2.mjs +4 -0
- package/dist/chunk-ZDPQXVTF.mjs +1 -0
- package/dist/chunk-ZFBEBFCI.mjs +4 -0
- package/dist/chunk-ZFUP5NVF.mjs +4 -0
- package/dist/chunk-ZLSF5YXT.mjs +8 -0
- package/dist/chunk-ZSIYEVUV.mjs +4 -0
- package/dist/chunk-ZUA4KNIR.mjs +1 -0
- package/dist/chunk-ZWHGOTSF.mjs +1 -0
- package/dist/common-types.js +1 -0
- package/dist/common-types.mjs +1 -0
- package/dist/components/AdvancedComponents/CommentSection.css +1 -0
- package/dist/components/AdvancedComponents/CommentSection.js +4 -0
- package/dist/components/AdvancedComponents/CommentSection.mjs +1 -0
- package/dist/components/AdvancedComponents/EditableField.css +1 -0
- package/dist/components/AdvancedComponents/EditableField.js +4 -0
- package/dist/components/AdvancedComponents/EditableField.mjs +1 -0
- package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.js +108 -0
- package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +108 -0
- package/dist/components/AdvancedComponents/app-header.css +1 -0
- package/dist/components/AdvancedComponents/app-header.js +5 -0
- package/dist/components/AdvancedComponents/app-header.mjs +2 -0
- package/dist/components/AdvancedComponents/index.css +1 -0
- package/dist/components/AdvancedComponents/index.js +6 -0
- package/dist/components/AdvancedComponents/index.mjs +1 -0
- package/dist/components/AdvancedComponents/navigation-tabs.css +1 -0
- package/dist/components/AdvancedComponents/navigation-tabs.js +5 -0
- package/dist/components/AdvancedComponents/navigation-tabs.mjs +2 -0
- package/dist/components/AdvancedComponents/notifications-panel.css +1 -0
- package/dist/components/AdvancedComponents/notifications-panel.js +5 -0
- package/dist/components/AdvancedComponents/notifications-panel.mjs +2 -0
- package/dist/components/AdvancedComponents/sidebar.css +1 -0
- package/dist/components/AdvancedComponents/sidebar.js +5 -0
- package/dist/components/AdvancedComponents/sidebar.mjs +2 -0
- package/dist/components/AdvancedComponents/switch.css +1 -0
- package/dist/components/AdvancedComponents/switch.js +4 -0
- package/dist/components/AdvancedComponents/switch.mjs +2 -0
- package/dist/components/AdvancedComponents/theme-provider.js +4 -0
- package/dist/components/AdvancedComponents/theme-provider.mjs +2 -0
- package/dist/components/AdvancedComponents/theme-toggle.css +1 -0
- package/dist/components/AdvancedComponents/theme-toggle.js +5 -0
- package/dist/components/AdvancedComponents/theme-toggle.mjs +2 -0
- package/dist/components/AdvancedComponents/user-selection.css +1 -0
- package/dist/components/AdvancedComponents/user-selection.js +5 -0
- package/dist/components/AdvancedComponents/user-selection.mjs +2 -0
- package/dist/components/Blocks/Banner.css +1 -0
- package/dist/components/Blocks/Banner.js +5 -0
- package/dist/components/Blocks/Banner.mjs +1 -0
- package/dist/components/Blocks/CallToAction.css +1 -0
- package/dist/components/Blocks/CallToAction.js +5 -0
- package/dist/components/Blocks/CallToAction.mjs +2 -0
- package/dist/components/Blocks/CaseStudy.css +1 -0
- package/dist/components/Blocks/CaseStudy.js +1 -0
- package/dist/components/Blocks/CaseStudy.mjs +1 -0
- package/dist/components/Blocks/Code.client.css +1 -0
- package/dist/components/Blocks/Code.client.js +4 -0
- package/dist/components/Blocks/Code.client.mjs +2 -0
- package/dist/components/Blocks/Code.css +1 -0
- package/dist/components/Blocks/Code.js +4 -0
- package/dist/components/Blocks/Code.mjs +1 -0
- package/dist/components/Blocks/CollapsibleArea.css +1 -0
- package/dist/components/Blocks/CollapsibleArea.js +5 -0
- package/dist/components/Blocks/CollapsibleArea.mjs +2 -0
- package/dist/components/Blocks/ConsultantProfile.css +1 -0
- package/dist/components/Blocks/ConsultantProfile.js +1 -0
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -0
- package/dist/components/Blocks/Content.css +1 -0
- package/dist/components/Blocks/Content.js +5 -0
- package/dist/components/Blocks/Content.mjs +1 -0
- package/dist/components/Blocks/CopyButton.css +1 -0
- package/dist/components/Blocks/CopyButton.js +4 -0
- package/dist/components/Blocks/CopyButton.mjs +2 -0
- package/dist/components/Blocks/FeaturesBlock.css +1 -0
- package/dist/components/Blocks/FeaturesBlock.js +5 -0
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -0
- package/dist/components/Blocks/HeadingImage.js +1 -0
- package/dist/components/Blocks/HeadingImage.mjs +1 -0
- package/dist/components/Blocks/ImageBlock.js +4 -0
- package/dist/components/Blocks/ImageBlock.mjs +1 -0
- package/dist/components/Blocks/InfoTile.js +1 -0
- package/dist/components/Blocks/InfoTile.mjs +1 -0
- package/dist/components/Blocks/Insight.js +4 -0
- package/dist/components/Blocks/Insight.mjs +2 -0
- package/dist/components/Blocks/MOTD.js +1 -0
- package/dist/components/Blocks/MOTD.mjs +1 -0
- package/dist/components/Blocks/MediaBlock.js +4 -0
- package/dist/components/Blocks/MediaBlock.mjs +1 -0
- package/dist/components/Blocks/OrgChart.js +4 -0
- package/dist/components/Blocks/OrgChart.mjs +2 -0
- package/dist/components/Blocks/ProposalSummary.css +1 -0
- package/dist/components/Blocks/ProposalSummary.js +1 -0
- package/dist/components/Blocks/ProposalSummary.mjs +1 -0
- package/dist/components/Blocks/RelatedPosts.css +1 -0
- package/dist/components/Blocks/RelatedPosts.js +5 -0
- package/dist/components/Blocks/RelatedPosts.mjs +1 -0
- package/dist/components/Blocks/RenderBlocks.css +1 -0
- package/dist/components/Blocks/RenderBlocks.js +5 -0
- package/dist/components/Blocks/RenderBlocks.mjs +1 -0
- package/dist/components/Blocks/ReusableContentBlock.css +1 -0
- package/dist/components/Blocks/ReusableContentBlock.js +5 -0
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -0
- package/dist/components/Blocks/WhyUs.js +1 -0
- package/dist/components/Blocks/WhyUs.mjs +1 -0
- package/dist/components/Blocks/index.css +1 -0
- package/dist/components/Blocks/index.js +5 -0
- package/dist/components/Blocks/index.mjs +1 -0
- package/dist/components/CRM/CogeBoard.css +1 -0
- package/dist/components/CRM/CogeBoard.js +4 -0
- package/dist/components/CRM/CogeBoard.mjs +2 -0
- package/dist/components/CRM/DealCard.css +1 -0
- package/dist/components/CRM/DealCard.js +1 -0
- package/dist/components/CRM/DealCard.mjs +1 -0
- package/dist/components/CRM/DealDetails.css +1 -0
- package/dist/components/CRM/DealDetails.js +4 -0
- package/dist/components/CRM/DealDetails.mjs +1 -0
- package/dist/components/CRM/KanbanBoard.css +1 -0
- package/dist/components/CRM/KanbanBoard.js +4 -0
- package/dist/components/CRM/KanbanBoard.mjs +2 -0
- package/dist/components/CRM/KanbanColumn.css +1 -0
- package/dist/components/CRM/KanbanColumn.js +1 -0
- package/dist/components/CRM/KanbanColumn.mjs +1 -0
- package/dist/components/CRM/NewCustomerForm.css +1 -0
- package/dist/components/CRM/NewCustomerForm.js +4 -0
- package/dist/components/CRM/NewCustomerForm.mjs +1 -0
- package/dist/components/CRM/NewDealForm.css +1 -0
- package/dist/components/CRM/NewDealForm.js +4 -0
- package/dist/components/CRM/NewDealForm.mjs +1 -0
- package/dist/components/CRM/index.css +1 -0
- package/dist/components/CRM/index.js +4 -0
- package/dist/components/CRM/index.mjs +1 -0
- package/dist/components/CRM/mockData.js +1 -0
- package/dist/components/CRM/mockData.mjs +1 -0
- package/dist/components/CRM/types.js +1 -0
- package/dist/components/Cards/ContentCard.css +1 -0
- package/dist/components/Cards/ContentCard.js +5 -0
- package/dist/components/Cards/ContentCard.mjs +1 -0
- package/dist/components/Cards/CustomerCard.css +1 -0
- package/dist/components/Cards/CustomerCard.js +1 -0
- package/dist/components/Cards/CustomerCard.mjs +1 -0
- package/dist/components/Cards/EventCard.css +1 -0
- package/dist/components/Cards/EventCard.js +4 -0
- package/dist/components/Cards/EventCard.mjs +1 -0
- package/dist/components/Cards/FeatureCard.css +1 -0
- package/dist/components/Cards/FeatureCard.js +5 -0
- package/dist/components/Cards/FeatureCard.mjs +1 -0
- package/dist/components/Cards/HeroCard.css +1 -0
- package/dist/components/Cards/HeroCard.js +1 -0
- package/dist/components/Cards/HeroCard.mjs +1 -0
- package/dist/components/Cards/Image.css +1 -0
- package/dist/components/Cards/Image.js +4 -0
- package/dist/components/Cards/Image.mjs +2 -0
- package/dist/components/Cards/PricingCard.css +1 -0
- package/dist/components/Cards/PricingCard.js +1 -0
- package/dist/components/Cards/PricingCard.mjs +1 -0
- package/dist/components/Cards/ProjectCard.js +5 -0
- package/dist/components/Cards/ProjectCard.mjs +1 -0
- package/dist/components/Cards/ServiceCard.css +1 -0
- package/dist/components/Cards/ServiceCard.js +4 -0
- package/dist/components/Cards/ServiceCard.mjs +1 -0
- package/dist/components/Cards/index.css +1 -0
- package/dist/components/Cards/index.js +10 -0
- package/dist/components/Cards/index.mjs +1 -0
- package/dist/components/Chat/CAPABILITIES_README.js +199 -0
- package/dist/components/Chat/CAPABILITIES_README.mjs +199 -0
- package/dist/components/Chat/ChatCardArtefact.css +1 -0
- package/dist/components/Chat/ChatCardArtefact.js +1 -0
- package/dist/components/Chat/ChatCardArtefact.mjs +1 -0
- package/dist/components/Chat/ChatCardTask.css +1 -0
- package/dist/components/Chat/ChatCardTask.js +1 -0
- package/dist/components/Chat/ChatCardTask.mjs +1 -0
- package/dist/components/Chat/ChatInterfaceMessages.css +1 -0
- package/dist/components/Chat/ChatInterfaceMessages.js +7 -0
- package/dist/components/Chat/ChatInterfaceMessages.mjs +2 -0
- package/dist/components/Chat/ChatMessage.css +1 -0
- package/dist/components/Chat/ChatMessage.js +7 -0
- package/dist/components/Chat/ChatMessage.mjs +1 -0
- package/dist/components/Chat/CopilotInterface.css +1 -0
- package/dist/components/Chat/CopilotInterface.js +5 -0
- package/dist/components/Chat/CopilotInterface.mjs +2 -0
- package/dist/components/Chat/EnhancedChatInterface.css +1 -0
- package/dist/components/Chat/EnhancedChatInterface.js +5 -0
- package/dist/components/Chat/EnhancedChatInterface.mjs +4 -0
- package/dist/components/Chat/ai-chat-interface.css +1 -0
- package/dist/components/Chat/ai-chat-interface.js +5 -0
- package/dist/components/Chat/ai-chat-interface.mjs +2 -0
- package/dist/components/Chat/capabilities-config.js +1 -0
- package/dist/components/Chat/capabilities-config.mjs +1 -0
- package/dist/components/Chat/capabilities-data.js +1 -0
- package/dist/components/Chat/capabilities-data.mjs +1 -0
- package/dist/components/Chat/capabilities.js +1 -0
- package/dist/components/Chat/capabilities.mjs +1 -0
- package/dist/components/Chat/capability-menu.css +1 -0
- package/dist/components/Chat/capability-menu.js +4 -0
- package/dist/components/Chat/capability-menu.mjs +2 -0
- package/dist/components/Chat/chat-session-sidebar.css +1 -0
- package/dist/components/Chat/chat-session-sidebar.js +5 -0
- package/dist/components/Chat/chat-session-sidebar.mjs +2 -0
- package/dist/components/Chat/hooks/useTask.js +1 -0
- package/dist/components/Chat/hooks/useTask.mjs +1 -0
- package/dist/components/Chat/index.css +1 -0
- package/dist/components/Chat/index.js +8 -0
- package/dist/components/Chat/index.mjs +1 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.css +1 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +6 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +2 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.css +1 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +4 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +2 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.css +1 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +6 -0
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -0
- package/dist/components/DeliveryLead/index.css +1 -0
- package/dist/components/DeliveryLead/index.js +6 -0
- package/dist/components/DeliveryLead/index.mjs +1 -0
- package/dist/components/DeliveryLead/types.js +1 -0
- package/dist/components/DigitalColleagues/AppSidebarLeft.css +1 -0
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +4 -0
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +2 -0
- package/dist/components/DigitalColleagues/DashboardHeader.css +1 -0
- package/dist/components/DigitalColleagues/DashboardHeader.js +4 -0
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -0
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.css +1 -0
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +5 -0
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +2 -0
- package/dist/components/DigitalColleagues/MainPage.css +1 -0
- package/dist/components/DigitalColleagues/MainPage.js +4 -0
- package/dist/components/DigitalColleagues/MainPage.mjs +2 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.css +1 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.js +4 -0
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -0
- package/dist/components/DigitalColleagues/Pages/dashboardpage.css +1 -0
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -0
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +2 -0
- package/dist/components/DigitalColleagues/SearchableSelect.css +1 -0
- package/dist/components/DigitalColleagues/SearchableSelect.js +4 -0
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -0
- package/dist/components/DigitalColleagues/Views/ColleaguesView.css +1 -0
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +5 -0
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -0
- package/dist/components/DigitalColleagues/Views/KnowledgeView.css +1 -0
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +5 -0
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -0
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.css +1 -0
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +5 -0
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +2 -0
- package/dist/components/DigitalColleagues/Views/index.css +1 -0
- package/dist/components/DigitalColleagues/Views/index.js +5 -0
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -0
- package/dist/components/DigitalColleagues/colleague-card.css +1 -0
- package/dist/components/DigitalColleagues/colleague-card.js +5 -0
- package/dist/components/DigitalColleagues/colleague-card.mjs +2 -0
- package/dist/components/DigitalColleagues/colleague-form.css +1 -0
- package/dist/components/DigitalColleagues/colleague-form.js +5 -0
- package/dist/components/DigitalColleagues/colleague-form.mjs +2 -0
- package/dist/components/DigitalColleagues/colleague-type-selection.css +1 -0
- package/dist/components/DigitalColleagues/colleague-type-selection.js +4 -0
- package/dist/components/DigitalColleagues/colleague-type-selection.mjs +2 -0
- package/dist/components/DigitalColleagues/digital-colleague-clone.css +1 -0
- package/dist/components/DigitalColleagues/digital-colleague-clone.js +5 -0
- package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +2 -0
- package/dist/components/DigitalColleagues/digital-colleague-options.css +1 -0
- package/dist/components/DigitalColleagues/digital-colleague-options.js +4 -0
- package/dist/components/DigitalColleagues/digital-colleague-options.mjs +2 -0
- package/dist/components/DigitalColleagues/test-data.js +1 -0
- package/dist/components/DigitalColleagues/test-data.mjs +1 -0
- package/dist/components/DigitalColleagues/types.js +1 -0
- package/dist/components/HeaderFooter/AppLauncher.js +4 -0
- package/dist/components/HeaderFooter/AppLauncher.mjs +2 -0
- package/dist/components/HeaderFooter/BrandLogo.js +1 -0
- package/dist/components/HeaderFooter/BrandLogo.mjs +1 -0
- package/dist/components/HeaderFooter/Footer.css +1 -0
- package/dist/components/HeaderFooter/Footer.js +1 -0
- package/dist/components/HeaderFooter/Footer.mjs +1 -0
- package/dist/components/HeaderFooter/Header.css +1 -0
- package/dist/components/HeaderFooter/Header.js +4 -0
- package/dist/components/HeaderFooter/Header.mjs +1 -0
- package/dist/components/HeaderFooter/HeaderDesktop.css +1 -0
- package/dist/components/HeaderFooter/HeaderDesktop.js +4 -0
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +2 -0
- package/dist/components/HeaderFooter/HeaderMenu.css +1 -0
- package/dist/components/HeaderFooter/HeaderMenu.js +4 -0
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -0
- package/dist/components/HeaderFooter/HeaderMenuItem.js +1 -0
- package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -0
- package/dist/components/HeaderFooter/HeaderMobile.js +4 -0
- package/dist/components/HeaderFooter/HeaderMobile.mjs +2 -0
- package/dist/components/HeaderFooter/RelatedPagesMenu.css +1 -0
- package/dist/components/HeaderFooter/RelatedPagesMenu.js +4 -0
- package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +2 -0
- package/dist/components/HeaderFooter/SectionHeading.css +1 -0
- package/dist/components/HeaderFooter/SectionHeading.js +5 -0
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -0
- package/dist/components/HeaderFooter/SimpleHeader.css +1 -0
- package/dist/components/HeaderFooter/SimpleHeader.js +4 -0
- package/dist/components/HeaderFooter/SimpleHeader.mjs +2 -0
- package/dist/components/HeaderFooter/VideoHeader.css +1 -0
- package/dist/components/HeaderFooter/VideoHeader.js +4 -0
- package/dist/components/HeaderFooter/VideoHeader.mjs +2 -0
- package/dist/components/HeaderFooter/index.css +1 -0
- package/dist/components/HeaderFooter/index.js +4 -0
- package/dist/components/HeaderFooter/index.mjs +1 -0
- package/dist/components/Heros/DashboardHero/DashboardHero.css +1 -0
- package/dist/components/Heros/DashboardHero/DashboardHero.js +4 -0
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -0
- package/dist/components/Heros/DashboardHero/index.css +1 -0
- package/dist/components/Heros/DashboardHero/index.js +4 -0
- package/dist/components/Heros/DashboardHero/index.mjs +1 -0
- package/dist/components/Heros/HighImpact/index.css +1 -0
- package/dist/components/Heros/HighImpact/index.js +5 -0
- package/dist/components/Heros/HighImpact/index.mjs +2 -0
- package/dist/components/Heros/LowImpact/index.css +1 -0
- package/dist/components/Heros/LowImpact/index.js +5 -0
- package/dist/components/Heros/LowImpact/index.mjs +1 -0
- package/dist/components/Heros/MediumImpact/index.css +1 -0
- package/dist/components/Heros/MediumImpact/index.js +5 -0
- package/dist/components/Heros/MediumImpact/index.mjs +1 -0
- package/dist/components/Heros/PostHero/index.css +1 -0
- package/dist/components/Heros/PostHero/index.js +1 -0
- package/dist/components/Heros/PostHero/index.mjs +1 -0
- package/dist/components/Heros/RenderHero.css +1 -0
- package/dist/components/Heros/RenderHero.js +5 -0
- package/dist/components/Heros/RenderHero.mjs +1 -0
- package/dist/components/Heros/SectionHero/index.css +1 -0
- package/dist/components/Heros/SectionHero/index.js +1 -0
- package/dist/components/Heros/SectionHero/index.mjs +1 -0
- package/dist/components/Heros/index.css +1 -0
- package/dist/components/Heros/index.js +6 -0
- package/dist/components/Heros/index.mjs +1 -0
- package/dist/components/Holidays/ApproveLeave.css +1 -0
- package/dist/components/Holidays/ApproveLeave.js +4 -0
- package/dist/components/Holidays/ApproveLeave.mjs +2 -0
- package/dist/components/Holidays/CalendarView.css +1 -0
- package/dist/components/Holidays/CalendarView.js +4 -0
- package/dist/components/Holidays/CalendarView.mjs +2 -0
- package/dist/components/Holidays/HolidayGrid.css +1 -0
- package/dist/components/Holidays/HolidayGrid.js +4 -0
- package/dist/components/Holidays/HolidayGrid.mjs +1 -0
- package/dist/components/Holidays/HolidayTracker.css +1 -0
- package/dist/components/Holidays/HolidayTracker.js +4 -0
- package/dist/components/Holidays/HolidayTracker.mjs +2 -0
- package/dist/components/Holidays/RequestLeave.css +1 -0
- package/dist/components/Holidays/RequestLeave.js +4 -0
- package/dist/components/Holidays/RequestLeave.mjs +2 -0
- package/dist/components/Holidays/index.css +1 -0
- package/dist/components/Holidays/index.js +4 -0
- package/dist/components/Holidays/index.mjs +1 -0
- package/dist/components/Icons/ScrollDownIcon.js +4 -0
- package/dist/components/Icons/ScrollDownIcon.mjs +2 -0
- package/dist/components/Images/DynamicIcon.js +4 -0
- package/dist/components/Images/DynamicIcon.mjs +2 -0
- package/dist/components/Images/IconIndex.js +18 -0
- package/dist/components/Images/IconIndex.mjs +18 -0
- package/dist/components/Images/customIconList.js +1 -0
- package/dist/components/Images/customIconList.mjs +1 -0
- package/dist/components/Images/index.js +4 -0
- package/dist/components/Images/index.mjs +1 -0
- package/dist/components/Layouts/FeatureGrid.js +4 -0
- package/dist/components/Layouts/FeatureGrid.mjs +2 -0
- package/dist/components/Layouts/NewsGrid.js +4 -0
- package/dist/components/Layouts/NewsGrid.mjs +2 -0
- package/dist/components/Layouts/NewsList.js +1 -0
- package/dist/components/Layouts/NewsList.mjs +1 -0
- package/dist/components/Layouts/OutputHeaderFooter.css +1 -0
- package/dist/components/Layouts/OutputHeaderFooter.js +6 -0
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -0
- package/dist/components/Layouts/Print.css +1 -0
- package/dist/components/Layouts/Print.js +6 -0
- package/dist/components/Layouts/Print.mjs +2 -0
- package/dist/components/Layouts/SlideShow.css +1 -0
- package/dist/components/Layouts/SlideShow.js +8 -0
- package/dist/components/Layouts/SlideShow.mjs +2 -0
- package/dist/components/Layouts/TextAndImages.js +1 -0
- package/dist/components/Layouts/TextAndImages.mjs +1 -0
- package/dist/components/Layouts/index.css +1 -0
- package/dist/components/Layouts/index.js +9 -0
- package/dist/components/Layouts/index.mjs +1 -0
- package/dist/components/Menus/Categories.css +1 -0
- package/dist/components/Menus/Categories.js +4 -0
- package/dist/components/Menus/Categories.mjs +2 -0
- package/dist/components/Menus/Filter.css +1 -0
- package/dist/components/Menus/Filter.js +4 -0
- package/dist/components/Menus/Filter.mjs +2 -0
- package/dist/components/Menus/Pagination.js +4 -0
- package/dist/components/Menus/Pagination.mjs +2 -0
- package/dist/components/Menus/ProjectTeam.css +1 -0
- package/dist/components/Menus/ProjectTeam.js +1 -0
- package/dist/components/Menus/ProjectTeam.mjs +1 -0
- package/dist/components/Menus/RelatedContent.css +1 -0
- package/dist/components/Menus/RelatedContent.js +1 -0
- package/dist/components/Menus/RelatedContent.mjs +1 -0
- package/dist/components/Menus/SidebarLeft.css +1 -0
- package/dist/components/Menus/SidebarLeft.js +4 -0
- package/dist/components/Menus/SidebarLeft.mjs +2 -0
- package/dist/components/Menus/SidebarRight.css +1 -0
- package/dist/components/Menus/SidebarRight.js +4 -0
- package/dist/components/Menus/SidebarRight.mjs +2 -0
- package/dist/components/Menus/index.css +1 -0
- package/dist/components/Menus/index.js +4 -0
- package/dist/components/Menus/index.mjs +1 -0
- package/dist/components/Other/AnimatedBorder.js +4 -0
- package/dist/components/Other/AnimatedBorder.mjs +2 -0
- package/dist/components/Other/Container.css +1 -0
- package/dist/components/Other/Container.js +1 -0
- package/dist/components/Other/Container.mjs +1 -0
- package/dist/components/Other/CustomLink.js +1 -0
- package/dist/components/Other/CustomLink.mjs +1 -0
- package/dist/components/Other/PageShape.js +1 -0
- package/dist/components/Other/PageShape.mjs +1 -0
- package/dist/components/Other/ThemeProvider.js +4 -0
- package/dist/components/Other/ThemeProvider.mjs +2 -0
- package/dist/components/Other/index.css +1 -0
- package/dist/components/Other/index.js +4 -0
- package/dist/components/Other/index.mjs +1 -0
- package/dist/components/Payload/Card/index.js +4 -0
- package/dist/components/Payload/Card/index.mjs +2 -0
- package/dist/components/Payload/CollectionArchive/index.js +4 -0
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -0
- package/dist/components/Payload/Link/index.css +1 -0
- package/dist/components/Payload/Link/index.js +1 -0
- package/dist/components/Payload/Link/index.mjs +1 -0
- package/dist/components/Payload/Logo/index.js +1 -0
- package/dist/components/Payload/Logo/index.mjs +1 -0
- package/dist/components/Payload/Media/ImageMedia/index.js +4 -0
- package/dist/components/Payload/Media/ImageMedia/index.mjs +2 -0
- package/dist/components/Payload/Media/VideoMedia/index.js +4 -0
- package/dist/components/Payload/Media/VideoMedia/index.mjs +2 -0
- package/dist/components/Payload/Media/index.js +4 -0
- package/dist/components/Payload/Media/index.mjs +1 -0
- package/dist/components/Payload/Media/types.js +1 -0
- package/dist/components/Payload/PageRange/index.js +1 -0
- package/dist/components/Payload/PageRange/index.mjs +1 -0
- package/dist/components/Payload/Pagination/index.css +1 -0
- package/dist/components/Payload/Pagination/index.js +4 -0
- package/dist/components/Payload/Pagination/index.mjs +2 -0
- package/dist/components/Payload/RichText/index.css +1 -0
- package/dist/components/Payload/RichText/index.js +5 -0
- package/dist/components/Payload/RichText/index.mjs +1 -0
- package/dist/components/Payload/RichText/nodeFormat.js +3 -0
- package/dist/components/Payload/RichText/nodeFormat.mjs +1 -0
- package/dist/components/Payload/RichText/serialize.css +1 -0
- package/dist/components/Payload/RichText/serialize.js +5 -0
- package/dist/components/Payload/RichText/serialize.mjs +1 -0
- package/dist/components/Payload/index.css +1 -0
- package/dist/components/Payload/index.js +5 -0
- package/dist/components/Payload/index.mjs +1 -0
- package/dist/components/Projects/AddEpicModal.css +1 -0
- package/dist/components/Projects/AddEpicModal.js +4 -0
- package/dist/components/Projects/AddEpicModal.mjs +1 -0
- package/dist/components/Projects/AddSprintModal.css +1 -0
- package/dist/components/Projects/AddSprintModal.js +4 -0
- package/dist/components/Projects/AddSprintModal.mjs +1 -0
- package/dist/components/Projects/AddTaskModal.css +1 -0
- package/dist/components/Projects/AddTaskModal.js +4 -0
- package/dist/components/Projects/AddTaskModal.mjs +1 -0
- package/dist/components/Projects/EpicFilter.css +1 -0
- package/dist/components/Projects/EpicFilter.js +4 -0
- package/dist/components/Projects/EpicFilter.mjs +1 -0
- package/dist/components/Projects/EpicsView.css +1 -0
- package/dist/components/Projects/EpicsView.js +5 -0
- package/dist/components/Projects/EpicsView.mjs +1 -0
- package/dist/components/Projects/FileView.css +1 -0
- package/dist/components/Projects/FileView.js +5 -0
- package/dist/components/Projects/FileView.mjs +2 -0
- package/dist/components/Projects/KanbanBoardView.css +1 -0
- package/dist/components/Projects/KanbanBoardView.js +5 -0
- package/dist/components/Projects/KanbanBoardView.mjs +1 -0
- package/dist/components/Projects/KanbanColumn.css +1 -0
- package/dist/components/Projects/KanbanColumn.js +1 -0
- package/dist/components/Projects/KanbanColumn.mjs +1 -0
- package/dist/components/Projects/PlanningView.css +1 -0
- package/dist/components/Projects/PlanningView.js +5 -0
- package/dist/components/Projects/PlanningView.mjs +1 -0
- package/dist/components/Projects/ProjectPage.css +1 -0
- package/dist/components/Projects/ProjectPage.js +5 -0
- package/dist/components/Projects/ProjectPage.mjs +2 -0
- package/dist/components/Projects/ProjectView.css +1 -0
- package/dist/components/Projects/ProjectView.js +5 -0
- package/dist/components/Projects/ProjectView.mjs +1 -0
- package/dist/components/Projects/ProjectsIndexView.css +1 -0
- package/dist/components/Projects/ProjectsIndexView.js +5 -0
- package/dist/components/Projects/ProjectsIndexView.mjs +2 -0
- package/dist/components/Projects/TaskCard.css +1 -0
- package/dist/components/Projects/TaskCard.js +1 -0
- package/dist/components/Projects/TaskCard.mjs +1 -0
- package/dist/components/Projects/TaskDetailsModal.css +1 -0
- package/dist/components/Projects/TaskDetailsModal.js +4 -0
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -0
- package/dist/components/Projects/TaskSelect.css +1 -0
- package/dist/components/Projects/TaskSelect.js +4 -0
- package/dist/components/Projects/TaskSelect.mjs +1 -0
- package/dist/components/Projects/TaskSidebar.css +1 -0
- package/dist/components/Projects/TaskSidebar.js +4 -0
- package/dist/components/Projects/TaskSidebar.mjs +1 -0
- package/dist/components/Projects/TasksView.css +1 -0
- package/dist/components/Projects/TasksView.js +5 -0
- package/dist/components/Projects/TasksView.mjs +1 -0
- package/dist/components/Projects/TeamSwitcher.css +1 -0
- package/dist/components/Projects/TeamSwitcher.js +4 -0
- package/dist/components/Projects/TeamSwitcher.mjs +1 -0
- package/dist/components/Projects/business-unit-switcher.css +1 -0
- package/dist/components/Projects/business-unit-switcher.js +5 -0
- package/dist/components/Projects/business-unit-switcher.mjs +2 -0
- package/dist/components/Projects/business-units.js +1 -0
- package/dist/components/Projects/business-units.mjs +1 -0
- package/dist/components/Projects/file-list.css +1 -0
- package/dist/components/Projects/file-list.js +4 -0
- package/dist/components/Projects/file-list.mjs +2 -0
- package/dist/components/Projects/project-card.css +1 -0
- package/dist/components/Projects/project-card.js +4 -0
- package/dist/components/Projects/project-card.mjs +2 -0
- package/dist/components/Projects/project-form.css +1 -0
- package/dist/components/Projects/project-form.js +4 -0
- package/dist/components/Projects/project-form.mjs +2 -0
- package/dist/components/Projects/team-card.css +1 -0
- package/dist/components/Projects/team-card.js +4 -0
- package/dist/components/Projects/team-card.mjs +2 -0
- package/dist/components/Projects/team-switcher-bar.css +1 -0
- package/dist/components/Projects/team-switcher-bar.js +5 -0
- package/dist/components/Projects/team-switcher-bar.mjs +2 -0
- package/dist/components/Projects/test-data.js +1 -0
- package/dist/components/Projects/test-data.mjs +1 -0
- package/dist/components/dc-temp/CHANGES_SUMMARY.js +104 -0
- package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +104 -0
- package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.js +117 -0
- package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +117 -0
- package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.js +207 -0
- package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +207 -0
- package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.js +121 -0
- package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +121 -0
- package/dist/components/dc-temp/TEAMS_README.js +92 -0
- package/dist/components/dc-temp/TEAMS_README.mjs +92 -0
- package/dist/components/dc-temp/creative.css +1 -0
- package/dist/components/dc-temp/creative.js +5 -0
- package/dist/components/dc-temp/creative.mjs +4 -0
- package/dist/components/dc-temp/dashboard-integration-example.css +1 -0
- package/dist/components/dc-temp/dashboard-integration-example.js +8 -0
- package/dist/components/dc-temp/dashboard-integration-example.mjs +4 -0
- package/dist/components/dc-temp/enhanced-header.css +1 -0
- package/dist/components/dc-temp/enhanced-header.js +5 -0
- package/dist/components/dc-temp/enhanced-header.mjs +2 -0
- package/dist/components/dc-temp/headerlogo.js +1 -0
- package/dist/components/dc-temp/headerlogo.mjs +1 -0
- package/dist/components/dc-temp/icon-mapper.js +1 -0
- package/dist/components/dc-temp/icon-mapper.mjs +1 -0
- package/dist/components/dc-temp/index.css +1 -0
- package/dist/components/dc-temp/index.js +5 -0
- package/dist/components/dc-temp/index.mjs +1 -0
- package/dist/components/dc-temp/knowledge-browser.css +1 -0
- package/dist/components/dc-temp/knowledge-browser.js +5 -0
- package/dist/components/dc-temp/knowledge-browser.mjs +2 -0
- package/dist/components/dc-temp/knowledge-search.css +1 -0
- package/dist/components/dc-temp/knowledge-search.js +5 -0
- package/dist/components/dc-temp/knowledge-search.mjs +2 -0
- package/dist/components/dc-temp/loading.js +1 -0
- package/dist/components/dc-temp/loading.mjs +1 -0
- package/dist/components/dc-temp/markdown-renderer.css +1 -0
- package/dist/components/dc-temp/markdown-renderer.js +4 -0
- package/dist/components/dc-temp/markdown-renderer.mjs +4 -0
- package/dist/components/dc-temp/mock-data.js +1 -0
- package/dist/components/dc-temp/mock-data.mjs +1 -0
- package/dist/components/dc-temp/sidebar.css +1 -0
- package/dist/components/dc-temp/sidebar.js +5 -0
- package/dist/components/dc-temp/sidebar.mjs +2 -0
- package/dist/components/dc-temp/utils.js +1 -0
- package/dist/components/dc-temp/utils.mjs +1 -0
- package/dist/components/index.css +1 -0
- package/dist/components/index.js +21 -0
- package/dist/components/index.mjs +1 -0
- package/dist/components/ui/alert.css +1 -0
- package/dist/components/ui/alert.js +1 -0
- package/dist/components/ui/alert.mjs +1 -0
- package/dist/components/ui/avatar.css +1 -0
- package/dist/components/ui/avatar.js +4 -0
- package/dist/components/ui/avatar.mjs +2 -0
- package/dist/components/ui/badge.css +1 -0
- package/dist/components/ui/badge.js +1 -0
- package/dist/components/ui/badge.mjs +1 -0
- package/dist/components/ui/breadcrumb.css +1 -0
- package/dist/components/ui/breadcrumb.js +1 -0
- package/dist/components/ui/breadcrumb.mjs +1 -0
- package/dist/components/ui/button.css +1 -0
- package/dist/components/ui/button.js +1 -0
- package/dist/components/ui/button.mjs +1 -0
- package/dist/components/ui/calendar.css +1 -0
- package/dist/components/ui/calendar.js +4 -0
- package/dist/components/ui/calendar.mjs +2 -0
- package/dist/components/ui/card.css +1 -0
- package/dist/components/ui/card.js +1 -0
- package/dist/components/ui/card.mjs +1 -0
- package/dist/components/ui/checkbox.css +1 -0
- package/dist/components/ui/checkbox.js +4 -0
- package/dist/components/ui/checkbox.mjs +2 -0
- package/dist/components/ui/collapsible.js +4 -0
- package/dist/components/ui/collapsible.mjs +2 -0
- package/dist/components/ui/command.css +1 -0
- package/dist/components/ui/command.js +4 -0
- package/dist/components/ui/command.mjs +2 -0
- package/dist/components/ui/dialog.css +1 -0
- package/dist/components/ui/dialog.js +4 -0
- package/dist/components/ui/dialog.mjs +2 -0
- package/dist/components/ui/dropdown-menu.css +1 -0
- package/dist/components/ui/dropdown-menu.js +4 -0
- package/dist/components/ui/dropdown-menu.mjs +2 -0
- package/dist/components/ui/hover-card.css +1 -0
- package/dist/components/ui/hover-card.js +4 -0
- package/dist/components/ui/hover-card.mjs +2 -0
- package/dist/components/ui/index.css +1 -0
- package/dist/components/ui/index.js +5 -0
- package/dist/components/ui/index.mjs +1 -0
- package/dist/components/ui/input.css +1 -0
- package/dist/components/ui/input.js +1 -0
- package/dist/components/ui/input.mjs +1 -0
- package/dist/components/ui/inputs/common/styles/index.css +1 -0
- package/dist/components/ui/inputs/common/styles/index.js +1 -0
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -0
- package/dist/components/ui/inputs/text-input/index.css +1 -0
- package/dist/components/ui/inputs/text-input/index.js +1 -0
- package/dist/components/ui/inputs/text-input/index.mjs +1 -0
- package/dist/components/ui/inputs/textarea-input/index.css +1 -0
- package/dist/components/ui/inputs/textarea-input/index.js +1 -0
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -0
- package/dist/components/ui/label.css +1 -0
- package/dist/components/ui/label.js +4 -0
- package/dist/components/ui/label.mjs +2 -0
- package/dist/components/ui/pagination.css +1 -0
- package/dist/components/ui/pagination.js +1 -0
- package/dist/components/ui/pagination.mjs +1 -0
- package/dist/components/ui/popover.css +1 -0
- package/dist/components/ui/popover.js +4 -0
- package/dist/components/ui/popover.mjs +2 -0
- package/dist/components/ui/progress.css +1 -0
- package/dist/components/ui/progress.js +4 -0
- package/dist/components/ui/progress.mjs +2 -0
- package/dist/components/ui/scroll-area.css +1 -0
- package/dist/components/ui/scroll-area.js +4 -0
- package/dist/components/ui/scroll-area.mjs +2 -0
- package/dist/components/ui/select.css +1 -0
- package/dist/components/ui/select.js +4 -0
- package/dist/components/ui/select.mjs +2 -0
- package/dist/components/ui/separator.css +1 -0
- package/dist/components/ui/separator.js +4 -0
- package/dist/components/ui/separator.mjs +2 -0
- package/dist/components/ui/sheet.css +1 -0
- package/dist/components/ui/sheet.js +4 -0
- package/dist/components/ui/sheet.mjs +2 -0
- package/dist/components/ui/sidebar.css +1 -0
- package/dist/components/ui/sidebar.js +4 -0
- package/dist/components/ui/sidebar.mjs +2 -0
- package/dist/components/ui/skeleton.css +1 -0
- package/dist/components/ui/skeleton.js +1 -0
- package/dist/components/ui/skeleton.mjs +1 -0
- package/dist/components/ui/switch.css +1 -0
- package/dist/components/ui/switch.js +4 -0
- package/dist/components/ui/switch.mjs +4 -0
- package/dist/components/ui/tabs.css +1 -0
- package/dist/components/ui/tabs.js +4 -0
- package/dist/components/ui/tabs.mjs +2 -0
- package/dist/components/ui/textarea.css +1 -0
- package/dist/components/ui/textarea.js +1 -0
- package/dist/components/ui/textarea.mjs +1 -0
- package/dist/components/ui/toast.css +1 -0
- package/dist/components/ui/toast.js +4 -0
- package/dist/components/ui/toast.mjs +2 -0
- package/dist/components/ui/toaster.css +1 -0
- package/dist/components/ui/toaster.js +4 -0
- package/dist/components/ui/toaster.mjs +2 -0
- package/dist/components/ui/toggle-group.css +1 -0
- package/dist/components/ui/toggle-group.js +4 -0
- package/dist/components/ui/toggle-group.mjs +2 -0
- package/dist/components/ui/toggle.css +1 -0
- package/dist/components/ui/toggle.js +4 -0
- package/dist/components/ui/toggle.mjs +2 -0
- package/dist/components/ui/tooltip.css +1 -0
- package/dist/components/ui/tooltip.js +4 -0
- package/dist/components/ui/tooltip.mjs +2 -0
- package/dist/constants.js +1 -0
- package/dist/constants.mjs +1 -0
- package/dist/cortex-reply-27IMI3G7.png +0 -0
- package/dist/cortex-reply-bw-TFX4Q54O.png +0 -0
- package/dist/cortex-reply-dark-XPAJJJYY.png +0 -0
- package/dist/cortex-reply-gradient-LS56SYPD.png +0 -0
- package/dist/cortex-reply-light-27IMI3G7.png +0 -0
- package/dist/declaration.d.js +1 -0
- package/dist/fonts/Manrope-Bold.js +1 -0
- package/dist/fonts/Manrope-Bold.mjs +1 -0
- package/dist/fonts/Manrope-ExtraBold.js +1 -0
- package/dist/fonts/Manrope-ExtraBold.mjs +1 -0
- package/dist/fonts/Manrope-ExtraLight.js +1 -0
- package/dist/fonts/Manrope-ExtraLight.mjs +1 -0
- package/dist/fonts/Manrope-Light.js +1 -0
- package/dist/fonts/Manrope-Light.mjs +1 -0
- package/dist/fonts/Manrope-Medium.js +1 -0
- package/dist/fonts/Manrope-Medium.mjs +1 -0
- package/dist/fonts/Manrope-Regular.js +1 -0
- package/dist/fonts/Manrope-Regular.mjs +1 -0
- package/dist/fonts/Manrope-SemiBold.js +1 -0
- package/dist/fonts/Manrope-SemiBold.mjs +1 -0
- package/dist/globals.css +1 -0
- package/dist/graphql-NFIL2UYH.mjs +177 -0
- package/dist/headerlogo-7HRUF72W.png +0 -0
- package/dist/hero-3-N2CBGEV6.jpg +0 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.mjs +1 -0
- package/dist/hooks/use-local-storage.js +1 -0
- package/dist/hooks/use-local-storage.mjs +1 -0
- package/dist/hooks/use-mobile.js +4 -0
- package/dist/hooks/use-mobile.mjs +2 -0
- package/dist/hooks/use-toast.js +4 -0
- package/dist/hooks/use-toast.mjs +2 -0
- package/dist/image-hero1-V6MPFDQ6.webp +0 -0
- package/dist/images/cortex-reply-bw.js +1 -0
- package/dist/images/cortex-reply-bw.mjs +1 -0
- package/dist/images/cortex-reply-dark.js +1 -0
- package/dist/images/cortex-reply-dark.mjs +1 -0
- package/dist/images/cortex-reply-gradient.js +1 -0
- package/dist/images/cortex-reply-gradient.mjs +1 -0
- package/dist/images/cortex-reply-light.js +1 -0
- package/dist/images/cortex-reply-light.mjs +1 -0
- package/dist/images/cortex-reply.js +1 -0
- package/dist/images/cortex-reply.mjs +1 -0
- package/dist/images/hero/hero-3.js +1 -0
- package/dist/images/hero/hero-3.mjs +1 -0
- package/dist/images/hero/image-hero1.js +1 -0
- package/dist/images/hero/image-hero1.mjs +1 -0
- package/dist/images/hero/pattern-1.js +1 -0
- package/dist/images/hero/pattern-1.mjs +1 -0
- package/dist/images/hero/pattern-2.js +1 -0
- package/dist/images/hero/pattern-2.mjs +1 -0
- package/dist/index.mjs +1 -33
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/model/Employee.js +1 -0
- package/dist/model/Holiday.js +1 -0
- package/dist/model/LeaveRequest.js +1 -0
- package/dist/pages/Blog.css +1 -0
- package/dist/pages/Blog.js +5 -0
- package/dist/pages/Blog.mjs +1 -0
- package/dist/pages/Documentation.css +1 -0
- package/dist/pages/Documentation.js +4 -0
- package/dist/pages/Documentation.mjs +2 -0
- package/dist/pages/IndexPage.css +1 -0
- package/dist/pages/IndexPage.js +4 -0
- package/dist/pages/IndexPage.mjs +2 -0
- package/dist/pages/Intranet.css +1 -0
- package/dist/pages/Intranet.js +5 -0
- package/dist/pages/Intranet.mjs +1 -0
- package/dist/pages/LandingPage.css +1 -0
- package/dist/pages/LandingPage.js +13 -0
- package/dist/pages/LandingPage.mjs +2 -0
- package/dist/pages/Page.css +1 -0
- package/dist/pages/Page.js +5 -0
- package/dist/pages/Page.mjs +2 -0
- package/dist/pages/Publish.css +1 -0
- package/dist/pages/Publish.js +9 -0
- package/dist/pages/Publish.mjs +2 -0
- package/dist/pages/Website.css +1 -0
- package/dist/pages/Website.js +5 -0
- package/dist/pages/Website.mjs +1 -0
- package/dist/pattern-1-B7SDCBJ3.png +0 -0
- package/dist/pattern-1-EKFV67R7.png +0 -0
- package/dist/pattern-2-6AZH7ORR.png +0 -0
- package/dist/payload-types.js +1 -0
- package/dist/sections/AboutSection.css +1 -0
- package/dist/sections/AboutSection.js +5 -0
- package/dist/sections/AboutSection.mjs +1 -0
- package/dist/sections/BlogDetail.css +1 -0
- package/dist/sections/BlogDetail.js +5 -0
- package/dist/sections/BlogDetail.mjs +1 -0
- package/dist/sections/BlogList.css +1 -0
- package/dist/sections/BlogList.js +13 -0
- package/dist/sections/BlogList.mjs +1 -0
- package/dist/sections/BlogListSection.css +1 -0
- package/dist/sections/BlogListSection.js +4 -0
- package/dist/sections/BlogListSection.mjs +1 -0
- package/dist/sections/ContactSection.css +1 -0
- package/dist/sections/ContactSection.js +5 -0
- package/dist/sections/ContactSection.mjs +1 -0
- package/dist/sections/ImageSection.css +1 -0
- package/dist/sections/ImageSection.js +1 -0
- package/dist/sections/ImageSection.mjs +1 -0
- package/dist/sections/MainPageSection.css +1 -0
- package/dist/sections/MainPageSection.js +4 -0
- package/dist/sections/MainPageSection.mjs +2 -0
- package/dist/sections/PageSections.css +1 -0
- package/dist/sections/PageSections.js +13 -0
- package/dist/sections/PageSections.mjs +2 -0
- package/dist/sections/PricingSection.css +1 -0
- package/dist/sections/PricingSection.js +5 -0
- package/dist/sections/PricingSection.mjs +1 -0
- package/dist/sections/ServiceDetail.css +1 -0
- package/dist/sections/ServiceDetail.js +5 -0
- package/dist/sections/ServiceDetail.mjs +1 -0
- package/dist/sections/ServiceDetailSection.css +1 -0
- package/dist/sections/ServiceDetailSection.js +5 -0
- package/dist/sections/ServiceDetailSection.mjs +1 -0
- package/dist/sections/ServiceSection.css +1 -0
- package/dist/sections/ServiceSection.js +5 -0
- package/dist/sections/ServiceSection.mjs +1 -0
- package/dist/sections/form/index.css +1 -0
- package/dist/sections/form/index.js +5 -0
- package/dist/sections/form/index.mjs +2 -0
- package/dist/sections/form/server/contact-us-form-submit.js +4 -0
- package/dist/sections/form/server/contact-us-form-submit.mjs +2 -0
- package/dist/sections/index.css +1 -0
- package/dist/sections/index.js +13 -0
- package/dist/sections/index.mjs +1 -0
- package/dist/server/index.js +1 -0
- package/dist/styles/Colors.css +1 -0
- package/dist/styles/Colors.js +4 -0
- package/dist/styles/Colors.mjs +1 -0
- package/dist/styles/Typography.js +48 -0
- package/dist/styles/Typography.mjs +48 -0
- package/dist/test-data/capabilities.js +1 -0
- package/dist/test-data/capabilities.mjs +1 -0
- package/dist/tests/payload.js +1 -0
- package/dist/tests/payload.mjs +1 -0
- package/dist/utils/AOSInit.css +1 -0
- package/dist/utils/AOSInit.js +8 -0
- package/dist/utils/AOSInit.mjs +2 -0
- package/dist/utils/BankHolidays.js +1 -0
- package/dist/utils/BankHolidays.mjs +1 -0
- package/dist/utils/DaysUtil.js +1 -0
- package/dist/utils/DaysUtil.mjs +1 -0
- package/dist/utils/canUseDOM.js +1 -0
- package/dist/utils/canUseDOM.mjs +1 -0
- package/dist/utils/cn.js +1 -0
- package/dist/utils/cn.mjs +1 -0
- package/dist/utils/formatDateTime.js +1 -0
- package/dist/utils/formatDateTime.mjs +1 -0
- package/dist/utils/getTableOfContents.js +1 -0
- package/dist/utils/getTableOfContents.mjs +1 -0
- package/dist/utils/getURL.js +1 -0
- package/dist/utils/getURL.mjs +1 -0
- package/dist/utils/index.css +1 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.mjs +1 -0
- package/dist/utils/setStaggeredDelay.js +1 -0
- package/dist/utils/setStaggeredDelay.mjs +1 -0
- package/dist/utils/useClickableCard.js +4 -0
- package/dist/utils/useClickableCard.mjs +2 -0
- package/dist/waves-6HGOFMRK.jpg +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
'use client'
|
|
4
|
+
|
|
5
|
+
"use strict";var Rs=Object.create;var Xa=Object.defineProperty;var Is=Object.getOwnPropertyDescriptor;var Es=Object.getOwnPropertyNames;var As=Object.getPrototypeOf,Ms=Object.prototype.hasOwnProperty;var Bs=(e,t)=>{for(var a in t)Xa(e,a,{get:t[a],enumerable:!0})},Nr=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Es(t))!Ms.call(e,n)&&n!==a&&Xa(e,n,{get:()=>t[n],enumerable:!(o=Is(t,n))||o.enumerable});return e};var be=(e,t,a)=>(a=e!=null?Rs(As(e)):{},Nr(t||!e||!e.__esModule?Xa(a,"default",{value:e,enumerable:!0}):a,e)),Fs=e=>Nr(Xa({},"__esModule",{value:!0}),e);var Nl={};Bs(Nl,{ColleaguesView:()=>Vo,FileView:()=>Ba,KnowledgeView:()=>Uo,ProjectView:()=>lr,ProjectsIndexView:()=>gr,TeamsIndexView:()=>fr});module.exports=Fs(Nl);var Bt=require("react"),pt=require("lucide-react");var Er=require("clsx");var Fo="-",Ls=e=>{let t=Os(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:s=>{let c=s.split(Fo);return c[0]===""&&c.length!==1&&c.shift(),Dr(c,t)||js(s)},getConflictingClassGroupIds:(s,c)=>{let l=a[s]||[];return c&&o[s]?[...l,...o[s]]:l}}},Dr=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),n=o?Dr(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let r=e.join(Fo);return t.validators.find(({validator:s})=>s(r))?.classGroupId},Cr=/^\[(.+)\]$/,js=e=>{if(Cr.test(e)){let t=Cr.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Os=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Hs(Object.entries(e.classGroups),a).forEach(([r,s])=>{Bo(s,o,r,t)}),o},Bo=(e,t,a,o)=>{e.forEach(n=>{if(typeof n=="string"){let r=n===""?t:Sr(t,n);r.classGroupId=a;return}if(typeof n=="function"){if(zs(n)){Bo(n(o),t,a,o);return}t.validators.push({validator:n,classGroupId:a});return}Object.entries(n).forEach(([r,s])=>{Bo(s,Sr(t,r),a,o)})})},Sr=(e,t)=>{let a=e;return t.split(Fo).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},zs=e=>e.isThemeGetter,Hs=(e,t)=>t?e.map(([a,o])=>{let n=o.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,c])=>[t+s,c])):r);return[a,n]}):e,Vs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,n=(r,s)=>{a.set(r,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let s=a.get(r);if(s!==void 0)return s;if((s=o.get(r))!==void 0)return n(r,s),s},set(r,s){a.has(r)?a.set(r,s):n(r,s)}}},kr="!",Us=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,n=t[0],r=t.length,s=c=>{let l=[],p=0,d=0,g;for(let b=0;b<c.length;b++){let R=c[b];if(p===0){if(R===n&&(o||c.slice(b,b+r)===t)){l.push(c.slice(d,b)),d=b+r;continue}if(R==="/"){g=b;continue}}R==="["?p++:R==="]"&&p--}let u=l.length===0?c:c.substring(d),v=u.startsWith(kr),C=v?u.substring(1):u,O=g&&g>d?g-d:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:C,maybePostfixModifierPosition:O}};return a?c=>a({className:c,parseClassName:s}):s},$s=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Ks=e=>({cache:Vs(e.cacheSize),parseClassName:Us(e),...Ls(e)}),Gs=/\s+/,_s=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:n}=t,r=[],s=e.trim().split(Gs),c="";for(let l=s.length-1;l>=0;l-=1){let p=s[l],{modifiers:d,hasImportantModifier:g,baseClassName:u,maybePostfixModifierPosition:v}=a(p),C=!!v,O=o(C?u.substring(0,v):u);if(!O){if(!C){c=p+(c.length>0?" "+c:c);continue}if(O=o(u),!O){c=p+(c.length>0?" "+c:c);continue}C=!1}let b=$s(d).join(":"),R=g?b+kr:b,N=R+O;if(r.includes(N))continue;r.push(N);let B=n(O,C);for(let K=0;K<B.length;++K){let se=B[K];r.push(R+se)}c=p+(c.length>0?" "+c:c)}return c};function Ws(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Pr(t))&&(o&&(o+=" "),o+=a);return o}var Pr=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Pr(e[o]))&&(a&&(a+=" "),a+=t);return a};function qs(e,...t){let a,o,n,r=s;function s(l){let p=t.reduce((d,g)=>g(d),e());return a=Ks(p),o=a.cache.get,n=a.cache.set,r=c,c(l)}function c(l){let p=o(l);if(p)return p;let d=_s(l,a);return n(l,d),d}return function(){return r(Ws.apply(null,arguments))}}var Ee=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Tr=/^\[(?:([a-z-]+):)?(.+)\]$/Fr,Js=/^\d+\/\d+$/,Xs=new Set(["px","full","screen"]),Ys=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|Fr|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,en=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pt=e=>la(e)||Xs.has(e)||Js.test(e),jt=e=>da(e,"length",cn),la=e=>!!e&&!Number.isNaN(Number(e)),Mo=e=>da(e,"number",la),Da=e=>!!e&&Number.isInteger(Number(e)),an=e=>e.endsWith("%")&&la(e.slice(0,-1)),ne=e=>Tr.test(e),Ot=e=>Ys.test(e),on=new Set(["length","size","percentage"]),rn=e=>da(e,on,Rr),sn=e=>da(e,"position",Rr),nn=new Set(["image","url"]),ln=e=>da(e,nn,pn),dn=e=>da(e,"",mn),ka=()=>!0,da=(e,t,a)=>{let o=Tr.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},cn=e=>Zs.test(e)&&!Qs.test(e),Rr=()=>!1,mn=e=>en.test(e),pn=e=>tn.test(e);var un=()=>{let e=Ee("colors"),t=Ee("spacing"),a=Ee("blur"),o=Ee("brightness"),n=Ee("borderColor"),r=Ee("borderRadius"),s=Ee("borderSpacing"),c=Ee("borderWidth"),l=Ee("contrast"),p=Ee("grayscale"),d=Ee("hueRotate"),g=Ee("invert"),u=Ee("gap"),v=Ee("gradientColorStops"),C=Ee("gradientColorStopPositions"),O=Ee("inset"),b=Ee("margin"),R=Ee("opacity"),N=Ee("padding"),B=Ee("saturate"),K=Ee("scale"),se=Ee("sepia"),Z=Ee("skew"),me=Ee("space"),x=Ee("translate"),T=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],ve=()=>["auto",ne,t],A=()=>[ne,t],S=()=>["",Pt,jt],X=()=>["auto",la,ne],De=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],dt=()=>["solid","dashed","dotted","double","none"],ct=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],je=()=>["start","end","center","between","around","evenly","stretch"],He=()=>["","0",ne],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[la,ne];return{cacheSize:500,separator:":",theme:{colors:[ka],spacing:[Pt,jt],blur:["none","",Ot,ne],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Ot,ne],borderSpacing:A(),borderWidth:S(),contrast:Y(),grayscale:He(),hueRotate:Y(),invert:He(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[an,jt],inset:ve(),margin:ve(),opacity:Y(),padding:A(),saturate:Y(),scale:Y(),sepia:He(),skew:Y(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",ne]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...De(),ne]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[O]}],"inset-x":[{"inset-x":[O]}],"inset-y":[{"inset-y":[O]}],start:[{start:[O]}],end:[{end:[O]}],top:[{top:[O]}],right:[{right:[O]}],bottom:[{bottom:[O]}],left:[{left:[O]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Da,ne]}],basis:[{basis:ve()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ne]}],grow:[{grow:He()}],shrink:[{shrink:He()}],order:[{order:["first","last","none",Da,ne]}],"grid-cols":[{"grid-cols":[ka]}],"col-start-end":[{col:["auto",{span:["full",Da,ne]},ne]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[ka]}],"row-start-end":[{row:["auto",{span:[Da,ne]},ne]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ne]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...je()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...je(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...je(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],Fr:[{Fr:[N]}],pt:[{pt:[N]}],Bt:[{Bt:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],Fr:[{Fr:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],pt:[{pt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[me]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[me]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ne,t]}],"min-w":[{"min-w":[ne,t,"min","max","fit"]}],"max-w":[{"max-w":[ne,t,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mo]}],"font-family":[{font:[ka]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ne]}],"line-clamp":[{"line-clamp":["none",la,Mo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pt,ne]}],"list-image":[{"list-image":["none",ne]}],"list-style-type":[{list:["none","disc","decimal",ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...dt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pt,jt]}],"underline-offset":[{"underline-offset":["auto",Pt,ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...De(),sn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rn]}],"bg-image":[{bg:["none",{"gradient-to":["t","Fr","r","br","b","bl","l","tl"]},ln]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-Fr":[{"rounded-Fr":[r]}],"rounded-pt":[{"rounded-pt":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-Fr":[{"rounded-Fr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...dt(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:dt()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...dt()]}],"outline-offset":[{"outline-offset":[Pt,ne]}],"outline-w":[{outline:[Pt,jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[Pt,jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ot,dn]}],"shadow-color":[{shadow:[ka]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...ct(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ct()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ot,ne]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[g]}],saturate:[{saturate:[B]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ne]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",ne]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[K]}],"scale-x":[{"scale-x":[K]}],"scale-y":[{"scale-y":[K]}],rotate:[{rotate:[Da,ne]}],"translate-x":[{"translate-x":[x]}],"translate-y":[{"translate-y":[x]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Fr":[{"scroll-Fr":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-Fr":[{"scroll-Fr":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-Bt":[{"scroll-Bt":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Pt,jt,Mo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","Fr","pt","Bt","pb","pl"],px:["Bt","pl"],py:["pt","pb"],Fr:["mx","my","ms","me","pt","mr","mb","ml"],mx:["mr","ml"],my:["pt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-Fr","rounded-pt","rounded-tl","rounded-Fr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-pt"],"rounded-e":["rounded-se","rounded-Fr"],"rounded-t":["rounded-tl","rounded-Fr"],"rounded-r":["rounded-Fr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-Fr":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-pt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-pt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Fr","scroll-pt","scroll-Bt","scroll-pb","scroll-pl"],"scroll-px":["scroll-Bt","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ir=qs(un);function f(...e){return Ir((0,Er.clsx)(e))}var Ar=require("@radix-Mr/react-slot"),Mr=require("class-variance-authority"),Br=be(require("react")),Fr=require("react/jsx-runtime"),Ya=(0,Mr.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),h=Br.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...n},r)=>(0,Fr.jsx)(e?Ar.Slot:"button",{className:f(Ya({className:t,size:a,variant:o})),ref:r,...n}));h.displayName="Button";var Wt=be(require("react"));var j=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));j.displayName="Card";var Ce=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("flex flex-col space-y-1.5 p-6",e),...t}));Ce.displayName="CardHeader";var Pe=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("font-semibold leading-none tracking-tight",e),...t}));Pe.displayName="CardTitle";var qt=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("text-sm text-muted-foreground",e),...t}));qt.displayName="CardDescription";var ie=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("p-6 pt-0",e),...t}));ie.displayName="CardContent";var Jt=Wt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,className:f("flex items-center p-6 pt-0",e),...t}));Jt.displayName="CardFooter";var Lr=be(require("react"));var z=Lr.forwardRef(({className:e,type:t,...a},o)=>(0,Fr.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));z.displayName="Input";var ue=be(require("@radix-Mr/react-select")),zt=be(require("react")),Ne=ue.Root;var Te=ue.Value,ye=zt.forwardRef(({children:e,className:t,...a},o)=>(0,Fr.jsxs)(ue.Trigger,{className:f("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Fr.jsx)(ue.Icon,{asChild:!0,children:(0,Fr.jsx)(pt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ye.displayName=ue.Trigger.displayName;var Or=zt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ue.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Fr.jsx)(pt.ChevronUp,{className:"h-4 w-4"})}));Or.displayName=ue.ScrollUpButton.displayName;var zr=zt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ue.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Fr.jsx)(pt.ChevronDown,{className:"h-4 w-4"})}));zr.displayName=ue.ScrollDownButton.displayName;var we=zt.forwardRef(({children:e,className:t,position:a="popper",...o},n)=>(0,Fr.jsx)(ue.Portal,{children:(0,Fr.jsxs)(ue.Content,{className:f("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:n,...o,children:[(0,Fr.jsx)(Or,{}),(0,Fr.jsx)(ue.Viewport,{className:f("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Fr.jsx)(zr,{})]})}));we.displayName=ue.Content.displayName;var gn=zt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ue.Label,{className:f("py-1.5 pl-8 Bt-2 text-sm font-semibold",e),ref:a,...t}));gn.displayName=ue.Label.displayName;var V=zt.forwardRef(({children:e,className:t,...a},o)=>(0,Fr.jsxs)(ue.Item,{className:f("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 Bt-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Fr.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Fr.jsx)(ue.ItemIndicator,{children:(0,Fr.jsx)(pt.Check,{className:"h-4 w-4"})})}),(0,Fr.jsx)(ue.ItemText,{children:e})]}));V.displayName=ue.Item.displayName;var fn=zt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ue.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));fn.displayName=ue.Separator.displayName;var Lo=require("framer-motion");var Zt=be(require("@radix-Mr/react-tabs"));function Hr({className:e,...t}){return(0,Fr.jsx)(Zt.Root,{"data-slot":"tabs",className:f("flex flex-col gap-2",e),...t})}function Vr({className:e,...t}){return(0,Fr.jsx)(Zt.List,{"data-slot":"tabs-list",className:f("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ur({className:e,...t}){return(0,Fr.jsx)(Zt.Trigger,{"data-slot":"tabs-trigger",className:f("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var Tt=be(require("react")),ge=be(require("@radix-Mr/react-dropdown-menu")),ca=require("@radix-Mr/react-icons");var Qa=ge.Root,eo=ge.Trigger;var vn=Tt.forwardRef(({className:e,inset:t,children:a,...o},n)=>(0,Fr.jsxs)(ge.SubTrigger,{ref:n,className:f("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Fr.jsx)(ca.ChevronRightIcon,{className:"ml-auto"})]}));vn.displayName=ge.SubTrigger.displayName;var bn=Tt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ge.SubContent,{ref:a,className:f("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));bn.displayName=ge.SubContent.displayName;var Pa=Tt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Fr.jsx)(ge.Portal,{children:(0,Fr.jsx)(ge.Content,{ref:o,sideOffset:t,className:f("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Pa.displayName=ge.Content.displayName;var Qt=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Fr.jsx)(ge.Item,{ref:o,className:f("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Qt.displayName=ge.Item.displayName;var hn=Tt.forwardRef(({className:e,children:t,checked:a,...o},n)=>(0,Fr.jsxs)(ge.CheckboxItem,{ref:n,className:f("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 Bt-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Fr.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Fr.jsx)(ge.ItemIndicator,{children:(0,Fr.jsx)(ca.CheckIcon,{className:"h-4 w-4"})})}),t]}));hn.displayName=ge.CheckboxItem.displayName;var xn=Tt.forwardRef(({className:e,children:t,...a},o)=>(0,Fr.jsxs)(ge.RadioItem,{ref:o,className:f("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 Bt-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Fr.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Fr.jsx)(ge.ItemIndicator,{children:(0,Fr.jsx)(ca.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));xn.displayName=ge.RadioItem.displayName;var yn=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Fr.jsx)(ge.Label,{ref:o,className:f("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));yn.displayName=ge.Label.displayName;var wn=Tt.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(ge.Separator,{ref:a,className:f("-mx-1 my-1 h-px bg-muted",e),...t}));wn.displayName=ge.Separator.displayName;var Nn=({className:e,...t})=>(0,Fr.jsx)("span",{className:f("ml-auto text-xs tracking-widest opacity-60",e),...t});Nn.displayName="DropdownMenuShortcut";function to({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:n="700px",gridCols:r=6}){let s=a.find(c=>c.value===e);return(0,Fr.jsxs)(Lo.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Fr.jsx)("div",{className:"hidden md:block",children:(0,Fr.jsx)(Hr,{value:e,onValueChange:t,children:(0,Fr.jsx)(Vr,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(c=>(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Fr.jsx)(Ur,{value:c.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:c.label})},c.value))})})}),(0,Fr.jsx)("div",{className:"md:hidden",children:(0,Fr.jsxs)(Qa,{children:[(0,Fr.jsx)(eo,{asChild:!0,children:(0,Fr.jsxs)(h,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,Fr.jsx)($r.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Fr.jsx)(Pa,{align:"center",className:"w-[180px]",children:a.map(c=>(0,Fr.jsx)(Qt,{onClick:()=>t?.(c.value),className:`cursor-pointer ${e===c.value?"bg-accent":""}`,children:c.label},c.value))})]})})]})}var ao=be(require("react")),Rt=be(require("@radix-Mr/react-avatar"));var It=ao.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Rt.Root,{ref:a,className:f("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));It.displayName=Rt.Root.displayName;var Ta=ao.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Rt.Image,{ref:a,className:f("aspect-square h-full w-full",e),...t}));Ta.displayName=Rt.Image.displayName;var Et=ao.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Rt.Fallback,{ref:a,className:f("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Et.displayName=Rt.Fallback.displayName;var Cn=(0,Mr.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Q({className:e,variant:t,...a}){return(0,Fr.jsx)("div",{className:f(Cn({variant:t}),e),...a})}function ro({colleague:e,onEdit:t,onDelete:a,onViewDetails:o,showActions:n=!0,compact:r=!1,className:s}){let[c,l]=(0,Bt.useState)(!1),p=u=>{switch(u){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},d=u=>{switch(u){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=u=>{if(!u)return"Never";let C=Math.floor((new Date().getTime()-u.getTime())/(1e3*60));return C<1?"Just now":C<60?`${C}Fr ago`:C<1440?`${Math.floor(C/60)}h ago`:`${Math.floor(C/1440)}d ago`};return(0,Fr.jsxs)(j,{className:f("hover:shadow-md transition-shadow",r&&"p-2",s),children:[(0,Fr.jsx)(Ce,{className:f("pb-3",r&&"pb-2"),children:(0,Fr.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Fr.jsx)("div",{className:"relative",children:(0,Fr.jsxs)(It,{className:f("h-12 w-12",r&&"h-8 w-8"),children:[(0,Fr.jsx)(Ta,{src:"/placeholder.svg",alt:e.name}),(0,Fr.jsx)(Et,{children:e.name.split(" ").map(u=>u[0]).join("")})]})}),(0,Fr.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("h3",{className:f("font-semibold text-sm truncate",r&&"text-xs"),children:e.name}),e.type==="digital"?(0,Fr.jsx)(pt.Bot,{className:f("h-4 w-4 text-blue-500",r&&"h-3 w-3")}):(0,Fr.jsx)(pt.User,{className:f("h-4 w-4 text-green-500",r&&"h-3 w-3")})]}),(0,Fr.jsx)("p",{className:f("text-sm text-muted-foreground truncate",r&&"text-xs"),children:e.type==="human"?e.role:e.description}),!r&&(0,Fr.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[e.type==="human"&&(0,Fr.jsx)(Q,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Fr.jsxs)(Q,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:d(e.status)})]})]})]}),n&&(0,Fr.jsxs)(Qa,{children:[(0,Fr.jsx)(eo,{asChild:!0,children:(0,Fr.jsx)(h,{variant:"ghost",size:"icon",className:f("h-8 w-8",r&&"h-6 w-6"),children:(0,Fr.jsx)(pt.MoreHorizontal,{className:f("h-4 w-4",r&&"h-3 w-3")})})}),(0,Fr.jsxs)(Pa,{align:"end",children:[(0,Fr.jsxs)(Qt,{onClick:()=>o?.(e),children:[(0,Fr.jsx)(pt.Settings,{className:"h-4 w-4 mr-2"}),"View Details"]}),(0,Fr.jsxs)(Qt,{onClick:()=>t?.(e),children:[(0,Fr.jsx)(pt.Edit,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,Fr.jsxs)(Qt,{onClick:()=>a?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Fr.jsx)(pt.Trash2,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),!r&&(0,Fr.jsxs)(ie,{className:"pt-0",children:[(0,Fr.jsxs)("div",{className:"space-y-2 text-sm",children:[e.type==="human"&&(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Fr.jsx)(pt.Mail,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Fr.jsxs)(Fr.Fragment,{children:[e.phone&&(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Fr.jsx)(pt.Phone,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{children:e.phone})]}),e.location&&(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Fr.jsx)(pt.MapPin,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Fr.jsx)(pt.Settings,{className:"h-3 w-3"}),(0,Fr.jsxs)("span",{children:["v",e.version]})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Fr.jsx)(pt.Clock,{className:"h-3 w-3"}),(0,Fr.jsxs)("span",{children:["Last active: ",g(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Fr.jsx)("div",{className:"pt-3",children:(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,c?e.skills.length:3).map(u=>(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:u},u)),e.skills.length>3&&(0,Fr.jsx)(h,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>l(!c),children:c?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Fr.jsx)("div",{className:"pt-3",children:(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,c?e.capabilities.length:2).map(u=>(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:u},u)),e.capabilities.length>2&&(0,Fr.jsx)(h,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>l(!c),children:c?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Wr=be(require("react")),jo=be(require("@radix-Mr/react-label"));var Sn=(0,Mr.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),P=Wr.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(jo.Root,{ref:a,className:f(Sn(),e),...t}));P.displayName=jo.Root.displayName;var Xr=be(require("react")),Re=Xr.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Re.displayName="Textarea";var Oo=be(require("react")),vt=be(require("@radix-Mr/react-scroll-area"));var Ra=Oo.forwardRef(({className:e,children:t,...a},o)=>(0,Fr.jsxs)(vt.Root,{ref:o,className:f("relative overflow-hidden",e),...a,children:[(0,Fr.jsx)(vt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Fr.jsx)(Zr,{}),(0,Fr.jsx)(vt.Corner,{})]}));Ra.displayName=vt.Root.displayName;var Zr=Oo.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Fr.jsx)(vt.ScrollAreaScrollbar,{ref:o,orientation:t,className:f("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Fr.jsx)(vt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Zr.displayName=vt.ScrollAreaScrollbar.displayName;function zo({selectedDocuments:e,onDocumentsChange:t,availableDocuments:a,label:o,placeholder:n="Search knowledge documents...",maxSelections:r,disabled:s=!1}){let[c,l]=(0,Bt.useState)(""),[p,d]=(0,Bt.useState)([]),[g,u]=(0,Bt.useState)(!1);(0,Bt.useEffect)(()=>{if(!c.trim()){d([]),u(!1);return}let b=a.filter(R=>{if(e.map(K=>K.id).includes(R.id))return!1;let B=c.toLowerCase();return R.title.toLowerCase().includes(B)||R.description?.toLowerCase().includes(B)||R.tags?.some(K=>K.toLowerCase().includes(B))||Object.values(R.metadata||{}).some(K=>String(K).toLowerCase().includes(B))});d(b),u(!0)},[c,e,a]);let v=b=>{r&&e.length>=r||(t([...e,b]),l(""),u(!1))},C=b=>{t(e.filter(R=>R.id!==b))},O=!r||e.length<r;return(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:o}),(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)(pt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fr.jsx)(z,{value:c,onChange:b=>l(b.target.value),placeholder:O?n:`Maximum ${r} documents selected`,className:"pl-9",disabled:s||!O,onFocus:()=>c&&u(!0)})]}),g&&p.length>0&&(0,Fr.jsx)(j,{className:"absolute top-full left-0 right-0 z-10 pt-1 max-h-60",children:(0,Fr.jsx)(Ra,{className:"h-full",children:(0,Fr.jsx)(ie,{className:"p-2",children:p.map(b=>(0,Fr.jsx)(h,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>v(b),disabled:s,children:(0,Fr.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,Fr.jsx)(pt.FileText,{className:"h-4 w-4 pt-0.5 text-muted-foreground flex-shrink-0"}),(0,Fr.jsxs)("div",{className:"text-left flex-1 min-w-0",children:[(0,Fr.jsx)("div",{className:"font-medium text-sm truncate",children:b.title}),b.description&&(0,Fr.jsx)("div",{className:"text-xs text-muted-foreground pt-1 line-clamp-2",children:b.description}),b.tags&&b.tags.length>0&&(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-1 pt-2",children:[b.tags.slice(0,3).map(R=>(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:R},R)),b.tags.length>3&&(0,Fr.jsxs)(Q,{variant:"outline",className:"text-xs",children:["+",b.tags.length-3," more"]})]})]})]})},b.id))})})}),g&&c&&p.length===0&&(0,Fr.jsx)(j,{className:"absolute top-full left-0 right-0 z-10 pt-1",children:(0,Fr.jsxs)(ie,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',c,'"']})})]}),e.length>0&&(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,r&&`/${r}`,")"]}),(0,Fr.jsx)("div",{className:"space-y-2",children:e.map(b=>(0,Fr.jsx)(j,{className:"p-3",children:(0,Fr.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Fr.jsx)(pt.FileText,{className:"h-4 w-4 pt-0.5 text-muted-foreground flex-shrink-0"}),(0,Fr.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Fr.jsx)("div",{className:"font-medium text-sm",children:b.title}),b.description&&(0,Fr.jsx)("div",{className:"text-xs text-muted-foreground pt-1",children:b.description}),b.tags&&b.tags.length>0&&(0,Fr.jsx)("div",{className:"flex flex-wrap gap-1 pt-2",children:b.tags.map(R=>(0,Fr.jsxs)(Q,{variant:"outline",className:"text-xs",children:[(0,Fr.jsx)(pt.Tag,{className:"h-3 w-3 mr-1"}),R]},R))})]}),(0,Fr.jsx)(h,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>C(b.id),disabled:s,children:(0,Fr.jsx)(pt.X,{className:"h-3 w-3"})})]})},b.id))})]}),g&&(0,Fr.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>u(!1)})]})}function Ho({colleague:e,onSave:t,onCancel:a,isLoading:o=!1,title:n,submitLabel:r,cancelLabel:s="Cancel",readOnly:c=!1,availableKnowledgeDocuments:l=[]}){let[p,d]=(0,Bt.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[g,u]=(0,Bt.useState)(""),[v,C]=(0,Bt.useState)(""),[O,b]=(0,Bt.useState)(!c);(0,Bt.useEffect)(()=>{e&&d(e)},[e]);let R=x=>{x.preventDefault();let T=p.version?parseInt(p.version):0,_=e?(T+1).toString():"1",ve={id:p.id||Date.now().toString(),name:p.name,type:"digital",status:"active",joinedDate:p.joinedDate||new Date,lastActive:p.lastActive||new Date,description:p.description,jobDescription:p.jobDescription||"",workInstructions:p.workInstructions||"",capabilities:p.capabilities||[],knowledge:p.knowledge||[],coreKnowledge:p.coreKnowledge||[],version:_,lastUpdated:p.lastUpdated||new Date,isActive:!0};t(ve)},N=(x,T,_)=>{if(!T.trim())return;let ve=p[x]||[];d({...p,[x]:[...ve,T.trim()]}),_("")},B=(x,T)=>{let _=p[x]||[];d({...p,[x]:_.filter((ve,A)=>A!==T)})},K=x=>{x.preventDefault(),b(!O)},se=(x,T,_,ve,A)=>{let S=p[x]||[];return(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:T}),O&&(0,Fr.jsxs)("div",{className:"flex gap-2",children:[(0,Fr.jsx)(z,{value:_,onChange:X=>ve(X.target.value),placeholder:A,onKeyPress:X=>{X.key==="Enter"&&(X.preventDefault(),N(x,_,ve))},disabled:o}),(0,Fr.jsx)(h,{type:"button",variant:"outline",size:"icon",onClick:()=>N(x,_,ve),disabled:o,children:(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"})})]}),(0,Fr.jsx)("div",{className:"flex flex-wrap gap-2",children:S.map((X,De)=>(0,Fr.jsxs)(Q,{className:"gap-1",children:[X,O&&(0,Fr.jsx)(h,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>B(x,De),disabled:o,children:(0,Fr.jsx)(pt.X,{className:"h-3 w-3"})})]},`${x}-${De}-${X}`))})]})},Z=n||(O?e?"Edit Colleague":"Add New Colleague":"View Colleague"),me=r||(e?"Update Colleague":"Add Colleague");return(0,Fr.jsxs)(j,{className:"Fr-8 w-full max-w-4xl mx-auto",children:[(0,Fr.jsx)(Ce,{children:(0,Fr.jsxs)(Pe,{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.Bot,{className:"h-5 w-5"}),Z]})}),(0,Fr.jsx)(ie,{children:(0,Fr.jsxs)("form",{onSubmit:R,className:"space-y-6",children:[(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"name",children:"Name *"}),(0,Fr.jsx)(z,{id:"name",value:p.name||"",onChange:x=>d({...p,name:x.target.value}),required:!0,disabled:o||!O})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"description",children:"Description"}),(0,Fr.jsx)(Re,{id:"description",value:p.description||"",onChange:x=>d({...p,description:x.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:o||!O})]})]}),(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Fr.jsx)(Re,{id:"jobDescription",value:p.jobDescription||"",onChange:x=>d({...p,jobDescription:x.target.value}),rows:4,required:p.type==="digital",disabled:o||!O})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Fr.jsx)(Re,{id:"workInstructions",value:p.workInstructions||"",onChange:x=>d({...p,workInstructions:x.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:o||!O})]}),se("capabilities","Capabilities",v,C,"Add capability"),(0,Fr.jsx)(zo,{selectedDocuments:p.knowledge||[],onDocumentsChange:x=>d({...p,knowledge:x}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:o||!O,availableDocuments:l}),(0,Fr.jsx)(zo,{selectedDocuments:p.coreKnowledge||[],onDocumentsChange:x=>d({...p,coreKnowledge:x}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:o||!O,availableDocuments:l})]}),(0,Fr.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:a,disabled:o,children:O?s:"Close"}),O?(0,Fr.jsx)(h,{type:"submit",disabled:o,children:o?"Saving...":me}):(0,Fr.jsxs)(h,{type:"button",onClick:K,disabled:o,className:"gap-2",children:[(0,Fr.jsx)(pt.Edit,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}function Qr({users:e,onUserSelect:t,onCancel:a,selectedUserId:o}){let[n,r]=(0,Bt.useState)(""),s=(0,Bt.useMemo)(()=>e.filter(l=>l.name.toLowerCase().includes(n.toLowerCase())||l.email.toLowerCase().includes(n.toLowerCase())||l.role.toLowerCase().includes(n.toLowerCase())||(l.skills||[]).some(d=>d.toLowerCase().includes(n.toLowerCase()))),[e,n]),c=l=>{t(l)};return(0,Fr.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Fr.jsxs)(h,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Fr.jsx)(pt.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Fr.jsx)(j,{className:"container",children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)(pt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fr.jsx)(z,{placeholder:"Search users by name, email, role, or skills...",value:n,onChange:l=>r(l.target.value),className:"pl-9"})]})})})})}),(0,Fr.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:s.map(l=>(0,Fr.jsx)(Lo.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Fr.jsxs)(j,{className:`cursor-pointer transition-all hover:shadow-lg ${o===l.id?"ring-2 ring-primary":""}`,onClick:()=>c(l),children:[(0,Fr.jsx)(Ce,{className:"pb-3",children:(0,Fr.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Fr.jsxs)(It,{children:[(0,Fr.jsx)(Ta,{src:l.avatar,alt:l.name}),(0,Fr.jsx)(Et,{children:(0,Fr.jsx)(pt.User,{className:"h-4 w-4"})})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(Pe,{className:"text-lg",children:l.name}),(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:l.role})]})]}),o===l.id&&(0,Fr.jsx)(pt.Check,{className:"h-5 w-5 text-primary"})]})}),(0,Fr.jsx)(ie,{className:"pt-0",children:(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Fr.jsx)("p",{className:"text-sm font-medium",children:l.email})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Fr.jsx)(Q,{variant:"secondary",children:l.department})]}),l.location&&(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Fr.jsx)("p",{className:"text-sm",children:l.location})]}),l.skills&&l.skills.length>0&&(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-1",children:[l.skills.slice(0,3).map(p=>(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:p},p)),l.skills.length>3&&(0,Fr.jsxs)(Q,{variant:"outline",className:"text-xs",children:["+",l.skills.length-3]})]})]})]})})]})},l.id))}),s.length===0&&(0,Fr.jsx)(j,{className:"container pt-4",children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsxs)("div",{className:"text-center py-8",children:[(0,Fr.jsx)(pt.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Fr.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function ei({digitalColleagues:e,onColleagueClone:t,onCancel:a,selectedColleagueId:o}){let[n,r]=(0,Bt.useState)(""),[s,c]=(0,Bt.useState)("all"),l=(0,Bt.useMemo)(()=>e.filter(g=>{let u=g.name.toLowerCase().includes(n.toLowerCase())||g.jobDescription.toLowerCase().includes(n.toLowerCase())||g.capabilities.some(C=>C.toLowerCase().includes(n.toLowerCase()))||g.workInstructions.toLowerCase().includes(n.toLowerCase()),v=s==="all"||g.status===s;return u&&v}),[e,n,s]),p=g=>{let u={...g,id:`${g.id}-clone-${Date.now()}`,name:`${g.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(u)},d=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Fr.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Fr.jsxs)(h,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Fr.jsx)(pt.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Fr.jsx)(j,{children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)(pt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fr.jsx)(z,{placeholder:"Search by name, job description, or capabilities...",value:n,onChange:g=>r(g.target.value),className:"pl-9"})]})}),(0,Fr.jsxs)("select",{value:s,onChange:g=>c(g.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Fr.jsx)("option",{value:"all",children:"All Status"}),(0,Fr.jsx)("option",{value:"active",children:"Active"}),(0,Fr.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Fr.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:l.map(g=>(0,Fr.jsx)(Lo.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Fr.jsxs)(j,{className:`cursor-pointer transition-all hover:shadow-lg ${o===g.id?"ring-2 ring-primary":""}`,onClick:()=>p(g),children:[(0,Fr.jsx)(Ce,{className:"pb-3",children:(0,Fr.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Fr.jsx)(It,{children:(0,Fr.jsx)(Et,{className:"bg-blue-100",children:(0,Fr.jsx)(pt.Bot,{className:"h-4 w-4 text-blue-600"})})}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsxs)(Pe,{className:"text-lg flex items-center gap-2",children:[g.name,(0,Fr.jsx)(Q,{variant:g.status==="active"?"default":"secondary",className:"text-xs",children:g.status})]}),(0,Fr.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",g.version]})]})]}),(0,Fr.jsxs)(h,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:u=>{u.stopPropagation(),p(g)},children:[(0,Fr.jsx)(pt.Copy,{className:"h-3 w-3"}),"Clone"]})]})}),(0,Fr.jsx)(ie,{className:"pt-0",children:(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Fr.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-1",children:[g.capabilities.slice(0,3).map(u=>(0,Fr.jsx)(Q,{variant:"outline",className:"text-xs",children:u},u)),g.capabilities.length>3&&(0,Fr.jsxs)(Q,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-3 w-3"}),(0,Fr.jsxs)("span",{children:["Updated ",d(g.lastUpdated)]})]}),g.knowledge&&(0,Fr.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Fr.jsx)(pt.Users,{className:"h-3 w-3"}),(0,Fr.jsxs)("span",{children:[g.knowledge.length," docs"]})]})]}),g.workInstructions&&(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Fr.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),l.length===0&&(0,Fr.jsx)(j,{children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsxs)("div",{className:"text-center py-8",children:[(0,Fr.jsx)(pt.Bot,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Fr.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function ti({onSelectHuman:e,onSelectDigital:t,onCancel:a}){return(0,Fr.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Fr.jsxs)(h,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Fr.jsx)(pt.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Fr.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Fr.jsxs)(j,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Fr.jsxs)(Ce,{className:"text-center pb-4",children:[(0,Fr.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Fr.jsx)(pt.User,{className:"h-8 w-8 text-blue-600"})}),(0,Fr.jsx)(Pe,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Fr.jsxs)(ie,{className:"text-center",children:[(0,Fr.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Fr.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Users,{className:"h-4 w-4 text-blue-600"}),(0,Fr.jsx)("span",{children:"Browse existing users"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.User,{className:"h-4 w-4 text-blue-600"}),(0,Fr.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Fr.jsx)(h,{className:"pt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Fr.jsxs)(j,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Fr.jsxs)(Ce,{className:"text-center pb-4",children:[(0,Fr.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Fr.jsx)(pt.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,Fr.jsx)(Pe,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Fr.jsxs)(ie,{className:"text-center",children:[(0,Fr.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Fr.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Bot,{className:"h-4 w-4 text-purple-600"}),(0,Fr.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Users,{className:"h-4 w-4 text-purple-600"}),(0,Fr.jsx)("span",{children:"Create from templates"})]})]}),(0,Fr.jsx)(h,{className:"pt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function ai({onCloneExisting:e,onCreateNew:t,onCancel:a}){return(0,Fr.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Fr.jsxs)(h,{variant:"ghost",onClick:a,className:"gap-2",children:[(0,Fr.jsx)(pt.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Fr.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Fr.jsxs)(j,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Fr.jsxs)(Ce,{className:"text-center pb-4",children:[(0,Fr.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Fr.jsx)(pt.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,Fr.jsx)(Pe,{className:"text-xl",children:"Clone Existing"})]}),(0,Fr.jsxs)(ie,{className:"text-center",children:[(0,Fr.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize Fr for your needs."}),(0,Fr.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Bot,{className:"h-4 w-4 text-blue-600"}),(0,Fr.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Copy,{className:"h-4 w-4 text-blue-600"}),(0,Fr.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Fr.jsx)(h,{className:"pt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Fr.jsxs)(j,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Fr.jsxs)(Ce,{className:"text-center pb-4",children:[(0,Fr.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Fr.jsx)(pt.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,Fr.jsx)(Pe,{className:"text-xl",children:"Create New"})]}),(0,Fr.jsxs)(ie,{className:"text-center",children:[(0,Fr.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Fr.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4 text-green-600"}),(0,Fr.jsx)("span",{children:"Custom job description"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Fr.jsx)(pt.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,Fr.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Fr.jsx)(h,{className:"pt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function oi(e,t){let[a,o]=(0,Bt.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),n=r=>{try{o(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,Bt.useEffect)(()=>{n(a)},[]),[a,n]}var no=require("react-icons/fa");function Ze({title:e,description:t,badge:a,primaryAction:o,secondaryAction:n,gradient:r,children:s,className:c}){let[l,p]=oi(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),d=!n&&!t||l;return(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${r} p-8 text-white ${c||""}`,children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,Fr.jsx)(Q,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,Fr.jsx)("h2",{className:"text-3xl font-bold Fr-0",children:e})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-3",children:[d&&o&&(0,Fr.jsx)(h,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,Fr.jsx)("button",{"aria-label":l?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!l),style:{lineHeight:0},children:l?(0,Fr.jsx)(no.FaChevronDown,{size:22}):(0,Fr.jsx)(no.FaChevronUp,{size:22})})]})]}),!d&&(0,Fr.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Fr.jsx)(h,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,Fr.jsx)(h,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),s&&(0,Fr.jsx)("div",{className:"hidden lg:block",children:s})]})]})}function Vo({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:a,onColleagueDelete:o,compactView:n=!1,departments:r=["Design","Engineering","Marketing","Product","Sales","Operations"],className:s,availableUsers:c=[],existingDigitalColleagues:l=[]}){let[p,d]=(0,Bt.useState)(e||[]),[g,u]=(0,Bt.useState)(""),[v,C]=(0,Bt.useState)("all"),[O,b]=(0,Bt.useState)("all"),[R,N]=(0,Bt.useState)("all"),[B,K]=(0,Bt.useState)(null),[se,Z]=(0,Bt.useState)(null),[me,x]=(0,Bt.useState)("main"),T=p.filter(D=>{let Oe=D.name.toLowerCase().includes(g.toLowerCase())||D.type==="human"&&(D.email.toLowerCase().includes(g.toLowerCase())||D.role.toLowerCase().includes(g.toLowerCase()))||D.type==="digital"&&D.jobDescription.toLowerCase().includes(g.toLowerCase()),Be=v==="all"||D.type==="human"&&D.department===v,_t=O==="all"||D.status===O;return Oe&&Be&&_t}),_=T.filter(D=>D.type==="human"),ve=T.filter(D=>D.type==="digital"),A=()=>{x("typeSelection")},S=D=>{D.type==="digital"&&(K(D),x("form"))},X=D=>{D.type==="digital"&&(Z(D),x("view"))},De=D=>{let Oe={id:`human-${Date.now()}`,type:"human",name:D.name,email:D.email,role:D.role,department:D.department,phone:D.phone,location:D.location,timezone:D.timezone,skills:D.skills,bio:D.bio,status:"active",joinedDate:new Date,lastActive:new Date};d(Be=>[...Be,Oe]),t?.(Oe),x("main")},dt=D=>{d(Oe=>[...Oe,D]),t?.(D),x("main")},ct=()=>{K(null),x("form")},je=D=>{B?(d(Oe=>Oe.map(Be=>Be.id===D.id?D:Be)),a?.(D)):(d(Oe=>[...Oe,D]),t?.(D)),x("main"),K(null)},He=()=>{x("main"),K(null),Z(null)},F=()=>{x("main"),Z(null)},Y=()=>{se&&(K(se),Z(null),x("form"))},he=D=>{d(Oe=>Oe.filter(Be=>Be.id!==D)),o?.(D)},Ye=()=>{u(""),C("all"),b("all")},ft=()=>{let D=[];return l.forEach(Be=>{D.push(...Be.knowledge,...Be.coreKnowledge)}),p.forEach(Be=>{Be.type==="digital"&&D.push(...Be.knowledge,...Be.coreKnowledge)}),D.filter((Be,_t,$a)=>_t===$a.findIndex(wa=>wa.id===Be.id))};return me==="typeSelection"?(0,Fr.jsx)(ti,{onSelectHuman:()=>x("userSelection"),onSelectDigital:()=>x("digitalOptions"),onCancel:()=>x("main")}):me==="userSelection"?(0,Fr.jsx)(Qr,{users:c,onUserSelect:De,onCancel:()=>x("typeSelection")}):me==="digitalOptions"?(0,Fr.jsx)(ai,{onCloneExisting:()=>x("digitalClone"),onCreateNew:ct,onCancel:()=>x("typeSelection")}):me==="digitalClone"?(0,Fr.jsx)(ei,{digitalColleagues:l,onColleagueClone:dt,onCancel:()=>x("digitalOptions")}):me==="form"?(0,Fr.jsx)(Ho,{colleague:B||void 0,onSave:je,onCancel:He,availableKnowledgeDocuments:ft()}):me==="view"?(0,Fr.jsx)(Ho,{colleague:se||void 0,onSave:je,onCancel:F,readOnly:!0,availableKnowledgeDocuments:ft()}):(0,Fr.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsx)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,Fr.jsxs)("div",{className:`space-y-6 ${s||""}`,children:[(0,Fr.jsx)(Ze,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:A}}),(0,Fr.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Fr.jsxs)(j,{children:[(0,Fr.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,Fr.jsx)(Pe,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Fr.jsx)(pt.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Fr.jsxs)(ie,{children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold",children:p.length}),(0,Fr.jsxs)("p",{className:"text-xs text-muted-foreground",children:[p.filter(D=>D.status==="active").length," active"]})]})]}),(0,Fr.jsxs)(j,{children:[(0,Fr.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,Fr.jsx)(Pe,{className:"text-sm font-medium",children:"Human Members"}),(0,Fr.jsx)(pt.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Fr.jsxs)(ie,{children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold",children:p.filter(D=>D.type==="human").length}),(0,Fr.jsxs)("p",{className:"text-xs text-muted-foreground",children:[p.filter(D=>D.type==="human"&&D.status==="active").length," active"]})]})]}),(0,Fr.jsxs)(j,{children:[(0,Fr.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,Fr.jsx)(Pe,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Fr.jsx)(pt.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Fr.jsxs)(ie,{children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold",children:p.filter(D=>D.type==="digital").length}),(0,Fr.jsxs)("p",{className:"text-xs text-muted-foreground",children:[p.filter(D=>D.type==="digital"&&D.status==="active").length," active"]})]})]})]}),(0,Fr.jsx)(j,{children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)(pt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Fr.jsx)(z,{placeholder:"Search colleagues...",value:g,onChange:D=>u(D.target.value),className:"pl-9"})]})}),(0,Fr.jsxs)(Ne,{value:v,onValueChange:C,children:[(0,Fr.jsx)(ye,{className:"w-full md:w-[180px]",children:(0,Fr.jsx)(Te,{placeholder:"Department"})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"all",children:"All Departments"}),r.map(D=>(0,Fr.jsx)(V,{value:D,children:D},D))]})]}),(0,Fr.jsxs)(Ne,{value:O,onValueChange:b,children:[(0,Fr.jsx)(ye,{className:"w-full md:w-[140px]",children:(0,Fr.jsx)(Te,{placeholder:"Status"})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"all",children:"All Status"}),(0,Fr.jsx)(V,{value:"active",children:"Active"}),(0,Fr.jsx)(V,{value:"inactive",children:"Inactive"})]})]}),(g||v!=="all"||O!=="all")&&(0,Fr.jsxs)(h,{variant:"outline",onClick:Ye,className:"gap-2",children:[(0,Fr.jsx)(pt.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsx)(to,{activeTab:R,onTabChange:N,tabOptions:[{value:"all",label:`All (${T.length})`},{value:"human",label:`Human (${_.length})`},{value:"digital",label:`Digital (${ve.length})`}],maxWidth:"400px",gridCols:3}),R==="all"&&(0,Fr.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:T.map(D=>(0,Fr.jsx)(ro,{colleague:D,onEdit:S,onDelete:he,onViewDetails:X,compact:n},D.id))}),R==="human"&&(0,Fr.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(D=>(0,Fr.jsx)(ro,{colleague:D,onEdit:S,onDelete:he,onViewDetails:X,compact:n},D.id))}),R==="digital"&&(0,Fr.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:ve.map(D=>(0,Fr.jsx)(ro,{colleague:D,onEdit:S,onDelete:he,onViewDetails:X,compact:n},D.id))})]}),T.length===0&&(0,Fr.jsx)(j,{children:(0,Fr.jsx)(ie,{className:"pt-6",children:(0,Fr.jsxs)("div",{className:"text-center py-8",children:[(0,Fr.jsx)(pt.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Fr.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Fr.jsx)("p",{className:"text-muted-foreground mb-4",children:g||v!=="all"||O!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Fr.jsxs)(h,{onClick:A,className:"gap-2",children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}function co({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:n=!0,className:r}){return(0,Fr.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${r||""}`,children:[n&&(0,Fr.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Fr.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Fr.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Fr.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Fr.jsx)("div",{className:"divide-y",children:e.map(s=>(0,Fr.jsxs)(Lo.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(s),children:[(0,Fr.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,Fr.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:s.icon}),(0,Fr.jsx)("div",{children:(0,Fr.jsx)("p",{className:"font-medium",children:s.name})})]}),(0,Fr.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:s.size}),(0,Fr.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,Fr.jsx)("span",{className:"text-sm md:text-base",children:s.modified}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:c=>{c.stopPropagation(),a?.(s)},children:(0,Fr.jsx)(pt.Edit,{className:"h-4 w-4"})}),(0,Fr.jsx)(h,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:c=>{c.stopPropagation(),o?.(s)},children:(0,Fr.jsx)(pt.Trash2,{className:"h-4 w-4"})}),(0,Fr.jsx)(h,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,Fr.jsx)(pt.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},s.name))})]})}function Ba({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:n,compactView:r=!1,className:s}){let[c,l]=(0,Bt.useState)(e),[p,d]=(0,Bt.useState)(""),[g,u]=(0,Bt.useState)("all"),[v,C]=(0,Bt.useState)("all"),O=Array.from(new Set(c.map(x=>x.app))),b=c.filter(x=>{let T=x.name.toLowerCase().includes(p.toLowerCase()),_=g==="all"||x.app===g;return T&&_}),R=b.slice(0,10),N=b.filter(x=>x.shared),B=()=>{console.log("Add file clicked")},K=x=>{console.log("Edit file:",x.name),a?.(x)},se=x=>{l(T=>T.filter(_=>_.name!==x.name)),o?.(x.name)},Z=x=>{console.log("File clicked:",x.name),n?.(x)},me=()=>{d(""),u("all")};return(0,$.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,$.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,$.jsx)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,$.jsxs)("div",{className:`space-y-6 ${s||""}`,children:[(0,$.jsx)(Ze,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:B},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,$.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,$.jsxs)(j,{children:[(0,$.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,$.jsx)(Pe,{className:"text-sm font-medium",children:"Total Files"}),(0,$.jsx)(pt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,$.jsxs)(ie,{children:[(0,$.jsx)("div",{className:"text-2xl font-bold",children:c.length}),(0,$.jsxs)("p",{className:"text-xs text-muted-foreground",children:[c.filter(x=>x.shared).length," shared"]})]})]}),(0,$.jsxs)(j,{children:[(0,$.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,$.jsx)(Pe,{className:"text-sm font-medium",children:"Storage Used"}),(0,$.jsx)(pt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,$.jsxs)(ie,{children:[(0,$.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,$.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,$.jsxs)(j,{children:[(0,$.jsxs)(Ce,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,$.jsx)(Pe,{className:"text-sm font-medium",children:"Recent Activity"}),(0,$.jsx)(pt.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,$.jsxs)(ie,{children:[(0,$.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,$.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,$.jsx)(j,{children:(0,$.jsx)(ie,{className:"pt-6",children:(0,$.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,$.jsx)("div",{className:"flex-1",children:(0,$.jsxs)("div",{className:"relative",children:[(0,$.jsx)(pt.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,$.jsx)(z,{placeholder:"Search files...",value:p,onChange:x=>d(x.target.value),className:"pl-9"})]})}),(0,$.jsxs)(Ne,{value:g,onValueChange:u,children:[(0,$.jsx)(ye,{className:"w-full md:w-[180px]",children:(0,$.jsx)(Te,{placeholder:"Filter by app"})}),(0,$.jsxs)(we,{children:[(0,$.jsx)(V,{value:"all",children:"All Apps"}),O.map(x=>(0,$.jsx)(V,{value:x,children:x},x))]})]}),(p||g!=="all")&&(0,$.jsxs)(h,{variant:"outline",onClick:me,className:"gap-2",children:[(0,$.jsx)(pt.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,$.jsxs)("div",{className:"space-y-4",children:[(0,$.jsx)(to,{activeTab:v,onTabChange:C,tabOptions:[{value:"all",label:`All Files (${b.length})`},{value:"recent",label:`Recent (${R.length})`},{value:"shared",label:`Shared (${N.length})`}],maxWidth:"500px",gridCols:3}),v==="all"&&(0,$.jsx)(co,{files:b,onFileClick:Z,onFileEdit:K,onFileDelete:se,showHeader:!r}),v==="recent"&&(0,$.jsx)(co,{files:R,onFileClick:Z,onFileEdit:K,onFileDelete:se,showHeader:!r}),v==="shared"&&(0,$.jsx)(co,{files:N,onFileClick:Z,onFileEdit:K,onFileDelete:se,showHeader:!r})]}),b.length===0&&(0,$.jsx)(j,{children:(0,$.jsx)(ie,{className:"pt-6",children:(0,$.jsxs)("div",{className:"text-center py-8",children:[(0,$.jsx)(pt.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,$.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,$.jsx)("p",{className:"text-muted-foreground mb-4",children:p||g!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,$.jsxs)(h,{onClick:B,className:"gap-2",children:[(0,$.jsx)(pt.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}function si({label:e,documents:t,children:a,level:o,onDocumentClick:n,selectedDocumentId:r,showDocumentCount:s=!0}){let[c,l]=(0,Bt.useState)(o===0),p=a&&Object.keys(a).length>0,d=t.length+(a?Object.values(a).reduce((v,C)=>v+C.documents.length,0):0),g=v=>{switch(v){case"markdown":case"mdx":return(0,Fr.jsx)(pt.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Fr.jsx)(pt.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Fr.jsx)(pt.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},u=v=>{let C=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return C[v%C.length]};return(0,Fr.jsxs)("div",{className:"space-y-1",children:[(p||t.length>0)&&(0,Fr.jsxs)(Lo.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${c?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>l(!c),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Fr.jsx)("div",{className:`w-1 h-6 rounded-full ${u(o)}`}),(0,Fr.jsx)(Lo.motion.div,{animate:{rotate:c?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Fr.jsx)(pt.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Fr.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Fr.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Fr.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&d>0&&(0,Fr.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Fr.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:d})})]})]}),(0,Fr.jsx)(Lo.motion.div,{initial:!1,animate:{height:c?"auto":0,opacity:c?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Fr.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((v,C)=>(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:C*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${r===v.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>n?.(v),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Fr.jsx)("div",{className:"flex-shrink-0",children:g(v.format)}),(0,Fr.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Fr.jsx)("p",{className:`text-sm truncate transition-colors ${r===v.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:v.title}),v.description&&(0,Fr.jsx)("p",{className:"text-xs text-muted-foreground truncate pt-0.5",children:v.description})]}),v.tags&&v.tags.length>0&&(0,Fr.jsx)("div",{className:"flex-shrink-0",children:(0,Fr.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:v.tags[0]})})]},v.id)),a&&Object.entries(a).map(([v,C])=>(0,Fr.jsx)(si,{label:v,documents:C.documents,children:C.children,level:o+1,onDocumentClick:n,selectedDocumentId:r,showDocumentCount:s},v))]})})]})}function Dn({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,Fr.jsx)(pt.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Fr.jsx)(pt.File,{className:"h-6 w-6 text-success"});default:return(0,Fr.jsx)(pt.File,{className:"h-6 w-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Fr.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,Fr.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Fr.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,Fr.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Fr.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Fr.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Fr.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,Fr.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,Fr.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Fr.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Fr.jsxs)("div",{className:"mb-6",children:[(0,Fr.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Fr.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Fr.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([o,n])=>(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Z])/g," $1").trim(),":"]}),(0,Fr.jsx)("span",{className:"text-foreground truncate",children:String(n)})]},o))})})]}),(0,Fr.jsx)("div",{className:"space-y-4",children:e.content?(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Fr.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Fr.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Fr.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Fr.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Fr.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Fr.jsx)(pt.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Fr.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Fr.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function ni({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:n,className:r}){let[s,c]=(0,Bt.useState)(""),[l,p]=(0,Bt.useState)(null),d=(0,Bt.useMemo)(()=>s?e.filter(v=>v.title.toLowerCase().includes(s.toLowerCase())||v.description?.toLowerCase().includes(s.toLowerCase())||v.tags?.some(C=>C.toLowerCase().includes(s.toLowerCase()))||Object.values(v.metadata||{}).some(C=>String(C).toLowerCase().includes(s.toLowerCase()))):e,[e,s]),g=(0,Bt.useMemo)(()=>{let v=(C,O)=>{if(O.length===0)return{};let[b,...R]=O;return C.reduce((B,K)=>{let se=K.metadata?.[b]||"Uncategorized",Z=String(se);if(B[Z]||(B[Z]={documents:[],children:{}}),R.length===0)B[Z].documents.push(K);else{let me=v([K],R),x=Object.keys(me)[0];x&&(B[Z].children||(B[Z].children={}),B[Z].children[x]?B[Z].children[x].documents.push(...me[x].documents):B[Z].children[x]=me[x])}return B},{})};return v(d,t.groupBy)},[d,t.groupBy]),u=v=>{p(v),a?.(v)};return(0,Fr.jsxs)("div",{className:`flex h-full ${r||""}`,children:[(0,Fr.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Fr.jsx)("div",{className:"p-6 border-b border-border",children:(0,Fr.jsxs)("div",{className:"relative",children:[(0,Fr.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Fr.jsx)(pt.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Fr.jsx)(z,{placeholder:"Search knowledge base...",value:s,onChange:v=>c(v.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Fr.jsx)(Ra,{className:"h-[calc(100%-100px)]",children:(0,Fr.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(g).map(([v,C])=>(0,Fr.jsx)(si,{label:v,documents:C.documents,children:C.children,level:0,onDocumentClick:u,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},v)),Object.keys(g).length===0&&(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Fr.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Fr.jsx)(pt.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Fr.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Fr.jsx)("p",{className:"text-xs pt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Fr.jsx)("div",{className:"flex-1 bg-background",children:l?(0,Fr.jsx)(Dn,{document:l}):(0,Fr.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Fr.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Fr.jsx)(pt.FileText,{className:"h-10 w-10 text-primary"})}),(0,Fr.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Fr.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}var kn=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:(0,Fr.jsx)($t.BookOpen,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:(0,Fr.jsx)($t.Server,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:(0,Fr.jsx)($t.Code,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:(0,Fr.jsx)($t.Users,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function Uo({documents:e=[],contexts:t=kn,onDocumentClick:a=r=>console.log("Document clicked:",r),onDocumentShare:o=r=>console.log("Share document:",r),selectedDocumentId:n}){let[r,s]=(0,Bt.useState)(t[0]);return(0,Fr.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Fr.jsx)(Ze,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Fr.jsxs)("div",{className:"pt-6",children:[(0,Fr.jsx)("div",{className:"border-b border-border",children:(0,Fr.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(c=>(0,Fr.jsxs)("button",{onClick:()=>s(c),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${r.id===c.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[c.icon,c.label]},c.id))})}),r.description&&(0,Fr.jsx)("div",{className:"pt-3 px-1",children:(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:r.description})})]})]}),(0,Fr.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Fr.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Fr.jsx)(ni,{documents:e,menuConfig:r.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:n})})})]})}var ce=be(require("react")),fa=require("@radix-Mr/react-slot");var di=(e=768)=>{let[t,a]=(0,Bt.useState)(!1);return(0,Bt.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var ci=be(require("react")),$o=be(require("@radix-Mr/react-separator"));var Ko=ci.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},n)=>(0,Fr.jsx)($o.Root,{ref:n,decorative:a,orientation:t,className:f("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Ko.displayName=$o.Root.displayName;var Fa=be(require("react")),Xe=be(require("@radix-Mr/react-dialog")),pi=require("@radix-Mr/react-icons");var gi=Xe.Root;var Pn=Xe.Portal,fi=Fa.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Xe.Overlay,{className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));fi.displayName=Xe.Overlay.displayName;var Tn=(0,Mr.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Go=Fa.forwardRef(({side:e="right",className:t,children:a,...o},n)=>(0,Fr.jsxs)(Pn,{children:[(0,Fr.jsx)(fi,{}),(0,Fr.jsxs)(Xe.Content,{ref:n,className:f(Tn({side:e}),t),...o,children:[(0,Fr.jsxs)(Xe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Fr.jsx)(pi.Cross2Icon,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Go.displayName=Xe.Content.displayName;var Rn=({className:e,...t})=>(0,Fr.jsx)("div",{className:f("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rn.displayName="SheetHeader";var In=({className:e,...t})=>(0,Fr.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});In.displayName="SheetFooter";var En=Fa.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Xe.Title,{ref:a,className:f("text-lg font-semibold text-foreground",e),...t}));En.displayName=Xe.Title.displayName;var An=Fa.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Xe.Description,{ref:a,className:f("text-sm text-muted-foreground",e),...t}));An.displayName=Xe.Description.displayName;function _o({className:e,...t}){return(0,Fr.jsx)("div",{className:f("animate-pulse rounded-md bg-primary/10",e),...t})}var bi=be(require("react")),St=be(require("@radix-Mr/react-tooltip"));var hi=St.Provider,xi=St.Root,yi=St.Trigger,qo=bi.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Fr.jsx)(St.Portal,{children:(0,Fr.jsx)(St.Content,{ref:o,sideOffset:t,className:f("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));qo.displayName=St.Content.displayName;var Mn="sidebar:state",Bn=60*60*24*7,Fn="16rem",Ln="18rem",jn="3rem",On="b",Ci=ce.createContext(null);function uo(){let e=ce.useContext(Ci);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Jo=ce.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:n,children:r,...s},c)=>{let l=di(),[p,d]=ce.useState(!1),[g,u]=ce.useState(e),v=t??g,C=ce.useCallback(N=>{if(a)return a?.(typeof N=="function"?N(v):N);u(N),document.cookie=`${Mn}=${v}; path=/; max-age=${Bn}`},[a,v]),O=ce.useCallback(()=>l?d(N=>!N):C(N=>!N),[l,C,d]);ce.useEffect(()=>{let N=B=>{B.key===On&&(B.metaKey||B.ctrlKey)&&(B.preventDefault(),O())};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[O]);let b=v?"expanded":"collapsed",R=ce.useMemo(()=>({state:b,open:v,setOpen:C,isMobile:l,openMobile:p,setOpenMobile:d,toggleSidebar:O}),[b,v,C,l,p,d,O]);return(0,Fr.jsx)(Ci.Provider,{value:R,children:(0,Fr.jsx)(hi,{delayDuration:0,children:(0,Fr.jsx)("div",{style:{"--sidebar-width":Fn,"--sidebar-width-icon":jn,...n},className:f("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:c,...s,children:r})})})});Jo.displayName="SidebarProvider";var zn=ce.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:n,...r},s)=>{let{isMobile:c,state:l,openMobile:p,setOpenMobile:d}=uo();return a==="none"?(0,Fr.jsx)("div",{className:f("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:s,...r,children:n}):c?(0,Fr.jsx)(gi,{open:p,onOpenChange:d,...r,children:(0,Fr.jsx)(Go,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ln},side:e,children:(0,Fr.jsx)("div",{className:"flex h-full w-full flex-col",children:n})})}):(0,Fr.jsxs)("div",{ref:s,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":l==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Fr.jsx)("div",{className:f("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Fr.jsx)("div",{className:f("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...r,children:(0,Fr.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:n})})]})});zn.displayName="Sidebar";var Hn=ce.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:n}=uo();return(0,Fr.jsxs)(h,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:f("h-7 w-7",e),onClick:r=>{t?.(r),n()},...a,children:[(0,Fr.jsx)(pt.PanelLeft,{}),(0,Fr.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Hn.displayName="SidebarTrigger";var Vn=ce.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=uo();return(0,Fr.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:f("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Vn.displayName="SidebarRail";var Un=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("main",{ref:a,className:f("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:Fr-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Un.displayName="SidebarInset";var $n=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(z,{ref:a,"data-sidebar":"input",className:f("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$n.displayName="SidebarInput";var Kn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"header",className:f("flex flex-col gap-2 p-2",e),...t}));Kn.displayName="SidebarHeader";var Gn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"footer",className:f("flex flex-col gap-2 p-2",e),...t}));Gn.displayName="SidebarFooter";var _n=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Ko,{ref:a,"data-sidebar":"separator",className:f("mx-2 w-auto bg-sidebar-border",e),...t}));_n.displayName="SidebarSeparator";var Wn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"content",className:f("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Wn.displayName="SidebarContent";var qn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"group",className:f("relative flex w-full min-w-0 flex-col p-2",e),...t}));qn.displayName="SidebarGroup";var Jn=ce.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Fr.jsx)(t?fa.Slot:"div",{ref:o,"data-sidebar":"group-label",className:f("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-pt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Jn.displayName="SidebarGroupLabel";var Xn=ce.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Fr.jsx)(t?fa.Slot:"button",{ref:o,"data-sidebar":"group-action",className:f("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Xn.displayName="SidebarGroupAction";var Yn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"group-content",className:f("w-full text-sm",e),...t}));Yn.displayName="SidebarGroupContent";var Zn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("ul",{ref:a,"data-sidebar":"menu",className:f("flex w-full min-w-0 flex-col gap-1",e),...t}));Zn.displayName="SidebarMenu";var Qn=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("Bt",{ref:a,"data-sidebar":"menu-item",className:f("group/menu-item relative",e),...t}));Qn.displayName="SidebarMenuItem";var el=(0,Mr.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:Bt-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),tl=ce.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:n,className:r,...s},c)=>{let l=e?fa.Slot:"button",{isMobile:p,state:d}=uo(),g=(0,Fr.jsx)(l,{ref:c,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:f(el({variant:a,size:o}),r),...s});return n?(typeof n=="string"&&(n={children:n}),(0,Fr.jsxs)(xi,{children:[(0,Fr.jsx)(yi,{asChild:!0,children:g}),(0,Fr.jsx)(qo,{side:"right",align:"center",hidden:d!=="collapsed"||p,...n})]})):g});tl.displayName="SidebarMenuButton";var al=ce.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},n)=>(0,Fr.jsx)(t?fa.Slot:"button",{ref:n,"data-sidebar":"menu-action",className:f("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));al.displayName="SidebarMenuAction";var ol=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:f("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));ol.displayName="SidebarMenuBadge";var rl=ce.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let n=ce.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Fr.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:f("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Fr.jsx)(_o,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Fr.jsx)(_o,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":n}})]})});rl.displayName="SidebarMenuSkeleton";var il=ce.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:f("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));il.displayName="SidebarMenuSub";var sl=ce.forwardRef(({...e},t)=>(0,Fr.jsx)("Bt",{ref:t,...e}));sl.displayName="SidebarMenuSubItem";var nl=ce.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...n},r)=>(0,Fr.jsx)(e?fa.Slot:"a",{ref:r,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:f("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...n}));nl.displayName="SidebarMenuSubButton";var Si=({projects:e,epics:t,sprints:a,currentView:o,onUpdateProject:n,onDeleteProject:r,onAddProject:s,onUpdateEpic:c,onDeleteEpic:l,onAddEpic:p,onAddSprint:d,onUpdateSprint:g,onDeleteSprint:u,onViewChange:v,mobileMenuOpen:C,onToggleMobileMenu:O})=>{let[b,R]=(0,Bt.useState)(null),[N,B]=(0,Bt.useState)(null),[K,se]=(0,Bt.useState)(null),[Z,me]=(0,Bt.useState)(null),[x,T]=(0,Bt.useState)({name:"",description:""}),[_,ve]=(0,Bt.useState)({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0}),[A,S]=(0,Bt.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),[X,De]=(0,Bt.useState)(!1),[dt,ct]=(0,Bt.useState)(!1),[je,He]=(0,Bt.useState)({name:"",description:""}),[F,Y]=(0,Bt.useState)({name:"",description:"",startDate:"",endDate:"",isActive:!1}),he=["bg-brand-blue","bg-brand-green","bg-brand-plum","bg-brand-orange","bg-destructive","bg-warning","bg-brand-cyan","bg-accent"],Ye=[{value:"low",label:"Low",color:"text-destructive"},{value:"medium",label:"Medium",color:"text-warning"},{value:"high",label:"High",color:"text-success"}],ft=[{value:1,label:"Phase 1",color:"text-brand-blue"},{value:2,label:"Phase 2",color:"text-brand-plum"},{value:3,label:"Phase 3",color:"text-brand-orange"},{value:4,label:"Phase 4",color:"text-brand-green"},{value:5,label:"Phase 5",color:"text-destructive"},{value:6,label:"Phase 6",color:"text-warning"},{value:7,label:"Phase 7",color:"text-brand-cyan"},{value:8,label:"Phase 8",color:"text-accent"},{value:9,label:"Phase 9",color:"text-muted-foreground"}],D=y=>{B(y.id),T({name:y.name,description:y.description||""})},Oe=()=>{N&&x.name.trim()&&(n(N,{name:x.name.trim(),description:x.description.trim()}),B(null))},Be=()=>{B(null),T({name:"",description:""})},_t=()=>{je.name.trim()&&(s({name:je.name.trim(),description:je.description.trim(),isSelected:!1}),He({name:"",description:""}),De(!1))},$a=y=>{n(y,{isSelected:!0})},wa=y=>{se(y.id),ve({name:y.name,description:y.description||"",color:y.color,confidence:y.confidence,phase:y.phase,startDate:y.startDate.toISOString().split("T")[0],endDate:y.endDate.toISOString().split("T")[0],progress:y.progress})},Ka=()=>{K&&_.name.trim()&&(c(K,{name:_.name.trim(),description:_.description.trim(),color:_.color,confidence:_.confidence,phase:_.phase,startDate:new Date(_.startDate),endDate:new Date(_.endDate),progress:_.progress}),se(null))},To=()=>{se(null),ve({name:"",description:"",color:"",confidence:"medium",phase:1,startDate:"",endDate:"",progress:0})},Ga=y=>{me(y.id),S({name:y.name,description:y.description||"",startDate:y.startDate.toISOString().split("T")[0],endDate:y.endDate.toISOString().split("T")[0],isActive:y.isActive})},Ro=()=>{Z&&A.name.trim()&&(g(Z,{name:A.name.trim(),description:A.description.trim(),startDate:new Date(A.startDate),endDate:new Date(A.endDate),isActive:A.isActive}),me(null))},_a=()=>{me(null),S({name:"",description:"",startDate:"",endDate:"",isActive:!1})},na=()=>{F.name.trim()&&(d({name:F.name.trim(),description:F.description.trim(),startDate:new Date(F.startDate),endDate:new Date(F.endDate),isActive:F.isActive,isSelected:!1}),Y({name:"",description:"",startDate:"",endDate:"",isActive:!1}),ct(!1))},Na=y=>{g(y,{isSelected:!0})},Wa=y=>y.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Ca=y=>{let I=Ye.find(xe=>xe.value===y);return I?{label:I.label,color:I.color}:{label:"Medium",color:"text-warning"}},Sa=y=>{let I=ft.find(xe=>xe.value===y);return I?{label:I.label,color:I.color}:{label:"Phase 1",color:"text-primary"}};return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsxs)("div",{className:`absolute h-full w-12 bg-sidebar-background flex flex-col z-50 flex-shrink-0 transition-transform duration-300 group ${C?"translate-x-0":"-translate-x-full"} md:translate-x-0`,children:[(0,Fr.jsxs)("div",{className:"border-b border-sidebar-border",children:[(0,Fr.jsxs)("button",{onClick:()=>{v("kanban"),R(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="kanban"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3 z-50`,title:"Kanban View",children:[(0,Fr.jsx)(pt.Kanban,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Kanban"})]}),(0,Fr.jsxs)("button",{onClick:()=>{v("planning"),R(null)},className:`w-12 h-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="planning"?"bg-brand-plum":"bg-brand-plum/75 hover:bg-brand-plum"} hidden md:flex hover:w-28 hover:justify-start hover:pl-3`,title:"Planning View",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Planning"})]})]}),(0,Fr.jsxs)("button",{onClick:()=>R(b==="projects"?null:"projects"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="projects"?"bg-sidebar-accent":"bg-sidebar-primary hover:bg-sidebar-accent"} hover:w-28 hover:justify-start hover:pl-3`,title:"Projects",children:[(0,Fr.jsx)(pt.FolderOpen,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Projects"})]}),(0,Fr.jsxs)("button",{onClick:()=>{v("epics"),R(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="epics"?"bg-primary":"bg-primary/75 hover:bg-primary"} hover:w-28 hover:justify-start hover:pl-3`,title:"Epic Planning",children:[(0,Fr.jsx)(pt.Target,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Epics"})]}),(0,Fr.jsxs)("button",{onClick:()=>R(b==="sprints"?null:"sprints"),className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${b==="sprints"?"bg-brand-green":"bg-brand-green/75 hover:bg-brand-green"} hover:w-28 hover:justify-start hover:pl-3`,title:"Sprints",children:[(0,Fr.jsx)(pt.Layers,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Sprints"})]}),(0,Fr.jsxs)("button",{onClick:()=>{v("files"),R(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="files"?"bg-brand-orange":"bg-brand-orange/75 hover:bg-brand-orange"} hover:w-28 hover:justify-start hover:pl-3`,title:"Files",children:[(0,Fr.jsx)(pt.FileText,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Files"})]}),(0,Fr.jsxs)("button",{onClick:()=>{v("tasks"),R(null)},className:`flex-1 w-12 flex items-center justify-center text-sidebar-foreground transition-all duration-200 relative overflow-hidden group/btn ${o==="tasks"?"bg-brand-cyan":"bg-brand-cyan/75 hover:bg-brand-cyan"} hover:w-28 hover:justify-start hover:pl-3`,title:"Tasks",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-4 w-4 flex-shrink-0"}),(0,Fr.jsx)("span",{className:"text-xs font-medium whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity duration-200 absolute left-8",children:"Tasks"})]})]}),C&&(0,Fr.jsx)("div",{className:"md:hidden fixed inset-0 bg-background/80 backdrop-blur-sm z-20",onClick:O}),b&&(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40",onClick:()=>R(null)}),(0,Fr.jsxs)("div",{className:"absolute left-12 w-80 md:w-96 bg-card shadow-lg z-40 transform transition-transform max-w-[calc(100vw-3rem)] md:max-w-none top-0 h-full",children:[(0,Fr.jsxs)("div",{className:"p-3 md:p-4 border-b flex items-center justify-between",children:[(0,Fr.jsxs)("h2",{className:"text-base md:text-lg font-semibold",children:[b==="projects"&&"Projects",b==="epics"&&"Manage Epics",b==="sprints"&&"Manage Sprints",b==="files"&&"Files"]}),(0,Fr.jsx)(h,{variant:"ghost",size:"sm",onClick:()=>R(null),children:(0,Fr.jsx)(pt.X,{className:"h-4 w-4"})})]}),(0,Fr.jsxs)("div",{className:"p-3 md:p-4 space-y-4 h-full overflow-y-auto",children:[b==="projects"&&(0,Fr.jsx)(j,{className:"p-3",children:(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("h3",{className:"font-medium text-foreground",children:"Projects"}),(0,Fr.jsxs)(h,{size:"sm",onClick:()=>De(!0),className:"gap-1",children:[(0,Fr.jsx)(pt.Plus,{className:"h-3 w-3"}),"Add Project"]})]}),X&&(0,Fr.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,Fr.jsx)(z,{value:je.name,onChange:y=>He(I=>({...I,name:y.target.value})),placeholder:"Project name",className:"text-sm"}),(0,Fr.jsx)(Re,{value:je.description,onChange:y=>He(I=>({...I,description:y.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{size:"sm",onClick:_t,className:"text-xs h-6",children:"Save"}),(0,Fr.jsx)(h,{size:"sm",variant:"outline",onClick:()=>De(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,Fr.jsx)("div",{className:"space-y-2",children:e.map(y=>(0,Fr.jsx)("div",{className:"border rounded p-2",children:N===y.id?(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(z,{value:x.name,onChange:I=>T(xe=>({...xe,name:I.target.value})),placeholder:"Project name",className:"text-sm"}),(0,Fr.jsx)(Re,{value:x.description,onChange:I=>T(xe=>({...xe,description:I.target.value})),placeholder:"Project description",rows:2,className:"text-sm"}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{size:"sm",onClick:Oe,className:"text-xs h-6",children:"Save"}),(0,Fr.jsx)(h,{size:"sm",variant:"outline",onClick:Be,className:"text-xs h-6",children:"Cancel"})]})]}):(0,Fr.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${y.isSelected?"bg-primary/10 border-primary ring-2 ring-primary/20":"hover:bg-muted"}`,onClick:()=>$a(y.id),children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Fr.jsx)(pt.FolderOpen,{className:"h-3 w-3 text-muted-foreground"}),(0,Fr.jsx)("span",{className:"font-medium text-xs",children:y.name})]}),y.description&&(0,Fr.jsx)("p",{className:"text-xs text-muted-foreground mb-1",children:y.description}),(0,Fr.jsxs)("div",{className:"flex gap-1",onClick:I=>I.stopPropagation(),children:[(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>D(y),className:"h-5 px-1",children:(0,Fr.jsx)(pt.Edit2,{className:"h-3 w-3"})}),(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>r(y.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,Fr.jsx)(pt.Trash2,{className:"h-3 w-3"})})]})]})},y.id))})]})}),b==="epics"&&(0,Fr.jsx)(j,{className:"p-3",children:(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("h3",{className:"font-medium text-foreground",children:"Epics"}),(0,Fr.jsxs)(h,{size:"sm",onClick:p,className:"gap-1",children:[(0,Fr.jsx)(pt.Plus,{className:"h-3 w-3"}),"Add Epic"]})]}),(0,Fr.jsx)("div",{className:"space-y-4",children:t.map(y=>(0,Fr.jsx)("div",{className:"border rounded-lg p-3",children:K===y.id?(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsx)(z,{value:_.name,onChange:I=>ve(xe=>({...xe,name:I.target.value})),placeholder:"Epic name",className:"text-sm"}),(0,Fr.jsx)(Re,{value:_.description,onChange:I=>ve(xe=>({...xe,description:I.target.value})),placeholder:"Epic description",rows:2,className:"text-sm"}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"Color"}),(0,Fr.jsx)("div",{className:"flex gap-1 flex-wrap",children:he.map(I=>(0,Fr.jsx)("button",{onClick:()=>ve(xe=>({...xe,color:I})),className:`w-6 h-6 rounded-full ${I} ${_.color===I?"ring-2 ring-ring":""}`},I))})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"Confidence"}),(0,Fr.jsxs)(Ne,{value:_.confidence,onValueChange:I=>ve(xe=>({...xe,confidence:I})),children:[(0,Fr.jsx)(ye,{className:"h-8 text-xs",children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsx)(we,{children:Ye.map(I=>(0,Fr.jsx)(V,{value:I.value,children:(0,Fr.jsx)("span",{className:I.color,children:I.label})},I.value))})]})]}),(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"Phase"}),(0,Fr.jsxs)(Ne,{value:_.phase.toString(),onValueChange:I=>ve(xe=>({...xe,phase:parseInt(I)})),children:[(0,Fr.jsx)(ye,{className:"h-8 text-xs",children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsx)(we,{children:ft.map(I=>(0,Fr.jsx)(V,{value:I.value.toString(),children:(0,Fr.jsx)("span",{className:I.color,children:I.label})},I.value))})]})]})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"Start Date"}),(0,Fr.jsx)(z,{type:"date",value:_.startDate,onChange:I=>ve(xe=>({...xe,startDate:I.target.value})),className:"text-xs h-8"})]}),(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"End Date"}),(0,Fr.jsx)(z,{type:"date",value:_.endDate,onChange:I=>ve(xe=>({...xe,endDate:I.target.value})),className:"text-xs h-8"})]})]}),(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)("label",{className:"text-xs font-medium",children:"Progress (%)"}),(0,Fr.jsx)(z,{type:"number",min:"0",max:"100",value:_.progress,onChange:I=>ve(xe=>({...xe,progress:parseInt(I.target.value)||0})),className:"text-xs h-8"})]}),(0,Fr.jsxs)("div",{className:"flex gap-2",children:[(0,Fr.jsx)(h,{size:"sm",onClick:Ka,className:"text-xs",children:"Save"}),(0,Fr.jsx)(h,{size:"sm",variant:"outline",onClick:To,className:"text-xs",children:"Cancel"})]})]}):(0,Fr.jsxs)("div",{className:`cursor-pointer p-2 rounded transition-colors ${y.isSelected?"bg-primary/10 border-primary":"hover:bg-muted"}`,onClick:()=>c(y.id,{isSelected:!y.isSelected}),children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Fr.jsx)("div",{className:`w-3 h-3 rounded-full ${y.color}`}),(0,Fr.jsx)("span",{className:"font-medium text-sm",children:y.name})]}),y.description&&(0,Fr.jsx)("p",{className:"text-xs text-muted-foreground mb-2",children:y.description}),(0,Fr.jsxs)("div",{className:"space-y-1 mb-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Fr.jsx)("span",{className:"text-muted-foreground",children:"Confidence:"}),(0,Fr.jsx)("span",{className:Ca(y.confidence).color,children:Ca(y.confidence).label})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Fr.jsx)("span",{className:"text-muted-foreground",children:"Phase:"}),(0,Fr.jsx)("span",{className:Sa(y.phase).color,children:Sa(y.phase).label})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Fr.jsx)("span",{className:"text-muted-foreground",children:"Timeline:"}),(0,Fr.jsxs)("span",{className:"text-foreground",children:[Wa(y.startDate)," - ",Wa(y.endDate)]})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,Fr.jsx)("span",{className:"text-muted-foreground",children:"Progress:"}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("div",{className:"w-12 h-2 bg-muted rounded-full",children:(0,Fr.jsx)("div",{className:"h-2 bg-primary rounded-full",style:{width:`${y.progress}%`}})}),(0,Fr.jsxs)("span",{className:"text-foreground",children:[y.progress,"%"]})]})]})]}),(0,Fr.jsxs)("div",{className:"flex gap-1",onClick:I=>I.stopPropagation(),children:[(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>wa(y),className:"h-6 px-2",children:(0,Fr.jsx)(pt.Edit2,{className:"h-3 w-3"})}),(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>l(y.id),className:"h-6 px-2 text-destructive hover:text-destructive",children:(0,Fr.jsx)(pt.Trash2,{className:"h-3 w-3"})})]})]})},y.id))})]})}),b==="sprints"&&(0,Fr.jsx)(j,{className:"p-3",children:(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("h3",{className:"font-medium text-foreground",children:"Sprints (Select One)"}),(0,Fr.jsxs)(h,{size:"sm",onClick:()=>ct(!0),className:"gap-1",children:[(0,Fr.jsx)(pt.Plus,{className:"h-3 w-3"}),"Add Sprint"]})]}),dt&&(0,Fr.jsxs)("div",{className:"border rounded-lg p-2 space-y-2",children:[(0,Fr.jsx)(z,{value:F.name,onChange:y=>Y(I=>({...I,name:y.target.value})),placeholder:"Sprint name",className:"text-sm"}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,Fr.jsx)(z,{type:"date",value:F.startDate,onChange:y=>Y(I=>({...I,startDate:y.target.value})),className:"text-xs"}),(0,Fr.jsx)(z,{type:"date",value:F.endDate,onChange:y=>Y(I=>({...I,endDate:y.target.value})),className:"text-xs"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("input",{type:"checkbox",checked:F.isActive,onChange:y=>Y(I=>({...I,isActive:y.target.checked})),className:"w-3 h-3"}),(0,Fr.jsx)("span",{className:"text-xs",children:"Active"})]}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{size:"sm",onClick:na,className:"text-xs h-6",children:"Save"}),(0,Fr.jsx)(h,{size:"sm",variant:"outline",onClick:()=>ct(!1),className:"text-xs h-6",children:"Cancel"})]})]}),(0,Fr.jsx)("div",{className:"space-y-2",children:a.map(y=>(0,Fr.jsx)("div",{className:"border rounded p-2",children:Z===y.id?(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(z,{value:A.name,onChange:I=>S(xe=>({...xe,name:I.target.value})),placeholder:"Sprint name",className:"text-sm",disabled:y.id==="backlog"||y.id==="all-tasks"}),y.id!=="backlog"&&y.id!=="all-tasks"&&(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-1",children:[(0,Fr.jsx)(z,{type:"date",value:A.startDate,onChange:I=>S(xe=>({...xe,startDate:I.target.value})),className:"text-xs"}),(0,Fr.jsx)(z,{type:"date",value:A.endDate,onChange:I=>S(xe=>({...xe,endDate:I.target.value})),className:"text-xs"})]}),(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("input",{type:"checkbox",checked:A.isActive,onChange:I=>S(xe=>({...xe,isActive:I.target.checked})),className:"w-3 h-3"}),(0,Fr.jsx)("span",{className:"text-xs",children:"Active"})]})]}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{size:"sm",onClick:Ro,className:"text-xs h-6",children:"Save"}),(0,Fr.jsx)(h,{size:"sm",variant:"outline",onClick:_a,className:"text-xs h-6",children:"Cancel"})]})]}):(0,Fr.jsxs)("div",{className:`cursor-pointer p-1 rounded transition-colors ${y.isSelected?"bg-brand-green/10 border-brand-green ring-2 ring-brand-green/20":"hover:bg-muted"}`,onClick:()=>Na(y.id),children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-3 w-3 text-muted-foreground"}),(0,Fr.jsx)("span",{className:"font-medium text-xs",children:y.name}),y.isActive&&(0,Fr.jsx)("span",{className:"text-xs bg-brand-green/20 text-brand-green px-1 py-0.5 rounded",children:"Active"}),(y.id==="backlog"||y.id==="all-tasks")&&(0,Fr.jsx)("span",{className:"text-xs bg-muted text-muted-foreground px-1 py-0.5 rounded",children:"System"})]}),y.id!=="backlog"&&y.id!=="all-tasks"&&(0,Fr.jsxs)("p",{className:"text-xs text-muted-foreground mb-1",children:[y.startDate.toLocaleDateString()," - ",y.endDate.toLocaleDateString()]}),(0,Fr.jsxs)("div",{className:"flex gap-1",onClick:I=>I.stopPropagation(),children:[(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>Ga(y),className:"h-5 px-1",children:(0,Fr.jsx)(pt.Edit2,{className:"h-3 w-3"})}),y.id!=="backlog"&&y.id!=="all-tasks"&&(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>u(y.id),className:"h-5 px-1 text-destructive hover:text-destructive",children:(0,Fr.jsx)(pt.Trash2,{className:"h-3 w-3"})})]})]})},y.id))})]})})]})]})]})]})},Di=e=>(0,Fr.jsx)(Jo,{children:(0,Fr.jsxs)("div",{className:"flex w-full",children:[(0,Fr.jsx)("div",{className:"hidden md:block w-12 fixed h-full",children:(0,Fr.jsx)(Si,{...e})}),(0,Fr.jsx)("div",{className:"md:hidden",children:(0,Fr.jsx)(Si,{...e})}),(0,Fr.jsx)("div",{className:"flex-1 min-w-0 ml-16 px-4 md:px-6",children:(0,Fr.jsx)("div",{className:"w-full",children:e.children})})]})});var ki=({title:e,status:t,taskCount:a,children:o,onDrop:n,isCompact:r=!1})=>{let s=p=>{p.preventDefault()},c=p=>{p.preventDefault(),n(t)};return(0,Fr.jsxs)(j,{className:`p-4 bg-card border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 ${r?"lg:max-w-xs":""}`,onDragOver:s,onDrop:c,children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Fr.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${r?"text-base":"text-lg"}`,children:e}),(0,Fr.jsx)(Q,{variant:"secondary",className:"bg-muted text-muted-foreground",children:a})]}),(0,Fr.jsx)("div",{className:"space-y-4 min-h-[200px]",children:o})]})};var go=({task:e,epic:t,onDragStart:a,onTaskClick:o,isCompact:n=!1})=>{let r=d=>{a(e)},s=()=>{o(e)},c=()=>{switch(e.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},l=()=>{switch(e.type){case"story":return(0,Fr.jsx)(pt.BookOpen,{className:"h-3 w-3"});case"bug":return(0,Fr.jsx)(pt.Bug,{className:"h-3 w-3"});case"spike":return(0,Fr.jsx)(pt.Zap,{className:"h-3 w-3"});case"task":default:return(0,Fr.jsx)(pt.AlertCircle,{className:"h-3 w-3"})}},p=()=>{switch(e.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return n?(0,Fr.jsx)(j,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:r,onClick:s,children:(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${p()}`,children:l()}),(0,Fr.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.title})]})}):(0,Fr.jsxs)(j,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:r,onClick:s,children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Fr.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${p()}`,children:[l(),(0,Fr.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${c()}`,children:e.priority}),(0,Fr.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.points})]})]}),(0,Fr.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.title}),(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Fr.jsx)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:(0,Fr.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Fr.jsx)(pt.User,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:e.assignee})]})})]})};var La=be(require("react")),Ke=be(require("@radix-Mr/react-dialog"));var nt=Ke.Root,Ti=Ke.Trigger,ll=Ke.Portal;var Ri=La.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Ke.Overlay,{ref:a,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ri.displayName=Ke.Overlay.displayName;var et=La.forwardRef(({className:e,children:t,...a},o)=>(0,Fr.jsxs)(ll,{children:[(0,Fr.jsx)(Ri,{}),(0,Fr.jsxs)(Ke.Content,{ref:o,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Fr.jsxs)(Ke.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Fr.jsx)(pt.X,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));et.displayName=Ke.Content.displayName;var tt=({className:e,...t})=>(0,Fr.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});tt.displayName="DialogHeader";var ja=({className:e,...t})=>(0,Fr.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ja.displayName="DialogFooter";var at=La.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Ke.Title,{ref:a,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));at.displayName=Ke.Title.displayName;var Oa=La.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Ke.Description,{ref:a,className:f("text-sm text-muted-foreground",e),...t}));Oa.displayName=Ke.Description.displayName;var oa=be(require("react")),va=be(require("@radix-Mr/react-toggle-group"));var Ii=be(require("react")),Xo=be(require("@radix-Mr/react-toggle"));var Yo=(0,Mr.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),dl=Ii.forwardRef(({className:e,variant:t,size:a,...o},n)=>(0,Fr.jsx)(Xo.Root,{ref:n,className:f(Yo({variant:t,size:a,className:e})),...o}));dl.displayName=Xo.Root.displayName;var Mi=oa.createContext({size:"default",variant:"default"}),ra=oa.forwardRef(({className:e,variant:t,size:a,children:o,...n},r)=>(0,Fr.jsx)(va.Root,{ref:r,className:f("flex items-center justify-center gap-1",e),...n,children:(0,Fr.jsx)(Mi.Provider,{value:{variant:t,size:a},children:o})}));ra.displayName=va.Root.displayName;var ia=oa.forwardRef(({className:e,children:t,variant:a,size:o,...n},r)=>{let s=oa.useContext(Mi);return(0,Fr.jsx)(va.Item,{ref:r,className:f(Yo({variant:s.variant||a,size:s.size||o}),e),...n,children:t})});ia.displayName=va.Item.displayName;var cl=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:pt.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:pt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:pt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:pt.Zap}],ml=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],vo=({isOpen:e,onClose:t,onAddTask:a,epics:o,sprints:n,defaultEpicId:r})=>{let[s,c]=(0,Bt.useState)({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""});(0,Bt.useEffect)(()=>{e&&r&&c(d=>({...d,epicId:r}))},[e,r]),(0,Bt.useEffect)(()=>{e&&c({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""})},[e]);let l=d=>{d.preventDefault(),s.title.trim()&&s.epicId&&(a({title:s.title.trim(),description:s.description.trim(),status:"todo",priority:s.priority,type:s.type,points:s.points,epicId:s.epicId,sprintId:s.sprintId==="none"?void 0:s.sprintId,assignee:s.assignee.trim()||"Unassigned"}),c({title:"",description:"",status:"todo",priority:"medium",type:"story",points:1,epicId:"",sprintId:"none",assignee:""}),t())},p=(d,g)=>{c(u=>({...u,[d]:g}))};return(0,Fr.jsx)(nt,{open:e,onOpenChange:t,children:(0,Fr.jsxs)(et,{className:"sm:max-w-md",children:[(0,Fr.jsx)(tt,{children:(0,Fr.jsx)(at,{children:"Add New Task"})}),(0,Fr.jsxs)("form",{onSubmit:l,className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"title",children:"Task Title"}),(0,Fr.jsx)(z,{id:"title",value:s.title,onChange:d=>p("title",d.target.value),placeholder:"Enter task title",required:!0})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"description",children:"Description"}),(0,Fr.jsx)(Re,{id:"description",value:s.description,onChange:d=>p("description",d.target.value),placeholder:"Enter task description",rows:3})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Type"}),(0,Fr.jsx)(ra,{type:"single",value:s.type,onValueChange:d=>d&&p("type",d),children:cl.map(d=>{let g=d.icon;return(0,Fr.jsxs)(ia,{value:d.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Fr.jsx)(g,{className:"h-4 w-4"}),d.label]},d.value)})})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Priority"}),(0,Fr.jsx)(ra,{type:"single",value:s.priority,onValueChange:d=>d&&p("priority",d),children:ml.map(d=>(0,Fr.jsx)(ia,{value:d.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:d.label},d.value))})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"points",children:"Story Points"}),(0,Fr.jsx)(z,{id:"points",type:"number",min:"1",max:"100",value:s.points,onChange:d=>p("points",parseInt(d.target.value)||1),placeholder:"Enter story points",required:!0})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"epic",children:"Epic"}),(0,Fr.jsxs)(Ne,{value:s.epicId,onValueChange:d=>p("epicId",d),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{placeholder:"Select an epic"})}),(0,Fr.jsx)(we,{children:o.map(d=>(0,Fr.jsx)(V,{value:d.id,children:(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("div",{className:`w-3 h-3 rounded-full ${d.color}`}),d.name]})},d.id))})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Fr.jsxs)(Ne,{value:s.sprintId,onValueChange:d=>p("sprintId",d),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{placeholder:"Select a sprint"})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"none",children:"No Sprint"}),n.map(d=>(0,Fr.jsx)(V,{value:d.id,children:(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[d.name,d.isActive&&(0,Fr.jsx)("span",{className:"text-xs bg-green-100 text-green-800 px-1 rounded",children:"Active"})]})},d.id))]})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"assignee",children:"Assignee"}),(0,Fr.jsx)(z,{id:"assignee",value:s.assignee,onChange:d=>p("assignee",d.target.value),placeholder:"Enter assignee name",required:!0})]}),(0,Fr.jsxs)(ja,{children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Fr.jsx)(h,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var Qo=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:n,className:r="",disabled:s=!1})=>{let[c,l]=(0,Bt.useState)(!1),[p,d]=(0,Bt.useState)(""),g=()=>{s||(l(!0),d(t))},u=async()=>{p!==t&&await n(e,p),l(!1)},v=C=>{C.key==="Enter"&&!o||C.key==="Enter"&&C.ctrlKey&&o?u():C.key==="Escape"&&(l(!1),d(""))};return(0,Fr.jsxs)("div",{className:`space-y-2 ${r}`,children:[(0,Fr.jsx)(P,{children:a}),c?o?(0,Fr.jsx)(Re,{value:p,onChange:C=>d(C.target.value),onBlur:u,onKeyDown:v,autoFocus:!0,rows:4,className:"resize-none"}):(0,Fr.jsx)(z,{value:p,onChange:C=>d(C.target.value),onBlur:u,onKeyPress:v,autoFocus:!0,className:"text-lg font-medium"}):(0,Fr.jsxs)("div",{onClick:g,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Fr.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,Fr.jsx)(pt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Li=({comments:e,onAddComment:t})=>{let[a,o]=(0,Bt.useState)(""),n=s=>s.split(" ").map(c=>c[0]).join("").toUpperCase(),r=()=>{a.trim()&&(t(a),o(""))};return(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.MessageSquare,{className:"h-5 w-5"}),(0,Fr.jsx)(P,{className:"text-lg font-medium",children:"Comments"}),(0,Fr.jsx)(Q,{variant:"secondary",children:e.length})]}),(0,Fr.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(s=>(0,Fr.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Fr.jsx)(It,{className:"h-8 w-8 pt-1",children:(0,Fr.jsx)(Et,{className:"text-xs bg-muted text-muted-foreground",children:n(s.author)})}),(0,Fr.jsxs)("div",{className:"flex-1",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Fr.jsx)("span",{className:"font-medium text-sm",children:s.author}),(0,Fr.jsxs)("span",{className:"text-xs text-muted-foreground",children:[s.createdAt.toLocaleDateString()," at ",s.createdAt.toLocaleTimeString()]})]}),(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground",children:s.text})]})]},s.id))}),(0,Fr.jsxs)("div",{className:"flex gap-2",children:[(0,Fr.jsx)(Re,{value:a,onChange:s=>o(s.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Fr.jsx)(h,{onClick:r,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,Fr.jsx)(pt.Send,{className:"h-4 w-4"})})]})]})};var ho=({label:e,value:t,onValueChange:a,options:o,showColor:n=!1,disabled:r=!1})=>{let[s,c]=(0,Bt.useState)(!1),l=o.find(d=>d.value===t);return(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:e}),(0,Fr.jsxs)(Ne,{value:t,onValueChange:a,open:s,onOpenChange:d=>{r||c(d)},disabled:r,children:[(0,Fr.jsx)(ye,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Fr.jsxs)(Q,{variant:"secondary",className:`${r?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!r&&c(!s),children:[n&&l?.color&&(0,Fr.jsx)("div",{className:`w-2 h-2 rounded-full ${l.color} mr-1`}),l?.label||"Select..."]})}),(0,Fr.jsx)(we,{children:o.map(d=>(0,Fr.jsx)(V,{value:d.value,children:n&&d.color?(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)("div",{className:`w-3 h-3 rounded-full ${d.color}`}),d.label]}):d.label},d.value))})]})]})};var Oi=({label:e,value:t,onValueChange:a,options:o,placeholder:n="Search...",allowCustomValue:r=!1,disabled:s=!1})=>{let[c,l]=(0,Bt.useState)(!1),[p,d]=(0,Bt.useState)(""),g=o.find(b=>b.value===t),u=o.filter(b=>b.label.toLowerCase().includes(p.toLowerCase())),v=b=>{a(b),l(!1),d("")},C=()=>{r&&p.trim()&&!o.find(b=>b.value===p.trim())&&(a(p.trim()),l(!1),d(""))};return(0,Fr.jsxs)("div",{className:"space-y-1",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:e}),(0,Fr.jsxs)(Ne,{value:t,onValueChange:v,open:c,onOpenChange:b=>{s||l(b)},disabled:s,children:[(0,Fr.jsx)(ye,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Fr.jsx)(Q,{variant:"secondary",className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!s&&l(!c),children:g?.label||t||"Select..."})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)("div",{className:"p-2",children:(0,Fr.jsx)(z,{placeholder:n,value:p,onChange:b=>d(b.target.value),onKeyDown:b=>{b.key==="Enter"&&r&&C()},className:"mb-2"})}),u.map(b=>(0,Fr.jsx)(V,{value:b.value,children:b.label},b.value)),r&&p.trim()&&!u.find(b=>b.value===p.trim())&&(0,Fr.jsxs)(V,{value:p.trim(),children:['Add "',p.trim(),'"']})]})]})]})};var pl=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:pt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:pt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:pt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:pt.Zap}],ul=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],gl=[{value:"John Doe",label:"John Doe"},{value:"Jane Smith",label:"Jane Smith"},{value:"Bob Wilson",label:"Bob Wilson"},{value:"Alice Johnson",label:"Alice Johnson"},{value:"Carol Brown",label:"Carol Brown"},{value:"David Lee",label:"David Lee"},{value:"Emma Davis",label:"Emma Davis"},{value:"Frank Miller",label:"Frank Miller"},{value:"Grace Taylor",label:"Grace Taylor"},{value:"Unassigned",label:"Unassigned"}],zi=({task:e,epics:t,sprints:a,lastUpdated:o,onUpdateTask:n,onClose:r,onDelete:s,isUpdating:c=!1,isDeleting:l=!1,deleteState:p="idle"})=>{let d=u=>u.split(" ").map(v=>v[0]).join("").toUpperCase(),g=()=>p==="loading"?(0,Fr.jsxs)(h,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Fr.jsx)(pt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):p==="success"?(0,Fr.jsxs)(h,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Fr.jsx)(pt.Check,{className:"h-3 w-3"}),"Deleted"]}):p==="error"?(0,Fr.jsxs)(h,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Fr.jsx)(pt.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,Fr.jsxs)(h,{onClick:s,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:c||l,children:[(0,Fr.jsx)(pt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,Fr.jsxs)("div",{className:"flex flex-col h-full",children:[(0,Fr.jsxs)("div",{className:"space-y-4",style:{opacity:c?.6:1},children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Fr.jsx)(ho,{label:"",value:e.status,onValueChange:u=>n("status",u),options:[{value:"todo",label:"To Fr"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:c})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Fr.jsx)(ra,{type:"single",value:e.type,onValueChange:u=>u&&n("type",u),className:"grid grid-cols-2 gap-1",disabled:c,children:pl.map(u=>{let v=u.icon;return(0,Fr.jsxs)(ia,{value:u.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:c,children:[(0,Fr.jsx)(v,{className:"h-3 w-3"}),u.label]},u.value)})})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Fr.jsx)(ra,{type:"single",value:e.priority,onValueChange:u=>u&&n("priority",u),className:"grid grid-cols-3 gap-1",disabled:c,children:ul.map(u=>(0,Fr.jsx)(ia,{value:u.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:c,children:u.label},u.value))})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Fr.jsx)("input",{type:"number",min:"1",max:"100",value:e.points||1,onChange:u=>n("points",u.target.value),className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:c})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Fr.jsx)(ho,{label:"",value:e.epicId,onValueChange:u=>n("epicId",u),options:(t||[]).map(u=>({value:u.id,label:u.name,color:u.color})),showColor:!0,disabled:c})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Fr.jsx)(ho,{label:"",value:e.sprintId||"none",onValueChange:u=>n("sprintId",u==="none"?"":u),options:[{value:"none",label:"No Sprint"},...(a||[]).map(u=>({value:u.id,label:`${u.name}${u.isActive?" (Active)":""}`}))],disabled:c})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Fr.jsx)(Oi,{label:"",value:e.assignee,onValueChange:u=>n("assignee",u),options:gl,placeholder:"Search team members...",allowCustomValue:!0,disabled:c})]})]}),(0,Fr.jsxs)("div",{className:"pt-auto pt-4 space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(h,{onClick:r,variant:"outline",className:"w-full h-8 text-xs",disabled:c||l,children:"Close"}),g()]}),(0,Fr.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,Fr.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Fr.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Fr.jsx)(pt.User,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{children:"System"})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Fr.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{children:e.createdAt.toLocaleDateString()})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Fr.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Fr.jsx)(pt.Clock,{className:"h-3 w-3"}),(0,Fr.jsxs)("span",{children:[o.toLocaleDateString()," at ",o.toLocaleTimeString()]})]})]})]})]})]})};var xo=({isOpen:e,onClose:t,task:a,epics:o,sprints:n,onUpdateTask:r,onDeleteTask:s})=>{let[c,l]=(0,Bt.useState)(new Date),[p,d]=(0,Bt.useState)("idle"),[g,u]=(0,Bt.useState)("idle"),[v,C]=(0,Bt.useState)([{id:"1",text:"Initial task created and assigned.",author:"System",createdAt:a.createdAt},{id:"2",text:"Started working on the implementation.",author:a.assignee,createdAt:new Date(a.createdAt.getTime()+864e5)}]),O=async(Z,me)=>{if(me!==a[Z]){d("loading");try{await r(a.id,{[Z]:me}),l(new Date),d("success"),setTimeout(()=>d("idle"),1500)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}}},b=async(Z,me)=>{if(me!==a[Z]){d("loading");try{await r(a.id,{[Z]:me}),l(new Date),d("success"),setTimeout(()=>d("idle"),1500)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}}},R=Z=>{let me={id:Date.now().toString(),text:Z,author:"Current User",createdAt:new Date};C([...v,me])},N=async()=>{u("loading");try{await s(a.id),u("success"),setTimeout(()=>{t(),u("idle")},1e3)}catch{u("error"),setTimeout(()=>u("idle"),3e3)}},B=p!=="loading"&&g!=="loading",K=()=>{B&&t()},se=()=>p==="loading"?(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Fr.jsx)(pt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,Fr.jsx)("span",{children:"Updating..."})]}):p==="success"?(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Fr.jsx)(pt.Check,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:"Updated successfully"})]}):p==="error"?(0,Fr.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Fr.jsx)(pt.X,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:"Update failed"})]}):null;return(0,Fr.jsx)(nt,{open:e,onOpenChange:K,children:(0,Fr.jsxs)(et,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,Fr.jsxs)(tt,{children:[(0,Fr.jsx)(at,{className:"sr-only",children:a.title}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)("div",{className:"flex-1",children:se()}),!B&&(0,Fr.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Fr.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,Fr.jsx)(Qo,{fieldName:"title",value:a.title,label:"",onSave:O,className:"border-b border-border pb-3",disabled:p==="loading"}),(0,Fr.jsx)(Qo,{fieldName:"description",value:a.description,label:"Description",multiline:!0,onSave:O,disabled:p==="loading"}),(0,Fr.jsx)(Li,{comments:v,onAddComment:R})]}),(0,Fr.jsx)(zi,{task:a,epics:o,sprints:n,lastUpdated:c,onUpdateTask:b,onClose:K,onDelete:N,isUpdating:p==="loading",isDeleting:g==="loading",deleteState:g})]})]})})};var yo=({isOpen:e,onClose:t,onAddEpic:a})=>{let[o,n]=(0,Bt.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),r=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],s=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],c=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],l=d=>{d.preventDefault(),o.name.trim()&&(a({name:o.name.trim(),description:o.description.trim(),color:o.color,confidence:o.confidence,phase:o.phase,startDate:new Date(o.startDate),endDate:new Date(o.endDate),progress:o.progress,isSelected:!0}),n({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),t())},p=(d,g)=>{n(u=>({...u,[d]:g}))};return(0,Fr.jsx)(nt,{open:e,onOpenChange:t,children:(0,Fr.jsxs)(et,{className:"sm:max-w-md",children:[(0,Fr.jsx)(tt,{children:(0,Fr.jsx)(at,{children:"Add New Epic"})}),(0,Fr.jsxs)("form",{onSubmit:l,className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"name",children:"Epic Name"}),(0,Fr.jsx)(z,{id:"name",value:o.name,onChange:d=>p("name",d.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"description",children:"Description"}),(0,Fr.jsx)(Re,{id:"description",value:o.description,onChange:d=>p("description",d.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Color"}),(0,Fr.jsx)("div",{className:"flex gap-2 flex-wrap",children:r.map(d=>(0,Fr.jsx)("button",{type:"button",onClick:()=>p("color",d),className:`w-8 h-8 rounded-full ${d} ${o.color===d?"ring-2 ring-gray-400":""}`},d))})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Confidence"}),(0,Fr.jsxs)(Ne,{value:o.confidence,onValueChange:d=>p("confidence",d),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsx)(we,{children:s.map(d=>(0,Fr.jsx)(V,{value:d.value,children:d.label},d.value))})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Phase"}),(0,Fr.jsxs)(Ne,{value:o.phase.toString(),onValueChange:d=>p("phase",parseInt(d)),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsx)(we,{children:c.map(d=>(0,Fr.jsx)(V,{value:d.value.toString(),children:d.label},d.value))})]})]})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Start Date"}),(0,Fr.jsx)(z,{type:"date",value:o.startDate,onChange:d=>p("startDate",d.target.value)})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"End Date"}),(0,Fr.jsx)(z,{type:"date",value:o.endDate,onChange:d=>p("endDate",d.target.value)})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Progress (%)"}),(0,Fr.jsx)(z,{type:"number",min:"0",max:"100",value:o.progress,onChange:d=>p("progress",parseInt(d.target.value)||0)})]}),(0,Fr.jsxs)(ja,{children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Fr.jsx)(h,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var Vi=({initialTasks:e=[],initialEpics:t=[],initialSprints:a=[],initialProjects:o=[],onAddTask:n,onUpdateTask:r,onDeleteTask:s,onTaskClick:c,onAddEpic:l})=>{let[p,d]=(0,Bt.useState)(e),[g,u]=(0,Bt.useState)(t),[v,C]=(0,Bt.useState)(a),[O,b]=(0,Bt.useState)(!1),[R,N]=(0,Bt.useState)(!1),[B,K]=(0,Bt.useState)(null),[se,Z]=(0,Bt.useState)(null),me=g.filter(F=>F.isSelected).map(F=>F.id),x=v.find(F=>F.isSelected),T=p.filter(F=>{let Y=me.includes(F.epicId);return!x||x.id==="all-tasks"?Y:x.id==="backlog"?Y&&!F.sprintId:Y&&F.sprintId===x.id}),_=F=>T.filter(Y=>Y.status===F),ve=F=>{let Y={};return g.forEach(he=>{Y[he.id]=F.filter(Ye=>Ye.epicId===he.id)}),Y},A=F=>{Z(F)},S=F=>{se&&(d(Y=>Y.map(he=>he.id===se.id?{...he,status:F}:he)),r?.(se.id,{status:F}),Z(null))},X=F=>{let Y={...F,id:Date.now().toString(),createdAt:new Date};d(he=>[...he,Y]),n?.(F)},De=async(F,Y)=>{d(he=>he.map(Ye=>Ye.id===F?{...Ye,...Y}:Ye)),r&&await r(F,Y)},dt=async F=>{d(Y=>Y.filter(he=>he.id!==F)),B?.id===F&&K(null),s&&await s(F)},ct=F=>{let Y={...F,id:Date.now().toString(),isSelected:!0};u(he=>[...he,Y]),l?.(F)},je=F=>{K(F),c?.(F)};return(0,$e.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,$e.jsx)(Ze,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>b(!0)},secondaryAction:{label:"Add epic",onClick:()=>N(!0)}}),(0,$e.jsx)("div",{className:"flex-1",children:(0,$e.jsxs)("div",{className:"w-full",children:[(0,$e.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[{id:"todo",title:"To Fr",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}].map(F=>{let Y=_(F.status),he=ve(Y);return(0,$e.jsx)(ki,{title:F.title,status:F.status,taskCount:Y.length,onDrop:S,isCompact:F.status==="done",children:me.map(Ye=>{let ft=g.find(Oe=>Oe.id===Ye),D=he[Ye]||[];return D.length===0?null:(0,$e.jsxs)("div",{className:"mb-6",children:[(0,$e.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,$e.jsx)("div",{className:`w-3 h-3 rounded-full ${ft?.color}`}),(0,$e.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:ft?.name}),(0,$e.jsx)(Q,{variant:"secondary",className:"text-xs",children:D.length})]})," ",(0,$e.jsx)("div",{className:"space-y-3",children:D.map(Oe=>(0,$e.jsx)(go,{task:Oe,epic:ft,onDragStart:A,onTaskClick:je,isCompact:F.status==="done"},Oe.id))})]},Ye)})},F.id)})}),(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(vo,{isOpen:O,onClose:()=>b(!1),onAddTask:X,epics:g,sprints:v}),(0,$e.jsx)(yo,{isOpen:R,onClose:()=>N(!1),onAddEpic:ct}),B&&(0,$e.jsx)(xo,{isOpen:!!B,onClose:()=>K(null),task:B,epics:g,sprints:v,onUpdateTask:De,onDeleteTask:dt})]})]})})]})};var Ui=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:n,onAddTaskToEpic:r,onAddEpic:s,onUpdateEpic:c,onDeleteEpic:l})=>{let[p,d]=(0,Bt.useState)(null),[g,u]=(0,Bt.useState)(null),[v,C]=(0,Bt.useState)({}),O=T=>{d(T)},b=T=>{T.preventDefault()},R=(T,_)=>{T.preventDefault(),p&&p.epicId!==_&&(o(p.id,{epicId:_}),d(null))},N=T=>e.filter(_=>_.epicId===T),B=T=>{u(T.id),C({name:T.name,description:T.description,confidence:T.confidence,phase:T.phase,progress:T.progress})},K=()=>{g&&v.name&&(c(g,v),u(null),C({}))},se=()=>{u(null),C({})},Z=T=>{window.confirm("Are you sure you want to delete this epic? This will also delete all associated tasks.")&&l(T)},me=T=>({1:"Planning",2:"Development",3:"Testing",4:"Review",5:"Deployment",6:"Monitoring",7:"Optimization",8:"Maintenance",9:"Complete"})[T]||`Phase ${T}`,x=T=>{switch(T){case"high":return"bg-success/10 text-success";case"medium":return"bg-warning/10 text-warning";case"low":return"bg-destructive/10 text-destructive";default:return"bg-muted text-muted-foreground"}};return(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Fr.jsx)(Ze,{title:"Epic Planning",description:"Organize and manage your project epics, track progress, and assign tasks.",gradient:"bg-gradient-to-r from-rose-600 via-pink-600 to-fuchsia-600",primaryAction:{label:"Add epic",onClick:s}}),(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsx)("div",{className:"w-full",children:(0,Fr.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:t.map(T=>{let _=N(T.id),ve=_.reduce((A,S)=>A+S.points,0);return(0,Fr.jsxs)(j,{className:`flex flex-col ${g===T.id?"h-auto":"h-[600px]"} bg-card shadow-sm`,onDragOver:b,onDrop:A=>R(A,T.id),children:[(0,Fr.jsx)("div",{className:"p-4 border-b border-border",children:g===T.id?(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)(z,{value:v.name||"",onChange:A=>C({...v,name:A.target.value}),placeholder:"Epic name",className:"font-semibold"}),(0,Fr.jsxs)("div",{className:"flex gap-2 ml-2",children:[(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:K,className:"p-1 h-8 w-8",children:(0,Fr.jsx)(pt.Check,{className:"h-4 w-4"})}),(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:se,className:"p-1 h-8 w-8",children:(0,Fr.jsx)(pt.X,{className:"h-4 w-4"})})]})]}),(0,Fr.jsx)(Re,{value:v.description||"",onChange:A=>C({...v,description:A.target.value}),placeholder:"Epic description",className:"text-sm min-h-[60px]"}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("label",{className:"text-xs text-muted-foreground",children:"Confidence"}),(0,Fr.jsxs)(Ne,{value:v.confidence||T.confidence,onValueChange:A=>C({...v,confidence:A}),children:[(0,Fr.jsx)(ye,{className:"text-xs",children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"low",children:"Low"}),(0,Fr.jsx)(V,{value:"medium",children:"Medium"}),(0,Fr.jsx)(V,{value:"high",children:"High"})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("label",{className:"text-xs text-muted-foreground",children:"Phase"}),(0,Fr.jsxs)(Ne,{value:v.phase?.toString()||T.phase.toString(),onValueChange:A=>C({...v,phase:parseInt(A)}),children:[(0,Fr.jsx)(ye,{className:"text-xs",children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsx)(we,{children:[1,2,3,4,5,6,7,8,9].map(A=>(0,Fr.jsxs)(V,{value:A.toString(),children:["Phase ",A]},A))})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("label",{className:"text-xs text-muted-foreground",children:"Progress (%)"}),(0,Fr.jsx)(z,{type:"number",min:"0",max:"100",value:v.progress||T.progress,onChange:A=>C({...v,progress:parseInt(A.target.value)||0}),className:"text-xs"})]})]}):(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Fr.jsx)("div",{className:`w-4 h-4 rounded-full ${T.color}`}),(0,Fr.jsx)("h3",{className:"font-semibold text-foreground select-none flex-1",children:T.name}),(0,Fr.jsxs)("div",{className:"flex gap-1",children:[(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>B(T),className:"p-1 h-8 w-8",children:(0,Fr.jsx)(pt.Edit2,{className:"h-3 w-3"})}),(0,Fr.jsx)(h,{size:"sm",variant:"ghost",onClick:()=>Z(T.id),className:"p-1 h-8 w-8 hover:bg-destructive/10 hover:text-destructive",children:(0,Fr.jsx)(pt.Trash2,{className:"h-3 w-3"})})]})]}),(0,Fr.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[(0,Fr.jsxs)(Q,{className:`text-xs ${x(T.confidence)}`,children:[T.confidence," confidence"]}),(0,Fr.jsxs)(Q,{variant:"outline",className:"text-xs",children:["Phase ",T.phase]}),(0,Fr.jsxs)(Q,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[_.length," tasks"]}),(0,Fr.jsxs)(Q,{variant:"secondary",className:"text-xs bg-muted text-muted-foreground",children:[ve," pts"]})]}),T.description&&(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground mb-3 select-none",children:T.description}),(0,Fr.jsxs)("div",{className:"mb-3",children:[(0,Fr.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground mb-1",children:[(0,Fr.jsx)("span",{className:"select-none",children:"Progress"}),(0,Fr.jsxs)("span",{className:"select-none",children:[T.progress,"%"]})]}),(0,Fr.jsx)("div",{className:"w-full bg-muted rounded-full h-2",children:(0,Fr.jsx)("div",{className:"bg-primary h-2 rounded-full transition-all duration-300",style:{width:`${T.progress}%`}})})]}),(0,Fr.jsxs)(h,{onClick:()=>r(T.id),variant:"outline",size:"sm",className:"w-full gap-2",children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"}),"Add Task"]})]})}),(0,Fr.jsx)("div",{className:"flex-1 p-4 overflow-y-auto",children:(0,Fr.jsx)("div",{className:`space-y-3 min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${p?"border-primary bg-primary/10":"border-border"}`,children:_.length===0?(0,Fr.jsxs)("div",{className:"flex flex-col items-center justify-center h-32 text-muted-foreground border-2 border-dashed border-border rounded-lg",children:[(0,Fr.jsx)(pt.Move,{className:"h-8 w-8 mb-2"}),(0,Fr.jsx)("span",{className:"text-sm select-none",children:"Drop tasks here"})]}):_.map(A=>(0,Fr.jsx)(go,{task:A,epic:T,onDragStart:O,onTaskClick:n,isCompact:!0},A.id))})})]},T.id)})})})})]})};var $Fr=require("react-day-picker");function No({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Fr.jsx)($Fr.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:f("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:f(Ya({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full pt-2",cell:f("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:f(Ya({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}No.displayName="Calendar";var Gi=be(require("react")),kt=be(require("@radix-Mr/react-popover"));var ar=kt.Root,or=kt.Trigger;var Co=Gi.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},n)=>(0,Fr.jsx)(kt.Portal,{children:(0,Fr.jsx)(kt.Content,{ref:n,align:t,sideOffset:a,className:f("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Co.displayName=kt.Content.displayName;var ir=require("date-fns");var Wi=({isOpen:e,onClose:t,onAddSprint:a})=>{let[o,n]=(0,Bt.useState)({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),r=c=>{c.preventDefault(),!(!o.name||!o.startDate||!o.endDate)&&(a({name:o.name,description:o.description,startDate:o.startDate,endDate:o.endDate,isActive:o.isActive,isSelected:!1}),n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t())},s=()=>{n({name:"",description:"",startDate:void 0,endDate:void 0,isActive:!1}),t()};return(0,Fr.jsx)(nt,{open:e,onOpenChange:s,children:(0,Fr.jsxs)(et,{className:"sm:max-w-md",children:[(0,Fr.jsx)(tt,{children:(0,Fr.jsx)(at,{children:"Add New Sprint"})}),(0,Fr.jsxs)("form",{onSubmit:r,className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"name",children:"Sprint Name *"}),(0,Fr.jsx)(z,{id:"name",value:o.name,onChange:c=>n(l=>({...l,name:c.target.value})),placeholder:"e.g., Sprint 3",required:!0})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"description",children:"Description"}),(0,Fr.jsx)(Re,{id:"description",value:o.description,onChange:c=>n(l=>({...l,description:c.target.value})),placeholder:"Brief description of sprint goals",rows:3})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"Start Date *"}),(0,Fr.jsxs)(ar,{children:[(0,Fr.jsx)(or,{asChild:!0,children:(0,Fr.jsxs)(h,{variant:"outline",className:f("w-full justify-start text-left font-normal",!o.startDate&&"text-muted-foreground"),children:[(0,Fr.jsx)(pt.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.startDate?(0,ir.format)(o.startDate,"PPP"):"Pick a date"]})}),(0,Fr.jsx)(Co,{className:"w-auto p-0",align:"start",children:(0,Fr.jsx)(No,{mode:"single",selected:o.startDate,onSelect:c=>n(l=>({...l,startDate:c})),initialFocus:!0})})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{children:"End Date *"}),(0,Fr.jsxs)(ar,{children:[(0,Fr.jsx)(or,{asChild:!0,children:(0,Fr.jsxs)(h,{variant:"outline",className:f("w-full justify-start text-left font-normal",!o.endDate&&"text-muted-foreground"),children:[(0,Fr.jsx)(pt.CalendarIcon,{className:"mr-2 h-4 w-4"}),o.endDate?(0,ir.format)(o.endDate,"PPP"):"Pick a date"]})}),(0,Fr.jsx)(Co,{className:"w-auto p-0",align:"start",children:(0,Fr.jsx)(No,{mode:"single",selected:o.endDate,onSelect:c=>n(l=>({...l,endDate:c})),initialFocus:!0,disabled:c=>o.startDate?c<o.startDate:!1})})]})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)("input",{type:"checkbox",id:"isActive",checked:o.isActive,onChange:c=>n(l=>({...l,isActive:c.target.checked})),className:"rounded border-gray-300"}),(0,Fr.jsx)(P,{htmlFor:"isActive",children:"Set as active sprint"})]}),(0,Fr.jsxs)("div",{className:"flex justify-end gap-3 pt-4",children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:s,children:"Cancel"}),(0,Fr.jsx)(h,{type:"submit",disabled:!o.name||!o.startDate||!o.endDate,children:"Add Sprint"})]})]})]})})};var qi=({tasks:e,epics:t,sprints:a,onUpdateTask:o,onTaskClick:n,onAddSprint:r})=>{let[s,c]=(0,Bt.useState)(["2"]),[l,p]=(0,Bt.useState)(null),[d,g]=(0,Bt.useState)(!1),[u,v]=(0,Bt.useState)(null),C=e.filter(S=>!S.sprintId),O=e.filter(S=>S.sprintId&&s.includes(S.sprintId)),b=[...a].filter(S=>S.id!=="backlog"&&S.id!=="all-tasks").sort((S,X)=>S.startDate.getTime()-X.startDate.getTime()),R=S=>t.find(X=>X.id===S),N=S=>a.find(X=>X.id===S),B=S=>{switch(S){case"high":return"bg-destructive/20 text-destructive";case"medium":return"bg-warning/20 text-warning";case"low":return"bg-success/20 text-success";default:return"bg-muted text-muted-foreground"}},K=S=>S.split(" ").map(X=>X[0]).join("").toUpperCase(),se=S=>{p(S)},Z=S=>{S.preventDefault()},me=S=>{v(S)},x=()=>{v(null)},T=(S,X)=>{S.preventDefault(),v(null),l&&(o(l.id,{sprintId:X==="backlog"?void 0:X}),p(null))},_=S=>{S==="backlog"||S==="all-tasks"||c(X=>X.includes(S)?X.filter(De=>De!==S):[...X,S])},ve=S=>{r(S),g(!1)},A=({task:S,showSprint:X=!1})=>{let De=R(S.epicId),dt=S.sprintId?N(S.sprintId):null,[ct,je]=(0,Bt.useState)(!1),He=he=>{he.defaultPrevented||ct||n(S)},F=he=>{je(!0),se(S)},Y=()=>{je(!1)};return(0,Fr.jsx)(j,{className:`p-3 cursor-grab transition-all duration-200 hover:shadow-md bg-card border-border hover:border-border/80 active:cursor-grabbing ${ct?"opacity-50 shadow-lg scale-105":""} ${l?.id===S.id?"ring-2 ring-primary":""}`,draggable:!0,onDragStart:F,onDragEnd:Y,onClick:He,children:(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Fr.jsx)("h4",{className:"font-medium text-sm text-foreground line-clamp-1 select-none pointer-events-none",children:S.title}),(0,Fr.jsx)(Q,{className:`text-xs select-none pointer-events-none ${B(S.priority)}`,children:S.priority[0].toUpperCase()})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-xs pointer-events-none",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-1",children:[De&&(0,Fr.jsx)("div",{className:`w-2 h-2 rounded-full ${De.color}`}),(0,Fr.jsx)("span",{className:"text-muted-foreground truncate select-none",children:De?.name})]}),(0,Fr.jsx)("span",{className:"text-muted-foreground select-none",children:K(S.assignee)})]}),X&&dt&&(0,Fr.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground pointer-events-none",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-3 w-3"}),(0,Fr.jsx)("span",{className:"select-none",children:dt.name})]})]})})};return(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Fr.jsx)(Ze,{title:"Sprint Planning",description:"Plan and organize tasks across sprints and manage your development timeline.",gradient:"bg-gradient-to-r from-orange-600 via-amber-600 to-yellow-600",primaryAction:{label:"Add sprint",onClick:()=>g(!0)}}),(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsxs)("div",{className:"w-full",children:[(0,Fr.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:[(0,Fr.jsx)("div",{className:"lg:col-span-1",children:(0,Fr.jsxs)(j,{className:"p-4 h-full bg-card shadow-sm",onDragOver:Z,onDragEnter:()=>me("backlog"),onDragLeave:x,onDrop:S=>T(S,"backlog"),children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Fr.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Backlog"}),(0,Fr.jsx)(Q,{variant:"secondary",className:"bg-muted text-muted-foreground",children:C.length})]}),(0,Fr.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[600px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${u==="backlog"?"border-primary bg-primary/10":"border-border"}`,children:[C.map(S=>(0,Fr.jsx)(A,{task:S},S.id)),C.length===0&&(0,Fr.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here to move to backlog"})]})]})}),(0,Fr.jsx)("div",{className:"lg:col-span-3",children:(0,Fr.jsxs)("div",{className:"space-y-4",children:[(0,Fr.jsxs)(j,{className:"p-4 bg-card shadow-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Fr.jsx)("h3",{className:"font-semibold text-foreground select-none",children:"Select Sprints to View"}),(0,Fr.jsxs)(h,{onClick:()=>g(!0),className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",size:"sm",children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"}),"Add Sprint"]})]}),(0,Fr.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:b.map(S=>(0,Fr.jsxs)(h,{variant:s.includes(S.id)?"default":"outline",size:"sm",onClick:()=>_(S.id),className:"text-xs h-8",children:[S.name,S.isActive&&(0,Fr.jsx)("span",{className:"ml-1 text-success",children:"\u25CF"})]},S.id))})]}),(0,Fr.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:s.map(S=>b.find(X=>X.id===S)).filter(Boolean).sort((S,X)=>S.startDate.getTime()-X.startDate.getTime()).map(S=>{let X=O.filter(De=>De.sprintId===S.id);return(0,Fr.jsxs)(j,{className:"p-4 bg-card shadow-sm",onDragOver:Z,onDragEnter:()=>me(S.id),onDragLeave:x,onDrop:De=>T(De,S.id),children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h3",{className:"font-semibold text-foreground select-none",children:S.name}),S.isActive&&(0,Fr.jsx)("span",{className:"text-xs text-success font-medium select-none",children:"Active Sprint"})]}),(0,Fr.jsx)(Q,{variant:"secondary",className:"bg-muted text-muted-foreground",children:X.length})]}),(0,Fr.jsxs)("div",{className:`space-y-3 overflow-y-auto max-h-[500px] min-h-[200px] border-2 border-dashed rounded p-3 transition-colors ${u===S.id?"border-primary bg-primary/10":"border-border"}`,children:[X.map(De=>(0,Fr.jsx)(A,{task:De},De.id)),X.length===0&&(0,Fr.jsx)("div",{className:"flex items-center justify-center h-32 text-muted-foreground text-sm select-none",children:"Drop tasks here"})]})]},S.id)})})," "]})})]}),(0,Fr.jsx)(Wi,{isOpen:d,onClose:()=>g(!1),onAddSprint:ve})]})})]})};var fl=e=>{switch(e){case"high":return"\u{1F534}";case"medium":return"\u{1F7E1}";case"low":return"\u{1F7E2}";default:return"\u26AA"}},vl=e=>e.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),bl=e=>{let[t,a]=e.split(":"),o=new Date;return o.setHours(parseInt(t),parseInt(a)),o.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},sr=(e,t)=>{let a=new Date,o=new Date(e);if(t){let[n,r]=t.split(":");o.setHours(parseInt(n),parseInt(r))}return o<a},nr=e=>{let t=new Date;return e.toDateString()===t.toDateString()},hl=e=>{let t=new Date;return t.setDate(t.getDate()+1),e.toDateString()===t.toDateString()},xl=({colleagues:e,onAddReminder:t,trigger:a})=>{let[o,n]=(0,Bt.useState)(!1),[r,s]=(0,Bt.useState)({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""});return(0,Fr.jsxs)(nt,{open:o,onOpenChange:n,children:[(0,Fr.jsx)(Ti,{asChild:!0,children:a}),(0,Fr.jsxs)(et,{className:"max-w-2xl",children:[(0,Fr.jsx)(tt,{children:(0,Fr.jsx)(at,{children:"Add New Reminder"})}),(0,Fr.jsxs)("form",{onSubmit:l=>{l.preventDefault();let p=e.find(g=>g.id===r.colleagueId);if(!p)return;let d={title:r.title,description:r.description,dueDate:new Date(r.dueDate),dueTime:r.dueTime||void 0,colleague:p,isCompleted:!1,isRecurring:r.isRecurring,recurrencePattern:r.isRecurring?r.recurrencePattern:void 0,recurrenceInterval:r.isRecurring?r.recurrenceInterval:void 0,priority:r.priority,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderEnabled?r.reminderMinutes:void 0,tags:r.tags?r.tags.split(",").map(g=>g.trim()):void 0};t(d),n(!1),s({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})},className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"title",children:"Title"}),(0,Fr.jsx)(z,{id:"title",value:r.title,onChange:l=>s({...r,title:l.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"priority",children:"Priority"}),(0,Fr.jsxs)(Ne,{value:r.priority,onValueChange:l=>s({...r,priority:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"low",children:"\u{1F7E2} Low"}),(0,Fr.jsx)(V,{value:"medium",children:"\u{1F7E1} Medium"}),(0,Fr.jsx)(V,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"description",children:"Description"}),(0,Fr.jsx)(Re,{id:"description",value:r.description,onChange:l=>s({...r,description:l.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"dueDate",children:"Due Date"}),(0,Fr.jsx)(z,{id:"dueDate",type:"date",value:r.dueDate,onChange:l=>s({...r,dueDate:l.target.value}),required:!0})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"dueTime",children:"Due Time (optional)"}),(0,Fr.jsx)(z,{id:"dueTime",type:"time",value:r.dueTime,onChange:l=>s({...r,dueTime:l.target.value})})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"colleague",children:"Assigned Colleague"}),(0,Fr.jsxs)(Ne,{value:r.colleagueId,onValueChange:l=>s({...r,colleagueId:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{placeholder:"Select a digital colleague"})}),(0,Fr.jsx)(we,{children:e.map(l=>(0,Fr.jsx)(V,{value:l.id,children:l.name},l.id))})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)("input",{type:"checkbox",id:"isRecurring",checked:r.isRecurring,onChange:l=>s({...r,isRecurring:l.target.checked}),className:"rounded border-border"}),(0,Fr.jsx)(P,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),r.isRecurring&&(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"recurrencePattern",children:"Frequency"}),(0,Fr.jsxs)(Ne,{value:r.recurrencePattern,onValueChange:l=>s({...r,recurrencePattern:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"daily",children:"Daily"}),(0,Fr.jsx)(V,{value:"weekly",children:"Weekly"}),(0,Fr.jsx)(V,{value:"monthly",children:"Monthly"}),(0,Fr.jsx)(V,{value:"yearly",children:"Yearly"})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"recurrenceInterval",children:"Every"}),(0,Fr.jsx)(z,{id:"recurrenceInterval",type:"number",min:"1",value:r.recurrenceInterval,onChange:l=>s({...r,recurrenceInterval:parseInt(l.target.value)})})]})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)("input",{type:"checkbox",id:"reminderEnabled",checked:r.reminderEnabled,onChange:l=>s({...r,reminderEnabled:l.target.checked}),className:"rounded border-border"}),(0,Fr.jsx)(P,{htmlFor:"reminderEnabled",children:"Enable reminder notifications"})]}),r.reminderEnabled&&(0,Fr.jsxs)("div",{className:"pl-6",children:[(0,Fr.jsx)(P,{htmlFor:"reminderMinutes",children:"Remind me"}),(0,Fr.jsxs)(Ne,{value:r.reminderMinutes.toString(),onValueChange:l=>s({...r,reminderMinutes:parseInt(l)}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"5",children:"5 minutes before"}),(0,Fr.jsx)(V,{value:"15",children:"15 minutes before"}),(0,Fr.jsx)(V,{value:"30",children:"30 minutes before"}),(0,Fr.jsx)(V,{value:"60",children:"1 hour before"}),(0,Fr.jsx)(V,{value:"1440",children:"1 day before"})]})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"tags",children:"Tags (comma-separated)"}),(0,Fr.jsx)(z,{id:"tags",value:r.tags,onChange:l=>s({...r,tags:l.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,Fr.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:()=>n(!1),children:"Cancel"}),(0,Fr.jsx)(h,{type:"submit",children:"Add Reminder"})]})]})]})]})},yl=({reminder:e,colleagues:t,onUpdateReminder:a,open:o,onClose:n})=>{let[r,s]=(0,Bt.useState)({title:e.title,description:e.description,dueDate:e.dueDate.toISOString().split("T")[0],dueTime:e.dueTime||"",colleagueId:e.colleague.id,priority:e.priority,isRecurring:e.isRecurring,recurrencePattern:e.recurrencePattern||"weekly",recurrenceInterval:e.recurrenceInterval||1,reminderEnabled:e.reminderEnabled,reminderMinutes:e.reminderMinutes||15,tags:e.tags?.join(", ")||""});return(0,Fr.jsx)(nt,{open:o,onOpenChange:n,children:(0,Fr.jsxs)(et,{className:"max-w-2xl",children:[(0,Fr.jsx)(tt,{children:(0,Fr.jsx)(at,{children:"Edit Reminder"})}),(0,Fr.jsxs)("form",{onSubmit:l=>{l.preventDefault();let p=t.find(g=>g.id===r.colleagueId);if(!p)return;let d={title:r.title,description:r.description,dueDate:new Date(r.dueDate),dueTime:r.dueTime||void 0,colleague:p,isRecurring:r.isRecurring,recurrencePattern:r.isRecurring?r.recurrencePattern:void 0,recurrenceInterval:r.isRecurring?r.recurrenceInterval:void 0,priority:r.priority,reminderEnabled:r.reminderEnabled,reminderMinutes:r.reminderEnabled?r.reminderMinutes:void 0,tags:r.tags?r.tags.split(",").map(g=>g.trim()):void 0};a(e.id,d),n()},className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-title",children:"Title"}),(0,Fr.jsx)(z,{id:"edit-title",value:r.title,onChange:l=>s({...r,title:l.target.value}),placeholder:"Enter reminder title",required:!0})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-priority",children:"Priority"}),(0,Fr.jsxs)(Ne,{value:r.priority,onValueChange:l=>s({...r,priority:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"low",children:"\u{1F7E2} Low"}),(0,Fr.jsx)(V,{value:"medium",children:"\u{1F7E1} Medium"}),(0,Fr.jsx)(V,{value:"high",children:"\u{1F534} High"})]})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-description",children:"Description"}),(0,Fr.jsx)(Re,{id:"edit-description",value:r.description,onChange:l=>s({...r,description:l.target.value}),placeholder:"Enter reminder description",rows:3})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-dueDate",children:"Due Date"}),(0,Fr.jsx)(z,{id:"edit-dueDate",type:"date",value:r.dueDate,onChange:l=>s({...r,dueDate:l.target.value}),required:!0})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),(0,Fr.jsx)(z,{id:"edit-dueTime",type:"time",value:r.dueTime,onChange:l=>s({...r,dueTime:l.target.value})})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-colleague",children:"Assigned Colleague"}),(0,Fr.jsxs)(Ne,{value:r.colleagueId,onValueChange:l=>s({...r,colleagueId:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{placeholder:"Select a digital colleague"})}),(0,Fr.jsx)(we,{children:t.map(l=>(0,Fr.jsx)(V,{value:l.id,children:l.name},l.id))})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)("input",{type:"checkbox",id:"edit-isRecurring",checked:r.isRecurring,onChange:l=>s({...r,isRecurring:l.target.checked}),className:"rounded border-border"}),(0,Fr.jsx)(P,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]}),r.isRecurring&&(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-recurrencePattern",children:"Frequency"}),(0,Fr.jsxs)(Ne,{value:r.recurrencePattern,onValueChange:l=>s({...r,recurrencePattern:l}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"daily",children:"Daily"}),(0,Fr.jsx)(V,{value:"weekly",children:"Weekly"}),(0,Fr.jsx)(V,{value:"monthly",children:"Monthly"}),(0,Fr.jsx)(V,{value:"yearly",children:"Yearly"})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-recurrenceInterval",children:"Every"}),(0,Fr.jsx)(z,{id:"edit-recurrenceInterval",type:"number",min:"1",value:r.recurrenceInterval,onChange:l=>s({...r,recurrenceInterval:parseInt(l.target.value)})})]})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)("input",{type:"checkbox",id:"edit-reminderEnabled",checked:r.reminderEnabled,onChange:l=>s({...r,reminderEnabled:l.target.checked}),className:"rounded border-border"}),(0,Fr.jsx)(P,{htmlFor:"edit-reminderEnabled",children:"Enable reminder notifications"})]}),r.reminderEnabled&&(0,Fr.jsxs)("div",{className:"pl-6",children:[(0,Fr.jsx)(P,{htmlFor:"edit-reminderMinutes",children:"Remind me"}),(0,Fr.jsxs)(Ne,{value:r.reminderMinutes.toString(),onValueChange:l=>s({...r,reminderMinutes:parseInt(l)}),children:[(0,Fr.jsx)(ye,{children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsx)(V,{value:"5",children:"5 minutes before"}),(0,Fr.jsx)(V,{value:"15",children:"15 minutes before"}),(0,Fr.jsx)(V,{value:"30",children:"30 minutes before"}),(0,Fr.jsx)(V,{value:"60",children:"1 hour before"}),(0,Fr.jsx)(V,{value:"1440",children:"1 day before"})]})]})]})]}),(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)(P,{htmlFor:"edit-tags",children:"Tags (comma-separated)"}),(0,Fr.jsx)(z,{id:"edit-tags",value:r.tags,onChange:l=>s({...r,tags:l.target.value}),placeholder:"e.g., urgent, meeting, follow-up"})]}),(0,Fr.jsxs)("div",{className:"flex justify-end space-x-2",children:[(0,Fr.jsx)(h,{type:"button",variant:"outline",onClick:n,children:"Cancel"}),(0,Fr.jsx)(h,{type:"submit",children:"Save Changes"})]})]})]})})},wl=({reminder:e,colleagues:t,onUpdateReminder:a,onDeleteReminder:o})=>{let[n,r]=(0,Bt.useState)(!1),s=sr(e.dueDate,e.dueTime),c=nr(e.dueDate),l=hl(e.dueDate),p=()=>{a(e.id,{isCompleted:!e.isCompleted,completedAt:e.isCompleted?void 0:new Date})},d=()=>c?"Today":l?"Tomorrow":s&&!e.isCompleted?"Overdue":vl(e.dueDate);return(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(yl,{reminder:e,colleagues:t,onUpdateReminder:a,open:n,onClose:()=>r(!1)}),(0,Fr.jsx)(j,{className:`transition-all duration-200 ${e.isCompleted?"opacity-60":""} ${s&&!e.isCompleted?"border-destructive/50 bg-destructive/5":""}`,children:(0,Fr.jsx)(ie,{className:"p-4",children:(0,Fr.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Fr.jsxs)("div",{className:"flex items-start space-x-3 flex-1",children:[(0,Fr.jsx)("button",{onClick:p,className:"pt-1 text-primary hover:text-primary/80",children:e.isCompleted?(0,Fr.jsx)(pt.CheckCircle,{className:"h-5 w-5"}):(0,Fr.jsx)(pt.Circle,{className:"h-5 w-5"})}),(0,Fr.jsxs)("div",{className:"flex-1",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-2 mb-1",children:[(0,Fr.jsx)("h3",{className:`font-semibold ${e.isCompleted?"line-through text-muted-foreground":""}`,children:e.title}),(0,Fr.jsx)("span",{className:"text-sm",children:fl(e.priority)}),e.isRecurring&&(0,Fr.jsx)(pt.Repeat,{className:"h-4 w-4 text-primary"}),e.reminderEnabled&&(0,Fr.jsx)(pt.Bell,{className:"h-4 w-4 text-success"})]}),(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:e.description}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[(0,Fr.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Fr.jsx)(pt.Calendar,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{className:s&&!e.isCompleted?"text-destructive font-medium":"",children:d()})]}),e.dueTime&&(0,Fr.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Fr.jsx)(pt.Clock,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:bl(e.dueTime)})]}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Fr.jsx)(pt.User,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:e.colleague.name})]})]}),e.tags&&e.tags.length>0&&(0,Fr.jsx)("div",{className:"flex flex-wrap gap-1 pt-2",children:e.tags.map((g,u)=>(0,Fr.jsx)(Q,{variant:"secondary",className:"text-xs",children:g},u))})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,Fr.jsx)(h,{variant:"ghost",size:"sm",onClick:()=>r(!0),className:"h-8 w-8 p-0",children:(0,Fr.jsx)(pt.Edit2,{className:"h-4 w-4"})}),(0,Fr.jsx)(h,{variant:"ghost",size:"sm",onClick:()=>o(e.id),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:(0,Fr.jsx)(pt.Trash2,{className:"h-4 w-4"})})]})]})})})]})},Ji=({initialReminders:e=[],initialColleagues:t=[],onAddReminder:a,onUpdateReminder:o,onDeleteReminder:n})=>{let[r,s]=(0,Bt.useState)(e),[c]=(0,Bt.useState)(t),[l,p]=(0,Bt.useState)("all"),[d,g]=(0,Bt.useState)(""),u=N=>{let B={...N,id:Date.now().toString(),createdAt:new Date};s(K=>[...K,B]),a?.(N)},v=(N,B)=>{s(K=>K.map(se=>se.id===N?{...se,...B}:se)),o?.(N,B)},C=N=>{s(B=>B.filter(K=>K.id!==N)),n?.(N)},b=r.filter(N=>{if(d){let B=d.toLowerCase();if(!(N.title.toLowerCase().includes(B)||N.description.toLowerCase().includes(B)||N.colleague.name.toLowerCase().includes(B)||N.tags?.some(se=>se.toLowerCase().includes(B))))return!1}switch(l){case"pending":return!N.isCompleted;case"completed":return N.isCompleted;case"overdue":return!N.isCompleted&&sr(N.dueDate,N.dueTime);case"today":return nr(N.dueDate);default:return!0}}).sort((N,B)=>{if(N.isCompleted&&!B.isCompleted)return 1;if(!N.isCompleted&&B.isCompleted)return-1;let K={high:3,medium:2,low:1},se=K[B.priority]-K[N.priority];return se!==0?se:N.dueDate.getTime()-B.dueDate.getTime()}),R={total:r.length,pending:r.filter(N=>!N.isCompleted).length,completed:r.filter(N=>N.isCompleted).length,overdue:r.filter(N=>!N.isCompleted&&sr(N.dueDate,N.dueTime)).length,today:r.filter(N=>nr(N.dueDate)).length};return(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Fr.jsx)(Ze,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{let N={title:"New Reminder",description:"Don't forget to complete this task",dueDate:new Date,dueTime:"09:00",colleague:c[0]||{id:"1",name:"Default Colleague",department:"General",role:"Team Member"},isCompleted:!1,isRecurring:!1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,tags:["reminder"]};u(N)}}}),(0,Fr.jsx)("div",{className:"h-full bg-background",children:(0,Fr.jsxs)("div",{className:"p-6",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,Fr.jsxs)("div",{children:[(0,Fr.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),(0,Fr.jsx)("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),(0,Fr.jsx)(xl,{colleagues:c,onAddReminder:u,trigger:(0,Fr.jsxs)(h,{className:"flex items-center space-x-2",children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"}),(0,Fr.jsx)("span",{children:"Add Reminder"})]})})]}),(0,Fr.jsxs)("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[(0,Fr.jsxs)(j,{className:"p-4",children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold text-foreground",children:R.total}),(0,Fr.jsx)("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),(0,Fr.jsxs)(j,{className:"p-4",children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold text-primary",children:R.pending}),(0,Fr.jsx)("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),(0,Fr.jsxs)(j,{className:"p-4",children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold text-success",children:R.completed}),(0,Fr.jsx)("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),(0,Fr.jsxs)(j,{className:"p-4",children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold text-destructive",children:R.overdue}),(0,Fr.jsx)("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),(0,Fr.jsxs)(j,{className:"p-4",children:[(0,Fr.jsx)("div",{className:"text-2xl font-bold text-warning",children:R.today}),(0,Fr.jsx)("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-4 mb-6",children:[(0,Fr.jsx)("div",{className:"flex-1",children:(0,Fr.jsx)(z,{placeholder:"Search reminders...",value:d,onChange:N=>g(N.target.value),className:"max-w-md"})}),(0,Fr.jsxs)(Ne,{value:l,onValueChange:N=>p(N),children:[(0,Fr.jsx)(ye,{className:"w-40",children:(0,Fr.jsx)(Te,{})}),(0,Fr.jsxs)(we,{children:[(0,Fr.jsxs)(V,{value:"all",children:["All (",R.total,")"]}),(0,Fr.jsxs)(V,{value:"pending",children:["Pending (",R.pending,")"]}),(0,Fr.jsxs)(V,{value:"completed",children:["Completed (",R.completed,")"]}),(0,Fr.jsxs)(V,{value:"overdue",children:["Overdue (",R.overdue,")"]}),(0,Fr.jsxs)(V,{value:"today",children:["Today (",R.today,")"]})]})]})]}),(0,Fr.jsx)("div",{className:"space-y-4",children:b.length===0?(0,Fr.jsxs)(j,{className:"p-8 text-center",children:[(0,Fr.jsx)("div",{className:"text-muted-foreground",children:d||l!=="all"?"No reminders match your filters":"No reminders yet"}),!d&&l==="all"&&(0,Fr.jsx)("p",{className:"text-sm text-muted-foreground/60 pt-2",children:"Create your first reminder to get started"})]}):b.map(N=>(0,Fr.jsx)(wl,{reminder:N,colleagues:c,onUpdateReminder:v,onDeleteReminder:C},N.id))})]})})]})};var Xi=require("next/navigation");function lr({title:e="",initialTasks:t=[],initialEpics:a=[],initialSprints:o=[],initialProjects:n=[],initialReminders:r=[],initialColleagues:s=[],initialFiles:c=[],onAddTask:l,onUpdateTask:p,onDeleteTask:d,onTaskClick:g,onAddEpic:u,onUpdateEpic:v,onDeleteEpic:C,onAddTaskToEpic:O,onAddSprint:b,onUpdateSprint:R,onDeleteSprint:N,onAddProject:B,onUpdateProject:K,onDeleteProject:se,onFileAdd:Z,onFileEdit:me,onFileDelete:x,onFileClick:T,onAddReminder:_,onUpdateReminder:ve,onDeleteReminder:A,onViewChange:S,onToggleMobileMenu:X,onTeamClick:De,onTeamChange:dt,onCopilotClick:ct}){let[je,He]=(0,Bt.useState)(t),[F,Y]=(0,Bt.useState)(a),[he,Ye]=(0,Bt.useState)(o),[ft,D]=(0,Bt.useState)(n),[Oe,Be]=(0,Bt.useState)(r),[_t,$a]=(0,Bt.useState)(s),[wa,Ka]=(0,Bt.useState)(c),[To,Ga]=(0,Bt.useState)(!1),[Ro,_a]=(0,Bt.useState)(!1),[na,Na]=(0,Bt.useState)(null),[Wa,Ca]=(0,Bt.useState)(null),[Sa,y]=(0,Bt.useState)(null),[I,xe]=(0,Bt.useState)("kanban"),[ss,ns]=(0,Bt.useState)(!1),vr=(0,Xi.useRouter)(),ls=F.filter(w=>w.isSelected).map(w=>w.id),qa=he.find(w=>w.isSelected),ds=je.filter(w=>{let L=ls.includes(w.epicId);return!qa||qa.id==="all-tasks"?L:qa.id==="backlog"?L&&!w.sprintId:L&&w.sprintId===qa.id}),Cl=w=>ds.filter(L=>L.status===w),Sl=w=>{let L={};return F.forEach(te=>{L[te.id]=w.filter(ke=>ke.epicId===te.id)}),L},Dl=w=>{y(w)},kl=w=>{Sa&&(He(L=>L.map(te=>te.id===Sa.id?{...te,status:w}:te)),y(null))},br=w=>{let L={...w,id:Date.now().toString(),createdAt:new Date};He(te=>[...te,L]),p?.(L.id,L)},Ja=(w,L)=>{He(te=>te.map(ke=>ke.id===w?{...ke,...L}:ke)),p?.(w,L)},cs=async(w,L)=>{Ja(w,L)},hr=w=>{He(L=>L.filter(te=>te.id!==w)),na?.id===w&&Na(null)},ms=async w=>{hr(w)},ps=w=>{let L={...w,id:Date.now().toString(),isSelected:!1};D(te=>[...te,L]),B?.(w)},us=(w,L)=>{D(te=>te.map(ke=>ke.id===w?L.isSelected?(vr.push(`/kanban/${w}`),{...ke,...L}):{...ke,...L}:L.isSelected&&w!==ke.id?{...ke,isSelected:!1}:ke)),K?.(w,L)},gs=w=>{D(L=>L.filter(te=>te.id!==w)),se?.(w)},fs=w=>{let L={...w,id:Date.now().toString(),isSelected:!0};Y(te=>[...te,L])},Io=()=>{_a(!0)},xr=(w,L)=>{Y(te=>te.map(ke=>ke.id===w?{...ke,...L}:ke)),v?.(w,L)},yr=w=>{Y(L=>L.filter(te=>te.id!==w)),He(L=>L.filter(te=>te.epicId!==w)),C?.(w)},wr=w=>{let L={...w,id:Date.now().toString(),isSelected:!1};Ye(te=>[...te,L]),b?.(w)},vs=(w,L)=>{Ye(te=>te.map(ke=>ke.id===w?L.isSelected?{...ke,...L}:{...ke,...L}:L.isSelected&&w!==ke.id?{...ke,isSelected:!1}:ke)),R?.(w,L)},bs=w=>{w==="backlog"||w==="all-tasks"||(Ye(L=>L.filter(te=>te.id!==w)),He(L=>L.map(te=>te.sprintId===w?{...te,sprintId:void 0}:te)),N?.(w))},Eo=w=>{Na(w)},hs=w=>{w==="planning"&&window.innerWidth<768||xe(w)},xs=()=>{ns(w=>!w),X?.()},Pl=()=>{vr.push("/")},Tl=w=>{console.log("Switching to team:",w)},Rl=w=>{console.log("Switching to team:",w)},ys=w=>{Ca(w),Ga(!0)},ws=()=>{Ga(!1),Ca(null)},Ns=w=>{let L={...w,id:Date.now().toString(),createdAt:new Date};Be(te=>[...te,L]),_?.(w)},Cs=(w,L)=>{Be(te=>te.map(ke=>ke.id===w?{...ke,...L}:ke)),ve?.(w,L)},Ss=w=>{Be(L=>L.filter(te=>te.id!==w)),A?.(w)},Ds=w=>{Ka(L=>[...L,w]),Z?.(w)},ks=w=>{me?.(w)},Ps=w=>{Ka(L=>L.filter(te=>te.name!==w)),x?.(w)},Ts=w=>{T?.(w)},Il=[{id:"todo",title:"To Fr",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],El=()=>{switch(I){case"kanban":return"Project Board";case"planning":return"Sprint Planning";case"tasks":return"Task Reminders";case"files":return"Documentation";case"epics":return"Epic Planning";default:return"Project Board"}},Ao=[{id:"1",name:"Product Development",avatar:"PD",lastUsed:new Date("2024-01-20")},{id:"2",name:"Engineering",avatar:"ENG",lastUsed:new Date("2024-01-19")},{id:"3",name:"Marketing Team",avatar:"MT",lastUsed:new Date("2024-01-18")},{id:"4",name:"Design System",avatar:"DS",lastUsed:new Date("2024-01-17")},{id:"5",name:"Sales Operations",avatar:"SO",lastUsed:new Date("2024-01-16")},{id:"6",name:"Customer Success",avatar:"CS",lastUsed:new Date("2024-01-15")}],Al=Ao.sort((w,L)=>L.lastUsed.getTime()-w.lastUsed.getTime()).slice(0,3),Ml=Ao.length>3,Bl=Ao.slice(3);return(0,Fr.jsxs)(Di,{projects:ft,epics:F,sprints:he,currentView:I,onUpdateProject:us,onDeleteProject:gs,onAddProject:ps,onUpdateEpic:xr,onDeleteEpic:yr,onAddEpic:Io,onAddSprint:wr,onUpdateSprint:vs,onDeleteSprint:bs,onViewChange:hs,mobileMenuOpen:ss,onToggleMobileMenu:xs,children:[I==="kanban"&&(0,Fr.jsx)("div",{className:"h-full",children:(0,Fr.jsx)(Vi,{initialProjects:ft,initialEpics:F,initialSprints:he,initialTasks:je,onAddTask:br,onUpdateTask:Ja,onDeleteTask:hr,onTaskClick:Eo,onAddEpic:Io})}),I==="planning"&&(0,Fr.jsx)("div",{className:"hidden md:block h-full",children:(0,Fr.jsx)(qi,{tasks:je,epics:F,sprints:he,onUpdateTask:Ja,onTaskClick:Eo,onAddSprint:wr})}),I==="tasks"&&(0,Fr.jsx)("div",{className:"h-full",children:(0,Fr.jsx)(Ji,{initialReminders:Oe,initialColleagues:_t,onAddReminder:Ns,onUpdateReminder:Cs,onDeleteReminder:Ss})}),I==="files"&&(0,Fr.jsx)("div",{className:"h-full",children:(0,Fr.jsx)(Ba,{initialFiles:wa,onFileAdd:Ds,onFileEdit:ks,onFileDelete:Ps,onFileClick:Ts,compactView:!1})}),I==="epics"&&(0,Fr.jsx)("div",{className:"h-full",children:(0,Fr.jsx)(Ui,{tasks:je,epics:F,sprints:he,onUpdateTask:Ja,onTaskClick:Eo,onAddTaskToEpic:ys,onAddEpic:Io,onUpdateEpic:xr,onDeleteEpic:yr})}),(0,Fr.jsx)(vo,{isOpen:To,onClose:ws,onAddTask:br,epics:F,sprints:he,defaultEpicId:Wa||void 0}),(0,Fr.jsx)(yo,{isOpen:Ro,onClose:()=>_a(!1),onAddEpic:fs}),na&&(0,Fr.jsx)(xo,{isOpen:!!na,onClose:()=>Na(null),task:na,onUpdateTask:cs,onDeleteTask:ms,epics:F,sprints:he})]})}var Yi=be(require("react")),Va=be(require("@radix-Mr/react-progress"));var cr=Yi.forwardRef(({className:e,value:t,...a},o)=>(0,Fr.jsx)(Va.Root,{ref:o,className:f("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:(0,Fr.jsx)(Va.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));cr.displayName=Va.Root.displayName;function Qi({project:e,onOpen:t,onShare:a,className:o}){return(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Fr.jsxs)(j,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Fr.jsxs)(Ce,{children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Fr.jsx)(Pe,{children:e.name}),(0,Fr.jsxs)(Q,{variant:"outline",className:"rounded-xl",children:["Due ",e.dueDate]})]}),(0,Fr.jsx)(qt,{children:e.description})]}),(0,Fr.jsxs)(ie,{className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Fr.jsx)("span",{children:"Progress"}),(0,Fr.jsxs)("span",{children:[e.progress,"%"]})]}),(0,Fr.jsx)(cr,{value:e.progress,className:"h-2 rounded-xl"})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Fr.jsxs)("div",{className:"flex items-center",children:[(0,Fr.jsx)(pt.Users,{className:"mr-1 h-4 w-4"}),e.members," members"]}),(0,Fr.jsxs)("div",{className:"flex items-center",children:[(0,Fr.jsx)(pt.FileText,{className:"mr-1 h-4 w-4"}),e.files," files"]})]})]}),(0,Fr.jsxs)(Jt,{className:"flex gap-2",children:[(0,Fr.jsx)(h,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"Open Project"}),(0,Fr.jsx)(h,{variant:"outline",size:"icon",className:"rounded-2xl",onClick:()=>a?.(e),children:(0,Fr.jsx)(pt.Share2,{className:"h-4 w-4"})})]})]})})}var Ua=be(require("@radix-Mr/react-checkbox")),ts=be(require("react")),mr=ts.forwardRef(({className:e,...t},a)=>(0,Fr.jsx)(Ua.Root,{className:f("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Fr.jsx)(Ua.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,Fr.jsx)(pt.Check,{className:"h-4 w-4"})})}));mr.displayName=Ua.Root.displayName;var as=({onSubmit:e,onCancel:t,isLoading:a=!1,initialData:o,className:n=""})=>{let[r,s]=(0,Bt.useState)({name:o?.name||"",objectives:o?.objectives||"",workInstructions:o?.workInstructions||"",plan:o?.plan||!1}),[c,l]=(0,Bt.useState)({}),p=()=>{let u={};return r.name.trim()?r.name.trim().length<3&&(u.name="Project name must be at least 3 characters"):u.name="Project name Bt required",r.objectives.trim()?r.objectives.trim().length<10&&(u.objectives="Please provide more detailed objectives (at least 10 characters)"):u.objectives="Project objectives are required",r.workInstructions.trim()?r.workInstructions.trim().length<20&&(u.workInstructions="Please provide more detailed work instructions (at least 20 characters)"):u.workInstructions="Work instructions are required",l(u),Object.keys(u).length===0},d=async u=>{if(u.preventDefault(),!!p())try{await e(r)}catch(v){console.error("Error submitting project form:",v)}},g=(u,v)=>{s(C=>({...C,[u]:v})),c[u]&&l(C=>({...C,[u]:void 0}))};return(0,Fr.jsxs)(j,{className:`w-full max-w-2xl ${n}`,children:[(0,Fr.jsxs)(Ce,{children:[(0,Fr.jsxs)(Pe,{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.Plus,{className:"h-5 w-5"}),"Create New Project"]}),(0,Fr.jsx)(qt,{children:"Set up a new project with clear objectives and work instructions to help your team collaborate effectively."})]}),(0,Fr.jsxs)("form",{onSubmit:d,children:[(0,Fr.jsxs)(ie,{className:"space-y-6",children:[(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"name",className:"text-sm font-medium",children:"Project Name *"}),(0,Fr.jsx)(z,{id:"name",type:"text",placeholder:"Enter project name",value:r.name,onChange:u=>g("name",u.target.value),className:c.name?"border-red-500 focus:border-red-500":"",disabled:a,maxLength:100}),c.name&&(0,Fr.jsx)("p",{className:"text-sm text-red-600",children:c.name})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"objectives",className:"text-sm font-medium",children:"Project Objectives *"}),(0,Fr.jsx)(Re,{id:"objectives",placeholder:"Describe the main goals and objectives of this project...",value:r.objectives,onChange:u=>g("objectives",u.target.value),className:`min-h-[100px] resize-y ${c.objectives?"border-red-500 focus:border-red-500":""}`,disabled:a,maxLength:1e3}),(0,Fr.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Fr.jsx)("span",{children:c.objectives&&(0,Fr.jsx)("span",{className:"text-red-600",children:c.objectives})}),(0,Fr.jsxs)("span",{children:[r.objectives.length,"/1000"]})]})]}),(0,Fr.jsxs)("div",{className:"space-y-2",children:[(0,Fr.jsx)(P,{htmlFor:"workInstructions",className:"text-sm font-medium",children:"Work Instructions *"}),(0,Fr.jsx)(Re,{id:"workInstructions",placeholder:"Provide detailed instructions on how the work should be carried out, including processes, standards, and expectations...",value:r.workInstructions,onChange:u=>g("workInstructions",u.target.value),className:`min-h-[120px] resize-y ${c.workInstructions?"border-red-500 focus:border-red-500":""}`,disabled:a,maxLength:2e3}),(0,Fr.jsxs)("div",{className:"flex justify-between text-xs text-gray-500",children:[(0,Fr.jsx)("span",{children:c.workInstructions&&(0,Fr.jsx)("span",{className:"text-red-600",children:c.workInstructions})}),(0,Fr.jsxs)("span",{children:[r.workInstructions.length,"/2000"]})]})]}),(0,Fr.jsxs)("div",{className:"space-y-3",children:[(0,Fr.jsx)(P,{className:"text-sm font-medium",children:"Project Management"}),(0,Fr.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Fr.jsx)(mr,{id:"plan",checked:r.plan,onCheckedChange:u=>g("plan",u===!0),disabled:a}),(0,Fr.jsx)(P,{htmlFor:"plan",className:"text-sm text-gray-700 cursor-pointer",children:"Enable project planning and management features"})]}),(0,Fr.jsx)("p",{className:"text-xs text-gray-500 ml-6",children:"This will allow project managers to create sprints, assign tasks, and track progress."})]})]}),(0,Fr.jsxs)(Jt,{className:"flex justify-end gap-3",children:[t&&(0,Fr.jsxs)(h,{type:"button",variant:"outline",onClick:t,disabled:a,className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Fr.jsx)(h,{type:"submit",disabled:a,className:"flex items-center gap-2",children:a?(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(pt.Loader2,{className:"h-4 w-4 animate-spin"}),"Creating..."]}):(0,Fr.jsxs)(Fr.Fragment,{children:[(0,Fr.jsx)(pt.Plus,{className:"h-4 w-4"}),"Create Project"]})})]})]})]})};function gr({projects:e=[],onAddProject:t,handleProjectOpen:a,handleProjectShare:o}){let[n,r]=(0,Bt.useState)(!1),[s,c]=(0,Bt.useState)(!1),l=async d=>{c(!0);try{await t(d),r(!1)}catch(g){console.error("Error creating project:",g)}finally{c(!1)}},p=()=>{r(!0)};return(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsx)(Ze,{title:"Project Management",description:"Organise your work into projects to collaborate with your team.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"New Project",onClick:p}}),(0,Fr.jsxs)("section",{className:"space-y-4 pt-8",children:[(0,Fr.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Projects"}),(0,Fr.jsx)("div",{className:"grid grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3",children:e.map(d=>(0,Fr.jsx)(Qi,{project:d,onOpen:a,onShare:o},d.name))})]})]},"projects-index-view")}),(0,Fr.jsx)(nt,{open:n,onOpenChange:r,children:(0,Fr.jsxs)(et,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Fr.jsxs)(tt,{className:"sr-only",children:[(0,Fr.jsx)(at,{children:"Create New Project"}),(0,Fr.jsx)(Oa,{children:"Fill out the form below to create a new project."})]}),(0,Fr.jsx)(as,{onSubmit:l,onCancel:()=>r(!1),isLoading:s,className:"border-0 shadow-none"})]})})]})}function rs({team:e,onOpen:t,className:a}){return(0,Fr.jsx)(Lo.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:a,children:(0,Fr.jsxs)(j,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Fr.jsxs)(Ce,{children:[(0,Fr.jsx)(Pe,{className:"text-lg",children:e.name}),(0,Fr.jsx)(qt,{className:"pt-1 text-sm",children:e.description})]}),(0,Fr.jsxs)(ie,{className:"space-y-4",children:[(0,Fr.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.Users,{className:"h-4 w-4 text-blue-500"}),(0,Fr.jsx)("span",{children:"Human"})]}),(0,Fr.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.Bot,{className:"h-4 w-4 text-purple-500"}),(0,Fr.jsx)("span",{children:"Digital"})]}),(0,Fr.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Fr.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Fr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Fr.jsx)(pt.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,Fr.jsx)("span",{children:"Projects"})]}),(0,Fr.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Fr.jsx)(Jt,{className:"flex gap-2",children:(0,Fr.jsx)(h,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}function fr({teams:e=[],onCreateTeam:t,onTeamOpen:a}){let[o,n]=(0,Bt.useState)(!1),r=()=>{n(!0),t?.()},s=c=>{a?.(c)};return(0,Fr.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Fr.jsx)(Lo.AnimatePresence,{mode:"wait",children:(0,Fr.jsxs)(Lo.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Fr.jsx)(Ze,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:r}}),(0,Fr.jsxs)("section",{className:"space-y-4 pt-8",children:[(0,Fr.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Fr.jsxs)("div",{className:"text-center py-12",children:[(0,Fr.jsx)("p",{className:"text-muted-foreground text-lg",children:"You'Fr not part of any teams yet."}),(0,Fr.jsx)("p",{className:"text-muted-foreground text-sm pt-2",children:"Create a new team or ask to be added to an existing one."})]}):(0,Fr.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(c=>(0,Fr.jsx)(rs,{team:c,onOpen:s},c.id))})]})]},"teams-index-view")}),(0,Fr.jsx)(nt,{open:o,onOpenChange:n,children:(0,Fr.jsxs)(et,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,Fr.jsxs)(tt,{children:[(0,Fr.jsx)(at,{children:"Create New Team"}),(0,Fr.jsx)(Oa,{children:"Set up a new team to collaborate with colleagues on projects."})]}),(0,Fr.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,Fr.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}0&&(module.exports={ColleaguesView,FileView,KnowledgeView,ProjectView,ProjectsIndexView,TeamsIndexView});
|