cortex-react-components 2.13.9 → 2.13.11

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 (120) hide show
  1. package/dist/{chunk-FDRX3CL2.mjs → chunk-3E3GY7S2.mjs} +1 -1
  2. package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
  3. package/dist/{chunk-USGRM22Y.mjs → chunk-6PS55VJZ.mjs} +1 -1
  4. package/dist/{chunk-DMCFEJ2C.mjs → chunk-6VRPQKAK.mjs} +1 -1
  5. package/dist/chunk-AP6ZM2J6.mjs +4 -0
  6. package/dist/{chunk-MFCVMJBO.mjs → chunk-BDDEMCAH.mjs} +1 -1
  7. package/dist/{chunk-TO7SVJIU.mjs → chunk-EUGA4BNN.mjs} +1 -1
  8. package/dist/chunk-F3CQJWDX.mjs +1 -0
  9. package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
  10. package/dist/{chunk-OQCMTGML.mjs → chunk-KVLUT4U2.mjs} +1 -1
  11. package/dist/chunk-L3V5YDPH.mjs +1 -0
  12. package/dist/{chunk-AMVJPDM3.mjs → chunk-M527EJIX.mjs} +1 -1
  13. package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
  14. package/dist/{chunk-KZAYLEFB.mjs → chunk-O24GFE6Q.mjs} +1 -1
  15. package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
  16. package/dist/{chunk-7O5XSUX2.mjs → chunk-QOZ2O3FG.mjs} +1 -1
  17. package/dist/{chunk-G34OMFQI.mjs → chunk-RMGDXYJO.mjs} +1 -1
  18. package/dist/{chunk-GLBQHEMQ.mjs → chunk-TTSBUSVB.mjs} +1 -1
  19. package/dist/{chunk-JGX2G2OC.mjs → chunk-XOEYCVMT.mjs} +1 -1
  20. package/dist/{chunk-2HWSTGAP.mjs → chunk-XQ3XV5DH.mjs} +1 -1
  21. package/dist/chunk-XWDRWOIG.mjs +1 -0
  22. package/dist/{chunk-AQQCH7Z2.mjs → chunk-XX4GSGRP.mjs} +1 -1
  23. package/dist/{chunk-UEBQJNVT.mjs → chunk-ZGQC6O62.mjs} +1 -1
  24. package/dist/chunk-ZHBYZ4HE.mjs +1 -0
  25. package/dist/components/Blocks/index.mjs +1 -1
  26. package/dist/components/CRM/CogeBoard.mjs +1 -1
  27. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  28. package/dist/components/CRM/index.mjs +1 -1
  29. package/dist/components/Chat/ChatInterface.mjs +1 -1
  30. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  31. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  32. package/dist/components/Chat/demo-tests.mjs +1 -1
  33. package/dist/components/Chat/demo.mjs +1 -1
  34. package/dist/components/Chat/example-usage.mjs +1 -1
  35. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  36. package/dist/components/Chat/index.mjs +1 -1
  37. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  38. package/dist/components/DeliveryLead/index.mjs +1 -1
  39. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  40. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  41. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  42. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  43. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  44. package/dist/components/DigitalColleagues/index.js +1 -1
  45. package/dist/components/DigitalColleagues/index.mjs +1 -1
  46. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  47. package/dist/components/Foundary/MainPage.mjs +1 -1
  48. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  49. package/dist/components/Foundary/Views/index.js +1 -1
  50. package/dist/components/Foundary/Views/index.mjs +1 -1
  51. package/dist/components/Foundary/index.js +1 -1
  52. package/dist/components/Foundary/index.mjs +1 -1
  53. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  54. package/dist/components/HeaderFooter/index.mjs +1 -1
  55. package/dist/components/Heros/PostHero/index.mjs +1 -1
  56. package/dist/components/Heros/RenderHero.mjs +1 -1
  57. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  58. package/dist/components/Heros/index.mjs +1 -1
  59. package/dist/components/Layouts/SlideShow.mjs +1 -1
  60. package/dist/components/Layouts/index.mjs +1 -1
  61. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  62. package/dist/components/Menus/SidebarRight.mjs +1 -1
  63. package/dist/components/Menus/index.mjs +1 -1
  64. package/dist/components/Other/index.mjs +1 -1
  65. package/dist/components/Projects/AddEpicModal.d.ts +1 -1
  66. package/dist/components/Projects/AddEpicModal.js +1 -1
  67. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  68. package/dist/components/Projects/EpicsView.d.ts +1 -1
  69. package/dist/components/Projects/EpicsView.js +1 -1
  70. package/dist/components/Projects/EpicsView.mjs +1 -1
  71. package/dist/components/Projects/KanbanBoardView.d.ts +3 -3
  72. package/dist/components/Projects/KanbanBoardView.js +1 -1
  73. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  74. package/dist/components/Projects/ProjectPage.js +1 -1
  75. package/dist/components/Projects/ProjectPage.mjs +1 -1
  76. package/dist/components/Projects/ProjectView.d.ts +3 -3
  77. package/dist/components/Projects/ProjectView.js +1 -1
  78. package/dist/components/Projects/ProjectView.mjs +1 -1
  79. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  80. package/dist/components/Projects/TaskDetailsModal.d.ts +2 -2
  81. package/dist/components/Projects/TaskDetailsModal.js +1 -1
  82. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  83. package/dist/components/Projects/TaskSidebar.js +1 -1
  84. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  85. package/dist/components/Projects/TasksView.d.ts +2 -2
  86. package/dist/components/Projects/TasksView.js +1 -1
  87. package/dist/components/Projects/TasksView.mjs +1 -1
  88. package/dist/components/Projects/index.js +1 -1
  89. package/dist/components/Projects/index.mjs +1 -1
  90. package/dist/components/dc-temp/index.mjs +1 -1
  91. package/dist/components/index.js +9 -9
  92. package/dist/components/index.mjs +1 -1
  93. package/dist/components/ui/index.mjs +1 -1
  94. package/dist/components/ui/sidebar.mjs +1 -1
  95. package/dist/index.js +10 -10
  96. package/dist/index.mjs +1 -1
  97. package/dist/metafile-cjs.json +1 -1
  98. package/dist/metafile-esm.json +1 -1
  99. package/dist/pages/Blog.mjs +1 -1
  100. package/dist/pages/Documentation.mjs +1 -1
  101. package/dist/pages/IndexPage.mjs +1 -1
  102. package/dist/pages/Intranet.mjs +1 -1
  103. package/dist/pages/LandingPage.mjs +1 -1
  104. package/dist/pages/Page.mjs +1 -1
  105. package/dist/pages/Publish.mjs +1 -1
  106. package/dist/pages/Website.mjs +1 -1
  107. package/dist/sections/AboutSection.mjs +1 -1
  108. package/dist/sections/BlogDetail.mjs +1 -1
  109. package/dist/sections/BlogList.mjs +1 -1
  110. package/dist/sections/BlogListSection.mjs +1 -1
  111. package/dist/sections/PageSections.mjs +1 -1
  112. package/dist/sections/PricingSection.mjs +1 -1
  113. package/dist/sections/ServiceSection.mjs +1 -1
  114. package/dist/sections/index.mjs +1 -1
  115. package/package.json +1 -1
  116. package/dist/chunk-6BQNN2KT.mjs +0 -1
  117. package/dist/chunk-6R36YTGY.mjs +0 -1
  118. package/dist/chunk-MIOYUP5Z.mjs +0 -1
  119. package/dist/chunk-ULO56RLR.mjs +0 -4
  120. package/dist/chunk-XNEPSYCO.mjs +0 -1
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-ULO56RLR.mjs";import"../../chunk-7O5XSUX2.mjs";import"../../chunk-IKZZNNKD.mjs";import"../../chunk-DSSHQ6K7.mjs";import"../../chunk-MIOYUP5Z.mjs";import"../../chunk-6BQNN2KT.mjs";import"../../chunk-XNEPSYCO.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-2R3MJSQ7.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-USGRM22Y.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-6R36YTGY.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-EOR2BAI2.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.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-AP6ZM2J6.mjs";import"../../chunk-QOZ2O3FG.mjs";import"../../chunk-6PS55VJZ.mjs";import"../../chunk-F3CQJWDX.mjs";import"../../chunk-XWDRWOIG.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-2R3MJSQ7.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-NGX2VCHS.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-IKZZNNKD.mjs";import"../../chunk-DSSHQ6K7.mjs";import"../../chunk-DCOFQFVJ.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-EOR2BAI2.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-FGEFYI5E.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-JHNVX4UB.mjs";import"../../chunk-7BXIU4ZM.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-RLVKIMGU.mjs";import"../../chunk-OCPX4QPC.mjs";import"../../chunk-3UMMMQEH.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,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-HSQAHQNP.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.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-HSQAHQNP.mjs";import"../../chunk-KPTGYVDM.mjs";import"../../chunk-CDVRH3MC.mjs";import"../../chunk-5RTGHMF3.mjs";import"../../chunk-Z22NSJMF.mjs";import"../../chunk-INCYANPB.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Task, Epic, Sprint, DigitalColleague, User } from '../Foundary/types';
2
+ import { Task, Epic, Sprint, Colleague } from '../Foundary/types';
3
3
  interface TaskDetailsModalProps {
4
4
  isOpen: boolean;
5
5
  onClose: () => void;
@@ -12,7 +12,7 @@ interface TaskDetailsModalProps {
12
12
  taskId: string;
13
13
  content: string;
14
14
  }) => Promise<Task>;
15
- colleagues: (User | DigitalColleague)[];
15
+ colleagues: Colleague[];
16
16
  }
17
17
  export declare const TaskDetailsModal: React.FC<TaskDetailsModalProps>;
