cortex-react-components 2.12.1 → 2.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (657) hide show
  1. package/dist/{chunk-4CU7D3X2.mjs → chunk-2C3C5SQQ.mjs} +1 -1
  2. package/dist/{chunk-CSBGSBEU.mjs → chunk-2JKLBLDE.mjs} +1 -1
  3. package/dist/{chunk-IC2ABKAM.mjs → chunk-2LLMXGTP.mjs} +1 -1
  4. package/dist/chunk-2WLZ5T2D.mjs +1 -0
  5. package/dist/{chunk-MU5WPW4N.mjs → chunk-3GLK3JM6.mjs} +1 -1
  6. package/dist/{chunk-Q5Q3DJWU.mjs → chunk-3HD7RAT7.mjs} +1 -1
  7. package/dist/{chunk-CO6AQNZ5.mjs → chunk-3JEM6RIR.mjs} +1 -1
  8. package/dist/{chunk-EOXVYLPB.mjs → chunk-3KBY7FKD.mjs} +1 -1
  9. package/dist/{chunk-PK3OBSCB.mjs → chunk-3ZXW3WQU.mjs} +1 -1
  10. package/dist/{chunk-F5N6KQA2.mjs → chunk-44JXFP6W.mjs} +1 -1
  11. package/dist/{chunk-FKU4VQR6.mjs → chunk-4OAROJ4M.mjs} +1 -1
  12. package/dist/{chunk-JYL3XIJX.mjs → chunk-4OK6PUOO.mjs} +1 -1
  13. package/dist/{chunk-PFLESLNT.mjs → chunk-4RQ27GTD.mjs} +1 -1
  14. package/dist/{chunk-RAGDUV7M.mjs → chunk-52UFJIL4.mjs} +1 -1
  15. package/dist/{chunk-Q5XT55O3.mjs → chunk-532HP37G.mjs} +1 -1
  16. package/dist/{chunk-TEB67NCD.mjs → chunk-55OESIAK.mjs} +1 -1
  17. package/dist/{chunk-LUM6KEWN.mjs → chunk-56AGUZR5.mjs} +1 -1
  18. package/dist/{chunk-IF3425JX.mjs → chunk-5AYDHF5U.mjs} +1 -1
  19. package/dist/{chunk-2RGAV55J.mjs → chunk-5N2D3BGH.mjs} +1 -1
  20. package/dist/{chunk-74U3NYS2.mjs → chunk-5T4OPJ7F.mjs} +1 -1
  21. package/dist/{chunk-LBUC4M6L.mjs → chunk-5WDNNO37.mjs} +1 -1
  22. package/dist/{chunk-CRAZSEFO.mjs → chunk-5WH7SFOR.mjs} +1 -1
  23. package/dist/{chunk-V6GC3UGV.mjs → chunk-5YJFMMVM.mjs} +1 -1
  24. package/dist/{chunk-LKGCU7H6.mjs → chunk-67RPQW7V.mjs} +1 -1
  25. package/dist/{chunk-FGEFYI5E.mjs → chunk-6CAO4IKW.mjs} +1 -1
  26. package/dist/{chunk-MXCW6SOT.mjs → chunk-6GDVIZS5.mjs} +1 -1
  27. package/dist/{chunk-EAFH3DTH.mjs → chunk-6PBOA7BL.mjs} +1 -1
  28. package/dist/{chunk-2LINLX4S.mjs → chunk-6PQ67CC6.mjs} +1 -1
  29. package/dist/{chunk-VMAPGGGW.mjs → chunk-6TLGI4P6.mjs} +1 -1
  30. package/dist/{chunk-LJQPLE4S.mjs → chunk-6UVEJCVM.mjs} +1 -1
  31. package/dist/{chunk-LLED3RQS.mjs → chunk-6WVIXUXX.mjs} +1 -1
  32. package/dist/{chunk-E4TE4NV6.mjs → chunk-7EEEXU54.mjs} +1 -1
  33. package/dist/{chunk-JFFTEK6Z.mjs → chunk-7QBPKUWN.mjs} +1 -1
  34. package/dist/{chunk-L3BLBPSR.mjs → chunk-7RKPUKFH.mjs} +1 -1
  35. package/dist/{chunk-YO3GQYRJ.mjs → chunk-7WKUKFCT.mjs} +1 -1
  36. package/dist/{chunk-ZUA4KNIR.mjs → chunk-7Z3TOFNL.mjs} +1 -1
  37. package/dist/{chunk-FHMQVAKQ.mjs → chunk-A4XWPIEI.mjs} +1 -1
  38. package/dist/{chunk-I2GNNRFH.mjs → chunk-A5TPL5CB.mjs} +1 -1
  39. package/dist/{chunk-ZSIYEVUV.mjs → chunk-A7S4L4P2.mjs} +1 -1
  40. package/dist/{chunk-UWEU6TLS.mjs → chunk-AARMIMMZ.mjs} +1 -1
  41. package/dist/{chunk-3UMMMQEH.mjs → chunk-AG6IN5S7.mjs} +1 -1
  42. package/dist/{chunk-GHZ6CUY3.mjs → chunk-AQIMDHFI.mjs} +1 -1
  43. package/dist/{chunk-YOETYY5S.mjs → chunk-AWMXVMUW.mjs} +1 -1
  44. package/dist/{chunk-D4IMQTVU.mjs → chunk-BEPKJ67R.mjs} +1 -1
  45. package/dist/{chunk-KY7WQYN4.mjs → chunk-BIAOADJS.mjs} +1 -1
  46. package/dist/{chunk-Z22NSJMF.mjs → chunk-BM2ZNFM6.mjs} +1 -1
  47. package/dist/{chunk-MZP7RIQZ.mjs → chunk-BOG3XLGP.mjs} +1 -1
  48. package/dist/{chunk-5WVFEIMC.mjs → chunk-BUTUPCGN.mjs} +1 -1
  49. package/dist/{chunk-HKGW6JI2.mjs → chunk-BXVJNWFA.mjs} +1 -1
  50. package/dist/{chunk-GSOFCLPO.mjs → chunk-C4SUCDRQ.mjs} +1 -1
  51. package/dist/chunk-CDH5ONCJ.mjs +8 -0
  52. package/dist/{chunk-AB43AQKL.mjs → chunk-CXK2IY4V.mjs} +1 -1
  53. package/dist/{chunk-M7NV6EFH.mjs → chunk-CXXPSCV3.mjs} +1 -1
  54. package/dist/{chunk-SS6TXSY6.mjs → chunk-D42KIYIO.mjs} +1 -1
  55. package/dist/{chunk-QTILVWJA.mjs → chunk-DA5SDQDL.mjs} +1 -1
  56. package/dist/{chunk-255P6K5W.mjs → chunk-DFWWQRJ2.mjs} +1 -1
  57. package/dist/{chunk-OCPX4QPC.mjs → chunk-DGJHJHFF.mjs} +1 -1
  58. package/dist/{chunk-PWXCBW2H.mjs → chunk-E2MPOOEL.mjs} +1 -1
  59. package/dist/{chunk-CTAQQFEO.mjs → chunk-E3NWG6B4.mjs} +1 -1
  60. package/dist/{chunk-VGWDYD6Z.mjs → chunk-E43QS242.mjs} +1 -1
  61. package/dist/{chunk-BQAK2HDY.mjs → chunk-E6IIUYQ7.mjs} +1 -1
  62. package/dist/{chunk-JHNVX4UB.mjs → chunk-E6W2YMC3.mjs} +1 -1
  63. package/dist/{chunk-RHR3YOLG.mjs → chunk-E7SIU5SS.mjs} +1 -1
  64. package/dist/{chunk-J4IHIM6A.mjs → chunk-EBO2R46A.mjs} +1 -1
  65. package/dist/{chunk-LXZAOORS.mjs → chunk-EESKUTPD.mjs} +1 -1
  66. package/dist/{chunk-YRMNCHFO.mjs → chunk-EFIJNPMM.mjs} +1 -1
  67. package/dist/{chunk-X3JZSN3W.mjs → chunk-EGERAM4Q.mjs} +1 -1
  68. package/dist/{chunk-5RTGHMF3.mjs → chunk-EPDV35LO.mjs} +1 -1
  69. package/dist/{chunk-7WIO2CIC.mjs → chunk-ESTO675Y.mjs} +1 -1
  70. package/dist/{chunk-RR4QSUV2.mjs → chunk-EUXJZBRI.mjs} +1 -1
  71. package/dist/{chunk-67QPOSVV.mjs → chunk-EYQ4UGAJ.mjs} +1 -1
  72. package/dist/{chunk-MFCVMJBO.mjs → chunk-EYRTGZWR.mjs} +1 -1
  73. package/dist/{chunk-7BXIU4ZM.mjs → chunk-F5JHHMZQ.mjs} +1 -1
  74. package/dist/{chunk-FEI5NFYO.mjs → chunk-F6KHZ4OS.mjs} +1 -1
  75. package/dist/{chunk-MAAKU7PN.mjs → chunk-FDJHY37W.mjs} +1 -1
  76. package/dist/{chunk-ZGQC6O62.mjs → chunk-FHPZSG7W.mjs} +1 -1
  77. package/dist/{chunk-SRUG246N.mjs → chunk-FJUAYJF4.mjs} +1 -1
  78. package/dist/{chunk-OYZDAMCS.mjs → chunk-FPWCCVDI.mjs} +1 -1
  79. package/dist/{chunk-GRNYF3HM.mjs → chunk-FSV7RCTY.mjs} +1 -1
  80. package/dist/{chunk-2RQDJ5XT.mjs → chunk-FT6JQ4AC.mjs} +1 -1
  81. package/dist/{chunk-YKG4FNS4.mjs → chunk-GCIWMQMK.mjs} +1 -1
  82. package/dist/{chunk-6DEY5ZDD.mjs → chunk-GFLX67DN.mjs} +1 -1
  83. package/dist/{chunk-AZKOVKSK.mjs → chunk-GIGKJZGA.mjs} +1 -1
  84. package/dist/{chunk-L5JPAKPM.mjs → chunk-GJUA2KUH.mjs} +1 -1
  85. package/dist/{chunk-KGEIN56Y.mjs → chunk-GNIVCF53.mjs} +1 -1
  86. package/dist/{chunk-KX2NCNCS.mjs → chunk-GYTXBVCX.mjs} +1 -1
  87. package/dist/{chunk-AMV3MECK.mjs → chunk-GZQ7JEUL.mjs} +1 -1
  88. package/dist/{chunk-5WV5ZFEP.mjs → chunk-H45UTXIK.mjs} +1 -1
  89. package/dist/{chunk-7GSXNSLD.mjs → chunk-HH4JDBUN.mjs} +1 -1
  90. package/dist/{chunk-TZKQXT7Y.mjs → chunk-HK52LPE3.mjs} +1 -1
  91. package/dist/{chunk-WI2RL3XQ.mjs → chunk-HLWGNTZD.mjs} +1 -1
  92. package/dist/{chunk-LEC6GEWS.mjs → chunk-HPZPRZWG.mjs} +1 -1
  93. package/dist/{chunk-KVD6XDZT.mjs → chunk-HTCM27MI.mjs} +1 -1
  94. package/dist/{chunk-CNOX2DT2.mjs → chunk-HTQIVWYI.mjs} +1 -1
  95. package/dist/{chunk-U5PBLRRV.mjs → chunk-HYIRE7BK.mjs} +1 -1
  96. package/dist/chunk-I2BNJCJ7.mjs +1 -0
  97. package/dist/{chunk-Q5NHYYRS.mjs → chunk-IG6J62QA.mjs} +1 -1
  98. package/dist/{chunk-B3F6F2S4.mjs → chunk-JKPUXPHP.mjs} +1 -1
  99. package/dist/{chunk-QQVPLMPJ.mjs → chunk-JTFMN7OL.mjs} +1 -1
  100. package/dist/{chunk-2QZUKVBA.mjs → chunk-JULD2KZR.mjs} +1 -1
  101. package/dist/{chunk-FT3AE7L2.mjs → chunk-JVJG2LOA.mjs} +1 -1
  102. package/dist/{chunk-Q6PKGY27.mjs → chunk-K5GFFN67.mjs} +1 -1
  103. package/dist/{chunk-M25ZFLSL.mjs → chunk-KCOLYVJX.mjs} +1 -1
  104. package/dist/{chunk-ORNGKQM7.mjs → chunk-KUVPOOSW.mjs} +1 -1
  105. package/dist/{chunk-HHYHENVF.mjs → chunk-KZTONTWM.mjs} +1 -1
  106. package/dist/{chunk-LVFMFRBR.mjs → chunk-LARQXED4.mjs} +1 -1
  107. package/dist/{chunk-ZMB6R6JX.mjs → chunk-LCIKBYDR.mjs} +1 -1
  108. package/dist/{chunk-76M7JE4D.mjs → chunk-LQDJWEHX.mjs} +1 -1
  109. package/dist/{chunk-DGNL64K3.mjs → chunk-MZKVGPNQ.mjs} +1 -1
  110. package/dist/{chunk-IQQ7ZWCP.mjs → chunk-N5BLWWDM.mjs} +1 -1
  111. package/dist/{chunk-DFIXTV2M.mjs → chunk-N5GHL7UZ.mjs} +1 -1
  112. package/dist/{chunk-ISBVFNWD.mjs → chunk-NGC3C4FW.mjs} +1 -1
  113. package/dist/{chunk-I2ZLKSWR.mjs → chunk-NM6U4PLY.mjs} +1 -1
  114. package/dist/{chunk-DBY4SXQI.mjs → chunk-NMAMUYGQ.mjs} +1 -1
  115. package/dist/{chunk-NSMXJCXE.mjs → chunk-NN2RHTGW.mjs} +1 -1
  116. package/dist/{chunk-INCYANPB.mjs → chunk-NQPBIFGO.mjs} +1 -1
  117. package/dist/{chunk-TR6RBROH.mjs → chunk-OF63XSJ4.mjs} +1 -1
  118. package/dist/{chunk-6C4WESLL.mjs → chunk-OGN7YDFB.mjs} +1 -1
  119. package/dist/{chunk-I3E2TYYZ.mjs → chunk-OHDNPAPI.mjs} +1 -1
  120. package/dist/{chunk-FTZRG54P.mjs → chunk-OKAETRO6.mjs} +1 -1
  121. package/dist/{chunk-22LHS2J6.mjs → chunk-OU7KVCBI.mjs} +1 -1
  122. package/dist/{chunk-RLVKIMGU.mjs → chunk-P5U27QUJ.mjs} +1 -1
  123. package/dist/{chunk-5NRGSTPV.mjs → chunk-PMOMDGBA.mjs} +1 -1
  124. package/dist/{chunk-PDY7JYY3.mjs → chunk-PUAHE5VJ.mjs} +1 -1
  125. package/dist/{chunk-56X4PU43.mjs → chunk-PXAKUW3U.mjs} +1 -1
  126. package/dist/{chunk-MGYV46AJ.mjs → chunk-Q6FPZ6J3.mjs} +1 -1
  127. package/dist/{chunk-6WQXZ6IE.mjs → chunk-QAIS2C6W.mjs} +1 -1
  128. package/dist/{chunk-7GMAMIHM.mjs → chunk-QB63WPDB.mjs} +1 -1
  129. package/dist/{chunk-6HLXIE4P.mjs → chunk-QEFMYXHA.mjs} +1 -1
  130. package/dist/{chunk-IJQC7T2R.mjs → chunk-QIDPNZOL.mjs} +1 -1
  131. package/dist/{chunk-RVHCTANZ.mjs → chunk-QMTI6672.mjs} +1 -1
  132. package/dist/{chunk-D3B2YO7G.mjs → chunk-QUDKEIE6.mjs} +1 -1
  133. package/dist/{chunk-2BR55L74.mjs → chunk-QXA6C5VE.mjs} +1 -1
  134. package/dist/{chunk-Q6VAKKW3.mjs → chunk-QXNCGSQE.mjs} +1 -1
  135. package/dist/{chunk-TVZOULLL.mjs → chunk-RAAY7PEH.mjs} +1 -1
  136. package/dist/{chunk-AM2SRWFU.mjs → chunk-RARAKOXE.mjs} +1 -1
  137. package/dist/{chunk-Q67RF7VO.mjs → chunk-RD7LJPUV.mjs} +1 -1
  138. package/dist/{chunk-SOLZ4VQH.mjs → chunk-RFNYVF6F.mjs} +1 -1
  139. package/dist/{chunk-SOIRB5TV.mjs → chunk-RHYQ4V7N.mjs} +1 -1
  140. package/dist/{chunk-TUI4S4GI.mjs → chunk-RPUSKO6J.mjs} +1 -1
  141. package/dist/{chunk-OM5ZUHCN.mjs → chunk-RU435LAU.mjs} +1 -1
  142. package/dist/{chunk-LVK4QE5D.mjs → chunk-S7N4CSMJ.mjs} +1 -1
  143. package/dist/{chunk-AZ4VR5JX.mjs → chunk-SIFQNSEM.mjs} +1 -1
  144. package/dist/{chunk-XBCYPOFD.mjs → chunk-T3BIRW2W.mjs} +1 -1
  145. package/dist/{chunk-4UIARERB.mjs → chunk-T3NMKARZ.mjs} +1 -1
  146. package/dist/{chunk-CTAIR3TE.mjs → chunk-TAVSBP7M.mjs} +1 -1
  147. package/dist/{chunk-AMVJPDM3.mjs → chunk-TFPWTJ2V.mjs} +1 -1
  148. package/dist/{chunk-FMJBJ3HN.mjs → chunk-TNCD5YIY.mjs} +1 -1
  149. package/dist/{chunk-N3B3XNV3.mjs → chunk-TR52MKZR.mjs} +1 -1
  150. package/dist/chunk-TSEOL53Y.mjs +1 -0
  151. package/dist/{chunk-6SWKEZN6.mjs → chunk-TUTSJOO4.mjs} +1 -1
  152. package/dist/{chunk-6XUIHSKG.mjs → chunk-TYMRNSJ3.mjs} +1 -1
  153. package/dist/{chunk-XGIYNUGC.mjs → chunk-TZTQENNX.mjs} +1 -1
  154. package/dist/{chunk-BMA4266L.mjs → chunk-U5UV7T63.mjs} +1 -1
  155. package/dist/{chunk-ZXPDSSCF.mjs → chunk-UBCJPXKD.mjs} +1 -1
  156. package/dist/{chunk-CGDLOY7W.mjs → chunk-UJ6M7EV5.mjs} +1 -1
  157. package/dist/{chunk-KFCSVEI6.mjs → chunk-UXCCCQCB.mjs} +1 -1
  158. package/dist/{chunk-WISC5QJV.mjs → chunk-UY4BSKPK.mjs} +1 -1
  159. package/dist/{chunk-H3CJOE6S.mjs → chunk-VB7K44IF.mjs} +1 -1
  160. package/dist/{chunk-5SHZBJ5R.mjs → chunk-VFPS3FYN.mjs} +1 -1
  161. package/dist/{chunk-FMH5CZ7X.mjs → chunk-VRZHKAJK.mjs} +1 -1
  162. package/dist/{chunk-B4H6T2GP.mjs → chunk-VXZPPTQQ.mjs} +1 -1
  163. package/dist/{chunk-TJVEQJW3.mjs → chunk-WH24BWZV.mjs} +1 -1
  164. package/dist/{chunk-LAQ3QAUW.mjs → chunk-WJZDHRGO.mjs} +1 -1
  165. package/dist/{chunk-RULSHTXR.mjs → chunk-WKLJU63E.mjs} +1 -1
  166. package/dist/{chunk-YFAZQYK4.mjs → chunk-WLM2ZFHF.mjs} +1 -1
  167. package/dist/{chunk-EHSOO47V.mjs → chunk-WNBJ7C5Y.mjs} +1 -1
  168. package/dist/{chunk-5BV4MHV6.mjs → chunk-WWTVAR4J.mjs} +1 -1
  169. package/dist/chunk-WXTJ6DVT.mjs +4 -0
  170. package/dist/{chunk-WROUZ25H.mjs → chunk-X5RHYJW3.mjs} +1 -1
  171. package/dist/{chunk-BG7QXNV5.mjs → chunk-XXFUUOSB.mjs} +1 -1
  172. package/dist/{chunk-TK4JC5PG.mjs → chunk-XXWSCTF5.mjs} +1 -1
  173. package/dist/{chunk-ERJXTG6X.mjs → chunk-YHTFEWSZ.mjs} +1 -1
  174. package/dist/{chunk-OPLUKFRN.mjs → chunk-YUW3HHAK.mjs} +1 -1
  175. package/dist/{chunk-AREQGH47.mjs → chunk-YVNVQONM.mjs} +1 -1
  176. package/dist/{chunk-5BT4EWU5.mjs → chunk-Z756RYIZ.mjs} +1 -1
  177. package/dist/{chunk-4QRKVSTE.mjs → chunk-ZJBZTPLD.mjs} +1 -1
  178. package/dist/{chunk-PFDPO3UX.mjs → chunk-ZKLSTUIP.mjs} +1 -1
  179. package/dist/{chunk-5AWZJAK3.mjs → chunk-ZNV6MCYI.mjs} +1 -1
  180. package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
  181. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  182. package/dist/components/AdvancedComponents/CommentSection.js +1 -1
  183. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  184. package/dist/components/AdvancedComponents/EditableField.js +1 -1
  185. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  186. package/dist/components/AdvancedComponents/app-header.d.ts +2 -2
  187. package/dist/components/AdvancedComponents/app-header.js +1 -1
  188. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  189. package/dist/components/AdvancedComponents/index.js +2 -2
  190. package/dist/components/AdvancedComponents/index.mjs +1 -1
  191. package/dist/components/AdvancedComponents/navigation-tabs.js +2 -2
  192. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  193. package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
  194. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  195. package/dist/components/AdvancedComponents/switch.js +1 -1
  196. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  197. package/dist/components/AdvancedComponents/theme-toggle.js +1 -1
  198. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  199. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  200. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  201. package/dist/components/Blocks/Banner.js +1 -1
  202. package/dist/components/Blocks/Banner.mjs +1 -1
  203. package/dist/components/Blocks/CallToAction.js +1 -1
  204. package/dist/components/Blocks/CallToAction.mjs +1 -1
  205. package/dist/components/Blocks/CaseStudy.js +1 -1
  206. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  207. package/dist/components/Blocks/Code.client.js +1 -1
  208. package/dist/components/Blocks/Code.client.mjs +1 -1
  209. package/dist/components/Blocks/Code.js +1 -1
  210. package/dist/components/Blocks/Code.mjs +1 -1
  211. package/dist/components/Blocks/CollapsibleArea.js +1 -1
  212. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  213. package/dist/components/Blocks/ConsultantProfile.js +1 -1
  214. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  215. package/dist/components/Blocks/Content.js +1 -1
  216. package/dist/components/Blocks/Content.mjs +1 -1
  217. package/dist/components/Blocks/CopyButton.js +1 -1
  218. package/dist/components/Blocks/CopyButton.mjs +1 -1
  219. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  220. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  221. package/dist/components/Blocks/ImageBlock.js +1 -1
  222. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  223. package/dist/components/Blocks/MediaBlock.js +1 -1
  224. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  225. package/dist/components/Blocks/ProposalSummary.js +1 -1
  226. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  227. package/dist/components/Blocks/RelatedPosts.js +1 -1
  228. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  229. package/dist/components/Blocks/RenderBlocks.js +1 -1
  230. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  231. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  232. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  233. package/dist/components/Blocks/index.js +1 -1
  234. package/dist/components/Blocks/index.mjs +1 -1
  235. package/dist/components/CRM/CogeBoard.js +1 -1
  236. package/dist/components/CRM/CogeBoard.mjs +1 -1
  237. package/dist/components/CRM/DealCard.js +1 -1
  238. package/dist/components/CRM/DealCard.mjs +1 -1
  239. package/dist/components/CRM/DealDetails.js +1 -1
  240. package/dist/components/CRM/DealDetails.mjs +1 -1
  241. package/dist/components/CRM/KanbanBoard.js +1 -1
  242. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  243. package/dist/components/CRM/KanbanColumn.js +1 -1
  244. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  245. package/dist/components/CRM/NewCustomerForm.js +1 -1
  246. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  247. package/dist/components/CRM/NewDealForm.js +1 -1
  248. package/dist/components/CRM/NewDealForm.mjs +1 -1
  249. package/dist/components/CRM/index.js +1 -1
  250. package/dist/components/CRM/index.mjs +1 -1
  251. package/dist/components/Cards/ContentCard.js +1 -1
  252. package/dist/components/Cards/ContentCard.mjs +1 -1
  253. package/dist/components/Cards/CustomerCard.js +1 -1
  254. package/dist/components/Cards/CustomerCard.mjs +1 -1
  255. package/dist/components/Cards/EventCard.js +1 -1
  256. package/dist/components/Cards/EventCard.mjs +1 -1
  257. package/dist/components/Cards/FeatureCard.js +1 -1
  258. package/dist/components/Cards/FeatureCard.mjs +1 -1
  259. package/dist/components/Cards/HeroCard.js +1 -1
  260. package/dist/components/Cards/HeroCard.mjs +1 -1
  261. package/dist/components/Cards/Image.js +1 -1
  262. package/dist/components/Cards/Image.mjs +1 -1
  263. package/dist/components/Cards/PricingCard.js +1 -1
  264. package/dist/components/Cards/PricingCard.mjs +1 -1
  265. package/dist/components/Cards/ProjectCard.js +3 -3
  266. package/dist/components/Cards/ProjectCard.mjs +1 -1
  267. package/dist/components/Cards/ServiceCard.js +1 -1
  268. package/dist/components/Cards/ServiceCard.mjs +1 -1
  269. package/dist/components/Cards/index.js +4 -4
  270. package/dist/components/Cards/index.mjs +1 -1
  271. package/dist/components/Chat/ChatCardArtefact.js +1 -1
  272. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  273. package/dist/components/Chat/ChatCardTask.js +1 -1
  274. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  275. package/dist/components/Chat/ChatInterface.js +2 -2
  276. package/dist/components/Chat/ChatInterface.mjs +1 -1
  277. package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
  278. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  279. package/dist/components/Chat/ChatMessage.js +2 -2
  280. package/dist/components/Chat/ChatMessage.mjs +1 -1
  281. package/dist/components/Chat/CopilotInterface.js +3 -3
  282. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  283. package/dist/components/Chat/capability-menu.js +1 -1
  284. package/dist/components/Chat/capability-menu.mjs +1 -1
  285. package/dist/components/Chat/chat-session-sidebar.js +1 -1
  286. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  287. package/dist/components/Chat/demo-long-messages.js +9 -9
  288. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  289. package/dist/components/Chat/demo-tests.js +24 -24
  290. package/dist/components/Chat/demo-tests.mjs +1 -1
  291. package/dist/components/Chat/demo.js +3 -3
  292. package/dist/components/Chat/demo.mjs +1 -1
  293. package/dist/components/Chat/example-usage.js +2 -2
  294. package/dist/components/Chat/example-usage.mjs +1 -1
  295. package/dist/components/Chat/example-with-file-uploads.js +1 -1
  296. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  297. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  298. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  299. package/dist/components/Chat/index.js +3 -3
  300. package/dist/components/Chat/index.mjs +1 -1
  301. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +2 -2
  302. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  303. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  304. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  305. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
  306. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  307. package/dist/components/DeliveryLead/index.js +2 -2
  308. package/dist/components/DeliveryLead/index.mjs +1 -1
  309. package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
  310. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  311. package/dist/components/DigitalColleagues/DashboardHeader.js +1 -1
  312. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  313. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  314. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  315. package/dist/components/DigitalColleagues/MainPage.js +1 -1
  316. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  317. package/dist/components/DigitalColleagues/ManagementSidebar.js +1 -1
  318. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  319. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  320. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  321. package/dist/components/DigitalColleagues/SearchableSelect.js +1 -1
  322. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  323. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  324. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  325. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  326. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  327. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
  328. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  329. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  330. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  331. package/dist/components/DigitalColleagues/colleague-card.js +1 -1
  332. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  333. package/dist/components/DigitalColleagues/colleague-form.js +1 -1
  334. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  335. package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
  336. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  337. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
  338. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  339. package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
  340. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  341. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  342. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  343. package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
  344. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  345. package/dist/components/DigitalColleagues/document-preview.js +1 -1
  346. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  347. package/dist/components/DigitalColleagues/index.js +1 -1
  348. package/dist/components/DigitalColleagues/index.mjs +1 -1
  349. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  350. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  351. package/dist/components/DigitalColleagues/knowledge-search.js +1 -1
  352. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  353. package/dist/components/DigitalColleagues/team-form.js +1 -1
  354. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  355. package/dist/components/DigitalColleagues/test-data.js +1 -1
  356. package/dist/components/DigitalColleagues/test-data.mjs +1 -1
  357. package/dist/components/HeaderFooter/BrandLogo.js +1 -1
  358. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  359. package/dist/components/HeaderFooter/Footer.js +1 -1
  360. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  361. package/dist/components/HeaderFooter/Header.js +1 -1
  362. package/dist/components/HeaderFooter/Header.mjs +1 -1
  363. package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
  364. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  365. package/dist/components/HeaderFooter/HeaderMenu.js +1 -1
  366. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  367. package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
  368. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  369. package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
  370. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  371. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  372. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  373. package/dist/components/HeaderFooter/SimpleHeader.js +1 -1
  374. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  375. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  376. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  377. package/dist/components/HeaderFooter/enhanced-header.js +1 -1
  378. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  379. package/dist/components/HeaderFooter/index.js +1 -1
  380. package/dist/components/HeaderFooter/index.mjs +1 -1
  381. package/dist/components/Heros/DashboardHero/DashboardHero.js +1 -1
  382. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  383. package/dist/components/Heros/DashboardHero/index.js +1 -1
  384. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  385. package/dist/components/Heros/HighImpact/index.js +1 -1
  386. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  387. package/dist/components/Heros/LowImpact/index.js +1 -1
  388. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  389. package/dist/components/Heros/MediumImpact/index.js +1 -1
  390. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  391. package/dist/components/Heros/PostHero/index.js +1 -1
  392. package/dist/components/Heros/PostHero/index.mjs +1 -1
  393. package/dist/components/Heros/RenderHero.js +1 -1
  394. package/dist/components/Heros/RenderHero.mjs +1 -1
  395. package/dist/components/Heros/SectionHero/index.js +1 -1
  396. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  397. package/dist/components/Heros/index.js +1 -1
  398. package/dist/components/Heros/index.mjs +1 -1
  399. package/dist/components/Holidays/ApproveLeave.js +1 -1
  400. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  401. package/dist/components/Holidays/CalendarView.js +1 -1
  402. package/dist/components/Holidays/CalendarView.mjs +1 -1
  403. package/dist/components/Holidays/HolidayGrid.js +1 -1
  404. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  405. package/dist/components/Holidays/HolidayTracker.js +1 -1
  406. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  407. package/dist/components/Holidays/RequestLeave.js +1 -1
  408. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  409. package/dist/components/Holidays/index.js +1 -1
  410. package/dist/components/Holidays/index.mjs +1 -1
  411. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  412. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  413. package/dist/components/Layouts/Print.js +2 -2
  414. package/dist/components/Layouts/Print.mjs +1 -1
  415. package/dist/components/Layouts/SlideShow.js +3 -3
  416. package/dist/components/Layouts/SlideShow.mjs +1 -1
  417. package/dist/components/Layouts/index.js +4 -4
  418. package/dist/components/Layouts/index.mjs +1 -1
  419. package/dist/components/Menus/Categories.js +1 -1
  420. package/dist/components/Menus/Categories.mjs +1 -1
  421. package/dist/components/Menus/Filter.js +1 -1
  422. package/dist/components/Menus/Filter.mjs +1 -1
  423. package/dist/components/Menus/Pagination.js +1 -1
  424. package/dist/components/Menus/Pagination.mjs +1 -1
  425. package/dist/components/Menus/ProjectTeam.js +1 -1
  426. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  427. package/dist/components/Menus/RelatedContent.js +1 -1
  428. package/dist/components/Menus/RelatedContent.mjs +1 -1
  429. package/dist/components/Menus/SidebarLeft.js +1 -1
  430. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  431. package/dist/components/Menus/SidebarRight.js +1 -1
  432. package/dist/components/Menus/SidebarRight.mjs +1 -1
  433. package/dist/components/Menus/index.js +1 -1
  434. package/dist/components/Menus/index.mjs +1 -1
  435. package/dist/components/Other/Container.js +1 -1
  436. package/dist/components/Other/Container.mjs +1 -1
  437. package/dist/components/Other/PageShape.js +1 -1
  438. package/dist/components/Other/PageShape.mjs +1 -1
  439. package/dist/components/Other/index.js +1 -1
  440. package/dist/components/Other/index.mjs +1 -1
  441. package/dist/components/Payload/Card/index.js +1 -1
  442. package/dist/components/Payload/Card/index.mjs +1 -1
  443. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  444. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  445. package/dist/components/Payload/Link/index.js +1 -1
  446. package/dist/components/Payload/Link/index.mjs +1 -1
  447. package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
  448. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  449. package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
  450. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  451. package/dist/components/Payload/Media/index.js +1 -1
  452. package/dist/components/Payload/Media/index.mjs +1 -1
  453. package/dist/components/Payload/Pagination/index.js +1 -1
  454. package/dist/components/Payload/Pagination/index.mjs +1 -1
  455. package/dist/components/Payload/RichText/index.js +1 -1
  456. package/dist/components/Payload/RichText/index.mjs +1 -1
  457. package/dist/components/Payload/RichText/serialize.js +1 -1
  458. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  459. package/dist/components/Payload/index.js +1 -1
  460. package/dist/components/Payload/index.mjs +1 -1
  461. package/dist/components/Projects/AddEpicModal.js +1 -1
  462. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  463. package/dist/components/Projects/AddSprintModal.js +1 -1
  464. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  465. package/dist/components/Projects/AddTaskModal.js +1 -1
  466. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  467. package/dist/components/Projects/EpicFilter.js +1 -1
  468. package/dist/components/Projects/EpicFilter.mjs +1 -1
  469. package/dist/components/Projects/EpicsView.js +1 -1
  470. package/dist/components/Projects/EpicsView.mjs +1 -1
  471. package/dist/components/Projects/FileView.js +1 -1
  472. package/dist/components/Projects/FileView.mjs +1 -1
  473. package/dist/components/Projects/KanbanBoardView.js +1 -1
  474. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  475. package/dist/components/Projects/KanbanColumn.js +1 -1
  476. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  477. package/dist/components/Projects/PlanningView.js +1 -1
  478. package/dist/components/Projects/PlanningView.mjs +1 -1
  479. package/dist/components/Projects/ProjectPage.js +1 -1
  480. package/dist/components/Projects/ProjectPage.mjs +1 -1
  481. package/dist/components/Projects/ProjectView.js +1 -1
  482. package/dist/components/Projects/ProjectView.mjs +1 -1
  483. package/dist/components/Projects/ProjectsIndexView.js +1 -1
  484. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  485. package/dist/components/Projects/TaskCard.js +1 -1
  486. package/dist/components/Projects/TaskCard.mjs +1 -1
  487. package/dist/components/Projects/TaskDetailsModal.js +1 -1
  488. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  489. package/dist/components/Projects/TaskSelect.js +1 -1
  490. package/dist/components/Projects/TaskSelect.mjs +1 -1
  491. package/dist/components/Projects/TaskSidebar.js +1 -1
  492. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  493. package/dist/components/Projects/TasksView.js +1 -1
  494. package/dist/components/Projects/TasksView.mjs +1 -1
  495. package/dist/components/Projects/TeamSwitcher.js +1 -1
  496. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  497. package/dist/components/Projects/business-unit-switcher.js +1 -1
  498. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  499. package/dist/components/Projects/file-list.js +1 -1
  500. package/dist/components/Projects/file-list.mjs +1 -1
  501. package/dist/components/Projects/index.js +1 -1
  502. package/dist/components/Projects/index.mjs +1 -1
  503. package/dist/components/Projects/project-card.js +1 -1
  504. package/dist/components/Projects/project-card.mjs +1 -1
  505. package/dist/components/Projects/project-form.js +1 -1
  506. package/dist/components/Projects/project-form.mjs +1 -1
  507. package/dist/components/Projects/team-card.js +1 -1
  508. package/dist/components/Projects/team-card.mjs +1 -1
  509. package/dist/components/Projects/team-switcher-bar.js +1 -1
  510. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  511. package/dist/components/Projects/test-data.js +1 -1
  512. package/dist/components/Projects/test-data.mjs +1 -1
  513. package/dist/components/dc-temp/creative.js +1 -1
  514. package/dist/components/dc-temp/creative.mjs +1 -1
  515. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  516. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  517. package/dist/components/dc-temp/index.js +1 -1
  518. package/dist/components/dc-temp/index.mjs +1 -1
  519. package/dist/components/dc-temp/markdown-renderer.js +1 -1
  520. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  521. package/dist/components/dc-temp/utils.js +1 -1
  522. package/dist/components/dc-temp/utils.mjs +1 -1
  523. package/dist/components/index.js +13 -13
  524. package/dist/components/index.mjs +1 -1
  525. package/dist/components/ui/alert.js +1 -1
  526. package/dist/components/ui/alert.mjs +1 -1
  527. package/dist/components/ui/avatar.js +1 -1
  528. package/dist/components/ui/avatar.mjs +1 -1
  529. package/dist/components/ui/badge.js +1 -1
  530. package/dist/components/ui/badge.mjs +1 -1
  531. package/dist/components/ui/breadcrumb.js +1 -1
  532. package/dist/components/ui/breadcrumb.mjs +1 -1
  533. package/dist/components/ui/button.js +1 -1
  534. package/dist/components/ui/button.mjs +1 -1
  535. package/dist/components/ui/calendar.js +1 -1
  536. package/dist/components/ui/calendar.mjs +1 -1
  537. package/dist/components/ui/card.js +1 -1
  538. package/dist/components/ui/card.mjs +1 -1
  539. package/dist/components/ui/checkbox.js +1 -1
  540. package/dist/components/ui/checkbox.mjs +1 -1
  541. package/dist/components/ui/command.js +1 -1
  542. package/dist/components/ui/command.mjs +1 -1
  543. package/dist/components/ui/dialog.js +1 -1
  544. package/dist/components/ui/dialog.mjs +1 -1
  545. package/dist/components/ui/dropdown-menu.js +1 -1
  546. package/dist/components/ui/dropdown-menu.mjs +1 -1
  547. package/dist/components/ui/hover-card.js +1 -1
  548. package/dist/components/ui/hover-card.mjs +1 -1
  549. package/dist/components/ui/index.js +1 -1
  550. package/dist/components/ui/index.mjs +1 -1
  551. package/dist/components/ui/input.js +1 -1
  552. package/dist/components/ui/input.mjs +1 -1
  553. package/dist/components/ui/inputs/common/styles/index.js +1 -1
  554. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  555. package/dist/components/ui/inputs/text-input/index.js +1 -1
  556. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  557. package/dist/components/ui/inputs/textarea-input/index.js +1 -1
  558. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  559. package/dist/components/ui/label.js +1 -1
  560. package/dist/components/ui/label.mjs +1 -1
  561. package/dist/components/ui/pagination.js +1 -1
  562. package/dist/components/ui/pagination.mjs +1 -1
  563. package/dist/components/ui/popover.js +1 -1
  564. package/dist/components/ui/popover.mjs +1 -1
  565. package/dist/components/ui/progress.js +1 -1
  566. package/dist/components/ui/progress.mjs +1 -1
  567. package/dist/components/ui/scroll-area.js +1 -1
  568. package/dist/components/ui/scroll-area.mjs +1 -1
  569. package/dist/components/ui/select.js +1 -1
  570. package/dist/components/ui/select.mjs +1 -1
  571. package/dist/components/ui/separator.js +1 -1
  572. package/dist/components/ui/separator.mjs +1 -1
  573. package/dist/components/ui/sheet.js +1 -1
  574. package/dist/components/ui/sheet.mjs +1 -1
  575. package/dist/components/ui/sidebar.js +1 -1
  576. package/dist/components/ui/sidebar.mjs +1 -1
  577. package/dist/components/ui/skeleton.js +1 -1
  578. package/dist/components/ui/skeleton.mjs +1 -1
  579. package/dist/components/ui/switch.js +1 -1
  580. package/dist/components/ui/switch.mjs +1 -1
  581. package/dist/components/ui/tabs.js +1 -1
  582. package/dist/components/ui/tabs.mjs +1 -1
  583. package/dist/components/ui/textarea.js +1 -1
  584. package/dist/components/ui/textarea.mjs +1 -1
  585. package/dist/components/ui/toast.js +1 -1
  586. package/dist/components/ui/toast.mjs +1 -1
  587. package/dist/components/ui/toaster.js +1 -1
  588. package/dist/components/ui/toaster.mjs +1 -1
  589. package/dist/components/ui/toggle-group.js +1 -1
  590. package/dist/components/ui/toggle-group.mjs +1 -1
  591. package/dist/components/ui/toggle.js +1 -1
  592. package/dist/components/ui/toggle.mjs +1 -1
  593. package/dist/components/ui/tooltip.js +1 -1
  594. package/dist/components/ui/tooltip.mjs +1 -1
  595. package/dist/globals.css +1 -1
  596. package/dist/index.js +18 -18
  597. package/dist/index.mjs +1 -1
  598. package/dist/metafile-cjs.json +1 -1
  599. package/dist/metafile-esm.json +1 -1
  600. package/dist/pages/Blog.js +1 -1
  601. package/dist/pages/Blog.mjs +1 -1
  602. package/dist/pages/Documentation.js +1 -1
  603. package/dist/pages/Documentation.mjs +1 -1
  604. package/dist/pages/IndexPage.js +1 -1
  605. package/dist/pages/IndexPage.mjs +1 -1
  606. package/dist/pages/Intranet.js +1 -1
  607. package/dist/pages/Intranet.mjs +1 -1
  608. package/dist/pages/LandingPage.js +3 -3
  609. package/dist/pages/LandingPage.mjs +1 -1
  610. package/dist/pages/Page.js +1 -1
  611. package/dist/pages/Page.mjs +1 -1
  612. package/dist/pages/Publish.js +4 -4
  613. package/dist/pages/Publish.mjs +1 -1
  614. package/dist/pages/Website.js +1 -1
  615. package/dist/pages/Website.mjs +1 -1
  616. package/dist/sections/AboutSection.js +1 -1
  617. package/dist/sections/AboutSection.mjs +1 -1
  618. package/dist/sections/BlogDetail.js +1 -1
  619. package/dist/sections/BlogDetail.mjs +1 -1
  620. package/dist/sections/BlogList.js +3 -3
  621. package/dist/sections/BlogList.mjs +1 -1
  622. package/dist/sections/BlogListSection.js +1 -1
  623. package/dist/sections/BlogListSection.mjs +1 -1
  624. package/dist/sections/ContactSection.js +1 -1
  625. package/dist/sections/ContactSection.mjs +1 -1
  626. package/dist/sections/ImageSection.js +1 -1
  627. package/dist/sections/ImageSection.mjs +1 -1
  628. package/dist/sections/MainPageSection.js +1 -1
  629. package/dist/sections/MainPageSection.mjs +1 -1
  630. package/dist/sections/PageSections.js +3 -3
  631. package/dist/sections/PageSections.mjs +1 -1
  632. package/dist/sections/PricingSection.js +1 -1
  633. package/dist/sections/PricingSection.mjs +1 -1
  634. package/dist/sections/ServiceDetail.js +1 -1
  635. package/dist/sections/ServiceDetail.mjs +1 -1
  636. package/dist/sections/ServiceDetailSection.js +1 -1
  637. package/dist/sections/ServiceDetailSection.mjs +1 -1
  638. package/dist/sections/ServiceSection.js +1 -1
  639. package/dist/sections/ServiceSection.mjs +1 -1
  640. package/dist/sections/form/index.js +1 -1
  641. package/dist/sections/form/index.mjs +1 -1
  642. package/dist/sections/index.js +3 -3
  643. package/dist/sections/index.mjs +1 -1
  644. package/dist/styles/Colors.js +1 -1
  645. package/dist/styles/Colors.mjs +1 -1
  646. package/dist/utils/AOSInit.js +2 -2
  647. package/dist/utils/AOSInit.mjs +1 -1
  648. package/dist/utils/cn.js +1 -1
  649. package/dist/utils/cn.mjs +1 -1
  650. package/dist/utils/index.js +2 -2
  651. package/dist/utils/index.mjs +1 -1
  652. package/package.json +1 -1
  653. package/dist/chunk-MDJREBVI.mjs +0 -1
  654. package/dist/chunk-O46BOA4T.mjs +0 -1
  655. package/dist/chunk-XGRRLABA.mjs +0 -8
  656. package/dist/chunk-ZFUP5NVF.mjs +0 -4
  657. package/dist/chunk-ZWHGOTSF.mjs +0 -1
