cortex-react-components 2.17.0 → 2.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  2. package/dist/{chunk-FYQBRCQM.mjs → chunk-2BRDNDUB.mjs} +1 -1
  3. package/dist/chunk-3F6AUCZF.mjs +1 -0
  4. package/dist/{chunk-DXE6AGJX.mjs → chunk-3GROWGZ5.mjs} +1 -1
  5. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-3HNU2NYP.mjs} +1 -1
  6. package/dist/{chunk-HDKHF3EA.mjs → chunk-3NRXQBBS.mjs} +1 -1
  7. package/dist/{chunk-FEWOSBUJ.mjs → chunk-3Y7QG6VP.mjs} +1 -1
  8. package/dist/{chunk-MO4HRQEL.mjs → chunk-5MWZTJYP.mjs} +1 -1
  9. package/dist/{chunk-XXL6LGBB.mjs → chunk-6OJBBMB5.mjs} +1 -1
  10. package/dist/{chunk-66MLFLL2.mjs → chunk-723U74ZC.mjs} +1 -1
  11. package/dist/{chunk-B44DI6WT.mjs → chunk-72BE5VJT.mjs} +1 -1
  12. package/dist/{chunk-BQQ4V4PX.mjs → chunk-75F3LJMX.mjs} +1 -1
  13. package/dist/{chunk-4SRUEQTP.mjs → chunk-7R47MHQE.mjs} +1 -1
  14. package/dist/{chunk-UPDEVKI7.mjs → chunk-AGDKFAMN.mjs} +1 -1
  15. package/dist/{chunk-PTZT4QJW.mjs → chunk-AJQHGVZ5.mjs} +1 -1
  16. package/dist/{chunk-HKMNAXLM.mjs → chunk-C4RWEPVF.mjs} +1 -1
  17. package/dist/{chunk-XHXUT3LD.mjs → chunk-CRAFZGCI.mjs} +1 -1
  18. package/dist/{chunk-E6UOMRHI.mjs → chunk-CTTBF7F4.mjs} +1 -1
  19. package/dist/{chunk-7OMPPFGG.mjs → chunk-CXOVEABI.mjs} +1 -1
  20. package/dist/{chunk-NIIQPCQO.mjs → chunk-DNMPFZJH.mjs} +1 -1
  21. package/dist/chunk-EGEO3FNE.mjs +1 -0
  22. package/dist/{chunk-R6AYIVIR.mjs → chunk-EM3T2XYC.mjs} +1 -1
  23. package/dist/{chunk-PNUBVBSR.mjs → chunk-FE7ZGUPU.mjs} +1 -1
  24. package/dist/{chunk-D2ARSS5J.mjs → chunk-GCRVTTBJ.mjs} +1 -1
  25. package/dist/{chunk-F64CA5CH.mjs → chunk-GHOL5L32.mjs} +1 -1
  26. package/dist/{chunk-P6OSMPUQ.mjs → chunk-GTZJWMZR.mjs} +1 -1
  27. package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
  28. package/dist/chunk-IBUT2LYD.mjs +1 -0
  29. package/dist/chunk-K3YZPHOE.mjs +1 -0
  30. package/dist/{chunk-KZAYLEFB.mjs → chunk-KWYJ3XZI.mjs} +1 -1
  31. package/dist/{chunk-U3FYDDE2.mjs → chunk-NINFDOV5.mjs} +1 -1
  32. package/dist/chunk-OYE7B4PN.mjs +4 -0
  33. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  34. package/dist/{chunk-OQCMTGML.mjs → chunk-PWFVXG44.mjs} +1 -1
  35. package/dist/{chunk-Q6PN3Y7R.mjs → chunk-Q4SENBJV.mjs} +1 -1
  36. package/dist/{chunk-GETYSIZV.mjs → chunk-RGOKBIQ5.mjs} +1 -1
  37. package/dist/chunk-RGZHZIKQ.mjs +4 -0
  38. package/dist/{chunk-GAZHKHGB.mjs → chunk-RJGYVDOU.mjs} +1 -1
  39. package/dist/{chunk-L5NPH5RX.mjs → chunk-RQLUMNJE.mjs} +1 -1
  40. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  41. package/dist/{chunk-XC3Y62VP.mjs → chunk-SH2SBOG7.mjs} +1 -1
  42. package/dist/{chunk-U6E6BMAF.mjs → chunk-SMDC36XJ.mjs} +1 -1
  43. package/dist/{chunk-PEMW5ADK.mjs → chunk-TKXBSTKU.mjs} +1 -1
  44. package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
  45. package/dist/{chunk-QG4QCB5I.mjs → chunk-VDN4LQSS.mjs} +1 -1
  46. package/dist/{chunk-2GM2LPLB.mjs → chunk-WIRQ5IRT.mjs} +1 -1
  47. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  48. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  49. package/dist/chunk-Z2SJVYUM.mjs +4 -0
  50. package/dist/{chunk-ZG5N4C4S.mjs → chunk-Z6HIWYMX.mjs} +1 -1
  51. package/dist/{chunk-QQFIVSBW.mjs → chunk-ZEALRBXW.mjs} +1 -1
  52. package/dist/components/AdvancedComponents/AppSidebar.js +1 -1
  53. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  54. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  55. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  56. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  57. package/dist/components/AdvancedComponents/index.js +1 -1
  58. package/dist/components/AdvancedComponents/index.mjs +1 -1
  59. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  60. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  61. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  62. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  63. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  64. package/dist/components/Blocks/Banner.mjs +1 -1
  65. package/dist/components/Blocks/CallToAction.mjs +1 -1
  66. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  67. package/dist/components/Blocks/Code.client.mjs +1 -1
  68. package/dist/components/Blocks/Code.mjs +1 -1
  69. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  70. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  71. package/dist/components/Blocks/Content.mjs +1 -1
  72. package/dist/components/Blocks/CopyButton.mjs +1 -1
  73. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  74. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  75. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  76. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  77. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  78. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  79. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  80. package/dist/components/Blocks/index.mjs +1 -1
  81. package/dist/components/CRM/CogeBoard.mjs +1 -1
  82. package/dist/components/CRM/DealCard.mjs +1 -1
  83. package/dist/components/CRM/DealDetails.mjs +1 -1
  84. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  85. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  86. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  87. package/dist/components/CRM/NewDealForm.mjs +1 -1
  88. package/dist/components/CRM/index.mjs +1 -1
  89. package/dist/components/Cards/ContentCard.mjs +1 -1
  90. package/dist/components/Cards/CustomerCard.mjs +1 -1
  91. package/dist/components/Cards/EventCard.mjs +1 -1
  92. package/dist/components/Cards/FeatureCard.mjs +1 -1
  93. package/dist/components/Cards/HeroCard.mjs +1 -1
  94. package/dist/components/Cards/Image.mjs +1 -1
  95. package/dist/components/Cards/PricingCard.mjs +1 -1
  96. package/dist/components/Cards/ServiceCard.js +1 -1
  97. package/dist/components/Cards/ServiceCard.mjs +1 -1
  98. package/dist/components/Cards/index.mjs +1 -1
  99. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  100. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  101. package/dist/components/Chat/ChatInterface.mjs +1 -1
  102. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  103. package/dist/components/Chat/ChatMessage.mjs +1 -1
  104. package/dist/components/Chat/CopilotInterface.js +1 -1
  105. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  106. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  107. package/dist/components/Chat/PartTypes/Reasoning.js +1 -1
  108. package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
  109. package/dist/components/Chat/PartTypes/Response.mjs +1 -1
  110. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  111. package/dist/components/Chat/PartTypes/index.js +6 -6
  112. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  113. package/dist/components/Chat/capability-menu.mjs +1 -1
  114. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  115. package/dist/components/Chat/demo-long-messages.js +1 -1
  116. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  117. package/dist/components/Chat/demo-tests.js +1 -1
  118. package/dist/components/Chat/demo-tests.mjs +1 -1
  119. package/dist/components/Chat/demo.js +1 -1
  120. package/dist/components/Chat/demo.mjs +1 -1
  121. package/dist/components/Chat/example-usage.js +1 -1
  122. package/dist/components/Chat/example-usage.mjs +1 -1
  123. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  124. package/dist/components/Chat/example-with-vercel-ai.js +1 -1
  125. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  126. package/dist/components/Chat/index.js +1 -1
  127. package/dist/components/Chat/index.mjs +1 -1
  128. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  129. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  130. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  131. package/dist/components/DeliveryLead/index.mjs +1 -1
  132. package/dist/components/DigitalColleagues/AppSidebarLeft.js +1 -1
  133. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  134. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  135. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  136. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  137. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  138. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  139. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  140. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  141. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  142. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  143. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  144. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  145. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  146. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  147. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  148. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  149. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  150. package/dist/components/DigitalColleagues/document-edit.js +1 -1
  151. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  152. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  153. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  154. package/dist/components/DigitalColleagues/index.js +1 -1
  155. package/dist/components/DigitalColleagues/index.mjs +1 -1
  156. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  157. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  158. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  159. package/dist/components/Foundary/AppSidebarLeft.js +1 -1
  160. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  161. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  162. package/dist/components/Foundary/Knowledge/add-knowledge-modal.js +1 -1
  163. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  164. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  165. package/dist/components/Foundary/MainPage.mjs +1 -1
  166. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  167. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  168. package/dist/components/Foundary/RichText/index.js +1 -1
  169. package/dist/components/Foundary/RichText/index.mjs +1 -1
  170. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.js +1 -1
  171. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  172. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  173. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  174. package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
  175. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  176. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  177. package/dist/components/Foundary/Views/index.js +1 -1
  178. package/dist/components/Foundary/Views/index.mjs +1 -1
  179. package/dist/components/Foundary/colleague-card.mjs +1 -1
  180. package/dist/components/Foundary/colleague-form.mjs +1 -1
  181. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  182. package/dist/components/Foundary/document-edit.js +1 -1
  183. package/dist/components/Foundary/document-edit.mjs +1 -1
  184. package/dist/components/Foundary/document-preview-examples.js +1 -1
  185. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  186. package/dist/components/Foundary/document-preview.js +1 -1
  187. package/dist/components/Foundary/document-preview.mjs +1 -1
  188. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  189. package/dist/components/Foundary/foundary-layout.js +1 -1
  190. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  191. package/dist/components/Foundary/foundary-options.mjs +1 -1
  192. package/dist/components/Foundary/index.js +1 -1
  193. package/dist/components/Foundary/index.mjs +1 -1
  194. package/dist/components/Foundary/knowledge-browser.js +1 -1
  195. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  196. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  197. package/dist/components/Foundary/team-form.mjs +1 -1
  198. package/dist/components/HeaderFooter/Footer.js +1 -1
  199. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  200. package/dist/components/HeaderFooter/Header.mjs +1 -1
  201. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  202. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  203. package/dist/components/HeaderFooter/RelatedPagesMenu.js +1 -1
  204. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  205. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  206. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  207. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  208. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  209. package/dist/components/HeaderFooter/index.js +1 -1
  210. package/dist/components/HeaderFooter/index.mjs +1 -1
  211. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  212. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  213. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  214. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  215. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  216. package/dist/components/Heros/PostHero/index.mjs +1 -1
  217. package/dist/components/Heros/RenderHero.mjs +1 -1
  218. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  219. package/dist/components/Heros/index.mjs +1 -1
  220. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  221. package/dist/components/Holidays/CalendarView.js +1 -1
  222. package/dist/components/Holidays/CalendarView.mjs +1 -1
  223. package/dist/components/Holidays/HolidayGrid.js +1 -1
  224. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  225. package/dist/components/Holidays/HolidayTracker.js +1 -1
  226. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  227. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  228. package/dist/components/Holidays/index.js +1 -1
  229. package/dist/components/Holidays/index.mjs +1 -1
  230. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  231. package/dist/components/Layouts/Print.mjs +1 -1
  232. package/dist/components/Layouts/SlideShow.js +1 -1
  233. package/dist/components/Layouts/SlideShow.mjs +1 -1
  234. package/dist/components/Layouts/index.js +3 -3
  235. package/dist/components/Layouts/index.mjs +1 -1
  236. package/dist/components/Menus/Categories.js +1 -1
  237. package/dist/components/Menus/Categories.mjs +1 -1
  238. package/dist/components/Menus/Filter.mjs +1 -1
  239. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  240. package/dist/components/Menus/RelatedContent.mjs +1 -1
  241. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  242. package/dist/components/Menus/SidebarRight.mjs +1 -1
  243. package/dist/components/Menus/index.js +1 -1
  244. package/dist/components/Menus/index.mjs +1 -1
  245. package/dist/components/Other/Container.mjs +1 -1
  246. package/dist/components/Other/index.js +1 -1
  247. package/dist/components/Other/index.mjs +1 -1
  248. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  249. package/dist/components/Payload/Link/index.mjs +1 -1
  250. package/dist/components/Payload/Media/index.mjs +1 -1
  251. package/dist/components/Payload/Pagination/index.mjs +1 -1
  252. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  253. package/dist/components/Payload/RichText/index.mjs +1 -1
  254. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  255. package/dist/components/Payload/index.mjs +1 -1
  256. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  257. package/dist/components/Projects/AddFileModal.mjs +1 -1
  258. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  259. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  260. package/dist/components/Projects/EpicFilter.mjs +1 -1
  261. package/dist/components/Projects/EpicsView.mjs +1 -1
  262. package/dist/components/Projects/FileView.mjs +1 -1
  263. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  264. package/dist/components/Projects/KanbanColumn.js +1 -1
  265. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  266. package/dist/components/Projects/PlanningView.mjs +1 -1
  267. package/dist/components/Projects/ProjectPage.js +1 -1
  268. package/dist/components/Projects/ProjectPage.mjs +1 -1
  269. package/dist/components/Projects/ProjectView.mjs +1 -1
  270. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  271. package/dist/components/Projects/TaskCard.mjs +1 -1
  272. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  273. package/dist/components/Projects/TaskSelect.mjs +1 -1
  274. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  275. package/dist/components/Projects/TasksView.js +1 -1
  276. package/dist/components/Projects/TasksView.mjs +1 -1
  277. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  278. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  279. package/dist/components/Projects/file-list.mjs +1 -1
  280. package/dist/components/Projects/index.mjs +1 -1
  281. package/dist/components/Projects/project-card.mjs +1 -1
  282. package/dist/components/Projects/project-form.mjs +1 -1
  283. package/dist/components/Projects/team-card.js +1 -1
  284. package/dist/components/Projects/team-card.mjs +1 -1
  285. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  286. package/dist/components/dc-temp/creative.mjs +1 -1
  287. package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
  288. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  289. package/dist/components/dc-temp/index.mjs +1 -1
  290. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  291. package/dist/components/index.js +14 -14
  292. package/dist/components/index.mjs +1 -1
  293. package/dist/components/ui/alert.mjs +1 -1
  294. package/dist/components/ui/avatar.mjs +1 -1
  295. package/dist/components/ui/badge.mjs +1 -1
  296. package/dist/components/ui/breadcrumb.mjs +1 -1
  297. package/dist/components/ui/button.mjs +1 -1
  298. package/dist/components/ui/calendar.mjs +1 -1
  299. package/dist/components/ui/card.mjs +1 -1
  300. package/dist/components/ui/checkbox.mjs +1 -1
  301. package/dist/components/ui/command.mjs +1 -1
  302. package/dist/components/ui/dialog.mjs +1 -1
  303. package/dist/components/ui/dropdown-menu.mjs +1 -1
  304. package/dist/components/ui/hover-card.mjs +1 -1
  305. package/dist/components/ui/index.mjs +1 -1
  306. package/dist/components/ui/input.mjs +1 -1
  307. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  308. package/dist/components/ui/inputs/text-input/index.js +1 -1
  309. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  310. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  311. package/dist/components/ui/label.mjs +1 -1
  312. package/dist/components/ui/pagination.mjs +1 -1
  313. package/dist/components/ui/popover.mjs +1 -1
  314. package/dist/components/ui/progress.mjs +1 -1
  315. package/dist/components/ui/scroll-area.mjs +1 -1
  316. package/dist/components/ui/select.mjs +1 -1
  317. package/dist/components/ui/separator.mjs +1 -1
  318. package/dist/components/ui/sheet.mjs +1 -1
  319. package/dist/components/ui/sidebar.mjs +1 -1
  320. package/dist/components/ui/skeleton.mjs +1 -1
  321. package/dist/components/ui/switch.mjs +1 -1
  322. package/dist/components/ui/tabs.mjs +1 -1
  323. package/dist/components/ui/textarea.mjs +1 -1
  324. package/dist/components/ui/toast.mjs +1 -1
  325. package/dist/components/ui/toaster.mjs +1 -1
  326. package/dist/components/ui/toggle-group.mjs +1 -1
  327. package/dist/components/ui/toggle.mjs +1 -1
  328. package/dist/components/ui/tooltip.mjs +1 -1
  329. package/dist/index.js +19 -19
  330. package/dist/index.mjs +1 -1
  331. package/dist/metafile-cjs.json +1 -1
  332. package/dist/metafile-esm.json +1 -1
  333. package/dist/pages/Blog.js +1 -1
  334. package/dist/pages/Blog.mjs +1 -1
  335. package/dist/pages/Documentation.mjs +1 -1
  336. package/dist/pages/IndexPage.mjs +1 -1
  337. package/dist/pages/Intranet.mjs +1 -1
  338. package/dist/pages/LandingPage.js +1 -1
  339. package/dist/pages/LandingPage.mjs +1 -1
  340. package/dist/pages/Page.mjs +1 -1
  341. package/dist/pages/Publish.js +3 -3
  342. package/dist/pages/Publish.mjs +1 -1
  343. package/dist/pages/Website.js +1 -1
  344. package/dist/pages/Website.mjs +1 -1
  345. package/dist/sections/AboutSection.mjs +1 -1
  346. package/dist/sections/BlogDetail.js +1 -1
  347. package/dist/sections/BlogDetail.mjs +1 -1
  348. package/dist/sections/BlogList.js +1 -1
  349. package/dist/sections/BlogList.mjs +1 -1
  350. package/dist/sections/BlogListSection.mjs +1 -1
  351. package/dist/sections/ContactSection.mjs +1 -1
  352. package/dist/sections/ImageSection.mjs +1 -1
  353. package/dist/sections/MainPageSection.mjs +1 -1
  354. package/dist/sections/PageSections.js +1 -1
  355. package/dist/sections/PageSections.mjs +1 -1
  356. package/dist/sections/PricingSection.mjs +1 -1
  357. package/dist/sections/ServiceDetail.mjs +1 -1
  358. package/dist/sections/ServiceDetailSection.mjs +1 -1
  359. package/dist/sections/ServiceSection.mjs +1 -1
  360. package/dist/sections/form/index.mjs +1 -1
  361. package/dist/sections/index.js +1 -1
  362. package/dist/sections/index.mjs +1 -1
  363. package/dist/styles/Colors.mjs +1 -1
  364. package/dist/utils/TimeUtil.d.ts +3 -0
  365. package/dist/utils/TimeUtil.js +1 -0
  366. package/dist/utils/TimeUtil.mjs +1 -0
  367. package/dist/utils/index.d.ts +1 -0
  368. package/dist/utils/index.js +2 -2
  369. package/dist/utils/index.mjs +1 -1
  370. package/package.json +1 -1
  371. package/dist/chunk-5AWZJAK3.mjs +0 -4
  372. package/dist/chunk-B3F6F2S4.mjs +0 -1
  373. package/dist/chunk-GTHKYSK2.mjs +0 -1
  374. package/dist/chunk-HN22CVSV.mjs +0 -1
  375. package/dist/chunk-RVHCTANZ.mjs +0 -4
  376. package/dist/chunk-TH6RC62B.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";"use client";var to=Object.create;var Ne=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var ro=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,ao=Object.prototype.hasOwnProperty;var io=(e,t)=>{for(var o in t)Ne(e,o,{get:t[o],enumerable:!0})},qe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ro(t))!ao.call(e,n)&&n!==o&&Ne(e,n,{get:()=>t[n],enumerable:!(r=oo(t,n))||r.enumerable});return e};var F=(e,t,o)=>(o=e!=null?to(no(e)):{},qe(t||!e||!e.__esModule?Ne(o,"default",{value:e,enumerable:!0}):o,e)),so=e=>qe(Ne({},"__esModule",{value:!0}),e);var tr={};io(tr,{DocumentPreview:()=>er});module.exports=so(tr);var Jt=require("motion/react"),W=require("lucide-react"),Se=require("react");var nt=require("clsx");var Le="-",lo=e=>{let t=mo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let i=l.split(Le);return i[0]===""&&i.length!==1&&i.shift(),Ye(i,t)||co(l)},getConflictingClassGroupIds:(l,i)=>{let y=o[l]||[];return i&&r[l]?[...y,...r[l]]:y}}},Ye=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?Ye(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Le);return t.validators.find(({validator:l})=>l(a))?.classGroupId},Xe=/^\[(.+)\]$/,co=e=>{if(Xe.test(e)){let t=Xe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},mo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return uo(Object.entries(e.classGroups),o).forEach(([a,l])=>{Ee(l,r,a,t)}),r},Ee=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Je(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(po(n)){Ee(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,l])=>{Ee(l,Je(t,a),o,r)})})},Je=(e,t)=>{let o=e;return t.split(Le).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},po=e=>e.isThemeGetter,uo=(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(([l,i])=>[t+l,i])):a);return[o,n]}):e,fo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,l)=>{o.set(a,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let l=o.get(a);if(l!==void 0)return l;if((l=r.get(a))!==void 0)return n(a,l),l},set(a,l){o.has(a)?o.set(a,l):n(a,l)}}},Qe="!",go=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,l=i=>{let y=[],g=0,k=0,V;for(let u=0;u<i.length;u++){let S=i[u];if(g===0){if(S===n&&(r||i.slice(u,u+a)===t)){y.push(i.slice(k,u)),k=u+a;continue}if(S==="/"){V=u;continue}}S==="["?g++:S==="]"&&g--}let D=y.length===0?i:i.substring(k),_=D.startsWith(Qe),L=_?D.substring(1):D,P=V&&V>k?V-k:void 0;return{modifiers:y,hasImportantModifier:_,baseClassName:L,maybePostfixModifierPosition:P}};return o?i=>o({className:i,parseClassName:l}):l},bo=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},ho=e=>({cache:fo(e.cacheSize),parseClassName:go(e),...lo(e)}),xo=/\lt+/,vo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],l=e.trim().split(xo),i="";for(let y=l.length-1;y>=0;y-=1){let g=l[y],{modifiers:k,hasImportantModifier:V,baseClassName:D,maybePostfixModifierPosition:_}=o(g),L=!!_,P=r(L?D.substring(0,_):D);if(!P){if(!L){i=g+(i.length>0?" "+i:i);continue}if(P=r(D),!P){i=g+(i.length>0?" "+i:i);continue}L=!1}let u=bo(k).join(":"),S=V?u+Qe:u,m=S+P;if(a.includes(m))continue;a.push(m);let b=n(P,L);for(let C=0;C<b.length;++C){let T=b[C];a.push(S+T)}i=g+(i.length>0?" "+i:i)}return i};function wo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=et(t))&&(r&&(r+=" "),r+=o);return r}var et=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=et(e[r]))&&(o&&(o+=" "),o+=t);return o};function yo(e,...t){let o,r,n,a=l;function l(y){let g=t.reduce((k,V)=>V(k),e());return o=ho(g),r=o.cache.get,n=o.cache.set,a=i,i(y)}function i(y){let g=r(y);if(g)return g;let k=vo(y,o);return n(y,k),k}return function(){return a(wo.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Co=/^\lt+\/\lt+$/,So=new Set(["px","full","screen"]),No=/^(\lt+(\.\lt+)?)?(xs|sm|md|lg|xl)$/,Ro=/\lt+(%|px|r?em|[sdl]?v([hwib]|min|max)|lt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Po=/^(inset_)?-?((\lt+)?\.?(\lt+)[a-z]+|0)_-?((\lt+)?\.?(\lt+)[a-z]+|0)/,To=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>le(e)||So.has(e)||Co.test(e),Y=e=>de(e,"length",Vo),le=e=>!!e&&!Number.isNaN(Number(e)),He=e=>de(e,"number",le),ge=e=>!!e&&Number.isInteger(Number(e)),ko=e=>e.endsWith("%")&&le(e.slice(0,-1)),f=e=>tt.test(e),Q=e=>No.test(e),Do=new Set(["length","size","percentage"]),Io=e=>de(e,Do,ot),Ho=e=>de(e,"position",ot),Eo=new Set(["image","url"]),Lo=e=>de(e,Eo,Bo),Ao=e=>de(e,"",zo),be=()=>!0,de=(e,t,o)=>{let r=tt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Vo=e=>Ro.test(e)&&!Mo.test(e),ot=()=>!1,zo=e=>Po.test(e),Bo=e=>To.test(e);var _o=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),r=R("brightness"),n=R("borderColor"),a=R("borderRadius"),l=R("borderSpacing"),i=R("borderWidth"),y=R("contrast"),g=R("grayscale"),k=R("hueRotate"),V=R("invert"),D=R("gap"),_=R("gradientColorStops"),L=R("gradientColorStopPositions"),P=R("inset"),u=R("margin"),S=R("opacity"),m=R("padding"),b=R("saturate"),C=R("scale"),T=R("sepia"),J=R("skew"),ae=R("space"),G=R("translate"),O=()=>["auto","contain","none"],fe=()=>["auto","hidden","clip","visible","scroll"],oe=()=>["auto",f,t],N=()=>[f,t],ie=()=>["",j,Y],se=()=>["auto",le,f],p=()=>["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"],re=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[le,f];return{cacheSize:500,separator:":",theme:{colors:[be],spacing:[j,Y],blur:["none","",Q,f],brightness:Z(),borderColor:[e],borderRadius:["none","","full",Q,f],borderSpacing:N(),borderWidth:ie(),contrast:Z(),grayscale:U(),hueRotate:Z(),invert:U(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ko,Y],inset:oe(),margin:oe(),opacity:Z(),padding:N(),saturate:Z(),scale:Z(),sepia:U(),skew:Z(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[Q]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"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:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ge,f]}],basis:[{basis:oe()}],"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:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",ge,f]}],"grid-cols":[{"grid-cols":[be]}],"col-start-end":[{col:["auto",{span:["full",ge,f]},f]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[be]}],"row-start-end":[{row:["auto",{span:[ge,f]},f]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"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:[D]}],"gap-x":[{"gap-x":[D]}],"gap-y":[{"gap-y":[D]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],lt:[{lt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],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:[Q]},Q]}],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",Q,Y]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",He]}],"font-family":[{font:[be]}],"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",le,He]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,Y]}],"underline-offset":[{"underline-offset":["auto",j,f]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"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":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...p(),Ho]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[a]}],"rounded-lt":[{"rounded-lt":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-lt":[{"border-lt":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:H()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-lt":[{"border-lt":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[j,f]}],"outline-w":[{outline:[j,Y]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-w":[{"ring-offset":[j,Y]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Q,Ao]}],"shadow-color":[{shadow:[be]}],opacity:[{opacity:[S]}],"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:[y]}],"drop-shadow":[{"drop-shadow":["","none",Q,f]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[k]}],invert:[{invert:[V]}],saturate:[{saturate:[b]}],sepia:[{sepia:[T]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[k]}],"backdrop-invert":[{"backdrop-invert":[V]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:Z()}],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:[ge,f]}],"translate-x":[{"translate-x":[G]}],"translate-y":[{"translate-y":[G]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","lt-resize","w-resize","W-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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-lt":[{"scroll-lt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,Y,He]}],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","lt","pr","pb","pl"],px:["pr","pl"],py:["lt","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-lt","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-lt":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-lt","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-lt","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-lt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-lt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var rt=yo(_o);function w(...e){return rt((0,nt.clsx)(e))}var at=require("@radix-ui/react-slot"),it=require("class-variance-authority"),st=F(require("react")),lt=require("react/jsx-runtime"),Go=(0,it.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"}}}),ee=st.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,lt.jsx)(e?at.Slot:"button",{className:w(Go({className:t,size:o,variant:r})),ref:a,...n}));ee.displayName="Button";var dt=F(require("react")),Re=dt.forwardRef(({className:e,...t},o)=>(0,lt.jsx)("textarea",{className:w("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}));Re.displayName="Textarea";var mt=F(require("react"));var he=mt.forwardRef(({className:e,type:t,...o},r)=>(0,lt.jsx)("input",{type:t,className:w("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}));he.displayName="Input";var h=F(require("@radix-ui/react-select")),te=F(require("react")),Ae=h.Root;var Ve=h.Value,Me=te.forwardRef(({children:e,className:t,...o},r)=>(0,lt.jsxs)(h.Trigger,{className:w("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,lt.jsx)(h.Icon,{asChild:!0,children:(0,lt.jsx)(W.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Me.displayName=h.Trigger.displayName;var ut=te.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.ScrollUpButton,{className:w("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,lt.jsx)(W.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=h.ScrollUpButton.displayName;var ft=te.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.ScrollDownButton,{className:w("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,lt.jsx)(W.ChevronDown,{className:"h-4 w-4"})}));ft.displayName=h.ScrollDownButton.displayName;var Pe=te.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,lt.jsx)(h.Portal,{children:(0,lt.jsxs)(h.Content,{className:w("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,lt.jsx)(ut,{}),(0,lt.jsx)(h.Viewport,{className:w("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,lt.jsx)(ft,{})]})}));Pe.displayName=h.Content.displayName;var Oo=te.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.Label,{className:w("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Oo.displayName=h.Label.displayName;var ce=te.forwardRef(({children:e,className:t,...o},r)=>(0,lt.jsxs)(h.Item,{className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(h.ItemIndicator,{children:(0,lt.jsx)(W.Check,{className:"h-4 w-4"})})}),(0,lt.jsx)(h.ItemText,{children:e})]}));ce.displayName=h.Item.displayName;var Fo=te.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.Separator,{className:w("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Fo.displayName=h.Separator.displayName;var zt=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Bt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),_t=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),Gt=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Ot=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),Ft=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),Kt=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),De=require("@payloadcms/richtext-lexical/lexical/list"),$t=require("@payloadcms/richtext-lexical/lexical/rich-text"),Ut=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var Lt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),At=require("@payloadcms/richtext-lexical/lexical/utils"),v=require("@payloadcms/richtext-lexical/lexical"),We=require("@payloadcms/richtext-lexical/lexical/selection");var Ko=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),gt=Ko;var $o=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),bt=$o;var Uo=()=>(0,lt.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,lt.jsx)("path",{lt:"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,lt.jsx)("path",{lt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),ht=Uo;var Wo=()=>(0,lt.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,lt.jsx)("path",{lt:"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,lt.jsx)("path",{lt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),xt=Wo;var Zo=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),vt=Zo;var jo=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),wt=jo;var yt=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Ct=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),St=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Nt=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Rt=()=>(0,lt.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,lt.jsx)("path",{lt:"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 q=F(require("react")),x=F(require("@radix-ui/react-dropdown-menu")),me=require("@radix-ui/react-icons");var we=x.Root,ye=x.Trigger;var Mt=q.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,lt.jsxs)(x.SubTrigger,{ref:n,className:w("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,lt.jsx)(me.ChevronRightIcon,{className:"ml-auto"})]}));Mt.displayName=x.SubTrigger.displayName;var Pt=q.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(x.SubContent,{ref:o,className:w("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}));Pt.displayName=x.SubContent.displayName;var pe=q.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,lt.jsx)(x.Portal,{children:(0,lt.jsx)(x.Content,{ref:r,sideOffset:t,className:w("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})}));pe.displayName=x.Content.displayName;var ue=q.forwardRef(({className:e,inset:t,...o},r)=>(0,lt.jsx)(x.Item,{ref:r,className:w("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}));ue.displayName=x.Item.displayName;var Tt=q.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,lt.jsxs)(x.CheckboxItem,{ref:n,className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(x.ItemIndicator,{children:(0,lt.jsx)(me.CheckIcon,{className:"h-4 w-4"})})}),t]}));Tt.displayName=x.CheckboxItem.displayName;var kt=q.forwardRef(({className:e,children:t,...o},r)=>(0,lt.jsxs)(x.RadioItem,{ref:r,className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(x.ItemIndicator,{children:(0,lt.jsx)(me.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));kt.displayName=x.RadioItem.displayName;var Dt=q.forwardRef(({className:e,inset:t,...o},r)=>(0,lt.jsx)(x.Label,{ref:r,className:w("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Dt.displayName=x.Label.displayName;var It=q.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(x.Separator,{ref:o,className:w("-mx-1 my-1 h-px bg-muted",e),...t}));It.displayName=x.Separator.displayName;var Ht=({className:e,...t})=>(0,lt.jsx)("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t});Ht.displayName="DropdownMenuShortcut";var Et=F(require("react")),$=F(require("@radix-ui/react-tooltip"));var Fe=$.Provider,Ke=$.Root,$e=$.Trigger,Te=Et.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,lt.jsx)($.Portal,{children:(0,lt.jsx)($.Content,{ref:r,sideOffset:t,className:w("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})}));Te.displayName=$.Content.displayName;var Ue=1;function qo(){return(0,lt.jsx)("span",{className:"border border-[#222222]"})}function Ze(){let[e]=(0,Lt.useLexicalComposerContext)(),t=(0,Se.useRef)(null),[o,r]=(0,Se.useState)(!1),[n,a]=(0,Se.useState)(!1),[l,i]=(0,Se.useState)(!1),[y,g]=(0,Se.useState)(!1),[k,V]=(0,Se.useState)(!1),[D,_]=(0,Se.useState)(!1),[L,P]=(0,Se.useState)(!1),[u,S]=(0,Se.useState)(!1),[m,b]=(0,Se.useState)(!1),[C,T]=(0,Se.useState)("left"),[J,ae]=(0,Se.useState)("p"),G=p=>{e.update(()=>{let H=(0,v.$getSelection)();(0,v.$isRangeSelection)(H)&&(p==="p"?(0,We.$setBlocksType)(H,()=>(0,v.$createParagraphNode)()):(0,We.$setBlocksType)(H,()=>(0,$t.$createHeadingNode)(p)))})},O=(0,Se.useCallback)(()=>{let p=(0,v.$getSelection)();if((0,v.$isRangeSelection)(p)){i(p.hasFormat("bold")),g(p.hasFormat("italic")),V(p.hasFormat("underline")),_(p.hasFormat("strikethrough")),P(p.hasFormat("subscript")),S(p.hasFormat("superscript"));let H=p.anchor.getNode(),z=H;for(;z&&!(0,v.$isParagraphNode)(z)&&z!==(0,v.$getRoot)();){let U=z.getParent();U&&(z=U)}if(z){let U=z.getFormatType();T(U||"left")}let re=H.getTopLevelElement()?.__tag;ae(re||"p")}},[]);(0,Se.useEffect)(()=>(0,At.mergeRegister)(e.registerUpdateListener(({editorState:p})=>{p.read(()=>{O()})}),e.registerCommand(v.SELECTION_CHANGE_COMMAND,(p,H)=>(O(),!1),Ue),e.registerCommand(v.CAN_UNDO_COMMAND,p=>(r(p),!1),Ue),e.registerCommand(v.CAN_REDO_COMMAND,p=>(a(p),!1),Ue)),[e,O]);let fe=[[{label:"Undo",icon:(0,lt.jsx)(W.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,lt.jsx)(W.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,lt.jsx)(gt,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:l},{label:"Italic",icon:(0,lt.jsx)(bt,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:y},{label:"Underline",icon:(0,lt.jsx)(ht,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:k},{label:"Strikethrough",icon:(0,lt.jsx)(xt,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:D},{label:"Subscript",icon:(0,lt.jsx)(vt,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:L},{label:"Superscript",icon:(0,lt.jsx)(wt,{}),onClick:()=>{e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:u}]],oe=[{label:"Left Align",direction:"left",icon:(0,lt.jsx)(W.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,lt.jsx)(W.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,lt.jsx)(W.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,lt.jsx)(W.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(v.FORMAT_ELEMENT_COMMAND,"justify")}}],ie=[{label:"Normal Text",value:"p",icon:(0,lt.jsx)(yt,{}),onClick:()=>G("p")},{label:"Heading 1",value:"h1",icon:(0,lt.jsx)(Ct,{}),onClick:()=>G("h1")},{label:"Heading 2",value:"h2",icon:(0,lt.jsx)(St,{}),onClick:()=>G("h2")},{label:"Heading 3",value:"h3",icon:(0,lt.jsx)(Nt,{}),onClick:()=>G("h3")},{label:"Heading 4",value:"h4",icon:(0,lt.jsx)(Rt,{}),onClick:()=>G("h4")},...[{label:"Unordered List",value:"ul",icon:(0,lt.jsx)(W.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(De.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,lt.jsx)(W.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(De.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],se=[{label:"Insert Image",icon:(0,lt.jsx)(W.ImageUp,{width:15,height:15}),onClick:()=>{b(!0)},disabled:!1}];return(0,lt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,lt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[fe.map((p,H)=>(0,lt.jsxs)(Se.Fragment,{children:[(0,lt.jsx)("div",{className:"flex items-center gap-2",children:p.map((z,re)=>(0,lt.jsx)("div",{role:"button","aria-disabled":z.disabled||!1,onClick:z.onClick,className:w("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,lt.jsx)(Fe,{children:(0,lt.jsxs)(Ke,{children:[(0,lt.jsx)($e,{className:"text-[#b5b5b5]",children:z.icon}),(0,lt.jsx)(Te,{children:(0,lt.jsx)("p",{children:z.label})})]})})},re))}),(0,lt.jsx)(qo,{})]},`toolbar-option-${p.length}-${H}`)),(0,lt.jsxs)(we,{children:[(0,lt.jsxs)(ye,{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:[oe.find(p=>p.direction===C)?.icon,oe.find(p=>p.direction===C)?.label,(0,lt.jsx)(W.ChevronDown,{width:15,height:15})]}),(0,lt.jsx)(pe,{className:"bg-black hover:bg-black",children:oe.map((p,H)=>(0,lt.jsxs)(ue,{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,lt.jsx)("span",{children:p.icon}),(0,lt.jsx)("span",{children:p.label})]},`${p.label}-${H}`))})]}),(0,lt.jsxs)(we,{children:[(0,lt.jsxs)(ye,{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:[ie.find(p=>p.value===J)?.icon,ie.find(p=>p.value===J)?.label,(0,lt.jsx)(W.ChevronDown,{width:15,height:15})]}),(0,lt.jsx)(pe,{className:"bg-black hover:bg-black",children:ie.map((p,H)=>(0,lt.jsxs)(ue,{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,lt.jsx)("span",{children:p.icon}),(0,lt.jsx)("span",{children:p.label})]},`heading-option-${p.label}-${H}`))})]}),(0,lt.jsxs)(we,{children:[(0,lt.jsxs)(ye,{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,lt.jsx)(W.Plus,{width:15,height:15}),(0,lt.jsx)(W.ChevronDown,{width:15,height:15})]}),(0,lt.jsx)(pe,{className:"bg-black hover:bg-black",children:se.map((p,H)=>(0,lt.jsxs)(ue,{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,lt.jsx)("span",{children:p.icon}),(0,lt.jsx)("span",{children:p.label})]},H))})]})]})})}var Xo=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,Lt.useLexicalComposerContext)(),a=l=>{l.read(()=>{let i=l.toJSON();e?.(()=>i)})};return(0,Se.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,lt.jsx)("div",{className:"w-full px-10",children:(0,lt.jsxs)("div",{className:" ",children:[r&&(0,lt.jsx)(Ze,{}),(0,lt.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,lt.jsx)(Ft.RichTextPlugin,{contentEditable:(0,lt.jsx)(_t.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:Gt.LexicalErrorBoundary}),r&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Ot.HistoryPlugin,{}),(0,lt.jsx)(zt.AutoFocusPlugin,{}),(0,lt.jsx)(Kt.ListPlugin,{}),(0,lt.jsx)(Ut.OnChangePlugin,{onChange:a})]})]})]})})},Jo=({setValue:e,value:t,name:o,editable:r=!0})=>(0,lt.jsx)(Bt.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[De.ListNode,De.ListItemNode,$t.HeadingNode],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,lt.jsx)(Xo,{value:t,setValue:e,name:o,editable:r})}),Ie=Jo;function qt({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[l,i]=(0,Se.useState)({...e,updatedAt:new Date}),[y,g]=(0,Se.useState)(l.richTextContent);(0,Se.useEffect)(()=>{i(e)},[e]);let k=()=>{let m=new Set,b=new Set;return a.forEach(C=>{C.menuConfig.groupBy.forEach(T=>m.add(T))}),n.forEach(C=>{C.metadata&&Object.keys(C.metadata).forEach(T=>b.add(T))}),{contextKeys:Array.from(m).sort(),documentKeys:Array.from(b).sort(),allKeys:Array.from(new Set([...m,...b])).sort()}},V=m=>{let b=new Set;return n.forEach(C=>{C.metadata?.[m]&&b.add(String(C.metadata[m]))}),Array.from(b).sort()},D=k(),_=()=>{t({...l,richTextContent:y})},L=(m,b)=>{i(C=>({...C,metadata:{...C.metadata,[m]:b}}))},P=(m,b)=>{b==="__custom__"?L(m,""):L(m,b)},u=()=>{let m=`field_${Date.now()}`;L(m,"")},S=m=>{i(b=>{let C={...b.metadata};return delete C[m],{...b,metadata:C}})};return(0,lt.jsxs)(Jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,lt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,lt.jsx)(W.Edit3,{className:"h-6 w-6 text-primary"})}),(0,lt.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:o==="edit"?"Edit Document":"Create Document"})]}),(0,lt.jsxs)("div",{className:"flex gap-2",children:[(0,lt.jsxs)(ee,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,lt.jsx)(W.W,{className:"h-4 w-4"}),"Cancel"]}),(0,lt.jsxs)(ee,{size:"sm",onClick:_,className:"gap-2",children:[(0,lt.jsx)(W.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,lt.jsx)(he,{value:l.title,onChange:m=>i(b=>({...b,title:m.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,lt.jsx)(Re,{value:l.description||"",onChange:m=>i(b=>({...b,description:m.target.value})),placeholder:"Document description...",rows:2})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),D.contextKeys.length>0&&(0,lt.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",D.contextKeys.slice(0,4).join(", "),D.contextKeys.length>4&&` +${D.contextKeys.length-4}`]})]}),(0,lt.jsxs)(ee,{type:"button",variant:"outline",size:"sm",onClick:u,className:"gap-1 h-8",children:[(0,lt.jsx)(W.Plus,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?(0,lt.jsx)("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([m,b])=>{let C=V(m);return(0,lt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,lt.jsx)(he,{value:m,onChange:T=>{let J=T.target.value,ae=l.metadata?.[m];i(G=>{let O={...G.metadata};return delete O[m],J&&(O[J]=ae||""),{...G,metadata:O}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${m}`}),(0,lt.jsx)("datalist",{id:`metadata-keys-${m}`,children:D.allKeys.map(T=>(0,lt.jsx)("option",{value:T},T))}),(0,lt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),C.length>0?(0,lt.jsxs)(Ae,{value:String(b||""),onValueChange:T=>P(m,T),children:[(0,lt.jsx)(Me,{className:"flex-1 h-8 text-sm",children:(0,lt.jsx)(Ve,{placeholder:"Value"})}),(0,lt.jsxs)(Pe,{children:[C.map(T=>(0,lt.jsx)(ce,{value:T,children:T},T)),(0,lt.jsx)(ce,{value:"__custom__",children:(0,lt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,lt.jsx)(he,{value:String(b||""),onChange:T=>L(m,T.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,lt.jsx)(ee,{type:"button",variant:"ghost",size:"sm",onClick:()=>S(m),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,lt.jsx)(W.W,{className:"h-3 w-3"})})]},m)})}):(0,lt.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,lt.jsx)("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,lt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format"}),(0,lt.jsxs)(Ae,{value:l.format,onValueChange:m=>i(b=>({...b,format:m})),children:[(0,lt.jsx)(Me,{className:"flex-1 h-8 text-sm",children:(0,lt.jsx)(Ve,{placeholder:"Format"})}),(0,lt.jsxs)(Pe,{children:[(0,lt.jsx)(ce,{value:"markdown",children:"Markdown"}),(0,lt.jsx)(ce,{value:"richText",children:"Rich Text"})]})]})]})]})]}),(0,lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,lt.jsxs)("div",{className:"p-8",children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),l.format==="richText"?(0,lt.jsx)(Ie,{setValue:g,value:y,name:"richTextContent"}):(0,lt.jsx)(Re,{value:l.content||"",onChange:m=>i(b=>({...b,content:m.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Yt=F(require("react-markdown")),Qt=F(require("remark-gfm"));var eo=e=>(0,lt.jsx)(Yt.default,{remarkPlugins:[Qt.default],components:{h1:({children:t})=>(0,lt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,lt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,lt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,lt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,lt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,lt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,lt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,lt.jsx)("p",{className:"mb-4",children:t}),a:({children:t,href:o})=>(0,lt.jsx)("a",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,lt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,lt.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),Xt=e=>(0,lt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Yo=e=>(0,lt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,lt.jsx)(Ie,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Qo=e=>(0,lt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,lt.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,lt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,lt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),eo(e)]});function er({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:a=[],knowledgeContexts:l=[]}){let[i,y]=(0,Se.useState)(!1),[g,k]=(0,Se.useState)(e);(0,Se.useEffect)(()=>{k(e)},[e]);let V=u=>{switch(u){case"markdown":case"mdx":return(0,lt.jsx)(W.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,lt.jsx)(W.File,{className:"h-6 w-6 text-success"});case"text":return(0,lt.jsx)(W.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,lt.jsx)(W.File,{className:"h-6 w-6 text-muted-foreground"})}},D=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"}},_=(u,S)=>{let m={markdown:eo,mdx:Qo,text:Xt},b=n?.[S]||m[S];if(S==="richText"&&typeof u=="object")return Yo(u);if(b&&typeof u=="string")return b(u);if(typeof u=="string")return Xt(u)},L=u=>{y(!1),t?.(u),k(u)},P=()=>{y(!1)};return i||r==="create"?(0,lt.jsx)(qt,{mode:r==="create"?"create":"edit",document:g,onSave:L,onCancel:P,availableDocuments:a,knowledgeContexts:l}):(0,lt.jsxs)(Jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,lt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,lt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:V(g.format)}),(0,lt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,lt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:g.title}),g.description&&(0,lt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:g.description})]})]}),o&&(0,lt.jsx)("div",{className:"flex-shrink-0",children:(0,lt.jsxs)(ee,{variant:"outline",size:"sm",onClick:()=>y(!0),className:"gap-2",children:[(0,lt.jsx)(W.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,lt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,lt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${D(g.format)}`,children:g.format.toUpperCase()}),g.tags?.map(u=>(0,lt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",u]},u))]})]}),(0,lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,lt.jsxs)("div",{className:"p-8",children:[g.metadata&&Object.keys(g.metadata).length>0&&(0,lt.jsxs)("div",{className:"mb-6",children:[(0,lt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,lt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,lt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(g.metadata).map(([u,S])=>(0,lt.jsxs)("div",{className:"flex gap-1",children:[(0,lt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[u.replace(/([lt-Z])/g," $1").trim(),":"]}),(0,lt.jsx)("span",{className:"text-foreground truncate",children:String(S)})]},u))})})]}),(0,lt.jsx)("div",{className:"space-y-4",children:g.content||g.richTextContent?(0,lt.jsx)("div",{className:"relative",children:(0,lt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:_(g.format==="richText"?g.richTextContent:g.content,g.format)})}):(0,lt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,lt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,lt.jsx)(W.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,lt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,lt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}0&&(module.exports={DocumentPreview});
4
+ "use strict";"use client";var to=Object.create;var Ce=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var ro=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,ao=Object.prototype.hasOwnProperty;var io=(e,t)=>{for(var o in t)Ce(e,o,{get:t[o],enumerable:!0})},qe=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ro(t))!ao.call(e,n)&&n!==o&&Ce(e,n,{get:()=>t[n],enumerable:!(r=oo(t,n))||r.enumerable});return e};var O=(e,t,o)=>(o=e!=null?to(no(e)):{},qe(t||!e||!e.__esModule?Ce(o,"default",{value:e,enumerable:!0}):o,e)),so=e=>qe(Ce({},"__esModule",{value:!0}),e);var tr={};io(tr,{DocumentPreview:()=>er});module.exports=so(tr);var Jt=require("motion/react"),Z=require("lucide-react"),ye=require("react");var nt=require("clsx");var Le="-",lo=e=>{let t=mo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let i=l.split(Le);return i[0]===""&&i.length!==1&&i.shift(),Ye(i,t)||co(l)},getConflictingClassGroupIds:(l,i)=>{let y=o[l]||[];return i&&r[l]?[...y,...r[l]]:y}}},Ye=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?Ye(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(Le);return t.validators.find(({validator:l})=>l(a))?.classGroupId},Xe=/^\[(.+)\]$/,co=e=>{if(Xe.test(e)){let t=Xe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},mo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return uo(Object.entries(e.classGroups),o).forEach(([a,l])=>{Ee(l,r,a,t)}),r},Ee=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Je(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(po(n)){Ee(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,l])=>{Ee(l,Je(t,a),o,r)})})},Je=(e,t)=>{let o=e;return t.split(Le).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},po=e=>e.isThemeGetter,uo=(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(([l,i])=>[t+l,i])):a);return[o,n]}):e,fo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,l)=>{o.set(a,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let l=o.get(a);if(l!==void 0)return l;if((l=r.get(a))!==void 0)return n(a,l),l},set(a,l){o.has(a)?o.set(a,l):n(a,l)}}},Qe="!",go=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,l=i=>{let y=[],g=0,M=0,V;for(let p=0;p<i.length;p++){let C=i[p];if(g===0){if(C===n&&(r||i.slice(p,p+a)===t)){y.push(i.slice(M,p)),M=p+a;continue}if(C==="/"){V=p;continue}}C==="["?g++:C==="]"&&g--}let T=y.length===0?i:i.substring(M),_=T.startsWith(Qe),H=_?T.substring(1):T,P=V&&V>M?V-M:void 0;return{modifiers:y,hasImportantModifier:_,baseClassName:H,maybePostfixModifierPosition:P}};return o?i=>o({className:i,parseClassName:l}):l},bo=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},ho=e=>({cache:fo(e.cacheSize),parseClassName:go(e),...lo(e)}),vo=/\lt+/,xo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],l=e.trim().split(vo),i="";for(let y=l.length-1;y>=0;y-=1){let g=l[y],{modifiers:M,hasImportantModifier:V,baseClassName:T,maybePostfixModifierPosition:_}=o(g),H=!!_,P=r(H?T.substring(0,_):T);if(!P){if(!H){i=g+(i.length>0?" "+i:i);continue}if(P=r(T),!P){i=g+(i.length>0?" "+i:i);continue}H=!1}let p=bo(M).join(":"),C=V?p+Qe:p,m=C+P;if(a.includes(m))continue;a.push(m);let b=n(P,H);for(let S=0;S<b.length;++S){let G=b[S];a.push(C+G)}i=g+(i.length>0?" "+i:i)}return i};function wo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=et(t))&&(r&&(r+=" "),r+=o);return r}var et=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=et(e[r]))&&(o&&(o+=" "),o+=t);return o};function yo(e,...t){let o,r,n,a=l;function l(y){let g=t.reduce((M,V)=>V(M),e());return o=ho(g),r=o.cache.get,n=o.cache.set,a=i,i(y)}function i(y){let g=r(y);if(g)return g;let M=xo(y,o);return n(y,M),M}return function(){return a(wo.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Co=/^\lt+\/\lt+$/,So=new Set(["px","full","screen"]),No=/^(\lt+(\.\lt+)?)?(xs|sm|md|lg|xl)$/,Ro=/\lt+(%|px|r?em|[sdl]?v([hwib]|min|max)|lt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mo=/^(inset_)?-?((\lt+)?\.?(\lt+)[a-z]+|0)_-?((\lt+)?\.?(\lt+)[a-z]+|0)/,To=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>le(e)||So.has(e)||Co.test(e),Q=e=>de(e,"length",Vo),le=e=>!!e&&!Number.isNaN(Number(e)),He=e=>de(e,"number",le),ue=e=>!!e&&Number.isInteger(Number(e)),ko=e=>e.endsWith("%")&&le(e.slice(0,-1)),f=e=>tt.test(e),ee=e=>No.test(e),Do=new Set(["length","size","percentage"]),Io=e=>de(e,Do,ot),Ho=e=>de(e,"position",ot),Eo=new Set(["image","url"]),Lo=e=>de(e,Eo,Bo),Ao=e=>de(e,"",zo),fe=()=>!0,de=(e,t,o)=>{let r=tt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Vo=e=>Ro.test(e)&&!Po.test(e),ot=()=>!1,zo=e=>Mo.test(e),Bo=e=>To.test(e);var _o=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),r=R("brightness"),n=R("borderColor"),a=R("borderRadius"),l=R("borderSpacing"),i=R("borderWidth"),y=R("contrast"),g=R("grayscale"),M=R("hueRotate"),V=R("invert"),T=R("gap"),_=R("gradientColorStops"),H=R("gradientColorStopPositions"),P=R("inset"),p=R("margin"),C=R("opacity"),m=R("padding"),b=R("saturate"),S=R("scale"),G=R("sepia"),L=R("skew"),re=R("space"),$=R("translate"),U=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",f,t],N=()=>[f,t],se=()=>["",X,Q],pe=()=>["auto",le,f],u=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["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"],ae=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[le,f];return{cacheSize:500,separator:":",theme:{colors:[fe],spacing:[X,Q],blur:["none","",ee,f],brightness:q(),borderColor:[e],borderRadius:["none","","full",ee,f],borderSpacing:N(),borderWidth:se(),contrast:q(),grayscale:W(),hueRotate:q(),invert:W(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ko,Q],inset:ne(),margin:ne(),opacity:q(),padding:N(),saturate:q(),scale:q(),sepia:W(),skew:q(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[ee]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"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:[...u(),f]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ue,f]}],basis:[{basis:ne()}],"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:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",ue,f]}],"grid-cols":[{"grid-cols":[fe]}],"col-start-end":[{col:["auto",{span:["full",ue,f]},f]}],"col-start":[{"col-start":pe()}],"col-end":[{"col-end":pe()}],"grid-rows":[{"grid-rows":[fe]}],"row-start-end":[{row:["auto",{span:[ue,f]},f]}],"row-start":[{"row-start":pe()}],"row-end":[{"row-end":pe()}],"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:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],lt:[{lt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[re]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[ee]},ee]}],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",ee,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",He]}],"font-family":[{font:[fe]}],"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",le,He]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",X,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":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",X,Q]}],"underline-offset":[{"underline-offset":["auto",X,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:N()}],"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":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...u(),Ho]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[H]}],"gradient-via-pos":[{via:[H]}],"gradient-to-pos":[{to:[H]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[a]}],"rounded-lt":[{"rounded-lt":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[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:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-lt":[{"border-lt":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:A()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-lt":[{"border-lt":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[X,f]}],"outline-w":[{outline:[X,Q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[X,Q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ee,Ao]}],"shadow-color":[{shadow:[fe]}],opacity:[{opacity:[C]}],"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:[y]}],"drop-shadow":[{"drop-shadow":["","none",ee,f]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[M]}],invert:[{invert:[V]}],saturate:[{saturate:[b]}],sepia:[{sepia:[G]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[M]}],"backdrop-invert":[{"backdrop-invert":[V]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[ue,f]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[L]}],"skew-y":[{"skew-y":[L]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","lt-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-lt":[{"scroll-lt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[X,Q,He]}],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","lt","pr","pb","pl"],px:["pr","pl"],py:["lt","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-lt","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-lt":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-lt","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-lt","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-lt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-lt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var rt=yo(_o);function w(...e){return rt((0,nt.clsx)(e))}var at=require("@radix-ui/react-slot"),it=require("class-variance-authority"),st=O(require("react")),lt=require("react/jsx-runtime"),Go=(0,it.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"}}}),te=st.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,lt.jsx)(e?at.Slot:"button",{className:w(Go({className:t,size:o,variant:r})),ref:a,...n}));te.displayName="Button";var dt=O(require("react")),Se=dt.forwardRef(({className:e,...t},o)=>(0,lt.jsx)("textarea",{className:w("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}));Se.displayName="Textarea";var mt=O(require("react"));var ge=mt.forwardRef(({className:e,type:t,...o},r)=>(0,lt.jsx)("input",{type:t,className:w("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}));ge.displayName="Input";var h=O(require("@radix-ui/react-select")),oe=O(require("react")),Ae=h.Root;var Ve=h.Value,Ne=oe.forwardRef(({children:e,className:t,...o},r)=>(0,lt.jsxs)(h.Trigger,{className:w("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,lt.jsx)(h.Icon,{asChild:!0,children:(0,lt.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ne.displayName=h.Trigger.displayName;var ut=oe.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.ScrollUpButton,{className:w("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,lt.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=h.ScrollUpButton.displayName;var ft=oe.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.ScrollDownButton,{className:w("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,lt.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));ft.displayName=h.ScrollDownButton.displayName;var Re=oe.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,lt.jsx)(h.Portal,{children:(0,lt.jsxs)(h.Content,{className:w("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,lt.jsx)(ut,{}),(0,lt.jsx)(h.Viewport,{className:w("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,lt.jsx)(ft,{})]})}));Re.displayName=h.Content.displayName;var Oo=oe.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.Label,{className:w("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Oo.displayName=h.Label.displayName;var ce=oe.forwardRef(({children:e,className:t,...o},r)=>(0,lt.jsxs)(h.Item,{className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(h.ItemIndicator,{children:(0,lt.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,lt.jsx)(h.ItemText,{children:e})]}));ce.displayName=h.Item.displayName;var Fo=oe.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(h.Separator,{className:w("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Fo.displayName=h.Separator.displayName;var zt=require("@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin"),Bt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposer"),_t=require("@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable"),Gt=require("@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary"),Ot=require("@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin"),Ft=require("@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin"),Kt=require("@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin"),De=require("@payloadcms/richtext-lexical/lexical/list"),$t=require("@payloadcms/richtext-lexical/lexical/rich-text"),Ut=require("@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin");var Lt=require("@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext"),At=require("@payloadcms/richtext-lexical/lexical/utils"),x=require("@payloadcms/richtext-lexical/lexical"),We=require("@payloadcms/richtext-lexical/lexical/selection");var Ko=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),gt=Ko;var $o=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),bt=$o;var Uo=()=>(0,lt.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,lt.jsx)("path",{lt:"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,lt.jsx)("path",{lt:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]}),ht=Uo;var Wo=()=>(0,lt.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,lt.jsx)("path",{lt:"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,lt.jsx)("path",{lt:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]}),vt=Wo;var Zo=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),xt=Zo;var jo=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),wt=jo;var yt=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Ct=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),St=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Nt=()=>(0,lt.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,lt.jsx)("path",{lt:"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"})}),Rt=()=>(0,lt.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,lt.jsx)("path",{lt:"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 J=O(require("react")),v=O(require("@radix-ui/react-dropdown-menu")),me=require("@radix-ui/react-icons");var Pe=v.Root,Me=v.Trigger;var Pt=J.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,lt.jsxs)(v.SubTrigger,{ref:n,className:w("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,lt.jsx)(me.ChevronRightIcon,{className:"ml-auto"})]}));Pt.displayName=v.SubTrigger.displayName;var Mt=J.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(v.SubContent,{ref:o,className:w("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}));Mt.displayName=v.SubContent.displayName;var ve=J.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,lt.jsx)(v.Portal,{children:(0,lt.jsx)(v.Content,{ref:r,sideOffset:t,className:w("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})}));ve.displayName=v.Content.displayName;var xe=J.forwardRef(({className:e,inset:t,...o},r)=>(0,lt.jsx)(v.Item,{ref:r,className:w("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}));xe.displayName=v.Item.displayName;var Tt=J.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,lt.jsxs)(v.CheckboxItem,{ref:n,className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(v.ItemIndicator,{children:(0,lt.jsx)(me.CheckIcon,{className:"h-4 w-4"})})}),t]}));Tt.displayName=v.CheckboxItem.displayName;var kt=J.forwardRef(({className:e,children:t,...o},r)=>(0,lt.jsxs)(v.RadioItem,{ref:r,className:w("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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,lt.jsx)(v.ItemIndicator,{children:(0,lt.jsx)(me.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));kt.displayName=v.RadioItem.displayName;var Dt=J.forwardRef(({className:e,inset:t,...o},r)=>(0,lt.jsx)(v.Label,{ref:r,className:w("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Dt.displayName=v.Label.displayName;var It=J.forwardRef(({className:e,...t},o)=>(0,lt.jsx)(v.Separator,{ref:o,className:w("-mx-1 my-1 h-px bg-muted",e),...t}));It.displayName=v.Separator.displayName;var Ht=({className:e,...t})=>(0,lt.jsx)("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t});Ht.displayName="DropdownMenuShortcut";var Et=O(require("react")),K=O(require("@radix-ui/react-tooltip"));var Fe=K.Provider,Ke=K.Root,$e=K.Trigger,Te=Et.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,lt.jsx)(K.Portal,{children:(0,lt.jsx)(K.Content,{ref:r,sideOffset:t,className:w("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})}));Te.displayName=K.Content.displayName;var Ue=1;function qo(){return(0,lt.jsx)("span",{className:"border border-[#222222]"})}function Ze(){let[e]=(0,Lt.useLexicalComposerContext)(),t=(0,ye.useRef)(null),[o,r]=(0,ye.useState)(!1),[n,a]=(0,ye.useState)(!1),[l,i]=(0,ye.useState)(!1),[y,g]=(0,ye.useState)(!1),[M,V]=(0,ye.useState)(!1),[T,_]=(0,ye.useState)(!1),[H,P]=(0,ye.useState)(!1),[p,C]=(0,ye.useState)(!1),[m,b]=(0,ye.useState)(!1),[S,G]=(0,ye.useState)("left"),[L,re]=(0,ye.useState)("p"),$=u=>{e.update(()=>{let A=(0,x.$getSelection)();(0,x.$isRangeSelection)(A)&&(u==="p"?(0,We.$setBlocksType)(A,()=>(0,x.$createParagraphNode)()):(0,We.$setBlocksType)(A,()=>(0,$t.$createHeadingNode)(u)))})},U=(0,ye.useCallback)(()=>{let u=(0,x.$getSelection)();if((0,x.$isRangeSelection)(u)){i(u.hasFormat("bold")),g(u.hasFormat("italic")),V(u.hasFormat("underline")),_(u.hasFormat("strikethrough")),P(u.hasFormat("subscript")),C(u.hasFormat("superscript"));let A=u.anchor.getNode(),z=A;for(;z&&!(0,x.$isParagraphNode)(z)&&z!==(0,x.$getRoot)();){let W=z.getParent();W&&(z=W)}if(z){let W=z.getFormatType();G(W||"left")}let ae=A.getTopLevelElement()?.__tag;re(ae||"p")}},[]);(0,ye.useEffect)(()=>(0,At.mergeRegister)(e.registerUpdateListener(({editorState:u})=>{u.read(()=>{U()})}),e.registerCommand(x.SELECTION_CHANGE_COMMAND,(u,A)=>(U(),!1),Ue),e.registerCommand(x.CAN_UNDO_COMMAND,u=>(r(u),!1),Ue),e.registerCommand(x.CAN_REDO_COMMAND,u=>(a(u),!1),Ue)),[e,U]);let j=[[{label:"Undo",icon:(0,lt.jsx)(Z.RotateCcw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!o},{label:"Redo",icon:(0,lt.jsx)(Z.RotateCw,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.UNDO_COMMAND,void 0)},disabled:!n}],[{label:"Bold",icon:(0,lt.jsx)(gt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"bold")},value:"bold",active:l},{label:"Italic",icon:(0,lt.jsx)(bt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"italic")},value:"italic",active:y},{label:"Underline",icon:(0,lt.jsx)(ht,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"underline")},value:"underline",active:M},{label:"Strikethrough",icon:(0,lt.jsx)(vt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"strikethrough")},value:"strikethrough",active:T},{label:"Subscript",icon:(0,lt.jsx)(xt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"subscript")},value:"subscript",active:H},{label:"Superscript",icon:(0,lt.jsx)(wt,{}),onClick:()=>{e.dispatchCommand(x.FORMAT_TEXT_COMMAND,"superscript")},value:"superscript",active:p}]],ne=[{label:"Left Align",direction:"left",icon:(0,lt.jsx)(Z.AlignLeft,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"left")}},{label:"Center Align",direction:"center",icon:(0,lt.jsx)(Z.AlignCenter,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"center")}},{label:"Right Align",direction:"right",icon:(0,lt.jsx)(Z.AlignRight,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"right")}},{label:"Justify Align",direction:"justify",icon:(0,lt.jsx)(Z.AlignJustify,{width:15,height:15}),onClick:()=>{e.dispatchCommand(x.FORMAT_ELEMENT_COMMAND,"justify")}}],se=[{label:"Normal Text",value:"p",icon:(0,lt.jsx)(yt,{}),onClick:()=>$("p")},{label:"Heading 1",value:"h1",icon:(0,lt.jsx)(Ct,{}),onClick:()=>$("h1")},{label:"Heading 2",value:"h2",icon:(0,lt.jsx)(St,{}),onClick:()=>$("h2")},{label:"Heading 3",value:"h3",icon:(0,lt.jsx)(Nt,{}),onClick:()=>$("h3")},{label:"Heading 4",value:"h4",icon:(0,lt.jsx)(Rt,{}),onClick:()=>$("h4")},...[{label:"Unordered List",value:"ul",icon:(0,lt.jsx)(Z.List,{width:15,height:15}),onClick:()=>{e.dispatchCommand(De.INSERT_UNORDERED_LIST_COMMAND,void 0)}},{label:"Ordered List",value:"ol",icon:(0,lt.jsx)(Z.ListOrdered,{width:15,height:15}),onClick:()=>{e.dispatchCommand(De.INSERT_ORDERED_LIST_COMMAND,void 0)}}]],pe=[{label:"Insert Image",icon:(0,lt.jsx)(Z.ImageUp,{width:15,height:15}),onClick:()=>{b(!0)},disabled:!1}];return(0,lt.jsx)("div",{className:"flex justify-between border border-[#222222] py-2 px-2",children:(0,lt.jsxs)("div",{className:"flex gap-2 ",ref:t,children:[j.map((u,A)=>(0,lt.jsxs)(ye.Fragment,{children:[(0,lt.jsx)("div",{className:"flex items-center gap-2",children:u.map((z,ae)=>(0,lt.jsx)("div",{role:"button","aria-disabled":z.disabled||!1,onClick:z.onClick,className:w("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,lt.jsx)(Fe,{children:(0,lt.jsxs)(Ke,{children:[(0,lt.jsx)($e,{className:"text-[#b5b5b5]",children:z.icon}),(0,lt.jsx)(Te,{children:(0,lt.jsx)("p",{children:z.label})})]})})},ae))}),(0,lt.jsx)(qo,{})]},`toolbar-option-${u.length}-${A}`)),(0,lt.jsxs)(Pe,{children:[(0,lt.jsxs)(Me,{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:[ne.find(u=>u.direction===S)?.icon,ne.find(u=>u.direction===S)?.label,(0,lt.jsx)(Z.ChevronDown,{width:15,height:15})]}),(0,lt.jsx)(ve,{className:"bg-black hover:bg-black",children:ne.map((u,A)=>(0,lt.jsxs)(xe,{onClick:u.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,lt.jsx)("span",{children:u.icon}),(0,lt.jsx)("span",{children:u.label})]},`${u.label}-${A}`))})]}),(0,lt.jsxs)(Pe,{children:[(0,lt.jsxs)(Me,{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(u=>u.value===L)?.icon,se.find(u=>u.value===L)?.label,(0,lt.jsx)(Z.ChevronDown,{width:15,height:15})]}),(0,lt.jsx)(ve,{className:"bg-black hover:bg-black",children:se.map((u,A)=>(0,lt.jsxs)(xe,{onClick:u.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,lt.jsx)("span",{children:u.icon}),(0,lt.jsx)("span",{children:u.label})]},`heading-option-${u.label}-${A}`))})]})]})})}var Xo=({setValue:e,value:t,name:o,editable:r=!0})=>{let[n]=(0,Lt.useLexicalComposerContext)(),a=l=>{l.read(()=>{let i=l.toJSON();e?.(()=>i)})};return(0,ye.useEffect)(()=>{t&&n.update(()=>{n.setEditorState(n.parseEditorState(t))})},[]),(0,lt.jsx)("div",{className:"w-full px-10",children:(0,lt.jsxs)("div",{className:" ",children:[r&&(0,lt.jsx)(Ze,{}),(0,lt.jsxs)("div",{className:"px-4 my-4 border-l border-[#222222]",children:[(0,lt.jsx)(Ft.RichTextPlugin,{contentEditable:(0,lt.jsx)(_t.ContentEditable,{name:o,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:Gt.LexicalErrorBoundary}),r&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Ot.HistoryPlugin,{}),(0,lt.jsx)(zt.AutoFocusPlugin,{}),(0,lt.jsx)(Kt.ListPlugin,{}),(0,lt.jsx)(Ut.OnChangePlugin,{onChange:a})]})]})]})})},Jo=({setValue:e,value:t,name:o,editable:r=!0})=>(0,lt.jsx)(Bt.LexicalComposer,{initialConfig:{namespace:"Lexical editor",nodes:[De.ListNode,De.ListItemNode,$t.HeadingNode],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,lt.jsx)(Xo,{value:t,setValue:e,name:o,editable:r})}),Ie=Jo;function qt({document:e,onSave:t,mode:o="edit",onCancel:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[l,i]=(0,ye.useState)({...e,updatedAt:new Date}),[y,g]=(0,ye.useState)(l.richTextContent);(0,ye.useEffect)(()=>{i(e)},[e]);let M=()=>{let m=new Set,b=new Set;return a.forEach(S=>{S.menuConfig.groupBy.forEach(G=>m.add(G))}),n.forEach(S=>{S.metadata&&Object.keys(S.metadata).forEach(G=>b.add(G))}),{contextKeys:Array.from(m).sort(),documentKeys:Array.from(b).sort(),allKeys:Array.from(new Set([...m,...b])).sort()}},V=m=>{let b=new Set;return n.forEach(S=>{S.metadata?.[m]&&b.add(String(S.metadata[m]))}),Array.from(b).sort()},T=M(),_=()=>{t({...l,richTextContent:y})},H=(m,b)=>{i(S=>({...S,metadata:{...S.metadata,[m]:b}}))},P=(m,b)=>{b==="__custom__"?H(m,""):H(m,b)},p=()=>{H("","")},C=m=>{i(b=>{let S={...b.metadata};return delete S[m],{...b,metadata:S}})};return(0,lt.jsxs)(Jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,lt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,lt.jsx)(Z.Edit3,{className:"h-6 w-6 text-primary"})}),(0,lt.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:o==="edit"?"Edit Document":"Create Document"})]}),(0,lt.jsxs)("div",{className:"flex gap-2",children:[(0,lt.jsxs)(te,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,lt.jsx)(Z.X,{className:"h-4 w-4"}),"Cancel"]}),(0,lt.jsxs)(te,{size:"sm",onClick:_,className:"gap-2",children:[(0,lt.jsx)(Z.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,lt.jsx)(ge,{value:l.title,onChange:m=>i(b=>({...b,title:m.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,lt.jsx)(Se,{value:l.description||"",onChange:m=>i(b=>({...b,description:m.target.value})),placeholder:"Document description...",rows:2})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),T.contextKeys.length>0&&(0,lt.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",T.contextKeys.slice(0,4).join(", "),T.contextKeys.length>4&&` +${T.contextKeys.length-4}`]})]}),(0,lt.jsxs)(te,{type:"button",variant:"outline",size:"sm",onClick:p,className:"gap-1 h-8",children:[(0,lt.jsx)(Z.Plus,{className:"h-3 w-3"}),"Add"]})]}),l.metadata&&Object.keys(l.metadata).length>0?(0,lt.jsx)("div",{className:"space-y-2",children:Object.entries(l.metadata).map(([m,b],S)=>{let G=V(m);return(0,lt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,lt.jsx)(ge,{value:m,onChange:L=>{let re=L.target.value||"",$=l.metadata?.[m];i(U=>{let j={...U.metadata};return delete j[m],re&&(j[re]=$||""),{...U,metadata:j}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${m}`}),(0,lt.jsx)("datalist",{id:`metadata-keys-${m}`,children:T.allKeys.map(L=>(0,lt.jsx)("option",{value:L},L))}),(0,lt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),G.length>0?(0,lt.jsxs)(Ae,{value:String(b||""),onValueChange:L=>P(m,L),children:[(0,lt.jsx)(Ne,{className:"flex-1 h-8 text-sm",children:(0,lt.jsx)(Ve,{placeholder:"Value"})}),(0,lt.jsxs)(Re,{children:[G.map(L=>(0,lt.jsx)(ce,{value:L,children:L},L)),(0,lt.jsx)(ce,{value:"__custom__",children:(0,lt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,lt.jsx)(ge,{value:String(b||""),onChange:L=>H(m,L.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,lt.jsx)(te,{type:"button",variant:"ghost",size:"sm",onClick:()=>C(m),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,lt.jsx)(Z.X,{className:"h-3 w-3"})})]},`metadata-key-${S}`)})}):(0,lt.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,lt.jsx)("p",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(0,lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,lt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format"}),(0,lt.jsxs)(Ae,{value:l.format,onValueChange:m=>i(b=>({...b,format:m})),children:[(0,lt.jsx)(Ne,{className:"flex-1 h-8 text-sm",children:(0,lt.jsx)(Ve,{placeholder:"Format"})}),(0,lt.jsxs)(Re,{children:[(0,lt.jsx)(ce,{value:"markdown",children:"Markdown"}),(0,lt.jsx)(ce,{value:"richText",children:"Rich Text"})]})]})]})]})]}),(0,lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,lt.jsxs)("div",{className:"p-8",children:[(0,lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),l.format==="richText"?(0,lt.jsx)(Ie,{setValue:g,value:y,name:"richTextContent"}):(0,lt.jsx)(Se,{value:l.content||"",onChange:m=>i(b=>({...b,content:m.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var Yt=O(require("react-markdown")),Qt=O(require("remark-gfm"));var eo=e=>(0,lt.jsx)(Yt.default,{remarkPlugins:[Qt.default],components:{h1:({children:t})=>(0,lt.jsx)("h1",{className:"text-2xl font-bold",children:t}),h2:({children:t})=>(0,lt.jsx)("h2",{className:"text-xl font-bold",children:t}),h3:({children:t})=>(0,lt.jsx)("h3",{className:"text-lg font-bold",children:t}),h4:({children:t})=>(0,lt.jsx)("h4",{className:"text-base font-bold",children:t}),ol:({children:t})=>(0,lt.jsx)("ol",{className:"list-decimal",children:t}),ul:({children:t})=>(0,lt.jsx)("ul",{className:"list-disc",children:t}),li:({children:t})=>(0,lt.jsx)("li",{className:"ml-4",children:t}),p:({children:t})=>(0,lt.jsx)("p",{className:"mb-4",children:t}),a:({children:t,href:o})=>(0,lt.jsx)("a",{href:o,className:"text-blue-500",children:t}),img:({src:t,alt:o})=>(0,lt.jsx)("img",{src:t,alt:o,className:"mb-4"}),blockquote:({children:t})=>(0,lt.jsx)("blockquote",{className:"border-l-4 border-gray-300 pl-4 mb-4",children:t})},children:e}),Xt=e=>(0,lt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),Yo=e=>(0,lt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:e&&(0,lt.jsx)(Ie,{value:JSON.stringify(e),editable:!1,name:"richTextContent"})}),Qo=e=>(0,lt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,lt.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,lt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,lt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),eo(e)]});function er({document:e,onDocumentUpdate:t,editable:o=!0,mode:r="view",renderers:n,availableDocuments:a=[],knowledgeContexts:l=[]}){let[i,y]=(0,ye.useState)(!1),[g,M]=(0,ye.useState)(e);(0,ye.useEffect)(()=>{M(e)},[e]);let V=p=>{switch(p){case"markdown":case"mdx":return(0,lt.jsx)(Z.FileText,{className:"h-6 w-6 text-primary"});case"richText":return(0,lt.jsx)(Z.File,{className:"h-6 w-6 text-success"});case"text":return(0,lt.jsx)(Z.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,lt.jsx)(Z.File,{className:"h-6 w-6 text-muted-foreground"})}},T=p=>{switch(p){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"}},_=(p,C)=>{let m={markdown:eo,mdx:Qo,text:Xt},b=n?.[C]||m[C];if(C==="richText"&&typeof p=="object")return Yo(p);if(b&&typeof p=="string")return b(p);if(typeof p=="string")return Xt(p)},H=p=>{y(!1),t?.(p),M(p)},P=()=>{y(!1)};return i||r==="create"?(0,lt.jsx)(qt,{mode:r==="create"?"create":"edit",document:g,onSave:H,onCancel:P,availableDocuments:a,knowledgeContexts:l}):(0,lt.jsxs)(Jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,lt.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,lt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:V(g.format)}),(0,lt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,lt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:g.title}),g.description&&(0,lt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:g.description})]})]}),o&&(0,lt.jsx)("div",{className:"flex-shrink-0",children:(0,lt.jsxs)(te,{variant:"outline",size:"sm",onClick:()=>y(!0),className:"gap-2",children:[(0,lt.jsx)(Z.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,lt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,lt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${T(g.format)}`,children:g.format.toUpperCase()}),g.tags?.map(p=>(0,lt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",p]},p))]})]}),(0,lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,lt.jsxs)("div",{className:"p-8",children:[g.metadata&&Object.keys(g.metadata).length>0&&(0,lt.jsxs)("div",{className:"mb-6",children:[(0,lt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,lt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,lt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(g.metadata).map(([p,C])=>(0,lt.jsxs)("div",{className:"flex gap-1",children:[(0,lt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[p.replace(/([A-Z])/g," $1").trim(),":"]}),(0,lt.jsx)("span",{className:"text-foreground truncate",children:String(C)})]},p))})})]}),(0,lt.jsx)("div",{className:"space-y-4",children:g.content||g.richTextContent?(0,lt.jsx)("div",{className:"relative",children:(0,lt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:_(g.format==="richText"?g.richTextContent:g.content,g.format)})}):(0,lt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,lt.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,lt.jsx)(Z.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,lt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,lt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}0&&(module.exports={DocumentPreview});
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-XC3Y62VP.mjs";import"../../chunk-TH6RC62B.mjs";import"../../chunk-D2ARSS5J.mjs";import"../../chunk-GTHKYSK2.mjs";import"../../chunk-IPRG56MW.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-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-FT3AE7L2.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.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-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentPreview};
2
+ "use strict";import{a}from"../../chunk-SH2SBOG7.mjs";import"../../chunk-Z2SJVYUM.mjs";import"../../chunk-GCRVTTBJ.mjs";import"../../chunk-IBUT2LYD.mjs";import"../../chunk-VSU7LYXZ.mjs";import"../../chunk-IPRG56MW.mjs";import"../../chunk-HFEN3KJC.mjs";import"../../chunk-L2UJOICL.mjs";import"../../chunk-T3F3RQIC.mjs";import"../../chunk-UP67R64J.mjs";import"../../chunk-6QERRKM4.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-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentPreview};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-NDZ26EG6.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DigitalColleagueClone};
2
+ "use strict";import{a}from"../../chunk-NDZ26EG6.mjs";import"../../chunk-L5JPAKPM.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 DigitalColleagueClone};