cortex-react-components 2.13.7 → 2.13.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/{chunk-6FHRZHAJ.mjs → chunk-2HWSTGAP.mjs} +1 -1
  2. package/dist/{chunk-XX4GSGRP.mjs → chunk-5NIEZE7A.mjs} +1 -1
  3. package/dist/chunk-7O5XSUX2.mjs +1 -0
  4. package/dist/{chunk-M527EJIX.mjs → chunk-AMVJPDM3.mjs} +1 -1
  5. package/dist/{chunk-KBEXWUKI.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  6. package/dist/chunk-CJDUN6R4.mjs +4 -0
  7. package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
  8. package/dist/{chunk-MAZGVZJN.mjs → chunk-DMCFEJ2C.mjs} +1 -1
  9. package/dist/{chunk-3E3GY7S2.mjs → chunk-FDRX3CL2.mjs} +1 -1
  10. package/dist/chunk-G34OMFQI.mjs +4 -0
  11. package/dist/{chunk-4VCL66F7.mjs → chunk-GLBQHEMQ.mjs} +1 -1
  12. package/dist/chunk-GS3P2V76.mjs +4 -0
  13. package/dist/{chunk-LITM3HU3.mjs → chunk-JGX2G2OC.mjs} +1 -1
  14. package/dist/{chunk-O24GFE6Q.mjs → chunk-KZAYLEFB.mjs} +1 -1
  15. package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
  16. package/dist/{chunk-BDDEMCAH.mjs → chunk-MFCVMJBO.mjs} +1 -1
  17. package/dist/{chunk-LGBD6KGN.mjs → chunk-MIOYUP5Z.mjs} +1 -1
  18. package/dist/{chunk-KVLUT4U2.mjs → chunk-OQCMTGML.mjs} +1 -1
  19. package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
  20. package/dist/chunk-R5SXUWYU.mjs +4 -0
  21. package/dist/{chunk-EUGA4BNN.mjs → chunk-TO7SVJIU.mjs} +1 -1
  22. package/dist/{chunk-ZGQC6O62.mjs → chunk-UEBQJNVT.mjs} +1 -1
  23. package/dist/{chunk-ZQG4SJ2M.mjs → chunk-ULO56RLR.mjs} +1 -1
  24. package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
  25. package/dist/chunk-Y7H3EUBR.mjs +4 -0
  26. package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  27. package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
  28. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  29. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  30. package/dist/components/Blocks/index.mjs +1 -1
  31. package/dist/components/CRM/CogeBoard.mjs +1 -1
  32. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  33. package/dist/components/CRM/index.mjs +1 -1
  34. package/dist/components/Chat/ChatInterface.mjs +1 -1
  35. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  36. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  37. package/dist/components/Chat/demo-tests.mjs +1 -1
  38. package/dist/components/Chat/demo.mjs +1 -1
  39. package/dist/components/Chat/example-usage.mjs +1 -1
  40. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  41. package/dist/components/Chat/index.mjs +1 -1
  42. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  43. package/dist/components/DeliveryLead/index.mjs +1 -1
  44. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  45. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  46. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  47. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  48. package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +1 -1
  49. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  50. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  51. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  52. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  53. package/dist/components/DigitalColleagues/colleague-form.d.ts +1 -1
  54. package/dist/components/DigitalColleagues/colleague-form.js +1 -1
  55. package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +1 -1
  56. package/dist/components/DigitalColleagues/digital-colleague-clone.js +1 -2
  57. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  58. package/dist/components/DigitalColleagues/index.js +1 -1
  59. package/dist/components/DigitalColleagues/index.mjs +1 -1
  60. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  61. package/dist/components/Foundary/MainPage.mjs +1 -1
  62. package/dist/components/Foundary/Pages/dashboardpage.d.ts +1 -1
  63. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  64. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  65. package/dist/components/Foundary/Views/ColleaguesView.d.ts +1 -1
  66. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  67. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  68. package/dist/components/Foundary/Views/index.js +1 -1
  69. package/dist/components/Foundary/Views/index.mjs +1 -1
  70. package/dist/components/Foundary/index.js +1 -1
  71. package/dist/components/Foundary/index.mjs +1 -1
  72. package/dist/components/HeaderFooter/Header.mjs +1 -1
  73. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  74. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  75. package/dist/components/HeaderFooter/index.mjs +1 -1
  76. package/dist/components/Heros/PostHero/index.mjs +1 -1
  77. package/dist/components/Heros/RenderHero.mjs +1 -1
  78. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  79. package/dist/components/Heros/index.mjs +1 -1
  80. package/dist/components/Layouts/SlideShow.mjs +1 -1
  81. package/dist/components/Layouts/index.mjs +1 -1
  82. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  83. package/dist/components/Menus/SidebarRight.mjs +1 -1
  84. package/dist/components/Menus/index.mjs +1 -1
  85. package/dist/components/Other/index.mjs +1 -1
  86. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  87. package/dist/components/Projects/ProjectPage.js +1 -1
  88. package/dist/components/Projects/ProjectPage.mjs +1 -1
  89. package/dist/components/Projects/ProjectView.js +1 -1
  90. package/dist/components/Projects/ProjectView.mjs +1 -1
  91. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  92. package/dist/components/Projects/TasksView.js +1 -1
  93. package/dist/components/Projects/TasksView.mjs +1 -1
  94. package/dist/components/Projects/index.js +1 -1
  95. package/dist/components/Projects/index.mjs +1 -1
  96. package/dist/components/dc-temp/index.mjs +1 -1
  97. package/dist/components/index.js +15 -15
  98. package/dist/components/index.mjs +1 -1
  99. package/dist/components/ui/index.mjs +1 -1
  100. package/dist/components/ui/sidebar.mjs +1 -1
  101. package/dist/index.js +19 -19
  102. package/dist/index.mjs +1 -1
  103. package/dist/metafile-cjs.json +1 -1
  104. package/dist/metafile-esm.json +1 -1
  105. package/dist/pages/Blog.mjs +1 -1
  106. package/dist/pages/Documentation.mjs +1 -1
  107. package/dist/pages/IndexPage.mjs +1 -1
  108. package/dist/pages/Intranet.mjs +1 -1
  109. package/dist/pages/LandingPage.mjs +1 -1
  110. package/dist/pages/Page.mjs +1 -1
  111. package/dist/pages/Publish.mjs +1 -1
  112. package/dist/pages/Website.mjs +1 -1
  113. package/dist/sections/AboutSection.mjs +1 -1
  114. package/dist/sections/BlogDetail.mjs +1 -1
  115. package/dist/sections/BlogList.mjs +1 -1
  116. package/dist/sections/BlogListSection.mjs +1 -1
  117. package/dist/sections/PageSections.mjs +1 -1
  118. package/dist/sections/PricingSection.mjs +1 -1
  119. package/dist/sections/ServiceSection.mjs +1 -1
  120. package/dist/sections/index.mjs +1 -1
  121. package/package.json +1 -1
  122. package/dist/chunk-5N4WW7O2.mjs +0 -1
  123. package/dist/chunk-DODFVGFK.mjs +0 -4
  124. package/dist/chunk-RVGPGXLB.mjs +0 -4
  125. package/dist/chunk-USOGZB6R.mjs +0 -4
  126. package/dist/chunk-XADBBCGL.mjs +0 -4
  127. package/dist/chunk-ZB7RDJRP.mjs +0 -4
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-DODFVGFK.mjs";import"../../../chunk-ZB7RDJRP.mjs";import"../../../chunk-KG3MNGT6.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-ZXPDSSCF.mjs";import"../../../chunk-RHR3YOLG.mjs";import"../../../chunk-AREQGH47.mjs";import"../../../chunk-AOQPH32M.mjs";import"../../../chunk-47OE4ZPY.mjs";import"../../../chunk-4USR4WTH.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-XADBBCGL.mjs";import"../../../chunk-USOGZB6R.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-DSSHQ6K7.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-E6UOMRHI.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-QG4QCB5I.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-G34OMFQI.mjs";import"../../../chunk-KG3MNGT6.mjs";import"../../../chunk-ZXPDSSCF.mjs";import"../../../chunk-RHR3YOLG.mjs";import"../../../chunk-AREQGH47.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-DSSHQ6K7.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-E6UOMRHI.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-QG4QCB5I.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -1,4 +1,4 @@
1
- import { type Colleague, type DigitalColleague, type User as UserType } from '../types';
1
+ import { type User as UserType, type Colleague, type DigitalColleague } from '../../Foundary/types';
2
2
  interface ColleaguesViewProps {
3
3
  initialColleagues?: Colleague[];
4
4
  onColleagueAdd?: (colleague: Colleague) => void;
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var bo=Object.create;var Ye=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var xo=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var Co=(e,t)=>{for(var o in t)Ye(e,o,{get:t[o],enumerable:!0})},Rt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xo(t))!yo.call(e,i)&&i!==o&&Ye(e,i,{get:()=>t[i],enumerable:!(r=ho(t,i))||r.enumerable});return e};var Y=(e,t,o)=>(o=e!=null?bo(wo(e)):{},Rt(t||!e||!e.__esModule?Ye(o,"default",{value:e,enumerable:!0}):o,e)),No=e=>Rt(Ye({},"__esModule",{value:!0}),e);var gr={};Co(gr,{default:()=>po});module.exports=No(gr);var le=require("react"),oe=require("lucide-react");var Et=require("clsx");var vt="-",So=e=>{let t=Ro(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:p=>{let s=p.split(vt);return s[0]===""&&s.length!==1&&s.shift(),Tt(s,t)||Po(p)},getConflictingClassGroupIds:(p,s)=>{let c=o[p]||[];return s&&r[p]?[...c,...r[p]]:c}}},Tt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?Tt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(vt);return t.validators.find(({validator:p})=>p(a))?.classGroupId},Dt=/^\[(.+)\]$/,Po=e=>{if(Dt.test(e)){let t=Dt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ro=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ko(Object.entries(e.classGroups),o).forEach(([a,p])=>{gt(p,r,a,t)}),r},gt=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:kt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(Do(i)){gt(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,p])=>{gt(p,kt(t,a),o,r)})})},kt=(e,t)=>{let o=e;return t.split(vt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Do=e=>e.isThemeGetter,ko=(e,t)=>t?e.map(([o,r])=>{let i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([p,s])=>[t+p,s])):a);return[o,i]}):e,To=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,p)=>{o.set(a,p),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let p=o.get(a);if(p!==void 0)return p;if((p=r.get(a))!==void 0)return i(a,p),p},set(a,p){o.has(a)?o.set(a,p):i(a,p)}}},Mt="!",Mo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,p=s=>{let c=[],d=0,x=0,u;for(let v=0;v<s.length;v++){let P=s[v];if(d===0){if(P===i&&(r||s.slice(v,v+a)===t)){c.push(s.slice(x,v)),x=v+a;continue}if(P==="/"){u=v;continue}}P==="["?d++:P==="]"&&d--}let h=c.length===0?s:s.substring(x),j=h.startsWith(Mt),E=j?h.substring(1):h,S=u&&u>x?u-x:void 0;return{modifiers:c,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:p}):p},Ao=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Io=e=>({cache:To(e.cacheSize),parseClassName:Mo(e),...So(e)}),Lo=/\s+/,Bo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],p=e.trim().split(Lo),s="";for(let c=p.length-1;c>=0;c-=1){let d=p[c],{modifiers:x,hasImportantModifier:u,baseClassName:h,maybePostfixModifierPosition:j}=o(d),E=!!j,S=r(E?h.substring(0,j):h);if(!S){if(!E){s=d+(s.length>0?" "+s:s);continue}if(S=r(h),!S){s=d+(s.length>0?" "+s:s);continue}E=!1}let v=Ao(x).join(":"),P=u?v+Mt:v,_=P+S;if(a.includes(_))continue;a.push(_);let X=i(S,E);for(let F=0;F<X.length;++F){let de=X[F];a.push(P+de)}s=d+(s.length>0?" "+s:s)}return s};function Eo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=At(t))&&(r&&(r+=" "),r+=o);return r}var At=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=At(e[r]))&&(o&&(o+=" "),o+=t);return o};function zo(e,...t){let o,r,i,a=p;function p(c){let d=t.reduce((x,u)=>u(x),e());return o=Io(d),r=o.cache.get,i=o.cache.set,a=s,s(c)}function s(c){let d=r(c);if(d)return d;let x=Bo(c,o);return i(c,x),x}return function(){return a(Eo.apply(null,arguments))}}var H=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ho=/^\d+\/\d+$/,jo=new Set(["px","full","screen"]),Uo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ut|h|i|Ut|min|max))|\Ut(calc|min|max|clamp)\(.+\)|^0$/,Vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$o=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=e=>ze(e)||jo.has(e)||Ho.test(e),xe=e=>He(e,"length",Zo),ze=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>He(e,"number",ze),Ge=e=>!!e&&Number.isInteger(Number(e)),Go=e=>e.endsWith("%")&&ze(e.slice(0,-1)),C=e=>It.test(e),we=e=>Uo.test(e),Ko=new Set(["length","size","percentage"]),Oo=e=>He(e,Ko,Lt),_o=e=>He(e,"position",Lt),qo=new Set(["image","url"]),Jo=e=>He(e,qo,Yo),Xo=e=>He(e,"",Qo),Ke=()=>!0,He=(e,t,o)=>{let r=It.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Zo=e=>Fo.test(e)&&!Vo.test(e),Lt=()=>!1,Qo=e=>$o.test(e),Yo=e=>Wo.test(e);var er=()=>{let e=H("colors"),t=H("spacing"),o=H("blur"),r=H("brightness"),i=H("borderColor"),a=H("borderRadius"),p=H("borderSpacing"),s=H("borderWidth"),c=H("contrast"),d=H("grayscale"),x=H("hueRotate"),u=H("invert"),h=H("gap"),j=H("gradientColorStops"),E=H("gradientColorStopPositions"),S=H("inset"),v=H("margin"),P=H("opacity"),_=H("padding"),X=H("saturate"),F=H("scale"),de=H("sepia"),ce=H("skew"),Ee=H("space"),M=H("translate"),W=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto",C,t],I=()=>[C,t],Se=()=>["",pe,xe],Z=()=>["auto",ze,C],me=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$e=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",C],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ne=()=>[ze,C];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[pe,xe],blur:["none","",we,C],brightness:ne(),borderColor:[e],borderRadius:["none","","full",we,C],borderSpacing:I(),borderWidth:Se(),contrast:ne(),grayscale:Pe(),hueRotate:ne(),invert:Pe(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[Go,xe],inset:q(),margin:q(),opacity:ne(),padding:I(),saturate:ne(),scale:ne(),sepia:Pe(),skew:ne(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[we]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...me(),C]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-Ut":[{"overflow-Ut":A()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-Ut":[{"overscroll-Ut":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-Ut":[{"inset-Ut":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ge,C]}],basis:[{basis:q()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",Ge,C]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Ge,C]},C]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Ge,C]},C]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-Ut":[{"gap-Ut":[h]}],"justify-content":[{justify:["normal",...$e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],Ut:[{Ut:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],xt:[{xt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[Ee]}],"space-x-reverse":["space-x-reverse"],"space-Ut":[{"space-Ut":[Ee]}],"space-Ut-reverse":["space-Ut-reverse"],Ut:[{Ut:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ut":[{"min-Ut":[C,t,"min","max","fit"]}],"max-Ut":[{"max-Ut":[C,t,"none","full","min","max","fit","prose",{screen:[we]},we]}],h:[{h:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",we,xe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ft]}],"font-family":[{font:[Ke]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",ze,ft]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,xe]}],"underline-offset":[{"underline-offset":["auto",pe,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...me(),_o]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Oo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Ut","bl","Ut","tl"]},Jo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[j]}],"gradient-via":[{via:[j]}],"gradient-to":[{to:[j]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-Ut":[{"rounded-Ut":[a]}],"rounded-Ut":[{"rounded-Ut":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-oe":[{"rounded-oe":[a]}],"rounded-Ut":[{"rounded-Ut":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-Ut":[{border:[s]}],"border-Ut-x":[{"border-x":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-Ut-s":[{"border-s":[s]}],"border-Ut-e":[{"border-e":[s]}],"border-Ut-t":[{"border-t":[s]}],"border-Ut-r":[{"border-r":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-Ut-Ut":[{"border-Ut":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-Ut":[{"divide-Ut":[s]}],"divide-Ut-reverse":["divide-Ut-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-Ut":[{"border-Ut":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-Ut":[{"border-Ut":[i]}],"border-color-Ut":[{"border-Ut":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[pe,C]}],"outline-Ut":[{outline:[pe,xe]}],"outline-color":[{outline:[e]}],"ring-Ut":[{ring:Se()}],"ring-Ut-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Ut":[{"ring-offset":[pe,xe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",we,Xo]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Qe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Qe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",we,C]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[u]}],saturate:[{saturate:[X]}],sepia:[{sepia:[de]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-x":[{"border-spacing-x":[p]}],"border-spacing-Ut":[{"border-spacing-Ut":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-Ut":[{"scale-Ut":[F]}],rotate:[{rotate:[Ge,C]}],"translate-x":[{"translate-x":[M]}],"translate-Ut":[{"translate-Ut":[M]}],"skew-x":[{"skew-x":[ce]}],"skew-Ut":[{"skew-Ut":[ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Ut-resize","ne-resize","nw-resize","oe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-xt":[{"scroll-xt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Ut":[{"touch-pan":["Ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ut":[{stroke:[pe,xe,ft]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Ut"],overscroll:["overscroll-x","overscroll-Ut"],inset:["inset-x","inset-Ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Ut"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","me","xt","mr","mb","ml"],mx:["mr","ml"],my:["xt","mb"],size:["Ut","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-Ut","rounded-Ut","rounded-ss","rounded-oe","rounded-Ut","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-oe","rounded-Ut"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Ut":["rounded-br","rounded-bl"],"rounded-Ut":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-Ut"],"border-Ut":["border-Ut-s","border-Ut-e","border-Ut-t","border-Ut-r","border-Ut-Ut","border-Ut-Ut"],"border-Ut-x":["border-Ut-r","border-Ut-Ut"],"border-Ut-Ut":["border-Ut-t","border-Ut-Ut"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Ut","border-color-Ut"],"border-color-x":["border-color-r","border-color-Ut"],"border-color-Ut":["border-color-t","border-color-Ut"],"scroll-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-xt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-xt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Ut","touch-pz"],"touch-x":["touch"],"touch-Ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Bt=zo(er);function g(...e){return Bt((0,Et.clsx)(e))}var zt=require("@radix-ui/react-slot"),Ht=require("class-variance-authority"),jt=Y(require("react")),Ut=require("react/jsx-runtime"),tr=(0,Ht.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 Ut-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),D=jt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,Ut.jsx)(e?zt.Slot:"button",{className:g(tr({className:t,size:o,variant:r})),ref:a,...i}));D.displayName="Button";var Re=Y(require("react"));var L=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));L.displayName="Card";var G=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex flex-col space-Ut-1.5 p-6",e),...t}));G.displayName="CardHeader";var J=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));J.displayName="CardTitle";var or=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));or.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("p-6 pt-0",e),...t}));B.displayName="CardContent";var rr=Re.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:g("flex items-center p-6 pt-0",e),...t}));rr.displayName="CardFooter";var Ft=Y(require("react"));var re=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,Ut.jsx)("input",{type:t,className:g("flex h-9 Ut-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));re.displayName="Input";var k=Y(require("@radix-ui/react-select")),ye=Y(require("react")),bt=k.Root;var ht=k.Value,et=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ut.jsxs)(k.Trigger,{className:g("flex h-10 Ut-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,Ut.jsx)(k.Icon,{asChild:!0,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4 opacity-50"})})]}));et.displayName=k.Trigger.displayName;var $t=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronUp,{className:"h-4 Ut-4"})}));$t.displayName=k.ScrollUpButton.displayName;var Wt=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4"})}));Wt.displayName=k.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Ut.jsx)(k.Portal,{children:(0,Ut.jsxs)(k.Content,{className:g("relative z-50 max-h-96 min-Ut-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-Ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Ut-1",t),position:o,ref:i,...r,children:[(0,Ut.jsx)($t,{}),(0,Ut.jsx)(k.Viewport,{className:g("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] Ut-full min-Ut-[var(--radix-select-trigger-width)]"),children:e}),(0,Ut.jsx)(Wt,{})]})}));tt.displayName=k.Content.displayName;var ar=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ar.displayName=k.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ut.jsxs)(k.Item,{className:g("relative flex Ut-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(k.ItemIndicator,{children:(0,Ut.jsx)(oe.Check,{className:"h-4 Ut-4"})})}),(0,Ut.jsx)(k.ItemText,{children:e})]}));Te.displayName=k.Item.displayName;var ir=ye.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(k.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));ir.displayName=k.Separator.displayName;var xt=require("motion/react");var Me=Y(require("@radix-ui/react-tabs"));function Gt({className:e,...t}){return(0,Ut.jsx)(Me.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function Kt({className:e,...t}){return(0,Ut.jsx)(Me.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 Ut-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Ot({className:e,...t}){return(0,Ut.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:g("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var ue=Y(require("react")),T=Y(require("@radix-ui/react-dropdown-menu")),je=require("@radix-ui/react-icons");var rt=T.Root,at=T.Trigger;var nr=ue.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ut.jsxs)(T.SubTrigger,{ref:i,className:g("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,Ut.jsx)(je.ChevronRightIcon,{className:"ml-auto"})]}));nr.displayName=T.SubTrigger.displayName;var sr=ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.SubContent,{ref:o,className:g("z-50 min-Ut-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));sr.displayName=T.SubContent.displayName;var Oe=ue.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ut.jsx)(T.Portal,{children:(0,Ut.jsx)(T.Content,{ref:r,sideOffset:t,className:g("z-50 min-Ut-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Oe.displayName=T.Content.displayName;var Ae=ue.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(T.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ae.displayName=T.Item.displayName;var lr=ue.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ut.jsxs)(T.CheckboxItem,{ref:i,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(T.ItemIndicator,{children:(0,Ut.jsx)(je.CheckIcon,{className:"h-4 Ut-4"})})}),t]}));lr.displayName=T.CheckboxItem.displayName;var dr=ue.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(T.RadioItem,{ref:r,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex h-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(T.ItemIndicator,{children:(0,Ut.jsx)(je.DotFilledIcon,{className:"h-4 Ut-4 fill-current"})})}),t]}));dr.displayName=T.RadioItem.displayName;var cr=ue.forwardRef(({className:e,inset:t,...o},r)=>(0,Ut.jsx)(T.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));cr.displayName=T.Label.displayName;var mr=ue.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(T.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));mr.displayName=T.Separator.displayName;var pr=({className:e,...t})=>(0,Ut.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});pr.displayName="DropdownMenuShortcut";function qt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let p=o.find(s=>s.value===e);return(0,Ut.jsxs)(xt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Ut:-20},animate:{opacity:1,Ut:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden lg:block",children:(0,Ut.jsx)(Gt,{value:e,onValueChange:t,children:(0,Ut.jsx)(Kt,{className:"grid Ut-full rounded-2xl p-0 h-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(Ot,{value:s.value,className:"Ut-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,Ut.jsx)("div",{className:"lg:hidden",children:(0,Ut.jsxs)(rt,{children:[(0,Ut.jsx)(at,{asChild:!0,children:(0,Ut.jsxs)(D,{variant:"outline",className:"rounded-2xl min-Ut-[140px] justify-between",children:[p?.label||"Select",(0,Ut.jsx)(oe.ChevronDown,{className:"h-4 Ut-4 ml-2"})]})}),(0,Ut.jsx)(Oe,{align:"center",className:"Ut-[180px]",children:o.map(s=>(0,Ut.jsx)(Ae,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var it=Y(require("react")),fe=Y(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Root,{ref:o,className:g("relative flex h-10 Ut-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=fe.Root.displayName;var _e=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Image,{ref:o,className:g("aspect-square h-full Ut-full",e),...t}));_e.displayName=fe.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(fe.Fallback,{ref:o,className:g("flex h-full Ut-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=fe.Fallback.displayName;var ur=(0,Ht.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function U({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:g(ur({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:p}){let[s,c]=(0,le.useState)(!1),d=h=>{switch(h){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},x=h=>{switch(h){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},u=h=>{if(!h)return"Never";let E=Math.floor((new Date().getTime()-h.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}Ut ago`:E<1440?`${Math.floor(E/60)}h ago`:`${Math.floor(E/1440)}d ago`};return(0,Ut.jsxs)(L,{className:g("hover:shadow-md transition-shadow",a&&"p-2",p),children:[(0,Ut.jsx)(G,{className:g("pb-3",a&&"pb-2"),children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"relative",children:(0,Ut.jsxs)(Ie,{className:g("h-12 Ut-12",a&&"h-8 Ut-8"),children:[(0,Ut.jsx)(_e,{src:"/placeholder.svg",alt:e.name}),(0,Ut.jsx)(Le,{children:e.name.split(" ").map(h=>h[0]).join("")})]})}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("h3",{className:g("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ut.jsx)($.Bot,{className:g("h-4 Ut-4 text-blue-500",a&&"h-3 Ut-3")}):(0,Ut.jsx)($.User,{className:g("h-4 Ut-4 text-green-500",a&&"h-3 Ut-3")})]}),(0,Ut.jsx)("p",{className:g("text-sm text-muted-foreground truncate",a&&"text-xs"),children:e.type==="human"?e.role:e.description}),!a&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 xt-1",children:[e.type==="human"&&(0,Ut.jsx)(U,{variant:"secondary",className:"text-xs",children:e.department}),e.type==="digital"&&(0,Ut.jsxs)(U,{variant:"secondary",className:"text-xs",children:["v",e.version]}),(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:x(e.status)})]})]})]}),i&&(0,Ut.jsxs)(rt,{children:[(0,Ut.jsx)(at,{asChild:!0,children:(0,Ut.jsx)(D,{variant:"ghost",size:"icon",className:g("h-8 Ut-8",a&&"h-6 Ut-6"),children:(0,Ut.jsx)($.MoreHorizontal,{className:g("h-4 Ut-4",a&&"h-3 Ut-3")})})}),(0,Ut.jsxs)(Oe,{align:"end",children:[e.type==="digital"&&(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,Ut.jsx)($.Settings,{className:"h-4 Ut-4 mr-2"}),"View Details"]}),(0,Ut.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ut.jsx)($.Edit,{className:"h-4 Ut-4 mr-2"}),"Edit"]})]}),(0,Ut.jsxs)(Ae,{onClick:()=>o?.(e.id),className:"text-destructive focus:text-destructive",children:[(0,Ut.jsx)($.Trash2,{className:"h-4 Ut-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,Ut.jsxs)(B,{className:"pt-0",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[e.type==="human"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Mail,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="human"&&(0,Ut.jsxs)(Ut.Fragment,{children:[e.phone&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Phone,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{children:e.phone})]}),e.location&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.MapPin,{className:"h-3 Ut-3"}),(0,Ut.jsx)("span",{children:e.location})]})]}),e.type==="digital"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Settings,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["v",e.version]})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)($.Clock,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["Last active: ",u(e.lastActive)]})]})]}),e.type==="human"&&e.skills&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.skills.slice(0,s?e.skills.length:3).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),e.skills.length>3&&(0,Ut.jsx)(D,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!s),children:s?"Show less":`+${e.skills.length-3} more`})]})}),e.type==="digital"&&(0,Ut.jsx)("div",{className:"xt-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities.slice(0,s?e.capabilities.length:2).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),e.capabilities.length>2&&(0,Ut.jsx)(D,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>c(!s),children:s?"Show less":`+${e.capabilities.length-2} more`})]})})]})]})}var Qt=Y(require("react")),wt=Y(require("@radix-ui/react-label"));var fr=(0,Ht.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ge=Qt.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(wt.Root,{ref:o,className:g(fr(),e),...t}));ge.displayName=wt.Root.displayName;var to=Y(require("react")),qe=to.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:g("flex min-h-[80px] Ut-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));qe.displayName="Textarea";var yt=Y(require("react")),ae=Y(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},r)=>(0,Ut.jsxs)(ae.Root,{ref:r,className:g("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(ae.Viewport,{className:"h-full Ut-full rounded-[inherit]",children:t}),(0,Ut.jsx)(ro,{}),(0,Ut.jsx)(ae.Corner,{})]}));Ct.displayName=ae.Root.displayName;var ro=yt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ut.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:g("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Ut-2.5 border-Ut border-Ut-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ro.displayName=ae.ScrollAreaScrollbar.displayName;function Nt({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:p=!1}){let[s,c]=(0,le.useState)(""),[d,x]=(0,le.useState)([]),[u,h]=(0,le.useState)(!1);(0,le.useEffect)(()=>{if(!s.trim()){x([]),h(!1);return}let v=o.filter(P=>{if(e.map(F=>F.id).includes(P.id))return!1;let X=s.toLowerCase();return P.title.toLowerCase().includes(X)||P.description?.toLowerCase().includes(X)||P.tags?.some(F=>F.toLowerCase().includes(X))||Object.values(P.metadata||{}).some(F=>String(F).toLowerCase().includes(X))});x(v),h(!0)},[s,e,o]);let j=v=>{a&&e.length>=a||(t([...e,v]),c(""),h(!1))},E=v=>{t(e.filter(P=>P.id!==v))},S=!a||e.length<a;return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:r}),(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{value:s,onChange:v=>c(v.target.value),placeholder:S?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:p||!S,onFocus:()=>s&&h(!0)})]}),u&&d.length>0&&(0,Ut.jsx)(L,{className:"absolute top-full left-0 right-0 z-10 xt-1 max-h-60",children:(0,Ut.jsx)(Ct,{className:"h-full",children:(0,Ut.jsx)(B,{className:"p-2",children:d.map(v=>(0,Ut.jsx)(D,{variant:"ghost",className:"Ut-full justify-start h-auto p-3 mb-1",onClick:()=>j(v),disabled:p,children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3 Ut-full",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 Ut-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"text-left flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm truncate",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1 line-clamp-2",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1 xt-2",children:[v.tags.slice(0,3).map(P=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:P},P)),v.tags.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",v.tags.length-3," more"]})]})]})]})},v.id))})})}),u&&s&&d.length===0&&(0,Ut.jsx)(L,{className:"absolute top-full left-0 right-0 z-10 xt-1",children:(0,Ut.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',s,'"']})})]}),e.length>0&&(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsxs)("div",{className:"text-sm text-muted-foreground",children:["Selected (",e.length,a&&`/${a}`,")"]}),(0,Ut.jsx)("div",{className:"space-Ut-2",children:e.map(v=>(0,Ut.jsx)(L,{className:"p-3",children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ut.jsx)(oe.FileText,{className:"h-4 Ut-4 xt-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm",children:v.title}),v.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground xt-1",children:v.description}),v.tags&&v.tags.length>0&&(0,Ut.jsx)("div",{className:"flex flex-wrap gap-1 xt-2",children:v.tags.map(P=>(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:[(0,Ut.jsx)(oe.Tag,{className:"h-3 Ut-3 mr-1"}),P]},P))})]}),(0,Ut.jsx)(D,{type:"button",variant:"ghost",size:"icon",className:"h-6 Ut-6 flex-shrink-0",onClick:()=>E(v.id),disabled:p,children:(0,Ut.jsx)(oe.X,{className:"h-3 Ut-3"})})]})},v.id))})]}),u&&(0,Ut.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>h(!1)})]})}function St({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:p="Cancel",readOnly:s=!1,availableKnowledgeDocuments:c=[]}){let[d,x]=(0,le.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],knowledge:[],coreKnowledge:[],version:"1",...e}),[u,h]=(0,le.useState)(""),[j,E]=(0,le.useState)(""),[S,v]=(0,le.useState)(!s);(0,le.useEffect)(()=>{e&&x(e)},[e]);let P=M=>{M.preventDefault();let W=d.version?parseInt(d.version):0,A=e?(W+1).toString():"1",q={id:d.id||Date.now().toString(),name:d.name,type:"digital",status:"active",joinedDate:d.joinedDate||new Date,lastActive:d.lastActive||new Date,description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],knowledge:d.knowledge||[],coreKnowledge:d.coreKnowledge||[],version:A,lastUpdated:d.lastUpdated||new Date,isActive:!0};t(q)},_=(M,W,A)=>{if(!W.trim())return;let q=d[M]||[];x({...d,[M]:[...q,W.trim()]}),A("")},X=(M,W)=>{let A=d[M]||[];x({...d,[M]:A.filter((q,I)=>I!==W)})},F=M=>{M.preventDefault(),v(!S)},de=(M,W,A,q,I)=>{let Se=d[M]||[];return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{children:W}),S&&(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(re,{value:A,onChange:Z=>q(Z.target.value),placeholder:I,onKeyPress:Z=>{Z.key==="Enter"&&(Z.preventDefault(),_(M,A,q))},disabled:r}),(0,Ut.jsx)(D,{type:"button",variant:"outline",size:"icon",onClick:()=>_(M,A,q),disabled:r,children:(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-4"})})]}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((Z,me)=>(0,Ut.jsxs)(U,{className:"gap-1",children:[Z,S&&(0,Ut.jsx)(D,{type:"button",variant:"ghost",size:"icon",className:"h-4 Ut-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(M,me),disabled:r,children:(0,Ut.jsx)(oe.X,{className:"h-3 Ut-3"})})]},`${M}-${me}-${Z}`))})]})},ce=i||(S?e?"Edit Colleague":"Add New Colleague":"View Colleague"),Ee=a||(e?"Update Colleague":"Add Colleague");return(0,Ut.jsxs)(L,{className:"Ut-8 Ut-full max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(G,{children:(0,Ut.jsxs)(J,{className:"flex items-center gap-2",children:[(0,Ut.jsx)(oe.Bot,{className:"h-5 Ut-5"}),ce]})}),(0,Ut.jsx)(B,{children:(0,Ut.jsxs)("form",{onSubmit:P,className:"space-Ut-6",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"name",children:"Name *"}),(0,Ut.jsx)(re,{id:"name",value:d.name||"",onChange:M=>x({...d,name:M.target.value}),required:!0,disabled:r||!S})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"description",children:"Description"}),(0,Ut.jsx)(qe,{id:"description",value:d.description||"",onChange:M=>x({...d,description:M.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!S})]})]}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ut.jsx)(qe,{id:"jobDescription",value:d.jobDescription||"",onChange:M=>x({...d,jobDescription:M.target.value}),rows:4,required:d.type==="digital",disabled:r||!S})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(ge,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ut.jsx)(qe,{id:"workInstructions",value:d.workInstructions||"",onChange:M=>x({...d,workInstructions:M.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!S})]}),de("capabilities","Capabilities",j,E,"Add capability"),(0,Ut.jsx)(Nt,{selectedDocuments:d.knowledge||[],onDocumentsChange:M=>x({...d,knowledge:M}),label:"Knowledge",placeholder:"Search for knowledge documents to add...",disabled:r||!S,availableDocuments:c}),(0,Ut.jsx)(Nt,{selectedDocuments:d.coreKnowledge||[],onDocumentsChange:M=>x({...d,coreKnowledge:M}),label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:5,disabled:r||!S,availableDocuments:c})]}),(0,Ut.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ut.jsx)(D,{type:"button",variant:"outline",onClick:o,disabled:r,children:S?p:"Close"}),S?(0,Ut.jsx)(D,{type:"submit",disabled:r,children:r?"Saving...":Ee}):(0,Ut.jsxs)(D,{type:"button",onClick:F,disabled:r,className:"gap-2",children:[(0,Ut.jsx)(oe.Edit,{className:"h-4 Ut-4"}),"Edit"]})]})]})})]})}function ao({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,le.useState)(""),p=(0,le.useMemo)(()=>e.filter(c=>c.name.toLowerCase().includes(i.toLowerCase())||c.email.toLowerCase().includes(i.toLowerCase())||c.role.toLowerCase().includes(i.toLowerCase())||(c.skills||[]).some(x=>x.toLowerCase().includes(i.toLowerCase()))),[e,i]),s=c=>{t(c)};return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ut.jsx)(L,{className:"container",children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:c=>a(c.target.value),className:"pl-9"})]})})})})}),(0,Ut.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:p.map(c=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(L,{className:`cursor-pointer transition-all hover:shadow-lg ${r===c.id?"ring-2 ring-primary":""}`,onClick:()=>s(c),children:[(0,Ut.jsx)(G,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsxs)(Ie,{children:[(0,Ut.jsx)(_e,{src:c.avatar,alt:c.name}),(0,Ut.jsx)(Le,{children:(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4"})})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)(J,{className:"text-lg",children:c.name}),(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:c.role})]})]}),r===c.id&&(0,Ut.jsx)(oe.Check,{className:"h-5 Ut-5 text-primary"})]})}),(0,Ut.jsx)(B,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ut.jsx)("p",{className:"text-sm font-medium",children:c.email})]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"}),(0,Ut.jsx)(U,{variant:"secondary",children:c.department})]}),c.location&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Location"}),(0,Ut.jsx)("p",{className:"text-sm",children:c.location})]}),c.skills&&c.skills.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Skills"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[c.skills.slice(0,3).map(d=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:d},d)),c.skills.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",c.skills.length-3]})]})]})]})})]})},c.id))}),p.length===0&&(0,Ut.jsx)(L,{className:"container xt-4",children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.User,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function io({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,le.useState)(""),[p,s]=(0,le.useState)("all"),c=(0,le.useMemo)(()=>e.filter(u=>{let h=u.name.toLowerCase().includes(i.toLowerCase())||u.jobDescription.toLowerCase().includes(i.toLowerCase())||u.capabilities.some(E=>E.toLowerCase().includes(i.toLowerCase()))||u.workInstructions.toLowerCase().includes(i.toLowerCase()),j=p==="all"||u.status===p;return h&&j}),[e,i,p]),d=u=>{let h={...u,id:`${u.id}-clone-${Date.now()}`,name:`${u.name} (Copy)`,joinedDate:new Date,lastActive:new Date,lastUpdated:new Date,version:"1.0.0"};t(h)},x=u=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(u);return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:u=>a(u.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)("select",{value:p,onChange:u=>s(u.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ut.jsx)("option",{value:"all",children:"All Status"}),(0,Ut.jsx)("option",{value:"active",children:"Active"}),(0,Ut.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ut.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(u=>(0,Ut.jsx)(xt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(L,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>d(u),children:[(0,Ut.jsx)(G,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)(Ie,{children:(0,Ut.jsx)(Le,{className:"bg-blue-100",children:(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-blue-600"})})}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsxs)(J,{className:"text-lg flex items-center gap-2",children:[u.name,(0,Ut.jsx)(U,{variant:u.status==="active"?"default":"secondary",className:"text-xs",children:u.status})]}),(0,Ut.jsxs)("p",{className:"text-sm text-muted-foreground",children:["v",u.version]})]})]}),(0,Ut.jsxs)(D,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:h=>{h.stopPropagation(),d(u)},children:[(0,Ut.jsx)(oe.Copy,{className:"h-3 Ut-3"}),"Clone"]})]})}),(0,Ut.jsx)(B,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ut.jsx)("p",{className:"text-sm line-clamp-2",children:u.jobDescription})]}),u.capabilities&&u.capabilities.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[u.capabilities.slice(0,3).map(h=>(0,Ut.jsx)(U,{variant:"outline",className:"text-xs",children:h},h)),u.capabilities.length>3&&(0,Ut.jsxs)(U,{variant:"outline",className:"text-xs",children:["+",u.capabilities.length-3]})]})]}),(0,Ut.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Calendar,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:["Updated ",x(u.lastUpdated)]})]}),u.knowledge&&(0,Ut.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ut.jsx)(oe.Users,{className:"h-3 Ut-3"}),(0,Ut.jsxs)("span",{children:[u.knowledge.length," docs"]})]})]}),u.workInstructions&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ut.jsx)("p",{className:"text-xs line-clamp-2",children:u.workInstructions})]})]})})]})},u.id))}),c.length===0&&(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Bot,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function no({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.User,{className:"h-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Browse existing users"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:e,children:"Select User"})]})]})}),(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Bot,{className:"h-8 Ut-8 text-purple-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Create from templates"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function so({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(D,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(oe.ChevronLeft,{className:"h-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Copy,{className:"h-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Clone Existing"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Copy,{className:"h-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ut.jsx)(xt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(L,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(G,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(oe.Sparkles,{className:"h-8 Ut-8 text-green-600"})}),(0,Ut.jsx)(J,{className:"text-xl",children:"Create New"})]}),(0,Ut.jsxs)(B,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Custom job description"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(oe.Sparkles,{className:"h-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ut.jsx)(D,{className:"xt-6 Ut-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function lo(e,t){let[o,r]=(0,le.useState)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=a=>{try{r(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,le.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function mo({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:p,className:s}){let[c,d]=lo(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!i&&!t),x=!i&&!t||c;return(0,Ut.jsxs)(xt.motion.div,{initial:{opacity:0,Ut:20},animate:{opacity:1,Ut:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${s||""}`,children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ut.jsx)(U,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ut.jsx)("h2",{className:"text-3xl font-bold Ut-0",children:e})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,Ut.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Ut.jsx)("button",{"aria-label":c?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!c),style:{lineHeight:0},children:c?(0,Ut.jsx)(ct.FaChevronDown,{size:22}):(0,Ut.jsx)(ct.FaChevronUp,{size:22})})]})]}),!x&&(0,Ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("p",{className:"max-Ut-[600px] text-white/80",children:t}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ut.jsx)(D,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Ut.jsx)(D,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),p&&(0,Ut.jsx)("div",{className:"hidden lg:block",children:p})]})]})}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:p,availableUsers:s=[],existingDigitalColleagues:c=[]}){let[d,x]=(0,le.useState)(e||[]),[u,h]=(0,le.useState)(""),[j,E]=(0,le.useState)("all"),[S,v]=(0,le.useState)("all"),[P,_]=(0,le.useState)("all"),[X,F]=(0,le.useState)(null),[de,ce]=(0,le.useState)(null);(0,le.useEffect)(()=>{x(e||[])},[e]);let Ee=Array.isArray(s)?s:[],M=Array.isArray(c)?c:[],[W,A]=(0,le.useState)("main"),q=d.filter(n=>{if(!n||!n.name)return!1;let Q=n.name.toLowerCase().includes(u.toLowerCase())||n.type==="human"&&(n.email?.toLowerCase().includes(u.toLowerCase())||n.role?.toLowerCase().includes(u.toLowerCase()))||n.type==="digital"&&n.jobDescription?.toLowerCase().includes(u.toLowerCase()),z=j==="all"||n.type==="human"&&n.department===j,ut=S==="all"||n.status===S;return Q&&z&&ut}),I=q.filter(n=>n.type==="human"),Se=q.filter(n=>n.type==="digital"),Z=()=>{A("typeSelection")},me=n=>{n.type==="digital"&&(F(n),A("form")),console.log("Editing colleague:",n),o?.(n)},he=n=>{n.type==="digital"&&(ce(n),A("view"))},Qe=n=>{let Q={id:`human-${Date.now()}`,type:"human",name:n.name,email:n.email,role:n.role,department:n.department,phone:n.phone,location:n.location,timezone:n.timezone,skills:n.skills||[],bio:n.bio,status:"active",joinedDate:new Date,lastActive:new Date};x(z=>[...z,Q]),t?.(Q),A("main")},$e=n=>{if(!n||!n.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",n);return}x(Q=>[...Q,n]),t?.(n),A("main")},Pe=()=>{F(null),A("form")},We=n=>{if(!n||!n.id){console.error("Invalid colleague provided to handleSaveColleague:",n);return}X?(x(Q=>Q.map(z=>z.id===n.id?n:z)),o?.(n)):(x(Q=>[...Q,n]),t?.(n)),A("main"),F(null)},ne=()=>{A("main"),F(null),ce(null)},uo=()=>{A("main"),ce(null)},vr=()=>{de&&(F(de),ce(null),A("form"))},pt=n=>{r?.(n,d.find(Q=>Q.id===n).type),x(Q=>Q.filter(z=>z.id!==n))},fo=()=>{h(""),E("all"),v("all")},Pt=()=>{let n=[];return M.forEach(z=>{z.knowledge&&Array.isArray(z.knowledge)&&n.push(...z.knowledge),z.coreKnowledge&&Array.isArray(z.coreKnowledge)&&n.push(...z.coreKnowledge)}),d.forEach(z=>{z.type==="digital"&&(z.knowledge&&Array.isArray(z.knowledge)&&n.push(...z.knowledge),z.coreKnowledge&&Array.isArray(z.coreKnowledge)&&n.push(...z.coreKnowledge))}),n.filter((z,ut,go)=>ut===go.findIndex(vo=>vo.id===z.id))};return W==="typeSelection"?(0,Ut.jsx)(no,{onSelectHuman:()=>A("userSelection"),onSelectDigital:()=>A("digitalOptions"),onCancel:()=>A("main")}):W==="userSelection"?(0,Ut.jsx)(ao,{users:Ee,onUserSelect:Qe,onCancel:()=>A("typeSelection")}):W==="digitalOptions"?(0,Ut.jsx)(so,{onCloneExisting:()=>A("digitalClone"),onCreateNew:Pe,onCancel:()=>A("typeSelection")}):W==="digitalClone"?(0,Ut.jsx)(io,{digitalColleagues:M,onColleagueClone:$e,onCancel:()=>A("digitalOptions")}):W==="form"?(0,Ut.jsx)(St,{colleague:X||void 0,onSave:We,onCancel:ne,availableKnowledgeDocuments:Pt()}):W==="view"?(0,Ut.jsx)(St,{colleague:de||void 0,onSave:We,onCancel:uo,readOnly:!0,availableKnowledgeDocuments:Pt()}):(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-8",children:(0,Ut.jsx)(xt.AnimatePresence,{mode:"wait",children:(0,Ut.jsx)(xt.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:(0,Ut.jsxs)("div",{className:`space-Ut-6 ${p||""}`,children:[(0,Ut.jsx)(mo,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:Z}}),(0,Ut.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ut.jsx)(oe.Users,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.status==="active").length," active"]})]})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Human Members"}),(0,Ut.jsx)(oe.User,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(n=>n.type==="human").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.type==="human"&&n.status==="active").length," ","active"]})]})]}),(0,Ut.jsxs)(L,{children:[(0,Ut.jsxs)(G,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(J,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ut.jsx)(oe.Bot,{className:"h-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(B,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:d.filter(n=>n.type==="digital").length}),(0,Ut.jsxs)("p",{className:"text-xs text-muted-foreground",children:[d.filter(n=>n.type==="digital"&&n.status==="active").length," ","active"]})]})]})]}),(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(oe.Search,{className:"absolute left-3 top-3 h-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search colleagues...",value:u,onChange:n=>h(n.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)(bt,{value:j,onValueChange:E,children:[(0,Ut.jsx)(et,{className:"Ut-full md:Ut-[180px]",children:(0,Ut.jsx)(ht,{placeholder:"Department"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Departments"}),a.map(n=>(0,Ut.jsx)(Te,{value:n,children:n},n))]})]}),(0,Ut.jsxs)(bt,{value:S,onValueChange:v,children:[(0,Ut.jsx)(et,{className:"Ut-full md:Ut-[140px]",children:(0,Ut.jsx)(ht,{placeholder:"Status"})}),(0,Ut.jsxs)(tt,{children:[(0,Ut.jsx)(Te,{value:"all",children:"All Status"}),(0,Ut.jsx)(Te,{value:"active",children:"Active"}),(0,Ut.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(u||j!=="all"||S!=="all")&&(0,Ut.jsxs)(D,{variant:"outline",onClick:fo,className:"gap-2",children:[(0,Ut.jsx)(oe.Filter,{className:"h-4 Ut-4"}),"Clear"]})]})})}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)(qt,{activeTab:P,onTabChange:_,tabOptions:[{value:"all",label:`All (${q.length})`},{value:"human",label:`Human (${I.length})`},{value:"digital",label:`Digital (${Se.length})`}],maxWidth:"400px",gridCols:3}),P==="all"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:q.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},`${n}-${n.id}`))}),P==="human"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:I.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},n.id))}),P==="digital"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(n=>(0,Ut.jsx)(st,{colleague:n,onEdit:me,onDelete:pt,onViewDetails:he,compact:i},n.id))})]}),q.length===0&&(0,Ut.jsx)(L,{children:(0,Ut.jsx)(B,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(oe.Users,{className:"h-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:u||j!=="all"||S!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ut.jsxs)(D,{onClick:Z,className:"gap-2",children:[(0,Ut.jsx)(oe.Plus,{className:"h-4 Ut-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
5
+ "use strict";"use client";var Bt=Object.create;var De=Object.defineProperty;var Ht=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Vt=Object.getPrototypeOf,jt=Object.prototype.hasOwnProperty;var Gt=(e,t)=>{for(var o in t)De(e,o,{get:t[o],enumerable:!0})},Ze=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ut(t))!jt.call(e,a)&&a!==o&&De(e,a,{get:()=>t[a],enumerable:!(r=Ht(t,a))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?Bt(Vt(e)):{},Ze(t||!e||!e.__esModule?De(o,"default",{value:e,enumerable:!0}):o,e)),Wt=e=>Ze(De({},"__esModule",{value:!0}),e);var Eo={};Gt(Eo,{default:()=>It});module.exports=Wt(Eo);var _=require("react"),F=require("lucide-react");var nt=require("clsx");var Fe="-",Ft=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let s=c.split(Fe);return s[0]===""&&s.length!==1&&s.shift(),et(s,t)||$t(c)},getConflictingClassGroupIds:(c,s)=>{let u=o[c]||[];return s&&r[c]?[...u,...r[c]]:u}}},et=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?et(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(Fe);return t.validators.find(({validator:c})=>c(i))?.classGroupId},Qe=/^\[(.+)\]$/,$t=e=>{if(Qe.test(e)){let t=Qe.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Kt(Object.entries(e.classGroups),o).forEach(([i,c])=>{We(c,r,i,t)}),r},We=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:Ye(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(_t(a)){We(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,c])=>{We(c,Ye(t,i),o,r)})})},Ye=(e,t)=>{let o=e;return t.split(Fe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},_t=e=>e.isThemeGetter,Kt=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,s])=>[t+c,s])):i);return[o,a]}):e,qt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=r.get(i))!==void 0)return a(i,c),c},set(i,c){o.has(i)?o.set(i,c):a(i,c)}}},tt="!",Jt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,c=s=>{let u=[],h=0,x=0,I;for(let C=0;C<s.length;C++){let P=s[C];if(h===0){if(P===a&&(r||s.slice(C,C+i)===t)){u.push(s.slice(x,C)),x=C+i;continue}if(P==="/"){I=C;continue}}P==="["?h++:P==="]"&&h--}let E=u.length===0?s:s.substring(x),U=E.startsWith(tt),V=U?E.substring(1):E,S=I&&I>x?I-x:void 0;return{modifiers:u,hasImportantModifier:U,baseClassName:V,maybePostfixModifierPosition:S}};return o?s=>o({className:s,parseClassName:c}):c},Xt=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Zt=e=>({cache:qt(e.cacheSize),parseClassName:Jt(e),...Ft(e)}),Qt=/\s+/,Yt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],c=e.trim().split(Qt),s="";for(let u=c.length-1;u>=0;u-=1){let h=c[u],{modifiers:x,hasImportantModifier:I,baseClassName:E,maybePostfixModifierPosition:U}=o(h),V=!!U,S=r(V?E.substring(0,U):E);if(!S){if(!V){s=h+(s.length>0?" "+s:s);continue}if(S=r(E),!S){s=h+(s.length>0?" "+s:s);continue}V=!1}let C=Xt(x).join(":"),P=I?C+tt:C,B=P+S;if(i.includes(B))continue;i.push(B);let re=a(S,V);for(let j=0;j<re.length;++j){let ae=re[j];i.push(P+ae)}s=h+(s.length>0?" "+s:s)}return s};function eo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(r&&(r+=" "),r+=o);return r}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=ot(e[r]))&&(o&&(o+=" "),o+=t);return o};function to(e,...t){let o,r,a,i=c;function c(u){let h=t.reduce((x,I)=>I(x),e());return o=Zt(h),r=o.cache.get,a=o.cache.set,i=s,s(u)}function s(u){let h=r(u);if(h)return h;let x=Yt(u,o);return a(u,x),x}return function(){return i(eo.apply(null,arguments))}}var w=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-dt-]+):)?(.+)\]$/i,oo=/^\dt+\/\dt+$/,ro=new Set(["px","full","screen"]),ao=/^(\dt+(\.\dt+)?)?(xs|sm|md|lg|xl)$/,io=/\dt+(%|px|r?em|[sdl]?v([hwib]|min|max)|dt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,no=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,so=/^(inset_)?-?((\dt+)?\.?(\dt+)[a-dt]+|0)_-?((\dt+)?\.?(\dt+)[a-dt]+|0)/,lo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=e=>fe(e)||ro.has(e)||oo.test(e),ee=e=>ge(e,"length",bo),fe=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>ge(e,"number",fe),xe=e=>!!e&&Number.isInteger(Number(e)),co=e=>e.endsWith("%")&&fe(e.slice(0,-1)),f=e=>rt.test(e),te=e=>ao.test(e),mo=new Set(["length","size","percentage"]),po=e=>ge(e,mo,at),uo=e=>ge(e,"position",at),fo=new Set(["image","url"]),go=e=>ge(e,fo,yo),vo=e=>ge(e,"",ho),we=()=>!0,ge=(e,t,o)=>{let r=rt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},bo=e=>io.test(e)&&!no.test(e),at=()=>!1,ho=e=>so.test(e),yo=e=>lo.test(e);var xo=()=>{let e=w("colors"),t=w("spacing"),o=w("blur"),r=w("brightness"),a=w("borderColor"),i=w("borderRadius"),c=w("borderSpacing"),s=w("borderWidth"),u=w("contrast"),h=w("grayscale"),x=w("hueRotate"),I=w("invert"),E=w("gap"),U=w("gradientColorStops"),V=w("gradientColorStopPositions"),S=w("inset"),C=w("margin"),P=w("opacity"),B=w("padding"),re=w("saturate"),j=w("scale"),ae=w("sepia"),ie=w("skew"),Se=w("space"),Pe=w("translate"),ne=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",f,t],y=()=>[f,t],Re=()=>["",J,ee],se=()=>["auto",fe,f],Ve=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ye=()=>["solid","dashed","dotted","double","none"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",f],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[fe,f];return{cacheSize:500,separator:":",theme:{colors:[we],spacing:[J,ee],blur:["none","",te,f],brightness:K(),borderColor:[e],borderRadius:["none","","full",te,f],borderSpacing:y(),borderWidth:Re(),contrast:K(),grayscale:le(),hueRotate:K(),invert:le(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[co,ee],inset:Y(),margin:Y(),opacity:K(),padding:y(),saturate:K(),scale:K(),sepia:le(),skew:K(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",f]}],container:["container"],columns:[{columns:[te]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ve(),f]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:ne()}],"overscroll-x":[{"overscroll-x":ne()}],"overscroll-y":[{"overscroll-y":ne()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],dt:[{dt:["auto",xe,f]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",f]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",xe,f]}],"grid-cols":[{"grid-cols":[we]}],"col-start-end":[{col:["auto",{span:["full",xe,f]},f]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[we]}],"row-start-end":[{row:["auto",{span:[xe,f]},f]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",f]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",f]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...Me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],dt:[{dt:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],pe:[{pe:[B]}],dt:[{dt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],dt:[{dt:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],F:[{F:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",f,t]}],"min-w":[{"min-w":[f,t,"min","max","fit"]}],"max-w":[{"max-w":[f,t,"none","full","min","max","fit","prose",{screen:[te]},te]}],h:[{h:[f,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[f,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[f,t,"auto","min","max","fit"]}],"font-size":[{text:["base",te,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[we]}],"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",f]}],"line-clamp":[{"line-clamp":["none",fe,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",J,f]}],"list-image":[{"list-image":["none",f]}],"list-style-type":[{list:["none","disc","decimal",f]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ye(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",J,ee]}],"underline-offset":[{"underline-offset":["auto",J,f]}],"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:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",f]}],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",f]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ve(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",po]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[V]}],"gradient-via-pos":[{via:[V]}],"gradient-to-pos":[{to:[V]}],"gradient-from":[{from:[U]}],"gradient-via":[{via:[U]}],"gradient-to":[{to:[U]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...ye(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:ye()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ye()]}],"outline-offset":[{"outline-offset":[J,f]}],"outline-w":[{outline:[J,ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[J,ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",te,vo]}],"shadow-color":[{shadow:[we]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Te(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Te()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",te,f]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[I]}],saturate:[{saturate:[re]}],sepia:[{sepia:[ae]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[I]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[re]}],"backdrop-sepia":[{"backdrop-sepia":[ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",f]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",f]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",f]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[xe,f]}],"translate-x":[{"translate-x":[Pe]}],"translate-y":[{"translate-y":[Pe]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",f]}],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","dt-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",f]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-dt":[{"scroll-dt":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-F":[{"scroll-F":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-dt":[{"scroll-dt":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-dt":[{"scroll-dt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",f]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[J,ee,Ge]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],dt:["px","py","ps","pe","dt","pr","pb","pl"],px:["pr","pl"],py:["dt","pb"],dt:["mx","my","ms","F","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-dt":["scroll-mx","scroll-my","scroll-ms","scroll-F","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-dt":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-dt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-dt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var it=to(xo);function g(...e){return it((0,nt.clsx)(e))}var st=require("@radix-ui/react-slot"),lt=require("class-variance-authority"),ct=q(require("react")),dt=require("react/jsx-runtime"),wo=(0,lt.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"}}}),M=ct.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,dt.jsx)(e?st.Slot:"button",{className:g(wo({className:t,size:o,variant:r})),ref:i,...a}));M.displayName="Button";var ce=q(require("react"));var A=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("rounded-xl border bg-card text-card-foreground shadow",e),...t}));A.displayName="Card";var G=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex flex-col space-y-1.5 dt-6",e),...t}));G.displayName="CardHeader";var W=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("font-semibold leading-none tracking-tight",e),...t}));W.displayName="CardTitle";var Co=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("text-sm text-muted-foreground",e),...t}));Co.displayName="CardDescription";var L=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("dt-6 dt-0",e),...t}));L.displayName="CardContent";var No=ce.forwardRef(({className:e,...t},o)=>(0,dt.jsx)("div",{ref:o,className:g("flex items-center dt-6 dt-0",e),...t}));No.displayName="CardFooter";var mt=q(require("react"));var Ce=mt.forwardRef(({className:e,type:t,...o},r)=>(0,dt.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:r,...o}));Ce.displayName="Input";var v=q(require("@radix-ui/react-select")),oe=q(require("react")),$e=v.Root;var Oe=v.Value,ke=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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:r,...o,children:[e,(0,dt.jsx)(v.Icon,{asChild:!0,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ke.displayName=v.Trigger.displayName;var ut=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollUpButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronUp,{className:"h-4 w-4"})}));ut.displayName=v.ScrollUpButton.displayName;var ft=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.ScrollDownButton,{className:g("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4"})}));ft.displayName=v.ScrollDownButton.displayName;var Ie=oe.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,dt.jsx)(v.Portal,{children:(0,dt.jsxs)(v.Content,{className:g("relative dt-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-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:a,...r,children:[(0,dt.jsx)(ut,{}),(0,dt.jsx)(v.Viewport,{className:g("dt-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,dt.jsx)(ft,{})]})}));Ie.displayName=v.Content.displayName;var So=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Label,{className:g("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=v.Label.displayName;var pe=oe.forwardRef(({children:e,className:t,...o},r)=>(0,dt.jsxs)(v.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:r,...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(v.ItemIndicator,{children:(0,dt.jsx)(F.Check,{className:"h-4 w-4"})})}),(0,dt.jsx)(v.ItemText,{children:e})]}));pe.displayName=v.Item.displayName;var Po=oe.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(v.Separator,{className:g("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Po.displayName=v.Separator.displayName;var qe=require("motion/react");var ue=q(require("@radix-ui/react-tabs"));function gt({className:e,...t}){return(0,dt.jsx)(ue.Root,{"data-slot":"tabs",className:g("flex flex-col gap-2",e),...t})}function vt({className:e,...t}){return(0,dt.jsx)(ue.List,{"data-slot":"tabs-list",className:g("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg dt-[3px]",e),...t})}function bt({className:e,...t}){return(0,dt.jsx)(ue.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 X=q(require("react")),b=q(require("@radix-ui/react-dropdown-menu")),ve=require("@radix-ui/react-icons");var ht=b.Root,yt=b.Trigger;var Ro=X.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,dt.jsxs)(b.SubTrigger,{ref:a,className:g("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,dt.jsx)(ve.ChevronRightIcon,{className:"ml-auto"})]}));Ro.displayName=b.SubTrigger.displayName;var To=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.SubContent,{ref:o,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-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}));To.displayName=b.SubContent.displayName;var _e=X.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,dt.jsx)(b.Portal,{children:(0,dt.jsx)(b.Content,{ref:r,sideOffset:t,className:g("dt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover dt-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})}));_e.displayName=b.Content.displayName;var Ke=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Item,{ref:r,className:g("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ke.displayName=b.Item.displayName;var Mo=X.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,dt.jsxs)(b.CheckboxItem,{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),checked:o,...r,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.CheckIcon,{className:"h-4 w-4"})})}),t]}));Mo.displayName=b.CheckboxItem.displayName;var Do=X.forwardRef(({className:e,children:t,...o},r)=>(0,dt.jsxs)(b.RadioItem,{ref:r,className:g("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,dt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,dt.jsx)(b.ItemIndicator,{children:(0,dt.jsx)(ve.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Do.displayName=b.RadioItem.displayName;var ko=X.forwardRef(({className:e,inset:t,...o},r)=>(0,dt.jsx)(b.Label,{ref:r,className:g("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));ko.displayName=b.Label.displayName;var Io=X.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(b.Separator,{ref:o,className:g("-mx-1 my-1 h-px bg-muted",e),...t}));Io.displayName=b.Separator.displayName;var Ao=({className:e,...t})=>(0,dt.jsx)("span",{className:g("ml-auto text-xs tracking-widest opacity-60",e),...t});Ao.displayName="DropdownMenuShortcut";function wt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let c=o.find(s=>s.value===e);return(0,dt.jsxs)(qe.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,dt.jsx)("div",{className:"hidden lg:block",children:(0,dt.jsx)(gt,{value:e,onValueChange:t,children:(0,dt.jsx)(vt,{className:"grid w-full rounded-2xl dt-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,dt.jsx)(bt,{value:s.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,dt.jsx)("div",{className:"lg:hidden",children:(0,dt.jsxs)(ht,{children:[(0,dt.jsx)(yt,{asChild:!0,children:(0,dt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[c?.label||"Select",(0,dt.jsx)(F.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,dt.jsx)(_e,{align:"center",className:"w-[180px]",children:o.map(s=>(0,dt.jsx)(Ke,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Le=q(require("react")),Z=q(require("@radix-ui/react-avatar"));var Je=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Root,{ref:o,className:g("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Je.displayName=Z.Root.displayName;var Lo=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Image,{ref:o,className:g("aspect-square h-full w-full",e),...t}));Lo.displayName=Z.Image.displayName;var Xe=Le.forwardRef(({className:e,...t},o)=>(0,dt.jsx)(Z.Fallback,{ref:o,className:g("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Xe.displayName=Z.Fallback.displayName;function Ct({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[a,i]=(0,_.useState)(""),c=(0,_.useMemo)(()=>e.filter(u=>u.name?.toLowerCase().includes(a.toLowerCase())||u.email.toLowerCase().includes(a.toLowerCase())),[e,a]),s=u=>{t(u)};return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,dt.jsx)(A,{className:"container",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search users by name, email, role, or skills...",value:a,onChange:u=>i(u.target.value),className:"pl-9"})]})})})})}),(0,dt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(u=>(0,dt.jsx)(qe.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,dt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>s(u),children:[(0,dt.jsx)(G,{className:"pb-3",children:(0,dt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,dt.jsx)(Je,{children:(0,dt.jsx)(Xe,{children:(0,dt.jsx)(F.User,{className:"h-4 w-4"})})}),(0,dt.jsx)("div",{children:(0,dt.jsx)(W,{className:"text-lg",children:u.name})})]}),r===u.id&&(0,dt.jsx)(F.Check,{className:"h-5 w-5 text-primary"})]})}),(0,dt.jsx)(L,{className:"dt-0",children:(0,dt.jsxs)("div",{className:"space-y-3",children:[(0,dt.jsxs)("div",{children:[(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Email"}),(0,dt.jsx)("dt",{className:"text-sm font-medium",children:u.email})]}),(0,dt.jsx)("div",{children:(0,dt.jsx)("dt",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},u.id))}),c.length===0&&(0,dt.jsx)(A,{className:"container mt-4",children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function Nt({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)(F.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.User,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Human Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Browse existing users"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.User,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)(F.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-purple-600"}),(0,dt.jsx)("span",{children:"Create from templates"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function St({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,dt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,dt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,dt.jsx)($.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,dt.jsxs)("div",{children:[(0,dt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,dt.jsx)("dt",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,dt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Clone Existing"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Bot,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Copy,{className:"h-4 w-4 text-blue-600"}),(0,dt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,dt.jsx)(qe.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,dt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,dt.jsxs)(G,{className:"text-center pb-4",children:[(0,dt.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,dt.jsx)($.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,dt.jsx)(W,{className:"text-xl",children:"Create New"})]}),(0,dt.jsxs)(L,{className:"text-center",children:[(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,dt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Plus,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Custom job description"})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,dt.jsx)($.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,dt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,dt.jsx)(M,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}var zo=(0,lt.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 Rt({className:e,variant:t,...o}){return(0,dt.jsx)("div",{className:g(zo({variant:t}),e),...o})}function Mt(e,t){let[o,r]=(0,_.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,_.useEffect)(()=>{a(o)},[]),[o,a]}var He=require("react-icons/fa");function kt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:i,children:c,className:s}){let[u,h]=Mt(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!a&&!t),x=!a&&!t||u;return(0,dt.jsxs)(qe.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} dt-8 text-white ${s||""}`,children:[(0,dt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,dt.jsx)(Rt,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,dt.jsx)("h2",{className:"text-3xl font-bold dt-0",children:e})]}),(0,dt.jsxs)("div",{className:"flex items-center gap-3",children:[x&&r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,dt.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 dt-1 text-white transition-colors",onClick:()=>h(!u),style:{lineHeight:0},children:u?(0,dt.jsx)(He.FaChevronDown,{size:22}):(0,dt.jsx)(He.FaChevronUp,{size:22})})]})]}),!x&&(0,dt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)("dt",{className:"max-w-[600px] text-white/80",children:t}),(0,dt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,dt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,dt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),c&&(0,dt.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function It({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:a=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:s=[],existingDigitalColleagues:u=[]}){let[h,x]=(0,_.useState)(e||[]),[I,E]=(0,_.useState)(""),[U,V]=(0,_.useState)("all"),[S,C]=(0,_.useState)("all"),[P,B]=(0,_.useState)("all"),[re,j]=(0,_.useState)(null),[ae,ie]=(0,_.useState)(null);(0,_.useEffect)(()=>{x(e||[])},[e]);let Se=Array.isArray(s)?s:[],Pe=Array.isArray(u)?u:[],[ne,T]=(0,_.useState)("main"),Y=h.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(I.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(I.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(I.toLowerCase())),y=Y.filter(l=>l.type==="human"),Re=Y.filter(l=>l.type==="digital"),se=()=>{T("typeSelection")},Ve=l=>{l.type==="digital"&&(j(l),T("form")),console.log("Editing colleague:",l),o?.(l)},ye=l=>{l.type==="digital"&&(ie(l),T("view"))},Te=l=>{let H={id:`human-${Date.now()}`,type:"human",name:l.name||"",email:l.email,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};x(N=>[...N,H]),t?.(H),T("main")},Me=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}x(H=>[...H,l]),t?.(l),T("main")},le=()=>{j(null),T("form")},je=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}re?(x(H=>H.map(N=>N.id===l.id?l:N)),o?.(l)):(x(H=>[...H,l]),t?.(l)),T("main"),j(null)},K=()=>{T("main"),j(null),ie(null)},Bo=()=>{T("main"),ie(null)},Ho=()=>{ae&&(j(ae),ie(null),T("form"))},Uo=l=>{r?.(l,h.find(H=>H.id===l).type),x(H=>H.filter(N=>N.id!==l))},At=()=>{E(""),V("all"),C("all")},Vo=()=>{let l=[];return Pe.forEach(N=>{N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge)}),h.forEach(N=>{N.type==="digital"&&(N.knowledge&&Array.isArray(N.knowledge)&&l.push(...N.knowledge),N.coreKnowledge&&Array.isArray(N.coreKnowledge)&&l.push(...N.coreKnowledge))}),l.filter((N,Lt,zt)=>Lt===zt.findIndex(Et=>Et.id===N.id))};return ne==="typeSelection"?(0,dt.jsx)(Nt,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):ne==="userSelection"?(0,dt.jsx)(Ct,{users:Se,onUserSelect:Te,onCancel:()=>T("typeSelection")}):ne==="digitalOptions"?(0,dt.jsx)(St,{onCloneExisting:()=>T("digitalClone"),onCreateNew:le,onCancel:()=>T("typeSelection")}):(0,dt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,dt.jsx)(qe.AnimatePresence,{mode:"wait",children:(0,dt.jsx)(qe.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,dt.jsxs)("div",{className:`space-y-6 ${c||""}`,children:[(0,dt.jsx)(kt,{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:se}}),(0,dt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,dt.jsx)(F.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground"})]})]}),(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Human Members"}),(0,dt.jsx)(F.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.filter(l=>l.type==="human").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,dt.jsxs)(A,{children:[(0,dt.jsxs)(G,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,dt.jsx)(W,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,dt.jsx)(F.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,dt.jsxs)(L,{children:[(0,dt.jsx)("div",{className:"text-2xl font-bold",children:h.filter(l=>l.type==="digital").length}),(0,dt.jsx)("dt",{className:"text-xs text-muted-foreground",children:"active"})]})]})]}),(0,dt.jsx)(A,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,dt.jsx)("div",{className:"flex-1",children:(0,dt.jsxs)("div",{className:"relative",children:[(0,dt.jsx)(F.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,dt.jsx)(Ce,{placeholder:"Search colleagues...",value:I,onChange:l=>E(l.target.value),className:"pl-9"})]})}),(0,dt.jsxs)($e,{value:U,onValueChange:V,children:[(0,dt.jsx)(ke,{className:"w-full md:w-[180px]",children:(0,dt.jsx)(Oe,{placeholder:"Department"})}),(0,dt.jsxs)(Ie,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Departments"}),i.map(l=>(0,dt.jsx)(pe,{value:l,children:l},l))]})]}),(0,dt.jsxs)($e,{value:S,onValueChange:C,children:[(0,dt.jsx)(ke,{className:"w-full md:w-[140px]",children:(0,dt.jsx)(Oe,{placeholder:"Status"})}),(0,dt.jsxs)(Ie,{children:[(0,dt.jsx)(pe,{value:"all",children:"All Status"}),(0,dt.jsx)(pe,{value:"active",children:"Active"}),(0,dt.jsx)(pe,{value:"inactive",children:"Inactive"})]})]}),(I||U!=="all"||S!=="all")&&(0,dt.jsxs)(M,{variant:"outline",onClick:At,className:"gap-2",children:[(0,dt.jsx)(F.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,dt.jsxs)("div",{className:"space-y-4",children:[(0,dt.jsx)(wt,{activeTab:P,onTabChange:B,tabOptions:[{value:"all",label:`All (${Y.length})`},{value:"human",label:`Human (${y.length})`},{value:"digital",label:`Digital (${Re.length})`}],maxWidth:"400px",gridCols:3}),P==="all"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="human"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`}),P==="digital"&&(0,dt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`})]}),Y.length===0&&(0,dt.jsx)(A,{children:(0,dt.jsx)(L,{className:"dt-6",children:(0,dt.jsxs)("div",{className:"text-center py-8",children:[(0,dt.jsx)(F.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,dt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,dt.jsx)("dt",{className:"text-muted-foreground mb-4",children:I||U!=="all"||S!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,dt.jsxs)(M,{onClick:se,className:"gap-2",children:[(0,dt.jsx)(F.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-ZB7RDJRP.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-AOQPH32M.mjs";import"../../../chunk-47OE4ZPY.mjs";import"../../../chunk-4USR4WTH.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-XADBBCGL.mjs";import"../../../chunk-USOGZB6R.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-CJDUN6R4.mjs";import"../../../chunk-CO6AQNZ5.mjs";import"../../../chunk-6XUIHSKG.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};