cortex-react-components 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GETYSIZV.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/{chunk-PZXOH6CZ.mjs → chunk-2SAKLSZ4.mjs} +1 -1
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/{chunk-GAZHKHGB.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/{chunk-S6KDP563.mjs → chunk-67VXPDWA.mjs} +1 -1
- package/dist/{chunk-PIOFHZSJ.mjs → chunk-7BCUACIY.mjs} +1 -1
- package/dist/{chunk-7OMPPFGG.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/{chunk-DPZHVBGG.mjs → chunk-B7AXSCTN.mjs} +1 -1
- package/dist/chunk-BDFHWLTS.mjs +4 -0
- package/dist/{chunk-V5W32NJ4.mjs → chunk-CAKJOTEE.mjs} +1 -1
- package/dist/{chunk-O3ORC6HS.mjs → chunk-EAFH3DTH.mjs} +1 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/{chunk-77PCUNUC.mjs → chunk-FTZRG54P.mjs} +1 -1
- package/dist/chunk-GILMVRED.mjs +4 -0
- package/dist/{chunk-F64CA5CH.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-IDG2O4B7.mjs → chunk-ISBVFNWD.mjs} +1 -1
- package/dist/{chunk-5MU4KV3B.mjs → chunk-LHEZJYVN.mjs} +1 -1
- package/dist/{chunk-KZAYLEFB.mjs → chunk-LJOWXPWW.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/{chunk-4SRUEQTP.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/{chunk-GLBQHEMQ.mjs → chunk-N7BHIWS5.mjs} +1 -1
- package/dist/{chunk-QJ3L3OWW.mjs → chunk-P2MTGU2L.mjs} +1 -1
- package/dist/{chunk-MO4HRQEL.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/{chunk-NHFCO6RG.mjs → chunk-QQVPLMPJ.mjs} +1 -1
- package/dist/chunk-QUXHULLX.mjs +4 -0
- package/dist/{chunk-W7MEHF4G.mjs → chunk-RNMPX2AU.mjs} +1 -1
- package/dist/{chunk-JHYWAL24.mjs → chunk-SW7RYGO6.mjs} +1 -1
- package/dist/{chunk-VVCAOIYO.mjs → chunk-U3F45KVI.mjs} +1 -1
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-GTK2SGS5.mjs → chunk-XBCYPOFD.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-NADEVCXZ.mjs → chunk-YNTAZCKJ.mjs} +1 -1
- 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/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/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.js +308 -0
- package/dist/components/DigitalColleagues/Views/KnowledgeView.docs.mjs +308 -0
- 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/colleague-form.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.d.ts +8 -0
- package/dist/components/DigitalColleagues/document-edit.js +4 -0
- package/dist/components/DigitalColleagues/document-edit.mjs +2 -0
- package/dist/components/DigitalColleagues/document-preview.d.ts +8 -0
- package/dist/components/DigitalColleagues/document-preview.js +4 -0
- package/dist/components/DigitalColleagues/document-preview.mjs +2 -0
- package/dist/components/DigitalColleagues/index.d.ts +4 -0
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.css +1 -0
- package/dist/components/{dc-temp → DigitalColleagues}/knowledge-browser.d.ts +4 -2
- package/dist/components/DigitalColleagues/knowledge-browser.js +5 -0
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +2 -0
- package/dist/components/DigitalColleagues/knowledge-search.css +1 -0
- package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.d.ts +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.js +1 -1
- package/dist/components/{dc-temp → DigitalColleagues}/knowledge-search.mjs +1 -1
- package/dist/components/HeaderFooter/Header.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/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/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/index.mjs +1 -1
- package/dist/components/Payload/Card/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/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/dc-temp/index.d.ts +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +10 -10
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +14 -14
- 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 +2 -1
- package/dist/chunk-637VXITY.mjs +0 -4
- package/dist/components/dc-temp/knowledge-browser.js +0 -5
- package/dist/components/dc-temp/knowledge-browser.mjs +0 -2
- /package/dist/components/{dc-temp/knowledge-browser.css → DigitalColleagues/document-edit.css} +0 -0
- /package/dist/components/{dc-temp/knowledge-search.css → DigitalColleagues/document-preview.css} +0 -0
- /package/dist/components/Images/{IconIndex.js → IconIndex.docs.js} +0 -0
- /package/dist/components/Images/{IconIndex.mjs → IconIndex.docs.mjs} +0 -0
- /package/dist/styles/{Typography.js → Typography.docs.js} +0 -0
- /package/dist/styles/{Typography.mjs → Typography.docs.mjs} +0 -0
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var Ee=Object.create;var q=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,We=Object.prototype.hasOwnProperty;var _e=(e,t)=>{for(var r in t)q(e,r,{get:t[r],enumerable:!0})},ge=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $e(t))!We.call(e,a)&&a!==r&&q(e,a,{get:()=>t[a],enumerable:!(o=He(t,a))||o.enumerable});return e};var Q=(e,t,r)=>(r=e!=null?Ee(Oe(e)):{},ge(t||!e||!e.__esModule?q(r,"default",{value:e,enumerable:!0}):r,e)),Fe=e=>ge(q({},"__esModule",{value:!0}),e);var zt={};_e(zt,{default:()=>Ve});module.exports=Fe(zt);var Ge=require("react");var De=require("framer-motion");var ke=require("class-variance-authority");var Ce=require("clsx");var se="-",Ue=e=>{let t=qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let l=i.split(se);return l[0]===""&&l.length!==1&&l.shift(),he(l,t)||Je(i)},getConflictingClassGroupIds:(i,l)=>{let u=r[i]||[];return l&&o[i]?[...u,...o[i]]:u}}},he=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?he(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(se);return t.validators.find(({validator:i})=>i(s))?.classGroupId},fe=/^\[(.+)\]$/,Je=e=>{if(fe.test(e)){let t=fe.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},qe=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ze(Object.entries(e.classGroups),r).forEach(([s,i])=>{ne(i,o,s,t)}),o},ne=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:be(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Qe(a)){ne(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,i])=>{ne(i,be(t,s),r,o)})})},be=(e,t)=>{let r=e;return t.split(se).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Qe=e=>e.isThemeGetter,Ze=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[t+i,l])):s);return[r,a]}):e,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){r.has(s)?r.set(s,i):a(s,i)}}},xe="!",Ye=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,i=l=>{let u=[],h=0,g=0,N;for(let b=0;b<l.length;b++){let v=l[b];if(h===0){if(v===a&&(o||l.slice(b,b+s)===t)){u.push(l.slice(g,b)),g=b+s;continue}if(v==="/"){N=b;continue}}v==="["?h++:v==="]"&&h--}let C=u.length===0?l:l.substring(g),d=C.startsWith(xe),m=d?C.substring(1):C,x=N&&N>g?N-g:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:x}};return r?l=>r({className:l,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},tt=e=>({cache:Xe(e.cacheSize),parseClassName:Ye(e),...Ue(e)}),rt=/\s+/,ot=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(rt),l="";for(let u=i.length-1;u>=0;u-=1){let h=i[u],{modifiers:g,hasImportantModifier:N,baseClassName:C,maybePostfixModifierPosition:d}=r(h),m=!!d,x=o(m?C.substring(0,d):C);if(!x){if(!m){l=h+(l.length>0?" "+l:l);continue}if(x=o(C),!x){l=h+(l.length>0?" "+l:l);continue}m=!1}let b=et(g).join(":"),v=N?b+xe:b,P=v+x;if(s.includes(P))continue;s.push(P);let k=a(x,m);for(let A=0;A<k.length;++A){let V=k[A];s.push(v+V)}l=h+(l.length>0?" "+l:l)}return l};function nt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ve(t))&&(o&&(o+=" "),o+=r);return o}var ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function st(e,...t){let r,o,a,s=i;function i(u){let h=t.reduce((g,N)=>N(g),e());return r=tt(h),o=r.cache.get,a=r.cache.set,s=l,l(u)}function l(u){let h=o(u);if(h)return h;let g=ot(u,r);return a(u,g),g}return function(){return s(nt.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,at=/^\d+\/\d+$/,it=new Set(["px","full","screen"]),lt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Pe|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>H(e)||it.has(e)||at.test(e),K=e=>$(e,"length",yt),H=e=>!!e&&!Number.isNaN(Number(e)),oe=e=>$(e,"number",H),W=e=>!!e&&Number.isInteger(Number(e)),pt=e=>e.endsWith("%")&&H(e.slice(0,-1)),c=e=>ye.test(e),L=e=>lt.test(e),gt=new Set(["length","size","percentage"]),ft=e=>$(e,gt,we),bt=e=>$(e,"position",we),ht=new Set(["image","url"]),xt=e=>$(e,ht,Nt),vt=e=>$(e,"",wt),_=()=>!0,$=(e,t,r)=>{let o=ye.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},yt=e=>dt.test(e)&&!ct.test(e),we=()=>!1,wt=e=>ut.test(e),Nt=e=>mt.test(e);var Ct=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),a=p("borderColor"),s=p("borderRadius"),i=p("borderSpacing"),l=p("borderWidth"),u=p("contrast"),h=p("grayscale"),g=p("hueRotate"),N=p("invert"),C=p("gap"),d=p("gradientColorStops"),m=p("gradientColorStopPositions"),x=p("inset"),b=p("margin"),v=p("opacity"),P=p("padding"),k=p("saturate"),A=p("scale"),V=p("sepia"),R=p("skew"),E=p("space"),I=p("translate"),Y=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",c,t],f=()=>[c,t],ce=()=>["",T,K],U=()=>["auto",H,c],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],J=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",c],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[H,c];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[T,K],blur:["none","",L,c],brightness:D(),borderColor:[e],borderRadius:["none","","full",L,c],borderSpacing:f(),borderWidth:ce(),contrast:D(),grayscale:O(),hueRotate:D(),invert:O(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[pt,K],inset:te(),margin:te(),opacity:D(),padding:f(),saturate:D(),scale:D(),sepia:O(),skew:D(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[L]}],"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:[...ue(),c]}],overflow:[{overflow:ee()}],"overflow-x":[{"overflow-x":ee()}],"overflow-Pe":[{"overflow-Pe":ee()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-Pe":[{"overscroll-Pe":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-Pe":[{"inset-Pe":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,c]}],basis:[{basis:te()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",W,c]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",W,c]},c]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[W,c]},c]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-Pe":[{"gap-Pe":[C]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-Pe":[{"space-Pe":[E]}],"space-Pe-reverse":["space-Pe-reverse"],Pe:[{Pe:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-Pe":[{"min-Pe":[c,t,"min","max","fit"]}],"max-Pe":[{"max-Pe":[c,t,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",L,K]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",oe]}],"font-family":[{font:[_]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",H,oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,K]}],"underline-offset":[{"underline-offset":["auto",T,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ue(),bt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Pe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ft]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-Pe":[{border:[l]}],"border-Pe-x":[{"border-x":[l]}],"border-Pe-Pe":[{"border-Pe":[l]}],"border-Pe-s":[{"border-s":[l]}],"border-Pe-e":[{"border-e":[l]}],"border-Pe-t":[{"border-t":[l]}],"border-Pe-r":[{"border-r":[l]}],"border-Pe-b":[{"border-b":[l]}],"border-Pe-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...J(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-Pe":[{"divide-Pe":[l]}],"divide-Pe-reverse":["divide-Pe-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:J()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-Pe":[{"border-Pe":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...J()]}],"outline-offset":[{"outline-offset":[T,c]}],"outline-Pe":[{outline:[T,K]}],"outline-color":[{outline:[e]}],"ring-Pe":[{ring:ce()}],"ring-Pe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-Pe":[{"ring-offset":[T,K]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,vt]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",L,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[N]}],saturate:[{saturate:[k]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-Pe":[{"border-spacing-Pe":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-Pe":[{"scale-Pe":[A]}],rotate:[{rotate:[W,c]}],"translate-x":[{"translate-x":[I]}],"translate-Pe":[{"translate-Pe":[I]}],"skew-x":[{"skew-x":[R]}],"skew-Pe":[{"skew-Pe":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","Pe-resize","e-resize","s-resize","Pe-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Pe","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Pe","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Pe":[{"touch-pan":["Pe","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-Pe":[{stroke:[T,K,oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Pe"],overscroll:["overscroll-x","overscroll-Pe"],inset:["inset-x","inset-Pe","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Pe":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Pe"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Pe","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-Pe"],"border-Pe":["border-Pe-s","border-Pe-e","border-Pe-t","border-Pe-r","border-Pe-b","border-Pe-l"],"border-Pe-x":["border-Pe-r","border-Pe-l"],"border-Pe-Pe":["border-Pe-t","border-Pe-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-Pe":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Pe","touch-pz"],"touch-x":["touch"],"touch-Pe":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ne=st(Ct);function M(...e){return Ne((0,Ce.clsx)(e))}var Pe=require("react/jsx-runtime"),kt=(0,ke.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Se({className:e,variant:t,...r}){return(0,Pe.jsx)("div",{className:M(kt({variant:t}),e),...r})}var ze=require("@radix-ui/react-slot"),Re=Q(require("react")),St=(0,ke.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 Pe-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"}}}),F=Re.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Pe.jsx)(e?ze.Slot:"button",{className:M(St({className:t,size:r,variant:o})),ref:s,...a}));F.displayName="Button";function Ie(e,t){let[r,o]=(0,Ge.useState)(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),a=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return(0,Ge.useEffect)(()=>{a(r)},[]),[r,a]}var X=require("react-icons/fa");function ae({title:e,description:t,badge:r,primaryAction:o,secondaryAction:a,gradient:s,children:i,className:l}){let[u,h]=Ie(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),g=!a&&!t||u;return(0,Pe.jsxs)(De.motion.div,{initial:{opacity:0,Pe:20},animate:{opacity:1,Pe:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${l||""}`,children:[(0,Pe.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Pe.jsx)(Se,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Pe.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Pe.jsxs)("div",{className:"flex items-center gap-3",children:[g&&o&&(0,Pe.jsx)(F,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(a||t)&&(0,Pe.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>h(!u),style:{lineHeight:0},children:u?(0,Pe.jsx)(X.FaChevronDown,{size:22}):(0,Pe.jsx)(X.FaChevronUp,{size:22})})]})]}),!g&&(0,Pe.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Pe.jsxs)("div",{className:"space-Pe-4",children:[(0,Pe.jsx)("p",{className:"max-Pe-[600px] text-white/80",children:t}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Pe.jsx)(F,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),a&&(0,Pe.jsx)(F,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),i&&(0,Pe.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var S=require("lucide-react");var Te=Q(require("react"));var ie=Te.forwardRef(({className:e,type:t,...r},o)=>(0,Pe.jsx)("input",{type:t,className:M("flex h-9 Pe-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}));ie.displayName="Input";var le=Q(require("react")),z=Q(require("@radix-ui/react-scroll-area"));var de=le.forwardRef(({className:e,children:t,...r},o)=>(0,Pe.jsxs)(z.Root,{ref:o,className:M("relative overflow-hidden",e),...r,children:[(0,Pe.jsx)(z.Viewport,{className:"h-full Pe-full rounded-[inherit]",children:t}),(0,Pe.jsx)(Le,{}),(0,Pe.jsx)(z.Corner,{})]}));de.displayName=z.Root.displayName;var Le=le.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Pe.jsx)(z.ScrollAreaScrollbar,{ref:o,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Pe-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Pe.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Le.displayName=z.ScrollAreaScrollbar.displayName;function Be({label:e,documents:t,children:r,level:o,onDocumentClick:a,selectedDocumentId:s,showDocumentCount:i=!0}){let[l,u]=(0,Ge.useState)(o===0),h=r&&Object.keys(r).length>0,g=t.length+(r?Object.values(r).reduce((d,m)=>d+m.documents.length,0):0),N=d=>{switch(d){case"markdown":case"mdx":return(0,Pe.jsx)(S.FileText,{className:"h-3.5 Pe-3.5 text-muted-foreground"});case"richtext":return(0,Pe.jsx)(S.File,{className:"h-3.5 Pe-3.5 text-muted-foreground"});default:return(0,Pe.jsx)(S.File,{className:"h-3.5 Pe-3.5 text-muted-foreground"})}},C=d=>{let m=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return m[d%m.length]};return(0,Pe.jsxs)("div",{className:"space-Pe-1",children:[(h||t.length>0)&&(0,Pe.jsxs)(De.motion.div,{className:`group flex items-center gap-3 p-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:()=>u(!l),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Pe.jsx)("div",{className:`Pe-1 h-6 rounded-full ${C(o)}`}),(0,Pe.jsx)(De.motion.div,{animate:{rotate:l?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Pe.jsx)(S.ChevronRight,{className:"h-4 Pe-4 text-muted-foreground"})}),(0,Pe.jsxs)("div",{className:"flex-1 flex items-center justify-between min-Pe-0",children:[(0,Pe.jsx)("div",{className:"flex items-center gap-2 min-Pe-0",children:(0,Pe.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&g>0&&(0,Pe.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Pe.jsx)("span",{className:"inline-flex items-center justify-center Pe-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:g})})]})]}),(0,Pe.jsx)(De.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Pe.jsxs)("div",{className:"pt-2 space-Pe-1",children:[t.map((d,m)=>(0,Pe.jsxs)(De.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:m*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${s===d.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:()=>a?.(d),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Pe.jsx)("div",{className:"flex-shrink-0",children:N(d.format)}),(0,Pe.jsxs)("div",{className:"flex-1 min-Pe-0",children:[(0,Pe.jsx)("p",{className:`text-sm truncate transition-colors ${s===d.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:d.title}),d.description&&(0,Pe.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:d.description})]}),d.tags&&d.tags.length>0&&(0,Pe.jsx)("div",{className:"flex-shrink-0",children:(0,Pe.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:d.tags[0]})})]},d.id)),r&&Object.entries(r).map(([d,m])=>(0,Pe.jsx)(Be,{label:d,documents:m.documents,children:m.children,level:o+1,onDocumentClick:a,selectedDocumentId:s,showDocumentCount:i},d))]})})]})}function Pt({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,Pe.jsx)(S.FileText,{className:"h-6 Pe-6 text-primary"});case"richtext":return(0,Pe.jsx)(S.File,{className:"h-6 Pe-6 text-success"});default:return(0,Pe.jsx)(S.File,{className:"h-6 Pe-6 text-muted-foreground"})}},r=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,Pe.jsxs)(De.motion.div,{initial:{opacity:0,Pe:20},animate:{opacity:1,Pe:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Pe.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,Pe.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Pe.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,Pe.jsxs)("div",{className:"flex-1 min-Pe-0",children:[(0,Pe.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Pe.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,Pe.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Pe.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${r(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,Pe.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,Pe.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Pe.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Pe.jsxs)("div",{className:"mb-6",children:[(0,Pe.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Pe.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Pe.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-Pe-1 text-xs",children:Object.entries(e.metadata).map(([o,a])=>(0,Pe.jsxs)("div",{className:"flex gap-1",children:[(0,Pe.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Ge])/g," $1").trim(),":"]}),(0,Pe.jsx)("span",{className:"text-foreground truncate",children:String(a)})]},o))})})]}),(0,Pe.jsx)("div",{className:"space-Pe-4",children:e.content?(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Pe.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Pe.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Pe.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Pe.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Pe.jsx)("div",{className:"Pe-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Pe.jsx)(S.FileText,{className:"h-8 Pe-8 text-muted-foreground"})}),(0,Pe.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Pe.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function je({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:a,className:s}){let[i,l]=(0,Ge.useState)(""),[u,h]=(0,Ge.useState)(null),g=(0,Ge.useMemo)(()=>i?e.filter(d=>d.title.toLowerCase().includes(i.toLowerCase())||d.description?.toLowerCase().includes(i.toLowerCase())||d.tags?.some(m=>m.toLowerCase().includes(i.toLowerCase()))||Object.values(d.metadata||{}).some(m=>String(m).toLowerCase().includes(i.toLowerCase()))):e,[e,i]),N=(0,Ge.useMemo)(()=>{let d=(m,x)=>{if(x.length===0)return{};let[b,...v]=x;return m.reduce((k,A)=>{let V=A.metadata?.[b]||"Uncategorized",R=String(V);if(k[R]||(k[R]={documents:[],children:{}}),v.length===0)k[R].documents.push(A);else{let E=d([A],v),I=Object.keys(E)[0];I&&(k[R].children||(k[R].children={}),k[R].children[I]?k[R].children[I].documents.push(...E[I].documents):k[R].children[I]=E[I])}return k},{})};return d(g,t.groupBy)},[g,t.groupBy]),C=d=>{h(d),r?.(d)};return(0,Pe.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,Pe.jsxs)("div",{className:"Pe-1/3 border-r border-border bg-muted/20",children:[(0,Pe.jsx)("div",{className:"p-6 border-b border-border",children:(0,Pe.jsxs)("div",{className:"relative",children:[(0,Pe.jsx)("div",{className:"absolute inset-Pe-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Pe.jsx)(S.Search,{className:"h-4 Pe-4 text-muted-foreground"})}),(0,Pe.jsx)(ie,{placeholder:"Search knowledge base...",value:i,onChange:d=>l(d.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,Pe.jsx)(de,{className:"h-[calc(100%-100px)]",children:(0,Pe.jsxs)("div",{className:"p-4 space-Pe-3",children:[Object.entries(N).map(([d,m])=>(0,Pe.jsx)(Be,{label:d,documents:m.documents,children:m.children,level:0,onDocumentClick:C,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},d)),Object.keys(N).length===0&&(0,Pe.jsxs)(De.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Pe.jsx)("div",{className:"Pe-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Pe.jsx)(S.FileText,{className:"h-8 Pe-8 text-muted-foreground"})}),(0,Pe.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Pe.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Pe.jsx)("div",{className:"flex-1 bg-background",children:u?(0,Pe.jsx)(Pt,{document:u}):(0,Pe.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Pe.jsxs)(De.motion.div,{initial:{opacity:0,Pe:20},animate:{opacity:1,Pe:0},transition:{duration:.4},className:"max-Pe-sm",children:[(0,Pe.jsx)("div",{className:"Pe-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Pe.jsx)(S.FileText,{className:"h-10 Pe-10 text-primary"})}),(0,Pe.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Pe.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Ve({documents:e=[],contexts:t=[],onDocumentClick:r=i=>console.log("Document clicked:",i),onDocumentShare:o=i=>console.log("Share document:",i),onLoadDocumentContent:a,selectedDocumentId:s}){let[i,l]=(0,Ge.useState)(t[0]);return!t||t.length===0?(0,Pe.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Pe.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Pe.jsx)(ae,{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,Pe.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Pe.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Pe.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Pe.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Pe.jsx)(ae,{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,Pe.jsxs)("div",{className:"mt-6",children:[(0,Pe.jsx)("div",{className:"border-b border-border",children:(0,Pe.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(u=>(0,Pe.jsxs)("button",{onClick:()=>l(u),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===u.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[u.icon,u.label]},u.id))})}),i.description&&(0,Pe.jsx)("div",{className:"mt-3 px-1",children:(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Pe.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Pe.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Pe.jsx)(je,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:s})})})]})}
|
|
5
|
+
"use strict";var Ye=Object.create;var oe=Object.defineProperty;var et=Object.getOwnPropertyDescriptor;var tt=Object.getOwnPropertyNames;var rt=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty;var nt=(e,t)=>{for(var r in t)oe(e,r,{get:t[r],enumerable:!0})},ye=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of tt(t))!ot.call(e,s)&&s!==r&&oe(e,s,{get:()=>t[s],enumerable:!(o=et(t,s))||o.enumerable});return e};var X=(e,t,r)=>(r=e!=null?Ye(rt(e)):{},ye(t||!e||!e.__esModule?oe(r,"default",{value:e,enumerable:!0}):r,e)),st=e=>ye(oe({},"__esModule",{value:!0}),e);var Gt={};nt(Gt,{default:()=>Ze});module.exports=st(Gt);var Xe=require("react");var Le=require("framer-motion");var Re=require("class-variance-authority");var Ae=require("clsx");var ue="-",at=e=>{let t=lt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let a=i.split(ue);return a[0]===""&&a.length!==1&&a.shift(),Ce(a,t)||it(i)},getConflictingClassGroupIds:(i,a)=>{let l=r[i]||[];return a&&o[i]?[...l,...o[i]]:l}}},Ce=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),s=o?Ce(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(ue);return t.validators.find(({validator:i})=>i(n))?.classGroupId},we=/^\[(.+)\]$/,it=e=>{if(we.test(e)){let t=we.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},lt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return ct(Object.entries(e.classGroups),r).forEach(([n,i])=>{me(i,o,n,t)}),o},me=(e,t,r,o)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:Ne(t,s);n.classGroupId=r;return}if(typeof s=="function"){if(dt(s)){me(s(o),t,r,o);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([n,i])=>{me(i,Ne(t,n),r,o)})})},Ne=(e,t)=>{let r=e;return t.split(ue).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},dt=e=>e.isThemeGetter,ct=(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,a])=>[t+i,a])):n);return[r,s]}):e,mt=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)}}},ke="!",ut=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,s=t[0],n=t.length,i=a=>{let l=[],m=0,h=0,S;for(let b=0;b<a.length;b++){let w=a[b];if(m===0){if(w===s&&(o||a.slice(b,b+n)===t)){l.push(a.slice(h,b)),h=b+n;continue}if(w==="/"){S=b;continue}}w==="["?m++:w==="]"&&m--}let k=l.length===0?a:a.substring(h),p=k.startsWith(ke),y=p?k.substring(1):k,f=S&&S>h?S-h:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:f}};return r?a=>r({className:a,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},ft=e=>({cache:mt(e.cacheSize),parseClassName:ut(e),...at(e)}),gt=/\s+/,bt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:s}=t,n=[],i=e.trim().split(gt),a="";for(let l=i.length-1;l>=0;l-=1){let m=i[l],{modifiers:h,hasImportantModifier:S,baseClassName:k,maybePostfixModifierPosition:p}=r(m),y=!!p,f=o(y?k.substring(0,p):k);if(!f){if(!y){a=m+(a.length>0?" "+a:a);continue}if(f=o(k),!f){a=m+(a.length>0?" "+a:a);continue}y=!1}let b=pt(h).join(":"),w=S?b+ke:b,P=w+f;if(n.includes(P))continue;n.push(P);let E=s(f,y);for(let L=0;L<E.length;++L){let D=E[L];n.push(w+D)}a=m+(a.length>0?" "+a:a)}return a};function ht(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Se(t))&&(o&&(o+=" "),o+=r);return o}var Se=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Se(e[o]))&&(r&&(r+=" "),r+=t);return r};function xt(e,...t){let r,o,s,n=i;function i(l){let m=t.reduce((h,S)=>S(h),e());return r=ft(m),o=r.cache.get,s=r.cache.set,n=a,a(l)}function a(l){let m=o(l);if(m)return m;let h=bt(l,r);return s(l,h),h}return function(){return n(ht.apply(null,arguments))}}var x=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Pe=/^\[(?:([a-z-]+):)?(.+)\]$/i,vt=/^\Me+\/\Me+$/,yt=new Set(["px","full","screen"]),wt=/^(\Me+(\.\Me+)?)?(xs|sm|md|lg|xl)$/,Nt=/\Me+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ct=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kt=/^(inset_)?-?((\Me+)?\.?(\Me+)[a-z]+|0)_-?((\Me+)?\.?(\Me+)[a-z]+|0)/,St=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>W(e)||yt.has(e)||vt.test(e),j=e=>_(e,"length",It),W=e=>!!e&&!Number.isNaN(Number(e)),ce=e=>_(e,"number",W),Z=e=>!!e&&Number.isInteger(Number(e)),Pt=e=>e.endsWith("%")&&W(e.slice(0,-1)),c=e=>Pe.test(e),G=e=>wt.test(e),Dt=new Set(["length","size","percentage"]),zt=e=>_(e,Dt,De),At=e=>_(e,"position",De),Rt=new Set(["image","url"]),Mt=e=>_(e,Rt,Bt),Tt=e=>_(e,"",Kt),Y=()=>!0,_=(e,t,r)=>{let o=Pe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},It=e=>Nt.test(e)&&!Ct.test(e),De=()=>!1,Kt=e=>kt.test(e),Bt=e=>St.test(e);var Et=()=>{let e=x("colors"),t=x("spacing"),r=x("blur"),o=x("brightness"),s=x("borderColor"),n=x("borderRadius"),i=x("borderSpacing"),a=x("borderWidth"),l=x("contrast"),m=x("grayscale"),h=x("hueRotate"),S=x("invert"),k=x("gap"),p=x("gradientColorStops"),y=x("gradientColorStopPositions"),f=x("inset"),b=x("margin"),w=x("opacity"),P=x("padding"),E=x("saturate"),L=x("scale"),D=x("sepia"),U=x("skew"),ee=x("space"),R=x("translate"),$=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",c,t],v=()=>[c,t],be=()=>["",B,j],te=()=>["auto",W,c],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],re=()=>["solid","dashed","dotted","double","none"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",c],ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[W,c];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[B,j],blur:["none","",G,c],brightness:K(),borderColor:[e],borderRadius:["none","","full",G,c],borderSpacing:v(),borderWidth:be(),contrast:K(),grayscale:Q(),hueRotate:K(),invert:Q(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Pt,j],inset:le(),margin:le(),opacity:K(),padding:v(),saturate:K(),scale:K(),sepia:Q(),skew:K(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":ve()}],"break-before":[{"break-before":ve()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),c]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,c]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Z,c]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Z,c]},c]}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Z,c]},c]}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[ee]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ee]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ce]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",c]}],"line-clamp":[{"line-clamp":["none",W,ce]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,j]}],"underline-offset":[{"underline-offset":["auto",B,c]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),At]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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-Xe":[{"rounded-Xe":[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:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...re(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:re()}],"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:["",...re()]}],"outline-offset":[{"outline-offset":[B,c]}],"outline-w":[{outline:[B,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[B,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Tt]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",G,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[S]}],saturate:[{saturate:[E]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"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",c]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[Z,c]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Xe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,j,ce]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Xe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Xe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ze=xt(Et);function z(...e){return ze((0,Ae.clsx)(e))}var Me=require("react/jsx-runtime"),Lt=(0,Re.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 ne({className:e,variant:t,...r}){return(0,Me.jsx)("div",{className:z(Lt({variant:t}),e),...r})}var Te=require("@radix-ui/react-slot"),Ke=X(require("react")),jt=(0,Re.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),I=Ke.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...s},n)=>(0,Me.jsx)(e?Te.Slot:"button",{className:z(jt({className:t,size:r,variant:o})),ref:n,...s}));I.displayName="Button";function Ee(e,t){let[r,o]=(0,Xe.useState)(()=>{if(typeof window>"Me")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<"Me"&&window.localStorage.setItem(e,JSON.stringify(n))}catch{}};return(0,Xe.useEffect)(()=>{s(r)},[]),[r,s]}var ae=require("react-icons/fa");function pe({title:e,description:t,badge:r,primaryAction:o,secondaryAction:s,gradient:n,children:i,className:a}){let[l,m]=Ee(`hero-section-minimized-${e.replace(/\s+/Me,"-").toLowerCase()}`,!s&&!t),h=!s&&!t||l;return(0,Me.jsxs)(Le.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${n} p-8 text-white ${a||""}`,children:[(0,Me.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Me.jsxs)("div",{className:"flex items-center gap-3",children:[r&&(0,Me.jsx)(ne,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:r}),(0,Me.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Me.jsxs)("div",{className:"flex items-center gap-3",children:[h&&o&&(0,Me.jsx)(I,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(s||t)&&(0,Me.jsx)("button",{"aria-label":l?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!l),style:{lineHeight:0},children:l?(0,Me.jsx)(ae.FaChevronDown,{size:22}):(0,Me.jsx)(ae.FaChevronUp,{size:22})})]})]}),!h&&(0,Me.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Me.jsxs)("div",{className:"space-y-4",children:[(0,Me.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Me.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,Me.jsx)(I,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),s&&(0,Me.jsx)(I,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),i&&(0,Me.jsx)("div",{className:"hidden lg:block",children:i})]})]})}var M=require("lucide-react");var je=X(require("react"));var J=je.forwardRef(({className:e,type:t,...r},o)=>(0,Me.jsx)("input",{type:t,className:z("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 fe=X(require("react")),A=X(require("@radix-ui/react-scroll-area"));var ge=fe.forwardRef(({className:e,children:t,...r},o)=>(0,Me.jsxs)(A.Root,{ref:o,className:z("relative overflow-hidden",e),...r,children:[(0,Me.jsx)(A.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Me.jsx)(Ve,{}),(0,Me.jsx)(A.Corner,{})]}));ge.displayName=A.Root.displayName;var Ve=fe.forwardRef(({className:e,orientation:t="vertical",...r},o)=>(0,Me.jsx)(A.ScrollAreaScrollbar,{ref:o,orientation:t,className:z("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,Me.jsx)(A.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ve.displayName=A.ScrollAreaScrollbar.displayName;var He=X(require("react")),ie=He.forwardRef(({className:e,...t},r)=>(0,$e.jsx)("textarea",{className:z("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";function Ue({document:e,onSave:t,onCancel:r}){let[o,s]=(0,Xe.useState)({...e,updatedAt:new Date}),n=()=>{t(o)},i=a=>{let l=a.split(",").map(m=>m.trim()).filter(m=>m.length>0);s(m=>({...m,tags:l}))};return(0,Me.jsxs)(Le.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Me.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Me.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Me.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Me.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Me.jsx)(M.Edit3,{className:"h-6 w-6 text-primary"})}),(0,Me.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Me.jsxs)("div",{className:"flex gap-2",children:[(0,Me.jsxs)(I,{variant:"outline",size:"sm",onClick:r,className:"gap-2",children:[(0,Me.jsx)(M.X,{className:"h-4 w-4"}),"Cancel"]}),(0,Me.jsxs)(I,{size:"sm",onClick:n,className:"gap-2",children:[(0,Me.jsx)(M.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,Me.jsxs)("div",{className:"space-y-4",children:[(0,Me.jsxs)("div",{children:[(0,Me.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Me.jsx)(J,{value:o.title,onChange:a=>s(l=>({...l,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Me.jsxs)("div",{children:[(0,Me.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Me.jsx)(ie,{value:o.description||"",onChange:a=>s(l=>({...l,description:a.target.value})),placeholder:"Document description...",rows:2})]}),(0,Me.jsxs)("div",{children:[(0,Me.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),(0,Me.jsx)(J,{value:o.tags?.join(", ")||"",onChange:a=>i(a.target.value),placeholder:"tag1, tag2, tag3..."})]}),(0,Me.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Me.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Me.jsx)(ne,{variant:"secondary",className:"font-mono",children:o.format.toUpperCase()})]})]})]}),(0,Me.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Me.jsxs)("div",{className:"p-8",children:[(0,Me.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Me.jsx)(ie,{value:o.content||"",onChange:a=>s(l=>({...l,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}function Je({document:e,onDocumentUpdate:t,editable:r=!0}){let[o,s]=(0,Xe.useState)(!1),n=m=>{switch(m){case"markdown":case"mdx":return(0,Me.jsx)(M.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,Me.jsx)(M.File,{className:"h-6 w-6 text-success"});default:return(0,Me.jsx)(M.File,{className:"h-6 w-6 text-muted-foreground"})}},i=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";default:return"bg-muted text-muted-foreground border-border"}},a=m=>{s(!1),t?.(m)},l=()=>{s(!1)};return o?(0,Me.jsx)(Ue,{document:e,onSave:a,onCancel:l}):(0,Me.jsxs)(Le.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Me.jsxs)("div",{className:"border-b border-border bg-card p-8",children:[(0,Me.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Me.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,Me.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:n(e.format)}),(0,Me.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Me.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Me.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),r&&(0,Me.jsx)("div",{className:"flex-shrink-0",children:(0,Me.jsxs)(I,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[(0,Me.jsx)(M.Edit3,{className:"h-4 w-4"}),"Edit"]})})]}),(0,Me.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Me.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${i(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Me.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,Me.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Me.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Me.jsxs)("div",{className:"mb-6",children:[(0,Me.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Me.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Me.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,h])=>(0,Me.jsxs)("div",{className:"flex gap-1",children:[(0,Me.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([A-Z])/Me," $1").trim(),":"]}),(0,Me.jsx)("span",{className:"text-foreground truncate",children:String(h)})]},m))})})]}),(0,Me.jsx)("div",{className:"space-y-4",children:e.content?(0,Me.jsxs)("div",{className:"relative",children:[(0,Me.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,Me.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,Me.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,Me.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,Me.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Me.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Me.jsx)(M.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Me.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,Me.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function qe({label:e,documents:t,children:r,level:o,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i=!0}){let[a,l]=(0,Xe.useState)(o===0),m=r&&Object.keys(r).length>0,h=t.length+(r?Object.values(r).reduce((p,y)=>p+y.documents.length,0):0),S=p=>{switch(p){case"markdown":case"mdx":return(0,Me.jsx)(M.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,Me.jsx)(M.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,Me.jsx)(M.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},k=p=>{let y=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return y[p%y.length]};return(0,Me.jsxs)("div",{className:"space-y-1",children:[(m||t.length>0)&&(0,Me.jsxs)(Le.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${a?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>l(!a),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Me.jsx)("div",{className:`w-1 h-6 rounded-full ${k(o)}`}),(0,Me.jsx)(Le.motion.div,{animate:{rotate:a?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Me.jsx)(M.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,Me.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,Me.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,Me.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),i&&h>0&&(0,Me.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Me.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:h})})]})]}),(0,Me.jsx)(Le.motion.div,{initial:!1,animate:{height:a?"auto":0,opacity:a?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Me.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((p,y)=>(0,Me.jsxs)(Le.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 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${n===p.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?.(p),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Me.jsx)("div",{className:"flex-shrink-0",children:S(p.format)}),(0,Me.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Me.jsx)("p",{className:`text-sm truncate transition-colors ${n===p.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:p.title}),p.description&&(0,Me.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:p.description})]}),p.tags&&p.tags.length>0&&(0,Me.jsx)("div",{className:"flex-shrink-0",children:(0,Me.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:p.tags[0]})})]},p.id)),r&&Object.entries(r).map(([p,y])=>(0,Me.jsx)(qe,{label:p,documents:y.documents,children:y.children,level:o+1,onDocumentClick:s,selectedDocumentId:n,showDocumentCount:i},p))]})})]})}function Qe({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,onDocumentUpdate:s,selectedDocumentId:n,className:i,editable:a=!0}){let[l,m]=(0,Xe.useState)(""),[h,S]=(0,Xe.useState)(null),k=(0,Xe.useMemo)(()=>l?e.filter(f=>f.title.toLowerCase().includes(l.toLowerCase())||f.description?.toLowerCase().includes(l.toLowerCase())||f.tags?.some(b=>b.toLowerCase().includes(l.toLowerCase()))||Object.values(f.metadata||{}).some(b=>String(b).toLowerCase().includes(l.toLowerCase()))):e,[e,l]),p=(0,Xe.useMemo)(()=>{let f=(b,w)=>{if(w.length===0)return{};let[P,...E]=w;return b.reduce((D,U)=>{let ee=U.metadata?.[P]||"Uncategorized",R=String(ee);if(D[R]||(D[R]={documents:[],children:{}}),E.length===0)D[R].documents.push(U);else{let $=f([U],E),T=Object.keys($)[0];T&&(D[R].children||(D[R].children={}),D[R].children[T]?D[R].children[T].documents.push(...$[T].documents):D[R].children[T]=$[T])}return D},{})};return f(k,t.groupBy)},[k,t.groupBy]),y=f=>{S(f),r?.(f)};return(0,Me.jsxs)("div",{className:`flex h-full ${i||""}`,children:[(0,Me.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,Me.jsx)("div",{className:"p-6 border-b border-border",children:(0,Me.jsxs)("div",{className:"relative",children:[(0,Me.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Me.jsx)(M.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,Me.jsx)(J,{placeholder:"Search knowledge base...",value:l,onChange:f=>m(f.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,Me.jsx)(ge,{className:"h-[calc(100%-100px)]",children:(0,Me.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(p).map(([f,b])=>(0,Me.jsx)(qe,{label:f,documents:b.documents,children:b.children,level:0,onDocumentClick:y,selectedDocumentId:n,showDocumentCount:t.showDocumentCount},f)),Object.keys(p).length===0&&(0,Me.jsxs)(Le.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Me.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Me.jsx)(M.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,Me.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,Me.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Me.jsx)("div",{className:"flex-1 bg-background",children:h?(0,Me.jsx)(Je,{document:h,onDocumentUpdate:s,editable:a}):(0,Me.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Me.jsxs)(Le.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,Me.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Me.jsx)(M.FileText,{className:"h-10 w-10 text-primary"})}),(0,Me.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Me.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function Ze({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,a]=(0,Xe.useState)(t[0]);return!t||t.length===0?(0,Me.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Me.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Me.jsx)(pe,{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,Me.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Me.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,Me.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Me.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Me.jsx)(pe,{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,Me.jsxs)("div",{className:"mt-6",children:[(0,Me.jsx)("div",{className:"border-b border-border",children:(0,Me.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(l=>(0,Me.jsxs)("button",{onClick:()=>a(l),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===l.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[l.icon,l.label]},l.id))})}),i.description&&(0,Me.jsx)("div",{className:"mt-3 px-1",children:(0,Me.jsx)("p",{className:"text-sm text-muted-foreground",children:i.description})})]})]}),(0,Me.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Me.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Me.jsx)(Qe,{documents:e,menuConfig:i.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:n})})})]})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-67VXPDWA.mjs";import"../../../chunk-2NMVE5M4.mjs";import"../../../chunk-QUXHULLX.mjs";import"../../../chunk-GILMVRED.mjs";import"../../../chunk-BDFHWLTS.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|