cortex-react-components 2.9.2 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-KYUPRUH5.mjs → chunk-2AWS5Z43.mjs} +1 -1
- package/dist/{chunk-IF3425JX.mjs → chunk-2VOOH4YJ.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-57PJ7CHJ.mjs} +1 -1
- package/dist/{chunk-5WVFEIMC.mjs → chunk-6DQ7FEQQ.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.mjs → chunk-75XBZHOC.mjs} +1 -1
- package/dist/{chunk-I2GNNRFH.mjs → chunk-AEFWTCCE.mjs} +1 -1
- package/dist/{chunk-YOETYY5S.mjs → chunk-AFQBDAWS.mjs} +1 -1
- package/dist/chunk-AM2SRWFU.mjs +1 -0
- package/dist/{chunk-VE5LRUED.mjs → chunk-ATDQQSX5.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-B2TBKNIJ.mjs} +1 -1
- package/dist/{chunk-ZEPEWKBV.mjs → chunk-BY5TSHJ5.mjs} +1 -1
- package/dist/{chunk-N3B3XNV3.mjs → chunk-FRXZ2OKW.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-FX6IXEMQ.mjs} +1 -1
- package/dist/{chunk-XBCYPOFD.mjs → chunk-GTK2SGS5.mjs} +1 -1
- package/dist/{chunk-I5NNEOCF.mjs → chunk-I2ZLKSWR.mjs} +1 -1
- package/dist/{chunk-ISBVFNWD.mjs → chunk-IDG2O4B7.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-KY3ELFX5.mjs} +1 -1
- package/dist/{chunk-62A35O55.mjs → chunk-LQASBVUG.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-N52FSTLG.mjs} +1 -1
- package/dist/{chunk-ERJXTG6X.mjs → chunk-NPGGDQ6F.mjs} +1 -1
- package/dist/chunk-PFDPO3UX.mjs +1 -0
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-Q7KKN6MH.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-QWFFSMKK.mjs} +1 -1
- package/dist/{chunk-PK3OBSCB.mjs → chunk-RUZVSK25.mjs} +1 -1
- package/dist/{chunk-FTZRG54P.mjs → chunk-RY4C3J33.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-S4ES6P3Y.mjs} +1 -1
- package/dist/chunk-SJQY7JRS.mjs +4 -0
- package/dist/{chunk-7GMAMIHM.mjs → chunk-SPAOEUCG.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-TUACRDU3.mjs} +1 -1
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/chunk-U6BCTHV7.mjs +1 -0
- package/dist/chunk-U7KI2WJW.mjs +4 -0
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-VBSFVJM5.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/chunk-ZMB6R6JX.mjs +1 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/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.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/index.js +1 -1
- package/dist/components/DigitalColleagues/index.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/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/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/AddTaskModal.d.ts +2 -1
- package/dist/components/Projects/AddTaskModal.js +1 -1
- package/dist/components/Projects/AddTaskModal.mjs +1 -1
- package/dist/components/Projects/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +3 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +3 -2
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/TaskCard.js +1 -1
- package/dist/components/Projects/TaskCard.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/index.js +11 -11
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +15 -15
- 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-2B5LH5XN.mjs +0 -4
- package/dist/chunk-6YHVVP3S.mjs +0 -1
- package/dist/chunk-EBTFLN5U.mjs +0 -1
- package/dist/chunk-GN25OSET.mjs +0 -1
- package/dist/chunk-NHXNMPM5.mjs +0 -4
- package/dist/chunk-OYZX5BM4.mjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-ATDQQSX5.mjs";import"../../../chunk-SJQY7JRS.mjs";import"../../../chunk-JB7IQQ3N.mjs";import"../../../chunk-5BV4MHV6.mjs";import"../../../chunk-2RGAV55J.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-GHZ6CUY3.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-ZXPDSSCF.mjs";import"../../../chunk-RHR3YOLG.mjs";import"../../../chunk-AREQGH47.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-6WQXZ6IE.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-UN57ZYKQ.mjs";import"../../../chunk-PWXCBW2H.mjs";import"../../../chunk-BE5B22X7.mjs";import"../../../chunk-PA4ZBJDO.mjs";import"../../../chunk-NVHQBM66.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-BHWGOTCJ.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-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};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
"use client"
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var vo=Object.create;var Ye=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty;var yo=(e,t)=>{for(var o in t)Ye(e,o,{get:t[o],enumerable:!0})},Rt=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!wo.call(e,i)&&i!==o&&Ye(e,i,{get:()=>t[i],enumerable:!(a=bo(t,i))||a.enumerable});return e};var Q=(e,t,o)=>(o=e!=null?vo(xo(e)):{},Rt(t||!e||!e.__esModule?Ye(o,"default",{value:e,enumerable:!0}):o,e)),Co=e=>Rt(Ye({},"__esModule",{value:!0}),e);var fa={};yo(fa,{default:()=>po});module.exports=Co(fa);var le=require("react"),oe=require("lucide-react");var Et=require("clsx");var vt="-",No=e=>{let t=Po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:p=>{let n=p.split(vt);return n[0]===""&&n.length!==1&&n.shift(),Tt(n,t)||So(p)},getConflictingClassGroupIds:(p,n)=>{let c=o[p]||[];return n&&a[p]?[...c,...a[p]]:c}}},Tt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),i=a?Tt(e.slice(1),a):void 0;if(i)return i;if(t.validators.length===0)return;let r=e.join(vt);return t.validators.find(({validator:p})=>p(r))?.classGroupId},Dt=/^\[(.+)\]$/,So=e=>{if(Dt.test(e)){let t=Dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Po=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return Do(Object.entries(e.classGroups),o).forEach(([r,p])=>{gt(p,a,r,t)}),a},gt=(e,t,o,a)=>{e.forEach(i=>{if(typeof i=="string"){let r=i===""?t:kt(t,i);r.classGroupId=o;return}if(typeof i=="function"){if(Ro(i)){gt(i(a),t,o,a);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([r,p])=>{gt(p,kt(t,r),o,a)})})},kt=(e,t)=>{let o=e;return t.split(vt).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ro=e=>e.isThemeGetter,Do=(e,t)=>t?e.map(([o,a])=>{let i=a.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([p,n])=>[t+p,n])):r);return[o,i]}):e,ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,i=(r,p)=>{o.set(r,p),t++,t>e&&(t=0,a=o,o=new Map)};return{get(r){let p=o.get(r);if(p!==void 0)return p;if((p=a.get(r))!==void 0)return i(r,p),p},set(r,p){o.has(r)?o.set(r,p):i(r,p)}}},Mt="!",To=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,i=t[0],r=t.length,p=n=>{let c=[],d=0,w=0,u;for(let v=0;v<n.length;v++){let R=n[v];if(d===0){if(R===i&&(a||n.slice(v,v+r)===t)){c.push(n.slice(w,v)),w=v+r;continue}if(R==="/"){u=v;continue}}R==="["?d++:R==="]"&&d--}let x=c.length===0?n:n.substring(w),z=x.startsWith(Mt),B=z?x.substring(1):x,P=u&&u>w?u-w:void 0;return{modifiers:c,hasImportantModifier:z,baseClassName:B,maybePostfixModifierPosition:P}};return o?n=>o({className:n,parseClassName:p}):p},Mo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},Ao=e=>({cache:ko(e.cacheSize),parseClassName:To(e),...No(e)}),Io=/\s+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:i}=t,r=[],p=e.trim().split(Io),n="";for(let c=p.length-1;c>=0;c-=1){let d=p[c],{modifiers:w,hasImportantModifier:u,baseClassName:x,maybePostfixModifierPosition:z}=o(d),B=!!z,P=a(B?x.substring(0,z):x);if(!P){if(!B){n=d+(n.length>0?" "+n:n);continue}if(P=a(x),!P){n=d+(n.length>0?" "+n:n);continue}B=!1}let v=Mo(w).join(":"),R=u?v+Mt:v,G=R+P;if(r.includes(G))continue;r.push(G);let X=i(P,B);for(let j=0;j<X.length;++j){let de=X[j];r.push(R+de)}n=d+(n.length>0?" "+n:n)}return n};function Bo(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=At(t))&&(a&&(a+=" "),a+=o);return a}var At=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=At(e[a]))&&(o&&(o+=" "),o+=t);return o};function Eo(e,...t){let o,a,i,r=p;function p(c){let d=t.reduce((w,u)=>u(w),e());return o=Ao(d),a=o.cache.get,i=o.cache.set,r=n,n(c)}function n(c){let d=a(c);if(d)return d;let w=Lo(c,o);return i(c,w),w}return function(){return r(Bo.apply(null,arguments))}}var E=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-z-]+):)?(.+)\]$/i,zo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),jo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Uo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|Ut|min|max))|\Ut(calc|min|max|clamp)\(.+\)|^0$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=e=>He(e)||Ho.has(e)||zo.test(e),xe=e=>je(e,"length",Xo),He=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>je(e,"number",He),We=e=>!!e&&Number.isInteger(Number(e)),Wo=e=>e.endsWith("%")&&He(e.slice(0,-1)),N=e=>It.test(e),we=e=>jo.test(e),Go=new Set(["length","size","percentage"]),Ko=e=>je(e,Go,Lt),Oo=e=>je(e,"position",Lt),_o=new Set(["image","url"]),qo=e=>je(e,_o,Qo),Jo=e=>je(e,"",Zo),Ge=()=>!0,je=(e,t,o)=>{let a=It.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},Xo=e=>Uo.test(e)&&!Fo.test(e),Lt=()=>!1,Zo=e=>Vo.test(e),Qo=e=>$o.test(e);var Yo=()=>{let e=E("colors"),t=E("spacing"),o=E("blur"),a=E("brightness"),i=E("borderColor"),r=E("borderRadius"),p=E("borderSpacing"),n=E("borderWidth"),c=E("contrast"),d=E("grayscale"),w=E("hueRotate"),u=E("invert"),x=E("gap"),z=E("gradientColorStops"),B=E("gradientColorStopPositions"),P=E("inset"),v=E("margin"),R=E("opacity"),G=E("padding"),X=E("saturate"),j=E("scale"),de=E("sepia"),me=E("skew"),ne=E("space"),h=E("translate"),K=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",N,t],A=()=>[N,t],he=()=>["",pe,xe],J=()=>["auto",He,N],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ee=()=>["solid","dashed","dotted","double","none"],Ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ze=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",N],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[He,N];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[pe,xe],blur:["none","",we,N],brightness:ce(),borderColor:[e],borderRadius:["none","","full",we,N],borderSpacing:A(),borderWidth:he(),contrast:ce(),grayscale:Pe(),hueRotate:ce(),invert:Pe(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Wo,xe],inset:Z(),margin:Z(),opacity:ce(),padding:A(),saturate:ce(),scale:ce(),sepia:Pe(),skew:ce(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",N]}],container:["container"],columns:[{columns:[we]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...Se(),N]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-Ut":[{"overflow-Ut":q()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-Ut":[{"overscroll-Ut":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-Ut":[{"inset-Ut":[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",We,N]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",N]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",We,N]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",We,N]},N]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[We,N]},N]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",N]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",N]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-Ut":[{"gap-Ut":[x]}],"justify-content":[{justify:["normal",...ze()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ze(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ze(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],Ut:[{Ut:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],xt:[{xt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-Ut":[{"space-Ut":[ne]}],"space-Ut-reverse":["space-Ut-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",N,t]}],"min-w":[{"min-w":[N,t,"min","max","fit"]}],"max-w":[{"max-w":[N,t,"none","full","min","max","fit","prose",{screen:[we]},we]}],h:[{h:[N,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[N,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[N,t,"auto","min","max","fit"]}],"font-size":[{text:["base",we,xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",N]}],"line-clamp":[{"line-clamp":["none",He,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,N]}],"list-image":[{"list-image":["none",N]}],"list-style-type":[{list:["none","disc","decimal",N]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,xe]}],"underline-offset":[{"underline-offset":["auto",pe,N]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),Oo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ko]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ut","bl","Ut","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-Ut":[{"rounded-Ut":[r]}],"rounded-Ut":[{"rounded-Ut":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-oe":[{"rounded-oe":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-Ut":[{"border-Ut":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-Ut":[{"border-Ut":[n]}],"border-w-Ut":[{"border-Ut":[n]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...Ee(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-Ut":[{"divide-Ut":[n]}],"divide-Ut-reverse":["divide-Ut-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Ee()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Ut":[{"border-Ut":[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-Ut":[{"border-Ut":[i]}],"border-color-Ut":[{"border-Ut":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Ee()]}],"outline-offset":[{"outline-offset":[pe,N]}],"outline-w":[{outline:[pe,xe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[pe,xe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",we,Jo]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Ze(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ze()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",we,N]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[u]}],saturate:[{saturate:[X]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-Ut":[{"border-spacing-Ut":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",N]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",N]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",N]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-Ut":[{"scale-Ut":[j]}],rotate:[{rotate:[We,N]}],"translate-x":[{"translate-x":[h]}],"translate-Ut":[{"translate-Ut":[h]}],"skew-x":[{"skew-x":[me]}],"skew-Ut":[{"skew-Ut":[me]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","oe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-xt":[{"scroll-xt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Ut":[{"touch-pan":["Ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,xe,ft]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Ut"],overscroll:["overscroll-x","overscroll-Ut"],inset:["inset-x","inset-Ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Ut"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","me","xt","mr","mb","ml"],mx:["mr","ml"],my:["xt","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-Ut","rounded-Ut","rounded-ss","rounded-oe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-oe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ut":["rounded-br","rounded-bl"],"rounded-Ut":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Ut"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-Ut","border-w-Ut"],"border-w-x":["border-w-r","border-w-Ut"],"border-w-Ut":["border-w-t","border-w-Ut"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ut","border-color-Ut"],"border-color-x":["border-color-r","border-color-Ut"],"border-color-Ut":["border-color-t","border-color-Ut"],"scroll-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-xt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-xt","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-Ut","touch-pz"],"touch-x":["touch"],"touch-Ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Bt=Eo(Yo);function g(...e){return Bt((0,Et.clsx)(e))}var zt=require("@radix-ui/react-slot"),Ht=require("class-variance-authority"),jt=Q(require("react")),Ut=require("react/jsx-runtime"),ea=(0,Ht.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"}}}),k=jt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...i},r)=>(0,Ut.jsx)(e?zt.Slot:"button",{className:g(ea({className:t,size:o,variant:a})),ref:r,...i}));k.displayName="Button";var Re=Q(require("react"));var I=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var V=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex flex-col space-Ut-1.5 p-6",e),...t}));V.displayName="CardHeader";var _=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));_.displayName="CardTitle";var ta=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));ta.displayName="CardDescription";var L=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));L.displayName="CardContent";var oa=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));oa.displayName="CardFooter";var Ft=Q(require("react"));var ae=Ft.forwardRef(({className:e,type:t,...o},a)=>(0,Ut.jsx)("input",{type:t,className:g("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:a,...o}));ae.displayName="Input";var T=Q(require("@radix-ui/react-select")),ye=Q(require("react")),bt=T.Root;var ht=T.Value,et=ye.forwardRef(({children:e,className:t,...o},a)=>(0,Ut.jsxs)(T.Trigger,{className:g("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:a,...o,children:[e,(0,Ut.jsx)(T.Icon,{asChild:!0,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));et.displayName=T.Trigger.displayName;var $t=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronUp,{className:"h-4 w-4"})}));$t.displayName=T.ScrollUpButton.displayName;var Wt=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 w-4"})}));Wt.displayName=T.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...a},i)=>(0,Ut.jsx)(T.Portal,{children:(0,Ut.jsxs)(T.Content,{className:g("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-Ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Ut-1",t),position:o,ref:i,...a,children:[(0,Ut.jsx)($t,{}),(0,Ut.jsx)(T.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ut.jsx)(Wt,{})]})}));tt.displayName=T.Content.displayName;var aa=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));aa.displayName=T.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},a)=>(0,Ut.jsxs)(T.Item,{className:g("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:a,...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ut.jsx)(T.ItemIndicator,{children:(0,Ut.jsx)(oe.Check,{className:"h-4 w-4"})})}),(0,Ut.jsx)(T.ItemText,{children:e})]}));Te.displayName=T.Item.displayName;var ra=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));ra.displayName=T.Separator.displayName;var xt=require("motion/react");var Me=Q(require("@radix-ui/react-tabs"));function Gt({className:e,...t}){return(0,Ut.jsx)(Me.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function Kt({className:e,...t}){return(0,Ut.jsx)(Me.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ot({className:e,...t}){return(0,Ut.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:g("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 ue=Q(require("react")),M=Q(require("@radix-ui/react-dropdown-menu")),Ue=require("@radix-ui/react-icons");var at=M.Root,rt=M.Trigger;var ia=ue.forwardRef(({className:e,inset:t,children:o,...a},i)=>(0,$.jsxs)(M.SubTrigger,{ref:i,className:g("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),...a,children:[o,(0,$.jsx)(Ue.ChevronRightIcon,{className:"ml-auto"})]}));ia.displayName=M.SubTrigger.displayName;var na=ue.forwardRef(({className:e,...t},o)=>(0,$.jsx)(M.SubContent,{ref:o,className:g("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}));na.displayName=M.SubContent.displayName;var Ke=ue.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,$.jsx)(M.Portal,{children:(0,$.jsx)(M.Content,{ref:a,sideOffset:t,className:g("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})}));Ke.displayName=M.Content.displayName;var Ae=ue.forwardRef(({className:e,inset:t,...o},a)=>(0,$.jsx)(M.Item,{ref:a,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ae.displayName=M.Item.displayName;var sa=ue.forwardRef(({className:e,children:t,checked:o,...a},i)=>(0,$.jsxs)(M.CheckboxItem,{ref:i,className:g("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,...a,children:[(0,$.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$.jsx)(M.ItemIndicator,{children:(0,$.jsx)(Ue.CheckIcon,{className:"h-4 w-4"})})}),t]}));sa.displayName=M.CheckboxItem.displayName;var la=ue.forwardRef(({className:e,children:t,...o},a)=>(0,$.jsxs)(M.RadioItem,{ref:a,className:g("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,$.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,$.jsx)(M.ItemIndicator,{children:(0,$.jsx)(Ue.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));la.displayName=M.RadioItem.displayName;var da=ue.forwardRef(({className:e,inset:t,...o},a)=>(0,$.jsx)(M.Label,{ref:a,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));da.displayName=M.Label.displayName;var ca=ue.forwardRef(({className:e,...t},o)=>(0,$.jsx)(M.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));ca.displayName=M.Separator.displayName;var ma=({className:e,...t})=>(0,$.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});ma.displayName="DropdownMenuShortcut";function qt({activeTab:e,onTabChange:t,tabOptions:o,className:a="",maxWidth:i="700px",gridCols:r=6}){let p=o.find(n=>n.value===e);return(0,Ut.jsxs)(xt.motion.div,{className:`flex-1 flex justify-center ${a}`,initial:{opacity:0,Ut:-20},animate:{opacity:1,Ut:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden md:block",children:(0,Ut.jsx)(Gt,{value:e,onValueChange:t,children:(0,Ut.jsx)(Kt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(r,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(Ot,{value:n.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:n.label})},n.value))})})}),(0,Ut.jsx)("div",{className:"md:hidden",children:(0,Ut.jsxs)(at,{children:[(0,Ut.jsx)(rt,{asChild:!0,children:(0,Ut.jsxs)(k,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[p?.label||"Select",(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,Ut.jsx)(Ke,{align:"center",className:"w-[180px]",children:o.map(n=>(0,Ut.jsx)(Ae,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var it=Q(require("react")),fe=Q(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Root,{ref:o,className:g("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=fe.Root.displayName;var Oe=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Image,{ref:o,className:g("aspect-square h-full w-full",e),...t}));Oe.displayName=fe.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Fallback,{ref:o,className:g("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=fe.Fallback.displayName;var pa=(0,Ht.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 H({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:g(pa({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:a,showActions:i=!0,compact:r=!1,className:p}){let[n,c]=(0,le.useState)(!1),d=x=>{switch(x){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},w=x=>{switch(x){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},u=x=>{if(!x)return"Never";let B=Math.floor((new Date().getTime()-x.getTime())/(1e3*60));return B<1?"Just now":B<60?`${B}Ut ago`:B<1440?`${Math.floor(B/60)}h ago`:`${Math.floor(B/1440)}d ago`};return(0,Ut.jsxs)(I,{className:g("hover:shadow-md transition-shadow",r&&"p-2",p),children:[(0,Ut.jsx)(V,{className:g("pb-3",r&&"pb-2"),children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"relative",children:(0,Ut.jsxs)(Ie,{className:g("h-12 w-12",r&&"h-8 w-8"),children:[(0,Ut.jsx)(Oe,{src:"/placeholder.svg",alt:e.name}),(0,Ut.jsx)(Le,{children:e.name.split(" ").map(x=>x[0]).join("")})]})}),(0,Ut.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("h3",{className:g("font-semibold text-sm truncate",r&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ut.jsx)(oe.Bot,{className:g("h-4 w-4 text-blue-500",r&&"h-3 w-3")}):(0,Ut.jsx)(oe.User,{className:g("h-4 w-4 text-green-500",r&&"h-3 w-3")})]}),(0,Ut.jsx)("p",{className:g("text-sm text-muted-foreground truncate",r&&"text-xs"),children:e.type==="human"?e.role:e.description}),!r&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 xt-1",children:[e.type==="human"&&(0,Ut.jsx)(H,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Ut.jsxs)(H,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:w(e.status)})]})]})]}),i&&(0,Ut.jsxs)(at,{children:[(0,Ut.jsx)(rt,{asChild:!0,children:(0,Ut.jsx)(k,{variant:"ghost",size:"icon",className:g("h-8 w-8",r&&"h-6 w-6"),children:(0,Ut.jsx)(oe.MoreHorizontal,{className:g("h-4 w-4",r&&"h-3 w-3")})})}),(0,Ut.jsxs)(Ke,{align:"end",children:[(0,Ut.jsxs)(Ae,{onClick:()=>a?.(e),children:[(0,Ut.jsx)(oe.Settings,{className:"h-4 w-4 mr-2"}),"View Details"]}),(0,Ut.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ut.jsx)(oe.Edit,{className:"h-4 w-4 mr-2"}),"Edit"]}),(0,Ut.jsxs)(Ae,{onClick:()=>o?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Ut.jsx)(oe.Trash2,{className:"h-4 w-4 mr-2"}),"Delete"]})]})]})]})}),!r&&(0,Ut.jsxs)(L,{className:"pt-0",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[e.type==="human"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(oe.Mail,{className:"h-3 w-3"}),(0,Ut.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Ut.jsxs)(Ut.Fragment,{children:[e.phone&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(oe.Phone,{className:"h-3 w-3"}),(0,Ut.jsx)("span",{children:e.phone})]}),e.location&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(oe.MapPin,{className:"h-3 w-3"}),(0,Ut.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(oe.Settings,{className:"h-3 w-3"}),(0,Ut.jsxs)("span",{children:["v",e.version]})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(oe.Clock,{className:"h-3 w-3"}),(0,Ut.jsxs)("span",{children:["Last active: ",u(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,n?e.skills.length:3).map(x=>(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:x},x)),e.skills.length>3&&(0,Ut.jsx)(k,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!n),children:n?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,n?e.capabilities.length:2).map(x=>(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:x},x)),e.capabilities.length>2&&(0,Ut.jsx)(k,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!n),children:n?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Qt=Q(require("react")),wt=Q(require("@radix-ui/react-label"));var ua=(0,Ht.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ge=Qt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(wt.Root,{ref:o,className:g(ua(),e),...t}));ge.displayName=wt.Root.displayName;var to=Q(require("react")),_e=to.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:g("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}));_e.displayName="Textarea";var yt=Q(require("react")),re=Q(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},a)=>(0,Ut.jsxs)(re.Root,{ref:a,className:g("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(re.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ut.jsx)(ao,{}),(0,Ut.jsx)(re.Corner,{})]}));Ct.displayName=re.Root.displayName;var ao=yt.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Ut.jsx)(re.ScrollAreaScrollbar,{ref:a,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Ut border-Ut-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(re.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ao.displayName=re.ScrollAreaScrollbar.displayName;function Nt({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:a,placeholder:i="Search knowledge documents...",maxSelections:r,disabled:p=!1}){let[n,c]=(0,le.useState)(""),[d,w]=(0,le.useState)([]),[u,x]=(0,le.useState)(!1);(0,le.useEffect)(()=>{if(!n.trim()){w([]),x(!1);return}let v=o.filter(R=>{if(e.map(j=>j.id).includes(R.id))return!1;let X=n.toLowerCase();return R.title.toLowerCase().includes(X)||R.description?.toLowerCase().includes(X)||R.tags?.some(j=>j.toLowerCase().includes(X))||Object.values(R.metadata||{}).some(j=>String(j).toLowerCase().includes(X))});w(v),x(!0)},[n,e,o]);let z=v=>{r&&e.length>=r||(t([...e,v]),c(""),x(!1))},B=v=>{t(e.filter(R=>R.id!==v))},P=!r||e.length<r;return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:a}),(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(ae,{value:n,onChange:v=>c(v.target.value),placeholder:P?i:`Maximum ${r} documents selected`,className:"pl-9",disabled:p||!P,onFocus:()=>n&&x(!0)})]}),u&&d.length>0&&(0,Ut.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 xt-1 max-h-60",children:(0,Ut.jsx)(Ct,{className:"h-full",children:(0,Ut.jsx)(L,{className:"p-2",children:d.map(v=>(0,Ut.jsx)(k,{variant:"ghost",className:"w-full justify-start h-auto p-3 mb-1",onClick:()=>z(v),disabled:p,children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3 w-full",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 w-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"text-left flex-1 min-w-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm truncate",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1 line-clamp-2",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1 xt-2",children:[v.tags.slice(0,3).map(R=>(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:R},R)),v.tags.length>3&&(0,Ut.jsxs)(H,{variant:"outline",className:"text-xs",children:["+",v.tags.length-3," more"]})]})]})]})},v.id))})})}),u&&n&&d.length===0&&(0,Ut.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 xt-1",children:(0,Ut.jsxs)(L,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',n,'"']})})]}),e.length>0&&(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,r&&`/${r}`,")"]}),(0,Ut.jsx)("div",{className:"space-Ut-2",children:e.map(v=>(0,Ut.jsx)(I,{className:"p-3",children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 w-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsx)("div",{className:"flex flex-wrap gap-1 xt-2",children:v.tags.map(R=>(0,Ut.jsxs)(H,{variant:"outline",className:"text-xs",children:[(0,Ut.jsx)(oe.Tag,{className:"h-3 w-3 mr-1"}),R]},R))})]}),(0,Ut.jsx)(k,{type:"button",variant:"ghost",size:"icon",className:"h-6 w-6 flex-shrink-0",onClick:()=>B(v.id),disabled:p,children:(0,Ut.jsx)(oe.X,{className:"h-3 w-3"})})]})},v.id))})]}),u&&(0,Ut.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>x(!1)})]})}function St({colleague:e,onSave:t,onCancel:o,isLoading:a=!1,title:i,submitLabel:r,cancelLabel:p="Cancel",readOnly:n=!1,availableKnowledgeDocuments:c=[]}){let[d,w]=(0,le.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[u,x]=(0,le.useState)(""),[z,B]=(0,le.useState)(""),[P,v]=(0,le.useState)(!n);(0,le.useEffect)(()=>{e&&w(e)},[e]);let R=h=>{h.preventDefault();let K=d.version?parseInt(d.version):0,q=e?(K+1).toString():"1",Z={id:d.id||Date.now().toString(),name:d.name,type:"digital",status:"active",joinedDate:d.joinedDate||new Date,lastActive:d.lastActive||new Date,description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],knowledge:d.knowledge||[],coreKnowledge:d.coreKnowledge||[],version:q,lastUpdated:d.lastUpdated||new Date,isActive:!0};t(Z)},G=(h,K,q)=>{if(!K.trim())return;let Z=d[h]||[];w({...d,[h]:[...Z,K.trim()]}),q("")},X=(h,K)=>{let q=d[h]||[];w({...d,[h]:q.filter((Z,A)=>A!==K)})},j=h=>{h.preventDefault(),v(!P)},de=(h,K,q,Z,A)=>{let he=d[h]||[];return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:K}),P&&(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(ae,{value:q,onChange:J=>Z(J.target.value),placeholder:A,onKeyPress:J=>{J.key==="Enter"&&(J.preventDefault(),G(h,q,Z))},disabled:a}),(0,Ut.jsx)(k,{type:"button",variant:"outline",size:"icon",onClick:()=>G(h,q,Z),disabled:a,children:(0,Ut.jsx)(oe.Plus,{className:"h-4 w-4"})})]}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-2",children:he.map((J,Se)=>(0,Ut.jsxs)(H,{className:"gap-1",children:[J,P&&(0,Ut.jsx)(k,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(h,Se),disabled:a,children:(0,Ut.jsx)(oe.X,{className:"h-3 w-3"})})]},`${h}-${Se}-${J}`))})]})},me=i||(P?e?"Edit Colleague":"Add New Colleague":"View Colleague"),ne=r||(e?"Update Colleague":"Add Colleague");return(0,Ut.jsxs)(I,{className:"Ut-8 w-full max-w-4xl mx-auto",children:[(0,Ut.jsx)(V,{children:(0,Ut.jsxs)(_,{className:"flex items-center gap-2",children:[(0,Ut.jsx)(oe.Bot,{className:"h-5 w-5"}),me]})}),(0,Ut.jsx)(L,{children:(0,Ut.jsxs)("form",{onSubmit:R,className:"space-Ut-6",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"name",children:"Name *"}),(0,Ut.jsx)(ae,{id:"name",value:d.name||"",onChange:h=>w({...d,name:h.target.value}),required:!0,disabled:a||!P})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"description",children:"Description"}),(0,Ut.jsx)(_e,{id:"description",value:d.description||"",onChange:h=>w({...d,description:h.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:a||!P})]})]}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ut.jsx)(_e,{id:"jobDescription",value:d.jobDescription||"",onChange:h=>w({...d,jobDescription:h.target.value}),rows:4,required:d.type==="digital",disabled:a||!P})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ut.jsx)(_e,{id:"workInstructions",value:d.workInstructions||"",onChange:h=>w({...d,workInstructions:h.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:a||!P})]}),de("capabilities","Capabilities",z,B,"Add capability"),(0,Ut.jsx)(Nt,{selectedDocuments:d.knowledge||[],onDocumentsChange:h=>w({...d,knowledge:h}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:a||!P,availableDocuments:c}),(0,Ut.jsx)(Nt,{selectedDocuments:d.coreKnowledge||[],onDocumentsChange:h=>w({...d,coreKnowledge:h}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:a||!P,availableDocuments:c})]}),(0,Ut.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ut.jsx)(k,{type:"button",variant:"outline",onClick:o,disabled:a,children:P?p:"Close"}),P?(0,Ut.jsx)(k,{type:"submit",disabled:a,children:a?"Saving...":ne}):(0,Ut.jsxs)(k,{type:"button",onClick:j,disabled:a,className:"gap-2",children:[(0,Ut.jsx)(oe.Edit,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}function ro({users:e,onUserSelect:t,onCancel:o,selectedUserId:a}){let[i,r]=(0,le.useState)(""),p=(0,le.useMemo)(()=>e.filter(c=>c.name.toLowerCase().includes(i.toLowerCase())||c.email.toLowerCase().includes(i.toLowerCase())||c.role.toLowerCase().includes(i.toLowerCase())||(c.skills||[]).some(w=>w.toLowerCase().includes(i.toLowerCase()))),[e,i]),n=c=>{t(c)};return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(k,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ut.jsx)(I,{className:"container",children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(ae,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:c=>r(c.target.value),className:"pl-9"})]})})})})}),(0,Ut.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:p.map(c=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${a===c.id?"ring-2 ring-primary":""}`,onClick:()=>n(c),children:[(0,Ut.jsx)(V,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsxs)(Ie,{children:[(0,Ut.jsx)(Oe,{src:c.avatar,alt:c.name}),(0,Ut.jsx)(Le,{children:(0,Ut.jsx)(oe.User,{className:"h-4 w-4"})})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)(_,{className:"text-lg",children:c.name}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:c.role})]})]}),a===c.id&&(0,Ut.jsx)(oe.Check,{className:"h-5 w-5 text-primary"})]})}),(0,Ut.jsx)(L,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ut.jsx)("p",{className:"text-sm font-medium",children:c.email})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Ut.jsx)(H,{variant:"secondary",children:c.department})]}),c.location&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Ut.jsx)("p",{className:"text-sm",children:c.location})]}),c.skills&&c.skills.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[c.skills.slice(0,3).map(d=>(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:d},d)),c.skills.length>3&&(0,Ut.jsxs)(H,{variant:"outline",className:"text-xs",children:["+",c.skills.length-3]})]})]})]})})]})},c.id))}),p.length===0&&(0,Ut.jsx)(I,{className:"container xt-4",children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function io({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:a}){let[i,r]=(0,le.useState)(""),[p,n]=(0,le.useState)("all"),c=(0,le.useMemo)(()=>e.filter(u=>{let x=u.name.toLowerCase().includes(i.toLowerCase())||u.jobDescription.toLowerCase().includes(i.toLowerCase())||u.capabilities.some(B=>B.toLowerCase().includes(i.toLowerCase()))||u.workInstructions.toLowerCase().includes(i.toLowerCase()),z=p==="all"||u.status===p;return x&&z}),[e,i,p]),d=u=>{let x={...u,id:`${u.id}-clone-${Date.now()}`,name:`${u.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(x)},w=u=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(u);return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(k,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ut.jsx)(I,{children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(ae,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:u=>r(u.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)("select",{value:p,onChange:u=>n(u.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ut.jsx)("option",{value:"all",children:"All Status"}),(0,Ut.jsx)("option",{value:"active",children:"Active"}),(0,Ut.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ut.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(u=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${a===u.id?"ring-2 ring-primary":""}`,onClick:()=>d(u),children:[(0,Ut.jsx)(V,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)(Ie,{children:(0,Ut.jsx)(Le,{className:"bg-blue-100",children:(0,Ut.jsx)(oe.Bot,{className:"h-4 w-4 text-blue-600"})})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsxs)(_,{className:"text-lg flex items-center gap-2",children:[u.name,(0,Ut.jsx)(H,{variant:u.status==="active"?"default":"secondary",className:"text-xs",children:u.status})]}),(0,Ut.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",u.version]})]})]}),(0,Ut.jsxs)(k,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:x=>{x.stopPropagation(),d(u)},children:[(0,Ut.jsx)(oe.Copy,{className:"h-3 w-3"}),"Clone"]})]})}),(0,Ut.jsx)(L,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ut.jsx)("p",{className:"text-sm line-clamp-2",children:u.jobDescription})]}),u.capabilities&&u.capabilities.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[u.capabilities.slice(0,3).map(x=>(0,Ut.jsx)(H,{variant:"outline",className:"text-xs",children:x},x)),u.capabilities.length>3&&(0,Ut.jsxs)(H,{variant:"outline",className:"text-xs",children:["+",u.capabilities.length-3]})]})]}),(0,Ut.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Calendar,{className:"h-3 w-3"}),(0,Ut.jsxs)("span",{children:["Updated ",w(u.lastUpdated)]})]}),u.knowledge&&(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Users,{className:"h-3 w-3"}),(0,Ut.jsxs)("span",{children:[u.knowledge.length," docs"]})]})]}),u.workInstructions&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ut.jsx)("p",{className:"text-xs line-clamp-2",children:u.workInstructions})]})]})})]})},u.id))}),c.length===0&&(0,Ut.jsx)(I,{children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Bot,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function no({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(k,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(V,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.User,{className:"h-8 w-8 text-blue-600"})}),(0,Ut.jsx)(_,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ut.jsxs)(L,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 w-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Browse existing users"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.User,{className:"h-4 w-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ut.jsx)(k,{className:"xt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(V,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,Ut.jsx)(_,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ut.jsxs)(L,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 w-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 w-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Create from templates"})]})]}),(0,Ut.jsx)(k,{className:"xt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function so({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)($e.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)($e.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(k,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,Ut.jsx)($e.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(V,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,Ut.jsx)(_,{className:"text-xl",children:"Clone Existing"})]}),(0,Ut.jsxs)(L,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 w-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Copy,{className:"h-4 w-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ut.jsx)(k,{className:"xt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ut.jsx)($e.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(V,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,Ut.jsx)(_,{className:"text-xl",children:"Create New"})]}),(0,Ut.jsxs)(L,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 w-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Custom job description"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ut.jsx)(k,{className:"xt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function lo(e,t){let[o,a]=(0,le.useState)(()=>{if(typeof window>"u")return t;try{let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}catch{return t}}),i=r=>{try{a(r),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(r))}catch{}};return(0,le.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function mo({title:e,description:t,badge:o,primaryAction:a,secondaryAction:i,gradient:r,children:p,className:n}){let[c,d]=lo(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),w=!i&&!t||c;return(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:20},animate:{opacity:1,Ut:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${r} p-8 text-white ${n||""}`,children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ut.jsx)(H,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ut.jsx)("h2",{className:"text-3xl font-bold Ut-0",children:e})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[w&&a&&(0,Ut.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),(i||t)&&(0,Ut.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!c),style:{lineHeight:0},children:c?(0,Ut.jsx)(ct.FaChevronDown,{size:22}):(0,Ut.jsx)(ct.FaChevronUp,{size:22})})]})]}),!w&&(0,Ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[a&&(0,Ut.jsx)(k,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),i&&(0,Ut.jsx)(k,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),p&&(0,Ut.jsx)("div",{className:"hidden lg:block",children:p})]})]})}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:a,compactView:i=!1,departments:r=["Design","Engineering","Marketing","Product","Sales","Operations"],className:p,availableUsers:n=[],existingDigitalColleagues:c=[]}){let[d,w]=(0,le.useState)(e||[]),[u,x]=(0,le.useState)(""),[z,B]=(0,le.useState)("all"),[P,v]=(0,le.useState)("all"),[R,G]=(0,le.useState)("all"),[X,j]=(0,le.useState)(null),[de,me]=(0,le.useState)(null);(0,le.useEffect)(()=>{w(e||[])},[e]);let[ne,h]=(0,le.useState)("main"),K=d.filter(s=>{let ee=s.name.toLowerCase().includes(u.toLowerCase())||s.type==="human"&&(s.email.toLowerCase().includes(u.toLowerCase())||s.role.toLowerCase().includes(u.toLowerCase()))||s.type==="digital"&&s.jobDescription.toLowerCase().includes(u.toLowerCase()),O=z==="all"||s.type==="human"&&s.department===z,ut=P==="all"||s.status===P;return ee&&O&&ut}),q=K.filter(s=>s.type==="human"),Z=K.filter(s=>s.type==="digital"),A=()=>{h("typeSelection")},he=s=>{s.type==="digital"&&(j(s),h("form")),console.log("Editing colleague:",s),o?.(s)},J=s=>{s.type==="digital"&&(me(s),h("view"))},Se=s=>{let ee={id:`human-${Date.now()}`,type:"human",name:s.name,email:s.email,role:s.role,department:s.department,phone:s.phone,location:s.location,timezone:s.timezone,skills:s.skills,bio:s.bio,status:"active",joinedDate:new Date,lastActive:new Date};w(O=>[...O,ee]),t?.(ee),h("main")},Ee=s=>{w(ee=>[...ee,s]),t?.(s),h("main")},Ze=()=>{j(null),h("form")},ze=s=>{X?(w(ee=>ee.map(O=>O.id===s.id?s:O)),o?.(s)):(w(ee=>[...ee,s]),t?.(s)),h("main"),j(null)},Pe=()=>{h("main"),j(null),me(null)},Qe=()=>{h("main"),me(null)},ce=()=>{de&&(j(de),me(null),h("form"))},pt=s=>{console.log("handling delete colleague",s),w(ee=>ee.filter(O=>O.id!==s)),a?.(s)},uo=()=>{x(""),B("all"),v("all")},Pt=()=>{let s=[];return c.forEach(O=>{s.push(...O.knowledge,...O.coreKnowledge)}),d.forEach(O=>{O.type==="digital"&&s.push(...O.knowledge,...O.coreKnowledge)}),s.filter((O,ut,fo)=>ut===fo.findIndex(go=>go.id===O.id))};return ne==="typeSelection"?(0,Ut.jsx)(no,{onSelectHuman:()=>h("userSelection"),onSelectDigital:()=>h("digitalOptions"),onCancel:()=>h("main")}):ne==="userSelection"?(0,Ut.jsx)(ro,{users:n,onUserSelect:Se,onCancel:()=>h("typeSelection")}):ne==="digitalOptions"?(0,Ut.jsx)(so,{onCloneExisting:()=>h("digitalClone"),onCreateNew:Ze,onCancel:()=>h("typeSelection")}):ne==="digitalClone"?(0,Ut.jsx)(io,{digitalColleagues:c,onColleagueClone:Ee,onCancel:()=>h("digitalOptions")}):ne==="form"?(0,Ut.jsx)(St,{colleague:X||void 0,onSave:ze,onCancel:Pe,availableKnowledgeDocuments:Pt()}):ne==="view"?(0,Ut.jsx)(St,{colleague:de||void 0,onSave:ze,onCancel:Qe,readOnly:!0,availableKnowledgeDocuments:Pt()}):(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-8",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsx)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:(0,Ut.jsxs)("div",{className:`space-Ut-6 ${p||""}`,children:[(0,Ut.jsx)(mo,{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:A}}),(0,Ut.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ut.jsxs)(I,{children:[(0,Ut.jsxs)(V,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(_,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ut.jsx)(oe.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(s=>s.status==="active").length," active"]})]})]}),(0,Ut.jsxs)(I,{children:[(0,Ut.jsxs)(V,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(_,{className:"text-sm font-medium",children:"Human Members"}),(0,Ut.jsx)(oe.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(s=>s.type==="human").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(s=>s.type==="human"&&s.status==="active").length," ","active"]})]})]}),(0,Ut.jsxs)(I,{children:[(0,Ut.jsxs)(V,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(_,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ut.jsx)(oe.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(s=>s.type==="digital").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(s=>s.type==="digital"&&s.status==="active").length," ","active"]})]})]})]}),(0,Ut.jsx)(I,{children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,Ut.jsx)(ae,{placeholder:"Search colleagues...",value:u,onChange:s=>x(s.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)(bt,{value:z,onValueChange:B,children:[(0,Ut.jsx)(et,{className:"w-full md:w-[180px]",children:(0,Ut.jsx)(ht,{placeholder:"Department"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Departments"}),r.map(s=>(0,Ut.jsx)(Te,{value:s,children:s},s))]})]}),(0,Ut.jsxs)(bt,{value:P,onValueChange:v,children:[(0,Ut.jsx)(et,{className:"w-full md:w-[140px]",children:(0,Ut.jsx)(ht,{placeholder:"Status"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Status"}),(0,Ut.jsx)(Te,{value:"active",children:"Active"}),(0,Ut.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(u||z!=="all"||P!=="all")&&(0,Ut.jsxs)(k,{variant:"outline",onClick:uo,className:"gap-2",children:[(0,Ut.jsx)(oe.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)(qt,{activeTab:R,onTabChange:G,tabOptions:[{value:"all",label:`All (${K.length})`},{value:"human",label:`Human (${q.length})`},{value:"digital",label:`Digital (${Z.length})`}],maxWidth:"400px",gridCols:3}),R==="all"&&(0,Ut.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:K.map(s=>(0,Ut.jsx)(st,{colleague:s,onEdit:he,onDelete:pt,onViewDetails:J,compact:i},s.id))}),R==="human"&&(0,Ut.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:q.map(s=>(0,Ut.jsx)(st,{colleague:s,onEdit:he,onDelete:pt,onViewDetails:J,compact:i},s.id))}),R==="digital"&&(0,Ut.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:Z.map(s=>(0,Ut.jsx)(st,{colleague:s,onEdit:he,onDelete:pt,onViewDetails:J,compact:i},s.id))})]}),K.length===0&&(0,Ut.jsx)(I,{children:(0,Ut.jsx)(L,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:u||z!=="all"||P!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ut.jsxs)(k,{onClick:A,className:"gap-2",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
|
|
5
|
+
"use strict";"use client";var bo=Object.create;var Ye=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var Co=(e,t)=>{for(var o in t)Ye(e,o,{get:t[o],enumerable:!0})},Rt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xo(t))!yo.call(e,i)&&i!==o&&Ye(e,i,{get:()=>t[i],enumerable:!(r=ho(t,i))||r.enumerable});return e};var Q=(e,t,o)=>(o=e!=null?bo(wo(e)):{},Rt(t||!e||!e.__esModule?Ye(o,"default",{value:e,enumerable:!0}):o,e)),No=e=>Rt(Ye({},"__esModule",{value:!0}),e);var gr={};Co(gr,{default:()=>po});module.exports=No(gr);var le=require("react"),oe=require("lucide-react");var Et=require("clsx");var vt="-",So=e=>{let t=Ro(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:p=>{let s=p.split(vt);return s[0]===""&&s.length!==1&&s.shift(),Tt(s,t)||Po(p)},getConflictingClassGroupIds:(p,s)=>{let c=o[p]||[];return s&&r[p]?[...c,...r[p]]:c}}},Tt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?Tt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(vt);return t.validators.find(({validator:p})=>p(a))?.classGroupId},Dt=/^\[(.+)\]$/,Po=e=>{if(Dt.test(e)){let t=Dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ro=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ko(Object.entries(e.classGroups),o).forEach(([a,p])=>{gt(p,r,a,t)}),r},gt=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:kt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(Do(i)){gt(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,p])=>{gt(p,kt(t,a),o,r)})})},kt=(e,t)=>{let o=e;return t.split(vt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Do=e=>e.isThemeGetter,ko=(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(([p,s])=>[t+p,s])):a);return[o,i]}):e,To=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,p)=>{o.set(a,p),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let p=o.get(a);if(p!==void 0)return p;if((p=r.get(a))!==void 0)return i(a,p),p},set(a,p){o.has(a)?o.set(a,p):i(a,p)}}},Mt="!",Mo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,p=s=>{let c=[],d=0,x=0,u;for(let v=0;v<s.length;v++){let P=s[v];if(d===0){if(P===i&&(r||s.slice(v,v+a)===t)){c.push(s.slice(x,v)),x=v+a;continue}if(P==="/"){u=v;continue}}P==="["?d++:P==="]"&&d--}let h=c.length===0?s:s.substring(x),j=h.startsWith(Mt),E=j?h.substring(1):h,S=u&&u>x?u-x:void 0;return{modifiers:c,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:p}):p},Ao=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},Io=e=>({cache:To(e.cacheSize),parseClassName:Mo(e),...So(e)}),Lo=/\s+/,Bo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],p=e.trim().split(Lo),s="";for(let c=p.length-1;c>=0;c-=1){let d=p[c],{modifiers:x,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:j}=o(d),E=!!j,S=r(E?h.substring(0,j):h);if(!S){if(!E){s=d+(s.length>0?" "+s:s);continue}if(S=r(h),!S){s=d+(s.length>0?" "+s:s);continue}E=!1}let v=Ao(x).join(":"),P=u?v+Mt:v,_=P+S;if(a.includes(_))continue;a.push(_);let X=i(S,E);for(let F=0;F<X.length;++F){let de=X[F];a.push(P+de)}s=d+(s.length>0?" "+s:s)}return s};function Eo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=At(t))&&(r&&(r+=" "),r+=o);return r}var At=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=At(e[r]))&&(o&&(o+=" "),o+=t);return o};function zo(e,...t){let o,r,i,a=p;function p(c){let d=t.reduce((x,u)=>u(x),e());return o=Io(d),r=o.cache.get,i=o.cache.set,a=s,s(c)}function s(c){let d=r(c);if(d)return d;let x=Bo(c,o);return i(c,x),x}return function(){return a(Eo.apply(null,arguments))}}var H=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ho=/^\d+\/\d+$/,jo=new Set(["px","full","screen"]),Uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ut|h|i|Ut|min|max))|\Ut(calc|min|max|clamp)\(.+\)|^0$/,Vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$o=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=e=>ze(e)||jo.has(e)||Ho.test(e),xe=e=>He(e,"length",Zo),ze=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>He(e,"number",ze),Ge=e=>!!e&&Number.isInteger(Number(e)),Go=e=>e.endsWith("%")&&ze(e.slice(0,-1)),C=e=>It.test(e),we=e=>Uo.test(e),Ko=new Set(["length","size","percentage"]),Oo=e=>He(e,Ko,Lt),_o=e=>He(e,"position",Lt),qo=new Set(["image","url"]),Jo=e=>He(e,qo,Yo),Xo=e=>He(e,"",Qo),Ke=()=>!0,He=(e,t,o)=>{let r=It.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Zo=e=>Fo.test(e)&&!Vo.test(e),Lt=()=>!1,Qo=e=>$o.test(e),Yo=e=>Wo.test(e);var er=()=>{let e=H("colors"),t=H("spacing"),o=H("blur"),r=H("brightness"),i=H("borderColor"),a=H("borderRadius"),p=H("borderSpacing"),s=H("borderWidth"),c=H("contrast"),d=H("grayscale"),x=H("hueRotate"),u=H("invert"),h=H("gap"),j=H("gradientColorStops"),E=H("gradientColorStopPositions"),S=H("inset"),v=H("margin"),P=H("opacity"),_=H("padding"),X=H("saturate"),F=H("scale"),de=H("sepia"),ce=H("skew"),Ee=H("space"),M=H("translate"),W=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",C,t],I=()=>[C,t],Se=()=>["",pe,xe],Z=()=>["auto",ze,C],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$e=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",C],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[ze,C];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[pe,xe],blur:["none","",we,C],brightness:ne(),borderColor:[e],borderRadius:["none","","full",we,C],borderSpacing:I(),borderWidth:Se(),contrast:ne(),grayscale:Pe(),hueRotate:ne(),invert:Pe(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Go,xe],inset:q(),margin:q(),opacity:ne(),padding:I(),saturate:ne(),scale:ne(),sepia:Pe(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[we]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"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:[...me(),C]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-Ut":[{"overflow-Ut":A()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-Ut":[{"overscroll-Ut":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-Ut":[{"inset-Ut":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ge,C]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",Ge,C]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Ge,C]},C]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Ge,C]},C]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-Ut":[{"gap-Ut":[h]}],"justify-content":[{justify:["normal",...$e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],Ut:[{Ut:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],xt:[{xt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[Ee]}],"space-x-reverse":["space-x-reverse"],"space-Ut":[{"space-Ut":[Ee]}],"space-Ut-reverse":["space-Ut-reverse"],Ut:[{Ut:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ut":[{"min-Ut":[C,t,"min","max","fit"]}],"max-Ut":[{"max-Ut":[C,t,"none","full","min","max","fit","prose",{screen:[we]},we]}],h:[{h:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",we,xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[Ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",ze,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,xe]}],"underline-offset":[{"underline-offset":["auto",pe,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),_o]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Oo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ut","bl","Ut","tl"]},Jo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-Ut":[{"rounded-Ut":[a]}],"rounded-Ut":[{"rounded-Ut":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-oe":[{"rounded-oe":[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-Ut":[{border:[s]}],"border-Ut-x":[{"border-x":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-Ut-s":[{"border-s":[s]}],"border-Ut-e":[{"border-e":[s]}],"border-Ut-t":[{"border-t":[s]}],"border-Ut-r":[{"border-r":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-Ut":[{"divide-Ut":[s]}],"divide-Ut-reverse":["divide-Ut-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Ut":[{"border-Ut":[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-Ut":[{"border-Ut":[i]}],"border-color-Ut":[{"border-Ut":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[pe,C]}],"outline-Ut":[{outline:[pe,xe]}],"outline-color":[{outline:[e]}],"ring-Ut":[{ring:Se()}],"ring-Ut-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Ut":[{"ring-offset":[pe,xe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",we,Xo]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Qe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Qe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",we,C]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[u]}],saturate:[{saturate:[X]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-Ut":[{"border-spacing-Ut":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-Ut":[{"scale-Ut":[F]}],rotate:[{rotate:[Ge,C]}],"translate-x":[{"translate-x":[M]}],"translate-Ut":[{"translate-Ut":[M]}],"skew-x":[{"skew-x":[ce]}],"skew-Ut":[{"skew-Ut":[ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Ut-resize","ne-resize","nw-resize","oe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-xt":[{"scroll-xt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Ut":[{"touch-pan":["Ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ut":[{stroke:[pe,xe,ft]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Ut"],overscroll:["overscroll-x","overscroll-Ut"],inset:["inset-x","inset-Ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Ut"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","me","xt","mr","mb","ml"],mx:["mr","ml"],my:["xt","mb"],size:["Ut","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-Ut","rounded-Ut","rounded-ss","rounded-oe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-oe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ut":["rounded-br","rounded-bl"],"rounded-Ut":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Ut"],"border-Ut":["border-Ut-s","border-Ut-e","border-Ut-t","border-Ut-r","border-Ut-Ut","border-Ut-Ut"],"border-Ut-x":["border-Ut-r","border-Ut-Ut"],"border-Ut-Ut":["border-Ut-t","border-Ut-Ut"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ut","border-color-Ut"],"border-color-x":["border-color-r","border-color-Ut"],"border-color-Ut":["border-color-t","border-color-Ut"],"scroll-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-xt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-xt","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-Ut","touch-pz"],"touch-x":["touch"],"touch-Ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Bt=zo(er);function g(...e){return Bt((0,Et.clsx)(e))}var zt=require("@radix-ui/react-slot"),Ht=require("class-variance-authority"),jt=Q(require("react")),Ut=require("react/jsx-runtime"),tr=(0,Ht.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 Ut-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"}}}),D=jt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,Ut.jsx)(e?zt.Slot:"button",{className:g(tr({className:t,size:o,variant:r})),ref:a,...i}));D.displayName="Button";var Re=Q(require("react"));var L=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));L.displayName="Card";var G=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex flex-col space-Ut-1.5 p-6",e),...t}));G.displayName="CardHeader";var J=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));J.displayName="CardTitle";var or=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));or.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));B.displayName="CardContent";var rr=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));rr.displayName="CardFooter";var Ft=Q(require("react"));var re=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,Ut.jsx)("input",{type:t,className:g("flex h-9 Ut-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}));re.displayName="Input";var k=Q(require("@radix-ui/react-select")),ye=Q(require("react")),bt=k.Root;var ht=k.Value,et=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ut.jsxs)(k.Trigger,{className:g("flex h-10 Ut-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,Ut.jsx)(k.Icon,{asChild:!0,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4 opacity-50"})})]}));et.displayName=k.Trigger.displayName;var $t=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronUp,{className:"h-4 Ut-4"})}));$t.displayName=k.ScrollUpButton.displayName;var Wt=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4"})}));Wt.displayName=k.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Ut.jsx)(k.Portal,{children:(0,Ut.jsxs)(k.Content,{className:g("relative z-50 max-h-96 min-Ut-[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-Ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Ut-1",t),position:o,ref:i,...r,children:[(0,Ut.jsx)($t,{}),(0,Ut.jsx)(k.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] Ut-full min-Ut-[var(--radix-select-trigger-width)]"),children:e}),(0,Ut.jsx)(Wt,{})]})}));tt.displayName=k.Content.displayName;var ar=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ar.displayName=k.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ut.jsxs)(k.Item,{className:g("relative flex Ut-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,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(k.ItemIndicator,{children:(0,Ut.jsx)(oe.Check,{className:"h-4 Ut-4"})})}),(0,Ut.jsx)(k.ItemText,{children:e})]}));Te.displayName=k.Item.displayName;var ir=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));ir.displayName=k.Separator.displayName;var xt=require("motion/react");var Me=Q(require("@radix-ui/react-tabs"));function Gt({className:e,...t}){return(0,Ut.jsx)(Me.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function Kt({className:e,...t}){return(0,Ut.jsx)(Me.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 Ut-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ot({className:e,...t}){return(0,Ut.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:g("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 ue=Q(require("react")),T=Q(require("@radix-ui/react-dropdown-menu")),je=require("@radix-ui/react-icons");var rt=T.Root,at=T.Trigger;var nr=ue.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ut.jsxs)(T.SubTrigger,{ref:i,className:g("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,Ut.jsx)(je.ChevronRightIcon,{className:"ml-auto"})]}));nr.displayName=T.SubTrigger.displayName;var sr=ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.SubContent,{ref:o,className:g("z-50 min-Ut-[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}));sr.displayName=T.SubContent.displayName;var Oe=ue.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(T.Portal,{children:(0,Ut.jsx)(T.Content,{ref:r,sideOffset:t,className:g("z-50 min-Ut-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Oe.displayName=T.Content.displayName;var Ae=ue.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(T.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ae.displayName=T.Item.displayName;var lr=ue.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ut.jsxs)(T.CheckboxItem,{ref:i,className:g("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,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(T.ItemIndicator,{children:(0,Ut.jsx)(je.CheckIcon,{className:"h-4 Ut-4"})})}),t]}));lr.displayName=T.CheckboxItem.displayName;var dr=ue.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(T.RadioItem,{ref:r,className:g("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,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(T.ItemIndicator,{children:(0,Ut.jsx)(je.DotFilledIcon,{className:"h-4 Ut-4 fill-current"})})}),t]}));dr.displayName=T.RadioItem.displayName;var cr=ue.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(T.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));cr.displayName=T.Label.displayName;var mr=ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));mr.displayName=T.Separator.displayName;var pr=({className:e,...t})=>(0,Ut.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});pr.displayName="DropdownMenuShortcut";function qt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let p=o.find(s=>s.value===e);return(0,Ut.jsxs)(xt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Ut:-20},animate:{opacity:1,Ut:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden md:block",children:(0,Ut.jsx)(Gt,{value:e,onValueChange:t,children:(0,Ut.jsx)(Kt,{className:"grid Ut-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(Ot,{value:s.value,className:"Ut-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,Ut.jsx)("div",{className:"md:hidden",children:(0,Ut.jsxs)(rt,{children:[(0,Ut.jsx)(at,{asChild:!0,children:(0,Ut.jsxs)(D,{variant:"outline",className:"rounded-2xl min-Ut-[140px] justify-between",children:[p?.label||"Select",(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4 ml-2"})]})}),(0,Ut.jsx)(Oe,{align:"center",className:"Ut-[180px]",children:o.map(s=>(0,Ut.jsx)(Ae,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var it=Q(require("react")),fe=Q(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Root,{ref:o,className:g("relative flex h-10 Ut-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=fe.Root.displayName;var _e=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Image,{ref:o,className:g("aspect-square h-full Ut-full",e),...t}));_e.displayName=fe.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Fallback,{ref:o,className:g("flex h-full Ut-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=fe.Fallback.displayName;var ur=(0,Ht.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 U({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:g(ur({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:p}){let[s,c]=(0,le.useState)(!1),d=h=>{switch(h){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},x=h=>{switch(h){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},u=h=>{if(!h)return"Never";let E=Math.floor((new Date().getTime()-h.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}Ut ago`:E<1440?`${Math.floor(E/60)}h ago`:`${Math.floor(E/1440)}d ago`};return(0,Ut.jsxs)(L,{className:g("hover:shadow-md transition-shadow",a&&"p-2",p),children:[(0,Ut.jsx)(G,{className:g("pb-3",a&&"pb-2"),children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"relative",children:(0,Ut.jsxs)(Ie,{className:g("h-12 Ut-12",a&&"h-8 Ut-8"),children:[(0,Ut.jsx)(_e,{src:"/placeholder.svg",alt:e.name}),(0,Ut.jsx)(Le,{children:e.name.split(" ").map(h=>h[0]).join("")})]})}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("h3",{className:g("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ut.jsx)($.Bot,{className:g("h-4 Ut-4 text-blue-500",a&&"h-3 Ut-3")}):(0,Ut.jsx)($.User,{className:g("h-4 Ut-4 text-green-500",a&&"h-3 Ut-3")})]}),(0,Ut.jsx)("p",{className:g("text-sm text-muted-foreground truncate",a&&"text-xs"),children:e.type==="human"?e.role:e.description}),!a&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 xt-1",children:[e.type==="human"&&(0,Ut.jsx)(U,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Ut.jsxs)(U,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:x(e.status)})]})]})]}),i&&(0,Ut.jsxs)(rt,{children:[(0,Ut.jsx)(at,{asChild:!0,children:(0,Ut.jsx)(D,{variant:"ghost",size:"icon",className:g("h-8 Ut-8",a&&"h-6 Ut-6"),children:(0,Ut.jsx)($.MoreHorizontal,{className:g("h-4 Ut-4",a&&"h-3 Ut-3")})})}),(0,Ut.jsxs)(Oe,{align:"end",children:[(0,Ut.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,Ut.jsx)($.Settings,{className:"h-4 Ut-4 mr-2"}),"View Details"]}),(0,Ut.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ut.jsx)($.Edit,{className:"h-4 Ut-4 mr-2"}),"Edit"]}),(0,Ut.jsxs)(Ae,{onClick:()=>o?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Ut.jsx)($.Trash2,{className:"h-4 Ut-4 mr-2"}),"Delete"]})]})]})]})}),!a&&(0,Ut.jsxs)(B,{className:"pt-0",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[e.type==="human"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Mail,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Ut.jsxs)(Ut.Fragment,{children:[e.phone&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Phone,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{children:e.phone})]}),e.location&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.MapPin,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Settings,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["v",e.version]})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Clock,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["Last active: ",u(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,s?e.skills.length:3).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),e.skills.length>3&&(0,Ut.jsx)(D,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!s),children:s?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,s?e.capabilities.length:2).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),e.capabilities.length>2&&(0,Ut.jsx)(D,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!s),children:s?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Qt=Q(require("react")),wt=Q(require("@radix-ui/react-label"));var fr=(0,Ht.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ge=Qt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(wt.Root,{ref:o,className:g(fr(),e),...t}));ge.displayName=wt.Root.displayName;var to=Q(require("react")),qe=to.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:g("flex min-h-[80px] Ut-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}));qe.displayName="Textarea";var yt=Q(require("react")),ae=Q(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(ae.Root,{ref:r,className:g("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(ae.Viewport,{className:"h-full Ut-full rounded-[inherit]",children:t}),(0,Ut.jsx)(ro,{}),(0,Ut.jsx)(ae.Corner,{})]}));Ct.displayName=ae.Root.displayName;var ro=yt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ut.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Ut-2.5 border-Ut border-Ut-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ro.displayName=ae.ScrollAreaScrollbar.displayName;function Nt({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:p=!1}){let[s,c]=(0,le.useState)(""),[d,x]=(0,le.useState)([]),[u,h]=(0,le.useState)(!1);(0,le.useEffect)(()=>{if(!s.trim()){x([]),h(!1);return}let v=o.filter(P=>{if(e.map(F=>F.id).includes(P.id))return!1;let X=s.toLowerCase();return P.title.toLowerCase().includes(X)||P.description?.toLowerCase().includes(X)||P.tags?.some(F=>F.toLowerCase().includes(X))||Object.values(P.metadata||{}).some(F=>String(F).toLowerCase().includes(X))});x(v),h(!0)},[s,e,o]);let j=v=>{a&&e.length>=a||(t([...e,v]),c(""),h(!1))},E=v=>{t(e.filter(P=>P.id!==v))},S=!a||e.length<a;return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:r}),(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{value:s,onChange:v=>c(v.target.value),placeholder:S?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:p||!S,onFocus:()=>s&&h(!0)})]}),u&&d.length>0&&(0,Ut.jsx)(L,{className:"absolute top-full left-0 right-0 z-10 xt-1 max-h-60",children:(0,Ut.jsx)(Ct,{className:"h-full",children:(0,Ut.jsx)(B,{className:"p-2",children:d.map(v=>(0,Ut.jsx)(D,{variant:"ghost",className:"Ut-full justify-start h-auto p-3 mb-1",onClick:()=>j(v),disabled:p,children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3 Ut-full",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 Ut-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"text-left flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm truncate",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1 line-clamp-2",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1 xt-2",children:[v.tags.slice(0,3).map(P=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:P},P)),v.tags.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",v.tags.length-3," more"]})]})]})]})},v.id))})})}),u&&s&&d.length===0&&(0,Ut.jsx)(L,{className:"absolute top-full left-0 right-0 z-10 xt-1",children:(0,Ut.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',s,'"']})})]}),e.length>0&&(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,a&&`/${a}`,")"]}),(0,Ut.jsx)("div",{className:"space-Ut-2",children:e.map(v=>(0,Ut.jsx)(L,{className:"p-3",children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 Ut-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsx)("div",{className:"flex flex-wrap gap-1 xt-2",children:v.tags.map(P=>(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:[(0,Ut.jsx)(oe.Tag,{className:"h-3 Ut-3 mr-1"}),P]},P))})]}),(0,Ut.jsx)(D,{type:"button",variant:"ghost",size:"icon",className:"h-6 Ut-6 flex-shrink-0",onClick:()=>E(v.id),disabled:p,children:(0,Ut.jsx)(oe.X,{className:"h-3 Ut-3"})})]})},v.id))})]}),u&&(0,Ut.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>h(!1)})]})}function St({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:p="Cancel",readOnly:s=!1,availableKnowledgeDocuments:c=[]}){let[d,x]=(0,le.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[u,h]=(0,le.useState)(""),[j,E]=(0,le.useState)(""),[S,v]=(0,le.useState)(!s);(0,le.useEffect)(()=>{e&&x(e)},[e]);let P=M=>{M.preventDefault();let W=d.version?parseInt(d.version):0,A=e?(W+1).toString():"1",q={id:d.id||Date.now().toString(),name:d.name,type:"digital",status:"active",joinedDate:d.joinedDate||new Date,lastActive:d.lastActive||new Date,description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],knowledge:d.knowledge||[],coreKnowledge:d.coreKnowledge||[],version:A,lastUpdated:d.lastUpdated||new Date,isActive:!0};t(q)},_=(M,W,A)=>{if(!W.trim())return;let q=d[M]||[];x({...d,[M]:[...q,W.trim()]}),A("")},X=(M,W)=>{let A=d[M]||[];x({...d,[M]:A.filter((q,I)=>I!==W)})},F=M=>{M.preventDefault(),v(!S)},de=(M,W,A,q,I)=>{let Se=d[M]||[];return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:W}),S&&(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(re,{value:A,onChange:Z=>q(Z.target.value),placeholder:I,onKeyPress:Z=>{Z.key==="Enter"&&(Z.preventDefault(),_(M,A,q))},disabled:r}),(0,Ut.jsx)(D,{type:"button",variant:"outline",size:"icon",onClick:()=>_(M,A,q),disabled:r,children:(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-4"})})]}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((Z,me)=>(0,Ut.jsxs)(U,{className:"gap-1",children:[Z,S&&(0,Ut.jsx)(D,{type:"button",variant:"ghost",size:"icon",className:"h-4 Ut-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(M,me),disabled:r,children:(0,Ut.jsx)(oe.X,{className:"h-3 Ut-3"})})]},`${M}-${me}-${Z}`))})]})},ce=i||(S?e?"Edit Colleague":"Add New Colleague":"View Colleague"),Ee=a||(e?"Update Colleague":"Add Colleague");return(0,Ut.jsxs)(L,{className:"Ut-8 Ut-full max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(G,{children:(0,Ut.jsxs)(J,{className:"flex items-center gap-2",children:[(0,Ut.jsx)(oe.Bot,{className:"h-5 Ut-5"}),ce]})}),(0,Ut.jsx)(B,{children:(0,Ut.jsxs)("form",{onSubmit:P,className:"space-Ut-6",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"name",children:"Name *"}),(0,Ut.jsx)(re,{id:"name",value:d.name||"",onChange:M=>x({...d,name:M.target.value}),required:!0,disabled:r||!S})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"description",children:"Description"}),(0,Ut.jsx)(qe,{id:"description",value:d.description||"",onChange:M=>x({...d,description:M.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!S})]})]}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ut.jsx)(qe,{id:"jobDescription",value:d.jobDescription||"",onChange:M=>x({...d,jobDescription:M.target.value}),rows:4,required:d.type==="digital",disabled:r||!S})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ut.jsx)(qe,{id:"workInstructions",value:d.workInstructions||"",onChange:M=>x({...d,workInstructions:M.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!S})]}),de("capabilities","Capabilities",j,E,"Add capability"),(0,Ut.jsx)(Nt,{selectedDocuments:d.knowledge||[],onDocumentsChange:M=>x({...d,knowledge:M}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:r||!S,availableDocuments:c}),(0,Ut.jsx)(Nt,{selectedDocuments:d.coreKnowledge||[],onDocumentsChange:M=>x({...d,coreKnowledge:M}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:r||!S,availableDocuments:c})]}),(0,Ut.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ut.jsx)(D,{type:"button",variant:"outline",onClick:o,disabled:r,children:S?p:"Close"}),S?(0,Ut.jsx)(D,{type:"submit",disabled:r,children:r?"Saving...":Ee}):(0,Ut.jsxs)(D,{type:"button",onClick:F,disabled:r,className:"gap-2",children:[(0,Ut.jsx)(oe.Edit,{className:"h-4 Ut-4"}),"Edit"]})]})]})})]})}function ao({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,le.useState)(""),p=(0,le.useMemo)(()=>e.filter(c=>c.name.toLowerCase().includes(i.toLowerCase())||c.email.toLowerCase().includes(i.toLowerCase())||c.role.toLowerCase().includes(i.toLowerCase())||(c.skills||[]).some(x=>x.toLowerCase().includes(i.toLowerCase()))),[e,i]),s=c=>{t(c)};return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ut.jsx)(L,{className:"container",children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:c=>a(c.target.value),className:"pl-9"})]})})})})}),(0,Ut.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:p.map(c=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(L,{className:`cursor-pointer transition-all hover:shadow-lg ${r===c.id?"ring-2 ring-primary":""}`,onClick:()=>s(c),children:[(0,Ut.jsx)(G,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsxs)(Ie,{children:[(0,Ut.jsx)(_e,{src:c.avatar,alt:c.name}),(0,Ut.jsx)(Le,{children:(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4"})})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)(J,{className:"text-lg",children:c.name}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:c.role})]})]}),r===c.id&&(0,Ut.jsx)(oe.Check,{className:"h-5 Ut-5 text-primary"})]})}),(0,Ut.jsx)(B,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ut.jsx)("p",{className:"text-sm font-medium",children:c.email})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Ut.jsx)(U,{variant:"secondary",children:c.department})]}),c.location&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Ut.jsx)("p",{className:"text-sm",children:c.location})]}),c.skills&&c.skills.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[c.skills.slice(0,3).map(d=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:d},d)),c.skills.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",c.skills.length-3]})]})]})]})})]})},c.id))}),p.length===0&&(0,Ut.jsx)(L,{className:"container xt-4",children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.User,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function io({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,le.useState)(""),[p,s]=(0,le.useState)("all"),c=(0,le.useMemo)(()=>e.filter(u=>{let h=u.name.toLowerCase().includes(i.toLowerCase())||u.jobDescription.toLowerCase().includes(i.toLowerCase())||u.capabilities.some(E=>E.toLowerCase().includes(i.toLowerCase()))||u.workInstructions.toLowerCase().includes(i.toLowerCase()),j=p==="all"||u.status===p;return h&&j}),[e,i,p]),d=u=>{let h={...u,id:`${u.id}-clone-${Date.now()}`,name:`${u.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(h)},x=u=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(u);return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:u=>a(u.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)("select",{value:p,onChange:u=>s(u.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ut.jsx)("option",{value:"all",children:"All Status"}),(0,Ut.jsx)("option",{value:"active",children:"Active"}),(0,Ut.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ut.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(u=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(L,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>d(u),children:[(0,Ut.jsx)(G,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)(Ie,{children:(0,Ut.jsx)(Le,{className:"bg-blue-100",children:(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-blue-600"})})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsxs)(J,{className:"text-lg flex items-center gap-2",children:[u.name,(0,Ut.jsx)(U,{variant:u.status==="active"?"default":"secondary",className:"text-xs",children:u.status})]}),(0,Ut.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",u.version]})]})]}),(0,Ut.jsxs)(D,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:h=>{h.stopPropagation(),d(u)},children:[(0,Ut.jsx)(oe.Copy,{className:"h-3 Ut-3"}),"Clone"]})]})}),(0,Ut.jsx)(B,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ut.jsx)("p",{className:"text-sm line-clamp-2",children:u.jobDescription})]}),u.capabilities&&u.capabilities.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[u.capabilities.slice(0,3).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),u.capabilities.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",u.capabilities.length-3]})]})]}),(0,Ut.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Calendar,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["Updated ",x(u.lastUpdated)]})]}),u.knowledge&&(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Users,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:[u.knowledge.length," docs"]})]})]}),u.workInstructions&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ut.jsx)("p",{className:"text-xs line-clamp-2",children:u.workInstructions})]})]})})]})},u.id))}),c.length===0&&(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Bot,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function no({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.User,{className:"h-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Browse existing users"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:e,children:"Select User"})]})]})}),(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Bot,{className:"h-8 Ut-8 text-purple-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Create from templates"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function so({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Copy,{className:"h-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Clone Existing"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Copy,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Sparkles,{className:"h-8 Ut-8 text-green-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Create New"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Custom job description"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Sparkles,{className:"h-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function lo(e,t){let[o,r]=(0,le.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,le.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function mo({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:p,className:s}){let[c,d]=lo(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),x=!i&&!t||c;return(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:20},animate:{opacity:1,Ut:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${s||""}`,children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ut.jsx)(U,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ut.jsx)("h2",{className:"text-3xl font-bold Ut-0",children:e})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,Ut.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Ut.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!c),style:{lineHeight:0},children:c?(0,Ut.jsx)(ct.FaChevronDown,{size:22}):(0,Ut.jsx)(ct.FaChevronUp,{size:22})})]})]}),!x&&(0,Ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("p",{className:"max-Ut-[600px] text-white/80",children:t}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ut.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Ut.jsx)(D,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),p&&(0,Ut.jsx)("div",{className:"hidden lg:block",children:p})]})]})}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:p,availableUsers:s=[],existingDigitalColleagues:c=[]}){let[d,x]=(0,le.useState)(e||[]),[u,h]=(0,le.useState)(""),[j,E]=(0,le.useState)("all"),[S,v]=(0,le.useState)("all"),[P,_]=(0,le.useState)("all"),[X,F]=(0,le.useState)(null),[de,ce]=(0,le.useState)(null);(0,le.useEffect)(()=>{x(e||[])},[e]);let Ee=Array.isArray(s)?s:[],M=Array.isArray(c)?c:[],[W,A]=(0,le.useState)("main"),q=d.filter(n=>{if(!n||!n.name)return!1;let ee=n.name.toLowerCase().includes(u.toLowerCase())||n.type==="human"&&(n.email?.toLowerCase().includes(u.toLowerCase())||n.role?.toLowerCase().includes(u.toLowerCase()))||n.type==="digital"&&n.jobDescription?.toLowerCase().includes(u.toLowerCase()),z=j==="all"||n.type==="human"&&n.department===j,ut=S==="all"||n.status===S;return ee&&z&&ut}),I=q.filter(n=>n.type==="human"),Se=q.filter(n=>n.type==="digital"),Z=()=>{A("typeSelection")},me=n=>{n.type==="digital"&&(F(n),A("form")),console.log("Editing colleague:",n),o?.(n)},he=n=>{n.type==="digital"&&(ce(n),A("view"))},Qe=n=>{let ee={id:`human-${Date.now()}`,type:"human",name:n.name,email:n.email,role:n.role,department:n.department,phone:n.phone,location:n.location,timezone:n.timezone,skills:n.skills||[],bio:n.bio,status:"active",joinedDate:new Date,lastActive:new Date};x(z=>[...z,ee]),t?.(ee),A("main")},$e=n=>{if(!n||!n.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",n);return}x(ee=>[...ee,n]),t?.(n),A("main")},Pe=()=>{F(null),A("form")},We=n=>{if(!n||!n.id){console.error("Invalid colleague provided to handleSaveColleague:",n);return}X?(x(ee=>ee.map(z=>z.id===n.id?n:z)),o?.(n)):(x(ee=>[...ee,n]),t?.(n)),A("main"),F(null)},ne=()=>{A("main"),F(null),ce(null)},uo=()=>{A("main"),ce(null)},vr=()=>{de&&(F(de),ce(null),A("form"))},pt=n=>{console.log("handling delete colleague",n),x(ee=>ee.filter(z=>z.id!==n)),r?.(n)},fo=()=>{h(""),E("all"),v("all")},Pt=()=>{let n=[];return M.forEach(z=>{z.knowledge&&Array.isArray(z.knowledge)&&n.push(...z.knowledge),z.coreKnowledge&&Array.isArray(z.coreKnowledge)&&n.push(...z.coreKnowledge)}),d.forEach(z=>{z.type==="digital"&&(z.knowledge&&Array.isArray(z.knowledge)&&n.push(...z.knowledge),z.coreKnowledge&&Array.isArray(z.coreKnowledge)&&n.push(...z.coreKnowledge))}),n.filter((z,ut,go)=>ut===go.findIndex(vo=>vo.id===z.id))};return W==="typeSelection"?(0,Ut.jsx)(no,{onSelectHuman:()=>A("userSelection"),onSelectDigital:()=>A("digitalOptions"),onCancel:()=>A("main")}):W==="userSelection"?(0,Ut.jsx)(ao,{users:Ee,onUserSelect:Qe,onCancel:()=>A("typeSelection")}):W==="digitalOptions"?(0,Ut.jsx)(so,{onCloneExisting:()=>A("digitalClone"),onCreateNew:Pe,onCancel:()=>A("typeSelection")}):W==="digitalClone"?(0,Ut.jsx)(io,{digitalColleagues:M,onColleagueClone:$e,onCancel:()=>A("digitalOptions")}):W==="form"?(0,Ut.jsx)(St,{colleague:X||void 0,onSave:We,onCancel:ne,availableKnowledgeDocuments:Pt()}):W==="view"?(0,Ut.jsx)(St,{colleague:de||void 0,onSave:We,onCancel:uo,readOnly:!0,availableKnowledgeDocuments:Pt()}):(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-8",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsx)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:(0,Ut.jsxs)("div",{className:`space-Ut-6 ${p||""}`,children:[(0,Ut.jsx)(mo,{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:Z}}),(0,Ut.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.status==="active").length," active"]})]})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Human Members"}),(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(n=>n.type==="human").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.type==="human"&&n.status==="active").length," ","active"]})]})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(n=>n.type==="digital").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.type==="digital"&&n.status==="active").length," ","active"]})]})]})]}),(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search colleagues...",value:u,onChange:n=>h(n.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)(bt,{value:j,onValueChange:E,children:[(0,Ut.jsx)(et,{className:"Ut-full md:Ut-[180px]",children:(0,Ut.jsx)(ht,{placeholder:"Department"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Departments"}),a.map(n=>(0,Ut.jsx)(Te,{value:n,children:n},n))]})]}),(0,Ut.jsxs)(bt,{value:S,onValueChange:v,children:[(0,Ut.jsx)(et,{className:"Ut-full md:Ut-[140px]",children:(0,Ut.jsx)(ht,{placeholder:"Status"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Status"}),(0,Ut.jsx)(Te,{value:"active",children:"Active"}),(0,Ut.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(u||j!=="all"||S!=="all")&&(0,Ut.jsxs)(D,{variant:"outline",onClick:fo,className:"gap-2",children:[(0,Ut.jsx)(oe.Filter,{className:"h-4 Ut-4"}),"Clear"]})]})})}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)(qt,{activeTab:P,onTabChange:_,tabOptions:[{value:"all",label:`All (${q.length})`},{value:"human",label:`Human (${I.length})`},{value:"digital",label:`Digital (${Se.length})`}],maxWidth:"400px",gridCols:3}),P==="all"&&(0,Ut.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:q.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},`${n}-${n.id}`))}),P==="human"&&(0,Ut.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:I.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},n.id))}),P==="digital"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},n.id))})]}),q.length===0&&(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Users,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:u||j!=="all"||S!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ut.jsxs)(D,{onClick:Z,className:"gap-2",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-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-SJQY7JRS.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-TUI4S4GI.mjs";import"../../../chunk-EAFH3DTH.mjs";import"../../../chunk-QQVPLMPJ.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-6WQXZ6IE.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-PWXCBW2H.mjs";import"../../../chunk-BHWGOTCJ.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-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};
|