cortex-react-components 2.0.13 → 2.2.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-N3B3XNV3.mjs → chunk-2BRDNDUB.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-3HNU2NYP.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-3NRXQBBS.mjs} +1 -1
- package/dist/{chunk-AQZEZ3UR.mjs → chunk-5MU4KV3B.mjs} +1 -1
- package/dist/{chunk-PK3OBSCB.mjs → chunk-5MWZTJYP.mjs} +1 -1
- package/dist/{chunk-B7AXSCTN.mjs → chunk-6MSM3CZ6.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-75F3LJMX.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-7R47MHQE.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-AJQHGVZ5.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-C4RWEPVF.mjs} +1 -1
- package/dist/{chunk-7GMAMIHM.mjs → chunk-CXOVEABI.mjs} +1 -1
- package/dist/{chunk-IF3425JX.mjs → chunk-FE7ZGUPU.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-GHOL5L32.mjs} +1 -1
- package/dist/{chunk-JPLBPV7J.mjs → chunk-GTZDHELR.mjs} +1 -1
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-GTZJWMZR.mjs} +1 -1
- package/dist/{chunk-3UMWGTHK.mjs → chunk-ICJ2QDZF.mjs} +1 -1
- package/dist/{chunk-RNMPX2AU.mjs → chunk-JRYQ4FE7.mjs} +1 -1
- package/dist/{chunk-LJOWXPWW.mjs → chunk-LJXTXROJ.mjs} +1 -1
- package/dist/{chunk-FTZRG54P.mjs → chunk-M4UVNIK2.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.mjs → chunk-NINFDOV5.mjs} +1 -1
- package/dist/{chunk-SW7RYGO6.mjs → chunk-OQYER4E7.mjs} +1 -1
- package/dist/{chunk-2SAKLSZ4.mjs → chunk-PZXOH6CZ.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-RGOKBIQ5.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-RJGYVDOU.mjs} +1 -1
- package/dist/chunk-S6KDP563.mjs +1 -0
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/{chunk-VVCAOIYO.mjs → chunk-ULCV2E74.mjs} +1 -1
- package/dist/{chunk-ERJXTG6X.mjs → chunk-WIRQ5IRT.mjs} +1 -1
- package/dist/{chunk-XHR2HXMP.mjs → chunk-WYXXGVHL.mjs} +1 -1
- package/dist/{chunk-5BNMRE6J.mjs → chunk-Y7C4UC7A.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/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/CRM/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/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.d.ts +2 -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/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/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/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.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/globals.css +1 -1
- package/dist/index.js +13 -13
- 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/IndexPage.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/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-KTET6W73.mjs +0 -1
- /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 He=Object.create;var Q=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var Fe=(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))!_e.call(e,a)&&a!==r&&Q(e,a,{get:()=>t[a],enumerable:!(o=Oe(t,a))||o.enumerable});return e};var Z=(e,t,r)=>(r=e!=null?He(We(e)):{},ge(t||!e||!e.__esModule?Q(r,"default",{value:e,enumerable:!0}):r,e)),Ue=e=>ge(Q({},"__esModule",{value:!0}),e);var Rt={};Fe(Rt,{default:()=>Ee});module.exports=Ue(Rt);var Ve=require("react");var Be=require("framer-motion");var ke=require("class-variance-authority");var Ce=require("clsx");var ae="-",Je=e=>{let t=Qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ae);return i[0]===""&&i.length!==1&&i.shift(),he(i,t)||qe(l)},getConflictingClassGroupIds:(l,i)=>{let u=r[l]||[];return i&&o[l]?[...u,...o[l]]: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(ae);return t.validators.find(({validator:l})=>l(s))?.classGroupId},fe=/^\[(.+)\]$/,qe=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 Xe(Object.entries(e.classGroups),r).forEach(([s,l])=>{se(l,o,s,t)}),o},se=(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(Ze(a)){se(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,l])=>{se(l,be(t,s),r,o)})})},be=(e,t)=>{let r=e;return t.split(ae).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ze=e=>e.isThemeGetter,Xe=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[r,a]}):e,Ye=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,l)=>{r.set(s,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let l=r.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return a(s,l),l},set(s,l){r.has(s)?r.set(s,l):a(s,l)}}},xe="!",et=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,l=i=>{let u=[],h=0,g=0,N;for(let b=0;b<i.length;b++){let v=i[b];if(h===0){if(v===a&&(o||i.slice(b,b+s)===t)){u.push(i.slice(g,b)),g=b+s;continue}if(v==="/"){N=b;continue}}v==="["?h++:v==="]"&&h--}let C=u.length===0?i:i.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?i=>r({className:i,parseClassName:l}):l},tt=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:Ye(e.cacheSize),parseClassName:et(e),...Je(e)}),ot=/\s+/,nt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(ot),i="";for(let u=l.length-1;u>=0;u-=1){let h=l[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){i=h+(i.length>0?" "+i:i);continue}if(x=o(C),!x){i=h+(i.length>0?" "+i:i);continue}m=!1}let b=tt(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 E=k[A];s.push(v+E)}i=h+(i.length>0?" "+i:i)}return i};function st(){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 at(e,...t){let r,o,a,s=l;function l(u){let h=t.reduce((g,N)=>N(g),e());return r=rt(h),o=r.cache.get,a=r.cache.set,s=i,i(u)}function i(u){let h=o(u);if(h)return h;let g=nt(u,r);return a(u,g),g}return function(){return s(st.apply(null,arguments))}}var p=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,it=/^\d+\/\d+$/,lt=new Set(["px","full","screen"]),dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ct=/\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$/,ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=e=>O(e)||lt.has(e)||it.test(e),T=e=>$(e,"length",wt),O=e=>!!e&&!Number.isNaN(Number(e)),ne=e=>$(e,"number",O),_=e=>!!e&&Number.isInteger(Number(e)),gt=e=>e.endsWith("%")&&O(e.slice(0,-1)),c=e=>ye.test(e),K=e=>dt.test(e),ft=new Set(["length","size","percentage"]),bt=e=>$(e,ft,we),ht=e=>$(e,"position",we),xt=new Set(["image","url"]),vt=e=>$(e,xt,Ct),yt=e=>$(e,"",Nt),F=()=>!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},wt=e=>ct.test(e)&&!ut.test(e),we=()=>!1,Nt=e=>mt.test(e),Ct=e=>pt.test(e);var kt=()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),o=p("brightness"),a=p("borderColor"),s=p("borderRadius"),l=p("borderSpacing"),i=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"),E=p("sepia"),R=p("skew"),H=p("space"),D=p("translate"),ee=()=>["auto","contain","none"],te=()=>["auto","hidden","clip","visible","scroll"],re=()=>["auto",c,t],f=()=>[c,t],ce=()=>["",I,T],J=()=>["auto",O,c],ue=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["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"],oe=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",c],pe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[O,c];return{cacheSize:500,separator:":",theme:{colors:[F],spacing:[I,T],blur:["none","",K,c],brightness:B(),borderColor:[e],borderRadius:["none","","full",K,c],borderSpacing:f(),borderWidth:ce(),contrast:B(),grayscale:W(),hueRotate:B(),invert:W(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[gt,T],inset:re(),margin:re(),opacity:B(),padding:f(),saturate:B(),scale:B(),sepia:W(),skew:B(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[K]}],"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:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-Pe":[{"overflow-Pe":te()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-Pe":[{"overscroll-Pe":ee()}],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",_,c]}],basis:[{basis:re()}],"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:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",_,c]}],"grid-cols":[{"grid-cols":[F]}],"col-start-end":[{col:["auto",{span:["full",_,c]},c]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[F]}],"row-start-end":[{row:["auto",{span:[_,c]},c]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"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",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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":[H]}],"space-x-reverse":["space-x-reverse"],"space-Pe":[{"space-Pe":[H]}],"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:[K]},K]}],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",K,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ne]}],"font-family":[{font:[F]}],"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",O,ne]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,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:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,T]}],"underline-offset":[{"underline-offset":["auto",I,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(),ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Pe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},vt]}],"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:[i]}],"border-Pe-x":[{"border-x":[i]}],"border-Pe-Pe":[{"border-Pe":[i]}],"border-Pe-s":[{"border-s":[i]}],"border-Pe-e":[{"border-e":[i]}],"border-Pe-t":[{"border-t":[i]}],"border-Pe-r":[{"border-r":[i]}],"border-Pe-b":[{"border-b":[i]}],"border-Pe-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-Pe":[{"divide-Pe":[i]}],"divide-Pe-reverse":["divide-Pe-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:q()}],"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:["",...q()]}],"outline-offset":[{"outline-offset":[I,c]}],"outline-Pe":[{outline:[I,T]}],"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":[I,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",K,yt]}],"shadow-color":[{shadow:[F]}],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",K,c]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[N]}],saturate:[{saturate:[k]}],sepia:[{sepia:[E]}],"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":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Pe":[{"border-spacing-Pe":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:B()}],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:[_,c]}],"translate-x":[{"translate-x":[D]}],"translate-Pe":[{"translate-Pe":[D]}],"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:[I,T,ne]}],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=at(kt);function M(...e){return Ne((0,Ce.clsx)(e))}var Pe=require("react/jsx-runtime"),St=(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(St({variant:t}),e),...r})}var ze=require("@radix-ui/react-slot"),Re=Z(require("react")),Pt=(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"}}}),U=Re.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Pe.jsx)(e?ze.Slot:"button",{className:M(Pt({className:t,size:r,variant:o})),ref:s,...a}));U.displayName="Button";function De(e,t){let[r,o]=(0,Ve.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,Ve.useEffect)(()=>{a(r)},[]),[r,a]}var Y=require("react-icons/fa");function Ie({title:e,description:t,badge:r,primaryAction:o,secondaryAction:a,gradient:s,children:l,className:i}){let[u,h]=De(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),g=!a&&!t||u;return(0,Pe.jsxs)(Be.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 ${i||""}`,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)(U,{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)(Y.FaChevronDown,{size:22}):(0,Pe.jsx)(Y.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)(U,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),a&&(0,Pe.jsx)(U,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),l&&(0,Pe.jsx)("div",{className:"hidden lg:block",children:l})]})]})}var S=require("lucide-react");var Te=Z(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=Z(require("react")),z=Z(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 je({label:e,documents:t,children:r,level:o,onDocumentClick:a,selectedDocumentId:s,showDocumentCount:l=!0}){let[i,u]=(0,Ve.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)(Be.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${i?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>u(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Pe.jsx)("div",{className:`Pe-1 h-6 rounded-full ${C(o)}`}),(0,Pe.jsx)(Be.motion.div,{animate:{rotate:i?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})}),l&&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)(Be.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?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)(Be.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)(je,{label:d,documents:m.documents,children:m.children,level:o+1,onDocumentClick:a,selectedDocumentId:s,showDocumentCount:l},d))]})})]})}function zt({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)(Be.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-Z])/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 Ge({documents:e,menuConfig:t,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:a,className:s}){let[l,i]=(0,Ve.useState)(""),[u,h]=(0,Ve.useState)(null),g=(0,Ve.useMemo)(()=>l?e.filter(d=>d.title.toLowerCase().includes(l.toLowerCase())||d.description?.toLowerCase().includes(l.toLowerCase())||d.tags?.some(m=>m.toLowerCase().includes(l.toLowerCase()))||Object.values(d.metadata||{}).some(m=>String(m).toLowerCase().includes(l.toLowerCase()))):e,[e,l]),N=(0,Ve.useMemo)(()=>{let d=(m,x)=>{if(x.length===0)return{};let[b,...v]=x;return m.reduce((k,A)=>{let E=A.metadata?.[b]||"Uncategorized",R=String(E);if(k[R]||(k[R]={documents:[],children:{}}),v.length===0)k[R].documents.push(A);else{let H=d([A],v),D=Object.keys(H)[0];D&&(k[R].children||(k[R].children={}),k[R].children[D]?k[R].children[D].documents.push(...H[D].documents):k[R].children[D]=H[D])}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:l,onChange:d=>i(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)(je,{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)(Be.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)(zt,{document:u}):(0,Pe.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Pe.jsxs)(Be.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"})]})})})]})}var At=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:(0,Pe.jsx)(S.BookOpen,{className:"h-4 Pe-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:(0,Pe.jsx)(S.Server,{className:"h-4 Pe-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:(0,Pe.jsx)(S.Code,{className:"h-4 Pe-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:(0,Pe.jsx)(S.Users,{className:"h-4 Pe-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function Ee({documents:e=[],contexts:t=At,onDocumentClick:r=s=>console.log("Document clicked:",s),onDocumentShare:o=s=>console.log("Share document:",s),selectedDocumentId:a}){let[s,l]=(0,Ve.useState)(t[0]);return(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)(Ie,{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(i=>(0,Pe.jsxs)("button",{onClick:()=>l(i),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===i.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[i.icon,i.label]},i.id))})}),s.description&&(0,Pe.jsx)("div",{className:"mt-3 px-1",children:(0,Pe.jsx)("p",{className:"text-sm text-muted-foreground",children:s.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)(Ge,{documents:e,menuConfig:s.menuConfig,onDocumentClick:r,onDocumentShare:o,selectedDocumentId:a})})})]})}
|
|
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})})})]})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-S6KDP563.mjs";import"../../../chunk-637VXITY.mjs";import"../../../chunk-2NMVE5M4.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};
|