cortex-react-components 2.13.8 → 2.13.9
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-NPGGDQ6F.mjs → chunk-2GM2LPLB.mjs} +1 -1
- package/dist/{chunk-6FHRZHAJ.mjs → chunk-2HWSTGAP.mjs} +1 -1
- package/dist/{chunk-B2TBKNIJ.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
- package/dist/{chunk-FX6IXEMQ.mjs → chunk-4SRUEQTP.mjs} +1 -1
- package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
- package/dist/{chunk-SPAOEUCG.mjs → chunk-7OMPPFGG.mjs} +1 -1
- package/dist/{chunk-M527EJIX.mjs → chunk-AMVJPDM3.mjs} +1 -1
- package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
- package/dist/{chunk-KY3ELFX5.mjs → chunk-BQQ4V4PX.mjs} +1 -1
- package/dist/chunk-CJDUN6R4.mjs +4 -0
- package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
- package/dist/{chunk-MAZGVZJN.mjs → chunk-DMCFEJ2C.mjs} +1 -1
- package/dist/{chunk-7V2BDLRI.mjs → chunk-DPZHVBGG.mjs} +1 -1
- package/dist/{chunk-QWFFSMKK.mjs → chunk-F64CA5CH.mjs} +1 -1
- package/dist/{chunk-K4MFTVNB.mjs → chunk-FEWOSBUJ.mjs} +1 -1
- package/dist/{chunk-FRXZ2OKW.mjs → chunk-FYQBRCQM.mjs} +1 -1
- package/dist/chunk-G34OMFQI.mjs +4 -0
- package/dist/{chunk-57PJ7CHJ.mjs → chunk-GAZHKHGB.mjs} +1 -1
- package/dist/{chunk-VBSFVJM5.mjs → chunk-GETYSIZV.mjs} +1 -1
- package/dist/{chunk-DHXQXFOB.mjs → chunk-GLBQHEMQ.mjs} +1 -1
- package/dist/chunk-GS3P2V76.mjs +4 -0
- package/dist/{chunk-S4ES6P3Y.mjs → chunk-HDKHF3EA.mjs} +1 -1
- package/dist/{chunk-N52FSTLG.mjs → chunk-HKMNAXLM.mjs} +1 -1
- package/dist/{chunk-LAQHJZ32.mjs → chunk-JGX2G2OC.mjs} +1 -1
- package/dist/{chunk-MUHR5KA5.mjs → chunk-KZAYLEFB.mjs} +1 -1
- package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
- package/dist/{chunk-BDDEMCAH.mjs → chunk-MFCVMJBO.mjs} +1 -1
- package/dist/{chunk-RUZVSK25.mjs → chunk-MO4HRQEL.mjs} +1 -1
- package/dist/{chunk-4IVQWIYV.mjs → chunk-OQCMTGML.mjs} +1 -1
- package/dist/{chunk-Q7KKN6MH.mjs → chunk-P6OSMPUQ.mjs} +1 -1
- package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
- package/dist/{chunk-2VOOH4YJ.mjs → chunk-PNUBVBSR.mjs} +1 -1
- package/dist/{chunk-TUACRDU3.mjs → chunk-PTZT4QJW.mjs} +1 -1
- package/dist/{chunk-3MCZBHGA.mjs → chunk-QQFIVSBW.mjs} +1 -1
- package/dist/chunk-R5SXUWYU.mjs +4 -0
- package/dist/{chunk-6DQ7FEQQ.mjs → chunk-R6AYIVIR.mjs} +1 -1
- package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
- package/dist/{chunk-75XBZHOC.mjs → chunk-U3FYDDE2.mjs} +1 -1
- package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
- package/dist/chunk-Y7H3EUBR.mjs +4 -0
- package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
- package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
- package/dist/components/AdvancedComponents/user-selection.js +1 -1
- package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
- package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-form.d.ts +1 -1
- package/dist/components/DigitalColleagues/colleague-form.js +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -2
- package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.d.ts +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.d.ts +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/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.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/SectionHero/index.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/Other/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/index.js +14 -14
- 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/index.js +19 -19
- 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/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-LVXEY6OU.mjs +0 -4
- package/dist/chunk-QW5KPNB3.mjs +0 -4
- package/dist/chunk-USOGZB6R.mjs +0 -4
- package/dist/chunk-XADBBCGL.mjs +0 -4
- package/dist/chunk-ZB7RDJRP.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-JGX2G2OC.mjs";import"../../../chunk-MDBYZZXI.mjs";import"../../../chunk-R5SXUWYU.mjs";import"../../../chunk-XHXUT3LD.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-MFE4VZPC.mjs";import"../../../chunk-I4GYQZGM.mjs";import"../../../chunk-ATBKMJU6.mjs";import"../../../chunk-K5MJYNCD.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-5ROLUQ45.mjs";import"../../../chunk-KO6JUP2L.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-DSSHQ6K7.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-QG4QCB5I.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-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};
|
|
@@ -3,7 +3,7 @@ interface ColleaguesViewProps {
|
|
|
3
3
|
initialColleagues?: Colleague[];
|
|
4
4
|
onColleagueAdd?: (colleague: Colleague) => void;
|
|
5
5
|
onColleagueEdit?: (colleague: Colleague) => void;
|
|
6
|
-
onColleagueDelete?: (colleague: string, type: '
|
|
6
|
+
onColleagueDelete?: (colleague: string, type: 'human' | 'digital') => void;
|
|
7
7
|
compactView?: boolean;
|
|
8
8
|
departments?: string[];
|
|
9
9
|
className?: string;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var Qt=Object.create;var $e=Object.defineProperty;var Yt=Object.getOwnPropertyDescriptor;var eo=Object.getOwnPropertyNames;var to=Object.getPrototypeOf,oo=Object.prototype.hasOwnProperty;var ro=(e,t)=>{for(var o in t)$e(e,o,{get:t[o],enumerable:!0})},pt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eo(t))!oo.call(e,i)&&i!==o&&$e(e,i,{get:()=>t[i],enumerable:!(r=Yt(t,i))||r.enumerable});return e};var J=(e,t,o)=>(o=e!=null?Qt(to(e)):{},pt(t||!e||!e.__esModule?$e(o,"default",{value:e,enumerable:!0}):o,e)),ao=e=>pt($e({},"__esModule",{value:!0}),e);var Zo={};ro(Zo,{default:()=>Jt});module.exports=ao(Zo);var ee=require("react"),X=require("lucide-react");var wt=require("clsx");var it="-",io=e=>{let t=so(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:m=>{let s=m.split(it);return s[0]===""&&s.length!==1&&s.shift(),gt(s,t)||no(m)},getConflictingClassGroupIds:(m,s)=>{let N=o[m]||[];return s&&r[m]?[...N,...r[m]]:N}}},gt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?gt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(it);return t.validators.find(({validator:m})=>m(a))?.classGroupId},ut=/^\[(.+)\]$/,no=e=>{if(ut.test(e)){let t=ut.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},so=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return co(Object.entries(e.classGroups),o).forEach(([a,m])=>{at(m,r,a,t)}),r},at=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:ft(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(lo(i)){at(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,m])=>{at(m,ft(t,a),o,r)})})},ft=(e,t)=>{let o=e;return t.split(it).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},lo=e=>e.isThemeGetter,co=(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(([m,s])=>[t+m,s])):a);return[o,i]}):e,mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,m)=>{o.set(a,m),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let m=o.get(a);if(m!==void 0)return m;if((m=r.get(a))!==void 0)return i(a,m),m},set(a,m){o.has(a)?o.set(a,m):i(a,m)}}},vt="!",po=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,m=s=>{let N=[],p=0,C=0,u;for(let k=0;k<s.length;k++){let I=s[k];if(p===0){if(I===i&&(r||s.slice(k,k+a)===t)){N.push(s.slice(C,k)),C=k+a;continue}if(I==="/"){u=k;continue}}I==="["?p++:I==="]"&&p--}let y=N.length===0?s:s.substring(C),G=y.startsWith(vt),A=G?y.substring(1):y,P=u&&u>C?u-C:void 0;return{modifiers:N,hasImportantModifier:G,baseClassName:A,maybePostfixModifierPosition:P}};return o?s=>o({className:s,parseClassName:m}):m},uo=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},fo=e=>({cache:mo(e.cacheSize),parseClassName:po(e),...io(e)}),go=/\s+/,vo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],m=e.trim().split(go),s="";for(let N=m.length-1;N>=0;N-=1){let p=m[N],{modifiers:C,hasImportantModifier:u,baseClassName:y,maybePostfixModifierPosition:G}=o(p),A=!!G,P=r(A?y.substring(0,G):y);if(!P){if(!A){s=p+(s.length>0?" "+s:s);continue}if(P=r(y),!P){s=p+(s.length>0?" "+s:s);continue}A=!1}let k=uo(C).join(":"),I=u?k+vt:k,F=I+P;if(a.includes(F))continue;a.push(F);let te=i(P,A);for(let $=0;$<te.length;++$){let oe=te[$];a.push(I+oe)}s=p+(s.length>0?" "+s:s)}return s};function bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=bt(t))&&(r&&(r+=" "),r+=o);return r}var bt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=bt(e[r]))&&(o&&(o+=" "),o+=t);return o};function ho(e,...t){let o,r,i,a=m;function m(N){let p=t.reduce((C,u)=>u(C),e());return o=fo(p),r=o.cache.get,i=o.cache.set,a=s,s(N)}function s(N){let p=r(N);if(p)return p;let C=vo(N,o);return i(N,C),C}return function(){return a(bo.apply(null,arguments))}}var M=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},ht=/^\[(?:([a-z-]+):)?(.+)\]$/i,yo=/^\d+\/\d+$/,xo=new Set(["px","full","screen"]),wo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Co=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|St|i|St|min|max))|\St(calc|min|max|clamp)\(.+\)|^0$/,No=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Po=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)St-?((\d+)?\.?(\d+)[a-z]+|0)/,So=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ie=e=>De(e)||xo.has(e)||yo.test(e),ce=e=>Te(e,"length",Lo),De=e=>!!e&&!Number.isNaN(Number(e)),rt=e=>Te(e,"number",De),Be=e=>!!e&&Number.isInteger(Number(e)),Ro=e=>e.endsWith("%")&&De(e.slice(0,-1)),v=e=>ht.test(e),me=e=>wo.test(e),Do=new Set(["length","size","percentage"]),To=e=>Te(e,Do,yt),ko=e=>Te(e,"position",yt),Mo=new Set(["image","url"]),Io=e=>Te(e,Mo,Bo),Ao=e=>Te(e,"",Eo),ze=()=>!0,Te=(e,t,o)=>{let r=ht.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Lo=e=>Co.test(e)&&!No.test(e),yt=()=>!1,Eo=e=>Po.test(e),Bo=e=>So.test(e);var zo=()=>{let e=M("colors"),t=M("spacing"),o=M("blur"),r=M("brightness"),i=M("borderColor"),a=M("borderRadius"),m=M("borderSpacing"),s=M("borderWidth"),N=M("contrast"),p=M("grayscale"),C=M("hueRotate"),u=M("invert"),y=M("gap"),G=M("gradientColorStops"),A=M("gradientColorStopPositions"),P=M("inset"),k=M("margin"),I=M("opacity"),F=M("padding"),te=M("saturate"),$=M("scale"),oe=M("sepia"),re=M("skew"),Ae=M("space"),D=M("translate"),z=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",v,t],S=()=>[v,t],ve=()=>["",ie,ce],U=()=>["auto",De,v],ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],de=()=>["solid","dashed","dotted","double","none"],tt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["start","end","center","between","around","evenly","stretch"],be=()=>["","0",v],Ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Q=()=>[De,v];return{cacheSize:500,separator:":",theme:{colors:[ze],spacing:[ie,ce],blur:["none","",me,v],brightness:Q(),borderColor:[e],borderRadius:["none","","full",me,v],borderSpacing:S(),borderWidth:ve(),contrast:Q(),grayscale:be(),hueRotate:Q(),invert:be(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Ro,ce],inset:W(),margin:W(),opacity:Q(),padding:S(),saturate:Q(),scale:Q(),sepia:be(),skew:Q(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":Ee()}],"break-before":[{"break-before":Ee()}],"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:[...ae(),v]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Be,v]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:be()}],shrink:[{shrink:be()}],order:[{order:["first","last","none",Be,v]}],"grid-cols":[{"grid-cols":[ze]}],"col-start-end":[{col:["auto",{span:["full",Be,v]},v]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[ze]}],"row-start-end":[{row:["auto",{span:[Be,v]},v]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[Ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ae]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[me]},me]}],St:[{St:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-St":[{"min-St":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-St":[{"max-St":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",me,ce]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rt]}],"font-family":[{font:[ze]}],"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",v]}],"line-clamp":[{"line-clamp":["none",De,rt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ie,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ie,ce]}],"underline-offset":[{"underline-offset":["auto",ie,v]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],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",v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ae(),ko]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",To]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","St","bl","l","tl"]},Io]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[G]}],"gradient-via":[{via:[G]}],"gradient-to":[{to:[G]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-St":[{"rounded-St":[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-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-St":[{"border-St":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...de(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:de()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-St":[{"border-St":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...de()]}],"outline-offset":[{"outline-offset":[ie,v]}],"outline-w":[{outline:[ie,ce]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[ie,ce]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",me,Ao]}],"shadow-color":[{shadow:[ze]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...tt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":tt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",me,v]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[C]}],invert:[{invert:[u]}],saturate:[{saturate:[te]}],sepia:[{sepia:[oe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[C]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[Be,v]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],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","St-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ie,ce,rt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","St"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-St","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-St":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-St","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-St"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-St","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-St"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var xt=ho(zo);function d(...e){return xt((0,wt.clsx)(e))}var Ct=require("@radix-ui/react-slot"),Nt=require("class-variance-authority"),Pt=J(require("react")),St=require("react/jsx-runtime"),Ho=(0,Nt.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:"St-10 px-4 py-2",icon:"St-10 w-10",lg:"St-11 rounded px-8",sm:"St-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"}}}),R=Pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,St.jsx)(e?Ct.Slot:"button",{className:d(Ho({className:t,size:o,variant:r})),ref:a,...i}));R.displayName="Button";var he=J(require("react"));var L=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("rounded-xl border bg-card text-card-foreground shadow",e),...t}));L.displayName="Card";var V=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("flex flex-col space-y-1.5 p-6",e),...t}));V.displayName="CardHeader";var O=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("font-semibold leading-none tracking-tight",e),...t}));O.displayName="CardTitle";var jo=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("text-sm text-muted-foreground",e),...t}));jo.displayName="CardDescription";var E=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("p-6 pt-0",e),...t}));E.displayName="CardContent";var Fo=he.forwardRef(({className:e,...t},o)=>(0,St.jsx)("div",{ref:o,className:d("flex items-center p-6 pt-0",e),...t}));Fo.displayName="CardFooter";var Rt=J(require("react"));var pe=Rt.forwardRef(({className:e,type:t,...o},r)=>(0,St.jsx)("input",{type:t,className:d("flex St-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));pe.displayName="Input";var x=J(require("@radix-ui/react-select")),ue=J(require("react")),nt=x.Root;var st=x.Value,Ue=ue.forwardRef(({children:e,className:t,...o},r)=>(0,St.jsxs)(x.Trigger,{className:d("flex St-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,St.jsx)(x.Icon,{asChild:!0,children:(0,St.jsx)(X.ChevronDown,{className:"St-4 w-4 opacity-50"})})]}));Ue.displayName=x.Trigger.displayName;var Tt=ue.forwardRef(({className:e,...t},o)=>(0,St.jsx)(x.ScrollUpButton,{className:d("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,St.jsx)(X.ChevronUp,{className:"St-4 w-4"})}));Tt.displayName=x.ScrollUpButton.displayName;var kt=ue.forwardRef(({className:e,...t},o)=>(0,St.jsx)(x.ScrollDownButton,{className:d("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,St.jsx)(X.ChevronDown,{className:"St-4 w-4"})}));kt.displayName=x.ScrollDownButton.displayName;var Oe=ue.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,St.jsx)(x.Portal,{children:(0,St.jsxs)(x.Content,{className:d("relative z-50 max-St-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:i,...r,children:[(0,St.jsx)(Tt,{}),(0,St.jsx)(x.Viewport,{className:d("p-1",o==="popper"&&"St-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,St.jsx)(kt,{})]})}));Oe.displayName=x.Content.displayName;var Vo=ue.forwardRef(({className:e,...t},o)=>(0,St.jsx)(x.Label,{className:d("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Vo.displayName=x.Label.displayName;var we=ue.forwardRef(({children:e,className:t,...o},r)=>(0,St.jsxs)(x.Item,{className:d("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,St.jsx)("span",{className:"absolute left-2 flex St-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(x.ItemIndicator,{children:(0,St.jsx)(X.Check,{className:"St-4 w-4"})})}),(0,St.jsx)(x.ItemText,{children:e})]}));we.displayName=x.Item.displayName;var Go=ue.forwardRef(({className:e,...t},o)=>(0,St.jsx)(x.Separator,{className:d("-mx-1 my-1 St-px bg-muted",e),ref:o,...t}));Go.displayName=x.Separator.displayName;var lt=require("motion/react");var Ce=J(require("@radix-ui/react-tabs"));function Mt({className:e,...t}){return(0,St.jsx)(Ce.Root,{"data-slot":"tabs",className:d("flex flex-col gap-2",e),...t})}function It({className:e,...t}){return(0,St.jsx)(Ce.List,{"data-slot":"tabs-list",className:d("bg-muted text-muted-foreground inline-flex St-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function At({className:e,...t}){return(0,St.jsx)(Ce.Trigger,{"data-slot":"tabs-trigger",className:d("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 St-[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 ne=J(require("react")),w=J(require("@radix-ui/react-dropdown-menu")),ke=require("@radix-ui/react-icons");var Ke=w.Root,qe=w.Trigger;var Wo=ne.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,St.jsxs)(w.SubTrigger,{ref:i,className:d("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,St.jsx)(ke.ChevronRightIcon,{className:"ml-auto"})]}));Wo.displayName=w.SubTrigger.displayName;var $o=ne.forwardRef(({className:e,...t},o)=>(0,St.jsx)(w.SubContent,{ref:o,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));$o.displayName=w.SubContent.displayName;var He=ne.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,St.jsx)(w.Portal,{children:(0,St.jsx)(w.Content,{ref:r,sideOffset:t,className:d("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));He.displayName=w.Content.displayName;var Ne=ne.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(w.Item,{ref:r,className:d("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}));Ne.displayName=w.Item.displayName;var Uo=ne.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,St.jsxs)(w.CheckboxItem,{ref:i,className:d("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,St.jsx)("span",{className:"absolute left-2 flex St-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(w.ItemIndicator,{children:(0,St.jsx)(ke.CheckIcon,{className:"St-4 w-4"})})}),t]}));Uo.displayName=w.CheckboxItem.displayName;var Oo=ne.forwardRef(({className:e,children:t,...o},r)=>(0,St.jsxs)(w.RadioItem,{ref:r,className:d("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,St.jsx)("span",{className:"absolute left-2 flex St-3.5 w-3.5 items-center justify-center",children:(0,St.jsx)(w.ItemIndicator,{children:(0,St.jsx)(ke.DotFilledIcon,{className:"St-4 w-4 fill-current"})})}),t]}));Oo.displayName=w.RadioItem.displayName;var _o=ne.forwardRef(({className:e,inset:t,...o},r)=>(0,St.jsx)(w.Label,{ref:r,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));_o.displayName=w.Label.displayName;var Ko=ne.forwardRef(({className:e,...t},o)=>(0,St.jsx)(w.Separator,{ref:o,className:d("-mx-1 my-1 St-px bg-muted",e),...t}));Ko.displayName=w.Separator.displayName;var qo=({className:e,...t})=>(0,St.jsx)("span",{className:d("ml-auto text-xs tracking-widest opacity-60",e),...t});qo.displayName="DropdownMenuShortcut";function Et({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let m=o.find(s=>s.value===e);return(0,St.jsxs)(lt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,St.jsx)("div",{className:"hidden lg:block",children:(0,St.jsx)(Mt,{value:e,onValueChange:t,children:(0,St.jsx)(It,{className:"grid w-full rounded-2xl p-0 St-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,St.jsx)(lt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,St.jsx)(At,{value:s.value,className:"w-full St-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:s.label})},s.value))})})}),(0,St.jsx)("div",{className:"lg:hidden",children:(0,St.jsxs)(Ke,{children:[(0,St.jsx)(qe,{asChild:!0,children:(0,St.jsxs)(R,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[m?.label||"Select",(0,St.jsx)(X.ChevronDown,{className:"St-4 w-4 ml-2"})]})}),(0,St.jsx)(He,{align:"center",className:"w-[180px]",children:o.map(s=>(0,St.jsx)(Ne,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Je=J(require("react")),se=J(require("@radix-ui/react-avatar"));var je=Je.forwardRef(({className:e,...t},o)=>(0,St.jsx)(se.Root,{ref:o,className:d("relative flex St-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));je.displayName=se.Root.displayName;var dt=Je.forwardRef(({className:e,...t},o)=>(0,St.jsx)(se.Image,{ref:o,className:d("aspect-square St-full w-full",e),...t}));dt.displayName=se.Image.displayName;var Fe=Je.forwardRef(({className:e,...t},o)=>(0,St.jsx)(se.Fallback,{ref:o,className:d("flex St-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Fe.displayName=se.Fallback.displayName;var Jo=(0,Nt.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 fe({className:e,variant:t,...o}){return(0,St.jsx)("div",{className:d(Jo({variant:t}),e),...o})}function Ze({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:m}){let[s,N]=(0,ee.useState)(!1),p=y=>{switch(y){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},C=y=>{switch(y){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},u=y=>{if(!y)return"Never";let A=Math.floor((new Date().getTime()-y.getTime())/(1e3*60));return A<1?"Just now":A<60?`${A}m ago`:A<1440?`${Math.floor(A/60)}St ago`:`${Math.floor(A/1440)}d ago`};return(0,St.jsxs)(L,{className:d("hover:shadow-md transition-shadow",a&&"p-2",m),children:[(0,St.jsx)(V,{className:d("pb-3",a&&"pb-2"),children:(0,St.jsxs)("div",{className:"flex items-start justify-between",children:[(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[(0,St.jsx)("div",{className:"relative",children:(0,St.jsxs)(je,{className:d("St-12 w-12",a&&"St-8 w-8"),children:[(0,St.jsx)(dt,{src:"/placeholder.svg",alt:e.name||"name"}),(0,St.jsx)(Fe,{children:e.name?.split(" ").map(y=>y[0]).join("")})]})}),(0,St.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2",children:[(0,St.jsx)("h3",{className:d("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,St.jsx)(X.Bot,{className:d("St-4 w-4 text-blue-500",a&&"St-3 w-3")}):(0,St.jsx)(X.User,{className:d("St-4 w-4 text-green-500",a&&"St-3 w-3")})]}),(0,St.jsx)("p",{className:d("text-sm text-muted-foreground truncate",a&&"text-xs")}),!a&&(0,St.jsx)("div",{className:"flex items-center gap-2 mt-1"})]})]}),i&&(0,St.jsxs)(Ke,{children:[(0,St.jsx)(qe,{asChild:!0,children:(0,St.jsx)(R,{variant:"ghost",size:"icon",className:d("St-8 w-8",a&&"St-6 w-6"),children:(0,St.jsx)(X.MoreHorizontal,{className:d("St-4 w-4",a&&"St-3 w-3")})})}),(0,St.jsxs)(He,{align:"end",children:[e.type==="digital"&&(0,St.jsxs)(St.Fragment,{children:[(0,St.jsxs)(Ne,{onClick:()=>r?.(e),children:[(0,St.jsx)(X.Settings,{className:"St-4 w-4 mr-2"}),"View Details"]}),(0,St.jsxs)(Ne,{onClick:()=>t?.(e),children:[(0,St.jsx)(X.Edit,{className:"St-4 w-4 mr-2"}),"Edit"]})]}),(0,St.jsxs)(Ne,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,St.jsx)(X.Trash2,{className:"St-4 w-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,St.jsxs)(E,{className:"pt-0",children:[(0,St.jsx)("div",{className:"space-y-2 text-sm",children:e.type==="human"&&(0,St.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,St.jsx)(X.Mail,{className:"St-3 w-3"}),(0,St.jsx)("span",{className:"truncate",children:e.email})]})}),e.type==="digital"&&(0,St.jsx)("div",{className:"mt-3",children:(0,St.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,s?e.capabilities.length:2).map(y=>(0,St.jsx)(fe,{variant:"outline",className:"text-xs",children:typeof y.value=="number"?y.value:y.value.name},typeof y.value=="number"?y.value:y.value.name)),(e.capabilities?.length||0)>2&&(0,St.jsx)(R,{variant:"ghost",size:"sm",className:"St-5 px-2 text-xs",onClick:()=>N(!s),children:s?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var jt=J(require("react")),ct=J(require("@radix-ui/react-label"));var Xo=(0,Nt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Pe=jt.forwardRef(({className:e,...t},o)=>(0,St.jsx)(ct.Root,{ref:o,className:d(Xo(),e),...t}));Pe.displayName=ct.Root.displayName;var Gt=J(require("react")),Ve=Gt.forwardRef(({className:e,...t},o)=>(0,St.jsx)("textarea",{className:d("flex min-St-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ve.displayName="Textarea";function mt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:m="Cancel",readOnly:s=!1,availableKnowledgeDocuments:N=[]}){let[p,C]=(0,ee.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,...e}),[u,y]=(0,ee.useState)(""),[G,A]=(0,ee.useState)(""),[P,k]=(0,ee.useState)(!s);(0,ee.useEffect)(()=>{e&&C(e)},[e]);let I=D=>{D.preventDefault();let z={id:p.id||parseInt(Date.now().toString()),name:p.name,type:"digital",description:p.description,jobDescription:p.jobDescription||"",workInstructions:p.workInstructions||"",capabilities:p.capabilities||[],capabilityLevel:p.capabilityLevel||0};t(z)},F=(D,z,T)=>{if(!z.trim())return;let W=p[D]||[];C({...p,[D]:[...W,z.trim()]}),T("")},te=(D,z)=>{let T=p[D]||[];C({...p,[D]:T.filter((W,S)=>S!==z)})},$=D=>{D.preventDefault(),k(!P)},oe=(D,z,T,W,S)=>{let ve=p[D]||[];return(0,St.jsxs)("div",{className:"space-y-2",children:[(0,St.jsx)(Pe,{children:z}),P&&(0,St.jsxs)("div",{className:"flex gap-2",children:[(0,St.jsx)(pe,{value:T,onChange:U=>W(U.target.value),placeholder:S,onKeyPress:U=>{U.key==="Enter"&&(U.preventDefault(),F(D,T,W))},disabled:r}),(0,St.jsx)(R,{type:"button",variant:"outline",size:"icon",onClick:()=>F(D,T,W),disabled:r,children:(0,St.jsx)(X.Plus,{className:"St-4 w-4"})})]}),(0,St.jsx)("div",{className:"flex flex-wrap gap-2",children:ve.map((U,ae)=>(0,St.jsxs)(fe,{className:"gap-1",children:[U,P&&(0,St.jsx)(R,{type:"button",variant:"ghost",size:"icon",className:"St-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>te(D,ae),disabled:r,children:(0,St.jsx)(X.X,{className:"St-3 w-3"})})]},`${D}-${ae}-${U}`))})]})},re=i||(P?e?"Edit Colleague":"Add New Colleague":"View Colleague"),Ae=a||(e?"Update Colleague":"Add Colleague");return(0,St.jsxs)(L,{className:"m-8 w-full max-w-4xl mx-auto",children:[(0,St.jsx)(V,{children:(0,St.jsxs)(O,{className:"flex items-center gap-2",children:[(0,St.jsx)(X.Bot,{className:"St-5 w-5"}),re]})}),(0,St.jsx)(E,{children:(0,St.jsxs)("form",{onSubmit:I,className:"space-y-6",children:[(0,St.jsxs)("div",{className:"space-y-4",children:[(0,St.jsxs)("div",{className:"space-y-2",children:[(0,St.jsx)(Pe,{htmlFor:"name",children:"Name *"}),(0,St.jsx)(pe,{id:"name",value:p.name||"",onChange:D=>C({...p,name:D.target.value}),required:!0,disabled:r||!P})]}),(0,St.jsxs)("div",{className:"space-y-2",children:[(0,St.jsx)(Pe,{htmlFor:"description",children:"Description"}),(0,St.jsx)(Ve,{id:"description",value:p.description||"",onChange:D=>C({...p,description:D.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!P})]})]}),(0,St.jsxs)("div",{className:"space-y-4",children:[(0,St.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,St.jsxs)("div",{className:"space-y-2",children:[(0,St.jsx)(Pe,{htmlFor:"jobDescription",children:"Job Description *"}),(0,St.jsx)(Ve,{id:"jobDescription",value:p.jobDescription||"",onChange:D=>C({...p,jobDescription:D.target.value}),rows:4,required:p.type==="digital",disabled:r||!P})]}),(0,St.jsxs)("div",{className:"space-y-2",children:[(0,St.jsx)(Pe,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,St.jsx)(Ve,{id:"workInstructions",value:p.workInstructions||"",onChange:D=>C({...p,workInstructions:D.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!P})]}),oe("capabilities","Capabilities",G,A,"Add capability")]}),(0,St.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,St.jsx)(R,{type:"button",variant:"outline",onClick:o,disabled:r,children:P?m:"Close"}),P?(0,St.jsx)(R,{type:"submit",disabled:r,children:r?"Saving...":Ae}):(0,St.jsxs)(R,{type:"button",onClick:$,disabled:r,className:"gap-2",children:[(0,St.jsx)(X.Edit,{className:"St-4 w-4"}),"Edit"]})]})]})})]})}function $t({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,ee.useState)(""),[m,s]=(0,ee.useState)("all"),N=(0,ee.useMemo)(()=>e.filter(u=>u.name.toLowerCase().includes(i.toLowerCase())||u.jobDescription?.toLowerCase().includes(i.toLowerCase())||u.workInstructions?.toLowerCase().includes(i.toLowerCase())),[e,i,m]),p=u=>{let y={...u,name:`${u.name} (Copy)`};t(y)},C=u=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(u);return(0,St.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,St.jsx)(lt.AnimatePresence,{mode:"wait",children:(0,St.jsxs)(lt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,St.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,St.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,St.jsx)(X.ChevronLeft,{className:"St-4 w-4"}),"Back"]}),(0,St.jsxs)("div",{children:[(0,St.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,St.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,St.jsx)(L,{children:(0,St.jsx)(E,{className:"pt-6",children:(0,St.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,St.jsx)("div",{className:"flex-1",children:(0,St.jsxs)("div",{className:"relative",children:[(0,St.jsx)(X.Search,{className:"absolute left-3 top-3 St-4 w-4 text-muted-foreground"}),(0,St.jsx)(pe,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:u=>a(u.target.value),className:"pl-9"})]})}),(0,St.jsxs)("select",{value:m,onChange:u=>s(u.target.value),className:"St-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,St.jsx)("option",{value:"all",children:"All Status"}),(0,St.jsx)("option",{value:"active",children:"Active"}),(0,St.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,St.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:N.map(u=>(0,St.jsx)(lt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,St.jsxs)(L,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===u.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>p(u),children:[(0,St.jsx)(V,{className:"pb-3",children:(0,St.jsxs)("div",{className:"flex items-start justify-between",children:[(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[(0,St.jsx)(je,{children:(0,St.jsx)(Fe,{className:"bg-blue-100",children:(0,St.jsx)(X.Bot,{className:"St-4 w-4 text-blue-600"})})}),(0,St.jsx)("div",{children:(0,St.jsx)(O,{className:"text-lg flex items-center gap-2",children:u.name})})]}),(0,St.jsxs)(R,{size:"sm",variant:"outline",className:"gap-2 St-8",onClick:y=>{y.stopPropagation(),p(u)},children:[(0,St.jsx)(X.Copy,{className:"St-3 w-3"}),"Clone"]})]})}),(0,St.jsx)(E,{className:"pt-0",children:(0,St.jsxs)("div",{className:"space-y-3",children:[(0,St.jsxs)("div",{children:[(0,St.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,St.jsx)("p",{className:"text-sm line-clamp-2",children:u.jobDescription})]}),u.capabilities&&u.capabilities.length>0&&(0,St.jsxs)("div",{children:[(0,St.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,St.jsx)("div",{className:"flex flex-wrap gap-1",children:u.capabilities.length>3&&(0,St.jsxs)(fe,{variant:"outline",className:"text-xs",children:["+",u.capabilities.length-3]})})]}),(0,St.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),u.workInstructions&&(0,St.jsxs)("div",{children:[(0,St.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,St.jsx)("p",{className:"text-xs line-clamp-2",children:u.workInstructions})]})]})})]})},u.id))}),N.length===0&&(0,St.jsx)(L,{children:(0,St.jsx)(E,{className:"pt-6",children:(0,St.jsxs)("div",{className:"text-center py-8",children:[(0,St.jsx)(X.Bot,{className:"St-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,St.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,St.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function Ut({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,St.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,St.jsx)(lt.AnimatePresence,{mode:"wait",children:(0,St.jsxs)(lt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,St.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,St.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,St.jsx)(X.ChevronLeft,{className:"St-4 w-4"}),"Back"]}),(0,St.jsxs)("div",{children:[(0,St.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,St.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,St.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,St.jsx)(lt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,St.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,St.jsxs)(V,{className:"text-center pb-4",children:[(0,St.jsx)("div",{className:"mx-auto w-16 St-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,St.jsx)(X.User,{className:"St-8 w-8 text-blue-600"})}),(0,St.jsx)(O,{className:"text-xl",children:"Add Human Colleague"})]}),(0,St.jsxs)(E,{className:"text-center",children:[(0,St.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,St.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Users,{className:"St-4 w-4 text-blue-600"}),(0,St.jsx)("span",{children:"Browse existing users"})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.User,{className:"St-4 w-4 text-blue-600"}),(0,St.jsx)("span",{children:"Import user details automatically"})]})]}),(0,St.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,St.jsx)(lt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,St.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,St.jsxs)(V,{className:"text-center pb-4",children:[(0,St.jsx)("div",{className:"mx-auto w-16 St-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,St.jsx)(X.Bot,{className:"St-8 w-8 text-purple-600"})}),(0,St.jsx)(O,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,St.jsxs)(E,{className:"text-center",children:[(0,St.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,St.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Bot,{className:"St-4 w-4 text-purple-600"}),(0,St.jsx)("span",{children:"Clone existing colleagues"})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Users,{className:"St-4 w-4 text-purple-600"}),(0,St.jsx)("span",{children:"Create from templates"})]})]}),(0,St.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function Ot({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,St.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,St.jsx)(lt.AnimatePresence,{mode:"wait",children:(0,St.jsxs)(lt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,St.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,St.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,St.jsx)(X.ChevronLeft,{className:"St-4 w-4"}),"Back"]}),(0,St.jsxs)("div",{children:[(0,St.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,St.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,St.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,St.jsx)(lt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,St.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,St.jsxs)(V,{className:"text-center pb-4",children:[(0,St.jsx)("div",{className:"mx-auto w-16 St-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,St.jsx)(X.Copy,{className:"St-8 w-8 text-blue-600"})}),(0,St.jsx)(O,{className:"text-xl",children:"Clone Existing"})]}),(0,St.jsxs)(E,{className:"text-center",children:[(0,St.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,St.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Bot,{className:"St-4 w-4 text-blue-600"}),(0,St.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Copy,{className:"St-4 w-4 text-blue-600"}),(0,St.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,St.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,St.jsx)(lt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,St.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,St.jsxs)(V,{className:"text-center pb-4",children:[(0,St.jsx)("div",{className:"mx-auto w-16 St-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,St.jsx)(X.Sparkles,{className:"St-8 w-8 text-green-600"})}),(0,St.jsx)(O,{className:"text-xl",children:"Create New"})]}),(0,St.jsxs)(E,{className:"text-center",children:[(0,St.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,St.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Plus,{className:"St-4 w-4 text-green-600"}),(0,St.jsx)("span",{children:"Custom job description"})]}),(0,St.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,St.jsx)(X.Sparkles,{className:"St-4 w-4 text-green-600"}),(0,St.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,St.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function _t(e,t){let[o,r]=(0,ee.useState)(()=>{if(typeof window>"u")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<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,ee.useEffect)(()=>{i(o)},[]),[o,i]}var Ye=require("react-icons/fa");function qt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:m,className:s}){let[N,p]=_t(`hero-section-minimized-${e.replace(/\s+/St,"-").toLowerCase()}`,!i&&!t),C=!i&&!t||N;return(0,St.jsxs)(lt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${s||""}`,children:[(0,St.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,St.jsx)(fe,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,St.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,St.jsxs)("div",{className:"flex items-center gap-3",children:[C&&r&&(0,St.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,St.jsx)("button",{"aria-label":N?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!N),style:{lineHeight:0},children:N?(0,St.jsx)(Ye.FaChevronDown,{size:22}):(0,St.jsx)(Ye.FaChevronUp,{size:22})})]})]}),!C&&(0,St.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,St.jsxs)("div",{className:"space-y-4",children:[(0,St.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,St.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,St.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,St.jsx)(R,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),m&&(0,St.jsx)("div",{className:"hidden lg:block",children:m})]})]})}function Jt({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:m,availableUsers:s=[],existingDigitalColleagues:N=[]}){let[p,C]=(0,ee.useState)(e||[]),[u,y]=(0,ee.useState)(""),[G,A]=(0,ee.useState)("all"),[P,k]=(0,ee.useState)("all"),[I,F]=(0,ee.useState)("all"),[te,$]=(0,ee.useState)(null),[oe,re]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{C(e||[])},[e]);let Ae=Array.isArray(s)?s:[],D=Array.isArray(N)?N:[],[z,T]=(0,ee.useState)("main"),W=p.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(u.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(u.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(u.toLowerCase())),S=W.filter(l=>l.type==="human"),ve=W.filter(l=>l.type==="digital"),U=()=>{T("typeSelection")},ae=l=>{l.type==="digital"&&($(l),T("form")),console.log("Editing colleague:",l),o?.(l)},de=l=>{l.type==="digital"&&(re(l),T("view"))},tt=l=>{let q={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};C(Re=>[...Re,q]),t?.(q),T("main")},Le=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}C(q=>[...q,{...l,type:"digital"}]),t?.({...l,type:"digital"}),T("main")},be=()=>{$(null),T("form")},Ee=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}te?(C(q=>q.map(Re=>Re.id===l.id?{...l,type:"digital"}:Re)),o?.({...l,type:"digital"})):(C(q=>[...q,{...l,type:"digital"}]),t?.({...l,type:"digital"})),T("main"),$(null)},Q=()=>{T("main"),$(null),re(null)},Xt=()=>{T("main"),re(null)},Qo=()=>{oe&&($(oe),re(null),T("form"))},ot=l=>{r?.(l,p.find(q=>q.id===l).type),C(q=>q.filter(Re=>Re.id!==l))},Zt=()=>{y(""),A("all"),k("all")};return z==="typeSelection"?(0,St.jsx)(Ut,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):z==="userSelection"?(0,St.jsx)("h1",{children:"User selection"}):z==="digitalOptions"?(0,St.jsx)(Ot,{onCloneExisting:()=>T("digitalClone"),onCreateNew:be,onCancel:()=>T("typeSelection")}):z==="digitalClone"?(0,St.jsx)($t,{digitalColleagues:D,onColleagueClone:Le,onCancel:()=>T("digitalOptions")}):z==="form"?(0,St.jsx)(mt,{colleague:te||void 0,onSave:Ee,onCancel:Q}):z==="view"?(0,St.jsx)(mt,{colleague:oe||void 0,onSave:Ee,onCancel:Xt,readOnly:!0}):(0,St.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,St.jsx)(lt.AnimatePresence,{mode:"wait",children:(0,St.jsx)(lt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,St.jsxs)("div",{className:`space-y-6 ${m||""}`,children:[(0,St.jsx)(qt,{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:U}}),(0,St.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,St.jsxs)(L,{children:[(0,St.jsxs)(V,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,St.jsx)(O,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,St.jsx)(X.Users,{className:"St-4 w-4 text-muted-foreground"})]}),(0,St.jsxs)(E,{children:[(0,St.jsx)("div",{className:"text-2xl font-bold",children:p.length}),(0,St.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,St.jsxs)(L,{children:[(0,St.jsxs)(V,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,St.jsx)(O,{className:"text-sm font-medium",children:"Human Members"}),(0,St.jsx)(X.User,{className:"St-4 w-4 text-muted-foreground"})]}),(0,St.jsxs)(E,{children:[(0,St.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="human").length}),(0,St.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,St.jsxs)(L,{children:[(0,St.jsxs)(V,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,St.jsx)(O,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,St.jsx)(X.Bot,{className:"St-4 w-4 text-muted-foreground"})]}),(0,St.jsxs)(E,{children:[(0,St.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="digital").length}),(0,St.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,St.jsx)(L,{children:(0,St.jsx)(E,{className:"pt-6",children:(0,St.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,St.jsx)("div",{className:"flex-1",children:(0,St.jsxs)("div",{className:"relative",children:[(0,St.jsx)(X.Search,{className:"absolute left-3 top-3 St-4 w-4 text-muted-foreground"}),(0,St.jsx)(pe,{placeholder:"Search colleagues...",value:u,onChange:l=>y(l.target.value),className:"pl-9"})]})}),(0,St.jsxs)(nt,{value:G,onValueChange:A,children:[(0,St.jsx)(Ue,{className:"w-full md:w-[180px]",children:(0,St.jsx)(st,{placeholder:"Department"})}),(0,St.jsxs)(Oe,{children:[(0,St.jsx)(we,{value:"all",children:"All Departments"}),a.map(l=>(0,St.jsx)(we,{value:l,children:l},l))]})]}),(0,St.jsxs)(nt,{value:P,onValueChange:k,children:[(0,St.jsx)(Ue,{className:"w-full md:w-[140px]",children:(0,St.jsx)(st,{placeholder:"Status"})}),(0,St.jsxs)(Oe,{children:[(0,St.jsx)(we,{value:"all",children:"All Status"}),(0,St.jsx)(we,{value:"active",children:"Active"}),(0,St.jsx)(we,{value:"inactive",children:"Inactive"})]})]}),(u||G!=="all"||P!=="all")&&(0,St.jsxs)(R,{variant:"outline",onClick:Zt,className:"gap-2",children:[(0,St.jsx)(X.Filter,{className:"St-4 w-4"}),"Clear"]})]})})}),(0,St.jsxs)("div",{className:"space-y-4",children:[(0,St.jsx)(Et,{activeTab:I,onTabChange:F,tabOptions:[{value:"all",label:`All (${W.length})`},{value:"human",label:`Human (${S.length})`},{value:"digital",label:`Digital (${ve.length})`}],maxWidth:"400px",gridCols:3}),I==="all"&&(0,St.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:W.map(l=>(0,St.jsx)(Ze,{colleague:l,onEdit:ae,onDelete:ot,onViewDetails:de,compact:i},`${l}-${l.id}`))}),I==="human"&&(0,St.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:S.map(l=>(0,St.jsx)(Ze,{colleague:l,onEdit:ae,onDelete:ot,onViewDetails:de,compact:i},l.id))}),I==="digital"&&(0,St.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:ve.map(l=>(0,St.jsx)(Ze,{colleague:l,onEdit:ae,onDelete:ot,onViewDetails:de,compact:i},l.id))})]}),W.length===0&&(0,St.jsx)(L,{children:(0,St.jsx)(E,{className:"pt-6",children:(0,St.jsxs)("div",{className:"text-center py-8",children:[(0,St.jsx)(X.Users,{className:"St-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,St.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,St.jsx)("p",{className:"text-muted-foreground mb-4",children:u||G!=="all"||P!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,St.jsxs)(R,{onClick:U,className:"gap-2",children:[(0,St.jsx)(X.Plus,{className:"St-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
|
|
5
|
+
"use strict";"use client";var ro=Object.create;var Ke=Object.defineProperty;var ao=Object.getOwnPropertyDescriptor;var io=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,so=Object.prototype.hasOwnProperty;var lo=(e,t)=>{for(var o in t)Ke(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of io(t))!so.call(e,a)&&a!==o&&Ke(e,a,{get:()=>t[a],enumerable:!(r=ao(t,a))||r.enumerable});return e};var X=(e,t,o)=>(o=e!=null?ro(no(e)):{},vt(t||!e||!e.__esModule?Ke(o,"default",{value:e,enumerable:!0}):o,e)),co=e=>vt(Ke({},"__esModule",{value:!0}),e);var or={};lo(or,{default:()=>eo});module.exports=co(or);var te=require("react"),Z=require("lucide-react");var Pt=require("clsx");var dt="-",mo=e=>{let t=uo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:d=>{let s=d.split(dt);return s[0]===""&&s.length!==1&&s.shift(),yt(s,t)||po(d)},getConflictingClassGroupIds:(d,s)=>{let u=o[d]||[];return s&&r[d]?[...u,...r[d]]:u}}},yt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?yt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(dt);return t.validators.find(({validator:d})=>d(i))?.classGroupId},bt=/^\[(.+)\]$/,po=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},uo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return go(Object.entries(e.classGroups),o).forEach(([i,d])=>{lt(d,r,i,t)}),r},lt=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:ht(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(fo(a)){lt(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,d])=>{lt(d,ht(t,i),o,r)})})},ht=(e,t)=>{let o=e;return t.split(dt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},fo=e=>e.isThemeGetter,go=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,s])=>[t+d,s])):i);return[o,a]}):e,vo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=r.get(i))!==void 0)return a(i,d),d},set(i,d){o.has(i)?o.set(i,d):a(i,d)}}},xt="!",bo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,d=s=>{let u=[],p=0,S=0,f;for(let M=0;M<s.length;M++){let E=s[M];if(p===0){if(E===a&&(r||s.slice(M,M+i)===t)){u.push(s.slice(S,M)),S=M+i;continue}if(E==="/"){f=M;continue}}E==="["?p++:E==="]"&&p--}let w=u.length===0?s:s.substring(S),W=w.startsWith(xt),B=W?w.substring(1):w,P=f&&f>S?f-S:void 0;return{modifiers:u,hasImportantModifier:W,baseClassName:B,maybePostfixModifierPosition:P}};return o?s=>o({className:s,parseClassName:d}):d},ho=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},yo=e=>({cache:vo(e.cacheSize),parseClassName:bo(e),...mo(e)}),xo=/\s+/,wo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],d=e.trim().split(xo),s="";for(let u=d.length-1;u>=0;u-=1){let p=d[u],{modifiers:S,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:W}=o(p),B=!!W,P=r(B?w.substring(0,W):w);if(!P){if(!B){s=p+(s.length>0?" "+s:s);continue}if(P=r(w),!P){s=p+(s.length>0?" "+s:s);continue}B=!1}let M=ho(S).join(":"),E=f?M+xt:M,V=E+P;if(i.includes(V))continue;i.push(V);let oe=a(P,B);for(let O=0;O<oe.length;++O){let re=oe[O];i.push(E+re)}s=p+(s.length>0?" "+s:s)}return s};function Co(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=wt(t))&&(r&&(r+=" "),r+=o);return r}var wt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(o&&(o+=" "),o+=t);return o};function No(e,...t){let o,r,a,i=d;function d(u){let p=t.reduce((S,f)=>f(S),e());return o=yo(p),r=o.cache.get,a=o.cache.set,i=s,s(u)}function s(u){let p=r(u);if(p)return p;let S=wo(u,o);return a(u,S),S}return function(){return i(Co.apply(null,arguments))}}var I=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-kt-]+):)?(.+)\]$/i,So=/^\d+\/\d+$/,Po=new Set(["px","full","screen"]),Ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Do=/\d+(%|px|r?em|[sdl]?kt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|kt|min|max))|\kt(calc|min|max|clamp)\(.+\)|^0$/,To=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-kt]+|0)_-?((\d+)?\.?(\d+)[a-kt]+|0)/,Mo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>Ae(e)||Po.has(e)||So.test(e),ue=e=>Le(e,"length",jo),Ae=e=>!!e&&!Number.isNaN(Number(e)),st=e=>Le(e,"number",Ae),Ue=e=>!!e&&Number.isInteger(Number(e)),Io=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),h=e=>Ct.test(e),fe=e=>Ro.test(e),Ao=new Set(["length","size","percentage"]),Lo=e=>Le(e,Ao,Nt),Eo=e=>Le(e,"position",Nt),Bo=new Set(["image","url"]),zo=e=>Le(e,Bo,Fo),Ho=e=>Le(e,"",Uo),Fe=()=>!0,Le=(e,t,o)=>{let r=Ct.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},jo=e=>Do.test(e)&&!To.test(e),Nt=()=>!1,Uo=e=>ko.test(e),Fo=e=>Mo.test(e);var Vo=()=>{let e=I("colors"),t=I("spacing"),o=I("blur"),r=I("brightness"),a=I("borderColor"),i=I("borderRadius"),d=I("borderSpacing"),s=I("borderWidth"),u=I("contrast"),p=I("grayscale"),S=I("hueRotate"),f=I("invert"),w=I("gap"),W=I("gradientColorStops"),B=I("gradientColorStopPositions"),P=I("inset"),M=I("margin"),E=I("opacity"),V=I("padding"),oe=I("saturate"),O=I("scale"),re=I("sepia"),ie=I("skew"),Me=I("space"),k=I("translate"),H=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",h,t],D=()=>[h,t],he=()=>["",se,ue],_=()=>["auto",Ae,h],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],He=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",h],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Ae,h];return{cacheSize:500,separator:":",theme:{colors:[Fe],spacing:[se,ue],blur:["none","",fe,h],brightness:Y(),borderColor:[e],borderRadius:["none","","full",fe,h],borderSpacing:D(),borderWidth:he(),contrast:Y(),grayscale:ye(),hueRotate:Y(),invert:ye(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Io,ue],inset:$(),margin:$(),opacity:Y(),padding:D(),saturate:Y(),scale:Y(),sepia:ye(),skew:Y(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[fe]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"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:[...ne(),h]}],overflow:[{overflow:T()}],"overflow-kt":[{"overflow-kt":T()}],"overflow-kt":[{"overflow-kt":T()}],overscroll:[{overscroll:H()}],"overscroll-kt":[{"overscroll-kt":H()}],"overscroll-kt":[{"overscroll-kt":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-kt":[{"inset-kt":[P]}],"inset-kt":[{"inset-kt":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],kt:[{kt:["auto",Ue,h]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",Ue,h]}],"grid-cols":[{"grid-cols":[Fe]}],"col-start-end":[{col:["auto",{span:["full",Ue,h]},h]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Fe]}],"row-start-end":[{row:["auto",{span:[Ue,h]},h]}],"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",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[w]}],"gap-kt":[{"gap-kt":[w]}],"gap-kt":[{"gap-kt":[w]}],"justify-content":[{justify:["normal",...He()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...He(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...He(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],kt:[{kt:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],Z:[{Z:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-kt":[{"space-kt":[Me]}],"space-kt-reverse":["space-kt-reverse"],"space-kt":[{"space-kt":[Me]}],"space-kt-reverse":["space-kt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,t]}],"min-w":[{"min-w":[h,t,"min","max","fit"]}],"max-w":[{"max-w":[h,t,"none","full","min","max","fit","prose",{screen:[fe]},fe]}],h:[{h:[h,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fe,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",st]}],"font-family":[{font:[Fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",Ae,st]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",se,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",se,ue]}],"underline-offset":[{"underline-offset":["auto",se,h]}],"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:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],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",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Eo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","kt","kt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","kt","bl","l","tl"]},zo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[W]}],"gradient-via":[{via:[W]}],"gradient-to":[{to:[W]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-kt":[{"rounded-kt":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-Z":[{"rounded-Z":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-kt":[{"divide-kt":[s]}],"divide-kt-reverse":["divide-kt-reverse"],"divide-kt":[{"divide-kt":[s]}],"divide-kt-reverse":["divide-kt-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:pe()}],"border-color":[{border:[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[se,h]}],"outline-w":[{outline:[se,ue]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[se,ue]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fe,Ho]}],"shadow-color":[{shadow:[Fe]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",fe,h]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[f]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-kt":[{"border-spacing-kt":[d]}],"border-spacing-kt":[{"border-spacing-kt":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-kt":[{"scale-kt":[O]}],"scale-kt":[{"scale-kt":[O]}],rotate:[{rotate:[Ue,h]}],"translate-kt":[{"translate-kt":[k]}],"translate-kt":[{"translate-kt":[k]}],"skew-kt":[{"skew-kt":[ie]}],"skew-kt":[{"skew-kt":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],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","kt-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","kt","kt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-kt":[{"scroll-kt":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-Z":[{"scroll-Z":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","kt","kt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-kt":[{"touch-pan":["kt","left","right"]}],"touch-kt":[{"touch-pan":["kt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[se,ue,st]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-kt","overflow-kt"],overscroll:["overscroll-kt","overscroll-kt"],inset:["inset-kt","inset-kt","start","end","top","right","bottom","left"],"inset-kt":["right","left"],"inset-kt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-kt","gap-kt"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],kt:["mx","my","ms","Z","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-kt","rounded-l","rounded-ss","rounded-se","rounded-Z","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Z"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-kt":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-kt","border-spacing-kt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-kt","border-w-l"],"border-w-kt":["border-w-r","border-w-l"],"border-w-kt":["border-w-t","border-w-kt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-kt","border-color-l"],"border-color-kt":["border-color-r","border-color-l"],"border-color-kt":["border-color-t","border-color-kt"],"scroll-kt":["scroll-mx","scroll-my","scroll-ms","scroll-Z","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-kt","touch-kt","touch-pz"],"touch-kt":["touch"],"touch-kt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var St=No(Vo);function c(...e){return St((0,Pt.clsx)(e))}var Rt=require("@radix-ui/react-slot"),Dt=require("class-variance-authority"),Tt=X(require("react")),kt=require("react/jsx-runtime"),Go=(0,Dt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),R=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,kt.jsx)(e?Rt.Slot:"button",{className:c(Go({className:t,size:o,variant:r})),ref:i,...a}));R.displayName="Button";var xe=X(require("react"));var A=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));A.displayName="Card";var j=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("flex flex-col space-kt-1.5 p-6",e),...t}));j.displayName="CardHeader";var G=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var Wo=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Wo.displayName="CardDescription";var L=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("p-6 pt-0",e),...t}));L.displayName="CardContent";var $o=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("flex items-center p-6 pt-0",e),...t}));$o.displayName="CardFooter";var Mt=X(require("react"));var ae=Mt.forwardRef(({className:e,type:t,...o},r)=>(0,kt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ae.displayName="Input";var C=X(require("@radix-ui/react-select")),ge=X(require("react")),ct=C.Root;var mt=C.Value,qe=ge.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(C.Trigger,{className:c("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,kt.jsx)(C.Icon,{asChild:!0,children:(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));qe.displayName=C.Trigger.displayName;var At=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));At.displayName=C.ScrollUpButton.displayName;var Lt=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));Lt.displayName=C.ScrollDownButton.displayName;var Je=ge.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,kt.jsx)(C.Portal,{children:(0,kt.jsxs)(C.Content,{className:c("relative kt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-kt-1 data-[side=left]:-translate-kt-1 data-[side=right]:translate-kt-1 data-[side=top]:-translate-kt-1",t),position:o,ref:a,...r,children:[(0,kt.jsx)(At,{}),(0,kt.jsx)(C.Viewport,{className:c("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,kt.jsx)(Lt,{})]})}));Je.displayName=C.Content.displayName;var Oo=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Oo.displayName=C.Label.displayName;var Ne=ge.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(C.Item,{className:c("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(C.ItemIndicator,{children:(0,kt.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,kt.jsx)(C.ItemText,{children:e})]}));Ne.displayName=C.Item.displayName;var _o=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));_o.displayName=C.Separator.displayName;var pt=require("motion/react");var Se=X(require("@radix-ui/react-tabs"));function Et({className:e,...t}){return(0,kt.jsx)(Se.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function Bt({className:e,...t}){return(0,kt.jsx)(Se.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function zt({className:e,...t}){return(0,kt.jsx)(Se.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var le=X(require("react")),N=X(require("@radix-ui/react-dropdown-menu")),Ee=require("@radix-ui/react-icons");var Ze=N.Root,Qe=N.Trigger;var Ko=le.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,kt.jsxs)(N.SubTrigger,{ref:a,className:c("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,kt.jsx)(Ee.ChevronRightIcon,{className:"ml-auto"})]}));Ko.displayName=N.SubTrigger.displayName;var qo=le.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(N.SubContent,{ref:o,className:c("kt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));qo.displayName=N.SubContent.displayName;var Ve=le.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,kt.jsx)(N.Portal,{children:(0,kt.jsx)(N.Content,{ref:r,sideOffset:t,className:c("kt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ve.displayName=N.Content.displayName;var Pe=le.forwardRef(({className:e,inset:t,...o},r)=>(0,kt.jsx)(N.Item,{ref:r,className:c("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}));Pe.displayName=N.Item.displayName;var Jo=le.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,kt.jsxs)(N.CheckboxItem,{ref:a,className:c("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,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(N.ItemIndicator,{children:(0,kt.jsx)(Ee.CheckIcon,{className:"h-4 w-4"})})}),t]}));Jo.displayName=N.CheckboxItem.displayName;var Xo=le.forwardRef(({className:e,children:t,...o},r)=>(0,kt.jsxs)(N.RadioItem,{ref:r,className:c("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,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(N.ItemIndicator,{children:(0,kt.jsx)(Ee.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=N.RadioItem.displayName;var Zo=le.forwardRef(({className:e,inset:t,...o},r)=>(0,kt.jsx)(N.Label,{ref:r,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Zo.displayName=N.Label.displayName;var Qo=le.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(N.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Qo.displayName=N.Separator.displayName;var Yo=({className:e,...t})=>(0,kt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Yo.displayName="DropdownMenuShortcut";function jt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let d=o.find(s=>s.value===e);return(0,kt.jsxs)(pt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,kt:-20},animate:{opacity:1,kt:0},transition:{duration:.3,ease:"easeOut"},children:[(0,kt.jsx)("div",{className:"hidden lg:block",children:(0,kt.jsx)(Et,{value:e,onValueChange:t,children:(0,kt.jsx)(Bt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,kt.jsx)(zt,{value:s.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,kt.jsx)("div",{className:"lg:hidden",children:(0,kt.jsxs)(Ze,{children:[(0,kt.jsx)(Qe,{asChild:!0,children:(0,kt.jsxs)(R,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[d?.label||"Select",(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,kt.jsx)(Ve,{align:"center",className:"w-[180px]",children:o.map(s=>(0,kt.jsx)(Pe,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Ye=X(require("react")),de=X(require("@radix-ui/react-avatar"));var Re=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Re.displayName=de.Root.displayName;var ut=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));ut.displayName=de.Image.displayName;var De=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));De.displayName=de.Fallback.displayName;var er=(0,Dt.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 ve({className:e,variant:t,...o}){return(0,kt.jsx)("div",{className:c(er({variant:t}),e),...o})}function tt({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:a=!0,compact:i=!1,className:d}){let[s,u]=(0,te.useState)(!1),p=w=>{switch(w){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},S=w=>{switch(w){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},f=w=>{if(!w)return"Never";let B=Math.floor((new Date().getTime()-w.getTime())/(1e3*60));return B<1?"Just now":B<60?`${B}kt ago`:B<1440?`${Math.floor(B/60)}h ago`:`${Math.floor(B/1440)}d ago`};return(0,kt.jsxs)(A,{className:c("hover:shadow-md transition-shadow",i&&"p-2",d),children:[(0,kt.jsx)(j,{className:c("pb-3",i&&"pb-2"),children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)("div",{className:"relative",children:(0,kt.jsxs)(Re,{className:c("h-12 w-12",i&&"h-8 w-8"),children:[(0,kt.jsx)(ut,{src:"/placeholder.svg",alt:e.name||"name"}),(0,kt.jsx)(De,{children:e.name?.split(" ").map(w=>w[0]).join("")})]})}),(0,kt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)("h3",{className:c("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?(0,kt.jsx)(Z.Bot,{className:c("h-4 w-4 text-blue-500",i&&"h-3 w-3")}):(0,kt.jsx)(Z.User,{className:c("h-4 w-4 text-green-500",i&&"h-3 w-3")})]}),(0,kt.jsx)("p",{className:c("text-sm text-muted-foreground truncate",i&&"text-xs")}),!i&&(0,kt.jsx)("div",{className:"flex items-center gap-2 mt-1"})]})]}),a&&(0,kt.jsxs)(Ze,{children:[(0,kt.jsx)(Qe,{asChild:!0,children:(0,kt.jsx)(R,{variant:"ghost",size:"icon",className:c("h-8 w-8",i&&"h-6 w-6"),children:(0,kt.jsx)(Z.MoreHorizontal,{className:c("h-4 w-4",i&&"h-3 w-3")})})}),(0,kt.jsxs)(Ve,{align:"end",children:[e.type==="digital"&&(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsxs)(Pe,{onClick:()=>r?.(e),children:[(0,kt.jsx)(Z.Settings,{className:"h-4 w-4 mr-2"}),"View Details"]}),(0,kt.jsxs)(Pe,{onClick:()=>t?.(e),children:[(0,kt.jsx)(Z.Edit,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),(0,kt.jsxs)(Pe,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,kt.jsx)(Z.Trash2,{className:"h-4 w-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!i&&(0,kt.jsxs)(L,{className:"pt-0",children:[(0,kt.jsx)("div",{className:"space-kt-2 text-sm",children:e.type==="human"&&(0,kt.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,kt.jsx)(Z.Mail,{className:"h-3 w-3"}),(0,kt.jsx)("span",{className:"truncate",children:e.email})]})}),e.type==="digital"&&(0,kt.jsx)("div",{className:"mt-3",children:(0,kt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,s?e.capabilities.length:2).map(w=>(0,kt.jsx)(ve,{variant:"outline",className:"text-xs",children:typeof w.value=="number"?w.value:w.value.name},typeof w.value=="number"?w.value:w.value.name)),(e.capabilities?.length||0)>2&&(0,kt.jsx)(R,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>u(!s),children:s?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Gt=X(require("react")),ft=X(require("@radix-ui/react-label"));var tr=(0,Dt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Te=Gt.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(ft.Root,{ref:o,className:c(tr(),e),...t}));Te.displayName=ft.Root.displayName;var Ot=X(require("react")),Ge=Ot.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ge.displayName="Textarea";function gt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:a,submitLabel:i,cancelLabel:d="Cancel",readOnly:s=!1,availableKnowledgeDocuments:u=[]}){let[p,S]=(0,te.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,...e}),[f,w]=(0,te.useState)(""),[W,B]=(0,te.useState)(""),[P,M]=(0,te.useState)(!s);(0,te.useEffect)(()=>{e&&S(e)},[e]);let E=k=>{k.preventDefault();let H={id:p.id||parseInt(Date.now().toString()),name:p.name,type:"digital",description:p.description,jobDescription:p.jobDescription||"",workInstructions:p.workInstructions||"",capabilities:p.capabilities||[],capabilityLevel:p.capabilityLevel||0};t(H)},V=(k,H,T)=>{if(!H.trim())return;let $=p[k]||[];S({...p,[k]:[...$,H.trim()]}),T("")},oe=(k,H)=>{let T=p[k]||[];S({...p,[k]:T.filter(($,D)=>D!==H)})},O=k=>{k.preventDefault(),M(!P)},re=(k,H,T,$,D)=>{let he=p[k]||[];return(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{children:H}),P&&(0,kt.jsxs)("div",{className:"flex gap-2",children:[(0,kt.jsx)(ae,{value:T,onChange:_=>$(_.target.value),placeholder:D,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),V(k,T,$))},disabled:r}),(0,kt.jsx)(R,{type:"button",variant:"outline",size:"icon",onClick:()=>V(k,T,$),disabled:r,children:(0,kt.jsx)(Z.Plus,{className:"h-4 w-4"})})]}),(0,kt.jsx)("div",{className:"flex flex-wrap gap-2",children:he.map((_,ne)=>(0,kt.jsxs)(ve,{className:"gap-1",children:[_,P&&(0,kt.jsx)(R,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>oe(k,ne),disabled:r,children:(0,kt.jsx)(Z.X,{className:"h-3 w-3"})})]},`${k}-${ne}-${_}`))})]})},ie=a||(P?e?"Edit Colleague":"Add New Colleague":"View Colleague"),Me=i||(e?"Update Colleague":"Add Colleague");return(0,kt.jsxs)(A,{className:"kt-8 w-full max-w-4xl mx-auto",children:[(0,kt.jsx)(j,{children:(0,kt.jsxs)(G,{className:"flex items-center gap-2",children:[(0,kt.jsx)(Z.Bot,{className:"h-5 w-5"}),ie]})}),(0,kt.jsx)(L,{children:(0,kt.jsxs)("form",{onSubmit:E,className:"space-kt-6",children:[(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"name",children:"Name *"}),(0,kt.jsx)(ae,{id:"name",value:p.name||"",onChange:k=>S({...p,name:k.target.value}),required:!0,disabled:r||!P})]}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"description",children:"Description"}),(0,kt.jsx)(Ge,{id:"description",value:p.description||"",onChange:k=>S({...p,description:k.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!P})]})]}),(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"jobDescription",children:"Job Description *"}),(0,kt.jsx)(Ge,{id:"jobDescription",value:p.jobDescription||"",onChange:k=>S({...p,jobDescription:k.target.value}),rows:4,required:p.type==="digital",disabled:r||!P})]}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,kt.jsx)(Ge,{id:"workInstructions",value:p.workInstructions||"",onChange:k=>S({...p,workInstructions:k.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!P})]}),re("capabilities","Capabilities",W,B,"Add capability")]}),(0,kt.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,kt.jsx)(R,{type:"button",variant:"outline",onClick:o,disabled:r,children:P?d:"Close"}),P?(0,kt.jsx)(R,{type:"submit",disabled:r,children:r?"Saving...":Me}):(0,kt.jsxs)(R,{type:"button",onClick:O,disabled:r,className:"gap-2",children:[(0,kt.jsx)(Z.Edit,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}function Kt({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[a,i]=(0,te.useState)(""),d=(0,te.useMemo)(()=>e.filter(u=>u.name?.toLowerCase().includes(a.toLowerCase())||u.email.toLowerCase().includes(a.toLowerCase())),[e,a]),s=u=>{t(u)};return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,kt.jsx)(A,{className:"container",children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search users by name, email, role, or skills...",value:a,onChange:u=>i(u.target.value),className:"pl-9"})]})})})})}),(0,kt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:d.map(u=>(0,kt.jsx)(pt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,kt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>s(u),children:[(0,kt.jsx)(j,{className:"pb-3",children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)(Re,{children:(0,kt.jsx)(De,{children:(0,kt.jsx)(Z.User,{className:"h-4 w-4"})})}),(0,kt.jsx)("div",{children:(0,kt.jsx)(G,{className:"text-lg",children:u.name})})]}),r===u.id&&(0,kt.jsx)(Z.Check,{className:"h-5 w-5 text-primary"})]})}),(0,kt.jsx)(L,{className:"pt-0",children:(0,kt.jsxs)("div",{className:"space-kt-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,kt.jsx)("p",{className:"text-sm font-medium",children:u.email})]}),(0,kt.jsx)("div",{children:(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},u.id))}),d.length===0&&(0,kt.jsx)(A,{className:"container mt-4",children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function qt({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[a,i]=(0,$e.useState)(""),[d,s]=(0,$e.useState)("all"),u=(0,$e.useMemo)(()=>e.filter(f=>f.name.toLowerCase().includes(a.toLowerCase())||f.jobDescription?.toLowerCase().includes(a.toLowerCase())||f.workInstructions?.toLowerCase().includes(a.toLowerCase())),[e,a,d]),p=f=>{let w={...f,name:`${f.name} (Copy)`};t(w)},S=f=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(f);return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search by name, job description, or capabilities...",value:a,onChange:f=>i(f.target.value),className:"pl-9"})]})}),(0,kt.jsxs)("select",{value:d,onChange:f=>s(f.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,kt.jsx)("option",{value:"all",children:"All Status"}),(0,kt.jsx)("option",{value:"active",children:"Active"}),(0,kt.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,kt.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:u.map(f=>(0,kt.jsx)(pt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,kt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===f.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>p(f),children:[(0,kt.jsx)(j,{className:"pb-3",children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)(Re,{children:(0,kt.jsx)(De,{className:"bg-blue-100",children:(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-blue-600"})})}),(0,kt.jsx)("div",{children:(0,kt.jsx)(G,{className:"text-lg flex items-center gap-2",children:f.name})})]}),(0,kt.jsxs)(R,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:w=>{w.stopPropagation(),p(f)},children:[(0,kt.jsx)(Z.Copy,{className:"h-3 w-3"}),"Clone"]})]})}),(0,kt.jsx)(L,{className:"pt-0",children:(0,kt.jsxs)("div",{className:"space-kt-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,kt.jsx)("p",{className:"text-sm line-clamp-2",children:f.jobDescription})]}),f.capabilities&&f.capabilities.length>0&&(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,kt.jsx)("div",{className:"flex flex-wrap gap-1",children:f.capabilities.length>3&&(0,kt.jsxs)(ve,{variant:"outline",className:"text-xs",children:["+",f.capabilities.length-3]})})]}),(0,kt.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),f.workInstructions&&(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,kt.jsx)("p",{className:"text-xs line-clamp-2",children:f.workInstructions})]})]})})]})},f.id))}),u.length===0&&(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.Bot,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function Jt({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,kt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.User,{className:"h-8 w-8 text-blue-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Browse existing users"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.User,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-purple-600"}),(0,kt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-purple-600"}),(0,kt.jsx)("span",{children:"Create from templates"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function Xt({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,kt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize pt for your needs."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Copy,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Plus,{className:"h-4 w-4 text-green-600"}),(0,kt.jsx)("span",{children:"Custom job description"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,kt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function Zt(e,t){let[o,r]=(0,te.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,te.useEffect)(()=>{a(o)},[]),[o,a]}var at=require("react-icons/fa");function Yt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:i,children:d,className:s}){let[u,p]=Zt(`hero-section-minimized-${e.replace(/\s+/kt,"-").toLowerCase()}`,!a&&!t),S=!a&&!t||u;return(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:20},animate:{opacity:1,kt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${s||""}`,children:[(0,kt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,kt.jsx)(ve,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,kt.jsx)("h2",{className:"text-3xl font-bold kt-0",children:e})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[S&&r&&(0,kt.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,kt.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!u),style:{lineHeight:0},children:u?(0,kt.jsx)(at.FaChevronDown,{size:22}):(0,kt.jsx)(at.FaChevronUp,{size:22})})]})]}),!S&&(0,kt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,kt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,kt.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,kt.jsx)(R,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),d&&(0,kt.jsx)("div",{className:"hidden lg:block",children:d})]})]})}function eo({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:a=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:d,availableUsers:s=[],existingDigitalColleagues:u=[]}){let[p,S]=(0,te.useState)(e||[]),[f,w]=(0,te.useState)(""),[W,B]=(0,te.useState)("all"),[P,M]=(0,te.useState)("all"),[E,V]=(0,te.useState)("all"),[oe,O]=(0,te.useState)(null),[re,ie]=(0,te.useState)(null);(0,te.useEffect)(()=>{S(e||[])},[e]);let Me=Array.isArray(s)?s:[],k=Array.isArray(u)?u:[],[H,T]=(0,te.useState)("main"),$=p.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(f.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(f.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(f.toLowerCase())),D=$.filter(l=>l.type==="human"),he=$.filter(l=>l.type==="digital"),_=()=>{T("typeSelection")},ne=l=>{l.type==="digital"&&(O(l),T("form")),console.log("Editing colleague:",l),o?.(l)},pe=l=>{l.type==="digital"&&(ie(l),T("view"))},_e=l=>{let J={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};S(Ie=>[...Ie,J]),t?.(J),T("main")},He=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}S(J=>[...J,{...l,type:"digital"}]),t?.({...l,type:"digital"}),T("main")},ye=()=>{O(null),T("form")},je=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}oe?(S(J=>J.map(Ie=>Ie.id===l.id?{...l,type:"digital"}:Ie)),o?.({...l,type:"digital"})):(S(J=>[...J,{...l,type:"digital"}]),t?.({...l,type:"digital"})),T("main"),O(null)},Y=()=>{T("main"),O(null),ie(null)},to=()=>{T("main"),ie(null)},rr=()=>{re&&(O(re),ie(null),T("form"))},nt=l=>{console.log("deleting",l,p),r?.(l,p.find(J=>J.id.toString()===l.toString())?.type),S(J=>J.filter(Ie=>Ie.id!==l))},oo=()=>{w(""),B("all"),M("all")};return H==="typeSelection"?(0,kt.jsx)(Jt,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):H==="userSelection"?(0,kt.jsx)(Kt,{users:Me,onUserSelect:_e,onCancel:()=>T("typeSelection")}):H==="digitalOptions"?(0,kt.jsx)(Xt,{onCloneExisting:()=>T("digitalClone"),onCreateNew:ye,onCancel:()=>T("typeSelection")}):H==="digitalClone"?(0,kt.jsx)(qt,{digitalColleagues:k,onColleagueClone:He,onCancel:()=>T("digitalOptions")}):H==="form"?(0,kt.jsx)(gt,{colleague:oe||void 0,onSave:je,onCancel:Y}):H==="view"?(0,kt.jsx)(gt,{colleague:re||void 0,onSave:je,onCancel:to,readOnly:!0}):(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-8",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsx)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:(0,kt.jsxs)("div",{className:`space-kt-6 ${d||""}`,children:[(0,kt.jsx)(Yt,{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:_}}),(0,kt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,kt.jsx)(Z.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="human").length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="digital").length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search colleagues...",value:f,onChange:l=>w(l.target.value),className:"pl-9"})]})}),(0,kt.jsxs)(ct,{value:W,onValueChange:B,children:[(0,kt.jsx)(qe,{className:"w-full md:w-[180px]",children:(0,kt.jsx)(mt,{placeholder:"Department"})}),(0,kt.jsxs)(Je,{children:[(0,kt.jsx)(Ne,{value:"all",children:"All Departments"}),i.map(l=>(0,kt.jsx)(Ne,{value:l,children:l},l))]})]}),(0,kt.jsxs)(ct,{value:P,onValueChange:M,children:[(0,kt.jsx)(qe,{className:"w-full md:w-[140px]",children:(0,kt.jsx)(mt,{placeholder:"Status"})}),(0,kt.jsxs)(Je,{children:[(0,kt.jsx)(Ne,{value:"all",children:"All Status"}),(0,kt.jsx)(Ne,{value:"active",children:"Active"}),(0,kt.jsx)(Ne,{value:"inactive",children:"Inactive"})]})]}),(f||W!=="all"||P!=="all")&&(0,kt.jsxs)(R,{variant:"outline",onClick:oo,className:"gap-2",children:[(0,kt.jsx)(Z.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)(jt,{activeTab:E,onTabChange:V,tabOptions:[{value:"all",label:`All (${$.length})`},{value:"human",label:`Human (${D.length})`},{value:"digital",label:`Digital (${he.length})`}],maxWidth:"400px",gridCols:3}),E==="all"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"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,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},`${l}-${l.id}`))}),E==="human"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:D.map(l=>(0,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},l.id))}),E==="digital"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:he.map(l=>(0,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},l.id))})]}),$.length===0&&(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:f||W!=="all"||P!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,kt.jsxs)(R,{onClick:_,className:"gap-2",children:[(0,kt.jsx)(Z.Plus,{className:"h-4 w-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-R5SXUWYU.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-ATBKMJU6.mjs";import"../../../chunk-K5MJYNCD.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-Z22NSJMF.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-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.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};
|