cortex-react-components 2.12.2 → 2.12.3
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/{chunk-OU7KVCBI.mjs → chunk-22LHS2J6.mjs} +1 -1
- package/dist/{chunk-DFWWQRJ2.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-QXA6C5VE.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-6PQ67CC6.mjs → chunk-2LINLX4S.mjs} +1 -1
- package/dist/{chunk-JULD2KZR.mjs → chunk-2QZUKVBA.mjs} +1 -1
- package/dist/{chunk-5N2D3BGH.mjs → chunk-2RGAV55J.mjs} +1 -1
- package/dist/{chunk-FT6JQ4AC.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/chunk-3QZKRKMP.mjs +1 -0
- package/dist/{chunk-AG6IN5S7.mjs → chunk-3UMMMQEH.mjs} +1 -1
- package/dist/{chunk-HTQIVWYI.mjs → chunk-444KBVNL.mjs} +1 -1
- package/dist/chunk-4A3MGS6I.mjs +1 -0
- package/dist/{chunk-2C3C5SQQ.mjs → chunk-4CU7D3X2.mjs} +1 -1
- package/dist/{chunk-ZJBZTPLD.mjs → chunk-4QRKVSTE.mjs} +1 -1
- package/dist/{chunk-T3NMKARZ.mjs → chunk-4UIARERB.mjs} +1 -1
- package/dist/{chunk-D42KIYIO.mjs → chunk-4WA47ZQA.mjs} +1 -1
- package/dist/{chunk-PXAKUW3U.mjs → chunk-56X4PU43.mjs} +1 -1
- package/dist/{chunk-ZNV6MCYI.mjs → chunk-5AWZJAK3.mjs} +1 -1
- package/dist/{chunk-Z756RYIZ.mjs → chunk-5BT4EWU5.mjs} +1 -1
- package/dist/{chunk-WWTVAR4J.mjs → chunk-5BV4MHV6.mjs} +1 -1
- package/dist/{chunk-PMOMDGBA.mjs → chunk-5NRGSTPV.mjs} +1 -1
- package/dist/{chunk-EPDV35LO.mjs → chunk-5RTGHMF3.mjs} +1 -1
- package/dist/{chunk-VFPS3FYN.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-H45UTXIK.mjs → chunk-5WV5ZFEP.mjs} +1 -1
- package/dist/{chunk-BUTUPCGN.mjs → chunk-5WVFEIMC.mjs} +1 -1
- package/dist/{chunk-EYQ4UGAJ.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/{chunk-OGN7YDFB.mjs → chunk-6C4WESLL.mjs} +1 -1
- package/dist/{chunk-GFLX67DN.mjs → chunk-6DEY5ZDD.mjs} +1 -1
- package/dist/{chunk-QEFMYXHA.mjs → chunk-6HLXIE4P.mjs} +1 -1
- package/dist/{chunk-TUTSJOO4.mjs → chunk-6SWKEZN6.mjs} +1 -1
- package/dist/{chunk-QAIS2C6W.mjs → chunk-6WQXZ6IE.mjs} +1 -1
- package/dist/{chunk-TYMRNSJ3.mjs → chunk-6XUIHSKG.mjs} +1 -1
- package/dist/{chunk-LQDJWEHX.mjs → chunk-76M7JE4D.mjs} +1 -1
- package/dist/{chunk-F5JHHMZQ.mjs → chunk-7BXIU4ZM.mjs} +1 -1
- package/dist/{chunk-QB63WPDB.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-HH4JDBUN.mjs → chunk-7GSXNSLD.mjs} +1 -1
- package/dist/{chunk-52UFJIL4.mjs → chunk-7VDNUJZC.mjs} +1 -1
- package/dist/{chunk-ESTO675Y.mjs → chunk-7WIO2CIC.mjs} +1 -1
- package/dist/{chunk-CXK2IY4V.mjs → chunk-AB43AQKL.mjs} +1 -1
- package/dist/{chunk-GZQ7JEUL.mjs → chunk-AMV3MECK.mjs} +1 -1
- package/dist/{chunk-TFPWTJ2V.mjs → chunk-AMVJPDM3.mjs} +1 -1
- package/dist/{chunk-YVNVQONM.mjs → chunk-AREQGH47.mjs} +1 -1
- package/dist/{chunk-SIFQNSEM.mjs → chunk-AZ4VR5JX.mjs} +1 -1
- package/dist/{chunk-GIGKJZGA.mjs → chunk-AZKOVKSK.mjs} +1 -1
- package/dist/{chunk-DA5SDQDL.mjs → chunk-B2EJGXDG.mjs} +1 -1
- package/dist/{chunk-JKPUXPHP.mjs → chunk-B3F6F2S4.mjs} +1 -1
- package/dist/{chunk-VXZPPTQQ.mjs → chunk-B4H6T2GP.mjs} +1 -1
- package/dist/{chunk-XXFUUOSB.mjs → chunk-BG7QXNV5.mjs} +1 -1
- package/dist/{chunk-U5UV7T63.mjs → chunk-BMA4266L.mjs} +1 -1
- package/dist/{chunk-UJ6M7EV5.mjs → chunk-CGDLOY7W.mjs} +1 -1
- package/dist/{chunk-3JEM6RIR.mjs → chunk-CO6AQNZ5.mjs} +1 -1
- package/dist/{chunk-2JKLBLDE.mjs → chunk-CSBGSBEU.mjs} +1 -1
- package/dist/{chunk-TAVSBP7M.mjs → chunk-CTAIR3TE.mjs} +1 -1
- package/dist/{chunk-QUDKEIE6.mjs → chunk-D3B2YO7G.mjs} +1 -1
- package/dist/{chunk-BEPKJ67R.mjs → chunk-D4IMQTVU.mjs} +1 -1
- package/dist/{chunk-NMAMUYGQ.mjs → chunk-DBY4SXQI.mjs} +1 -1
- package/dist/{chunk-N5GHL7UZ.mjs → chunk-DFIXTV2M.mjs} +1 -1
- package/dist/{chunk-X5RHYJW3.mjs → chunk-DKT6U7AO.mjs} +1 -1
- package/dist/{chunk-AQIMDHFI.mjs → chunk-DSSHQ6K7.mjs} +1 -1
- package/dist/{chunk-7EEEXU54.mjs → chunk-E4TE4NV6.mjs} +1 -1
- package/dist/{chunk-6PBOA7BL.mjs → chunk-EAFH3DTH.mjs} +1 -1
- package/dist/{chunk-WNBJ7C5Y.mjs → chunk-EHSOO47V.mjs} +1 -1
- package/dist/{chunk-3KBY7FKD.mjs → chunk-EOXVYLPB.mjs} +1 -1
- package/dist/{chunk-YHTFEWSZ.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-44JXFP6W.mjs → chunk-F5N6KQA2.mjs} +1 -1
- package/dist/{chunk-F6KHZ4OS.mjs → chunk-FEI5NFYO.mjs} +1 -1
- package/dist/{chunk-6CAO4IKW.mjs → chunk-FGEFYI5E.mjs} +1 -1
- package/dist/{chunk-A4XWPIEI.mjs → chunk-FHMQVAKQ.mjs} +1 -1
- package/dist/{chunk-4OAROJ4M.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/{chunk-VRZHKAJK.mjs → chunk-FMH5CZ7X.mjs} +1 -1
- package/dist/{chunk-TNCD5YIY.mjs → chunk-FMJBJ3HN.mjs} +1 -1
- package/dist/{chunk-JVJG2LOA.mjs → chunk-FT3AE7L2.mjs} +1 -1
- package/dist/{chunk-OKAETRO6.mjs → chunk-FTZRG54P.mjs} +1 -1
- package/dist/{chunk-C4SUCDRQ.mjs → chunk-GSOFCLPO.mjs} +1 -1
- package/dist/{chunk-VB7K44IF.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-BXVJNWFA.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-A5TPL5CB.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/{chunk-OHDNPAPI.mjs → chunk-I3E2TYYZ.mjs} +1 -1
- package/dist/{chunk-2LLMXGTP.mjs → chunk-IC2ABKAM.mjs} +1 -1
- package/dist/{chunk-5AYDHF5U.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-QIDPNZOL.mjs → chunk-IJQC7T2R.mjs} +1 -1
- package/dist/{chunk-E6IIUYQ7.mjs → chunk-IK3GOCAU.mjs} +1 -1
- package/dist/{chunk-NQPBIFGO.mjs → chunk-INCYANPB.mjs} +1 -1
- package/dist/{chunk-XXWSCTF5.mjs → chunk-INPV5MBU.mjs} +1 -1
- package/dist/{chunk-N5BLWWDM.mjs → chunk-IQQ7ZWCP.mjs} +1 -1
- package/dist/{chunk-NGC3C4FW.mjs → chunk-ISBVFNWD.mjs} +1 -1
- package/dist/{chunk-EBO2R46A.mjs → chunk-J4IHIM6A.mjs} +1 -1
- package/dist/{chunk-7QBPKUWN.mjs → chunk-JFFTEK6Z.mjs} +1 -1
- package/dist/{chunk-E6W2YMC3.mjs → chunk-JHNVX4UB.mjs} +1 -1
- package/dist/{chunk-4OK6PUOO.mjs → chunk-JYL3XIJX.mjs} +1 -1
- package/dist/{chunk-UXCCCQCB.mjs → chunk-KFCSVEI6.mjs} +1 -1
- package/dist/{chunk-GNIVCF53.mjs → chunk-KGEIN56Y.mjs} +1 -1
- package/dist/{chunk-HTCM27MI.mjs → chunk-KVD6XDZT.mjs} +1 -1
- package/dist/{chunk-GYTXBVCX.mjs → chunk-KX2NCNCS.mjs} +1 -1
- package/dist/{chunk-BIAOADJS.mjs → chunk-KY7WQYN4.mjs} +1 -1
- package/dist/{chunk-7RKPUKFH.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-GJUA2KUH.mjs → chunk-L5JPAKPM.mjs} +1 -1
- package/dist/{chunk-WJZDHRGO.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/{chunk-5WDNNO37.mjs → chunk-LBUC4M6L.mjs} +1 -1
- package/dist/{chunk-HPZPRZWG.mjs → chunk-LEC6GEWS.mjs} +1 -1
- package/dist/{chunk-6UVEJCVM.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-67RPQW7V.mjs → chunk-LKGCU7H6.mjs} +1 -1
- package/dist/{chunk-6WVIXUXX.mjs → chunk-LLED3RQS.mjs} +1 -1
- package/dist/chunk-LSRLBDA7.mjs +1 -0
- package/dist/{chunk-LARQXED4.mjs → chunk-LVFMFRBR.mjs} +1 -1
- package/dist/{chunk-S7N4CSMJ.mjs → chunk-LVK4QE5D.mjs} +1 -1
- package/dist/{chunk-EESKUTPD.mjs → chunk-LXZAOORS.mjs} +1 -1
- package/dist/{chunk-CXXPSCV3.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-FDJHY37W.mjs → chunk-MAAKU7PN.mjs} +1 -1
- package/dist/chunk-MDJREBVI.mjs +1 -0
- package/dist/chunk-MDPXCQ7P.mjs +4 -0
- package/dist/{chunk-NM6U4PLY.mjs → chunk-MEMUW7BY.mjs} +1 -1
- package/dist/{chunk-EYRTGZWR.mjs → chunk-MFCVMJBO.mjs} +1 -1
- package/dist/{chunk-Q6FPZ6J3.mjs → chunk-MGYV46AJ.mjs} +1 -1
- package/dist/chunk-MTNQADIW.mjs +1 -0
- package/dist/{chunk-3GLK3JM6.mjs → chunk-MU5WPW4N.mjs} +1 -1
- package/dist/chunk-MW25VRWC.mjs +1 -0
- package/dist/{chunk-6GDVIZS5.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-BOG3XLGP.mjs → chunk-MZP7RIQZ.mjs} +1 -1
- package/dist/{chunk-TR52MKZR.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/chunk-NPVUICIF.mjs +1 -0
- package/dist/{chunk-NN2RHTGW.mjs → chunk-NSMXJCXE.mjs} +1 -1
- package/dist/{chunk-2WLZ5T2D.mjs → chunk-NUHGPB5U.mjs} +1 -1
- package/dist/chunk-O5P35LEY.mjs +4 -0
- package/dist/{chunk-DGJHJHFF.mjs → chunk-OCPX4QPC.mjs} +1 -1
- package/dist/{chunk-RU435LAU.mjs → chunk-OM5ZUHCN.mjs} +1 -1
- package/dist/{chunk-YUW3HHAK.mjs → chunk-OPLUKFRN.mjs} +1 -1
- package/dist/{chunk-KUVPOOSW.mjs → chunk-ORNGKQM7.mjs} +1 -1
- package/dist/{chunk-FPWCCVDI.mjs → chunk-OYZDAMCS.mjs} +1 -1
- package/dist/{chunk-PUAHE5VJ.mjs → chunk-PDY7JYY3.mjs} +1 -1
- package/dist/{chunk-3ZXW3WQU.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-E2MPOOEL.mjs → chunk-PWXCBW2H.mjs} +1 -1
- package/dist/{chunk-E3NWG6B4.mjs → chunk-Q2JJZ5FY.mjs} +1 -1
- package/dist/{chunk-IG6J62QA.mjs → chunk-Q5NHYYRS.mjs} +1 -1
- package/dist/{chunk-3HD7RAT7.mjs → chunk-Q5Q3DJWU.mjs} +1 -1
- package/dist/{chunk-532HP37G.mjs → chunk-Q5XT55O3.mjs} +1 -1
- package/dist/{chunk-RD7LJPUV.mjs → chunk-Q67RF7VO.mjs} +1 -1
- package/dist/{chunk-K5GFFN67.mjs → chunk-Q6PKGY27.mjs} +1 -1
- package/dist/{chunk-QXNCGSQE.mjs → chunk-Q6VAKKW3.mjs} +1 -1
- package/dist/{chunk-HLWGNTZD.mjs → chunk-QBUU2AQL.mjs} +1 -1
- package/dist/{chunk-JTFMN7OL.mjs → chunk-QQVPLMPJ.mjs} +1 -1
- package/dist/{chunk-E7SIU5SS.mjs → chunk-RHR3YOLG.mjs} +1 -1
- package/dist/{chunk-P5U27QUJ.mjs → chunk-RLVKIMGU.mjs} +1 -1
- package/dist/{chunk-EUXJZBRI.mjs → chunk-RR4QSUV2.mjs} +1 -1
- package/dist/{chunk-WKLJU63E.mjs → chunk-RULSHTXR.mjs} +1 -1
- package/dist/{chunk-QMTI6672.mjs → chunk-RVHCTANZ.mjs} +1 -1
- package/dist/{chunk-RHYQ4V7N.mjs → chunk-SOIRB5TV.mjs} +1 -1
- package/dist/{chunk-RFNYVF6F.mjs → chunk-SOLZ4VQH.mjs} +1 -1
- package/dist/{chunk-FJUAYJF4.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-55OESIAK.mjs → chunk-TEB67NCD.mjs} +1 -1
- package/dist/{chunk-WH24BWZV.mjs → chunk-TJVEQJW3.mjs} +1 -1
- package/dist/{chunk-OF63XSJ4.mjs → chunk-TR6RBROH.mjs} +1 -1
- package/dist/{chunk-RPUSKO6J.mjs → chunk-TUI4S4GI.mjs} +1 -1
- package/dist/{chunk-RAAY7PEH.mjs → chunk-TVZOULLL.mjs} +1 -1
- package/dist/{chunk-HK52LPE3.mjs → chunk-TZKQXT7Y.mjs} +1 -1
- package/dist/{chunk-HYIRE7BK.mjs → chunk-U5PBLRRV.mjs} +1 -1
- package/dist/{chunk-5T4OPJ7F.mjs → chunk-U67OTPTT.mjs} +1 -1
- package/dist/{chunk-AARMIMMZ.mjs → chunk-UWEU6TLS.mjs} +1 -1
- package/dist/{chunk-5YJFMMVM.mjs → chunk-V6GC3UGV.mjs} +1 -1
- package/dist/{chunk-E43QS242.mjs → chunk-VGWDYD6Z.mjs} +1 -1
- package/dist/{chunk-6TLGI4P6.mjs → chunk-VMAPGGGW.mjs} +1 -1
- package/dist/{chunk-FSV7RCTY.mjs → chunk-VWLPVN4M.mjs} +1 -1
- package/dist/{chunk-UY4BSKPK.mjs → chunk-WISC5QJV.mjs} +1 -1
- package/dist/{chunk-EGERAM4Q.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-T3BIRW2W.mjs → chunk-XBCYPOFD.mjs} +1 -1
- package/dist/{chunk-TZTQENNX.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/chunk-XGRRLABA.mjs +8 -0
- package/dist/{chunk-WLM2ZFHF.mjs → chunk-YFAZQYK4.mjs} +1 -1
- package/dist/{chunk-GCIWMQMK.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-7WKUKFCT.mjs → chunk-YO3GQYRJ.mjs} +1 -1
- package/dist/{chunk-AWMXVMUW.mjs → chunk-YOETYY5S.mjs} +1 -1
- package/dist/{chunk-EFIJNPMM.mjs → chunk-YRMNCHFO.mjs} +1 -1
- package/dist/{chunk-BM2ZNFM6.mjs → chunk-Z22NSJMF.mjs} +1 -1
- package/dist/chunk-Z422YAPB.mjs +1 -0
- package/dist/{chunk-FHPZSG7W.mjs → chunk-ZGQC6O62.mjs} +1 -1
- package/dist/{chunk-LCIKBYDR.mjs → chunk-ZMB6R6JX.mjs} +1 -1
- package/dist/{chunk-A7S4L4P2.mjs → chunk-ZSIYEVUV.mjs} +1 -1
- package/dist/{chunk-7Z3TOFNL.mjs → chunk-ZUA4KNIR.mjs} +1 -1
- package/dist/chunk-ZWHGOTSF.mjs +1 -0
- package/dist/{chunk-UBCJPXKD.mjs → chunk-ZXPDSSCF.mjs} +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
- package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
- package/dist/components/AdvancedComponents/CommentSection.js +1 -1
- package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
- package/dist/components/AdvancedComponents/EditableField.js +1 -1
- package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
- package/dist/components/AdvancedComponents/app-header.js +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.js +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
- package/dist/components/AdvancedComponents/switch.js +1 -1
- package/dist/components/AdvancedComponents/switch.mjs +1 -1
- package/dist/components/AdvancedComponents/theme-toggle.js +1 -1
- package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
- package/dist/components/AdvancedComponents/user-selection.js +1 -1
- package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.js +1 -1
- package/dist/components/Blocks/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/Code.client.js +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.js +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.js +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.js +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/CopyButton.js +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.js +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.js +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.js +1 -1
- package/dist/components/Blocks/ProposalSummary.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/DealCard.js +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.js +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.js +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/EventCard.js +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.js +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/Image.js +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/PricingCard.js +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/ProjectCard.js +3 -3
- package/dist/components/Cards/ProjectCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.js +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/index.js +4 -4
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatCardArtefact.js +1 -1
- package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
- package/dist/components/Chat/ChatCardTask.js +1 -1
- package/dist/components/Chat/ChatCardTask.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +2 -2
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
- package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
- package/dist/components/Chat/ChatMessage.js +2 -2
- package/dist/components/Chat/ChatMessage.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +3 -3
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/capability-menu.js +1 -1
- package/dist/components/Chat/capability-menu.mjs +1 -1
- package/dist/components/Chat/chat-session-sidebar.js +1 -1
- package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +9 -9
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +22 -22
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +3 -3
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +3 -3
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-file-uploads.js +1 -1
- package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +3 -3
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +3 -3
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/index.js +2 -2
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
- package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.js +1 -1
- package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-card.js +1 -1
- package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-form.js +1 -1
- package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
- package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.js +1 -1
- package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview.js +1 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-search.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
- package/dist/components/DigitalColleagues/team-form.js +1 -1
- package/dist/components/DigitalColleagues/team-form.mjs +1 -1
- package/dist/components/DigitalColleagues/test-data.js +1 -1
- package/dist/components/DigitalColleagues/test-data.mjs +1 -1
- package/dist/components/DigitalColleagues/types.d.ts +10 -1
- package/dist/components/HeaderFooter/BrandLogo.js +1 -1
- package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.js +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Header.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
- package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
- package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.js +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/enhanced-header.js +1 -1
- package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
- package/dist/components/Heros/DashboardHero/index.js +1 -1
- package/dist/components/Heros/DashboardHero/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.js +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.js +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.js +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/CalendarView.js +1 -1
- package/dist/components/Holidays/CalendarView.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.js +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.js +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.js +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/index.js +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +2 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +3 -3
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.js +4 -4
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.js +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Filter.js +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Pagination.js +1 -1
- package/dist/components/Menus/Pagination.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.js +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/RelatedContent.js +1 -1
- package/dist/components/Menus/RelatedContent.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.js +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.js +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.js +1 -1
- package/dist/components/Other/Container.mjs +1 -1
- package/dist/components/Other/PageShape.js +1 -1
- package/dist/components/Other/PageShape.mjs +1 -1
- package/dist/components/Other/index.js +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.js +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.js +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.js +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
- package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
- package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
- package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
- package/dist/components/Payload/Media/index.js +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/index.js +1 -1
- package/dist/components/Payload/Pagination/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddEpicModal.js +1 -1
- package/dist/components/Projects/AddEpicModal.mjs +1 -1
- package/dist/components/Projects/AddSprintModal.js +1 -1
- package/dist/components/Projects/AddSprintModal.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicFilter.js +1 -1
- package/dist/components/Projects/EpicFilter.mjs +1 -1
- package/dist/components/Projects/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/FileView.js +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +5 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/KanbanColumn.js +1 -1
- package/dist/components/Projects/KanbanColumn.mjs +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.d.ts +3 -3
- package/dist/components/Projects/ProjectPage.js +2 -2
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +9 -4
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.js +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +8 -3
- package/dist/components/Projects/TaskDetailsModal.js +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/TaskSelect.js +1 -1
- package/dist/components/Projects/TaskSelect.mjs +1 -1
- package/dist/components/Projects/TaskSidebar.d.ts +2 -1
- package/dist/components/Projects/TaskSidebar.js +1 -1
- package/dist/components/Projects/TaskSidebar.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/TeamSwitcher.js +1 -1
- package/dist/components/Projects/TeamSwitcher.mjs +1 -1
- package/dist/components/Projects/business-unit-switcher.js +1 -1
- package/dist/components/Projects/business-unit-switcher.mjs +1 -1
- package/dist/components/Projects/file-list.js +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/Projects/project-card.js +1 -1
- package/dist/components/Projects/project-card.mjs +1 -1
- package/dist/components/Projects/project-form.js +1 -1
- package/dist/components/Projects/project-form.mjs +1 -1
- package/dist/components/Projects/team-card.js +1 -1
- package/dist/components/Projects/team-card.mjs +1 -1
- package/dist/components/Projects/team-switcher-bar.js +1 -1
- package/dist/components/Projects/team-switcher-bar.mjs +1 -1
- package/dist/components/Projects/test-data.js +1 -1
- package/dist/components/Projects/test-data.mjs +1 -1
- package/dist/components/dc-temp/creative.js +1 -1
- package/dist/components/dc-temp/creative.mjs +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/dc-temp/markdown-renderer.js +1 -1
- package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
- package/dist/components/dc-temp/utils.js +1 -1
- package/dist/components/dc-temp/utils.mjs +1 -1
- package/dist/components/index.js +14 -14
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.js +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.js +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.js +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/progress.mjs +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.mjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.js +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toaster.js +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +18 -18
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.js +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.js +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.js +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.js +3 -3
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.js +4 -4
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.js +3 -3
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.js +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ImageSection.js +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.js +3 -3
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.js +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.js +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.js +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +3 -3
- package/dist/sections/index.mjs +1 -1
- package/dist/styles/Colors.js +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/utils/AOSInit.js +2 -2
- package/dist/utils/AOSInit.mjs +1 -1
- package/dist/utils/cn.js +1 -1
- package/dist/utils/cn.mjs +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4RQ27GTD.mjs +0 -1
- package/dist/chunk-56AGUZR5.mjs +0 -1
- package/dist/chunk-5WH7SFOR.mjs +0 -4
- package/dist/chunk-CDH5ONCJ.mjs +0 -8
- package/dist/chunk-I2BNJCJ7.mjs +0 -1
- package/dist/chunk-KCOLYVJX.mjs +0 -1
- package/dist/chunk-KZTONTWM.mjs +0 -1
- package/dist/chunk-MZKVGPNQ.mjs +0 -1
- package/dist/chunk-RARAKOXE.mjs +0 -1
- package/dist/chunk-TSEOL53Y.mjs +0 -1
- package/dist/chunk-WXTJ6DVT.mjs +0 -4
- package/dist/chunk-ZKLSTUIP.mjs +0 -1
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var Co=Object.create;var vt=Object.defineProperty;var No=Object.getOwnPropertyDescriptor;var ko=Object.getOwnPropertyNames;var Do=Object.getPrototypeOf,So=Object.prototype.hasOwnProperty;var Po=(e,t)=>{for(var a in t)vt(e,a,{get:t[a],enumerable:!0})},oa=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ko(t))!So.call(e,n)&&n!==a&&vt(e,n,{get:()=>t[n],enumerable:!(o=No(t,n))||o.enumerable});return e};var W=(e,t,a)=>(a=e!=null?Co(Do(e)):{},oa(t||!e||!e.__esModule?vt(a,"default",{value:e,enumerable:!0}):a,e)),To=e=>oa(vt({},"__esModule",{value:!0}),e);var Mi={};Po(Mi,{ChatDemoCapabilitiesInteraction:()=>Ii,ChatDemoErrorHandling:()=>Ai,ChatDemoFileUploads:()=>Ri,ChatDemoMarkdownResponses:()=>Pi,ChatDemoToolCalling:()=>Si,ChatDemoUIComponents:()=>Ti});module.exports=To(Mi);var Ye=require("react");var no=require("@ai-sdk/react"),Mt=require("motion/react"),lo=require("lucide-react");var pa=require("clsx");var Ro=e=>{let t=Io(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split("-");return s[0]===""&&s.length!==1&&s.shift(),sa(s,t)||Ao(l)},getConflictingClassGroupIds:(l,s)=>{let m=a[l]||[];return s&&o[l]?[...m,...o[l]]:m}}},sa=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),n=o?sa(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let r=e.join("-");return t.validators.find(({validator:l})=>l(r))?.classGroupId},ia=/^\[(.+)\]$/,Ao=e=>{if(ia.test(e)){let t=ia.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Io=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Eo(Object.entries(e.classGroups),a).forEach(([r,l])=>{Bt(l,o,r,t)}),o},Bt=(e,t,a,o)=>{e.forEach(n=>{if(typeof n=="string"){let r=n===""?t:ra(t,n);r.classGroupId=a;return}if(typeof n=="function"){if(Mo(n)){Bt(n(o),t,a,o);return}t.validators.push({validator:n,classGroupId:a});return}Object.entries(n).forEach(([r,l])=>{Bt(l,ra(t,r),a,o)})})},ra=(e,t)=>{let a=e;return t.split("-").forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Mo=e=>e.isThemeGetter,Eo=(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(([l,s])=>[t+l,s])):r);return[a,n]}):e,Uo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,n=(r,l)=>{a.set(r,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let l=a.get(r);if(l!==void 0)return l;if((l=o.get(r))!==void 0)return n(r,l),l},set(r,l){a.has(r)?a.set(r,l):n(r,l)}}};var Bo=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,n=t[0],r=t.length,l=s=>{let m=[],u=0,D=0,f;for(let x=0;x<s.length;x++){let R=s[x];if(u===0){if(R===n&&(o||s.slice(x,x+r)===t)){m.push(s.slice(D,x)),D=x+r;continue}if(R==="/"){f=x;continue}}R==="["?u++:R==="]"&&u--}let y=m.length===0?s:s.substring(D),P=y.startsWith("!"),_=P?y.substring(1):y,T=f&&f>D?f-D:void 0;return{modifiers:m,hasImportantModifier:P,baseClassName:_,maybePostfixModifierPosition:T}};return a?s=>a({className:s,parseClassName:l}):l},Lo=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},_o=e=>({cache:Uo(e.cacheSize),parseClassName:Bo(e),...Ro(e)}),zo=/\s+/,Fo=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:n}=t,r=[],l=e.trim().split(zo),s="";for(let m=l.length-1;m>=0;m-=1){let u=l[m],{modifiers:D,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:P}=a(u),_=!!P,T=o(_?y.substring(0,P):y);if(!T){if(!_){s=u+(s.length>0?" "+s:s);continue}if(T=o(y),!T){s=u+(s.length>0?" "+s:s);continue}_=!1}let x=Lo(D).join(":"),R=f?x+"!":x,z=R+T;if(r.includes(z))continue;r.push(z);let w=n(T,_);for(let B=0;B<w.length;++B){let X=w[B];r.push(R+X)}s=u+(s.length>0?" "+s:s)}return s};function jo(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=na(t))&&(o&&(o+=" "),o+=a);return o}var na=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=na(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ho(e,...t){let a,o,n,r=l;function l(m){let u=t.reduce((D,f)=>f(D),e());return a=_o(u),o=a.cache.get,n=a.cache.set,r=s,s(m)}function s(m){let u=o(m);if(u)return u;let D=Fo(m,a);return n(m,D),D}return function(){return r(jo.apply(null,arguments))}}var H=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},la=/^\[(?:([a-z-]+):)?(.+)\]$/ua,Oo=/^\d+\/\d+$/,Go=new Set(["px","full","screen"]),Wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|ua|ua|ua|min|max))|\ua(calc|min|max|clamp)\(.+\)|^0$/,$o=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=e=>Ze(e)||Go.has(e)||Oo.test(e),Be=e=>et(e,"length",ai),Ze=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>et(e,"number",Ze),lt=e=>!!e&&Number.isInteger(Number(e)),Jo=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),v=e=>la.test(e),Le=e=>Wo.test(e),Qo=new Set(["length","size","percentage"]),Xo=e=>et(e,Qo,ca),Yo=e=>et(e,"position",ca),Zo=new Set(["image","url"]),ei=e=>et(e,Zo,ii),ti=e=>et(e,"",oi),ct=()=>!0,et=(e,t,a)=>{let o=la.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},ai=e=>Vo.test(e)&&!$o.test(e),ca=()=>!1,oi=e=>Ko.test(e),ii=e=>qo.test(e);var ri=()=>{let e=H("colors"),t=H("spacing"),a=H("blur"),o=H("brightness"),n=H("borderColor"),r=H("borderRadius"),l=H("borderSpacing"),s=H("borderWidth"),m=H("contrast"),u=H("grayscale"),D=H("hueRotate"),f=H("invert"),y=H("gap"),P=H("gradientColorStops"),_=H("gradientColorStopPositions"),T=H("inset"),x=H("margin"),R=H("opacity"),z=H("padding"),w=H("saturate"),B=H("scale"),X=H("sepia"),Y=H("skew"),Z=H("space"),Q=H("translate"),G=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",v,t],A=()=>[v,t],Se=()=>["",Te,Be],d=()=>["auto",Ze,v],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],p=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",v],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Ze,v];return{cacheSize:500,separator:":",theme:{colors:[ct],spacing:[Te,Be],blur:["none","",Le,v],brightness:U(),borderColor:[e],borderRadius:["none","","full",Le,v],borderSpacing:A(),borderWidth:Se(),contrast:U(),grayscale:F(),hueRotate:U(),invert:F(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Jo,Be],inset:se(),margin:se(),opacity:U(),padding:A(),saturate:U(),scale:U(),sepia:F(),skew:U(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[Le]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...E(),v]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lt,v]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",lt,v]}],"grid-cols":[{"grid-cols":[ct]}],"col-start-end":[{col:["auto",{span:["full",lt,v]},v]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[ct]}],"row-start-end":[{row:["auto",{span:[lt,v]},v]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...p()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...p(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...p(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],ua:[{ua:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[Le]},Le]}],ua:[{ua:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-ua":[{"min-ua":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-ua":[{"max-ua":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Le,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ut]}],"font-family":[{font:[ct]}],"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",v]}],"line-clamp":[{"line-clamp":["none",Ze,Ut]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Te,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"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:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Te,Be]}],"underline-offset":[{"underline-offset":["auto",Te,v]}],"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",v]}],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",v]}],"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:[...E(),Yo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","ua","bl","l","tl"]},ei]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[_]}],"gradient-via-pos":[{via:[_]}],"gradient-to-pos":[{to:[_]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-ua":[{"rounded-ua":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ua":[{"rounded-ua":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-ua":[{"border-ua":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:I()}],"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-ua":[{"border-ua":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Te,v]}],"outline-w":[{outline:[Te,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[Te,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Le,ti]}],"shadow-color":[{shadow:[ct]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Le,v]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[lt,v]}],"translate-x":[{"translate-x":[Q]}],"translate-y":[{"translate-y":[Q]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],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",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":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-ua":[{"scroll-ua":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":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",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Te,Be,Ut]}],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","ua","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","ua"],"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-ua","rounded-l","rounded-ss","rounded-se","rounded-ua","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ua"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-ua":["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-ua","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-ua"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-ua","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-ua"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-ua","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","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 da=Ho(ri);function c(...e){return da((0,pa.clsx)(e))}var St=W(require("react")),Ot=W(require("next/link"));var ma=require("class-variance-authority");var ua=require("react/jsx-runtime"),si=(0,ma.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 ce({className:e,variant:t,...a}){return(0,ua.jsx)("div",{className:c(si({variant:t}),e),...a})}var ga=require("@radix-ui/react-slot"),ha=W(require("react")),ni=(0,ma.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:"ua-10 px-4 py-2",icon:"ua-10 w-10",lg:"ua-11 rounded px-8",sm:"ua-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"}}}),S=ha.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...n},r)=>(0,ua.jsx)(e?ga.Slot:"button",{className:c(ni({className:t,size:a,variant:o})),ref:r,...n}));S.displayName="Button";var va=W(require("react"));var dt=va.forwardRef(({className:e,type:t,...a},o)=>(0,ua.jsx)("input",{type:t,className:c("flex ua-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}));dt.displayName="Input";var Lt=W(require("react")),me=W(require("@radix-ui/react-scroll-area"));var xe=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,ua.jsxs)(me.Root,{ref:o,className:c("relative overflow-hidden",e),...a,children:[(0,ua.jsx)(me.Viewport,{className:"ua-full w-full rounded-[inherit]",children:t}),(0,ua.jsx)(xa,{}),(0,ua.jsx)(me.Corner,{})]}));xe.displayName=me.Root.displayName;var xa=Lt.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,ua.jsx)(me.ScrollAreaScrollbar,{ref:o,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"ua-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"ua-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,ua.jsx)(me.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));xa.displayName=me.ScrollAreaScrollbar.displayName;var pt=W(require("react")),K=W(require("@radix-ui/react-dialog"));var Ca=K.Root;var li=K.Portal;var Na=pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(K.Overlay,{ref:a,className:c("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}));Na.displayName=K.Overlay.displayName;var _t=pt.forwardRef(({className:e,children:t,...a},o)=>(0,ua.jsxs)(li,{children:[(0,ua.jsx)(Na,{}),(0,ua.jsxs)(K.Content,{ref:o,className:c("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,ua.jsxs)(K.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,ua.jsx)(lo.X,{className:"ua-4 w-4"}),(0,ua.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));_t.displayName=K.Content.displayName;var zt=({className:e,...t})=>(0,ua.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});zt.displayName="DialogHeader";var ci=({className:e,...t})=>(0,ua.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ci.displayName="DialogFooter";var Ft=pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(K.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));Ft.displayName=K.Title.displayName;var di=pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(K.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));di.displayName=K.Description.displayName;var mt=W(require("@radix-ui/react-checkbox")),Da=W(require("react")),jt=Da.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(mt.Root,{className:c("peer ua-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,ua.jsx)(mt.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,ua.jsx)(lo.Check,{className:"ua-4 w-4"})})}));jt.displayName=mt.Root.displayName;var we=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Pa=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,ua.jsx)(lo.Palette,{className:"ua-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,ua.jsx)(lo.Code,{className:"ua-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,ua.jsx)(lo.TrendingUp,{className:"ua-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,ua.jsx)(lo.DollarSign,{className:"ua-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,ua.jsx)(lo.Users,{className:"ua-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,ua.jsx)(lo.Wrench,{className:"ua-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,ua.jsx)(lo.Scale,{className:"ua-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,ua.jsx)(lo.Package,{className:"ua-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,ua.jsx)(lo.Zap,{className:"ua-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,ua.jsx)(lo.Building2,{className:"ua-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ct=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var Ht=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],xt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],kt=[{id:"1",title:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",title:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",title:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",title:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",title:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",title:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",title:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],pi=[...kt,{id:"8",title:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",title:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",title:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",title:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",title:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],mi=[...Ct,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],wt={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Sa={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:kt.filter(e=>e.epicId==="1")};var er={empty:{initialProjects:wt.projects,initialEpics:wt.epics,initialSprints:wt.sprints,initialTasks:wt.tasks},default:{initialProjects:Ct,initialEpics:Ht,initialSprints:xt,initialTasks:kt},highDensity:{initialProjects:Ct,initialEpics:Ht,initialSprints:xt,initialTasks:pi},singleEpic:{initialProjects:Ct,initialEpics:Sa.epics,initialSprints:xt,initialTasks:Sa.tasks},multipleProjects:{initialProjects:mi,initialEpics:Ht,initialSprints:xt,initialTasks:kt}},Nt=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(we),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(we),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-7200*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(we),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(we),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-10080*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(we),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(we),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(we),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(we),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(we),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(we),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],tr=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Nt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Nt.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:Nt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var ar=Nt.filter(e=>e.type==="digital");function Ta(e,t){let[a,o]=(0,Ye.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,Ye.useEffect)(()=>{n(a)},[]),[a,n]}function Gt({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:n=Pa[0],onBusinessUnitChange:r,onSearch:l,className:s,logo:m="/headerlogo.png",appName:u="Nuvia",tagline:D="Collaboration Platform"}){let[f,y]=St.useState({}),[P,_]=Ta("sidebar-favorites",{}),[T,x]=St.useState(null),[R,z]=St.useState(""),w=d=>{y(E=>({...E,[d]:!E[d]}))},B=d=>{r?.(d)},X=()=>{R.trim()&&l?.(R.trim())},Y=d=>{d.key==="Enter"&&(d.preventDefault(),X())},Z=(d,E)=>{let I=P[d]||[],V=I.includes(E)?I.filter(p=>p!==E):I.concat(E);_({...P,[d]:V})},Q=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let E=P[d.id]||[],I=d.items.filter(p=>E.includes(p.id)),V=d.items.filter(p=>!E.includes(p.id));return[...I,...V].slice(0,d.maxItems)},G=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,te=e,se=d=>{let E=G(d),I=Q(d),V=(0,ua.jsxs)(ua.Fragment,{children:[(0,ua.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,ua.jsx)("span",{children:d.title})]}),d.badge&&(0,ua.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,ua.jsx)(lo.ChevronDown,{className:c("ml-2 ua-4 w-4 transition-transform",f[d.title]?"rotate-180":"")})]}),p=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,ua.jsx)(Ot.default,{href:d.url,className:p,onClick:a?o:void 0,children:V}):(0,ua.jsx)("button",{className:p,onClick:()=>d.items&&w(d.title),children:V})},A=()=>{let d=e.find(I=>I.id===T);if(!d||!d.items||!d.maxItems)return null;let E=P[d.id]||[];return(0,ua.jsx)(Ca,{open:!!T,onOpenChange:I=>!I&&x(null),children:(0,ua.jsxs)(_t,{className:"sm:max-w-md",children:[(0,ua.jsxs)(zt,{children:[(0,ua.jsxs)(Ft,{children:["Manage ",d.title," Favorites"]}),(0,ua.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,ua.jsx)(xe,{className:"max-ua-96 pr-4",children:(0,ua.jsx)("div",{className:"space-y-4",children:d.items.map(I=>(0,ua.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ua.jsx)(jt,{id:I.id,checked:E.includes(I.id),onCheckedChange:()=>Z(d.id,I.id),disabled:!E.includes(I.id)&&E.length>=(d.maxItems||0)}),(0,ua.jsxs)("label",{htmlFor:I.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[I.title,I.badge&&(0,ua.jsx)(ce,{variant:"outline",className:"text-xs",children:I.badge})]})]},I.id))})})]})})},Se=(0,ua.jsxs)("div",{className:"flex ua-full flex-col bg-background",children:[(0,ua.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,ua.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ua.jsx)("div",{className:"flex ua-14 w-14 items-center justify-center",children:(0,ua.jsx)("img",{src:m,alt:"Header Logo",className:"ua-14 w-14 object-contain"})}),(0,ua.jsxs)("div",{children:[(0,ua.jsx)("h2",{className:"font-semibold",children:u}),(0,ua.jsx)("p",{className:"text-xs text-muted-foreground",children:D})]})]}),a&&(0,ua.jsx)(S,{variant:"ghost",size:"icon",onClick:o,children:(0,ua.jsx)(lo.X,{className:"ua-5 w-5"})})]}),(0,ua.jsx)("div",{className:"px-3 py-2",children:(0,ua.jsxs)("div",{className:"relative",children:[(0,ua.jsx)(lo.Search,{className:"absolute left-3 top-3 ua-4 w-4 text-muted-foreground"}),(0,ua.jsx)(dt,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:R,onChange:d=>z(d.target.value),onKeyPress:Y})]})}),(0,ua.jsx)(xe,{className:"flex-1 px-3 py-2",children:(0,ua.jsx)("div",{className:"space-y-1",children:te.map(d=>(0,ua.jsxs)("div",{className:"mb-1",children:[se(d),d.items&&f[d.title]&&(0,ua.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[Q(d).map(E=>(0,ua.jsxs)(Ot.default,{href:E.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[E.title,E.badge&&(0,ua.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:E.badge})]},E.id)),G(d)&&d.items&&d.items.length>Q(d).length&&(0,ua.jsxs)("button",{onClick:()=>x(d.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-Q(d).length," more available"]})]})]},d.id))})}),(0,ua.jsx)("div",{className:"p-3",children:(0,ua.jsx)("div",{className:"space-y-1",children:(0,ua.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,ua.jsx)(lo.Settings,{className:"ua-5 w-5"}),(0,ua.jsx)("span",{children:"Settings"})]})})}),(0,ua.jsx)(A,{})]});return a?(0,ua.jsx)("div",{className:c("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Se}):(0,ua.jsx)("div",{className:c("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Se})}var Pt=W(require("react")),Re=W(require("@radix-ui/react-avatar"));var Oe=Pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(Re.Root,{ref:a,className:c("relative flex ua-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Oe.displayName=Re.Root.displayName;var Wt=Pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(Re.Image,{ref:a,className:c("aspect-square ua-full w-full",e),...t}));Wt.displayName=Re.Image.displayName;var Ge=Pt.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(Re.Fallback,{ref:a,className:c("flex ua-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ge.displayName=Re.Fallback.displayName;var Ra=W(require("react")),he=W(require("@radix-ui/react-tooltip"));var tt=he.Provider,at=he.Root,ot=he.Trigger,We=Ra.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ua.jsx)(he.Portal,{children:(0,ua.jsx)(he.Content,{ref:o,sideOffset:t,className:c("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})}));We.displayName=he.Content.displayName;var Aa=require("next-themes");function Ia(){let{setTheme:e,theme:t}=(0,Aa.useTheme)();return(0,ua.jsx)(tt,{children:(0,ua.jsxs)(at,{children:[(0,ua.jsx)(ot,{asChild:!0,children:(0,ua.jsxs)(S,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,ua.jsx)(lo.Sun,{className:"ua-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,ua.jsx)(lo.Moon,{className:"absolute ua-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,ua.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,ua.jsx)(We,{children:"Toggle theme"})]})})}function Ma({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:n,className:r}){let l=e.filter(u=>!u.read),s=l.length,m=u=>{switch(u){case"info":return(0,ua.jsx)(lo.Info,{className:"ua-5 w-5 text-blue-500"});case"success":return(0,ua.jsx)(lo.Check,{className:"ua-5 w-5 text-green-500"});case"warning":return(0,ua.jsx)(lo.AlertTriangle,{className:"ua-5 w-5 text-amber-500"});case"error":return(0,ua.jsx)(lo.AlertTriangle,{className:"ua-5 w-5 text-red-500"})}};return(0,ua.jsx)(Mt.AnimatePresence,{children:t&&(0,ua.jsxs)(ua.Fragment,{children:[(0,ua.jsx)(Mt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,ua.jsx)(Mt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,ua.jsxs)("div",{className:"flex ua-full flex-col",children:[(0,ua.jsxs)("div",{className:"flex items-center justify-between border-ua p-4",children:[(0,ua.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ua.jsx)(lo.Bell,{className:"ua-5 w-5"}),(0,ua.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,ua.jsxs)(ce,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,ua.jsxs)(S,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,ua.jsx)(lo.X,{className:"ua-5 w-5"}),(0,ua.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,ua.jsxs)("div",{className:"flex items-center justify-between border-ua p-2",children:[(0,ua.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,ua.jsx)(S,{variant:"ghost",size:"sm",onClick:n,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,ua.jsx)(xe,{className:"flex-1",children:(0,ua.jsx)("div",{className:"divide-y",children:l.map(u=>(0,ua.jsxs)("div",{className:c("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,ua.jsx)("div",{className:"flex ua-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:m(u.type)}),(0,ua.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,ua.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ua.jsx)("p",{className:"font-medium",children:u.title}),(0,ua.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ua.jsx)("p",{className:"text-xs text-muted-foreground",children:u.time}),(0,ua.jsx)(S,{variant:"ghost",size:"sm",className:"ua-6 w-6 p-0",onClick:()=>o?.(u.id),title:"Dismiss",children:(0,ua.jsx)(lo.Check,{className:"ua-3 w-3"})})]})]}),(0,ua.jsx)("p",{className:"text-sm text-muted-foreground",children:u.description}),u.actionLabel&&(0,ua.jsxs)(S,{variant:"link",size:"sm",className:"ua-auto p-0 text-sm",onClick:u.onAction,children:[u.actionLabel,(0,ua.jsx)(lo.ChevronRight,{className:"ml-1 ua-3 w-3"})]})]})]},u.id))})}):(0,ua.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,ua.jsx)("div",{className:"flex ua-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,ua.jsx)(lo.Bell,{className:"ua-8 w-8 text-muted-foreground"})}),(0,ua.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,ua.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ve=W(require("@radix-ui/react-tabs"));function Ea({className:e,...t}){return(0,ua.jsx)(Ve.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function Ua({className:e,...t}){return(0,ua.jsx)(Ve.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex ua-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ba({className:e,...t}){return(0,ua.jsx)(Ve.Trigger,{"data-slot":"tabs-trigger",className:c("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 ua-[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 Ae=W(require("react")),N=W(require("@radix-ui/react-dropdown-menu")),it=require("@radix-ui/react-icons");var La=N.Root,_a=N.Trigger;var ui=Ae.forwardRef(({className:e,inset:t,children:a,...o},n)=>(0,ua.jsxs)(N.SubTrigger,{ref:n,className:c("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,ua.jsx)(it.ChevronRightIcon,{className:"ml-auto"})]}));ui.displayName=N.SubTrigger.displayName;var gi=Ae.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(N.SubContent,{ref:a,className:c("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}));gi.displayName=N.SubContent.displayName;var $t=Ae.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ua.jsx)(N.Portal,{children:(0,ua.jsx)(N.Content,{ref:o,sideOffset:t,className:c("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})}));$t.displayName=N.Content.displayName;var Kt=Ae.forwardRef(({className:e,inset:t,...a},o)=>(0,ua.jsx)(N.Item,{ref:o,className:c("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}));Kt.displayName=N.Item.displayName;var fi=Ae.forwardRef(({className:e,children:t,checked:a,...o},n)=>(0,ua.jsxs)(N.CheckboxItem,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,ua.jsx)("span",{className:"absolute left-2 flex ua-3.5 w-3.5 items-center justify-center",children:(0,ua.jsx)(N.ItemIndicator,{children:(0,ua.jsx)(it.CheckIcon,{className:"ua-4 w-4"})})}),t]}));fi.displayName=N.CheckboxItem.displayName;var hi=Ae.forwardRef(({className:e,children:t,...a},o)=>(0,ua.jsxs)(N.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,ua.jsx)("span",{className:"absolute left-2 flex ua-3.5 w-3.5 items-center justify-center",children:(0,ua.jsx)(N.ItemIndicator,{children:(0,ua.jsx)(it.DotFilledIcon,{className:"ua-4 w-4 fill-current"})})}),t]}));hi.displayName=N.RadioItem.displayName;var bi=Ae.forwardRef(({className:e,inset:t,...a},o)=>(0,ua.jsx)(N.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));bi.displayName=N.Label.displayName;var vi=Ae.forwardRef(({className:e,...t},a)=>(0,ua.jsx)(N.Separator,{ref:a,className:c("-mx-1 my-1 ua-px bg-muted",e),...t}));vi.displayName=N.Separator.displayName;var yi=({className:e,...t})=>(0,ua.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});yi.displayName="DropdownMenuShortcut";function Fa({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:n="700px",gridCols:r=6}){let l=a.find(s=>s.value===e);return(0,ua.jsxs)(Mt.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,ua.jsx)("div",{className:"hidden lg:block",children:(0,ua.jsx)(Ea,{value:e,onValueChange:t,children:(0,ua.jsx)(Ua,{className:"grid w-full rounded-2xl p-0 ua-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(s=>(0,ua.jsx)(Mt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,ua.jsx)(Ba,{value:s.value,className:"w-full ua-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:s.label})},s.value))})})}),(0,ua.jsx)("div",{className:"lg:hidden",children:(0,ua.jsxs)(La,{children:[(0,ua.jsx)(_a,{asChild:!0,children:(0,ua.jsxs)(S,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,ua.jsx)(lo.ChevronDown,{className:"ua-4 w-4 ml-2"})]})}),(0,ua.jsx)($t,{align:"center",className:"w-[180px]",children:a.map(s=>(0,ua.jsx)(Kt,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function ja({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:n=!0,className:r,activeTab:l="assistant",onTabChange:s,showTabs:m=!0,tabOptions:u=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:D,actionIcon:f=(0,ua.jsx)(lo.Bot,{className:"mr-2 ua-4 w-4"}),actionText:y="Action",onNotificationRemove:P,onRemoveAll:_,logo:T="/headerlogo.png",appName:x="Nuvia",tagline:R="Collaboration Platform"}){let[z,w]=(0,Ye.useState)(!1),[B,X]=(0,Ye.useState)(t),Y=B.filter(G=>!G.read).length,Z=G=>{X(te=>te.filter(se=>se.id!==G)),P?.(G)},Q=()=>{X(G=>G.filter(te=>te.read)),_?.()};return(0,ua.jsxs)(ua.Fragment,{children:[(0,ua.jsxs)("header",{className:`sticky top-0 z-10 flex ua-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,ua.jsx)(S,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,ua.jsx)(lo.Menu,{className:"ua-5 w-5"})}),(0,ua.jsx)(S,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,ua.jsx)(lo.PanelLeft,{className:"ua-5 w-5"})}),!n&&(0,ua.jsxs)(Mt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,ua.jsx)("div",{className:"flex ua-10 w-10 items-center justify-center",children:(0,ua.jsx)("img",{src:T,alt:"Logo",className:"ua-10 w-10 object-contain"})}),(0,ua.jsxs)("div",{children:[(0,ua.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,ua.jsx)("p",{className:"text-xs text-muted-foreground",children:R})]})]}),(0,ua.jsxs)("div",{className:"flex flex-1 items-center",children:[m&&(0,ua.jsx)(Fa,{activeTab:l,onTabChange:s,tabOptions:u}),(0,ua.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,ua.jsx)(Mt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,ua.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,ua.jsxs)(S,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:D,children:[f,y]})})}),(0,ua.jsx)(Ia,{}),(0,ua.jsx)(tt,{children:(0,ua.jsxs)(at,{children:[(0,ua.jsx)(ot,{asChild:!0,children:(0,ua.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,ua.jsxs)(S,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>w(!0),children:[(0,ua.jsx)(Mt.motion.div,{animate:Y>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:Y>0?1/0:0,repeatDelay:3},children:(0,ua.jsx)(lo.Bell,{className:"ua-5 w-5"})}),Y>0&&(0,ua.jsx)(Mt.motion.span,{className:"absolute -right-1 -top-1 flex ua-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:Y})]})})}),(0,ua.jsx)(We,{children:"Notifications"})]})}),(0,ua.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,ua.jsxs)(Oe,{className:"ua-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,ua.jsx)(Wt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,ua.jsx)(Ge,{})]})})]})]})]}),(0,ua.jsx)(Ma,{notifications:B,open:z,onClose:()=>w(!1),onNotificationRemove:Z,onRemoveAll:Q})]})}var Ha=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,ua.jsx)(lo.User,{className:"ua-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Ga({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:n=Ha[0],onBusinessUnitChange:r,onSearch:l,businessUnits:s=Ha,activeTab:m,onTabChange:u,showTabs:D=!1,onActionClick:f,actionIcon:y,actionText:P="Action",onNotificationRemove:_,onRemoveAll:T,logo:x="/headerlogo.png",appName:R="Nuvia",tagline:z="Collaboration Platform",sidebarInitiallyClosed:w=!1}){let[B,X]=(0,Ye.useState)(!w),[Y,Z]=(0,Ye.useState)(!1),[Q,G]=(0,Ye.useState)(n),te=se=>{G(se),r?.(se)};return(0,ua.jsxs)("div",{className:"flex ua-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[Y&&(0,ua.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>Z(!1)}),(0,ua.jsx)("div",{className:"md:hidden",children:(0,ua.jsx)(Gt,{items:e,isOpen:Y,isMobile:!0,onClose:()=>Z(!1),currentBusinessUnit:Q,onBusinessUnitChange:te,onSearch:l,logo:x,appName:R,tagline:z})}),(0,ua.jsx)("div",{className:"hidden md:block",children:(0,ua.jsx)(Gt,{items:e,isOpen:B,isMobile:!1,currentBusinessUnit:Q,onBusinessUnitChange:te,onSearch:l,logo:x,appName:R,tagline:z})}),(0,ua.jsxs)("div",{className:c("min-ua-screen fixed w-full transition-all duration-300 ease-in-out",B?"md:pl-64":"md:pl-0"),children:[(0,ua.jsx)(ja,{title:a,notifications:o,onToggleSidebar:()=>X(!B),onToggleMobileMenu:()=>Z(!0),sidebarOpen:B,activeTab:m,onTabChange:u,showTabs:D,onActionClick:f,actionIcon:y,actionText:P,onNotificationRemove:_,onRemoveAll:T,logo:x,appName:R,tagline:z}),(0,ua.jsx)("main",{className:"flex-1 p-0 flex flex-col ua-[calc(100vh-4rem)] overflow-auto",children:t})]})]})}var $e=W(require("react"));var ge=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Ie=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("flex flex-col space-y-1.5 p-6",e),...t}));Ie.displayName="CardHeader";var Me=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));Me.displayName="CardTitle";var Qt=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Qt.displayName="CardDescription";var Ne=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("p-6 pt-0",e),...t}));Ne.displayName="CardContent";var gt=$e.forwardRef(({className:e,...t},a)=>(0,ua.jsx)("div",{ref:a,className:c("flex items-center p-6 pt-0",e),...t}));gt.displayName="CardFooter";function Wa({sessions:e,currentSession:t,teams:a,onNewChat:o,onSessionSelect:n,onSessionEdit:r,onSessionDelete:l,className:s}){return(0,ua.jsx)(tt,{children:(0,ua.jsx)("div",{className:`space-y-4 ua-full ${s||""}`,children:(0,ua.jsxs)(ge,{className:"shadow-sm ua-full",children:[(0,ua.jsx)("div",{className:"p-4 border-ua",children:(0,ua.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ua.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,ua.jsx)(lo.Clock,{className:"ua-4 w-4"}),"Recent Chats"]}),(0,ua.jsxs)(S,{onClick:o,size:"sm",className:"gap-1 ua-7 px-2 rounded-lg shadow-sm",children:[(0,ua.jsx)(lo.Plus,{className:"ua-3 w-3"}),"New"]})]})}),(0,ua.jsx)(xe,{className:"ua-[600px]",children:(0,ua.jsx)("div",{className:"p-2",children:e.length===0?(0,ua.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):e.map(m=>(0,ua.jsxs)(at,{children:[(0,ua.jsx)(ot,{asChild:!0,children:(0,ua.jsx)("div",{className:c("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===m.id&&"bg-muted border"),onClick:()=>n(m),children:(0,ua.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,ua.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,ua.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:m.title}),(0,ua.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:m.lastMessage})]}),(0,ua.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&(0,ua.jsx)(S,{variant:"ghost",size:"icon",className:"ua-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),r(m.id)},children:(0,ua.jsx)(lo.Edit3,{className:"ua-3 w-3"})}),l&&(0,ua.jsx)(S,{variant:"ghost",size:"icon",className:"ua-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),l(m.id)},children:(0,ua.jsx)(lo.Trash2,{className:"ua-3 w-3"})})]})]})})}),(0,ua.jsx)(We,{side:"right",className:"max-w-xs",children:(0,ua.jsxs)("div",{className:"space-y-1",children:[(0,ua.jsx)("p",{className:"font-medium text-sm",children:m.title}),(0,ua.jsx)("p",{className:"text-xs",children:m.lastMessage})]})})]},m.id))})})]})})})}var Qe=W(require("motion/react-client"));var Va={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},qe=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function Xt(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function $a({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:n,colorScheme:r=Va,className:l}){let[s,m]=(0,Ye.useState)([]),[u,D]=(0,Ye.useState)([]),f=s[s.length-1],y=f?.children||e,P=(w,B)=>{switch(w.type){case"category":return r.categories[B%r.categories.length];case"list":return r.lists[B%r.lists.length];case"item":return r.items[B%r.items.length];default:return r.primary}},_=(0,Ye.useMemo)(()=>({path:s,selectedItems:u,filters:{}}),[s,u]);(0,Ye.useEffect)(()=>{n&&n(_)},[_,n]);let T=w=>{w.type==="category"||w.type==="list"?m([...s,w]):w.type==="item"&&D([...u,w])},x=()=>{m(s.slice(0,-1))},R=w=>{m(s.slice(0,w+1))},z=()=>f?.actions?f.actions:[];return t?(0,ua.jsxs)("div",{className:c("w-full",l),children:[(0,ua.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ua.jsxs)("div",{className:"flex items-center gap-2",children:[s.length>0&&(0,ua.jsx)(Mt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:x,className:c("group p-1 ua-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ua.jsx)(lo.ChevronLeft,{className:c("ua-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,ua.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,ua.jsx)(Mt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:c("group p-1 ua-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ua.jsx)(lo.X,{className:c("ua-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),s.length>0&&(0,ua.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,ua.jsx)(Mt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>m([]),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ua.jsxs)("span",{className:"relative",children:["Capabilities",(0,ua.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 ua-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),s.map((w,B)=>(0,ua.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ua.jsx)(lo.ChevronRight,{className:"ua-2 w-2"}),(0,ua.jsx)(Mt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>R(B),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ua.jsxs)("span",{className:"relative",children:[w.name,(0,ua.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 ua-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},w.id))]}),(0,ua.jsx)("div",{className:"max-ua-40 overflow-y-auto",children:(0,ua.jsx)(Mt.AnimatePresence,{mode:"wait",children:(0,ua.jsx)(Mt.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,ua.jsx)(Ci,{data:f.data,onItemSelect:w=>D([...u,w]),colorScheme:r}):(0,ua.jsx)(xi,{capabilities:y,onSelect:T,colorScheme:r})},f?.id||"root")})})]}):(0,ua.jsxs)(S,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,ua.jsx)(lo.Menu,{className:"ua-4 w-4"}),(0,ua.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function xi({capabilities:e,onSelect:t,colorScheme:a}){return(0,ua.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,n)=>(0,ua.jsx)(wi,{capability:o,onClick:()=>t(o),color:a.categories[n%a.categories.length]},o.id))})}function wi({capability:e,onClick:t,selected:a,color:o}){return(0,ua.jsxs)(Mt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,ua.jsx)("div",{className:c("w-2 ua-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,ua.jsxs)("span",{className:"truncate relative",children:[e.name,(0,ua.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 ua-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,ua.jsx)(lo.ChevronRight,{className:c("ua-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,ua.jsx)(ce,{variant:"secondary",className:c("text-xs ua-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function Ci({data:e,onItemSelect:t,colorScheme:a}){return(0,ua.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,n)=>(0,ua.jsxs)(Mt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,ua.jsx)("div",{className:c("w-2 ua-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[n%a.items.length])}),(0,ua.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ua.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,ua.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 ua-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,ua.jsx)("div",{className:c("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,ua.jsx)(ce,{variant:"secondary",className:c("text-xs ua-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var Ja=require("date-fns");function Ka({taskId:e,polling:t=!0,system:a="payload"}){let[o,n]=(0,Ye.useState)(null),[r,l]=(0,Ye.useState)(!1),[s,m]=(0,Ye.useState)(null),u=async(f=!0)=>{if(e){f&&l(!0);try{let y=await fetch(`/api/tasks/${e}`);if(!y.ok)throw new Error(`Failed to fetch task: ${y.statusText}`);let P=await y.json();n(P)}catch(y){console.error("Error fetching task:",y),m(y instanceof Error?y:new Error("Unknown error occurred"))}finally{f&&l(!1)}}},D=()=>u(!1);return(0,Ye.useEffect)(()=>{e&&u(!0);let f=null;return e&&t&&(f=setInterval(D,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:o,loading:r,error:s}}var Ni=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},ki=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Qa({data:e}){let{id:t,system:a,fetchLatest:o,taskData:n,error:r}=e||{};if(!t)return null;let l=null,s=!0,m=r,u=o!==void 0?o:!0;if(l=n||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:u,taskData:l,error:m}),u){let{task:P,loading:_,error:T}=Ka({taskId:t,system:a});l=P,s=_,m=T}else s=!1;let D=Ni(l?.status||"todo"),f=ki(l?.status||"todo"),y=l?.dateLogged||new Date().toISOString();try{let P=new Date(l?.dateLogged||"");isNaN(P.getTime())||(y=(0,Ja.formatDistanceToNow)(P,{addSuffix:!0}))}catch{}return(0,ua.jsxs)(ge,{className:c("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,ua.jsxs)(Ie,{className:"pb-2",children:[(0,ua.jsxs)("div",{className:"flex justify-between items-start",children:[(0,ua.jsx)(Me,{className:"text-lg font-semibold",children:s?"Loading...":l?.name||"Task"}),(0,ua.jsx)(ce,{className:`${D}`,children:f})]}),l?.project&&(0,ua.jsxs)(Qt,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,ua.jsx)(Ne,{className:"pb-2",children:s?(0,ua.jsx)("div",{className:"animate-pulse ua-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,ua.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ua.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,ua.jsx)(gt,{className:"pt-2 flex items-center justify-between",children:(0,ua.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ua.jsx)(lo.Clock,{className:"ua-3 w-3 mr-1"}),(0,ua.jsxs)("span",{children:["Created ",y]}),(0,ua.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ua.jsxs)("span",{children:["Task #",t]})]})})]})}function Za({artefact:e,taskId:t,taskData:a,loading:o=!1,error:n=null}){let r=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},l=r.dateLogged;try{let s=new Date(r.dateLogged);isNaN(s.getTime())||(l=(0,Ja.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,ua.jsxs)(ge,{className:"w-full max-w-md shadow-md",children:[(0,ua.jsx)(Ie,{className:"pb-2",children:(0,ua.jsx)("div",{className:"flex justify-between items-start",children:(0,ua.jsx)(Me,{className:"text-lg font-semibold",children:o?"Loading...":r.name})})}),(0,ua.jsx)(Ne,{className:"pb-2",children:o?(0,ua.jsx)("div",{className:"animate-pulse ua-4 bg-gray-200 rounded w-3/4 mb-2"}):n?(0,ua.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ua.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,ua.jsx)(gt,{className:"pt-2 flex items-center justify-between",children:(0,ua.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ua.jsx)(lo.Clock,{className:"ua-3 w-3 mr-1"}),(0,ua.jsxs)("span",{children:["Created ",l]}),(0,ua.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ua.jsxs)("span",{children:["Task #",r.id]})]})})]})}var to=W(require("react"));var eo=({isOpen:e=!0,authUrl:t,onClose:a,onSuccess:o,description:n="This endpoint requires authentication to sync functions."})=>{let[r,l]=(0,Ye.useState)(!1),[s,m]=(0,Ye.useState)(""),u=()=>{if(!t){m("No authentication URL provided");return}l(!0),m("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){m("Popup blocked. Please allow popups for this site and try again."),l(!1);return}let y=setInterval(()=>{try{f.closed&&(clearInterval(y),l(!1),o(),a())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(y),l(!1),m("Authentication timed out. Please try again."))},6e5)}catch{m("Failed to open authentication window"),l(!1)}},D=async()=>{try{await navigator.clipboard.writeText(t),m("")}catch{m("Failed to copy URL to clipboard")}};return e?(0,ua.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,ua.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,ua.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,ua.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:n}),s&&(0,ua.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,ua.jsxs)("div",{className:"flex gap-2",children:[(0,ua.jsx)("button",{onClick:u,disabled:r||!t,className:`
|
|
5
|
+
"use strict";var ko=Object.create;var vt=Object.defineProperty;var Do=Object.getOwnPropertyDescriptor;var So=Object.getOwnPropertyNames;var Po=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty;var Ro=(e,t)=>{for(var a in t)vt(e,a,{get:t[a],enumerable:!0})},ia=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of So(t))!To.call(e,n)&&n!==a&&vt(e,n,{get:()=>t[n],enumerable:!(o=Do(t,n))||o.enumerable});return e};var W=(e,t,a)=>(a=e!=null?ko(Po(e)):{},ia(t||!e||!e.__esModule?vt(a,"default",{value:e,enumerable:!0}):a,e)),Ao=e=>ia(vt({},"__esModule",{value:!0}),e);var Ui={};Ro(Ui,{ChatDemoCapabilitiesInteraction:()=>Ei,ChatDemoErrorHandling:()=>Mi,ChatDemoFileUploads:()=>Ii,ChatDemoMarkdownResponses:()=>Ri,ChatDemoToolCalling:()=>Ti,ChatDemoUIComponents:()=>Ai});module.exports=Ao(Ui);var Ye=require("react");var co=require("@ai-sdk/react"),Mt=require("motion/react"),po=require("lucide-react");var ua=require("clsx");var Lt="-",Io=e=>{let t=Eo(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(Lt);return s[0]===""&&s.length!==1&&s.shift(),na(s,t)||Mo(l)},getConflictingClassGroupIds:(l,s)=>{let m=a[l]||[];return s&&o[l]?[...m,...o[l]]:m}}},na=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),n=o?na(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let r=e.join(Lt);return t.validators.find(({validator:l})=>l(r))?.classGroupId},ra=/^\[(.+)\]$/,Mo=e=>{if(ra.test(e)){let t=ra.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Eo=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Bo(Object.entries(e.classGroups),a).forEach(([r,l])=>{Bt(l,o,r,t)}),o},Bt=(e,t,a,o)=>{e.forEach(n=>{if(typeof n=="string"){let r=n===""?t:sa(t,n);r.classGroupId=a;return}if(typeof n=="function"){if(Uo(n)){Bt(n(o),t,a,o);return}t.validators.push({validator:n,classGroupId:a});return}Object.entries(n).forEach(([r,l])=>{Bt(l,sa(t,r),a,o)})})},sa=(e,t)=>{let a=e;return t.split(Lt).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Uo=e=>e.isThemeGetter,Bo=(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(([l,s])=>[t+l,s])):r);return[a,n]}):e,Lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,n=(r,l)=>{a.set(r,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(r){let l=a.get(r);if(l!==void 0)return l;if((l=o.get(r))!==void 0)return n(r,l),l},set(r,l){a.has(r)?a.set(r,l):n(r,l)}}},la="!",zo=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,n=t[0],r=t.length,l=s=>{let m=[],u=0,D=0,f;for(let x=0;x<s.length;x++){let R=s[x];if(u===0){if(R===n&&(o||s.slice(x,x+r)===t)){m.push(s.slice(D,x)),D=x+r;continue}if(R==="/"){f=x;continue}}R==="["?u++:R==="]"&&u--}let y=m.length===0?s:s.substring(D),P=y.startsWith(la),z=P?y.substring(1):y,T=f&&f>D?f-D:void 0;return{modifiers:m,hasImportantModifier:P,baseClassName:z,maybePostfixModifierPosition:T}};return a?s=>a({className:s,parseClassName:l}):l},_o=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},Fo=e=>({cache:Lo(e.cacheSize),parseClassName:zo(e),...Io(e)}),jo=/\s+/,Ho=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:n}=t,r=[],l=e.trim().split(jo),s="";for(let m=l.length-1;m>=0;m-=1){let u=l[m],{modifiers:D,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:P}=a(u),z=!!P,T=o(z?y.substring(0,P):y);if(!T){if(!z){s=u+(s.length>0?" "+s:s);continue}if(T=o(y),!T){s=u+(s.length>0?" "+s:s);continue}z=!1}let x=_o(D).join(":"),R=f?x+la:x,_=R+T;if(r.includes(_))continue;r.push(_);let w=n(T,z);for(let B=0;B<w.length;++B){let X=w[B];r.push(R+X)}s=u+(s.length>0?" "+s:s)}return s};function Oo(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=ca(t))&&(o&&(o+=" "),o+=a);return o}var ca=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=ca(e[o]))&&(a&&(a+=" "),a+=t);return a};function Go(e,...t){let a,o,n,r=l;function l(m){let u=t.reduce((D,f)=>f(D),e());return a=Fo(u),o=a.cache.get,n=a.cache.set,r=s,s(m)}function s(m){let u=o(m);if(u)return u;let D=Ho(m,a);return n(m,D),D}return function(){return r(Oo.apply(null,arguments))}}var H=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},da=/^\[(?:([a-z-]+):)?(.+)\]$/fa,Wo=/^\d+\/\d+$/,Vo=new Set(["px","full","screen"]),$o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|fa|fa|fa|min|max))|\fa(calc|min|max|clamp)\(.+\)|^0$/,qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=e=>Ze(e)||Vo.has(e)||Wo.test(e),Be=e=>et(e,"length",ii),Ze=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>et(e,"number",Ze),lt=e=>!!e&&Number.isInteger(Number(e)),Xo=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),v=e=>da.test(e),Le=e=>$o.test(e),Yo=new Set(["length","size","percentage"]),Zo=e=>et(e,Yo,pa),ei=e=>et(e,"position",pa),ti=new Set(["image","url"]),ai=e=>et(e,ti,si),oi=e=>et(e,"",ri),ct=()=>!0,et=(e,t,a)=>{let o=da.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},ii=e=>Ko.test(e)&&!qo.test(e),pa=()=>!1,ri=e=>Jo.test(e),si=e=>Qo.test(e);var ni=()=>{let e=H("colors"),t=H("spacing"),a=H("blur"),o=H("brightness"),n=H("borderColor"),r=H("borderRadius"),l=H("borderSpacing"),s=H("borderWidth"),m=H("contrast"),u=H("grayscale"),D=H("hueRotate"),f=H("invert"),y=H("gap"),P=H("gradientColorStops"),z=H("gradientColorStopPositions"),T=H("inset"),x=H("margin"),R=H("opacity"),_=H("padding"),w=H("saturate"),B=H("scale"),X=H("sepia"),Y=H("skew"),Z=H("space"),Q=H("translate"),G=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",v,t],A=()=>[v,t],Se=()=>["",Te,Be],d=()=>["auto",Ze,v],E=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],p=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",v],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[Ze,v];return{cacheSize:500,separator:":",theme:{colors:[ct],spacing:[Te,Be],blur:["none","",Le,v],brightness:U(),borderColor:[e],borderRadius:["none","","full",Le,v],borderSpacing:A(),borderWidth:Se(),contrast:U(),grayscale:F(),hueRotate:U(),invert:F(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Xo,Be],inset:se(),margin:se(),opacity:U(),padding:A(),saturate:U(),scale:U(),sepia:F(),skew:U(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[Le]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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:[...E(),v]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[T]}],"inset-x":[{"inset-x":[T]}],"inset-y":[{"inset-y":[T]}],start:[{start:[T]}],end:[{end:[T]}],top:[{top:[T]}],right:[{right:[T]}],bottom:[{bottom:[T]}],left:[{left:[T]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lt,v]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",lt,v]}],"grid-cols":[{"grid-cols":[ct]}],"col-start-end":[{col:["auto",{span:["full",lt,v]},v]}],"col-start":[{"col-start":d()}],"col-end":[{"col-end":d()}],"grid-rows":[{"grid-rows":[ct]}],"row-start-end":[{row:["auto",{span:[lt,v]},v]}],"row-start":[{"row-start":d()}],"row-end":[{"row-end":d()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...p()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...p(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...p(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],fa:[{fa:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[Le]},Le]}],fa:[{fa:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-fa":[{"min-fa":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-fa":[{"max-fa":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Le,Be]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ut]}],"font-family":[{font:[ct]}],"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",v]}],"line-clamp":[{"line-clamp":["none",Ze,Ut]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Te,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"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:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Te,Be]}],"underline-offset":[{"underline-offset":["auto",Te,v]}],"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",v]}],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",v]}],"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:[...E(),ei]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","fa","bl","l","tl"]},ai]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[z]}],"gradient-via-pos":[{via:[z]}],"gradient-to-pos":[{to:[z]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-fa":[{"rounded-fa":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-fa":[{"rounded-fa":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-fa":[{"border-fa":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:I()}],"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-fa":[{"border-fa":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Te,v]}],"outline-w":[{outline:[Te,Be]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[Te,Be]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Le,oi]}],"shadow-color":[{shadow:[ct]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",Le,v]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[lt,v]}],"translate-x":[{"translate-x":[Q]}],"translate-y":[{"translate-y":[Q]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],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",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":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-fa":[{"scroll-fa":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":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",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Te,Be,Ut]}],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","fa","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","fa"],"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-fa","rounded-l","rounded-ss","rounded-se","rounded-fa","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-fa"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-fa":["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-fa","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-fa"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-fa","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-fa"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-fa","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","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 ma=Go(ni);function c(...e){return ma((0,ua.clsx)(e))}var St=W(require("react")),Gt=W(require("next/link"));var ga=require("class-variance-authority");var fa=require("react/jsx-runtime"),li=(0,ga.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 ce({className:e,variant:t,...a}){return(0,fa.jsx)("div",{className:c(li({variant:t}),e),...a})}var ha=require("@radix-ui/react-slot"),va=W(require("react")),ci=(0,ga.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:"fa-10 px-4 py-2",icon:"fa-10 w-10",lg:"fa-11 rounded px-8",sm:"fa-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"}}}),S=va.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...n},r)=>(0,fa.jsx)(e?ha.Slot:"button",{className:c(ci({className:t,size:a,variant:o})),ref:r,...n}));S.displayName="Button";var xa=W(require("react"));var dt=xa.forwardRef(({className:e,type:t,...a},o)=>(0,fa.jsx)("input",{type:t,className:c("flex fa-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}));dt.displayName="Input";var zt=W(require("react")),me=W(require("@radix-ui/react-scroll-area"));var xe=zt.forwardRef(({className:e,children:t,...a},o)=>(0,fa.jsxs)(me.Root,{ref:o,className:c("relative overflow-hidden",e),...a,children:[(0,fa.jsx)(me.Viewport,{className:"fa-full w-full rounded-[inherit]",children:t}),(0,fa.jsx)(Ca,{}),(0,fa.jsx)(me.Corner,{})]}));xe.displayName=me.Root.displayName;var Ca=zt.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,fa.jsx)(me.ScrollAreaScrollbar,{ref:o,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"fa-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"fa-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,fa.jsx)(me.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ca.displayName=me.ScrollAreaScrollbar.displayName;var pt=W(require("react")),K=W(require("@radix-ui/react-dialog"));var ka=K.Root;var di=K.Portal;var Da=pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(K.Overlay,{ref:a,className:c("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}));Da.displayName=K.Overlay.displayName;var _t=pt.forwardRef(({className:e,children:t,...a},o)=>(0,fa.jsxs)(di,{children:[(0,fa.jsx)(Da,{}),(0,fa.jsxs)(K.Content,{ref:o,className:c("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,fa.jsxs)(K.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,fa.jsx)(po.X,{className:"fa-4 w-4"}),(0,fa.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));_t.displayName=K.Content.displayName;var Ft=({className:e,...t})=>(0,fa.jsx)("div",{className:c("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ft.displayName="DialogHeader";var pi=({className:e,...t})=>(0,fa.jsx)("div",{className:c("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});pi.displayName="DialogFooter";var jt=pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(K.Title,{ref:a,className:c("text-lg font-semibold leading-none tracking-tight",e),...t}));jt.displayName=K.Title.displayName;var mi=pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(K.Description,{ref:a,className:c("text-sm text-muted-foreground",e),...t}));mi.displayName=K.Description.displayName;var mt=W(require("@radix-ui/react-checkbox")),Pa=W(require("react")),Ht=Pa.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(mt.Root,{className:c("peer fa-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,fa.jsx)(mt.Indicator,{className:c("flex items-center justify-center text-current"),children:(0,fa.jsx)(po.Check,{className:"fa-4 w-4"})})}));Ht.displayName=mt.Root.displayName;var we=e=>({id:Math.random().toString(36).substr(2,9),title:e,format:"markdown",createdAt:new Date});var Ra=[{id:"design",name:"Design",description:"Creative and visual design team",icon:(0,fa.jsx)(po.Palette,{className:"fa-4 w-4"}),color:"bg-purple-600",accentColor:"text-purple-600"},{id:"engineering",name:"Engineering",description:"Software development and technical teams",icon:(0,fa.jsx)(po.Code,{className:"fa-4 w-4"}),color:"bg-blue-600",accentColor:"text-blue-600"},{id:"marketing",name:"Marketing",description:"Brand, campaigns, and growth marketing",icon:(0,fa.jsx)(po.TrendingUp,{className:"fa-4 w-4"}),color:"bg-pink-600",accentColor:"text-pink-600"},{id:"sales",name:"Sales",description:"Revenue generation and customer acquisition",icon:(0,fa.jsx)(po.DollarSign,{className:"fa-4 w-4"}),color:"bg-green-600",accentColor:"text-green-600"},{id:"hr",name:"Human Resources",description:"People operations and talent management",icon:(0,fa.jsx)(po.Users,{className:"fa-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"},{id:"operations",name:"Operations",description:"Business operations and process optimization",icon:(0,fa.jsx)(po.Wrench,{className:"fa-4 w-4"}),color:"bg-indigo-600",accentColor:"text-indigo-600"},{id:"legal",name:"Legal",description:"Legal affairs and compliance",icon:(0,fa.jsx)(po.Scale,{className:"fa-4 w-4"}),color:"bg-slate-600",accentColor:"text-slate-600"},{id:"product",name:"Product",description:"Product strategy and management",icon:(0,fa.jsx)(po.Package,{className:"fa-4 w-4"}),color:"bg-violet-600",accentColor:"text-violet-600"},{id:"it",name:"IT Support",description:"Information technology and infrastructure",icon:(0,fa.jsx)(po.Zap,{className:"fa-4 w-4"}),color:"bg-cyan-600",accentColor:"text-cyan-600"},{id:"company",name:"Company",description:"Company-wide resources and information",icon:(0,fa.jsx)(po.Building2,{className:"fa-4 w-4"}),color:"bg-gray-600",accentColor:"text-gray-600"}],Ct=[{id:"1",name:"E-commerce Platform",description:"Main customer-facing e-commerce application",isSelected:!0},{id:"2",name:"Admin Dashboard",description:"Internal administration and analytics dashboard",isSelected:!1},{id:"3",name:"Mobile App",description:"Native mobile application for iOS and Android",isSelected:!1}];var Ot=[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0},{id:"2",name:"Dashboard Features",color:"bg-green-500",description:"Build comprehensive dashboard functionality",confidence:"medium",phase:1,startDate:new Date("2024-02-01"),endDate:new Date("2024-03-15"),progress:30,isSelected:!0},{id:"3",name:"Mobile Optimization",color:"bg-purple-500",description:"Optimize application for mobile devices",confidence:"low",phase:1,startDate:new Date("2024-03-01"),endDate:new Date("2024-04-15"),progress:10,isSelected:!0},{id:"4",name:"Performance Improvements",color:"bg-orange-500",description:"Enhance application performance and speed",confidence:"high",phase:3,startDate:new Date("2024-01-15"),endDate:new Date("2024-02-28"),progress:90,isSelected:!0}],xt=[{id:"backlog",name:"Backlog",description:"Tasks not yet assigned to a sprint",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!1},{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0},{id:"1",name:"Sprint 1",description:"Initial development phase",startDate:new Date("2024-01-01"),endDate:new Date("2024-01-14"),isActive:!1,isSelected:!1},{id:"2",name:"Sprint 2",description:"Feature development",startDate:new Date("2024-01-15"),endDate:new Date("2024-01-28"),isActive:!0,isSelected:!1}],kt=[{id:"1",name:"Design login page",description:"Create wireframes and mockups for the login interface",status:"todo",priority:"high",type:"story",points:5,epicId:"1",sprintId:"2",assignee:"John Doe",createdAt:new Date("2024-01-15")},{id:"2",name:"Implement OAuth integration",description:"Add Google and GitHub OAuth authentication",status:"review",priority:"high",type:"task",points:8,epicId:"1",sprintId:"2",assignee:"Jane Smith",createdAt:new Date("2024-01-16")},{id:"3",name:"Create dashboard widgets",description:"Build analytics and metrics widgets for the main dashboard",status:"todo",priority:"medium",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Mike Johnson",createdAt:new Date("2024-01-17")},{id:"4",name:"Fix login redirect bug",description:"Resolve issue where users are not redirected after login",status:"done",priority:"high",type:"bug",points:3,epicId:"1",sprintId:"1",assignee:"Sarah Wilson",createdAt:new Date("2024-01-14")},{id:"5",name:"Research mobile frameworks",description:"Investigate best practices for mobile responsive design",status:"in-progress",priority:"medium",type:"spike",points:5,epicId:"3",assignee:"Alex Brown",createdAt:new Date("2024-01-18")},{id:"6",name:"Update user profile page",description:"Enhance user profile with new settings and preferences",status:"review",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Emma Davis",createdAt:new Date("2024-01-19")},{id:"7",name:"Performance optimization",description:"Optimize database queries and improve page load times",status:"done",priority:"high",type:"task",points:13,epicId:"4",sprintId:"1",assignee:"Tom Wilson",createdAt:new Date("2024-01-13")}],ui=[...kt,{id:"8",name:"Add search functionality",description:"Implement search across all dashboard widgets",status:"todo",priority:"medium",type:"story",points:8,epicId:"2",sprintId:"2",assignee:"Chris Lee",createdAt:new Date("2024-01-20")},{id:"9",name:"Fix mobile responsive issues",description:"Resolve layout problems on mobile devices",status:"in-progress",priority:"high",type:"bug",points:5,epicId:"3",sprintId:"2",assignee:"Taylor Swift",createdAt:new Date("2024-01-21")},{id:"10",name:"Implement dark mode",description:"Add dark theme support across the application",status:"review",priority:"low",type:"story",points:13,epicId:"2",sprintId:"2",assignee:"Jordan Smith",createdAt:new Date("2024-01-22")},{id:"11",name:"API rate limiting",description:"Implement rate limiting for API endpoints",status:"done",priority:"high",type:"task",points:8,epicId:"4",sprintId:"1",assignee:"Morgan Davis",createdAt:new Date("2024-01-12")},{id:"12",name:"User onboarding flow",description:"Create guided tour for new users",status:"todo",priority:"medium",type:"story",points:21,epicId:"1",sprintId:"2",assignee:"Casey Johnson",createdAt:new Date("2024-01-23")}],gi=[...Ct,{id:"4",name:"Analytics Platform",description:"Business intelligence and reporting system",isSelected:!1},{id:"5",name:"API Gateway",description:"Microservices API management layer",isSelected:!1}],wt={projects:[{id:"1",name:"Empty Project",description:"A project with no tasks",isSelected:!0}],epics:[],sprints:[{id:"all-tasks",name:"All Tasks",description:"View all tasks across all sprints",startDate:new Date("2024-01-01"),endDate:new Date("2024-12-31"),isActive:!1,isSelected:!0}],tasks:[]},Ta={epics:[{id:"1",name:"User Authentication",color:"bg-blue-500",description:"Implement secure user authentication system",confidence:"high",phase:2,startDate:new Date("2024-01-01"),endDate:new Date("2024-02-15"),progress:75,isSelected:!0}],tasks:kt.filter(e=>e.epicId==="1")};var ar={empty:{initialProjects:wt.projects,initialEpics:wt.epics,initialSprints:wt.sprints,initialTasks:wt.tasks},default:{initialProjects:Ct,initialEpics:Ot,initialSprints:xt,initialTasks:kt},highDensity:{initialProjects:Ct,initialEpics:Ot,initialSprints:xt,initialTasks:ui},singleEpic:{initialProjects:Ct,initialEpics:Ta.epics,initialSprints:xt,initialTasks:Ta.tasks},multipleProjects:{initialProjects:gi,initialEpics:Ot,initialSprints:xt,initialTasks:kt}},Nt=[{id:"1",type:"human",name:"Sarah Johnson",email:"sarah.johnson@company.com",role:"Senior Designer",department:"Design",status:"active",joinedDate:new Date("2023-01-15"),lastActive:new Date,phone:"+1 (555) 123-4567",location:"San Francisco, CA",timezone:"PST",skills:["UI/UX Design","Figma","Adobe Creative Suite","Prototyping","User Research"],bio:"Passionate designer with 8+ years of experience creating user-centered digital experiences."},{id:"2",type:"digital",name:"CodeAssist Pro",status:"active",joinedDate:new Date("2024-01-01"),lastActive:new Date,jobDescription:"AI-powered coding assistant that helps with code review, debugging, and documentation generation.",workInstructions:"Review pull requests for code quality and best practices. Generate comprehensive documentation for new features. Assist with debugging complex issues. Provide code suggestions and optimizations.",capabilities:["Code Review","Documentation Generation","Debugging","Code Optimization","Testing"],knowledge:["JavaScript","TypeScript","React","Node.js","Python","Git"].map(we),coreKnowledge:["Company coding standards","Architecture patterns","Security guidelines"].map(we),version:"2",lastUpdated:new Date("2024-01-15"),isActive:!0},{id:"3",type:"human",name:"Michael Chen",email:"michael.chen@company.com",role:"Product Manager",department:"Product",status:"inactive",joinedDate:new Date("2022-08-20"),lastActive:new Date(Date.now()-2*60*60*1e3),phone:"+1 (555) 987-6543",location:"New York, NY",timezone:"EST",skills:["Product Strategy","Agile","Data Analysis","User Stories","Roadmapping"],bio:"Strategic product manager focused on driving user engagement and business growth."},{id:"4",type:"digital",name:"MarketingBot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"Specialized AI assistant for marketing campaigns, content creation, and social media management.",workInstructions:"Create engaging social media content. Analyze campaign performance metrics. Generate marketing copy and headlines. Schedule and manage social media posts.",capabilities:["Content Creation","Social Media Management","Analytics","SEO Optimization","Campaign Management"],knowledge:["Digital Marketing","Social Media Platforms","Content Strategy","Analytics Tools"].map(we),coreKnowledge:["Brand guidelines","Target audience personas","Marketing objectives"].map(we),version:"52",lastUpdated:new Date("2024-02-10"),isActive:!0},{id:"5",type:"human",name:"Emily Rodriguez",email:"emily.rodriguez@company.com",role:"UX Researcher",department:"Design",status:"inactive",joinedDate:new Date("2023-06-10"),lastActive:new Date(Date.now()-7*24*60*60*1e3),phone:"+1 (555) 456-7890",location:"Austin, TX",timezone:"CST",skills:["User Research","Usability Testing","Data Analysis","Survey Design","Interview Techniques"],bio:"User researcher dedicated to understanding user needs and improving product experiences."},{id:"6",type:"digital",name:"DataAnalyzer Pro",status:"active",joinedDate:new Date("2024-01-10"),lastActive:new Date,jobDescription:"Advanced AI assistant specializing in data analysis, reporting, and business intelligence.",workInstructions:"Analyze complex datasets, generate insightful reports, create data visualizations, and provide actionable business recommendations.",capabilities:["Data Analysis","Report Generation","Data Visualization","Business Intelligence","Statistical Analysis"],knowledge:["Python","SQL","Tableau","Excel","R","Statistics"].map(we),coreKnowledge:["Company data sources","KPI definitions","Reporting standards"].map(we),version:"3.1",lastUpdated:new Date("2024-02-20"),isActive:!0},{id:"7",type:"digital",name:"ProjectManager AI",status:"active",joinedDate:new Date("2024-01-05"),lastActive:new Date,jobDescription:"Intelligent project management assistant that helps coordinate tasks, track progress, and manage timelines.",workInstructions:"Coordinate project activities, track milestones, manage resource allocation, and provide project status updates.",capabilities:["Project Planning","Task Coordination","Timeline Management","Resource Allocation","Progress Tracking"],knowledge:["Agile","Scrum","Gantt Charts","Risk Management","Stakeholder Management"].map(we),coreKnowledge:["Company project templates","Resource availability","Project methodologies"].map(we),version:"2.5",lastUpdated:new Date("2024-02-15"),isActive:!0},{id:"8",type:"digital",name:"CustomerSupport Bot",status:"active",joinedDate:new Date("2024-02-01"),lastActive:new Date,jobDescription:"AI-powered customer support assistant that handles inquiries, resolves issues, and escalates complex problems.",workInstructions:"Respond to customer inquiries, troubleshoot common issues, provide product information, and escalate complex cases to human agents.",capabilities:["Customer Support","Issue Resolution","Product Knowledge","Escalation Management","Chat Support"],knowledge:["Product Documentation","FAQ","Troubleshooting Guides","Customer Service Best Practices"].map(we),coreKnowledge:["Product catalog","Support processes","Escalation procedures"].map(we),version:"1.8",lastUpdated:new Date("2024-02-25"),isActive:!0}],or=[{id:"1",title:"Review quarterly report",description:"Go through Q4 performance metrics and prepare summary for the team meeting",dueDate:new Date(2024,2,15),dueTime:"14:30",colleague:Nt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:30,createdAt:new Date(2024,2,10),tags:["quarterly","review","urgent"]},{id:"2",title:"Weekly team standup",description:"Join the weekly team synchronization meeting",dueDate:new Date(2024,2,18),dueTime:"10:00",colleague:Nt.find(e=>e.id==="4"&&e.type==="digital"),isCompleted:!1,isRecurring:!0,recurrencePattern:"weekly",recurrenceInterval:1,priority:"medium",reminderEnabled:!0,reminderMinutes:15,createdAt:new Date(2024,2,11),tags:["meeting","standup","weekly"]},{id:"3",title:"Deploy to production",description:"Deploy the latest version to production environment",dueDate:new Date,dueTime:"16:00",colleague:Nt.find(e=>e.id==="2"&&e.type==="digital"),isCompleted:!1,isRecurring:!1,priority:"high",reminderEnabled:!0,reminderMinutes:60,createdAt:new Date,tags:["deploy","production","urgent"]}];var ir=Nt.filter(e=>e.type==="digital");function Aa(e,t){let[a,o]=(0,Ye.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,Ye.useEffect)(()=>{n(a)},[]),[a,n]}function Wt({items:e,isOpen:t,isMobile:a=!1,onClose:o,currentBusinessUnit:n=Ra[0],onBusinessUnitChange:r,onSearch:l,className:s,logo:m="/headerlogo.png",appName:u="Nuvia",tagline:D="Collaboration Platform"}){let[f,y]=St.useState({}),[P,z]=Aa("sidebar-favorites",{}),[T,x]=St.useState(null),[R,_]=St.useState(""),w=d=>{y(E=>({...E,[d]:!E[d]}))},B=d=>{r?.(d)},X=()=>{R.trim()&&l?.(R.trim())},Y=d=>{d.key==="Enter"&&(d.preventDefault(),X())},Z=(d,E)=>{let I=P[d]||[],V=I.includes(E)?I.filter(p=>p!==E):I.concat(E);z({...P,[d]:V})},Q=d=>{if(!d.items||!d.maxItems||d.items.length<=d.maxItems)return d.items||[];let E=P[d.id]||[],I=d.items.filter(p=>E.includes(p.id)),V=d.items.filter(p=>!E.includes(p.id));return[...I,...V].slice(0,d.maxItems)},G=d=>d.maxItems&&d.items&&d.items.length>d.maxItems,te=e,se=d=>{let E=G(d),I=Q(d),V=(0,fa.jsxs)(fa.Fragment,{children:[(0,fa.jsxs)("div",{className:"flex items-center gap-3",children:[d.icon,(0,fa.jsx)("span",{children:d.title})]}),d.badge&&(0,fa.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:d.badge}),d.items&&(0,fa.jsx)(po.ChevronDown,{className:c("ml-2 fa-4 w-4 transition-transform",f[d.title]?"rotate-180":"")})]}),p=c("flex w-full items-center justify-between rounded-2xl px-3 py-2 text-sm font-medium",d.isActive?"bg-primary/10 text-primary":"hover:bg-muted");return d.url?(0,fa.jsx)(Gt.default,{href:d.url,className:p,onClick:a?o:void 0,children:V}):(0,fa.jsx)("button",{className:p,onClick:()=>d.items&&w(d.title),children:V})},A=()=>{let d=e.find(I=>I.id===T);if(!d||!d.items||!d.maxItems)return null;let E=P[d.id]||[];return(0,fa.jsx)(ka,{open:!!T,onOpenChange:I=>!I&&x(null),children:(0,fa.jsxs)(_t,{className:"sm:max-w-md",children:[(0,fa.jsxs)(Ft,{children:[(0,fa.jsxs)(jt,{children:["Manage ",d.title," Favorites"]}),(0,fa.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Select up to ",d.maxItems," items to show in ",d.title.toLowerCase(),"."]})]}),(0,fa.jsx)(xe,{className:"max-fa-96 pr-4",children:(0,fa.jsx)("div",{className:"space-y-4",children:d.items.map(I=>(0,fa.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,fa.jsx)(Ht,{id:I.id,checked:E.includes(I.id),onCheckedChange:()=>Z(d.id,I.id),disabled:!E.includes(I.id)&&E.length>=(d.maxItems||0)}),(0,fa.jsxs)("label",{htmlFor:I.id,className:"flex items-center gap-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer flex-1",children:[I.title,I.badge&&(0,fa.jsx)(ce,{variant:"outline",className:"text-xs",children:I.badge})]})]},I.id))})})]})})},Se=(0,fa.jsxs)("div",{className:"flex fa-full flex-col bg-background",children:[(0,fa.jsxs)("div",{className:"flex items-center justify-between p-4",children:[(0,fa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,fa.jsx)("div",{className:"flex fa-14 w-14 items-center justify-center",children:(0,fa.jsx)("img",{src:m,alt:"Header Logo",className:"fa-14 w-14 object-contain"})}),(0,fa.jsxs)("div",{children:[(0,fa.jsx)("h2",{className:"font-semibold",children:u}),(0,fa.jsx)("p",{className:"text-xs text-muted-foreground",children:D})]})]}),a&&(0,fa.jsx)(S,{variant:"ghost",size:"icon",onClick:o,children:(0,fa.jsx)(po.X,{className:"fa-5 w-5"})})]}),(0,fa.jsx)("div",{className:"px-3 py-2",children:(0,fa.jsxs)("div",{className:"relative",children:[(0,fa.jsx)(po.Search,{className:"absolute left-3 top-3 fa-4 w-4 text-muted-foreground"}),(0,fa.jsx)(dt,{type:"search",placeholder:"Search...",className:"w-full rounded-2xl bg-muted pl-9 pr-4 py-2",value:R,onChange:d=>_(d.target.value),onKeyPress:Y})]})}),(0,fa.jsx)(xe,{className:"flex-1 px-3 py-2",children:(0,fa.jsx)("div",{className:"space-y-1",children:te.map(d=>(0,fa.jsxs)("div",{className:"mb-1",children:[se(d),d.items&&f[d.title]&&(0,fa.jsxs)("div",{className:"mt-1 ml-6 space-y-1 border-l pl-3",children:[Q(d).map(E=>(0,fa.jsxs)(Gt.default,{href:E.url,className:"flex items-center justify-between rounded-2xl px-3 py-2 text-sm hover:bg-muted",onClick:a?o:void 0,children:[E.title,E.badge&&(0,fa.jsx)(ce,{variant:"outline",className:"ml-auto rounded-full px-2 py-0.5 text-xs",children:E.badge})]},E.id)),G(d)&&d.items&&d.items.length>Q(d).length&&(0,fa.jsxs)("button",{onClick:()=>x(d.id),className:"w-full px-3 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted rounded-2xl transition-colors text-left",children:["...",d.items.length-Q(d).length," more available"]})]})]},d.id))})}),(0,fa.jsx)("div",{className:"p-3",children:(0,fa.jsx)("div",{className:"space-y-1",children:(0,fa.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-2xl px-3 py-2 text-sm font-medium hover:bg-muted",children:[(0,fa.jsx)(po.Settings,{className:"fa-5 w-5"}),(0,fa.jsx)("span",{children:"Settings"})]})})}),(0,fa.jsx)(A,{})]});return a?(0,fa.jsx)("div",{className:c("fixed inset-y-0 left-0 z-50 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Se}):(0,fa.jsx)("div",{className:c("fixed inset-y-0 left-0 z-30 w-64 transform bg-background transition-transform duration-300 ease-in-out",t?"translate-x-0":"-translate-x-full",s),children:Se})}var Pt=W(require("react")),Re=W(require("@radix-ui/react-avatar"));var Oe=Pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(Re.Root,{ref:a,className:c("relative flex fa-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Oe.displayName=Re.Root.displayName;var Vt=Pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(Re.Image,{ref:a,className:c("aspect-square fa-full w-full",e),...t}));Vt.displayName=Re.Image.displayName;var Ge=Pt.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(Re.Fallback,{ref:a,className:c("flex fa-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ge.displayName=Re.Fallback.displayName;var Ia=W(require("react")),he=W(require("@radix-ui/react-tooltip"));var tt=he.Provider,at=he.Root,ot=he.Trigger,We=Ia.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,$t.jsx)(he.Portal,{children:(0,$t.jsx)(he.Content,{ref:o,sideOffset:t,className:c("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})}));We.displayName=he.Content.displayName;var Ma=require("next-themes");function Ea(){let{setTheme:e,theme:t}=(0,Ma.useTheme)();return(0,fa.jsx)(tt,{children:(0,fa.jsxs)(at,{children:[(0,fa.jsx)(ot,{asChild:!0,children:(0,fa.jsxs)(S,{variant:"ghost",size:"icon",className:"rounded-2xl",onClick:()=>e(t==="light"?"dark":"light"),children:[(0,fa.jsx)(po.Sun,{className:"fa-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,fa.jsx)(po.Moon,{className:"absolute fa-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,fa.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,fa.jsx)(We,{children:"Toggle theme"})]})})}function Ua({notifications:e,open:t,onClose:a,onNotificationRemove:o,onRemoveAll:n,className:r}){let l=e.filter(u=>!u.read),s=l.length,m=u=>{switch(u){case"info":return(0,fa.jsx)(po.Info,{className:"fa-5 w-5 text-blue-500"});case"success":return(0,fa.jsx)(po.Check,{className:"fa-5 w-5 text-green-500"});case"warning":return(0,fa.jsx)(po.AlertTriangle,{className:"fa-5 w-5 text-amber-500"});case"error":return(0,fa.jsx)(po.AlertTriangle,{className:"fa-5 w-5 text-red-500"})}};return(0,fa.jsx)(Mt.AnimatePresence,{children:t&&(0,fa.jsxs)(fa.Fragment,{children:[(0,fa.jsx)(Mt.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-sm md:hidden",onClick:a}),(0,fa.jsx)(Mt.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:20,stiffness:300},className:c("fixed inset-y-0 right-0 z-50 w-full max-w-sm border-l bg-background shadow-lg md:w-96",r),children:(0,fa.jsxs)("div",{className:"flex fa-full flex-col",children:[(0,fa.jsxs)("div",{className:"flex items-center justify-between border-fa p-4",children:[(0,fa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,fa.jsx)(po.Bell,{className:"fa-5 w-5"}),(0,fa.jsx)("h2",{className:"text-lg font-semibold",children:"Notifications"}),s>0&&(0,fa.jsxs)(ce,{variant:"secondary",className:"rounded-full px-2 py-0.5",children:[s," new"]})]}),(0,fa.jsxs)(S,{variant:"ghost",size:"icon",onClick:a,className:"rounded-full",children:[(0,fa.jsx)(po.X,{className:"fa-5 w-5"}),(0,fa.jsx)("span",{className:"sr-only",children:"Close"})]})]}),s>0&&(0,fa.jsxs)("div",{className:"flex items-center justify-between border-fa p-2",children:[(0,fa.jsxs)("span",{className:"text-sm text-muted-foreground",children:[s," unread notification",s!==1?"s":""]}),(0,fa.jsx)(S,{variant:"ghost",size:"sm",onClick:n,className:"text-sm",children:"Dismiss all"})]}),l.length>0?(0,fa.jsx)(xe,{className:"flex-1",children:(0,fa.jsx)("div",{className:"divide-y",children:l.map(u=>(0,fa.jsxs)("div",{className:c("flex gap-3 p-4 transition-colors bg-muted/50"),children:[(0,fa.jsx)("div",{className:"flex fa-10 w-10 flex-shrink-0 items-center justify-center rounded-full bg-muted",children:m(u.type)}),(0,fa.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,fa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,fa.jsx)("p",{className:"font-medium",children:u.title}),(0,fa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,fa.jsx)("p",{className:"text-xs text-muted-foreground",children:u.time}),(0,fa.jsx)(S,{variant:"ghost",size:"sm",className:"fa-6 w-6 p-0",onClick:()=>o?.(u.id),title:"Dismiss",children:(0,fa.jsx)(po.Check,{className:"fa-3 w-3"})})]})]}),(0,fa.jsx)("p",{className:"text-sm text-muted-foreground",children:u.description}),u.actionLabel&&(0,fa.jsxs)(S,{variant:"link",size:"sm",className:"fa-auto p-0 text-sm",onClick:u.onAction,children:[u.actionLabel,(0,fa.jsx)(po.ChevronRight,{className:"ml-1 fa-3 w-3"})]})]})]},u.id))})}):(0,fa.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center p-8 text-center",children:[(0,fa.jsx)("div",{className:"flex fa-16 w-16 items-center justify-center rounded-full bg-muted",children:(0,fa.jsx)(po.Bell,{className:"fa-8 w-8 text-muted-foreground"})}),(0,fa.jsx)("h3",{className:"mt-4 text-lg font-medium",children:"No notifications"}),(0,fa.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:"When you receive notifications, they'll appear here."})]})]})})]})})}var Ve=W(require("@radix-ui/react-tabs"));function Ba({className:e,...t}){return(0,fa.jsx)(Ve.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function La({className:e,...t}){return(0,fa.jsx)(Ve.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex fa-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function za({className:e,...t}){return(0,fa.jsx)(Ve.Trigger,{"data-slot":"tabs-trigger",className:c("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 fa-[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 Ae=W(require("react")),N=W(require("@radix-ui/react-dropdown-menu")),it=require("@radix-ui/react-icons");var _a=N.Root,Fa=N.Trigger;var fi=Ae.forwardRef(({className:e,inset:t,children:a,...o},n)=>(0,fa.jsxs)(N.SubTrigger,{ref:n,className:c("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,fa.jsx)(it.ChevronRightIcon,{className:"ml-auto"})]}));fi.displayName=N.SubTrigger.displayName;var hi=Ae.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(N.SubContent,{ref:a,className:c("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}));hi.displayName=N.SubContent.displayName;var Kt=Ae.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,fa.jsx)(N.Portal,{children:(0,fa.jsx)(N.Content,{ref:o,sideOffset:t,className:c("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})}));Kt.displayName=N.Content.displayName;var qt=Ae.forwardRef(({className:e,inset:t,...a},o)=>(0,fa.jsx)(N.Item,{ref:o,className:c("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=N.Item.displayName;var bi=Ae.forwardRef(({className:e,children:t,checked:a,...o},n)=>(0,fa.jsxs)(N.CheckboxItem,{ref:n,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,fa.jsx)("span",{className:"absolute left-2 flex fa-3.5 w-3.5 items-center justify-center",children:(0,fa.jsx)(N.ItemIndicator,{children:(0,fa.jsx)(it.CheckIcon,{className:"fa-4 w-4"})})}),t]}));bi.displayName=N.CheckboxItem.displayName;var vi=Ae.forwardRef(({className:e,children:t,...a},o)=>(0,fa.jsxs)(N.RadioItem,{ref:o,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,fa.jsx)("span",{className:"absolute left-2 flex fa-3.5 w-3.5 items-center justify-center",children:(0,fa.jsx)(N.ItemIndicator,{children:(0,fa.jsx)(it.DotFilledIcon,{className:"fa-4 w-4 fill-current"})})}),t]}));vi.displayName=N.RadioItem.displayName;var yi=Ae.forwardRef(({className:e,inset:t,...a},o)=>(0,fa.jsx)(N.Label,{ref:o,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));yi.displayName=N.Label.displayName;var xi=Ae.forwardRef(({className:e,...t},a)=>(0,fa.jsx)(N.Separator,{ref:a,className:c("-mx-1 my-1 fa-px bg-muted",e),...t}));xi.displayName=N.Separator.displayName;var wi=({className:e,...t})=>(0,fa.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});wi.displayName="DropdownMenuShortcut";function Ha({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:n="700px",gridCols:r=6}){let l=a.find(s=>s.value===e);return(0,fa.jsxs)(Mt.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,fa.jsx)("div",{className:"hidden lg:block",children:(0,fa.jsx)(Ba,{value:e,onValueChange:t,children:(0,fa.jsx)(La,{className:"grid w-full rounded-2xl p-0 fa-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(r,a.length)}, minmax(0, 1fr))`},children:a.map(s=>(0,fa.jsx)(Mt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,fa.jsx)(za,{value:s.value,className:"w-full fa-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:s.label})},s.value))})})}),(0,fa.jsx)("div",{className:"lg:hidden",children:(0,fa.jsxs)(_a,{children:[(0,fa.jsx)(Fa,{asChild:!0,children:(0,fa.jsxs)(S,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[l?.label||"Select",(0,fa.jsx)(po.ChevronDown,{className:"fa-4 w-4 ml-2"})]})}),(0,fa.jsx)(Kt,{align:"center",className:"w-[180px]",children:a.map(s=>(0,fa.jsx)(qt,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}function Oa({title:e,notifications:t=[],onToggleSidebar:a,onToggleMobileMenu:o,sidebarOpen:n=!0,className:r,activeTab:l="assistant",onTabChange:s,showTabs:m=!0,tabOptions:u=[{value:"home",label:"Home"},{value:"chat",label:"Chat"},{value:"projects",label:"Projects"},{value:"colleagues",label:"Colleagues"},{value:"knowledge",label:"Knowledge"}],onActionClick:D,actionIcon:f=(0,fa.jsx)(po.Bot,{className:"mr-2 fa-4 w-4"}),actionText:y="Action",onNotificationRemove:P,onRemoveAll:z,logo:T="/headerlogo.png",appName:x="Nuvia",tagline:R="Collaboration Platform"}){let[_,w]=(0,Ye.useState)(!1),[B,X]=(0,Ye.useState)(t),Y=B.filter(G=>!G.read).length,Z=G=>{X(te=>te.filter(se=>se.id!==G)),P?.(G)},Q=()=>{X(G=>G.filter(te=>te.read)),z?.()};return(0,fa.jsxs)(fa.Fragment,{children:[(0,fa.jsxs)("header",{className:`sticky top-0 z-10 flex fa-16 items-center gap-3 pl-2 pr-4 backdrop-blur ${r||""}`,children:[(0,fa.jsx)(S,{variant:"ghost",size:"icon",className:"md:hidden",onClick:o,children:(0,fa.jsx)(po.Menu,{className:"fa-5 w-5"})}),(0,fa.jsx)(S,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:a,children:(0,fa.jsx)(po.PanelLeft,{className:"fa-5 w-5"})}),!n&&(0,fa.jsxs)(Mt.motion.div,{className:"flex items-center gap-3",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3},children:[(0,fa.jsx)("div",{className:"flex fa-10 w-10 items-center justify-center",children:(0,fa.jsx)("img",{src:T,alt:"Logo",className:"fa-10 w-10 object-contain"})}),(0,fa.jsxs)("div",{children:[(0,fa.jsx)("h2",{className:"font-semibold text-sm",children:x}),(0,fa.jsx)("p",{className:"text-xs text-muted-foreground",children:R})]})]}),(0,fa.jsxs)("div",{className:"flex flex-1 items-center",children:[m&&(0,fa.jsx)(Ha,{activeTab:l,onTabChange:s,tabOptions:u}),(0,fa.jsxs)("div",{className:"flex items-center gap-3 ml-auto",children:[(0,fa.jsx)(Mt.motion.div,{className:"hidden md:flex gap-2",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1},children:(0,fa.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,fa.jsxs)(S,{className:"rounded-2xl transition-all duration-200 hover:shadow-md",onClick:D,children:[f,y]})})}),(0,fa.jsx)(Ea,{}),(0,fa.jsx)(tt,{children:(0,fa.jsxs)(at,{children:[(0,fa.jsx)(ot,{asChild:!0,children:(0,fa.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,fa.jsxs)(S,{variant:"ghost",size:"icon",className:"rounded-2xl relative transition-all duration-200",onClick:()=>w(!0),children:[(0,fa.jsx)(Mt.motion.div,{animate:Y>0?{rotate:[0,-10,10,-10,0]}:{},transition:{duration:.5,repeat:Y>0?1/0:0,repeatDelay:3},children:(0,fa.jsx)(po.Bell,{className:"fa-5 w-5"})}),Y>0&&(0,fa.jsx)(Mt.motion.span,{className:"absolute -right-1 -top-1 flex fa-5 w-5 items-center justify-center rounded-full bg-red-500 text-xs text-white",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:Y})]})})}),(0,fa.jsx)(We,{children:"Notifications"})]})}),(0,fa.jsx)(Mt.motion.div,{whileHover:{scale:1.05},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,fa.jsxs)(Oe,{className:"fa-9 w-9 border-2 border-primary transition-all duration-200 hover:shadow-md cursor-pointer",children:[(0,fa.jsx)(Vt,{src:"/placeholder.svg?height=40&width=40",alt:"User"}),(0,fa.jsx)(Ge,{})]})})]})]})]}),(0,fa.jsx)(Ua,{notifications:B,open:_,onClose:()=>w(!1),onNotificationRemove:Z,onRemoveAll:Q})]})}var Ga=[{id:"copilot",name:"Peronal Copilot",description:"Your personal AI assistant for all tasks",icon:(0,fa.jsx)(po.User,{className:"fa-4 w-4"}),color:"bg-orange-600",accentColor:"text-orange-600"}];function Va({sidebarItems:e,children:t,title:a="Digital Colleagues",notifications:o=[],currentBusinessUnit:n=Ga[0],onBusinessUnitChange:r,onSearch:l,businessUnits:s=Ga,activeTab:m,onTabChange:u,showTabs:D=!1,onActionClick:f,actionIcon:y,actionText:P="Action",onNotificationRemove:z,onRemoveAll:T,logo:x="/headerlogo.png",appName:R="Nuvia",tagline:_="Collaboration Platform",sidebarInitiallyClosed:w=!1}){let[B,X]=(0,Ye.useState)(!w),[Y,Z]=(0,Ye.useState)(!1),[Q,G]=(0,Ye.useState)(n),te=se=>{G(se),r?.(se)};return(0,fa.jsxs)("div",{className:"flex fa-full flex-col overflow-hidden rounded-xl bg-background w-[]",children:[Y&&(0,fa.jsx)("div",{className:"fixed inset-0 z-40 bg-black/50 md:hidden",onClick:()=>Z(!1)}),(0,fa.jsx)("div",{className:"md:hidden",children:(0,fa.jsx)(Wt,{items:e,isOpen:Y,isMobile:!0,onClose:()=>Z(!1),currentBusinessUnit:Q,onBusinessUnitChange:te,onSearch:l,logo:x,appName:R,tagline:_})}),(0,fa.jsx)("div",{className:"hidden md:block",children:(0,fa.jsx)(Wt,{items:e,isOpen:B,isMobile:!1,currentBusinessUnit:Q,onBusinessUnitChange:te,onSearch:l,logo:x,appName:R,tagline:_})}),(0,fa.jsxs)("div",{className:c("min-fa-screen fixed w-full transition-all duration-300 ease-in-out",B?"md:pl-64":"md:pl-0"),children:[(0,fa.jsx)(Oa,{title:a,notifications:o,onToggleSidebar:()=>X(!B),onToggleMobileMenu:()=>Z(!0),sidebarOpen:B,activeTab:m,onTabChange:u,showTabs:D,onActionClick:f,actionIcon:y,actionText:P,onNotificationRemove:z,onRemoveAll:T,logo:x,appName:R,tagline:_}),(0,fa.jsx)("main",{className:"flex-1 p-0 flex flex-col fa-[calc(100vh-4rem)] overflow-auto",children:t})]})]})}var $e=W(require("react"));var ge=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Ie=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("flex flex-col space-y-1.5 p-6",e),...t}));Ie.displayName="CardHeader";var Me=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("font-semibold leading-none tracking-tight",e),...t}));Me.displayName="CardTitle";var Xt=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("text-sm text-muted-foreground",e),...t}));Xt.displayName="CardDescription";var Ne=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("p-6 pt-0",e),...t}));Ne.displayName="CardContent";var gt=$e.forwardRef(({className:e,...t},a)=>(0,fa.jsx)("div",{ref:a,className:c("flex items-center p-6 pt-0",e),...t}));gt.displayName="CardFooter";function $a({sessions:e,currentSession:t,teams:a,onNewChat:o,onSessionSelect:n,onSessionEdit:r,onSessionDelete:l,className:s}){return(0,fa.jsx)(tt,{children:(0,fa.jsx)("div",{className:`space-y-4 fa-full ${s||""}`,children:(0,fa.jsxs)(ge,{className:"shadow-sm fa-full",children:[(0,fa.jsx)("div",{className:"p-4 border-fa",children:(0,fa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,fa.jsxs)("h3",{className:"font-semibold text-sm flex items-center gap-2",children:[(0,fa.jsx)(po.Clock,{className:"fa-4 w-4"}),"Recent Chats"]}),(0,fa.jsxs)(S,{onClick:o,size:"sm",className:"gap-1 fa-7 px-2 rounded-lg shadow-sm",children:[(0,fa.jsx)(po.Plus,{className:"fa-3 w-3"}),"New"]})]})}),(0,fa.jsx)(xe,{className:"fa-[600px]",children:(0,fa.jsx)("div",{className:"p-2",children:e.length===0?(0,fa.jsx)("div",{className:"p-4 text-center text-sm text-muted-foreground",children:"No chat sessions yet"}):e.map(m=>(0,fa.jsxs)(at,{children:[(0,fa.jsx)(ot,{asChild:!0,children:(0,fa.jsx)("div",{className:c("group relative p-3 rounded-xl cursor-pointer transition-all hover:bg-muted/50 mb-2",t?.id===m.id&&"bg-muted border"),onClick:()=>n(m),children:(0,fa.jsxs)("div",{className:"grid grid-cols-[1fr_auto] gap-2 items-start",children:[(0,fa.jsxs)("div",{className:"min-w-0 overflow-hidden",children:[(0,fa.jsx)("h4",{className:"font-medium text-sm truncate mb-1",children:m.title}),(0,fa.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-2",children:m.lastMessage})]}),(0,fa.jsxs)("div",{className:"flex items-start gap-1 pt-0.5",children:[r&&(0,fa.jsx)(S,{variant:"ghost",size:"icon",className:"fa-6 w-6 rounded opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),r(m.id)},children:(0,fa.jsx)(po.Edit3,{className:"fa-3 w-3"})}),l&&(0,fa.jsx)(S,{variant:"ghost",size:"icon",className:"fa-6 w-6 rounded text-destructive hover:text-destructive opacity-30 group-hover:opacity-100 transition-opacity",onClick:u=>{u.stopPropagation(),l(m.id)},children:(0,fa.jsx)(po.Trash2,{className:"fa-3 w-3"})})]})]})})}),(0,fa.jsx)(We,{side:"right",className:"max-w-xs",children:(0,fa.jsxs)("div",{className:"space-y-1",children:[(0,fa.jsx)("p",{className:"font-medium text-sm",children:m.title}),(0,fa.jsx)("p",{className:"text-xs",children:m.lastMessage})]})})]},m.id))})})]})})})}var Qe=W(require("motion/react-client"));var Ka={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},qe=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function Yt(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function qa({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:n,colorScheme:r=Ka,className:l}){let[s,m]=(0,Ye.useState)([]),[u,D]=(0,Ye.useState)([]),f=s[s.length-1],y=f?.children||e,P=(w,B)=>{switch(w.type){case"category":return r.categories[B%r.categories.length];case"list":return r.lists[B%r.lists.length];case"item":return r.items[B%r.items.length];default:return r.primary}},z=(0,Ye.useMemo)(()=>({path:s,selectedItems:u,filters:{}}),[s,u]);(0,Ye.useEffect)(()=>{n&&n(z)},[z,n]);let T=w=>{w.type==="category"||w.type==="list"?m([...s,w]):w.type==="item"&&D([...u,w])},x=()=>{m(s.slice(0,-1))},R=w=>{m(s.slice(0,w+1))},_=()=>f?.actions?f.actions:[];return t?(0,fa.jsxs)("div",{className:c("w-full",l),children:[(0,fa.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,fa.jsxs)("div",{className:"flex items-center gap-2",children:[s.length>0&&(0,fa.jsx)(Mt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:x,className:c("group p-1 fa-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,fa.jsx)(po.ChevronLeft,{className:c("fa-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,fa.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,fa.jsx)(Mt.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:c("group p-1 fa-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,fa.jsx)(po.X,{className:c("fa-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),s.length>0&&(0,fa.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,fa.jsx)(Mt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>m([]),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,fa.jsxs)("span",{className:"relative",children:["Capabilities",(0,fa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 fa-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),s.map((w,B)=>(0,fa.jsxs)("div",{className:"flex items-center gap-1",children:[(0,fa.jsx)(po.ChevronRight,{className:"fa-2 w-2"}),(0,fa.jsx)(Mt.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>R(B),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,fa.jsxs)("span",{className:"relative",children:[w.name,(0,fa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 fa-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},w.id))]}),(0,fa.jsx)("div",{className:"max-fa-40 overflow-y-auto",children:(0,fa.jsx)(Mt.AnimatePresence,{mode:"wait",children:(0,fa.jsx)(Mt.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,fa.jsx)(ki,{data:f.data,onItemSelect:w=>D([...u,w]),colorScheme:r}):(0,fa.jsx)(Ci,{capabilities:y,onSelect:T,colorScheme:r})},f?.id||"root")})})]}):(0,fa.jsxs)(S,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,fa.jsx)(po.Menu,{className:"fa-4 w-4"}),(0,fa.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function Ci({capabilities:e,onSelect:t,colorScheme:a}){return(0,fa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,n)=>(0,fa.jsx)(Ni,{capability:o,onClick:()=>t(o),color:a.categories[n%a.categories.length]},o.id))})}function Ni({capability:e,onClick:t,selected:a,color:o}){return(0,fa.jsxs)(Mt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,fa.jsx)("div",{className:c("w-2 fa-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,fa.jsxs)("span",{className:"truncate relative",children:[e.name,(0,fa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 fa-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,fa.jsx)(po.ChevronRight,{className:c("fa-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,fa.jsx)(ce,{variant:"secondary",className:c("text-xs fa-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function ki({data:e,onItemSelect:t,colorScheme:a}){return(0,fa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,n)=>(0,fa.jsxs)(Mt.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,fa.jsx)("div",{className:c("w-2 fa-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[n%a.items.length])}),(0,fa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,fa.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,fa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 fa-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,fa.jsx)("div",{className:c("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,fa.jsx)(ce,{variant:"secondary",className:c("text-xs fa-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var Xa=require("date-fns");function Ja({taskId:e,polling:t=!0,system:a="payload"}){let[o,n]=(0,Ye.useState)(null),[r,l]=(0,Ye.useState)(!1),[s,m]=(0,Ye.useState)(null),u=async(f=!0)=>{if(e){f&&l(!0);try{let y=await fetch(`/api/tasks/${e}`);if(!y.ok)throw new Error(`Failed to fetch task: ${y.statusText}`);let P=await y.json();n(P)}catch(y){console.error("Error fetching task:",y),m(y instanceof Error?y:new Error("Unknown error occurred"))}finally{f&&l(!1)}}},D=()=>u(!1);return(0,Ye.useEffect)(()=>{e&&u(!0);let f=null;return e&&t&&(f=setInterval(D,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:o,loading:r,error:s}}var Di=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Si=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Ya({data:e}){let{id:t,system:a,fetchLatest:o,taskData:n,error:r}=e||{};if(!t)return null;let l=null,s=!0,m=r,u=o!==void 0?o:!0;if(l=n||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:u,taskData:l,error:m}),u){let{task:P,loading:z,error:T}=Ja({taskId:t,system:a});l=P,s=z,m=T}else s=!1;let D=Di(l?.status||"todo"),f=Si(l?.status||"todo"),y=l?.dateLogged||new Date().toISOString();try{let P=new Date(l?.dateLogged||"");isNaN(P.getTime())||(y=(0,Xa.formatDistanceToNow)(P,{addSuffix:!0}))}catch{}return(0,fa.jsxs)(ge,{className:c("w-full max-w-md shadow-md",m&&"border border-destructive"),children:[(0,fa.jsxs)(Ie,{className:"pb-2",children:[(0,fa.jsxs)("div",{className:"flex justify-between items-start",children:[(0,fa.jsx)(Me,{className:"text-lg font-semibold",children:s?"Loading...":l?.name||"Task"}),(0,fa.jsx)(ce,{className:`${D}`,children:f})]}),l?.project&&(0,fa.jsxs)(Xt,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,fa.jsx)(Ne,{className:"pb-2",children:s?(0,fa.jsx)("div",{className:"animate-pulse fa-4 bg-gray-200 rounded w-3/4 mb-2"}):m?(0,fa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,fa.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,fa.jsx)(gt,{className:"pt-2 flex items-center justify-between",children:(0,fa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,fa.jsx)(po.Clock,{className:"fa-3 w-3 mr-1"}),(0,fa.jsxs)("span",{children:["Created ",y]}),(0,fa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,fa.jsxs)("span",{children:["Task #",t]})]})})]})}function to({artefact:e,taskId:t,taskData:a,loading:o=!1,error:n=null}){let r=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},l=r.dateLogged;try{let s=new Date(r.dateLogged);isNaN(s.getTime())||(l=(0,Xa.formatDistanceToNow)(s,{addSuffix:!0}))}catch{}return(0,fa.jsxs)(ge,{className:"w-full max-w-md shadow-md",children:[(0,fa.jsx)(Ie,{className:"pb-2",children:(0,fa.jsx)("div",{className:"flex justify-between items-start",children:(0,fa.jsx)(Me,{className:"text-lg font-semibold",children:o?"Loading...":r.name})})}),(0,fa.jsx)(Ne,{className:"pb-2",children:o?(0,fa.jsx)("div",{className:"animate-pulse fa-4 bg-gray-200 rounded w-3/4 mb-2"}):n?(0,fa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,fa.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,fa.jsx)(gt,{className:"pt-2 flex items-center justify-between",children:(0,fa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,fa.jsx)(po.Clock,{className:"fa-3 w-3 mr-1"}),(0,fa.jsxs)("span",{children:["Created ",l]}),(0,fa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,fa.jsxs)("span",{children:["Task #",r.id]})]})})]})}var oo=W(require("react"));var ao=({isOpen:e=!0,authUrl:t,onClose:a,onSuccess:o,description:n="This endpoint requires authentication to sync functions."})=>{let[r,l]=(0,Ye.useState)(!1),[s,m]=(0,Ye.useState)(""),u=()=>{if(!t){m("No authentication URL provided");return}l(!0),m("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){m("Popup blocked. Please allow popups for this site and try again."),l(!1);return}let y=setInterval(()=>{try{f.closed&&(clearInterval(y),l(!1),o(),a())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(y),l(!1),m("Authentication timed out. Please try again."))},6e5)}catch{m("Failed to open authentication window"),l(!1)}},D=async()=>{try{await navigator.clipboard.writeText(t),m("")}catch{m("Failed to copy URL to clipboard")}};return e?(0,fa.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,fa.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,fa.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,fa.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:n}),s&&(0,fa.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:s}),(0,fa.jsxs)("div",{className:"flex gap-2",children:[(0,fa.jsx)("button",{onClick:u,disabled:r||!t,className:`
|
|
6
6
|
px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
|
|
7
7
|
${r||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
|
|
8
|
-
`,children:r?"Authenticating...":"Authenticate"}),(0,
|
|
8
|
+
`,children:r?"Authenticating...":"Authenticate"}),(0,fa.jsx)("button",{onClick:D,disabled:!t,className:`
|
|
9
9
|
px-4 py-2 text-white border-none rounded text-sm
|
|
10
10
|
${t?"bg-blue-600 hover:bg-blue-700 cursor-pointer":"bg-gray-400 cursor-not-allowed"}
|
|
11
|
-
`,children:"Copy URL"}),(0,ua.jsx)("button",{onClick:a,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var ao=({toolPart:e,index:t,addToolResult:a})=>{let[o,n]=to.default.useState(!0),r=()=>{a(e.input?.toolCallId,e.input?.tool,"Authentication completed"),n(!1)};switch(e.state){case"input-available":return(0,ua.jsxs)("div",{className:"mb-2",children:[(0,ua.jsx)(eo,{isOpen:o,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>n(!1),onSuccess:r,description:e.output?.reason||e.input?.reason}),!o&&(0,ua.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ua.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ua.jsx)("svg",{className:"ua-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ua.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,ua.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);default:return null}};var oo=require("marked"),io=W(require("react-markdown"));function Di(e){return oo.marked.lexer(e).map(a=>a.raw)}var ro=(0,Ye.memo)(({content:e})=>(0,ua.jsx)(io.default,{children:e}),(e,t)=>e.content===t.content);ro.displayName="MemoizedMarkdownBlock";var Zt=(0,Ye.memo)(({content:e,id:t})=>(0,Ye.useMemo)(()=>Di(e),[e]).map((o,n)=>(0,ua.jsx)(ro,{content:o},`${t}-block_${n}`)));Zt.displayName="PartText";function so({messages:e,input:t,isTyping:a=!1,currentSessionTitle:o,capabilities:n,fileUploads:r,isDragOver:l,enableFileUpload:s,onInputChange:m,addToolResult:u,onSendMessage:D,onKeyPress:f,onFileUpload:y,onRemoveFile:P,onDragOver:_,className:T}){let x=(0,Ye.useRef)(null),R=(0,Ye.useRef)(null),z=(0,Ye.useRef)(null),[w,B]=(0,Ye.useState)(!1),[X,Y]=(0,Ye.useState)({path:[],selectedItems:[],filters:{}});(0,Ye.useEffect)(()=>{x.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,Ye.useEffect)(()=>{w&&setTimeout(()=>{x.current?.scrollIntoView({behavior:"smooth"})},100)},[w]);let Z=()=>Xt(X),Q=()=>{let p=[];return n.forEach(F=>{F.actions&&F.actions.forEach($=>{p.push({label:$.label,action:()=>G($.id,{path:[F],selectedItems:[],filters:{}})})}),F.children&&F.children.forEach($=>{$.type==="list"&&$.data&&p.push({label:`View ${$.name}`,action:()=>B(!0)})})}),p.slice(0,5)},G=(p,F)=>{console.log("Capability action:",p,F);let $=`Executing ${p} with context: ${JSON.stringify(F.path.map(U=>U.name))}`;B(!1)},te=Xt({path:[],selectedItems:[],filters:{}}),se=p=>{y(p.target.files),p.target.files&&(p.target.value="")},A=p=>{p.preventDefault(),_(!0)},Se=p=>{p.preventDefault(),_(!1)},d=p=>{p.preventDefault(),_(!1),y(p.dataTransfer.files)},E=p=>{if(p===0)return"0 Bytes";let F=1024,$=["Bytes","KB","MB","GB"],U=Math.floor(Math.log(p)/Math.log(F));return parseFloat((p/Math.pow(F,U)).toFixed(2))+" "+$[U]},I=p=>p.startsWith("image/")?(0,ua.jsx)(lo.Image,{className:"ua-4 w-4"}):p.startsWith("text/")?(0,ua.jsx)(lo.FileText,{className:"ua-4 w-4"}):(0,ua.jsx)(lo.File,{className:"ua-4 w-4"}),V=p=>{let F=p.role==="assistant",$=p.role==="user";return(0,ua.jsxs)("div",{className:c("flex items-start gap-3",$?"flex-row-reverse":""),children:[(0,ua.jsx)(Oe,{className:"ua-8 w-8 shrink-0",children:(0,ua.jsx)(Ge,{className:c($?"bg-primary text-primary-foreground":"bg-gradient-to-br from-purple-600 to-blue-600 text-white"),children:$?(0,ua.jsx)(lo.User,{className:"ua-4 w-4"}):(0,ua.jsx)(lo.Bot,{className:"ua-4 w-4"})})}),(0,ua.jsx)("div",{className:c("max-w-[80%] rounded-2xl px-4 py-3 shadow-sm",$?"bg-primary text-primary-foreground":"bg-muted"),children:p.parts.map((U,ae)=>{if(U.type==="text")return(0,ua.jsx)(Zt,{id:p.id,content:U.text},`${p.id}-text`);if(U.type==="file"){let k=U;return(0,ua.jsx)("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:(0,ua.jsxs)("div",{className:"flex items-center gap-2",children:[I(k.mediaType||"application/octet-stream"),(0,ua.jsx)("div",{className:"flex-1 min-w-0",children:(0,ua.jsx)("p",{className:"text-sm font-medium truncate",children:k.filename||k.url?.split("/").pop()||"File"})}),k.url&&(0,ua.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>window.open(k.url,"_blank"),className:"ua-8 w-8 p-0",children:(0,ua.jsx)(lo.Download,{className:"ua-4 w-4"})})]})},ae)}if(U.type.startsWith("tool-")){let k=U,ye=U.type.replace("tool-","");if(ye==="task")switch(k.state){case"input-available":return(0,ua.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},ae);case"output-available":return(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsx)(Qa,{data:{id:k.output?.id||k.input?.id,fetchLatest:!1,taskData:k.output||k.input}})},ae);case"output-error":return(0,ua.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",k.errorText]},ae);default:return null}if(U.type==="tool-requestEndpointLogin")return(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsx)(ao,{toolPart:k,index:ae,addToolResult:u??(()=>{})})},ae);if(ye==="artefact")switch(k.state){case"input-available":return(0,ua.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},ae);case"output-available":return(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsx)(Za,{artefact:k.output?.description||"",taskId:k.output?.id||k.input?.id,taskData:k.output||k.input})},ae);case"output-error":return(0,ua.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",k.errorText]},ae);default:return null}return(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsxs)(ge,{className:"w-full max-w-md",children:[(0,ua.jsx)(Ie,{children:(0,ua.jsx)(Me,{className:"text-lg",children:ye})}),(0,ua.jsxs)(Ne,{children:[k.state==="input-available"&&(0,ua.jsxs)("p",{className:"text-sm",children:["Processing ",ye,"..."]}),k.state==="output-available"&&(0,ua.jsx)("pre",{className:"text-sm",children:JSON.stringify(k.output,null,2)}),k.state==="output-error"&&(0,ua.jsxs)("p",{className:"text-sm text-red-500",children:["Error: ",k.errorText]})]})]})},ae)}if(U.type.startsWith("data-")){let k=U,ye=U.type.replace("data-","");return ye==="reference"?(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsx)(ge,{className:"w-full",children:(0,ua.jsx)(Ne,{className:"p-4",children:(0,ua.jsx)("div",{className:"space-y-2",children:k.data?.references?.map((ne,Pe)=>(0,ua.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[(0,ua.jsx)(ce,{variant:"outline",children:ne.type||"link"}),(0,ua.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ua.jsx)("p",{className:"text-sm font-medium truncate",children:ne.title}),ne.description&&(0,ua.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:ne.description})]}),ne.url&&(0,ua.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>window.open(ne.url,"_blank"),className:"ua-8 w-8 p-0",children:(0,ua.jsx)(lo.ExternalLink,{className:"ua-4 w-4"})})]},Pe))})})})},ae):ye==="menu"?(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsxs)(ge,{className:"w-full",children:[(0,ua.jsx)(Ie,{children:(0,ua.jsx)(Me,{className:"text-lg",children:k.data?.title})}),(0,ua.jsx)(Ne,{children:(0,ua.jsx)("div",{className:"space-y-2",children:k.data?.items?.map((ne,Pe)=>(0,ua.jsx)(S,{variant:"outline",className:"w-full justify-start",onClick:ne.action,children:(0,ua.jsxs)("div",{className:"text-left",children:[(0,ua.jsx)("p",{className:"font-medium",children:ne.label}),ne.description&&(0,ua.jsx)("p",{className:"text-xs text-muted-foreground",children:ne.description})]})},Pe))})})]})},ae):(0,ua.jsx)("div",{className:"mb-2",children:(0,ua.jsxs)(ge,{className:"w-full max-w-md",children:[(0,ua.jsx)(Ie,{children:(0,ua.jsx)(Me,{className:"text-lg",children:ye})}),(0,ua.jsx)(Ne,{children:(0,ua.jsx)("pre",{className:"text-sm",children:JSON.stringify(k.data,null,2)})})]})},ae)}return null})})]})};return(0,ua.jsxs)("div",{className:`ua-full flex flex-col shadow-sm max-w-4xl mx-auto ${T||""}`,children:[(0,ua.jsxs)(xe,{ref:R,className:"flex-1 p-4 bg-background border-0",onDragOver:A,onDragLeave:Se,onDrop:d,children:[(0,ua.jsxs)("div",{className:c("space-y-4",l&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,ua.jsx)(Qe.animate,{children:e.map(p=>(0,ua.jsx)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:c("flex gap-3",p.role==="user"?"flex-row-reverse":"flex-row"),children:V(p)},p.id))}),w&&(0,ua.jsxs)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[(0,ua.jsx)(Oe,{className:"ua-8 w-8",children:(0,ua.jsx)(Ge,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ua.jsx)(lo.Bot,{className:"ua-4 w-4"})})}),(0,ua.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ua.jsx)($a,{capabilities:n,isOpen:w,onToggle:()=>B(!w),onActionSelect:G,className:"w-full"})})]}),a&&(0,ua.jsxs)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[(0,ua.jsx)(Oe,{className:"ua-8 w-8",children:(0,ua.jsx)(Ge,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ua.jsx)(lo.Bot,{className:"ua-4 w-4"})})}),(0,ua.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ua.jsxs)("div",{className:"flex space-x-1",children:[(0,ua.jsx)("div",{className:"w-2 ua-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,ua.jsx)("div",{className:"w-2 ua-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,ua.jsx)("div",{className:"w-2 ua-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,ua.jsx)("div",{ref:x})]}),r.length>0&&(0,ua.jsx)("div",{className:"p-4 border-t bg-muted/10",children:(0,ua.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(p=>(0,ua.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[I(p.file.type),(0,ua.jsx)("span",{className:"text-sm font-medium",children:p.file.name}),(0,ua.jsx)("span",{className:"text-xs text-muted-foreground",children:E(p.file.size)}),(0,ua.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>P(p.id),className:"ua-6 w-6 p-0",children:(0,ua.jsx)(lo.X,{className:"ua-4 w-4"})})]},p.id))})}),(0,ua.jsxs)("div",{className:"border rounded-2xl p-4 bg-muted/20",children:[(0,ua.jsxs)("div",{className:"flex gap-3",children:[(0,ua.jsx)(dt,{value:t,onChange:p=>m(p.target.value),onKeyPress:f,placeholder:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:a}),s&&(0,ua.jsx)(S,{variant:"outline",size:"icon",onClick:()=>z.current?.click(),className:"rounded-2xl ua-10 w-10 shadow-sm",children:(0,ua.jsx)(lo.Paperclip,{className:"ua-4 w-4"})}),(0,ua.jsx)(S,{onClick:D,disabled:!t.trim()&&r.length===0||a,size:"icon",className:"rounded-2xl ua-10 w-10 shadow-sm",children:(0,ua.jsx)(lo.Send,{className:"ua-4 w-4"})})]}),(0,ua.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,ua.jsxs)(S,{onClick:()=>B(!w),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,ua.jsx)(lo.Menu,{className:"ua-3 w-3 mr-1"}),w?"Hide":"Show"," Capabilities"]}),(0,ua.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[Z().map((p,F)=>(0,ua.jsx)(S,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>G(p.id,X),children:p.label},`context-${p.id}`)),Z().length===0&&Q().map((p,F)=>(0,ua.jsx)(S,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:p.action,children:p.label},`suggestion-${F}`))]})]}),s&&(0,ua.jsx)("input",{ref:z,type:"file",multiple:!0,onChange:se,className:"hidden"})]})]})}function Xe({aiConfig:e,useCustomChat:t,enableAI:a=!0,messages:o=[],businessUnits:n=[],capabilities:r=[],sidebarItems:l=[],notifications:s=[],sessions:m=[],onNewChat:u,onSessionSelect:D,onSessionDelete:f,onSessionEdit:y=()=>{},onBusinessUnitChange:P=()=>{},onNotificationRemove:_=()=>{},onRemoveAll:T=()=>{},onActionClick:x=()=>{},onSearch:R=E=>console.log("Search query:",E),initialTeam:z="design",currentSession:w=null,showCapabilities:B=!0,title:X="Digital Colleagues",enableFileUpload:Y=!0,maxFileSize:Z=10,allowedFileTypes:Q=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:G="/headerlogo.png",appName:te="Nuvia",tagline:se="AI-Powered Workspace",actionIcon:A=(0,ua.jsx)(lo.Users,{className:"mr-2 ua-4 w-4"}),actionText:Se="Collaborate",sidebarInitiallyClosed:d=!1}){let E={...e,onError:j=>{V?.setMessages(le=>[...le,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:j.message}]}]),console.error("Error in CopilotInterface:",j)}},I=(0,no.useChat)(E||{}),V=a?t||I:null,[p,F]=(0,Ye.useState)(""),[$,U]=(0,Ye.useState)(!1),ae=V?.messages||o,k=p,ye=V?.status==="submitted"||$,ne=V?.addToolResult?(j,le,oe)=>{V.addToolResult({tool:le,toolCallId:j,output:oe}),V.sendMessage()}:()=>{},Pe=n||[],co={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[po,mo]=(0,Ye.useState)(()=>Pe.length===0?co:Pe.find(j=>j.id===z)||Pe[0]),[nt,ht]=(0,Ye.useState)([]),[uo,go]=(0,Ye.useState)(!1),fo=j=>{if(!j||!Y)return;let le=[];Array.from(j).forEach(oe=>{if(oe.size>Z*1024*1024){alert(`File ${oe.name} is too large. Maximum size is ${Z}MB.`);return}if(Q.length>0&&!Q.some(bt=>oe.type.match(bt))){alert(`File type ${oe.type} is not allowed.`);return}let aa={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:oe,status:"pending",progress:0};if(oe.type.startsWith("image/")){let bt=new FileReader;bt.onload=xo=>{ht(wo=>wo.map(Et=>Et.id===aa.id?{...Et,preview:xo.target?.result}:Et))},bt.readAsDataURL(oe)}le.push(aa)}),ht(oe=>[...oe,...le])},ho=j=>{ht(le=>le.filter(oe=>oe.id!==j))},ta=()=>{if(!(!k.trim()&&nt.length===0)){if(V){let j=nt.length>0?bo(nt.map(le=>le.file)):void 0;V.sendMessage({text:k,files:j},{body:{timestamp:Date.now()}}),F("")}else console.log("Message to send:",k),console.log("Files to upload:",nt),F(""),U(!0),setTimeout(()=>{U(!1)},1500);ht([])}},bo=j=>{let le=new DataTransfer;return j.forEach(oe=>le.items.add(oe)),le.files},vo=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),ta())},yo=j=>{F(j)};return(0,ua.jsx)(Ga,{sidebarItems:l||[],title:X,notifications:s||[],businessUnits:Pe,currentBusinessUnit:po,onBusinessUnitChange:j=>{j&&(mo(j),P?.(j))},onSearch:R,showTabs:!1,onActionClick:x,actionIcon:A,actionText:Se,onNotificationRemove:_,onRemoveAll:T,logo:G,appName:te,tagline:se,sidebarInitiallyClosed:d,children:(0,ua.jsx)(Mt.AnimatePresence,{mode:"wait",children:(0,ua.jsx)(Mt.motion.div,{className:"flex-1 ua-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,ua.jsxs)("div",{className:"ua-full flex",children:[(0,ua.jsx)("div",{className:"w-80 flex-shrink-0 ua-full p-2",children:(0,ua.jsx)(Wa,{sessions:m||[],currentSession:w,teams:Pe,onNewChat:u,onSessionSelect:D,onSessionEdit:y,onSessionDelete:f})}),(0,ua.jsx)("div",{className:"flex-1 ua-full p-2",children:(0,ua.jsx)(so,{messages:ae||[],input:k,isTyping:ye,currentSessionTitle:w?.title,capabilities:r||[],onInputChange:yo,addToolResult:ne,onSendMessage:ta,onKeyPress:vo,fileUploads:nt,isDragOver:uo,enableFileUpload:Y,onFileUpload:fo,onRemoveFile:ho,onDragOver:go})})]})},"chat-interface")})})}function Si(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you help me analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll help you analyze your sales data. Let me fetch the latest information.
|
|
11
|
+
`,children:"Copy URL"}),(0,fa.jsx)("button",{onClick:a,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var io=({toolPart:e,index:t,addToolResult:a})=>{let[o,n]=oo.default.useState(!0),r=()=>{a(e.input?.toolCallId,e.input?.tool,"Authentication completed"),n(!1)};switch(e.state){case"input-available":return(0,fa.jsxs)("div",{className:"mb-2",children:[(0,fa.jsx)(ao,{isOpen:o,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>n(!1),onSuccess:r,description:e.output?.reason||e.input?.reason}),!o&&(0,fa.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,fa.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,fa.jsx)("svg",{className:"fa-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,fa.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,fa.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);default:return null}};var ro=require("marked"),so=W(require("react-markdown"));function Pi(e){return ro.marked.lexer(e).map(a=>a.raw)}var no=(0,Ye.memo)(({content:e})=>(0,fa.jsx)(so.default,{children:e}),(e,t)=>e.content===t.content);no.displayName="MemoizedMarkdownBlock";var ea=(0,Ye.memo)(({content:e,id:t})=>(0,Ye.useMemo)(()=>Pi(e),[e]).map((o,n)=>(0,fa.jsx)(no,{content:o},`${t}-block_${n}`)));ea.displayName="PartText";function lo({messages:e,input:t,isTyping:a=!1,currentSessionTitle:o,capabilities:n,fileUploads:r,isDragOver:l,enableFileUpload:s,onInputChange:m,addToolResult:u,onSendMessage:D,onKeyPress:f,onFileUpload:y,onRemoveFile:P,onDragOver:z,className:T}){let x=(0,Ye.useRef)(null),R=(0,Ye.useRef)(null),_=(0,Ye.useRef)(null),[w,B]=(0,Ye.useState)(!1),[X,Y]=(0,Ye.useState)({path:[],selectedItems:[],filters:{}});(0,Ye.useEffect)(()=>{x.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,Ye.useEffect)(()=>{w&&setTimeout(()=>{x.current?.scrollIntoView({behavior:"smooth"})},100)},[w]);let Z=()=>Yt(X),Q=()=>{let p=[];return n.forEach(F=>{F.actions&&F.actions.forEach($=>{p.push({label:$.label,action:()=>G($.id,{path:[F],selectedItems:[],filters:{}})})}),F.children&&F.children.forEach($=>{$.type==="list"&&$.data&&p.push({label:`View ${$.name}`,action:()=>B(!0)})})}),p.slice(0,5)},G=(p,F)=>{console.log("Capability action:",p,F);let $=`Executing ${p} with context: ${JSON.stringify(F.path.map(U=>U.name))}`;B(!1)},te=Yt({path:[],selectedItems:[],filters:{}}),se=p=>{y(p.target.files),p.target.files&&(p.target.value="")},A=p=>{p.preventDefault(),z(!0)},Se=p=>{p.preventDefault(),z(!1)},d=p=>{p.preventDefault(),z(!1),y(p.dataTransfer.files)},E=p=>{if(p===0)return"0 Bytes";let F=1024,$=["Bytes","KB","MB","GB"],U=Math.floor(Math.log(p)/Math.log(F));return parseFloat((p/Math.pow(F,U)).toFixed(2))+" "+$[U]},I=p=>p.startsWith("image/")?(0,fa.jsx)(po.Image,{className:"fa-4 w-4"}):p.startsWith("text/")?(0,fa.jsx)(po.FileText,{className:"fa-4 w-4"}):(0,fa.jsx)(po.File,{className:"fa-4 w-4"}),V=p=>{let F=p.role==="assistant",$=p.role==="user";return(0,fa.jsxs)("div",{className:c("flex items-start gap-3",$?"flex-row-reverse":""),children:[(0,fa.jsx)(Oe,{className:"fa-8 w-8 shrink-0",children:(0,fa.jsx)(Ge,{className:c($?"bg-primary text-primary-foreground":"bg-gradient-to-br from-purple-600 to-blue-600 text-white"),children:$?(0,fa.jsx)(po.User,{className:"fa-4 w-4"}):(0,fa.jsx)(po.Bot,{className:"fa-4 w-4"})})}),(0,fa.jsx)("div",{className:c("max-w-[80%] rounded-2xl px-4 py-3 shadow-sm",$?"bg-primary text-primary-foreground":"bg-muted"),children:p.parts.map((U,ae)=>{if(U.type==="text")return(0,fa.jsx)(ea,{id:p.id,content:U.text},`${p.id}-text`);if(U.type==="file"){let k=U;return(0,fa.jsx)("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:(0,fa.jsxs)("div",{className:"flex items-center gap-2",children:[I(k.mediaType||"application/octet-stream"),(0,fa.jsx)("div",{className:"flex-1 min-w-0",children:(0,fa.jsx)("p",{className:"text-sm font-medium truncate",children:k.filename||k.url?.split("/").pop()||"File"})}),k.url&&(0,fa.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>window.open(k.url,"_blank"),className:"fa-8 w-8 p-0",children:(0,fa.jsx)(po.Download,{className:"fa-4 w-4"})})]})},ae)}if(U.type.startsWith("tool-")){let k=U,ye=U.type.replace("tool-","");if(ye==="task")switch(k.state){case"input-available":return(0,fa.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},ae);case"output-available":return(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsx)(Ya,{data:{id:k.output?.id||k.input?.id,fetchLatest:!1,taskData:k.output||k.input}})},ae);case"output-error":return(0,fa.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",k.errorText]},ae);default:return null}if(U.type==="tool-requestEndpointLogin")return(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsx)(io,{toolPart:k,index:ae,addToolResult:u??(()=>{})})},ae);if(ye==="artefact")switch(k.state){case"input-available":return(0,fa.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},ae);case"output-available":return(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsx)(to,{artefact:k.output?.description||"",taskId:k.output?.id||k.input?.id,taskData:k.output||k.input})},ae);case"output-error":return(0,fa.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",k.errorText]},ae);default:return null}return(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsxs)(ge,{className:"w-full max-w-md",children:[(0,fa.jsx)(Ie,{children:(0,fa.jsx)(Me,{className:"text-lg",children:ye})}),(0,fa.jsxs)(Ne,{children:[k.state==="input-available"&&(0,fa.jsxs)("p",{className:"text-sm",children:["Processing ",ye,"..."]}),k.state==="output-available"&&(0,fa.jsx)("pre",{className:"text-sm",children:JSON.stringify(k.output,null,2)}),k.state==="output-error"&&(0,fa.jsxs)("p",{className:"text-sm text-red-500",children:["Error: ",k.errorText]})]})]})},ae)}if(U.type.startsWith("data-")){let k=U,ye=U.type.replace("data-","");return ye==="reference"?(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsx)(ge,{className:"w-full",children:(0,fa.jsx)(Ne,{className:"p-4",children:(0,fa.jsx)("div",{className:"space-y-2",children:k.data?.references?.map((ne,Pe)=>(0,fa.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[(0,fa.jsx)(ce,{variant:"outline",children:ne.type||"link"}),(0,fa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,fa.jsx)("p",{className:"text-sm font-medium truncate",children:ne.title}),ne.description&&(0,fa.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:ne.description})]}),ne.url&&(0,fa.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>window.open(ne.url,"_blank"),className:"fa-8 w-8 p-0",children:(0,fa.jsx)(po.ExternalLink,{className:"fa-4 w-4"})})]},Pe))})})})},ae):ye==="menu"?(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsxs)(ge,{className:"w-full",children:[(0,fa.jsx)(Ie,{children:(0,fa.jsx)(Me,{className:"text-lg",children:k.data?.title})}),(0,fa.jsx)(Ne,{children:(0,fa.jsx)("div",{className:"space-y-2",children:k.data?.items?.map((ne,Pe)=>(0,fa.jsx)(S,{variant:"outline",className:"w-full justify-start",onClick:ne.action,children:(0,fa.jsxs)("div",{className:"text-left",children:[(0,fa.jsx)("p",{className:"font-medium",children:ne.label}),ne.description&&(0,fa.jsx)("p",{className:"text-xs text-muted-foreground",children:ne.description})]})},Pe))})})]})},ae):(0,fa.jsx)("div",{className:"mb-2",children:(0,fa.jsxs)(ge,{className:"w-full max-w-md",children:[(0,fa.jsx)(Ie,{children:(0,fa.jsx)(Me,{className:"text-lg",children:ye})}),(0,fa.jsx)(Ne,{children:(0,fa.jsx)("pre",{className:"text-sm",children:JSON.stringify(k.data,null,2)})})]})},ae)}return null})})]})};return(0,fa.jsxs)("div",{className:`fa-full flex flex-col shadow-sm max-w-4xl mx-auto ${T||""}`,children:[(0,fa.jsxs)(xe,{ref:R,className:"flex-1 p-4 bg-background border-0",onDragOver:A,onDragLeave:Se,onDrop:d,children:[(0,fa.jsxs)("div",{className:c("space-y-4",l&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,fa.jsx)(Qe.animate,{children:e.map(p=>(0,fa.jsx)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:c("flex gap-3",p.role==="user"?"flex-row-reverse":"flex-row"),children:V(p)},p.id))}),w&&(0,fa.jsxs)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[(0,fa.jsx)(Oe,{className:"fa-8 w-8",children:(0,fa.jsx)(Ge,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,fa.jsx)(po.Bot,{className:"fa-4 w-4"})})}),(0,fa.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,fa.jsx)(qa,{capabilities:n,isOpen:w,onToggle:()=>B(!w),onActionSelect:G,className:"w-full"})})]}),a&&(0,fa.jsxs)(Qe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[(0,fa.jsx)(Oe,{className:"fa-8 w-8",children:(0,fa.jsx)(Ge,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,fa.jsx)(po.Bot,{className:"fa-4 w-4"})})}),(0,fa.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,fa.jsxs)("div",{className:"flex space-x-1",children:[(0,fa.jsx)("div",{className:"w-2 fa-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,fa.jsx)("div",{className:"w-2 fa-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,fa.jsx)("div",{className:"w-2 fa-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,fa.jsx)("div",{ref:x})]}),r.length>0&&(0,fa.jsx)("div",{className:"p-4 border-t bg-muted/10",children:(0,fa.jsx)("div",{className:"flex flex-wrap gap-2",children:r.map(p=>(0,fa.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[I(p.file.type),(0,fa.jsx)("span",{className:"text-sm font-medium",children:p.file.name}),(0,fa.jsx)("span",{className:"text-xs text-muted-foreground",children:E(p.file.size)}),(0,fa.jsx)(S,{variant:"ghost",size:"sm",onClick:()=>P(p.id),className:"fa-6 w-6 p-0",children:(0,fa.jsx)(po.X,{className:"fa-4 w-4"})})]},p.id))})}),(0,fa.jsxs)("div",{className:"border rounded-2xl p-4 bg-muted/20",children:[(0,fa.jsxs)("div",{className:"flex gap-3",children:[(0,fa.jsx)(dt,{value:t,onChange:p=>m(p.target.value),onKeyPress:f,placeholder:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:a}),s&&(0,fa.jsx)(S,{variant:"outline",size:"icon",onClick:()=>_.current?.click(),className:"rounded-2xl fa-10 w-10 shadow-sm",children:(0,fa.jsx)(po.Paperclip,{className:"fa-4 w-4"})}),(0,fa.jsx)(S,{onClick:D,disabled:!t.trim()&&r.length===0||a,size:"icon",className:"rounded-2xl fa-10 w-10 shadow-sm",children:(0,fa.jsx)(po.Send,{className:"fa-4 w-4"})})]}),(0,fa.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,fa.jsxs)(S,{onClick:()=>B(!w),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,fa.jsx)(po.Menu,{className:"fa-3 w-3 mr-1"}),w?"Hide":"Show"," Capabilities"]}),(0,fa.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[Z().map((p,F)=>(0,fa.jsx)(S,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>G(p.id,X),children:p.label},`context-${p.id}`)),Z().length===0&&Q().map((p,F)=>(0,fa.jsx)(S,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:p.action,children:p.label},`suggestion-${F}`))]})]}),s&&(0,fa.jsx)("input",{ref:_,type:"file",multiple:!0,onChange:se,className:"hidden"})]})]})}function Xe({aiConfig:e,useCustomChat:t,enableAI:a=!0,messages:o=[],businessUnits:n=[],capabilities:r=[],sidebarItems:l=[],notifications:s=[],sessions:m=[],onNewChat:u,onSessionSelect:D,onSessionDelete:f,onSessionEdit:y=()=>{},onBusinessUnitChange:P=()=>{},onNotificationRemove:z=()=>{},onRemoveAll:T=()=>{},onActionClick:x=()=>{},onSearch:R=E=>console.log("Search query:",E),initialTeam:_="design",currentSession:w=null,showCapabilities:B=!0,title:X="Digital Colleagues",enableFileUpload:Y=!0,maxFileSize:Z=10,allowedFileTypes:Q=["image/*","text/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],logo:G="/headerlogo.png",appName:te="Nuvia",tagline:se="AI-Powered Workspace",actionIcon:A=(0,fa.jsx)(po.Users,{className:"mr-2 fa-4 w-4"}),actionText:Se="Collaborate",sidebarInitiallyClosed:d=!1}){let E={...e,onError:j=>{V?.setMessages(le=>[...le,{role:"assistant",id:`error-${Date.now()}`,createdAt:new Date,parts:[{type:"text",text:j.message}]}]),console.error("Error in CopilotInterface:",j)}},I=(0,co.useChat)(E||{}),V=a?t||I:null,[p,F]=(0,Ye.useState)(""),[$,U]=(0,Ye.useState)(!1),ae=V?.messages||o,k=p,ye=V?.status==="submitted"||$,ne=V?.addToolResult?(j,le,oe)=>{V.addToolResult({tool:le,toolCallId:j,output:oe}),V.sendMessage()}:()=>{},Pe=n||[],mo={id:"default",name:"Default Team",description:"Default team when no business units are available",icon:"\u{1F3E2}",color:"bg-gray-500",accentColor:"bg-gray-600"},[uo,go]=(0,Ye.useState)(()=>Pe.length===0?mo:Pe.find(j=>j.id===_)||Pe[0]),[nt,ht]=(0,Ye.useState)([]),[fo,ho]=(0,Ye.useState)(!1),bo=j=>{if(!j||!Y)return;let le=[];Array.from(j).forEach(oe=>{if(oe.size>Z*1024*1024){alert(`File ${oe.name} is too large. Maximum size is ${Z}MB.`);return}if(Q.length>0&&!Q.some(bt=>oe.type.match(bt))){alert(`File type ${oe.type} is not allowed.`);return}let oa={id:Date.now().toString()+Math.random().toString(36).substr(2,9),file:oe,status:"pending",progress:0};if(oe.type.startsWith("image/")){let bt=new FileReader;bt.onload=Co=>{ht(No=>No.map(Et=>Et.id===oa.id?{...Et,preview:Co.target?.result}:Et))},bt.readAsDataURL(oe)}le.push(oa)}),ht(oe=>[...oe,...le])},vo=j=>{ht(le=>le.filter(oe=>oe.id!==j))},aa=()=>{if(!(!k.trim()&&nt.length===0)){if(V){let j=nt.length>0?yo(nt.map(le=>le.file)):void 0;V.sendMessage({text:k,files:j},{body:{timestamp:Date.now()}}),F("")}else console.log("Message to send:",k),console.log("Files to upload:",nt),F(""),U(!0),setTimeout(()=>{U(!1)},1500);ht([])}},yo=j=>{let le=new DataTransfer;return j.forEach(oe=>le.items.add(oe)),le.files},xo=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),aa())},wo=j=>{F(j)};return(0,fa.jsx)(Va,{sidebarItems:l||[],title:X,notifications:s||[],businessUnits:Pe,currentBusinessUnit:uo,onBusinessUnitChange:j=>{j&&(go(j),P?.(j))},onSearch:R,showTabs:!1,onActionClick:x,actionIcon:A,actionText:Se,onNotificationRemove:z,onRemoveAll:T,logo:G,appName:te,tagline:se,sidebarInitiallyClosed:d,children:(0,fa.jsx)(Mt.AnimatePresence,{mode:"wait",children:(0,fa.jsx)(Mt.motion.div,{className:"flex-1 fa-full",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,fa.jsxs)("div",{className:"fa-full flex",children:[(0,fa.jsx)("div",{className:"w-80 flex-shrink-0 fa-full p-2",children:(0,fa.jsx)($a,{sessions:m||[],currentSession:w,teams:Pe,onNewChat:u,onSessionSelect:D,onSessionEdit:y,onSessionDelete:f})}),(0,fa.jsx)("div",{className:"flex-1 fa-full p-2",children:(0,fa.jsx)(lo,{messages:ae||[],input:k,isTyping:ye,currentSessionTitle:w?.title,capabilities:r||[],onInputChange:wo,addToolResult:ne,onSendMessage:aa,onKeyPress:xo,fileUploads:nt,isDragOver:fo,enableFileUpload:Y,onFileUpload:bo,onRemoveFile:vo,onDragOver:ho})})]})},"chat-interface")})})}function Ti(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you help me analyze my sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll help you analyze your sales data. Let me fetch the latest information.
|
|
12
12
|
|
|
13
|
-
*\u{1F527} Calling function: fetch_sales_data(period="30d", region="all")*`}]},{id:"3",role:"assistant",parts:[{type:"text",text:`Great! I'
|
|
13
|
+
*\u{1F527} Calling function: fetch_sales_data(period="30d", region="all")*`}]},{id:"3",role:"assistant",parts:[{type:"text",text:`Great! I'fa retrieved your sales data for the last 30 days. Here's what I found:
|
|
14
14
|
|
|
15
15
|
**Sales Summary:**
|
|
16
16
|
- **Total Revenue:** $125,000
|
|
@@ -30,7 +30,7 @@ Would you like me to create a detailed report or analyze any specific metrics?`}
|
|
|
30
30
|
|
|
31
31
|
*\u{1F4C8} Tool Result: Chart generated successfully - ID: revenue-trend-123*
|
|
32
32
|
|
|
33
|
-
Perfect! I'
|
|
33
|
+
Perfect! I'fa created a revenue trend chart for the last 30 days. The chart shows your daily revenue performance with clear trend indicators:
|
|
34
34
|
|
|
35
35
|
\`\`\`
|
|
36
36
|
\u{1F4CA} Revenue Trend - Last 30 Days
|
|
@@ -71,7 +71,7 @@ Timestamp: 2024-01-20T10:30:45Z
|
|
|
71
71
|
- \`analyze_data\` - Perform data analysis
|
|
72
72
|
- \`generate_report\` - Create reports
|
|
73
73
|
|
|
74
|
-
Would you like me to try a valid function instead?`}]}]);return(0,
|
|
74
|
+
Would you like me to try a valid function instead?`}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Ri(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you show me some examples of markdown formatting?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`# Markdown Formatting Examples
|
|
75
75
|
|
|
76
76
|
Here are various markdown elements that should render properly in the chat:
|
|
77
77
|
|
|
@@ -239,7 +239,7 @@ class SalesAnalyzer:
|
|
|
239
239
|
"""Clean and prepare the sales data for analysis."""
|
|
240
240
|
# Convert date columns
|
|
241
241
|
self.data['date'] = pd.to_datetime(self.data['date'])
|
|
242
|
-
self.data['month'] = self.data['date'].dt.to_period('
|
|
242
|
+
self.data['month'] = self.data['date'].dt.to_period('fa')
|
|
243
243
|
|
|
244
244
|
# Handle missing values
|
|
245
245
|
self.data['revenue'].fillna(0, inplace=True)
|
|
@@ -330,7 +330,7 @@ if __name__ == "__main__":
|
|
|
330
330
|
analyzer.visualize_trends('sales_analysis.png')
|
|
331
331
|
\`\`\`
|
|
332
332
|
|
|
333
|
-
This demonstrates complex syntax highlighting with multiple languages and should render properly with appropriate color coding!`}]}]);return(0,
|
|
333
|
+
This demonstrates complex syntax highlighting with multiple languages and should render properly with appropriate color coding!`}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Ai(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you show me some interactive dashboard components?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:"I'll create some interactive dashboard components for you. Here are various UI elements:"},{type:"data-dashboard",data:{title:"Sales Dashboard",widgets:[{type:"metric",title:"Total Revenue",value:"$125,000",change:"+12.5%",trend:"up"},{type:"metric",title:"New Customers",value:"47",change:"+8.3%",trend:"up"},{type:"metric",title:"Conversion Rate",value:"3.2%",change:"-2.1%",trend:"down"}]}}]},{id:"3",role:"user",parts:[{type:"text",text:"Can you show me a data table with customer information?"}]},{id:"4",role:"assistant",parts:[{type:"text",text:"Here's a customer data table with sorting and filtering capabilities:"},{type:"data-table",data:{title:"Customer Information",columns:[{key:"name",label:"Customer Name",sortable:!0},{key:"company",label:"Company",sortable:!0},{key:"revenue",label:"Revenue",sortable:!0,type:"currency"},{key:"status",label:"Status",type:"badge"},{key:"lastContact",label:"Last Contact",type:"date"}],rows:[{id:"1",name:"Alice Johnson",company:"Acme Corp",revenue:85e3,status:"active",lastContact:"2024-01-15"},{id:"2",name:"Bob Smith",company:"Beta Inc",revenue:45e3,status:"pending",lastContact:"2024-01-12"},{id:"3",name:"Carol Davis",company:"Gamma LLC",revenue:15e3,status:"inactive",lastContact:"2024-01-08"},{id:"4",name:"David Wilson",company:"Delta Systems",revenue:125e3,status:"active",lastContact:"2024-01-18"}]}}]},{id:"5",role:"user",parts:[{type:"text",text:"Show me a progress tracker for a project"}]},{id:"6",role:"assistant",parts:[{type:"text",text:"Here's a project progress tracker with timeline and milestones:"},{type:"data-progress",data:{title:"Website Redesign Project",overall_progress:65,phases:[{name:"Discovery & Planning",status:"completed",progress:100,start_date:"2024-01-01",end_date:"2024-01-15",tasks:[{name:"Stakeholder interviews",completed:!0},{name:"Requirements gathering",completed:!0},{name:"Project timeline",completed:!0}]},{name:"Design & Prototyping",status:"completed",progress:100,start_date:"2024-01-16",end_date:"2024-02-15",tasks:[{name:"Wireframes",completed:!0},{name:"Visual design",completed:!0},{name:"Interactive prototype",completed:!0}]},{name:"Development",status:"in_progress",progress:75,start_date:"2024-02-16",end_date:"2024-03-30",tasks:[{name:"Frontend development",completed:!0},{name:"Backend integration",completed:!1},{name:"Testing & QA",completed:!1}]},{name:"Launch & Deployment",status:"pending",progress:0,start_date:"2024-03-31",end_date:"2024-04-15",tasks:[{name:"Production deployment",completed:!1},{name:"User training",completed:!1},{name:"Go-live support",completed:!1}]}]}}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Ii(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"I want to upload some files for analysis. I have a sales_data.csv file and a quarterly_report.pdf that I need to analyze."}]},{id:"2",role:"assistant",parts:[{type:"text",text:`Perfect! I can help you analyze various file types. You can upload:
|
|
334
334
|
|
|
335
335
|
\u{1F4CA} **Data Files:**
|
|
336
336
|
- CSV/Excel spreadsheets
|
|
@@ -353,7 +353,7 @@ This demonstrates complex syntax highlighting with multiple languages and should
|
|
|
353
353
|
- \u2705 File type validation
|
|
354
354
|
- \u2705 Size limit checking (max 10MB)
|
|
355
355
|
|
|
356
|
-
Try uploading your files using the attachment button below! I'll analyze them once uploaded.`}]},{id:"3",role:"user",parts:[{type:"text",text:"I just uploaded sales_data.csv (15.4 KB) and quarterly_report.pdf (2.6 MB)"}]},{id:"4",role:"assistant",parts:[{type:"text",text:`Great! I can see you'
|
|
356
|
+
Try uploading your files using the attachment button below! I'll analyze them once uploaded.`}]},{id:"3",role:"user",parts:[{type:"text",text:"I just uploaded sales_data.csv (15.4 KB) and quarterly_report.pdf (2.6 MB)"}]},{id:"4",role:"assistant",parts:[{type:"text",text:`Great! I can see you'fa uploaded two files:
|
|
357
357
|
|
|
358
358
|
## \u{1F4C1} Uploaded Files
|
|
359
359
|
|
|
@@ -395,7 +395,7 @@ Would you like me to:
|
|
|
395
395
|
- \u{1F4CA} Create detailed visualizations
|
|
396
396
|
- \u{1F50D} Investigate the revenue variance
|
|
397
397
|
- \u{1F4C8} Generate trend analysis
|
|
398
|
-
- \u{1F4CB} Create a unified report?`}]}]);return(0,
|
|
398
|
+
- \u{1F4CB} Create a unified report?`}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Mi(){let[e,t]=(0,Ye.useState)([{id:"1",role:"user",parts:[{type:"text",text:"Can you fetch my latest sales data?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:`I'll fetch your latest sales data right away.
|
|
399
399
|
|
|
400
400
|
*\u{1F527} Calling function: fetch_sales_data(period="latest")*
|
|
401
401
|
|
|
@@ -436,7 +436,7 @@ I'm unable to fetch the sales data due to insufficient permissions.
|
|
|
436
436
|
**Next Steps:**
|
|
437
437
|
1. **Contact your administrator** to request the necessary permissions
|
|
438
438
|
2. **Verify your role** - You may need a sales or data analyst role
|
|
439
|
-
3. **Check group memberships** - Ensure you'
|
|
439
|
+
3. **Check group memberships** - Ensure you'fa in the appropriate security groups
|
|
440
440
|
|
|
441
441
|
**Alternative Options:**
|
|
442
442
|
- Upload a sales data file directly (CSV, Excel)
|
|
@@ -461,7 +461,7 @@ The report generation failed because the specified data source is not valid.
|
|
|
461
461
|
**Available Data Sources:**
|
|
462
462
|
- \`sales_db\` - Main sales database
|
|
463
463
|
- \`crm_system\` - Customer relationship management system
|
|
464
|
-
- \`uploaded_files\` - Files you'
|
|
464
|
+
- \`uploaded_files\` - Files you'fa uploaded to the chat
|
|
465
465
|
|
|
466
466
|
**How to Fix This:**
|
|
467
467
|
1. **Choose a valid source** from the list above
|
|
@@ -470,20 +470,20 @@ The report generation failed because the specified data source is not valid.
|
|
|
470
470
|
|
|
471
471
|
**Example:** "Generate a sales report using the CRM system data"
|
|
472
472
|
|
|
473
|
-
Would you like me to try generating a report with one of the valid data sources?`}]},{id:"7",role:"user",parts:[{type:"text",text:"Let me try uploading some corrupted data (corrupted_data.xlsx - 0 bytes)"}]},{id:"8",role:"assistant",parts:[{type:"text",text:`I see you'
|
|
473
|
+
Would you like me to try generating a report with one of the valid data sources?`}]},{id:"7",role:"user",parts:[{type:"text",text:"Let me try uploading some corrupted data (corrupted_data.xlsx - 0 bytes)"}]},{id:"8",role:"assistant",parts:[{type:"text",text:`I see you'fa trying to upload a file. Let me analyze it.
|
|
474
474
|
|
|
475
475
|
*\u{1F527} Processing file: corrupted_data.xlsx*
|
|
476
476
|
|
|
477
477
|
\u{1F4BE} **Corrupted or Empty File**
|
|
478
478
|
|
|
479
479
|
\`\`\`
|
|
480
|
-
Error: File appears to
|
|
480
|
+
Error: File appears to fa corrupted or empty
|
|
481
481
|
Code: CORRUPTED_FILE
|
|
482
482
|
File size: 0 bytes
|
|
483
483
|
MIME type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
|
484
484
|
\`\`\`
|
|
485
485
|
|
|
486
|
-
The uploaded Excel file appears to
|
|
486
|
+
The uploaded Excel file appears to fa corrupted or empty (0 bytes).
|
|
487
487
|
|
|
488
488
|
**Possible Causes:**
|
|
489
489
|
- File upload was interrupted
|
|
@@ -503,7 +503,7 @@ The uploaded Excel file appears to ua corrupted or empty (0 bytes).
|
|
|
503
503
|
|
|
504
504
|
3. **Check file integrity:**
|
|
505
505
|
- Verify you can open the file locally
|
|
506
|
-
- Check file size (should
|
|
506
|
+
- Check file size (should fa > 0 bytes)
|
|
507
507
|
|
|
508
508
|
4. **Re-upload:**
|
|
509
509
|
- Clear browser cache
|
|
@@ -537,7 +537,7 @@ Ye appears there are network connectivity issues affecting several services:
|
|
|
537
537
|
- \u2705 Authentication (operational)
|
|
538
538
|
|
|
539
539
|
**Impact:**
|
|
540
|
-
- File uploads may fail or
|
|
540
|
+
- File uploads may fail or fa delayed
|
|
541
541
|
- Data retrieval functions unavailable
|
|
542
542
|
- Real-time analytics temporarily disabled
|
|
543
543
|
- Chat functionality remains available
|
|
@@ -554,7 +554,7 @@ Ye appears there are network connectivity issues affecting several services:
|
|
|
554
554
|
- Access cached reports and documents
|
|
555
555
|
- Plan future actions for when services restore
|
|
556
556
|
|
|
557
|
-
I'll continue monitoring the connection status. Services typically restore within 5-10 minutes during maintenance windows.`}]}]);return(0,
|
|
557
|
+
I'll continue monitoring the connection status. Services typically restore within 5-10 minutes during maintenance windows.`}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}function Ei(){let[e,t]=(0,Ye.useState)([{id:"1",role:"assistant",parts:[{type:"text",text:`Welcome! I can help you with various business tasks. Use the capabilities menu at the bottom to explore what I can do, or ask me directly about:
|
|
558
558
|
|
|
559
559
|
\u{1F3E2} **Sales & CRM**
|
|
560
560
|
- Customer management
|
|
@@ -576,7 +576,7 @@ I'll continue monitoring the connection status. Services typically restore withi
|
|
|
576
576
|
- Budget analysis
|
|
577
577
|
- Expense tracking
|
|
578
578
|
|
|
579
|
-
Try clicking on any capability in the menu below to get started!`}]},{id:"2",role:"user",parts:[{type:"text",text:"I clicked on Sales \u2192 Customers \u2192 Acme Corp"}]},{id:"3",role:"assistant",parts:[{type:"text",text:"Great! You'
|
|
579
|
+
Try clicking on any capability in the menu below to get started!`}]},{id:"2",role:"user",parts:[{type:"text",text:"I clicked on Sales \u2192 Customers \u2192 Acme Corp"}]},{id:"3",role:"assistant",parts:[{type:"text",text:"Great! You'fa selected **Acme Corp** from the customers list. Here's what I found:"},{type:"data-customer-card",data:{id:"acme-corp",name:"Acme Corp",type:"Enterprise Customer",revenue:"$125,000 ARR",industry:"Technology",employees:500,lastContact:"2024-01-15",status:"active",contacts:[{name:"John Smith",role:"CTO",email:"john@acme.com"},{name:"Sarah Johnson",role:"Procurement",email:"sarah@acme.com"}],recent_activity:[{date:"2024-01-15",activity:"Contract renewal discussion"},{date:"2024-01-10",activity:"Product demo scheduled"},{date:"2024-01-05",activity:"Support ticket resolved"}],opportunities:[{name:"Enterprise License Renewal",value:"$150K",stage:"Negotiation"},{name:"Additional Modules",value:"$25K",stage:"Proposal"}]}}]},{id:"4",role:"assistant",parts:[{type:"text",text:`**Available Actions for Acme Corp:**
|
|
580
580
|
|
|
581
581
|
\u{1F3AF} **Sales Actions**
|
|
582
582
|
- Schedule follow-up meeting
|
|
@@ -593,7 +593,7 @@ Try clicking on any capability in the menu below to get started!`}]},{id:"2",rol
|
|
|
593
593
|
- Generate account report
|
|
594
594
|
- Analyze usage patterns
|
|
595
595
|
|
|
596
|
-
What would you like to do next?`}]},{id:"5",role:"user",parts:[{type:"text",text:"Now I want to explore Marketing \u2192 Campaign Management"}]},{id:"6",role:"assistant",parts:[{type:"text",text:"Perfect! You'
|
|
596
|
+
What would you like to do next?`}]},{id:"5",role:"user",parts:[{type:"text",text:"Now I want to explore Marketing \u2192 Campaign Management"}]},{id:"6",role:"assistant",parts:[{type:"text",text:"Perfect! You'fa navigated to **Campaign Management**. Here's an overview of your marketing campaigns:"},{type:"data-campaigns",data:{title:"Active Marketing Campaigns",campaigns:[{id:"winter-promo",name:"Winter Promotion 2024",status:"active",type:"Email + Social",start_date:"2024-01-01",end_date:"2024-02-29",budget:15e3,spent:8500,leads:247,conversions:23,roi:"180%"},{id:"product-launch",name:"New Product Launch",status:"planning",type:"Multi-channel",start_date:"2024-02-15",end_date:"2024-04-15",budget:25e3,spent:0,leads:0,conversions:0,roi:"TBD"},{id:"retargeting",name:"Retargeting Campaign",status:"active",type:"Digital Ads",start_date:"2024-01-10",end_date:"2024-03-10",budget:8e3,spent:3200,leads:89,conversions:12,roi:"150%"}]}}]},{id:"7",role:"assistant",parts:[{type:"text",text:`**Campaign Management Actions:**
|
|
597
597
|
|
|
598
598
|
\u{1F4DD} **Create & Edit**
|
|
599
599
|
- Create new campaign
|
|
@@ -615,7 +615,7 @@ What would you like to do next?`}]},{id:"5",role:"user",parts:[{type:"text",text
|
|
|
615
615
|
- Optimize targeting
|
|
616
616
|
- Adjust bidding strategies
|
|
617
617
|
|
|
618
|
-
Which campaign would you like to work with, or what action would you like to take?`}]},{id:"8",role:"user",parts:[{type:"text",text:"Let me check HR \u2192 Employee Management \u2192 Performance Reviews"}]},{id:"9",role:"assistant",parts:[{type:"text",text:"You'
|
|
618
|
+
Which campaign would you like to work with, or what action would you like to take?`}]},{id:"8",role:"user",parts:[{type:"text",text:"Let me check HR \u2192 Employee Management \u2192 Performance Reviews"}]},{id:"9",role:"assistant",parts:[{type:"text",text:"You'fa accessed **Performance Reviews** in HR. Here's the current status of performance reviews:"},{type:"data-performance",data:{title:"Performance Review Dashboard",period:"Q4 2023",overview:{total_employees:127,reviews_completed:89,reviews_pending:23,reviews_overdue:15,completion_rate:70.1},departments:[{name:"Engineering",employees:45,completed:38,pending:5,overdue:2,avg_rating:4.2},{name:"Sales",employees:28,completed:22,pending:4,overdue:2,avg_rating:3.9},{name:"Marketing",employees:18,completed:12,pending:3,overdue:3,avg_rating:4},{name:"Operations",employees:15,completed:9,pending:4,overdue:2,avg_rating:3.8}],upcoming_deadlines:[{employee:"Alex Chen",department:"Engineering",due_date:"2024-01-25"},{employee:"Maria Garcia",department:"Sales",due_date:"2024-01-27"},{employee:"David Kim",department:"Marketing",due_date:"2024-01-30"}]}}]},{id:"10",role:"assistant",parts:[{type:"text",text:`**Performance Review Actions:**
|
|
619
619
|
|
|
620
620
|
\u2705 **Review Management**
|
|
621
621
|
- Schedule new reviews
|
|
@@ -642,4 +642,4 @@ Which campaign would you like to work with, or what action would you like to tak
|
|
|
642
642
|
- 23 reviews are **pending**
|
|
643
643
|
- 3 employees have upcoming deadlines this week
|
|
644
644
|
|
|
645
|
-
Would you like me to send reminder notifications or help with any specific review tasks?`}]}]);return(0,
|
|
645
|
+
Would you like me to send reminder notifications or help with any specific review tasks?`}]}]);return(0,fa.jsx)("div",{className:"fa-screen w-full",children:(0,fa.jsx)(Xe,{messages:e,capabilities:qe,enableFileUpload:!0,maxFileSize:10,allowedFileTypes:["*"],businessUnits:[],sessions:[],notifications:[],onNewChat:()=>t([]),onSessionSelect:()=>{},onSessionDelete:()=>{},showCapabilities:!0})})}0&&(module.exports={ChatDemoCapabilitiesInteraction,ChatDemoErrorHandling,ChatDemoFileUploads,ChatDemoMarkdownResponses,ChatDemoToolCalling,ChatDemoUIComponents});
|