cortex-react-components 2.16.2 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/dist/{chunk-WIRQ5IRT.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-3HNU2NYP.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-7R47MHQE.mjs → chunk-4SRUEQTP.mjs} +1 -1
  4. package/dist/chunk-5HT2KC5I.mjs +4 -0
  5. package/dist/chunk-66MLFLL2.mjs +1 -0
  6. package/dist/chunk-6QERRKM4.mjs +1 -0
  7. package/dist/{chunk-CXOVEABI.mjs → chunk-7OMPPFGG.mjs} +1 -1
  8. package/dist/chunk-B44DI6WT.mjs +4 -0
  9. package/dist/{chunk-MFCVMJBO.mjs → chunk-BDDEMCAH.mjs} +1 -1
  10. package/dist/{chunk-75F3LJMX.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  11. package/dist/{chunk-DKRRVTCV.mjs → chunk-CJDUN6R4.mjs} +1 -1
  12. package/dist/chunk-D2ARSS5J.mjs +4 -0
  13. package/dist/{chunk-GHOL5L32.mjs → chunk-F64CA5CH.mjs} +1 -1
  14. package/dist/{chunk-3Y7QG6VP.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  15. package/dist/{chunk-2BRDNDUB.mjs → chunk-FYQBRCQM.mjs} +1 -1
  16. package/dist/{chunk-RJGYVDOU.mjs → chunk-GAZHKHGB.mjs} +1 -1
  17. package/dist/{chunk-RGOKBIQ5.mjs → chunk-GETYSIZV.mjs} +1 -1
  18. package/dist/chunk-GTHKYSK2.mjs +1 -0
  19. package/dist/chunk-H3RVI2OI.mjs +4 -0
  20. package/dist/{chunk-3NRXQBBS.mjs → chunk-HDKHF3EA.mjs} +1 -1
  21. package/dist/chunk-HFEN3KJC.mjs +1 -0
  22. package/dist/{chunk-C4RWEPVF.mjs → chunk-HKMNAXLM.mjs} +1 -1
  23. package/dist/chunk-HN22CVSV.mjs +1 -0
  24. package/dist/chunk-IPRG56MW.mjs +1 -0
  25. package/dist/{chunk-DMCFEJ2C.mjs → chunk-JCWFPKF3.mjs} +1 -1
  26. package/dist/{chunk-LJXTXROJ.mjs → chunk-KZAYLEFB.mjs} +1 -1
  27. package/dist/chunk-L2UJOICL.mjs +1 -0
  28. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  29. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  30. package/dist/{chunk-AMVJPDM3.mjs → chunk-M527EJIX.mjs} +1 -1
  31. package/dist/{chunk-5MWZTJYP.mjs → chunk-MO4HRQEL.mjs} +1 -1
  32. package/dist/{chunk-TVTTUSWM.mjs → chunk-OQCMTGML.mjs} +1 -1
  33. package/dist/{chunk-GTZJWMZR.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  34. package/dist/{chunk-3LRDESQ6.mjs → chunk-PEMW5ADK.mjs} +1 -1
  35. package/dist/{chunk-FE7ZGUPU.mjs → chunk-PNUBVBSR.mjs} +1 -1
  36. package/dist/{chunk-AJQHGVZ5.mjs → chunk-PTZT4QJW.mjs} +1 -1
  37. package/dist/{chunk-4AC6KKXQ.mjs → chunk-Q6PN3Y7R.mjs} +1 -1
  38. package/dist/{chunk-RK3L6MAM.mjs → chunk-QQFIVSBW.mjs} +1 -1
  39. package/dist/{chunk-EM3T2XYC.mjs → chunk-R6AYIVIR.mjs} +1 -1
  40. package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
  41. package/dist/{chunk-2HWSTGAP.mjs → chunk-RS4VD3ML.mjs} +1 -1
  42. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  43. package/dist/chunk-T3F3RQIC.mjs +1 -0
  44. package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
  45. package/dist/chunk-TH6RC62B.mjs +4 -0
  46. package/dist/chunk-U2OXF7PJ.mjs +1 -0
  47. package/dist/{chunk-NINFDOV5.mjs → chunk-U3FYDDE2.mjs} +1 -1
  48. package/dist/chunk-UP67R64J.mjs +1 -0
  49. package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
  50. package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
  51. package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
  52. package/dist/chunk-VSU7LYXZ.mjs +1 -0
  53. package/dist/chunk-XC3Y62VP.mjs +4 -0
  54. package/dist/chunk-XXL6LGBB.mjs +4 -0
  55. package/dist/{chunk-6MSM3CZ6.mjs → chunk-ZG5N4C4S.mjs} +1 -1
  56. package/dist/components/Blocks/Banner.mjs +1 -1
  57. package/dist/components/Blocks/CallToAction.mjs +1 -1
  58. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  59. package/dist/components/Blocks/Content.mjs +1 -1
  60. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  61. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  62. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  63. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  64. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  65. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  66. package/dist/components/Blocks/index.mjs +1 -1
  67. package/dist/components/CRM/CogeBoard.mjs +1 -1
  68. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  69. package/dist/components/CRM/index.mjs +1 -1
  70. package/dist/components/Cards/ContentCard.mjs +1 -1
  71. package/dist/components/Cards/FeatureCard.mjs +1 -1
  72. package/dist/components/Cards/index.mjs +1 -1
  73. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  74. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  75. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  76. package/dist/components/DigitalColleagues/index.mjs +1 -1
  77. package/dist/components/Foundary/Knowledge/add-knowledge-modal.css +1 -0
  78. package/dist/components/Foundary/Knowledge/add-knowledge-modal.d.ts +11 -0
  79. package/dist/components/Foundary/Knowledge/add-knowledge-modal.js +4 -0
  80. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -0
  81. package/dist/components/Foundary/Knowledge/add-team-context.css +1 -0
  82. package/dist/components/Foundary/Knowledge/add-team-context.d.ts +9 -0
  83. package/dist/components/Foundary/Knowledge/add-team-context.js +4 -0
  84. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -0
  85. package/dist/components/Foundary/MainPage.mjs +1 -1
  86. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  87. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  88. package/dist/components/Foundary/RichText/Icons/Bold.d.ts +2 -0
  89. package/dist/components/Foundary/RichText/Icons/Bold.js +1 -0
  90. package/dist/components/Foundary/RichText/Icons/Bold.mjs +1 -0
  91. package/dist/components/Foundary/RichText/Icons/Headings.d.ts +7 -0
  92. package/dist/components/Foundary/RichText/Icons/Headings.js +1 -0
  93. package/dist/components/Foundary/RichText/Icons/Headings.mjs +1 -0
  94. package/dist/components/Foundary/RichText/Icons/Italic.d.ts +2 -0
  95. package/dist/components/Foundary/RichText/Icons/Italic.js +1 -0
  96. package/dist/components/Foundary/RichText/Icons/Italic.mjs +1 -0
  97. package/dist/components/Foundary/RichText/Icons/StrikeThrough.d.ts +2 -0
  98. package/dist/components/Foundary/RichText/Icons/StrikeThrough.js +1 -0
  99. package/dist/components/Foundary/RichText/Icons/StrikeThrough.mjs +1 -0
  100. package/dist/components/Foundary/RichText/Icons/Subscript.d.ts +2 -0
  101. package/dist/components/Foundary/RichText/Icons/Subscript.js +1 -0
  102. package/dist/components/Foundary/RichText/Icons/Subscript.mjs +1 -0
  103. package/dist/components/Foundary/RichText/Icons/Superscript.d.ts +2 -0
  104. package/dist/components/Foundary/RichText/Icons/Superscript.js +1 -0
  105. package/dist/components/Foundary/RichText/Icons/Superscript.mjs +1 -0
  106. package/dist/components/Foundary/RichText/Icons/Underline.d.ts +2 -0
  107. package/dist/components/Foundary/RichText/Icons/Underline.js +1 -0
  108. package/dist/components/Foundary/RichText/Icons/Underline.mjs +1 -0
  109. package/dist/components/Foundary/RichText/index.css +1 -0
  110. package/dist/components/Foundary/RichText/index.d.ts +9 -0
  111. package/dist/components/Foundary/RichText/index.js +4 -0
  112. package/dist/components/Foundary/RichText/index.mjs +2 -0
  113. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.css +1 -0
  114. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.d.ts +1 -0
  115. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.js +4 -0
  116. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -0
  117. package/dist/components/Foundary/Views/ColleaguesView.d.ts +3 -2
  118. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  119. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  120. package/dist/components/Foundary/Views/KnowledgeView.d.ts +5 -2
  121. package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
  122. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  123. package/dist/components/Foundary/Views/index.js +1 -1
  124. package/dist/components/Foundary/Views/index.mjs +1 -1
  125. package/dist/components/Foundary/colleague-form.d.ts +2 -2
  126. package/dist/components/Foundary/colleague-form.js +1 -1
  127. package/dist/components/Foundary/colleague-form.mjs +1 -1
  128. package/dist/components/Foundary/document-edit.d.ts +3 -2
  129. package/dist/components/Foundary/document-edit.js +1 -2
  130. package/dist/components/Foundary/document-edit.mjs +1 -1
  131. package/dist/components/Foundary/document-preview-examples.js +6 -7
  132. package/dist/components/Foundary/document-preview-examples.mjs +3 -3
  133. package/dist/components/Foundary/document-preview.d.ts +5 -4
  134. package/dist/components/Foundary/document-preview.js +1 -2
  135. package/dist/components/Foundary/document-preview.mjs +1 -1
  136. package/dist/components/Foundary/index.js +1 -1
  137. package/dist/components/Foundary/index.mjs +1 -1
  138. package/dist/components/Foundary/knowledge-browser.d.ts +2 -2
  139. package/dist/components/Foundary/knowledge-browser.js +1 -2
  140. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  141. package/dist/components/Foundary/knowledge-search.d.ts +1 -1
  142. package/dist/components/Foundary/knowledge-search.js +1 -2
  143. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  144. package/dist/components/Foundary/types.d.ts +59 -1
  145. package/dist/components/Foundary/types.js +1 -1
  146. package/dist/components/HeaderFooter/Header.mjs +1 -1
  147. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  148. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  149. package/dist/components/HeaderFooter/index.mjs +1 -1
  150. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  151. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  152. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  153. package/dist/components/Heros/RenderHero.mjs +1 -1
  154. package/dist/components/Heros/index.mjs +1 -1
  155. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  156. package/dist/components/Layouts/Print.mjs +1 -1
  157. package/dist/components/Layouts/SlideShow.mjs +1 -1
  158. package/dist/components/Layouts/index.mjs +1 -1
  159. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  160. package/dist/components/Payload/Media/index.mjs +1 -1
  161. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  162. package/dist/components/Payload/RichText/index.mjs +1 -1
  163. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  164. package/dist/components/Payload/index.mjs +1 -1
  165. package/dist/components/dc-temp/index.mjs +1 -1
  166. package/dist/components/index.js +16 -16
  167. package/dist/components/index.mjs +1 -1
  168. package/dist/globals.css +1 -1
  169. package/dist/index.js +25 -25
  170. package/dist/index.mjs +1 -1
  171. package/dist/metafile-cjs.json +1 -1
  172. package/dist/metafile-esm.json +1 -1
  173. package/dist/pages/Blog.mjs +1 -1
  174. package/dist/pages/Documentation.mjs +1 -1
  175. package/dist/pages/IndexPage.mjs +1 -1
  176. package/dist/pages/Intranet.mjs +1 -1
  177. package/dist/pages/LandingPage.mjs +1 -1
  178. package/dist/pages/Page.mjs +1 -1
  179. package/dist/pages/Publish.mjs +1 -1
  180. package/dist/pages/Website.mjs +1 -1
  181. package/dist/sections/AboutSection.mjs +1 -1
  182. package/dist/sections/BlogDetail.mjs +1 -1
  183. package/dist/sections/BlogList.mjs +1 -1
  184. package/dist/sections/ContactSection.mjs +1 -1
  185. package/dist/sections/PageSections.mjs +1 -1
  186. package/dist/sections/PricingSection.mjs +1 -1
  187. package/dist/sections/ServiceDetail.mjs +1 -1
  188. package/dist/sections/ServiceDetailSection.mjs +1 -1
  189. package/dist/sections/ServiceSection.mjs +1 -1
  190. package/dist/sections/form/index.mjs +1 -1
  191. package/dist/sections/index.mjs +1 -1
  192. package/package.json +5 -2
  193. package/dist/chunk-5ROLUQ45.mjs +0 -4
  194. package/dist/chunk-DYIBFAK7.mjs +0 -4
  195. package/dist/chunk-ISQS7QYK.mjs +0 -4
  196. package/dist/chunk-K5MJYNCD.mjs +0 -4
  197. package/dist/chunk-KO6JUP2L.mjs +0 -4
  198. package/dist/chunk-MDBYZZXI.mjs +0 -1
  199. package/dist/chunk-MFE4VZPC.mjs +0 -4
@@ -1,4 +1,4 @@
1
- import { type Colleague, type DigitalColleague, type User as UserType } from '../types';
1
+ import { Knowledge, type Colleague, type DigitalColleague, type User as UserType } from '../types';
2
2
  interface ColleaguesViewProps {
3
3
  initialColleagues?: Colleague[];
4
4
  onColleagueAdd?: (colleague: Colleague) => void;
@@ -9,6 +9,7 @@ interface ColleaguesViewProps {
9
9
  className?: string;
10
10
  availableUsers?: UserType[];
11
11
  existingDigitalColleagues?: DigitalColleague[];
12
+ availableKnowledgeDocuments?: Knowledge[];
12
13
  }
13
- export default function ColleaguesView({ initialColleagues, onColleagueAdd, onColleagueEdit, onColleagueDelete, compactView, departments, className, availableUsers, existingDigitalColleagues, }: ColleaguesViewProps): import("react/jsx-runtime").JSX.Element;
14
+ export default function ColleaguesView({ initialColleagues, onColleagueAdd, onColleagueEdit, onColleagueDelete, compactView, departments, className, availableUsers, existingDigitalColleagues, availableKnowledgeDocuments, }: ColleaguesViewProps): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var ro=Object.create;var Ke=Object.defineProperty;var ao=Object.getOwnPropertyDescriptor;var io=Object.getOwnPropertyNames;var no=Object.getPrototypeOf,so=Object.prototype.hasOwnProperty;var lo=(e,t)=>{for(var o in t)Ke(e,o,{get:t[o],enumerable:!0})},vt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of io(t))!so.call(e,a)&&a!==o&&Ke(e,a,{get:()=>t[a],enumerable:!(r=ao(t,a))||r.enumerable});return e};var X=(e,t,o)=>(o=e!=null?ro(no(e)):{},vt(t||!e||!e.__esModule?Ke(o,"default",{value:e,enumerable:!0}):o,e)),co=e=>vt(Ke({},"__esModule",{value:!0}),e);var or={};lo(or,{default:()=>eo});module.exports=co(or);var te=require("react"),Z=require("lucide-react");var Pt=require("clsx");var dt="-",mo=e=>{let t=uo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:d=>{let s=d.split(dt);return s[0]===""&&s.length!==1&&s.shift(),yt(s,t)||po(d)},getConflictingClassGroupIds:(d,s)=>{let u=o[d]||[];return s&&r[d]?[...u,...r[d]]:u}}},yt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?yt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let i=e.join(dt);return t.validators.find(({validator:d})=>d(i))?.classGroupId},bt=/^\[(.+)\]$/,po=e=>{if(bt.test(e)){let t=bt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},uo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return go(Object.entries(e.classGroups),o).forEach(([i,d])=>{lt(d,r,i,t)}),r},lt=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let i=a===""?t:ht(t,a);i.classGroupId=o;return}if(typeof a=="function"){if(fo(a)){lt(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([i,d])=>{lt(d,ht(t,i),o,r)})})},ht=(e,t)=>{let o=e;return t.split(dt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},fo=e=>e.isThemeGetter,go=(e,t)=>t?e.map(([o,r])=>{let a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,s])=>[t+d,s])):i);return[o,a]}):e,vo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=r.get(i))!==void 0)return a(i,d),d},set(i,d){o.has(i)?o.set(i,d):a(i,d)}}},xt="!",bo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],i=t.length,d=s=>{let u=[],p=0,S=0,f;for(let M=0;M<s.length;M++){let E=s[M];if(p===0){if(E===a&&(r||s.slice(M,M+i)===t)){u.push(s.slice(S,M)),S=M+i;continue}if(E==="/"){f=M;continue}}E==="["?p++:E==="]"&&p--}let w=u.length===0?s:s.substring(S),W=w.startsWith(xt),B=W?w.substring(1):w,P=f&&f>S?f-S:void 0;return{modifiers:u,hasImportantModifier:W,baseClassName:B,maybePostfixModifierPosition:P}};return o?s=>o({className:s,parseClassName:d}):d},ho=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},yo=e=>({cache:vo(e.cacheSize),parseClassName:bo(e),...mo(e)}),xo=/\s+/,wo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],d=e.trim().split(xo),s="";for(let u=d.length-1;u>=0;u-=1){let p=d[u],{modifiers:S,hasImportantModifier:f,baseClassName:w,maybePostfixModifierPosition:W}=o(p),B=!!W,P=r(B?w.substring(0,W):w);if(!P){if(!B){s=p+(s.length>0?" "+s:s);continue}if(P=r(w),!P){s=p+(s.length>0?" "+s:s);continue}B=!1}let M=ho(S).join(":"),E=f?M+xt:M,V=E+P;if(i.includes(V))continue;i.push(V);let oe=a(P,B);for(let O=0;O<oe.length;++O){let re=oe[O];i.push(E+re)}s=p+(s.length>0?" "+s:s)}return s};function Co(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=wt(t))&&(r&&(r+=" "),r+=o);return r}var wt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=wt(e[r]))&&(o&&(o+=" "),o+=t);return o};function No(e,...t){let o,r,a,i=d;function d(u){let p=t.reduce((S,f)=>f(S),e());return o=yo(p),r=o.cache.get,a=o.cache.set,i=s,s(u)}function s(u){let p=r(u);if(p)return p;let S=wo(u,o);return a(u,S),S}return function(){return i(Co.apply(null,arguments))}}var I=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ct=/^\[(?:([a-kt-]+):)?(.+)\]$/i,So=/^\d+\/\d+$/,Po=new Set(["px","full","screen"]),Ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Do=/\d+(%|px|r?em|[sdl]?kt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|kt|min|max))|\kt(calc|min|max|clamp)\(.+\)|^0$/,To=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-kt]+|0)_-?((\d+)?\.?(\d+)[a-kt]+|0)/,Mo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,se=e=>Ae(e)||Po.has(e)||So.test(e),ue=e=>Le(e,"length",jo),Ae=e=>!!e&&!Number.isNaN(Number(e)),st=e=>Le(e,"number",Ae),Ue=e=>!!e&&Number.isInteger(Number(e)),Io=e=>e.endsWith("%")&&Ae(e.slice(0,-1)),h=e=>Ct.test(e),fe=e=>Ro.test(e),Ao=new Set(["length","size","percentage"]),Lo=e=>Le(e,Ao,Nt),Eo=e=>Le(e,"position",Nt),Bo=new Set(["image","url"]),zo=e=>Le(e,Bo,Fo),Ho=e=>Le(e,"",Uo),Fe=()=>!0,Le=(e,t,o)=>{let r=Ct.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},jo=e=>Do.test(e)&&!To.test(e),Nt=()=>!1,Uo=e=>ko.test(e),Fo=e=>Mo.test(e);var Vo=()=>{let e=I("colors"),t=I("spacing"),o=I("blur"),r=I("brightness"),a=I("borderColor"),i=I("borderRadius"),d=I("borderSpacing"),s=I("borderWidth"),u=I("contrast"),p=I("grayscale"),S=I("hueRotate"),f=I("invert"),w=I("gap"),W=I("gradientColorStops"),B=I("gradientColorStopPositions"),P=I("inset"),M=I("margin"),E=I("opacity"),V=I("padding"),oe=I("saturate"),O=I("scale"),re=I("sepia"),ie=I("skew"),Me=I("space"),k=I("translate"),H=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",h,t],D=()=>[h,t],he=()=>["",se,ue],_=()=>["auto",Ae,h],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],He=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",h],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[Ae,h];return{cacheSize:500,separator:":",theme:{colors:[Fe],spacing:[se,ue],blur:["none","",fe,h],brightness:Y(),borderColor:[e],borderRadius:["none","","full",fe,h],borderSpacing:D(),borderWidth:he(),contrast:Y(),grayscale:ye(),hueRotate:Y(),invert:ye(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[Io,ue],inset:$(),margin:$(),opacity:Y(),padding:D(),saturate:Y(),scale:Y(),sepia:ye(),skew:Y(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[fe]}],"break-after":[{"break-after":je()}],"break-before":[{"break-before":je()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),h]}],overflow:[{overflow:T()}],"overflow-kt":[{"overflow-kt":T()}],"overflow-kt":[{"overflow-kt":T()}],overscroll:[{overscroll:H()}],"overscroll-kt":[{"overscroll-kt":H()}],"overscroll-kt":[{"overscroll-kt":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-kt":[{"inset-kt":[P]}],"inset-kt":[{"inset-kt":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],kt:[{kt:["auto",Ue,h]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",Ue,h]}],"grid-cols":[{"grid-cols":[Fe]}],"col-start-end":[{col:["auto",{span:["full",Ue,h]},h]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Fe]}],"row-start-end":[{row:["auto",{span:[Ue,h]},h]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[w]}],"gap-kt":[{"gap-kt":[w]}],"gap-kt":[{"gap-kt":[w]}],"justify-content":[{justify:["normal",...He()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...He(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...He(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[V]}],px:[{px:[V]}],py:[{py:[V]}],ps:[{ps:[V]}],pe:[{pe:[V]}],pt:[{pt:[V]}],pr:[{pr:[V]}],pb:[{pb:[V]}],pl:[{pl:[V]}],kt:[{kt:[M]}],mx:[{mx:[M]}],my:[{my:[M]}],ms:[{ms:[M]}],Z:[{Z:[M]}],mt:[{mt:[M]}],mr:[{mr:[M]}],mb:[{mb:[M]}],ml:[{ml:[M]}],"space-kt":[{"space-kt":[Me]}],"space-kt-reverse":["space-kt-reverse"],"space-kt":[{"space-kt":[Me]}],"space-kt-reverse":["space-kt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,t]}],"min-w":[{"min-w":[h,t,"min","max","fit"]}],"max-w":[{"max-w":[h,t,"none","full","min","max","fit","prose",{screen:[fe]},fe]}],h:[{h:[h,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fe,ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",st]}],"font-family":[{font:[Fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",Ae,st]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",se,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",se,ue]}],"underline-offset":[{"underline-offset":["auto",se,h]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),Eo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","kt","kt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","kt","bl","l","tl"]},zo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[B]}],"gradient-via-pos":[{via:[B]}],"gradient-to-pos":[{to:[B]}],"gradient-from":[{from:[W]}],"gradient-via":[{via:[W]}],"gradient-to":[{to:[W]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-kt":[{"rounded-kt":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-Z":[{"rounded-Z":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-kt":[{"border-kt":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-kt":[{"divide-kt":[s]}],"divide-kt-reverse":["divide-kt-reverse"],"divide-kt":[{"divide-kt":[s]}],"divide-kt-reverse":["divide-kt-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:pe()}],"border-color":[{border:[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-kt":[{"border-kt":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[se,h]}],"outline-w":[{outline:[se,ue]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[se,ue]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fe,Ho]}],"shadow-color":[{shadow:[Fe]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[..._e(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_e()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",fe,h]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[f]}],saturate:[{saturate:[oe]}],sepia:[{sepia:[re]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[oe]}],"backdrop-sepia":[{"backdrop-sepia":[re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-kt":[{"border-spacing-kt":[d]}],"border-spacing-kt":[{"border-spacing-kt":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-kt":[{"scale-kt":[O]}],"scale-kt":[{"scale-kt":[O]}],rotate:[{rotate:[Ue,h]}],"translate-kt":[{"translate-kt":[k]}],"translate-kt":[{"translate-kt":[k]}],"skew-kt":[{"skew-kt":[ie]}],"skew-kt":[{"skew-kt":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","kt-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","kt","kt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-kt":[{"scroll-kt":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-Z":[{"scroll-Z":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","kt","kt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-kt":[{"touch-pan":["kt","left","right"]}],"touch-kt":[{"touch-pan":["kt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[se,ue,st]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-kt","overflow-kt"],overscroll:["overscroll-kt","overscroll-kt"],inset:["inset-kt","inset-kt","start","end","top","right","bottom","left"],"inset-kt":["right","left"],"inset-kt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-kt","gap-kt"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],kt:["mx","my","ms","Z","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-kt","rounded-l","rounded-ss","rounded-se","rounded-Z","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Z"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-kt":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-kt","border-spacing-kt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-kt","border-w-l"],"border-w-kt":["border-w-r","border-w-l"],"border-w-kt":["border-w-t","border-w-kt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-kt","border-color-l"],"border-color-kt":["border-color-r","border-color-l"],"border-color-kt":["border-color-t","border-color-kt"],"scroll-kt":["scroll-mx","scroll-my","scroll-ms","scroll-Z","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-kt","touch-kt","touch-pz"],"touch-kt":["touch"],"touch-kt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var St=No(Vo);function c(...e){return St((0,Pt.clsx)(e))}var Rt=require("@radix-ui/react-slot"),Dt=require("class-variance-authority"),Tt=X(require("react")),kt=require("react/jsx-runtime"),Go=(0,Dt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),R=Tt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},i)=>(0,kt.jsx)(e?Rt.Slot:"button",{className:c(Go({className:t,size:o,variant:r})),ref:i,...a}));R.displayName="Button";var xe=X(require("react"));var A=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));A.displayName="Card";var j=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("flex flex-col space-kt-1.5 p-6",e),...t}));j.displayName="CardHeader";var G=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var Wo=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));Wo.displayName="CardDescription";var L=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("p-6 pt-0",e),...t}));L.displayName="CardContent";var $o=xe.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("div",{ref:o,className:c("flex items-center p-6 pt-0",e),...t}));$o.displayName="CardFooter";var Mt=X(require("react"));var ae=Mt.forwardRef(({className:e,type:t,...o},r)=>(0,kt.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));ae.displayName="Input";var C=X(require("@radix-ui/react-select")),ge=X(require("react")),ct=C.Root;var mt=C.Value,qe=ge.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(C.Trigger,{className:c("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...o,children:[e,(0,kt.jsx)(C.Icon,{asChild:!0,children:(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));qe.displayName=C.Trigger.displayName;var At=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.ScrollUpButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));At.displayName=C.ScrollUpButton.displayName;var Lt=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.ScrollDownButton,{className:c("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));Lt.displayName=C.ScrollDownButton.displayName;var Je=ge.forwardRef(({children:e,className:t,position:o="popper",...r},a)=>(0,kt.jsx)(C.Portal,{children:(0,kt.jsxs)(C.Content,{className:c("relative kt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-kt-1 data-[side=left]:-translate-kt-1 data-[side=right]:translate-kt-1 data-[side=top]:-translate-kt-1",t),position:o,ref:a,...r,children:[(0,kt.jsx)(At,{}),(0,kt.jsx)(C.Viewport,{className:c("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,kt.jsx)(Lt,{})]})}));Je.displayName=C.Content.displayName;var Oo=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.Label,{className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));Oo.displayName=C.Label.displayName;var Ne=ge.forwardRef(({children:e,className:t,...o},r)=>(0,kt.jsxs)(C.Item,{className:c("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...o,children:[(0,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(C.ItemIndicator,{children:(0,kt.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,kt.jsx)(C.ItemText,{children:e})]}));Ne.displayName=C.Item.displayName;var _o=ge.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(C.Separator,{className:c("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));_o.displayName=C.Separator.displayName;var pt=require("motion/react");var Se=X(require("@radix-ui/react-tabs"));function Et({className:e,...t}){return(0,kt.jsx)(Se.Root,{"data-slot":"tabs",className:c("flex flex-col gap-2",e),...t})}function Bt({className:e,...t}){return(0,kt.jsx)(Se.List,{"data-slot":"tabs-list",className:c("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function zt({className:e,...t}){return(0,kt.jsx)(Se.Trigger,{"data-slot":"tabs-trigger",className:c("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var le=X(require("react")),N=X(require("@radix-ui/react-dropdown-menu")),Ee=require("@radix-ui/react-icons");var Ze=N.Root,Qe=N.Trigger;var Ko=le.forwardRef(({className:e,inset:t,children:o,...r},a)=>(0,kt.jsxs)(N.SubTrigger,{ref:a,className:c("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,kt.jsx)(Ee.ChevronRightIcon,{className:"ml-auto"})]}));Ko.displayName=N.SubTrigger.displayName;var qo=le.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(N.SubContent,{ref:o,className:c("kt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));qo.displayName=N.SubContent.displayName;var Ve=le.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,kt.jsx)(N.Portal,{children:(0,kt.jsx)(N.Content,{ref:r,sideOffset:t,className:c("kt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ve.displayName=N.Content.displayName;var Pe=le.forwardRef(({className:e,inset:t,...o},r)=>(0,kt.jsx)(N.Item,{ref:r,className:c("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Pe.displayName=N.Item.displayName;var Jo=le.forwardRef(({className:e,children:t,checked:o,...r},a)=>(0,kt.jsxs)(N.CheckboxItem,{ref:a,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(N.ItemIndicator,{children:(0,kt.jsx)(Ee.CheckIcon,{className:"h-4 w-4"})})}),t]}));Jo.displayName=N.CheckboxItem.displayName;var Xo=le.forwardRef(({className:e,children:t,...o},r)=>(0,kt.jsxs)(N.RadioItem,{ref:r,className:c("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,kt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,kt.jsx)(N.ItemIndicator,{children:(0,kt.jsx)(Ee.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Xo.displayName=N.RadioItem.displayName;var Zo=le.forwardRef(({className:e,inset:t,...o},r)=>(0,kt.jsx)(N.Label,{ref:r,className:c("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Zo.displayName=N.Label.displayName;var Qo=le.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(N.Separator,{ref:o,className:c("-mx-1 my-1 h-px bg-muted",e),...t}));Qo.displayName=N.Separator.displayName;var Yo=({className:e,...t})=>(0,kt.jsx)("span",{className:c("ml-auto text-xs tracking-widest opacity-60",e),...t});Yo.displayName="DropdownMenuShortcut";function jt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:a="700px",gridCols:i=6}){let d=o.find(s=>s.value===e);return(0,kt.jsxs)(pt.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,kt:-20},animate:{opacity:1,kt:0},transition:{duration:.3,ease:"easeOut"},children:[(0,kt.jsx)("div",{className:"hidden lg:block",children:(0,kt.jsx)(Et,{value:e,onValueChange:t,children:(0,kt.jsx)(Bt,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:a,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(s=>(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,kt.jsx)(zt,{value:s.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:s.label})},s.value))})})}),(0,kt.jsx)("div",{className:"lg:hidden",children:(0,kt.jsxs)(Ze,{children:[(0,kt.jsx)(Qe,{asChild:!0,children:(0,kt.jsxs)(R,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[d?.label||"Select",(0,kt.jsx)(Z.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,kt.jsx)(Ve,{align:"center",className:"w-[180px]",children:o.map(s=>(0,kt.jsx)(Pe,{onClick:()=>t?.(s.value),className:`cursor-pointer ${e===s.value?"bg-accent":""}`,children:s.label},s.value))})]})})]})}var Ye=X(require("react")),de=X(require("@radix-ui/react-avatar"));var Re=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Re.displayName=de.Root.displayName;var ut=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));ut.displayName=de.Image.displayName;var De=Ye.forwardRef(({className:e,...t},o)=>(0,kt.jsx)(de.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));De.displayName=de.Fallback.displayName;var er=(0,Dt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ve({className:e,variant:t,...o}){return(0,kt.jsx)("div",{className:c(er({variant:t}),e),...o})}function tt({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:a=!0,compact:i=!1,className:d}){let[s,u]=(0,te.useState)(!1),p=w=>{switch(w){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},S=w=>{switch(w){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},f=w=>{if(!w)return"Never";let B=Math.floor((new Date().getTime()-w.getTime())/(1e3*60));return B<1?"Just now":B<60?`${B}kt ago`:B<1440?`${Math.floor(B/60)}h ago`:`${Math.floor(B/1440)}d ago`};return(0,kt.jsxs)(A,{className:c("hover:shadow-md transition-shadow",i&&"p-2",d),children:[(0,kt.jsx)(j,{className:c("pb-3",i&&"pb-2"),children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)("div",{className:"relative",children:(0,kt.jsxs)(Re,{className:c("h-12 w-12",i&&"h-8 w-8"),children:[(0,kt.jsx)(ut,{src:"/placeholder.svg",alt:e.name||"name"}),(0,kt.jsx)(De,{children:e.name?.split(" ").map(w=>w[0]).join("")})]})}),(0,kt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)("h3",{className:c("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?(0,kt.jsx)(Z.Bot,{className:c("h-4 w-4 text-blue-500",i&&"h-3 w-3")}):(0,kt.jsx)(Z.User,{className:c("h-4 w-4 text-green-500",i&&"h-3 w-3")})]}),(0,kt.jsx)("p",{className:c("text-sm text-muted-foreground truncate",i&&"text-xs")}),!i&&(0,kt.jsx)("div",{className:"flex items-center gap-2 mt-1"})]})]}),a&&(0,kt.jsxs)(Ze,{children:[(0,kt.jsx)(Qe,{asChild:!0,children:(0,kt.jsx)(R,{variant:"ghost",size:"icon",className:c("h-8 w-8",i&&"h-6 w-6"),children:(0,kt.jsx)(Z.MoreHorizontal,{className:c("h-4 w-4",i&&"h-3 w-3")})})}),(0,kt.jsxs)(Ve,{align:"end",children:[e.type==="digital"&&(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsxs)(Pe,{onClick:()=>r?.(e),children:[(0,kt.jsx)(Z.Settings,{className:"h-4 w-4 mr-2"}),"View Details"]}),(0,kt.jsxs)(Pe,{onClick:()=>t?.(e),children:[(0,kt.jsx)(Z.Edit,{className:"h-4 w-4 mr-2"}),"Edit"]})]}),(0,kt.jsxs)(Pe,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,kt.jsx)(Z.Trash2,{className:"h-4 w-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!i&&(0,kt.jsxs)(L,{className:"pt-0",children:[(0,kt.jsx)("div",{className:"space-kt-2 text-sm",children:e.type==="human"&&(0,kt.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,kt.jsx)(Z.Mail,{className:"h-3 w-3"}),(0,kt.jsx)("span",{className:"truncate",children:e.email})]})}),e.type==="digital"&&(0,kt.jsx)("div",{className:"mt-3",children:(0,kt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,s?e.capabilities.length:2).map(w=>(0,kt.jsx)(ve,{variant:"outline",className:"text-xs",children:typeof w.value=="number"?w.value:w.value.name},typeof w.value=="number"?w.value:w.value.name)),(e.capabilities?.length||0)>2&&(0,kt.jsx)(R,{variant:"ghost",size:"sm",className:"h-5 px-2 text-xs",onClick:()=>u(!s),children:s?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Gt=X(require("react")),ft=X(require("@radix-ui/react-label"));var tr=(0,Dt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Te=Gt.forwardRef(({className:e,...t},o)=>(0,$t.jsx)(ft.Root,{ref:o,className:c(tr(),e),...t}));Te.displayName=ft.Root.displayName;var Ot=X(require("react")),Ge=Ot.forwardRef(({className:e,...t},o)=>(0,kt.jsx)("textarea",{className:c("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));Ge.displayName="Textarea";function gt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:a,submitLabel:i,cancelLabel:d="Cancel",readOnly:s=!1,availableKnowledgeDocuments:u=[]}){let[p,S]=(0,te.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,...e}),[f,w]=(0,te.useState)(""),[W,B]=(0,te.useState)(""),[P,M]=(0,te.useState)(!s);(0,te.useEffect)(()=>{e&&S(e)},[e]);let E=k=>{k.preventDefault();let H={id:p.id||parseInt(Date.now().toString()),name:p.name,type:"digital",description:p.description,jobDescription:p.jobDescription||"",workInstructions:p.workInstructions||"",capabilities:p.capabilities||[],capabilityLevel:p.capabilityLevel||0};t(H)},V=(k,H,T)=>{if(!H.trim())return;let $=p[k]||[];S({...p,[k]:[...$,H.trim()]}),T("")},oe=(k,H)=>{let T=p[k]||[];S({...p,[k]:T.filter(($,D)=>D!==H)})},O=k=>{k.preventDefault(),M(!P)},re=(k,H,T,$,D)=>{let he=p[k]||[];return(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{children:H}),P&&(0,kt.jsxs)("div",{className:"flex gap-2",children:[(0,kt.jsx)(ae,{value:T,onChange:_=>$(_.target.value),placeholder:D,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),V(k,T,$))},disabled:r}),(0,kt.jsx)(R,{type:"button",variant:"outline",size:"icon",onClick:()=>V(k,T,$),disabled:r,children:(0,kt.jsx)(Z.Plus,{className:"h-4 w-4"})})]}),(0,kt.jsx)("div",{className:"flex flex-wrap gap-2",children:he.map((_,ne)=>(0,kt.jsxs)(ve,{className:"gap-1",children:[_,P&&(0,kt.jsx)(R,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>oe(k,ne),disabled:r,children:(0,kt.jsx)(Z.X,{className:"h-3 w-3"})})]},`${k}-${ne}-${_}`))})]})},ie=a||(P?e?"Edit Colleague":"Add New Colleague":"View Colleague"),Me=i||(e?"Update Colleague":"Add Colleague");return(0,kt.jsxs)(A,{className:"kt-8 w-full max-w-4xl mx-auto",children:[(0,kt.jsx)(j,{children:(0,kt.jsxs)(G,{className:"flex items-center gap-2",children:[(0,kt.jsx)(Z.Bot,{className:"h-5 w-5"}),ie]})}),(0,kt.jsx)(L,{children:(0,kt.jsxs)("form",{onSubmit:E,className:"space-kt-6",children:[(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"name",children:"Name *"}),(0,kt.jsx)(ae,{id:"name",value:p.name||"",onChange:k=>S({...p,name:k.target.value}),required:!0,disabled:r||!P})]}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"description",children:"Description"}),(0,kt.jsx)(Ge,{id:"description",value:p.description||"",onChange:k=>S({...p,description:k.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!P})]})]}),(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"jobDescription",children:"Job Description *"}),(0,kt.jsx)(Ge,{id:"jobDescription",value:p.jobDescription||"",onChange:k=>S({...p,jobDescription:k.target.value}),rows:4,required:p.type==="digital",disabled:r||!P})]}),(0,kt.jsxs)("div",{className:"space-kt-2",children:[(0,kt.jsx)(Te,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,kt.jsx)(Ge,{id:"workInstructions",value:p.workInstructions||"",onChange:k=>S({...p,workInstructions:k.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!P})]}),re("capabilities","Capabilities",W,B,"Add capability")]}),(0,kt.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,kt.jsx)(R,{type:"button",variant:"outline",onClick:o,disabled:r,children:P?d:"Close"}),P?(0,kt.jsx)(R,{type:"submit",disabled:r,children:r?"Saving...":Me}):(0,kt.jsxs)(R,{type:"button",onClick:O,disabled:r,className:"gap-2",children:[(0,kt.jsx)(Z.Edit,{className:"h-4 w-4"}),"Edit"]})]})]})})]})}function Kt({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[a,i]=(0,te.useState)(""),d=(0,te.useMemo)(()=>e.filter(u=>u.name?.toLowerCase().includes(a.toLowerCase())||u.email.toLowerCase().includes(a.toLowerCase())),[e,a]),s=u=>{t(u)};return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,kt.jsx)(A,{className:"container",children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search users by name, email, role, or skills...",value:a,onChange:u=>i(u.target.value),className:"pl-9"})]})})})})}),(0,kt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:d.map(u=>(0,kt.jsx)(pt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,kt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r===u.id?"ring-2 ring-primary":""}`,onClick:()=>s(u),children:[(0,kt.jsx)(j,{className:"pb-3",children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)(Re,{children:(0,kt.jsx)(De,{children:(0,kt.jsx)(Z.User,{className:"h-4 w-4"})})}),(0,kt.jsx)("div",{children:(0,kt.jsx)(G,{className:"text-lg",children:u.name})})]}),r===u.id&&(0,kt.jsx)(Z.Check,{className:"h-5 w-5 text-primary"})]})}),(0,kt.jsx)(L,{className:"pt-0",children:(0,kt.jsxs)("div",{className:"space-kt-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,kt.jsx)("p",{className:"text-sm font-medium",children:u.email})]}),(0,kt.jsx)("div",{children:(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},u.id))}),d.length===0&&(0,kt.jsx)(A,{className:"container mt-4",children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.User,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function qt({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[a,i]=(0,$e.useState)(""),[d,s]=(0,$e.useState)("all"),u=(0,$e.useMemo)(()=>e.filter(f=>f.name.toLowerCase().includes(a.toLowerCase())||f.jobDescription?.toLowerCase().includes(a.toLowerCase())||f.workInstructions?.toLowerCase().includes(a.toLowerCase())),[e,a,d]),p=f=>{let w={...f,name:`${f.name} (Copy)`};t(w)},S=f=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(f);return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search by name, job description, or capabilities...",value:a,onChange:f=>i(f.target.value),className:"pl-9"})]})}),(0,kt.jsxs)("select",{value:d,onChange:f=>s(f.target.value),className:"h-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,kt.jsx)("option",{value:"all",children:"All Status"}),(0,kt.jsx)("option",{value:"active",children:"Active"}),(0,kt.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,kt.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:u.map(f=>(0,kt.jsx)(pt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,kt.jsxs)(A,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===f.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>p(f),children:[(0,kt.jsx)(j,{className:"pb-3",children:(0,kt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,kt.jsx)(Re,{children:(0,kt.jsx)(De,{className:"bg-blue-100",children:(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-blue-600"})})}),(0,kt.jsx)("div",{children:(0,kt.jsx)(G,{className:"text-lg flex items-center gap-2",children:f.name})})]}),(0,kt.jsxs)(R,{size:"sm",variant:"outline",className:"gap-2 h-8",onClick:w=>{w.stopPropagation(),p(f)},children:[(0,kt.jsx)(Z.Copy,{className:"h-3 w-3"}),"Clone"]})]})}),(0,kt.jsx)(L,{className:"pt-0",children:(0,kt.jsxs)("div",{className:"space-kt-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,kt.jsx)("p",{className:"text-sm line-clamp-2",children:f.jobDescription})]}),f.capabilities&&f.capabilities.length>0&&(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,kt.jsx)("div",{className:"flex flex-wrap gap-1",children:f.capabilities.length>3&&(0,kt.jsxs)(ve,{variant:"outline",className:"text-xs",children:["+",f.capabilities.length-3]})})]}),(0,kt.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),f.workInstructions&&(0,kt.jsxs)("div",{children:[(0,kt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,kt.jsx)("p",{className:"text-xs line-clamp-2",children:f.workInstructions})]})]})})]})},f.id))}),u.length===0&&(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.Bot,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function Jt({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,kt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.User,{className:"h-8 w-8 text-blue-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Browse existing users"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.User,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Select User"})]})]})}),(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Bot,{className:"h-8 w-8 text-purple-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-purple-600"}),(0,kt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-purple-600"}),(0,kt.jsx)("span",{children:"Create from templates"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function Xt({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-6",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:[(0,kt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,kt.jsxs)(R,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,kt.jsx)(Z.ChevronLeft,{className:"h-4 w-4"}),"Back"]}),(0,kt.jsxs)("div",{children:[(0,kt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,kt.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,kt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-w-4xl mx-auto",children:[(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Copy,{className:"h-8 w-8 text-blue-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize pt for your needs."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Copy,{className:"h-4 w-4 text-blue-600"}),(0,kt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,kt.jsx)(pt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,kt.jsxs)(A,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,kt.jsxs)(j,{className:"text-center pb-4",children:[(0,kt.jsx)("div",{className:"mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,kt.jsx)(Z.Sparkles,{className:"h-8 w-8 text-green-600"})}),(0,kt.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,kt.jsxs)(L,{className:"text-center",children:[(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,kt.jsxs)("div",{className:"space-kt-2 text-sm",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Plus,{className:"h-4 w-4 text-green-600"}),(0,kt.jsx)("span",{children:"Custom job description"})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,kt.jsx)(Z.Sparkles,{className:"h-4 w-4 text-green-600"}),(0,kt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,kt.jsx)(R,{className:"mt-6 w-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function Zt(e,t){let[o,r]=(0,te.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),a=i=>{try{r(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,te.useEffect)(()=>{a(o)},[]),[o,a]}var at=require("react-icons/fa");function Yt({title:e,description:t,badge:o,primaryAction:r,secondaryAction:a,gradient:i,children:d,className:s}){let[u,p]=Zt(`hero-section-minimized-${e.replace(/\s+/kt,"-").toLowerCase()}`,!a&&!t),S=!a&&!t||u;return(0,kt.jsxs)(pt.motion.div,{initial:{opacity:0,kt:20},animate:{opacity:1,kt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${s||""}`,children:[(0,kt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,kt.jsx)(ve,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,kt.jsx)("h2",{className:"text-3xl font-bold kt-0",children:e})]}),(0,kt.jsxs)("div",{className:"flex items-center gap-3",children:[S&&r&&(0,kt.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(a||t)&&(0,kt.jsx)("button",{"aria-label":u?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>p(!u),style:{lineHeight:0},children:u?(0,kt.jsx)(at.FaChevronDown,{size:22}):(0,kt.jsx)(at.FaChevronUp,{size:22})})]})]}),!S&&(0,kt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,kt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,kt.jsx)(R,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),a&&(0,kt.jsx)(R,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:a.onClick,children:a.label})]})]}),d&&(0,kt.jsx)("div",{className:"hidden lg:block",children:d})]})]})}function eo({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:a=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:d,availableUsers:s=[],existingDigitalColleagues:u=[]}){let[p,S]=(0,te.useState)(e||[]),[f,w]=(0,te.useState)(""),[W,B]=(0,te.useState)("all"),[P,M]=(0,te.useState)("all"),[E,V]=(0,te.useState)("all"),[oe,O]=(0,te.useState)(null),[re,ie]=(0,te.useState)(null);(0,te.useEffect)(()=>{S(e||[])},[e]);let Me=Array.isArray(s)?s:[],k=Array.isArray(u)?u:[],[H,T]=(0,te.useState)("main"),$=p.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(f.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(f.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(f.toLowerCase())),D=$.filter(l=>l.type==="human"),he=$.filter(l=>l.type==="digital"),_=()=>{T("typeSelection")},ne=l=>{l.type==="digital"&&(O(l),T("form")),console.log("Editing colleague:",l),o?.(l)},pe=l=>{l.type==="digital"&&(ie(l),T("view"))},_e=l=>{let J={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};S(Ie=>[...Ie,J]),t?.(J),T("main")},He=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}S(J=>[...J,{...l,type:"digital"}]),t?.({...l,type:"digital"}),T("main")},ye=()=>{O(null),T("form")},je=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}oe?(S(J=>J.map(Ie=>Ie.id===l.id?{...l,type:"digital"}:Ie)),o?.({...l,type:"digital"})):(S(J=>[...J,{...l,type:"digital"}]),t?.({...l,type:"digital"})),T("main"),O(null)},Y=()=>{T("main"),O(null),ie(null)},to=()=>{T("main"),ie(null)},rr=()=>{re&&(O(re),ie(null),T("form"))},nt=l=>{console.log("deleting",l,p),r?.(l,p.find(J=>J.id.toString()===l.toString())?.type),S(J=>J.filter(Ie=>Ie.id!==l))},oo=()=>{w(""),B("all"),M("all")};return H==="typeSelection"?(0,kt.jsx)(Jt,{onSelectHuman:()=>T("userSelection"),onSelectDigital:()=>T("digitalOptions"),onCancel:()=>T("main")}):H==="userSelection"?(0,kt.jsx)(Kt,{users:Me,onUserSelect:_e,onCancel:()=>T("typeSelection")}):H==="digitalOptions"?(0,kt.jsx)(Xt,{onCloneExisting:()=>T("digitalClone"),onCreateNew:ye,onCancel:()=>T("typeSelection")}):H==="digitalClone"?(0,kt.jsx)(qt,{digitalColleagues:k,onColleagueClone:He,onCancel:()=>T("digitalOptions")}):H==="form"?(0,kt.jsx)(gt,{colleague:oe||void 0,onSave:je,onCancel:Y}):H==="view"?(0,kt.jsx)(gt,{colleague:re||void 0,onSave:je,onCancel:to,readOnly:!0}):(0,kt.jsx)("div",{className:"px-2 md:px-4 py-4 space-kt-8",children:(0,kt.jsx)(pt.AnimatePresence,{mode:"wait",children:(0,kt.jsx)(pt.motion.div,{initial:{opacity:0,kt:10},animate:{opacity:1,kt:0},exit:{opacity:0,kt:-10},transition:{duration:.2},children:(0,kt.jsxs)("div",{className:`space-kt-6 ${d||""}`,children:[(0,kt.jsx)(Yt,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:_}}),(0,kt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,kt.jsx)(Z.Users,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,kt.jsx)(Z.User,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="human").length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,kt.jsxs)(A,{children:[(0,kt.jsxs)(j,{className:"flex flex-row items-center justify-between space-kt-0 pb-2",children:[(0,kt.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,kt.jsx)(Z.Bot,{className:"h-4 w-4 text-muted-foreground"})]}),(0,kt.jsxs)(L,{children:[(0,kt.jsx)("div",{className:"text-2xl font-bold",children:p.filter(l=>l.type==="digital").length}),(0,kt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,kt.jsx)("div",{className:"flex-1",children:(0,kt.jsxs)("div",{className:"relative",children:[(0,kt.jsx)(Z.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,kt.jsx)(ae,{placeholder:"Search colleagues...",value:f,onChange:l=>w(l.target.value),className:"pl-9"})]})}),(0,kt.jsxs)(ct,{value:W,onValueChange:B,children:[(0,kt.jsx)(qe,{className:"w-full md:w-[180px]",children:(0,kt.jsx)(mt,{placeholder:"Department"})}),(0,kt.jsxs)(Je,{children:[(0,kt.jsx)(Ne,{value:"all",children:"All Departments"}),i.map(l=>(0,kt.jsx)(Ne,{value:l,children:l},l))]})]}),(0,kt.jsxs)(ct,{value:P,onValueChange:M,children:[(0,kt.jsx)(qe,{className:"w-full md:w-[140px]",children:(0,kt.jsx)(mt,{placeholder:"Status"})}),(0,kt.jsxs)(Je,{children:[(0,kt.jsx)(Ne,{value:"all",children:"All Status"}),(0,kt.jsx)(Ne,{value:"active",children:"Active"}),(0,kt.jsx)(Ne,{value:"inactive",children:"Inactive"})]})]}),(f||W!=="all"||P!=="all")&&(0,kt.jsxs)(R,{variant:"outline",onClick:oo,className:"gap-2",children:[(0,kt.jsx)(Z.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,kt.jsxs)("div",{className:"space-kt-4",children:[(0,kt.jsx)(jt,{activeTab:E,onTabChange:V,tabOptions:[{value:"all",label:`All (${$.length})`},{value:"human",label:`Human (${D.length})`},{value:"digital",label:`Digital (${he.length})`}],maxWidth:"400px",gridCols:3}),E==="all"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:$.map(l=>(0,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},`${l}-${l.id}`))}),E==="human"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:D.map(l=>(0,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},l.id))}),E==="digital"&&(0,kt.jsx)("div",{className:`grid gap-4 ${a?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:he.map(l=>(0,kt.jsx)(tt,{colleague:l,onEdit:ne,onDelete:nt,onViewDetails:pe,compact:a},l.id))})]}),$.length===0&&(0,kt.jsx)(A,{children:(0,kt.jsx)(L,{className:"pt-6",children:(0,kt.jsxs)("div",{className:"text-center py-8",children:[(0,kt.jsx)(Z.Users,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,kt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,kt.jsx)("p",{className:"text-muted-foreground mb-4",children:f||W!=="all"||P!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,kt.jsxs)(R,{onClick:_,className:"gap-2",children:[(0,kt.jsx)(Z.Plus,{className:"h-4 w-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
5
+ "use strict";"use client";var fo=Object.create;var Qe=Object.defineProperty;var go=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var bo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var wo=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},Nt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vo(t))!ho.call(e,i)&&i!==o&&Qe(e,i,{get:()=>t[i],enumerable:!(r=go(t,i))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?fo(bo(e)):{},Nt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),xo=e=>Nt(Qe({},"__esModule",{value:!0}),e);var pr={};wo(pr,{default:()=>co});module.exports=xo(pr);var se=require("react"),Y=require("lucide-react");var It=require("clsx");var ft="-",yo=e=>{let t=No(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let n=c.split(ft);return n[0]===""&&n.length!==1&&n.shift(),Rt(n,t)||Co(c)},getConflictingClassGroupIds:(c,n)=>{let f=o[c]||[];return n&&r[c]?[...f,...r[c]]:f}}},Rt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?Rt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(ft);return t.validators.find(({validator:c})=>c(a))?.classGroupId},St=/^\[(.+)\]$/,Co=e=>{if(St.test(e)){let t=St.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},No=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Po(Object.entries(e.classGroups),o).forEach(([a,c])=>{ut(c,r,a,t)}),r},ut=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:Pt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(So(i)){ut(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,c])=>{ut(c,Pt(t,a),o,r)})})},Pt=(e,t)=>{let o=e;return t.split(ft).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},So=e=>e.isThemeGetter,Po=(e,t)=>t?e.map(([o,r])=>{let i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,n])=>[t+c,n])):a);return[o,i]}):e,Ro=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return i(a,c),c},set(a,c){o.has(a)?o.set(a,c):i(a,c)}}},Dt="!",Do=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,c=n=>{let f=[],d=0,N=0,g;for(let p=0;p<n.length;p++){let T=n[p];if(d===0){if(T===i&&(r||n.slice(p,p+a)===t)){f.push(n.slice(N,p)),N=p+a;continue}if(T==="/"){g=p;continue}}T==="["?d++:T==="]"&&d--}let v=f.length===0?n:n.substring(N),$=v.startsWith(Dt),E=$?v.substring(1):v,k=g&&g>N?g-N:void 0;return{modifiers:f,hasImportantModifier:$,baseClassName:E,maybePostfixModifierPosition:k}};return o?n=>o({className:n,parseClassName:c}):c},ko=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},To=e=>({cache:Ro(e.cacheSize),parseClassName:Do(e),...yo(e)}),Mo=/\zt+/,Ao=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],c=e.trim().split(Mo),n="";for(let f=c.length-1;f>=0;f-=1){let d=c[f],{modifiers:N,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:$}=o(d),E=!!$,k=r(E?v.substring(0,$):v);if(!k){if(!E){n=d+(n.length>0?" "+n:n);continue}if(k=r(v),!k){n=d+(n.length>0?" "+n:n);continue}E=!1}let p=ko(N).join(":"),T=g?p+Dt:p,H=T+k;if(a.includes(H))continue;a.push(H);let X=i(k,E);for(let V=0;V<X.length;++V){let ee=X[V];a.push(T+ee)}n=d+(n.length>0?" "+n:n)}return n};function Io(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=kt(t))&&(r&&(r+=" "),r+=o);return r}var kt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=kt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Lo(e,...t){let o,r,i,a=c;function c(f){let d=t.reduce((N,g)=>g(N),e());return o=To(d),r=o.cache.get,i=o.cache.set,a=n,n(f)}function n(f){let d=r(f);if(d)return d;let N=Ao(f,o);return i(f,N),N}return function(){return a(Io.apply(null,arguments))}}var z=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Bo=/^\d+\/\d+$/,Eo=new Set(["px","full","screen"]),zo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(zt|zt|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,jo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>He(e)||Eo.has(e)||Bo.test(e),we=e=>Fe(e,"length",qo),He=e=>!!e&&!Number.isNaN(Number(e)),pt=e=>Fe(e,"number",He),$e=e=>!!e&&Number.isInteger(Number(e)),Uo=e=>e.endsWith("%")&&He(e.slice(0,-1)),y=e=>Tt.test(e),xe=e=>zo.test(e),Vo=new Set(["length","size","percentage"]),Wo=e=>Fe(e,Vo,Mt),$o=e=>Fe(e,"position",Mt),Go=new Set(["image","url"]),Oo=e=>Fe(e,Go,Xo),_o=e=>Fe(e,"",Jo),Ge=()=>!0,Fe=(e,t,o)=>{let r=Tt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},qo=e=>Ho.test(e)&&!Fo.test(e),Mt=()=>!1,Jo=e=>Ko.test(e),Xo=e=>jo.test(e);var Zo=()=>{let e=z("colors"),t=z("spacing"),o=z("blur"),r=z("brightness"),i=z("borderColor"),a=z("borderRadius"),c=z("borderSpacing"),n=z("borderWidth"),f=z("contrast"),d=z("grayscale"),N=z("hueRotate"),g=z("invert"),v=z("gap"),$=z("gradientColorStops"),E=z("gradientColorStopPositions"),k=z("inset"),p=z("margin"),T=z("opacity"),H=z("padding"),X=z("saturate"),V=z("scale"),ee=z("sepia"),ve=z("skew"),le=z("space"),b=z("translate"),O=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",y,t],A=()=>[y,t],Se=()=>["",de,we],_=()=>["auto",He,y],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],We=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",y],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[He,y];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[de,we],blur:["none","",xe,y],brightness:te(),borderColor:[e],borderRadius:["none","","full",xe,y],borderSpacing:A(),borderWidth:Se(),contrast:te(),grayscale:Pe(),hueRotate:te(),invert:Pe(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Uo,we],inset:L(),margin:L(),opacity:te(),padding:A(),saturate:te(),scale:te(),sepia:Pe(),skew:te(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...be(),y]}],overflow:[{overflow:W()}],"overflow-zt":[{"overflow-zt":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:O()}],"overscroll-zt":[{"overscroll-zt":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-zt":[{"inset-zt":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$e,y]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",$e,y]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",$e,y]},y]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[$e,y]},y]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[v]}],"gap-zt":[{"gap-zt":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...We()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...We(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...We(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-zt":[{"space-zt":[le]}],"space-zt-reverse":["space-zt-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],zt:[{zt:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-zt":[{"min-zt":[y,t,"min","max","fit"]}],"max-zt":[{"max-zt":[y,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],zt:[{zt:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-zt":[{"min-zt":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-zt":[{"max-zt":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pt]}],"font-family":[{font:[Ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",y]}],"line-clamp":[{"line-clamp":["none",He,pt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,we]}],"underline-offset":[{"underline-offset":["auto",de,y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],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",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),$o]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","zt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Oo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[$]}],"gradient-via":[{via:[$]}],"gradient-to":[{to:[$]}],rounded:[{rounded:[a]}],"rounded-zt":[{"rounded-zt":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-zt":[{border:[n]}],"border-zt-zt":[{"border-zt":[n]}],"border-zt-y":[{"border-y":[n]}],"border-zt-zt":[{"border-zt":[n]}],"border-zt-e":[{"border-e":[n]}],"border-zt-t":[{"border-t":[n]}],"border-zt-r":[{"border-r":[n]}],"border-zt-b":[{"border-b":[n]}],"border-zt-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...he(),"hidden"]}],"divide-zt":[{"divide-zt":[n]}],"divide-zt-reverse":["divide-zt-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-zt":[{"border-zt":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-zt":[{"border-zt":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[de,y]}],"outline-zt":[{outline:[de,we]}],"outline-color":[{outline:[e]}],"ring-zt":[{ring:Se()}],"ring-zt-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-zt":[{"ring-offset":[de,we]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,_o]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",xe,y]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[g]}],saturate:[{saturate:[X]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-zt":[{"border-spacing-zt":[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",y]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-zt":[{"scale-zt":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[$e,y]}],"translate-zt":[{"translate-zt":[b]}],"translate-y":[{"translate-y":[b]}],"skew-zt":[{"skew-zt":[ve]}],"skew-y":[{"skew-y":[ve]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",y]}],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","zt-resize","zt-resize","Y-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","zt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","zt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-zt":[{"touch-pan":["zt","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",y]}],fill:[{fill:[e,"none"]}],"stroke-zt":[{stroke:[de,we,pt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-zt","overflow-y"],overscroll:["overscroll-zt","overscroll-y"],inset:["inset-zt","inset-y","start","end","top","right","bottom","left"],"inset-zt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-zt","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["zt","zt"],"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-zt","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-zt":["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-zt","border-spacing-y"],"border-zt":["border-zt-zt","border-zt-e","border-zt-t","border-zt-r","border-zt-b","border-zt-l"],"border-zt-zt":["border-zt-r","border-zt-l"],"border-zt-y":["border-zt-t","border-zt-b"],"border-color":["border-color-zt","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-zt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-zt","touch-y","touch-pz"],"touch-zt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var At=Lo(Zo);function m(...e){return At((0,It.clsx)(e))}var Lt=require("@radix-ui/react-slot"),Bt=require("class-variance-authority"),Et=q(require("react")),zt=require("react/jsx-runtime"),Qo=(0,Bt.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:"zt-10 px-4 py-2",icon:"zt-10 zt-10",lg:"zt-11 rounded px-8",sm:"zt-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=Et.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,zt.jsx)(e?Lt.Slot:"button",{className:m(Qo({className:t,size:o,variant:r})),ref:a,...i}));M.displayName="Button";var Re=q(require("react"));var I=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var K=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("flex flex-col space-y-1.5 p-6",e),...t}));K.displayName="CardHeader";var G=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var Yo=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));Yo.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("p-6 pt-0",e),...t}));B.displayName="CardContent";var er=Re.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("div",{ref:o,className:m("flex items-center p-6 pt-0",e),...t}));er.displayName="CardFooter";var Ht=q(require("react"));var oe=Ht.forwardRef(({className:e,type:t,...o},r)=>(0,zt.jsx)("input",{type:t,className:m("flex zt-9 zt-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));oe.displayName="Input";var P=q(require("@radix-ui/react-select")),ye=q(require("react")),gt=P.Root;var vt=P.Value,Ye=ye.forwardRef(({children:e,className:t,...o},r)=>(0,zt.jsxs)(P.Trigger,{className:m("flex zt-10 zt-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,zt.jsx)(P.Icon,{asChild:!0,children:(0,zt.jsx)(Y.ChevronDown,{className:"zt-4 zt-4 opacity-50"})})]}));Ye.displayName=P.Trigger.displayName;var Kt=ye.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(P.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,zt.jsx)(Y.ChevronUp,{className:"zt-4 zt-4"})}));Kt.displayName=P.ScrollUpButton.displayName;var jt=ye.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(P.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,zt.jsx)(Y.ChevronDown,{className:"zt-4 zt-4"})}));jt.displayName=P.ScrollDownButton.displayName;var et=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,zt.jsx)(P.Portal,{children:(0,zt.jsxs)(P.Content,{className:m("relative z-50 max-zt-96 min-zt-[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-zt-1 data-[side=right]:translate-zt-1 data-[side=top]:-translate-y-1",t),position:o,ref:i,...r,children:[(0,zt.jsx)(Kt,{}),(0,zt.jsx)(P.Viewport,{className:m("p-1",o==="popper"&&"zt-[var(--radix-select-trigger-height)] zt-full min-zt-[var(--radix-select-trigger-width)]"),children:e}),(0,zt.jsx)(jt,{})]})}));et.displayName=P.Content.displayName;var tr=ye.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(P.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));tr.displayName=P.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,zt.jsxs)(P.Item,{className:m("relative flex zt-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,zt.jsx)("span",{className:"absolute left-2 flex zt-3.5 zt-3.5 items-center justify-center",children:(0,zt.jsx)(P.ItemIndicator,{children:(0,zt.jsx)(Y.Check,{className:"zt-4 zt-4"})})}),(0,zt.jsx)(P.ItemText,{children:e})]}));Te.displayName=P.Item.displayName;var or=ye.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(P.Separator,{className:m("-mx-1 my-1 zt-px bg-muted",e),ref:o,...t}));or.displayName=P.Separator.displayName;var bt=require("motion/react");var Me=q(require("@radix-ui/react-tabs"));function Ut({className:e,...t}){return(0,zt.jsx)(Me.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function Vt({className:e,...t}){return(0,zt.jsx)(Me.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex zt-9 zt-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Wt({className:e,...t}){return(0,zt.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:m("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex zt-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}var ce=q(require("react")),R=q(require("@radix-ui/react-dropdown-menu")),Ke=require("@radix-ui/react-icons");var ot=R.Root,rt=R.Trigger;var rr=ce.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,zt.jsxs)(R.SubTrigger,{ref:i,className:m("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[o,(0,zt.jsx)(Ke.ChevronRightIcon,{className:"ml-auto"})]}));rr.displayName=R.SubTrigger.displayName;var ar=ce.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(R.SubContent,{ref:o,className:m("z-50 min-zt-[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}));ar.displayName=R.SubContent.displayName;var Oe=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,zt.jsx)(R.Portal,{children:(0,zt.jsx)(R.Content,{ref:r,sideOffset:t,className:m("z-50 min-zt-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Oe.displayName=R.Content.displayName;var Ae=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,zt.jsx)(R.Item,{ref:r,className:m("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...o}));Ae.displayName=R.Item.displayName;var ir=ce.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,zt.jsxs)(R.CheckboxItem,{ref:i,className:m("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:o,...r,children:[(0,zt.jsx)("span",{className:"absolute left-2 flex zt-3.5 zt-3.5 items-center justify-center",children:(0,zt.jsx)(R.ItemIndicator,{children:(0,zt.jsx)(Ke.CheckIcon,{className:"zt-4 zt-4"})})}),t]}));ir.displayName=R.CheckboxItem.displayName;var nr=ce.forwardRef(({className:e,children:t,...o},r)=>(0,zt.jsxs)(R.RadioItem,{ref:r,className:m("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[(0,zt.jsx)("span",{className:"absolute left-2 flex zt-3.5 zt-3.5 items-center justify-center",children:(0,zt.jsx)(R.ItemIndicator,{children:(0,zt.jsx)(Ke.DotFilledIcon,{className:"zt-4 zt-4 fill-current"})})}),t]}));nr.displayName=R.RadioItem.displayName;var sr=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,zt.jsx)(R.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));sr.displayName=R.Label.displayName;var lr=ce.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(R.Separator,{ref:o,className:m("-mx-1 my-1 zt-px bg-muted",e),...t}));lr.displayName=R.Separator.displayName;var dr=({className:e,...t})=>(0,zt.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});dr.displayName="DropdownMenuShortcut";function Gt({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let c=o.find(n=>n.value===e);return(0,zt.jsxs)(bt.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,zt.jsx)("div",{className:"hidden lg:block",children:(0,zt.jsx)(Ut,{value:e,onValueChange:t,children:(0,zt.jsx)(Vt,{className:"grid zt-full rounded-2xl p-0 zt-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,zt.jsx)(bt.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,zt.jsx)(Wt,{value:n.value,className:"zt-full zt-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:n.label})},n.value))})})}),(0,zt.jsx)("div",{className:"lg:hidden",children:(0,zt.jsxs)(ot,{children:[(0,zt.jsx)(rt,{asChild:!0,children:(0,zt.jsxs)(M,{variant:"outline",className:"rounded-2xl min-zt-[140px] justify-between",children:[c?.label||"Select",(0,zt.jsx)($t.ChevronDown,{className:"zt-4 zt-4 ml-2"})]})}),(0,zt.jsx)(Oe,{align:"center",className:"zt-[180px]",children:o.map(n=>(0,zt.jsx)(Ae,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var at=q(require("react")),me=q(require("@radix-ui/react-avatar"));var Ie=at.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(me.Root,{ref:o,className:m("relative flex zt-10 zt-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=me.Root.displayName;var ht=at.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(me.Image,{ref:o,className:m("aspect-square zt-full zt-full",e),...t}));ht.displayName=me.Image.displayName;var Le=at.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(me.Fallback,{ref:o,className:m("flex zt-full zt-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=me.Fallback.displayName;var cr=(0,Bt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function re({className:e,variant:t,...o}){return(0,zt.jsx)("div",{className:m(cr({variant:t}),e),...o})}function nt({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:c}){let[n,f]=(0,se.useState)(!1),d=v=>{switch(v){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},N=v=>{switch(v){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=v=>{if(!v)return"Never";let E=Math.floor((new Date().getTime()-v.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}m ago`:E<1440?`${Math.floor(E/60)}zt ago`:`${Math.floor(E/1440)}d ago`};return(0,zt.jsxs)(I,{className:m("hover:shadow-md transition-shadow",a&&"p-2",c),children:[(0,zt.jsx)(K,{className:m("pb-3",a&&"pb-2"),children:(0,zt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,zt.jsx)("div",{className:"relative",children:(0,zt.jsxs)(Ie,{className:m("zt-12 zt-12",a&&"zt-8 zt-8"),children:[(0,zt.jsx)(ht,{src:"/placeholder.svg",alt:e.name||"name"}),(0,zt.jsx)(Le,{children:e.name?.split(" ").map(v=>v[0]).join("")})]})}),(0,zt.jsxs)("div",{className:"flex-1 min-zt-0",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,zt.jsx)("h3",{className:m("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,zt.jsx)(Y.Bot,{className:m("zt-4 zt-4 text-blue-500",a&&"zt-3 zt-3")}):(0,zt.jsx)(Y.User,{className:m("zt-4 zt-4 text-green-500",a&&"zt-3 zt-3")})]}),(0,zt.jsx)("p",{className:m("text-sm text-muted-foreground truncate",a&&"text-xs")}),!a&&(0,zt.jsx)("div",{className:"flex items-center gap-2 mt-1"})]})]}),i&&(0,zt.jsxs)(ot,{children:[(0,zt.jsx)(rt,{asChild:!0,children:(0,zt.jsx)(M,{variant:"ghost",size:"icon",className:m("zt-8 zt-8",a&&"zt-6 zt-6"),children:(0,zt.jsx)(Y.MoreHorizontal,{className:m("zt-4 zt-4",a&&"zt-3 zt-3")})})}),(0,zt.jsxs)(Oe,{align:"end",children:[e.type==="digital"&&(0,zt.jsxs)(zt.Fragment,{children:[(0,zt.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,zt.jsx)(Y.Settings,{className:"zt-4 zt-4 mr-2"}),"View Details"]}),(0,zt.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,zt.jsx)(Y.Edit,{className:"zt-4 zt-4 mr-2"}),"Edit"]})]}),(0,zt.jsxs)(Ae,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,zt.jsx)(Y.Trash2,{className:"zt-4 zt-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,zt.jsxs)(B,{className:"pt-0",children:[(0,zt.jsx)("div",{className:"space-y-2 text-sm",children:e.type==="human"&&(0,zt.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,zt.jsx)(Y.Mail,{className:"zt-3 zt-3"}),(0,zt.jsx)("span",{className:"truncate",children:e.email})]})}),e.type==="digital"&&(0,zt.jsx)("div",{className:"mt-3",children:(0,zt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,n?e.capabilities.length:2).map(v=>(0,zt.jsx)(re,{variant:"outline",className:"text-xs",children:typeof v.value=="number"?v.value:v.value.name},typeof v.value=="number"?v.value:v.value.name)),(e.capabilities?.length||0)>2&&(0,zt.jsx)(M,{variant:"ghost",size:"sm",className:"zt-5 px-2 text-xs",onClick:()=>f(!n),children:n?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Jt=q(require("react")),wt=q(require("@radix-ui/react-label"));var mr=(0,Bt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pe=Jt.forwardRef(({className:e,...t},o)=>(0,zt.jsx)(wt.Root,{ref:o,className:m(mr(),e),...t}));pe.displayName=wt.Root.displayName;var Qt=q(require("react")),_e=Qt.forwardRef(({className:e,...t},o)=>(0,zt.jsx)("textarea",{className:m("flex min-zt-[80px] zt-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...t}));_e.displayName="Textarea";var xt=q(require("react")),ae=q(require("@radix-ui/react-scroll-area"));var yt=xt.forwardRef(({className:e,children:t,...o},r)=>(0,zt.jsxs)(ae.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,zt.jsx)(ae.Viewport,{className:"zt-full zt-full rounded-[inherit]",children:t}),(0,zt.jsx)(eo,{}),(0,zt.jsx)(ae.Corner,{})]}));yt.displayName=ae.Root.displayName;var eo=xt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,zt.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"zt-full zt-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"zt-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,zt.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));eo.displayName=ae.ScrollAreaScrollbar.displayName;function to({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:c=!1}){let[n,f]=(0,se.useState)(""),[d,N]=(0,se.useState)([]),[g,v]=(0,se.useState)(!1);(0,se.useEffect)(()=>{if(!n.trim()){N([]),v(!1);return}let p=o.filter(T=>{if(e.map(V=>V.id).includes(T.id))return!1;let X=n.toLowerCase();return T.title.toLowerCase().includes(X)||T.description?.toLowerCase().includes(X)||T.tags?.some(V=>V.toLowerCase().includes(X))||Object.values(T.metadata||{}).some(V=>String(V).toLowerCase().includes(X))});N(p),v(!0)},[n,e,o]);let $=p=>{a&&e.length>=a&&e.pop(),t([...e,p]),f(""),v(!1)},E=p=>{console.log("doc",p,e),t(e.filter(T=>T.id!==p))},k=!a||e.length<a;return(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{children:r}),(0,zt.jsxs)("div",{className:"relative",children:[(0,zt.jsxs)("div",{className:"relative",children:[(0,zt.jsx)(Y.Search,{className:"absolute left-3 top-3 zt-4 zt-4 text-muted-foreground"}),(0,zt.jsx)(oe,{value:n,onChange:p=>f(p.target.value),placeholder:k?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:c||!k,onFocus:()=>n&&v(!0)})]}),g&&d.length>0&&(0,zt.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 mt-1 max-zt-60",children:(0,zt.jsx)(yt,{className:"zt-full",children:(0,zt.jsx)(B,{className:"p-2",children:d.map(p=>(0,zt.jsx)(M,{variant:"ghost",className:"zt-full justify-start zt-auto p-3 mb-1",onClick:()=>$(p),disabled:c,children:(0,zt.jsxs)("div",{className:"flex items-start gap-3 zt-full",children:[(0,zt.jsx)(Y.FileText,{className:"zt-4 zt-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,zt.jsxs)("div",{className:"text-left flex-1 min-zt-0",children:[(0,zt.jsx)("div",{className:"font-medium text-sm truncate",children:p.title}),p.description&&(0,zt.jsx)("div",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:p.description}),p.tags&&p.tags.length>0&&(0,zt.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[p.tags.slice(0,3).map(T=>(0,zt.jsx)(re,{variant:"outline",className:"text-xs",children:T},T)),p.tags.length>3&&(0,zt.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",p.tags.length-3," more"]})]})]})]})},p.id))})})}),g&&n&&d.length===0&&(0,zt.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 mt-1",children:(0,zt.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',n,'"']})})]}),e.length>0&&(0,zt.jsx)("div",{className:"space-y-2",children:(0,zt.jsx)("div",{className:"space-y-2",children:e.map(p=>(0,zt.jsx)(I,{className:"p-3",children:(0,zt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,zt.jsx)(Y.FileText,{className:"zt-4 zt-4 mt-0.5 text-muted-foreground flex-shrink-0"}),(0,zt.jsxs)("div",{className:"flex-1 min-zt-0",children:[(0,zt.jsx)("div",{className:"font-medium text-sm",children:p.title}),p.description&&(0,zt.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:p.description}),p.tags&&p.tags.length>0&&(0,zt.jsx)("div",{className:"flex flex-wrap gap-1 mt-2",children:p.tags.map(T=>(0,zt.jsxs)(re,{variant:"outline",className:"text-xs",children:[(0,zt.jsx)(Y.Tag,{className:"zt-3 zt-3 mr-1"}),T]},T))})]}),(0,zt.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"zt-6 zt-6 flex-shrink-0",onClick:()=>E(p.id),disabled:c,children:(0,zt.jsx)(Y.X,{className:"zt-3 zt-3"})})]})},p.id))})}),g&&(0,zt.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>v(!1)})]})}function Ct({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:c="Cancel",readOnly:n=!1,availableKnowledgeDocuments:f=[]}){let[d,N]=(0,se.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,coreKnowledge:null,...e}),[g,v]=(0,se.useState)(""),[$,E]=(0,se.useState)(""),[k,p]=(0,se.useState)(!n);(0,se.useEffect)(()=>{e&&N(e)},[e]);let T=b=>{b.preventDefault();let O={id:d.id||parseInt(Date.now().toString()),name:d.name,type:"digital",description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],capabilityLevel:d.capabilityLevel||0,coreKnowledge:d.coreKnowledge||null};t(O)},H=(b,O,W)=>{if(!O.trim())return;let L=d[b]||[];N({...d,[b]:[...L,O.trim()]}),W("")},X=(b,O)=>{let W=d[b]||[];N({...d,[b]:W.filter((L,A)=>A!==O)})},V=b=>{b.preventDefault(),p(!k)},ee=(b,O,W,L,A)=>{let Se=d[b]||[];return(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{children:O}),k&&(0,zt.jsxs)("div",{className:"flex gap-2",children:[(0,zt.jsx)(oe,{value:W,onChange:_=>L(_.target.value),placeholder:A,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),H(b,W,L))},disabled:r}),(0,zt.jsx)(M,{type:"button",variant:"outline",size:"icon",onClick:()=>H(b,W,L),disabled:r,children:(0,zt.jsx)(Y.Plus,{className:"zt-4 zt-4"})})]}),(0,zt.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((_,be)=>(0,zt.jsxs)(re,{className:"gap-1",children:[_,k&&(0,zt.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"zt-4 zt-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(b,be),disabled:r,children:(0,zt.jsx)(Y.X,{className:"zt-3 zt-3"})})]},`${b}-${be}-${_}`))})]})},ve=i||(k?e?"Edit Colleague":"Add New Colleague":"View Colleague"),le=a||(e?"Update Colleague":"Add Colleague");return(0,zt.jsxs)(I,{className:"m-8 zt-full max-zt-4xl mx-auto",children:[(0,zt.jsx)(K,{children:(0,zt.jsxs)(G,{className:"flex items-center gap-2",children:[(0,zt.jsx)(Y.Bot,{className:"zt-5 zt-5"}),ve]})}),(0,zt.jsx)(B,{children:(0,zt.jsxs)("form",{onSubmit:T,className:"space-y-6",children:[(0,zt.jsxs)("div",{className:"space-y-4",children:[(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{htmlFor:"name",children:"Name *"}),(0,zt.jsx)(oe,{id:"name",value:d.name||"",onChange:b=>N({...d,name:b.target.value}),required:!0,disabled:r||!k})]}),(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{htmlFor:"description",children:"Description"}),(0,zt.jsx)(_e,{id:"description",value:d.description||"",onChange:b=>N({...d,description:b.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!k})]})]}),(0,zt.jsxs)("div",{className:"space-y-4",children:[(0,zt.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{htmlFor:"jobDescription",children:"Job Description *"}),(0,zt.jsx)(_e,{id:"jobDescription",value:d.jobDescription||"",onChange:b=>N({...d,jobDescription:b.target.value}),rows:4,required:d.type==="digital",disabled:r||!k})]}),(0,zt.jsxs)("div",{className:"space-y-2",children:[(0,zt.jsx)(pe,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,zt.jsx)(_e,{id:"workInstructions",value:d.workInstructions||"",onChange:b=>N({...d,workInstructions:b.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!k})]}),ee("capabilities","Capabilities",$,E,"Add capability"),(0,zt.jsx)(to,{selectedDocuments:d.coreKnowledge?[{id:d.coreKnowledge?.id?.toString(),title:d.coreKnowledge?.name,format:"markdown",content:d.coreKnowledge?.content||"",createdAt:new Date(d.coreKnowledge?.createdAt),description:d.coreKnowledge?.description||"",metadata:d.coreKnowledge?.metadata||{},updatedAt:new Date(d.coreKnowledge?.updatedAt)}]:[],onDocumentsChange:b=>{let O={createdAt:b[0]?.createdAt.toISOString(),id:parseInt(b[0]?.id),name:b[0]?.title,source:"payload",updatedAt:(b[0]?.updatedAt||new Date).toISOString()};console.log(b),N({...d,coreKnowledge:b&&b.length>0?O:void 0})},label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:1,disabled:r||!k,availableDocuments:f.map(b=>({id:b.id.toString(),title:b.name,name:b.name,format:"markdown",content:b.content||"",createdAt:new Date(b.createdAt),source:b.source,description:b.description||"",metadata:b.metadata||{},updatedAt:new Date(b.updatedAt)}))})]}),(0,zt.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,zt.jsx)(M,{type:"button",variant:"outline",onClick:o,disabled:r,children:k?c:"Close"}),k?(0,zt.jsx)(M,{type:"submit",disabled:r,children:r?"Saving...":le}):(0,zt.jsxs)(M,{type:"button",onClick:V,disabled:r,className:"gap-2",children:[(0,zt.jsx)(Y.Edit,{className:"zt-4 zt-4"}),"Edit"]})]})]})})]})}function oo({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,se.useState)(""),c=(0,se.useMemo)(()=>e.filter(f=>f.name?.toLowerCase().includes(i.toLowerCase())||f.email.toLowerCase().includes(i.toLowerCase())),[e,i]),n=f=>{t(f)};return(0,zt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,zt.jsx)(bt.AnimatePresence,{mode:"wait",children:(0,zt.jsxs)(bt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,zt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,zt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,zt.jsx)(Y.ChevronLeft,{className:"zt-4 zt-4"}),"Back"]}),(0,zt.jsxs)("div",{children:[(0,zt.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,zt.jsx)(I,{className:"container",children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,zt.jsx)("div",{className:"flex-1",children:(0,zt.jsxs)("div",{className:"relative",children:[(0,zt.jsx)(Y.Search,{className:"absolute left-3 top-3 zt-4 zt-4 text-muted-foreground"}),(0,zt.jsx)(oe,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:f=>a(f.target.value),className:"pl-9"})]})})})})}),(0,zt.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(f=>(0,zt.jsx)(bt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,zt.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r===f.id?"ring-2 ring-primary":""}`,onClick:()=>n(f),children:[(0,zt.jsx)(K,{className:"pb-3",children:(0,zt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,zt.jsx)(Ie,{children:(0,zt.jsx)(Le,{children:(0,zt.jsx)(Y.User,{className:"zt-4 zt-4"})})}),(0,zt.jsx)("div",{children:(0,zt.jsx)(G,{className:"text-lg",children:f.name})})]}),r===f.id&&(0,zt.jsx)(Y.Check,{className:"zt-5 zt-5 text-primary"})]})}),(0,zt.jsx)(B,{className:"pt-0",children:(0,zt.jsxs)("div",{className:"space-y-3",children:[(0,zt.jsxs)("div",{children:[(0,zt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,zt.jsx)("p",{className:"text-sm font-medium",children:f.email})]}),(0,zt.jsx)("div",{children:(0,zt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},f.id))}),c.length===0&&(0,zt.jsx)(I,{className:"container mt-4",children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsxs)("div",{className:"text-center py-8",children:[(0,zt.jsx)(Y.User,{className:"zt-12 zt-12 text-muted-foreground mx-auto mb-4"}),(0,zt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function ro({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,se.useState)(""),[c,n]=(0,se.useState)("all"),f=(0,se.useMemo)(()=>e.filter(g=>g.name.toLowerCase().includes(i.toLowerCase())||g.jobDescription?.toLowerCase().includes(i.toLowerCase())||g.workInstructions?.toLowerCase().includes(i.toLowerCase())),[e,i,c]),d=g=>{let v={...g,name:`${g.name} (Copy)`};t(v)},N=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,zt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,zt.jsx)(bt.AnimatePresence,{mode:"wait",children:(0,zt.jsxs)(bt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,zt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,zt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,zt.jsx)(Y.ChevronLeft,{className:"zt-4 zt-4"}),"Back"]}),(0,zt.jsxs)("div",{children:[(0,zt.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,zt.jsx)(I,{children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,zt.jsx)("div",{className:"flex-1",children:(0,zt.jsxs)("div",{className:"relative",children:[(0,zt.jsx)(Y.Search,{className:"absolute left-3 top-3 zt-4 zt-4 text-muted-foreground"}),(0,zt.jsx)(oe,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:g=>a(g.target.value),className:"pl-9"})]})}),(0,zt.jsxs)("select",{value:c,onChange:g=>n(g.target.value),className:"zt-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,zt.jsx)("option",{value:"all",children:"All Status"}),(0,zt.jsx)("option",{value:"active",children:"Active"}),(0,zt.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,zt.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:f.map(g=>(0,zt.jsx)(bt.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,zt.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===g.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>d(g),children:[(0,zt.jsx)(K,{className:"pb-3",children:(0,zt.jsxs)("div",{className:"flex items-start justify-between",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,zt.jsx)(Ie,{children:(0,zt.jsx)(Le,{className:"bg-blue-100",children:(0,zt.jsx)(Y.Bot,{className:"zt-4 zt-4 text-blue-600"})})}),(0,zt.jsx)("div",{children:(0,zt.jsx)(G,{className:"text-lg flex items-center gap-2",children:g.name})})]}),(0,zt.jsxs)(M,{size:"sm",variant:"outline",className:"gap-2 zt-8",onClick:v=>{v.stopPropagation(),d(g)},children:[(0,zt.jsx)(Y.Copy,{className:"zt-3 zt-3"}),"Clone"]})]})}),(0,zt.jsx)(B,{className:"pt-0",children:(0,zt.jsxs)("div",{className:"space-y-3",children:[(0,zt.jsxs)("div",{children:[(0,zt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,zt.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,zt.jsxs)("div",{children:[(0,zt.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,zt.jsx)("div",{className:"flex flex-wrap gap-1",children:g.capabilities.length>3&&(0,zt.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})})]}),(0,zt.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),g.workInstructions&&(0,zt.jsxs)("div",{children:[(0,zt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,zt.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),f.length===0&&(0,zt.jsx)(I,{children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsxs)("div",{className:"text-center py-8",children:[(0,zt.jsx)(Y.Bot,{className:"zt-12 zt-12 text-muted-foreground mx-auto mb-4"}),(0,zt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function ao({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,zt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,zt.jsx)(bt.AnimatePresence,{mode:"wait",children:(0,zt.jsxs)(bt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,zt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,zt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,zt.jsx)(Y.ChevronLeft,{className:"zt-4 zt-4"}),"Back"]}),(0,zt.jsxs)("div",{children:[(0,zt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,zt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-zt-4xl mx-auto",children:[(0,zt.jsx)(bt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,zt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,zt.jsxs)(K,{className:"text-center pb-4",children:[(0,zt.jsx)("div",{className:"mx-auto zt-16 zt-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,zt.jsx)(Y.User,{className:"zt-8 zt-8 text-blue-600"})}),(0,zt.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,zt.jsxs)(B,{className:"text-center",children:[(0,zt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,zt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Users,{className:"zt-4 zt-4 text-blue-600"}),(0,zt.jsx)("span",{children:"Browse existing users"})]}),(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.User,{className:"zt-4 zt-4 text-blue-600"}),(0,zt.jsx)("span",{children:"Import user details automatically"})]})]}),(0,zt.jsx)(M,{className:"mt-6 zt-full",onClick:e,children:"Select User"})]})]})}),(0,zt.jsx)(bt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,zt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,zt.jsxs)(K,{className:"text-center pb-4",children:[(0,zt.jsx)("div",{className:"mx-auto zt-16 zt-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,zt.jsx)(Y.Bot,{className:"zt-8 zt-8 text-purple-600"})}),(0,zt.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,zt.jsxs)(B,{className:"text-center",children:[(0,zt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,zt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Bot,{className:"zt-4 zt-4 text-purple-600"}),(0,zt.jsx)("span",{children:"Clone existing colleagues"})]}),(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Users,{className:"zt-4 zt-4 text-purple-600"}),(0,zt.jsx)("span",{children:"Create from templates"})]})]}),(0,zt.jsx)(M,{className:"mt-6 zt-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function io({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,zt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-6",children:(0,zt.jsx)(bt.AnimatePresence,{mode:"wait",children:(0,zt.jsxs)(bt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,zt.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,zt.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,zt.jsx)(Y.ChevronLeft,{className:"zt-4 zt-4"}),"Back"]}),(0,zt.jsxs)("div",{children:[(0,zt.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,zt.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,zt.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-zt-4xl mx-auto",children:[(0,zt.jsx)(bt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,zt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,zt.jsxs)(K,{className:"text-center pb-4",children:[(0,zt.jsx)("div",{className:"mx-auto zt-16 zt-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,zt.jsx)(Y.Copy,{className:"zt-8 zt-8 text-blue-600"})}),(0,zt.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,zt.jsxs)(B,{className:"text-center",children:[(0,zt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize zt for your needs."}),(0,zt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Bot,{className:"zt-4 zt-4 text-blue-600"}),(0,zt.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Copy,{className:"zt-4 zt-4 text-blue-600"}),(0,zt.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,zt.jsx)(M,{className:"mt-6 zt-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,zt.jsx)(bt.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,zt.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,zt.jsxs)(K,{className:"text-center pb-4",children:[(0,zt.jsx)("div",{className:"mx-auto zt-16 zt-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,zt.jsx)(Y.Sparkles,{className:"zt-8 zt-8 text-green-600"})}),(0,zt.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,zt.jsxs)(B,{className:"text-center",children:[(0,zt.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,zt.jsxs)("div",{className:"space-y-2 text-sm",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Plus,{className:"zt-4 zt-4 text-green-600"}),(0,zt.jsx)("span",{children:"Custom job description"})]}),(0,zt.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,zt.jsx)(Y.Sparkles,{className:"zt-4 zt-4 text-green-600"}),(0,zt.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,zt.jsx)(M,{className:"mt-6 zt-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function no(e,t){let[o,r]=(0,se.useState)(()=>{if(typeof window>"zt")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<"zt"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,se.useEffect)(()=>{i(o)},[]),[o,i]}var dt=require("react-icons/fa");function lo({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:c,className:n}){let[f,d]=no(`hero-section-minimized-${e.replace(/\zt+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||f;return(0,zt.jsxs)(bt.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${n||""}`,children:[(0,zt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,zt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,zt.jsx)(re,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,zt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,zt.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,zt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,zt.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!f),style:{lineHeight:0},children:f?(0,zt.jsx)(dt.FaChevronDown,{size:22}):(0,zt.jsx)(dt.FaChevronUp,{size:22})})]})]}),!N&&(0,zt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,zt.jsxs)("div",{className:"space-y-4",children:[(0,zt.jsx)("p",{className:"max-zt-[600px] text-white/80",children:t}),(0,zt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,zt.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,zt.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),c&&(0,zt.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function co({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:n=[],existingDigitalColleagues:f=[],availableKnowledgeDocuments:d=[]}){let[N,g]=(0,se.useState)(e||[]),[v,$]=(0,se.useState)(""),[E,k]=(0,se.useState)("all"),[p,T]=(0,se.useState)("all"),[H,X]=(0,se.useState)("all"),[V,ee]=(0,se.useState)(null),[ve,le]=(0,se.useState)(null);(0,se.useEffect)(()=>{g(e||[])},[e]);let b=Array.isArray(n)?n:[],O=Array.isArray(f)?f:[],[W,L]=(0,se.useState)("main"),A=N.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(v.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(v.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(v.toLowerCase())),Se=A.filter(l=>l.type==="human"),_=A.filter(l=>l.type==="digital"),be=()=>{L("typeSelection")},he=l=>{l.type==="digital"&&(ee(l),L("form")),console.log("Editing colleague:",l),o?.(l)},Ee=l=>{l.type==="digital"&&(le(l),L("view"))},We=l=>{let Q={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};g(ze=>[...ze,Q]),t?.(Q),L("main")},Pe=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"}),L("main")},Ze=()=>{ee(null),L("form")},te=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}V?(g(Q=>Q.map(ze=>ze.id===l.id?{...l,type:"digital"}:ze)),o?.({...l,type:"digital"})):(g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"})),L("main"),ee(null)},mo=()=>{L("main"),ee(null),le(null)},po=()=>{L("main"),le(null)},ur=()=>{ve&&(ee(ve),le(null),L("form"))},mt=l=>{console.log("deleting",l,N),r?.(l,N.find(Q=>Q.id.toString()===l.toString())?.type),g(Q=>Q.filter(ze=>ze.id!==l))},uo=()=>{$(""),k("all"),T("all")};return W==="typeSelection"?(0,zt.jsx)(ao,{onSelectHuman:()=>L("userSelection"),onSelectDigital:()=>L("digitalOptions"),onCancel:()=>L("main")}):W==="userSelection"?(0,zt.jsx)(oo,{users:b,onUserSelect:We,onCancel:()=>L("typeSelection")}):W==="digitalOptions"?(0,zt.jsx)(io,{onCloneExisting:()=>L("digitalClone"),onCreateNew:Ze,onCancel:()=>L("typeSelection")}):W==="digitalClone"?(0,zt.jsx)(ro,{digitalColleagues:O,onColleagueClone:Pe,onCancel:()=>L("digitalOptions")}):W==="form"?(0,zt.jsx)(Ct,{colleague:V||void 0,onSave:te,onCancel:mo,availableKnowledgeDocuments:d}):W==="view"?(0,zt.jsx)(Ct,{colleague:ve||void 0,onSave:te,onCancel:po,readOnly:!0,availableKnowledgeDocuments:d}):(0,zt.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,zt.jsx)(bt.AnimatePresence,{mode:"wait",children:(0,zt.jsx)(bt.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,zt.jsxs)("div",{className:`space-y-6 ${c||""}`,children:[(0,zt.jsx)(lo,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:be}}),(0,zt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,zt.jsxs)(I,{children:[(0,zt.jsxs)(K,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,zt.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,zt.jsx)(Y.Users,{className:"zt-4 zt-4 text-muted-foreground"})]}),(0,zt.jsxs)(B,{children:[(0,zt.jsx)("div",{className:"text-2xl font-bold",children:N.length}),(0,zt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,zt.jsxs)(I,{children:[(0,zt.jsxs)(K,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,zt.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,zt.jsx)(Y.User,{className:"zt-4 zt-4 text-muted-foreground"})]}),(0,zt.jsxs)(B,{children:[(0,zt.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="human").length}),(0,zt.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,zt.jsxs)(I,{children:[(0,zt.jsxs)(K,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,zt.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,zt.jsx)(Y.Bot,{className:"zt-4 zt-4 text-muted-foreground"})]}),(0,zt.jsxs)(B,{children:[(0,zt.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="digital").length}),(0,zt.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,zt.jsx)(I,{children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,zt.jsx)("div",{className:"flex-1",children:(0,zt.jsxs)("div",{className:"relative",children:[(0,zt.jsx)(Y.Search,{className:"absolute left-3 top-3 zt-4 zt-4 text-muted-foreground"}),(0,zt.jsx)(oe,{placeholder:"Search colleagues...",value:v,onChange:l=>$(l.target.value),className:"pl-9"})]})}),(0,zt.jsxs)(gt,{value:E,onValueChange:k,children:[(0,zt.jsx)(Ye,{className:"zt-full md:zt-[180px]",children:(0,zt.jsx)(vt,{placeholder:"Department"})}),(0,zt.jsxs)(et,{children:[(0,zt.jsx)(Te,{value:"all",children:"All Departments"}),a.map(l=>(0,zt.jsx)(Te,{value:l,children:l},l))]})]}),(0,zt.jsxs)(gt,{value:p,onValueChange:T,children:[(0,zt.jsx)(Ye,{className:"zt-full md:zt-[140px]",children:(0,zt.jsx)(vt,{placeholder:"Status"})}),(0,zt.jsxs)(et,{children:[(0,zt.jsx)(Te,{value:"all",children:"All Status"}),(0,zt.jsx)(Te,{value:"active",children:"Active"}),(0,zt.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(v||E!=="all"||p!=="all")&&(0,zt.jsxs)(M,{variant:"outline",onClick:uo,className:"gap-2",children:[(0,zt.jsx)(Y.Filter,{className:"zt-4 zt-4"}),"Clear"]})]})})}),(0,zt.jsxs)("div",{className:"space-y-4",children:[(0,zt.jsx)(Gt,{activeTab:H,onTabChange:X,tabOptions:[{value:"all",label:`All (${A.length})`},{value:"human",label:`Human (${Se.length})`},{value:"digital",label:`Digital (${_.length})`}],maxWidth:"400px",gridCols:3}),H==="all"&&(0,zt.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:A.map(l=>(0,zt.jsx)(nt,{colleague:l,onEdit:he,onDelete:mt,onViewDetails:Ee,compact:i},`${l}-${l.id}`))}),H==="human"&&(0,zt.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(l=>(0,zt.jsx)(nt,{colleague:l,onEdit:he,onDelete:mt,onViewDetails:Ee,compact:i},l.id))}),H==="digital"&&(0,zt.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(l=>(0,zt.jsx)(nt,{colleague:l,onEdit:he,onDelete:mt,onViewDetails:Ee,compact:i},l.id))})]}),A.length===0&&(0,zt.jsx)(I,{children:(0,zt.jsx)(B,{className:"pt-6",children:(0,zt.jsxs)("div",{className:"text-center py-8",children:[(0,zt.jsx)(Y.Users,{className:"zt-12 zt-12 text-muted-foreground mx-auto mb-4"}),(0,zt.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,zt.jsx)("p",{className:"text-muted-foreground mb-4",children:v||E!=="all"||p!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,zt.jsxs)(M,{onClick:be,className:"gap-2",children:[(0,zt.jsx)(Y.Plus,{className:"zt-4 zt-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-ISQS7QYK.mjs";import"../../../chunk-K5MJYNCD.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-ATBKMJU6.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-B44DI6WT.mjs";import"../../../chunk-H3RVI2OI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-ATBKMJU6.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-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};
@@ -1,4 +1,4 @@
1
- import type { KnowledgeDocument, KnowledgeContext } from '../types';
1
+ import type { KnowledgeDocument, KnowledgeContext, Knowledge, TeamKnowledgeContext } from '../types';
2
2
  interface KnowledgeViewProps {
3
3
  documents?: KnowledgeDocument[];
4
4
  contexts?: KnowledgeContext[];
@@ -6,6 +6,9 @@ interface KnowledgeViewProps {
6
6
  onDocumentShare?: (document: KnowledgeDocument) => void;
7
7
  onLoadDocumentContent?: (documentId: string) => Promise<string>;
8
8
  selectedDocumentId?: string;
9
+ onAddKnowledge?: (knowledge: Omit<Knowledge, 'id'>) => void;
10
+ onAddTeamContext?: (teamContext: TeamKnowledgeContext) => void;
11
+ onDocumentUpdate?: (document: KnowledgeDocument) => void;
9
12
  }
10
- export default function KnowledgeView({ documents, contexts, onDocumentClick, onDocumentShare, onLoadDocumentContent, selectedDocumentId, }: KnowledgeViewProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function KnowledgeView({ documents, contexts, onDocumentClick, onDocumentShare, onLoadDocumentContent, selectedDocumentId, onAddKnowledge, onAddTeamContext, onDocumentUpdate, }: KnowledgeViewProps): import("react/jsx-runtime").JSX.Element;
11
14
  export {};