18
18
  export {};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var At=Object.create;var he=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)he(e,o,{get:t[o],enumerable:!0})},Je=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Mt.call(e,s)&&s!==o&&he(e,s,{get:()=>t[s],enumerable:!(r=Lt(t,s))||r.enumerable});return e};var L=(e,t,o)=>(o=e!=null?At(Et(e)):{},Je(t||!e||!e.__esModule?he(o,"default",{value:e,enumerable:!0}):o,e)),Bt=e=>Je(he({},"__esModule",{value:!0}),e);var Do={};Vt(Do,{TaskDetailsModal:()=>ko});module.exports=Bt(Do);var K=require("react");var de=L(require("react")),D=L(require("@radix-ui/react-dialog")),rt=require("lucide-react");var ot=require("clsx");var Ie="-",Gt=e=>{let t=Wt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let i=n.split(Ie);return i[0]===""&&i.length!==1&&i.shift(),Xe(i,t)||Ft(n)},getConflictingClassGroupIds:(n,i)=>{let g=o[n]||[];return i&&r[n]?[...g,...r[n]]:g}}},Xe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Xe(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Ie);return t.validators.find(({validator:n})=>n(a))?.classGroupId},Ke=/^\[(.+)\]$/,Ft=e=>{if(Ke.test(e)){let t=Ke.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Wt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ut(Object.entries(e.classGroups),o).forEach(([a,n])=>{De(n,r,a,t)}),r},De=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:qe(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(Ot(s)){De(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{De(n,qe(t,a),o,r)})})},qe=(e,t)=>{let o=e;return t.split(Ie).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ot=e=>e.isThemeGetter,Ut=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[t+n,i])):a);return[o,s]}):e,Ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=r.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},Ze="!",$t=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,n=i=>{let g=[],m=0,p=0,C;for(let d=0;d<i.length;d++){let l=i[d];if(m===0){if(l===s&&(r||i.slice(d,d+a)===t)){g.push(i.slice(p,d)),p=d+a;continue}if(l==="/"){C=d;continue}}l==="["?m++:l==="]"&&m--}let y=g.length===0?i:i.substring(p),x=y.startsWith(Ze),f=x?y.substring(1):y,P=C&&C>p?C-p:void 0;return{modifiers:g,hasImportantModifier:x,baseClassName:f,maybePostfixModifierPosition:P}};return o?i=>o({className:i,parseClassName:n}):n},_t=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},jt=e=>({cache:Ht(e.cacheSize),parseClassName:$t(e),...Gt(e)}),Jt=/\s+/,Kt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(Jt),i="";for(let g=n.length-1;g>=0;g-=1){let m=n[g],{modifiers:p,hasImportantModifier:C,baseClassName:y,maybePostfixModifierPosition:x}=o(m),f=!!x,P=r(f?y.substring(0,x):y);if(!P){if(!f){i=m+(i.length>0?" "+i:i);continue}if(P=r(y),!P){i=m+(i.length>0?" "+i:i);continue}f=!1}let d=_t(p).join(":"),l=C?d+Ze:d,N=l+P;if(a.includes(N))continue;a.push(N);let H=s(P,f);for(let B=0;B<H.length;++B){let Z=H[B];a.push(l+Z)}i=m+(i.length>0?" "+i:i)}return i};function qt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Qe(t))&&(r&&(r+=" "),r+=o);return r}var Qe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Qe(e[r]))&&(o&&(o+=" "),o+=t);return o};function Xt(e,...t){let o,r,s,a=n;function n(g){let m=t.reduce((p,C)=>C(p),e());return o=jt(m),r=o.cache.get,s=o.cache.set,a=i,i(g)}function i(g){let m=r(g);if(m)return m;let p=Kt(g,o);return s(g,p),p}return function(){return a(qt.apply(null,arguments))}}var w=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zt=/^\d+\/\d+$/,Qt=new Set(["px","full","screen"]),Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|z|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>Q(e)||Qt.has(e)||Zt.test(e),$=e=>Y(e,"length",po),Q=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>Y(e,"number",Q),le=e=>!!e&&Number.isInteger(Number(e)),ao=e=>e.endsWith("%")&&Q(e.slice(0,-1)),u=e=>Ye.test(e),_=e=>Yt.test(e),so=new Set(["length","size","percentage"]),io=e=>Y(e,so,et),no=e=>Y(e,"position",et),lo=new Set(["image","url"]),co=e=>Y(e,lo,fo),mo=e=>Y(e,"",uo),ce=()=>!0,Y=(e,t,o)=>{let r=Ye.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},po=e=>eo.test(e)&&!to.test(e),et=()=>!1,uo=e=>oo.test(e),fo=e=>ro.test(e);var go=()=>{let e=w("colors"),t=w("spacing"),o=w("blur"),r=w("brightness"),s=w("borderColor"),a=w("borderRadius"),n=w("borderSpacing"),i=w("borderWidth"),g=w("contrast"),m=w("grayscale"),p=w("hueRotate"),C=w("invert"),y=w("gap"),x=w("gradientColorStops"),f=w("gradientColorStopPositions"),P=w("inset"),d=w("margin"),l=w("opacity"),N=w("padding"),H=w("saturate"),B=w("scale"),Z=w("sepia"),ge=w("skew"),ae=w("space"),se=w("translate"),ie=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",u,t],h=()=>[u,t],He=()=>["",F,$],be=()=>["auto",Q,u],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["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"],Te=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",u],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Q,u];return{cacheSize:500,separator:":",theme:{colors:[ce],spacing:[F,$],blur:["none","",_,u],brightness:G(),borderColor:[e],borderRadius:["none","","full",_,u],borderSpacing:h(),borderWidth:He(),contrast:G(),grayscale:ne(),hueRotate:G(),invert:ne(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[ao,$],inset:E(),margin:E(),opacity:G(),padding:h(),saturate:G(),scale:G(),sepia:ne(),skew:G(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[_]}],"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:[...$e(),u]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,u]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",le,u]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:["full",le,u]},u]}],"col-start":[{"col-start":be()}],"col-end":[{"col-end":be()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[le,u]},u]}],"row-start":[{"row-start":be()}],"row-end":[{"row-end":be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Te()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Te(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Te(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],pe:[{pe:[N]}],z:[{z:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ae]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[_]},_]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_,$]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ke]}],"font-family":[{font:[ce]}],"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",u]}],"line-clamp":[{"line-clamp":["none",Q,ke]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[l]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,$]}],"underline-offset":[{"underline-offset":["auto",F,u]}],"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:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[l]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),no]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},co]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[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-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[l]}],"border-style":[{border:[...ve(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[l]}],"divide-style":[{divide:ve()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[F,u]}],"outline-w":[{outline:[F,$]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:He()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[l]}],"ring-offset-w":[{"ring-offset":[F,$]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_,mo]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[l]}],"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:[g]}],"drop-shadow":[{"drop-shadow":["","none",_,u]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[C]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[l]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[le,u]}],"translate-x":[{"translate-x":[se]}],"translate-y":[{"translate-y":[se]}],"skew-x":[{"skew-x":[ge]}],"skew-y":[{"skew-y":[ge]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-z":[{"scroll-z":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[F,$,ke]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","z","pr","pb","pl"],px:["pr","pl"],py:["z","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-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-z","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-z","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var tt=Xt(go);function b(...e){return tt((0,ot.clsx)(e))}var z=require("react/jsx-runtime"),at=D.Root;var bo=D.Portal;var st=de.forwardRef(({className:e,...t},o)=>(0,z.jsx)(D.Overlay,{ref:o,className:b("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));st.displayName=D.Overlay.displayName;var Ae=de.forwardRef(({className:e,children:t,...o},r)=>(0,z.jsxs)(bo,{children:[(0,z.jsx)(st,{}),(0,z.jsxs)(D.Content,{ref:r,className:b("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,z.jsxs)(D.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,z.jsx)(rt.rt,{className:"h-4 w-4"}),(0,z.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ae.displayName=D.Content.displayName;var Le=({className:e,...t})=>(0,z.jsx)("div",{className:b("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Le.displayName="DialogHeader";var vo=({className:e,...t})=>(0,z.jsx)("div",{className:b("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vo.displayName="DialogFooter";var ze=de.forwardRef(({className:e,...t},o)=>(0,z.jsx)(D.Title,{ref:o,className:b("text-lg font-semibold leading-none tracking-tight",e),...t}));ze.displayName=D.Title.displayName;var ho=de.forwardRef(({className:e,...t},o)=>(0,z.jsx)(D.Description,{ref:o,className:b("text-sm text-muted-foreground",e),...t}));ho.displayName=D.Description.displayName;var it=L(require("react"));var me=it.forwardRef(({className:e,type:t,...o},r)=>(0,z.jsx)("input",{type:t,className:b("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}));me.displayName="Input";var lt=L(require("react")),pe=lt.forwardRef(({className:e,...t},o)=>(0,z.jsx)("textarea",{className:b("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}));pe.displayName="Textarea";var dt=L(require("react")),Ee=L(require("@radix-ui/react-label")),mt=require("class-variance-authority");var yo=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),A=dt.forwardRef(({className:e,...t},o)=>(0,z.jsx)(Ee.Root,{ref:o,className:b(yo(),e),...t}));A.displayName=Ee.Root.displayName;var Ve=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:s,className:a="",disabled:n=!1})=>{let[i,g]=(0,K.useState)(!1),[m,p]=(0,K.useState)(""),C=()=>{n||(g(!0),p(t))},y=async()=>{m!==t&&await s(e,m),g(!1)},x=f=>{f.key==="Enter"&&!r||f.key==="Enter"&&f.ctrlKey&&r?y():f.key==="Escape"&&(g(!1),p(""))};return(0,z.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,z.jsx)(A,{children:o}),i?r?(0,z.jsx)(pe,{value:m,onChange:f=>p(f.target.value),onBlur:y,onKeyDown:x,autoFocus:!0,rows:4,className:"resize-none"}):(0,z.jsx)(me,{value:m,onChange:f=>p(f.target.value),onBlur:y,onKeyPress:x,autoFocus:!0,className:"text-lg font-medium"}):(0,z.jsxs)("div",{onClick:C,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,z.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,z.jsx)(rt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var xo=(0,mt.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 ee({className:e,variant:t,...o}){return(0,z.jsx)("div",{className:b(xo({variant:t}),e),...o})}var ye=L(require("react")),O=L(require("@radix-ui/react-avatar"));var Be=ye.forwardRef(({className:e,...t},o)=>(0,z.jsx)(O.Root,{ref:o,className:b("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Be.displayName=O.Root.displayName;var wo=ye.forwardRef(({className:e,...t},o)=>(0,z.jsx)(O.Image,{ref:o,className:b("aspect-square h-full w-full",e),...t}));wo.displayName=O.Image.displayName;var Ge=ye.forwardRef(({className:e,...t},o)=>(0,z.jsx)(O.Fallback,{ref:o,className:b("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ge.displayName=O.Fallback.displayName;var bt=require("@radix-ui/react-slot"),ht=L(require("react")),So=(0,mt.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"}}}),U=ht.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,z.jsx)(e?bt.Slot:"button",{className:b(So({className:t,size:o,variant:r})),ref:a,...s}));U.displayName="Button";var wt=({comments:e,onAddComment:t})=>{let[o,r]=(0,K.useState)(""),s=n=>n.split(" ").map(i=>i[0]).join("").toUpperCase(),a=()=>{o.trim()&&(t(o),r(""))};return(0,z.jsxs)("div",{className:"space-y-4",children:[(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)(rt.MessageSquare,{className:"h-5 w-5"}),(0,z.jsx)(A,{className:"text-lg font-medium",children:"Comments"}),(0,z.jsx)(ee,{variant:"secondary",children:e.length})]}),(0,z.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,z.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,z.jsx)(Be,{className:"h-8 w-8 mt-1",children:(0,z.jsx)(Ge,{className:"text-xs bg-muted text-muted-foreground",children:s(n.author)})}),(0,z.jsxs)("div",{className:"flex-1",children:[(0,z.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,z.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,z.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),(0,z.jsx)("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,z.jsxs)("div",{className:"flex gap-2",children:[(0,z.jsx)(pe,{value:o,onChange:n=>r(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,z.jsx)(U,{onClick:a,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,z.jsx)(rt.Send,{className:"h-4 w-4"})})]})]})};var q=L(require("react")),te=L(require("@radix-ui/react-toggle-group"));var St=L(require("react")),Fe=L(require("@radix-ui/react-toggle"));var We=(0,mt.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Po=St.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,z.jsx)(Fe.Root,{ref:s,className:b(We({variant:t,size:o,className:e})),...r}));Po.displayName=Fe.Root.displayName;var Rt=q.createContext({size:"default",variant:"default"}),Pe=q.forwardRef(({className:e,variant:t,size:o,children:r,...s},a)=>(0,z.jsx)(te.Root,{ref:a,className:b("flex items-center justify-center gap-1",e),...s,children:(0,z.jsx)(Rt.Provider,{value:{variant:t,size:o},children:r})}));Pe.displayName=te.Root.displayName;var Ne=q.forwardRef(({className:e,children:t,variant:o,size:r,...s},a)=>{let n=q.useContext(Rt);return(0,z.jsx)(te.Item,{ref:a,className:b(We({variant:n.variant||o,size:n.size||r}),e),...s,children:t})});Ne.displayName=te.Item.displayName;var v=L(require("@radix-ui/react-select")),j=L(require("react")),Re=v.Root;var ue=j.forwardRef(({children:e,className:t,...o},r)=>(0,z.jsxs)(v.Trigger,{className:b("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,z.jsx)(v.Icon,{asChild:!0,children:(0,z.jsx)(rt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ue.displayName=v.Trigger.displayName;var Ct=j.forwardRef(({className:e,...t},o)=>(0,z.jsx)(v.ScrollUpButton,{className:b("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,z.jsx)(rt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=v.ScrollUpButton.displayName;var Tt=j.forwardRef(({className:e,...t},o)=>(0,z.jsx)(v.ScrollDownButton,{className:b("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,z.jsx)(rt.ChevronDown,{className:"h-4 w-4"})}));Tt.displayName=v.ScrollDownButton.displayName;var fe=j.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,z.jsx)(v.Portal,{children:(0,z.jsxs)(v.Content,{className:b("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:s,...r,children:[(0,z.jsx)(Ct,{}),(0,z.jsx)(v.Viewport,{className:b("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,z.jsx)(Tt,{})]})}));fe.displayName=v.Content.displayName;var No=j.forwardRef(({className:e,...t},o)=>(0,z.jsx)(v.Label,{className:b("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));No.displayName=v.Label.displayName;var oe=j.forwardRef(({children:e,className:t,...o},r)=>(0,z.jsxs)(v.Item,{className:b("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,z.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,z.jsx)(v.ItemIndicator,{children:(0,z.jsx)(rt.Check,{className:"h-4 w-4"})})}),(0,z.jsx)(v.ItemText,{children:e})]}));oe.displayName=v.Item.displayName;var Ro=j.forwardRef(({className:e,...t},o)=>(0,z.jsx)(v.Separator,{className:b("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Ro.displayName=v.Separator.displayName;var Ce=({label:e,value:t,onValueChange:o,options:r,showColor:s=!1,disabled:a=!1})=>{let[n,i]=(0,K.useState)(!1),g=r.find(p=>p.value===t);return(0,z.jsxs)("div",{className:"space-y-1",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:e}),(0,z.jsxs)(Re,{value:t,onValueChange:o,open:n,onOpenChange:p=>{a||i(p)},disabled:a,children:[(0,z.jsx)(ue,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,z.jsxs)(ee,{variant:"secondary",className:`${a?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!a&&i(!n),children:[s&&g?.color&&(0,z.jsx)("div",{className:`w-2 h-2 rounded-full ${g.color} mr-1`}),g?.label||"Select..."]})}),(0,z.jsx)(fe,{children:r.map(p=>(0,z.jsx)(oe,{value:p.value,children:s&&p.color?(0,z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,z.jsx)("div",{className:`w-3 h-3 rounded-full ${p.color}`}),p.label]}):p.label},p.value))})]})]})};var Dt=({label:e,value:t,onValueChange:o,options:r,placeholder:s="Search...",allowCustomValue:a=!1,disabled:n=!1})=>{let[i,g]=(0,K.useState)(!1),[m,p]=(0,K.useState)(""),C=r.find(d=>d.value===t),y=r.filter(d=>d.label.toLowerCase().includes(m.toLowerCase())),x=d=>{o(d),g(!1),p("")},f=()=>{a&&m.trim()&&!r.find(d=>d.value===m.trim())&&(o(m.trim()),g(!1),p(""))};return(0,z.jsxs)("div",{className:"space-y-1",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:e}),(0,z.jsxs)(Re,{value:t,onValueChange:x,open:i,onOpenChange:d=>{n||g(d)},disabled:n,children:[(0,z.jsx)(ue,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,z.jsx)(ee,{variant:"secondary",className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!n&&g(!i),children:C?.label||t||"Select..."})}),(0,z.jsxs)(fe,{children:[(0,z.jsx)("div",{className:"p-2",children:(0,z.jsx)(me,{placeholder:s,value:m,onChange:d=>p(d.target.value),onKeyDown:d=>{d.key==="Enter"&&a&&f()},className:"mb-2"})}),y.map(d=>(0,z.jsx)(oe,{value:d.value,children:d.label},d.value)),a&&m.trim()&&!y.find(d=>d.value===m.trim())&&(0,z.jsxs)(oe,{value:m.trim(),children:['Add "',m.trim(),'"']})]})]})]})};var Ue=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Co=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:rt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:rt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:rt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:rt.Zap}],To=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}];var It=({task:e,epics:t,sprints:o,lastUpdated:r,onUpdateTask:s,onClose:a,onDelete:n,isUpdating:i=!1,isDeleting:g=!1,deleteState:m="idle",teamMembers:p})=>{let[C,y]=(0,K.useState)(e.storyPoints),x=(0,K.useRef)(null),f=(0,K.useCallback)((l,N)=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{s(l,N)},500)},[s]);(0,K.useEffect)(()=>{f("storyPoints",C?.toString()||"1")},[C]);let P=l=>l.split(" ").map(N=>N[0]).join("").toUpperCase(),d=()=>m==="loading"?(0,z.jsxs)(U,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,z.jsx)(rt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):m==="success"?(0,z.jsxs)(U,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,z.jsx)(rt.Check,{className:"h-3 w-3"}),"Deleted"]}):m==="error"?(0,z.jsxs)(U,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,z.jsx)(rt.rt,{className:"h-3 w-3"}),"Delete failed"]}):(0,z.jsxs)(U,{onClick:n,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:i||g,children:[(0,z.jsx)(rt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,z.jsxs)("div",{className:"flex flex-col h-full",children:[(0,z.jsxs)("div",{className:"space-y-4",style:{opacity:i?.6:1},children:[(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Status"}),(0,z.jsx)(Ce,{label:"",value:e.status,onValueChange:l=>s("status",l),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:i})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Type"}),(0,z.jsx)(Pe,{type:"single",value:e.type||"",onValueChange:l=>l&&s("type",l),className:"grid grid-cols-2 gap-1",disabled:i,children:Co.map(l=>{let N=l.icon;return(0,z.jsxs)(Ne,{value:l.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:i,children:[(0,z.jsx)(N,{className:"h-3 w-3"}),l.label]},l.value)})})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,z.jsx)(Pe,{type:"single",value:e.priority||"",onValueChange:l=>l&&s("priority",l),className:"grid grid-cols-3 gap-1",disabled:i,children:To.map(l=>(0,z.jsx)(Ne,{value:l.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:i,children:l.label},l.value))})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,z.jsx)("input",{type:"number",min:"1",max:"100",value:C||1,onChange:l=>{let N=Number(l.target.value);N<1?y(1):N>100?y(100):y(N)},className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:i})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,z.jsx)(Ce,{label:"",value:Ue(e.epic).toString(),onValueChange:l=>s("epicId",l),options:(t||[]).map(l=>({value:l.id.toString(),label:l?.name,color:l.color})),showColor:!0,disabled:i})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,z.jsx)(Ce,{label:"",value:Ue(e.sprint).toString()||"none",onValueChange:l=>s("sprintId",l==="none"?"":l),options:[{value:"none",label:"No Sprint"},...(o||[]).map(l=>({value:l.id.toString(),label:`${l?.name}`}))],disabled:i})]}),(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(A,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,z.jsx)(Dt,{label:"",value:e.assignee?.value?.name,onValueChange:l=>s("assignee",l),options:p.map(l=>({value:`${typeof l.email=="string"?"users":"digital-colleagues"}:${l.id}`,label:l?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:i})]})]}),(0,z.jsxs)("div",{className:"mt-auto z-4 space-y-4",children:[(0,z.jsxs)("div",{className:"space-y-2",children:[(0,z.jsx)(U,{onClick:a,variant:"outline",className:"w-full h-8 text-xs",disabled:i||g,children:"Close"}),d()]}),(0,z.jsxs)("div",{className:"z-4 border-t border-border space-y-2",children:[(0,z.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,z.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,z.jsx)(rt.User,{className:"h-3 w-3"}),(0,z.jsx)("span",{children:"System"})]})]}),(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,z.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,z.jsx)(rt.Calendar,{className:"h-3 w-3"}),(0,z.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,z.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,z.jsx)(rt.Clock,{className:"h-3 w-3"}),(0,z.jsxs)("span",{children:[new Date(r).toLocaleDateString()," at"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var ko=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:s,onUpdateTask:a,onDeleteTask:n,onAddComment:i,colleagues:g})=>{let[m,p]=(0,K.useState)(o),[C,y]=(0,K.useState)(new Date),[x,f]=(0,K.useState)("idle"),[P,d]=(0,K.useState)("idle"),[l,N]=(0,K.useState)([]);(0,K.useEffect)(()=>{p(o)},[o]);let H=async(I,E)=>{if(E!==m[I]){f("loading");try{let h=await a(m.id.toString(),{[I]:E});p(h),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch(h){console.log("error",h),f("error"),setTimeout(()=>f("idle"),3e3)}}},B=async(I,E)=>{if(E!==m[I]){f("loading");try{let h=await a(m.id.toString(),{[I]:E});p(h),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}}},Z=async I=>{if(i){f("loading");try{let E=await i?.({content:I,taskId:m.id.toString()});p(E),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}}},ge=async()=>{d("loading");try{await n(m.id.toString()),d("success"),setTimeout(()=>{t(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},ae=x!=="loading"&&P!=="loading",se=()=>{ae&&t()},ie=()=>x==="loading"?(0,z.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,z.jsx)(rt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,z.jsx)("span",{children:"Updating..."})]}):x==="success"?(0,z.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,z.jsx)(rt.Check,{className:"h-4 w-4"}),(0,z.jsx)("span",{children:"Updated successfully"})]}):x==="error"?(0,z.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,z.jsx)(rt.rt,{className:"h-4 w-4"}),(0,z.jsx)("span",{children:"Update failed"})]}):null;return(0,z.jsx)(at,{open:e,onOpenChange:se,children:(0,z.jsxs)(Ae,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,z.jsxs)(Le,{children:[(0,z.jsx)(ze,{className:"sr-only",children:m.name}),(0,z.jsxs)("div",{className:"flex items-center justify-between",children:[(0,z.jsx)("div",{className:"flex-1",children:ie()}),!ae&&(0,z.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,z.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,z.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,z.jsx)(Ve,{fieldName:"name",value:m.name||"",label:"",onSave:H,className:"border-b border-border pb-3",disabled:x==="loading"}),(0,z.jsx)(Ve,{fieldName:"description",value:m.description||"",label:"Description",multiline:!0,onSave:H,disabled:x==="loading"}),(0,z.jsx)(wt,{comments:(m?.comments||[]).map(I=>({author:I.author.value.name||"",createdAt:new Date(I.timestamp),text:I.text,id:I.id||""})),onAddComment:Z})]}),(0,z.jsx)(It,{task:m,epics:r,sprints:s,lastUpdated:C,onUpdateTask:B,onClose:se,onDelete:ge,isUpdating:x==="loading",isDeleting:P==="loading",deleteState:P,teamMembers:g})]})]})})};0&&(module.exports={TaskDetailsModal});
4
+ "use strict";var At=Object.create;var ye=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Et=Object.getPrototypeOf,Mt=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)ye(e,o,{get:t[o],enumerable:!0})},Je=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Mt.call(e,s)&&s!==o&&ye(e,s,{get:()=>t[s],enumerable:!(r=Lt(t,s))||r.enumerable});return e};var z=(e,t,o)=>(o=e!=null?At(Et(e)):{},Je(t||!e||!e.__esModule?ye(o,"default",{value:e,enumerable:!0}):o,e)),Bt=e=>Je(ye({},"__esModule",{value:!0}),e);var Do={};Vt(Do,{TaskDetailsModal:()=>ko});module.exports=Bt(Do);var _=require("react");var de=z(require("react")),k=z(require("@radix-ui/react-dialog")),rt=require("lucide-react");var ot=require("clsx");var Ae="-",Gt=e=>{let t=Wt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let i=n.split(Ae);return i[0]===""&&i.length!==1&&i.shift(),Xe(i,t)||Ft(n)},getConflictingClassGroupIds:(n,i)=>{let g=o[n]||[];return i&&r[n]?[...g,...r[n]]:g}}},Xe=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Xe(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Ae);return t.validators.find(({validator:n})=>n(a))?.classGroupId},Ke=/^\[(.+)\]$/,Ft=e=>{if(Ke.test(e)){let t=Ke.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Wt=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Ut(Object.entries(e.classGroups),o).forEach(([a,n])=>{Ie(n,r,a,t)}),r},Ie=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:qe(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(Ot(s)){Ie(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{Ie(n,qe(t,a),o,r)})})},qe=(e,t)=>{let o=e;return t.split(Ae).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ot=e=>e.isThemeGetter,Ut=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[t+n,i])):a);return[o,s]}):e,Ht=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=r.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},Ze="!",$t=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,n=i=>{let g=[],d=0,p=0,R;for(let c=0;c<i.length;c++){let D=i[c];if(d===0){if(D===s&&(r||i.slice(c,c+a)===t)){g.push(i.slice(p,c)),p=c+a;continue}if(D==="/"){R=c;continue}}D==="["?d++:D==="]"&&d--}let y=g.length===0?i:i.substring(p),x=y.startsWith(Ze),f=x?y.substring(1):y,S=R&&R>p?R-p:void 0;return{modifiers:g,hasImportantModifier:x,baseClassName:f,maybePostfixModifierPosition:S}};return o?i=>o({className:i,parseClassName:n}):n},_t=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},jt=e=>({cache:Ht(e.cacheSize),parseClassName:$t(e),...Gt(e)}),Jt=/\s+/,Kt=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(Jt),i="";for(let g=n.length-1;g>=0;g-=1){let d=n[g],{modifiers:p,hasImportantModifier:R,baseClassName:y,maybePostfixModifierPosition:x}=o(d),f=!!x,S=r(f?y.substring(0,x):y);if(!S){if(!f){i=d+(i.length>0?" "+i:i);continue}if(S=r(y),!S){i=d+(i.length>0?" "+i:i);continue}f=!1}let c=_t(p).join(":"),D=R?c+Ze:c,L=D+S;if(a.includes(L))continue;a.push(L);let m=s(S,f);for(let I=0;I<m.length;++I){let q=m[I];a.push(D+q)}i=d+(i.length>0?" "+i:i)}return i};function qt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Qe(t))&&(r&&(r+=" "),r+=o);return r}var Qe=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Qe(e[r]))&&(o&&(o+=" "),o+=t);return o};function Xt(e,...t){let o,r,s,a=n;function n(g){let d=t.reduce((p,R)=>R(p),e());return o=jt(d),r=o.cache.get,s=o.cache.set,a=i,i(g)}function i(g){let d=r(g);if(d)return d;let p=Kt(g,o);return s(g,p),p}return function(){return a(qt.apply(null,arguments))}}var w=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ye=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zt=/^\d+\/\d+$/,Qt=new Set(["px","full","screen"]),Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|E|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,to=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>ee(e)||Qt.has(e)||Zt.test(e),j=e=>te(e,"length",po),ee=e=>!!e&&!Number.isNaN(Number(e)),De=e=>te(e,"number",ee),le=e=>!!e&&Number.isInteger(Number(e)),ao=e=>e.endsWith("%")&&ee(e.slice(0,-1)),u=e=>Ye.test(e),J=e=>Yt.test(e),so=new Set(["length","size","percentage"]),io=e=>te(e,so,et),no=e=>te(e,"position",et),lo=new Set(["image","url"]),co=e=>te(e,lo,fo),mo=e=>te(e,"",uo),ce=()=>!0,te=(e,t,o)=>{let r=Ye.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},po=e=>eo.test(e)&&!to.test(e),et=()=>!1,uo=e=>oo.test(e),fo=e=>ro.test(e);var go=()=>{let e=w("colors"),t=w("spacing"),o=w("blur"),r=w("brightness"),s=w("borderColor"),a=w("borderRadius"),n=w("borderSpacing"),i=w("borderWidth"),g=w("contrast"),d=w("grayscale"),p=w("hueRotate"),R=w("invert"),y=w("gap"),x=w("gradientColorStops"),f=w("gradientColorStopPositions"),S=w("inset"),c=w("margin"),D=w("opacity"),L=w("padding"),m=w("saturate"),I=w("scale"),q=w("sepia"),ge=w("skew"),be=w("space"),ve=w("translate"),Q=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto",u,t],b=()=>[u,t],G=()=>["",O,j],M=()=>["auto",ee,u],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["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"],ke=()=>["start","end","center","between","around","evenly","stretch"],ne=()=>["","0",u],je=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[ee,u];return{cacheSize:500,separator:":",theme:{colors:[ce],spacing:[O,j],blur:["none","",J,u],brightness:W(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:b(),borderWidth:G(),contrast:W(),grayscale:ne(),hueRotate:W(),invert:ne(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[ao,j],inset:ie(),margin:ie(),opacity:W(),padding:b(),saturate:W(),scale:W(),sepia:ne(),skew:W(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"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:[...$e(),u]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le,u]}],basis:[{basis:ie()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ne()}],shrink:[{shrink:ne()}],order:[{order:["first","last","none",le,u]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:["full",le,u]},u]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[le,u]},u]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...ke()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ke(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ke(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],E:[{E:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[c]}],mx:[{mx:[c]}],my:[{my:[c]}],ms:[{ms:[c]}],me:[{me:[c]}],mt:[{mt:[c]}],mr:[{mr:[c]}],mb:[{mb:[c]}],ml:[{ml:[c]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",De]}],"font-family":[{font:[ce]}],"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",u]}],"line-clamp":[{"line-clamp":["none",ee,De]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[D]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,j]}],"underline-offset":[{"underline-offset":["auto",O,u]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[D]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),no]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","E","tl"]},co]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-E":[{"rounded-E":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-rt":[{"rounded-rt":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-E":[{"border-E":[i]}],"border-opacity":[{"border-opacity":[D]}],"border-style":[{border:[...he(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[D]}],"divide-style":[{divide:he()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-E":[{"border-E":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[O,u]}],"outline-w":[{outline:[O,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[D]}],"ring-offset-w":[{"ring-offset":[O,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,mo]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[D]}],"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:[g]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[R]}],saturate:[{saturate:[m]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[D]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[le,u]}],"translate-x":[{"translate-x":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-x":[{"skew-x":[ge]}],"skew-y":[{"skew-y":[ge]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","rt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-E":[{"scroll-E":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,j,De]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","E","pr","pb","pl"],px:["pr","pl"],py:["E","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-E","rounded-ss","rounded-rt","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-rt","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-E":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-E"],"border-w-x":["border-w-r","border-w-E"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-E"],"border-color-x":["border-color-r","border-color-E"],"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-E","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-E","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var tt=Xt(go);function v(...e){return tt((0,ot.clsx)(e))}var E=require("react/jsx-runtime"),at=k.Root;var bo=k.Portal;var st=de.forwardRef(({className:e,...t},o)=>(0,E.jsx)(k.Overlay,{ref:o,className:v("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));st.displayName=k.Overlay.displayName;var Le=de.forwardRef(({className:e,children:t,...o},r)=>(0,E.jsxs)(bo,{children:[(0,E.jsx)(st,{}),(0,E.jsxs)(k.Content,{ref:r,className:v("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...o,children:[t,(0,E.jsxs)(k.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,E.jsx)(rt.X,{className:"h-4 w-4"}),(0,E.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Le.displayName=k.Content.displayName;var ze=({className:e,...t})=>(0,E.jsx)("div",{className:v("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ze.displayName="DialogHeader";var vo=({className:e,...t})=>(0,E.jsx)("div",{className:v("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});vo.displayName="DialogFooter";var Ee=de.forwardRef(({className:e,...t},o)=>(0,E.jsx)(k.Title,{ref:o,className:v("text-lg font-semibold leading-none tracking-tight",e),...t}));Ee.displayName=k.Title.displayName;var ho=de.forwardRef(({className:e,...t},o)=>(0,E.jsx)(k.Description,{ref:o,className:v("text-sm text-muted-foreground",e),...t}));ho.displayName=k.Description.displayName;var it=z(require("react"));var me=it.forwardRef(({className:e,type:t,...o},r)=>(0,E.jsx)("input",{type:t,className:v("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}));me.displayName="Input";var lt=z(require("react")),pe=lt.forwardRef(({className:e,...t},o)=>(0,E.jsx)("textarea",{className:v("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}));pe.displayName="Textarea";var dt=z(require("react")),Me=z(require("@radix-ui/react-label")),mt=require("class-variance-authority");var yo=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),A=dt.forwardRef(({className:e,...t},o)=>(0,E.jsx)(Me.Root,{ref:o,className:v(yo(),e),...t}));A.displayName=Me.Root.displayName;var Be=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:s,className:a="",disabled:n=!1})=>{let[i,g]=(0,_.useState)(!1),[d,p]=(0,_.useState)(""),R=()=>{n||(g(!0),p(t))},y=async()=>{d!==t&&await s(e,d),g(!1)},x=f=>{f.key==="Enter"&&!r||f.key==="Enter"&&f.ctrlKey&&r?y():f.key==="Escape"&&(g(!1),p(""))};return(0,E.jsxs)("div",{className:`space-y-2 ${a}`,children:[(0,E.jsx)(A,{children:o}),i?r?(0,E.jsx)(pe,{value:d,onChange:f=>p(f.target.value),onBlur:y,onKeyDown:x,autoFocus:!0,rows:4,className:"resize-none"}):(0,E.jsx)(me,{value:d,onChange:f=>p(f.target.value),onBlur:y,onKeyPress:x,autoFocus:!0,className:"text-lg font-medium"}):(0,E.jsxs)("div",{onClick:R,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${r?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,E.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!n&&(0,E.jsx)(rt.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var xo=(0,mt.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 oe({className:e,variant:t,...o}){return(0,E.jsx)("div",{className:v(xo({variant:t}),e),...o})}var xe=z(require("react")),H=z(require("@radix-ui/react-avatar"));var Ge=xe.forwardRef(({className:e,...t},o)=>(0,E.jsx)(H.Root,{ref:o,className:v("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ge.displayName=H.Root.displayName;var wo=xe.forwardRef(({className:e,...t},o)=>(0,E.jsx)(H.Image,{ref:o,className:v("aspect-square h-full w-full",e),...t}));wo.displayName=H.Image.displayName;var Fe=xe.forwardRef(({className:e,...t},o)=>(0,E.jsx)(H.Fallback,{ref:o,className:v("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Fe.displayName=H.Fallback.displayName;var bt=require("@radix-ui/react-slot"),ht=z(require("react")),So=(0,mt.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"}}}),$=ht.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,E.jsx)(e?bt.Slot:"button",{className:v(So({className:t,size:o,variant:r})),ref:a,...s}));$.displayName="Button";var wt=({comments:e,onAddComment:t})=>{let[o,r]=(0,_.useState)(""),s=n=>n.split(" ").map(i=>i[0]).join("").toUpperCase(),a=()=>{o.trim()&&(t(o),r(""))};return(0,E.jsxs)("div",{className:"space-y-4",children:[(0,E.jsxs)("div",{className:"flex items-center gap-2",children:[(0,E.jsx)(rt.MessageSquare,{className:"h-5 w-5"}),(0,E.jsx)(A,{className:"text-lg font-medium",children:"Comments"}),(0,E.jsx)(oe,{variant:"secondary",children:e.length})]}),(0,E.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,E.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,E.jsx)(Ge,{className:"h-8 w-8 mt-1",children:(0,E.jsx)(Fe,{className:"text-xs bg-muted text-muted-foreground",children:s(n.author)})}),(0,E.jsxs)("div",{className:"flex-1",children:[(0,E.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,E.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,E.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," at ",n.createdAt.toLocaleTimeString()]})]}),(0,E.jsx)("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,E.jsxs)("div",{className:"flex gap-2",children:[(0,E.jsx)(pe,{value:o,onChange:n=>r(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,E.jsx)($,{onClick:a,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,E.jsx)(rt.Send,{className:"h-4 w-4"})})]})]})};var X=z(require("react")),re=z(require("@radix-ui/react-toggle-group"));var St=z(require("react")),We=z(require("@radix-ui/react-toggle"));var Oe=(0,mt.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Po=St.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,E.jsx)(We.Root,{ref:s,className:v(Oe({variant:t,size:o,className:e})),...r}));Po.displayName=We.Root.displayName;var Rt=X.createContext({size:"default",variant:"default"}),Ne=X.forwardRef(({className:e,variant:t,size:o,children:r,...s},a)=>(0,E.jsx)(re.Root,{ref:a,className:v("flex items-center justify-center gap-1",e),...s,children:(0,E.jsx)(Rt.Provider,{value:{variant:t,size:o},children:r})}));Ne.displayName=re.Root.displayName;var Re=X.forwardRef(({className:e,children:t,variant:o,size:r,...s},a)=>{let n=X.useContext(Rt);return(0,E.jsx)(re.Item,{ref:a,className:v(Oe({variant:n.variant||o,size:n.size||r}),e),...s,children:t})});Re.displayName=re.Item.displayName;var h=z(require("@radix-ui/react-select")),K=z(require("react")),Ce=h.Root;var ue=K.forwardRef(({children:e,className:t,...o},r)=>(0,E.jsxs)(h.Trigger,{className:v("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,E.jsx)(h.Icon,{asChild:!0,children:(0,E.jsx)(rt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ue.displayName=h.Trigger.displayName;var Ct=K.forwardRef(({className:e,...t},o)=>(0,E.jsx)(h.ScrollUpButton,{className:v("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,E.jsx)(rt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=h.ScrollUpButton.displayName;var Tt=K.forwardRef(({className:e,...t},o)=>(0,E.jsx)(h.ScrollDownButton,{className:v("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,E.jsx)(rt.ChevronDown,{className:"h-4 w-4"})}));Tt.displayName=h.ScrollDownButton.displayName;var fe=K.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,E.jsx)(h.Portal,{children:(0,E.jsxs)(h.Content,{className:v("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:s,...r,children:[(0,E.jsx)(Ct,{}),(0,E.jsx)(h.Viewport,{className:v("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,E.jsx)(Tt,{})]})}));fe.displayName=h.Content.displayName;var No=K.forwardRef(({className:e,...t},o)=>(0,E.jsx)(h.Label,{className:v("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));No.displayName=h.Label.displayName;var ae=K.forwardRef(({children:e,className:t,...o},r)=>(0,E.jsxs)(h.Item,{className:v("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,E.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,E.jsx)(h.ItemIndicator,{children:(0,E.jsx)(rt.Check,{className:"h-4 w-4"})})}),(0,E.jsx)(h.ItemText,{children:e})]}));ae.displayName=h.Item.displayName;var Ro=K.forwardRef(({className:e,...t},o)=>(0,E.jsx)(h.Separator,{className:v("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));Ro.displayName=h.Separator.displayName;var Te=({label:e,value:t,onValueChange:o,options:r,showColor:s=!1,disabled:a=!1})=>{let[n,i]=(0,_.useState)(!1),g=r.find(p=>p.value===t);return(0,E.jsxs)("div",{className:"space-y-1",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:e}),(0,E.jsxs)(Ce,{value:t,onValueChange:o,open:n,onOpenChange:p=>{a||i(p)},disabled:a,children:[(0,E.jsx)(ue,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,E.jsxs)(oe,{variant:"secondary",className:`${a?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!a&&i(!n),children:[s&&g?.color&&(0,E.jsx)("div",{className:`w-2 h-2 rounded-full ${g.color} mr-1`}),g?.label||"Select..."]})}),(0,E.jsx)(fe,{children:r.map(p=>(0,E.jsx)(ae,{value:p.value,children:s&&p.color?(0,E.jsxs)("div",{className:"flex items-center gap-2",children:[(0,E.jsx)("div",{className:`w-3 h-3 rounded-full ${p.color}`}),p.label]}):p.label},p.value))})]})]})};var Dt=({label:e,value:t,onValueChange:o,options:r,placeholder:s="Search...",allowCustomValue:a=!1,disabled:n=!1})=>{let[i,g]=(0,_.useState)(!1),[d,p]=(0,_.useState)(""),R=r.find(c=>c.value===t),y=r.filter(c=>c.label.toLowerCase().includes(d.toLowerCase())),x=c=>{o(c),g(!1),p("")},f=()=>{a&&d.trim()&&!r.find(c=>c.value===d.trim())&&(o(d.trim()),g(!1),p(""))};return(0,E.jsxs)("div",{className:"space-y-1",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:e}),(0,E.jsxs)(Ce,{value:t,onValueChange:x,open:i,onOpenChange:c=>{n||g(c)},disabled:n,children:[(0,E.jsx)(ue,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,E.jsx)(oe,{variant:"secondary",className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!n&&g(!i),children:R?.label||t||"Select..."})}),(0,E.jsxs)(fe,{children:[(0,E.jsx)("div",{className:"p-2",children:(0,E.jsx)(me,{placeholder:s,value:d,onChange:c=>p(c.target.value),onKeyDown:c=>{c.key==="Enter"&&a&&f()},className:"mb-2"})}),y.map(c=>(0,E.jsx)(ae,{value:c.value,children:c.label},c.value)),a&&d.trim()&&!y.find(c=>c.value===d.trim())&&(0,E.jsxs)(ae,{value:d.trim(),children:['Add "',d.trim(),'"']})]})]})]})};var He=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Co=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:rt.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:rt.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:rt.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:rt.Zap}],To=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}];var It=({task:e,epics:t,sprints:o,lastUpdated:r,onUpdateTask:s,onClose:a,onDelete:n,isUpdating:i=!1,isDeleting:g=!1,deleteState:d="idle",teamMembers:p})=>{let[R,y]=(0,_.useState)(e.storyPoints),x=(0,_.useRef)(null),[f,S]=(0,_.useState)(p);(0,_.useEffect)(()=>{S(p)},[p]);let c=(0,_.useCallback)((m,I)=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{s(m,I)},500)},[s]);(0,_.useEffect)(()=>{c("storyPoints",R?.toString()||"1")},[R]);let D=m=>m.split(" ").map(I=>I[0]).join("").toUpperCase(),L=()=>d==="loading"?(0,E.jsxs)($,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,E.jsx)(rt.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?(0,E.jsxs)($,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,E.jsx)(rt.Check,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?(0,E.jsxs)($,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,E.jsx)(rt.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,E.jsxs)($,{onClick:n,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:i||g,children:[(0,E.jsx)(rt.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,E.jsxs)("div",{className:"flex flex-col h-full",children:[(0,E.jsxs)("div",{className:"space-y-4",style:{opacity:i?.6:1},children:[(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Status"}),(0,E.jsx)(Te,{label:"",value:e.status,onValueChange:m=>s("status",m),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:i})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Type"}),(0,E.jsx)(Ne,{type:"single",value:e.type||"",onValueChange:m=>m&&s("type",m),className:"grid grid-cols-2 gap-1",disabled:i,children:Co.map(m=>{let I=m.icon;return(0,E.jsxs)(Re,{value:m.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:i,children:[(0,E.jsx)(I,{className:"h-3 w-3"}),m.label]},m.value)})})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,E.jsx)(Ne,{type:"single",value:e.priority||"",onValueChange:m=>m&&s("priority",m),className:"grid grid-cols-3 gap-1",disabled:i,children:To.map(m=>(0,E.jsx)(Re,{value:m.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:i,children:m.label},m.value))})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,E.jsx)("input",{type:"number",min:"1",max:"100",value:R||1,onChange:m=>{let I=Number(m.target.value);I<1?y(1):I>100?y(100):y(I)},className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:i})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,E.jsx)(Te,{label:"",value:He(e.epic).toString(),onValueChange:m=>s("epic",m),options:(t||[]).map(m=>({value:m.id.toString(),label:m?.name,color:m.color})),showColor:!0,disabled:i})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,E.jsx)(Te,{label:"",value:He(e.sprint).toString()||"none",onValueChange:m=>s("sprint",m==="none"?"":m),options:[{value:"none",label:"No Sprint"},...(o||[]).map(m=>({value:m.id.toString(),label:`${m?.name}`}))],disabled:i})]}),(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)(A,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,E.jsx)(Dt,{label:"",value:e.assignee?.value?.name,onValueChange:m=>s("assignee",m),options:f.map(m=>({value:`${typeof m.email=="string"?"users":"digital-colleagues"}:${m.id}`,label:m?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:i})]})]}),(0,E.jsxs)("div",{className:"mt-auto E-4 space-y-4",children:[(0,E.jsxs)("div",{className:"space-y-2",children:[(0,E.jsx)($,{onClick:a,variant:"outline",className:"w-full h-8 text-xs",disabled:i||g,children:"Close"}),L()]}),(0,E.jsxs)("div",{className:"E-4 border-t border-border space-y-2",children:[(0,E.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,E.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,E.jsx)(rt.User,{className:"h-3 w-3"}),(0,E.jsx)("span",{children:"System"})]})]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,E.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,E.jsx)(rt.Calendar,{className:"h-3 w-3"}),(0,E.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,E.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,E.jsx)(rt.Clock,{className:"h-3 w-3"}),(0,E.jsxs)("span",{children:[new Date(r).toLocaleDateString()," at"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var ko=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:s,onUpdateTask:a,onDeleteTask:n,onAddComment:i,colleagues:g})=>{let[d,p]=(0,_.useState)(o),[R,y]=(0,_.useState)(new Date),[x,f]=(0,_.useState)("idle"),[S,c]=(0,_.useState)("idle"),[D,L]=(0,_.useState)([]),[m,I]=(0,_.useState)(g);(0,_.useEffect)(()=>{p(o)},[o]);let q=async(b,G)=>{if(G!==d[b]){f("loading");try{let M=await a(d.id.toString(),{[b]:G});p(M),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch(M){console.log("error",M),f("error"),setTimeout(()=>f("idle"),3e3)}}},ge=async(b,G)=>{if(G!==d[b]){f("loading");try{let M=await a(d.id.toString(),{[b]:G});p(M),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch(M){console.log("error",M),f("error"),setTimeout(()=>f("idle"),3e3)}}},be=async b=>{if(i){f("loading");try{let G=await i?.({content:b,taskId:d.id.toString()});p(G),y(new Date),f("success"),setTimeout(()=>f("idle"),1500)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}}},ve=async()=>{c("loading");try{await n(d.id.toString()),c("success"),setTimeout(()=>{t(),c("idle")},1e3)}catch{c("error"),setTimeout(()=>c("idle"),3e3)}},Q=x!=="loading"&&S!=="loading",Y=()=>{Q&&t()},ie=()=>x==="loading"?(0,E.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,E.jsx)(rt.Loader2,{className:"h-4 w-4 animate-spin"}),(0,E.jsx)("span",{children:"Updating..."})]}):x==="success"?(0,E.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,E.jsx)(rt.Check,{className:"h-4 w-4"}),(0,E.jsx)("span",{children:"Updated successfully"})]}):x==="error"?(0,E.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,E.jsx)(rt.X,{className:"h-4 w-4"}),(0,E.jsx)("span",{children:"Update failed"})]}):null;return(0,E.jsx)(at,{open:e,onOpenChange:Y,children:(0,E.jsxs)(Le,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[(0,E.jsxs)(ze,{children:[(0,E.jsx)(Ee,{className:"sr-only",children:d.name}),(0,E.jsxs)("div",{className:"flex items-center justify-between",children:[(0,E.jsx)("div",{className:"flex-1",children:ie()}),!Q&&(0,E.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,E.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,E.jsxs)("div",{className:"lg:col-span-2 space-y-4",children:[(0,E.jsx)(Be,{fieldName:"name",value:d.name||"",label:"",onSave:q,className:"border-b border-border pb-3",disabled:x==="loading"}),(0,E.jsx)(Be,{fieldName:"description",value:d.description||"",label:"Description",multiline:!0,onSave:q,disabled:x==="loading"}),(0,E.jsx)(wt,{comments:(d?.comments||[]).map(b=>({author:b.author.value.name||"",createdAt:new Date(b.timestamp),text:b.text,id:b.id||""})),onAddComment:be})]}),(0,E.jsx)(It,{task:d,epics:r,sprints:s,lastUpdated:R,onUpdateTask:ge,onClose:Y,onDelete:ve,isUpdating:x==="loading",isDeleting:S==="loading",deleteState:S,teamMembers:m})]})]})})};0&&(module.exports={TaskDetailsModal});
@@ -1 +1 @@
1
- import{a}from"../../chunk-6BQNN2KT.mjs";import"../../chunk-XNEPSYCO.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TaskDetailsModal};
1
+ import{a}from"../../chunk-XWDRWOIG.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-6SWKEZN6.mjs";import"../../chunk-DFIXTV2M.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-B4H6T2GP.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TaskDetailsModal};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use strict";var rt=Object.create;var ee=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var at=Object.getOwnPropertyNames;var nt=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty;var it=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},ke=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of at(t))!st.call(e,a)&&a!==r&&ee(e,a,{get:()=>t[a],enumerable:!(o=ot(t,a))||o.enumerable});return e};var z=(e,t,r)=>(r=e!=null?rt(nt(e)):{},ke(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),lt=e=>ke(ee({},"__esModule",{value:!0}),e);var Kt={};it(Kt,{TaskSidebar:()=>qt});module.exports=lt(Kt);var A=require("react");var Ee=z(require("react")),fe=z(require("@radix-ui/react-label")),De=require("class-variance-authority");var Ae=require("clsx");var me="-",ct=e=>{let t=pt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:c=>{let s=c.split(me);return s[0]===""&&s.length!==1&&s.shift(),ze(s,t)||dt(c)},getConflictingClassGroupIds:(c,s)=>{let m=r[c]||[];return s&&o[c]?[...m,...o[c]]:m}}},ze=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ze(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(me);return t.validators.find(({validator:c})=>c(n))?.classGroupId},Te=/^\[(.+)\]$/,dt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},pt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return mt(Object.entries(e.classGroups),r).forEach(([n,c])=>{ue(c,o,n,t)}),o},ue=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Ie(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(ut(a)){ue(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,c])=>{ue(c,Ie(t,n),r,o)})})},Ie=(e,t)=>{let r=e;return t.split(me).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},ut=e=>e.isThemeGetter,mt=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,s])=>[t+c,s])):n);return[r,a]}):e,ft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,c)=>{r.set(n,c),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let c=r.get(n);if(c!==void 0)return c;if((c=o.get(n))!==void 0)return a(n,c),c},set(n,c){r.has(n)?r.set(n,c):a(n,c)}}},Le="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,c=s=>{let m=[],g=0,f=0,R;for(let d=0;d<s.length;d++){let i=s[d];if(g===0){if(i===a&&(o||s.slice(d,d+n)===t)){m.push(s.slice(f,d)),f=d+n;continue}if(i==="/"){R=d;continue}}i==="["?g++:i==="]"&&g--}let P=m.length===0?s:s.substring(f),C=P.startsWith(Le),N=C?P.substring(1):P,S=R&&R>f?R-f:void 0;return{modifiers:m,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:S}};return r?s=>r({className:s,parseClassName:c}):c},bt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},vt=e=>({cache:ft(e.cacheSize),parseClassName:gt(e),...ct(e)}),ht=/\s+/,yt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],c=e.trim().split(ht),s="";for(let m=c.length-1;m>=0;m-=1){let g=c[m],{modifiers:f,hasImportantModifier:R,baseClassName:P,maybePostfixModifierPosition:C}=r(g),N=!!C,S=o(N?P.substring(0,C):P);if(!S){if(!N){s=g+(s.length>0?" "+s:s);continue}if(S=o(P),!S){s=g+(s.length>0?" "+s:s);continue}N=!1}let d=bt(f).join(":"),i=R?d+Le:d,y=i+S;if(n.includes(y))continue;n.push(y);let H=a(S,N);for(let E=0;E<H.length;++E){let Z=H[E];n.push(i+Z)}s=g+(s.length>0?" "+s:s)}return s};function xt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ve(t))&&(o&&(o+=" "),o+=r);return o}var Ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function wt(e,...t){let r,o,a,n=c;function c(m){let g=t.reduce((f,R)=>R(f),e());return r=vt(g),o=r.cache.get,a=r.cache.set,n=s,s(m)}function s(m){let g=o(m);if(g)return g;let f=yt(m,r);return a(m,f),f}return function(){return n(xt.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ge=/^\[(?:([a-z-]+):)?(.+)\]$/i,St=/^\d+\/\d+$/,Pt=new Set(["px","full","screen"]),Rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(We|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>j(e)||Pt.has(e)||St.test(e),G=e=>_(e,"length",At),j=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>_(e,"number",j),U=e=>!!e&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&j(e.slice(0,-1)),p=e=>Ge.test(e),B=e=>Rt.test(e),zt=new Set(["length","size","percentage"]),Lt=e=>_(e,zt,Be),Vt=e=>_(e,"position",Be),Gt=new Set(["image","url"]),Bt=e=>_(e,Gt,Dt),Mt=e=>_(e,"",Et),q=()=>!0,_=(e,t,r)=>{let o=Ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},At=e=>Ct.test(e)&&!Nt.test(e),Be=()=>!1,Et=e=>kt.test(e),Dt=e=>Tt.test(e);var Wt=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),o=b("brightness"),a=b("borderColor"),n=b("borderRadius"),c=b("borderSpacing"),s=b("borderWidth"),m=b("contrast"),g=b("grayscale"),f=b("hueRotate"),R=b("invert"),P=b("gap"),C=b("gradientColorStops"),N=b("gradientColorStopPositions"),S=b("inset"),d=b("margin"),i=b("opacity"),y=b("padding"),H=b("saturate"),E=b("scale"),Z=b("sepia"),xe=b("skew"),we=b("space"),Se=b("translate"),ie=()=>["auto","contain","none"],le=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",p,t],v=()=>[p,t],Pe=()=>["",V,G],Q=()=>["auto",j,p],Re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",p],Ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[j,p];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[V,G],blur:["none","",B,p],brightness:L(),borderColor:[e],borderRadius:["none","","full",B,p],borderSpacing:v(),borderWidth:Pe(),contrast:L(),grayscale:J(),hueRotate:L(),invert:J(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[It,G],inset:ce(),margin:ce(),opacity:L(),padding:v(),saturate:L(),scale:L(),sepia:J(),skew:L(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"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:[...Re(),p]}],overflow:[{overflow:le()}],"overflow-x":[{"overflow-x":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",U,p]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",U,p]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",U,p]},p]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[U,p]},p]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[P]}],"gap-x":[{"gap-x":[P]}],"gap-y":[{"gap-y":[P]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-x":[{"space-x":[we]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[we]}],"space-y-reverse":["space-y-reverse"],We:[{We:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-We":[{"min-We":[p,t,"min","max","fit"]}],"max-We":[{"max-We":[p,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",B,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"font-family":[{font:[q]}],"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",p]}],"line-clamp":[{"line-clamp":["none",j,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",V,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[i]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",V,G]}],"underline-offset":[{"underline-offset":["auto",V,p]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[i]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Re(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","We","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-We":[{"rounded-We":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-We":[{border:[s]}],"border-We-x":[{"border-x":[s]}],"border-We-y":[{"border-y":[s]}],"border-We-s":[{"border-s":[s]}],"border-We-e":[{"border-e":[s]}],"border-We-t":[{"border-t":[s]}],"border-We-r":[{"border-r":[s]}],"border-We-b":[{"border-b":[s]}],"border-We-We":[{"border-We":[s]}],"border-opacity":[{"border-opacity":[i]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[i]}],"divide-style":[{divide:Y()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-We":[{"border-We":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[V,p]}],"outline-We":[{outline:[V,G]}],"outline-color":[{outline:[e]}],"ring-We":[{ring:Pe()}],"ring-We-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[i]}],"ring-offset-We":[{"ring-offset":[V,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,Mt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[i]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",B,p]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[R]}],saturate:[{saturate:[H]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[i]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[U,p]}],"translate-x":[{"translate-x":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-x":[{"skew-x":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","We-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-We":[{stroke:[V,G,pe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["We","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-We","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-We":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-We":["border-We-s","border-We-e","border-We-t","border-We-r","border-We-b","border-We-We"],"border-We-x":["border-We-r","border-We-We"],"border-We-y":["border-We-t","border-We-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-We"],"border-color-x":["border-color-r","border-color-We"],"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-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Me=wt(Wt);function h(...e){return Me((0,Ae.clsx)(e))}var We=require("react/jsx-runtime"),Ot=(0,De.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),k=Ee.forwardRef(({className:e,...t},r)=>(0,We.jsx)(fe.Root,{ref:r,className:h(Ot(),e),...t}));k.displayName=fe.Root.displayName;var Oe=require("@radix-ui/react-slot"),_e=z(require("react")),jt=(0,De.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 We-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),D=_e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,$e.jsx)(e?Oe.Slot:"button",{className:h(jt({className:t,size:r,variant:o})),ref:n,...a}));D.displayName="Button";var W=z(require("react")),$=z(require("@radix-ui/react-toggle-group"));var Fe=z(require("react")),ge=z(require("@radix-ui/react-toggle"));var be=(0,De.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-We-9",sm:"h-8 px-1.5 min-We-8",lg:"h-10 px-2.5 min-We-10"}},defaultVariants:{variant:"default",size:"default"}}),_t=Fe.forwardRef(({className:e,variant:t,size:r,...o},a)=>(0,We.jsx)(ge.Root,{ref:a,className:h(be({variant:t,size:r,className:e})),...o}));_t.displayName=ge.Root.displayName;var Ue=W.createContext({size:"default",variant:"default"}),re=W.forwardRef(({className:e,variant:t,size:r,children:o,...a},n)=>(0,We.jsx)($.Root,{ref:n,className:h("flex items-center justify-center gap-1",e),...a,children:(0,We.jsx)(Ue.Provider,{value:{variant:t,size:r},children:o})}));re.displayName=$.Root.displayName;var oe=W.forwardRef(({className:e,children:t,variant:r,size:o,...a},n)=>{let c=W.useContext(Ue);return(0,We.jsx)($.Item,{ref:n,className:h(be({variant:c.variant||r,size:c.size||o}),e),...a,children:t})});oe.displayName=$.Item.displayName;var x=require("lucide-react");var $t=(0,De.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 ae({className:e,variant:t,...r}){return(0,We.jsx)("div",{className:h($t({variant:t}),e),...r})}var u=z(require("@radix-ui/react-select")),M=z(require("react")),ne=u.Root;var K=M.forwardRef(({children:e,className:t,...r},o)=>(0,We.jsxs)(u.Trigger,{className:h("flex h-10 We-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:o,...r,children:[e,(0,We.jsx)(u.Icon,{asChild:!0,children:(0,We.jsx)(x.ChevronDown,{className:"h-4 We-4 opacity-50"})})]}));K.displayName=u.Trigger.displayName;var Xe=M.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,We.jsx)(x.ChevronUp,{className:"h-4 We-4"})}));Xe.displayName=u.ScrollUpButton.displayName;var Ze=M.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,We.jsx)(x.ChevronDown,{className:"h-4 We-4"})}));Ze.displayName=u.ScrollDownButton.displayName;var X=M.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,We.jsx)(u.Portal,{children:(0,We.jsxs)(u.Content,{className:h("relative z-50 max-h-96 min-We-[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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:a,...o,children:[(0,We.jsx)(Xe,{}),(0,We.jsx)(u.Viewport,{className:h("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] We-full min-We-[var(--radix-select-trigger-width)]"),children:e}),(0,We.jsx)(Ze,{})]})}));X.displayName=u.Content.displayName;var Ft=M.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Ft.displayName=u.Label.displayName;var F=M.forwardRef(({children:e,className:t,...r},o)=>(0,We.jsxs)(u.Item,{className:h("relative flex We-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:o,...r,children:[(0,We.jsx)("span",{className:"absolute left-2 flex h-3.5 We-3.5 items-center justify-center",children:(0,We.jsx)(u.ItemIndicator,{children:(0,We.jsx)(x.Check,{className:"h-4 We-4"})})}),(0,We.jsx)(u.ItemText,{children:e})]}));F.displayName=u.Item.displayName;var Ht=M.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Ht.displayName=u.Separator.displayName;var se=({label:e,value:t,onValueChange:r,options:o,showColor:a=!1,disabled:n=!1})=>{let[c,s]=(0,A.useState)(!1),m=o.find(f=>f.value===t);return(0,We.jsxs)("div",{className:"space-y-1",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:e}),(0,We.jsxs)(ne,{value:t,onValueChange:r,open:c,onOpenChange:f=>{n||s(f)},disabled:n,children:[(0,We.jsx)(K,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,We.jsxs)(ae,{variant:"secondary",className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!n&&s(!c),children:[a&&m?.color&&(0,We.jsx)("div",{className:`We-2 h-2 rounded-full ${m.color} mr-1`}),m?.label||"Select..."]})}),(0,We.jsx)(X,{children:o.map(f=>(0,We.jsx)(F,{value:f.value,children:a&&f.color?(0,We.jsxs)("div",{className:"flex items-center gap-2",children:[(0,We.jsx)("div",{className:`We-3 h-3 rounded-full ${f.color}`}),f.label]}):f.label},f.value))})]})]})};var Ye=z(require("react"));var ve=Ye.forwardRef(({className:e,type:t,...r},o)=>(0,We.jsx)("input",{type:t,className:h("flex h-9 We-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:o,...r}));ve.displayName="Input";var tt=({label:e,value:t,onValueChange:r,options:o,placeholder:a="Search...",allowCustomValue:n=!1,disabled:c=!1})=>{let[s,m]=(0,A.useState)(!1),[g,f]=(0,A.useState)(""),R=o.find(d=>d.value===t),P=o.filter(d=>d.label.toLowerCase().includes(g.toLowerCase())),C=d=>{r(d),m(!1),f("")},N=()=>{n&&g.trim()&&!o.find(d=>d.value===g.trim())&&(r(g.trim()),m(!1),f(""))};return(0,We.jsxs)("div",{className:"space-y-1",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:e}),(0,We.jsxs)(ne,{value:t,onValueChange:C,open:s,onOpenChange:d=>{c||m(d)},disabled:c,children:[(0,We.jsx)(K,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,We.jsx)(ae,{variant:"secondary",className:`${c?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!c&&m(!s),children:R?.label||t||"Select..."})}),(0,We.jsxs)(X,{children:[(0,We.jsx)("div",{className:"p-2",children:(0,We.jsx)(ve,{placeholder:a,value:g,onChange:d=>f(d.target.value),onKeyDown:d=>{d.key==="Enter"&&n&&N()},className:"mb-2"})}),P.map(d=>(0,We.jsx)(F,{value:d.value,children:d.label},d.value)),n&&g.trim()&&!P.find(d=>d.value===g.trim())&&(0,We.jsxs)(F,{value:g.trim(),children:['Add "',g.trim(),'"']})]})]})]})};var ye=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Jt=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:x.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:x.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:x.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:x.Zap}],Ut=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}];var qt=({task:e,epics:t,sprints:r,lastUpdated:o,onUpdateTask:a,onClose:n,onDelete:c,isUpdating:s=!1,isDeleting:m=!1,deleteState:g="idle",teamMembers:f})=>{let[R,P]=(0,A.useState)(e.storyPoints),C=(0,A.useRef)(null),N=(0,A.useCallback)((i,y)=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{a(i,y)},500)},[a]);(0,A.useEffect)(()=>{N("storyPoints",R?.toString()||"1")},[R]);let S=i=>i.split(" ").map(y=>y[0]).join("").toUpperCase(),d=()=>g==="loading"?(0,We.jsxs)(D,{disabled:!0,variant:"destructive",className:"We-full h-8 text-xs gap-1",children:[(0,We.jsx)(x.Loader2,{className:"h-3 We-3 animate-spin"}),"Deleting..."]}):g==="success"?(0,We.jsxs)(D,{disabled:!0,variant:"destructive",className:"We-full h-8 text-xs gap-1",children:[(0,We.jsx)(x.Check,{className:"h-3 We-3"}),"Deleted"]}):g==="error"?(0,We.jsxs)(D,{disabled:!0,variant:"destructive",className:"We-full h-8 text-xs gap-1",children:[(0,We.jsx)(x.X,{className:"h-3 We-3"}),"Delete failed"]}):(0,We.jsxs)(D,{onClick:c,variant:"destructive",className:"We-full h-8 text-xs gap-1",disabled:s||m,children:[(0,We.jsx)(x.Trash2,{className:"h-3 We-3"}),"Delete Task"]});return(0,We.jsxs)("div",{className:"flex flex-col h-full",children:[(0,We.jsxs)("div",{className:"space-y-4",style:{opacity:s?.6:1},children:[(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Status"}),(0,We.jsx)(se,{label:"",value:e.status,onValueChange:i=>a("status",i),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Type"}),(0,We.jsx)(re,{type:"single",value:e.type||"",onValueChange:i=>i&&a("type",i),className:"grid grid-cols-2 gap-1",disabled:s,children:Jt.map(i=>{let y=i.icon;return(0,We.jsxs)(oe,{value:i.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:s,children:[(0,We.jsx)(y,{className:"h-3 We-3"}),i.label]},i.value)})})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,We.jsx)(re,{type:"single",value:e.priority||"",onValueChange:i=>i&&a("priority",i),className:"grid grid-cols-3 gap-1",disabled:s,children:Ut.map(i=>(0,We.jsx)(oe,{value:i.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:s,children:i.label},i.value))})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,We.jsx)("input",{type:"number",min:"1",max:"100",value:R||1,onChange:i=>{let y=Number(i.target.value);y<1?P(1):y>100?P(100):P(y)},className:"We-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,We.jsx)(se,{label:"",value:ye(e.epic).toString(),onValueChange:i=>a("epicId",i),options:(t||[]).map(i=>({value:i.id.toString(),label:i?.name,color:i.color})),showColor:!0,disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,We.jsx)(se,{label:"",value:ye(e.sprint).toString()||"none",onValueChange:i=>a("sprintId",i==="none"?"":i),options:[{value:"none",label:"No Sprint"},...(r||[]).map(i=>({value:i.id.toString(),label:`${i?.name}`}))],disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(k,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,We.jsx)(tt,{label:"",value:e.assignee?.value?.name,onValueChange:i=>a("assignee",i),options:f.map(i=>({value:`${typeof i.email=="string"?"users":"digital-colleagues"}:${i.id}`,label:i?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:s})]})]}),(0,We.jsxs)("div",{className:"mt-auto pt-4 space-y-4",children:[(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(D,{onClick:n,variant:"outline",className:"We-full h-8 text-xs",disabled:s||m,children:"Close"}),d()]}),(0,We.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,We.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(x.User,{className:"h-3 We-3"}),(0,We.jsx)("span",{children:"System"})]})]}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(x.Calendar,{className:"h-3 We-3"}),(0,We.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(x.Clock,{className:"h-3 We-3"}),(0,We.jsxs)("span",{children:[new Date(o).toLocaleDateString()," at"," ",new Date(o).toLocaleTimeString()]})]})]})]})]})]})};0&&(module.exports={TaskSidebar});
4
+ "use strict";var rt=Object.create;var ee=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var at=Object.getOwnPropertyNames;var nt=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty;var it=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},ke=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of at(t))!st.call(e,a)&&a!==r&&ee(e,a,{get:()=>t[a],enumerable:!(o=ot(t,a))||o.enumerable});return e};var V=(e,t,r)=>(r=e!=null?rt(nt(e)):{},ke(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),lt=e=>ke(ee({},"__esModule",{value:!0}),e);var Kt={};it(Kt,{TaskSidebar:()=>qt});module.exports=lt(Kt);var G=require("react");var Ee=V(require("react")),fe=V(require("@radix-ui/react-label")),De=require("class-variance-authority");var Ae=require("clsx");var me="-",ct=e=>{let t=pt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let s=l.split(me);return s[0]===""&&s.length!==1&&s.shift(),ze(s,t)||dt(l)},getConflictingClassGroupIds:(l,s)=>{let f=r[l]||[];return s&&o[l]?[...f,...o[l]]:f}}},ze=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ze(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(me);return t.validators.find(({validator:l})=>l(n))?.classGroupId},Te=/^\[(.+)\]$/,dt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},pt=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return mt(Object.entries(e.classGroups),r).forEach(([n,l])=>{ue(l,o,n,t)}),o},ue=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Ie(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(ut(a)){ue(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,l])=>{ue(l,Ie(t,n),r,o)})})},Ie=(e,t)=>{let r=e;return t.split(me).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},ut=e=>e.isThemeGetter,mt=(e,t)=>t?e.map(([r,o])=>{let a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([l,s])=>[t+l,s])):n);return[r,a]}):e,ft=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(n,l)=>{r.set(n,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let l=r.get(n);if(l!==void 0)return l;if((l=o.get(n))!==void 0)return a(n,l),l},set(n,l){r.has(n)?r.set(n,l):a(n,l)}}},Le="!",gt=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,l=s=>{let f=[],g=0,m=0,P;for(let d=0;d<s.length;d++){let R=s[d];if(g===0){if(R===a&&(o||s.slice(d,d+n)===t)){f.push(s.slice(m,d)),m=d+n;continue}if(R==="/"){P=d;continue}}R==="["?g++:R==="]"&&g--}let S=f.length===0?s:s.substring(m),N=S.startsWith(Le),k=N?S.substring(1):S,w=P&&P>m?P-m:void 0;return{modifiers:f,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:l}):l},bt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},vt=e=>({cache:ft(e.cacheSize),parseClassName:gt(e),...ct(e)}),ht=/\s+/,yt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],l=e.trim().split(ht),s="";for(let f=l.length-1;f>=0;f-=1){let g=l[f],{modifiers:m,hasImportantModifier:P,baseClassName:S,maybePostfixModifierPosition:N}=r(g),k=!!N,w=o(k?S.substring(0,N):S);if(!w){if(!k){s=g+(s.length>0?" "+s:s);continue}if(w=o(S),!w){s=g+(s.length>0?" "+s:s);continue}k=!1}let d=bt(m).join(":"),R=P?d+Le:d,T=R+w;if(n.includes(T))continue;n.push(T);let c=a(w,k);for(let C=0;C<c.length;++C){let Z=c[C];n.push(R+Z)}s=g+(s.length>0?" "+s:s)}return s};function xt(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ve(t))&&(o&&(o+=" "),o+=r);return o}var Ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=Ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function wt(e,...t){let r,o,a,n=l;function l(f){let g=t.reduce((m,P)=>P(m),e());return r=vt(g),o=r.cache.get,a=r.cache.set,n=s,s(f)}function s(f){let g=o(f);if(g)return g;let m=yt(f,r);return a(f,m),m}return function(){return n(xt.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ge=/^\[(?:([a-We-]+):)?(.+)\]$/We,St=/^\d+\/\d+$/,Pt=new Set(["px","full","screen"]),Rt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|We|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,kt=/^(inset_)?-?((\d+)?\.?(\d+)[a-We]+|0)_-?((\d+)?\.?(\d+)[a-We]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>_(e)||Pt.has(e)||St.test(e),A=e=>$(e,"length",At),_=e=>!!e&&!Number.isNaN(Number(e)),pe=e=>$(e,"number",_),U=e=>!!e&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&_(e.slice(0,-1)),p=e=>Ge.test(e),E=e=>Rt.test(e),zt=new Set(["length","size","percentage"]),Lt=e=>$(e,zt,Be),Vt=e=>$(e,"position",Be),Gt=new Set(["image","url"]),Bt=e=>$(e,Gt,Dt),Mt=e=>$(e,"",Et),q=()=>!0,$=(e,t,r)=>{let o=Ge.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},At=e=>Ct.test(e)&&!Nt.test(e),Be=()=>!1,Et=e=>kt.test(e),Dt=e=>Tt.test(e);var Wt=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),o=b("brightness"),a=b("borderColor"),n=b("borderRadius"),l=b("borderSpacing"),s=b("borderWidth"),f=b("contrast"),g=b("grayscale"),m=b("hueRotate"),P=b("invert"),S=b("gap"),N=b("gradientColorStops"),k=b("gradientColorStopPositions"),w=b("inset"),d=b("margin"),R=b("opacity"),T=b("padding"),c=b("saturate"),C=b("scale"),Z=b("sepia"),xe=b("skew"),we=b("space"),Se=b("translate"),ie=()=>["auto","contain","none"],le=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",p,t],v=()=>[p,t],Pe=()=>["",M,A],Q=()=>["auto",_,p],Re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",p],Ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[_,p];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[M,A],blur:["none","",E,p],brightness:B(),borderColor:[e],borderRadius:["none","","full",E,p],borderSpacing:v(),borderWidth:Pe(),contrast:B(),grayscale:J(),hueRotate:B(),invert:J(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[It,A],inset:ce(),margin:ce(),opacity:B(),padding:v(),saturate:B(),scale:B(),sepia:J(),skew:B(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Ne()}],"break-before":[{"break-before":Ne()}],"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:[...Re(),p]}],overflow:[{overflow:le()}],"overflow-We":[{"overflow-We":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ie()}],"overscroll-We":[{"overscroll-We":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-We":[{"inset-We":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],We:[{We:["auto",U,p]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",U,p]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",U,p]},p]}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[U,p]},p]}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[S]}],"gap-We":[{"gap-We":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[d]}],mx:[{mx:[d]}],my:[{my:[d]}],ms:[{ms:[d]}],me:[{me:[d]}],mt:[{mt:[d]}],mr:[{mr:[d]}],mb:[{mb:[d]}],ml:[{ml:[d]}],"space-We":[{"space-We":[we]}],"space-We-reverse":["space-We-reverse"],"space-y":[{"space-y":[we]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"font-family":[{font:[q]}],"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",p]}],"line-clamp":[{"line-clamp":["none",_,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,A]}],"underline-offset":[{"underline-offset":["auto",M,p]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Re(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","We","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Bt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-We":[{"border-We":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-We":[{"divide-We":[s]}],"divide-We-reverse":["divide-We-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:Y()}],"border-color":[{border:[a]}],"border-color-We":[{"border-We":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[M,p]}],"outline-w":[{outline:[M,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[M,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,Mt]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",E,p]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[P]}],saturate:[{saturate:[c]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[c]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-We":[{"border-spacing-We":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-We":[{"scale-We":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[U,p]}],"translate-We":[{"translate-We":[Se]}],"translate-y":[{"translate-y":[Se]}],"skew-We":[{"skew-We":[xe]}],"skew-y":[{"skew-y":[xe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","We",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","We","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-We":[{"touch-pan":["We","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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,A,pe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-We","overflow-y"],overscroll:["overscroll-We","overscroll-y"],inset:["inset-We","inset-y","start","end","top","right","bottom","left"],"inset-We":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-We","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-We","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-We":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-We":["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-We","touch-y","touch-pz"],"touch-We":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Me=wt(Wt);function h(...e){return Me((0,Ae.clsx)(e))}var We=require("react/jsx-runtime"),Ot=(0,De.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),I=Ee.forwardRef(({className:e,...t},r)=>(0,We.jsx)(fe.Root,{ref:r,className:h(Ot(),e),...t}));I.displayName=fe.Root.displayName;var Oe=require("@radix-ui/react-slot"),_e=V(require("react")),jt=(0,De.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"}}}),W=_e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},n)=>(0,$e.jsx)(e?Oe.Slot:"button",{className:h(jt({className:t,size:r,variant:o})),ref:n,...a}));W.displayName="Button";var O=V(require("react")),F=V(require("@radix-ui/react-toggle-group"));var Fe=V(require("react")),ge=V(require("@radix-ui/react-toggle"));var be=(0,De.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),_t=Fe.forwardRef(({className:e,variant:t,size:r,...o},a)=>(0,We.jsx)(ge.Root,{ref:a,className:h(be({variant:t,size:r,className:e})),...o}));_t.displayName=ge.Root.displayName;var Ue=O.createContext({size:"default",variant:"default"}),re=O.forwardRef(({className:e,variant:t,size:r,children:o,...a},n)=>(0,We.jsx)(F.Root,{ref:n,className:h("flex items-center justify-center gap-1",e),...a,children:(0,We.jsx)(Ue.Provider,{value:{variant:t,size:r},children:o})}));re.displayName=F.Root.displayName;var oe=O.forwardRef(({className:e,children:t,variant:r,size:o,...a},n)=>{let l=O.useContext(Ue);return(0,We.jsx)(F.Item,{ref:n,className:h(be({variant:l.variant||r,size:l.size||o}),e),...a,children:t})});oe.displayName=F.Item.displayName;var y=require("lucide-react");var $t=(0,De.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 ae({className:e,variant:t,...r}){return(0,We.jsx)("div",{className:h($t({variant:t}),e),...r})}var u=V(require("@radix-ui/react-select")),D=V(require("react")),ne=u.Root;var K=D.forwardRef(({children:e,className:t,...r},o)=>(0,We.jsxs)(u.Trigger,{className:h("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:o,...r,children:[e,(0,We.jsx)(u.Icon,{asChild:!0,children:(0,We.jsx)(y.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));K.displayName=u.Trigger.displayName;var Xe=D.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,We.jsx)(y.ChevronUp,{className:"h-4 w-4"})}));Xe.displayName=u.ScrollUpButton.displayName;var Ze=D.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,We.jsx)(y.ChevronDown,{className:"h-4 w-4"})}));Ze.displayName=u.ScrollDownButton.displayName;var X=D.forwardRef(({children:e,className:t,position:r="popper",...o},a)=>(0,We.jsx)(u.Portal,{children:(0,We.jsxs)(u.Content,{className:h("relative We-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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-We-1 data-[side=right]:translate-We-1 data-[side=top]:-translate-y-1",t),position:r,ref:a,...o,children:[(0,We.jsx)(Xe,{}),(0,We.jsx)(u.Viewport,{className:h("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,We.jsx)(Ze,{})]})}));X.displayName=u.Content.displayName;var Ft=D.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Ft.displayName=u.Label.displayName;var H=D.forwardRef(({children:e,className:t,...r},o)=>(0,We.jsxs)(u.Item,{className:h("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:o,...r,children:[(0,We.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,We.jsx)(u.ItemIndicator,{children:(0,We.jsx)(y.Check,{className:"h-4 w-4"})})}),(0,We.jsx)(u.ItemText,{children:e})]}));H.displayName=u.Item.displayName;var Ht=D.forwardRef(({className:e,...t},r)=>(0,We.jsx)(u.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Ht.displayName=u.Separator.displayName;var se=({label:e,value:t,onValueChange:r,options:o,showColor:a=!1,disabled:n=!1})=>{let[l,s]=(0,G.useState)(!1),f=o.find(m=>m.value===t);return(0,We.jsxs)("div",{className:"space-y-1",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:e}),(0,We.jsxs)(ne,{value:t,onValueChange:r,open:l,onOpenChange:m=>{n||s(m)},disabled:n,children:[(0,We.jsx)(K,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,We.jsxs)(ae,{variant:"secondary",className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!n&&s(!l),children:[a&&f?.color&&(0,We.jsx)("div",{className:`w-2 h-2 rounded-full ${f.color} mr-1`}),f?.label||"Select..."]})}),(0,We.jsx)(X,{children:o.map(m=>(0,We.jsx)(H,{value:m.value,children:a&&m.color?(0,We.jsxs)("div",{className:"flex items-center gap-2",children:[(0,We.jsx)("div",{className:`w-3 h-3 rounded-full ${m.color}`}),m.label]}):m.label},m.value))})]})]})};var Ye=V(require("react"));var ve=Ye.forwardRef(({className:e,type:t,...r},o)=>(0,We.jsx)("input",{type:t,className:h("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:o,...r}));ve.displayName="Input";var tt=({label:e,value:t,onValueChange:r,options:o,placeholder:a="Search...",allowCustomValue:n=!1,disabled:l=!1})=>{let[s,f]=(0,G.useState)(!1),[g,m]=(0,G.useState)(""),P=o.find(d=>d.value===t),S=o.filter(d=>d.label.toLowerCase().includes(g.toLowerCase())),N=d=>{r(d),f(!1),m("")},k=()=>{n&&g.trim()&&!o.find(d=>d.value===g.trim())&&(r(g.trim()),f(!1),m(""))};return(0,We.jsxs)("div",{className:"space-y-1",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:e}),(0,We.jsxs)(ne,{value:t,onValueChange:N,open:s,onOpenChange:d=>{l||f(d)},disabled:l,children:[(0,We.jsx)(K,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,We.jsx)(ae,{variant:"secondary",className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!l&&f(!s),children:P?.label||t||"Select..."})}),(0,We.jsxs)(X,{children:[(0,We.jsx)("div",{className:"p-2",children:(0,We.jsx)(ve,{placeholder:a,value:g,onChange:d=>m(d.target.value),onKeyDown:d=>{d.key==="Enter"&&n&&k()},className:"mb-2"})}),S.map(d=>(0,We.jsx)(H,{value:d.value,children:d.label},d.value)),n&&g.trim()&&!S.find(d=>d.value===g.trim())&&(0,We.jsxs)(H,{value:g.trim(),children:['Add "',g.trim(),'"']})]})]})]})};var ye=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Jt=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:y.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:y.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:y.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:y.Zap}],Ut=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}];var qt=({task:e,epics:t,sprints:r,lastUpdated:o,onUpdateTask:a,onClose:n,onDelete:l,isUpdating:s=!1,isDeleting:f=!1,deleteState:g="idle",teamMembers:m})=>{let[P,S]=(0,G.useState)(e.storyPoints),N=(0,G.useRef)(null),[k,w]=(0,G.useState)(m);(0,G.useEffect)(()=>{w(m)},[m]);let d=(0,G.useCallback)((c,C)=>{N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{a(c,C)},500)},[a]);(0,G.useEffect)(()=>{d("storyPoints",P?.toString()||"1")},[P]);let R=c=>c.split(" ").map(C=>C[0]).join("").toUpperCase(),T=()=>g==="loading"?(0,We.jsxs)(W,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,We.jsx)(y.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):g==="success"?(0,We.jsxs)(W,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,We.jsx)(y.Check,{className:"h-3 w-3"}),"Deleted"]}):g==="error"?(0,We.jsxs)(W,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,We.jsx)(y.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,We.jsxs)(W,{onClick:l,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:s||f,children:[(0,We.jsx)(y.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,We.jsxs)("div",{className:"flex flex-col h-full",children:[(0,We.jsxs)("div",{className:"space-y-4",style:{opacity:s?.6:1},children:[(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Status"}),(0,We.jsx)(se,{label:"",value:e.status,onValueChange:c=>a("status",c),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Type"}),(0,We.jsx)(re,{type:"single",value:e.type||"",onValueChange:c=>c&&a("type",c),className:"grid grid-cols-2 gap-1",disabled:s,children:Jt.map(c=>{let C=c.icon;return(0,We.jsxs)(oe,{value:c.value,className:"flex items-center gap-1 text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:s,children:[(0,We.jsx)(C,{className:"h-3 w-3"}),c.label]},c.value)})})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,We.jsx)(re,{type:"single",value:e.priority||"",onValueChange:c=>c&&a("priority",c),className:"grid grid-cols-3 gap-1",disabled:s,children:Ut.map(c=>(0,We.jsx)(oe,{value:c.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:s,children:c.label},c.value))})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,We.jsx)("input",{type:"number",min:"1",max:"100",value:P||1,onChange:c=>{let C=Number(c.target.value);C<1?S(1):C>100?S(100):S(C)},className:"w-full h-8 px-2 text-xs border border-border rounded-md focus:outline-none focus:ring-2 focus:ring-ring focus:border-transparent bg-background text-foreground disabled:opacity-50 disabled:cursor-not-allowed",disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,We.jsx)(se,{label:"",value:ye(e.epic).toString(),onValueChange:c=>a("epic",c),options:(t||[]).map(c=>({value:c.id.toString(),label:c?.name,color:c.color})),showColor:!0,disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,We.jsx)(se,{label:"",value:ye(e.sprint).toString()||"none",onValueChange:c=>a("sprint",c==="none"?"":c),options:[{value:"none",label:"No Sprint"},...(r||[]).map(c=>({value:c.id.toString(),label:`${c?.name}`}))],disabled:s})]}),(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(I,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,We.jsx)(tt,{label:"",value:e.assignee?.value?.name,onValueChange:c=>a("assignee",c),options:k.map(c=>({value:`${typeof c.email=="string"?"users":"digital-colleagues"}:${c.id}`,label:c?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:s})]})]}),(0,We.jsxs)("div",{className:"mt-auto pt-4 space-y-4",children:[(0,We.jsxs)("div",{className:"space-y-2",children:[(0,We.jsx)(W,{onClick:n,variant:"outline",className:"w-full h-8 text-xs",disabled:s||f,children:"Close"}),T()]}),(0,We.jsxs)("div",{className:"pt-4 border-t border-border space-y-2",children:[(0,We.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(y.User,{className:"h-3 w-3"}),(0,We.jsx)("span",{children:"System"})]})]}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(y.Calendar,{className:"h-3 w-3"}),(0,We.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,We.jsxs)("div",{className:"flex items-center justify-between",children:[(0,We.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,We.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,We.jsx)(y.Clock,{className:"h-3 w-3"}),(0,We.jsxs)("span",{children:[new Date(o).toLocaleDateString()," at"," ",new Date(o).toLocaleTimeString()]})]})]})]})]})]})};0&&(module.exports={TaskSidebar});
@@ -1 +1 @@
1
- import{a}from"../../chunk-XNEPSYCO.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TaskSidebar};
1
+ import{a}from"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-EZC3YWSQ.mjs";import"../../chunk-UVHMI3PU.mjs";import"../../chunk-E4TE4NV6.mjs";import"../../chunk-JFFTEK6Z.mjs";import"../../chunk-YFAZQYK4.mjs";import"../../chunk-TVZOULLL.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as TaskSidebar};
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type Reminder, type DigitalColleague } from '../Foundary/types';
2
+ import { type Reminder, type Colleague } from '../Foundary/types';
3
3
  export interface TasksViewProps {
4
4
  initialReminders?: Reminder[];
5
- initialColleagues?: DigitalColleague[];
5
+ initialColleagues?: Colleague[];
6
6
  onAddReminder?: (reminder: Omit<Reminder, 'id' | 'createdAt'>) => void;
7
7
  onUpdateReminder?: (reminderId: string, updates: Partial<Reminder>) => void;
8
8
  onDeleteReminder?: (reminderId: string) => void;