cortex-react-components 2.20.0 → 2.20.1
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-NXG2Y4N4.mjs → chunk-33CHGT4N.mjs} +1 -1
- package/dist/{chunk-PRK2XFAZ.mjs → chunk-3EGSOIRH.mjs} +1 -1
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-Y62OBV2E.mjs → chunk-6EKGV4I2.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-6FHRZHAJ.mjs} +1 -1
- package/dist/{chunk-BDNY6OKE.mjs → chunk-ANCSWAD7.mjs} +1 -1
- package/dist/{chunk-G6T5ZKN4.mjs → chunk-CCJJAUGB.mjs} +1 -1
- package/dist/{chunk-WDZOGIT2.mjs → chunk-CTC6WSB6.mjs} +1 -1
- package/dist/{chunk-BADEUYQI.mjs → chunk-D3YJZROI.mjs} +1 -1
- package/dist/{chunk-GIL2SMPM.mjs → chunk-DX3G3FKT.mjs} +1 -1
- package/dist/{chunk-XED4ZCVN.mjs → chunk-G27V7B6H.mjs} +1 -1
- package/dist/{chunk-M74BIPBM.mjs → chunk-GO42W2BM.mjs} +1 -1
- package/dist/{chunk-JLUX7EHB.mjs → chunk-HLTP3ZQN.mjs} +1 -1
- package/dist/{chunk-45DDMEV4.mjs → chunk-JNJJAJPI.mjs} +1 -1
- package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/chunk-KKW3FINI.mjs +4 -0
- package/dist/{chunk-JCWFPKF3.mjs → chunk-MAZGVZJN.mjs} +1 -1
- package/dist/{chunk-KRLNPNMZ.mjs → chunk-MEVSHOG4.mjs} +1 -1
- package/dist/{chunk-BGADMIWV.mjs → chunk-MFUZNS7C.mjs} +1 -1
- package/dist/{chunk-5KS3DITB.mjs → chunk-MGSTQLZC.mjs} +1 -1
- package/dist/{chunk-6WTZF42R.mjs → chunk-MSFBSDB3.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-S3P6OGB7.mjs → chunk-OXKN6X62.mjs} +1 -1
- package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
- package/dist/{chunk-2GZQYAN3.mjs → chunk-QILFMWE5.mjs} +1 -1
- package/dist/{chunk-V4H25KT4.mjs → chunk-QZIJTAPO.mjs} +1 -1
- package/dist/{chunk-GH3F4DKW.mjs → chunk-R33MOMFK.mjs} +1 -1
- package/dist/{chunk-66ODXUVL.mjs → chunk-RMZLEIRP.mjs} +1 -1
- package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
- package/dist/{chunk-2UNIT7NC.mjs → chunk-UPRS7OYQ.mjs} +1 -1
- package/dist/{chunk-BN747TQM.mjs → chunk-VQBOJHZF.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-TFLTLCAL.mjs → chunk-XYJ4S67W.mjs} +1 -1
- package/dist/{chunk-T36QUKC6.mjs → chunk-YPSUDHCJ.mjs} +1 -1
- package/dist/{chunk-JT65KF7C.mjs → chunk-YWRU7OE3.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.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.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/colleague-form.js +1 -1
- package/dist/components/Foundary/colleague-form.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.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/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +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.js +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-H3RVI2OI.mjs +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-D3YJZROI.mjs";import"../../../chunk-G27V7B6H.mjs";import"../../../chunk-4CHIFK3W.mjs";import"../../../chunk-W2LPR7SX.mjs";import"../../../chunk-U2OXF7PJ.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-JXQRVEQB.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-CRAFZGCI.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-PE5L5LZL.mjs";import"../../../chunk-I4GYQZGM.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-V4W2JDQB.mjs";import"../../../chunk-TZCRIKIJ.mjs";import"../../../chunk-N6CZEXLZ.mjs";import"../../../chunk-M456UF2N.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-VDN4LQSS.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-O5P35LEY.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var vo=Object.create;var Qe=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty;var yo=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},Pt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!xo.call(e,i)&&i!==o&&Qe(e,i,{get:()=>t[i],enumerable:!(r=bo(t,i))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?vo(wo(e)):{},Pt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),Co=e=>Pt(Qe({},"__esModule",{value:!0}),e);var fr={};yo(fr,{default:()=>po});module.exports=Co(fr);var se=require("react"),Y=require("lucide-react");var Lt=require("clsx");var gt="-",No=e=>{let t=Po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let n=c.split(gt);return n[0]===""&&n.length!==1&&n.shift(),kt(n,t)||So(c)},getConflictingClassGroupIds:(c,n)=>{let f=o[c]||[];return n&&r[c]?[...f,...r[c]]:f}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?kt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(gt);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Rt=/^\[(.+)\]$/,So=e=>{if(Rt.test(e)){let t=Rt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Po=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Do(Object.entries(e.classGroups),o).forEach(([a,c])=>{ft(c,r,a,t)}),r},ft=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:Dt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(Ro(i)){ft(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,c])=>{ft(c,Dt(t,a),o,r)})})},Dt=(e,t)=>{let o=e;return t.split(gt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ro=e=>e.isThemeGetter,Do=(e,t)=>t?e.map(([o,r])=>{let i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,n])=>[t+c,n])):a);return[o,i]}):e,ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return i(a,c),c},set(a,c){o.has(a)?o.set(a,c):i(a,c)}}},Tt="!",To=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,c=n=>{let f=[],d=0,N=0,g;for(let p=0;p<n.length;p++){let T=n[p];if(d===0){if(T===i&&(r||n.slice(p,p+a)===t)){f.push(n.slice(N,p)),N=p+a;continue}if(T==="/"){g=p;continue}}T==="["?d++:T==="]"&&d--}let v=f.length===0?n:n.substring(N),$=v.startsWith(Tt),E=$?v.substring(1):v,k=g&&g>N?g-N:void 0;return{modifiers:f,hasImportantModifier:$,baseClassName:E,maybePostfixModifierPosition:k}};return o?n=>o({className:n,parseClassName:c}):c},Mo=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},Ao=e=>({cache:ko(e.cacheSize),parseClassName:To(e),...No(e)}),Io=/\Ht+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],c=e.trim().split(Io),n="";for(let f=c.length-1;f>=0;f-=1){let d=c[f],{modifiers:N,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:$}=o(d),E=!!$,k=r(E?v.substring(0,$):v);if(!k){if(!E){n=d+(n.length>0?" "+n:n);continue}if(k=r(v),!k){n=d+(n.length>0?" "+n:n);continue}E=!1}let p=Mo(N).join(":"),T=g?p+Tt:p,H=T+k;if(a.includes(H))continue;a.push(H);let X=i(k,E);for(let V=0;V<X.length;++V){let ee=X[V];a.push(T+ee)}n=d+(n.length>0?" "+n:n)}return n};function Bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mt(t))&&(r&&(r+=" "),r+=o);return r}var Mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Eo(e,...t){let o,r,i,a=c;function c(f){let d=t.reduce((N,g)=>g(N),e());return o=Ao(d),r=o.cache.get,i=o.cache.set,a=n,n(f)}function n(f){let d=r(f);if(d)return d;let N=Lo(f,o);return i(f,N),N}return function(){return a(Bo.apply(null,arguments))}}var z=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},At=/^\[(?:([a-z-]+):)?(.+)\]$/i,zo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),Fo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ht|Ht|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>He(e)||Ho.has(e)||zo.test(e),we=e=>Fe(e,"length",Xo),He=e=>!!e&&!Number.isNaN(Number(e)),ut=e=>Fe(e,"number",He),$e=e=>!!e&&Number.isInteger(Number(e)),Wo=e=>e.endsWith("%")&&He(e.slice(0,-1)),C=e=>At.test(e),xe=e=>Fo.test(e),$o=new Set(["length","size","percentage"]),Go=e=>Fe(e,$o,It),Oo=e=>Fe(e,"position",It),_o=new Set(["image","url"]),qo=e=>Fe(e,_o,Qo),Jo=e=>Fe(e,"",Zo),Ge=()=>!0,Fe=(e,t,o)=>{let r=At.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Xo=e=>Ko.test(e)&&!jo.test(e),It=()=>!1,Zo=e=>Uo.test(e),Qo=e=>Vo.test(e);var Yo=()=>{let e=z("colors"),t=z("spacing"),o=z("blur"),r=z("brightness"),i=z("borderColor"),a=z("borderRadius"),c=z("borderSpacing"),n=z("borderWidth"),f=z("contrast"),d=z("grayscale"),N=z("hueRotate"),g=z("invert"),v=z("gap"),$=z("gradientColorStops"),E=z("gradientColorStopPositions"),k=z("inset"),p=z("margin"),T=z("opacity"),H=z("padding"),X=z("saturate"),V=z("scale"),ee=z("sepia"),ve=z("skew"),le=z("space"),b=z("translate"),O=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",C,t],A=()=>[C,t],Se=()=>["",de,we],_=()=>["auto",He,C],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],We=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",C],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[He,C];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[de,we],blur:["none","",xe,C],brightness:te(),borderColor:[e],borderRadius:["none","","full",xe,C],borderSpacing:A(),borderWidth:Se(),contrast:te(),grayscale:Pe(),hueRotate:te(),invert:Pe(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Wo,we],inset:L(),margin:L(),opacity:te(),padding:A(),saturate:te(),scale:te(),sepia:Pe(),skew:te(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"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:[...be(),C]}],overflow:[{overflow:W()}],"overflow-Ht":[{"overflow-Ht":W()}],"overflow-Ht":[{"overflow-Ht":W()}],overscroll:[{overscroll:O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-Ht":[{"inset-Ht":[k]}],"inset-Ht":[{"inset-Ht":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$e,C]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",$e,C]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",$e,C]},C]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[$e,C]},C]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[v]}],"gap-Ht":[{"gap-Ht":[v]}],"gap-Ht":[{"gap-Ht":[v]}],"justify-content":[{justify:["normal",...We()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...We(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...We(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],ht:[{ht:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],Ht:[{Ht:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit"]}],"max-Ht":[{"max-Ht":[C,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],Ht:[{Ht:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ht":[{"max-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ut]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",He,ut]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,we]}],"underline-offset":[{"underline-offset":["auto",de,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),Oo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ht","Ht","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Go]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[$]}],"gradient-via":[{via:[$]}],"gradient-to":[{to:[$]}],rounded:[{rounded:[a]}],"rounded-Ht":[{"rounded-Ht":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[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-Ht":[{border:[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-e":[{"border-e":[n]}],"border-Ht-t":[{"border-t":[n]}],"border-Ht-r":[{"border-r":[n]}],"border-Ht-b":[{"border-b":[n]}],"border-Ht-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...he(),"hidden"]}],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[de,C]}],"outline-Ht":[{outline:[de,we]}],"outline-color":[{outline:[e]}],"ring-Ht":[{ring:Se()}],"ring-Ht-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-Ht":[{"ring-offset":[de,we]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,Jo]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",xe,C]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[g]}],saturate:[{saturate:[X]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-Ht":[{"scale-Ht":[V]}],"scale-Ht":[{"scale-Ht":[V]}],rotate:[{rotate:[$e,C]}],"translate-Ht":[{"translate-Ht":[b]}],"translate-Ht":[{"translate-Ht":[b]}],"skew-Ht":[{"skew-Ht":[ve]}],"skew-Ht":[{"skew-Ht":[ve]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","Ht-resize","Ht-resize","Y-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ht","Ht",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-ht":[{"scroll-ht":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ht","Ht","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ht":[{"touch-pan":["Ht","left","right"]}],"touch-Ht":[{"touch-pan":["Ht","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ht":[{stroke:[de,we,ut]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ht","overflow-Ht"],overscroll:["overscroll-Ht","overscroll-Ht"],inset:["inset-Ht","inset-Ht","start","end","top","right","bottom","left"],"inset-Ht":["right","left"],"inset-Ht":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ht","gap-Ht"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","ht","mr","mb","ml"],mx:["mr","ml"],my:["ht","mb"],size:["Ht","Ht"],"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-Ht","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-Ht":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ht","border-spacing-Ht"],"border-Ht":["border-Ht-Ht","border-Ht-e","border-Ht-t","border-Ht-r","border-Ht-b","border-Ht-l"],"border-Ht-Ht":["border-Ht-r","border-Ht-l"],"border-Ht-Ht":["border-Ht-t","border-Ht-b"],"border-color":["border-color-Ht","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ht":["border-color-r","border-color-l"],"border-color-Ht":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ht","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ht","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-Ht","touch-Ht","touch-pz"],"touch-Ht":["touch"],"touch-Ht":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ye=Eo(Yo);function m(...e){return Ye((0,Lt.clsx)(e))}var Bt=require("@radix-ui/react-slot"),Et=require("class-variance-authority"),zt=q(require("react")),Ht=require("react/jsx-runtime"),er=(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:"Ht-10 px-4 py-2",icon:"Ht-10 Ht-10",lg:"Ht-11 rounded px-8",sm:"Ht-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"}}}),M=zt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,Ht.jsx)(e?Bt.Slot:"button",{className:m(er({className:t,size:o,variant:r})),ref:a,...i}));M.displayName="Button";var Re=q(require("react"));var I=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var K=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex flex-col space-Ht-1.5 p-6",e),...t}));K.displayName="CardHeader";var G=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var tr=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));tr.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("p-6 pt-0",e),...t}));B.displayName="CardContent";var or=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex items-center p-6 pt-0",e),...t}));or.displayName="CardFooter";var Ft=q(require("react"));var oe=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,Ht.jsx)("input",{type:t,className:m("flex Ht-9 Ht-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}));oe.displayName="Input";var P=q(require("@radix-ui/react-select")),ye=q(require("react")),vt=P.Root;var bt=P.Value,et=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Trigger,{className:m("flex Ht-10 Ht-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,Ht.jsx)(P.Icon,{asChild:!0,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 opacity-50"})})]}));et.displayName=P.Trigger.displayName;var jt=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronUp,{className:"Ht-4 Ht-4"})}));jt.displayName=P.ScrollUpButton.displayName;var Ut=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4"})}));Ut.displayName=P.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Ht.jsx)(P.Portal,{children:(0,Ht.jsxs)(P.Content,{className:m("relative z-50 max-Ht-96 min-Ht-[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-Ht-1 data-[side=left]:-translate-Ht-1 data-[side=right]:translate-Ht-1 data-[side=top]:-translate-Ht-1",t),position:o,ref:i,...r,children:[(0,Ht.jsx)(jt,{}),(0,Ht.jsx)(P.Viewport,{className:m("p-1",o==="popper"&&"Ht-[var(--radix-select-trigger-height)] Ht-full min-Ht-[var(--radix-select-trigger-width)]"),children:e}),(0,Ht.jsx)(Ut,{})]})}));tt.displayName=P.Content.displayName;var rr=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));rr.displayName=P.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Item,{className:m("relative flex Ht-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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(P.ItemIndicator,{children:(0,Ht.jsx)(Y.Check,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)(P.ItemText,{children:e})]}));Te.displayName=P.Item.displayName;var ar=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Separator,{className:m("-mx-1 my-1 Ht-px bg-muted",e),ref:o,...t}));ar.displayName=P.Separator.displayName;var ht=require("motion/react");var Me=q(require("@radix-ui/react-tabs"));function Vt({className:e,...t}){return(0,Ht.jsx)(Me.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function Wt({className:e,...t}){return(0,Ht.jsx)(Me.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex Ht-9 Ht-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function $t({className:e,...t}){return(0,Ht.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:m("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 Ht-[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 ce=q(require("react")),R=q(require("@radix-ui/react-dropdown-menu")),Ke=require("@radix-ui/react-icons");var rt=R.Root,at=R.Trigger;var ir=ce.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ht.jsxs)(R.SubTrigger,{ref:i,className:m("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,Ht.jsx)(Ke.ChevronRightIcon,{className:"ml-auto"})]}));ir.displayName=R.SubTrigger.displayName;var nr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.SubContent,{ref:o,className:m("z-50 min-Ht-[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}));nr.displayName=R.SubContent.displayName;var Oe=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(R.Portal,{children:(0,Ht.jsx)(R.Content,{ref:r,sideOffset:t,className:m("z-50 min-Ht-[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})}));Oe.displayName=R.Content.displayName;var Ae=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Item,{ref:r,className:m("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}));Ae.displayName=R.Item.displayName;var sr=ce.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ht.jsxs)(R.CheckboxItem,{ref:i,className:m("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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.CheckIcon,{className:"Ht-4 Ht-4"})})}),t]}));sr.displayName=R.CheckboxItem.displayName;var lr=ce.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(R.RadioItem,{ref:r,className:m("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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.DotFilledIcon,{className:"Ht-4 Ht-4 fill-current"})})}),t]}));lr.displayName=R.RadioItem.displayName;var dr=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));dr.displayName=R.Label.displayName;var cr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.Separator,{ref:o,className:m("-mx-1 my-1 Ht-px bg-muted",e),...t}));cr.displayName=R.Separator.displayName;var mr=({className:e,...t})=>(0,Ht.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});mr.displayName="DropdownMenuShortcut";function Ot({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let c=o.find(n=>n.value===e);return(0,Ht.jsxs)(ht.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Ht:-20},animate:{opacity:1,Ht:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ht.jsx)("div",{className:"hidden lg:block",children:(0,Ht.jsx)(Vt,{value:e,onValueChange:t,children:(0,Ht.jsx)(Wt,{className:"grid Ht-full rounded-2xl p-0 Ht-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ht.jsx)($t,{value:n.value,className:"Ht-full Ht-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:n.label})},n.value))})})}),(0,Ht.jsx)("div",{className:"lg:hidden",children:(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsxs)(M,{variant:"outline",className:"rounded-2xl min-Ht-[140px] justify-between",children:[c?.label||"Select",(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 ml-2"})]})}),(0,Ht.jsx)(Oe,{align:"center",className:"Ht-[180px]",children:o.map(n=>(0,Ht.jsx)(Ae,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var it=q(require("react")),me=q(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Root,{ref:o,className:m("relative flex Ht-10 Ht-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=me.Root.displayName;var wt=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Image,{ref:o,className:m("aspect-square Ht-full Ht-full",e),...t}));wt.displayName=me.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Fallback,{ref:o,className:m("flex Ht-full Ht-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=me.Fallback.displayName;var pr=(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 re({className:e,variant:t,...o}){return(0,Ht.jsx)("div",{className:m(pr({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:c}){let[n,f]=(0,se.useState)(!1),d=v=>{switch(v){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},N=v=>{switch(v){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=v=>{if(!v)return"Never";let E=Math.floor((new Date().getTime()-v.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}m ago`:E<1440?`${Math.floor(E/60)}Ht ago`:`${Math.floor(E/1440)}d ago`};return(0,Ht.jsxs)(I,{className:m("hover:shadow-md transition-shadow",a&&"p-2",c),children:[(0,Ht.jsx)(K,{className:m("pb-3",a&&"pb-2"),children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)("div",{className:"relative",children:(0,Ht.jsxs)(Ie,{className:m("Ht-12 Ht-12",a&&"Ht-8 Ht-8"),children:[(0,Ht.jsx)(wt,{src:"/placeholder.svg",alt:e.name||"name"}),(0,Ht.jsx)(Le,{children:e.name?.split(" ").map(v=>v[0]).join("")})]})}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)("h3",{className:m("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ht.jsx)(Y.Bot,{className:m("Ht-4 Ht-4 text-blue-500",a&&"Ht-3 Ht-3")}):(0,Ht.jsx)(Y.User,{className:m("Ht-4 Ht-4 text-green-500",a&&"Ht-3 Ht-3")})]}),(0,Ht.jsx)("p",{className:m("text-sm text-muted-foreground truncate",a&&"text-xs")}),!a&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 ht-1"})]})]}),i&&(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsx)(M,{variant:"ghost",size:"icon",className:m("Ht-8 Ht-8",a&&"Ht-6 Ht-6"),children:(0,Ht.jsx)(Y.MoreHorizontal,{className:m("Ht-4 Ht-4",a&&"Ht-3 Ht-3")})})}),(0,Ht.jsxs)(Oe,{align:"end",children:[e.type==="digital"&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,Ht.jsx)(Y.Settings,{className:"Ht-4 Ht-4 mr-2"}),"View Details"]}),(0,Ht.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4 mr-2"}),"Edit"]})]}),(0,Ht.jsxs)(Ae,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,Ht.jsx)(Y.Trash2,{className:"Ht-4 Ht-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,Ht.jsxs)(B,{className:"pt-0",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[e.type==="human"&&(0,Ht.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ht.jsx)(Y.Mail,{className:"Ht-3 Ht-3"}),(0,Ht.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 text-muted-foreground",children:(0,Ht.jsx)("span",{children:e.description})})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"ht-3",children:(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,n?e.capabilities.length:2).map(v=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:typeof v.value=="number"?v.value:v.value.name},typeof v.value=="number"?v.value:v.value.name)),(e.capabilities?.length||0)>2&&(0,Ht.jsx)(M,{variant:"ghost",size:"sm",className:"Ht-5 px-2 text-xs",onClick:()=>f(!n),children:n?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Xt=q(require("react")),xt=q(require("@radix-ui/react-label"));var ur=(0,Et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pe=Xt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(xt.Root,{ref:o,className:m(ur(),e),...t}));pe.displayName=xt.Root.displayName;var Yt=q(require("react")),_e=Yt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("textarea",{className:m("flex min-Ht-[80px] Ht-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}));_e.displayName="Textarea";var yt=q(require("react")),ae=q(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(ae.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,Ht.jsx)(ae.Viewport,{className:"Ht-full Ht-full rounded-[inherit]",children:t}),(0,Ht.jsx)(to,{}),(0,Ht.jsx)(ae.Corner,{})]}));Ct.displayName=ae.Root.displayName;var to=yt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ht.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"Ht-full Ht-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ht-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ht.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));to.displayName=ae.ScrollAreaScrollbar.displayName;function oo({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:c=!1}){let[n,f]=(0,se.useState)(""),[d,N]=(0,se.useState)([]),[g,v]=(0,se.useState)(!1);(0,se.useEffect)(()=>{if(!n.trim()){N([]),v(!1);return}let p=o.filter(T=>{if(e.map(V=>V.id).includes(T.id))return!1;let X=n.toLowerCase();return T.title.toLowerCase().includes(X)||T.description?.toLowerCase().includes(X)||T.tags?.some(V=>V.toLowerCase().includes(X))||Object.values(T.metadata||{}).some(V=>String(V).toLowerCase().includes(X))});N(p),v(!0)},[n,e,o]);let $=p=>{a&&e.length>=a&&e.pop(),t([...e,p]),f(""),v(!1)},E=p=>{console.log("doc",p,e),t(e.filter(T=>T.id!==p))},k=!a||e.length<a;return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:r}),(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{value:n,onChange:p=>f(p.target.value),placeholder:k?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:c||!k,onFocus:()=>n&&v(!0)})]}),g&&d.length>0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1 max-Ht-60",children:(0,Ht.jsx)(Ct,{className:"Ht-full",children:(0,Ht.jsx)(B,{className:"p-2",children:d.map(p=>(0,Ht.jsx)(M,{variant:"ghost",className:"Ht-full justify-start Ht-auto p-3 mb-1",onClick:()=>$(p),disabled:c,children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3 Ht-full",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"text-left flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm truncate",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1 line-clamp-2",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1 ht-2",children:[p.tags.slice(0,3).map(T=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:T},T)),p.tags.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",p.tags.length-3," more"]})]})]})]})},p.id))})})}),g&&n&&d.length===0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1",children:(0,Ht.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',n,'"']})})]}),e.length>0&&(0,Ht.jsx)("div",{className:"space-Ht-2",children:(0,Ht.jsx)("div",{className:"space-Ht-2",children:e.map(p=>(0,Ht.jsx)(I,{className:"p-3",children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1 ht-2",children:p.tags.map(T=>(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:[(0,Ht.jsx)(Y.Tag,{className:"Ht-3 Ht-3 mr-1"}),T]},T))})]}),(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-6 Ht-6 flex-shrink-0",onClick:()=>E(p.id),disabled:c,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]})},p.id))})}),g&&(0,Ht.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>v(!1)})]})}function Nt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:c="Cancel",readOnly:n=!1,availableKnowledgeDocuments:f=[]}){let[d,N]=(0,se.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,coreKnowledge:null,...e}),[g,v]=(0,se.useState)(""),[$,E]=(0,se.useState)(""),[k,p]=(0,se.useState)(!n);(0,se.useEffect)(()=>{e&&N(e)},[e]);let T=b=>{b.preventDefault();let O={id:d.id||parseInt(Date.now().toString()),name:d.name,type:"digital",description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],capabilityLevel:d.capabilityLevel||0,coreKnowledge:d.coreKnowledge||null};t(O)},H=(b,O,W)=>{if(!O.trim())return;let L=d[b]||[];N({...d,[b]:[...L,O.trim()]}),W("")},X=(b,O)=>{let W=d[b]||[];N({...d,[b]:W.filter((L,A)=>A!==O)})},V=b=>{b.preventDefault(),p(!k)},ee=(b,O,W,L,A)=>{let Se=d[b]||[];return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:O}),k&&(0,Ht.jsxs)("div",{className:"flex gap-2",children:[(0,Ht.jsx)(oe,{value:W,onChange:_=>L(_.target.value),placeholder:A,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),H(b,W,L))},disabled:r}),(0,Ht.jsx)(M,{type:"button",variant:"outline",size:"icon",onClick:()=>H(b,W,L),disabled:r,children:(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"})})]}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((_,be)=>(0,Ht.jsxs)(re,{className:"gap-1",children:[_,k&&(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-4 Ht-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(b,be),disabled:r,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]},`${b}-${be}-${_}`))})]})},ve=i||(k?e?"Edit Colleague":"Add New Colleague":"View Colleague"),le=a||(e?"Update Colleague":"Add Colleague");return(0,Ht.jsxs)(I,{className:"m-8 Ht-full max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(K,{children:(0,Ht.jsxs)(G,{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-5 Ht-5"}),ve]})}),(0,Ht.jsx)(B,{children:(0,Ht.jsxs)("form",{onSubmit:T,className:"space-Ht-6",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"name",children:"Name *"}),(0,Ht.jsx)(oe,{id:"name",value:d.name||"",onChange:b=>N({...d,name:b.target.value}),required:!0,disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"description",children:"Description"}),(0,Ht.jsx)(_e,{id:"description",value:d.description||"",onChange:b=>N({...d,description:b.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!k})]})]}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ht.jsx)(_e,{id:"jobDescription",value:d.jobDescription||"",onChange:b=>N({...d,jobDescription:b.target.value}),rows:4,required:d.type==="digital",disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ht.jsx)(_e,{id:"workInstructions",value:d.workInstructions||"",onChange:b=>N({...d,workInstructions:b.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!k})]}),ee("capabilities","Capabilities",$,E,"Add capability"),(0,Ht.jsx)(oo,{selectedDocuments:d.coreKnowledge?[{id:d.coreKnowledge?.id?.toString(),title:d.coreKnowledge?.name,format:"markdown",content:d.coreKnowledge?.content||"",createdAt:new Date(d.coreKnowledge?.createdAt),description:d.coreKnowledge?.description||"",metadata:d.coreKnowledge?.metadata||{},updatedAt:new Date(d.coreKnowledge?.updatedAt)}]:[],onDocumentsChange:b=>{let O={createdAt:b[0]?.createdAt.toISOString(),id:parseInt(b[0]?.id),name:b[0]?.title,source:"payload",updatedAt:(b[0]?.updatedAt||new Date).toISOString()};console.log(b),N({...d,coreKnowledge:b&&b.length>0?O:void 0})},label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:1,disabled:r||!k,availableDocuments:f.map(b=>({id:b.id.toString(),title:b.name,name:b.name,format:"markdown",content:b.content||"",createdAt:new Date(b.createdAt),source:b.source,description:b.description||"",metadata:b.metadata||{},updatedAt:new Date(b.updatedAt)}))})]}),(0,Ht.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ht.jsx)(M,{type:"button",variant:"outline",onClick:o,disabled:r,children:k?c:"Close"}),k?(0,Ht.jsx)(M,{type:"submit",disabled:r,children:r?"Saving...":le}):(0,Ht.jsxs)(M,{type:"button",onClick:V,disabled:r,className:"gap-2",children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4"}),"Edit"]})]})]})})]})}function ro({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,se.useState)(""),c=(0,se.useMemo)(()=>e.filter(f=>f.name?.toLowerCase().includes(i.toLowerCase())||f.email.toLowerCase().includes(i.toLowerCase())),[e,i]),n=f=>{t(f)};return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ht.jsx)(I,{className:"container",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:f=>a(f.target.value),className:"pl-9"})]})})})})}),(0,Ht.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(f=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r===f.id?"ring-2 ring-primary":""}`,onClick:()=>n(f),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{children:(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg",children:f.name})})]}),r===f.id&&(0,Ht.jsx)(Y.Check,{className:"Ht-5 Ht-5 text-primary"})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ht.jsx)("p",{className:"text-sm font-medium",children:f.email})]}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},f.id))}),c.length===0&&(0,Ht.jsx)(I,{className:"container ht-4",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.User,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function ao({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,se.useState)(""),[c,n]=(0,se.useState)("all"),f=(0,se.useMemo)(()=>e.filter(g=>g.name.toLowerCase().includes(i.toLowerCase())||g.jobDescription?.toLowerCase().includes(i.toLowerCase())||g.workInstructions?.toLowerCase().includes(i.toLowerCase())),[e,i,c]),d=g=>{let v={...g,name:`${g.name} (Copy)`};t(v)},N=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:g=>a(g.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)("select",{value:c,onChange:g=>n(g.target.value),className:"Ht-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ht.jsx)("option",{value:"all",children:"All Status"}),(0,Ht.jsx)("option",{value:"active",children:"Active"}),(0,Ht.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ht.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:f.map(g=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===g.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>d(g),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{className:"bg-blue-100",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg flex items-center gap-2",children:g.name})})]}),(0,Ht.jsxs)(M,{size:"sm",variant:"outline",className:"gap-2 Ht-8",onClick:v=>{v.stopPropagation(),d(g)},children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-3 Ht-3"}),"Clone"]})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ht.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1",children:g.capabilities.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})})]}),(0,Ht.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),g.workInstructions&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ht.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),f.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function io({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.User,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Browse existing users"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Select User"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-8 Ht-8 text-purple-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Create from templates"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function no({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Copy,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Sparkles,{className:"Ht-8 Ht-8 text-green-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Custom job description"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Sparkles,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function so(e,t){let[o,r]=(0,se.useState)(()=>{if(typeof window>"Ht")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=a=>{try{r(a),typeof window<"Ht"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,se.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function co({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:c,className:n}){let[f,d]=so(`hero-section-minimized-${e.replace(/\Ht+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||f;return(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:20},animate:{opacity:1,Ht:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${n||""}`,children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ht.jsx)(re,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ht.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Ht.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!f),style:{lineHeight:0},children:f?(0,Ht.jsx)(ct.FaChevronDown,{size:22}):(0,Ht.jsx)(ct.FaChevronUp,{size:22})})]})]}),!N&&(0,Ht.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("p",{className:"max-Ht-[600px] text-white/80",children:t}),(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Ht.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),c&&(0,Ht.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function St(...e){return Ye((0,Lt.clsx)(e))}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:n=[],existingDigitalColleagues:f=[],availableKnowledgeDocuments:d=[]}){let[N,g]=(0,se.useState)(e||[]),[v,$]=(0,se.useState)(""),[E,k]=(0,se.useState)("all"),[p,T]=(0,se.useState)("all"),[H,X]=(0,se.useState)("all"),[V,ee]=(0,se.useState)(null),[ve,le]=(0,se.useState)(null);(0,se.useEffect)(()=>{g(e||[])},[e]);let b=Array.isArray(n)?n:[],O=Array.isArray(f)?f:[],[W,L]=(0,se.useState)("main"),A=N.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(v.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(v.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(v.toLowerCase())),Se=A.filter(l=>l.type==="human"),_=A.filter(l=>l.type==="digital"),be=()=>{L("typeSelection")},he=l=>{l.type==="digital"&&(ee(l),L("form")),console.log("Editing colleague:",l),o?.(l)},Ee=l=>{l.type==="digital"&&(le(l),L("view"))},We=l=>{let Q={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};g(ze=>[...ze,Q]),t?.(Q),L("main")},Pe=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"}),L("main")},Ze=()=>{ee(null),L("form")},te=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}V?(g(Q=>Q.map(ze=>ze.id===l.id?{...l,type:"digital"}:ze)),o?.({...l,type:"digital"})):(g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"})),L("main"),ee(null)},uo=()=>{L("main"),ee(null),le(null)},fo=()=>{L("main"),le(null)},gr=()=>{ve&&(ee(ve),le(null),L("form"))},pt=l=>{console.log("deleting",l,N),r?.(l,N.find(Q=>Q.id.toString()===l.toString())?.type),g(Q=>Q.filter(ze=>ze.id!==l))},go=()=>{$(""),k("all"),T("all")};return W==="typeSelection"?(0,Ht.jsx)(io,{onSelectHuman:()=>L("userSelection"),onSelectDigital:()=>L("digitalOptions"),onCancel:()=>L("main")}):W==="userSelection"?(0,Ht.jsx)(ro,{users:b,onUserSelect:We,onCancel:()=>L("typeSelection")}):W==="digitalOptions"?(0,Ht.jsx)(no,{onCloneExisting:()=>L("digitalClone"),onCreateNew:Ze,onCancel:()=>L("typeSelection")}):W==="digitalClone"?(0,Ht.jsx)(ao,{digitalColleagues:O,onColleagueClone:Pe,onCancel:()=>L("digitalOptions")}):W==="form"?(0,Ht.jsx)(Nt,{colleague:V||void 0,onSave:te,onCancel:uo,availableKnowledgeDocuments:d}):W==="view"?(0,Ht.jsx)(Nt,{colleague:ve||void 0,onSave:te,onCancel:fo,readOnly:!0,availableKnowledgeDocuments:d}):(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-8",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsx)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:(0,Ht.jsxs)("div",{className:`space-Ht-6 ${c||""}`,children:[(0,Ht.jsx)(co,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:be}}),(0,Ht.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="human").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="digital").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search colleagues...",value:v,onChange:l=>$(l.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)(vt,{value:E,onValueChange:k,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[180px]",children:(0,Ht.jsx)(bt,{placeholder:"Department"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Departments"}),a.map(l=>(0,Ht.jsx)(Te,{value:l,children:l},l))]})]}),(0,Ht.jsxs)(vt,{value:p,onValueChange:T,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[140px]",children:(0,Ht.jsx)(bt,{placeholder:"Status"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Status"}),(0,Ht.jsx)(Te,{value:"active",children:"Active"}),(0,Ht.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(v||E!=="all"||p!=="all")&&(0,Ht.jsxs)(M,{variant:"outline",onClick:go,className:"gap-2",children:[(0,Ht.jsx)(Y.Filter,{className:"Ht-4 Ht-4"}),"Clear"]})]})})}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)(Ot,{activeTab:H,onTabChange:X,tabOptions:[{value:"all",label:`All (${A.length})`},{value:"human",label:`Human (${Se.length})`},{value:"digital",label:`Digital (${_.length})`}],maxWidth:"400px",gridCols:3}),H==="all"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:A.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},`${l}-${l.id}`))}),H==="human"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i},l.id))}),H==="digital"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},l.id))})]}),A.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:v||E!=="all"||p!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ht.jsxs)(M,{onClick:be,className:"gap-2",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
|
|
5
|
+
"use strict";"use client";var vo=Object.create;var Qe=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty;var yo=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},Pt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!xo.call(e,i)&&i!==o&&Qe(e,i,{get:()=>t[i],enumerable:!(r=bo(t,i))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?vo(wo(e)):{},Pt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),Co=e=>Pt(Qe({},"__esModule",{value:!0}),e);var fr={};yo(fr,{default:()=>po});module.exports=Co(fr);var se=require("react"),Y=require("lucide-react");var Lt=require("clsx");var gt="-",No=e=>{let t=Po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let n=c.split(gt);return n[0]===""&&n.length!==1&&n.shift(),kt(n,t)||So(c)},getConflictingClassGroupIds:(c,n)=>{let f=o[c]||[];return n&&r[c]?[...f,...r[c]]:f}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?kt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(gt);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Rt=/^\[(.+)\]$/,So=e=>{if(Rt.test(e)){let t=Rt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Po=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Do(Object.entries(e.classGroups),o).forEach(([a,c])=>{ft(c,r,a,t)}),r},ft=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:Dt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(Ro(i)){ft(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,c])=>{ft(c,Dt(t,a),o,r)})})},Dt=(e,t)=>{let o=e;return t.split(gt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ro=e=>e.isThemeGetter,Do=(e,t)=>t?e.map(([o,r])=>{let i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,n])=>[t+c,n])):a);return[o,i]}):e,ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return i(a,c),c},set(a,c){o.has(a)?o.set(a,c):i(a,c)}}},Tt="!",To=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,c=n=>{let f=[],d=0,N=0,g;for(let p=0;p<n.length;p++){let T=n[p];if(d===0){if(T===i&&(r||n.slice(p,p+a)===t)){f.push(n.slice(N,p)),N=p+a;continue}if(T==="/"){g=p;continue}}T==="["?d++:T==="]"&&d--}let v=f.length===0?n:n.substring(N),$=v.startsWith(Tt),E=$?v.substring(1):v,k=g&&g>N?g-N:void 0;return{modifiers:f,hasImportantModifier:$,baseClassName:E,maybePostfixModifierPosition:k}};return o?n=>o({className:n,parseClassName:c}):c},Mo=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},Ao=e=>({cache:ko(e.cacheSize),parseClassName:To(e),...No(e)}),Io=/\Ht+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],c=e.trim().split(Io),n="";for(let f=c.length-1;f>=0;f-=1){let d=c[f],{modifiers:N,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:$}=o(d),E=!!$,k=r(E?v.substring(0,$):v);if(!k){if(!E){n=d+(n.length>0?" "+n:n);continue}if(k=r(v),!k){n=d+(n.length>0?" "+n:n);continue}E=!1}let p=Mo(N).join(":"),T=g?p+Tt:p,H=T+k;if(a.includes(H))continue;a.push(H);let X=i(k,E);for(let V=0;V<X.length;++V){let ee=X[V];a.push(T+ee)}n=d+(n.length>0?" "+n:n)}return n};function Bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mt(t))&&(r&&(r+=" "),r+=o);return r}var Mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Eo(e,...t){let o,r,i,a=c;function c(f){let d=t.reduce((N,g)=>g(N),e());return o=Ao(d),r=o.cache.get,i=o.cache.set,a=n,n(f)}function n(f){let d=r(f);if(d)return d;let N=Lo(f,o);return i(f,N),N}return function(){return a(Bo.apply(null,arguments))}}var z=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},At=/^\[(?:([a-z-]+):)?(.+)\]$/i,zo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),Fo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ht|Ht|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>He(e)||Ho.has(e)||zo.test(e),we=e=>Fe(e,"length",Xo),He=e=>!!e&&!Number.isNaN(Number(e)),ut=e=>Fe(e,"number",He),$e=e=>!!e&&Number.isInteger(Number(e)),Wo=e=>e.endsWith("%")&&He(e.slice(0,-1)),C=e=>At.test(e),xe=e=>Fo.test(e),$o=new Set(["length","size","percentage"]),Go=e=>Fe(e,$o,It),Oo=e=>Fe(e,"position",It),_o=new Set(["image","url"]),qo=e=>Fe(e,_o,Qo),Jo=e=>Fe(e,"",Zo),Ge=()=>!0,Fe=(e,t,o)=>{let r=At.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Xo=e=>Ko.test(e)&&!jo.test(e),It=()=>!1,Zo=e=>Uo.test(e),Qo=e=>Vo.test(e);var Yo=()=>{let e=z("colors"),t=z("spacing"),o=z("blur"),r=z("brightness"),i=z("borderColor"),a=z("borderRadius"),c=z("borderSpacing"),n=z("borderWidth"),f=z("contrast"),d=z("grayscale"),N=z("hueRotate"),g=z("invert"),v=z("gap"),$=z("gradientColorStops"),E=z("gradientColorStopPositions"),k=z("inset"),p=z("margin"),T=z("opacity"),H=z("padding"),X=z("saturate"),V=z("scale"),ee=z("sepia"),ve=z("skew"),le=z("space"),b=z("translate"),O=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",C,t],A=()=>[C,t],Se=()=>["",de,we],_=()=>["auto",He,C],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],We=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",C],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[He,C];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[de,we],blur:["none","",xe,C],brightness:te(),borderColor:[e],borderRadius:["none","","full",xe,C],borderSpacing:A(),borderWidth:Se(),contrast:te(),grayscale:Pe(),hueRotate:te(),invert:Pe(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Wo,we],inset:L(),margin:L(),opacity:te(),padding:A(),saturate:te(),scale:te(),sepia:Pe(),skew:te(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"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:[...be(),C]}],overflow:[{overflow:W()}],"overflow-Ht":[{"overflow-Ht":W()}],"overflow-Ht":[{"overflow-Ht":W()}],overscroll:[{overscroll:O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-Ht":[{"inset-Ht":[k]}],"inset-Ht":[{"inset-Ht":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$e,C]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",$e,C]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",$e,C]},C]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[$e,C]},C]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[v]}],"gap-Ht":[{"gap-Ht":[v]}],"gap-Ht":[{"gap-Ht":[v]}],"justify-content":[{justify:["normal",...We()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...We(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...We(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],ht:[{ht:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],Ht:[{Ht:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit"]}],"max-Ht":[{"max-Ht":[C,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],Ht:[{Ht:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ht":[{"max-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ut]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",He,ut]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,we]}],"underline-offset":[{"underline-offset":["auto",de,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),Oo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ht","Ht","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Go]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[$]}],"gradient-via":[{via:[$]}],"gradient-to":[{to:[$]}],rounded:[{rounded:[a]}],"rounded-Ht":[{"rounded-Ht":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[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-Ht":[{border:[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-e":[{"border-e":[n]}],"border-Ht-t":[{"border-t":[n]}],"border-Ht-r":[{"border-r":[n]}],"border-Ht-b":[{"border-b":[n]}],"border-Ht-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...he(),"hidden"]}],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[de,C]}],"outline-Ht":[{outline:[de,we]}],"outline-color":[{outline:[e]}],"ring-Ht":[{ring:Se()}],"ring-Ht-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-Ht":[{"ring-offset":[de,we]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,Jo]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",xe,C]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[g]}],saturate:[{saturate:[X]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-Ht":[{"scale-Ht":[V]}],"scale-Ht":[{"scale-Ht":[V]}],rotate:[{rotate:[$e,C]}],"translate-Ht":[{"translate-Ht":[b]}],"translate-Ht":[{"translate-Ht":[b]}],"skew-Ht":[{"skew-Ht":[ve]}],"skew-Ht":[{"skew-Ht":[ve]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","Ht-resize","Ht-resize","Y-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ht","Ht",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-ht":[{"scroll-ht":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ht","Ht","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ht":[{"touch-pan":["Ht","left","right"]}],"touch-Ht":[{"touch-pan":["Ht","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ht":[{stroke:[de,we,ut]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ht","overflow-Ht"],overscroll:["overscroll-Ht","overscroll-Ht"],inset:["inset-Ht","inset-Ht","start","end","top","right","bottom","left"],"inset-Ht":["right","left"],"inset-Ht":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ht","gap-Ht"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","ht","mr","mb","ml"],mx:["mr","ml"],my:["ht","mb"],size:["Ht","Ht"],"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-Ht","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-Ht":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ht","border-spacing-Ht"],"border-Ht":["border-Ht-Ht","border-Ht-e","border-Ht-t","border-Ht-r","border-Ht-b","border-Ht-l"],"border-Ht-Ht":["border-Ht-r","border-Ht-l"],"border-Ht-Ht":["border-Ht-t","border-Ht-b"],"border-color":["border-color-Ht","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ht":["border-color-r","border-color-l"],"border-color-Ht":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ht","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ht","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-Ht","touch-Ht","touch-pz"],"touch-Ht":["touch"],"touch-Ht":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ye=Eo(Yo);function m(...e){return Ye((0,Lt.clsx)(e))}var Bt=require("@radix-ui/react-slot"),Et=require("class-variance-authority"),zt=q(require("react")),Ht=require("react/jsx-runtime"),er=(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:"Ht-10 px-4 py-2",icon:"Ht-10 Ht-10",lg:"Ht-11 rounded px-8",sm:"Ht-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"}}}),M=zt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,Ht.jsx)(e?Bt.Slot:"button",{className:m(er({className:t,size:o,variant:r})),ref:a,...i}));M.displayName="Button";var Re=q(require("react"));var I=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var K=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex flex-col space-Ht-1.5 p-6",e),...t}));K.displayName="CardHeader";var G=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var tr=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));tr.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("p-6 pt-0",e),...t}));B.displayName="CardContent";var or=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex items-center p-6 pt-0",e),...t}));or.displayName="CardFooter";var Ft=q(require("react"));var oe=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,Ht.jsx)("input",{type:t,className:m("flex Ht-9 Ht-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}));oe.displayName="Input";var P=q(require("@radix-ui/react-select")),ye=q(require("react")),vt=P.Root;var bt=P.Value,et=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Trigger,{className:m("flex Ht-10 Ht-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,Ht.jsx)(P.Icon,{asChild:!0,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 opacity-50"})})]}));et.displayName=P.Trigger.displayName;var jt=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronUp,{className:"Ht-4 Ht-4"})}));jt.displayName=P.ScrollUpButton.displayName;var Ut=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4"})}));Ut.displayName=P.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Ht.jsx)(P.Portal,{children:(0,Ht.jsxs)(P.Content,{className:m("relative z-50 max-Ht-96 min-Ht-[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-Ht-1 data-[side=left]:-translate-Ht-1 data-[side=right]:translate-Ht-1 data-[side=top]:-translate-Ht-1",t),position:o,ref:i,...r,children:[(0,Ht.jsx)(jt,{}),(0,Ht.jsx)(P.Viewport,{className:m("p-1",o==="popper"&&"Ht-[var(--radix-select-trigger-height)] Ht-full min-Ht-[var(--radix-select-trigger-width)]"),children:e}),(0,Ht.jsx)(Ut,{})]})}));tt.displayName=P.Content.displayName;var rr=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));rr.displayName=P.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Item,{className:m("relative flex Ht-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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(P.ItemIndicator,{children:(0,Ht.jsx)(Y.Check,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)(P.ItemText,{children:e})]}));Te.displayName=P.Item.displayName;var ar=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Separator,{className:m("-mx-1 my-1 Ht-px bg-muted",e),ref:o,...t}));ar.displayName=P.Separator.displayName;var ht=require("motion/react");var Me=q(require("@radix-ui/react-tabs"));function Vt({className:e,...t}){return(0,Ht.jsx)(Me.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function Wt({className:e,...t}){return(0,Ht.jsx)(Me.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex Ht-9 Ht-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function $t({className:e,...t}){return(0,Ht.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:m("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 Ht-[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 ce=q(require("react")),R=q(require("@radix-ui/react-dropdown-menu")),Ke=require("@radix-ui/react-icons");var rt=R.Root,at=R.Trigger;var ir=ce.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ht.jsxs)(R.SubTrigger,{ref:i,className:m("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,Ht.jsx)(Ke.ChevronRightIcon,{className:"ml-auto"})]}));ir.displayName=R.SubTrigger.displayName;var nr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.SubContent,{ref:o,className:m("z-50 min-Ht-[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}));nr.displayName=R.SubContent.displayName;var Oe=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(R.Portal,{children:(0,Ht.jsx)(R.Content,{ref:r,sideOffset:t,className:m("z-50 min-Ht-[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})}));Oe.displayName=R.Content.displayName;var Ae=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Item,{ref:r,className:m("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}));Ae.displayName=R.Item.displayName;var sr=ce.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ht.jsxs)(R.CheckboxItem,{ref:i,className:m("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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.CheckIcon,{className:"Ht-4 Ht-4"})})}),t]}));sr.displayName=R.CheckboxItem.displayName;var lr=ce.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(R.RadioItem,{ref:r,className:m("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,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.DotFilledIcon,{className:"Ht-4 Ht-4 fill-current"})})}),t]}));lr.displayName=R.RadioItem.displayName;var dr=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));dr.displayName=R.Label.displayName;var cr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.Separator,{ref:o,className:m("-mx-1 my-1 Ht-px bg-muted",e),...t}));cr.displayName=R.Separator.displayName;var mr=({className:e,...t})=>(0,Ht.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});mr.displayName="DropdownMenuShortcut";function Ot({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let c=o.find(n=>n.value===e);return(0,Ht.jsxs)(ht.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Ht:-20},animate:{opacity:1,Ht:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ht.jsx)("div",{className:"hidden lg:block",children:(0,Ht.jsx)(Vt,{value:e,onValueChange:t,children:(0,Ht.jsx)(Wt,{className:"grid Ht-full rounded-2xl p-0 Ht-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ht.jsx)($t,{value:n.value,className:"Ht-full Ht-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:n.label})},n.value))})})}),(0,Ht.jsx)("div",{className:"lg:hidden",children:(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsxs)(M,{variant:"outline",className:"rounded-2xl min-Ht-[140px] justify-between",children:[c?.label||"Select",(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 ml-2"})]})}),(0,Ht.jsx)(Oe,{align:"center",className:"Ht-[180px]",children:o.map(n=>(0,Ht.jsx)(Ae,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var it=q(require("react")),me=q(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Root,{ref:o,className:m("relative flex Ht-10 Ht-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=me.Root.displayName;var wt=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Image,{ref:o,className:m("aspect-square Ht-full Ht-full",e),...t}));wt.displayName=me.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Fallback,{ref:o,className:m("flex Ht-full Ht-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=me.Fallback.displayName;var pr=(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 re({className:e,variant:t,...o}){return(0,Ht.jsx)("div",{className:m(pr({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:c}){let[n,f]=(0,se.useState)(!1),d=v=>{switch(v){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},N=v=>{switch(v){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=v=>{if(!v)return"Never";let E=Math.floor((new Date().getTime()-v.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}m ago`:E<1440?`${Math.floor(E/60)}Ht ago`:`${Math.floor(E/1440)}d ago`};return(0,Ht.jsxs)(I,{className:m("hover:shadow-md transition-shadow",a&&"p-2",c),children:[(0,Ht.jsx)(K,{className:m("pb-3",a&&"pb-2"),children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)("div",{className:"relative",children:(0,Ht.jsxs)(Ie,{className:m("Ht-12 Ht-12",a&&"Ht-8 Ht-8"),children:[(0,Ht.jsx)(wt,{src:"/placeholder.svg",alt:e.name||"name"}),(0,Ht.jsx)(Le,{children:e.name?.split(" ").map(v=>v[0]).join("")})]})}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)("h3",{className:m("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ht.jsx)(Y.Bot,{className:m("Ht-4 Ht-4 text-blue-500",a&&"Ht-3 Ht-3")}):(0,Ht.jsx)(Y.User,{className:m("Ht-4 Ht-4 text-green-500",a&&"Ht-3 Ht-3")})]}),(0,Ht.jsx)("p",{className:m("text-sm text-muted-foreground truncate",a&&"text-xs")}),!a&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 ht-1"})]})]}),i&&(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsx)(M,{variant:"ghost",size:"icon",className:m("Ht-8 Ht-8",a&&"Ht-6 Ht-6"),children:(0,Ht.jsx)(Y.MoreHorizontal,{className:m("Ht-4 Ht-4",a&&"Ht-3 Ht-3")})})}),(0,Ht.jsxs)(Oe,{align:"end",children:[e.type==="digital"&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,Ht.jsx)(Y.Settings,{className:"Ht-4 Ht-4 mr-2"}),"View Details"]}),(0,Ht.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4 mr-2"}),"Edit"]})]}),(0,Ht.jsxs)(Ae,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,Ht.jsx)(Y.Trash2,{className:"Ht-4 Ht-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,Ht.jsxs)(B,{className:"pt-0",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[e.type==="human"&&(0,Ht.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ht.jsx)(Y.Mail,{className:"Ht-3 Ht-3"}),(0,Ht.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 text-muted-foreground",children:(0,Ht.jsx)("span",{children:e.description})})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"ht-3",children:(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,n?e.capabilities.length:2).map(v=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:typeof v.value=="number"?v.value:v.value.name},typeof v.value=="number"?v.value:v.value.name)),(e.capabilities?.length||0)>2&&(0,Ht.jsx)(M,{variant:"ghost",size:"sm",className:"Ht-5 px-2 text-xs",onClick:()=>f(!n),children:n?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Xt=q(require("react")),xt=q(require("@radix-ui/react-label"));var ur=(0,Et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pe=Xt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(xt.Root,{ref:o,className:m(ur(),e),...t}));pe.displayName=xt.Root.displayName;var Yt=q(require("react")),_e=Yt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("textarea",{className:m("flex min-Ht-[80px] Ht-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}));_e.displayName="Textarea";var yt=q(require("react")),ae=q(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(ae.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,Ht.jsx)(ae.Viewport,{className:"Ht-full Ht-full rounded-[inherit]",children:t}),(0,Ht.jsx)(to,{}),(0,Ht.jsx)(ae.Corner,{})]}));Ct.displayName=ae.Root.displayName;var to=yt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ht.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"Ht-full Ht-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ht-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ht.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));to.displayName=ae.ScrollAreaScrollbar.displayName;function oo({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:c=!1}){let[n,f]=(0,se.useState)(""),[d,N]=(0,se.useState)([]),[g,v]=(0,se.useState)(!1);(0,se.useEffect)(()=>{if(!n.trim()){N([]),v(!1);return}let p=o.filter(T=>{if(e.map(V=>V.id).includes(T.id))return!1;let X=n.toLowerCase();return T.title.toLowerCase().includes(X)||T.description?.toLowerCase().includes(X)||T.tags?.some(V=>V.toLowerCase().includes(X))||Object.values(T.metadata||{}).some(V=>String(V).toLowerCase().includes(X))});N(p),v(!0)},[n,e,o]);let $=p=>{a&&e.length>=a&&e.pop(),t([...e,p]),f(""),v(!1)},E=p=>{console.log("doc",p,e),t(e.filter(T=>T.id!==p))},k=!a||e.length<a;return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:r}),(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{value:n,onChange:p=>f(p.target.value),placeholder:k?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:c||!k,onFocus:()=>n&&v(!0)})]}),g&&d.length>0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1 max-Ht-60",children:(0,Ht.jsx)(Ct,{className:"Ht-full",children:(0,Ht.jsx)(B,{className:"p-2",children:d.map(p=>(0,Ht.jsx)(M,{variant:"ghost",className:"Ht-full justify-start Ht-auto p-3 mb-1",onClick:()=>$(p),disabled:c,children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3 Ht-full",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"text-left flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm truncate",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1 line-clamp-2",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1 ht-2",children:[p.tags.slice(0,3).map(T=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:T},T)),p.tags.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",p.tags.length-3," more"]})]})]})]})},p.id))})})}),g&&n&&d.length===0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1",children:(0,Ht.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',n,'"']})})]}),e.length>0&&(0,Ht.jsx)("div",{className:"space-Ht-2",children:(0,Ht.jsx)("div",{className:"space-Ht-2",children:e.map(p=>(0,Ht.jsx)(I,{className:"p-3",children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1 ht-2",children:p.tags.map(T=>(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:[(0,Ht.jsx)(Y.Tag,{className:"Ht-3 Ht-3 mr-1"}),T]},T))})]}),(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-6 Ht-6 flex-shrink-0",onClick:()=>E(p.id),disabled:c,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]})},p.id))})}),g&&(0,Ht.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>v(!1)})]})}function Nt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:c="Cancel",readOnly:n=!1,availableKnowledgeDocuments:f=[]}){let[d,N]=(0,se.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,coreKnowledge:null,...e}),[g,v]=(0,se.useState)(""),[$,E]=(0,se.useState)(""),[k,p]=(0,se.useState)(!n);(0,se.useEffect)(()=>{e&&N(e)},[e]);let T=b=>{b.preventDefault();let O={id:d.id||parseInt(Date.now().toString()),name:d.name,type:"digital",description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],capabilityLevel:d.capabilityLevel||0,coreKnowledge:d.coreKnowledge||null};t(O)},H=(b,O,W)=>{if(!O.trim())return;let L=d[b]||[];N({...d,[b]:[...L,O.trim()]}),W("")},X=(b,O)=>{let W=d[b]||[];N({...d,[b]:W.filter((L,A)=>A!==O)})},V=b=>{b.preventDefault(),p(!k)},ee=(b,O,W,L,A)=>{let Se=d[b]||[];return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:O}),k&&(0,Ht.jsxs)("div",{className:"flex gap-2",children:[(0,Ht.jsx)(oe,{value:W,onChange:_=>L(_.target.value),placeholder:A,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),H(b,W,L))},disabled:r}),(0,Ht.jsx)(M,{type:"button",variant:"outline",size:"icon",onClick:()=>H(b,W,L),disabled:r,children:(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"})})]}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((_,be)=>(0,Ht.jsxs)(re,{className:"gap-1",children:[_,k&&(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-4 Ht-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(b,be),disabled:r,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]},`${b}-${be}-${_}`))})]})},ve=i||(k?e?"Edit Colleague":"Add New Colleague":"View Colleague"),le=a||(e?"Update Colleague":"Add Colleague");return(0,Ht.jsxs)(I,{className:"m-8 Ht-full max-Ht-4xl mx-auto overflow-Ht-scroll no-scrollbar",children:[(0,Ht.jsx)(K,{children:(0,Ht.jsxs)(G,{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-5 Ht-5"}),ve]})}),(0,Ht.jsx)(B,{children:(0,Ht.jsxs)("form",{onSubmit:T,className:"space-Ht-6",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"name",children:"Name *"}),(0,Ht.jsx)(oe,{id:"name",value:d.name||"",onChange:b=>N({...d,name:b.target.value}),required:!0,disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"description",children:"Description"}),(0,Ht.jsx)(_e,{id:"description",value:d.description||"",onChange:b=>N({...d,description:b.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!k})]})]}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ht.jsx)(_e,{id:"jobDescription",value:d.jobDescription||"",onChange:b=>N({...d,jobDescription:b.target.value}),rows:4,required:d.type==="digital",disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ht.jsx)(_e,{id:"workInstructions",value:d.workInstructions||"",onChange:b=>N({...d,workInstructions:b.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!k})]}),ee("capabilities","Capabilities",$,E,"Add capability"),(0,Ht.jsx)(oo,{selectedDocuments:d.coreKnowledge?[{id:d.coreKnowledge?.id?.toString(),title:d.coreKnowledge?.name,format:"markdown",content:d.coreKnowledge?.content||"",createdAt:new Date(d.coreKnowledge?.createdAt),description:d.coreKnowledge?.description||"",metadata:d.coreKnowledge?.metadata||{},updatedAt:new Date(d.coreKnowledge?.updatedAt)}]:[],onDocumentsChange:b=>{let O={createdAt:b[0]?.createdAt.toISOString(),id:parseInt(b[0]?.id),name:b[0]?.title,source:"payload",updatedAt:(b[0]?.updatedAt||new Date).toISOString()};console.log(b),N({...d,coreKnowledge:b&&b.length>0?O:void 0})},label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:1,disabled:r||!k,availableDocuments:f.map(b=>({id:b.id.toString(),title:b.name,name:b.name,format:"markdown",content:b.content||"",createdAt:new Date(b.createdAt),source:b.source,description:b.description||"",metadata:b.metadata||{},updatedAt:new Date(b.updatedAt)}))})]}),(0,Ht.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ht.jsx)(M,{type:"button",variant:"outline",onClick:o,disabled:r,children:k?c:"Close"}),k?(0,Ht.jsx)(M,{type:"submit",disabled:r,children:r?"Saving...":le}):(0,Ht.jsxs)(M,{type:"button",onClick:V,disabled:r,className:"gap-2",children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4"}),"Edit"]})]})]})})]})}function ro({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,se.useState)(""),c=(0,se.useMemo)(()=>e.filter(f=>f.name?.toLowerCase().includes(i.toLowerCase())||f.email.toLowerCase().includes(i.toLowerCase())),[e,i]),n=f=>{t(f)};return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ht.jsx)(I,{className:"container",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:f=>a(f.target.value),className:"pl-9"})]})})})})}),(0,Ht.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(f=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r===f.id?"ring-2 ring-primary":""}`,onClick:()=>n(f),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{children:(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg",children:f.name})})]}),r===f.id&&(0,Ht.jsx)(Y.Check,{className:"Ht-5 Ht-5 text-primary"})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ht.jsx)("p",{className:"text-sm font-medium",children:f.email})]}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},f.id))}),c.length===0&&(0,Ht.jsx)(I,{className:"container ht-4",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.User,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function ao({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,se.useState)(""),[c,n]=(0,se.useState)("all"),f=(0,se.useMemo)(()=>e.filter(g=>g.name.toLowerCase().includes(i.toLowerCase())||g.jobDescription?.toLowerCase().includes(i.toLowerCase())||g.workInstructions?.toLowerCase().includes(i.toLowerCase())),[e,i,c]),d=g=>{let v={...g,name:`${g.name} (Copy)`};t(v)},N=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:g=>a(g.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)("select",{value:c,onChange:g=>n(g.target.value),className:"Ht-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ht.jsx)("option",{value:"all",children:"All Status"}),(0,Ht.jsx)("option",{value:"active",children:"Active"}),(0,Ht.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ht.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:f.map(g=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===g.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>d(g),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{className:"bg-blue-100",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg flex items-center gap-2",children:g.name})})]}),(0,Ht.jsxs)(M,{size:"sm",variant:"outline",className:"gap-2 Ht-8",onClick:v=>{v.stopPropagation(),d(g)},children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-3 Ht-3"}),"Clone"]})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ht.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1",children:g.capabilities.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})})]}),(0,Ht.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),g.workInstructions&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ht.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),f.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function io({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.User,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Browse existing users"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Select User"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-8 Ht-8 text-purple-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Create from templates"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function no({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Copy,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Sparkles,{className:"Ht-8 Ht-8 text-green-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Custom job description"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Sparkles,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function so(e,t){let[o,r]=(0,se.useState)(()=>{if(typeof window>"Ht")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=a=>{try{r(a),typeof window<"Ht"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,se.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function co({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:c,className:n}){let[f,d]=so(`hero-section-minimized-${e.replace(/\Ht+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||f;return(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:20},animate:{opacity:1,Ht:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${n||""}`,children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ht.jsx)(re,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ht.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Ht.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!f),style:{lineHeight:0},children:f?(0,Ht.jsx)(ct.FaChevronDown,{size:22}):(0,Ht.jsx)(ct.FaChevronUp,{size:22})})]})]}),!N&&(0,Ht.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("p",{className:"max-Ht-[600px] text-white/80",children:t}),(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Ht.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),c&&(0,Ht.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function St(...e){return Ye((0,Lt.clsx)(e))}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:n=[],existingDigitalColleagues:f=[],availableKnowledgeDocuments:d=[]}){let[N,g]=(0,se.useState)(e||[]),[v,$]=(0,se.useState)(""),[E,k]=(0,se.useState)("all"),[p,T]=(0,se.useState)("all"),[H,X]=(0,se.useState)("all"),[V,ee]=(0,se.useState)(null),[ve,le]=(0,se.useState)(null);(0,se.useEffect)(()=>{g(e||[])},[e]);let b=Array.isArray(n)?n:[],O=Array.isArray(f)?f:[],[W,L]=(0,se.useState)("main"),A=N.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(v.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(v.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(v.toLowerCase())),Se=A.filter(l=>l.type==="human"),_=A.filter(l=>l.type==="digital"),be=()=>{L("typeSelection")},he=l=>{l.type==="digital"&&(ee(l),L("form")),console.log("Editing colleague:",l),o?.(l)},Ee=l=>{l.type==="digital"&&(le(l),L("view"))},We=l=>{let Q={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};g(ze=>[...ze,Q]),t?.(Q),L("main")},Pe=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"}),L("main")},Ze=()=>{ee(null),L("form")},te=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}V?(g(Q=>Q.map(ze=>ze.id===l.id?{...l,type:"digital"}:ze)),o?.({...l,type:"digital"})):(g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"})),L("main"),ee(null)},uo=()=>{L("main"),ee(null),le(null)},fo=()=>{L("main"),le(null)},gr=()=>{ve&&(ee(ve),le(null),L("form"))},pt=l=>{console.log("deleting",l,N),r?.(l,N.find(Q=>Q.id.toString()===l.toString())?.type),g(Q=>Q.filter(ze=>ze.id!==l))},go=()=>{$(""),k("all"),T("all")};return W==="typeSelection"?(0,Ht.jsx)(io,{onSelectHuman:()=>L("userSelection"),onSelectDigital:()=>L("digitalOptions"),onCancel:()=>L("main")}):W==="userSelection"?(0,Ht.jsx)(ro,{users:b,onUserSelect:We,onCancel:()=>L("typeSelection")}):W==="digitalOptions"?(0,Ht.jsx)(no,{onCloneExisting:()=>L("digitalClone"),onCreateNew:Ze,onCancel:()=>L("typeSelection")}):W==="digitalClone"?(0,Ht.jsx)(ao,{digitalColleagues:O,onColleagueClone:Pe,onCancel:()=>L("digitalOptions")}):W==="form"?(0,Ht.jsx)(Nt,{colleague:V||void 0,onSave:te,onCancel:uo,availableKnowledgeDocuments:d}):W==="view"?(0,Ht.jsx)(Nt,{colleague:ve||void 0,onSave:te,onCancel:fo,readOnly:!0,availableKnowledgeDocuments:d}):(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-8",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsx)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:(0,Ht.jsxs)("div",{className:`space-Ht-6 ${c||""}`,children:[(0,Ht.jsx)(co,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:be}}),(0,Ht.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="human").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="digital").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search colleagues...",value:v,onChange:l=>$(l.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)(vt,{value:E,onValueChange:k,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[180px]",children:(0,Ht.jsx)(bt,{placeholder:"Department"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Departments"}),a.map(l=>(0,Ht.jsx)(Te,{value:l,children:l},l))]})]}),(0,Ht.jsxs)(vt,{value:p,onValueChange:T,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[140px]",children:(0,Ht.jsx)(bt,{placeholder:"Status"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Status"}),(0,Ht.jsx)(Te,{value:"active",children:"Active"}),(0,Ht.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(v||E!=="all"||p!=="all")&&(0,Ht.jsxs)(M,{variant:"outline",onClick:go,className:"gap-2",children:[(0,Ht.jsx)(Y.Filter,{className:"Ht-4 Ht-4"}),"Clear"]})]})})}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)(Ot,{activeTab:H,onTabChange:X,tabOptions:[{value:"all",label:`All (${A.length})`},{value:"human",label:`Human (${Se.length})`},{value:"digital",label:`Digital (${_.length})`}],maxWidth:"400px",gridCols:3}),H==="all"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:A.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},`${l}-${l.id}`))}),H==="human"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i},l.id))}),H==="digital"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},l.id))})]}),A.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:v||E!=="all"||p!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ht.jsxs)(M,{onClick:be,className:"gap-2",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-G27V7B6H.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-Y7H3EUBR.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-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-4CHIFK3W.mjs";import"../../../chunk-W2LPR7SX.mjs";import"../../../chunk-U2OXF7PJ.mjs";import"../../../chunk-PE5L5LZL.mjs";import"../../../chunk-V4W2JDQB.mjs";import"../../../chunk-TZCRIKIJ.mjs";import"../../../chunk-N6CZEXLZ.mjs";import"../../../chunk-M456UF2N.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-4CHIFK3W.mjs";import"../../../chunk-W2LPR7SX.mjs";import"../../../chunk-U2OXF7PJ.mjs";import"../../../chunk-PE5L5LZL.mjs";import"../../../chunk-V4W2JDQB.mjs";import"../../../chunk-TZCRIKIJ.mjs";import"../../../chunk-N6CZEXLZ.mjs";import"../../../chunk-M456UF2N.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-O5P35LEY.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-EGEO3FNE.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-UPRS7OYQ.mjs";import"../../../chunk-VGWDYD6Z.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-CJ6APTVT.mjs";import"../../../chunk-YRMNCHFO.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.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{a as default};
|