@@ -1 +1 @@
1
- import{a as s}from"../../chunk-WROUZ25H.mjs";import{a as n}from"../../chunk-Q6VAKKW3.mjs";import"../../chunk-ENRNRNPQ.mjs";import{a as r}from"../../chunk-5BV4MHV6.mjs";import{a as x}from"../../chunk-OPLUKFRN.mjs";import"../../chunk-VGWDYD6Z.mjs";import{a as v}from"../../chunk-CRAZSEFO.mjs";import"../../chunk-ZMB6R6JX.mjs";import{a as t}from"../../chunk-WI2RL3XQ.mjs";import"../../chunk-GHZ6CUY3.mjs";import"../../chunk-DGNL64K3.mjs";import"../../chunk-HHYHENVF.mjs";import"../../chunk-PFLESLNT.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-AMV3MECK.mjs";import{a as u}from"../../chunk-LUM6KEWN.mjs";import{a as w}from"../../chunk-74U3NYS2.mjs";import"../../chunk-2RGAV55J.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-D3B2YO7G.mjs";import"../../chunk-ORNGKQM7.mjs";import"../../chunk-6DEY5ZDD.mjs";import"../../chunk-PFDPO3UX.mjs";import"../../chunk-I2ZLKSWR.mjs";import"../../chunk-AM2SRWFU.mjs";import"../../chunk-Z22NSJMF.mjs";import{a as q}from"../../chunk-ZXPDSSCF.mjs";import{a as p}from"../../chunk-RHR3YOLG.mjs";import{a as o}from"../../chunk-AREQGH47.mjs";import{a as m}from"../../chunk-CTAIR3TE.mjs";import"../../chunk-YRMNCHFO.mjs";import{a as f}from"../../chunk-EOXVYLPB.mjs";import{a as g}from"../../chunk-TUI4S4GI.mjs";import{a as i}from"../../chunk-EAFH3DTH.mjs";import{a as h}from"../../chunk-QQVPLMPJ.mjs";import{a as j}from"../../chunk-6XUIHSKG.mjs";import{a as k}from"../../chunk-6WQXZ6IE.mjs";import{a as l}from"../../chunk-CO6AQNZ5.mjs";import{a as c}from"../../chunk-TR6RBROH.mjs";import{a as d}from"../../chunk-GRNYF3HM.mjs";import{a as b}from"../../chunk-RAGDUV7M.mjs";import{a as e}from"../../chunk-CTAQQFEO.mjs";import{a}from"../../chunk-BQAK2HDY.mjs";import"../../chunk-PWXCBW2H.mjs";import"../../chunk-SS6TXSY6.mjs";import"../../chunk-M25ZFLSL.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-Q67RF7VO.mjs";import"../../chunk-AZKOVKSK.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-MU5WPW4N.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-76M7JE4D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-OYZDAMCS.mjs";import"../../chunk-5NRGSTPV.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-ZFUP5NVF.mjs";import"../../chunk-4UIARERB.mjs";import"../../chunk-D4IMQTVU.mjs";import"../../chunk-7GSXNSLD.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-22LHS2J6.mjs";import"../../chunk-IC2ABKAM.mjs";import"../../chunk-FHMQVAKQ.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-7WIO2CIC.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-6C4WESLL.mjs";import"../../chunk-LAQ3QAUW.mjs";import"../../chunk-PDY7JYY3.mjs";import"../../chunk-L3BLBPSR.mjs";import"../../chunk-Q5XT55O3.mjs";import"../../chunk-WISC5QJV.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FMJBJ3HN.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as AppSidebarLeft,g as ColleagueCard,i as ColleagueForm,j as ColleagueTypeSelection,n as ColleaguesView,c as DashboardHeader,s as DashboardPage,a as DigitalColleageusLayout,k as DigitalColleagueClone,l as DigitalColleagueOptions,o as DocumentEdit,p as DocumentPreview,t as FileView,q as KnowledgeBrowser,h as KnowledgeSearch,r as KnowledgeView,d as MainPage,e as ManagementSidebar,u as PlanningView,v as ProjectView,w as ProjectsIndexView,f as SearchableSelect,m as TeamForm,x as TeamsIndexView};
1
+ import{a as s}from"../../chunk-X5RHYJW3.mjs";import{a as n}from"../../chunk-QXNCGSQE.mjs";import"../../chunk-ENRNRNPQ.mjs";import{a as r}from"../../chunk-WWTVAR4J.mjs";import{a as x}from"../../chunk-YUW3HHAK.mjs";import"../../chunk-E43QS242.mjs";import{a as v}from"../../chunk-5WH7SFOR.mjs";import"../../chunk-LCIKBYDR.mjs";import{a as t}from"../../chunk-HLWGNTZD.mjs";import"../../chunk-AQIMDHFI.mjs";import"../../chunk-MZKVGPNQ.mjs";import"../../chunk-KZTONTWM.mjs";import"../../chunk-4RQ27GTD.mjs";import"../../chunk-CXK2IY4V.mjs";import"../../chunk-GZQ7JEUL.mjs";import{a as u}from"../../chunk-56AGUZR5.mjs";import{a as w}from"../../chunk-5T4OPJ7F.mjs";import"../../chunk-5N2D3BGH.mjs";import"../../chunk-EPDV35LO.mjs";import"../../chunk-QUDKEIE6.mjs";import"../../chunk-KUVPOOSW.mjs";import"../../chunk-GFLX67DN.mjs";import"../../chunk-ZKLSTUIP.mjs";import"../../chunk-NM6U4PLY.mjs";import"../../chunk-RARAKOXE.mjs";import"../../chunk-BM2ZNFM6.mjs";import{a as q}from"../../chunk-UBCJPXKD.mjs";import{a as p}from"../../chunk-E7SIU5SS.mjs";import{a as o}from"../../chunk-YVNVQONM.mjs";import{a as m}from"../../chunk-TAVSBP7M.mjs";import"../../chunk-EFIJNPMM.mjs";import{a as f}from"../../chunk-3KBY7FKD.mjs";import{a as g}from"../../chunk-RPUSKO6J.mjs";import{a as i}from"../../chunk-6PBOA7BL.mjs";import{a as h}from"../../chunk-JTFMN7OL.mjs";import{a as j}from"../../chunk-TYMRNSJ3.mjs";import{a as k}from"../../chunk-QAIS2C6W.mjs";import{a as l}from"../../chunk-3JEM6RIR.mjs";import{a as c}from"../../chunk-OF63XSJ4.mjs";import{a as d}from"../../chunk-FSV7RCTY.mjs";import{a as b}from"../../chunk-52UFJIL4.mjs";import{a as e}from"../../chunk-E3NWG6B4.mjs";import{a}from"../../chunk-E6IIUYQ7.mjs";import"../../chunk-E2MPOOEL.mjs";import"../../chunk-D42KIYIO.mjs";import"../../chunk-KCOLYVJX.mjs";import"../../chunk-TUTSJOO4.mjs";import"../../chunk-N5GHL7UZ.mjs";import"../../chunk-RD7LJPUV.mjs";import"../../chunk-GIGKJZGA.mjs";import"../../chunk-6CAO4IKW.mjs";import"../../chunk-3GLK3JM6.mjs";import"../../chunk-7EEEXU54.mjs";import"../../chunk-7QBPKUWN.mjs";import"../../chunk-E6W2YMC3.mjs";import"../../chunk-F5JHHMZQ.mjs";import"../../chunk-WLM2ZFHF.mjs";import"../../chunk-NQPBIFGO.mjs";import"../../chunk-VXZPPTQQ.mjs";import"../../chunk-RAAY7PEH.mjs";import"../../chunk-P5U27QUJ.mjs";import"../../chunk-DGJHJHFF.mjs";import"../../chunk-JVJG2LOA.mjs";import"../../chunk-LQDJWEHX.mjs";import"../../chunk-AG6IN5S7.mjs";import"../../chunk-FPWCCVDI.mjs";import"../../chunk-PMOMDGBA.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-WXTJ6DVT.mjs";import"../../chunk-T3NMKARZ.mjs";import"../../chunk-BEPKJ67R.mjs";import"../../chunk-HH4JDBUN.mjs";import"../../chunk-GJUA2KUH.mjs";import"../../chunk-BIAOADJS.mjs";import"../../chunk-7Z3TOFNL.mjs";import"../../chunk-RFNYVF6F.mjs";import"../../chunk-2JKLBLDE.mjs";import"../../chunk-7WKUKFCT.mjs";import"../../chunk-ZDPQXVTF.mjs";import"../../chunk-OU7KVCBI.mjs";import"../../chunk-2LLMXGTP.mjs";import"../../chunk-A4XWPIEI.mjs";import"../../chunk-X5KZKO2V.mjs";import"../../chunk-ESTO675Y.mjs";import"../../chunk-55EX54R7.mjs";import"../../chunk-OGN7YDFB.mjs";import"../../chunk-WJZDHRGO.mjs";import"../../chunk-PUAHE5VJ.mjs";import"../../chunk-7RKPUKFH.mjs";import"../../chunk-UY4BSKPK.mjs";import"../../chunk-532HP37G.mjs";import"../../chunk-TNCD5YIY.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-TSEOL53Y.mjs";import"../../chunk-I2BNJCJ7.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-CDH5ONCJ.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-WU3JMLSC.mjs";import"../../chunk-BZAYEKYC.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as AppSidebarLeft,g as ColleagueCard,i as ColleagueForm,j as ColleagueTypeSelection,n as ColleaguesView,c as DashboardHeader,s as DashboardPage,a as DigitalColleageusLayout,k as DigitalColleagueClone,l as DigitalColleagueOptions,o as DocumentEdit,p as DocumentPreview,t as FileView,q as KnowledgeBrowser,h as KnowledgeSearch,r as KnowledgeView,d as MainPage,e as ManagementSidebar,u as PlanningView,v as ProjectView,w as ProjectsIndexView,f as SearchableSelect,m as TeamForm,x as TeamsIndexView};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var rt=Object.create;var ae=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var at=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty;var it=(e,t)=>{for(var r in t)ae(e,r,{get:t[r],enumerable:!0})},we=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of nt(t))!st.call(e,l)&&l!==r&&ae(e,l,{get:()=>t[l],enumerable:!(o=ot(t,l))||o.enumerable});return e};var O=(e,t,r)=>(r=e!=null?rt(at(e)):{},we(t||!e||!e.__esModule?ae(r,"default",{value:e,enumerable:!0}):r,e)),lt=e=>we(ae({},"__esModule",{value:!0}),e);var Ft={};it(Ft,{KnowledgeBrowser:()=>Ot});module.exports=lt(Ft);var q=require("motion/react"),I=require("lucide-react"),Q=require("react");var Te=O(require("react"));var Me=require("clsx");var ue="-",ct=e=>{let t=mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let s=d.split(ue);return s[0]===""&&s.length!==1&&s.shift(),Ce(s,t)||dt(d)},getConflictingClassGroupIds:(d,s)=>{let h=r[d]||[];return s&&o[d]?[...h,...o[d]]:h}}},Ce=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?Ce(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let n=e.join(ue);return t.validators.find(({validator:d})=>d(n))?.classGroupId},Ne=/^\[(.+)\]$/,dt=e=>{if(Ne.test(e)){let t=Ne.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},mt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return pt(Object.entries(e.classGroups),r).forEach(([n,d])=>{me(d,o,n,t)}),o},me=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?t:Se(t,l);n.classGroupId=r;return}if(typeof l=="function"){if(ut(l)){me(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,d])=>{me(d,Se(t,n),r,o)})})},Se=(e,t)=>{let r=e;return t.split(ue).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},ut=e=>e.isThemeGetter,pt=(e,t)=>t?e.map(([r,o])=>{let l=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([d,s])=>[t+d,s])):n);return[r,l]}):e,ft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(n,d)=>{r.set(n,d),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let d=r.get(n);if(d!==void 0)return d;if((d=o.get(n))!==void 0)return l(n,d),d},set(n,d){r.has(n)?r.set(n,d):l(n,d)}}},Pe="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],n=t.length,d=s=>{let h=[],y=0,w=0,C;for(let i=0;i<s.length;i++){let g=s[i];if(y===0){if(g===l&&(o||s.slice(i,i+n)===t)){h.push(s.slice(w,i)),w=i+n;continue}if(g==="/"){C=i;continue}}g==="["?y++:g==="]"&&y--}let k=h.length===0?s:s.substring(w),m=k.startsWith(Pe),v=m?k.substring(1):k,a=C&&C>w?C-w:void 0;return{modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:a}};return r?s=>r({className:s,parseClassName:d}):d},bt=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},ht=e=>({cache:ft(e.cacheSize),parseClassName:gt(e),...ct(e)}),xt=/\s+/,vt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,n=[],d=e.trim().split(xt),s="";for(let h=d.length-1;h>=0;h-=1){let y=d[h],{modifiers:w,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:m}=r(y),v=!!m,a=o(v?k.substring(0,m):k);if(!a){if(!v){s=y+(s.length>0?" "+s:s);continue}if(a=o(k),!a){s=y+(s.length>0?" "+s:s);continue}v=!1}let i=bt(w).join(":"),g=C?i+Pe:i,x=g+a;if(n.includes(x))continue;n.push(x);let M=l(a,v);for(let z=0;z<M.length;++z){let A=M[z];n.push(g+A)}s=y+(s.length>0?" "+s:s)}return s};function yt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Re(t))&&(o&&(o+=" "),o+=r);return o}var Re=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Re(e[o]))&&(r&&(r+=" "),r+=t);return r};function wt(e,...t){let r,o,l,n=d;function d(h){let y=t.reduce((w,C)=>C(w),e());return r=ht(y),o=r.cache.get,l=r.cache.set,n=s,s(h)}function s(h){let y=o(h);if(y)return y;let w=vt(h,r);return l(h,w),w}return function(){return n(yt.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ke=/^\[(?:([a-z-]+):)?(.+)\]$/i,Nt=/^\d+\/\d+$/,St=new Set(["px","full","screen"]),Ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pt=/\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$/,Rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Ie-?((\d+)?\.?(\d+)[a-z]+|0)/,At=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Z(e)||St.has(e)||Nt.test(e),$=e=>J(e,"length",Bt),Z=e=>!!e&&!Number.isNaN(Number(e)),de=e=>J(e,"number",Z),ee=e=>!!e&&Number.isInteger(Number(e)),Dt=e=>e.endsWith("%")&&Z(e.slice(0,-1)),f=e=>ke.test(e),G=e=>Ct.test(e),Mt=new Set(["length","size","percentage"]),Tt=e=>J(e,Mt,Ae),It=e=>J(e,"position",Ae),zt=new Set(["image","url"]),Et=e=>J(e,zt,jt),Kt=e=>J(e,"",Lt),te=()=>!0,J=(e,t,r)=>{let o=ke.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Bt=e=>Pt.test(e)&&!Rt.test(e),Ae=()=>!1,Lt=e=>kt.test(e),jt=e=>At.test(e);var Vt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),l=N("borderColor"),n=N("borderRadius"),d=N("borderSpacing"),s=N("borderWidth"),h=N("contrast"),y=N("grayscale"),w=N("hueRotate"),C=N("invert"),k=N("gap"),m=N("gradientColorStops"),v=N("gradientColorStopPositions"),a=N("inset"),i=N("margin"),g=N("opacity"),x=N("padding"),M=N("saturate"),z=N("scale"),A=N("sepia"),E=N("skew"),re=N("space"),T=N("translate"),U=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",f,t],S=()=>[f,t],he=()=>["",j,$],oe=()=>["auto",Z,f],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",f],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Z,f];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[j,$],blur:["none","",G,f],brightness:L(),borderColor:[e],borderRadius:["none","","full",G,f],borderSpacing:S(),borderWidth:he(),contrast:L(),grayscale:Y(),hueRotate:L(),invert:Y(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Dt,$],inset:le(),margin:le(),opacity:L(),padding:S(),saturate:L(),scale:L(),sepia:Y(),skew:L(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...xe(),f]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ee,f]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ee,f]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,f]},f]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,f]},f]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ie:[{Ie:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[i]}],mx:[{mx:[i]}],my:[{my:[i]}],ms:[{ms:[i]}],me:[{me:[i]}],mt:[{mt:[i]}],mr:[{mr:[i]}],mb:[{mb:[i]}],ml:[{ml:[i]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",de]}],"font-family":[{font:[te]}],"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",f]}],"line-clamp":[{"line-clamp":["none",Z,de]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,$]}],"underline-offset":[{"underline-offset":["auto",j,f]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),It]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:ne()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[j,f]}],"outline-w":[{outline:[j,$]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[j,$]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Kt]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",G,f]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[M]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ee,f]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-Ie":[{"scroll-Ie":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,$,de]}],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"],Ie:["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-Ie":["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 De=wt(Vt);function P(...e){return De((0,Me.clsx)(e))}var Ie=require("react/jsx-runtime"),F=Te.forwardRef(({className:e,type:t,...r},o)=>(0,Ie.jsx)("input",{type:t,className:P("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}));F.displayName="Input";var pe=O(require("react")),D=O(require("@radix-ui/react-scroll-area"));var fe=pe.forwardRef(({className:e,children:t,...r},o)=>(0,Ie.jsxs)(D.Root,{ref:o,className:P("relative overflow-hidden",e),...r,children:[(0,Ie.jsx)(D.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ie.jsx)(ze,{}),(0,Ie.jsx)(D.Corner,{})]}));fe.displayName=D.Root.displayName;var ze=pe.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ie.jsx)(D.ScrollAreaScrollbar,{ref:o,orientation:t,className:P("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ie-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ie-[1px]",e),...r,children:(0,Ie.jsx)(D.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ze.displayName=D.ScrollAreaScrollbar.displayName;var Ee=require("@radix-ui/react-slot"),Ke=require("class-variance-authority"),Be=O(require("react")),$t=(0,Ke.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),H=Be.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},n)=>(0,Ie.jsx)(e?Ee.Slot:"button",{className:P($t({className:t,size:r,variant:o})),ref:n,...l}));H.displayName="Button";var je=O(require("react")),se=je.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)("textarea",{className:P("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));se.displayName="Textarea";var Gt=(0,$e.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ge({className:e,variant:t,...r}){return(0,Ie.jsx)("div",{className:P(Gt({variant:t}),e),...r})}var b=O(require("@radix-ui/react-select")),W=O(require("react")),He=b.Root;var We=b.Value,ge=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ie.jsxs)(b.Trigger,{className:P("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,Ie.jsx)(b.Icon,{asChild:!0,children:(0,Ie.jsx)(I.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ge.displayName=b.Trigger.displayName;var Ue=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.ScrollUpButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ie.jsx)(I.ChevronUp,{className:"h-4 w-4"})}));Ue.displayName=b.ScrollUpButton.displayName;var Oe=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.ScrollDownButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ie.jsx)(I.ChevronDown,{className:"h-4 w-4"})}));Oe.displayName=b.ScrollDownButton.displayName;var be=W.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,Ie.jsx)(b.Portal,{children:(0,Ie.jsxs)(b.Content,{className:P("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:l,...o,children:[(0,Ie.jsx)(Ue,{}),(0,Ie.jsx)(b.Viewport,{className:P("Ie-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ie.jsx)(Oe,{})]})}));be.displayName=b.Content.displayName;var _t=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.Label,{className:P("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));_t.displayName=b.Label.displayName;var ie=W.forwardRef(({children:e,className:t,...r},o)=>(0,Ie.jsxs)(b.Item,{className:P("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,Ie.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ie.jsx)(b.ItemIndicator,{children:(0,Ie.jsx)(I.Check,{className:"h-4 w-4"})})}),(0,Ie.jsx)(b.ItemText,{children:e})]}));ie.displayName=b.Item.displayName;var Ht=W.forwardRef(({className:e,...t},r)=>(0,Ie.jsx)(b.Separator,{className:P("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Ht.displayName=b.Separator.displayName;function qe({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:l=[]}){let[n,d]=(0,Q.useState)({...e,updatedAt:new Date}),s=()=>{let a=new Set,i=new Set;return l.forEach(g=>{g.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(g=>{g.metadata&&Object.keys(g.metadata).forEach(x=>i.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(i).sort(),allKeys:Array.from(new Set([...a,...i])).sort()}},h=a=>{let i=new Set;return o.forEach(g=>{g.metadata?.[a]&&i.add(String(g.metadata[a]))}),Array.from(i).sort()},y=s(),w=()=>{t(n)},C=(a,i)=>{d(g=>({...g,metadata:{...g.metadata,[a]:i}}))},k=(a,i)=>{i==="__custom__"?C(a,""):C(a,i)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},v=a=>{d(i=>{let g={...i.metadata};return delete g[a],{...i,metadata:g}})};return(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ie.jsxs)("div",{className:"border-b border-border bg-card Ie-8",children:[(0,Ie.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Ie.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ie.jsx)("div",{className:"flex-shrink-0 Ie-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Ie.jsx)(I.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Ie.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Ie.jsxs)("div",{className:"flex gap-2",children:[(0,Ie.jsxs)(H,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ie.jsx)(I.I,{className:"h-4 w-4"}),"Cancel"]}),(0,Ie.jsxs)(H,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ie.jsx)(I.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ie.jsxs)("div",{className:"space-y-4",children:[(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Ie.jsx)(F,{value:n.title,onChange:a=>d(i=>({...i,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Ie.jsx)(se,{value:n.description||"",onChange:a=>d(i=>({...i,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ie.jsxs)("div",{children:[(0,Ie.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ie.jsxs)("div",{children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),y.contextKeys.length>0&&(0,Ie.jsxs)("Ie",{className:"text-xs text-muted-foreground",children:["Suggested: ",y.contextKeys.slice(0,4).join(", "),y.contextKeys.length>4&&` +${y.contextKeys.length-4}`]})]}),(0,Ie.jsxs)(H,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ie.jsx)(I.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ie.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,i])=>{let g=h(a);return(0,Ie.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ie.jsx)(F,{value:a,onChange:x=>{let M=x.target.value,z=n.metadata?.[a];d(A=>{let E={...A.metadata};return delete E[a],M&&(E[M]=z||""),{...A,metadata:E}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ie.jsx)("datalist",{id:`metadata-keys-${a}`,children:y.allKeys.map(x=>(0,Ie.jsx)("option",{value:x},x))}),(0,Ie.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),g.length>0?(0,Ie.jsxs)(He,{value:String(i||""),onValueChange:x=>k(a,x),children:[(0,Ie.jsx)(ge,{className:"flex-1 h-8 text-sm",children:(0,Ie.jsx)(We,{placeholder:"Value"})}),(0,Ie.jsxs)(be,{children:[g.map(x=>(0,Ie.jsx)(ie,{value:x,children:x},x)),(0,Ie.jsx)(ie,{value:"__custom__",children:(0,Ie.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ie.jsx)(F,{value:String(i||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ie.jsx)(H,{type:"button",variant:"ghost",size:"sm",onClick:()=>v(a),className:"h-8 w-8 Ie-0 text-muted-foreground hover:text-destructive",children:(0,Ie.jsx)(I.I,{className:"h-3 w-3"})})]},a)})}):(0,Ie.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ie.jsx)("Ie",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,Ie.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ie.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Ie.jsx)(Ge,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,Ie.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ie.jsxs)("div",{className:"Ie-8",children:[(0,Ie.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ie.jsx)(se,{value:n.content||"",onChange:a=>d(i=>({...i,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Ye=e=>(0,Ie.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),Qe=e=>(0,Ie.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Wt=e=>(0,Ie.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ie.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ie-4 mb-4",children:(0,Ie.jsxs)("Ie",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ie.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ie.jsx)("pre",{className:"text-sm",children:e})]}),Ut=e=>(0,Ie.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ie.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ie-4 mb-4",children:(0,Ie.jsxs)("Ie",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ie.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Ye(e)]});function et({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:l=[],knowledgeContexts:n=[]}){let[d,s]=(0,Q.useState)(!1),h=m=>{switch(m){case"markdown":case"mdx":return(0,Ie.jsx)(I.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ie.jsx)(I.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ie.jsx)(I.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ie.jsx)(I.File,{className:"h-6 w-6 text-muted-foreground"})}},y=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,v)=>{let a={markdown:Ye,mdx:Ut,richtext:Wt,text:Qe},i=o?.[v]||a[v];return i?i(m):Qe(m)},C=m=>{s(!1),t?.(m)},k=()=>{s(!1)};return d?(0,Ie.jsx)(qe,{document:e,onSave:C,onCancel:k,availableDocuments:l,knowledgeContexts:n}):(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ie.jsxs)("div",{className:"border-b border-border bg-card Ie-8",children:[(0,Ie.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ie.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ie.jsx)("div",{className:"flex-shrink-0 Ie-3 rounded-xl bg-muted border border-border",children:h(e.format)}),(0,Ie.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ie.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Ie.jsx)("Ie",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Ie.jsx)("div",{className:"flex-shrink-0",children:(0,Ie.jsxs)(H,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,Ie.jsx)(I.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Ie.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Ie.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${y(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Ie.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,Ie.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ie.jsxs)("div",{className:"Ie-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ie.jsxs)("div",{className:"mb-6",children:[(0,Ie.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Ie.jsx)("div",{className:"bg-muted rounded-lg Ie-3 border border-border",children:(0,Ie.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,v])=>(0,Ie.jsxs)("div",{className:"flex gap-1",children:[(0,Ie.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-Z])/g," $1").trim(),":"]}),(0,Ie.jsx)("span",{className:"text-foreground truncate",children:String(v)})]},m))})})]}),(0,Ie.jsx)("div",{className:"space-y-4",children:e.content?(0,Ie.jsx)("div",{className:"relative",children:(0,Ie.jsx)("div",{className:"bg-card border border-border rounded-xl Ie-6 overflow-hidden",children:w(e.content,e.format)})}):(0,Ie.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ie.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ie.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ie.jsx)("Ie",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function tt({label:e,documents:t,children:r,level:o,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d=!0}){let[s,h]=(0,Q.useState)(o===0),y=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,v)=>m+v.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ie.jsx)(I.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ie.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ie.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},k=m=>{let v=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return v[m%v.length]};return(0,Ie.jsxs)("div",{className:"space-y-1",children:[(y||t.length>0)&&(0,Ie.jsxs)(q.motion.div,{className:`group flex items-center gap-3 Ie-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>h(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ie.jsx)("div",{className:`w-1 h-6 rounded-full ${k(o)}`}),(0,Ie.jsx)(q.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ie.jsx)(I.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ie.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ie.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ie.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),d&&w>0&&(0,Ie.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ie.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:w})})]})]}),(0,Ie.jsx)(q.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ie.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,v)=>(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:v*.05,duration:.2},className:`group flex items-center gap-3 Ie-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>l?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ie.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ie.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ie.jsx)("Ie",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Ie.jsx)("Ie",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ie.jsx)("div",{className:"flex-shrink-0",children:(0,Ie.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,v])=>(0,Ie.jsx)(tt,{label:m,documents:v.documents,children:v.children,level:o+1,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d},m))]})})]})}function Ot({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:l,selectedDocumentId:n,className:d,editable:s=!0}){let[h,y]=(0,Q.useState)(""),[w,C]=(0,Q.useState)(null),k=(0,Q.useMemo)(()=>h?e.filter(a=>a.title.toLowerCase().includes(h.toLowerCase())||a.description?.toLowerCase().includes(h.toLowerCase())||a.tags?.some(i=>i.toLowerCase().includes(h.toLowerCase()))||Object.values(a.metadata||{}).some(i=>String(i).toLowerCase().includes(h.toLowerCase()))):e,[e,h]),m=(0,Q.useMemo)(()=>{let a=(i,g)=>{if(g.length===0)return{};let[x,...M]=g;return i.reduce((A,E)=>{let re=E.metadata?.[x]||"Uncategorized",T=String(re);if(A[T]||(A[T]={documents:[],children:{}}),M.length===0)A[T].documents.push(E);else{let U=a([E],M),K=Object.keys(U)[0];K&&(A[T].children||(A[T].children={}),A[T].children[K]?A[T].children[K].documents.push(...U[K].documents):A[T].children[K]=U[K])}return A},{})};return a(k,t.groupBy)},[k,t.groupBy]),v=a=>{C(a),r?.(a)};return(0,Ie.jsxs)("div",{className:`flex h-full ${d||""}`,children:[(0,Ie.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ie.jsx)("div",{className:"Ie-6 border-b border-border",children:(0,Ie.jsxs)("div",{className:"relative",children:[(0,Ie.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ie.jsx)(I.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ie.jsx)(F,{placeholder:"Search knowledge base...",value:h,onChange:a=>y(a.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ie.jsx)(fe,{className:"h-[calc(100%-100px)]",children:(0,Ie.jsxs)("div",{className:"Ie-4 space-y-3",children:[Object.entries(m).map(([a,i])=>(0,Ie.jsx)(tt,{label:a,documents:i.documents,children:i.children,level:0,onDocumentClick:v,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ie.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ie.jsx)("Ie",{className:"text-sm font-medium",children:"No documents found"}),(0,Ie.jsx)("Ie",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ie.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ie.jsx)(et,{document:w,onDocumentUpdate:l,editable:s}):(0,Ie.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ie.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ie.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ie.jsx)(I.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ie.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ie.jsx)("Ie",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
5
+ "use strict";"use client";var et=Object.create;var ae=Object.defineProperty;var tt=Object.getOwnPropertyDescriptor;var rt=Object.getOwnPropertyNames;var ot=Object.getPrototypeOf,nt=Object.prototype.hasOwnProperty;var at=(e,t)=>{for(var r in t)ae(e,r,{get:t[r],enumerable:!0})},ye=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of rt(t))!nt.call(e,l)&&l!==r&&ae(e,l,{get:()=>t[l],enumerable:!(o=tt(t,l))||o.enumerable});return e};var U=(e,t,r)=>(r=e!=null?et(ot(e)):{},ye(t||!e||!e.__esModule?ae(r,"default",{value:e,enumerable:!0}):r,e)),st=e=>ye(ae({},"__esModule",{value:!0}),e);var Wt={};at(Wt,{KnowledgeBrowser:()=>Ht});module.exports=st(Wt);var q=require("motion/react"),I=require("lucide-react"),Q=require("react");var Te=U(require("react"));var Ae=require("clsx");var it=e=>{let t=ct(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{let s=d.split("-");return s[0]===""&&s.length!==1&&s.shift(),Se(s,t)||lt(d)},getConflictingClassGroupIds:(d,s)=>{let h=r[d]||[];return s&&o[d]?[...h,...o[d]]:h}}},Se=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),l=o?Se(e.slice(1),o):void 0;if(l)return l;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:d})=>d(n))?.classGroupId},we=/^\[(.+)\]$/,lt=e=>{if(we.test(e)){let t=we.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ct=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return mt(Object.entries(e.classGroups),r).forEach(([n,d])=>{me(d,o,n,t)}),o},me=(e,t,r,o)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?t:Ne(t,l);n.classGroupId=r;return}if(typeof l=="function"){if(dt(l)){me(l(o),t,r,o);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([n,d])=>{me(d,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},dt=e=>e.isThemeGetter,mt=(e,t)=>t?e.map(([r,o])=>{let l=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([d,s])=>[t+d,s])):n);return[r,l]}):e,ut=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,l=(n,d)=>{r.set(n,d),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let d=r.get(n);if(d!==void 0)return d;if((d=o.get(n))!==void 0)return l(n,d),d},set(n,d){r.has(n)?r.set(n,d):l(n,d)}}};var pt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,l=t[0],n=t.length,d=s=>{let h=[],y=0,w=0,C;for(let i=0;i<s.length;i++){let g=s[i];if(y===0){if(g===l&&(o||s.slice(i,i+n)===t)){h.push(s.slice(w,i)),w=i+n;continue}if(g==="/"){C=i;continue}}g==="["?y++:g==="]"&&y--}let k=h.length===0?s:s.substring(w),m=k.startsWith("!"),v=m?k.substring(1):k,a=C&&C>w?C-w:void 0;return{modifiers:h,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:a}};return r?s=>r({className:s,parseClassName:d}):d},ft=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},gt=e=>({cache:ut(e.cacheSize),parseClassName:pt(e),...it(e)}),bt=/\s+/,ht=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:l}=t,n=[],d=e.trim().split(bt),s="";for(let h=d.length-1;h>=0;h-=1){let y=d[h],{modifiers:w,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:m}=r(y),v=!!m,a=o(v?k.substring(0,m):k);if(!a){if(!v){s=y+(s.length>0?" "+s:s);continue}if(a=o(k),!a){s=y+(s.length>0?" "+s:s);continue}v=!1}let i=ft(w).join(":"),g=C?i+"!":i,x=g+a;if(n.includes(x))continue;n.push(x);let D=l(a,v);for(let z=0;z<D.length;++z){let A=D[z];n.push(g+A)}s=y+(s.length>0?" "+s:s)}return s};function xt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ce(t))&&(o&&(o+=" "),o+=r);return o}var Ce=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ce(e[o]))&&(r&&(r+=" "),r+=t);return r};function vt(e,...t){let r,o,l,n=d;function d(h){let y=t.reduce((w,C)=>C(w),e());return r=gt(y),o=r.cache.get,l=r.cache.set,n=s,s(h)}function s(h){let y=o(h);if(y)return y;let w=ht(h,r);return l(h,w),w}return function(){return n(xt.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Re=/^\[(?:([a-z-]+):)?(.+)\]$/i,yt=/^\d+\/\d+$/,wt=new Set(["px","full","screen"]),Nt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,St=/\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$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Z(e)||wt.has(e)||yt.test(e),_=e=>J(e,"length",Et),Z=e=>!!e&&!Number.isNaN(Number(e)),de=e=>J(e,"number",Z),ee=e=>!!e&&Number.isInteger(Number(e)),kt=e=>e.endsWith("%")&&Z(e.slice(0,-1)),f=e=>Re.test(e),$=e=>Nt.test(e),At=new Set(["length","size","percentage"]),Tt=e=>J(e,At,Pe),Dt=e=>J(e,"position",Pe),Mt=new Set(["image","url"]),It=e=>J(e,Mt,Bt),zt=e=>J(e,"",Kt),te=()=>!0,J=(e,t,r)=>{let o=Re.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Et=e=>St.test(e)&&!Ct.test(e),Pe=()=>!1,Kt=e=>Rt.test(e),Bt=e=>Pt.test(e);var Lt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),l=N("borderColor"),n=N("borderRadius"),d=N("borderSpacing"),s=N("borderWidth"),h=N("contrast"),y=N("grayscale"),w=N("hueRotate"),C=N("invert"),k=N("gap"),m=N("gradientColorStops"),v=N("gradientColorStopPositions"),a=N("inset"),i=N("margin"),g=N("opacity"),x=N("padding"),D=N("saturate"),z=N("scale"),A=N("sepia"),E=N("skew"),re=N("space"),M=N("translate"),W=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",f,t],S=()=>[f,t],be=()=>["",j,_],oe=()=>["auto",Z,f],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",f],ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Z,f];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[j,_],blur:["none","",$,f],brightness:L(),borderColor:[e],borderRadius:["none","","full",$,f],borderSpacing:S(),borderWidth:be(),contrast:L(),grayscale:Y(),hueRotate:L(),invert:Y(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[kt,_],inset:le(),margin:le(),opacity:L(),padding:S(),saturate:L(),scale:L(),sepia:Y(),skew:L(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[$]}],"break-after":[{"break-after":ve()}],"break-before":[{"break-before":ve()}],"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:[...he(),f]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ee,f]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",ee,f]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,f]},f]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,f]},f]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ce()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ce(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ce(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],De:[{De:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[i]}],mx:[{mx:[i]}],my:[{my:[i]}],ms:[{ms:[i]}],me:[{me:[i]}],mt:[{mt:[i]}],mr:[{mr:[i]}],mb:[{mb:[i]}],ml:[{ml:[i]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[$]},$]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",$,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",de]}],"font-family":[{font:[te]}],"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",f]}],"line-clamp":[{"line-clamp":["none",Z,de]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,_]}],"underline-offset":[{"underline-offset":["auto",j,f]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),Dt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Tt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},It]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:ne()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[j,f]}],"outline-w":[{outline:[j,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[j,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",$,zt]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",$,f]}],grayscale:[{grayscale:[y]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[D]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[D]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ee,f]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-De":[{"scroll-De":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,_,de]}],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"],De:["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-De":["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 ke=vt(Lt);function R(...e){return ke((0,Ae.clsx)(e))}var De=require("react/jsx-runtime"),F=Te.forwardRef(({className:e,type:t,...r},o)=>(0,De.jsx)("input",{type:t,className:R("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}));F.displayName="Input";var ue=U(require("react")),T=U(require("@radix-ui/react-scroll-area"));var pe=ue.forwardRef(({className:e,children:t,...r},o)=>(0,De.jsxs)(T.Root,{ref:o,className:R("relative overflow-hidden",e),...r,children:[(0,De.jsx)(T.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,De.jsx)(Me,{}),(0,De.jsx)(T.Corner,{})]}));pe.displayName=T.Root.displayName;var Me=ue.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,De.jsx)(T.ScrollAreaScrollbar,{ref:o,orientation:t,className:R("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent De-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent De-[1px]",e),...r,children:(0,De.jsx)(T.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Me.displayName=T.ScrollAreaScrollbar.displayName;var Ie=require("@radix-ui/react-slot"),ze=require("class-variance-authority"),Ee=U(require("react")),jt=(0,ze.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"}}}),O=Ee.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...l},n)=>(0,De.jsx)(e?Ie.Slot:"button",{className:R(jt({className:t,size:r,variant:o})),ref:n,...l}));O.displayName="Button";var Be=U(require("react")),se=Be.forwardRef(({className:e,...t},r)=>(0,De.jsx)("textarea",{className:R("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));se.displayName="Textarea";var Vt=(0,ze.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ve({className:e,variant:t,...r}){return(0,De.jsx)("div",{className:R(Vt({variant:t}),e),...r})}var b=U(require("@radix-ui/react-select")),H=U(require("react")),$e=b.Root;var Ge=b.Value,fe=H.forwardRef(({children:e,className:t,...r},o)=>(0,De.jsxs)(b.Trigger,{className:R("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,De.jsx)(b.Icon,{asChild:!0,children:(0,De.jsx)(I.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));fe.displayName=b.Trigger.displayName;var Oe=H.forwardRef(({className:e,...t},r)=>(0,De.jsx)(b.ScrollUpButton,{className:R("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,De.jsx)(I.ChevronUp,{className:"h-4 w-4"})}));Oe.displayName=b.ScrollUpButton.displayName;var He=H.forwardRef(({className:e,...t},r)=>(0,De.jsx)(b.ScrollDownButton,{className:R("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,De.jsx)(I.ChevronDown,{className:"h-4 w-4"})}));He.displayName=b.ScrollDownButton.displayName;var ge=H.forwardRef(({children:e,className:t,position:r="popper",...o},l)=>(0,De.jsx)(b.Portal,{children:(0,De.jsxs)(b.Content,{className:R("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:l,...o,children:[(0,De.jsx)(Oe,{}),(0,De.jsx)(b.Viewport,{className:R("De-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,De.jsx)(He,{})]})}));ge.displayName=b.Content.displayName;var _t=H.forwardRef(({className:e,...t},r)=>(0,De.jsx)(b.Label,{className:R("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));_t.displayName=b.Label.displayName;var ie=H.forwardRef(({children:e,className:t,...r},o)=>(0,De.jsxs)(b.Item,{className:R("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,De.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(b.ItemIndicator,{children:(0,De.jsx)(I.Check,{className:"h-4 w-4"})})}),(0,De.jsx)(b.ItemText,{children:e})]}));ie.displayName=b.Item.displayName;var $t=H.forwardRef(({className:e,...t},r)=>(0,De.jsx)(b.Separator,{className:R("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));$t.displayName=b.Separator.displayName;function Fe({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:l=[]}){let[n,d]=(0,Q.useState)({...e,updatedAt:new Date}),s=()=>{let a=new Set,i=new Set;return l.forEach(g=>{g.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(g=>{g.metadata&&Object.keys(g.metadata).forEach(x=>i.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(i).sort(),allKeys:Array.from(new Set([...a,...i])).sort()}},h=a=>{let i=new Set;return o.forEach(g=>{g.metadata?.[a]&&i.add(String(g.metadata[a]))}),Array.from(i).sort()},y=s(),w=()=>{t(n)},C=(a,i)=>{d(g=>({...g,metadata:{...g.metadata,[a]:i}}))},k=(a,i)=>{i==="__custom__"?C(a,""):C(a,i)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},v=a=>{d(i=>{let g={...i.metadata};return delete g[a],{...i,metadata:g}})};return(0,De.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,De.jsxs)("div",{className:"border-b border-border bg-card De-8",children:[(0,De.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,De.jsxs)("div",{className:"flex items-center gap-3",children:[(0,De.jsx)("div",{className:"flex-shrink-0 De-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,De.jsx)(I.Edit3,{className:"h-6 w-6 text-primary"})}),(0,De.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,De.jsxs)("div",{className:"flex gap-2",children:[(0,De.jsxs)(O,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,De.jsx)(I.I,{className:"h-4 w-4"}),"Cancel"]}),(0,De.jsxs)(O,{size:"sm",onClick:w,className:"gap-2",children:[(0,De.jsx)(I.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,De.jsxs)("div",{className:"space-y-4",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,De.jsx)(F,{value:n.title,onChange:a=>d(i=>({...i,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,De.jsxs)("div",{children:[(0,De.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,De.jsx)(se,{value:n.description||"",onChange:a=>d(i=>({...i,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,De.jsxs)("div",{children:[(0,De.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),y.contextKeys.length>0&&(0,De.jsxs)("De",{className:"text-xs text-muted-foreground",children:["Suggested: ",y.contextKeys.slice(0,4).join(", "),y.contextKeys.length>4&&` +${y.contextKeys.length-4}`]})]}),(0,De.jsxs)(O,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,De.jsx)(I.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,De.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,i])=>{let g=h(a);return(0,De.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,De.jsx)(F,{value:a,onChange:x=>{let D=x.target.value,z=n.metadata?.[a];d(A=>{let E={...A.metadata};return delete E[a],D&&(E[D]=z||""),{...A,metadata:E}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,De.jsx)("datalist",{id:`metadata-keys-${a}`,children:y.allKeys.map(x=>(0,De.jsx)("option",{value:x},x))}),(0,De.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),g.length>0?(0,De.jsxs)($e,{value:String(i||""),onValueChange:x=>k(a,x),children:[(0,De.jsx)(fe,{className:"flex-1 h-8 text-sm",children:(0,De.jsx)(Ge,{placeholder:"Value"})}),(0,De.jsxs)(ge,{children:[g.map(x=>(0,De.jsx)(ie,{value:x,children:x},x)),(0,De.jsx)(ie,{value:"__custom__",children:(0,De.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,De.jsx)(F,{value:String(i||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,De.jsx)(O,{type:"button",variant:"ghost",size:"sm",onClick:()=>v(a),className:"h-8 w-8 De-0 text-muted-foreground hover:text-destructive",children:(0,De.jsx)(I.I,{className:"h-3 w-3"})})]},a)})}):(0,De.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,De.jsx)("De",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,De.jsx)(Ve,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),(0,De.jsx)("div",{className:"flex-1 overflow-auto",children:(0,De.jsxs)("div",{className:"De-8",children:[(0,De.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,De.jsx)(se,{value:n.content||"",onChange:a=>d(i=>({...i,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Ze=e=>(0,De.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),Xe=e=>(0,De.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Gt=e=>(0,De.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,De.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg De-4 mb-4",children:(0,De.jsxs)("De",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,De.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,De.jsx)("pre",{className:"text-sm",children:e})]}),Ot=e=>(0,De.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,De.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg De-4 mb-4",children:(0,De.jsxs)("De",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,De.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),Ze(e)]});function Je({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:l=[],knowledgeContexts:n=[]}){let[d,s]=(0,Q.useState)(!1),h=m=>{switch(m){case"markdown":case"mdx":return(0,De.jsx)(I.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,De.jsx)(I.File,{className:"h-6 w-6 text-success"});case"text":return(0,De.jsx)(I.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,De.jsx)(I.File,{className:"h-6 w-6 text-muted-foreground"})}},y=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,v)=>{let a={markdown:Ze,mdx:Ot,richtext:Gt,text:Xe},i=o?.[v]||a[v];return i?i(m):Xe(m)},C=m=>{s(!1),t?.(m)},k=()=>{s(!1)};return d?(0,De.jsx)(Fe,{document:e,onSave:C,onCancel:k,availableDocuments:l,knowledgeContexts:n}):(0,De.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,De.jsxs)("div",{className:"border-b border-border bg-card De-8",children:[(0,De.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,De.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,De.jsx)("div",{className:"flex-shrink-0 De-3 rounded-xl bg-muted border border-border",children:h(e.format)}),(0,De.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,De.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,De.jsx)("De",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,De.jsx)("div",{className:"flex-shrink-0",children:(0,De.jsxs)(O,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,De.jsx)(I.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,De.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,De.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${y(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,De.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,De.jsx)("div",{className:"flex-1 overflow-auto",children:(0,De.jsxs)("div",{className:"De-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,De.jsxs)("div",{className:"mb-6",children:[(0,De.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,De.jsx)("div",{className:"bg-muted rounded-lg De-3 border border-border",children:(0,De.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,v])=>(0,De.jsxs)("div",{className:"flex gap-1",children:[(0,De.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-Z])/g," $1").trim(),":"]}),(0,De.jsx)("span",{className:"text-foreground truncate",children:String(v)})]},m))})})]}),(0,De.jsx)("div",{className:"space-y-4",children:e.content?(0,De.jsx)("div",{className:"relative",children:(0,De.jsx)("div",{className:"bg-card border border-border rounded-xl De-6 overflow-hidden",children:w(e.content,e.format)})}):(0,De.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,De.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,De.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,De.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,De.jsx)("De",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Ye({label:e,documents:t,children:r,level:o,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d=!0}){let[s,h]=(0,Q.useState)(o===0),y=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,v)=>m+v.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,De.jsx)(I.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,De.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,De.jsx)(I.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},k=m=>{let v=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return v[m%v.length]};return(0,De.jsxs)("div",{className:"space-y-1",children:[(y||t.length>0)&&(0,De.jsxs)(q.motion.div,{className:`group flex items-center gap-3 De-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>h(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,De.jsx)("div",{className:`w-1 h-6 rounded-full ${k(o)}`}),(0,De.jsx)(q.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,De.jsx)(I.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,De.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,De.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,De.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),d&&w>0&&(0,De.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,De.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:w})})]})]}),(0,De.jsx)(q.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,De.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,v)=>(0,De.jsxs)(q.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:v*.05,duration:.2},className:`group flex items-center gap-3 De-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>l?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,De.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,De.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,De.jsx)("De",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,De.jsx)("De",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,De.jsx)("div",{className:"flex-shrink-0",children:(0,De.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,v])=>(0,De.jsx)(Ye,{label:m,documents:v.documents,children:v.children,level:o+1,onDocumentClick:l,selectedDocumentId:n,showDocumentCount:d},m))]})})]})}function Ht({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:l,selectedDocumentId:n,className:d,editable:s=!0}){let[h,y]=(0,Q.useState)(""),[w,C]=(0,Q.useState)(null),k=(0,Q.useMemo)(()=>h?e.filter(a=>a.title.toLowerCase().includes(h.toLowerCase())||a.description?.toLowerCase().includes(h.toLowerCase())||a.tags?.some(i=>i.toLowerCase().includes(h.toLowerCase()))||Object.values(a.metadata||{}).some(i=>String(i).toLowerCase().includes(h.toLowerCase()))):e,[e,h]),m=(0,Q.useMemo)(()=>{let a=(i,g)=>{if(g.length===0)return{};let[x,...D]=g;return i.reduce((A,E)=>{let re=E.metadata?.[x]||"Uncategorized",M=String(re);if(A[M]||(A[M]={documents:[],children:{}}),D.length===0)A[M].documents.push(E);else{let W=a([E],D),K=Object.keys(W)[0];K&&(A[M].children||(A[M].children={}),A[M].children[K]?A[M].children[K].documents.push(...W[K].documents):A[M].children[K]=W[K])}return A},{})};return a(k,t.groupBy)},[k,t.groupBy]),v=a=>{C(a),r?.(a)};return(0,De.jsxs)("div",{className:`flex h-full ${d||""}`,children:[(0,De.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,De.jsx)("div",{className:"De-6 border-b border-border",children:(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,De.jsx)(I.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,De.jsx)(F,{placeholder:"Search knowledge base...",value:h,onChange:a=>y(a.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,De.jsx)(pe,{className:"h-[calc(100%-100px)]",children:(0,De.jsxs)("div",{className:"De-4 space-y-3",children:[Object.entries(m).map(([a,i])=>(0,De.jsx)(Ye,{label:a,documents:i.documents,children:i.children,level:0,onDocumentClick:v,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,De.jsxs)(q.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,De.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,De.jsx)(I.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,De.jsx)("De",{className:"text-sm font-medium",children:"No documents found"}),(0,De.jsx)("De",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,De.jsx)("div",{className:"flex-1 bg-background",children:w?(0,De.jsx)(Je,{document:w,onDocumentUpdate:l,editable:s}):(0,De.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,De.jsxs)(q.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,De.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,De.jsx)(I.FileText,{className:"h-10 w-10 text-primary"})}),(0,De.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,De.jsx)("De",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}0&&(module.exports={KnowledgeBrowser});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-ZXPDSSCF.mjs";import"../../chunk-RHR3YOLG.mjs";import"../../chunk-AREQGH47.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeBrowser};
2
+ "use strict";import{a}from"../../chunk-UBCJPXKD.mjs";import"../../chunk-E7SIU5SS.mjs";import"../../chunk-YVNVQONM.mjs";import"../../chunk-WLM2ZFHF.mjs";import"../../chunk-VXZPPTQQ.mjs";import"../../chunk-JVJG2LOA.mjs";import"../../chunk-GJUA2KUH.mjs";import"../../chunk-7Z3TOFNL.mjs";import"../../chunk-2JKLBLDE.mjs";import"../../chunk-TSEOL53Y.mjs";import"../../chunk-I2BNJCJ7.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-CDH5ONCJ.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeBrowser};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  'use client'
4
4
 
5
- "use strict";"use client";var Ve=Object.create;var U=Object.defineProperty;var Be=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty;var Ke=(e,t)=>{for(var r in t)U(e,r,{get:t[r],enumerable:!0})},be=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of We(t))!De.call(e,i)&&i!==r&&U(e,i,{get:()=>t[i],enumerable:!(o=Be(t,i))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?Ve(_e(e)):{},be(t||!e||!e.__esModule?U(r,"default",{value:e,enumerable:!0}):r,e)),je=e=>be(U({},"__esModule",{value:!0}),e);var Mt={};Ke(Mt,{KnowledgeSearch:()=>At});module.exports=je(Mt);var B=require("react"),M=require("lucide-react");var ke=require("class-variance-authority");var Ne=require("clsx");var re="-",Fe=e=>{let t=Ue(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(re);return s[0]===""&&s.length!==1&&s.shift(),ve(s,t)||$e(l)},getConflictingClassGroupIds:(l,s)=>{let f=r[l]||[];return s&&o[l]?[...f,...o[l]]:f}}},ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),i=o?ve(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join(re);return t.validators.find(({validator:l})=>l(n))?.classGroupId},ge=/^\[(.+)\]$/,$e=e=>{if(ge.test(e)){let t=ge.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ue=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return qe(Object.entries(e.classGroups),r).forEach(([n,l])=>{te(l,o,n,t)}),o},te=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:he(t,i);n.classGroupId=r;return}if(typeof i=="function"){if(Oe(i)){te(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([n,l])=>{te(l,he(t,n),r,o)})})},he=(e,t)=>{let r=e;return t.split(re).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Oe=e=>e.isThemeGetter,qe=(e,t)=>t?e.map(([r,o])=>{let i=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,i]}):e,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,i=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return i(n,l),l},set(n,l){r.has(n)?r.set(n,l):i(n,l)}}},xe="!",Je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,i=t[0],n=t.length,l=s=>{let f=[],b=0,v=0,y;for(let a=0;a<s.length;a++){let p=s[a];if(b===0){if(p===i&&(o||s.slice(a,a+n)===t)){f.push(s.slice(v,a)),v=a+n;continue}if(p==="/"){y=a;continue}}p==="["?b++:p==="]"&&b--}let x=f.length===0?s:s.substring(v),k=x.startsWith(xe),R=k?x.substring(1):x,g=y&&y>v?y-v:void 0;return{modifiers:f,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:l}):l},Ze=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},Qe=e=>({cache:Xe(e.cacheSize),parseClassName:Je(e),...Fe(e)}),Ye=/\s+/,et=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i}=t,n=[],l=e.trim().split(Ye),s="";for(let f=l.length-1;f>=0;f-=1){let b=l[f],{modifiers:v,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:k}=r(b),R=!!k,g=o(R?x.substring(0,k):x);if(!g){if(!R){s=b+(s.length>0?" "+s:s);continue}if(g=o(x),!g){s=b+(s.length>0?" "+s:s);continue}R=!1}let a=Ze(v).join(":"),p=y?a+xe:a,w=p+g;if(n.includes(w))continue;n.push(w);let S=i(g,R);for(let C=0;C<S.length;++C){let j=S[C];n.push(p+j)}s=b+(s.length>0?" "+s:s)}return s};function tt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ye(t))&&(o&&(o+=" "),o+=r);return o}var ye=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ye(e[o]))&&(r&&(r+=" "),r+=t);return r};function rt(e,...t){let r,o,i,n=l;function l(f){let b=t.reduce((v,y)=>y(v),e());return r=Qe(b),o=r.cache.get,i=r.cache.set,n=s,s(f)}function s(f){let b=o(f);if(b)return b;let v=et(f,r);return i(f,v),v}return function(){return n(tt.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},we=/^\[(?:([a-z-]+):)?(.+)\]$/i,ot=/^\Se+\/\Se+$/,nt=new Set(["px","full","screen"]),st=/^(\Se+(\.\Se+)?)?(xs|sm|md|lg|xl)$/,at=/\Se+(%|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$/,it=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lt=/^(inset_)?-?((\Se+)?\.?(\Se+)[a-z]+|0)_-?((\Se+)?\.?(\Se+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>G(e)||nt.has(e)||ot.test(e),z=e=>V(e,"length",ht),G=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>V(e,"number",G),_=e=>!!e&&Number.isInteger(Number(e)),dt=e=>e.endsWith("%")&&G(e.slice(0,-1)),c=e=>we.test(e),L=e=>st.test(e),pt=new Set(["length","size","percentage"]),ut=e=>V(e,pt,Ce),mt=e=>V(e,"position",Ce),ft=new Set(["image","url"]),bt=e=>V(e,ft,xt),gt=e=>V(e,"",vt),D=()=>!0,V=(e,t,r)=>{let o=we.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ht=e=>at.test(e)&&!it.test(e),Ce=()=>!1,vt=e=>lt.test(e),xt=e=>ct.test(e);var yt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),i=u("borderColor"),n=u("borderRadius"),l=u("borderSpacing"),s=u("borderWidth"),f=u("contrast"),b=u("grayscale"),v=u("hueRotate"),y=u("invert"),x=u("gap"),k=u("gradientColorStops"),R=u("gradientColorStopPositions"),g=u("inset"),a=u("margin"),p=u("opacity"),w=u("padding"),S=u("saturate"),C=u("scale"),j=u("sepia"),le=u("skew"),ce=u("space"),de=u("translate"),J=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",c,t],m=()=>[c,t],pe=()=>["",A,z],F=()=>["auto",G,c],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",c],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[G,c];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[A,z],blur:["none","",L,c],brightness:P(),borderColor:[e],borderRadius:["none","","full",L,c],borderSpacing:m(),borderWidth:pe(),contrast:P(),grayscale:W(),hueRotate:P(),invert:W(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[dt,z],inset:Q(),margin:Q(),opacity:P(),padding:m(),saturate:P(),scale:P(),sepia:W(),skew:P(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...ue(),c]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,c]}],basis:[{basis:Q()}],"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:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",_,c]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",_,c]},c]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[_,c]},c]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"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:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[a]}],mx:[{mx:[a]}],my:[{my:[a]}],ms:[{ms:[a]}],me:[{me:[a]}],mt:[{mt:[a]}],mr:[{mr:[a]}],mb:[{mb:[a]}],ml:[{ml:[a]}],"space-x":[{"space-x":[ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ce]}],"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:[L]},L]}],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",L,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[D]}],"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",G,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,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":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,z]}],"underline-offset":[{"underline-offset":["auto",A,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:m()}],"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":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ut]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:$()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[A,c]}],"outline-w":[{outline:[A,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[A,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,gt]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",L,c]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[y]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[_,c]}],"translate-x":[{"translate-x":[de]}],"translate-y":[{"translate-y":[de]}],"skew-x":[{"skew-x":[le]}],"skew-y":[{"skew-y":[le]}],"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":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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:[A,z,ee]}],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 Re=rt(yt);function h(...e){return Re((0,Ne.clsx)(e))}var Se=require("react/jsx-runtime"),wt=(0,ke.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function O({className:e,variant:t,...r}){return(0,Se.jsx)("div",{className:h(wt({variant:t}),e),...r})}var Pe=require("@radix-ui/react-slot"),Me=E(require("react")),Ct=(0,ke.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"}}}),q=Me.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...i},n)=>(0,Se.jsx)(e?Pe.Slot:"button",{className:h(Ct({className:t,size:r,variant:o})),ref:n,...i}));q.displayName="Button";var I=E(require("react"));var K=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...t}));K.displayName="Card";var Rt=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("flex flex-col space-y-1.5 p-6",e),...t}));Rt.displayName="CardHeader";var Nt=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("font-semibold leading-none tracking-tight",e),...t}));Nt.displayName="CardTitle";var kt=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("text-sm text-muted-foreground",e),...t}));kt.displayName="CardDescription";var X=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("p-6 pt-0",e),...t}));X.displayName="CardContent";var St=I.forwardRef(({className:e,...t},r)=>(0,Se.jsx)("div",{ref:r,className:h("flex items-center p-6 pt-0",e),...t}));St.displayName="CardFooter";var Le=E(require("react"));var oe=Le.forwardRef(({className:e,type:t,...r},o)=>(0,Se.jsx)("input",{type:t,className:h("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}));oe.displayName="Input";var Ee=E(require("react")),ne=E(require("@radix-ui/react-label"));var Pt=(0,ke.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),se=Ee.forwardRef(({className:e,...t},r)=>(0,Se.jsx)(ne.Root,{ref:r,className:h(Pt(),e),...t}));se.displayName=ne.Root.displayName;var ae=E(require("react")),N=E(require("@radix-ui/react-scroll-area"));var ie=ae.forwardRef(({className:e,children:t,...r},o)=>(0,Se.jsxs)(N.Root,{ref:o,className:h("relative overflow-hidden",e),...r,children:[(0,Se.jsx)(N.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Se.jsx)(Ge,{}),(0,Se.jsx)(N.Corner,{})]}));ie.displayName=N.Root.displayName;var Ge=ae.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Se.jsx)(N.ScrollAreaScrollbar,{ref:o,orientation:t,className:h("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Se.jsx)(N.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ge.displayName=N.ScrollAreaScrollbar.displayName;function At({selectedDocuments:e,onDocumentsChange:t,availableDocuments:r,label:o,placeholder:i="Search knowledge documents...",maxSelections:n,disabled:l=!1}){let[s,f]=(0,B.useState)(""),[b,v]=(0,B.useState)([]),[y,x]=(0,B.useState)(!1);(0,B.useEffect)(()=>{if(!s.trim()){v([]),x(!1);return}let a=r.filter(p=>{if(e.map(C=>C.id).includes(p.id))return!1;let S=s.toLowerCase();return p.title.toLowerCase().includes(S)||p.description?.toLowerCase().includes(S)||p.tags?.some(C=>C.toLowerCase().includes(S))||Object.values(p.metadata||{}).some(C=>String(C).toLowerCase().includes(S))});v(a),x(!0)},[s,e,r]);let k=a=>{n&&e.length>=n||(t([...e,a]),f(""),x(!1))},R=a=>{t(e.filter(p=>p.id!==a))},g=!n||e.length<n;return(0,Se.jsxs)("div",{className:"space-y-2",children:[(0,Se.jsx)(se,{children:o}),(0,Se.jsxs)("div",{className:"relative",children:[(0,Se.jsxs)("div",{className:"relative",children:[(0,Se.jsx)(M.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Se.jsx)(oe,{value:s,onChange:a=>f(a.target.value),placeholder:g?i:`Maximum ${n} documents selected`,className:"pl-9",disabled:l||!g,onFocus:()=>s&&x(!0)})]}),y&&b.length>0&&(0,Se.jsx)(K,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-h-60",children:(0,Se.jsx)(ie,{className:"h-full",children:(0,Se.jsx)(X,{className:"p-2",children:b.map(a=>(0,Se.jsx)(q,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>k(a),disabled:l,children:(0,Se.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,Se.jsx)(M.FileText,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Se.jsxs)("div",{className:"text-left flex-1 min-w-0",children:[(0,Se.jsx)("div",{className:"font-medium text-sm truncate",children:a.title}),a.description&&(0,Se.jsx)("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:a.description}),a.tags&&a.tags.length>0&&(0,Se.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[a.tags.slice(0,3).map(p=>(0,Se.jsx)(O,{variant:"outline",className:"text-xs",children:p},p)),a.tags.length>3&&(0,Se.jsxs)(O,{variant:"outline",className:"text-xs",children:["+",a.tags.length-3," more"]})]})]})]})},a.id))})})}),y&&s&&b.length===0&&(0,Se.jsx)(K,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:(0,Se.jsxs)(X,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',s,'"']})})]}),e.length>0&&(0,Se.jsxs)("div",{className:"space-y-2",children:[(0,Se.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,n&&`/${n}`,")"]}),(0,Se.jsx)("div",{className:"space-y-2",children:e.map(a=>(0,Se.jsx)(K,{className:"p-3",children:(0,Se.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Se.jsx)(M.FileText,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Se.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Se.jsx)("div",{className:"font-medium text-sm",children:a.title}),a.description&&(0,Se.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:a.description}),a.tags&&a.tags.length>0&&(0,Se.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:a.tags.map(p=>(0,Se.jsxs)(O,{variant:"outline",className:"text-xs",children:[(0,Se.jsx)(M.Tag,{className:"h-3 w-3 mr-1"}),p]},p))})]}),(0,Se.jsx)(q,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>R(a.id),disabled:l,children:(0,Se.jsx)(M.X,{className:"h-3 w-3"})})]})},a.id))})]}),y&&(0,Se.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>x(!1)})]})}0&&(module.exports={KnowledgeSearch});
5
+ "use strict";"use client";var He=Object.create;var $=Object.defineProperty;var Ge=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Be=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var We=(e,t)=>{for(var r in t)$(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ve(t))!_e.call(e,i)&&i!==r&&$(e,i,{get:()=>t[i],enumerable:!(o=Ge(t,i))||o.enumerable});return e};var E=(e,t,r)=>(r=e!=null?He(Be(e)):{},fe(t||!e||!e.__esModule?$(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>fe($({},"__esModule",{value:!0}),e);var kt={};We(kt,{KnowledgeSearch:()=>At});module.exports=De(kt);var B=require("react"),M=require("lucide-react");var Ce=require("class-variance-authority");var Re=require("clsx");var Fe=e=>{let t=Ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split("-");return s[0]===""&&s.length!==1&&s.shift(),he(s,t)||Oe(l)},getConflictingClassGroupIds:(l,s)=>{let f=r[l]||[];return s&&o[l]?[...f,...o[l]]:f}}},he=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),i=o?he(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;let n=e.join("-");return t.validators.find(({validator:l})=>l(n))?.classGroupId},be=/^\[(.+)\]$/,Oe=e=>{if(be.test(e)){let t=be.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ke=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return $e(Object.entries(e.classGroups),r).forEach(([n,l])=>{te(l,o,n,t)}),o},te=(e,t,r,o)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?t:ge(t,i);n.classGroupId=r;return}if(typeof i=="function"){if(je(i)){te(i(o),t,r,o);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([n,l])=>{te(l,ge(t,n),r,o)})})},ge=(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},je=e=>e.isThemeGetter,$e=(e,t)=>t?e.map(([r,o])=>{let i=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,i]}):e,Ue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,i=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return i(n,l),l},set(n,l){r.has(n)?r.set(n,l):i(n,l)}}};var qe=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,i=t[0],n=t.length,l=s=>{let f=[],b=0,v=0,y;for(let a=0;a<s.length;a++){let p=s[a];if(b===0){if(p===i&&(o||s.slice(a,a+n)===t)){f.push(s.slice(v,a)),v=a+n;continue}if(p==="/"){y=a;continue}}p==="["?b++:p==="]"&&b--}let x=f.length===0?s:s.substring(v),S=x.startsWith("!"),C=S?x.substring(1):x,g=y&&y>v?y-v:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:C,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:l}):l},Xe=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},Je=e=>({cache:Ue(e.cacheSize),parseClassName:qe(e),...Fe(e)}),Ze=/\s+/,Qe=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:i}=t,n=[],l=e.trim().split(Ze),s="";for(let f=l.length-1;f>=0;f-=1){let b=l[f],{modifiers:v,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:S}=r(b),C=!!S,g=o(C?x.substring(0,S):x);if(!g){if(!C){s=b+(s.length>0?" "+s:s);continue}if(g=o(x),!g){s=b+(s.length>0?" "+s:s);continue}C=!1}let a=Xe(v).join(":"),p=y?a+"!":a,w=p+g;if(n.includes(w))continue;n.push(w);let A=i(g,C);for(let R=0;R<A.length;++R){let O=A[R];n.push(p+O)}s=b+(s.length>0?" "+s:s)}return s};function Ye(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ve(t))&&(o&&(o+=" "),o+=r);return o}var ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function et(e,...t){let r,o,i,n=l;function l(f){let b=t.reduce((v,y)=>y(v),e());return r=Je(b),o=r.cache.get,i=r.cache.set,n=s,s(f)}function s(f){let b=o(f);if(b)return b;let v=Qe(f,r);return i(f,v),v}return function(){return n(Ye.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},xe=/^\[(?:([a-Ne-]+):)?(.+)\]$/i,tt=/^\Ne+\/\Ne+$/,rt=new Set(["px","full","screen"]),ot=/^(\Ne+(\.\Ne+)?)?(xs|sm|md|lg|xl)$/,nt=/\Ne+(%|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$/,st=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,at=/^(inset_)?-?((\Ne+)?\.?(\Ne+)[a-Ne]+|0)_-?((\Ne+)?\.?(\Ne+)[a-Ne]+|0)/,it=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>G(e)||rt.has(e)||tt.test(e),T=e=>V(e,"length",bt),G=e=>!!e&&!Number.isNaN(Number(e)),ee=e=>V(e,"number",G),W=e=>!!e&&Number.isInteger(Number(e)),lt=e=>e.endsWith("%")&&G(e.slice(0,-1)),c=e=>xe.test(e),L=e=>ot.test(e),ct=new Set(["length","size","percentage"]),dt=e=>V(e,ct,ye),pt=e=>V(e,"position",ye),ut=new Set(["image","url"]),mt=e=>V(e,ut,ht),ft=e=>V(e,"",gt),D=()=>!0,V=(e,t,r)=>{let o=xe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},bt=e=>nt.test(e)&&!st.test(e),ye=()=>!1,gt=e=>at.test(e),ht=e=>it.test(e);var vt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),i=u("borderColor"),n=u("borderRadius"),l=u("borderSpacing"),s=u("borderWidth"),f=u("contrast"),b=u("grayscale"),v=u("hueRotate"),y=u("invert"),x=u("gap"),S=u("gradientColorStops"),C=u("gradientColorStopPositions"),g=u("inset"),a=u("margin"),p=u("opacity"),w=u("padding"),A=u("saturate"),R=u("scale"),O=u("sepia"),ie=u("skew"),le=u("space"),ce=u("translate"),J=()=>["auto","contain","none"],Z=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto",c,t],m=()=>[c,t],de=()=>["",P,T],K=()=>["auto",G,c],pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",c],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>[G,c];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[P,T],blur:["none","",L,c],brightness:k(),borderColor:[e],borderRadius:["none","","full",L,c],borderSpacing:m(),borderWidth:de(),contrast:k(),grayscale:_(),hueRotate:k(),invert:_(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[lt,T],inset:Q(),margin:Q(),opacity:k(),padding:m(),saturate:k(),scale:k(),sepia:_(),skew:k(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...pe(),c]}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],Ne:[{Ne:["auto",W,c]}],basis:[{basis:Q()}],"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:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",W,c]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",W,c]},c]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[W,c]},c]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"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:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[a]}],mx:[{mx:[a]}],my:[{my:[a]}],ms:[{ms:[a]}],me:[{me:[a]}],mt:[{mt:[a]}],mr:[{mr:[a]}],mb:[{mb:[a]}],ml:[{ml:[a]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"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:[L]},L]}],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",L,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ee]}],"font-family":[{font:[D]}],"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",G,ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,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":[p]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[p]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,T]}],"underline-offset":[{"underline-offset":["auto",P,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:m()}],"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":[p]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pe(),pt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[p]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[p]}],"divide-style":[{divide:j()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[P,c]}],"outline-w":[{outline:[P,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[p]}],"ring-offset-w":[{"ring-offset":[P,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,ft]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[p]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",L,c]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[y]}],saturate:[{saturate:[A]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[p]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[W,c]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"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":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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:[P,T,ee]}],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 we=et(vt);function h(...e){return we((0,Re.clsx)(e))}var Ne=require("react/jsx-runtime"),xt=(0,Ce.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function U({className:e,variant:t,...r}){return(0,Ne.jsx)("div",{className:h(xt({variant:t}),e),...r})}var Se=require("@radix-ui/react-slot"),ke=E(require("react")),yt=(0,Ce.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"}}}),q=ke.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...i},n)=>(0,Ne.jsx)(e?Se.Slot:"button",{className:h(yt({className:t,size:r,variant:o})),ref:n,...i}));q.displayName="Button";var I=E(require("react"));var F=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...t}));F.displayName="Card";var wt=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("flex flex-col space-y-1.5 p-6",e),...t}));wt.displayName="CardHeader";var Rt=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("font-semibold leading-none tracking-tight",e),...t}));Rt.displayName="CardTitle";var Ct=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("text-sm text-muted-foreground",e),...t}));Ct.displayName="CardDescription";var X=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("p-6 pt-0",e),...t}));X.displayName="CardContent";var Nt=I.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)("div",{ref:r,className:h("flex items-center p-6 pt-0",e),...t}));Nt.displayName="CardFooter";var Me=E(require("react"));var re=Me.forwardRef(({className:e,type:t,...r},o)=>(0,Ne.jsx)("input",{type:t,className:h("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}));re.displayName="Input";var Le=E(require("react")),oe=E(require("@radix-ui/react-label"));var St=(0,Ce.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=Le.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(oe.Root,{ref:r,className:h(St(),e),...t}));ne.displayName=oe.Root.displayName;var se=E(require("react")),N=E(require("@radix-ui/react-scroll-area"));var ae=se.forwardRef(({className:e,children:t,...r},o)=>(0,Ne.jsxs)(N.Root,{ref:o,className:h("relative overflow-hidden",e),...r,children:[(0,Ne.jsx)(N.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ne.jsx)(Ie,{}),(0,Ne.jsx)(N.Corner,{})]}));ae.displayName=N.Root.displayName;var Ie=se.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ne.jsx)(N.ScrollAreaScrollbar,{ref:o,orientation:t,className:h("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Ne.jsx)(N.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ie.displayName=N.ScrollAreaScrollbar.displayName;function At({selectedDocuments:e,onDocumentsChange:t,availableDocuments:r,label:o,placeholder:i="Search knowledge documents...",maxSelections:n,disabled:l=!1}){let[s,f]=(0,B.useState)(""),[b,v]=(0,B.useState)([]),[y,x]=(0,B.useState)(!1);(0,B.useEffect)(()=>{if(!s.trim()){v([]),x(!1);return}let a=r.filter(p=>{if(e.map(R=>R.id).includes(p.id))return!1;let A=s.toLowerCase();return p.title.toLowerCase().includes(A)||p.description?.toLowerCase().includes(A)||p.tags?.some(R=>R.toLowerCase().includes(A))||Object.values(p.metadata||{}).some(R=>String(R).toLowerCase().includes(A))});v(a),x(!0)},[s,e,r]);let S=a=>{n&&e.length>=n||(t([...e,a]),f(""),x(!1))},C=a=>{t(e.filter(p=>p.id!==a))},g=!n||e.length<n;return(0,Ne.jsxs)("div",{className:"space-y-2",children:[(0,Ne.jsx)(ne,{children:o}),(0,Ne.jsxs)("div",{className:"relative",children:[(0,Ne.jsxs)("div",{className:"relative",children:[(0,Ne.jsx)(M.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ne.jsx)(re,{value:s,onChange:a=>f(a.target.value),placeholder:g?i:`Maximum ${n} documents selected`,className:"pl-9",disabled:l||!g,onFocus:()=>s&&x(!0)})]}),y&&b.length>0&&(0,Ne.jsx)(F,{className:"absolute top-full left-0 right-0 Ne-10 mt-1 max-h-60",children:(0,Ne.jsx)(ae,{className:"h-full",children:(0,Ne.jsx)(X,{className:"p-2",children:b.map(a=>(0,Ne.jsx)(q,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>S(a),disabled:l,children:(0,Ne.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,Ne.jsx)(M.FileText,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ne.jsxs)("div",{className:"text-left flex-1 min-w-0",children:[(0,Ne.jsx)("div",{className:"font-medium text-sm truncate",children:a.title}),a.description&&(0,Ne.jsx)("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:a.description}),a.tags&&a.tags.length>0&&(0,Ne.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[a.tags.slice(0,3).map(p=>(0,Ne.jsx)(U,{variant:"outline",className:"text-xs",children:p},p)),a.tags.length>3&&(0,Ne.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",a.tags.length-3," more"]})]})]})]})},a.id))})})}),y&&s&&b.length===0&&(0,Ne.jsx)(F,{className:"absolute top-full left-0 right-0 Ne-10 mt-1",children:(0,Ne.jsxs)(X,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',s,'"']})})]}),e.length>0&&(0,Ne.jsxs)("div",{className:"space-y-2",children:[(0,Ne.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,n&&`/${n}`,")"]}),(0,Ne.jsx)("div",{className:"space-y-2",children:e.map(a=>(0,Ne.jsx)(F,{className:"p-3",children:(0,Ne.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ne.jsx)(M.FileText,{className:"h-4 w-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ne.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ne.jsx)("div",{className:"font-medium text-sm",children:a.title}),a.description&&(0,Ne.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:a.description}),a.tags&&a.tags.length>0&&(0,Ne.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:a.tags.map(p=>(0,Ne.jsxs)(U,{variant:"outline",className:"text-xs",children:[(0,Ne.jsx)(M.Tag,{className:"h-3 w-3 mr-1"}),p]},p))})]}),(0,Ne.jsx)(q,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>C(a.id),disabled:l,children:(0,Ne.jsx)(M.X,{className:"h-3 w-3"})})]})},a.id))})]}),y&&(0,Ne.jsx)("div",{className:"fixed inset-0 Ne-0",onClick:()=>x(!1)})]})}0&&(module.exports={KnowledgeSearch});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-QQVPLMPJ.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.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-YEKQJ4YC.mjs";export{a as KnowledgeSearch};
2
+ "use strict";import{a}from"../../chunk-JTFMN7OL.mjs";import"../../chunk-RAAY7PEH.mjs";import"../../chunk-JVJG2LOA.mjs";import"../../chunk-GJUA2KUH.mjs";import"../../chunk-7Z3TOFNL.mjs";import"../../chunk-2JKLBLDE.mjs";import"../../chunk-7WKUKFCT.mjs";import"../../chunk-TSEOL53Y.mjs";import"../../chunk-I2BNJCJ7.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-CDH5ONCJ.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as KnowledgeSearch};