cortex-react-components 2.17.3 → 2.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-JCWFPKF3.mjs → chunk-2W4GQ3FI.mjs} +1 -1
- package/dist/{chunk-4SRUEQTP.mjs → chunk-33CHGT4N.mjs} +1 -1
- package/dist/{chunk-7OMPPFGG.mjs → chunk-3EGSOIRH.mjs} +1 -1
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-6EKGV4I2.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-75WE6ZXB.mjs} +1 -1
- package/dist/{chunk-NSWNM3O5.mjs → chunk-7AWSJZMD.mjs} +1 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-ANCSWAD7.mjs} +1 -1
- package/dist/{chunk-R6AYIVIR.mjs → chunk-CCJJAUGB.mjs} +1 -1
- package/dist/{chunk-3GROWGZ5.mjs → chunk-CQAMS7RZ.mjs} +1 -1
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-CTC6WSB6.mjs} +1 -1
- package/dist/{chunk-KUFXQZI5.mjs → chunk-DY2XW3LC.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-F2MJXGRT.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-GO42W2BM.mjs} +1 -1
- package/dist/{chunk-O24GFE6Q.mjs → chunk-H5VFV6Q4.mjs} +1 -1
- package/dist/{chunk-GAZHKHGB.mjs → chunk-HLTP3ZQN.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-JNJJAJPI.mjs} +1 -1
- package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-RQLUMNJE.mjs → chunk-L5NPH5RX.mjs} +1 -1
- package/dist/{chunk-GQEGZKN6.mjs → chunk-M5QUXKCF.mjs} +1 -1
- package/dist/{chunk-FEWOSBUJ.mjs → chunk-MEVSHOG4.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-MFUZNS7C.mjs} +1 -1
- package/dist/{chunk-GETYSIZV.mjs → chunk-MGSTQLZC.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/chunk-ONNK2NEI.mjs +4 -0
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-QILFMWE5.mjs} +1 -1
- package/dist/{chunk-3ANJOET7.mjs → chunk-QZIJTAPO.mjs} +1 -1
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-R33MOMFK.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-RMZLEIRP.mjs} +1 -1
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/chunk-RZELSUQT.mjs +4 -0
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-AGDKFAMN.mjs → chunk-UECG3SCG.mjs} +1 -1
- package/dist/{chunk-KG3MNGT6.mjs → chunk-UENQZNU3.mjs} +1 -1
- package/dist/{chunk-KVLUT4U2.mjs → chunk-UTRR5NUU.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-VQBOJHZF.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-AQQCH7Z2.mjs → chunk-XX4GSGRP.mjs} +1 -1
- package/dist/{chunk-F64CA5CH.mjs → chunk-YPSUDHCJ.mjs} +1 -1
- package/dist/{chunk-MO4HRQEL.mjs → chunk-YWRU7OE3.mjs} +1 -1
- package/dist/chunk-ZNSW443Y.mjs +4 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.js +1 -1
- package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview.js +1 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-AREQGH47.mjs +0 -4
- package/dist/chunk-RHR3YOLG.mjs +0 -4
- package/dist/chunk-ZXPDSSCF.mjs +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-CQAMS7RZ.mjs";import"../../../chunk-UENQZNU3.mjs";import"../../../chunk-ZNSW443Y.mjs";import"../../../chunk-RZELSUQT.mjs";import"../../../chunk-ONNK2NEI.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-CTTBF7F4.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-VDN4LQSS.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.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-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var ut=Object.create;var ie=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty;var ht=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ft(t))!bt.call(e,s)&&s!==r&&ie(e,s,{get:()=>t[s],enumerable:!(o=pt(t,s))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?ut(gt(e)):{},Re(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),xt=e=>Re(ie({},"__esModule",{value:!0}),e);var rr={};ht(rr,{default:()=>mt});module.exports=xt(rr);var ct=require("react");var Ue=require("motion/react");var Le=require("class-variance-authority");var Ee=require("clsx");var he="-",vt=e=>{let t=wt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(he);return l[0]===""&&l.length!==1&&l.shift(),Ae(l,t)||yt(i)},getConflictingClassGroupIds:(i,l)=>{let f=r[i]||[];return l&&o[i]?[...f,...o[i]]:f}}},Ae=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ae(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(he);return t.validators.find(({validator:i})=>i(n))?.classGroupId},De=/^\[(.+)\]$/,yt=e=>{if(De.test(e)){let t=De.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},wt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return St(Object.entries(e.classGroups),r).forEach(([n,i])=>{be(i,o,n,t)}),o},be=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Te(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(Nt(s)){be(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{be(i,Te(t,n),r,o)})})},Te=(e,t)=>{let r=e;return t.split(he).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Nt=e=>e.isThemeGetter,St=(e,t)=>t?e.map(([r,o])=>{let s=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,l])=>[t+i,l])):n);return[r,s]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,s=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return s(n,i),i},set(n,i){r.has(n)?r.set(n,i):s(n,i)}}},ze="!",kt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=l=>{let f=[],v=0,w=0,C;for(let d=0;d<l.length;d++){let b=l[d];if(v===0){if(b===s&&(o||l.slice(d,d+n)===t)){f.push(l.slice(w,d)),w=d+n;continue}if(b==="/"){C=d;continue}}b==="["?v++:b==="]"&&v--}let R=f.length===0?l:l.substring(w),m=R.startsWith(ze),y=m?R.substring(1):R,a=C&&C>w?C-w:void 0;return{modifiers:f,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:a}};return r?l=>r({className:l,parseClassName:i}):i},Pt=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},Rt=e=>({cache:Ct(e.cacheSize),parseClassName:kt(e),...vt(e)}),Dt=/\s+/,Tt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(Dt),l="";for(let f=i.length-1;f>=0;f-=1){let v=i[f],{modifiers:w,hasImportantModifier:C,baseClassName:R,maybePostfixModifierPosition:m}=r(v),y=!!m,a=o(y?R.substring(0,m):R);if(!a){if(!y){l=v+(l.length>0?" "+l:l);continue}if(a=o(R),!a){l=v+(l.length>0?" "+l:l);continue}y=!1}let d=Pt(w).join(":"),b=C?d+ze:d,x=b+a;if(n.includes(x))continue;n.push(x);let I=s(a,y);for(let E=0;E<I.length;++E){let A=I[E];n.push(b+A)}l=v+(l.length>0?" "+l:l)}return l};function At(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(o&&(o+=" "),o+=r);return o}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Me(e[o]))&&(r&&(r+=" "),r+=t);return r};function zt(e,...t){let r,o,s,n=i;function i(f){let v=t.reduce((w,C)=>C(w),e());return r=Rt(v),o=r.cache.get,s=r.cache.set,n=l,l(f)}function l(f){let v=o(f);if(v)return v;let w=Tt(f,r);return s(f,w),w}return function(){return n(At.apply(null,arguments))}}var N=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mt=/^\d+\/\d+$/,It=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=e=>Y(e)||It.has(e)||Mt.test(e),_=e=>ee(e,"length",Ot),Y=e=>!!e&&!Number.isNaN(Number(e)),ge=e=>ee(e,"number",Y),re=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith("%")&&Y(e.slice(0,-1)),g=e=>Ie.test(e),U=e=>Kt.test(e),$t=new Set(["length","size","percentage"]),Gt=e=>ee(e,$t,Ke),Ht=e=>ee(e,"position",Ke),_t=new Set(["image","url"]),Ut=e=>ee(e,_t,Xt),Wt=e=>ee(e,"",Ft),oe=()=>!0,ee=(e,t,r)=>{let o=Ie.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Ot=e=>Bt.test(e)&&!Et.test(e),Ke=()=>!1,Ft=e=>Lt.test(e),Xt=e=>Vt.test(e);var Jt=()=>{let e=N("colors"),t=N("spacing"),r=N("blur"),o=N("brightness"),s=N("borderColor"),n=N("borderRadius"),i=N("borderSpacing"),l=N("borderWidth"),f=N("contrast"),v=N("grayscale"),w=N("hueRotate"),C=N("invert"),R=N("gap"),m=N("gradientColorStops"),y=N("gradientColorStopPositions"),a=N("inset"),d=N("margin"),b=N("opacity"),x=N("padding"),I=N("saturate"),E=N("scale"),A=N("sepia"),L=N("skew"),ne=N("space"),K=N("translate"),F=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",g,t],S=()=>[g,t],Se=()=>["",G,_],ae=()=>["auto",Y,g],Ce=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],se=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",g],Pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[Y,g];return{cacheSize:500,separator:":",theme:{colors:[oe],spacing:[G,_],blur:["none","",U,g],brightness:$(),borderColor:[e],borderRadius:["none","","full",U,g],borderSpacing:S(),borderWidth:Se(),contrast:$(),grayscale:te(),hueRotate:$(),invert:te(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[jt,_],inset:pe(),margin:pe(),opacity:$(),padding:S(),saturate:$(),scale:$(),sepia:te(),skew:$(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Pe()}],"break-before":[{"break-before":Pe()}],"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:[...Ce(),g]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[a]}],"inset-x":[{"inset-x":[a]}],"inset-y":[{"inset-y":[a]}],start:[{start:[a]}],end:[{end:[a]}],top:[{top:[a]}],right:[{right:[a]}],bottom:[{bottom:[a]}],left:[{left:[a]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",re,g]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",re,g]}],"grid-cols":[{"grid-cols":[oe]}],"col-start-end":[{col:["auto",{span:["full",re,g]},g]}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":[oe]}],"row-start-end":[{row:["auto",{span:[re,g]},g]}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[R]}],"gap-x":[{"gap-x":[R]}],"gap-y":[{"gap-y":[R]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ve:[{Ve:[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:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ge]}],"font-family":[{font:[oe]}],"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",g]}],"line-clamp":[{"line-clamp":["none",Y,ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,_]}],"underline-offset":[{"underline-offset":["auto",G,g]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ce(),Ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Gt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ut]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...se(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:se()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...se()]}],"outline-offset":[{"outline-offset":[G,g]}],"outline-w":[{outline:[G,_]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[G,_]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Wt]}],"shadow-color":[{shadow:[oe]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",U,g]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[C]}],saturate:[{saturate:[I]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"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",g]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[re,g]}],"translate-x":[{"translate-x":[K]}],"translate-y":[{"translate-y":[K]}],"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",g]}],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",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-Ve":[{"scroll-Ve":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[G,_,ge]}],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 Be=zt(Jt);function k(...e){return Be((0,Ee.clsx)(e))}var Ve=require("react/jsx-runtime"),qt=(0,Le.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 le({className:e,variant:t,...r}){return(0,Ve.jsx)("div",{className:k(qt({variant:t}),e),...r})}var je=require("@radix-ui/react-slot"),Ge=X(require("react")),Qt=(0,$e.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"}}}),z=Ge.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Ve.jsx)(e?je.Slot:"button",{className:k(Qt({className:t,size:r,variant:o})),ref:n,...s}));z.displayName="Button";function _e(e,t){let[r,o]=(0,ct.useState)(()=>{if(typeof window>"Ve")return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}),s=n=>{try{o(n),typeof window<"Ve"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,ct.useEffect)(()=>{s(r)},[]),[r,s]}var ce=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:i,className:l}){let[f,v]=_e(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),w=!s&&!t||f;return(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} Ve-8 text-white ${l||""}`,children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ve.jsx)(le,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ve.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ve.jsxs)("div",{className:"flex items-center gap-3",children:[w&&o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Ve.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Ve-1 text-white transition-colors",onClick:()=>v(!f),style:{lineHeight:0},children:f?(0,Ve.jsx)(ce.FaChevronDown,{size:22}):(0,Ve.jsx)(ce.FaChevronUp,{size:22})})]})]}),!w&&(0,Ve.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ve.jsxs)("div",{className:"space-y-4",children:[(0,Ve.jsx)("Ve",{className:"max-w-[600px] text-white/80",children:t}),(0,Ve.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ve.jsx)(z,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Ve.jsx)(z,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,Ve.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var B=require("lucide-react");var We=X(require("react"));var J=We.forwardRef(({className:e,type:t,...r},o)=>(0,Ve.jsx)("input",{type:t,className:k("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}));J.displayName="Input";var ve=X(require("react")),M=X(require("@radix-ui/react-scroll-area"));var ye=ve.forwardRef(({className:e,children:t,...r},o)=>(0,Ve.jsxs)(M.Root,{ref:o,className:k("relative overflow-hidden",e),...r,children:[(0,Ve.jsx)(M.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ve.jsx)(Fe,{}),(0,Ve.jsx)(M.Corner,{})]}));ye.displayName=M.Root.displayName;var Fe=ve.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ve.jsx)(M.ScrollAreaScrollbar,{ref:o,orientation:t,className:k("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent Ve-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ve-[1px]",e),...r,children:(0,Ve.jsx)(M.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Fe.displayName=M.ScrollAreaScrollbar.displayName;var Xe=X(require("react")),me=Xe.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("textarea",{className:k("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}));me.displayName="Textarea";var h=X(require("@radix-ui/react-select")),O=X(require("react")),qe=h.Root;var Qe=h.Value,we=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Trigger,{className:k("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,Ve.jsx)(h.Icon,{asChild:!0,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));we.displayName=h.Trigger.displayName;var Ze=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollUpButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronUp,{className:"h-4 w-4"})}));Ze.displayName=h.ScrollUpButton.displayName;var Ye=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.ScrollDownButton,{className:k("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ve.jsx)(B.ChevronDown,{className:"h-4 w-4"})}));Ye.displayName=h.ScrollDownButton.displayName;var Ne=O.forwardRef(({children:e,className:t,position:r="popper",...o},s)=>(0,Ve.jsx)(h.Portal,{children:(0,Ve.jsxs)(h.Content,{className:k("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:s,...o,children:[(0,Ve.jsx)(Ze,{}),(0,Ve.jsx)(h.Viewport,{className:k("Ve-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ve.jsx)(Ye,{})]})}));Ne.displayName=h.Content.displayName;var Zt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Label,{className:k("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Zt.displayName=h.Label.displayName;var ue=O.forwardRef(({children:e,className:t,...r},o)=>(0,Ve.jsxs)(h.Item,{className:k("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,Ve.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ve.jsx)(h.ItemIndicator,{children:(0,Ve.jsx)(B.Check,{className:"h-4 w-4"})})}),(0,Ve.jsx)(h.ItemText,{children:e})]}));ue.displayName=h.Item.displayName;var Yt=O.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)(h.Separator,{className:k("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Yt.displayName=h.Separator.displayName;function rt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:s=[]}){let[n,i]=(0,ct.useState)({...e,updatedAt:new Date}),l=()=>{let a=new Set,d=new Set;return s.forEach(b=>{b.menuConfig.groupBy.forEach(x=>a.add(x))}),o.forEach(b=>{b.metadata&&Object.keys(b.metadata).forEach(x=>d.add(x))}),{contextKeys:Array.from(a).sort(),documentKeys:Array.from(d).sort(),allKeys:Array.from(new Set([...a,...d])).sort()}},f=a=>{let d=new Set;return o.forEach(b=>{b.metadata?.[a]&&d.add(String(b.metadata[a]))}),Array.from(d).sort()},v=l(),w=()=>{t(n)},C=(a,d)=>{i(b=>({...b,metadata:{...b.metadata,[a]:d}}))},R=(a,d)=>{d==="__custom__"?C(a,""):C(a,d)},m=()=>{let a=`field_${Date.now()}`;C(a,"")},y=a=>{i(d=>{let b={...d.metadata};return delete b[a],{...d,metadata:b}})};return(0,Ve.jsxs)(Ue.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)(B.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)(z,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ve.jsx)(B.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ve.jsxs)(z,{size:"sm",onClick:w,className:"gap-2",children:[(0,Ve.jsx)(B.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)(J,{value:n.title,onChange:a=>i(d=>({...d,title:a.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)(me,{value:n.description||"",onChange:a=>i(d=>({...d,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ve.jsxs)("div",{children:[(0,Ve.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),v.contextKeys.length>0&&(0,Ve.jsxs)("Ve",{className:"text-xs text-muted-foreground",children:["Suggested: ",v.contextKeys.slice(0,4).join(", "),v.contextKeys.length>4&&` +${v.contextKeys.length-4}`]})]}),(0,Ve.jsxs)(z,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Ve.jsx)(B.Plus,{className:"h-3 w-3"}),"Add"]})]}),n.metadata&&Object.keys(n.metadata).length>0?(0,Ve.jsx)("div",{className:"space-y-2",children:Object.entries(n.metadata).map(([a,d])=>{let b=f(a);return(0,Ve.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ve.jsx)(J,{value:a,onChange:x=>{let I=x.target.value,E=n.metadata?.[a];i(A=>{let L={...A.metadata};return delete L[a],I&&(L[I]=E||""),{...A,metadata:L}})},placeholder:"Key",className:"w-32 h-8 text-sm",list:`metadata-keys-${a}`}),(0,Ve.jsx)("datalist",{id:`metadata-keys-${a}`,children:v.allKeys.map(x=>(0,Ve.jsx)("option",{value:x},x))}),(0,Ve.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),b.length>0?(0,Ve.jsxs)(qe,{value:String(d||""),onValueChange:x=>R(a,x),children:[(0,Ve.jsx)(we,{className:"flex-1 h-8 text-sm",children:(0,Ve.jsx)(Qe,{placeholder:"Value"})}),(0,Ve.jsxs)(Ne,{children:[b.map(x=>(0,Ve.jsx)(ue,{value:x,children:x},x)),(0,Ve.jsx)(ue,{value:"__custom__",children:(0,Ve.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ve.jsx)(J,{value:String(d||""),onChange:x=>C(a,x.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ve.jsx)(z,{type:"button",variant:"ghost",size:"sm",onClick:()=>y(a),className:"h-8 w-8 Ve-0 text-muted-foreground hover:text-destructive",children:(0,Ve.jsx)(B.X,{className:"h-3 w-3"})})]},a)})}):(0,Ve.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground",children:'No metadata \u2022 Click "Add" to create fields'})})]}),(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)(le,{variant:"secondary",className:"font-mono",children:n.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)(me,{value:n.content||"",onChange:a=>i(d=>({...d,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var st=e=>(0,Ve.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ot=e=>(0,Ve.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),er=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ve.jsx)("pre",{className:"text-sm",children:e})]}),tr=e=>(0,Ve.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ve.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ve-4 mb-4",children:(0,Ve.jsxs)("Ve",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ve.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),st(e)]});function it({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:s=[],knowledgeContexts:n=[]}){let[i,l]=(0,ct.useState)(!1),f=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ve.jsx)(B.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-6 w-6 text-muted-foreground"})}},v=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},w=(m,y)=>{let a={markdown:st,mdx:tr,richtext:er,text:ot},d=o?.[y]||a[y];return d?d(m):ot(m)},C=m=>{l(!1),t?.(m)},R=()=>{l(!1)};return i?(0,Ve.jsx)(rt,{document:e,onSave:C,onCancel:R,availableDocuments:s,knowledgeContexts:n}):(0,Ve.jsxs)(Ue.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:f(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)(z,{variant:"outline",size:"sm",onClick:()=>l(!0),className:"gap-2",children:[(0,Ve.jsx)(B.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 ${v(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(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:["#",m]},m))]})]}),(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(([m,y])=>(0,Ve.jsxs)("div",{className:"flex gap-1",children:[(0,Ve.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-ct])/g," $1").trim(),":"]}),(0,Ve.jsx)("span",{className:"text-foreground truncate",children:String(y)})]},m))})})]}),(0,Ve.jsx)("div",{className:"space-y-4",children:e.content?(0,Ve.jsx)("div",{className:"relative",children:(0,Ve.jsx)("div",{className:"bg-card border border-border rounded-xl Ve-6 overflow-hidden",children:w(e.content,e.format)})}):(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)(B.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"})]})})]})})]})}function lt({label:e,documents:t,children:r,level:o,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i=!0}){let[l,f]=(0,ct.useState)(o===0),v=r&&Object.keys(r).length>0,w=t.length+(r?Object.values(r).reduce((m,y)=>m+y.documents.length,0):0),C=m=>{switch(m){case"markdown":case"mdx":return(0,Ve.jsx)(B.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ve.jsx)(B.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},R=m=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[m%y.length]};return(0,Ve.jsxs)("div",{className:"space-y-1",children:[(v||t.length>0)&&(0,Ve.jsxs)(Ue.motion.div,{className:`group flex items-center gap-3 Ve-3 rounded-xl cursor-pointer transition-all duration-200 ${l?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>f(!l),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:`w-1 h-6 rounded-full ${R(o)}`}),(0,Ve.jsx)(Ue.motion.div,{animate:{rotate:l?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ve.jsx)(B.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ve.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ve.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&w>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ve.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:w})})]})]}),(0,Ve.jsx)(Ue.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ve.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,y)=>(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:y*.05,duration:.2},className:`group flex items-center gap-3 Ve-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>s?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ve.jsx)("div",{className:"flex-shrink-0",children:C(m.format)}),(0,Ve.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ve.jsx)("Ve",{className:`text-sm truncate transition-colors ${n===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Ve.jsx)("Ve",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Ve.jsx)("div",{className:"flex-shrink-0",children:(0,Ve.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:m.tags[0]})})]},m.id)),r&&Object.entries(r).map(([m,y])=>(0,Ve.jsx)(lt,{label:m,documents:y.documents,children:y.children,level:o+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i},m))]})})]})}function dt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:s,selectedDocumentId:n,className:i,editable:l=!0}){let[f,v]=(0,ct.useState)(""),[w,C]=(0,ct.useState)(null),R=(0,ct.useMemo)(()=>f?e.filter(a=>a.title.toLowerCase().includes(f.toLowerCase())||a.description?.toLowerCase().includes(f.toLowerCase())||a.tags?.some(d=>d.toLowerCase().includes(f.toLowerCase()))||Object.values(a.metadata||{}).some(d=>String(d).toLowerCase().includes(f.toLowerCase()))):e,[e,f]),m=(0,ct.useMemo)(()=>{let a=(d,b)=>{if(b.length===0)return{};let[x,...I]=b;return d.reduce((A,L)=>{let ne=L.metadata?.[x]||"Uncategorized",K=String(ne);if(A[K]||(A[K]={documents:[],children:{}}),I.length===0)A[K].documents.push(L);else{let F=a([L],I),V=Object.keys(F)[0];V&&(A[K].children||(A[K].children={}),A[K].children[V]?A[K].children[V].documents.push(...F[V].documents):A[K].children[V]=F[V])}return A},{})};return a(R,t.groupBy)},[R,t.groupBy]),y=a=>{C(a),r?.(a)};return(0,Ve.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ve.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ve.jsx)("div",{className:"Ve-6 border-b border-border",children:(0,Ve.jsxs)("div",{className:"relative",children:[(0,Ve.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ve.jsx)(B.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ve.jsx)(J,{placeholder:"Search knowledge base...",value:f,onChange:a=>v(a.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ve.jsx)(ye,{className:"h-[calc(100%-100px)]",children:(0,Ve.jsxs)("div",{className:"Ve-4 space-y-3",children:[Object.entries(m).map(([a,d])=>(0,Ve.jsx)(lt,{label:a,documents:d.documents,children:d.children,level:0,onDocumentClick:y,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},a)),Object.keys(m).length===0&&(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ve.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ve.jsx)("Ve",{className:"text-sm font-medium",children:"No documents found"}),(0,Ve.jsx)("Ve",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ve.jsx)("div",{className:"flex-1 bg-background",children:w?(0,Ve.jsx)(it,{document:w,onDocumentUpdate:s,editable:l}):(0,Ve.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ve.jsxs)(Ue.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ve.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ve.jsx)(B.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ve.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ve.jsx)("Ve",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function mt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:s,selectedDocumentId:n}){let[i,l]=(0,ct.useState)(t[0]);return!t||t.length===0?(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ve.jsx)("Ve",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ve.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ve.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ve.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Ve.jsxs)("div",{className:"mt-6",children:[(0,Ve.jsx)("div",{className:"border-b border-border",children:(0,Ve.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(f=>(0,Ve.jsxs)("button",{onClick:()=>l(f),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===f.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[f.icon,f.label]},f.id))})}),i.description&&(0,Ve.jsx)("div",{className:"mt-3 px-1",children:(0,Ve.jsx)("Ve",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ve.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ve.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ve.jsx)(dt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
|
|
5
|
+
"use strict";var wt=Object.create;var ce=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var St=Object.getOwnPropertyNames;var Ct=Object.getPrototypeOf,kt=Object.prototype.hasOwnProperty;var Rt=(e,t)=>{for(var r in t)ce(e,r,{get:t[r],enumerable:!0})},Ee=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of St(t))!kt.call(e,n)&&n!==r&&ce(e,n,{get:()=>t[n],enumerable:!(o=Nt(t,n))||o.enumerable});return e};var H=(e,t,r)=>(r=e!=null?wt(Ct(e)):{},Ee(t||!e||!e.__esModule?ce(r,"default",{value:e,enumerable:!0}):r,e)),Pt=e=>Ee(ce({},"__esModule",{value:!0}),e);var ur={};Rt(ur,{default:()=>yt});module.exports=Pt(ur);var xt=require("react");var Ye=require("motion/react");var Oe=require("class-variance-authority");var He=require("clsx");var ve="-",Dt=e=>{let t=Mt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let s=i.split(ve);return s[0]===""&&s.length!==1&&s.shift(),Ve(s,t)||It(i)},getConflictingClassGroupIds:(i,s)=>{let m=r[i]||[];return s&&o[i]?[...m,...o[i]]:m}}},Ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?Ve(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(ve);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Be=/^\[(.+)\]$/,It=e=>{if(Be.test(e)){let t=Be.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Mt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Tt(Object.entries(e.classGroups),r).forEach(([a,i])=>{he(i,o,a,t)}),o},he=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Le(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Kt(n)){he(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{he(i,Le(t,a),r,o)})})},Le=(e,t)=>{let r=e;return t.split(ve).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Kt=e=>e.isThemeGetter,Tt=(e,t)=>t?e.map(([r,o])=>{let n=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,n]}):e,zt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},$e="!",At=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],a=t.length,i=s=>{let m=[],x=0,y=0,I;for(let v=0;v<s.length;v++){let P=s[v];if(x===0){if(P===n&&(o||s.slice(v,v+a)===t)){m.push(s.slice(y,v)),y=v+a;continue}if(P==="/"){I=v;continue}}P==="["?x++:P==="]"&&x--}let S=m.length===0?s:s.substring(y),b=S.startsWith($e),N=b?S.substring(1):S,u=I&&I>y?I-y:void 0;return{modifiers:m,hasImportantModifier:b,baseClassName:N,maybePostfixModifierPosition:u}};return r?s=>r({className:s,parseClassName:i}):i},Et=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},Bt=e=>({cache:zt(e.cacheSize),parseClassName:At(e),...Dt(e)}),Lt=/\s+/,Vt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(Lt),s="";for(let m=i.length-1;m>=0;m-=1){let x=i[m],{modifiers:y,hasImportantModifier:I,baseClassName:S,maybePostfixModifierPosition:b}=r(x),N=!!b,u=o(N?S.substring(0,b):S);if(!u){if(!N){s=x+(s.length>0?" "+s:s);continue}if(u=o(S),!u){s=x+(s.length>0?" "+s:s);continue}N=!1}let v=Et(y).join(":"),P=I?v+$e:v,M=P+u;if(a.includes(M))continue;a.push(M);let F=n(u,N);for(let G=0;G<F.length;++G){let B=F[G];a.push(P+B)}s=x+(s.length>0?" "+s:s)}return s};function $t(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=je(t))&&(o&&(o+=" "),o+=r);return o}var je=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=je(e[o]))&&(r&&(r+=" "),r+=t);return r};function jt(e,...t){let r,o,n,a=i;function i(m){let x=t.reduce((y,I)=>I(y),e());return r=Bt(x),o=r.cache.get,n=r.cache.set,a=s,s(m)}function s(m){let x=o(m);if(x)return x;let y=Vt(m,r);return n(m,y),y}return function(){return a($t.apply(null,arguments))}}var C=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Fe=/^\[(?:([a-Ue-]+):)?(.+)\]$/i,Ft=/^\d+\/\d+$/,Gt=new Set(["px","full","screen"]),_t=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ht=/\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$/,Ot=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wt=/^(inset_)?-?((\d+)?\.?(\d+)[a-Ue]+|0)_-?((\d+)?\.?(\d+)[a-Ue]+|0)/,Ut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>te(e)||Gt.has(e)||Ft.test(e),U=e=>re(e,"length",tr),te=e=>!!e&&!Number.isNaN(Number(e)),be=e=>re(e,"number",te),ne=e=>!!e&&Number.isInteger(Number(e)),Xt=e=>e.endsWith("%")&&te(e.slice(0,-1)),g=e=>Fe.test(e),X=e=>_t.test(e),Jt=new Set(["length","size","percentage"]),qt=e=>re(e,Jt,Ge),Qt=e=>re(e,"position",Ge),Zt=new Set(["image","url"]),Yt=e=>re(e,Zt,or),er=e=>re(e,"",rr),se=()=>!0,re=(e,t,r)=>{let o=Fe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},tr=e=>Ht.test(e)&&!Ot.test(e),Ge=()=>!1,rr=e=>Wt.test(e),or=e=>Ut.test(e);var ar=()=>{let e=C("colors"),t=C("spacing"),r=C("blur"),o=C("brightness"),n=C("borderColor"),a=C("borderRadius"),i=C("borderSpacing"),s=C("borderWidth"),m=C("contrast"),x=C("grayscale"),y=C("hueRotate"),I=C("invert"),S=C("gap"),b=C("gradientColorStops"),N=C("gradientColorStopPositions"),u=C("inset"),v=C("margin"),P=C("opacity"),M=C("padding"),F=C("saturate"),G=C("scale"),B=C("sepia"),d=C("skew"),h=C("space"),f=C("translate"),k=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",g,t],R=()=>[g,t],Ke=()=>["",O,U],le=()=>["auto",te,g],Te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],ae=()=>["","0",g],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>[te,g];return{cacheSize:500,separator:":",theme:{colors:[se],spacing:[O,U],blur:["none","",X,g],brightness:_(),borderColor:[e],borderRadius:["none","","full",X,g],borderSpacing:R(),borderWidth:Ke(),contrast:_(),grayscale:ae(),hueRotate:_(),invert:ae(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Xt,U],inset:fe(),margin:fe(),opacity:_(),padding:R(),saturate:_(),scale:_(),sepia:ae(),skew:_(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"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(),g]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],Ue:[{Ue:["auto",ne,g]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",ne,g]}],"grid-cols":[{"grid-cols":[se]}],"col-start-end":[{col:["auto",{span:["full",ne,g]},g]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[se]}],"row-start-end":[{row:["auto",{span:[ne,g]},g]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ue:[{Ue:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],xt:[{xt:[v]}],Ue:[{Ue:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[h]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[h]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",g,t]}],"min-w":[{"min-w":[g,t,"min","max","fit"]}],"max-w":[{"max-w":[g,t,"none","full","min","max","fit","prose",{screen:[X]},X]}],h:[{h:[g,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[g,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,t,"auto","min","max","fit"]}],"font-size":[{text:["base",X,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[se]}],"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",g]}],"line-clamp":[{"line-clamp":["none",te,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,U]}],"underline-offset":[{"underline-offset":["auto",O,g]}],"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:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Te(),Qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Ue","tl"]},Yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-Ue":[{"rounded-Ue":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-xt":[{"rounded-xt":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-Ue":[{"border-Ue":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:de()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-Ue":[{"border-Ue":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[O,g]}],"outline-w":[{outline:[O,U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[O,U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,er]}],"shadow-color":[{shadow:[se]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ze(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ze()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",X,g]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[I]}],saturate:[{saturate:[F]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",g]}],duration:[{duration:_()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:_()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ne,g]}],"translate-x":[{"translate-x":[f]}],"translate-y":[{"translate-y":[f]}],"skew-x":[{"skew-x":[d]}],"skew-y":[{"skew-y":[d]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",g]}],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",g]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-xt":[{"scroll-xt":R()}],"scroll-Ue":[{"scroll-Ue":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-Ue":[{"scroll-Ue":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",g]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,U,be]}],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"],Ue:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","xt","Ue","mr","mb","ml"],mx:["mr","ml"],my:["Ue","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-Ue","rounded-ss","rounded-se","rounded-xt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-xt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-Ue":["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-Ue"],"border-w-x":["border-w-r","border-w-Ue"],"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-Ue"],"border-color-x":["border-color-r","border-color-Ue"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-xt","scroll-Ue","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ue","scroll-mb"],"scroll-Ue":["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 _e=jt(ar);function D(...e){return _e((0,He.clsx)(e))}var Ue=require("react/jsx-runtime"),nr=(0,Oe.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 We({className:e,variant:t,...r}){return(0,Ue.jsx)("div",{className:D(nr({variant:t}),e),...r})}var Xe=require("@radix-ui/react-slot"),qe=H(require("react")),sr=(0,Oe.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"}}}),V=qe.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},a)=>(0,Ue.jsx)(e?Xe.Slot:"button",{className:D(sr({className:t,size:r,variant:o})),ref:a,...n}));V.displayName="Button";function Ze(e,t){let[r,o]=(0,xt.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{o(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,xt.useEffect)(()=>{n(r)},[]),[r,n]}var ue=require("react-icons/fa");function xe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:n,gradient:a,children:i,className:s}){let[m,x]=Ze(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),y=!n&&!t||m;return(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} Ue-8 text-white ${s||""}`,children:[(0,Ue.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ue.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Ue.jsx)(We,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Ue.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-3",children:[y&&o&&(0,Ue.jsx)(V,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(n||t)&&(0,Ue.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Ue-1 text-white transition-colors",onClick:()=>x(!m),style:{lineHeight:0},children:m?(0,Ue.jsx)(ue.FaChevronDown,{size:22}):(0,Ue.jsx)(ue.FaChevronUp,{size:22})})]})]}),!y&&(0,Ue.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ue.jsxs)("div",{className:"space-y-4",children:[(0,Ue.jsx)("Ue",{className:"max-w-[600px] text-white/80",children:t}),(0,Ue.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Ue.jsx)(V,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),n&&(0,Ue.jsx)(V,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),i&&(0,Ue.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var j=require("lucide-react");var et=H(require("react"));var J=et.forwardRef(({className:e,type:t,...r},o)=>(0,Ue.jsx)("input",{type:t,className:D("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}));J.displayName="Input";var ye=H(require("react")),$=H(require("@radix-ui/react-scroll-area"));var we=ye.forwardRef(({className:e,children:t,...r},o)=>(0,Ue.jsxs)($.Root,{ref:o,className:D("relative overflow-hidden",e),...r,children:[(0,Ue.jsx)($.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ue.jsx)(rt,{}),(0,Ue.jsx)($.Corner,{})]}));we.displayName=$.Root.displayName;var rt=ye.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Ue.jsx)($.ScrollAreaScrollbar,{ref:o,orientation:t,className:D("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Ue border-Ue-transparent Ue-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ue-[1px]",e),...r,children:(0,Ue.jsx)($.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));rt.displayName=$.ScrollAreaScrollbar.displayName;var ot=H(require("react")),ie=ot.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)("textarea",{className:D("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}));ie.displayName="Textarea";var w=H(require("@radix-ui/react-select")),Q=H(require("react")),nt=w.Root;var st=w.Value,Ne=Q.forwardRef(({children:e,className:t,...r},o)=>(0,Ue.jsxs)(w.Trigger,{className:D("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...r,children:[e,(0,Ue.jsx)(w.Icon,{asChild:!0,children:(0,Ue.jsx)(j.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ne.displayName=w.Trigger.displayName;var it=Q.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(w.ScrollUpButton,{className:D("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ue.jsx)(j.ChevronUp,{className:"h-4 w-4"})}));it.displayName=w.ScrollUpButton.displayName;var lt=Q.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(w.ScrollDownButton,{className:D("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ue.jsx)(j.ChevronDown,{className:"h-4 w-4"})}));lt.displayName=w.ScrollDownButton.displayName;var Se=Q.forwardRef(({children:e,className:t,position:r="popper",...o},n)=>(0,Ue.jsx)(w.Portal,{children:(0,Ue.jsxs)(w.Content,{className:D("relative Ue-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:n,...o,children:[(0,Ue.jsx)(it,{}),(0,Ue.jsx)(w.Viewport,{className:D("Ue-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ue.jsx)(lt,{})]})}));Se.displayName=w.Content.displayName;var ir=Q.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(w.Label,{className:D("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));ir.displayName=w.Label.displayName;var pe=Q.forwardRef(({children:e,className:t,...r},o)=>(0,Ue.jsxs)(w.Item,{className:D("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...r,children:[(0,Ue.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ue.jsx)(w.ItemIndicator,{children:(0,Ue.jsx)(j.Check,{className:"h-4 w-4"})})}),(0,Ue.jsx)(w.ItemText,{children:e})]}));pe.displayName=w.Item.displayName;var lr=Q.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(w.Separator,{className:D("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));lr.displayName=w.Separator.displayName;var dt=H(require("react")),Ce=H(require("@radix-ui/react-label"));var dr=(0,Oe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ke=dt.forwardRef(({className:e,...t},r)=>(0,Ue.jsx)(Ce.Root,{ref:r,className:D(dr(),e),...t}));ke.displayName=Ce.Root.displayName;var Pe=({fieldName:e,value:t,label:r,multiline:o=!1,onSave:n,className:a="",disabled:i=!1})=>{let[s,m]=(0,xt.useState)(!1),[x,y]=(0,xt.useState)(""),I=()=>{i||(m(!0),y(t))},S=async()=>{x!==t&&await n(e,x),m(!1)},b=N=>{N.key==="Enter"&&!o||N.key==="Enter"&&N.ctrlKey&&o?S():N.key==="Escape"&&(m(!1),y(""))};return(0,Ue.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,Ue.jsx)(ke,{children:r}),s?o?(0,Ue.jsx)(ie,{value:x,onChange:N=>y(N.target.value),onBlur:S,onKeyDown:b,autoFocus:!0,rows:4,className:"resize-none"}):(0,Ue.jsx)(J,{value:x,onChange:N=>y(N.target.value),onBlur:S,onKeyPress:b,autoFocus:!0,className:"text-lg font-medium"}):(0,Ue.jsxs)("div",{onClick:I,className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Ue-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,Ue.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!i&&(0,Ue.jsx)(j.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};function pt({document:e,onSave:t,onCancel:r,availableDocuments:o=[],knowledgeContexts:n=[]}){let[a,i]=(0,xt.useState)({...e,updatedAt:new Date}),[s,m]=(0,xt.useState)(!1),[x,y]=(0,xt.useState)(()=>{let d=[],h=0,f=new Set;return n.forEach(k=>{k.menuConfig.groupBy.forEach(L=>f.add(L))}),f.forEach(k=>{d.push({id:`context_field_${h++}`,key:k,value:e.metadata?.[k]?String(e.metadata[k]):"",isContextKey:!0})}),e.metadata&&Object.entries(e.metadata).forEach(([k,L])=>{f.has(k)||d.push({id:`existing_field_${h++}`,key:k,value:String(L),isContextKey:!1})}),d}),I=d=>{switch(d){case"markdown":case"mdx":return(0,Ue.jsx)(j.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ue.jsx)(j.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ue.jsx)(j.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ue.jsx)(j.File,{className:"h-6 w-6 text-muted-foreground"})}},S=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";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},b=()=>{let d=new Set;return o.forEach(h=>{h.metadata&&Object.keys(h.metadata).forEach(f=>d.add(f))}),{documentKeys:Array.from(d).sort()}},N=d=>{let h=new Set;return o.forEach(f=>{f.metadata?.[d]&&h.add(String(f.metadata[d]))}),Array.from(h).sort()},u=b(),v=()=>{t(a)};(0,xt.useEffect)(()=>{let d=x.filter(h=>h.key.trim()!==""&&h.value.trim()!=="").reduce((h,f)=>({...h,[f.key]:f.value}),{});i(h=>({...h,metadata:Object.keys(d).length>0?d:void 0}))},[x]);let P=(d,h)=>{y(f=>f.map(k=>k.id===d?{...k,key:h}:k))},M=(d,h)=>{y(f=>f.map(k=>k.id===d?{...k,value:h}:k))},F=(d,h)=>{h==="__custom__"?M(d,""):M(d,h)},G=()=>{let d={id:`field_${Date.now()}`,key:"",value:"",isContextKey:!1};y(h=>[...h,d])},B=d=>{y(h=>h.filter(f=>f.id!==d))};return(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ue.jsxs)("div",{className:"border-b border-border bg-card Ue-8 pb-6",children:[(0,Ue.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ue.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ue.jsx)("div",{className:"flex-shrink-0 Ue-3 rounded-xl bg-muted border border-border",children:I(a.format)}),(0,Ue.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ue.jsxs)("div",{className:"flex items-start gap-4 mb-2 leading-tight",children:[(0,Ue.jsx)("div",{className:"flex-1 min-w-0",children:(0,Ue.jsx)(Pe,{fieldName:"title",value:a.title,label:"",onSave:(d,h)=>i(f=>({...f,title:h})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:Ue-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,Ue.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${S(a.format)} flex-shrink-0 Ue-1`,children:a.format.toUpperCase()})]}),(0,Ue.jsx)("div",{className:"Ue-2",children:(0,Ue.jsx)(Pe,{fieldName:"description",value:a.description||"Click to add description...",label:"",multiline:!0,onSave:(d,h)=>i(f=>({...f,description:h})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:Ue-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,Ue.jsxs)(V,{variant:"ghost",size:"sm",onClick:()=>m(!s),className:"gap-2",children:[(0,Ue.jsx)(j.Info,{className:"h-4 w-4"}),"Metadata",x.filter(d=>d.key.trim()!==""&&d.value.trim()!=="").length>0&&(0,Ue.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:x.filter(d=>d.key.trim()!==""&&d.value.trim()!=="").length}),s?(0,Ue.jsx)(j.ChevronDown,{className:"h-4 w-4"}):(0,Ue.jsx)(j.ChevronRight,{className:"h-4 w-4"})]}),(0,Ue.jsxs)(V,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Ue.jsx)(j.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Ue.jsxs)(V,{size:"sm",onClick:v,className:"gap-2",children:[(0,Ue.jsx)(j.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Ue.jsx)(Ye.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ue.jsxs)("div",{className:"pt-4 border-t border-border Ue-4",children:[(0,Ue.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ue.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,Ue.jsx)(j.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Ue.jsxs)(V,{type:"button",variant:"outline",size:"sm",onClick:G,className:"gap-1 h-8",children:[(0,Ue.jsx)(j.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),u.documentKeys.length>0&&(0,Ue.jsxs)("Ue",{className:"text-xs text-muted-foreground mb-3",children:["Additional from documents: ",u.documentKeys.slice(0,4).join(", "),u.documentKeys.length>4&&` +${u.documentKeys.length-4} more`]}),(0,Ue.jsx)("div",{className:"bg-muted rounded-lg Ue-4 border border-border",children:x.length>0?(0,Ue.jsx)("div",{className:"space-y-2",children:x.map(d=>{let h=N(d.key);return(0,Ue.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Ue.jsx)(J,{value:d.key,onChange:f=>P(d.id,f.target.value),placeholder:"Key",className:`w-32 h-8 text-sm ${d.isContextKey?"bg-primary/5 border-primary/30":""}`,list:`metadata-keys-${d.id}`,disabled:d.isContextKey}),(0,Ue.jsx)("datalist",{id:`metadata-keys-${d.id}`,children:u.documentKeys.map(f=>(0,Ue.jsx)("option",{value:f},f))}),(0,Ue.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),h.length>0?(0,Ue.jsxs)(nt,{value:d.value||"",onValueChange:f=>F(d.id,f),children:[(0,Ue.jsx)(Ne,{className:"flex-1 h-8 text-sm",children:(0,Ue.jsx)(st,{placeholder:"Value"})}),(0,Ue.jsxs)(Se,{children:[h.map(f=>(0,Ue.jsx)(pe,{value:f,children:f},f)),(0,Ue.jsx)(pe,{value:"__custom__",children:(0,Ue.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Ue.jsx)(J,{value:d.value||"",onChange:f=>M(d.id,f.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Ue.jsx)(V,{type:"button",variant:"ghost",size:"sm",onClick:()=>B(d.id),className:"h-8 w-8 Ue-0 text-muted-foreground hover:text-destructive",children:(0,Ue.jsx)(j.X,{className:"h-3 w-3"})})]},d.id)})}):(0,Ue.jsxs)("div",{className:"text-center py-4",children:[(0,Ue.jsx)("Ue",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,Ue.jsx)("Ue",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,Ue.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ue.jsxs)("div",{className:"Ue-8",children:[(0,Ue.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Ue.jsx)(ie,{value:a.content||"",onChange:d=>i(h=>({...h,content:d.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var gt=e=>(0,Ue.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),ft=e=>(0,Ue.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),cr=e=>(0,Ue.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ue.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg Ue-4 mb-4",children:(0,Ue.jsxs)("Ue",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Ue.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Ue.jsx)("pre",{className:"text-sm",children:e})]}),mr=e=>(0,Ue.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,Ue.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg Ue-4 mb-4",children:(0,Ue.jsxs)("Ue",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Ue.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),gt(e)]});function bt({document:e,onDocumentUpdate:t,editable:r=!0,renderers:o,availableDocuments:n=[],knowledgeContexts:a=[]}){let[i,s]=(0,xt.useState)(!1),[m,x]=(0,xt.useState)(!1),y=u=>{switch(u){case"markdown":case"mdx":return(0,Ue.jsx)(j.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Ue.jsx)(j.File,{className:"h-6 w-6 text-success"});case"text":return(0,Ue.jsx)(j.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,Ue.jsx)(j.File,{className:"h-6 w-6 text-muted-foreground"})}},I=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"}},S=(u,v)=>{let P={markdown:gt,mdx:mr,richtext:cr,text:ft},M=o?.[v]||P[v];return M?M(u):ft(u)},b=u=>{s(!1),t?.(u)},N=()=>{s(!1)};return i?(0,Ue.jsx)(pt,{document:e,onSave:b,onCancel:N,availableDocuments:n,knowledgeContexts:a}):(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Ue.jsxs)("div",{className:"border-b border-border bg-card Ue-8 pb-6",children:[(0,Ue.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Ue.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Ue.jsx)("div",{className:"flex-shrink-0 Ue-3 rounded-xl bg-muted border border-border",children:y(e.format)}),(0,Ue.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ue.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[e.title,(0,Ue.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${I(e.format)}`,children:e.format.toUpperCase()})]}),e.description&&(0,Ue.jsx)("Ue",{className:"text-muted-foreground text-lg leading-relaxed",children:e.description})]})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Ue.jsxs)(V,{variant:"ghost",size:"sm",onClick:()=>x(!m),className:"gap-2",children:[(0,Ue.jsx)(j.Info,{className:"h-4 w-4"}),"Metadata",m?(0,Ue.jsx)(j.ChevronDown,{className:"h-4 w-4"}):(0,Ue.jsx)(j.ChevronRight,{className:"h-4 w-4"})]}),r&&(0,Ue.jsxs)(V,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,Ue.jsx)(j.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),e.metadata&&Object.keys(e.metadata).length>0&&(0,Ue.jsx)(Ye.motion.div,{initial:!1,animate:{height:m?"auto":0,opacity:m?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ue.jsxs)("div",{className:"pt-4 border-t border-border Ue-4",children:[(0,Ue.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,Ue.jsx)(j.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,Ue.jsx)("div",{className:"bg-muted rounded-lg Ue-4 border border-border",children:(0,Ue.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-y-2 text-sm",children:Object.entries(e.metadata).map(([u,v])=>(0,Ue.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ue.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:u.replace(/([Ue-j])/g," $1").trim()}),(0,Ue.jsx)("span",{className:"text-foreground font-medium",children:String(v)})]},u))})})]})})]}),(0,Ue.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Ue.jsx)("div",{className:"Ue-8",children:(0,Ue.jsx)("div",{className:"space-y-4",children:e.content?(0,Ue.jsx)("div",{className:"relative",children:(0,Ue.jsx)("div",{className:"bg-card border border-border rounded-xl Ue-6 overflow-hidden",children:S(e.content,e.format)})}):(0,Ue.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Ue.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Ue.jsx)(j.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ue.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Ue.jsx)("Ue",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})}function ht({label:e,documents:t,children:r,level:o,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i=!0}){let[s,m]=(0,xt.useState)(o===0),x=r&&Object.keys(r).length>0,y=t.length+(r?Object.values(r).reduce((b,N)=>b+N.documents.length,0):0),I=b=>{switch(b){case"markdown":case"mdx":return(0,Ue.jsx)(j.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Ue.jsx)(j.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Ue.jsx)(j.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},S=b=>{let N=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return N[b%N.length]};return(0,Ue.jsxs)("div",{className:"space-y-1",children:[(x||t.length>0)&&(0,Ue.jsxs)(Ye.motion.div,{className:`group flex items-center gap-3 Ue-3 rounded-xl cursor-pointer transition-all duration-200 ${s?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>m(!s),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ue.jsx)("div",{className:`w-1 h-6 rounded-full ${S(o)}`}),(0,Ue.jsx)(Ye.motion.div,{animate:{rotate:s?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Ue.jsx)(j.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ue.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Ue.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Ue.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&y>0&&(0,Ue.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Ue.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:y})})]})]}),(0,Ue.jsx)(Ye.motion.div,{initial:!1,animate:{height:s?"auto":0,opacity:s?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Ue.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((b,N)=>(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:N*.05,duration:.2},className:`group flex items-center gap-3 Ue-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===b.id?"bg-primary/10 border-Ue-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>n?.(b),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Ue.jsx)("div",{className:"flex-shrink-0",children:I(b.format)}),(0,Ue.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ue.jsx)("Ue",{className:`text-sm truncate transition-colors ${a===b.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:b.title}),b.description&&(0,Ue.jsx)("Ue",{className:"text-xs text-muted-foreground truncate Ue-0.5",children:b.description})]}),b.tags&&b.tags.length>0&&(0,Ue.jsx)("div",{className:"flex-shrink-0",children:(0,Ue.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:b.tags[0]})})]},b.id)),r&&Object.entries(r).map(([b,N])=>(0,Ue.jsx)(ht,{label:b,documents:N.documents,children:N.children,level:o+1,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:i},b))]})})]})}function vt({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:n,selectedDocumentId:a,className:i,editable:s=!0}){let[m,x]=(0,xt.useState)(""),[y,I]=(0,xt.useState)(null),S=(0,xt.useMemo)(()=>m?e.filter(u=>u.title.toLowerCase().includes(m.toLowerCase())||u.description?.toLowerCase().includes(m.toLowerCase())||u.tags?.some(v=>v.toLowerCase().includes(m.toLowerCase()))||Object.values(u.metadata||{}).some(v=>String(v).toLowerCase().includes(m.toLowerCase()))):e,[e,m]),b=(0,xt.useMemo)(()=>{let u=(v,P)=>{if(P.length===0)return{};let[M,...F]=P;return v.reduce((B,d)=>{let h=d.metadata?.[M]||"Uncategorized",f=String(h);if(B[f]||(B[f]={documents:[],children:{}}),F.length===0)B[f].documents.push(d);else{let k=u([d],F),L=Object.keys(k)[0];L&&(B[f].children||(B[f].children={}),B[f].children[L]?B[f].children[L].documents.push(...k[L].documents):B[f].children[L]=k[L])}return B},{})};return!t.groupBy||t.groupBy.length===0?{"All Documents":{documents:S,children:{}}}:u(S,t.groupBy)},[S,t.groupBy]),N=u=>{I(u),r?.(u)};return(0,Ue.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Ue.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Ue.jsx)("div",{className:"Ue-6 border-b border-border",children:(0,Ue.jsxs)("div",{className:"relative",children:[(0,Ue.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Ue.jsx)(j.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Ue.jsx)(J,{placeholder:"Search knowledge base...",value:m,onChange:u=>x(u.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,Ue.jsx)(we,{className:"h-[calc(100%-100px)]",children:(0,Ue.jsxs)("div",{className:"Ue-4 space-y-3",children:[Object.entries(b).map(([u,v])=>(0,Ue.jsx)(ht,{label:u,documents:v.documents,children:v.children,level:0,onDocumentClick:N,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},u)),Object.keys(b).length===0&&(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Ue.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Ue.jsx)(j.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Ue.jsx)("Ue",{className:"text-sm font-medium",children:"No documents found"}),(0,Ue.jsx)("Ue",{className:"text-xs Ue-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Ue.jsx)("div",{className:"flex-1 bg-background",children:y?(0,Ue.jsx)(bt,{document:y,onDocumentUpdate:n,editable:s}):(0,Ue.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Ue.jsxs)(Ye.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Ue.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Ue.jsx)(j.FileText,{className:"h-10 w-10 text-primary"})}),(0,Ue.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Ue.jsx)("Ue",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function yt({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:n,selectedDocumentId:a}){let[i,s]=(0,xt.useState)(t[0]);return!t||t.length===0?(0,Ue.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ue.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Ue.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Ue.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Ue.jsx)("Ue",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Ue.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Ue.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Ue.jsx)(xe,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-to-r from-teal-600 via-cyan-600 to-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Ue.jsxs)("div",{className:"Ue-6",children:[(0,Ue.jsx)("div",{className:"border-b border-border",children:(0,Ue.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(m=>(0,Ue.jsxs)("button",{onClick:()=>s(m),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${i.id===m.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[m.icon,m.label]},m.id))})}),i.description&&(0,Ue.jsx)("div",{className:"Ue-3 px-1",children:(0,Ue.jsx)("Ue",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Ue.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Ue.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Ue.jsx)(vt,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:a})})})]})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-UENQZNU3.mjs";import"../../../chunk-ZNSW443Y.mjs";import"../../../chunk-RZELSUQT.mjs";import"../../../chunk-ONNK2NEI.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-YFAZQYK4.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-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|