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
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-LUPNE23E.mjs";import"../../chunk-
|
|
1
|
+
import"../../chunk-LUPNE23E.mjs";import"../../chunk-LVFMFRBR.mjs";import"../../chunk-ZSIYEVUV.mjs";import{a as t}from"../../chunk-444KBVNL.mjs";import"../../chunk-IK3GOCAU.mjs";import"../../chunk-56X4PU43.mjs";import"../../chunk-NUHGPB5U.mjs";import"../../chunk-SIL7AP7H.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-DBY4SXQI.mjs";import"../../chunk-I3E2TYYZ.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-4WA47ZQA.mjs";import"../../chunk-NPVUICIF.mjs";import"../../chunk-Q67RF7VO.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-Q2DPE66H.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";import{jsx as i}from"react/jsx-runtime";var a=[{id:"1",role:"user",parts:[{type:"text",text:"Hello, can you help me with a task?"}]},{id:"2",role:"assistant",parts:[{type:"text",text:"Of course! I can help you create and manage tasks."}]},{id:"3",role:"user",parts:[{type:"text",text:"Here is a file with project requirements"},{type:"file",mimeType:"application/pdf",url:"/path/to/file.pdf"}]},{id:"4",role:"assistant",parts:[{type:"text",text:"I'll create a task based on your requirements."},{type:"tool-task",toolCallId:"call-123",state:"output-available",input:{title:"Project Requirements Review",description:"Review and analyze the uploaded requirements document"},output:{id:"task-123",title:"Project Requirements Review",description:"Review and analyze the uploaded requirements document",status:"created",assignee:"AI Assistant",priority:"high"}}]},{id:"5",role:"assistant",parts:[{type:"text",text:"Here are some relevant resources for your project:"},{type:"data-reference",data:{references:[{id:"ref-1",title:"Project Management Best Practices",url:"https://example.com/pm-best-practices",description:"Comprehensive guide to project management",type:"document"},{id:"ref-2",title:"Requirements Gathering Template",url:"https://example.com/requirements-template",description:"Template for gathering project requirements",type:"link"}]}}]},{id:"6",role:"assistant",parts:[{type:"text",text:"What would you like to do next?"},{type:"data-menu",data:{title:"Available Actions",items:[{id:"action-1",label:"Create another task",description:"Set up a new task for the project",action:()=>console.log("Create task clicked")},{id:"action-2",label:"View project timeline",description:"See the project schedule and milestones",action:()=>console.log("View timeline clicked")},{id:"action-3",label:"Assign team members",description:"Add team members to the project",action:()=>console.log("Assign team clicked")}]}}]}];function o(){return i(t,{messages:a,businessUnits:[{id:"engineering",name:"Engineering",description:"Software development team",icon:"\u2699\uFE0F",color:"bg-blue-500",accentColor:"bg-blue-600"}],capabilities:[],sessions:[],onNewChat:()=>console.log("New chat started"),onSessionSelect:e=>console.log("Session selected:",e),onSessionDelete:e=>console.log("Session deleted:",e),enableFileUpload:!0,title:"AI Assistant"})}export{o as ExampleChatInterface};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var ve=Object.create;var j=Object.defineProperty;var we=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})},te=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ke(t))!Se.call(e,s)&&s!==r&&j(e,s,{get:()=>t[s],enumerable:!(o=we(t,s))||o.enumerable});return e};var re=(e,t,r)=>(r=e!=null?ve(Ce(e)):{},te(t||!e||!e.__esModule?j(r,"default",{value:e,enumerable:!0}):r,e)),Ae=e=>te(j({},"__esModule",{value:!0}),e);var it={};ze(it,{SimpleFileUploadChat:()=>xe,default:()=>st});module.exports=Ae(it);var q=require("react"),he=require("@ai-sdk/react");var de=require("clsx");var Me=e=>{let t=Re(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let i=a.split("-");return i[0]===""&&i.length!==1&&i.shift(),se(i,t)||Pe(a)},getConflictingClassGroupIds:(a,i)=>{let b=r[a]||[];return i&&o[a]?[...b,...o[a]]:b}}},se=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?se(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:a})=>a(n))?.classGroupId},oe=/^\[(.+)\]$/,Pe=e=>{if(oe.test(e)){let t=oe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Re=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ie(Object.entries(e.classGroups),r).forEach(([n,a])=>{H(a,o,n,t)}),o},H=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:ne(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Ne(s)){H(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,a])=>{H(a,ne(t,n),r,o)})})},ne=(e,t)=>{let r=e;return t.split("-").forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ne=e=>e.isThemeGetter,Ie=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,i])=>[t+a,i])):n);return[r,s]}):e,Te=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,a)=>{r.set(n,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return s(n,a),a},set(n,a){r.has(n)?r.set(n,a):s(n,a)}}};var Ee=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,a=i=>{let b=[],y=0,x=0,w;for(let h=0;h<i.length;h++){let v=i[h];if(y===0){if(v===s&&(o||i.slice(h,h+n)===t)){b.push(i.slice(x,h)),x=h+n;continue}if(v==="/"){w=h;continue}}v==="["?y++:v==="]"&&y--}let l=b.length===0?i:i.substring(x),d=l.startsWith("!"),u=d?l.substring(1):l,p=w&&w>x?w-x:void 0;return{modifiers:b,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:p}};return r?i=>r({className:i,parseClassName:a}):a},Fe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Ge=e=>({cache:Te(e.cacheSize),parseClassName:Ee(e),...Me(e)}),Le=/\s+/,_e=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],a=e.trim().split(Le),i="";for(let b=a.length-1;b>=0;b-=1){let y=a[b],{modifiers:x,hasImportantModifier:w,baseClassName:l,maybePostfixModifierPosition:d}=r(y),u=!!d,p=o(u?l.substring(0,d):l);if(!p){if(!u){i=y+(i.length>0?" "+i:i);continue}if(p=o(l),!p){i=y+(i.length>0?" "+i:i);continue}u=!1}let h=Fe(x).join(":"),v=w?h+"!":h,k=v+p;if(n.includes(k))continue;n.push(k);let N=s(p,u);for(let M=0;M<N.length;++M){let L=N[M];n.push(v+L)}i=y+(i.length>0?" "+i:i)}return i};function Be(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ie(t))&&(o&&(o+=" "),o+=r);return o}var ie=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ie(e[o]))&&(r&&(r+=" "),r+=t);return r};function je(e,...t){let r,o,s,n=a;function a(b){let y=t.reduce((x,w)=>w(x),e());return r=Ge(y),o=r.cache.get,s=r.cache.set,n=i,i(b)}function i(b){let y=o(b);if(y)return y;let x=_e(b,r);return s(b,x),x}return function(){return n(Be.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ae=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ve=/^\d+\/\d+$/,We=new Set(["px","full","screen"]),$e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Oe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ue=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,He=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ke=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=e=>P(e)||We.has(e)||Ve.test(e),z=e=>R(e,"length",et),P=e=>!!e&&!Number.isNaN(Number(e)),U=e=>R(e,"number",P),T=e=>!!e&&Number.isInteger(Number(e)),qe=e=>e.endsWith("%")&&P(e.slice(0,-1)),c=e=>ae.test(e),A=e=>$e.test(e),Je=new Set(["length","size","percentage"]),Xe=e=>R(e,Je,le),Ze=e=>R(e,"position",le),Qe=new Set(["image","url"]),Ye=e=>R(e,Qe,rt),De=e=>R(e,"",tt),E=()=>!0,R=(e,t,r)=>{let o=ae.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},et=e=>Oe.test(e)&&!Ue.test(e),le=()=>!1,tt=e=>He.test(e),rt=e=>Ke.test(e);var ot=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),s=m("borderColor"),n=m("borderRadius"),a=m("borderSpacing"),i=m("borderWidth"),b=m("contrast"),y=m("grayscale"),x=m("hueRotate"),w=m("invert"),l=m("gap"),d=m("gradientColorStops"),u=m("gradientColorStopPositions"),p=m("inset"),h=m("margin"),v=m("opacity"),k=m("padding"),N=m("saturate"),M=m("scale"),L=m("sepia"),J=m("skew"),X=m("space"),Z=m("translate"),V=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",c,t],f=()=>[c,t],Q=()=>["",S,z],_=()=>["auto",P,c],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",c],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[P,c];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[S,z],blur:["none","",A,c],brightness:C(),borderColor:[e],borderRadius:["none","","full",A,c],borderSpacing:f(),borderWidth:Q(),contrast:C(),grayscale:I(),hueRotate:C(),invert:I(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[qe,z],inset:$(),margin:$(),opacity:C(),padding:f(),saturate:C(),scale:C(),sepia:I(),skew:C(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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:[...Y(),c]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,c]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",T,c]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,c]},c]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,c]},c]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[X]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",A,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",U]}],"font-family":[{font:[E]}],"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",c]}],"line-clamp":[{"line-clamp":["none",P,U]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,z]}],"underline-offset":[{"underline-offset":["auto",S,c]}],"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:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Ze]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ye]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:B()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[S,c]}],"outline-w":[{outline:[S,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[S,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,De]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",A,c]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[w]}],saturate:[{saturate:[N]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[T,c]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,z,U]}],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","pe","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","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-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-pe","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 ce=je(ot);function F(...e){return ce((0,de.clsx)(e))}var pe=require("@radix-ui/react-slot"),ue=require("class-variance-authority"),me=re(require("react")),fe=require("react/jsx-runtime"),nt=(0,ue.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),G=me.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,fe.jsx)(e?pe.Slot:"button",{className:F(nt({className:t,size:r,variant:o})),ref:n,...s}));G.displayName="Button";var be=re(require("react"));var K=be.forwardRef(({className:e,type:t,...r},o)=>(0,fe.jsx)("input",{type:t,className:F("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));K.displayName="Input";var ye=require("lucide-react");function xe({apiEndpoint:e="/api/chat",maxFileSize:t=10,allowedFileTypes:r=["image/*","text/*","application/pdf"]}){let o=(0,he.useChat)({onError:l=>{console.error("Chat error:",l)},onFinish:l=>{console.log("Message finished:",l)}}),[s,n]=(0,q.useState)(""),[a,i]=(0,q.useState)([]),b=l=>{let d=new DataTransfer;return l.forEach(u=>d.items.add(u)),d.files},y=()=>{if(!s.trim()&&a.length===0)return;let l=a.length>0?b(a):void 0;o.sendMessage({text:s,files:l},{body:{timestamp:Date.now(),fileCount:a.length}}),n(""),i([])},x=l=>{if(!l)return;let d=[];Array.from(l).forEach(u=>{if(u.size>t*1024*1024){alert(`File ${u.name} is too large. Maximum size is ${t}MB.`);return}if(r.length>0&&!r.some(p=>u.type.match(p))){alert(`File type ${u.type} is not allowed.`);return}d.push(u)}),i(u=>[...u,...d])},w=l=>{i(d=>d.filter((u,p)=>p!==l))};return(0,fe.jsxs)("div",{className:"max-w-2xl mx-auto p-4",children:[(0,fe.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"AI Chat with File Uploads"}),(0,fe.jsx)("div",{className:"space-y-4 mb-4 max-h-96 overflow-y-auto",children:o.messages.map(l=>(0,fe.jsx)("div",{className:`flex ${l.role==="user"?"justify-end":"justify-start"}`,children:(0,fe.jsx)("div",{className:`max-w-xs lg:max-w-md px-4 py-2 rounded-lg ${l.role==="user"?"bg-blue-500 text-white":"bg-gray-200 text-black"}`,children:l.parts.map((d,u)=>{if(d.type==="text")return(0,fe.jsx)("p",{children:d.text},u);if(d.type==="file"){let p=d;return(0,fe.jsxs)("div",{className:"mb-2",children:[(0,fe.jsxs)("p",{className:"text-sm font-semibold",children:["\u{1F4CE} ",p.filename||p.name]}),p.mediaType?.startsWith("image/")&&(0,fe.jsx)("img",{src:p.url,alt:p.filename,className:"max-w-full h-auto rounded"})]},u)}return null})})},l.id))}),a.length>0&&(0,fe.jsxs)("div",{className:"mb-4 p-3 bg-gray-100 rounded-lg",children:[(0,fe.jsx)("p",{className:"text-sm font-semibold mb-2",children:"Selected Files:"}),a.map((l,d)=>(0,fe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,fe.jsxs)("span",{className:"text-sm",children:[l.name," (",(l.size/1024).toFixed(1)," KB)"]}),(0,fe.jsx)(G,{variant:"ghost",size:"sm",onClick:()=>w(d),children:"Remove"})]},d))]}),(0,fe.jsxs)("div",{className:"flex gap-2",children:[(0,fe.jsx)(K,{value:s,onChange:l=>n(l.target.value),onKeyPress:l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),y())},placeholder:"Type your message...",className:"flex-1",disabled:o.status==="streaming"}),(0,fe.jsx)(G,{variant:"outline",size:"icon",onClick:()=>{let l=document.createElement("input");l.type="file",l.multiple=!0,l.accept=r.join(","),l.onchange=d=>{let u=d.target.files;x(u)},l.click()},children:(0,fe.jsx)(ye.Paperclip,{className:"h-4 w-4"})}),(0,fe.jsx)(G,{onClick:y,disabled:!s.trim()&&a.length===0||o.status==="streaming",children:o.status==="streaming"?"Sending...":"Send"})]}),o.error&&(0,fe.jsxs)("div",{className:"mt-4 p-3 bg-red-100 text-red-800 rounded-lg",children:["Error: ",o.error.message]})]})}var st=xe;0&&(module.exports={SimpleFileUploadChat});
|
|
2
|
+
"use strict";var ke=Object.create;var V=Object.defineProperty;var Ce=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var Pe=(e,t)=>{for(var r in t)V(e,r,{get:t[r],enumerable:!0})},re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ze(t))!Me.call(e,s)&&s!==r&&V(e,s,{get:()=>t[s],enumerable:!(o=Ce(t,s))||o.enumerable});return e};var oe=(e,t,r)=>(r=e!=null?ke(Se(e)):{},re(t||!e||!e.__esModule?V(r,"default",{value:e,enumerable:!0}):r,e)),Ne=e=>re(V({},"__esModule",{value:!0}),e);var lt={};Pe(lt,{SimpleFileUploadChat:()=>we,default:()=>at});module.exports=Ne(lt);var J=require("react"),xe=require("@ai-sdk/react");var ue=require("clsx");var O="-",Ae=e=>{let t=Ie(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let i=a.split(O);return i[0]===""&&i.length!==1&&i.shift(),ie(i,t)||Re(a)},getConflictingClassGroupIds:(a,i)=>{let b=r[a]||[];return i&&o[a]?[...b,...o[a]]:b}}},ie=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?ie(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(O);return t.validators.find(({validator:a})=>a(n))?.classGroupId},ne=/^\[(.+)\]$/,Re=e=>{if(ne.test(e)){let t=ne.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ie=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Te(Object.entries(e.classGroups),r).forEach(([n,a])=>{K(a,o,n,t)}),o},K=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:se(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Ee(s)){K(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,a])=>{K(a,se(t,n),r,o)})})},se=(e,t)=>{let r=e;return t.split(O).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ee=e=>e.isThemeGetter,Te=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([a,i])=>[t+a,i])):n);return[r,s]}):e,Ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,a)=>{r.set(n,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let a=r.get(n);if(a!==void 0)return a;if((a=o.get(n))!==void 0)return s(n,a),a},set(n,a){r.has(n)?r.set(n,a):s(n,a)}}},ae="!",Fe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,a=i=>{let b=[],y=0,x=0,w;for(let h=0;h<i.length;h++){let v=i[h];if(y===0){if(v===s&&(o||i.slice(h,h+n)===t)){b.push(i.slice(x,h)),x=h+n;continue}if(v==="/"){w=h;continue}}v==="["?y++:v==="]"&&y--}let l=b.length===0?i:i.substring(x),d=l.startsWith(ae),u=d?l.substring(1):l,p=w&&w>x?w-x:void 0;return{modifiers:b,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:p}};return r?i=>r({className:i,parseClassName:a}):a},Le=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Be=e=>({cache:Ge(e.cacheSize),parseClassName:Fe(e),...Ae(e)}),je=/\s+/,Ve=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],a=e.trim().split(je),i="";for(let b=a.length-1;b>=0;b-=1){let y=a[b],{modifiers:x,hasImportantModifier:w,baseClassName:l,maybePostfixModifierPosition:d}=r(y),u=!!d,p=o(u?l.substring(0,d):l);if(!p){if(!u){i=y+(i.length>0?" "+i:i);continue}if(p=o(l),!p){i=y+(i.length>0?" "+i:i);continue}u=!1}let h=Le(x).join(":"),v=w?h+ae:h,k=v+p;if(n.includes(k))continue;n.push(k);let R=s(p,u);for(let P=0;P<R.length;++P){let L=R[P];n.push(v+L)}i=y+(i.length>0?" "+i:i)}return i};function We(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=le(t))&&(o&&(o+=" "),o+=r);return o}var le=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=le(e[o]))&&(r&&(r+=" "),r+=t);return r};function _e(e,...t){let r,o,s,n=a;function a(b){let y=t.reduce((x,w)=>w(x),e());return r=Be(y),o=r.cache.get,s=r.cache.set,n=i,i(b)}function i(b){let y=o(b);if(y)return y;let x=Ve(b,r);return s(b,x),x}return function(){return n(We.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ce=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Ue=new Set(["px","full","screen"]),He=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ke=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Oe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Je=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>N(e)||Ue.has(e)||$e.test(e),S=e=>A(e,"length",rt),N=e=>!!e&&!Number.isNaN(Number(e)),H=e=>A(e,"number",N),E=e=>!!e&&Number.isInteger(Number(e)),Xe=e=>e.endsWith("%")&&N(e.slice(0,-1)),c=e=>ce.test(e),M=e=>He.test(e),Ze=new Set(["length","size","percentage"]),Qe=e=>A(e,Ze,de),Ye=e=>A(e,"position",de),De=new Set(["image","url"]),et=e=>A(e,De,nt),tt=e=>A(e,"",ot),T=()=>!0,A=(e,t,r)=>{let o=ce.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},rt=e=>Ke.test(e)&&!Oe.test(e),de=()=>!1,ot=e=>qe.test(e),nt=e=>Je.test(e);var st=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),s=m("borderColor"),n=m("borderRadius"),a=m("borderSpacing"),i=m("borderWidth"),b=m("contrast"),y=m("grayscale"),x=m("hueRotate"),w=m("invert"),l=m("gap"),d=m("gradientColorStops"),u=m("gradientColorStopPositions"),p=m("inset"),h=m("margin"),v=m("opacity"),k=m("padding"),R=m("saturate"),P=m("scale"),L=m("sepia"),X=m("skew"),Z=m("space"),Q=m("translate"),W=()=>["auto","contain","none"],_=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",c,t],f=()=>[c,t],Y=()=>["",z,S],B=()=>["auto",N,c],D=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],I=()=>["","0",c],te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[N,c];return{cacheSize:500,separator:":",theme:{colors:[T],spacing:[z,S],blur:["none","",M,c],brightness:C(),borderColor:[e],borderRadius:["none","","full",M,c],borderSpacing:f(),borderWidth:Y(),contrast:C(),grayscale:I(),hueRotate:C(),invert:I(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Xe,S],inset:$(),margin:$(),opacity:C(),padding:f(),saturate:C(),scale:C(),sepia:I(),skew:C(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"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:[...D(),c]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",E,c]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:I()}],shrink:[{shrink:I()}],order:[{order:["first","last","none",E,c]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",E,c]},c]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[E,c]},c]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[l]}],"gap-x":[{"gap-x":[l]}],"gap-y":[{"gap-y":[l]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"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",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",H]}],"font-family":[{font:[T]}],"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",c]}],"line-clamp":[{"line-clamp":["none",N,H]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,S]}],"underline-offset":[{"underline-offset":["auto",z,c]}],"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:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...D(),Ye]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Qe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:j()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[z,c]}],"outline-w":[{outline:[z,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[z,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,tt]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",M,c]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[w]}],saturate:[{saturate:[R]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[E,c]}],"translate-x":[{"translate-x":[Q]}],"translate-y":[{"translate-y":[Q]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,S,H]}],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","pe","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","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-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-pe","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 pe=_e(st);function G(...e){return pe((0,ue.clsx)(e))}var me=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),be=oe(require("react")),ge=require("react/jsx-runtime"),it=(0,fe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),F=be.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,ge.jsx)(e?me.Slot:"button",{className:G(it({className:t,size:r,variant:o})),ref:n,...s}));F.displayName="Button";var he=oe(require("react"));var q=he.forwardRef(({className:e,type:t,...r},o)=>(0,ge.jsx)("input",{type:t,className:G("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));q.displayName="Input";var ve=require("lucide-react");function we({apiEndpoint:e="/api/chat",maxFileSize:t=10,allowedFileTypes:r=["image/*","text/*","application/pdf"]}){let o=(0,xe.useChat)({onError:l=>{console.error("Chat error:",l)},onFinish:l=>{console.log("Message finished:",l)}}),[s,n]=(0,J.useState)(""),[a,i]=(0,J.useState)([]),b=l=>{let d=new DataTransfer;return l.forEach(u=>d.items.add(u)),d.files},y=()=>{if(!s.trim()&&a.length===0)return;let l=a.length>0?b(a):void 0;o.sendMessage({text:s,files:l},{body:{timestamp:Date.now(),fileCount:a.length}}),n(""),i([])},x=l=>{if(!l)return;let d=[];Array.from(l).forEach(u=>{if(u.size>t*1024*1024){alert(`File ${u.name} is too large. Maximum size is ${t}MB.`);return}if(r.length>0&&!r.some(p=>u.type.match(p))){alert(`File type ${u.type} is not allowed.`);return}d.push(u)}),i(u=>[...u,...d])},w=l=>{i(d=>d.filter((u,p)=>p!==l))};return(0,ge.jsxs)("div",{className:"max-w-2xl mx-auto p-4",children:[(0,ge.jsx)("h1",{className:"text-2xl font-bold mb-4",children:"AI Chat with File Uploads"}),(0,ge.jsx)("div",{className:"space-y-4 mb-4 max-h-96 overflow-y-auto",children:o.messages.map(l=>(0,ge.jsx)("div",{className:`flex ${l.role==="user"?"justify-end":"justify-start"}`,children:(0,ge.jsx)("div",{className:`max-w-xs lg:max-w-md px-4 py-2 rounded-lg ${l.role==="user"?"bg-blue-500 text-white":"bg-gray-200 text-black"}`,children:l.parts.map((d,u)=>{if(d.type==="text")return(0,ge.jsx)("p",{children:d.text},u);if(d.type==="file"){let p=d;return(0,ge.jsxs)("div",{className:"mb-2",children:[(0,ge.jsxs)("p",{className:"text-sm font-semibold",children:["\u{1F4CE} ",p.filename||p.name]}),p.mediaType?.startsWith("image/")&&(0,ge.jsx)("img",{src:p.url,alt:p.filename,className:"max-w-full h-auto rounded"})]},u)}return null})})},l.id))}),a.length>0&&(0,ge.jsxs)("div",{className:"mb-4 p-3 bg-gray-100 rounded-lg",children:[(0,ge.jsx)("p",{className:"text-sm font-semibold mb-2",children:"Selected Files:"}),a.map((l,d)=>(0,ge.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ge.jsxs)("span",{className:"text-sm",children:[l.name," (",(l.size/1024).toFixed(1)," KB)"]}),(0,ge.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>w(d),children:"Remove"})]},d))]}),(0,ge.jsxs)("div",{className:"flex gap-2",children:[(0,ge.jsx)(q,{value:s,onChange:l=>n(l.target.value),onKeyPress:l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),y())},placeholder:"Type your message...",className:"flex-1",disabled:o.status==="streaming"}),(0,ge.jsx)(F,{variant:"outline",size:"icon",onClick:()=>{let l=document.createElement("input");l.type="file",l.multiple=!0,l.accept=r.join(","),l.onchange=d=>{let u=d.target.files;x(u)},l.click()},children:(0,ge.jsx)(ve.Paperclip,{className:"h-4 w-4"})}),(0,ge.jsx)(F,{onClick:y,disabled:!s.trim()&&a.length===0||o.status==="streaming",children:o.status==="streaming"?"Sending...":"Send"})]}),o.error&&(0,ge.jsxs)("div",{className:"mt-4 p-3 bg-red-100 text-red-800 rounded-lg",children:["Error: ",o.error.message]})]})}var at=we;0&&(module.exports={SimpleFileUploadChat});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a as g}from"../../chunk-
|
|
2
|
+
"use strict";import{a as g}from"../../chunk-L5JPAKPM.mjs";import{b as m}from"../../chunk-ZUA4KNIR.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";import{useState as h}from"react";import{useChat as b}from"@ai-sdk/react";import{Paperclip as F}from"lucide-react";import{jsx as s,jsxs as l}from"react/jsx-runtime";function N({apiEndpoint:k="/api/chat",maxFileSize:c=10,allowedFileTypes:d=["image/*","text/*","application/pdf"]}){let n=b({onError:e=>{console.error("Chat error:",e)},onFinish:e=>{console.log("Message finished:",e)}}),[o,u]=h(""),[r,p]=h([]),y=e=>{let t=new DataTransfer;return e.forEach(a=>t.items.add(a)),t.files},f=()=>{if(!o.trim()&&r.length===0)return;let e=r.length>0?y(r):void 0;n.sendMessage({text:o,files:e},{body:{timestamp:Date.now(),fileCount:r.length}}),u(""),p([])},v=e=>{if(!e)return;let t=[];Array.from(e).forEach(a=>{if(a.size>c*1024*1024){alert(`File ${a.name} is too large. Maximum size is ${c}MB.`);return}if(d.length>0&&!d.some(i=>a.type.match(i))){alert(`File type ${a.type} is not allowed.`);return}t.push(a)}),p(a=>[...a,...t])},x=e=>{p(t=>t.filter((a,i)=>i!==e))};return l("div",{className:"max-w-2xl mx-auto p-4",children:[s("h1",{className:"text-2xl font-bold mb-4",children:"AI Chat with File Uploads"}),s("div",{className:"space-y-4 mb-4 max-h-96 overflow-y-auto",children:n.messages.map(e=>s("div",{className:`flex ${e.role==="user"?"justify-end":"justify-start"}`,children:s("div",{className:`max-w-xs lg:max-w-md px-4 py-2 rounded-lg ${e.role==="user"?"bg-blue-500 text-white":"bg-gray-200 text-black"}`,children:e.parts.map((t,a)=>{if(t.type==="text")return s("p",{children:t.text},a);if(t.type==="file"){let i=t;return l("div",{className:"mb-2",children:[l("p",{className:"text-sm font-semibold",children:["\u{1F4CE} ",i.filename||i.name]}),i.mediaType?.startsWith("image/")&&s("img",{src:i.url,alt:i.filename,className:"max-w-full h-auto rounded"})]},a)}return null})})},e.id))}),r.length>0&&l("div",{className:"mb-4 p-3 bg-gray-100 rounded-lg",children:[s("p",{className:"text-sm font-semibold mb-2",children:"Selected Files:"}),r.map((e,t)=>l("div",{className:"flex items-center justify-between",children:[l("span",{className:"text-sm",children:[e.name," (",(e.size/1024).toFixed(1)," KB)"]}),s(m,{variant:"ghost",size:"sm",onClick:()=>x(t),children:"Remove"})]},t))]}),l("div",{className:"flex gap-2",children:[s(g,{value:o,onChange:e=>u(e.target.value),onKeyPress:e=>{e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),f())},placeholder:"Type your message...",className:"flex-1",disabled:n.status==="streaming"}),s(m,{variant:"outline",size:"icon",onClick:()=>{let e=document.createElement("input");e.type="file",e.multiple=!0,e.accept=d.join(","),e.onchange=t=>{let a=t.target.files;v(a)},e.click()},children:s(F,{className:"h-4 w-4"})}),s(m,{onClick:f,disabled:!o.trim()&&r.length===0||n.status==="streaming",children:n.status==="streaming"?"Sending...":"Send"})]}),n.error&&l("div",{className:"mt-4 p-3 bg-red-100 text-red-800 rounded-lg",children:["Error: ",n.error.message]})]})}var z=N;export{N as SimpleFileUploadChat,z as default};
|