cortex-react-components 2.22.3 → 2.23.0

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 (353) hide show
  1. package/dist/{chunk-GETYSIZV.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  3. package/dist/{chunk-P6OSMPUQ.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  4. package/dist/{chunk-UPRS7OYQ.mjs → chunk-2UNIT7NC.mjs} +1 -1
  5. package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
  6. package/dist/{chunk-BQQ4V4PX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  7. package/dist/{chunk-R6AYIVIR.mjs → chunk-5WVFEIMC.mjs} +1 -1
  8. package/dist/{chunk-GAZHKHGB.mjs → chunk-67QPOSVV.mjs} +1 -1
  9. package/dist/{chunk-7OMPPFGG.mjs → chunk-7GMAMIHM.mjs} +1 -1
  10. package/dist/chunk-ACGCNGIH.mjs +4 -0
  11. package/dist/{chunk-UECG3SCG.mjs → chunk-AGDKFAMN.mjs} +1 -1
  12. package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  13. package/dist/{chunk-KVLUT4U2.mjs → chunk-CBIULUZQ.mjs} +1 -1
  14. package/dist/{chunk-2GM2LPLB.mjs → chunk-ERJXTG6X.mjs} +1 -1
  15. package/dist/{chunk-HDKHF3EA.mjs → chunk-FKU4VQR6.mjs} +1 -1
  16. package/dist/{chunk-G27V7B6H.mjs → chunk-GPFPTU7U.mjs} +1 -1
  17. package/dist/{chunk-F64CA5CH.mjs → chunk-H3CJOE6S.mjs} +1 -1
  18. package/dist/{chunk-U3FYDDE2.mjs → chunk-HKGW6JI2.mjs} +1 -1
  19. package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
  20. package/dist/chunk-HTMQGMYL.mjs +4 -0
  21. package/dist/{chunk-PNUBVBSR.mjs → chunk-IF3425JX.mjs} +1 -1
  22. package/dist/{chunk-2W4GQ3FI.mjs → chunk-JCWFPKF3.mjs} +1 -1
  23. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  24. package/dist/{chunk-75WE6ZXB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  25. package/dist/{chunk-3ANJOET7.mjs → chunk-LBUC4M6L.mjs} +1 -1
  26. package/dist/chunk-LEUI66J6.mjs +1 -0
  27. package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
  28. package/dist/{chunk-O24GFE6Q.mjs → chunk-LJOWXPWW.mjs} +1 -1
  29. package/dist/{chunk-PTZT4QJW.mjs → chunk-LJQPLE4S.mjs} +1 -1
  30. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-M7NV6EFH.mjs} +1 -1
  31. package/dist/{chunk-4SRUEQTP.mjs → chunk-MXCW6SOT.mjs} +1 -1
  32. package/dist/{chunk-FYQBRCQM.mjs → chunk-N3B3XNV3.mjs} +1 -1
  33. package/dist/{chunk-62KYJVTC.mjs → chunk-NGL6K2L5.mjs} +1 -1
  34. package/dist/{chunk-FEWOSBUJ.mjs → chunk-NWISIJFD.mjs} +1 -1
  35. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  36. package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
  37. package/dist/{chunk-MO4HRQEL.mjs → chunk-PK3OBSCB.mjs} +1 -1
  38. package/dist/{chunk-D7VHHXGM.mjs → chunk-PZFYJ5FS.mjs} +1 -1
  39. package/dist/{chunk-CQAMS7RZ.mjs → chunk-Q2QAFOWG.mjs} +1 -1
  40. package/dist/chunk-QKOBOCKK.mjs +4 -0
  41. package/dist/chunk-QTW33JYG.mjs +1 -0
  42. package/dist/{chunk-L5NPH5RX.mjs → chunk-RQLUMNJE.mjs} +1 -1
  43. package/dist/{chunk-F2MJXGRT.mjs → chunk-RS4VD3ML.mjs} +1 -1
  44. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  45. package/dist/{chunk-RIZ2ODJL.mjs → chunk-THOBCTIL.mjs} +1 -1
  46. package/dist/chunk-WLI2YTOQ.mjs +1 -0
  47. package/dist/{chunk-UMOKAKKS.mjs → chunk-WVSUPHRY.mjs} +1 -1
  48. package/dist/{chunk-R5P4ZICA.mjs → chunk-WYR2HJ75.mjs} +1 -1
  49. package/dist/chunk-X2JWNPWT.mjs +4 -0
  50. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  51. package/dist/{chunk-K3YZPHOE.mjs → chunk-XGGWZIPM.mjs} +1 -1
  52. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  53. package/dist/{chunk-HKMNAXLM.mjs → chunk-YKG4FNS4.mjs} +1 -1
  54. package/dist/{chunk-DPZHVBGG.mjs → chunk-ZEPEWKBV.mjs} +1 -1
  55. package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  56. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  57. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  58. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  59. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  60. package/dist/components/AdvancedComponents/index.mjs +1 -1
  61. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  62. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  63. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  64. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  65. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  66. package/dist/components/Blocks/Banner.mjs +1 -1
  67. package/dist/components/Blocks/CallToAction.mjs +1 -1
  68. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  69. package/dist/components/Blocks/Code.client.mjs +1 -1
  70. package/dist/components/Blocks/Code.mjs +1 -1
  71. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  72. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  73. package/dist/components/Blocks/Content.mjs +1 -1
  74. package/dist/components/Blocks/CopyButton.mjs +1 -1
  75. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  76. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  77. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  78. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  79. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  80. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  81. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  82. package/dist/components/Blocks/index.mjs +1 -1
  83. package/dist/components/CRM/CogeBoard.mjs +1 -1
  84. package/dist/components/CRM/DealCard.mjs +1 -1
  85. package/dist/components/CRM/DealDetails.mjs +1 -1
  86. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  87. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  88. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  89. package/dist/components/CRM/NewDealForm.mjs +1 -1
  90. package/dist/components/CRM/index.mjs +1 -1
  91. package/dist/components/Cards/ContentCard.mjs +1 -1
  92. package/dist/components/Cards/CustomerCard.mjs +1 -1
  93. package/dist/components/Cards/EventCard.mjs +1 -1
  94. package/dist/components/Cards/FeatureCard.mjs +1 -1
  95. package/dist/components/Cards/HeroCard.mjs +1 -1
  96. package/dist/components/Cards/Image.mjs +1 -1
  97. package/dist/components/Cards/PricingCard.mjs +1 -1
  98. package/dist/components/Cards/ServiceCard.mjs +1 -1
  99. package/dist/components/Cards/index.mjs +1 -1
  100. package/dist/components/Chat/ChatInterface.mjs +1 -1
  101. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  102. package/dist/components/Chat/ChatMessage.mjs +1 -1
  103. package/dist/components/Chat/Components/ChatCardArtefact.mjs +1 -1
  104. package/dist/components/Chat/Components/ChatCardTask.mjs +1 -1
  105. package/dist/components/Chat/Components/Conversation.mjs +1 -1
  106. package/dist/components/Chat/Components/Message.mjs +1 -1
  107. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  108. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  109. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  110. package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
  111. package/dist/components/Chat/PartTypes/Response.mjs +1 -1
  112. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  113. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  114. package/dist/components/Chat/capability-menu.mjs +1 -1
  115. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  116. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  117. package/dist/components/Chat/demo-tests.mjs +1 -1
  118. package/dist/components/Chat/demo.mjs +1 -1
  119. package/dist/components/Chat/example-usage.mjs +1 -1
  120. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  121. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  122. package/dist/components/Chat/index.mjs +1 -1
  123. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  124. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  125. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  126. package/dist/components/DeliveryLead/index.mjs +1 -1
  127. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  128. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  129. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  130. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  131. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  132. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  133. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  134. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  135. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  136. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  137. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  138. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  139. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  140. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  141. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  142. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  143. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  144. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  145. package/dist/components/DigitalColleagues/index.mjs +1 -1
  146. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  147. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  148. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  149. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  150. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  151. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  152. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  153. package/dist/components/Foundary/Knowledge/manage-team-context.css +1 -0
  154. package/dist/components/Foundary/Knowledge/manage-team-context.d.ts +11 -0
  155. package/dist/components/Foundary/Knowledge/manage-team-context.js +4 -0
  156. package/dist/components/Foundary/Knowledge/manage-team-context.mjs +1 -0
  157. package/dist/components/Foundary/LandingMenu.mjs +1 -1
  158. package/dist/components/Foundary/Login.mjs +1 -1
  159. package/dist/components/Foundary/MainPage.mjs +1 -1
  160. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  161. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  162. package/dist/components/Foundary/RichText/components/RawUploadComponent/index.mjs +1 -1
  163. package/dist/components/Foundary/RichText/index.js +1 -1
  164. package/dist/components/Foundary/RichText/index.mjs +1 -1
  165. package/dist/components/Foundary/RichText/nodes/image-node.mjs +1 -1
  166. package/dist/components/Foundary/RichText/plugins/image-plugin.mjs +1 -1
  167. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.js +1 -1
  168. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  169. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  170. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  171. package/dist/components/Foundary/Views/KnowledgeView.d.ts +4 -2
  172. package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
  173. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  174. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  175. package/dist/components/Foundary/Views/index.js +1 -1
  176. package/dist/components/Foundary/Views/index.mjs +1 -1
  177. package/dist/components/Foundary/colleague-card.mjs +1 -1
  178. package/dist/components/Foundary/colleague-form.mjs +1 -1
  179. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  180. package/dist/components/Foundary/document-edit.d.ts +1 -1
  181. package/dist/components/Foundary/document-edit.js +1 -1
  182. package/dist/components/Foundary/document-edit.mjs +1 -1
  183. package/dist/components/Foundary/document-preview-examples.js +4 -4
  184. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  185. package/dist/components/Foundary/document-preview.js +1 -1
  186. package/dist/components/Foundary/document-preview.mjs +1 -1
  187. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  188. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  189. package/dist/components/Foundary/foundary-options.mjs +1 -1
  190. package/dist/components/Foundary/index.js +1 -1
  191. package/dist/components/Foundary/index.mjs +1 -1
  192. package/dist/components/Foundary/knowledge-browser.js +1 -1
  193. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  194. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  195. package/dist/components/Foundary/team-form.mjs +1 -1
  196. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  197. package/dist/components/HeaderFooter/Header.mjs +1 -1
  198. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  199. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  200. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  201. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  202. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  203. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  204. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  205. package/dist/components/HeaderFooter/index.mjs +1 -1
  206. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  207. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  208. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  209. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  210. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  211. package/dist/components/Heros/PostHero/index.mjs +1 -1
  212. package/dist/components/Heros/RenderHero.mjs +1 -1
  213. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  214. package/dist/components/Heros/index.mjs +1 -1
  215. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  216. package/dist/components/Holidays/CalendarView.js +1 -1
  217. package/dist/components/Holidays/CalendarView.mjs +1 -1
  218. package/dist/components/Holidays/HolidayGrid.js +1 -1
  219. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  220. package/dist/components/Holidays/HolidayTracker.js +1 -1
  221. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  222. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  223. package/dist/components/Holidays/index.js +1 -1
  224. package/dist/components/Holidays/index.mjs +1 -1
  225. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  226. package/dist/components/Layouts/Print.mjs +1 -1
  227. package/dist/components/Layouts/SlideShow.mjs +1 -1
  228. package/dist/components/Layouts/index.mjs +1 -1
  229. package/dist/components/Menus/Categories.mjs +1 -1
  230. package/dist/components/Menus/Filter.mjs +1 -1
  231. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  232. package/dist/components/Menus/RelatedContent.mjs +1 -1
  233. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  234. package/dist/components/Menus/SidebarRight.mjs +1 -1
  235. package/dist/components/Menus/index.mjs +1 -1
  236. package/dist/components/Other/Container.mjs +1 -1
  237. package/dist/components/Other/index.mjs +1 -1
  238. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  239. package/dist/components/Payload/Link/index.mjs +1 -1
  240. package/dist/components/Payload/Media/index.mjs +1 -1
  241. package/dist/components/Payload/Pagination/index.mjs +1 -1
  242. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  243. package/dist/components/Payload/RichText/index.mjs +1 -1
  244. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  245. package/dist/components/Payload/index.mjs +1 -1
  246. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  247. package/dist/components/Projects/AddFileModal.mjs +1 -1
  248. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  249. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  250. package/dist/components/Projects/EpicFilter.mjs +1 -1
  251. package/dist/components/Projects/EpicsView.mjs +1 -1
  252. package/dist/components/Projects/FileView.mjs +1 -1
  253. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  254. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  255. package/dist/components/Projects/PlanningView.mjs +1 -1
  256. package/dist/components/Projects/ProjectPage.mjs +1 -1
  257. package/dist/components/Projects/ProjectView.mjs +1 -1
  258. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  259. package/dist/components/Projects/TaskCard.mjs +1 -1
  260. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  261. package/dist/components/Projects/TaskSelect.mjs +1 -1
  262. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  263. package/dist/components/Projects/TasksView.mjs +1 -1
  264. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  265. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  266. package/dist/components/Projects/file-list.mjs +1 -1
  267. package/dist/components/Projects/index.mjs +1 -1
  268. package/dist/components/Projects/project-card.mjs +1 -1
  269. package/dist/components/Projects/project-form.mjs +1 -1
  270. package/dist/components/Projects/team-card.mjs +1 -1
  271. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  272. package/dist/components/dc-temp/creative.mjs +1 -1
  273. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  274. package/dist/components/dc-temp/index.mjs +1 -1
  275. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  276. package/dist/components/index.js +20 -20
  277. package/dist/components/index.mjs +1 -1
  278. package/dist/components/ui/alert.mjs +1 -1
  279. package/dist/components/ui/avatar.mjs +1 -1
  280. package/dist/components/ui/badge.mjs +1 -1
  281. package/dist/components/ui/breadcrumb.mjs +1 -1
  282. package/dist/components/ui/button.mjs +1 -1
  283. package/dist/components/ui/calendar.mjs +1 -1
  284. package/dist/components/ui/card.mjs +1 -1
  285. package/dist/components/ui/checkbox.mjs +1 -1
  286. package/dist/components/ui/command.mjs +1 -1
  287. package/dist/components/ui/dialog.mjs +1 -1
  288. package/dist/components/ui/dropdown-menu.mjs +1 -1
  289. package/dist/components/ui/hover-card.mjs +1 -1
  290. package/dist/components/ui/index.mjs +1 -1
  291. package/dist/components/ui/input.mjs +1 -1
  292. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  293. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  294. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  295. package/dist/components/ui/label.mjs +1 -1
  296. package/dist/components/ui/pagination.mjs +1 -1
  297. package/dist/components/ui/popover.mjs +1 -1
  298. package/dist/components/ui/progress.mjs +1 -1
  299. package/dist/components/ui/scroll-area.mjs +1 -1
  300. package/dist/components/ui/select.mjs +1 -1
  301. package/dist/components/ui/separator.mjs +1 -1
  302. package/dist/components/ui/sheet.mjs +1 -1
  303. package/dist/components/ui/sidebar.mjs +1 -1
  304. package/dist/components/ui/skeleton.mjs +1 -1
  305. package/dist/components/ui/switch.mjs +1 -1
  306. package/dist/components/ui/tabs.mjs +1 -1
  307. package/dist/components/ui/textarea.mjs +1 -1
  308. package/dist/components/ui/toast.mjs +1 -1
  309. package/dist/components/ui/toaster.mjs +1 -1
  310. package/dist/components/ui/toggle-group.mjs +1 -1
  311. package/dist/components/ui/toggle.mjs +1 -1
  312. package/dist/components/ui/tooltip.mjs +1 -1
  313. package/dist/globals.css +1 -1
  314. package/dist/index.js +30 -30
  315. package/dist/index.mjs +1 -1
  316. package/dist/metafile-cjs.json +1 -1
  317. package/dist/metafile-esm.json +1 -1
  318. package/dist/pages/Blog.mjs +1 -1
  319. package/dist/pages/Documentation.mjs +1 -1
  320. package/dist/pages/IndexPage.mjs +1 -1
  321. package/dist/pages/Intranet.mjs +1 -1
  322. package/dist/pages/LandingPage.mjs +1 -1
  323. package/dist/pages/Page.mjs +1 -1
  324. package/dist/pages/Publish.mjs +1 -1
  325. package/dist/pages/Website.mjs +1 -1
  326. package/dist/sections/AboutSection.mjs +1 -1
  327. package/dist/sections/BlogDetail.mjs +1 -1
  328. package/dist/sections/BlogList.mjs +1 -1
  329. package/dist/sections/BlogListSection.mjs +1 -1
  330. package/dist/sections/ContactSection.mjs +1 -1
  331. package/dist/sections/ImageSection.mjs +1 -1
  332. package/dist/sections/MainPageSection.mjs +1 -1
  333. package/dist/sections/PageSections.mjs +1 -1
  334. package/dist/sections/PricingSection.mjs +1 -1
  335. package/dist/sections/ServiceDetail.mjs +1 -1
  336. package/dist/sections/ServiceDetailSection.mjs +1 -1
  337. package/dist/sections/ServiceSection.mjs +1 -1
  338. package/dist/sections/form/index.mjs +1 -1
  339. package/dist/sections/index.mjs +1 -1
  340. package/dist/styles/Colors.mjs +1 -1
  341. package/dist/utils/TimeUtil.d.ts +1 -0
  342. package/dist/utils/TimeUtil.js +1 -1
  343. package/dist/utils/TimeUtil.mjs +1 -1
  344. package/dist/utils/index.js +2 -2
  345. package/dist/utils/index.mjs +1 -1
  346. package/package.json +1 -1
  347. package/dist/chunk-EGEO3FNE.mjs +0 -1
  348. package/dist/chunk-HMZKODQJ.mjs +0 -4
  349. package/dist/chunk-NIGA3VKZ.mjs +0 -4
  350. package/dist/chunk-U2OXF7PJ.mjs +0 -1
  351. package/dist/chunk-UOA5RYVR.mjs +0 -1
  352. package/dist/chunk-VZBIMHCR.mjs +0 -4
  353. package/dist/chunk-YLEBXRJS.mjs +0 -4
@@ -1 +1 @@
1
- import{a as g}from"../../../chunk-UPRS7OYQ.mjs";import{a as b}from"../../../chunk-YLEBXRJS.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-U2OXF7PJ.mjs";import{a}from"../../../chunk-G27V7B6H.mjs";import"../../../chunk-GAU24H4A.mjs";import{a as e}from"../../../chunk-UECG3SCG.mjs";import"../../../chunk-QOZ2O3FG.mjs";import"../../../chunk-L5NPH5RX.mjs";import"../../../chunk-KZCIHFTM.mjs";import{a as d}from"../../../chunk-2R3MJSQ7.mjs";import{a as f}from"../../../chunk-TKCFCYEQ.mjs";import"../../../chunk-CDVRH3MC.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-UM57PWI7.mjs";import"../../../chunk-ZHBYZ4HE.mjs";import"../../../chunk-AB43AQKL.mjs";import"../../../chunk-NGX2VCHS.mjs";import"../../../chunk-6PS55VJZ.mjs";import"../../../chunk-KG7HG2VO.mjs";import"../../../chunk-L3V5YDPH.mjs";import"../../../chunk-QC2UWZWL.mjs";import"../../../chunk-5RTGHMF3.mjs";import{a as c}from"../../../chunk-NAGBKKTZ.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-DCOFQFVJ.mjs";import"../../../chunk-VGWDYD6Z.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-CJ6APTVT.mjs";import"../../../chunk-YRMNCHFO.mjs";import"../../../chunk-EOR2BAI2.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-RIZ2ODJL.mjs";import"../../../chunk-NIGA3VKZ.mjs";import"../../../chunk-EZC3YWSQ.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-HMZKODQJ.mjs";import"../../../chunk-D7VHHXGM.mjs";import"../../../chunk-UOA5RYVR.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-6SWKEZN6.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-UVHMI3PU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.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-O5P35LEY.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-YNCJATT7.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-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ColleaguesView,c as FileView,b as KnowledgeView,d as PlanningView,e as ProjectView,f as ProjectsIndexView,g as TeamsIndexView};
1
+ import{a as g}from"../../../chunk-2UNIT7NC.mjs";import{a as b}from"../../../chunk-HTMQGMYL.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-WLI2YTOQ.mjs";import{a}from"../../../chunk-GPFPTU7U.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-THOBCTIL.mjs";import"../../../chunk-CJ6APTVT.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-QKOBOCKK.mjs";import"../../../chunk-ACGCNGIH.mjs";import"../../../chunk-PZFYJ5FS.mjs";import"../../../chunk-LEUI66J6.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-VGWDYD6Z.mjs";import{a as e}from"../../../chunk-AGDKFAMN.mjs";import"../../../chunk-QOZ2O3FG.mjs";import"../../../chunk-6PS55VJZ.mjs";import{a as c}from"../../../chunk-NAGBKKTZ.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-RQLUMNJE.mjs";import"../../../chunk-UM57PWI7.mjs";import"../../../chunk-ZHBYZ4HE.mjs";import"../../../chunk-AB43AQKL.mjs";import"../../../chunk-KG7HG2VO.mjs";import"../../../chunk-KZCIHFTM.mjs";import{a as d}from"../../../chunk-2R3MJSQ7.mjs";import{a as f}from"../../../chunk-HSQAHQNP.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-CDVRH3MC.mjs";import"../../../chunk-L3V5YDPH.mjs";import"../../../chunk-DCOFQFVJ.mjs";import"../../../chunk-NGX2VCHS.mjs";import"../../../chunk-QC2UWZWL.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-EZC3YWSQ.mjs";import"../../../chunk-YRMNCHFO.mjs";import"../../../chunk-EOR2BAI2.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-6SWKEZN6.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-UVHMI3PU.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.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-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.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-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ColleaguesView,c as FileView,b as KnowledgeView,d as PlanningView,e as ProjectView,f as ProjectsIndexView,g as TeamsIndexView};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-HB57GPGK.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueCard};
2
+ "use strict";import{a}from"../../chunk-HB57GPGK.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueCard};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-KKW3FINI.mjs";import"../../chunk-5HT2KC5I.mjs";import"../../chunk-B4H6T2GP.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-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueForm};
2
+ "use strict";import{a}from"../../chunk-KKW3FINI.mjs";import"../../chunk-5HT2KC5I.mjs";import"../../chunk-B4H6T2GP.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-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueForm};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-FSCDCSVK.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueTypeSelection};
2
+ "use strict";import{a}from"../../chunk-FSCDCSVK.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueTypeSelection};
@@ -1,7 +1,7 @@
1
1
  import type { KnowledgeDocument, KnowledgeContext } from './types';
2
2
  interface DocumentEditProps {
3
3
  document: KnowledgeDocument;
4
- onSave: (document: KnowledgeDocument) => void;
4
+ onSave: (document: KnowledgeDocument, mode: 'save' | 'autosave') => void;
5
5
  mode?: 'create' | 'edit';
6
6
  onCancel: () => void;
7
7
  availableDocuments?: KnowledgeDocument[];
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";"use client";var Mo=Object.create;var Ee=Object.defineProperty;var To=Object.getOwnPropertyDescriptor;var ko=Object.getOwnPropertyNames;var Io=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty;var Ho=(e,t)=>{for(var o in t)Ee(e,o,{get:t[o],enumerable:!0})},gt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ko(t))!Eo.call(e,n)&&n!==o&&Ee(e,n,{get:()=>t[n],enumerable:!(r=To(t,n))||r.enumerable});return e};var X=(e,t,o)=>(o=e!=null?Mo(Io(e)):{},gt(t||!e||!e.__esModule?Ee(o,"default",{value:e,enumerable:!0}):o,e)),Lo=e=>gt(Ee({},"__esModule",{value:!0}),e);var Wr={};Ho(Wr,{DocumentEdit:()=>$r});module.exports=Lo(Wr);var ut=require("motion/react"),V=require("lucide-react"),ye=require("react");var Rt=require("clsx");var We="-",Ao=e=>{let t=_o(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(We);return s[0]===""&&s.length!==1&&s.shift(),vt(s,t)||Vo(i)},getConflictingClassGroupIds:(i,s)=>{let b=o[i]||[];return s&&r[i]?[...b,...r[i]]:b}}},vt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?vt(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(We);return t.validators.find(({validator:i})=>i(a))?.classGroupId},bt=/^\[(.+)\]$/,Vo=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},_o=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return zo(Object.entries(e.classGroups),o).forEach(([a,i])=>{$e(i,r,a,t)}),r},$e=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:ht(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Oo(n)){$e(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,i])=>{$e(i,ht(t,a),o,r)})})},ht=(e,t)=>{let o=e;return t.split(We).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Oo=e=>e.isThemeGetter,zo=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[o,n]}):e,Uo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,i)=>{o.set(a,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let i=o.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return n(a,i),i},set(a,i){o.has(a)?o.set(a,i):n(a,i)}}},xt="!",Bo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,i=s=>{let b=[],N=0,C=0,L;for(let m=0;m<s.length;m++){let M=s[m];if(N===0){if(M===n&&(r||s.slice(m,m+a)===t)){b.push(s.slice(C,m)),C=m+a;continue}if(M==="/"){L=m;continue}}M==="["?N++:M==="]"&&N--}let E=b.length===0?s:s.substring(C),_=E.startsWith(xt),R=_?E.substring(1):E,S=L&&L>C?L-C:void 0;return{modifiers:b,hasImportantModifier:_,baseClassName:R,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:i}):i},Fo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},$o=e=>({cache:Uo(e.cacheSize),parseClassName:Bo(e),...Ao(e)}),Wo=/\s+/,Go=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Wo),s="";for(let b=i.length-1;b>=0;b-=1){let N=i[b],{modifiers:C,hasImportantModifier:L,baseClassName:E,maybePostfixModifierPosition:_}=o(N),R=!!_,S=r(R?E.substring(0,_):E);if(!S){if(!R){s=N+(s.length>0?" "+s:s);continue}if(S=r(E),!S){s=N+(s.length>0?" "+s:s);continue}R=!1}let m=Fo(C).join(":"),M=L?m+xt:m,P=M+S;if(a.includes(P))continue;a.push(P);let K=n(S,R);for(let x=0;x<K.length;++x){let G=K[x];a.push(M+G)}s=N+(s.length>0?" "+s:s)}return s};function Ko(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=yt(t))&&(r&&(r+=" "),r+=o);return r}var yt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=yt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Zo(e,...t){let o,r,n,a=i;function i(b){let N=t.reduce((C,L)=>L(C),e());return o=$o(N),r=o.cache.get,n=o.cache.set,a=s,s(b)}function s(b){let N=r(b);if(N)return N;let C=Go(b,o);return n(b,C),C}return function(){return a(Ko.apply(null,arguments))}}var T=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-z-]+):)?(.+)\]$/i,jo=/^\d+\/\d+$/,Xo=new Set(["px","full","screen"]),Jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qo=/\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$/,Yo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,er=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ie=e=>be(e)||Xo.has(e)||jo.test(e),pe=e=>he(e,"length",lr),be=e=>!!e&&!Number.isNaN(Number(e)),Fe=e=>he(e,"number",be),we=e=>!!e&&Number.isInteger(Number(e)),tr=e=>e.endsWith("%")&&be(e.slice(0,-1)),p=e=>wt.test(e),me=e=>Jo.test(e),or=new Set(["length","size","percentage"]),rr=e=>he(e,or,Ct),nr=e=>he(e,"position",Ct),ar=new Set(["image","url"]),ir=e=>he(e,ar,dr),sr=e=>he(e,"",cr),Ce=()=>!0,he=(e,t,o)=>{let r=wt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},lr=e=>qo.test(e)&&!Yo.test(e),Ct=()=>!1,cr=e=>Qo.test(e),dr=e=>er.test(e);var pr=()=>{let e=T("colors"),t=T("spacing"),o=T("blur"),r=T("brightness"),n=T("borderColor"),a=T("borderRadius"),i=T("borderSpacing"),s=T("borderWidth"),b=T("contrast"),N=T("grayscale"),C=T("hueRotate"),L=T("invert"),E=T("gap"),_=T("gradientColorStops"),R=T("gradientColorStopPositions"),S=T("inset"),m=T("margin"),M=T("opacity"),P=T("padding"),K=T("saturate"),x=T("scale"),G=T("sepia"),u=T("skew"),w=T("space"),y=T("translate"),Z=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",p,t],D=()=>[p,t],re=()=>["",ie,pe],oe=()=>["auto",be,p],d=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",p],ft=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ae=()=>[be,p];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[ie,pe],blur:["none","",me,p],brightness:ae(),borderColor:[e],borderRadius:["none","","full",me,p],borderSpacing:D(),borderWidth:re(),contrast:ae(),grayscale:j(),hueRotate:ae(),invert:j(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[tr,pe],inset:te(),margin:te(),opacity:ae(),padding:D(),saturate:ae(),scale:ae(),sepia:j(),skew:ae(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":ft()}],"break-before":[{"break-before":ft()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...d(),p]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",we,p]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",we,p]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",we,p]},p]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[we,p]},p]}],"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",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],ye:[{ye:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",me,pe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fe]}],"font-family":[{font:[Ce]}],"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",p]}],"line-clamp":[{"line-clamp":["none",be,Fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ie,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ie,pe]}],"underline-offset":[{"underline-offset":["auto",ie,p]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...d(),nr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Mt","tl"]},ir]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-Mt":[{"rounded-Mt":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-Mt":[{"rounded-Mt":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"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-Mt":[{"border-Mt":[s]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...H(),"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":[M]}],"divide-style":[{divide:H()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-Mt":[{"border-Mt":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[ie,p]}],"outline-w":[{outline:[ie,pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[ie,pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,sr]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",me,p]}],grayscale:[{grayscale:[N]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[L]}],saturate:[{saturate:[K]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[L]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[K]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[we,p]}],"translate-x":[{"translate-x":[y]}],"translate-y":[{"translate-y":[y]}],"skew-x":[{"skew-x":[u]}],"skew-y":[{"skew-y":[u]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-ye":[{"scroll-ye":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ie,pe,Fe]}],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","ye","mr","mb","ml"],mx:["mr","ml"],my:["ye","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-Mt","rounded-ss","rounded-se","rounded-Mt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Mt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-Mt":["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-Mt"],"border-w-x":["border-w-r","border-w-Mt"],"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-Mt"],"border-color-x":["border-color-r","border-color-Mt"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ye","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ye","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 Nt=Zo(pr);function g(...e){return Nt((0,Rt.clsx)(e))}var Pt=require("@radix-ui/react-slot"),Dt=require("class-variance-authority"),St=X(require("react")),Mt=require("react/jsx-runtime"),mr=(0,Dt.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"}}}),se=St.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,Mt.jsx)(e?Pt.Slot:"button",{className:g(mr({className:t,size:o,variant:r})),ref:a,...n}));se.displayName="Button";var Tt=X(require("react")),Ne=Tt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:g("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:o,...t}));Ne.displayName="Textarea";var It=X(require("react"));var le=It.forwardRef(({className:e,type:t,...o},r)=>(0,Mt.jsx)("input",{type:t,className:g("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));le.displayName="Input";var h=X(require("@radix-ui/react-select")),ue=X(require("react")),Ht=h.Root;var Lt=h.Value,Ge=ue.forwardRef(({children:e,className:t,...o},r)=>(0,Mt.jsxs)(h.Trigger,{className:g("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:r,...o,children:[e,(0,Mt.jsx)(h.Icon,{asChild:!0,children:(0,Mt.jsx)(V.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ge.displayName=h.Trigger.displayName;var At=ue.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(h.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Mt.jsx)(V.ChevronUp,{className:"h-4 w-4"})}));At.displayName=h.ScrollUpButton.displayName;var Vt=ue.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(h.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Mt.jsx)(V.ChevronDown,{className:"h-4 w-4"})}));Vt.displayName=h.ScrollDownButton.displayName;var Ke=ue.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,Mt.jsx)(h.Portal,{children:(0,Mt.jsxs)(h.Content,{className:g("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",o==="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:o,ref:n,...r,children:[(0,Mt.jsx)(At,{}),(0,Mt.jsx)(h.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Mt.jsx)(Vt,{})]})}));Ke.displayName=h.Content.displayName;var ur=ue.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(h.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ur.displayName=h.Label.displayName;var He=ue.forwardRef(({children:e,className:t,...o},r)=>(0,Mt.jsxs)(h.Item,{className:g("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:r,...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(h.ItemIndicator,{children:(0,Mt.jsx)(V.Check,{className:"h-4 w-4"})})}),(0,Mt.jsx)(h.ItemText,{children:e})]}));He.displayName=h.Item.displayName;var fr=ue.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(h.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));fr.displayName=h.Separator.displayName;var _t=X(require("react")),Ze=X(require("@radix-ui/react-label"));var gr=(0,Dt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),je=_t.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(Ze.Root,{ref:o,className:g(gr(),e),...t}));je.displayName=Ze.Root.displayName;var Je=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:a="",disabled:i=!1})=>{let[s,b]=(0,ye.useState)(!1),[N,C]=(0,ye.useState)(""),L=()=>{i||(b(!0),C(t))},E=async()=>{N!==t&&await n(e,N),b(!1)},_=R=>{R.key==="Enter"&&!r||R.key==="Enter"&&R.ctrlKey&&r?E():R.key==="Escape"&&(b(!1),C(""))};return(0,Mt.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,Mt.jsx)(je,{children:o}),s?r?(0,Mt.jsx)(Ne,{value:N,onChange:R=>C(R.target.value),onBlur:E,onKeyDown:_,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(le,{value:N,onChange:R=>C(R.target.value),onBlur:E,onKeyPress:_,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:L,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Mt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!i&&(0,Mt.jsx)(V.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var ho=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),vo=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),xo=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),yo=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),wo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),Co=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),No=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Be=require("@payloadcms/richtext-lexical/lexical/list"),Ro=require("@payloadcms/richtext-lexical/lexical/rich-text"),Po=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var go=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Ie=require("@payloadcms/richtext-lexical/lexical/utils"),f=require("@payloadcms/richtext-lexical/lexical"),dt=require("@payloadcms/richtext-lexical/lexical/selection");var Re=X(require("react")),U=X(require("@radix-ui/react-dialog"));var Ft=U.Root;var br=U.Portal;var $t=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(U.Overlay,{ref:o,className:g("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));$t.displayName=U.Overlay.displayName;var qe=Re.forwardRef(({className:e,children:t,...o},r)=>(0,Mt.jsxs)(br,{children:[(0,Mt.jsx)($t,{}),(0,Mt.jsxs)(U.Content,{ref:r,className:g("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Mt.jsxs)(U.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Mt.jsx)(V.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));qe.displayName=U.Content.displayName;var Ye=({className:e,...t})=>(0,Mt.jsx)("div",{className:g("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ye.displayName="DialogHeader";var hr=({className:e,...t})=>(0,Mt.jsx)("div",{className:g("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var Qe=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(U.Title,{ref:o,className:g("text-lg font-semibold leading-none tracking-tight",e),...t}));Qe.displayName=U.Title.displayName;var vr=Re.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(U.Description,{ref:o,className:g("text-sm text-muted-foreground",e),...t}));vr.displayName=U.Description.displayName;var eo=require("@radix-ui/react-dialog"),_e=require("@payloadcms/richtext-lexical/client");var tt=X(require("bson-objectid"));var Gt=require("@payloadcms/ui");var Wt=X(require("react")),Q=X(require("@radix-ui/react-tooltip"));var Le=Q.Provider,Ae=Q.Root,Ve=Q.Trigger,Pe=Wt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Mt.jsx)(Q.Portal,{children:(0,Mt.jsx)(Q.Content,{ref:r,sideOffset:t,className:g("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Pe.displayName=Q.Content.displayName;var xr=e=>{let{data:{relationTo:t,value:o},nodeKey:r}=e,[n]=(0,go.useLexicalComposerContext)(),[a,i]=(0,ye.useState)(""),[s,b]=(0,ye.useState)(""),[N,C]=(0,ye.useState)(""),L=async m=>{console.log("fetchMedia",m)};(0,ye.useEffect)(()=>{typeof o=="string"?o.length===24?L(o):(i(o||""),C(S(R())),b(_()||"")):typeof o=="object"&&(i(`${process.env.NEXT_PUBLIC_API_URL}${o.url}`||""),C(S(o.filesize)),b(o.mimeType?.split("/")[1]||""))},[]);let E=(0,ye.useCallback)(()=>{n.update(()=>{(0,f.$getNodeByKey)(r)?.remove()})},[n,r]),_=()=>{let m=e.data.value;return typeof m=="string"?m.split(";base64")[0]?.split("image/")[1]:""},R=()=>{let m=e.data.value;if(typeof m=="string"){let M=m.split(",")[1]?.length||0;return 4*Math.ceil(M/3)*.5624896334383812/1e3}return 0};function S(m){if(m>=1e6){let P=m/1e6;return`${P>=10?Math.round(P).toString():P.toFixed(1)} MB`}return`${Math.floor(m/1e3)} KB`}return(0,Mt.jsx)("div",{className:"my-2",contentEditable:!1,children:(0,Mt.jsxs)("div",{className:"border border-slate-800 rounded-xl overflow-clip w-60 flex flex-col gap-2 bg-[#222222]",children:[(0,Mt.jsxs)("div",{className:"flex gap-2 border-b border-b-slate-100/10",children:[(0,Mt.jsx)("div",{className:"flex-1",children:e.data.value?(0,Mt.jsx)("img",{className:"object-cover m-0 w-full min-w-[115px] min-h-[105px]","data-lexical-upload-id":o,"data-lexical-upload-relation-to":t,src:a}):(0,Mt.jsx)(Gt.File,{})}),(0,Mt.jsx)(Le,{children:(0,Mt.jsxs)(Ae,{children:[(0,Mt.jsxs)(Ve,{className:"flex-1 flex justify-center items-center text-[#b5b5b5]",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:"Media"}),(0,Mt.jsx)("button",{onClick:m=>{m.preventDefault(),E()},className:"flex-1 flex justify-center items-center",children:(0,Mt.jsx)(V.X,{width:24,height:24,strokeWidth:1})})]}),(0,Mt.jsx)(Pe,{children:(0,Mt.jsx)("span",{children:"Remove image"})})]})})]}),(0,Mt.jsxs)("div",{className:"flex items-center justify-center gap-4 py-3 flex-1 text-xs font-bold",children:[(0,Mt.jsx)("span",{className:"",children:s?.toLocaleUpperCase()}),(0,Mt.jsx)("span",{children:N})]})]})})},Xt=xr;function yr(e){if(e.hasAttribute("data-lexical-upload-relation-to")&&e.hasAttribute("data-lexical-upload-id")){let o=e.getAttribute("data-lexical-upload-id");if(o)return{node:ve({fields:{},relationTo:"media",value:o})}}return e.src.startsWith("file:///"),null}var De=class extends _e.UploadNode{static importDOM(){return{img:()=>({conversion:yr,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new tt.default().toHexString(),t.version=3);let o={id:t.id??new tt.default().toHexString(),fields:t.fields,relationTo:"media",value:t.value},r=ve(o);return r.setFormat?.(t.format),r}decorate(){return(0,Mt.jsx)(Xt,{data:this.__data,nodeKey:this.getKey()})}};function ve(e){return new De({data:e})}var wr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cr=e=>wr?(e||window).getSelection():null,Hn=(0,f.createCommand)("INSERT_UPLOAD_WITH_DRAWER_COMMAND"),ot=(0,f.createCommand)("INSERT_UPLOAD_COMMAND");function to({activeEditor:e,onClose:t,isOpen:o=!1}){let r=(0,ye.useRef)(!1),[n,a]=(0,ye.useState)(!0),[i,s]=(0,ye.useState)(""),[b,N]=(0,ye.useState)(""),[C,L]=(0,ye.useState)(!1),[E,_]=(0,ye.useState)("left"),R=i==="",S=x=>{L(x.target.checked)},m=x=>{_(x.target.value)},M=x=>{let G=new FileReader;G.onload=function(){return typeof G.result=="string"&&s(G.result),""},x!==null&&x[0]&&G.readAsDataURL(x[0])};(0,ye.useEffect)(()=>{r.current=!1;let x=G=>{r.current=G.altKey};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[e]),(0,ye.useEffect)(()=>{n||t()},[n]),(0,ye.useEffect)(()=>{a(o)},[o]);let P=({editor:x,relationTo:G,replaceNodeKey:u,value:w})=>{if(u)x.update(()=>{let y=(0,f.$getNodeByKey)(u);y&&y.replace(ve({id:"",fields:{},relationTo:"media",value:w}))});else{let y=x.dispatchCommand(ot,{fields:null,relationTo:"media",value:w})}},K=()=>{P({editor:e,relationTo:"media",replaceNodeKey:null,value:{altText:b,src:i,showCaption:C,position:E}.src}),a(!1),t()};return(0,Mt.jsx)(Ft,{open:n,onOpenChange:x=>a(x),children:(0,Mt.jsxs)(qe,{children:[(0,Mt.jsxs)(Ye,{children:[(0,Mt.jsx)(Qe,{children:"Upload Image"}),(0,Mt.jsx)(eo.DialogDescription,{children:"Description"})]}),(0,Mt.jsxs)("div",{className:"",children:[(0,Mt.jsx)("div",{style:{marginBottom:"1em"},children:(0,Mt.jsx)(le,{type:"file",onChange:x=>M(x.target.files),accept:"image/*","data-test-id":"image-modal-file-upload"})}),(0,Mt.jsx)("div",{style:{marginBottom:"1em"},children:(0,Mt.jsx)(le,{"aria-label":"Alt Text",placeholder:"Descriptive alternative text",onChange:x=>N(x.currentTarget.value),value:b,"data-test-id":"image-modal-alt-text-input"})}),(0,Mt.jsx)(se,{"data-test-id":"image-modal-file-upload-btn",disabled:R,onClick:()=>K(),children:"Confirm"})]})]})})}function rt({captionsEnabled:e}){let[t]=(0,go.useLexicalComposerContext)();return(0,ye.useEffect)(()=>{if(!t.hasNodes([_e.UploadNode]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return(0,Ie.mergeRegister)(t.registerCommand(f.DRAGSTART_COMMAND,o=>Nr(o),f.COMMAND_PRIORITY_HIGH),t.registerCommand(f.DRAGOVER_COMMAND,o=>Rr(o),f.COMMAND_PRIORITY_LOW),t.registerCommand(f.DROP_COMMAND,o=>Pr(o,t),f.COMMAND_PRIORITY_HIGH))},[e,t]),null}function Nr(e){if(!nt())return!1;let o=e.dataTransfer;return o?(o.setData("text/plain","_"),!0):!1}function Rr(e){return nt()?(oo(e)||e.preventDefault(),!0):!1}function Pr(e,t){let o=nt();if(!o)return!1;if(e.preventDefault(),oo(e)){let r=Dr(e);o.remove();let n=(0,f.$createRangeSelection)();r!=null&&n.applyDOMRange(r),(0,f.$setSelection)(n)}return!0}function nt(){let e=(0,f.$getSelection)();if(!(0,f.$isNodeSelection)(e))return null;let o=e.getNodes()[0];return(0,_e.$isUploadNode)(o)?o:null}function oo(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}function Dr(e){let t,o=e.target,r=o==null?null:o.nodeType===9?o.defaultView:o.ownerDocument.defaultView,n=Cr(r);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&n!==null)n.collapse(e.rangeParent,e.rangeOffset||0),t=n.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return t}var Sr=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})}),ro=Sr;var Mr=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})}),no=Mr;var Tr=()=>(0,Mt.jsxs)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Mt.jsx)("path",{d:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),(0,Mt.jsx)("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),ao=Tr;var kr=()=>(0,Mt.jsxs)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,Mt.jsx)("path",{d:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),(0,Mt.jsx)("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),io=kr;var Ir=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})}),so=Ir;var Er=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})}),lo=Er;var co=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})}),po=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})}),mo=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),uo=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})}),fo=()=>(0,Mt.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,Mt.jsx)("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});var de=X(require("react")),v=X(require("@radix-ui/react-dropdown-menu")),xe=require("@radix-ui/react-icons");var Oe=v.Root,ze=v.Trigger;var Hr=de.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Mt.jsxs)(v.SubTrigger,{ref:n,className:g("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Mt.jsx)(xe.ChevronRightIcon,{className:"ml-auto"})]}));Hr.displayName=v.SubTrigger.displayName;var Lr=de.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(v.SubContent,{ref:o,className:g("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Lr.displayName=v.SubContent.displayName;var Te=de.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Mt.jsx)(v.Portal,{children:(0,Mt.jsx)(v.Content,{ref:r,sideOffset:t,className:g("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Te.displayName=v.Content.displayName;var ke=de.forwardRef(({className:e,inset:t,...o},r)=>(0,Mt.jsx)(v.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ke.displayName=v.Item.displayName;var Ar=de.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Mt.jsxs)(v.CheckboxItem,{ref:n,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(v.ItemIndicator,{children:(0,Mt.jsx)(xe.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ar.displayName=v.CheckboxItem.displayName;var Vr=de.forwardRef(({className:e,children:t,...o},r)=>(0,Mt.jsxs)(v.RadioItem,{ref:r,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(v.ItemIndicator,{children:(0,Mt.jsx)(xe.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Vr.displayName=v.RadioItem.displayName;var _r=de.forwardRef(({className:e,inset:t,...o},r)=>(0,Mt.jsx)(v.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));_r.displayName=v.Label.displayName;var Or=de.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(v.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));Or.displayName=v.Separator.displayName;var zr=({className:e,...t})=>(0,Mt.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});zr.displayName="DropdownMenuShortcut";var ct=1;function Ur(){return(0,Mt.jsx)("span",{className:"border border-[#222222]"})}function pt(){let[e]=(0,go.useLexicalComposerContext)(),t=(0,ye.useRef)(null),[o,r]=(0,ye.useState)(!1),[n,a]=(0,ye.useState)(!1),[i,s]=(0,ye.useState)(!1),[b,N]=(0,ye.useState)(!1),[C,L]=(0,ye.useState)(!1),[E,_]=(0,ye.useState)(!1),[R,S]=(0,ye.useState)(!1),[m,M]=(0,ye.useState)(!1),[P,K]=(0,ye.useState)(!1),[x,G]=(0,ye.useState)("left"),[u,w]=(0,ye.useState)("p"),y=d=>{e.update(()=>{let H=(0,f.$getSelection)();(0,f.$isRangeSelection)(H)&&(d==="p"?(0,dt.$setBlocksType)(H,()=>(0,f.$createParagraphNode)()):(0,dt.$setBlocksType)(H,()=>(0,Ro.$createHeadingNode)(d)))})},Z=(0,ye.useCallback)(()=>{let d=(0,f.$getSelection)();if((0,f.$isRangeSelection)(d)){s(d.hasFormat("bold")),N(d.hasFormat("italic")),L(d.hasFormat("underline")),_(d.hasFormat("strikethrough")),S(d.hasFormat("subscript")),M(d.hasFormat("superscript"));let H=d.anchor.getNode(),z=H;for(;z&&!(0,f.$isParagraphNode)(z)&&z!==(0,f.$getRoot)();){let j=z.getParent();j&&(z=j)}if(z){let j=z.getFormatType();G(j||"left")}let ne=H.getTopLevelElement()?.__tag;w(ne||"p")}},[]);(0,ye.useEffect)(()=>(0,Ie.mergeRegister)(e.registerUpdateListener(({editorState:d})=>{d.read(()=>{Z()})}),e.registerCommand(f.SELECTION_CHANGE_COMMAND,(d,H)=>(Z(),!1),ct),e.registerCommand(f.CAN_UNDO_COMMAND,d=>(r(d),!1),ct),e.registerCommand(f.CAN_REDO_COMMAND,d=>(a(d),!1),ct),(0,Ie.mergeRegister)(e.registerCommand(ot,d=>(e.update(()=>{let H=(0,f.$getSelection)()||(0,f.$getPreviousSelection)();if((0,f.$isRangeSelection)(H)){let z=ve({id:d.id,fields:d.fields,relationTo:d.relationTo,value:d.value}),{focus:ne}=H,j=ne.getNode();(0,Ie.$insertNodeToNearestRoot)(z),(0,f.$isParagraphNode)(j)&&!j.__first&&j.remove()}}),!0),f.COMMAND_PRIORITY_EDITOR))),[e,Z]);let $=[[{label:"Undo",icon:(0,Mt.jsx)(V.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,Mt.jsx)(V.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,Mt.jsx)(ro,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:i},{label:"Italic",icon:(0,Mt.jsx)(no,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:b},{label:"Underline",icon:(0,Mt.jsx)(ao,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:C},{label:"Strikethrough",icon:(0,Mt.jsx)(io,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:E},{label:"Subscript",icon:(0,Mt.jsx)(so,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:R},{label:"Superscript",icon:(0,Mt.jsx)(lo,{}),onClick:()=>{e.dispatchCommand(f.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:m}]],te=[{label:"Left Align",direction:"left",icon:(0,Mt.jsx)(V.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,Mt.jsx)(V.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,Mt.jsx)(V.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,Mt.jsx)(V.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(f.FORMAT_ELEMENT_COMMAND,"justify")}}],re=[{label:"Normal Text",value:"p",icon:(0,Mt.jsx)(co,{}),onClick:()=>y("p")},{label:"Heading 1",value:"h1",icon:(0,Mt.jsx)(po,{}),onClick:()=>y("h1")},{label:"Heading 2",value:"h2",icon:(0,Mt.jsx)(mo,{}),onClick:()=>y("h2")},{label:"Heading 3",value:"h3",icon:(0,Mt.jsx)(uo,{}),onClick:()=>y("h3")},{label:"Heading 4",value:"h4",icon:(0,Mt.jsx)(fo,{}),onClick:()=>y("h4")},...[{label:"Unordered List",value:"ul",icon:(0,Mt.jsx)(V.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Be.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,Mt.jsx)(V.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Be.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],oe=[{label:"Insert Image",icon:(0,Mt.jsx)(V.ImageUp,{width:15,height:15}),onClick:()=>{K(!0)},disabled:!1}];return(0,Mt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,Mt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[$.map((d,H)=>(0,Mt.jsxs)(ye.Fragment,{children:[(0,Mt.jsx)("div",{className:"flex items-center gap-2",children:d.map((z,ne)=>(0,Mt.jsx)("div",{role:"button","aria-disabled":z.disabled||!1,onClick:z.onClick,className:g("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",z.active&&"bg-[#3c3c3c]"),"aria-label":z.label,children:(0,Mt.jsx)(Le,{children:(0,Mt.jsxs)(Ae,{children:[(0,Mt.jsx)(Ve,{className:"text-[#b5b5b5]",children:z.icon}),(0,Mt.jsx)(Pe,{children:(0,Mt.jsx)("p",{children:z.label})})]})})},ne))}),(0,Mt.jsx)(Ur,{})]},`toolbar-option-${d.length}-${H}`)),(0,Mt.jsxs)(Oe,{children:[(0,Mt.jsxs)(ze,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[te.find(d=>d.direction===x)?.icon,te.find(d=>d.direction===x)?.label,(0,Mt.jsx)(V.ChevronDown,{width:15,height:15})]}),(0,Mt.jsx)(Te,{className:"bg-black hover:bg-black",children:te.map((d,H)=>(0,Mt.jsxs)(ke,{onClick:d.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Mt.jsx)("span",{children:d.icon}),(0,Mt.jsx)("span",{children:d.label})]},`${d.label}-${H}`))})]}),(0,Mt.jsxs)(Oe,{children:[(0,Mt.jsxs)(ze,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[re.find(d=>d.value===u)?.icon,re.find(d=>d.value===u)?.label,(0,Mt.jsx)(V.ChevronDown,{width:15,height:15})]}),(0,Mt.jsx)(Te,{className:"bg-black hover:bg-black",children:re.map((d,H)=>(0,Mt.jsxs)(ke,{onClick:d.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Mt.jsx)("span",{children:d.icon}),(0,Mt.jsx)("span",{children:d.label})]},`heading-option-${d.label}-${H}`))})]}),(0,Mt.jsxs)(Oe,{children:[(0,Mt.jsxs)(ze,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[(0,Mt.jsx)(V.Plus,{width:15,height:15}),(0,Mt.jsx)(V.ChevronDown,{width:15,height:15})]}),(0,Mt.jsx)(Te,{className:"bg-black hover:bg-black",children:oe.map((d,H)=>(0,Mt.jsxs)(ke,{onClick:d.onClick,disabled:d.disabled,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,Mt.jsx)("span",{children:d.icon}),(0,Mt.jsx)("span",{children:d.label})]},H))})]}),P&&(0,Mt.jsx)(to,{activeEditor:e,onClose:()=>{K(!1)},isOpen:P})]})})}var Br=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,go.useLexicalComposerContext)(),a=i=>{i.read(()=>{let s=i.toJSON();e?.(()=>s)})};return(0,ye.useEffect)(()=>{n.setEditable(r)},[r]),(0,ye.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,Mt.jsx)("div",{className:"w-full",children:(0,Mt.jsxs)("div",{className:" ",children:[r&&(0,Mt.jsx)(pt,{}),(0,Mt.jsxs)("div",{className:"px-4 my-4 border-Mt border-[#222222]",children:[(0,Mt.jsx)(Co.RichTextPlugin,{contentEditable:(0,Mt.jsx)(xo.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:yo.LexicalErrorBoundary}),r&&(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(wo.HistoryPlugin,{}),(0,Mt.jsx)(ho.AutoFocusPlugin,{}),(0,Mt.jsx)(No.ListPlugin,{}),(0,Mt.jsx)(Po.OnChangePlugin,{onChange:a}),(0,Mt.jsx)(rt,{})]})]})]})})},Fr=({setValue:e,value:t,name:o,editable:r=!0})=>(0,Mt.jsx)(vo.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Be.ListNode,Be.ListItemNode,Ro.HeadingNode,De],onError(a){throw console.error("Lexical error:",a),a},theme:{code:"editor-code",heading:{h1:"text-4xl",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,Mt.jsx)(Br,{value:t,setValue:e,name:o,editable:r})}),So=Fr;function $r({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[i,s]=(0,ye.useState)({...e,updatedAt:new Date}),[b,N]=(0,ye.useState)(!1),[C,L]=(0,ye.useState)(i.richTextContent);(0,ye.useEffect)(()=>{s(e)},[e]);let E=u=>{switch(u){case"markdown":case"mdx":return(0,Mt.jsx)(V.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,Mt.jsx)(V.File,{className:"h-6 w-6 text-success"});case"text":return(0,Mt.jsx)(V.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Mt.jsx)(V.File,{className:"h-6 w-6 text-muted-foreground"})}},_=u=>{switch(u){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"}},R=()=>{let u=new Set,w=new Set;return a.forEach(y=>{y.menuConfig.groupBy.forEach(Z=>u.add(Z))}),n.forEach(y=>{y.metadata&&Object.keys(y.metadata).forEach(Z=>w.add(Z))}),{contextKeys:Array.from(u).sort(),documentKeys:Array.from(w).sort(),allKeys:Array.from(new Set([...u,...w])).sort()}},S=u=>{let w=new Set;return n.forEach(y=>{y.metadata?.[u]&&w.add(String(y.metadata[u]))}),Array.from(w).sort()},m=R(),M=()=>{t({...i,richTextContent:C})},P=(u,w)=>{s(y=>({...y,metadata:{...y.metadata,[u]:w}}))},K=(u,w)=>{w==="__custom__"?P(u,""):P(u,w)},x=()=>{P("","")},G=u=>{s(w=>{let y={...w.metadata};return delete y[u],{...w,metadata:y}})};return(0,Mt.jsxs)(ut.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,Mt.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,Mt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Mt.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,Mt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Mt.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,Mt.jsx)("div",{className:"flex-1 min-w-0",children:(0,Mt.jsx)(Je,{fieldName:"title",value:i.title,label:"",onSave:(u,w)=>s(y=>({...y,title:w})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,Mt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${_(i.format)} flex-shrink-0 ye-1`,children:i.format.toUpperCase()})]}),(0,Mt.jsx)("div",{className:"ye-2",children:(0,Mt.jsx)(Je,{fieldName:"description",value:i.description||"Click to add description...",label:"",multiline:!0,onSave:(u,w)=>s(y=>({...y,description:w})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})}),(0,Mt.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,Mt.jsxs)(se,{variant:"ghost",size:"sm",onClick:()=>N(!b),className:"gap-2",children:[(0,Mt.jsx)(V.Info,{className:"h-4 w-4"}),"Metadata",i.metadata&&Object.keys(i.metadata).length>0&&(0,Mt.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:Object.keys(i.metadata).length}),b?(0,Mt.jsx)(V.ChevronDown,{className:"h-4 w-4"}):(0,Mt.jsx)(V.ChevronRight,{className:"h-4 w-4"})]}),(0,Mt.jsxs)(se,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Mt.jsx)(V.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Mt.jsxs)(se,{size:"sm",onClick:M,className:"gap-2",children:[(0,Mt.jsx)(V.Save,{className:"h-4 w-4"}),"Save"]})]})]}),(0,Mt.jsx)(ut.motion.div,{initial:!1,animate:{height:b?"auto":0,opacity:b?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,Mt.jsxs)("div",{className:"pt-4 border-t border-border ye-4 h-screen max-h-full flex",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Mt.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,Mt.jsx)(V.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Mt.jsxs)(se,{type:"button",variant:"outline",size:"sm",onClick:x,className:"gap-1 h-8",children:[(0,Mt.jsx)(V.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,Mt.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:i.metadata&&Object.keys(i.metadata).length>0?(0,Mt.jsx)("div",{className:"space-y-2",children:Object.entries(i.metadata).map(([u,w],y)=>{let Z=S(u);return(0,Mt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Mt.jsx)(le,{value:u,onChange:$=>{let te=$.target.value||"",D=i.metadata?.[u];s(re=>{let oe={...re.metadata};return delete oe[u],te&&(oe[te]=D||""),{...re,metadata:oe}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${u}`}),(0,Mt.jsx)("datalist",{id:`metadata-keys-${u}`,children:m.allKeys.map($=>(0,Mt.jsx)("option",{value:$},$))}),(0,Mt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),Z.length>0?(0,Mt.jsxs)(Ht,{value:String(w||""),onValueChange:$=>K(u,$),children:[(0,Mt.jsx)(Ge,{className:"flex-1 h-8 text-sm",children:(0,Mt.jsx)(Lt,{placeholder:"Value"})}),(0,Mt.jsxs)(Ke,{children:[Z.map($=>(0,Mt.jsx)(He,{value:$,children:$},$)),(0,Mt.jsx)(He,{value:"__custom__",children:(0,Mt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Mt.jsx)(le,{value:String(w||""),onChange:$=>P(u,$.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Mt.jsx)(se,{type:"button",variant:"ghost",size:"sm",onClick:()=>G(u),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Mt.jsx)(V.X,{className:"h-3 w-3"})})]},`metadata-key-${y}`)})}):(0,Mt.jsxs)("div",{className:"text-center py-4",children:[(0,Mt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,Mt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,Mt.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,Mt.jsx)("div",{className:"p-8 h-full max-h-full overflow-auto",children:i.format==="richText"?(0,Mt.jsx)(So,{setValue:L,value:C,name:"richTextContent"}):(0,Mt.jsx)(Ne,{value:i.content||"",onChange:u=>s(w=>({...w,content:u.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}0&&(module.exports={DocumentEdit});
4
+ "use strict";"use client";var Ao=Object.create;var ze=Object.defineProperty;var Vo=Object.getOwnPropertyDescriptor;var Oo=Object.getOwnPropertyNames;var _o=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty;var Uo=(e,t)=>{for(var o in t)ze(e,o,{get:t[o],enumerable:!0})},Ct=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Oo(t))!zo.call(e,a)&&a!==o&&ze(e,a,{get:()=>t[a],enumerable:!(r=Vo(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Ao(_o(e)):{},Ct(t||!e||!e.__esModule?ze(o,"default",{value:e,enumerable:!0}):o,e)),Bo=e=>Ct(ze({},"__esModule",{value:!0}),e);var qr={};Uo(qr,{DocumentEdit:()=>Xr});module.exports=Bo(qr);var wt=require("motion/react"),A=require("lucide-react"),J=require("react");var Et=require("clsx");var Ye="-",Fo=e=>{let t=Wo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let s=n.split(Ye);return s[0]===""&&s.length!==1&&s.shift(),Pt(s,t)||$o(n)},getConflictingClassGroupIds:(n,s)=>{let b=o[n]||[];return s&&r[n]?[...b,...r[n]]:b}}},Pt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Pt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(Ye);return t.validators.find(({validator:n})=>n(i))?.classGroupId},Nt=/^\[(.+)\]$/,$o=e=>{if(Nt.test(e)){let t=Nt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Wo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ko(Object.entries(e.classGroups),o).forEach(([i,n])=>{qe(n,r,i,t)}),r},qe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Rt(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(Go(a)){qe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,n])=>{qe(n,Rt(t,i),o,r)})})},Rt=(e,t)=>{let o=e;return t.split(Ye).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Go=e=>e.isThemeGetter,Ko=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,s])=>[t+n,s])):i);return[o,a]}):e,jo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,n)=>{o.set(i,n),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let n=o.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return a(i,n),n},set(i,n){o.has(i)?o.set(i,n):a(i,n)}}},Dt="!",Zo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,n=s=>{let b=[],N=0,w=0,V;for(let u=0;u<s.length;u++){let R=s[u];if(N===0){if(R===a&&(r||s.slice(u,u+i)===t)){b.push(s.slice(w,u)),w=u+i;continue}if(R==="/"){V=u;continue}}R==="["?N++:R==="]"&&N--}let P=b.length===0?s:s.substring(w),O=P.startsWith(Dt),T=O?P.substring(1):P,D=V&&V>w?V-w:void 0;return{modifiers:b,hasImportantModifier:O,baseClassName:T,maybePostfixModifierPosition:D}};return o?s=>o({className:s,parseClassName:n}):n},Jo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Xo=e=>({cache:jo(e.cacheSize),parseClassName:Zo(e),...Fo(e)}),qo=/\s+/,Yo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],n=e.trim().split(qo),s="";for(let b=n.length-1;b>=0;b-=1){let N=n[b],{modifiers:w,hasImportantModifier:V,baseClassName:P,maybePostfixModifierPosition:O}=o(N),T=!!O,D=r(T?P.substring(0,O):P);if(!D){if(!T){s=N+(s.length>0?" "+s:s);continue}if(D=r(P),!D){s=N+(s.length>0?" "+s:s);continue}T=!1}let u=Jo(w).join(":"),R=V?u+Dt:u,k=R+D;if(i.includes(k))continue;i.push(k);let G=a(D,T);for(let C=0;C<G.length;++C){let K=G[C];i.push(R+K)}s=N+(s.length>0?" "+s:s)}return s};function Qo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=St(t))&&(r&&(r+=" "),r+=o);return r}var St=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=St(e[r]))&&(o&&(o+=" "),o+=t);return o};function er(e,...t){let o,r,a,i=n;function n(b){let N=t.reduce((w,V)=>V(w),e());return o=Xo(N),r=o.cache.get,a=o.cache.set,i=s,s(b)}function s(b){let N=r(b);if(N)return N;let w=Yo(b,o);return a(b,w),w}return function(){return i(Qo.apply(null,arguments))}}var E=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Mt=/^\[(?:([a-At-]+):)?(.+)\]$/i,tr=/^\At+\/\At+$/,or=new Set(["px","full","screen"]),rr=/^(\At+(\.\At+)?)?(xs|sm|md|lg|xl)$/,nr=/\At+(%|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$/,ar=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ir=/^(inset_)?-?((\At+)?\.?(\At+)[a-At]+|0)_-?((\At+)?\.?(\At+)[a-At]+|0)/,sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=e=>Ce(e)||or.has(e)||tr.test(e),ge=e=>Ne(e,"length",gr),Ce=e=>!!e&&!Number.isNaN(Number(e)),Xe=e=>Ne(e,"number",Ce),Se=e=>!!e&&Number.isInteger(Number(e)),lr=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),f=e=>Mt.test(e),he=e=>rr.test(e),cr=new Set(["length","size","percentage"]),dr=e=>Ne(e,cr,Tt),pr=e=>Ne(e,"position",Tt),mr=new Set(["image","url"]),ur=e=>Ne(e,mr,br),fr=e=>Ne(e,"",hr),Me=()=>!0,Ne=(e,t,o)=>{let r=Mt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},gr=e=>nr.test(e)&&!ar.test(e),Tt=()=>!1,hr=e=>ir.test(e),br=e=>sr.test(e);var vr=()=>{let e=E("colors"),t=E("spacing"),o=E("blur"),r=E("brightness"),a=E("borderColor"),i=E("borderRadius"),n=E("borderSpacing"),s=E("borderWidth"),b=E("contrast"),N=E("grayscale"),w=E("hueRotate"),V=E("invert"),P=E("gap"),O=E("gradientColorStops"),T=E("gradientColorStopPositions"),D=E("inset"),u=E("margin"),R=E("opacity"),k=E("padding"),G=E("saturate"),C=E("scale"),K=E("sepia"),te=E("skew"),ae=E("space"),X=E("translate"),ie=()=>["auto","contain","none"],we=()=>["auto","hidden","clip","visible","scroll"],se=()=>["auto",f,t],M=()=>[f,t],ue=()=>["",le,ge],fe=()=>["auto",Ce,f],p=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],S=()=>["solid","dashed","dotted","double","none"],_=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",f],l=()=>["auto","avoid","all","avoid-page","page","left","right","column"],m=()=>[Ce,f];return{cacheSize:500,separator:":",theme:{colors:[Me],spacing:[le,ge],blur:["none","",he,f],brightness:m(),borderColor:[e],borderRadius:["none","","full",he,f],borderSpacing:M(),borderWidth:ue(),contrast:m(),grayscale:Z(),hueRotate:m(),invert:Z(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[lr,ge],inset:se(),margin:se(),opacity:m(),padding:M(),saturate:m(),scale:m(),sepia:Z(),skew:m(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[he]}],"break-after":[{"break-after":l()}],"break-before":[{"break-before":l()}],"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:[...p(),f]}],overflow:[{overflow:we()}],"overflow-x":[{"overflow-x":we()}],"overflow-y":[{"overflow-y":we()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],At:[{At:["auto",Se,f]}],basis:[{basis:se()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Se,f]}],"grid-cols":[{"grid-cols":[Me]}],"col-start-end":[{col:["auto",{span:["full",Se,f]},f]}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":[Me]}],"row-start-end":[{row:["auto",{span:[Se,f]},f]}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"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:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],At:[{At:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ae]}],"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:[he]},he]}],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",he,ge]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xe]}],"font-family":[{font:[Me]}],"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",Ce,Xe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",le,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":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","At-underline"],"text-decoration-style":[{decoration:[...S(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",le,ge]}],"underline-offset":[{"underline-offset":["auto",le,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:M()}],"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":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),pr]}],"bg-repeat":[{bg:["At-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-A":["t","tr","r","br","b","bl","l","tl"]},ur]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-A-pos":[{A:[T]}],"gradient-from":[{from:[O]}],"gradient-via":[{via:[O]}],"gradient-A":[{A:[O]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-J":[{"rounded-J":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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":[R]}],"border-style":[{border:[...S(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:S()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...S()]}],"outline-offset":[{"outline-offset":[le,f]}],"outline-w":[{outline:[le,ge]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[le,ge]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",he,fr]}],"shadow-color":[{shadow:[Me]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[..._(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",he,f]}],grayscale:[{grayscale:[N]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[V]}],saturate:[{saturate:[G]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[V]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:m()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:m()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Se,f]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"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","At-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","At-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":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-At":[{"scroll-At":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",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[le,ge,Xe]}],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","At","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-J","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-J"],"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-At","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 kt=er(vr);function h(...e){return kt((0,Et.clsx)(e))}var It=require("@radix-ui/react-slot"),Ht=require("class-variance-authority"),Lt=q(require("react")),At=require("react/jsx-runtime"),xr=(0,Ht.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"}}}),ce=Lt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,At.jsx)(e?It.Slot:"button",{className:h(xr({className:t,size:o,variant:r})),ref:i,...a}));ce.displayName="Button";var Vt=q(require("react")),Te=Vt.forwardRef(({className:e,...t},o)=>(0,At.jsx)("textarea",{className:h("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:o,...t}));Te.displayName="Textarea";var _t=q(require("react"));var de=_t.forwardRef(({className:e,type:t,...o},r)=>(0,At.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:r,...o}));de.displayName="Input";var x=q(require("@radix-ui/react-select")),be=q(require("react")),Ut=x.Root;var Bt=x.Value,Qe=be.forwardRef(({children:e,className:t,...o},r)=>(0,At.jsxs)(x.Trigger,{className:h("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:r,...o,children:[e,(0,At.jsx)(x.Icon,{asChild:!0,children:(0,At.jsx)(A.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Qe.displayName=x.Trigger.displayName;var Ft=be.forwardRef(({className:e,...t},o)=>(0,At.jsx)(x.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,At.jsx)(A.ChevronUp,{className:"h-4 w-4"})}));Ft.displayName=x.ScrollUpButton.displayName;var $t=be.forwardRef(({className:e,...t},o)=>(0,At.jsx)(x.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,At.jsx)(A.ChevronDown,{className:"h-4 w-4"})}));$t.displayName=x.ScrollDownButton.displayName;var et=be.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,At.jsx)(x.Portal,{children:(0,At.jsxs)(x.Content,{className:h("relative At-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",o==="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:o,ref:a,...r,children:[(0,At.jsx)(Ft,{}),(0,At.jsx)(x.Viewport,{className:h("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,At.jsx)($t,{})]})}));et.displayName=x.Content.displayName;var yr=be.forwardRef(({className:e,...t},o)=>(0,At.jsx)(x.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));yr.displayName=x.Label.displayName;var Ue=be.forwardRef(({children:e,className:t,...o},r)=>(0,At.jsxs)(x.Item,{className:h("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:r,...o,children:[(0,At.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,At.jsx)(x.ItemIndicator,{children:(0,At.jsx)(A.Check,{className:"h-4 w-4"})})}),(0,At.jsx)(x.ItemText,{children:e})]}));Ue.displayName=x.Item.displayName;var wr=be.forwardRef(({className:e,...t},o)=>(0,At.jsx)(x.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));wr.displayName=x.Separator.displayName;var Wt=q(require("react")),tt=q(require("@radix-ui/react-label"));var Cr=(0,Ht.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ot=Wt.forwardRef(({className:e,...t},o)=>(0,At.jsx)(tt.Root,{ref:o,className:h(Cr(),e),...t}));ot.displayName=tt.Root.displayName;var nt=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:a,className:i="",disabled:n=!1})=>{let[s,b]=(0,J.useState)(!1),[N,w]=(0,J.useState)(""),V=()=>{n||(b(!0),w(t))},P=async()=>{N!==t&&await a(e,N),b(!1)},O=T=>{T.key==="Enter"&&!r||T.key==="Enter"&&T.ctrlKey&&r?P():T.key==="Escape"&&(b(!1),w(""))};return(0,At.jsxs)("div",{className:`space-y-2 ${i}`,children:[(0,At.jsx)(ot,{children:o}),s?r?(0,At.jsx)(Te,{value:N,onChange:T=>w(T.target.value),onBlur:P,onKeyDown:O,autoFocus:!0,rows:4,className:"resize-none"}):(0,At.jsx)(de,{value:N,onChange:T=>w(T.target.value),onBlur:P,onKeyPress:O,autoFocus:!0,className:"text-lg font-medium"}):(0,At.jsxs)("div",{onClick:V,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,At.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click A edit..."}),!n&&(0,At.jsx)(A.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var Ro=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Po=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),Do=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),So=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Mo=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),To=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),ko=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),Ze=require("@payloadcms/richtext-lexical/lexical/list"),Eo=require("@payloadcms/richtext-lexical/lexical/rich-text"),Io=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var Co=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),Oe=require("@payloadcms/richtext-lexical/lexical/utils"),g=require("@payloadcms/richtext-lexical/lexical"),vt=require("@payloadcms/richtext-lexical/lexical/selection");var ke=q(require("react")),F=q(require("@radix-ui/react-dialog"));var Jt=F.Root;var Nr=F.Portal;var Xt=ke.forwardRef(({className:e,...t},o)=>(0,At.jsx)(F.Overlay,{ref:o,className:h("fixed inset-0 At-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Xt.displayName=F.Overlay.displayName;var at=ke.forwardRef(({className:e,children:t,...o},r)=>(0,At.jsxs)(Nr,{children:[(0,At.jsx)(Xt,{}),(0,At.jsxs)(F.Content,{ref:r,className:h("fixed left-[50%] top-[50%] At-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-A-left-1/2 data-[state=closed]:slide-out-A-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,At.jsxs)(F.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,At.jsx)(A.X,{className:"h-4 w-4"}),(0,At.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));at.displayName=F.Content.displayName;var it=({className:e,...t})=>(0,At.jsx)("div",{className:h("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});it.displayName="DialogHeader";var Rr=({className:e,...t})=>(0,At.jsx)("div",{className:h("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Rr.displayName="DialogFooter";var st=ke.forwardRef(({className:e,...t},o)=>(0,At.jsx)(F.Title,{ref:o,className:h("text-lg font-semibold leading-none tracking-tight",e),...t}));st.displayName=F.Title.displayName;var Pr=ke.forwardRef(({className:e,...t},o)=>(0,At.jsx)(F.Description,{ref:o,className:h("text-sm text-muted-foreground",e),...t}));Pr.displayName=F.Description.displayName;var so=require("@radix-ui/react-dialog"),We=require("@payloadcms/richtext-lexical/client");var ct=q(require("bson-objectid"));var Yt=require("@payloadcms/ui");var qt=q(require("react")),re=q(require("@radix-ui/react-tooltip"));var Be=re.Provider,Fe=re.Root,$e=re.Trigger,Ee=qt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,At.jsx)(re.Portal,{children:(0,At.jsx)(re.Content,{ref:r,sideOffset:t,className:h("At-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ee.displayName=re.Content.displayName;var Dr=e=>{let{data:{relationTo:t,value:o},nodeKey:r}=e,[a]=(0,Co.useLexicalComposerContext)(),[i,n]=(0,J.useState)(""),[s,b]=(0,J.useState)(""),[N,w]=(0,J.useState)(""),V=async u=>{console.log("fetchMedia",u)};(0,J.useEffect)(()=>{typeof o=="string"?o.length===24?V(o):(n(o||""),w(D(T())),b(O()||"")):typeof o=="object"&&(n(`${process.env.NEXT_PUBLIC_API_URL}${o.url}`||""),w(D(o.filesize)),b(o.mimeType?.split("/")[1]||""))},[]);let P=(0,J.useCallback)(()=>{a.update(()=>{(0,g.$getNodeByKey)(r)?.remove()})},[a,r]),O=()=>{let u=e.data.value;return typeof u=="string"?u.split(";base64")[0]?.split("image/")[1]:""},T=()=>{let u=e.data.value;if(typeof u=="string"){let R=u.split(",")[1]?.length||0;return 4*Math.ceil(R/3)*.5624896334383812/1e3}return 0};function D(u){if(u>=1e6){let k=u/1e6;return`${k>=10?Math.round(k).toString():k.toFixed(1)} MB`}return`${Math.floor(u/1e3)} KB`}return(0,$.jsx)("div",{className:"my-2",contentEditable:!1,children:(0,$.jsxs)("div",{className:"border border-slate-800 rounded-xl overflow-clip w-60 flex flex-col gap-2 bg-[#222222]",children:[(0,$.jsxs)("div",{className:"flex gap-2 border-b border-b-slate-100/10",children:[(0,$.jsx)("div",{className:"flex-1",children:e.data.value?(0,$.jsx)("img",{className:"object-cover m-0 w-full min-w-[115px] min-h-[105px]","data-lexical-upload-id":o,"data-lexical-upload-relation-A":t,src:i}):(0,$.jsx)(Yt.File,{})}),(0,$.jsx)(Be,{children:(0,$.jsxs)(Fe,{children:[(0,$.jsxs)($e,{className:"flex-1 flex justify-center items-center text-[#b5b5b5]",children:[(0,$.jsx)("span",{className:"font-medium text-sm",children:"Media"}),(0,$.jsx)("button",{onClick:u=>{u.preventDefault(),P()},className:"flex-1 flex justify-center items-center",children:(0,$.jsx)(A.X,{width:24,height:24,strokeWidth:1})})]}),(0,$.jsx)(Ee,{children:(0,$.jsx)("span",{children:"Remove image"})})]})})]}),(0,$.jsxs)("div",{className:"flex items-center justify-center gap-4 py-3 flex-1 text-xs font-bold",children:[(0,$.jsx)("span",{className:"",children:s?.toLocaleUpperCase()}),(0,$.jsx)("span",{children:N})]})]})})},oo=Dr;function Sr(e){if(e.hasAttribute("data-lexical-upload-relation-A")&&e.hasAttribute("data-lexical-upload-id")){let o=e.getAttribute("data-lexical-upload-id");if(o)return{node:Re({fields:{},relationTo:"media",value:o})}}return e.src.startsWith("file:///"),null}var Ie=class extends We.UploadNode{static importDOM(){return{img:()=>({conversion:Sr,priority:0})}}static importJSON(t){t.version===1&&t?.value?.id&&(t.value=t.value.id),t.version===2&&!t?.id&&(t.id=new ct.default().toHexString(),t.version=3);let o={id:t.id??new ct.default().toHexString(),fields:t.fields,relationTo:"media",value:t.value},r=Re(o);return r.setFormat?.(t.format),r}decorate(){return(0,At.jsx)(oo,{data:this.__data,nodeKey:this.getKey()})}};function Re(e){return new Ie({data:e})}var Mr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tr=e=>Mr?(e||window).getSelection():null,Un=(0,g.createCommand)("INSERT_UPLOAD_WITH_DRAWER_COMMAND"),dt=(0,g.createCommand)("INSERT_UPLOAD_COMMAND");function lo({activeEditor:e,onClose:t,isOpen:o=!1}){let r=(0,J.useRef)(!1),[a,i]=(0,J.useState)(!0),[n,s]=(0,J.useState)(""),[b,N]=(0,J.useState)(""),[w,V]=(0,J.useState)(!1),[P,O]=(0,J.useState)("left"),T=n==="",D=C=>{V(C.target.checked)},u=C=>{O(C.target.value)},R=C=>{let K=new FileReader;K.onload=function(){return typeof K.result=="string"&&s(K.result),""},C!==null&&C[0]&&K.readAsDataURL(C[0])};(0,J.useEffect)(()=>{r.current=!1;let C=K=>{r.current=K.altKey};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[e]),(0,J.useEffect)(()=>{a||t()},[a]),(0,J.useEffect)(()=>{i(o)},[o]);let k=({editor:C,relationTo:K,replaceNodeKey:te,value:ae})=>{if(te)C.update(()=>{let X=(0,g.$getNodeByKey)(te);X&&X.replace(Re({id:"",fields:{},relationTo:"media",value:ae}))});else{let X=C.dispatchCommand(dt,{fields:null,relationTo:"media",value:ae})}},G=()=>{k({editor:e,relationTo:"media",replaceNodeKey:null,value:{altText:b,src:n,showCaption:w,position:P}.src}),i(!1),t()};return(0,At.jsx)(Jt,{open:a,onOpenChange:C=>i(C),children:(0,At.jsxs)(at,{children:[(0,At.jsxs)(it,{children:[(0,At.jsx)(st,{children:"Upload Image"}),(0,At.jsx)(so.DialogDescription,{children:"Description"})]}),(0,At.jsxs)("div",{className:"",children:[(0,At.jsx)("div",{style:{marginBottom:"1em"},children:(0,At.jsx)(de,{type:"file",onChange:C=>R(C.target.files),accept:"image/*","data-test-id":"image-modal-file-upload"})}),(0,At.jsx)("div",{style:{marginBottom:"1em"},children:(0,At.jsx)(de,{"aria-label":"Alt Text",placeholder:"Descriptive alternative text",onChange:C=>N(C.currentTarget.value),value:b,"data-test-id":"image-modal-alt-text-input"})}),(0,At.jsx)(ce,{"data-test-id":"image-modal-file-upload-btn",disabled:T,onClick:()=>G(),children:"Confirm"})]})]})})}function pt({captionsEnabled:e}){let[t]=(0,Co.useLexicalComposerContext)();return(0,J.useEffect)(()=>{if(!t.hasNodes([We.UploadNode]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return(0,Oe.mergeRegister)(t.registerCommand(g.DRAGSTART_COMMAND,o=>kr(o),g.COMMAND_PRIORITY_HIGH),t.registerCommand(g.DRAGOVER_COMMAND,o=>Er(o),g.COMMAND_PRIORITY_LOW),t.registerCommand(g.DROP_COMMAND,o=>Ir(o,t),g.COMMAND_PRIORITY_HIGH))},[e,t]),null}function kr(e){if(!mt())return!1;let o=e.dataTransfer;return o?(o.setData("text/plain","_"),!0):!1}function Er(e){return mt()?(co(e)||e.preventDefault(),!0):!1}function Ir(e,t){let o=mt();if(!o)return!1;if(e.preventDefault(),co(e)){let r=Hr(e);o.remove();let a=(0,g.$createRangeSelection)();r!=null&&a.applyDOMRange(r),(0,g.$setSelection)(a)}return!0}function mt(){let e=(0,g.$getSelection)();if(!(0,g.$isNodeSelection)(e))return null;let o=e.getNodes()[0];return(0,We.$isUploadNode)(o)?o:null}function co(e){let t=e.target;return!!(t&&t instanceof HTMLElement&&!t.closest("code, span.editor-image")&&t.parentElement&&t.parentElement.closest("div.ContentEditable__root"))}function Hr(e){let t,o=e.target,r=o==null?null:o.nodeType===9?o.defaultView:o.ownerDocument.defaultView,a=Tr(r);if(document.caretRangeFromPoint)t=document.caretRangeFromPoint(e.clientX,e.clientY);else if(e.rangeParent&&a!==null)a.collapse(e.rangeParent,e.rangeOffset||0),t=a.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return t}var Lr=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})}),po=Lr;var Ar=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})}),mo=Ar;var Vr=()=>(0,At.jsxs)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{At:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),(0,At.jsx)("path",{At:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),uo=Vr;var Or=()=>(0,At.jsxs)("svg",{"aria-hidden":"true",className:"",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,At.jsx)("path",{At:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),(0,At.jsx)("path",{At:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),fo=Or;var _r=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})}),go=_r;var zr=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})}),ho=zr;var bo=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})}),vo=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})}),xo=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})}),yo=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})}),wo=()=>(0,At.jsx)("svg",{"aria-hidden":"true",className:"w-5 size-5",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,At.jsx)("path",{At:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});var me=q(require("react")),y=q(require("@radix-ui/react-dropdown-menu")),Pe=require("@radix-ui/react-icons");var Ge=y.Root,Ke=y.Trigger;var Ur=me.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,At.jsxs)(y.SubTrigger,{ref:a,className:h("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,At.jsx)(Pe.ChevronRightIcon,{className:"ml-auto"})]}));Ur.displayName=y.SubTrigger.displayName;var Br=me.forwardRef(({className:e,...t},o)=>(0,At.jsx)(y.SubContent,{ref:o,className:h("At-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Br.displayName=y.SubContent.displayName;var Ae=me.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,At.jsx)(y.Portal,{children:(0,At.jsx)(y.Content,{ref:r,sideOffset:t,className:h("At-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ae.displayName=y.Content.displayName;var Ve=me.forwardRef(({className:e,inset:t,...o},r)=>(0,At.jsx)(y.Item,{ref:r,className:h("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ve.displayName=y.Item.displayName;var Fr=me.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,At.jsxs)(y.CheckboxItem,{ref:a,className:h("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,At.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,At.jsx)(y.ItemIndicator,{children:(0,At.jsx)(Pe.CheckIcon,{className:"h-4 w-4"})})}),t]}));Fr.displayName=y.CheckboxItem.displayName;var $r=me.forwardRef(({className:e,children:t,...o},r)=>(0,At.jsxs)(y.RadioItem,{ref:r,className:h("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,At.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,At.jsx)(y.ItemIndicator,{children:(0,At.jsx)(Pe.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));$r.displayName=y.RadioItem.displayName;var Wr=me.forwardRef(({className:e,inset:t,...o},r)=>(0,At.jsx)(y.Label,{ref:r,className:h("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Wr.displayName=y.Label.displayName;var Gr=me.forwardRef(({className:e,...t},o)=>(0,At.jsx)(y.Separator,{ref:o,className:h("-mx-1 my-1 h-px bg-muted",e),...t}));Gr.displayName=y.Separator.displayName;var Kr=({className:e,...t})=>(0,At.jsx)("span",{className:h("ml-auto text-xs tracking-widest opacity-60",e),...t});Kr.displayName="DropdownMenuShortcut";var bt=1;function jr(){return(0,At.jsx)("span",{className:"border border-[#222222]"})}function xt(){let[e]=(0,Co.useLexicalComposerContext)(),t=(0,J.useRef)(null),[o,r]=(0,J.useState)(!1),[a,i]=(0,J.useState)(!1),[n,s]=(0,J.useState)(!1),[b,N]=(0,J.useState)(!1),[w,V]=(0,J.useState)(!1),[P,O]=(0,J.useState)(!1),[T,D]=(0,J.useState)(!1),[u,R]=(0,J.useState)(!1),[k,G]=(0,J.useState)(!1),[C,K]=(0,J.useState)("left"),[te,ae]=(0,J.useState)("p"),X=p=>{e.update(()=>{let S=(0,g.$getSelection)();(0,g.$isRangeSelection)(S)&&(p==="p"?(0,vt.$setBlocksType)(S,()=>(0,g.$createParagraphNode)()):(0,vt.$setBlocksType)(S,()=>(0,Eo.$createHeadingNode)(p)))})},ie=(0,J.useCallback)(()=>{let p=(0,g.$getSelection)();if((0,g.$isRangeSelection)(p)){s(p.hasFormat("bold")),N(p.hasFormat("italic")),V(p.hasFormat("underline")),O(p.hasFormat("strikethrough")),D(p.hasFormat("subscript")),R(p.hasFormat("superscript"));let S=p.anchor.getNode(),_=S;for(;_&&!(0,g.$isParagraphNode)(_)&&_!==(0,g.$getRoot)();){let Z=_.getParent();Z&&(_=Z)}if(_){let Z=_.getFormatType();K(Z||"left")}let oe=S.getTopLevelElement()?.__tag;ae(oe||"p")}},[]);(0,J.useEffect)(()=>(0,Oe.mergeRegister)(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{ie()})}),e.registerCommand(g.SELECTION_CHANGE_COMMAND,(p,S)=>(ie(),!1),bt),e.registerCommand(g.CAN_UNDO_COMMAND,p=>(r(p),!1),bt),e.registerCommand(g.CAN_REDO_COMMAND,p=>(i(p),!1),bt),(0,Oe.mergeRegister)(e.registerCommand(dt,p=>(e.update(()=>{let S=(0,g.$getSelection)()||(0,g.$getPreviousSelection)();if((0,g.$isRangeSelection)(S)){let _=Re({id:p.id,fields:p.fields,relationTo:p.relationTo,value:p.value}),{focus:oe}=S,Z=oe.getNode();(0,Oe.$insertNodeToNearestRoot)(_),(0,g.$isParagraphNode)(Z)&&!Z.__first&&Z.remove()}}),!0),g.COMMAND_PRIORITY_EDITOR))),[e,ie]);let we=[[{label:"Undo",icon:(0,At.jsx)(A.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,At.jsx)(A.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.UNDO_COMMAND,void 0)},disabled:!a}],[{label:"Bold",icon:(0,At.jsx)(po,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:n},{label:"Italic",icon:(0,At.jsx)(mo,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:b},{label:"Underline",icon:(0,At.jsx)(uo,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:w},{label:"Strikethrough",icon:(0,At.jsx)(fo,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:P},{label:"Subscript",icon:(0,At.jsx)(go,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:T},{label:"Superscript",icon:(0,At.jsx)(ho,{}),onClick:()=>{e.dispatchCommand(g.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:u}]],se=[{label:"Left Align",direction:"left",icon:(0,At.jsx)(A.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,At.jsx)(A.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,At.jsx)(A.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,At.jsx)(A.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(g.FORMAT_ELEMENT_COMMAND,"justify")}}],ue=[{label:"Normal Text",value:"p",icon:(0,At.jsx)(bo,{}),onClick:()=>X("p")},{label:"Heading 1",value:"h1",icon:(0,At.jsx)(vo,{}),onClick:()=>X("h1")},{label:"Heading 2",value:"h2",icon:(0,At.jsx)(xo,{}),onClick:()=>X("h2")},{label:"Heading 3",value:"h3",icon:(0,At.jsx)(yo,{}),onClick:()=>X("h3")},{label:"Heading 4",value:"h4",icon:(0,At.jsx)(wo,{}),onClick:()=>X("h4")},...[{label:"Unordered List",value:"ul",icon:(0,At.jsx)(A.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ze.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,At.jsx)(A.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(Ze.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],fe=[{label:"Insert Image",icon:(0,At.jsx)(A.ImageUp,{width:15,height:15}),onClick:()=>{G(!0)},disabled:!1}];return(0,At.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2 sticky top-0 bg-black At-50",children:(0,At.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[we.map((p,S)=>(0,At.jsxs)(J.Fragment,{children:[(0,At.jsx)("div",{className:"flex items-center gap-2",children:p.map((_,oe)=>(0,At.jsx)("div",{role:"button","aria-disabled":_.disabled||!1,onClick:_.onClick,className:h("p-1 transition-all flex items-center justify-center rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",_.active&&"bg-[#3c3c3c]"),"aria-label":_.label,children:(0,At.jsx)(Be,{children:(0,At.jsxs)(Fe,{children:[(0,At.jsx)($e,{className:"text-[#b5b5b5]",children:_.icon}),(0,At.jsx)(Ee,{children:(0,At.jsx)("p",{children:_.label})})]})})},oe))}),(0,At.jsx)(jr,{})]},`toolbar-option-${p.length}-${S}`)),(0,At.jsxs)(Ge,{children:[(0,At.jsxs)(Ke,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[se.find(p=>p.direction===C)?.icon,se.find(p=>p.direction===C)?.label,(0,At.jsx)(A.ChevronDown,{width:15,height:15})]}),(0,At.jsx)(Ae,{className:"bg-black hover:bg-black",children:se.map((p,S)=>(0,At.jsxs)(Ve,{onClick:p.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,At.jsx)("span",{children:p.icon}),(0,At.jsx)("span",{children:p.label})]},`${p.label}-${S}`))})]}),(0,At.jsxs)(Ge,{children:[(0,At.jsxs)(Ke,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[ue.find(p=>p.value===te)?.icon,ue.find(p=>p.value===te)?.label,(0,At.jsx)(A.ChevronDown,{width:15,height:15})]}),(0,At.jsx)(Ae,{className:"bg-black hover:bg-black",children:ue.map((p,S)=>(0,At.jsxs)(Ve,{onClick:p.onClick,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,At.jsx)("span",{children:p.icon}),(0,At.jsx)("span",{children:p.label})]},`heading-option-${p.label}-${S}`))})]}),(0,At.jsxs)(Ge,{children:[(0,At.jsxs)(Ke,{className:"flex items-center justify-center gap-2 px-2 py-1 rounded hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c] text-[#b5b5b5] text-xs",children:[(0,At.jsx)(A.Plus,{width:15,height:15}),(0,At.jsx)(A.ChevronDown,{width:15,height:15})]}),(0,At.jsx)(Ae,{className:"bg-black hover:bg-black",children:fe.map((p,S)=>(0,At.jsxs)(Ve,{onClick:p.onClick,disabled:p.disabled,className:"flex items-center gap-2 text-xs text-[#b5b5b5] hover:bg-[#3c3c3c] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-[#3a3a3a] focus:ring-[#3c3c3c]",children:[(0,At.jsx)("span",{children:p.icon}),(0,At.jsx)("span",{children:p.label})]},S))})]}),k&&(0,At.jsx)(lo,{activeEditor:e,onClose:()=>{G(!1)},isOpen:k})]})})}var Zr=({setValue:e,value:t,name:o,editable:r=!0})=>{let[a]=(0,Co.useLexicalComposerContext)(),i=n=>{n.read(()=>{let s=n.toJSON();e?.(()=>s)})};return(0,J.useEffect)(()=>{a.setEditable(r)},[r]),(0,J.useEffect)(()=>{t&&a.update(()=>{a.setEditorState(a.parseEditorState(t))})},[]),(0,At.jsx)("div",{className:"w-full",children:(0,At.jsxs)("div",{className:" ",children:[r&&(0,At.jsx)(xt,{}),(0,At.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,At.jsx)(To.RichTextPlugin,{contentEditable:(0,At.jsx)(Do.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:So.LexicalErrorBoundary}),r&&(0,At.jsxs)(At.Fragment,{children:[(0,At.jsx)(Mo.HistoryPlugin,{}),(0,At.jsx)(Ro.AutoFocusPlugin,{}),(0,At.jsx)(ko.ListPlugin,{}),(0,At.jsx)(Io.OnChangePlugin,{onChange:i}),(0,At.jsx)(pt,{})]})]})]})})},Jr=({setValue:e,value:t,name:o,editable:r=!0})=>(0,At.jsx)(Po.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[Ze.ListNode,Ze.ListItemNode,Eo.HeadingNode,Ie],onError(i){throw console.error("Lexical error:",i),i},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:(0,At.jsx)(Zr,{value:t,setValue:e,name:o,editable:r})}),Lo=Jr;function Xr({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:a=[],knowledgeContexts:i=[]}){let[n,s]=(0,J.useState)({...e,updatedAt:new Date}),[b,N]=(0,J.useState)(!1),[w,V]=(0,J.useState)(n.richTextContent),[P,O]=(0,J.useState)(!1),T=(0,J.useRef)(null),D=(0,J.useRef)(""),u=(0,J.useRef)(null),R=(0,J.useRef)(null),k=l=>{let m=new WeakSet,v=L=>L&&typeof L=="object"?m.has(L)?null:(m.add(L),Array.isArray(L)?L.map(v):Object.keys(L).sort().reduce((B,xe)=>(B[xe]=v(L[xe]),B),{})):L;return JSON.stringify(v(l))},G=l=>l?l.replace(/\s+/g," ").trim():"",C=l=>{if(!l)return{};let m={};return Object.keys(l).sort().forEach(v=>{m[v]=String(l[v]??"").trim()}),m},K=()=>n.format==="richText"?k(w):G(n.content),te=()=>{let l={title:G(n.title),description:G(n.description),format:n.format,metadata:C(n.metadata),content:K()},m=k(l),v=5381;for(let L=0;L<m.length;L++)v=v*33^m.charCodeAt(L);return(v>>>0).toString(16)},ae=(l,m)=>{if(l===m)return!1;if(n.format!=="richText"){let v=ie(l),L=K();if(v==null)return!0;let B=v.length,xe=L.length,De=Math.abs(xe-B),_e=B===0?1:De/B;return G(v)===G(L)&&De<3?!1:De>=10||_e>=.02}return!0},X=(0,J.useRef)(new Map),ie=l=>{let m=X.current.get(l);return m==null?null:"x".repeat(m)};(0,J.useEffect)(()=>(R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{let l=te(),m=D.current;if(ae(m,l)&&(O(!0),t({...n,richTextContent:w},"autosave"),D.current=l,n.format!=="richText")){let v=K();X.current.set(l,v.length)}},800),()=>{R.current&&clearTimeout(R.current)}),[n.title,n.description,n.format,n.content,n.metadata,w]),(0,J.useEffect)(()=>{let l=()=>{let m=te();m!==D.current&&(t({...n,richTextContent:w},"autosave"),D.current=m)};return window.addEventListener("pagehide",l),window.addEventListener("beforeunload",l),()=>{window.removeEventListener("pagehide",l),window.removeEventListener("beforeunload",l)}},[n,w]),(0,J.useEffect)(()=>(P&&(u.current=setTimeout(()=>{O(!1)},2e3)),()=>{u.current&&clearTimeout(u.current)}),[P]),(0,J.useEffect)(()=>{s(e)},[e]);let we=l=>{switch(l){case"markdown":case"mdx":return(0,At.jsx)(A.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,At.jsx)(A.File,{className:"h-6 w-6 text-success"});case"text":return(0,At.jsx)(A.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,At.jsx)(A.File,{className:"h-6 w-6 text-muted-foreground"})}},se=l=>{switch(l){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"}},M=()=>{let l=new Set,m=new Set;return i.forEach(v=>{v.menuConfig.groupBy.forEach(L=>l.add(L))}),a.forEach(v=>{v.metadata&&Object.keys(v.metadata).forEach(L=>m.add(L))}),{contextKeys:Array.from(l).sort(),documentKeys:Array.from(m).sort(),allKeys:Array.from(new Set([...l,...m])).sort()}},ue=l=>{let m=new Set;return a.forEach(v=>{v.metadata?.[l]&&m.add(String(v.metadata[l]))}),Array.from(m).sort()},fe=M(),p=()=>{t({...n,richTextContent:w},"autosave")},S=(l,m)=>{s(v=>({...v,metadata:{...v.metadata,[l]:m}}))},_=(l,m)=>{m==="__custom__"?S(l,""):S(l,m)},oe=()=>{S("","")},Z=l=>{s(m=>{let v={...m.metadata};return delete v[l],{...m,metadata:v}})};return(0,At.jsxs)(wt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-screen flex flex-col",children:[(0,At.jsxs)("div",{className:"border-b border-border bg-card p-8 pb-6",children:[(0,At.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,At.jsx)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:(0,At.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,At.jsxs)("div",{className:"flex items-start gap-4 mb-0 leading-tight",children:[(0,At.jsx)("div",{className:"flex-1 min-w-0",children:(0,At.jsx)(nt,{fieldName:"title",value:n.title,label:"",onSave:(l,m)=>s(v=>({...v,title:m})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,At.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${se(n.format)} flex-shrink-0 mt-1`,children:n.format.toUpperCase()})]}),(0,At.jsx)("div",{className:"mt-2",children:(0,At.jsx)(nt,{fieldName:"description",value:n.description||"Click A add description...",label:"",multiline:!0,onSave:(l,m)=>s(v=>({...v,description:m})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})}),(0,At.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,At.jsxs)(ce,{variant:"ghost",size:"sm",onClick:()=>N(!b),className:"gap-2",children:[(0,At.jsx)(A.Info,{className:"h-4 w-4"}),"Metadata",n.metadata&&Object.keys(n.metadata).length>0&&(0,At.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:Object.keys(n.metadata).length}),b?(0,At.jsx)(A.ChevronDown,{className:"h-4 w-4"}):(0,At.jsx)(A.ChevronRight,{className:"h-4 w-4"})]}),(0,At.jsxs)(ce,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,At.jsx)(A.X,{className:"h-4 w-4"}),"Close"]}),(0,At.jsxs)(ce,{size:"sm",onClick:p,className:"gap-2",disabled:P,children:[P?(0,At.jsx)(A.Loader2,{className:"h-4 w-4 animate-spin"}):(0,At.jsx)(A.Save,{className:"h-4 w-4"}),P?"Auto-saving...":"Save"]})]})]}),(0,At.jsx)(wt.motion.div,{initial:!1,animate:{height:b?"auto":0,opacity:b?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden h-full max-h-full",children:(0,At.jsxs)("div",{className:"pt-4 border-t border-border mt-4 h-screen max-h-full flex",children:[(0,At.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,At.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,At.jsx)(A.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,At.jsxs)(ce,{type:"button",variant:"outline",size:"sm",onClick:oe,className:"gap-1 h-8",children:[(0,At.jsx)(A.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),(0,At.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:n.metadata&&Object.keys(n.metadata).length>0?(0,At.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([l,m],v)=>{let L=ue(l);return(0,At.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,At.jsx)(de,{value:l,onChange:B=>{let xe=B.target.value||"",De=n.metadata?.[l];s(_e=>{let Je={..._e.metadata};return delete Je[l],xe&&(Je[xe]=De||""),{..._e,metadata:Je}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${l}`}),(0,At.jsx)("datalist",{id:`metadata-keys-${l}`,children:fe.allKeys.map(B=>(0,At.jsx)("option",{value:B},B))}),(0,At.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),L.length>0?(0,At.jsxs)(Ut,{value:String(m||""),onValueChange:B=>_(l,B),children:[(0,At.jsx)(Qe,{className:"flex-1 h-8 text-sm",children:(0,At.jsx)(Bt,{placeholder:"Value"})}),(0,At.jsxs)(et,{children:[L.map(B=>(0,At.jsx)(Ue,{value:B,children:B},B)),(0,At.jsx)(Ue,{value:"__custom__",children:(0,At.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,At.jsx)(de,{value:String(m||""),onChange:B=>S(l,B.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,At.jsx)(ce,{type:"button",variant:"ghost",size:"sm",onClick:()=>Z(l),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,At.jsx)(A.X,{className:"h-3 w-3"})})]},`metadata-key-${v}`)})}):(0,At.jsxs)("div",{className:"text-center py-4",children:[(0,At.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Eo metadata fields"}),(0,At.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" A create metadata'})]})})]})})]}),(0,At.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,At.jsx)("div",{className:"p-8 pt-0 h-full max-h-full overflow-auto",children:n.format==="richText"?(0,At.jsx)(Lo,{setValue:V,value:w,name:"richTextContent"}):(0,At.jsx)(Te,{value:n.content||"",onChange:l=>s(m=>({...m,content:l.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})})})]})}0&&(module.exports={DocumentEdit});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-HMZKODQJ.mjs";import"../../chunk-D7VHHXGM.mjs";import"../../chunk-UOA5RYVR.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-RKS7CWAP.mjs";import"../../chunk-BZEGLKRZ.mjs";import"../../chunk-K7N3FRGH.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentEdit};
2
+ "use strict";import{a}from"../../chunk-ACGCNGIH.mjs";import"../../chunk-PZFYJ5FS.mjs";import"../../chunk-LEUI66J6.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-RKS7CWAP.mjs";import"../../chunk-BZEGLKRZ.mjs";import"../../chunk-K7N3FRGH.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-KY7WQYN4.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentEdit};