cortex-react-components 2.17.3 → 2.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/{chunk-JCWFPKF3.mjs → chunk-2W4GQ3FI.mjs} +1 -1
- package/dist/{chunk-4SRUEQTP.mjs → chunk-33CHGT4N.mjs} +1 -1
- package/dist/{chunk-7OMPPFGG.mjs → chunk-3EGSOIRH.mjs} +1 -1
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-6EKGV4I2.mjs} +1 -1
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-75WE6ZXB.mjs} +1 -1
- package/dist/{chunk-NSWNM3O5.mjs → chunk-7AWSJZMD.mjs} +1 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-ANCSWAD7.mjs} +1 -1
- package/dist/{chunk-R6AYIVIR.mjs → chunk-CCJJAUGB.mjs} +1 -1
- package/dist/{chunk-3GROWGZ5.mjs → chunk-CQAMS7RZ.mjs} +1 -1
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-CTC6WSB6.mjs} +1 -1
- package/dist/{chunk-KUFXQZI5.mjs → chunk-DY2XW3LC.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-F2MJXGRT.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-GO42W2BM.mjs} +1 -1
- package/dist/{chunk-O24GFE6Q.mjs → chunk-H5VFV6Q4.mjs} +1 -1
- package/dist/{chunk-GAZHKHGB.mjs → chunk-HLTP3ZQN.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-JNJJAJPI.mjs} +1 -1
- package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-RQLUMNJE.mjs → chunk-L5NPH5RX.mjs} +1 -1
- package/dist/{chunk-GQEGZKN6.mjs → chunk-M5QUXKCF.mjs} +1 -1
- package/dist/{chunk-FEWOSBUJ.mjs → chunk-MEVSHOG4.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-MFUZNS7C.mjs} +1 -1
- package/dist/{chunk-GETYSIZV.mjs → chunk-MGSTQLZC.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/chunk-ONNK2NEI.mjs +4 -0
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-QILFMWE5.mjs} +1 -1
- package/dist/{chunk-3ANJOET7.mjs → chunk-QZIJTAPO.mjs} +1 -1
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-R33MOMFK.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-RMZLEIRP.mjs} +1 -1
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/chunk-RZELSUQT.mjs +4 -0
- package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
- package/dist/{chunk-AGDKFAMN.mjs → chunk-UECG3SCG.mjs} +1 -1
- package/dist/{chunk-KG3MNGT6.mjs → chunk-UENQZNU3.mjs} +1 -1
- package/dist/{chunk-KVLUT4U2.mjs → chunk-UTRR5NUU.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-VQBOJHZF.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-AQQCH7Z2.mjs → chunk-XX4GSGRP.mjs} +1 -1
- package/dist/{chunk-F64CA5CH.mjs → chunk-YPSUDHCJ.mjs} +1 -1
- package/dist/{chunk-MO4HRQEL.mjs → chunk-YWRU7OE3.mjs} +1 -1
- package/dist/chunk-ZNSW443Y.mjs +4 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.js +1 -1
- package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.js +5 -5
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview.js +1 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-AREQGH47.mjs +0 -4
- package/dist/chunk-RHR3YOLG.mjs +0 -4
- package/dist/chunk-ZXPDSSCF.mjs +0 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var So=Object.create;var Ge=Object.defineProperty;var To=Object.getOwnPropertyDescriptor;var ko=Object.getOwnPropertyNames;var Mo=Object.getPrototypeOf,Fo=Object.prototype.hasOwnProperty;var Io=(e,t)=>{for(var o in t)Ge(e,o,{get:t[o],enumerable:!0})},Pt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ko(t))!Fo.call(e,n)&&n!==o&&Ge(e,n,{get:()=>t[n],enumerable:!(r=To(t,n))||r.enumerable});return e};var O=(e,t,o)=>(o=e!=null?So(Mo(e)):{},Pt(t||!e||!e.__esModule?Ge(o,"default",{value:e,enumerable:!0}):o,e)),Ao=e=>Pt(Ge({},"__esModule",{value:!0}),e);var kr={};Io(kr,{FileList:()=>Te,FileView:()=>yt,KnowledgeBrowser:()=>Je,KnowledgeView:()=>ct,TeamCard:()=>qe,TeamsIndexView:()=>bt});module.exports=Ao(kr);var io=require("react");var jt=require("motion/react");var Et=require("class-variance-authority");var At=require("clsx");var nt="-",Eo=e=>{let t=zo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(nt);return i[0]===""&&i.length!==1&&i.shift(),St(i,t)||Lo(s)},getConflictingClassGroupIds:(s,i)=>{let d=o[s]||[];return i&&r[s]?[...d,...r[s]]:d}}},St=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?St(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(nt);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Rt=/^\[(.+)\]$/,Lo=e=>{if(Rt.test(e)){let t=Rt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},zo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ho(Object.entries(e.classGroups),o).forEach(([a,s])=>{at(s,r,a,t)}),r},at=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Dt(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(Bo(n)){at(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{at(s,Dt(t,a),o,r)})})},Dt=(e,t)=>{let o=e;return t.split(nt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Bo=e=>e.isThemeGetter,Ho=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[o,n]}):e,Ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},Tt="!",Vo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let d=[],p=0,v=0,S;for(let l=0;l<i.length;l++){let x=i[l];if(p===0){if(x===n&&(r||i.slice(l,l+a)===t)){d.push(i.slice(v,l)),v=l+a;continue}if(x==="/"){S=l;continue}}x==="["?p++:x==="]"&&p--}let T=d.length===0?i:i.substring(v),m=T.startsWith(Tt),h=m?T.substring(1):T,c=S&&S>v?S-v:void 0;return{modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:c}};return o?i=>o({className:i,parseClassName:s}):s},jo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},$o=e=>({cache:Ko(e.cacheSize),parseClassName:Vo(e),...Eo(e)}),Oo=/\s+/,Go=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(Oo),i="";for(let d=s.length-1;d>=0;d-=1){let p=s[d],{modifiers:v,hasImportantModifier:S,baseClassName:T,maybePostfixModifierPosition:m}=o(p),h=!!m,c=r(h?T.substring(0,m):T);if(!c){if(!h){i=p+(i.length>0?" "+i:i);continue}if(c=r(T),!c){i=p+(i.length>0?" "+i:i);continue}h=!1}let l=jo(v).join(":"),x=S?l+Tt:l,P=x+c;if(a.includes(P))continue;a.push(P);let $=n(c,h);for(let _=0;_<$.length;++_){let z=$[_];a.push(x+z)}i=p+(i.length>0?" "+i:i)}return i};function Wo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=kt(t))&&(r&&(r+=" "),r+=o);return r}var kt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=kt(e[r]))&&(o&&(o+=" "),o+=t);return o};function _o(e,...t){let o,r,n,a=s;function s(d){let p=t.reduce((v,S)=>S(v),e());return o=$o(p),r=o.cache.get,n=o.cache.set,a=i,i(d)}function i(d){let p=r(d);if(p)return p;let v=Go(d,o);return n(d,v),v}return function(){return a(Wo.apply(null,arguments))}}var F=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Mt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Uo=/^\d+\/\d+$/,Xo=new Set(["px","full","screen"]),Jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Lt|h|i|Lt|min|max))|\Lt(calc|min|max|clamp)\(.+\)|^0$/,Qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,re=e=>Ce(e)||Xo.has(e)||Uo.test(e),le=e=>Pe(e,"length",sr),Ce=e=>!!e&&!Number.isNaN(Number(e)),rt=e=>Pe(e,"number",Ce),Me=e=>!!e&&Number.isInteger(Number(e)),er=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),y=e=>Mt.test(e),de=e=>Jo.test(e),tr=new Set(["length","size","percentage"]),or=e=>Pe(e,tr,Ft),rr=e=>Pe(e,"position",Ft),ar=new Set(["image","url"]),nr=e=>Pe(e,ar,dr),ir=e=>Pe(e,"",lr),Fe=()=>!0,Pe=(e,t,o)=>{let r=Mt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},sr=e=>qo.test(e)&&!Qo.test(e),Ft=()=>!1,lr=e=>Zo.test(e),dr=e=>Yo.test(e);var cr=()=>{let e=F("colors"),t=F("spacing"),o=F("blur"),r=F("brightness"),n=F("borderColor"),a=F("borderRadius"),s=F("borderSpacing"),i=F("borderWidth"),d=F("contrast"),p=F("grayscale"),v=F("hueRotate"),S=F("invert"),T=F("gap"),m=F("gradientColorStops"),h=F("gradientColorStopPositions"),c=F("inset"),l=F("margin"),x=F("opacity"),P=F("padding"),$=F("saturate"),_=F("scale"),z=F("sepia"),U=F("skew"),se=F("space"),G=F("translate"),Q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",y,t],R=()=>[y,t],je=()=>["",re,le],$e=()=>["auto",Ce,y],wt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Oe=()=>["solid","dashed","dotted","double","none"],Nt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ot=()=>["start","end","center","between","around","evenly","stretch"],ke=()=>["","0",y],Ct=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>[Ce,y];return{cacheSize:500,separator:":",theme:{colors:[Fe],spacing:[re,le],blur:["none","",de,y],brightness:oe(),borderColor:[e],borderRadius:["none","","full",de,y],borderSpacing:R(),borderWidth:je(),contrast:oe(),grayscale:ke(),hueRotate:oe(),invert:ke(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[er,le],inset:E(),margin:E(),opacity:oe(),padding:R(),saturate:oe(),scale:oe(),sepia:ke(),skew:oe(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[de]}],"break-after":[{"break-after":Ct()}],"break-before":[{"break-before":Ct()}],"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:[...wt(),y]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[c]}],"inset-x":[{"inset-x":[c]}],"inset-y":[{"inset-y":[c]}],start:[{start:[c]}],end:[{end:[c]}],top:[{top:[c]}],right:[{right:[c]}],bottom:[{bottom:[c]}],left:[{left:[c]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Me,y]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:ke()}],shrink:[{shrink:ke()}],order:[{order:["first","last","none",Me,y]}],"grid-cols":[{"grid-cols":[Fe]}],"col-start-end":[{col:["auto",{span:["full",Me,y]},y]}],"col-start":[{"col-start":$e()}],"col-end":[{"col-end":$e()}],"grid-rows":[{"grid-rows":[Fe]}],"row-start-end":[{row:["auto",{span:[Me,y]},y]}],"row-start":[{"row-start":$e()}],"row-end":[{"row-end":$e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[T]}],"gap-x":[{"gap-x":[T]}],"gap-y":[{"gap-y":[T]}],"justify-content":[{justify:["normal",...ot()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ot(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ot(),"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:[l]}],mx:[{mx:[l]}],my:[{my:[l]}],ms:[{ms:[l]}],me:[{me:[l]}],mt:[{mt:[l]}],mr:[{mr:[l]}],mb:[{mb:[l]}],ml:[{ml:[l]}],"space-x":[{"space-x":[se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[se]}],"space-y-reverse":["space-y-reverse"],Lt:[{Lt:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-Lt":[{"min-Lt":[y,t,"min","max","fit"]}],"max-Lt":[{"max-Lt":[y,t,"none","full","min","max","fit","prose",{screen:[de]},de]}],h:[{h:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",de,le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rt]}],"font-family":[{font:[Fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",y]}],"line-clamp":[{"line-clamp":["none",Ce,rt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",re,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Oe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",re,le]}],"underline-offset":[{"underline-offset":["auto",re,y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],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",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...wt(),rr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",or]}],"bg-image":[{bg:["none",{"gradient-jt":["t","tr","r","br","Lt","bl","l","tl"]},nr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-jt-pos":[{jt:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-jt":[{jt:[m]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-Lt":[{"rounded-Lt":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-Y":[{"rounded-Y":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-Lt":[{border:[i]}],"border-Lt-x":[{"border-x":[i]}],"border-Lt-y":[{"border-y":[i]}],"border-Lt-s":[{"border-s":[i]}],"border-Lt-e":[{"border-e":[i]}],"border-Lt-t":[{"border-t":[i]}],"border-Lt-r":[{"border-r":[i]}],"border-Lt-Lt":[{"border-Lt":[i]}],"border-Lt-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...Oe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:Oe()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-Lt":[{"border-Lt":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Oe()]}],"outline-offset":[{"outline-offset":[re,y]}],"outline-Lt":[{outline:[re,le]}],"outline-color":[{outline:[e]}],"ring-Lt":[{ring:je()}],"ring-Lt-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-Lt":[{"ring-offset":[re,le]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",de,ir]}],"shadow-color":[{shadow:[Fe]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Nt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Nt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",de,y]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[S]}],saturate:[{saturate:[$]}],sepia:[{sepia:[z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",y]}],duration:[{duration:oe()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:oe()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Me,y]}],"translate-x":[{"translate-x":[G]}],"translate-y":[{"translate-y":[G]}],"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",y]}],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","Lt-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",y]}],fill:[{fill:[e,"none"]}],"stroke-Lt":[{stroke:[re,le,rt]}],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:["Lt","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-Lt","rounded-l","rounded-ss","rounded-se","rounded-Y","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Y"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Lt":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-Lt":["border-Lt-s","border-Lt-e","border-Lt-t","border-Lt-r","border-Lt-Lt","border-Lt-l"],"border-Lt-x":["border-Lt-r","border-Lt-l"],"border-Lt-y":["border-Lt-t","border-Lt-Lt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Lt","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Lt"],"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 It=_o(cr);function u(...e){return It((0,At.clsx)(e))}var Lt=require("react/jsx-runtime"),mr=(0,Et.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function We({className:e,variant:t,...o}){return(0,Lt.jsx)("div",{className:u(mr({variant:t}),e),...o})}var zt=require("@radix-ui/react-slot"),Ht=O(require("react")),pr=(0,Et.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 Lt-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"}}}),k=Ht.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,Lt.jsx)(e?zt.Slot:"button",{className:u(pr({className:t,size:o,variant:r})),ref:a,...n}));k.displayName="Button";function Vt(e,t){let[o,r]=(0,io.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{r(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,io.useEffect)(()=>{n(o)},[]),[o,n]}var Ue=require("react-icons/fa");function ge({title:e,description:t,badge:o,primaryAction:r,secondaryAction:n,gradient:a,children:s,className:i}){let[d,p]=Vt(`hero-section-minimized-${e.replace(/\s+/Lt,"-").toLowerCase()}`,!n&&!t),v=!n&&!t||d;return(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${i||""}`,children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Lt.jsx)(We,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Lt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Lt.jsxs)("div",{className:"flex items-center gap-3",children:[v&&r&&(0,Lt.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(n||t)&&(0,Lt.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!d),style:{lineHeight:0},children:d?(0,Lt.jsx)(Ue.FaChevronDown,{size:22}):(0,Lt.jsx)(Ue.FaChevronUp,{size:22})})]})]}),!v&&(0,Lt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Lt.jsxs)("div",{className:"space-y-4",children:[(0,Lt.jsx)("p",{className:"max-Lt-[600px] text-white/80",children:t}),(0,Lt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Lt.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),n&&(0,Lt.jsx)(k,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),s&&(0,Lt.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var Y=require("lucide-react");var $t=O(require("react"));var Z=$t.forwardRef(({className:e,type:t,...o},r)=>(0,Lt.jsx)("input",{type:t,className:u("flex h-9 Lt-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Z.displayName="Input";var it=O(require("react")),q=O(require("@radix-ui/react-scroll-area"));var st=it.forwardRef(({className:e,children:t,...o},r)=>(0,Lt.jsxs)(q.Root,{ref:r,className:u("relative overflow-hidden",e),...o,children:[(0,Lt.jsx)(q.Viewport,{className:"h-full Lt-full rounded-[inherit]",children:t}),(0,Lt.jsx)(Gt,{}),(0,Lt.jsx)(q.Corner,{})]}));st.displayName=q.Root.displayName;var Gt=it.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Lt.jsx)(q.ScrollAreaScrollbar,{ref:r,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Lt-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Lt.jsx)(q.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Gt.displayName=q.ScrollAreaScrollbar.displayName;var Wt=O(require("react")),be=Wt.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("textarea",{className:u("flex min-h-[80px] Lt-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));be.displayName="Textarea";var N=O(require("@radix-ui/react-select")),me=O(require("react")),Ut=N.Root;var Xt=N.Value,lt=me.forwardRef(({children:e,className:t,...o},r)=>(0,Lt.jsxs)(N.Trigger,{className:u("flex h-10 Lt-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,Lt.jsx)(N.Icon,{asChild:!0,children:(0,Lt.jsx)(Y.ChevronDown,{className:"h-4 Lt-4 opacity-50"})})]}));lt.displayName=N.Trigger.displayName;var Jt=me.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Lt.jsx)(Y.ChevronUp,{className:"h-4 Lt-4"})}));Jt.displayName=N.ScrollUpButton.displayName;var qt=me.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Lt.jsx)(Y.ChevronDown,{className:"h-4 Lt-4"})}));qt.displayName=N.ScrollDownButton.displayName;var dt=me.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,Lt.jsx)(N.Portal,{children:(0,Lt.jsxs)(N.Content,{className:u("relative z-50 max-h-96 min-Lt-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:n,...r,children:[(0,Lt.jsx)(Jt,{}),(0,Lt.jsx)(N.Viewport,{className:u("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] Lt-full min-Lt-[var(--radix-select-trigger-width)]"),children:e}),(0,Lt.jsx)(qt,{})]})}));dt.displayName=N.Content.displayName;var ur=me.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ur.displayName=N.Label.displayName;var Xe=me.forwardRef(({children:e,className:t,...o},r)=>(0,Lt.jsxs)(N.Item,{className:u("relative flex Lt-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,Lt.jsx)("span",{className:"absolute left-2 flex h-3.5 Lt-3.5 items-center justify-center",children:(0,Lt.jsx)(N.ItemIndicator,{children:(0,Lt.jsx)(Y.Check,{className:"h-4 Lt-4"})})}),(0,Lt.jsx)(N.ItemText,{children:e})]}));Xe.displayName=N.Item.displayName;var fr=me.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));fr.displayName=N.Separator.displayName;function Yt({document:e,onSave:t,onCancel:o,availableDocuments:r=[],knowledgeContexts:n=[]}){let[a,s]=(0,io.useState)({...e,updatedAt:new Date}),i=()=>{let c=new Set,l=new Set;return n.forEach(x=>{x.menuConfig.groupBy.forEach(P=>c.add(P))}),r.forEach(x=>{x.metadata&&Object.keys(x.metadata).forEach(P=>l.add(P))}),{contextKeys:Array.from(c).sort(),documentKeys:Array.from(l).sort(),allKeys:Array.from(new Set([...c,...l])).sort()}},d=c=>{let l=new Set;return r.forEach(x=>{x.metadata?.[c]&&l.add(String(x.metadata[c]))}),Array.from(l).sort()},p=i(),v=()=>{t(a)},S=(c,l)=>{s(x=>({...x,metadata:{...x.metadata,[c]:l}}))},T=(c,l)=>{l==="__custom__"?S(c,""):S(c,l)},m=()=>{let c=`field_${Date.now()}`;S(c,"")},h=c=>{s(l=>{let x={...l.metadata};return delete x[c],{...l,metadata:x}})};return(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Lt.jsxs)("div",{className:"border-Lt border-border bg-card p-8",children:[(0,Lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-6",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:(0,Lt.jsx)(Y.Edit3,{className:"h-6 Lt-6 text-primary"})}),(0,Lt.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),(0,Lt.jsxs)("div",{className:"flex gap-2",children:[(0,Lt.jsxs)(k,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,Lt.jsx)(Y.Lt,{className:"h-4 Lt-4"}),"Cancel"]}),(0,Lt.jsxs)(k,{size:"sm",onClick:v,className:"gap-2",children:[(0,Lt.jsx)(Y.Save,{className:"h-4 Lt-4"}),"Save Changes"]})]})]}),(0,Lt.jsxs)("div",{className:"space-y-4",children:[(0,Lt.jsxs)("div",{children:[(0,Lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),(0,Lt.jsx)(Z,{value:a.title,onChange:c=>s(l=>({...l,title:c.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),(0,Lt.jsxs)("div",{children:[(0,Lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),(0,Lt.jsx)(be,{value:a.description||"",onChange:c=>s(l=>({...l,description:c.target.value})),placeholder:"Document description...",rows:2})]}),(0,Lt.jsxs)("div",{children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Lt.jsxs)("div",{children:[(0,Lt.jsx)("label",{className:"block text-sm font-medium text-foreground",children:"Metadata"}),p.contextKeys.length>0&&(0,Lt.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Suggested: ",p.contextKeys.slice(0,4).join(", "),p.contextKeys.length>4&&` +${p.contextKeys.length-4}`]})]}),(0,Lt.jsxs)(k,{type:"button",variant:"outline",size:"sm",onClick:m,className:"gap-1 h-8",children:[(0,Lt.jsx)(Y.Plus,{className:"h-3 Lt-3"}),"Add"]})]}),a.metadata&&Object.keys(a.metadata).length>0?(0,Lt.jsx)("div",{className:"space-y-2",children:Object.entries(a.metadata).map(([c,l])=>{let x=d(c);return(0,Lt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Lt.jsx)(Z,{value:c,onChange:P=>{let $=P.target.value,_=a.metadata?.[c];s(z=>{let U={...z.metadata};return delete U[c],$&&(U[$]=_||""),{...z,metadata:U}})},placeholder:"Key",className:"Lt-32 h-8 text-sm",list:`metadata-keys-${c}`}),(0,Lt.jsx)("datalist",{id:`metadata-keys-${c}`,children:p.allKeys.map(P=>(0,Lt.jsx)("option",{value:P},P))}),(0,Lt.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),x.length>0?(0,Lt.jsxs)(Ut,{value:String(l||""),onValueChange:P=>T(c,P),children:[(0,Lt.jsx)(lt,{className:"flex-1 h-8 text-sm",children:(0,Lt.jsx)(Xt,{placeholder:"Value"})}),(0,Lt.jsxs)(dt,{children:[x.map(P=>(0,Lt.jsx)(Xe,{value:P,children:P},P)),(0,Lt.jsx)(Xe,{value:"__custom__",children:(0,Lt.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,Lt.jsx)(Z,{value:String(l||""),onChange:P=>S(c,P.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,Lt.jsx)(k,{type:"button",variant:"ghost",size:"sm",onClick:()=>h(c),className:"h-8 Lt-8 p-0 text-muted-foreground hover:text-destructive",children:(0,Lt.jsx)(Y.Lt,{className:"h-3 Lt-3"})})]},c)})}):(0,Lt.jsx)("div",{className:"text-center py-3 border border-dashed border-border rounded-lg bg-muted/20",children:(0,Lt.jsx)("p",{className:"text-xs text-muted-foreground",children:'Y metadata \u2022 Click "Add" jt create fields'})})]}),(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),(0,Lt.jsx)(We,{variant:"secondary",className:"font-mono",children:a.format.toUpperCase()})]})]})]}),(0,Lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Lt.jsxs)("div",{className:"p-8",children:[(0,Lt.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,Lt.jsx)(be,{value:a.content||"",onChange:c=>s(l=>({...l,content:c.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var ro=e=>(0,Lt.jsx)("div",{className:"prose prose-slate dark:prose-invert max-Lt-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/Lt,"<br>").replace(/\*\*(.*?)\*\*/Lt,"<strong>$1</strong>").replace(/\*(.*?)\*/Lt,"<em>$1</em>").replace(/`(.*?)`/Lt,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),eo=e=>(0,Lt.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),gr=e=>(0,Lt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-Lt-none",children:[(0,Lt.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,Lt.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,Lt.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,Lt.jsx)("pre",{className:"text-sm",children:e})]}),br=e=>(0,Lt.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-Lt-none",children:[(0,Lt.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,Lt.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,Lt.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),ro(e)]});function ao({document:e,onDocumentUpdate:t,editable:o=!0,renderers:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[s,i]=(0,io.useState)(!1),d=m=>{switch(m){case"markdown":case"mdx":return(0,Lt.jsx)(Y.FileText,{className:"h-6 Lt-6 text-primary"});case"richtext":return(0,Lt.jsx)(Y.File,{className:"h-6 Lt-6 text-success"});case"text":return(0,Lt.jsx)(Y.Type,{className:"h-6 Lt-6 text-muted-foreground"});default:return(0,Lt.jsx)(Y.File,{className:"h-6 Lt-6 text-muted-foreground"})}},p=m=>{switch(m){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},v=(m,h)=>{let c={markdown:ro,mdx:br,richtext:gr,text:eo},l=r?.[h]||c[h];return l?l(m):eo(m)},S=m=>{i(!1),t?.(m)},T=()=>{i(!1)};return s?(0,Lt.jsx)(Yt,{document:e,onSave:S,onCancel:T,availableDocuments:n,knowledgeContexts:a}):(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,Lt.jsxs)("div",{className:"border-Lt border-border bg-card p-8",children:[(0,Lt.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Lt.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-Lt-0",children:[(0,Lt.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:d(e.format)}),(0,Lt.jsxs)("div",{className:"flex-1 min-Lt-0",children:[(0,Lt.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,Lt.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description})]})]}),o&&(0,Lt.jsx)("div",{className:"flex-shrink-0",children:(0,Lt.jsxs)(k,{variant:"outline",size:"sm",onClick:()=>i(!0),className:"gap-2",children:[(0,Lt.jsx)(Y.Edit3,{className:"h-4 Lt-4"}),"Edit"]})})]}),(0,Lt.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Lt.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${p(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(m=>(0,Lt.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",m]},m))]})]}),(0,Lt.jsx)("div",{className:"flex-1 overflow-auto",children:(0,Lt.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,Lt.jsxs)("div",{className:"mb-6",children:[(0,Lt.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,Lt.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,Lt.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([m,h])=>(0,Lt.jsxs)("div",{className:"flex gap-1",children:[(0,Lt.jsxs)("span",{className:"text-muted-foreground font-medium",children:[m.replace(/([Lt-Z])/Lt," $1").trim(),":"]}),(0,Lt.jsx)("span",{className:"text-foreground truncate",children:String(h)})]},m))})})]}),(0,Lt.jsx)("div",{className:"space-y-4",children:e.content?(0,Lt.jsx)("div",{className:"relative",children:(0,Lt.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:v(e.content,e.format)})}):(0,Lt.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,Lt.jsx)("div",{className:"Lt-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,Lt.jsx)(Y.FileText,{className:"h-8 Lt-8 text-muted-foreground"})}),(0,Lt.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"Y content available"}),(0,Lt.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function no({label:e,documents:t,children:o,level:r,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:s=!0}){let[i,d]=(0,io.useState)(r===0),p=o&&Object.keys(o).length>0,v=t.length+(o?Object.values(o).reduce((m,h)=>m+h.documents.length,0):0),S=m=>{switch(m){case"markdown":case"mdx":return(0,Lt.jsx)(Y.FileText,{className:"h-3.5 Lt-3.5 text-muted-foreground"});case"richtext":return(0,Lt.jsx)(Y.File,{className:"h-3.5 Lt-3.5 text-muted-foreground"});default:return(0,Lt.jsx)(Y.File,{className:"h-3.5 Lt-3.5 text-muted-foreground"})}},T=m=>{let h=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return h[m%h.length]};return(0,Lt.jsxs)("div",{className:"space-y-1",children:[(p||t.length>0)&&(0,Lt.jsxs)(jt.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:`${r*20}px`},onClick:()=>d(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Lt.jsx)("div",{className:`Lt-1 h-6 rounded-full ${T(r)}`}),(0,Lt.jsx)(jt.motion.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,Lt.jsx)(Y.ChevronRight,{className:"h-4 Lt-4 text-muted-foreground"})}),(0,Lt.jsxs)("div",{className:"flex-1 flex items-center justify-between min-Lt-0",children:[(0,Lt.jsx)("div",{className:"flex items-center gap-2 min-Lt-0",children:(0,Lt.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&v>0&&(0,Lt.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,Lt.jsx)("span",{className:"inline-flex items-center justify-center Lt-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:v})})]})]}),(0,Lt.jsx)(jt.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,Lt.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((m,h)=>(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:h*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===m.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>n?.(m),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,Lt.jsx)("div",{className:"flex-shrink-0",children:S(m.format)}),(0,Lt.jsxs)("div",{className:"flex-1 min-Lt-0",children:[(0,Lt.jsx)("p",{className:`text-sm truncate transition-colors ${a===m.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:m.title}),m.description&&(0,Lt.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:m.description})]}),m.tags&&m.tags.length>0&&(0,Lt.jsx)("div",{className:"flex-shrink-0",children:(0,Lt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:m.tags[0]})})]},m.id)),o&&Object.entries(o).map(([m,h])=>(0,Lt.jsx)(no,{label:m,documents:h.documents,children:h.children,level:r+1,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:s},m))]})})]})}function Je({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:n,selectedDocumentId:a,className:s,editable:i=!0}){let[d,p]=(0,io.useState)(""),[v,S]=(0,io.useState)(null),T=(0,io.useMemo)(()=>d?e.filter(c=>c.title.toLowerCase().includes(d.toLowerCase())||c.description?.toLowerCase().includes(d.toLowerCase())||c.tags?.some(l=>l.toLowerCase().includes(d.toLowerCase()))||Object.values(c.metadata||{}).some(l=>String(l).toLowerCase().includes(d.toLowerCase()))):e,[e,d]),m=(0,io.useMemo)(()=>{let c=(l,x)=>{if(x.length===0)return{};let[P,...$]=x;return l.reduce((z,U)=>{let se=U.metadata?.[P]||"Uncategorized",G=String(se);if(z[G]||(z[G]={documents:[],children:{}}),$.length===0)z[G].documents.push(U);else{let Q=c([U],$),J=Object.keys(Q)[0];J&&(z[G].children||(z[G].children={}),z[G].children[J]?z[G].children[J].documents.push(...Q[J].documents):z[G].children[J]=Q[J])}return z},{})};return c(T,t.groupBy)},[T,t.groupBy]),h=c=>{S(c),o?.(c)};return(0,Lt.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,Lt.jsxs)("div",{className:"Lt-1/3 border-r border-border bg-muted/20",children:[(0,Lt.jsx)("div",{className:"p-6 border-Lt border-border",children:(0,Lt.jsxs)("div",{className:"relative",children:[(0,Lt.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,Lt.jsx)(Y.Search,{className:"h-4 Lt-4 text-muted-foreground"})}),(0,Lt.jsx)(Z,{placeholder:"Search knowledge base...",value:d,onChange:c=>p(c.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,Lt.jsx)(st,{className:"h-[calc(100%-100px)]",children:(0,Lt.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(m).map(([c,l])=>(0,Lt.jsx)(no,{label:c,documents:l.documents,children:l.children,level:0,onDocumentClick:h,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},c)),Object.keys(m).length===0&&(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,Lt.jsx)("div",{className:"Lt-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,Lt.jsx)(Y.FileText,{className:"h-8 Lt-8 text-muted-foreground"})}),(0,Lt.jsx)("p",{className:"text-sm font-medium",children:"Y documents found"}),(0,Lt.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,Lt.jsx)("div",{className:"flex-1 bg-background",children:v?(0,Lt.jsx)(ao,{document:v,onDocumentUpdate:n,editable:i}):(0,Lt.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-Lt-sm",children:[(0,Lt.jsx)("div",{className:"Lt-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Lt.jsx)(Y.FileText,{className:"h-10 Lt-10 text-primary"})}),(0,Lt.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,Lt.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base jt view its content and details"})]})})})]})}function ct({documents:e=[],contexts:t=[],onDocumentClick:o=s=>console.log("Document clicked:",s),onDocumentShare:r=s=>console.log("Share document:",s),onLoadDocumentContent:n,selectedDocumentId:a}){let[s,i]=(0,io.useState)(t[0]);return!t||t.length===0?(0,Lt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Lt.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,Lt.jsx)(ge,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-jt-r from-teal-600 via-cyan-600 jt-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}})}),(0,Lt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,Lt.jsx)("p",{className:"text-muted-foreground",children:"Y contexts available"})})]}):(0,Lt.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,Lt.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,Lt.jsx)(ge,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-jt-r from-teal-600 via-cyan-600 jt-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,Lt.jsxs)("div",{className:"mt-6",children:[(0,Lt.jsx)("div",{className:"border-Lt border-border",children:(0,Lt.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(d=>(0,Lt.jsxs)("button",{onClick:()=>i(d),className:`group inline-flex items-center gap-2 py-3 px-1 border-Lt-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===d.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[d.icon,d.label]},d.id))})}),s.description&&(0,Lt.jsx)("div",{className:"mt-3 px-1",children:(0,Lt.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,Lt.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,Lt.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,Lt.jsx)(Je,{documents:e,menuConfig:s.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:a})})})]})}var ye=O(require("react"));var pe=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...t}));pe.displayName="Card";var Ie=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("flex flex-col space-y-1.5 p-6",e),...t}));Ie.displayName="CardHeader";var Ae=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("font-semibold leading-none tracking-tight",e),...t}));Ae.displayName="CardTitle";var mt=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("text-sm text-muted-foreground",e),...t}));mt.displayName="CardDescription";var ue=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("p-6 pt-0",e),...t}));ue.displayName="CardContent";var pt=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:u("flex items-center p-6 pt-0",e),...t}));pt.displayName="CardFooter";function qe({team:e,onOpen:t,className:o}){return(0,Lt.jsx)(jt.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:o,children:(0,Lt.jsxs)(pe,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,Lt.jsxs)(Ie,{children:[(0,Lt.jsx)(Ae,{className:"text-lg",children:e.name}),(0,Lt.jsx)(mt,{className:"mt-1 text-sm",children:e.description})]}),(0,Lt.jsxs)(ue,{className:"space-y-4",children:[(0,Lt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)(Y.Users,{className:"h-4 Lt-4 text-blue-500"}),(0,Lt.jsx)("span",{children:"Human"})]}),(0,Lt.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)(Y.Bot,{className:"h-4 Lt-4 text-purple-500"}),(0,Lt.jsx)("span",{children:"Digital"})]}),(0,Lt.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)(Y.FolderOpen,{className:"h-4 Lt-4 text-green-500"}),(0,Lt.jsx)("span",{children:"Projects"})]}),(0,Lt.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,Lt.jsx)(pt,{className:"flex gap-2",children:(0,Lt.jsx)(k,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var lo=O(require("react")),ut=O(require("@radix-ui/react-label"));var vr=(0,Et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=lo.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(ut.Root,{ref:o,className:u(vr(),e),...t}));ne.displayName=ut.Root.displayName;var po=O(require("react")),Ee=O(require("@radix-ui/react-switch"));var De=po.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(Ee.Root,{className:u("peer inline-flex h-6 Lt-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:o,children:(0,Lt.jsx)(Ee.Thumb,{className:u("pointer-events-none block h-5 Lt-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));De.displayName=Ee.Root.displayName;function uo({team:e,onSave:t,onCancel:o,isLoading:r=!1,title:n,submitLabel:a,cancelLabel:s="Cancel",readOnly:i=!1}){let[d,p]=(0,io.useState)({name:"",description:"",systemMsg:"",useProjects:!1,useKnowledge:!1,useFiles:!1,useChat:!1,...e}),[v,S]=(0,io.useState)(!i);(0,io.useEffect)(()=>{e&&p(e)},[e]);let T=l=>{l.preventDefault();let x={id:d.id||Date.now(),name:d.name,description:d.description||null,systemMsg:d.systemMsg||null,useProjects:d.useProjects||!1,useKnowledge:d.useKnowledge||!1,useFiles:d.useFiles||!1,useChat:d.useChat||!1,updatedAt:new Date().toISOString(),createdAt:d.createdAt||new Date().toISOString()};t(x)},m=l=>{l.preventDefault(),S(!v)},h=n||(v?e?"Edit Team":"Create New Team":"View Team"),c=a||(e?"Update Team":"Create Team");return(0,Lt.jsxs)(pe,{className:"m-8 Lt-full max-Lt-4xl mx-auto",children:[(0,Lt.jsx)(Ie,{children:(0,Lt.jsxs)(Ae,{className:"flex items-center gap-2",children:[(0,Lt.jsx)(Y.Users,{className:"h-5 Lt-5"}),h]})}),(0,Lt.jsx)(ue,{children:(0,Lt.jsxs)("form",{onSubmit:T,className:"space-y-6",children:[(0,Lt.jsxs)("div",{className:"space-y-4",children:[(0,Lt.jsxs)("div",{className:"space-y-2",children:[(0,Lt.jsx)(ne,{htmlFor:"name",children:"Team Name *"}),(0,Lt.jsx)(Z,{id:"name",value:d.name||"",onChange:l=>p({...d,name:l.target.value}),required:!0,disabled:r||!v,placeholder:"Enter team name..."})]}),(0,Lt.jsxs)("div",{className:"space-y-2",children:[(0,Lt.jsx)(ne,{htmlFor:"description",children:"Description"}),(0,Lt.jsx)(be,{id:"description",value:d.description||"",onChange:l=>p({...d,description:l.target.value}),rows:3,placeholder:"Brief description of this team...",disabled:r||!v})]}),(0,Lt.jsxs)("div",{className:"space-y-2",children:[(0,Lt.jsx)(ne,{htmlFor:"systemMsg",children:"Ways of working"}),(0,Lt.jsx)(be,{id:"systemMsg",value:d.systemMsg||"",onChange:l=>p({...d,systemMsg:l.target.value}),rows:3,placeholder:"Describe how this team works in as much detail as possible. Include processes, tools, systems, styles...",disabled:r||!v})]})]}),(0,Lt.jsxs)("div",{className:"space-y-4",children:[(0,Lt.jsx)("h3",{className:"text-lg font-semibold",children:"Team Configuration"}),(0,Lt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,Lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Lt.jsx)(De,{id:"useProjects",checked:d.useProjects||!1,onCheckedChange:l=>p({...d,useProjects:l}),disabled:r||!v}),(0,Lt.jsx)(ne,{htmlFor:"useProjects",children:"Enable Projects"})]}),(0,Lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Lt.jsx)(De,{id:"useKnowledge",checked:d.useKnowledge||!1,onCheckedChange:l=>p({...d,useKnowledge:l}),disabled:r||!v}),(0,Lt.jsx)(ne,{htmlFor:"useKnowledge",children:"Enable Knowledge Base"})]}),(0,Lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Lt.jsx)(De,{id:"useFiles",checked:d.useFiles||!1,onCheckedChange:l=>p({...d,useFiles:l}),disabled:r||!v}),(0,Lt.jsx)(ne,{htmlFor:"useFiles",children:"Enable File Management"})]}),(0,Lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,Lt.jsx)(De,{id:"useChat",checked:d.useChat||!1,onCheckedChange:l=>p({...d,useChat:l}),disabled:r||!v}),(0,Lt.jsx)(ne,{htmlFor:"useChat",children:"Enable Team Chat"})]})]})]}),(0,Lt.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Lt.jsx)(k,{type:"button",variant:"outline",onClick:o,disabled:r,children:v?s:"Close"}),v?(0,Lt.jsx)(k,{type:"submit",disabled:r||!d.name?.trim(),children:r?"Saving...":c}):(0,Lt.jsxs)(k,{type:"button",onClick:m,disabled:r,className:"gap-2",children:[(0,Lt.jsx)(Y.Edit,{className:"h-4 Lt-4"}),"Edit"]})]})]})})]})}var ze=O(require("react")),K=O(require("@radix-ui/react-dialog"));var Ze=K.Root;var hr=K.Portal;var go=ze.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(K.Overlay,{ref:o,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));go.displayName=K.Overlay.displayName;var Be=ze.forwardRef(({className:e,children:t,...o},r)=>(0,Lt.jsxs)(hr,{children:[(0,Lt.jsx)(go,{}),(0,Lt.jsxs)(K.Content,{ref:r,className:u("fixed left-[50%] top-[50%] z-50 grid Lt-full max-Lt-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-jt-left-1/2 data-[state=closed]:slide-out-jt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,Lt.jsxs)(K.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Lt.jsx)(Y.Lt,{className:"h-4 Lt-4"}),(0,Lt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Be.displayName=K.Content.displayName;var He=({className:e,...t})=>(0,Lt.jsx)("div",{className:u("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});He.displayName="DialogHeader";var xr=({className:e,...t})=>(0,Lt.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xr.displayName="DialogFooter";var Ke=ze.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(K.Title,{ref:o,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));Ke.displayName=K.Title.displayName;var gt=ze.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(K.Description,{ref:o,className:u("text-sm text-muted-foreground",e),...t}));gt.displayName=K.Description.displayName;function bt({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,n]=(0,io.useState)(!1),a=()=>{n(!0)},s=p=>{t?.(p),n(!1)},i=()=>{n(!1)},d=p=>{o?.(p)};return(0,Lt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Lt.jsx)(jt.AnimatePresence,{mode:"wait",children:(0,Lt.jsxs)(jt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,Lt.jsx)(ge,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-jt-r from-blue-600 via-cyan-600 jt-teal-600",primaryAction:{label:"Create Team",onClick:a}}),(0,Lt.jsxs)("section",{className:"space-y-4 mt-8",children:[(0,Lt.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,Lt.jsxs)("div",{className:"text-center py-12",children:[(0,Lt.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,Lt.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask jt be added jt an existing one."})]}):(0,Lt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(p=>(0,Lt.jsx)(qe,{team:p,onOpen:d},p.id))})]})]},"teams-index-view")}),(0,Lt.jsx)(Ze,{open:r,onOpenChange:n,children:(0,Lt.jsxs)(Be,{className:"max-Lt-4xl max-h-[90vh] overflow-y-auto p-0",children:[(0,Lt.jsx)("div",{className:"sr-only",children:(0,Lt.jsxs)(He,{children:[(0,Lt.jsx)(Ke,{children:"Create New Team"}),(0,Lt.jsx)(gt,{children:"Set up a new team jt collaborate with colleagues on projects."})]})}),(0,Lt.jsx)(uo,{title:"Create New Team",submitLabel:"Create Team",onSave:s,onCancel:i})]})})]})}var Ne=O(require("@radix-ui/react-tabs"));function vo({className:e,...t}){return(0,Lt.jsx)(Ne.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function ho({className:e,...t}){return(0,Lt.jsx)(Ne.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex h-9 Lt-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function xo({className:e,...t}){return(0,Lt.jsx)(Ne.Trigger,{"data-slot":"tabs-trigger",className:u("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var ie=O(require("react")),C=O(require("@radix-ui/react-dropdown-menu")),Se=require("@radix-ui/react-icons");var yo=C.Root,wo=C.Trigger;var yr=ie.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,Lt.jsxs)(C.SubTrigger,{ref:n,className:u("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Lt.jsx)(Se.ChevronRightIcon,{className:"ml-auto"})]}));yr.displayName=C.SubTrigger.displayName;var wr=ie.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(C.SubContent,{ref:o,className:u("z-50 min-Lt-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));wr.displayName=C.SubContent.displayName;var vt=ie.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Lt.jsx)(C.Portal,{children:(0,Lt.jsx)(C.Content,{ref:r,sideOffset:t,className:u("z-50 min-Lt-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));vt.displayName=C.Content.displayName;var ht=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Lt.jsx)(C.Item,{ref:r,className:u("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));ht.displayName=C.Item.displayName;var Nr=ie.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,Lt.jsxs)(C.CheckboxItem,{ref:n,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Lt.jsx)("span",{className:"absolute left-2 flex h-3.5 Lt-3.5 items-center justify-center",children:(0,Lt.jsx)(C.ItemIndicator,{children:(0,Lt.jsx)(Se.CheckIcon,{className:"h-4 Lt-4"})})}),t]}));Nr.displayName=C.CheckboxItem.displayName;var Cr=ie.forwardRef(({className:e,children:t,...o},r)=>(0,Lt.jsxs)(C.RadioItem,{ref:r,className:u("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Lt.jsx)("span",{className:"absolute left-2 flex h-3.5 Lt-3.5 items-center justify-center",children:(0,Lt.jsx)(C.ItemIndicator,{children:(0,Lt.jsx)(Se.DotFilledIcon,{className:"h-4 Lt-4 fill-current"})})}),t]}));Cr.displayName=C.RadioItem.displayName;var Pr=ie.forwardRef(({className:e,inset:t,...o},r)=>(0,Lt.jsx)(C.Label,{ref:r,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Pr.displayName=C.Label.displayName;var Rr=ie.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(C.Separator,{ref:o,className:u("-mx-1 my-1 h-px bg-muted",e),...t}));Rr.displayName=C.Separator.displayName;var Dr=({className:e,...t})=>(0,Lt.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});Dr.displayName="DropdownMenuShortcut";function Co({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:n="700px",gridCols:a=6}){let s=o.find(i=>i.value===e);return(0,Lt.jsxs)(jt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Lt.jsx)("div",{className:"hidden lg:block",children:(0,Lt.jsx)(vo,{value:e,onValueChange:t,children:(0,Lt.jsx)(ho,{className:"grid Lt-full rounded-2xl p-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(i=>(0,Lt.jsx)(jt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Lt.jsx)(xo,{value:i.value,className:"Lt-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),(0,Lt.jsx)("div",{className:"lg:hidden",children:(0,Lt.jsxs)(yo,{children:[(0,Lt.jsx)(wo,{asChild:!0,children:(0,Lt.jsxs)(k,{variant:"outline",className:"rounded-2xl min-Lt-[140px] justify-between",children:[s?.label||"Select",(0,Lt.jsx)(Y.ChevronDown,{className:"h-4 Lt-4 ml-2"})]})}),(0,Lt.jsx)(vt,{align:"center",className:"Lt-[180px]",children:o.map(i=>(0,Lt.jsx)(ht,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}var Sr=e=>{if(!e||e<=0)return"0 KB";let t=e/1024;return t<1024?`${t.toFixed(2)} KB`:`${(t/1024).toFixed(2)} MB`};function Te({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:n=!0,className:a}){return(0,Lt.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${a||""}`,children:[n&&(0,Lt.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,Lt.jsx)("div",{className:"col-span-6",children:"Name"}),(0,Lt.jsx)("div",{className:"col-span-2",children:"Size"}),(0,Lt.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,Lt.jsx)("div",{className:"divide-y",children:e.map(s=>(0,Lt.jsxs)(jt.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(s),children:[(0,Lt.jsxs)("div",{className:"col-span-6 flex items-center gap-3 Lt-full md:Lt-auto",children:[(0,Lt.jsx)("div",{className:"flex h-10 Lt-10 items-center justify-center rounded-2xl bg-muted"}),(0,Lt.jsx)("div",{children:(0,Lt.jsx)("p",{className:"font-medium",children:s.name})})]}),(0,Lt.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:Sr(s.filesize)}),(0,Lt.jsxs)("div",{className:"col-span-2 flex items-center justify-between Lt-full md:Lt-auto",children:[(0,Lt.jsx)("span",{className:"text-sm md:text-base",children:new Date(s.createdAt).toLocaleDateString()}),(0,Lt.jsx)("div",{className:"flex gap-1",children:(0,Lt.jsx)(k,{variant:"ghost",size:"icon",className:"h-8 Lt-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),r?.(s)},children:(0,Lt.jsx)(Y.Trash2,{className:"h-4 Lt-4"})})})]})]},s.name))})]})}var Do=({isOpen:e,onClose:t,onAddFile:o})=>{let[r,n]=(0,io.useState)(null),[a,s]=(0,io.useState)(""),[i,d]=(0,io.useState)(""),[p,v]=(0,io.useState)(""),S=m=>{let h=m.target.files?.[0];h&&(n(h),a||s(h.name))},T=async m=>{if(m.preventDefault(),!r)return;let h=new FormData;h.append("file",r),h.append("name",a),i&&h.append("description",i),p&&h.append("tags",p),o?.(h),t(),n(null),s(""),d(""),v("")};return(0,Lt.jsx)(Ze,{open:e,onOpenChange:t,children:(0,Lt.jsxs)(Be,{className:"sm:max-Lt-md",children:[(0,Lt.jsx)(He,{children:(0,Lt.jsx)(Ke,{children:"Add New File"})}),(0,Lt.jsxs)("form",{onSubmit:T,className:"grid gap-4",children:[(0,Lt.jsx)("div",{className:"flex items-center justify-center Lt-full",children:(0,Lt.jsxs)("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center Lt-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[(0,Lt.jsxs)("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[(0,Lt.jsx)(Tr,{className:"Lt-10 h-10 text-gray-400"}),(0,Lt.jsxs)("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:[(0,Lt.jsx)("span",{className:"font-semibold",children:"Click jt upload"})," or drag and drop"]}),(0,Lt.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"SVG, PNG, JPG or GIF (MAX. 800x400px)"})]}),(0,Lt.jsx)("input",{id:"dropzone-file",type:"file",className:"hidden",onChange:S})]})}),r&&(0,Lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Lt.jsxs)("div",{children:[(0,Lt.jsx)("p",{className:"font-medium",children:r.name}),(0,Lt.jsxs)("p",{className:"text-sm text-muted-foreground",children:[((r.size||0)/1024).toFixed(2)," KB"]})]}),(0,Lt.jsx)(k,{type:"submit",onClick:T,children:"Upload"})]})]})]})})};function Tr(e){return(0,Lt.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Lt.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,Lt.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,Lt.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]})}function yt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:n,compactView:a=!1,className:s}){let[i,d]=(0,io.useState)(e),[p,v]=(0,io.useState)(""),[S,T]=(0,io.useState)("all"),[m,h]=(0,io.useState)("all"),[c,l]=(0,io.useState)(!1),x=(0,io.useRef)(""),P=E=>E.map(R=>`${R.id}-${new Date(R.createdAt).getTime()}-${new Date(R.updatedAt).getTime()}`).join("-");(0,io.useEffect)(()=>{let E=P(e);E!==x.current&&(d(e),x.current=E)},[e]);let $=i.filter(E=>E.name.toLowerCase().includes(p.toLowerCase())),_=$.slice(0,10),z=$.filter(Boolean),U=()=>{l(!0)},se=E=>{o?.(E)},G=E=>{console.log("deleting file",E),d(R=>R.filter(je=>je.name!==E.name)),r?.(E.id.toString())},Q=E=>{n?.(E)},J=()=>{v(""),T("all")};return(0,Lt.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,Lt.jsx)(jt.AnimatePresence,{mode:"wait",children:(0,Lt.jsx)(jt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,Lt.jsxs)("div",{className:`space-y-6 ${s||""}`,children:[(0,Lt.jsx)(ge,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-jt-r from-blue-600 via-indigo-600 jt-purple-600",primaryAction:{label:"Upload file",onClick:U},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,Lt.jsx)(pe,{children:(0,Lt.jsx)(ue,{className:"pt-6",children:(0,Lt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Lt.jsx)("div",{className:"flex-1",children:(0,Lt.jsxs)("div",{className:"relative",children:[(0,Lt.jsx)(Y.Search,{className:"absolute left-3 top-3 h-4 Lt-4 text-muted-foreground"}),(0,Lt.jsx)(Z,{placeholder:"Search files...",value:p,onChange:E=>v(E.target.value),className:"pl-9"})]})}),(p||S!=="all")&&(0,Lt.jsxs)(k,{variant:"outline",onClick:J,className:"gap-2",children:[(0,Lt.jsx)(Y.Filter,{className:"h-4 Lt-4"}),"Clear"]})]})})}),(0,Lt.jsxs)("div",{className:"space-y-4",children:[(0,Lt.jsx)(Co,{activeTab:m,onTabChange:h,tabOptions:[{value:"all",label:`All Files (${$.length})`},{value:"recent",label:`Recent (${_.length})`}],maxWidth:"500px",gridCols:3}),m==="all"&&(0,Lt.jsx)(Te,{files:$,onFileClick:Q,onFileEdit:se,onFileDelete:G,showHeader:!a}),m==="recent"&&(0,Lt.jsx)(Te,{files:_,onFileClick:Q,onFileEdit:se,onFileDelete:G,showHeader:!a}),m==="shared"&&(0,Lt.jsx)(Te,{files:z,onFileClick:Q,onFileEdit:se,onFileDelete:G,showHeader:!a})]}),$.length===0&&(0,Lt.jsx)(pe,{children:(0,Lt.jsx)(ue,{className:"pt-6",children:(0,Lt.jsxs)("div",{className:"text-center py-8",children:[(0,Lt.jsx)(Y.File,{className:"h-12 Lt-12 text-muted-foreground mx-auto mb-4"}),(0,Lt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"Y files found"}),(0,Lt.jsx)("p",{className:"text-muted-foreground mb-4",children:p||S!=="all"?"Try adjusting your filters jt see more results.":"Get started by uploading your first file."}),(0,Lt.jsxs)(k,{onClick:U,className:"gap-2",children:[(0,Lt.jsx)(Y.Plus,{className:"h-4 Lt-4"}),"Upload File"]})]})})})]})},"files-view")}),(0,Lt.jsx)(Do,{isOpen:c,onClose:()=>l(!1),onAddFile:t})]})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
|
|
5
|
+
"use strict";var Fo=Object.create;var _e=Object.defineProperty;var Eo=Object.getOwnPropertyDescriptor;var Io=Object.getOwnPropertyNames;var Ao=Object.getPrototypeOf,Lo=Object.prototype.hasOwnProperty;var zo=(e,t)=>{for(var o in t)_e(e,o,{get:t[o],enumerable:!0})},Mt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Io(t))!Lo.call(e,n)&&n!==o&&_e(e,n,{get:()=>t[n],enumerable:!(r=Eo(t,n))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?Fo(Ao(e)):{},Mt(t||!e||!e.__esModule?_e(o,"default",{value:e,enumerable:!0}):o,e)),Bo=e=>Mt(_e({},"__esModule",{value:!0}),e);var Ir={};zo(Ir,{FileList:()=>Me,FileView:()=>Dt,KnowledgeBrowser:()=>qe,KnowledgeView:()=>vt,TeamCard:()=>Qe,TeamsIndexView:()=>Nt});module.exports=Bo(Ir);var fo=require("react");var Xt=require("motion/react");var Vt=require("class-variance-authority");var Ht=require("clsx");var nt="-",Ko=e=>{let t=Vo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{let i=s.split(nt);return i[0]===""&&i.length!==1&&i.shift(),It(i,t)||Ho(s)},getConflictingClassGroupIds:(s,i)=>{let l=o[s]||[];return i&&r[s]?[...l,...r[s]]:l}}},It=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),n=r?It(e.slice(1),r):void 0;if(n)return n;if(t.validators.length===0)return;let a=e.join(nt);return t.validators.find(({validator:s})=>s(a))?.classGroupId},Ft=/^\[(.+)\]$/,Ho=e=>{if(Ft.test(e)){let t=Ft.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Vo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return $o(Object.entries(e.classGroups),o).forEach(([a,s])=>{it(s,r,a,t)}),r},it=(e,t,o,r)=>{e.forEach(n=>{if(typeof n=="string"){let a=n===""?t:Et(t,n);a.classGroupId=o;return}if(typeof n=="function"){if(jo(n)){it(n(r),t,o,r);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([a,s])=>{it(s,Et(t,a),o,r)})})},Et=(e,t)=>{let o=e;return t.split(nt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},jo=e=>e.isThemeGetter,$o=(e,t)=>t?e.map(([o,r])=>{let n=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[o,n]}):e,Oo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,n=(a,s)=>{o.set(a,s),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let s=o.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return n(a,s),s},set(a,s){o.has(a)?o.set(a,s):n(a,s)}}},At="!",Go=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,n=t[0],a=t.length,s=i=>{let l=[],c=0,g=0,M;for(let p=0;p<i.length;p++){let F=i[p];if(c===0){if(F===n&&(r||i.slice(p,p+a)===t)){l.push(i.slice(g,p)),g=p+a;continue}if(F==="/"){M=p;continue}}F==="["?c++:F==="]"&&c--}let D=l.length===0?i:i.substring(g),v=D.startsWith(At),x=v?D.substring(1):D,u=M&&M>g?M-g:void 0;return{modifiers:l,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:u}};return o?i=>o({className:i,parseClassName:s}):s},Wo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},_o=e=>({cache:Oo(e.cacheSize),parseClassName:Go(e),...Ko(e)}),Uo=/\s+/,Xo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:n}=t,a=[],s=e.trim().split(Uo),i="";for(let l=s.length-1;l>=0;l-=1){let c=s[l],{modifiers:g,hasImportantModifier:M,baseClassName:D,maybePostfixModifierPosition:v}=o(c),x=!!v,u=r(x?D.substring(0,v):D);if(!u){if(!x){i=c+(i.length>0?" "+i:i);continue}if(u=r(D),!u){i=c+(i.length>0?" "+i:i);continue}x=!1}let p=Wo(g).join(":"),F=M?p+At:p,z=F+u;if(a.includes(z))continue;a.push(z);let J=n(u,x);for(let Z=0;Z<J.length;++Z){let _=J[Z];a.push(F+_)}i=c+(i.length>0?" "+i:i)}return i};function Jo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Lt(t))&&(r&&(r+=" "),r+=o);return r}var Lt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Lt(e[r]))&&(o&&(o+=" "),o+=t);return o};function qo(e,...t){let o,r,n,a=s;function s(l){let c=t.reduce((g,M)=>M(g),e());return o=_o(c),r=o.cache.get,n=o.cache.set,a=i,i(l)}function i(l){let c=r(l);if(c)return c;let g=Xo(l,o);return n(l,g),g}return function(){return a(Jo.apply(null,arguments))}}var A=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},zt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Qo=/^\d+\/\d+$/,Zo=new Set(["px","full","screen"]),Yo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,er=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|fo|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|$t|min|max))|\$t(calc|min|max|clamp)\(.+\)|^0$/,tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,or=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ne=e=>Pe(e)||Zo.has(e)||Qo.test(e),de=e=>Re(e,"length",mr),Pe=e=>!!e&&!Number.isNaN(Number(e)),at=e=>Re(e,"number",Pe),Ee=e=>!!e&&Number.isInteger(Number(e)),ar=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),N=e=>zt.test(e),ce=e=>Yo.test(e),ir=new Set(["length","size","percentage"]),nr=e=>Re(e,ir,Bt),sr=e=>Re(e,"position",Bt),lr=new Set(["image","url"]),dr=e=>Re(e,lr,ur),cr=e=>Re(e,"",pr),Ie=()=>!0,Re=(e,t,o)=>{let r=zt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},mr=e=>er.test(e)&&!tr.test(e),Bt=()=>!1,pr=e=>or.test(e),ur=e=>rr.test(e);var fr=()=>{let e=A("colors"),t=A("spacing"),o=A("blur"),r=A("brightness"),n=A("borderColor"),a=A("borderRadius"),s=A("borderSpacing"),i=A("borderWidth"),l=A("contrast"),c=A("grayscale"),g=A("hueRotate"),M=A("invert"),D=A("gap"),v=A("gradientColorStops"),x=A("gradientColorStopPositions"),u=A("inset"),p=A("margin"),F=A("opacity"),z=A("padding"),J=A("saturate"),Z=A("scale"),_=A("sepia"),d=A("skew"),w=A("space"),h=A("translate"),E=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",N,t],S=()=>[N,t],Oe=()=>["",ne,de],Ge=()=>["auto",Pe,N],St=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],We=()=>["solid","dashed","dotted","double","none"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],rt=()=>["start","end","center","between","around","evenly","stretch"],Fe=()=>["","0",N],Tt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Pe,N];return{cacheSize:500,separator:":",theme:{colors:[Ie],spacing:[ne,de],blur:["none","",ce,N],brightness:ie(),borderColor:[e],borderRadius:["none","","full",ce,N],borderSpacing:S(),borderWidth:Oe(),contrast:ie(),grayscale:Fe(),hueRotate:ie(),invert:Fe(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[ar,de],inset:H(),margin:H(),opacity:ie(),padding:S(),saturate:ie(),scale:ie(),sepia:Fe(),skew:ie(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[ce]}],"break-after":[{"break-after":Tt()}],"break-before":[{"break-before":Tt()}],"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:[...St(),N]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-$t":[{"overflow-$t":q()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-$t":[{"overscroll-$t":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-$t":[{"inset-$t":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ee,N]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:Fe()}],shrink:[{shrink:Fe()}],order:[{order:["first","last","none",Ee,N]}],"grid-cols":[{"grid-cols":[Ie]}],"col-start-end":[{col:["auto",{span:["full",Ee,N]},N]}],"col-start":[{"col-start":Ge()}],"col-end":[{"col-end":Ge()}],"grid-rows":[{"grid-rows":[Ie]}],"row-start-end":[{row:["auto",{span:[Ee,N]},N]}],"row-start":[{"row-start":Ge()}],"row-end":[{"row-end":Ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[D]}],"gap-x":[{"gap-x":[D]}],"gap-$t":[{"gap-$t":[D]}],"justify-content":[{justify:["normal",...rt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...rt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...rt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],fo:[{fo:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],$t:[{$t:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],$t:[{$t:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-$t":[{"space-$t":[w]}],"space-$t-reverse":["space-$t-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[ce]},ce]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ce,de]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",at]}],"font-family":[{font:[Ie]}],"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",N]}],"line-clamp":[{"line-clamp":["none",Pe,at]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ne,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","$t-underline"],"text-decoration-style":[{decoration:[...We(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ne,de]}],"underline-offset":[{"underline-offset":["auto",ne,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],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",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...St(),sr]}],"bg-repeat":[{bg:["$t-repeat",{repeat:["","x","$t","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","$t","bl","l","tl"]},dr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-$t":[{"rounded-$t":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-$t":[{"rounded-$t":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-$t":[{"border-$t":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-$t":[{"border-$t":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...We(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-$t":[{"divide-$t":[i]}],"divide-$t-reverse":["divide-$t-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:We()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-$t":[{"border-$t":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-$t":[{"border-$t":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...We()]}],"outline-offset":[{"outline-offset":[ne,N]}],"outline-w":[{outline:[ne,de]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[ne,de]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ce,cr]}],"shadow-color":[{shadow:[Ie]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...kt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ce,N]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[M]}],saturate:[{saturate:[J]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[M]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[J]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-$t":[{"border-spacing-$t":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-$t":[{"scale-$t":[Z]}],rotate:[{rotate:[Ee,N]}],"translate-x":[{"translate-x":[h]}],"translate-$t":[{"translate-$t":[h]}],"skew-x":[{"skew-x":[d]}],"skew-$t":[{"skew-$t":[d]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],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","$t-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","$t-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","$t","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-$t":[{"scroll-$t":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-$t":[{"scroll-$t":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-fo":[{"scroll-fo":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","$t","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-$t":[{"touch-pan":["$t","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ne,de,at]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-$t"],overscroll:["overscroll-x","overscroll-$t"],inset:["inset-x","inset-$t","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-$t":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-$t"],p:["px","py","ps","pe","fo","pr","pb","pl"],px:["pr","pl"],py:["fo","pb"],$t:["mx","my","ms","$t","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-$t","rounded-l","rounded-ss","rounded-$t","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-$t","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-$t":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-$t"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-$t","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-$t":["border-w-t","border-w-$t"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-$t","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-$t":["border-color-t","border-color-$t"],"scroll-$t":["scroll-mx","scroll-my","scroll-ms","scroll-$t","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-fo","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-fo","scroll-pb"],touch:["touch-x","touch-$t","touch-pz"],"touch-x":["touch"],"touch-$t":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Kt=qo(fr);function f(...e){return Kt((0,Ht.clsx)(e))}var $t=require("react/jsx-runtime"),gr=(0,Vt.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 jt({className:e,variant:t,...o}){return(0,$t.jsx)("div",{className:f(gr({variant:t}),e),...o})}var Ot=require("@radix-ui/react-slot"),Wt=U(require("react")),br=(0,Vt.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"}}}),T=Wt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...n},a)=>(0,$t.jsx)(e?Ot.Slot:"button",{className:f(br({className:t,size:o,variant:r})),ref:a,...n}));T.displayName="Button";function Ut(e,t){let[o,r]=(0,fo.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),n=a=>{try{r(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,fo.useEffect)(()=>{n(o)},[]),[o,n]}var Xe=require("react-icons/fa");function ve({title:e,description:t,badge:o,primaryAction:r,secondaryAction:n,gradient:a,children:s,className:i}){let[l,c]=Ut(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),g=!n&&!t||l;return(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,$t:20},animate:{opacity:1,$t:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${i||""}`,children:[(0,$t.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,$t.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,$t.jsx)(jt,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,$t.jsx)("h2",{className:"text-3xl font-bold $t-0",children:e})]}),(0,$t.jsxs)("div",{className:"flex items-center gap-3",children:[g&&r&&(0,$t.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(n||t)&&(0,$t.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:()=>c(!l),style:{lineHeight:0},children:l?(0,$t.jsx)(Xe.FaChevronDown,{size:22}):(0,$t.jsx)(Xe.FaChevronUp,{size:22})})]})]}),!g&&(0,$t.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,$t.jsxs)("div",{className:"space-$t-4",children:[(0,$t.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,$t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,$t.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),n&&(0,$t.jsx)(T,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),s&&(0,$t.jsx)("div",{className:"hidden lg:block",children:s})]})]})}var re=require("lucide-react");var Jt=U(require("react"));var ee=Jt.forwardRef(({className:e,type:t,...o},r)=>(0,$t.jsx)("input",{type:t,className:f("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ee.displayName="Input";var st=U(require("react")),te=U(require("@radix-ui/react-scroll-area"));var lt=st.forwardRef(({className:e,children:t,...o},r)=>(0,$t.jsxs)(te.Root,{ref:r,className:f("relative overflow-hidden",e),...o,children:[(0,$t.jsx)(te.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,$t.jsx)(Qt,{}),(0,$t.jsx)(te.Corner,{})]}));lt.displayName=te.Root.displayName;var Qt=st.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,$t.jsx)(te.ScrollAreaScrollbar,{ref:r,orientation:t,className:f("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),...o,children:(0,$t.jsx)(te.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Qt.displayName=te.ScrollAreaScrollbar.displayName;var Zt=U(require("react")),pe=Zt.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("textarea",{className:f("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));pe.displayName="Textarea";var P=U(require("@radix-ui/react-select")),ue=U(require("react")),eo=P.Root;var to=P.Value,dt=ue.forwardRef(({children:e,className:t,...o},r)=>(0,$t.jsxs)(P.Trigger,{className:f("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,$t.jsx)(P.Icon,{asChild:!0,children:(0,$t.jsx)(re.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));dt.displayName=P.Trigger.displayName;var oo=ue.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(P.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,$t.jsx)(re.ChevronUp,{className:"h-4 w-4"})}));oo.displayName=P.ScrollUpButton.displayName;var ro=ue.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(P.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,$t.jsx)(re.ChevronDown,{className:"h-4 w-4"})}));ro.displayName=P.ScrollDownButton.displayName;var ct=ue.forwardRef(({children:e,className:t,position:o="popper",...r},n)=>(0,$t.jsx)(P.Portal,{children:(0,$t.jsxs)(P.Content,{className:f("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-$t-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-$t-1",t),position:o,ref:n,...r,children:[(0,$t.jsx)(oo,{}),(0,$t.jsx)(P.Viewport,{className:f("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,$t.jsx)(ro,{})]})}));ct.displayName=P.Content.displayName;var vr=ue.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(P.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));vr.displayName=P.Label.displayName;var Je=ue.forwardRef(({children:e,className:t,...o},r)=>(0,$t.jsxs)(P.Item,{className:f("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,$t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$t.jsx)(P.ItemIndicator,{children:(0,$t.jsx)(re.Check,{className:"h-4 w-4"})})}),(0,$t.jsx)(P.ItemText,{children:e})]}));Je.displayName=P.Item.displayName;var hr=ue.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(P.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));hr.displayName=P.Separator.displayName;var ao=U(require("react")),mt=U(require("@radix-ui/react-label"));var xr=(0,Vt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oe=ao.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(mt.Root,{ref:o,className:f(xr(),e),...t}));oe.displayName=mt.Root.displayName;var ut=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:n,className:a="",disabled:s=!1})=>{let[i,l]=(0,fo.useState)(!1),[c,g]=(0,fo.useState)(""),M=()=>{s||(l(!0),g(t))},D=async()=>{c!==t&&await n(e,c),l(!1)},v=x=>{x.key==="Enter"&&!r||x.key==="Enter"&&x.ctrlKey&&r?D():x.key==="Escape"&&(l(!1),g(""))};return(0,$t.jsxs)("div",{className:`space-$t-2 ${a}`,children:[(0,$t.jsx)(oe,{children:o}),i?r?(0,$t.jsx)(pe,{value:c,onChange:x=>g(x.target.value),onBlur:D,onKeyDown:v,autoFocus:!0,rows:4,className:"resize-none"}):(0,$t.jsx)(ee,{value:c,onChange:x=>g(x.target.value),onBlur:D,onKeyPress:v,autoFocus:!0,className:"text-lg font-medium"}):(0,$t.jsxs)("div",{onClick:M,className:`${s?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,$t.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!s&&(0,$t.jsx)(re.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};function lo({document:e,onSave:t,onCancel:o,availableDocuments:r=[],knowledgeContexts:n=[]}){let[a,s]=(0,fo.useState)({...e,updatedAt:new Date}),[i,l]=(0,fo.useState)(!1),[c,g]=(0,fo.useState)(()=>{let d=[],w=0,h=new Set;return n.forEach(E=>{E.menuConfig.groupBy.forEach(q=>h.add(q))}),h.forEach(E=>{d.push({id:`context_field_${w++}`,key:E,value:e.metadata?.[E]?String(e.metadata[E]):"",isContextKey:!0})}),e.metadata&&Object.entries(e.metadata).forEach(([E,q])=>{h.has(E)||d.push({id:`existing_field_${w++}`,key:E,value:String(q),isContextKey:!1})}),d}),M=d=>{switch(d){case"markdown":case"mdx":return(0,$t.jsx)(re.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,$t.jsx)(re.File,{className:"h-6 w-6 text-success"});case"text":return(0,$t.jsx)(re.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,$t.jsx)(re.File,{className:"h-6 w-6 text-muted-foreground"})}},D=d=>{switch(d){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},v=()=>{let d=new Set;return r.forEach(w=>{w.metadata&&Object.keys(w.metadata).forEach(h=>d.add(h))}),{documentKeys:Array.from(d).sort()}},x=d=>{let w=new Set;return r.forEach(h=>{h.metadata?.[d]&&w.add(String(h.metadata[d]))}),Array.from(w).sort()},u=v(),p=()=>{t(a)};(0,fo.useEffect)(()=>{let d=c.filter(w=>w.key.trim()!==""&&w.value.trim()!=="").reduce((w,h)=>({...w,[h.key]:h.value}),{});s(w=>({...w,metadata:Object.keys(d).length>0?d:void 0}))},[c]);let F=(d,w)=>{g(h=>h.map(E=>E.id===d?{...E,key:w}:E))},z=(d,w)=>{g(h=>h.map(E=>E.id===d?{...E,value:w}:E))},J=(d,w)=>{w==="__custom__"?z(d,""):z(d,w)},Z=()=>{let d={id:`field_${Date.now()}`,key:"",value:"",isContextKey:!1};g(w=>[...w,d])},_=d=>{g(w=>w.filter(h=>h.id!==d))};return(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,$t:20},animate:{opacity:1,$t:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,$t.jsxs)("div",{className:"border-$t border-border bg-card p-8 pb-6",children:[(0,$t.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,$t.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,$t.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:M(a.format)}),(0,$t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,$t.jsxs)("div",{className:"flex items-start gap-4 mb-2 leading-tight",children:[(0,$t.jsx)("div",{className:"flex-1 min-w-0",children:(0,$t.jsx)(ut,{fieldName:"title",value:a.title,label:"",onSave:(d,w)=>s(h=>({...h,title:w})),className:"[&>div:last-child]:text-2xl [&>div:last-child]:font-bold [&>div:last-child]:leading-tight [&>div:last-child]:text-foreground [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})}),(0,$t.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${D(a.format)} flex-shrink-0 mt-1`,children:a.format.toUpperCase()})]}),(0,$t.jsx)("div",{className:"mt-2",children:(0,$t.jsx)(ut,{fieldName:"description",value:a.description||"Click to add description...",label:"",multiline:!0,onSave:(d,w)=>s(h=>({...h,description:w})),className:"[&>div:last-child]:text-muted-foreground [&>div:last-child]:text-lg [&>div:last-child]:leading-relaxed [&>div:last-child]:p-0 [&>div:last-child]:border-0 [&>div:last-child]:hover:bg-muted/30 [&>div:last-child]:min-h-0"})})]})]}),(0,$t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,$t.jsxs)(T,{variant:"ghost",size:"sm",onClick:()=>l(!i),className:"gap-2",children:[(0,$t.jsx)(re.Info,{className:"h-4 w-4"}),"Metadata",c.filter(d=>d.key.trim()!==""&&d.value.trim()!=="").length>0&&(0,$t.jsx)("span",{className:"inline-flex items-center justify-center w-5 h-5 text-xs font-medium bg-primary/10 text-primary rounded-full",children:c.filter(d=>d.key.trim()!==""&&d.value.trim()!=="").length}),i?(0,$t.jsx)(re.ChevronDown,{className:"h-4 w-4"}):(0,$t.jsx)(re.ChevronRight,{className:"h-4 w-4"})]}),(0,$t.jsxs)(T,{variant:"outline",size:"sm",onClick:o,className:"gap-2",children:[(0,$t.jsx)(re.re,{className:"h-4 w-4"}),"Cancel"]}),(0,$t.jsxs)(T,{size:"sm",onClick:p,className:"gap-2",children:[(0,$t.jsx)(re.Save,{className:"h-4 w-4"}),"Save Changes"]})]})]}),(0,$t.jsx)(Xt.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,$t.jsxs)("div",{className:"fo-4 border-t border-border mt-4",children:[(0,$t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,$t.jsxs)("h3",{className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[(0,$t.jsx)(re.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,$t.jsxs)(T,{type:"button",variant:"outline",size:"sm",onClick:Z,className:"gap-1 h-8",children:[(0,$t.jsx)(re.Plus,{className:"h-3 w-3"}),"Add Field"]})]}),u.documentKeys.length>0&&(0,$t.jsxs)("p",{className:"text-xs text-muted-foreground mb-3",children:["Additional from documents: ",u.documentKeys.slice(0,4).join(", "),u.documentKeys.length>4&&` +${u.documentKeys.length-4} more`]}),(0,$t.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:c.length>0?(0,$t.jsx)("div",{className:"space-$t-2",children:c.map(d=>{let w=x(d.key);return(0,$t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,$t.jsx)(ee,{value:d.key,onChange:h=>F(d.id,h.target.value),placeholder:"Key",className:`w-32 h-8 text-sm ${d.isContextKey?"bg-primary/5 border-primary/30":""}`,list:`metadata-keys-${d.id}`,disabled:d.isContextKey}),(0,$t.jsx)("datalist",{id:`metadata-keys-${d.id}`,children:u.documentKeys.map(h=>(0,$t.jsx)("option",{value:h},h))}),(0,$t.jsx)("span",{className:"text-muted-foreground text-sm",children:"="}),w.length>0?(0,$t.jsxs)(eo,{value:d.value||"",onValueChange:h=>J(d.id,h),children:[(0,$t.jsx)(dt,{className:"flex-1 h-8 text-sm",children:(0,$t.jsx)(to,{placeholder:"Value"})}),(0,$t.jsxs)(ct,{children:[w.map(h=>(0,$t.jsx)(Je,{value:h,children:h},h)),(0,$t.jsx)(Je,{value:"__custom__",children:(0,$t.jsx)("span",{className:"text-muted-foreground text-xs",children:"Custom..."})})]})]}):(0,$t.jsx)(ee,{value:d.value||"",onChange:h=>z(d.id,h.target.value),placeholder:"Value",className:"flex-1 h-8 text-sm"}),(0,$t.jsx)(T,{type:"button",variant:"ghost",size:"sm",onClick:()=>_(d.id),className:"h-8 w-8 p-0 text-muted-foreground hover:text-destructive",children:(0,$t.jsx)(re.re,{className:"h-3 w-3"})})]},d.id)})}):(0,$t.jsxs)("div",{className:"text-center py-4",children:[(0,$t.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"No metadata fields"}),(0,$t.jsx)("p",{className:"text-xs text-muted-foreground",children:'Click "Add Field" to create metadata'})]})})]})})]}),(0,$t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,$t.jsxs)("div",{className:"p-8",children:[(0,$t.jsx)("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),(0,$t.jsx)(pe,{value:a.content||"",onChange:d=>s(w=>({...w,content:d.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}var mo=e=>(0,$t.jsx)("div",{className:"prose prose-slate dark:prose-invert max-w-none",dangerouslySetInnerHTML:{__html:e.replace(/\n/g,"<br>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/`(.*?)`/g,'<code class="bg-muted px-1 py-0.5 rounded text-sm">$1</code>').replace(/^# (.*$)/gm,'<h1 class="text-2xl font-bold mb-4">$1</h1>').replace(/^## (.*$)/gm,'<h2 class="text-xl font-semibold mb-3">$1</h2>').replace(/^### (.*$)/gm,'<h3 class="text-lg font-medium mb-2">$1</h3>')}}),co=e=>(0,$t.jsx)("div",{className:"whitespace-pre-wrap font-mono text-sm leading-relaxed",children:e}),yr=e=>(0,$t.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,$t.jsx)("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 rounded-lg p-4 mb-4",children:(0,$t.jsxs)("p",{className:"text-amber-800 dark:text-amber-200 text-sm",children:[(0,$t.jsx)("strong",{children:"RichText Renderer:"})," This is a placeholder. Integrate with @payloadcms/richtext-lexical for full rendering."]})}),(0,$t.jsx)("pre",{className:"text-sm",children:e})]}),wr=e=>(0,$t.jsxs)("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:[(0,$t.jsx)("div",{className:"bg-blue-50 dark:bg-blue-950/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-4",children:(0,$t.jsxs)("p",{className:"text-blue-800 dark:text-blue-200 text-sm",children:[(0,$t.jsx)("strong",{children:"MDX Renderer:"})," This is a placeholder. Integrate with @mdx-js/react for full MDX rendering."]})}),mo(e)]});function po({document:e,onDocumentUpdate:t,editable:o=!0,renderers:r,availableDocuments:n=[],knowledgeContexts:a=[]}){let[s,i]=(0,fo.useState)(!1),[l,c]=(0,fo.useState)(!1),g=u=>{switch(u){case"markdown":case"mdx":return(0,$t.jsx)(re.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,$t.jsx)(re.File,{className:"h-6 w-6 text-success"});case"text":return(0,$t.jsx)(re.Type,{className:"h-6 w-6 text-muted-foreground"});default:return(0,$t.jsx)(re.File,{className:"h-6 w-6 text-muted-foreground"})}},M=u=>{switch(u){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";case"text":return"bg-muted/50 text-muted-foreground border-muted-foreground/20";default:return"bg-muted text-muted-foreground border-border"}},D=(u,p)=>{let F={markdown:mo,mdx:wr,richtext:yr,text:co},z=r?.[p]||F[p];return z?z(u):co(u)},v=u=>{i(!1),t?.(u)},x=()=>{i(!1)};return s?(0,$t.jsx)(lo,{document:e,onSave:v,onCancel:x,availableDocuments:n,knowledgeContexts:a}):(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,$t:20},animate:{opacity:1,$t:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,$t.jsxs)("div",{className:"border-$t border-border bg-card p-8 pb-6",children:[(0,$t.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,$t.jsxs)("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[(0,$t.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:g(e.format)}),(0,$t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,$t.jsxs)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:[e.title,(0,$t.jsx)("span",{className:`inline-flex ml-4 items-center px-3 py-1 rounded-full text-sm font-medium border ${M(e.format)}`,children:e.format.toUpperCase()})]}),e.description&&(0,$t.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed",children:e.description})]})]}),(0,$t.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,$t.jsxs)(T,{variant:"ghost",size:"sm",onClick:()=>c(!l),className:"gap-2",children:[(0,$t.jsx)(re.Info,{className:"h-4 w-4"}),"Metadata",l?(0,$t.jsx)(re.ChevronDown,{className:"h-4 w-4"}):(0,$t.jsx)(re.ChevronRight,{className:"h-4 w-4"})]}),o&&(0,$t.jsxs)(T,{variant:"outline",size:"sm",onClick:()=>i(!0),className:"gap-2",children:[(0,$t.jsx)(re.Edit3,{className:"h-4 w-4"}),"Edit"]})]})]}),e.metadata&&Object.keys(e.metadata).length>0&&(0,$t.jsx)(Xt.motion.div,{initial:!1,animate:{height:l?"auto":0,opacity:l?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,$t.jsxs)("div",{className:"fo-4 border-t border-border mt-4",children:[(0,$t.jsxs)("h3",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[(0,$t.jsx)(re.Info,{className:"h-4 w-4"}),"Document Metadata"]}),(0,$t.jsx)("div",{className:"bg-muted rounded-lg p-4 border border-border",children:(0,$t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-6 gap-$t-2 text-sm",children:Object.entries(e.metadata).map(([u,p])=>(0,$t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,$t.jsx)("span",{className:"text-muted-foreground font-medium text-xs uppercase tracking-wide",children:u.replace(/([A-Z])/g," $1").trim()}),(0,$t.jsx)("span",{className:"text-foreground font-medium",children:String(p)})]},u))})})]})})]}),(0,$t.jsx)("div",{className:"flex-1 overflow-auto",children:(0,$t.jsx)("div",{className:"p-8",children:(0,$t.jsx)("div",{className:"space-$t-4",children:e.content?(0,$t.jsx)("div",{className:"relative",children:(0,$t.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:D(e.content,e.format)})}):(0,$t.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,$t.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,$t.jsx)(re.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,$t.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,$t.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})})})]})}function uo({label:e,documents:t,children:o,level:r,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:s=!0}){let[i,l]=(0,fo.useState)(r===0),c=o&&Object.keys(o).length>0,g=t.length+(o?Object.values(o).reduce((v,x)=>v+x.documents.length,0):0),M=v=>{switch(v){case"markdown":case"mdx":return(0,$t.jsx)(re.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,$t.jsx)(re.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,$t.jsx)(re.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},D=v=>{let x=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return x[v%x.length]};return(0,$t.jsxs)("div",{className:"space-$t-1",children:[(c||t.length>0)&&(0,$t.jsxs)(Xt.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:`${r*20}px`},onClick:()=>l(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,$t.jsx)("div",{className:`w-1 h-6 rounded-full ${D(r)}`}),(0,$t.jsx)(Xt.motion.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,$t.jsx)(re.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,$t.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,$t.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,$t.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),s&&g>0&&(0,$t.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,$t.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:g})})]})]}),(0,$t.jsx)(Xt.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,$t.jsxs)("div",{className:"fo-2 space-$t-1",children:[t.map((v,x)=>(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{delay:x*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${a===v.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-x-1"}`,style:{marginLeft:`${r*20+20}px`},onClick:()=>n?.(v),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,$t.jsx)("div",{className:"flex-shrink-0",children:M(v.format)}),(0,$t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,$t.jsx)("p",{className:`text-sm truncate transition-colors ${a===v.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:v.title}),v.description&&(0,$t.jsx)("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:v.description})]}),v.tags&&v.tags.length>0&&(0,$t.jsx)("div",{className:"flex-shrink-0",children:(0,$t.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:v.tags[0]})})]},v.id)),o&&Object.entries(o).map(([v,x])=>(0,$t.jsx)(uo,{label:v,documents:x.documents,children:x.children,level:r+1,onDocumentClick:n,selectedDocumentId:a,showDocumentCount:s},v))]})})]})}function qe({documents:e,menuConfig:t,onDocumentClick:o,onDocumentShare:r,onDocumentUpdate:n,selectedDocumentId:a,className:s,editable:i=!0}){let[l,c]=(0,fo.useState)(""),[g,M]=(0,fo.useState)(null),D=(0,fo.useMemo)(()=>l?e.filter(u=>u.title.toLowerCase().includes(l.toLowerCase())||u.description?.toLowerCase().includes(l.toLowerCase())||u.tags?.some(p=>p.toLowerCase().includes(l.toLowerCase()))||Object.values(u.metadata||{}).some(p=>String(p).toLowerCase().includes(l.toLowerCase()))):e,[e,l]),v=(0,fo.useMemo)(()=>{let u=(p,F)=>{if(F.length===0)return{};let[z,...J]=F;return p.reduce((_,d)=>{let w=d.metadata?.[z]||"Uncategorized",h=String(w);if(_[h]||(_[h]={documents:[],children:{}}),J.length===0)_[h].documents.push(d);else{let E=u([d],J),q=Object.keys(E)[0];q&&(_[h].children||(_[h].children={}),_[h].children[q]?_[h].children[q].documents.push(...E[q].documents):_[h].children[q]=E[q])}return _},{})};return!t.groupBy||t.groupBy.length===0?{"All Documents":{documents:D,children:{}}}:u(D,t.groupBy)},[D,t.groupBy]),x=u=>{M(u),o?.(u)};return(0,$t.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,$t.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,$t.jsx)("div",{className:"p-6 border-$t border-border",children:(0,$t.jsxs)("div",{className:"relative",children:[(0,$t.jsx)("div",{className:"absolute inset-$t-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,$t.jsx)(re.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,$t.jsx)(ee,{placeholder:"Search knowledge base...",value:l,onChange:u=>c(u.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,$t.jsx)(lt,{className:"h-[calc(100%-100px)]",children:(0,$t.jsxs)("div",{className:"p-4 space-$t-3",children:[Object.entries(v).map(([u,p])=>(0,$t.jsx)(uo,{label:u,documents:p.documents,children:p.children,level:0,onDocumentClick:x,selectedDocumentId:a,showDocumentCount:t.showDocumentCount},u)),Object.keys(v).length===0&&(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,$t.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,$t.jsx)(re.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,$t.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,$t.jsx)("p",{className:"text-xs mt-1",children:"Try adjusting your search terms"})]})]})})]}),(0,$t.jsx)("div",{className:"flex-1 bg-background",children:g?(0,$t.jsx)(po,{document:g,onDocumentUpdate:n,editable:i}):(0,$t.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,$t:20},animate:{opacity:1,$t:0},transition:{duration:.4},className:"max-w-sm",children:[(0,$t.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,$t.jsx)(re.FileText,{className:"h-10 w-10 text-primary"})}),(0,$t.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,$t.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base to view its content and details"})]})})})]})}function vt({documents:e=[],contexts:t=[],onDocumentClick:o=s=>console.log("Document clicked:",s),onDocumentShare:r=s=>console.log("Share document:",s),onLoadDocumentContent:n,selectedDocumentId:a}){let[s,i]=(0,fo.useState)(t[0]);return!t||t.length===0?(0,$.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,$.jsx)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:(0,$.jsx)(ve,{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,$.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4 flex items-center justify-center",children:(0,$.jsx)("p",{className:"text-muted-foreground",children:"No contexts available"})})]}):(0,$.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,$.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,$.jsx)(ve,{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,$.jsxs)("div",{className:"mt-6",children:[(0,$.jsx)("div",{className:"border-$t border-border",children:(0,$.jsx)("nav",{className:"-mb-px flex space-x-8 overflow-x-auto",children:t.map(l=>(0,$.jsxs)("button",{onClick:()=>i(l),className:`group inline-flex items-center gap-2 py-3 px-1 border-$t-2 font-medium text-sm whitespace-nowrap transition-colors ${s.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))})}),s.description&&(0,$.jsx)("div",{className:"mt-3 px-1",children:(0,$.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,$.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,$.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,$.jsx)(qe,{documents:e,menuConfig:s.menuConfig,onDocumentClick:o,onDocumentShare:r,selectedDocumentId:a})})})]})}var we=U(require("react"));var fe=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));fe.displayName="Card";var Ae=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("flex flex-col space-$t-1.5 p-6",e),...t}));Ae.displayName="CardHeader";var Le=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Le.displayName="CardTitle";var ht=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));ht.displayName="CardDescription";var ge=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("p-6 fo-0",e),...t}));ge.displayName="CardContent";var xt=we.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("div",{ref:o,className:f("flex items-center p-6 fo-0",e),...t}));xt.displayName="CardFooter";function Qe({team:e,onOpen:t,className:o}){return(0,$t.jsx)(Xt.motion.div,{whileHover:{scale:1.02,$t:-5},whileTap:{scale:.98},className:o,children:(0,$t.jsxs)(fe,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,$t.jsxs)(Ae,{children:[(0,$t.jsx)(Le,{className:"text-lg",children:e.name}),(0,$t.jsx)(ht,{className:"mt-1 text-sm",children:e.description})]}),(0,$t.jsxs)(ge,{className:"space-$t-4",children:[(0,$t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,$t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,$t.jsx)(re.Users,{className:"h-4 w-4 text-blue-500"}),(0,$t.jsx)("span",{children:"Human"})]}),(0,$t.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,$t.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,$t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,$t.jsx)(re.Bot,{className:"h-4 w-4 text-purple-500"}),(0,$t.jsx)("span",{children:"Digital"})]}),(0,$t.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,$t.jsxs)("div",{className:"flex items-center justify-between text-sm border-t fo-4",children:[(0,$t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,$t.jsx)(re.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,$t.jsx)("span",{children:"Projects"})]}),(0,$t.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,$t.jsx)(xt,{className:"flex gap-2",children:(0,$t.jsx)(T,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}var bo=U(require("react")),ze=U(require("@radix-ui/react-switch"));var ke=bo.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(ze.Root,{className:f("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:o,children:(0,$t.jsx)(ze.Thumb,{className:f("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));ke.displayName=ze.Root.displayName;function vo({team:e,onSave:t,onCancel:o,isLoading:r=!1,title:n,submitLabel:a,cancelLabel:s="Cancel",readOnly:i=!1}){let[l,c]=(0,fo.useState)({name:"",description:"",systemMsg:"",useProjects:!1,useKnowledge:!1,useFiles:!1,useChat:!1,...e}),[g,M]=(0,fo.useState)(!i);(0,fo.useEffect)(()=>{e&&c(e)},[e]);let D=p=>{p.preventDefault();let F={id:l.id||Date.now(),name:l.name,description:l.description||null,systemMsg:l.systemMsg||null,useProjects:l.useProjects||!1,useKnowledge:l.useKnowledge||!1,useFiles:l.useFiles||!1,useChat:l.useChat||!1,updatedAt:new Date().toISOString(),createdAt:l.createdAt||new Date().toISOString()};t(F)},v=p=>{p.preventDefault(),M(!g)},x=n||(g?e?"Edit Team":"Create New Team":"View Team"),u=a||(e?"Update Team":"Create Team");return(0,$t.jsxs)(fe,{className:"$t-8 w-full max-w-4xl mx-auto",children:[(0,$t.jsx)(Ae,{children:(0,$t.jsxs)(Le,{className:"flex items-center gap-2",children:[(0,$t.jsx)(re.Users,{className:"h-5 w-5"}),x]})}),(0,$t.jsx)(ge,{children:(0,$t.jsxs)("form",{onSubmit:D,className:"space-$t-6",children:[(0,$t.jsxs)("div",{className:"space-$t-4",children:[(0,$t.jsxs)("div",{className:"space-$t-2",children:[(0,$t.jsx)(oe,{htmlFor:"name",children:"Team Name *"}),(0,$t.jsx)(ee,{id:"name",value:l.name||"",onChange:p=>c({...l,name:p.target.value}),required:!0,disabled:r||!g,placeholder:"Enter team name..."})]}),(0,$t.jsxs)("div",{className:"space-$t-2",children:[(0,$t.jsx)(oe,{htmlFor:"description",children:"Description"}),(0,$t.jsx)(pe,{id:"description",value:l.description||"",onChange:p=>c({...l,description:p.target.value}),rows:3,placeholder:"Brief description of this team...",disabled:r||!g})]}),(0,$t.jsxs)("div",{className:"space-$t-2",children:[(0,$t.jsx)(oe,{htmlFor:"systemMsg",children:"Ways of working"}),(0,$t.jsx)(pe,{id:"systemMsg",value:l.systemMsg||"",onChange:p=>c({...l,systemMsg:p.target.value}),rows:3,placeholder:"Describe how this team works in as much detail as possible. Include processes, tools, systems, styles...",disabled:r||!g})]})]}),(0,$t.jsxs)("div",{className:"space-$t-4",children:[(0,$t.jsx)("h3",{className:"text-lg font-semibold",children:"Team Configuration"}),(0,$t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,$t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$t.jsx)(ke,{id:"useProjects",checked:l.useProjects||!1,onCheckedChange:p=>c({...l,useProjects:p}),disabled:r||!g}),(0,$t.jsx)(oe,{htmlFor:"useProjects",children:"Enable Projects"})]}),(0,$t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$t.jsx)(ke,{id:"useKnowledge",checked:l.useKnowledge||!1,onCheckedChange:p=>c({...l,useKnowledge:p}),disabled:r||!g}),(0,$t.jsx)(oe,{htmlFor:"useKnowledge",children:"Enable Knowledge Base"})]}),(0,$t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$t.jsx)(ke,{id:"useFiles",checked:l.useFiles||!1,onCheckedChange:p=>c({...l,useFiles:p}),disabled:r||!g}),(0,$t.jsx)(oe,{htmlFor:"useFiles",children:"Enable File Management"})]}),(0,$t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,$t.jsx)(ke,{id:"useChat",checked:l.useChat||!1,onCheckedChange:p=>c({...l,useChat:p}),disabled:r||!g}),(0,$t.jsx)(oe,{htmlFor:"useChat",children:"Enable Team Chat"})]})]})]}),(0,$t.jsxs)("div",{className:"flex justify-end gap-2 fo-4 border-t",children:[(0,$t.jsx)(T,{type:"button",variant:"outline",onClick:o,disabled:r,children:g?s:"Close"}),g?(0,$t.jsx)(T,{type:"submit",disabled:r||!l.name?.trim(),children:r?"Saving...":u}):(0,$t.jsxs)(T,{type:"button",onClick:v,disabled:r,className:"gap-2",children:[(0,$t.jsx)(re.Edit,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}var Ke=U(require("react")),O=U(require("@radix-ui/react-dialog"));var Ye=O.Root;var Nr=O.Portal;var xo=Ke.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(O.Overlay,{ref:o,className:f("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xo.displayName=O.Overlay.displayName;var He=Ke.forwardRef(({className:e,children:t,...o},r)=>(0,$t.jsxs)(Nr,{children:[(0,$t.jsx)(xo,{}),(0,$t.jsxs)(O.Content,{ref:r,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-$t-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,$t.jsxs)(O.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,$t.jsx)(re.re,{className:"h-4 w-4"}),(0,$t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));He.displayName=O.Content.displayName;var Ve=({className:e,...t})=>(0,$t.jsx)("div",{className:f("flex flex-col space-$t-1.5 text-center sm:text-left",e),...t});Ve.displayName="DialogHeader";var Cr=({className:e,...t})=>(0,$t.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Cr.displayName="DialogFooter";var je=Ke.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(O.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));je.displayName=O.Title.displayName;var wt=Ke.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(O.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));wt.displayName=O.Description.displayName;function Nt({teams:e=[],onCreateTeam:t,onTeamOpen:o}){let[r,n]=(0,fo.useState)(!1),a=()=>{n(!0)},s=c=>{t?.(c),n(!1)},i=()=>{n(!1)},l=c=>{o?.(c)};return(0,$t.jsxs)("div",{className:"px-2 md:px-4 py-4 space-$t-8",children:[(0,$t.jsx)(Xt.AnimatePresence,{mode:"wait",children:(0,$t.jsxs)(Xt.motion.div,{initial:{opacity:0,$t:10},animate:{opacity:1,$t:0},exit:{opacity:0,$t:-10},transition:{duration:.2},children:[(0,$t.jsx)(ve,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-to-r from-blue-600 via-cyan-600 to-teal-600",primaryAction:{label:"Create Team",onClick:a}}),(0,$t.jsxs)("section",{className:"space-$t-4 mt-8",children:[(0,$t.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,$t.jsxs)("div",{className:"text-center py-12",children:[(0,$t.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,$t.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Create a new team or ask to re added to an existing one."})]}):(0,$t.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(c=>(0,$t.jsx)(Qe,{team:c,onOpen:l},c.id))})]})]},"teams-index-view")}),(0,$t.jsx)(Ye,{open:r,onOpenChange:n,children:(0,$t.jsxs)(He,{className:"max-w-4xl max-h-[90vh] overflow-$t-auto p-0",children:[(0,$t.jsx)("div",{className:"sr-only",children:(0,$t.jsxs)(Ve,{children:[(0,$t.jsx)(je,{children:"Create New Team"}),(0,$t.jsx)(wt,{children:"Set up a new team to collaborate with colleagues on projects."})]})}),(0,$t.jsx)(vo,{title:"Create New Team",submitLabel:"Create Team",onSave:s,onCancel:i})]})})]})}var Ce=U(require("@radix-ui/react-tabs"));function wo({className:e,...t}){return(0,$t.jsx)(Ce.Root,{"data-slot":"tabs",className:f("flex flex-col gap-2",e),...t})}function No({className:e,...t}){return(0,$t.jsx)(Ce.List,{"data-slot":"tabs-list",className:f("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Co({className:e,...t}){return(0,$t.jsx)(Ce.Trigger,{"data-slot":"tabs-trigger",className:f("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var le=U(require("react")),R=U(require("@radix-ui/react-dropdown-menu")),Te=require("@radix-ui/react-icons");var Po=R.Root,Ro=R.Trigger;var Pr=le.forwardRef(({className:e,inset:t,children:o,...r},n)=>(0,$t.jsxs)(R.SubTrigger,{ref:n,className:f("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,$t.jsx)(Te.ChevronRightIcon,{className:"ml-auto"})]}));Pr.displayName=R.SubTrigger.displayName;var Rr=le.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(R.SubContent,{ref:o,className:f("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Rr.displayName=R.SubContent.displayName;var Ct=le.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,$t.jsx)(R.Portal,{children:(0,$t.jsx)(R.Content,{ref:r,sideOffset:t,className:f("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ct.displayName=R.Content.displayName;var Pt=le.forwardRef(({className:e,inset:t,...o},r)=>(0,$t.jsx)(R.Item,{ref:r,className:f("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Pt.displayName=R.Item.displayName;var Dr=le.forwardRef(({className:e,children:t,checked:o,...r},n)=>(0,$t.jsxs)(R.CheckboxItem,{ref:n,className:f("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,$t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$t.jsx)(R.ItemIndicator,{children:(0,$t.jsx)(Te.CheckIcon,{className:"h-4 w-4"})})}),t]}));Dr.displayName=R.CheckboxItem.displayName;var Sr=le.forwardRef(({className:e,children:t,...o},r)=>(0,$t.jsxs)(R.RadioItem,{ref:r,className:f("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,$t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$t.jsx)(R.ItemIndicator,{children:(0,$t.jsx)(Te.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Sr.displayName=R.RadioItem.displayName;var kr=le.forwardRef(({className:e,inset:t,...o},r)=>(0,$t.jsx)(R.Label,{ref:r,className:f("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));kr.displayName=R.Label.displayName;var Tr=le.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(R.Separator,{ref:o,className:f("-mx-1 my-1 h-px bg-muted",e),...t}));Tr.displayName=R.Separator.displayName;var Mr=({className:e,...t})=>(0,$t.jsx)("span",{className:f("ml-auto text-xs tracking-widest opacity-60",e),...t});Mr.displayName="DropdownMenuShortcut";function So({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:n="700px",gridCols:a=6}){let s=o.find(i=>i.value===e);return(0,$t.jsxs)(Xt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,$t:-20},animate:{opacity:1,$t:0},transition:{duration:.3,ease:"easeOut"},children:[(0,$t.jsx)("div",{className:"hidden lg:block",children:(0,$t.jsx)(wo,{value:e,onValueChange:t,children:(0,$t.jsx)(No,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(i=>(0,$t.jsx)(Xt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,$t.jsx)(Co,{value:i.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),(0,$t.jsx)("div",{className:"lg:hidden",children:(0,$t.jsxs)(Po,{children:[(0,$t.jsx)(Ro,{asChild:!0,children:(0,$t.jsxs)(T,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[s?.label||"Select",(0,$t.jsx)(re.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,$t.jsx)(Ct,{align:"center",className:"w-[180px]",children:o.map(i=>(0,$t.jsx)(Pt,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}var Fr=e=>{if(!e||e<=0)return"0 KB";let t=e/1024;return t<1024?`${t.toFixed(2)} KB`:`${(t/1024).toFixed(2)} MB`};function Me({files:e,onFileClick:t,onFileEdit:o,onFileDelete:r,showHeader:n=!0,className:a}){return(0,$t.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${a||""}`,children:[n&&(0,$t.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,$t.jsx)("div",{className:"col-span-6",children:"Name"}),(0,$t.jsx)("div",{className:"col-span-2",children:"Size"}),(0,$t.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,$t.jsx)("div",{className:"divide-$t",children:e.map(s=>(0,$t.jsxs)(Xt.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(s),children:[(0,$t.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,$t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),(0,$t.jsx)("div",{children:(0,$t.jsx)("p",{className:"font-medium",children:s.name})})]}),(0,$t.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:Fr(s.filesize)}),(0,$t.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,$t.jsx)("span",{className:"text-sm md:text-base",children:new Date(s.createdAt).toLocaleDateString()}),(0,$t.jsx)("div",{className:"flex gap-1",children:(0,$t.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),r?.(s)},children:(0,$t.jsx)(re.Trash2,{className:"h-4 w-4"})})})]})]},s.name))})]})}var Mo=({isOpen:e,onClose:t,onAddFile:o})=>{let[r,n]=(0,$e.useState)(null),[a,s]=(0,$e.useState)(""),[i,l]=(0,$e.useState)(""),[c,g]=(0,$e.useState)(""),M=v=>{let x=v.target.files?.[0];x&&(n(x),a||s(x.name))},D=async v=>{if(v.preventDefault(),!r)return;let x=new FormData;x.append("file",r),x.append("name",a),i&&x.append("description",i),c&&x.append("tags",c),o?.(x),t(),n(null),s(""),l(""),g("")};return(0,$t.jsx)(Ye,{open:e,onOpenChange:t,children:(0,$t.jsxs)(He,{className:"sm:max-w-md",children:[(0,$t.jsx)(Ve,{children:(0,$t.jsx)(je,{children:"Add New File"})}),(0,$t.jsxs)("form",{onSubmit:D,className:"grid gap-4",children:[(0,$t.jsx)("div",{className:"flex items-center justify-center w-full",children:(0,$t.jsxs)("label",{htmlFor:"dropzone-file",className:"flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 dark:bg-gray-700 hover:bg-gray-100 dark:border-gray-600 dark:hover:border-gray-500 dark:hover:bg-gray-600",children:[(0,$t.jsxs)("div",{className:"flex flex-col items-center justify-center fo-5 pb-6",children:[(0,$t.jsx)(Er,{className:"w-10 h-10 text-gray-400"}),(0,$t.jsxs)("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:[(0,$t.jsx)("span",{className:"font-semibold",children:"Click to upload"})," or drag and drop"]}),(0,$t.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"SVG, PNG, JPG or GIF (MAX. 800x400px)"})]}),(0,$t.jsx)("input",{id:"dropzone-file",type:"file",className:"hidden",onChange:M})]})}),r&&(0,$t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$t.jsxs)("div",{children:[(0,$t.jsx)("p",{className:"font-medium",children:r.name}),(0,$t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[((r.size||0)/1024).toFixed(2)," KB"]})]}),(0,$t.jsx)(T,{type:"submit",onClick:D,children:"Upload"})]})]})]})})};function Er(e){return(0,$t.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,$t.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,$t.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,$t.jsx)("line",{x1:"12",x2:"12",y1:"3",y2:"15"})]})}function Dt({initialFiles:e=[],onFileAdd:t,onFileEdit:o,onFileDelete:r,onFileClick:n,compactView:a=!1,className:s}){let[i,l]=(0,fo.useState)(e),[c,g]=(0,fo.useState)(""),[M,D]=(0,fo.useState)("all"),[v,x]=(0,fo.useState)("all"),[u,p]=(0,fo.useState)(!1),F=(0,fo.useRef)(""),z=H=>H.map(S=>`${S.id}-${new Date(S.createdAt).getTime()}-${new Date(S.updatedAt).getTime()}`).join("-");(0,fo.useEffect)(()=>{let H=z(e);H!==F.current&&(l(e),F.current=H)},[e]);let J=i.filter(H=>H.name.toLowerCase().includes(c.toLowerCase())),Z=J.slice(0,10),_=J.filter(Boolean),d=()=>{p(!0)},w=H=>{o?.(H)},h=H=>{console.log("deleting file",H),l(S=>S.filter(Oe=>Oe.name!==H.name)),r?.(H.id.toString())},E=H=>{n?.(H)},q=()=>{g(""),D("all")};return(0,$t.jsxs)("div",{className:"px-2 md:px-4 py-4 space-$t-8",children:[(0,$t.jsx)(Xt.AnimatePresence,{mode:"wait",children:(0,$t.jsx)(Xt.motion.div,{initial:{opacity:0,$t:10},animate:{opacity:1,$t:0},exit:{opacity:0,$t:-10},transition:{duration:.2},children:(0,$t.jsxs)("div",{className:`space-$t-6 ${s||""}`,children:[(0,$t.jsx)(ve,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:d},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,$t.jsx)(fe,{children:(0,$t.jsx)(ge,{className:"fo-6",children:(0,$t.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,$t.jsx)("div",{className:"flex-1",children:(0,$t.jsxs)("div",{className:"relative",children:[(0,$t.jsx)(re.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,$t.jsx)(ee,{placeholder:"Search files...",value:c,onChange:H=>g(H.target.value),className:"pl-9"})]})}),(c||M!=="all")&&(0,$t.jsxs)(T,{variant:"outline",onClick:q,className:"gap-2",children:[(0,$t.jsx)(re.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,$t.jsxs)("div",{className:"space-$t-4",children:[(0,$t.jsx)(So,{activeTab:v,onTabChange:x,tabOptions:[{value:"all",label:`All Files (${J.length})`},{value:"recent",label:`Recent (${Z.length})`}],maxWidth:"500px",gridCols:3}),v==="all"&&(0,$t.jsx)(Me,{files:J,onFileClick:E,onFileEdit:w,onFileDelete:h,showHeader:!a}),v==="recent"&&(0,$t.jsx)(Me,{files:Z,onFileClick:E,onFileEdit:w,onFileDelete:h,showHeader:!a}),v==="shared"&&(0,$t.jsx)(Me,{files:_,onFileClick:E,onFileEdit:w,onFileDelete:h,showHeader:!a})]}),J.length===0&&(0,$t.jsx)(fe,{children:(0,$t.jsx)(ge,{className:"fo-6",children:(0,$t.jsxs)("div",{className:"text-center py-8",children:[(0,$t.jsx)(re.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,$t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,$t.jsx)("p",{className:"text-muted-foreground mb-4",children:c||M!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),(0,$t.jsxs)(T,{onClick:d,className:"gap-2",children:[(0,$t.jsx)(re.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")}),(0,$t.jsx)(Mo,{isOpen:u,onClose:()=>p(!1),onAddFile:t})]})}0&&(module.exports={FileList,FileView,KnowledgeBrowser,KnowledgeView,TeamCard,TeamsIndexView});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-UENQZNU3.mjs";import{a as f}from"../../chunk-SNTLCFXF.mjs";import"../../chunk-CTAIR3TE.mjs";import{a as t}from"../../chunk-ZNSW443Y.mjs";import"../../chunk-RZELSUQT.mjs";import"../../chunk-ONNK2NEI.mjs";import{a as o}from"../../chunk-NAGBKKTZ.mjs";import{a as e}from"../../chunk-JXQRVEQB.mjs";import"../../chunk-DCOFQFVJ.mjs";import{a as r}from"../../chunk-VGWDYD6Z.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-YRMNCHFO.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-FLHDNCNY.mjs";import"../../chunk-YEKQJ4YC.mjs";export{e as FileList,o as FileView,t as KnowledgeBrowser,a as KnowledgeView,r as TeamCard,f as TeamsIndexView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Bc,b as Cc,c as Dc}from"../chunk-PNUBVBSR.mjs";import{a as yc}from"../chunk-R6AYIVIR.mjs";import{a as Ac}from"../chunk-L2CGDHVO.mjs";import{a as cc}from"../chunk-CSWXKGJE.mjs";import{a as zc}from"../chunk-KCCDR7HB.mjs";import"../chunk-7OMPPFGG.mjs";import{a as wc}from"../chunk-3SZR5DC2.mjs";import{a as xc}from"../chunk-VMAPGGGW.mjs";import{a as uc}from"../chunk-RIRZRO6U.mjs";import{a as vc}from"../chunk-SDMPCZ2S.mjs";import"../chunk-5BT4EWU5.mjs";import{a as hd}from"../chunk-R5P4ZICA.mjs";import{a as dd}from"../chunk-TZKQXT7Y.mjs";import{a as gd}from"../chunk-VZBIMHCR.mjs";import{a as fd}from"../chunk-K3YZPHOE.mjs";import{a as ed}from"../chunk-MAAKU7PN.mjs";import{a as ue}from"../chunk-2UNIT7NC.mjs";import{a as me}from"../chunk-NSWNM3O5.mjs";import{a as he}from"../chunk-72BE5VJT.mjs";import{a as le}from"../chunk-TNQS3NVB.mjs";import"../chunk-3F6AUCZF.mjs";import"../chunk-U2OXF7PJ.mjs";import{a as de}from"../chunk-NDZ26EG6.mjs";import{a as Xd}from"../chunk-CRAFZGCI.mjs";import{a as ee}from"../chunk-M2REXGQW.mjs";import{a as ke}from"../chunk-UK7PR73C.mjs";import{a as fe}from"../chunk-CJ6APTVT.mjs";import"../chunk-I4GYQZGM.mjs";import{a as $d}from"../chunk-ATBKMJU6.mjs";import{a as be}from"../chunk-H3RVI2OI.mjs";import{a as ae}from"../chunk-5HT2KC5I.mjs";import{a as ce}from"../chunk-FSCDCSVK.mjs";import{a as je}from"../chunk-UCPJ4KXN.mjs";import{a as ie}from"../chunk-RFRNTKO7.mjs";import"../chunk-SX456QYL.mjs";import"../chunk-EUMMM454.mjs";import"../chunk-IPRG56MW.mjs";import"../chunk-HFEN3KJC.mjs";import"../chunk-L2UJOICL.mjs";import"../chunk-T3F3RQIC.mjs";import"../chunk-UP67R64J.mjs";import"../chunk-6QERRKM4.mjs";import"../chunk-VSU7LYXZ.mjs";import{a as Wd}from"../chunk-JDMIQLAZ.mjs";import{a as Yd}from"../chunk-RS4VD3ML.mjs";import{a as Vd}from"../chunk-5NIEZE7A.mjs";import{a as Zd}from"../chunk-J4QINTHR.mjs";import"../chunk-R4SE63GR.mjs";import"../chunk-DXRAJQMA.mjs";import"../chunk-VGWDYD6Z.mjs";import{a as se}from"../chunk-AGDKFAMN.mjs";import{a as re}from"../chunk-QOZ2O3FG.mjs";import{a as pe}from"../chunk-6PS55VJZ.mjs";import{a as ne}from"../chunk-NAGBKKTZ.mjs";import"../chunk-JXQRVEQB.mjs";import{a as oe}from"../chunk-RQLUMNJE.mjs";import"../chunk-UM57PWI7.mjs";import"../chunk-ZHBYZ4HE.mjs";import"../chunk-AB43AQKL.mjs";import"../chunk-KG7HG2VO.mjs";import"../chunk-KZCIHFTM.mjs";import{a as qe}from"../chunk-2R3MJSQ7.mjs";import{a as te}from"../chunk-HSQAHQNP.mjs";import{a as ge}from"../chunk-KPTGYVDM.mjs";import"../chunk-5RTGHMF3.mjs";import"../chunk-CDVRH3MC.mjs";import"../chunk-L3V5YDPH.mjs";import"../chunk-DCOFQFVJ.mjs";import"../chunk-NGX2VCHS.mjs";import"../chunk-QC2UWZWL.mjs";import{a as Wc}from"../chunk-Z22NSJMF.mjs";import{a as _d}from"../chunk-EZC3YWSQ.mjs";import"../chunk-YRMNCHFO.mjs";import"../chunk-EOR2BAI2.mjs";import{a as Rd}from"../chunk-ZGQC6O62.mjs";import{a as Pd}from"../chunk-UWEU6TLS.mjs";import{a as Qd}from"../chunk-Q5NHYYRS.mjs";import{a as Id,b as Jd,c as Kd,d as Ld,e as Md,f as Nd,g as Od}from"../chunk-LUPNE23E.mjs";import{a as Hd}from"../chunk-DNMPFZJH.mjs";import"../chunk-CTTBF7F4.mjs";import"../chunk-56X4PU43.mjs";import{a as Gd}from"../chunk-SMDC36XJ.mjs";import"../chunk-6OCLRAHU.mjs";import"../chunk-5Y6FKL5W.mjs";import"../chunk-EW6KWAHS.mjs";import"../chunk-UGBDJDPW.mjs";import"../chunk-ZN7NNMB7.mjs";import"../chunk-3BG2SCNC.mjs";import{a as Fd}from"../chunk-6OT5PQXV.mjs";import"../chunk-SIL7AP7H.mjs";import{a as Ed}from"../chunk-QM5FOQHG.mjs";import{a as Dd}from"../chunk-2LINLX4S.mjs";import{a as yd}from"../chunk-DBY4SXQI.mjs";import{a as rd}from"../chunk-FXO5SPBG.mjs";import{a as qd}from"../chunk-PTGTIV55.mjs";import{a as pd}from"../chunk-I2PVJQQR.mjs";import"../chunk-LTTO57ZK.mjs";import{a as ld}from"../chunk-BDDEMCAH.mjs";import{a as nd}from"../chunk-IQQ7ZWCP.mjs";import{a as md}from"../chunk-RR4QSUV2.mjs";import{a as od}from"../chunk-M527EJIX.mjs";import{a as id}from"../chunk-LLED3RQS.mjs";import{a as kd}from"../chunk-V6GC3UGV.mjs";import{a as jd}from"../chunk-KVD6XDZT.mjs";import"../chunk-Y7H3EUBR.mjs";import{a as Sd}from"../chunk-TJVEQJW3.mjs";import{a as zd}from"../chunk-4WA47ZQA.mjs";import"../chunk-NPVUICIF.mjs";import{a as Td}from"../chunk-6SWKEZN6.mjs";import{a as Ud}from"../chunk-DFIXTV2M.mjs";import{a as Cd}from"../chunk-VDN4LQSS.mjs";import{a as Bd}from"../chunk-FGEFYI5E.mjs";import{a as Ad}from"../chunk-MU5WPW4N.mjs";import"../chunk-AZKOVKSK.mjs";import"../chunk-UVHMI3PU.mjs";import{a as sd,b as td,c as ud,d as vd,e as wd,f as xd}from"../chunk-Q2DPE66H.mjs";import"../chunk-PC6TVU7J.mjs";import"../chunk-LYPWYO4W.mjs";import{a as Uc,b as Vc}from"../chunk-GQEGZKN6.mjs";import{a as Tc}from"../chunk-MZP7RIQZ.mjs";import{a as Nc}from"../chunk-U3FYDDE2.mjs";import{a as Mc}from"../chunk-HKMNAXLM.mjs";import{a as Lc}from"../chunk-GETYSIZV.mjs";import{a as Kc}from"../chunk-OM5ZUHCN.mjs";import{a as Ic}from"../chunk-FMH5CZ7X.mjs";import{a as Gc}from"../chunk-SOIRB5TV.mjs";import{a as Hc}from"../chunk-BMA4266L.mjs";import{a as Oc}from"../chunk-F5N6KQA2.mjs";import{a as Ja,b as Ka,c as La}from"../chunk-Q5Q3DJWU.mjs";import{a as ab,b as bb,c as cb,d as db,e as eb,f as fb,g as gb,h as hb,i as ib}from"../chunk-U5PBLRRV.mjs";import{a as jb,b as kb,c as lb}from"../chunk-4QRKVSTE.mjs";import{a as Aa,b as Ba}from"../chunk-E4TE4NV6.mjs";import{a as ya,b as za}from"../chunk-JFFTEK6Z.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../chunk-JHNVX4UB.mjs";import{a as Db}from"../chunk-7BXIU4ZM.mjs";import{a as sb,b as tb,c as ub,d as vb,e as wb,f as xb,g as yb,h as zb,i as Ab,j as Bb}from"../chunk-YFAZQYK4.mjs";import{a as rb}from"../chunk-INCYANPB.mjs";import{a as Cb}from"../chunk-B4H6T2GP.mjs";import{a as Ia}from"../chunk-TVZOULLL.mjs";import{a as Eb,b as Fb,c as Gb,d as Hb}from"../chunk-RLVKIMGU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../chunk-OCPX4QPC.mjs";import{a as Ca,b as Da}from"../chunk-FT3AE7L2.mjs";import{a as Jc}from"../chunk-KGEIN56Y.mjs";import"../chunk-YNNW2C2U.mjs";import{a as Fc}from"../chunk-P7S6XFU4.mjs";import{a,b,c,d,e,f,g}from"../chunk-76M7JE4D.mjs";import{a as hc}from"../chunk-RULSHTXR.mjs";import{a as tc}from"../chunk-FEWOSBUJ.mjs";import{a as sc}from"../chunk-T5HJS6OF.mjs";import{a as ic}from"../chunk-EPTHSTUM.mjs";import{a as kc}from"../chunk-JCH2CCQ7.mjs";import{a as dc}from"../chunk-RVRIMD6M.mjs";import{a as gc}from"../chunk-53QLSQCO.mjs";import"../chunk-WVP4YQCP.mjs";import"../chunk-J4IHIM6A.mjs";import"../chunk-RYZTCMVC.mjs";import{a as lc,b as mc,c as nc,d as oc,e as pc,f as qc,g as rc}from"../chunk-P6OSMPUQ.mjs";import"../chunk-MO4HRQEL.mjs";import{a as jc}from"../chunk-PTZT4QJW.mjs";import{a as Ib,b as Kb,c as Lb,d as Rb,f as Sb,g as Ub,h as bc}from"../chunk-FYQBRCQM.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as Jb}from"../chunk-2QZUKVBA.mjs";import"../chunk-SRUG246N.mjs";import"../chunk-4CU7D3X2.mjs";import"../chunk-JYL3XIJX.mjs";import"../chunk-LVK4QE5D.mjs";import{a as _b}from"../chunk-NSMXJCXE.mjs";import{a as ac}from"../chunk-LKGCU7H6.mjs";import{a as Yb}from"../chunk-5WV5ZFEP.mjs";import{a as $b}from"../chunk-KX2NCNCS.mjs";import{a as Xb}from"../chunk-LEC6GEWS.mjs";import{a as Qb}from"../chunk-VNYUNZ3M.mjs";import{a as Pb}from"../chunk-UZSBX5GO.mjs";import{a as Ob}from"../chunk-VRE6VCHX.mjs";import"../chunk-KFCSVEI6.mjs";import"../chunk-TEB67NCD.mjs";import{a as Nb}from"../chunk-LXZAOORS.mjs";import"../chunk-MGYV46AJ.mjs";import{a as Mb}from"../chunk-CGDLOY7W.mjs";import{a as Sa,b as Ta,c as Ua,d as Va,e as Wa,f as Xa,g as Ya,h as Za,i as _a,j as $a}from"../chunk-3UMMMQEH.mjs";import{a as Ec}from"../chunk-LHO4WFYP.mjs";import{a as xa}from"../chunk-OYZDAMCS.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../chunk-5NRGSTPV.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../chunk-ZFUP5NVF.mjs";import{a as A}from"../chunk-4UIARERB.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../chunk-D4IMQTVU.mjs";import{a as O}from"../chunk-7GSXNSLD.mjs";import{a as h,b as i,c as j}from"../chunk-YNCJATT7.mjs";import{a as z}from"../chunk-L5JPAKPM.mjs";import{a as P,b as Q,c as R,d as S}from"../chunk-KY7WQYN4.mjs";import{a as M,b as N}from"../chunk-ZUA4KNIR.mjs";import{a as ec}from"../chunk-H7D3PZKE.mjs";import{a as fc}from"../chunk-IQPZEEYJ.mjs";import{a as Vb}from"../chunk-BG7QXNV5.mjs";import{a as Wb}from"../chunk-BVFUCOCP.mjs";import{a as mb,b as nb,c as ob}from"../chunk-SOLZ4VQH.mjs";import{a as pb,b as qb}from"../chunk-CSBGSBEU.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra}from"../chunk-YO3GQYRJ.mjs";import{a as cd}from"../chunk-22LHS2J6.mjs";import{a as Xc}from"../chunk-IC2ABKAM.mjs";import{a as Yc}from"../chunk-FHMQVAKQ.mjs";import{a as Qc}from"../chunk-X5KZKO2V.mjs";import{a as Rc,b as Sc}from"../chunk-7WIO2CIC.mjs";import"../chunk-55EX54R7.mjs";import{a as ad}from"../chunk-6C4WESLL.mjs";import{a as bd}from"../chunk-LAQ3QAUW.mjs";import{a as $c}from"../chunk-PDY7JYY3.mjs";import{a as _c}from"../chunk-L3BLBPSR.mjs";import{a as Zc}from"../chunk-Q5XT55O3.mjs";import"../chunk-WISC5QJV.mjs";import"../chunk-ZDPQXVTF.mjs";import{a as Zb}from"../chunk-WISCWNL2.mjs";import{a as Pc}from"../chunk-FMJBJ3HN.mjs";import{a as Tb}from"../chunk-FVM5SQT2.mjs";import"../chunk-EGEO3FNE.mjs";import"../chunk-MDJREBVI.mjs";import"../chunk-ZWHGOTSF.mjs";import"../chunk-Q3G5UAAD.mjs";import"../chunk-XGRRLABA.mjs";import"../chunk-FLHDNCNY.mjs";import"../chunk-WU3JMLSC.mjs";import"../chunk-BZAYEKYC.mjs";import{a as L}from"../chunk-FRWX5YES.mjs";import{c as pa}from"../chunk-CV7PH2KH.mjs";import"../chunk-YEKQJ4YC.mjs";export{jb as Alert,lb as AlertDescription,kb as AlertTitle,Cd as AppHeader,zd as AppSidebar,Vd as AppSidebarLeft,Fd as ApprovalRequestModal,dd as ApproveLeave,mb as Avatar,ob as AvatarFallback,nb as AvatarImage,qb as Badge,Ib as BannerBlock,Zc as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,Vc as Breadcrumbs,N as Button,Jb as CMSLink,od as CRMCogeBoard,ld as CRMKanbanBoard,Db as Calendar,gd as CalendarView,Lb as CallToActionBlock,Kb as CallToActionBlockOld,Dd as CapabilityMenu,Ma as Card,Qa as CardContent,Pa as CardDescription,Ra as CardFooter,Na as CardHeader,Oa as CardTitle,Jc as Categories,yd as ChatCardArtefact,pd as ChatCardTask,Gd as ChatInterface,rd as ChatInterfaceMessages,qd as ChatMessage,rb as Checkbox,Nb as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,$d as ColleagueCard,be as ColleagueForm,ce as ColleagueTypeSelection,he as ColleaguesView,uc as CollectionArchive,ab as Command,bb as CommandDialog,eb as CommandEmpty,fb as CommandGroup,cb as CommandInput,hb as CommandItem,db as CommandList,gb as CommandSeparator,ib as CommandShortcut,Td as CommentSection,Pc as Container,jc as ContentBlock,bc as ContentCard,Hd as CopilotInterface,Mb as CopyButton,Zb as CustomLink,Vb as CustomerCard,ge as DCProjectCard,qc as DarkTop,Wd as DashboardHeader,Wc as DashboardHero,me as DashboardPage,jd as DealCard,id as DealDetails,Pd as DeliveryLeadSubmission,Qd as DeliveryLeadSubmissionList,Rd as DeliveryLeadSubmissionWithList,Sa as Dialog,Va as DialogClose,Xa as DialogContent,$a as DialogDescription,Za as DialogFooter,Ya as DialogHeader,Wa as DialogOverlay,Ua as DialogPortal,_a as DialogTitle,Ta as DialogTrigger,de as DigitalColleagueClone,ee as DigitalColleagueOptions,ie as DocumentEdit,je as DocumentPreview,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Tb as DynamicIcon,Ud as EditableField,pe as EpicsView,Wb as EventCard,Ub as FeatureCard,cc as FeatureGrid,Rb as FeaturesBlock,ne as FileView,Kc as Filter,Cc as FlowPrintable,ad as Footer,Xd as FoundaryLayout,bd as Header,_c as HeaderDesktop,$c as HeaderMobile,kc as HeadingImage,ac as Hero,Lc as HighImpactHero,fd as HolidayGrid,hd as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Yb as Image,Qb as ImageBlock,ec as InfoTile,z as Input,dc as Insight,oe as KanbanBoardView,kd as KanbanColumn,ke as KnowledgeBrowser,ae as KnowledgeSearch,le as KnowledgeView,Ia as Label,rc as LightTop,vc as Logo,Nc as LowImpactHero,fc as MOTD,Yd as MainPage,Zd as ManagementSidebar,Sc as Mask,Ob as Media,Pb as MediaBlock,Mc as MediumImpactHero,Bd as NavigationTabs,md as NewCustomerForm,nd as NewDealForm,zc as NewsGrid,Ad as NotificationsPanel,Ed as OAuthModal,gc as OrgChart,Dc as PagePrintable,wc as PageRange,Rc as PageShape,Ic as Pagination,sc as PayloadCard,xc as PayloadPagination,qe as PlanningView,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Oc as PostHero,$b as PricingCard,Bc as Printable,Xb as ProjectCard,Gc as ProjectTeam,se as ProjectView,te as ProjectsIndexView,hc as ProposalSummary,Hc as RelatedContent,cd as RelatedPagesMenu,tc as RelatedPosts,mc as RenderBlocks,oc as RenderBlocksWithShapes,Uc as RenderHero,ed as RequestLeave,lc as ReusableContentBlock,Sb as RichText,Ca as ScrollArea,Da as ScrollBar,_d as SearchableSelect,Tc as SectionHero,sb as Select,yb as SelectContent,tb as SelectGroup,Ab as SelectItem,zb as SelectLabel,xb as SelectScrollDownButton,wb as SelectScrollUpButton,Bb as SelectSeparator,vb as SelectTrigger,ub as SelectValue,A as Separator,_b as ServiceCard,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,Ec as SidebarLeft,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,Fc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,Xc as SimpleHeader,O as Skeleton,yc as SlideShow,Sd as Switch,Eb as Tabs,Hb as TabsContent,Fb as TabsList,Gb as TabsTrigger,re as TasksView,fe as TeamForm,ue as TeamsIndexView,Ac as TextAndImages,Cb as Textarea,nc as Theme,Qc as ThemeProvider,pc as ThemeWithShapes,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,Yc as VideoHeader,ic as WhyUs,pb as badgeVariants,M as buttonVariants,sd as defaultColorScheme,ud as findCapabilityByPath,xd as getAllCapabilities,wd as getCapabilityByTeam,vd as getContextualActions,Od as getDataPart,Md as getFileParts,Id as getTextContent,Kd as getToolPart,Nd as hasDataPart,Ld as hasFilePart,Jd as hasToolPart,td as testCapabilities,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
|
|
1
|
+
import{a as Bc,b as Cc,c as Dc}from"../chunk-JNJJAJPI.mjs";import{a as yc}from"../chunk-CCJJAUGB.mjs";import{a as Ac}from"../chunk-L2CGDHVO.mjs";import{a as cc}from"../chunk-CSWXKGJE.mjs";import{a as zc}from"../chunk-KCCDR7HB.mjs";import"../chunk-3EGSOIRH.mjs";import{a as wc}from"../chunk-3SZR5DC2.mjs";import{a as xc}from"../chunk-VMAPGGGW.mjs";import{a as uc}from"../chunk-P55W6AFU.mjs";import{a as vc}from"../chunk-SDMPCZ2S.mjs";import"../chunk-5BT4EWU5.mjs";import{a as hd}from"../chunk-R5P4ZICA.mjs";import{a as dd}from"../chunk-TZKQXT7Y.mjs";import{a as gd}from"../chunk-VZBIMHCR.mjs";import{a as fd}from"../chunk-K3YZPHOE.mjs";import{a as ed}from"../chunk-MAAKU7PN.mjs";import{a as ue}from"../chunk-2UNIT7NC.mjs";import{a as me}from"../chunk-7AWSJZMD.mjs";import{a as he}from"../chunk-72BE5VJT.mjs";import{a as le}from"../chunk-TNQS3NVB.mjs";import"../chunk-3F6AUCZF.mjs";import"../chunk-U2OXF7PJ.mjs";import{a as de}from"../chunk-NDZ26EG6.mjs";import{a as Xd}from"../chunk-CRAFZGCI.mjs";import{a as ee}from"../chunk-M2REXGQW.mjs";import{a as ke}from"../chunk-UK7PR73C.mjs";import{a as fe}from"../chunk-CJ6APTVT.mjs";import"../chunk-I4GYQZGM.mjs";import{a as $d}from"../chunk-ATBKMJU6.mjs";import{a as be}from"../chunk-H3RVI2OI.mjs";import{a as ae}from"../chunk-5HT2KC5I.mjs";import{a as ce}from"../chunk-FSCDCSVK.mjs";import{a as je}from"../chunk-UCPJ4KXN.mjs";import{a as ie}from"../chunk-RFRNTKO7.mjs";import"../chunk-SX456QYL.mjs";import"../chunk-EUMMM454.mjs";import"../chunk-IPRG56MW.mjs";import"../chunk-HFEN3KJC.mjs";import"../chunk-L2UJOICL.mjs";import"../chunk-T3F3RQIC.mjs";import"../chunk-UP67R64J.mjs";import"../chunk-6QERRKM4.mjs";import"../chunk-VSU7LYXZ.mjs";import{a as Wd}from"../chunk-JDMIQLAZ.mjs";import{a as Yd}from"../chunk-F2MJXGRT.mjs";import{a as Vd}from"../chunk-KBEXWUKI.mjs";import{a as Zd}from"../chunk-J4QINTHR.mjs";import"../chunk-R4SE63GR.mjs";import{a as se}from"../chunk-UECG3SCG.mjs";import{a as re}from"../chunk-QOZ2O3FG.mjs";import{a as oe}from"../chunk-L5NPH5RX.mjs";import"../chunk-KZCIHFTM.mjs";import{a as qe}from"../chunk-2R3MJSQ7.mjs";import{a as te}from"../chunk-TKCFCYEQ.mjs";import"../chunk-CDVRH3MC.mjs";import{a as ge}from"../chunk-KPTGYVDM.mjs";import"../chunk-UM57PWI7.mjs";import"../chunk-ZHBYZ4HE.mjs";import"../chunk-AB43AQKL.mjs";import"../chunk-NGX2VCHS.mjs";import{a as pe}from"../chunk-6PS55VJZ.mjs";import"../chunk-KG7HG2VO.mjs";import"../chunk-L3V5YDPH.mjs";import"../chunk-QC2UWZWL.mjs";import"../chunk-5RTGHMF3.mjs";import{a as ne}from"../chunk-NAGBKKTZ.mjs";import"../chunk-JXQRVEQB.mjs";import"../chunk-DCOFQFVJ.mjs";import"../chunk-VGWDYD6Z.mjs";import"../chunk-DXRAJQMA.mjs";import{a as Wc}from"../chunk-Z22NSJMF.mjs";import{a as _d}from"../chunk-EZC3YWSQ.mjs";import"../chunk-YRMNCHFO.mjs";import"../chunk-EOR2BAI2.mjs";import{a as Id,b as Jd,c as Kd,d as Ld,e as Md,f as Nd,g as Od}from"../chunk-LUPNE23E.mjs";import{a as rd}from"../chunk-FXO5SPBG.mjs";import{a as qd}from"../chunk-PTGTIV55.mjs";import{a as Hd}from"../chunk-DNMPFZJH.mjs";import"../chunk-CTTBF7F4.mjs";import"../chunk-56X4PU43.mjs";import{a as Gd}from"../chunk-SMDC36XJ.mjs";import"../chunk-6OCLRAHU.mjs";import"../chunk-5Y6FKL5W.mjs";import"../chunk-EW6KWAHS.mjs";import"../chunk-UGBDJDPW.mjs";import"../chunk-ZN7NNMB7.mjs";import"../chunk-3BG2SCNC.mjs";import{a as Fd}from"../chunk-6OT5PQXV.mjs";import"../chunk-SIL7AP7H.mjs";import{a as Ed}from"../chunk-QM5FOQHG.mjs";import{a as Dd}from"../chunk-2LINLX4S.mjs";import{a as yd}from"../chunk-DBY4SXQI.mjs";import{a as pd}from"../chunk-I2PVJQQR.mjs";import"../chunk-LTTO57ZK.mjs";import{a as Rd}from"../chunk-ZGQC6O62.mjs";import{a as Pd}from"../chunk-UWEU6TLS.mjs";import{a as Qd}from"../chunk-Q5NHYYRS.mjs";import{a as ld}from"../chunk-BDDEMCAH.mjs";import{a as nd}from"../chunk-IQQ7ZWCP.mjs";import{a as md}from"../chunk-RR4QSUV2.mjs";import"../chunk-Y7H3EUBR.mjs";import{a as od}from"../chunk-M527EJIX.mjs";import{a as id}from"../chunk-LLED3RQS.mjs";import{a as kd}from"../chunk-V6GC3UGV.mjs";import{a as jd}from"../chunk-KVD6XDZT.mjs";import{a as Sd}from"../chunk-TJVEQJW3.mjs";import{a as zd}from"../chunk-4WA47ZQA.mjs";import"../chunk-NPVUICIF.mjs";import{a as Td}from"../chunk-6SWKEZN6.mjs";import{a as Ud}from"../chunk-DFIXTV2M.mjs";import{a as Cd}from"../chunk-VDN4LQSS.mjs";import{a as Bd}from"../chunk-FGEFYI5E.mjs";import{a as Ad}from"../chunk-MU5WPW4N.mjs";import"../chunk-AZKOVKSK.mjs";import"../chunk-UVHMI3PU.mjs";import{a as sd,b as td,c as ud,d as vd,e as wd,f as xd}from"../chunk-Q2DPE66H.mjs";import"../chunk-PC6TVU7J.mjs";import"../chunk-LYPWYO4W.mjs";import{a as Uc,b as Vc}from"../chunk-M5QUXKCF.mjs";import{a as Tc}from"../chunk-MZP7RIQZ.mjs";import{a as Lc}from"../chunk-MGSTQLZC.mjs";import{a as Mc}from"../chunk-VQBOJHZF.mjs";import{a as Nc}from"../chunk-6EKGV4I2.mjs";import{a as Kc}from"../chunk-OM5ZUHCN.mjs";import{a as Ic}from"../chunk-FMH5CZ7X.mjs";import{a as Gc}from"../chunk-SOIRB5TV.mjs";import{a as Hc}from"../chunk-BMA4266L.mjs";import{a as Oc}from"../chunk-F5N6KQA2.mjs";import{a as ab,b as bb,c as cb,d as db,e as eb,f as fb,g as gb,h as hb,i as ib}from"../chunk-U5PBLRRV.mjs";import{a as Ja,b as Ka,c as La}from"../chunk-Q5Q3DJWU.mjs";import{a as jb,b as kb,c as lb}from"../chunk-4QRKVSTE.mjs";import{a as Aa,b as Ba}from"../chunk-E4TE4NV6.mjs";import{a as ya,b as za}from"../chunk-JFFTEK6Z.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../chunk-JHNVX4UB.mjs";import{a as Db}from"../chunk-7BXIU4ZM.mjs";import{a as sb,b as tb,c as ub,d as vb,e as wb,f as xb,g as yb,h as zb,i as Ab,j as Bb}from"../chunk-YFAZQYK4.mjs";import{a as rb}from"../chunk-INCYANPB.mjs";import{a as Cb}from"../chunk-B4H6T2GP.mjs";import{a as Ia}from"../chunk-TVZOULLL.mjs";import{a as Eb,b as Fb,c as Gb,d as Hb}from"../chunk-RLVKIMGU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../chunk-OCPX4QPC.mjs";import{a as Ca,b as Da}from"../chunk-FT3AE7L2.mjs";import{a as Jc}from"../chunk-KGEIN56Y.mjs";import"../chunk-YNNW2C2U.mjs";import{a as Fc}from"../chunk-MX3JKY3V.mjs";import{a,b,c,d,e,f,g}from"../chunk-76M7JE4D.mjs";import{a as gc}from"../chunk-53QLSQCO.mjs";import{a as hc}from"../chunk-RULSHTXR.mjs";import{a as tc}from"../chunk-MEVSHOG4.mjs";import{a as sc}from"../chunk-RSDUFAIB.mjs";import{a as ic}from"../chunk-EPTHSTUM.mjs";import{a as kc}from"../chunk-JCH2CCQ7.mjs";import{a as dc}from"../chunk-RVRIMD6M.mjs";import"../chunk-WVP4YQCP.mjs";import"../chunk-J4IHIM6A.mjs";import"../chunk-RYZTCMVC.mjs";import{a as lc,b as mc,c as nc,d as oc,e as pc,f as qc,g as rc}from"../chunk-R33MOMFK.mjs";import{a as jc}from"../chunk-RMZLEIRP.mjs";import"../chunk-YWRU7OE3.mjs";import{a as Ib,b as Kb,c as Lb,d as Rb,f as Sb,g as Ub,h as bc}from"../chunk-MFUZNS7C.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as Jb}from"../chunk-2QZUKVBA.mjs";import"../chunk-SRUG246N.mjs";import"../chunk-4CU7D3X2.mjs";import"../chunk-JYL3XIJX.mjs";import"../chunk-LVK4QE5D.mjs";import{a as _b}from"../chunk-NSMXJCXE.mjs";import{a as ac}from"../chunk-LKGCU7H6.mjs";import{a as Yb}from"../chunk-5WV5ZFEP.mjs";import{a as $b}from"../chunk-KX2NCNCS.mjs";import{a as Xb}from"../chunk-LEC6GEWS.mjs";import{a as Pb}from"../chunk-X3JZSN3W.mjs";import{a as Qb}from"../chunk-XGIYNUGC.mjs";import{a as Ob}from"../chunk-2BR55L74.mjs";import"../chunk-TEB67NCD.mjs";import"../chunk-KFCSVEI6.mjs";import{a as Nb}from"../chunk-LXZAOORS.mjs";import"../chunk-MGYV46AJ.mjs";import{a as Mb}from"../chunk-CGDLOY7W.mjs";import{a as Sa,b as Ta,c as Ua,d as Va,e as Wa,f as Xa,g as Ya,h as Za,i as _a,j as $a}from"../chunk-3UMMMQEH.mjs";import{a as Ec}from"../chunk-5FWH5YVM.mjs";import{a as xa}from"../chunk-OYZDAMCS.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../chunk-5NRGSTPV.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../chunk-O5P35LEY.mjs";import{a as O}from"../chunk-7GSXNSLD.mjs";import{a as A}from"../chunk-4UIARERB.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../chunk-D4IMQTVU.mjs";import{a as h,b as i,c as j}from"../chunk-YNCJATT7.mjs";import{a as z}from"../chunk-L5JPAKPM.mjs";import{a as P,b as Q,c as R,d as S}from"../chunk-KY7WQYN4.mjs";import{a as M,b as N}from"../chunk-ZUA4KNIR.mjs";import{a as ec}from"../chunk-H7D3PZKE.mjs";import{a as fc}from"../chunk-IQPZEEYJ.mjs";import{a as Vb}from"../chunk-BG7QXNV5.mjs";import{a as Wb}from"../chunk-BVFUCOCP.mjs";import{a as mb,b as nb,c as ob}from"../chunk-SOLZ4VQH.mjs";import{a as pb,b as qb}from"../chunk-CSBGSBEU.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra}from"../chunk-YO3GQYRJ.mjs";import"../chunk-ZDPQXVTF.mjs";import{a as cd}from"../chunk-22LHS2J6.mjs";import{a as Xc}from"../chunk-IC2ABKAM.mjs";import{a as Yc}from"../chunk-FHMQVAKQ.mjs";import{a as Qc}from"../chunk-X5KZKO2V.mjs";import{a as Rc,b as Sc}from"../chunk-7WIO2CIC.mjs";import"../chunk-55EX54R7.mjs";import{a as ad}from"../chunk-6C4WESLL.mjs";import{a as bd}from"../chunk-75WE6ZXB.mjs";import{a as $c}from"../chunk-PDY7JYY3.mjs";import{a as _c}from"../chunk-WUA65ZZB.mjs";import"../chunk-WISC5QJV.mjs";import{a as Zc}from"../chunk-Q5XT55O3.mjs";import{a as Zb}from"../chunk-WISCWNL2.mjs";import{a as Pc}from"../chunk-FMJBJ3HN.mjs";import{a as Tb}from"../chunk-FVM5SQT2.mjs";import"../chunk-EGEO3FNE.mjs";import"../chunk-MDJREBVI.mjs";import"../chunk-ZWHGOTSF.mjs";import"../chunk-Q3G5UAAD.mjs";import"../chunk-XGRRLABA.mjs";import"../chunk-FLHDNCNY.mjs";import"../chunk-WU3JMLSC.mjs";import"../chunk-BZAYEKYC.mjs";import{a as L}from"../chunk-FRWX5YES.mjs";import{c as pa}from"../chunk-CV7PH2KH.mjs";import"../chunk-YEKQJ4YC.mjs";export{jb as Alert,lb as AlertDescription,kb as AlertTitle,Cd as AppHeader,zd as AppSidebar,Vd as AppSidebarLeft,Fd as ApprovalRequestModal,dd as ApproveLeave,mb as Avatar,ob as AvatarFallback,nb as AvatarImage,qb as Badge,Ib as BannerBlock,Zc as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,Vc as Breadcrumbs,N as Button,Jb as CMSLink,od as CRMCogeBoard,ld as CRMKanbanBoard,Db as Calendar,gd as CalendarView,Lb as CallToActionBlock,Kb as CallToActionBlockOld,Dd as CapabilityMenu,Ma as Card,Qa as CardContent,Pa as CardDescription,Ra as CardFooter,Na as CardHeader,Oa as CardTitle,Jc as Categories,yd as ChatCardArtefact,pd as ChatCardTask,Gd as ChatInterface,rd as ChatInterfaceMessages,qd as ChatMessage,rb as Checkbox,Nb as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,$d as ColleagueCard,be as ColleagueForm,ce as ColleagueTypeSelection,he as ColleaguesView,uc as CollectionArchive,ab as Command,bb as CommandDialog,eb as CommandEmpty,fb as CommandGroup,cb as CommandInput,hb as CommandItem,db as CommandList,gb as CommandSeparator,ib as CommandShortcut,Td as CommentSection,Pc as Container,jc as ContentBlock,bc as ContentCard,Hd as CopilotInterface,Mb as CopyButton,Zb as CustomLink,Vb as CustomerCard,ge as DCProjectCard,qc as DarkTop,Wd as DashboardHeader,Wc as DashboardHero,me as DashboardPage,jd as DealCard,id as DealDetails,Pd as DeliveryLeadSubmission,Qd as DeliveryLeadSubmissionList,Rd as DeliveryLeadSubmissionWithList,Sa as Dialog,Va as DialogClose,Xa as DialogContent,$a as DialogDescription,Za as DialogFooter,Ya as DialogHeader,Wa as DialogOverlay,Ua as DialogPortal,_a as DialogTitle,Ta as DialogTrigger,de as DigitalColleagueClone,ee as DigitalColleagueOptions,ie as DocumentEdit,je as DocumentPreview,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Tb as DynamicIcon,Ud as EditableField,pe as EpicsView,Wb as EventCard,Ub as FeatureCard,cc as FeatureGrid,Rb as FeaturesBlock,ne as FileView,Kc as Filter,Cc as FlowPrintable,ad as Footer,Xd as FoundaryLayout,bd as Header,_c as HeaderDesktop,$c as HeaderMobile,kc as HeadingImage,ac as Hero,Lc as HighImpactHero,fd as HolidayGrid,hd as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Yb as Image,Qb as ImageBlock,ec as InfoTile,z as Input,dc as Insight,oe as KanbanBoardView,kd as KanbanColumn,ke as KnowledgeBrowser,ae as KnowledgeSearch,le as KnowledgeView,Ia as Label,rc as LightTop,vc as Logo,Nc as LowImpactHero,fc as MOTD,Yd as MainPage,Zd as ManagementSidebar,Sc as Mask,Ob as Media,Pb as MediaBlock,Mc as MediumImpactHero,Bd as NavigationTabs,md as NewCustomerForm,nd as NewDealForm,zc as NewsGrid,Ad as NotificationsPanel,Ed as OAuthModal,gc as OrgChart,Dc as PagePrintable,wc as PageRange,Rc as PageShape,Ic as Pagination,sc as PayloadCard,xc as PayloadPagination,qe as PlanningView,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Oc as PostHero,$b as PricingCard,Bc as Printable,Xb as ProjectCard,Gc as ProjectTeam,se as ProjectView,te as ProjectsIndexView,hc as ProposalSummary,Hc as RelatedContent,cd as RelatedPagesMenu,tc as RelatedPosts,mc as RenderBlocks,oc as RenderBlocksWithShapes,Uc as RenderHero,ed as RequestLeave,lc as ReusableContentBlock,Sb as RichText,Ca as ScrollArea,Da as ScrollBar,_d as SearchableSelect,Tc as SectionHero,sb as Select,yb as SelectContent,tb as SelectGroup,Ab as SelectItem,zb as SelectLabel,xb as SelectScrollDownButton,wb as SelectScrollUpButton,Bb as SelectSeparator,vb as SelectTrigger,ub as SelectValue,A as Separator,_b as ServiceCard,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,Ec as SidebarLeft,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,Fc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,Xc as SimpleHeader,O as Skeleton,yc as SlideShow,Sd as Switch,Eb as Tabs,Hb as TabsContent,Fb as TabsList,Gb as TabsTrigger,re as TasksView,fe as TeamForm,ue as TeamsIndexView,Ac as TextAndImages,Cb as Textarea,nc as Theme,Qc as ThemeProvider,pc as ThemeWithShapes,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,Yc as VideoHeader,ic as WhyUs,pb as badgeVariants,M as buttonVariants,sd as defaultColorScheme,ud as findCapabilityByPath,xd as getAllCapabilities,wd as getCapabilityByTeam,vd as getContextualActions,Od as getDataPart,Md as getFileParts,Id as getTextContent,Kd as getToolPart,Nd as hasDataPart,Ld as hasFilePart,Jd as hasToolPart,td as testCapabilities,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as ab,b as bb,c as cb,d as db,e as eb,f as fb,g as gb,h as hb,i as ib}from"../../chunk-U5PBLRRV.mjs";import{a as Ja,b as Ka,c as La}from"../../chunk-Q5Q3DJWU.mjs";import{a as jb,b as kb,c as lb}from"../../chunk-4QRKVSTE.mjs";import{a as Aa,b as Ba}from"../../chunk-E4TE4NV6.mjs";import{a as ya,b as za}from"../../chunk-JFFTEK6Z.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../../chunk-JHNVX4UB.mjs";import{a as Db}from"../../chunk-7BXIU4ZM.mjs";import{a as sb,b as tb,c as ub,d as vb,e as wb,f as xb,g as yb,h as zb,i as Ab,j as Bb}from"../../chunk-YFAZQYK4.mjs";import{a as rb}from"../../chunk-INCYANPB.mjs";import{a as Cb}from"../../chunk-B4H6T2GP.mjs";import{a as Ia}from"../../chunk-TVZOULLL.mjs";import{a as Eb,b as Fb,c as Gb,d as Hb}from"../../chunk-RLVKIMGU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../../chunk-OCPX4QPC.mjs";import{a as Ca,b as Da}from"../../chunk-FT3AE7L2.mjs";import{a,b,c,d,e,f,g}from"../../chunk-76M7JE4D.mjs";import{a as Sa,b as Ta,c as Ua,d as Va,e as Wa,f as Xa,g as Ya,h as Za,i as _a,j as $a}from"../../chunk-3UMMMQEH.mjs";import{a as xa}from"../../chunk-OYZDAMCS.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../../chunk-5NRGSTPV.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../../chunk-O5P35LEY.mjs";import{a as O}from"../../chunk-7GSXNSLD.mjs";import{a as A}from"../../chunk-4UIARERB.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../../chunk-D4IMQTVU.mjs";import{a as h,b as i,c as j}from"../../chunk-YNCJATT7.mjs";import{a as z}from"../../chunk-L5JPAKPM.mjs";import{a as P,b as Q,c as R,d as S}from"../../chunk-KY7WQYN4.mjs";import{a as M,b as N}from"../../chunk-ZUA4KNIR.mjs";import{a as mb,b as nb,c as ob}from"../../chunk-SOLZ4VQH.mjs";import{a as pb,b as qb}from"../../chunk-CSBGSBEU.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra}from"../../chunk-YO3GQYRJ.mjs";import"../../chunk-EGEO3FNE.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import{a as L}from"../../chunk-FRWX5YES.mjs";import{c as pa}from"../../chunk-CV7PH2KH.mjs";import"../../chunk-YEKQJ4YC.mjs";export{jb as Alert,lb as AlertDescription,kb as AlertTitle,mb as Avatar,ob as AvatarFallback,nb as AvatarImage,qb as Badge,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,N as Button,Db as Calendar,Ma as Card,Qa as CardContent,Pa as CardDescription,Ra as CardFooter,Na as CardHeader,Oa as CardTitle,rb as Checkbox,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,ab as Command,bb as CommandDialog,eb as CommandEmpty,fb as CommandGroup,cb as CommandInput,hb as CommandItem,db as CommandList,gb as CommandSeparator,ib as CommandShortcut,Sa as Dialog,Va as DialogClose,Xa as DialogContent,$a as DialogDescription,Za as DialogFooter,Ya as DialogHeader,Wa as DialogOverlay,Ua as DialogPortal,_a as DialogTitle,Ta as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,z as Input,Ia as Label,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ca as ScrollArea,Da as ScrollBar,sb as Select,yb as SelectContent,tb as SelectGroup,Ab as SelectItem,zb as SelectLabel,xb as SelectScrollDownButton,wb as SelectScrollUpButton,Bb as SelectSeparator,vb as SelectTrigger,ub as SelectValue,A as Separator,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,aa as SidebarSeparator,W as SidebarTrigger,O as Skeleton,Eb as Tabs,Hb as TabsContent,Fb as TabsList,Gb as TabsTrigger,Cb as Textarea,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,pb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
|