cortex-react-components 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/{chunk-RGOKBIQ5.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-GTZJWMZR.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  3. package/dist/{chunk-PZXOH6CZ.mjs → chunk-2SAKLSZ4.mjs} +1 -1
  4. package/dist/{chunk-75F3LJMX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  5. package/dist/{chunk-RJGYVDOU.mjs → chunk-67QPOSVV.mjs} +1 -1
  6. package/dist/{chunk-S6KDP563.mjs → chunk-67VXPDWA.mjs} +1 -1
  7. package/dist/{chunk-WYXXGVHL.mjs → chunk-7BCUACIY.mjs} +1 -1
  8. package/dist/{chunk-CXOVEABI.mjs → chunk-7GMAMIHM.mjs} +1 -1
  9. package/dist/{chunk-ECXVQZBN.mjs → chunk-ABGNIQRP.mjs} +1 -1
  10. package/dist/{chunk-6MSM3CZ6.mjs → chunk-B7AXSCTN.mjs} +1 -1
  11. package/dist/chunk-BDFHWLTS.mjs +4 -0
  12. package/dist/{chunk-V5W32NJ4.mjs → chunk-CAKJOTEE.mjs} +1 -1
  13. package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
  14. package/dist/{chunk-O3ORC6HS.mjs → chunk-EAFH3DTH.mjs} +1 -1
  15. package/dist/{chunk-WIRQ5IRT.mjs → chunk-ERJXTG6X.mjs} +1 -1
  16. package/dist/{chunk-3NRXQBBS.mjs → chunk-FKU4VQR6.mjs} +1 -1
  17. package/dist/{chunk-M4UVNIK2.mjs → chunk-FTZRG54P.mjs} +1 -1
  18. package/dist/chunk-GILMVRED.mjs +4 -0
  19. package/dist/{chunk-GHOL5L32.mjs → chunk-H3CJOE6S.mjs} +1 -1
  20. package/dist/{chunk-NINFDOV5.mjs → chunk-HKGW6JI2.mjs} +1 -1
  21. package/dist/{chunk-FE7ZGUPU.mjs → chunk-IF3425JX.mjs} +1 -1
  22. package/dist/{chunk-5MU4KV3B.mjs → chunk-LHEZJYVN.mjs} +1 -1
  23. package/dist/{chunk-LJXTXROJ.mjs → chunk-LJOWXPWW.mjs} +1 -1
  24. package/dist/{chunk-AJQHGVZ5.mjs → chunk-LJQPLE4S.mjs} +1 -1
  25. package/dist/{chunk-3HNU2NYP.mjs → chunk-M7NV6EFH.mjs} +1 -1
  26. package/dist/{chunk-7R47MHQE.mjs → chunk-MXCW6SOT.mjs} +1 -1
  27. package/dist/{chunk-2BRDNDUB.mjs → chunk-N3B3XNV3.mjs} +1 -1
  28. package/dist/{chunk-GTZDHELR.mjs → chunk-N7BHIWS5.mjs} +1 -1
  29. package/dist/{chunk-Y7C4UC7A.mjs → chunk-P2MTGU2L.mjs} +1 -1
  30. package/dist/{chunk-5MWZTJYP.mjs → chunk-PK3OBSCB.mjs} +1 -1
  31. package/dist/{chunk-NHFCO6RG.mjs → chunk-QQVPLMPJ.mjs} +1 -1
  32. package/dist/{chunk-B2EJGXDG.mjs → chunk-QTILVWJA.mjs} +1 -1
  33. package/dist/chunk-QUXHULLX.mjs +4 -0
  34. package/dist/{chunk-7VDNUJZC.mjs → chunk-RAGDUV7M.mjs} +1 -1
  35. package/dist/{chunk-JRYQ4FE7.mjs → chunk-RNMPX2AU.mjs} +1 -1
  36. package/dist/{chunk-VWLPVN4M.mjs → chunk-S4A4VHOI.mjs} +1 -1
  37. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  38. package/dist/{chunk-OQYER4E7.mjs → chunk-SW7RYGO6.mjs} +1 -1
  39. package/dist/{chunk-INPV5MBU.mjs → chunk-TK4JC5PG.mjs} +1 -1
  40. package/dist/{chunk-ULCV2E74.mjs → chunk-U3F45KVI.mjs} +1 -1
  41. package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
  42. package/dist/{chunk-C4RWEPVF.mjs → chunk-YKG4FNS4.mjs} +1 -1
  43. package/dist/{chunk-ICJ2QDZF.mjs → chunk-YNTAZCKJ.mjs} +1 -1
  44. package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  45. package/dist/components/Blocks/Banner.mjs +1 -1
  46. package/dist/components/Blocks/CallToAction.mjs +1 -1
  47. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  48. package/dist/components/Blocks/Content.mjs +1 -1
  49. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  50. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  51. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  52. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  53. package/dist/components/Blocks/index.mjs +1 -1
  54. package/dist/components/CRM/index.mjs +1 -1
  55. package/dist/components/Cards/ContentCard.mjs +1 -1
  56. package/dist/components/Cards/FeatureCard.mjs +1 -1
  57. package/dist/components/Cards/index.mjs +1 -1
  58. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  59. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  60. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  61. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  62. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  63. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  64. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  65. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  66. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  67. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  68. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  69. package/dist/components/DigitalColleagues/document-edit.d.ts +8 -0
  70. package/dist/components/DigitalColleagues/document-edit.js +4 -0
  71. package/dist/components/DigitalColleagues/document-edit.mjs +2 -0
  72. package/dist/components/DigitalColleagues/document-preview.d.ts +8 -0
  73. package/dist/components/DigitalColleagues/document-preview.js +4 -0
  74. package/dist/components/DigitalColleagues/document-preview.mjs +2 -0
  75. package/dist/components/DigitalColleagues/index.d.ts +4 -0
  76. package/dist/components/DigitalColleagues/index.js +1 -1
  77. package/dist/components/DigitalColleagues/index.mjs +1 -1
  78. package/dist/components/DigitalColleagues/knowledge-browser.css +1 -0
  79. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-browser.d.ts +4 -2
  80. package/dist/components/DigitalColleagues/knowledge-browser.js +5 -0
  81. package/dist/components/DigitalColleagues/knowledge-browser.mjs +2 -0
  82. package/dist/components/DigitalColleagues/knowledge-search.css +1 -0
  83. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.d.ts +1 -1
  84. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.js +1 -1
  85. package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.mjs +1 -1
  86. package/dist/components/HeaderFooter/Header.mjs +1 -1
  87. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  88. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  89. package/dist/components/HeaderFooter/index.mjs +1 -1
  90. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  91. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  92. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  93. package/dist/components/Heros/PostHero/index.mjs +1 -1
  94. package/dist/components/Heros/RenderHero.mjs +1 -1
  95. package/dist/components/Heros/index.mjs +1 -1
  96. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  97. package/dist/components/Holidays/index.mjs +1 -1
  98. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  99. package/dist/components/Layouts/Print.mjs +1 -1
  100. package/dist/components/Layouts/SlideShow.mjs +1 -1
  101. package/dist/components/Layouts/index.mjs +1 -1
  102. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  103. package/dist/components/Menus/SidebarRight.mjs +1 -1
  104. package/dist/components/Menus/index.mjs +1 -1
  105. package/dist/components/Payload/RichText/index.mjs +1 -1
  106. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  107. package/dist/components/Payload/index.mjs +1 -1
  108. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  109. package/dist/components/Projects/ProjectPage.mjs +1 -1
  110. package/dist/components/Projects/ProjectView.mjs +1 -1
  111. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  112. package/dist/components/dc-temp/index.d.ts +1 -1
  113. package/dist/components/dc-temp/index.js +1 -1
  114. package/dist/components/dc-temp/index.mjs +1 -1
  115. package/dist/components/index.js +10 -10
  116. package/dist/components/index.mjs +1 -1
  117. package/dist/components/ui/index.mjs +1 -1
  118. package/dist/components/ui/sidebar.mjs +1 -1
  119. package/dist/globals.css +1 -1
  120. package/dist/index.js +14 -14
  121. package/dist/index.mjs +1 -1
  122. package/dist/metafile-cjs.json +1 -1
  123. package/dist/metafile-esm.json +1 -1
  124. package/dist/pages/Blog.mjs +1 -1
  125. package/dist/pages/Documentation.mjs +1 -1
  126. package/dist/pages/IndexPage.mjs +1 -1
  127. package/dist/pages/Intranet.mjs +1 -1
  128. package/dist/pages/LandingPage.mjs +1 -1
  129. package/dist/pages/Page.mjs +1 -1
  130. package/dist/pages/Publish.mjs +1 -1
  131. package/dist/pages/Website.mjs +1 -1
  132. package/dist/sections/AboutSection.mjs +1 -1
  133. package/dist/sections/BlogDetail.mjs +1 -1
  134. package/dist/sections/BlogList.mjs +1 -1
  135. package/dist/sections/BlogListSection.mjs +1 -1
  136. package/dist/sections/ContactSection.mjs +1 -1
  137. package/dist/sections/PageSections.mjs +1 -1
  138. package/dist/sections/PricingSection.mjs +1 -1
  139. package/dist/sections/ServiceDetail.mjs +1 -1
  140. package/dist/sections/ServiceDetailSection.mjs +1 -1
  141. package/dist/sections/ServiceSection.mjs +1 -1
  142. package/dist/sections/form/index.mjs +1 -1
  143. package/dist/sections/index.mjs +1 -1
  144. package/package.json +1 -1
  145. package/dist/chunk-637VXITY.mjs +0 -4
  146. package/dist/components/dc-temp/knowledge-browser.js +0 -5
  147. package/dist/components/dc-temp/knowledge-browser.mjs +0 -2
  148. /package/dist/components/{dc-temp/knowledge-browser.css → DigitalColleagues/document-edit.css} +0 -0
  149. /package/dist/components/{dc-temp/knowledge-search.css → DigitalColleagues/document-preview.css} +0 -0
@@ -1 +1 @@
1
- import{a}from"../../../chunk-ULCV2E74.mjs";import{a as d}from"../../../chunk-ICJ2QDZF.mjs";import"../../../chunk-PXPSM7OQ.mjs";import"../../../chunk-5MU4KV3B.mjs";import"../../../chunk-AMV3MECK.mjs";import"../../../chunk-NZS3XKXU.mjs";import{a as e}from"../../../chunk-PZXOH6CZ.mjs";import"../../../chunk-D3B2YO7G.mjs";import"../../../chunk-PEQOQ7BK.mjs";import"../../../chunk-HHYHENVF.mjs";import"../../../chunk-PFLESLNT.mjs";import"../../../chunk-AB43AQKL.mjs";import"../../../chunk-ORNGKQM7.mjs";import"../../../chunk-6DEY5ZDD.mjs";import"../../../chunk-2VZWOBGP.mjs";import"../../../chunk-KOXC4RIH.mjs";import"../../../chunk-6YHVVP3S.mjs";import{a as b}from"../../../chunk-S6KDP563.mjs";import{a as c}from"../../../chunk-FV3W3WL7.mjs";import"../../../chunk-3U3PZBHQ.mjs";import{a as f}from"../../../chunk-FRKGQKEM.mjs";import"../../../chunk-MNI6AM7Q.mjs";import"../../../chunk-637VXITY.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-ECXVQZBN.mjs";import"../../../chunk-EOXVYLPB.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-O3ORC6HS.mjs";import"../../../chunk-NHFCO6RG.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-6SWKEZN6.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-M245YHYF.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-3UMMMQEH.mjs";import"../../../chunk-O5P35LEY.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ColleaguesView,c as FileView,b as KnowledgeView,d as ProjectView,e as ProjectsIndexView,f as TeamsIndexView};
1
+ import{a}from"../../../chunk-U3F45KVI.mjs";import{a as d}from"../../../chunk-YNTAZCKJ.mjs";import"../../../chunk-PXPSM7OQ.mjs";import"../../../chunk-KOXC4RIH.mjs";import"../../../chunk-LHEZJYVN.mjs";import"../../../chunk-HHYHENVF.mjs";import"../../../chunk-PFLESLNT.mjs";import"../../../chunk-AB43AQKL.mjs";import"../../../chunk-6YHVVP3S.mjs";import"../../../chunk-AMV3MECK.mjs";import"../../../chunk-NZS3XKXU.mjs";import{a as e}from"../../../chunk-2SAKLSZ4.mjs";import"../../../chunk-PEQOQ7BK.mjs";import"../../../chunk-D3B2YO7G.mjs";import"../../../chunk-ORNGKQM7.mjs";import"../../../chunk-6DEY5ZDD.mjs";import"../../../chunk-2VZWOBGP.mjs";import"../../../chunk-5RTGHMF3.mjs";import{a as b}from"../../../chunk-67VXPDWA.mjs";import{a as c}from"../../../chunk-FV3W3WL7.mjs";import"../../../chunk-3U3PZBHQ.mjs";import{a as f}from"../../../chunk-FRKGQKEM.mjs";import"../../../chunk-MNI6AM7Q.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-QUXHULLX.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-RUOYGMOR.mjs";import"../../../chunk-WN2LPOQP.mjs";import"../../../chunk-BADFWNRL.mjs";import"../../../chunk-GILMVRED.mjs";import"../../../chunk-BDFHWLTS.mjs";import"../../../chunk-ABGNIQRP.mjs";import"../../../chunk-EOXVYLPB.mjs";import"../../../chunk-AVHFRD6D.mjs";import"../../../chunk-6SWKEZN6.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-M245YHYF.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-3UMMMQEH.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ColleaguesView,c as FileView,b as KnowledgeView,d as ProjectView,e as ProjectsIndexView,f as TeamsIndexView};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-O3ORC6HS.mjs";import"../../chunk-NHFCO6RG.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueForm};
2
+ "use strict";import{a}from"../../chunk-EAFH3DTH.mjs";import"../../chunk-QQVPLMPJ.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ColleagueForm};
@@ -0,0 +1,8 @@
1
+ import type { KnowledgeDocument } from "./types";
2
+ interface DocumentEditProps {
3
+ document: KnowledgeDocument;
4
+ onSave: (document: KnowledgeDocument) => void;
5
+ onCancel: () => void;
6
+ }
7
+ export declare function DocumentEdit({ document, onSave, onCancel }: DocumentEditProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ "use strict";"use client";var Pe=Object.create;var H=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var Ae=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Ie=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},ne=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Te(t))!Re.call(e,a)&&a!==r&&H(e,a,{get:()=>t[a],enumerable:!(o=Se(t,a))||o.enumerable});return e};var O=(e,t,r)=>(r=e!=null?Pe(Ae(e)):{},ne(t||!e||!e.__esModule?H(r,"default",{value:e,enumerable:!0}):r,e)),Ee=e=>ne(H({},"__esModule",{value:!0}),e);var bt={};Ie(bt,{DocumentEdit:()=>mt});module.exports=Ee(bt);var Ne=require("framer-motion"),R=require("lucide-react"),Me=require("react");var me=require("clsx");var J="-",Ge=e=>{let t=Be(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(J);return n[0]===""&&n.length!==1&&n.shift(),ie(n,t)||Le(l)},getConflictingClassGroupIds:(l,n)=>{let d=r[l]||[];return n&&o[l]?[...d,...o[l]]:d}}},ie=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ie(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(J);return t.validators.find(({validator:l})=>l(s))?.classGroupId},se=/^\[(.+)\]$/,Le=e=>{if(se.test(e)){let t=se.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Be=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return je(Object.entries(e.classGroups),r).forEach(([s,l])=>{X(l,o,s,t)}),o},X=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:ae(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Ve(a)){X(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,l])=>{X(l,ae(t,s),r,o)})})},ae=(e,t)=>{let r=e;return t.split(J).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ve=e=>e.isThemeGetter,je=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[r,a]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,l)=>{r.set(s,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let l=r.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return a(s,l),l},set(s,l){r.has(s)?r.set(s,l):a(s,l)}}},le="!",_e=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,l=n=>{let d=[],m=0,h=0,v;for(let b=0;b<n.length;b++){let g=n[b];if(m===0){if(g===a&&(o||n.slice(b,b+s)===t)){d.push(n.slice(h,b)),h=b+s;continue}if(g==="/"){v=b;continue}}g==="["?m++:g==="]"&&m--}let y=d.length===0?n:n.substring(h),k=y.startsWith(le),w=k?y.substring(1):y,f=v&&v>h?v-h:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:f}};return r?n=>r({className:n,parseClassName:l}):l},We=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},De=e=>({cache:He(e.cacheSize),parseClassName:_e(e),...Ge(e)}),$e=/\s+/,Ue=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split($e),n="";for(let d=l.length-1;d>=0;d-=1){let m=l[d],{modifiers:h,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:k}=r(m),w=!!k,f=o(w?y.substring(0,k):y);if(!f){if(!w){n=m+(n.length>0?" "+n:n);continue}if(f=o(y),!f){n=m+(n.length>0?" "+n:n);continue}w=!1}let b=We(h).join(":"),g=v?b+le:b,x=g+f;if(s.includes(x))continue;s.push(x);let I=a(f,w);for(let S=0;S<I.length;++S){let B=I[S];s.push(g+B)}n=m+(n.length>0?" "+n:n)}return n};function Fe(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ce(t))&&(o&&(o+=" "),o+=r);return o}var ce=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ce(e[o]))&&(r&&(r+=" "),r+=t);return r};function Ke(e,...t){let r,o,a,s=l;function l(d){let m=t.reduce((h,v)=>v(h),e());return r=De(m),o=r.cache.get,a=r.cache.set,s=n,n(d)}function n(d){let m=o(d);if(m)return m;let h=Ue(d,r);return a(d,h),h}return function(){return s(Fe.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},de=/^\[(?:([a-z-]+):)?(.+)\]$/i,Oe=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Xe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Je=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ze=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Qe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ye=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>T(e)||qe.has(e)||Oe.test(e),M=e=>A(e,"length",it),T=e=>!!e&&!Number.isNaN(Number(e)),q=e=>A(e,"number",T),G=e=>!!e&&Number.isInteger(Number(e)),et=e=>e.endsWith("%")&&T(e.slice(0,-1)),i=e=>de.test(e),P=e=>Xe.test(e),tt=new Set(["length","size","percentage"]),rt=e=>A(e,tt,pe),ot=e=>A(e,"position",pe),nt=new Set(["image","url"]),st=e=>A(e,nt,ct),at=e=>A(e,"",lt),L=()=>!0,A=(e,t,r)=>{let o=de.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},it=e=>Je.test(e)&&!Ze.test(e),pe=()=>!1,lt=e=>Qe.test(e),ct=e=>Ye.test(e);var dt=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),a=p("borderColor"),s=p("borderRadius"),l=p("borderSpacing"),n=p("borderWidth"),d=p("contrast"),m=p("grayscale"),h=p("hueRotate"),v=p("invert"),y=p("gap"),k=p("gradientColorStops"),w=p("gradientColorStopPositions"),f=p("inset"),b=p("margin"),g=p("opacity"),x=p("padding"),I=p("saturate"),S=p("scale"),B=p("sepia"),Z=p("skew"),Q=p("space"),Y=p("translate"),$=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",i,t],u=()=>[i,t],ee=()=>["",z,M],V=()=>["auto",T,i],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",i],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[T,i];return{cacheSize:500,separator:":",theme:{colors:[L],spacing:[z,M],blur:["none","",P,i],brightness:C(),borderColor:[e],borderRadius:["none","","full",P,i],borderSpacing:u(),borderWidth:ee(),contrast:C(),grayscale:E(),hueRotate:C(),invert:E(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[et,M],inset:F(),margin:F(),opacity:C(),padding:u(),saturate:C(),scale:C(),sepia:E(),skew:C(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"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:[...te(),i]}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,i]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",G,i]}],"grid-cols":[{"grid-cols":[L]}],"col-start-end":[{col:["auto",{span:["full",G,i]},i]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[L]}],"row-start-end":[{row:["auto",{span:[G,i]},i]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-w":[{"min-w":[i,t,"min","max","fit"]}],"max-w":[{"max-w":[i,t,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",P,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",q]}],"font-family":[{font:[L]}],"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",i]}],"line-clamp":[{"line-clamp":["none",T,q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,M]}],"underline-offset":[{"underline-offset":["auto",z,i]}],"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:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),ot]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},st]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...j(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:j()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...j()]}],"outline-offset":[{"outline-offset":[z,i]}],"outline-w":[{outline:[z,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[z,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,at]}],"shadow-color":[{shadow:[L]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",P,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[v]}],saturate:[{saturate:[I]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",i]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[G,i]}],"translate-x":[{"translate-x":[Y]}],"translate-y":[{"translate-y":[Y]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,M,q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ue=Ke(dt);function N(...e){return ue((0,me.clsx)(e))}var be=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),ge=O(require("react")),he=require("react/jsx-runtime"),pt=(0,fe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),_=ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,he.jsx)(e?be.Slot:"button",{className:N(pt({className:t,size:r,variant:o})),ref:s,...a}));_.displayName="Button";var xe=O(require("react")),W=xe.forwardRef(({className:e,...t},r)=>(0,he.jsx)("textarea",{className:N("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));W.displayName="Textarea";var ye=O(require("react"));var D=ye.forwardRef(({className:e,type:t,...r},o)=>(0,he.jsx)("input",{type:t,className:N("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));D.displayName="Input";var ut=(0,fe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ce({className:e,variant:t,...r}){return(0,he.jsx)("div",{className:N(ut({variant:t}),e),...r})}function mt({document:e,onSave:t,onCancel:r}){let[o,a]=(0,Me.useState)({...e,updatedAt:new Date}),s=()=>{t(o)},l=n=>{let d=n.split(",").map(m=>m.trim()).filter(m=>m.length>0);a(m=>({...m,tags:d}))};return(0,he.jsxs)(Ne.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,he.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,he.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,he.jsxs)("div",{className:"flex items-center gap-3",children:[(0,he.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,he.jsx)(R.Edit3,{className:"h-6 w-6 text-primary"})}),(0,he.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,he.jsxs)("div",{className:"flex gap-2",children:[(0,he.jsxs)(_,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,he.jsx)(R.X,{className:"h-4 w-4"}),"Cancel"]}),(0,he.jsxs)(_,{size:"sm",onClick:s,className:"gap-2",children:[(0,he.jsx)(R.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,he.jsxs)("div",{className:"space-y-4",children:[(0,he.jsxs)("div",{children:[(0,he.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,he.jsx)(D,{value:o.title,onChange:n=>a(d=>({...d,title:n.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,he.jsxs)("div",{children:[(0,he.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,he.jsx)(W,{value:o.description||"",onChange:n=>a(d=>({...d,description:n.target.value})),placeholder:"Document description...",rows:2})]}),(0,he.jsxs)("div",{children:[(0,he.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),(0,he.jsx)(D,{value:o.tags?.join(", ")||"",onChange:n=>l(n.target.value),placeholder:"tag1, tag2, tag3..."})]}),(0,he.jsxs)("div",{className:"flex items-center gap-2",children:[(0,he.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,he.jsx)(Ce,{variant:"secondary",className:"font-mono",children:o.format.toUpperCase()})]})]})]}),(0,he.jsx)("div",{className:"flex-1 overflow-auto",children:(0,he.jsxs)("div",{className:"p-8",children:[(0,he.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,he.jsx)(W,{value:o.content||"",onChange:n=>a(d=>({...d,content:n.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}0&&(module.exports={DocumentEdit});
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";import{a}from"../../chunk-BDFHWLTS.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentEdit};
@@ -0,0 +1,8 @@
1
+ import type { KnowledgeDocument } from "./types";
2
+ interface DocumentPreviewProps {
3
+ document: KnowledgeDocument;
4
+ onDocumentUpdate?: (document: KnowledgeDocument) => void;
5
+ editable?: boolean;
6
+ }
7
+ export declare function DocumentPreview({ document, onDocumentUpdate, editable }: DocumentPreviewProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ "use strict";
3
+
4
+ "use strict";"use client";var Ee=Object.create;var W=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Be=Object.getPrototypeOf,Le=Object.prototype.hasOwnProperty;var Ve=(e,t)=>{for(var r in t)W(e,r,{get:t[r],enumerable:!0})},ae=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ge(t))!Le.call(e,a)&&a!==r&&W(e,a,{get:()=>t[a],enumerable:!(o=Ie(t,a))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?Ee(Be(e)):{},ae(t||!e||!e.__esModule?W(r,"default",{value:e,enumerable:!0}):r,e)),De=e=>ae(W({},"__esModule",{value:!0}),e);var vt={};Ve(vt,{DocumentPreview:()=>ht});module.exports=De(vt);var Ae=require("framer-motion"),T=require("lucide-react"),Re=require("react");var be=require("clsx");var Q="-",je=e=>{let t=_e(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Q);return n[0]===""&&n.length!==1&&n.shift(),ce(n,t)||He(i)},getConflictingClassGroupIds:(i,n)=>{let u=r[i]||[];return n&&o[i]?[...u,...o[i]]:u}}},ce=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ce(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Q);return t.validators.find(({validator:i})=>i(s))?.classGroupId},ie=/^\[(.+)\]$/,He=e=>{if(ie.test(e)){let t=ie.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_e=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ke(Object.entries(e.classGroups),r).forEach(([s,i])=>{J(i,o,s,t)}),o},J=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:le(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(We(a)){J(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,i])=>{J(i,le(t,s),r,o)})})},le=(e,t)=>{let r=e;return t.split(Q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},We=e=>e.isThemeGetter,Ke=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[r,a]}):e,$e=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){r.has(s)?r.set(s,i):a(s,i)}}},de="!",Ue=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,i=n=>{let u=[],d=0,g=0,y;for(let b=0;b<n.length;b++){let h=n[b];if(d===0){if(h===a&&(o||n.slice(b,b+s)===t)){u.push(n.slice(g,b)),g=b+s;continue}if(h==="/"){y=b;continue}}h==="["?d++:h==="]"&&d--}let w=u.length===0?n:n.substring(g),k=w.startsWith(de),N=k?w.substring(1):w,x=y&&y>g?y-g:void 0;return{modifiers:u,hasImportantModifier:k,baseClassName:N,maybePostfixModifierPosition:x}};return r?n=>r({className:n,parseClassName:i}):i},Fe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Oe=e=>({cache:$e(e.cacheSize),parseClassName:Ue(e),...je(e)}),qe=/\s+/,Xe=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(qe),n="";for(let u=i.length-1;u>=0;u-=1){let d=i[u],{modifiers:g,hasImportantModifier:y,baseClassName:w,maybePostfixModifierPosition:k}=r(d),N=!!k,x=o(N?w.substring(0,k):w);if(!x){if(!N){n=d+(n.length>0?" "+n:n);continue}if(x=o(w),!x){n=d+(n.length>0?" "+n:n);continue}N=!1}let b=Fe(g).join(":"),h=y?b+de:b,v=h+x;if(s.includes(v))continue;s.push(v);let B=a(x,N);for(let A=0;A<B.length;++A){let j=B[A];s.push(h+j)}n=d+(n.length>0?" "+n:n)}return n};function Ze(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=pe(t))&&(o&&(o+=" "),o+=r);return o}var pe=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=pe(e[o]))&&(r&&(r+=" "),r+=t);return r};function Je(e,...t){let r,o,a,s=i;function i(u){let d=t.reduce((g,y)=>y(g),e());return r=Oe(d),o=r.cache.get,a=r.cache.set,s=n,n(u)}function n(u){let d=o(u);if(d)return d;let g=Xe(u,r);return a(u,g),g}return function(){return s(Ze.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qe=/^\d+\/\d+$/,Ye=new Set(["px","full","screen"]),et=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ot=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>R(e)||Ye.has(e)||Qe.test(e),S=e=>E(e,"length",ut),R=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>E(e,"number",R),V=e=>!!e&&Number.isInteger(Number(e)),st=e=>e.endsWith("%")&&R(e.slice(0,-1)),l=e=>ue.test(e),M=e=>et.test(e),at=new Set(["length","size","percentage"]),it=e=>E(e,at,me),lt=e=>E(e,"position",me),ct=new Set(["image","url"]),dt=e=>E(e,ct,ft),pt=e=>E(e,"",mt),D=()=>!0,E=(e,t,r)=>{let o=ue.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},ut=e=>tt.test(e)&&!rt.test(e),me=()=>!1,mt=e=>ot.test(e),ft=e=>nt.test(e);var bt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),a=m("borderColor"),s=m("borderRadius"),i=m("borderSpacing"),n=m("borderWidth"),u=m("contrast"),d=m("grayscale"),g=m("hueRotate"),y=m("invert"),w=m("gap"),k=m("gradientColorStops"),N=m("gradientColorStopPositions"),x=m("inset"),b=m("margin"),h=m("opacity"),v=m("padding"),B=m("saturate"),A=m("scale"),j=m("sepia"),Y=m("skew"),ee=m("space"),te=m("translate"),U=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",l,t],f=()=>[l,t],re=()=>["",z,S],H=()=>["auto",R,l],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",l],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[R,l];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[z,S],blur:["none","",M,l],brightness:C(),borderColor:[e],borderRadius:["none","","full",M,l],borderSpacing:f(),borderWidth:re(),contrast:C(),grayscale:L(),hueRotate:C(),invert:L(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[st,S],inset:O(),margin:O(),opacity:C(),padding:f(),saturate:C(),scale:C(),sepia:L(),skew:C(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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:[...oe(),l]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,l]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],ve:[{ve:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",R,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,S]}],"underline-offset":[{"underline-offset":["auto",z,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),lt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",it]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[z,l]}],"outline-w":[{outline:[z,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[z,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,pt]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",M,l]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[y]}],saturate:[{saturate:[B]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[te]}],"translate-y":[{"translate-y":[te]}],"skew-x":[{"skew-x":[Y]}],"skew-y":[{"skew-y":[Y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-ve":[{"scroll-ve":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[z,S,Z]}],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"],ve:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-ve":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var fe=Je(bt);function P(...e){return fe((0,be.clsx)(e))}var ge=require("@radix-ui/react-slot"),xe=require("class-variance-authority"),he=X(require("react")),ve=require("react/jsx-runtime"),gt=(0,xe.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"}}}),I=he.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,ve.jsx)(e?ge.Slot:"button",{className:P(gt({className:t,size:r,variant:o})),ref:s,...a}));I.displayName="Button";var ye=X(require("react")),K=ye.forwardRef(({className:e,...t},r)=>(0,ve.jsx)("textarea",{className:P("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));K.displayName="Textarea";var Ne=X(require("react"));var $=Ne.forwardRef(({className:e,type:t,...r},o)=>(0,ve.jsx)("input",{type:t,className:P("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...r}));$.displayName="Input";var xt=(0,xe.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ze({className:e,variant:t,...r}){return(0,ve.jsx)("div",{className:P(xt({variant:t}),e),...r})}function Te({document:e,onSave:t,onCancel:r}){let[o,a]=(0,Re.useState)({...e,updatedAt:new Date}),s=()=>{t(o)},i=n=>{let u=n.split(",").map(d=>d.trim()).filter(d=>d.length>0);a(d=>({...d,tags:u}))};return(0,ve.jsxs)(Ae.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,ve.jsxs)("div",{className:"border-b border-border bg-card ve-8",children:[(0,ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,ve.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ve.jsx)("div",{className:"flex-shrink-0 ve-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,ve.jsx)(T.Edit3,{className:"h-6 w-6 text-primary"})}),(0,ve.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,ve.jsxs)("div",{className:"flex gap-2",children:[(0,ve.jsxs)(I,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,ve.jsx)(T.X,{className:"h-4 w-4"}),"Cancel"]}),(0,ve.jsxs)(I,{size:"sm",onClick:s,className:"gap-2",children:[(0,ve.jsx)(T.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,ve.jsxs)("div",{className:"space-y-4",children:[(0,ve.jsxs)("div",{children:[(0,ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,ve.jsx)($,{value:o.title,onChange:n=>a(u=>({...u,title:n.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,ve.jsx)(K,{value:o.description||"",onChange:n=>a(u=>({...u,description:n.target.value})),placeholder:"Document description...",rows:2})]}),(0,ve.jsxs)("div",{children:[(0,ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),(0,ve.jsx)($,{value:o.tags?.join(", ")||"",onChange:n=>i(n.target.value),placeholder:"tag1, tag2, tag3..."})]}),(0,ve.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ve.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,ve.jsx)(ze,{variant:"secondary",className:"font-mono",children:o.format.toUpperCase()})]})]})]}),(0,ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,ve.jsxs)("div",{className:"ve-8",children:[(0,ve.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,ve.jsx)(K,{value:o.content||"",onChange:n=>a(u=>({...u,content:n.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}function ht({document:e,onDocumentUpdate:t,editable:r=!0}){let[o,a]=(0,Re.useState)(!1),s=d=>{switch(d){case"markdown":case"mdx":return(0,ve.jsx)(T.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,ve.jsx)(T.File,{className:"h-6 w-6 text-success"});default:return(0,ve.jsx)(T.File,{className:"h-6 w-6 text-muted-foreground"})}},i=d=>{switch(d){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";default:return"bg-muted text-muted-foreground border-border"}},n=d=>{a(!1),t?.(d)},u=()=>{a(!1)};return o?(0,ve.jsx)(Te,{document:e,onSave:n,onCancel:u}):(0,ve.jsxs)(Ae.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,ve.jsxs)("div",{className:"border-b border-border bg-card ve-8",children:[(0,ve.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,ve.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,ve.jsx)("div",{className:"flex-shrink-0 ve-3 rounded-xl bg-muted border border-border",children:s(e.format)}),(0,ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ve.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,ve.jsx)("ve",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,ve.jsx)("div",{className:"flex-shrink-0",children:(0,ve.jsxs)(I,{variant:"outline",size:"sm",onClick:()=>a(!0),className:"gap-2",children:[(0,ve.jsx)(T.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,ve.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,ve.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${i(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(d=>(0,ve.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",d]},d))]})]}),(0,ve.jsx)("div",{className:"flex-1 overflow-auto",children:(0,ve.jsxs)("div",{className:"ve-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,ve.jsxs)("div",{className:"mb-6",children:[(0,ve.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,ve.jsx)("div",{className:"bg-muted rounded-lg ve-3 border border-border",children:(0,ve.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([d,g])=>(0,ve.jsxs)("div",{className:"flex gap-1",children:[(0,ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[d.replace(/([A-Z])/g," $1").trim(),":"]}),(0,ve.jsx)("span",{className:"text-foreground truncate",children:String(g)})]},d))})})]}),(0,ve.jsx)("div",{className:"space-y-4",children:e.content?(0,ve.jsxs)("div",{className:"relative",children:[(0,ve.jsx)("div",{className:"bg-card border border-border rounded-xl ve-6 overflow-hidden",children:(0,ve.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,ve.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,ve.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,ve.jsx)(T.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,ve.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,ve.jsx)("ve",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}0&&(module.exports={DocumentPreview});
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";import{a}from"../../chunk-GILMVRED.mjs";import"../../chunk-BDFHWLTS.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as DocumentPreview};
@@ -11,3 +11,7 @@ export { DigitalColleagueClone } from './digital-colleague-clone';
11
11
  export { DigitalColleagueOptions } from './digital-colleague-options';
12
12
  export { default as DashboardPage } from './Pages/dashboardpage';
13
13
  export * from './Views';
14
+ export { KnowledgeBrowser } from './knowledge-browser';
15
+ export { DocumentPreview } from './document-preview';
16
+ export { DocumentEdit } from './document-edit';
17
+ export { KnowledgeSearch } from './knowledge-search';