cortex-react-components 2.8.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GETYSIZV.mjs → chunk-255P6K5W.mjs} +1 -1
- package/dist/chunk-2B5LH5XN.mjs +4 -0
- package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
- package/dist/chunk-2LINLX4S.mjs +4 -0
- package/dist/chunk-2RGAV55J.mjs +4 -0
- package/dist/{chunk-P6OSMPUQ.mjs → chunk-2RQDJ5XT.mjs} +1 -1
- package/dist/chunk-3R75NUYA.mjs +4 -0
- package/dist/{chunk-QTILVWJA.mjs → chunk-4RYG24IZ.mjs} +1 -1
- package/dist/{chunk-URYIYEGY.mjs → chunk-5BV4MHV6.mjs} +1 -1
- package/dist/{chunk-ABGNIQRP.mjs → chunk-5RDLHKTK.mjs} +1 -1
- package/dist/{chunk-BQQ4V4PX.mjs → chunk-5SHZBJ5R.mjs} +1 -1
- package/dist/chunk-5WVFEIMC.mjs +6 -0
- package/dist/{chunk-PIOFHZSJ.mjs → chunk-62A35O55.mjs} +1 -1
- package/dist/{chunk-GAZHKHGB.mjs → chunk-67QPOSVV.mjs} +1 -1
- package/dist/chunk-6WQXZ6IE.mjs +4 -0
- package/dist/chunk-6XUIHSKG.mjs +4 -0
- package/dist/{chunk-7OMPPFGG.mjs → chunk-7GMAMIHM.mjs} +1 -1
- package/dist/chunk-AREQGH47.mjs +4 -0
- package/dist/chunk-BHWGOTCJ.mjs +4 -0
- package/dist/chunk-CO6AQNZ5.mjs +4 -0
- package/dist/{chunk-TK4JC5PG.mjs → chunk-E64KWNOT.mjs} +1 -1
- package/dist/{chunk-X57JQVKC.mjs → chunk-ED7T3BDO.mjs} +4 -1
- package/dist/{chunk-2GM2LPLB.mjs → chunk-ERJXTG6X.mjs} +1 -1
- package/dist/{chunk-HDKHF3EA.mjs → chunk-FKU4VQR6.mjs} +1 -1
- package/dist/chunk-FRN4LROV.mjs +4 -0
- package/dist/{chunk-77PCUNUC.mjs → chunk-FTZRG54P.mjs} +1 -1
- package/dist/chunk-GHZ6CUY3.mjs +4 -0
- package/dist/{chunk-6OZUHBYJ.mjs → chunk-GN25OSET.mjs} +1 -1
- package/dist/{chunk-F64CA5CH.mjs → chunk-H3CJOE6S.mjs} +1 -1
- package/dist/{chunk-U3FYDDE2.mjs → chunk-HKGW6JI2.mjs} +1 -1
- package/dist/{chunk-KZAYLEFB.mjs → chunk-I2GNNRFH.mjs} +1 -1
- package/dist/{chunk-KOXC4RIH.mjs → chunk-I5NNEOCF.mjs} +1 -1
- package/dist/{chunk-PNUBVBSR.mjs → chunk-IF3425JX.mjs} +1 -1
- package/dist/{chunk-GLBQHEMQ.mjs → chunk-IK3AM53W.mjs} +1 -1
- package/dist/{chunk-IDG2O4B7.mjs → chunk-ISBVFNWD.mjs} +1 -1
- package/dist/{chunk-PTZT4QJW.mjs → chunk-LJQPLE4S.mjs} +1 -1
- package/dist/{chunk-A3YDFYEB.mjs → chunk-LUM6KEWN.mjs} +1 -1
- package/dist/{chunk-2OOJ4ZFB.mjs → chunk-M7NV6EFH.mjs} +1 -1
- package/dist/chunk-MU5WPW4N.mjs +4 -0
- package/dist/{chunk-4SRUEQTP.mjs → chunk-MXCW6SOT.mjs} +1 -1
- package/dist/{chunk-FYQBRCQM.mjs → chunk-N3B3XNV3.mjs} +1 -1
- package/dist/chunk-NVHQBM66.mjs +4 -0
- package/dist/chunk-O46BOA4T.mjs +1 -0
- package/dist/{chunk-NZCHFTHJ.mjs → chunk-OYZX5BM4.mjs} +1 -1
- package/dist/chunk-PH67DP3M.mjs +4 -0
- package/dist/{chunk-MO4HRQEL.mjs → chunk-PK3OBSCB.mjs} +1 -1
- package/dist/chunk-PWXCBW2H.mjs +4 -0
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
- package/dist/chunk-RHR3YOLG.mjs +4 -0
- package/dist/{chunk-DPZHVBGG.mjs → chunk-TL2RQFU5.mjs} +1 -1
- package/dist/chunk-U67OTPTT.mjs +4 -0
- package/dist/chunk-UN57ZYKQ.mjs +4 -0
- package/dist/chunk-VE5LRUED.mjs +5 -0
- package/dist/chunk-VGWDYD6Z.mjs +4 -0
- package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
- package/dist/{chunk-GTK2SGS5.mjs → chunk-XBCYPOFD.mjs} +1 -1
- package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
- package/dist/{chunk-RAGDUV7M.mjs → chunk-XIGBDWYI.mjs} +1 -1
- package/dist/{chunk-S4A4VHOI.mjs → chunk-XW52WZ2B.mjs} +1 -1
- package/dist/{chunk-HKMNAXLM.mjs → chunk-YKG4FNS4.mjs} +1 -1
- package/dist/{chunk-W7MEHF4G.mjs → chunk-YOETYY5S.mjs} +1 -1
- package/dist/chunk-Z22NSJMF.mjs +4 -0
- package/dist/chunk-ZXPDSSCF.mjs +4 -0
- package/dist/components/AdvancedComponents/app-header.js +1 -1
- package/dist/components/AdvancedComponents/app-header.mjs +1 -1
- package/dist/components/AdvancedComponents/index.js +1 -1
- package/dist/components/AdvancedComponents/index.mjs +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
- package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.js +1 -1
- package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
- package/dist/components/AdvancedComponents/user-selection.js +1 -1
- package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.js +1 -1
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.js +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/capability-menu.js +1 -1
- package/dist/components/Chat/capability-menu.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.js +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.js +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.js +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.js +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.js +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.js +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
- package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.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/KnowledgeView.js +1 -1
- package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +1 -1
- package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/colleague-type-selection.js +1 -1
- package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-options.js +1 -1
- package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
- package/dist/components/DigitalColleagues/document-edit.js +1 -1
- package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.js +1 -1
- package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
- package/dist/components/DigitalColleagues/document-preview.js +1 -1
- package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
- package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
- package/dist/components/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/DashboardHero/DashboardHero.js +1 -1
- package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
- package/dist/components/Heros/DashboardHero/index.js +1 -1
- package/dist/components/Heros/DashboardHero/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Icons/ScrollDownIcon.js +1 -1
- package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.js +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/AnimatedBorder.js +1 -1
- package/dist/components/Other/AnimatedBorder.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/EpicsView.js +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/FileView.js +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.js +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/PlanningView.js +1 -1
- package/dist/components/Projects/PlanningView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +2 -2
- package/dist/components/Projects/ProjectView.mjs +2 -1
- package/dist/components/Projects/ProjectsIndexView.js +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/file-list.js +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/project-card.js +1 -1
- package/dist/components/Projects/project-card.mjs +1 -1
- package/dist/components/Projects/team-card.js +1 -1
- package/dist/components/Projects/team-card.mjs +1 -1
- package/dist/components/dc-temp/creative.js +1 -1
- package/dist/components/dc-temp/creative.mjs +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.js +1 -1
- package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +2 -2
- 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.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +2 -3
- package/dist/chunk-2GNX22CR.mjs +0 -4
- package/dist/chunk-2NMVE5M4.mjs +0 -4
- package/dist/chunk-2SAKLSZ4.mjs +0 -4
- package/dist/chunk-2THNVSE5.mjs +0 -4
- package/dist/chunk-3KITWLRN.mjs +0 -4
- package/dist/chunk-3PHJWI4Q.mjs +0 -4
- package/dist/chunk-A2AEX4YB.mjs +0 -4
- package/dist/chunk-AVHFRD6D.mjs +0 -4
- package/dist/chunk-BADFWNRL.mjs +0 -4
- package/dist/chunk-CBLP4MXP.mjs +0 -4
- package/dist/chunk-FRKGQKEM.mjs +0 -4
- package/dist/chunk-G3WMXDFV.mjs +0 -5
- package/dist/chunk-HME6CJ6L.mjs +0 -1
- package/dist/chunk-JHYWAL24.mjs +0 -6
- package/dist/chunk-JVUSZPSP.mjs +0 -4
- package/dist/chunk-M245YHYF.mjs +0 -4
- package/dist/chunk-MNI6AM7Q.mjs +0 -4
- package/dist/chunk-O4GULNQE.mjs +0 -4
- package/dist/chunk-PEQOQ7BK.mjs +0 -4
- package/dist/chunk-RUOYGMOR.mjs +0 -4
- package/dist/chunk-UPQQQYZZ.mjs +0 -4
- package/dist/chunk-VGARU7ZT.mjs +0 -4
- package/dist/chunk-WN2LPOQP.mjs +0 -4
- package/dist/chunk-XKM35QQD.mjs +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-VE5LRUED.mjs";import"../../../chunk-2B5LH5XN.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("framer-motion");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 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")})})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-2B5LH5XN.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};
|