cortex-react-components 2.13.10 → 2.13.12

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 (141) hide show
  1. package/dist/{chunk-ANCSWAD7.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-QILFMWE5.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-UPRS7OYQ.mjs → chunk-2UNIT7NC.mjs} +1 -1
  4. package/dist/{chunk-33CHGT4N.mjs → chunk-4SRUEQTP.mjs} +1 -1
  5. package/dist/{chunk-USGRM22Y.mjs → chunk-6PS55VJZ.mjs} +1 -1
  6. package/dist/{chunk-3EGSOIRH.mjs → chunk-7OMPPFGG.mjs} +1 -1
  7. package/dist/{chunk-CTC6WSB6.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  8. package/dist/{chunk-DKRRVTCV.mjs → chunk-CJDUN6R4.mjs} +1 -1
  9. package/dist/{chunk-RMGDXYJO.mjs → chunk-DXE6AGJX.mjs} +1 -1
  10. package/dist/{chunk-IKZZNNKD.mjs → chunk-EJC6FIQT.mjs} +1 -1
  11. package/dist/{chunk-YPSUDHCJ.mjs → chunk-F64CA5CH.mjs} +1 -1
  12. package/dist/{chunk-MEVSHOG4.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  13. package/dist/{chunk-M5QUXKCF.mjs → chunk-FMV74RKL.mjs} +1 -1
  14. package/dist/{chunk-MFUZNS7C.mjs → chunk-FYQBRCQM.mjs} +1 -1
  15. package/dist/{chunk-HLTP3ZQN.mjs → chunk-GAZHKHGB.mjs} +1 -1
  16. package/dist/{chunk-MGSTQLZC.mjs → chunk-GETYSIZV.mjs} +1 -1
  17. package/dist/{chunk-GO42W2BM.mjs → chunk-HDKHF3EA.mjs} +1 -1
  18. package/dist/{chunk-VQBOJHZF.mjs → chunk-HKMNAXLM.mjs} +1 -1
  19. package/dist/chunk-JXQRVEQB.mjs +4 -0
  20. package/dist/{chunk-DX3G3FKT.mjs → chunk-KZAYLEFB.mjs} +1 -1
  21. package/dist/chunk-L3V5YDPH.mjs +1 -0
  22. package/dist/chunk-L5NPH5RX.mjs +1 -0
  23. package/dist/{chunk-ESPA7NWT.mjs → chunk-MDBYZZXI.mjs} +1 -1
  24. package/dist/{chunk-YWRU7OE3.mjs → chunk-MO4HRQEL.mjs} +1 -1
  25. package/dist/{chunk-OXKN6X62.mjs → chunk-OQCMTGML.mjs} +1 -1
  26. package/dist/{chunk-R33MOMFK.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  27. package/dist/{chunk-JNJJAJPI.mjs → chunk-PNUBVBSR.mjs} +1 -1
  28. package/dist/{chunk-RMZLEIRP.mjs → chunk-PTZT4QJW.mjs} +1 -1
  29. package/dist/{chunk-U2WF6H6D.mjs → chunk-QQFIVSBW.mjs} +1 -1
  30. package/dist/{chunk-W2UVMIWN.mjs → chunk-R5SXUWYU.mjs} +1 -1
  31. package/dist/{chunk-CCJJAUGB.mjs → chunk-R6AYIVIR.mjs} +1 -1
  32. package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
  33. package/dist/{chunk-VL7AXCXD.mjs → chunk-T4WMPKZZ.mjs} +1 -1
  34. package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
  35. package/dist/{chunk-6EKGV4I2.mjs → chunk-U3FYDDE2.mjs} +1 -1
  36. package/dist/chunk-UM57PWI7.mjs +1 -0
  37. package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
  38. package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
  39. package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
  40. package/dist/{chunk-VPAJF7N2.mjs → chunk-VV6ZNJS7.mjs} +1 -1
  41. package/dist/chunk-Y4TDZUJM.mjs +4 -0
  42. package/dist/components/Blocks/Banner.mjs +1 -1
  43. package/dist/components/Blocks/CallToAction.mjs +1 -1
  44. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  45. package/dist/components/Blocks/Content.mjs +1 -1
  46. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  47. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  48. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  49. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  50. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  51. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  52. package/dist/components/Blocks/index.mjs +1 -1
  53. package/dist/components/Cards/ContentCard.mjs +1 -1
  54. package/dist/components/Cards/FeatureCard.mjs +1 -1
  55. package/dist/components/Cards/index.mjs +1 -1
  56. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  57. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  58. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  59. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  60. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  61. package/dist/components/DigitalColleagues/index.js +1 -1
  62. package/dist/components/DigitalColleagues/index.mjs +1 -1
  63. package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
  64. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  65. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  66. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  67. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  68. package/dist/components/Foundary/Views/index.js +1 -1
  69. package/dist/components/Foundary/Views/index.mjs +1 -1
  70. package/dist/components/Foundary/index.js +1 -1
  71. package/dist/components/Foundary/index.mjs +1 -1
  72. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  73. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  74. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  75. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  76. package/dist/components/Heros/RenderHero.mjs +1 -1
  77. package/dist/components/Heros/index.mjs +1 -1
  78. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  79. package/dist/components/Layouts/Print.mjs +1 -1
  80. package/dist/components/Layouts/SlideShow.mjs +1 -1
  81. package/dist/components/Layouts/index.mjs +1 -1
  82. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  83. package/dist/components/Payload/Media/index.mjs +1 -1
  84. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  85. package/dist/components/Payload/RichText/index.mjs +1 -1
  86. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  87. package/dist/components/Payload/index.mjs +1 -1
  88. package/dist/components/Projects/AddEpicModal.d.ts +1 -1
  89. package/dist/components/Projects/AddEpicModal.js +1 -1
  90. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  91. package/dist/components/Projects/EpicsView.d.ts +1 -1
  92. package/dist/components/Projects/EpicsView.js +1 -1
  93. package/dist/components/Projects/EpicsView.mjs +1 -1
  94. package/dist/components/Projects/FileView.js +1 -1
  95. package/dist/components/Projects/FileView.mjs +1 -1
  96. package/dist/components/Projects/KanbanBoardView.d.ts +3 -3
  97. package/dist/components/Projects/KanbanBoardView.js +1 -1
  98. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  99. package/dist/components/Projects/ProjectPage.js +1 -1
  100. package/dist/components/Projects/ProjectPage.mjs +1 -1
  101. package/dist/components/Projects/ProjectView.d.ts +1 -1
  102. package/dist/components/Projects/ProjectView.js +1 -1
  103. package/dist/components/Projects/ProjectView.mjs +1 -1
  104. package/dist/components/Projects/TaskDetailsModal.d.ts +2 -2
  105. package/dist/components/Projects/TaskDetailsModal.js +1 -1
  106. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  107. package/dist/components/Projects/file-list.js +1 -1
  108. package/dist/components/Projects/file-list.mjs +1 -1
  109. package/dist/components/Projects/index.js +1 -1
  110. package/dist/components/Projects/index.mjs +1 -1
  111. package/dist/components/dc-temp/index.js +1 -1
  112. package/dist/components/dc-temp/index.mjs +1 -1
  113. package/dist/components/index.js +11 -11
  114. package/dist/components/index.mjs +1 -1
  115. package/dist/index.js +15 -15
  116. package/dist/index.mjs +1 -1
  117. package/dist/metafile-cjs.json +1 -1
  118. package/dist/metafile-esm.json +1 -1
  119. package/dist/pages/Blog.mjs +1 -1
  120. package/dist/pages/IndexPage.mjs +1 -1
  121. package/dist/pages/Intranet.mjs +1 -1
  122. package/dist/pages/LandingPage.mjs +1 -1
  123. package/dist/pages/Page.mjs +1 -1
  124. package/dist/pages/Publish.mjs +1 -1
  125. package/dist/pages/Website.mjs +1 -1
  126. package/dist/sections/AboutSection.mjs +1 -1
  127. package/dist/sections/BlogDetail.mjs +1 -1
  128. package/dist/sections/BlogList.mjs +1 -1
  129. package/dist/sections/ContactSection.mjs +1 -1
  130. package/dist/sections/PageSections.mjs +1 -1
  131. package/dist/sections/PricingSection.mjs +1 -1
  132. package/dist/sections/ServiceDetail.mjs +1 -1
  133. package/dist/sections/ServiceDetailSection.mjs +1 -1
  134. package/dist/sections/ServiceSection.mjs +1 -1
  135. package/dist/sections/index.mjs +1 -1
  136. package/package.json +1 -1
  137. package/dist/chunk-6R36YTGY.mjs +0 -1
  138. package/dist/chunk-CBRUFCI3.mjs +0 -1
  139. package/dist/chunk-DSSHQ6K7.mjs +0 -4
  140. package/dist/chunk-KSRDC26N.mjs +0 -4
  141. package/dist/chunk-XWDRWOIG.mjs +0 -1
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";var wo=Object.create;var Qe=Object.defineProperty;var So=Object.getOwnPropertyDescriptor;var No=Object.getOwnPropertyNames;var Co=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty;var ko=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},wt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of No(t))!To.call(e,s)&&s!==o&&Qe(e,s,{get:()=>t[s],enumerable:!(r=So(t,s))||r.enumerable});return e};var W=(e,t,o)=>(o=e!=null?wo(Co(e)):{},wt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),Po=e=>wt(Qe({},"__esModule",{value:!0}),e);var Cr={};ko(Cr,{KanbanBoardView:()=>Nr});module.exports=Po(Cr);var B=require("react");var Et=require("class-variance-authority");var At=require("clsx");var ct="-",Ro=e=>{let t=Ao(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(ct);return a[0]===""&&a.length!==1&&a.shift(),Ct(a,t)||Do(l)},getConflictingClassGroupIds:(l,a)=>{let m=o[l]||[];return a&&r[l]?[...m,...r[l]]:m}}},Ct=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?Ct(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(ct);return t.validators.find(({validator:l})=>l(i))?.classGroupId},St=/^\[(.+)\]$/,Do=e=>{if(St.test(e)){let t=St.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ao=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Lo(Object.entries(e.classGroups),o).forEach(([i,l])=>{lt(l,r,i,t)}),r},lt=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:Nt(t,s);i.classGroupId=o;return}if(typeof s=="function"){if(Eo(s)){lt(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,l])=>{lt(l,Nt(t,i),o,r)})})},Nt=(e,t)=>{let o=e;return t.split(ct).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Eo=e=>e.isThemeGetter,Lo=(e,t)=>t?e.map(([o,r])=>{let s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[t+l,a])):i);return[o,s]}):e,Io=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(i,l)=>{o.set(i,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let l=o.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return s(i,l),l},set(i,l){o.has(i)?o.set(i,l):s(i,l)}}},Tt="!",Mo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],i=t.length,l=a=>{let m=[],d=0,n=0,c;for(let g=0;g<a.length;g++){let z=a[g];if(d===0){if(z===s&&(r||a.slice(g,g+i)===t)){m.push(a.slice(n,g)),n=g+i;continue}if(z==="/"){c=g;continue}}z==="["?d++:z==="]"&&d--}let S=m.length===0?a:a.substring(n),C=S.startsWith(Tt),v=C?S.substring(1):S,k=c&&c>n?c-n:void 0;return{modifiers:m,hasImportantModifier:C,baseClassName:v,maybePostfixModifierPosition:k}};return o?a=>o({className:a,parseClassName:l}):l},Bo=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},zo=e=>({cache:Io(e.cacheSize),parseClassName:Mo(e),...Ro(e)}),Vo=/\s+/,Oo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],l=e.trim().split(Vo),a="";for(let m=l.length-1;m>=0;m-=1){let d=l[m],{modifiers:n,hasImportantModifier:c,baseClassName:S,maybePostfixModifierPosition:C}=o(d),v=!!C,k=r(v?S.substring(0,C):S);if(!k){if(!v){a=d+(a.length>0?" "+a:a);continue}if(k=r(S),!k){a=d+(a.length>0?" "+a:a);continue}v=!1}let g=Bo(n).join(":"),z=c?g+Tt:g,U=z+k;if(i.includes(U))continue;i.push(U);let f=s(k,v);for(let I=0;I<f.length;++I){let se=f[I];i.push(z+se)}a=d+(a.length>0?" "+a:a)}return a};function Ho(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=kt(t))&&(r&&(r+=" "),r+=o);return r}var kt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=kt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Go(e,...t){let o,r,s,i=l;function l(m){let d=t.reduce((n,c)=>c(n),e());return o=zo(d),r=o.cache.get,s=o.cache.set,i=a,a(m)}function a(m){let d=r(m);if(d)return d;let n=Oo(m,o);return s(m,n),n}return function(){return i(Ho.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Pt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fo=/^\d+\/\d+$/,Uo=new Set(["px","full","screen"]),$o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_o=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ce=e=>ze(e)||Uo.has(e)||Fo.test(e),ve=e=>Ve(e,"length",tr),ze=e=>!!e&&!Number.isNaN(Number(e)),nt=e=>Ve(e,"number",ze),We=e=>!!e&&Number.isInteger(Number(e)),Jo=e=>e.endsWith("%")&&ze(e.slice(0,-1)),w=e=>Pt.test(e),he=e=>$o.test(e),qo=new Set(["length","size","percentage"]),Xo=e=>Ve(e,qo,Rt),Zo=e=>Ve(e,"position",Rt),Qo=new Set(["image","url"]),Yo=e=>Ve(e,Qo,rr),er=e=>Ve(e,"",or),je=()=>!0,Ve=(e,t,o)=>{let r=Pt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},tr=e=>Wo.test(e)&&!jo.test(e),Rt=()=>!1,or=e=>Ko.test(e),rr=e=>_o.test(e);var ar=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),r=R("brightness"),s=R("borderColor"),i=R("borderRadius"),l=R("borderSpacing"),a=R("borderWidth"),m=R("contrast"),d=R("grayscale"),n=R("hueRotate"),c=R("invert"),S=R("gap"),C=R("gradientColorStops"),v=R("gradientColorStopPositions"),k=R("inset"),g=R("margin"),z=R("opacity"),U=R("padding"),f=R("saturate"),I=R("scale"),se=R("sepia"),ne=R("skew"),ge=R("space"),fe=R("translate"),le=()=>["auto","contain","none"],be=()=>["auto","hidden","clip","visible","scroll"],Ie=()=>["auto",w,t],x=()=>[w,t],K=()=>["",ce,ve],$=()=>["auto",ze,w],$e=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["start","end","center","between","around","evenly","stretch"],Be=()=>["","0",w],Xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[ze,w];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[ce,ve],blur:["none","",he,w],brightness:re(),borderColor:[e],borderRadius:["none","","full",he,w],borderSpacing:x(),borderWidth:K(),contrast:re(),grayscale:Be(),hueRotate:re(),invert:Be(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Jo,ve],inset:Ie(),margin:Ie(),opacity:re(),padding:x(),saturate:re(),scale:re(),sepia:Be(),skew:re(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[he]}],"break-after":[{"break-after":Xe()}],"break-before":[{"break-before":Xe()}],"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(),w]}],overflow:[{overflow:be()}],"overflow-x":[{"overflow-x":be()}],"overflow-Lt":[{"overflow-Lt":be()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-Lt":[{"overscroll-Lt":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-Lt":[{"inset-Lt":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,w]}],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",w]}],grow:[{grow:Be()}],shrink:[{shrink:Be()}],order:[{order:["first","last","none",We,w]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,w]},w]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,w]},w]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-Lt":[{"gap-Lt":[S]}],"justify-content":[{justify:["normal",...Me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Lt:[{Lt:[U]}],px:[{px:[U]}],py:[{py:[U]}],ps:[{ps:[U]}],pe:[{pe:[U]}],pt:[{pt:[U]}],pr:[{pr:[U]}],pb:[{pb:[U]}],pl:[{pl:[U]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],Lt:[{Lt:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-Lt":[{"space-Lt":[ge]}],"space-Lt-reverse":["space-Lt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,t]}],"min-w":[{"min-w":[w,t,"min","max","fit"]}],"max-w":[{"max-w":[w,t,"none","full","min","max","fit","prose",{screen:[he]},he]}],h:[{h:[w,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,t,"auto","min","max","fit"]}],"font-size":[{text:["base",he,ve]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",nt]}],"font-family":[{font:[je]}],"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",w]}],"line-clamp":[{"line-clamp":["none",ze,nt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ce,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","B-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ce,ve]}],"underline-offset":[{"underline-offset":["auto",ce,w]}],"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:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],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",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$e(),Zo]}],"bg-repeat":[{bg:["B-repeat",{repeat:["","x","Lt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xo]}],"bg-image":[{bg:["none",{"gradient-B":["t","tr","r","br","b","bl","l","tl"]},Yo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-B-pos":[{B:[v]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-B":[{B:[C]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-Lt":[{"border-Lt":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-Lt":[{"divide-Lt":[a]}],"divide-Lt-reverse":["divide-Lt-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-Lt":[{"border-Lt":[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:["",...q()]}],"outline-offset":[{"outline-offset":[ce,w]}],"outline-w":[{outline:[ce,ve]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[ce,ve]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",he,er]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...qe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":qe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",he,w]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[c]}],saturate:[{saturate:[f]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[f]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Lt":[{"border-spacing-Lt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-Lt":[{"scale-Lt":[I]}],rotate:[{rotate:[We,w]}],"translate-x":[{"translate-x":[fe]}],"translate-Lt":[{"translate-Lt":[fe]}],"skew-x":[{"skew-x":[ne]}],"skew-Lt":[{"skew-Lt":[ne]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],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","B-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",w]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Lt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-Lt":[{"scroll-Lt":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-Lt":[{"scroll-Lt":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Lt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Lt":[{"touch-pan":["Lt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ce,ve,nt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Lt"],overscroll:["overscroll-x","overscroll-Lt"],inset:["inset-x","inset-Lt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Lt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Lt"],Lt:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Lt","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-Lt"],"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-Lt":["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-Lt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Lt","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Lt":["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-Lt","touch-pz"],"touch-x":["touch"],"touch-Lt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Dt=Go(ar);function h(...e){return Dt((0,At.clsx)(e))}var Lt=require("react/jsx-runtime"),sr=(0,Et.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 X({className:e,variant:t,...o}){return(0,Lt.jsx)("div",{className:h(sr({variant:t}),e),...o})}var Se=W(require("react"));var Oe=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Oe.displayName="Card";var ir=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("flex flex-col space-Lt-1.5 Lt-6",e),...t}));ir.displayName="CardHeader";var nr=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("font-semibold leading-none tracking-tight",e),...t}));nr.displayName="CardTitle";var lr=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("text-sm text-muted-foreground",e),...t}));lr.displayName="CardDescription";var cr=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("Lt-6 pt-0",e),...t}));cr.displayName="CardContent";var dr=Se.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)("div",{ref:o,className:h("flex items-center Lt-6 pt-0",e),...t}));dr.displayName="CardFooter";var It=({title:e,status:t,taskCount:o,children:r,onDrop:s,isCompact:i=!1,height:l})=>{let a=n=>{n.preventDefault()},m=n=>{n.preventDefault(),s(t)};return(0,Lt.jsxs)(Oe,{className:`Lt-4 bg-card border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col ${i?"lg:max-w-xs":""}`,style:{height:l||"calc(100vh - 350px)"},onDragOver:a,onDrop:m,children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Lt.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${i?"text-base":"text-lg"}`,children:e}),(0,Lt.jsx)(X,{variant:"secondary",className:"bg-muted text-muted-foreground",children:o})]}),(0,Lt.jsx)("div",{className:"flex-1 overflow-Lt-auto space-Lt-4 min-h-0",children:r})]})};var Z=require("lucide-react"),dt=({task:e,epic:t,onDragStart:o,onTaskClick:r,isCompact:s=!1})=>{let i=n=>{o(e)},l=()=>{r(e)},a=()=>{switch(e.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},m=()=>{switch(e.type){case"story":return(0,Lt.jsx)(Z.BookOpen,{className:"h-3 w-3"});case"bug":return(0,Lt.jsx)(Z.Bug,{className:"h-3 w-3"});case"spike":return(0,Lt.jsx)(Z.Zap,{className:"h-3 w-3"});case"task":default:return(0,Lt.jsx)(Z.AlertCircle,{className:"h-3 w-3"})}},d=()=>{switch(e.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return s?(0,Lt.jsx)(Oe,{className:"Lt-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:i,onClick:l,children:(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${d()}`,children:m()}),(0,Lt.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,Lt.jsxs)(Oe,{className:"Lt-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:i,onClick:l,children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Lt.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${d()}`,children:[m(),(0,Lt.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Lt.jsxs)("div",{className:"flex gap-1",children:[(0,Lt.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${a()}`,children:e.priority}),(0,Lt.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.storyPoints})]})]}),(0,Lt.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,Lt.jsx)("Lt",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Lt.jsx)(Z.User,{className:"h-4 w-4"}),(0,Lt.jsx)("span",{children:e.assignee?.value?.name})]}),(0,Lt.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Lt.jsx)(Z.Calendar,{className:"h-4 w-4"}),(0,Lt.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()})]})]})]})};var Ke=W(require("react")),H=W(require("@radix-ui/react-dialog"));var He=H.Root;var mr=H.Portal;var Bt=Ke.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(H.Overlay,{ref:o,className:h("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}));Bt.displayName=H.Overlay.displayName;var Te=Ke.forwardRef(({className:e,children:t,...o},r)=>(0,Lt.jsxs)(mr,{children:[(0,Lt.jsx)(Bt,{}),(0,Lt.jsxs)(H.Content,{ref:r,className:h("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-Lt-[-50%] gap-4 border bg-background Lt-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-B-left-1/2 data-[state=closed]:slide-out-B-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,Lt.jsxs)(H.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,Lt.jsx)(Z.X,{className:"h-4 w-4"}),(0,Lt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Te.displayName=H.Content.displayName;var ke=({className:e,...t})=>(0,Lt.jsx)("div",{className:h("flex flex-col space-Lt-1.5 text-center sm:text-left",e),...t});ke.displayName="DialogHeader";var _e=({className:e,...t})=>(0,Lt.jsx)("div",{className:h("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_e.displayName="DialogFooter";var Pe=Ke.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(H.Title,{ref:o,className:h("text-lg font-semibold leading-none tracking-tight",e),...t}));Pe.displayName=H.Title.displayName;var pr=Ke.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(H.Description,{ref:o,className:h("text-sm text-muted-foreground",e),...t}));pr.displayName=H.Description.displayName;var zt=require("@radix-ui/react-slot"),Ot=W(require("react")),ur=(0,Et.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"}}}),G=Ot.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},i)=>(0,Lt.jsx)(e?zt.Slot:"button",{className:h(ur({className:t,size:o,variant:r})),ref:i,...s}));G.displayName="Button";var Gt=W(require("react"));var Q=Gt.forwardRef(({className:e,type:t,...o},r)=>(0,Lt.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:r,...o}));Q.displayName="Input";var Ut=W(require("react")),de=Ut.forwardRef(({className:e,...t},o)=>(0,$t.jsx)("textarea",{className:h("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}));de.displayName="Textarea";var N=W(require("@radix-ui/react-select")),ye=W(require("react")),ae=N.Root;var De=N.Value,Y=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Lt.jsxs)(N.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:r,...o,children:[e,(0,Lt.jsx)(N.Icon,{asChild:!0,children:(0,Lt.jsx)(Z.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Y.displayName=N.Trigger.displayName;var Wt=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Lt.jsx)(Z.ChevronUp,{className:"h-4 w-4"})}));Wt.displayName=N.ScrollUpButton.displayName;var jt=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Lt.jsx)(Z.ChevronDown,{className:"h-4 w-4"})}));jt.displayName=N.ScrollDownButton.displayName;var ee=ye.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,Lt.jsx)(N.Portal,{children:(0,Lt.jsxs)(N.Content,{className:h("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-Lt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Lt-1",t),position:o,ref:s,...r,children:[(0,Lt.jsx)(Wt,{}),(0,Lt.jsx)(N.Viewport,{className:h("Lt-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Lt.jsx)(jt,{})]})}));ee.displayName=N.Content.displayName;var gr=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));gr.displayName=N.Label.displayName;var j=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Lt.jsxs)(N.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:r,...o,children:[(0,Lt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Lt.jsx)(N.ItemIndicator,{children:(0,Lt.jsx)(Z.Check,{className:"h-4 w-4"})})}),(0,Lt.jsx)(N.ItemText,{children:e})]}));j.displayName=N.Item.displayName;var fr=ye.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(N.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));fr.displayName=N.Separator.displayName;var Kt=W(require("react")),mt=W(require("@radix-ui/react-label"));var br=(0,Et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),T=Kt.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(mt.Root,{ref:o,className:h(br(),e),...t}));T.displayName=mt.Root.displayName;var Ae=W(require("react")),Ge=W(require("@radix-ui/react-toggle-group"));var qt=W(require("react")),pt=W(require("@radix-ui/react-toggle"));var ut=(0,Et.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"}}),vr=qt.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,Lt.jsx)(pt.Root,{ref:s,className:h(ut({variant:t,size:o,className:e})),...r}));vr.displayName=pt.Root.displayName;var Qt=Ae.createContext({size:"default",variant:"default"}),Ee=Ae.forwardRef(({className:e,variant:t,size:o,children:r,...s},i)=>(0,Lt.jsx)(Ge.Root,{ref:i,className:h("flex items-center justify-center gap-1",e),...s,children:(0,Lt.jsx)(Qt.Provider,{value:{variant:t,size:o},children:r})}));Ee.displayName=Ge.Root.displayName;var Le=Ae.forwardRef(({className:e,children:t,variant:o,size:r,...s},i)=>{let l=Ae.useContext(Qt);return(0,Lt.jsx)(Ge.Item,{ref:i,className:h(ut({variant:l.variant||o,size:l.size||r}),e),...s,children:t})});Le.displayName=Ge.Item.displayName;var hr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:Z.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:Z.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:Z.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:Z.Zap}],yr=[{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"}],Yt=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:s,assignees:i,defaultEpicId:l})=>{let[a,m]=(0,B.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:"",sprint:"none",assignee:""});(0,B.useEffect)(()=>{e&&l&&m(c=>({...c,epic:l}))},[e,l]),(0,B.useEffect)(()=>{e&&m({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:l||"",sprint:"none",assignee:""})},[e]);let d=c=>{c.preventDefault(),a.name.trim()&&(o({name:a.name.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,storyPoints:a.storyPoints,epic:Number(a.epic),sprint:Number(a.sprint),assignee:a.assignee.trim()?{relationTo:"digital-colleagues",value:Number(a.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),m({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:l||"",sprint:"",assignee:""}),t())},n=(c,S)=>{m(C=>({...C,[c]:S}))};return(0,Lt.jsx)(He,{open:e,onOpenChange:t,children:(0,Lt.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Lt.jsx)(ke,{children:(0,Lt.jsx)(Pe,{children:"Add New Task"})}),(0,Lt.jsxs)("form",{onSubmit:d,className:"space-Lt-4",children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"name",children:"Task Title"}),(0,Lt.jsx)(Q,{id:"name",value:a.name,onChange:c=>n("name",c.target.value),placeholder:"Enter task title",required:!0})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"description",children:"Description"}),(0,Lt.jsx)(de,{id:"description",value:a.description,onChange:c=>n("description",c.target.value),placeholder:"Enter task description",rows:3})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Type"}),(0,Lt.jsx)(Ee,{type:"single",value:a.type||"",onValueChange:c=>c&&n("type",c),children:hr.map(c=>{let S=c.icon;return(0,Lt.jsxs)(Le,{value:c.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Lt.jsx)(S,{className:"h-4 w-4"}),c.label]},c.value)})})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Priority"}),(0,Lt.jsx)(Ee,{type:"single",value:a.priority||"",onValueChange:c=>c&&n("priority",c),children:yr.map(c=>(0,Lt.jsx)(Le,{value:c.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:c.label},c.value))})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"points",children:"Story Points"}),(0,Lt.jsx)(Q,{id:"points",type:"number",min:"1",max:"100",value:a.storyPoints,onChange:c=>n("storyPoints",parseInt(c.target.value)||1),placeholder:"Enter story points",required:!0})]}),!l&&(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"epic",children:"Epic"}),(0,Lt.jsxs)(ae,{value:a.epic,onValueChange:c=>n("epic",c),children:[(0,Lt.jsx)(Y,{children:(0,Lt.jsx)(De,{placeholder:"Select an epic"})}),(0,Lt.jsx)(ee,{children:r.map(c=>(0,Lt.jsx)(j,{value:c.id.toString(),children:(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)("div",{className:`w-3 h-3 rounded-full ${c.color}`}),c.name]})},c.id))})]})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Lt.jsxs)(ae,{value:a.sprint,onValueChange:c=>n("sprint",c),children:[(0,Lt.jsx)(Y,{children:(0,Lt.jsx)(De,{placeholder:"Select a sprint"})}),(0,Lt.jsxs)(ee,{children:[(0,Lt.jsx)(j,{value:"none",children:"No Sprint"}),s.map(c=>(0,Lt.jsx)(j,{value:c.id.toString(),children:(0,Lt.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"sprint",children:"Assignee"}),(0,Lt.jsxs)(ae,{value:a.assignee,onValueChange:c=>n("assignee",c),children:[(0,Lt.jsx)(Y,{children:(0,Lt.jsx)(De,{placeholder:"Select an Assignee"})}),(0,Lt.jsxs)(ee,{children:[(0,Lt.jsx)(j,{value:"none",children:"No Assignee"}),i.map(c=>(0,Lt.jsx)(j,{value:c.id.toString(),children:(0,Lt.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Lt.jsxs)(_e,{children:[(0,Lt.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Lt.jsx)(G,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var ft=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:s,className:i="",disabled:l=!1})=>{let[a,m]=(0,B.useState)(!1),[d,n]=(0,B.useState)(""),c=()=>{l||(m(!0),n(t))},S=async()=>{d!==t&&await s(e,d),m(!1)},C=v=>{v.key==="Enter"&&!r||v.key==="Enter"&&v.ctrlKey&&r?S():v.key==="Escape"&&(m(!1),n(""))};return(0,Lt.jsxs)("div",{className:`space-Lt-2 ${i}`,children:[(0,Lt.jsx)(T,{children:o}),a?r?(0,Lt.jsx)(de,{value:d,onChange:v=>n(v.target.value),onBlur:S,onKeyDown:C,autoFocus:!0,rows:4,className:"resize-none"}):(0,Lt.jsx)(Q,{value:d,onChange:v=>n(v.target.value),onBlur:S,onKeyPress:C,autoFocus:!0,className:"text-lg font-medium"}):(0,Lt.jsxs)("div",{onClick:c,className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 Lt-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,Lt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click B edit..."}),!l&&(0,Lt.jsx)(Z.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var et=W(require("react")),pe=W(require("@radix-ui/react-avatar"));var bt=et.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(pe.Root,{ref:o,className:h("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));bt.displayName=pe.Root.displayName;var xr=et.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(pe.Image,{ref:o,className:h("aspect-square h-full w-full",e),...t}));xr.displayName=pe.Image.displayName;var vt=et.forwardRef(({className:e,...t},o)=>(0,Lt.jsx)(pe.Fallback,{ref:o,className:h("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));vt.displayName=pe.Fallback.displayName;var oo=({comments:e,onAddComment:t})=>{let[o,r]=(0,B.useState)(""),s=l=>l.split(" ").map(a=>a[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Lt.jsxs)("div",{className:"space-Lt-4",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)(Z.MessageSquare,{className:"h-5 w-5"}),(0,Lt.jsx)(T,{className:"text-lg font-medium",children:"Comments"}),(0,Lt.jsx)(X,{variant:"secondary",children:e.length})]}),(0,Lt.jsx)("div",{className:"space-Lt-4 max-h-60 overflow-Lt-auto",children:e.map(l=>(0,Lt.jsxs)("div",{className:"flex gap-3 Lt-3 bg-muted/50 rounded-lg",children:[(0,Lt.jsx)(bt,{className:"h-8 w-8 mt-1",children:(0,Lt.jsx)(vt,{className:"text-xs bg-muted text-muted-foreground",children:s(l.author)})}),(0,Lt.jsxs)("div",{className:"flex-1",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Lt.jsx)("span",{className:"font-medium text-sm",children:l.author}),(0,Lt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[l.createdAt.toLocaleDateString()," B ",l.createdAt.toLocaleTimeString()]})]}),(0,Lt.jsx)("Lt",{className:"text-sm text-muted-foreground",children:l.text})]})]},l.id))}),(0,Lt.jsxs)("div",{className:"flex gap-2",children:[(0,Lt.jsx)(de,{value:o,onChange:l=>r(l.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Lt.jsx)(G,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Lt.jsx)(Z.Send,{className:"h-4 w-4"})})]})]})};var rt=({label:e,value:t,onValueChange:o,options:r,showColor:s=!1,disabled:i=!1})=>{let[l,a]=(0,B.useState)(!1),m=r.find(n=>n.value===t);return(0,Lt.jsxs)("div",{className:"space-Lt-1",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:e}),(0,Lt.jsxs)(ae,{value:t,onValueChange:o,open:l,onOpenChange:n=>{i||a(n)},disabled:i,children:[(0,Lt.jsx)(Y,{className:"h-auto Lt-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Lt.jsxs)(X,{variant:"secondary",className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!i&&a(!l),children:[s&&m?.color&&(0,Lt.jsx)("div",{className:`w-2 h-2 rounded-full ${m.color} mr-1`}),m?.label||"Select..."]})}),(0,Lt.jsx)(ee,{children:r.map(n=>(0,Lt.jsx)(j,{value:n.value,children:s&&n.color?(0,Lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Lt.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.label]}):n.label},n.value))})]})]})};var ao=({label:e,value:t,onValueChange:o,options:r,placeholder:s="Search...",allowCustomValue:i=!1,disabled:l=!1})=>{let[a,m]=(0,B.useState)(!1),[d,n]=(0,B.useState)(""),c=r.find(g=>g.value===t),S=r.filter(g=>g.label.toLowerCase().includes(d.toLowerCase())),C=g=>{o(g),m(!1),n("")},v=()=>{i&&d.trim()&&!r.find(g=>g.value===d.trim())&&(o(d.trim()),m(!1),n(""))};return(0,Lt.jsxs)("div",{className:"space-Lt-1",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:e}),(0,Lt.jsxs)(ae,{value:t,onValueChange:C,open:a,onOpenChange:g=>{l||m(g)},disabled:l,children:[(0,Lt.jsx)(Y,{className:"h-auto Lt-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Lt.jsx)(X,{variant:"secondary",className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!l&&m(!a),children:c?.label||t||"Select..."})}),(0,Lt.jsxs)(ee,{children:[(0,Lt.jsx)("div",{className:"Lt-2",children:(0,Lt.jsx)(Q,{placeholder:s,value:d,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&i&&v()},className:"mb-2"})}),S.map(g=>(0,Lt.jsx)(j,{value:g.value,children:g.label},g.value)),i&&d.trim()&&!S.find(g=>g.value===d.trim())&&(0,Lt.jsxs)(j,{value:d.trim(),children:['Add "',d.trim(),'"']})]})]})]})};var Fe=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var wr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:Z.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:Z.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:Z.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:Z.Zap}],Sr=[{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 so=({task:e,epics:t,sprints:o,lastUpdated:r,onUpdateTask:s,onClose:i,onDelete:l,isUpdating:a=!1,isDeleting:m=!1,deleteState:d="idle",teamMembers:n})=>{let[c,S]=(0,B.useState)(e.storyPoints),C=(0,B.useRef)(null),[v,k]=(0,B.useState)(n);(0,B.useEffect)(()=>{k(n)},[n]);let g=(0,B.useCallback)((f,I)=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{s(f,I)},500)},[s]);(0,B.useEffect)(()=>{g("storyPoints",c?.toString()||"1")},[c]);let z=f=>f.split(" ").map(I=>I[0]).join("").toUpperCase(),U=()=>d==="loading"?(0,Lt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Lt.jsx)(Z.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?(0,Lt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Lt.jsx)(Z.Check,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?(0,Lt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Lt.jsx)(Z.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,Lt.jsxs)(G,{onClick:l,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:a||m,children:[(0,Lt.jsx)(Z.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,Lt.jsxs)("div",{className:"flex flex-col h-full",children:[(0,Lt.jsxs)("div",{className:"space-Lt-4",style:{opacity:a?.6:1},children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Lt.jsx)(rt,{label:"",value:e.status,onValueChange:f=>s("status",f),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:a})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Lt.jsx)(Ee,{type:"single",value:e.type||"",onValueChange:f=>f&&s("type",f),className:"grid grid-cols-2 gap-1",disabled:a,children:wr.map(f=>{let I=f.icon;return(0,Lt.jsxs)(Le,{value:f.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:a,children:[(0,Lt.jsx)(I,{className:"h-3 w-3"}),f.label]},f.value)})})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Lt.jsx)(Ee,{type:"single",value:e.priority||"",onValueChange:f=>f&&s("priority",f),className:"grid grid-cols-3 gap-1",disabled:a,children:Sr.map(f=>(0,Lt.jsx)(Le,{value:f.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:f.label},f.value))})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Lt.jsx)("input",{type:"number",min:"1",max:"100",value:c||1,onChange:f=>{let I=Number(f.target.value);I<1?S(1):I>100?S(100):S(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:a})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Lt.jsx)(rt,{label:"",value:Fe(e.epic).toString(),onValueChange:f=>s("epic",f),options:(t||[]).map(f=>({value:f.id.toString(),label:f?.name,color:f.color})),showColor:!0,disabled:a})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Lt.jsx)(rt,{label:"",value:Fe(e.sprint).toString()||"none",onValueChange:f=>s("sprint",f==="none"?"":f),options:[{value:"none",label:"No Sprint"},...(o||[]).map(f=>({value:f.id.toString(),label:`${f?.name}`}))],disabled:a})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Lt.jsx)(ao,{label:"",value:e.assignee?.value?.name,onValueChange:f=>s("assignee",f),options:v.map(f=>({value:`${typeof f.email=="string"?"users":"digital-colleagues"}:${f.id}`,label:f?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:a})]})]}),(0,Lt.jsxs)("div",{className:"mt-auto pt-4 space-Lt-4",children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(G,{onClick:i,variant:"outline",className:"w-full h-8 text-xs",disabled:a||m,children:"Close"}),U()]}),(0,Lt.jsxs)("div",{className:"pt-4 border-t border-border space-Lt-2",children:[(0,Lt.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Lt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Lt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Lt.jsx)(Z.User,{className:"h-3 w-3"}),(0,Lt.jsx)("span",{children:"System"})]})]}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Lt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Lt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Lt.jsx)(Z.Calendar,{className:"h-3 w-3"}),(0,Lt.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Lt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Lt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Lt.jsx)(Z.Clock,{className:"h-3 w-3"}),(0,Lt.jsxs)("span",{children:[new Date(r).toLocaleDateString()," B"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var io=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:s,onUpdateTask:i,onDeleteTask:l,onAddComment:a,colleagues:m})=>{let[d,n]=(0,B.useState)(o),[c,S]=(0,B.useState)(new Date),[C,v]=(0,B.useState)("idle"),[k,g]=(0,B.useState)("idle"),[z,U]=(0,B.useState)([]),[f,I]=(0,B.useState)(m);(0,B.useEffect)(()=>{n(o)},[o]);let se=async(x,K)=>{if(K!==d[x]){v("loading");try{let $=await i(d.id.toString(),{[x]:K});n($),S(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch($){console.log("error",$),v("error"),setTimeout(()=>v("idle"),3e3)}}},ne=async(x,K)=>{if(K!==d[x]){v("loading");try{let $=await i(d.id.toString(),{[x]:K});n($),S(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch($){console.log("error",$),v("error"),setTimeout(()=>v("idle"),3e3)}}},ge=async x=>{if(a){v("loading");try{let K=await a?.({content:x,taskId:d.id.toString()});n(K),S(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}}},fe=async()=>{g("loading");try{await l(d.id.toString()),g("success"),setTimeout(()=>{t(),g("idle")},1e3)}catch{g("error"),setTimeout(()=>g("idle"),3e3)}},le=C!=="loading"&&k!=="loading",be=()=>{le&&t()},Ie=()=>C==="loading"?(0,Lt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Lt.jsx)(Z.Loader2,{className:"h-4 w-4 animate-spin"}),(0,Lt.jsx)("span",{children:"Updating..."})]}):C==="success"?(0,Lt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Lt.jsx)(Z.Check,{className:"h-4 w-4"}),(0,Lt.jsx)("span",{children:"Updated successfully"})]}):C==="error"?(0,Lt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Lt.jsx)(Z.X,{className:"h-4 w-4"}),(0,Lt.jsx)("span",{children:"Update failed"})]}):null;return(0,Lt.jsx)(He,{open:e,onOpenChange:be,children:(0,Lt.jsxs)(Te,{className:"max-w-3xl max-h-[80vh] overflow-Lt-auto Lt-4",children:[(0,Lt.jsxs)(ke,{children:[(0,Lt.jsx)(Pe,{className:"sr-only",children:d.name}),(0,Lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Lt.jsx)("div",{className:"flex-1",children:Ie()}),!le&&(0,Lt.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Lt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Lt.jsxs)("div",{className:"lg:col-span-2 space-Lt-4",children:[(0,Lt.jsx)(ft,{fieldName:"name",value:d.name||"",label:"",onSave:se,className:"border-b border-border pb-3",disabled:C==="loading"}),(0,Lt.jsx)(ft,{fieldName:"description",value:d.description||"",label:"Description",multiline:!0,onSave:se,disabled:C==="loading"}),(0,Lt.jsx)(oo,{comments:(d?.comments||[]).map(x=>({author:x.author.value.name||"",createdAt:new Date(x.timestamp),text:x.text,id:x.id||""})),onAddComment:ge})]}),(0,Lt.jsx)(so,{task:d,epics:r,sprints:s,lastUpdated:c,onUpdateTask:ne,onClose:be,onDelete:fe,isUpdating:C==="loading",isDeleting:k==="loading",deleteState:k,teamMembers:f})]})]})})};var lo=({isOpen:e,onClose:t,onAddEpic:o})=>{let[r,s]=(0,B.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),i=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],l=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],a=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],m=n=>{n.preventDefault(),r.name.trim()&&(o({name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:r.startDate,endDate:r.endDate,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}),s({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString(),endDate:new Date().toISOString(),progress:0}),t())},d=(n,c)=>{s(S=>({...S,[n]:c}))};return(0,Lt.jsx)(He,{open:e,onOpenChange:t,children:(0,Lt.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Lt.jsx)(ke,{children:(0,Lt.jsx)(Pe,{children:"Add New Epic"})}),(0,Lt.jsxs)("form",{onSubmit:m,className:"space-Lt-4",children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"name",children:"Epic Name"}),(0,Lt.jsx)(Q,{id:"name",value:r.name,onChange:n=>d("name",n.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{htmlFor:"description",children:"Description"}),(0,Lt.jsx)(de,{id:"description",value:r.description,onChange:n=>d("description",n.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Color"}),(0,Lt.jsx)("div",{className:"flex gap-2 flex-wrap",children:i.map(n=>(0,Lt.jsx)("button",{type:"button",onClick:()=>d("color",n),className:`w-8 h-8 rounded-full ${n} ${r.color===n?"ring-2 ring-gray-400":""}`},n))})]}),(0,Lt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Confidence"}),(0,Lt.jsxs)(ae,{value:r.confidence,onValueChange:n=>d("confidence",n),children:[(0,Lt.jsx)(Y,{children:(0,Lt.jsx)(De,{})}),(0,Lt.jsx)(ee,{children:l.map(n=>(0,Lt.jsx)(j,{value:n.value,children:n.label},n.value))})]})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Phase"}),(0,Lt.jsxs)(ae,{value:r.phase.toString(),onValueChange:n=>d("phase",parseInt(n)),children:[(0,Lt.jsx)(Y,{children:(0,Lt.jsx)(De,{})}),(0,Lt.jsx)(ee,{children:a.map(n=>(0,Lt.jsx)(j,{value:n.value.toString(),children:n.label},n.value))})]})]})]}),(0,Lt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"Start Date"}),(0,Lt.jsx)(Q,{type:"date",value:r.startDate,onChange:n=>d("startDate",n.target.value)})]}),(0,Lt.jsxs)("div",{className:"space-Lt-2",children:[(0,Lt.jsx)(T,{children:"End Date"}),(0,Lt.jsx)(Q,{type:"date",value:r.endDate,onChange:n=>d("endDate",n.target.value)})]})]}),(0,Lt.jsxs)(_e,{children:[(0,Lt.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Lt.jsx)(G,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var mo=require("motion/react");function co(e,t){let[o,r]=(0,B.useState)(()=>{if(typeof window>"Lt")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),s=i=>{try{r(i),typeof window<"Lt"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,B.useEffect)(()=>{s(o)},[]),[o,s]}var st=require("react-icons/fa");function po({title:e,description:t,badge:o,primaryAction:r,secondaryAction:s,gradient:i,children:l,className:a}){let[m,d]=co(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!s&&!t),n=!s&&!t||m;return(0,Lt.jsxs)(mo.motion.div,{initial:{opacity:0,Lt:20},animate:{opacity:1,Lt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} Lt-8 text-white ${a||""}`,children:[(0,Lt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Lt.jsx)(X,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Lt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Lt.jsxs)("div",{className:"flex items-center gap-3",children:[n&&r&&(0,Lt.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(s||t)&&(0,Lt.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 Lt-1 text-white transition-colors",onClick:()=>d(!m),style:{lineHeight:0},children:m?(0,Lt.jsx)(st.FaChevronDown,{size:22}):(0,Lt.jsx)(st.FaChevronUp,{size:22})})]})]}),!n&&(0,Lt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Lt.jsxs)("div",{className:"space-Lt-4",children:[(0,Lt.jsx)("Lt",{className:"max-w-[600px] text-white/80",children:t}),(0,Lt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Lt.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),s&&(0,Lt.jsx)(G,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),l&&(0,Lt.jsx)("div",{className:"hidden lg:block",children:l})]})]})}var Nr=({initialTasks:e=[],initialEpics:t=[],initialSprints:o=[],initialUsers:r=[],initialColleagues:s=[],initialProjects:i=[],onAddTask:l,onUpdateTask:a,onDeleteTask:m,onTaskClick:d,onAddEpic:n,onAddComment:c})=>{let[S,C]=(0,B.useState)(e),[v,k]=(0,B.useState)(t),[g,z]=(0,B.useState)(o),[U,f]=(0,B.useState)(!1),[I,se]=(0,B.useState)(!1),[ne,ge]=(0,B.useState)(null),[fe,le]=(0,B.useState)(null),[be,Ie]=(0,B.useState)(r),[x,K]=(0,B.useState)(s),[$,$e]=(0,B.useState)(0),q=(0,B.useRef)(null),qe=(0,B.useRef)(null),Me=v.filter(b=>!0).map(b=>b.id),Be=g.find(b=>b.isSelected);Me.push(0),(0,B.useEffect)(()=>{C(e)},[e]),(0,B.useEffect)(()=>{k(t)},[t]),(0,B.useEffect)(()=>{z(o)},[o]),(0,B.useEffect)(()=>{K(s)},[s]),(0,B.useEffect)(()=>{let b=()=>{if(q.current){let _=q.current.offsetHeight;$e(_)}};b();let A=new ResizeObserver(b);q.current&&A.observe(q.current);let E=()=>{setTimeout(b,100)};return window.addEventListener("storage",E),()=>{A.disconnect(),window.removeEventListener("storage",E)}},[]),(0,B.useEffect)(()=>{let b=setTimeout(()=>{q.current&&$e(q.current.offsetHeight)},300);return()=>clearTimeout(b)},[U,I]);let Xe=S.filter(b=>!0),re=b=>Xe.filter(A=>A.status===b),uo=b=>{let A={};return v.forEach(E=>{A[E.id]=b.filter(_=>Fe(_.epic)===E.id)}),A["B-epic"]=b.filter(E=>!Fe(E.epic)),A},yt=b=>{le(b)},go=b=>{fe&&(C(A=>A.map(E=>E.id===fe.id?{...E,status:b}:E)),a?.(fe.id.toString(),{status:b}),le(null))},fo=b=>{let A={...b,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};C(E=>[...E,A]),l?.(b)},bo=async(b,A)=>{if(C(_=>_.map(we=>we.id===Number(b)?{...we,...A}:we)),a)return await a(b,A);let E=S.find(_=>_.id===Number(b));if(!E)throw new Error("Task not found");return{...E,...A}},vo=async b=>{C(A=>A.filter(E=>E.id!==Number(b))),ne?.id===Number(b)&&ge(null),m&&await m(b)},ho=b=>{let A={...b,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};k(E=>[...E,A]),n?.(b)},xt=b=>{ge(b),d?.(b)},yo=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],xo=$>0?`calc(100vh - ${$+120}px)`:"calc(100vh - 12rem)";return(0,Lt.jsxs)("div",{ref:qe,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,Lt.jsx)("div",{ref:q,className:"flex-shrink-0",children:(0,Lt.jsx)(po,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-B-r from-purple-600 via-violet-600 B-indigo-600",primaryAction:{label:"Add task",onClick:()=>f(!0)},secondaryAction:{label:"Add epic",onClick:()=>se(!0)}})}),(0,Lt.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,Lt.jsx)("div",{className:"h-full",style:{height:$>0?`calc(100vh - ${$+120}px)`:"calc(100vh - 12rem)"},children:(0,Lt.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:yo.map(b=>{let A=re(b.status),E=uo(A);return(0,Lt.jsxs)(It,{title:b.title,status:b.status,taskCount:A.length,onDrop:go,isCompact:b.status==="done",height:xo,children:[E["B-epic"].map(_=>(0,Lt.jsx)(dt,{epic:null,task:_,onDragStart:yt,onTaskClick:xt,isCompact:b.status==="done"})),Me.map(_=>{let we=v.find(Ze=>Ze.id===_),it=E[_]||[];return it.length===0?null:(0,Lt.jsxs)("div",{className:"mb-6",children:[(0,Lt.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Lt.jsx)("div",{className:`w-3 h-3 rounded-full ${we?.color}`}),(0,Lt.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:we?.name||"No Epic"}),(0,Lt.jsx)(X,{variant:"secondary",className:"text-xs",children:it.length})]})," ",(0,Lt.jsx)("div",{className:"space-Lt-3",children:it.map(Ze=>(0,Lt.jsx)(dt,{task:Ze,epic:we,onDragStart:yt,onTaskClick:xt,isCompact:b.status==="done"},Ze.id))})]},_)})]},b.id)})})})}),(0,Lt.jsx)(Yt,{isOpen:U,onClose:()=>f(!1),onAddTask:fo,assignees:[...x,...be],epics:v,sprints:g}),(0,Lt.jsx)(lo,{isOpen:I,onClose:()=>se(!1),onAddEpic:ho}),ne&&(0,Lt.jsx)(io,{isOpen:!!ne,onClose:()=>ge(null),initialTask:ne,epics:v,sprints:g,onUpdateTask:bo,onDeleteTask:vo,colleagues:x,onAddComment:c})]})};0&&(module.exports={KanbanBoardView});
5
+ "use strict";var To=Object.create;var Qe=Object.defineProperty;var ko=Object.getOwnPropertyDescriptor;var Po=Object.getOwnPropertyNames;var Ro=Object.getPrototypeOf,Do=Object.prototype.hasOwnProperty;var Ao=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},Nt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Po(t))!Do.call(e,s)&&s!==o&&Qe(e,s,{get:()=>t[s],enumerable:!(r=ko(t,s))||r.enumerable});return e};var U=(e,t,o)=>(o=e!=null?To(Ro(e)):{},Nt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),Eo=e=>Nt(Qe({},"__esModule",{value:!0}),e);var Rr={};Ao(Rr,{KanbanBoardView:()=>Pr});module.exports=Eo(Rr);var R=U(require("react"));var It=require("class-variance-authority");var Lt=require("clsx");var dt="-",Lo=e=>{let t=Mo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let a=l.split(dt);return a[0]===""&&a.length!==1&&a.shift(),kt(a,t)||Io(l)},getConflictingClassGroupIds:(l,a)=>{let m=o[l]||[];return a&&r[l]?[...m,...r[l]]:m}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?kt(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(dt);return t.validators.find(({validator:l})=>l(i))?.classGroupId},Ct=/^\[(.+)\]$/,Io=e=>{if(Ct.test(e)){let t=Ct.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Mo=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return zo(Object.entries(e.classGroups),o).forEach(([i,l])=>{ct(l,r,i,t)}),r},ct=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:Tt(t,s);i.classGroupId=o;return}if(typeof s=="function"){if(Bo(s)){ct(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,l])=>{ct(l,Tt(t,i),o,r)})})},Tt=(e,t)=>{let o=e;return t.split(dt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Bo=e=>e.isThemeGetter,zo=(e,t)=>t?e.map(([o,r])=>{let s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[t+l,a])):i);return[o,s]}):e,Ho=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(i,l)=>{o.set(i,l),t++,t>e&&(t=0,r=o,o=new Map)};return{get(i){let l=o.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return s(i,l),l},set(i,l){o.has(i)?o.set(i,l):s(i,l)}}},Pt="!",Vo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],i=t.length,l=a=>{let m=[],d=0,n=0,c;for(let f=0;f<a.length;f++){let z=a[f];if(d===0){if(z===s&&(r||a.slice(f,f+i)===t)){m.push(a.slice(n,f)),n=f+i;continue}if(z==="/"){c=f;continue}}z==="["?d++:z==="]"&&d--}let N=m.length===0?a:a.substring(n),C=N.startsWith(Pt),v=C?N.substring(1):N,P=c&&c>n?c-n:void 0;return{modifiers:m,hasImportantModifier:C,baseClassName:v,maybePostfixModifierPosition:P}};return o?a=>o({className:a,parseClassName:l}):l},Oo=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},Go=e=>({cache:Ho(e.cacheSize),parseClassName:Vo(e),...Lo(e)}),Fo=/\s+/,$o=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],l=e.trim().split(Fo),a="";for(let m=l.length-1;m>=0;m-=1){let d=l[m],{modifiers:n,hasImportantModifier:c,baseClassName:N,maybePostfixModifierPosition:C}=o(d),v=!!C,P=r(v?N.substring(0,C):N);if(!P){if(!v){a=d+(a.length>0?" "+a:a);continue}if(P=r(N),!P){a=d+(a.length>0?" "+a:a);continue}v=!1}let f=Oo(n).join(":"),z=c?f+Pt:f,$=z+P;if(i.includes($))continue;i.push($);let b=s(P,v);for(let M=0;M<b.length;++M){let ie=b[M];i.push(z+ie)}a=d+(a.length>0?" "+a:a)}return a};function Uo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Rt(t))&&(r&&(r+=" "),r+=o);return r}var Rt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Rt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Wo(e,...t){let o,r,s,i=l;function l(m){let d=t.reduce((n,c)=>c(n),e());return o=Go(d),r=o.cache.get,s=o.cache.set,i=a,a(m)}function a(m){let d=r(m);if(d)return d;let n=$o(m,o);return s(m,n),n}return function(){return i(Uo.apply(null,arguments))}}var A=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Dt=/^\[(?:([a-z-]+):)?(.+)\]$/i,jo=/^\d+\/\d+$/,Ko=new Set(["px","full","screen"]),_o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Mt-?((\d+)?\.?(\d+)[a-z]+|0)/,Zo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>Me(e)||Ko.has(e)||jo.test(e),he=e=>Be(e,"length",sr),Me=e=>!!e&&!Number.isNaN(Number(e)),lt=e=>Be(e,"number",Me),We=e=>!!e&&Number.isInteger(Number(e)),Qo=e=>e.endsWith("%")&&Me(e.slice(0,-1)),w=e=>Dt.test(e),ye=e=>_o.test(e),Yo=new Set(["length","size","percentage"]),er=e=>Be(e,Yo,At),tr=e=>Be(e,"position",At),or=new Set(["image","url"]),rr=e=>Be(e,or,nr),ar=e=>Be(e,"",ir),je=()=>!0,Be=(e,t,o)=>{let r=Dt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},sr=e=>Jo.test(e)&&!qo.test(e),At=()=>!1,ir=e=>Xo.test(e),nr=e=>Zo.test(e);var lr=()=>{let e=A("colors"),t=A("spacing"),o=A("blur"),r=A("brightness"),s=A("borderColor"),i=A("borderRadius"),l=A("borderSpacing"),a=A("borderWidth"),m=A("contrast"),d=A("grayscale"),n=A("hueRotate"),c=A("invert"),N=A("gap"),C=A("gradientColorStops"),v=A("gradientColorStopPositions"),P=A("inset"),f=A("margin"),z=A("opacity"),$=A("padding"),b=A("saturate"),M=A("scale"),ie=A("sepia"),J=A("skew"),ne=A("space"),fe=A("translate"),ce=()=>["auto","contain","none"],be=()=>["auto","hidden","clip","visible","scroll"],Ie=()=>["auto",w,t],x=()=>[w,t],ae=()=>["",de,he],K=()=>["auto",Me,w],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],qe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$e=()=>["start","end","center","between","around","evenly","stretch"],ve=()=>["","0",w],Ue=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[Me,w];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[de,he],blur:["none","",ye,w],brightness:X(),borderColor:[e],borderRadius:["none","","full",ye,w],borderSpacing:x(),borderWidth:ae(),contrast:X(),grayscale:ve(),hueRotate:X(),invert:ve(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Qo,he],inset:Ie(),margin:Ie(),opacity:X(),padding:x(),saturate:X(),scale:X(),sepia:ve(),skew:X(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",w]}],container:["container"],columns:[{columns:[ye]}],"break-after":[{"break-after":Ue()}],"break-before":[{"break-before":Ue()}],"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:[...Fe(),w]}],overflow:[{overflow:be()}],"overflow-x":[{"overflow-x":be()}],"overflow-Mt":[{"overflow-Mt":be()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-Mt":[{"overscroll-Mt":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-Mt":[{"inset-Mt":[P]}],start:[{start:[P]}],end:[{end:[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,w]}],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",w]}],grow:[{grow:ve()}],shrink:[{shrink:ve()}],order:[{order:["first","last","none",We,w]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,w]},w]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,w]},w]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",w]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",w]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-Mt":[{"gap-Mt":[N]}],"justify-content":[{justify:["normal",...$e()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$e(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$e(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[$]}],px:[{px:[$]}],py:[{py:[$]}],ps:[{ps:[$]}],Mt:[{Mt:[$]}],pt:[{pt:[$]}],pr:[{pr:[$]}],pb:[{pb:[$]}],pl:[{pl:[$]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[ne]}],"space-x-reverse":["space-x-reverse"],"space-Mt":[{"space-Mt":[ne]}],"space-Mt-reverse":["space-Mt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",w,t]}],"min-w":[{"min-w":[w,t,"min","max","fit"]}],"max-w":[{"max-w":[w,t,"none","full","min","max","fit","prose",{screen:[ye]},ye]}],h:[{h:[w,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[w,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[w,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ye,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",lt]}],"font-family":[{font:[je]}],"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",w]}],"line-clamp":[{"line-clamp":["none",Me,lt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,w]}],"list-image":[{"list-image":["none",w]}],"list-style-type":[{list:["none","disc","decimal",w]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,he]}],"underline-offset":[{"underline-offset":["auto",de,w]}],"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:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",w]}],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",w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","Mt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},rr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-Mt":[{"border-Mt":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-Mt":[{"divide-Mt":[a]}],"divide-Mt-reverse":["divide-Mt-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:q()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-Mt":[{"border-Mt":[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:["",...q()]}],"outline-offset":[{"outline-offset":[de,w]}],"outline-w":[{outline:[de,he]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[de,he]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ye,ar]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":[...qe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":qe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",ye,w]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[n]}],invert:[{invert:[c]}],saturate:[{saturate:[b]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[n]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-Mt":[{"border-spacing-Mt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",w]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",w]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",w]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-Mt":[{"scale-Mt":[M]}],rotate:[{rotate:[We,w]}],"translate-x":[{"translate-x":[fe]}],"translate-Mt":[{"translate-Mt":[fe]}],"skew-x":[{"skew-x":[J]}],"skew-Mt":[{"skew-Mt":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",w]}],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",w]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Mt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-Mt":[{"scroll-Mt":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","Mt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-Mt":[{"touch-pan":["Mt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",w]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[de,he,lt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-Mt"],overscroll:["overscroll-x","overscroll-Mt"],inset:["inset-x","inset-Mt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-Mt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-Mt"],p:["px","py","ps","Mt","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-x","border-spacing-Mt"],"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-Mt":["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-Mt":["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-Mt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-Mt","touch-pz"],"touch-x":["touch"],"touch-Mt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Et=Wo(lr);function h(...e){return Et((0,Lt.clsx)(e))}var Mt=require("react/jsx-runtime"),cr=(0,It.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 Z({className:e,variant:t,...o}){return(0,Mt.jsx)("div",{className:h(cr({variant:t}),e),...o})}var Se=U(require("react"));var ze=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ze.displayName="Card";var dr=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("flex flex-col space-Mt-1.5 p-6",e),...t}));dr.displayName="CardHeader";var mr=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("font-semibold leading-none tracking-tight",e),...t}));mr.displayName="CardTitle";var pr=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("text-sm text-muted-foreground",e),...t}));pr.displayName="CardDescription";var ur=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("p-6 pt-0",e),...t}));ur.displayName="CardContent";var gr=Se.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("div",{ref:o,className:h("flex items-center p-6 pt-0",e),...t}));gr.displayName="CardFooter";var Bt=({title:e,status:t,taskCount:o,children:r,onDrop:s,isCompact:i=!1,height:l})=>{let a=n=>{n.preventDefault()},m=n=>{n.preventDefault(),s(t)};return(0,Mt.jsxs)(ze,{className:`p-4 bg-card border-l-4 ${(()=>{switch(t){case"todo":return"border-l-gray-400";case"in-progress":return"border-l-blue-500";case"review":return"border-l-orange-500";case"done":return"border-l-green-500";default:return"border-l-gray-400"}})()} shadow-sm hover:shadow-md transition-shadow duration-200 flex flex-col ${i?"lg:max-w-xs":""}`,style:{height:l||"calc(100vh - 350px)"},onDragOver:a,onDrop:m,children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-shrink-0",children:[(0,Mt.jsx)("h3",{className:`font-semibold text-foreground select-none-important ${i?"text-base":"text-lg"}`,children:e}),(0,Mt.jsx)(Z,{variant:"secondary",className:"bg-muted text-muted-foreground",children:o})]}),(0,Mt.jsx)("div",{className:"flex-1 overflow-Mt-auto space-Mt-4 min-h-0",children:r})]})};var Q=require("lucide-react"),mt=({task:e,epic:t,onDragStart:o,onTaskClick:r,isCompact:s=!1})=>{let i=n=>{o(e)},l=()=>{r(e)},a=()=>{switch(e.priority){case"high":return"bg-destructive/20 text-destructive border-destructive/20";case"medium":return"bg-warning/20 text-warning border-warning/20";case"low":return"bg-success/20 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},m=()=>{switch(e.type){case"story":return(0,Mt.jsx)(Q.BookOpen,{className:"h-3 w-3"});case"bug":return(0,Mt.jsx)(Q.Bug,{className:"h-3 w-3"});case"spike":return(0,Mt.jsx)(Q.Zap,{className:"h-3 w-3"});case"task":default:return(0,Mt.jsx)(Q.AlertCircle,{className:"h-3 w-3"})}},d=()=>{switch(e.type){case"story":return"bg-primary/20 text-primary";case"bug":return"bg-destructive/20 text-destructive";case"spike":return"bg-accent/20 text-accent";case"task":default:return"bg-muted text-muted-foreground"}};return s?(0,Mt.jsx)(ze,{className:"p-3 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-sm",draggable:!0,onDragStart:i,onClick:l,children:(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("div",{className:`flex items-center gap-1 px-2 py-1 rounded-full text-xs font-medium ${d()}`,children:m()}),(0,Mt.jsx)("h4",{className:"font-medium text-foreground text-sm mb-1 line-clamp-2 select-none-important",children:e.name})]})}):(0,Mt.jsxs)(ze,{className:"p-4 bg-card border border-border hover:border-accent cursor-pointer transition-all duration-200 hover:shadow-md",draggable:!0,onDragStart:i,onClick:l,children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Mt.jsxs)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-sm font-medium ${d()}`,children:[m(),(0,Mt.jsx)("span",{className:"capitalize",children:e.type})]}),(0,Mt.jsxs)("div",{className:"flex gap-1",children:[(0,Mt.jsx)("div",{className:`flex items-center gap-2 px-3 py-1 rounded-full text-xs font-medium ${a()}`,children:e.priority}),(0,Mt.jsx)("div",{className:"flex items-center gap-2 px-3 py-1 border border-accent rounded-full text-xs font-medium",children:e.storyPoints})]})]}),(0,Mt.jsx)("h4",{className:"font-semibold text-foreground mb-2 select-none-important",children:e.name}),(0,Mt.jsx)("p",{className:"text-sm text-muted-foreground mb-3 line-clamp-2 select-none-important",children:e.description}),(0,Mt.jsxs)("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Mt.jsx)(Q.User,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{children:e.assignee?.value?.name})]}),(0,Mt.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Mt.jsx)(Q.Calendar,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{children:new Date(e.createdAt).toLocaleDateString()})]})]})]})};var Je=require("react");var Ke=U(require("react")),O=U(require("@radix-ui/react-dialog"));var He=O.Root;var fr=O.Portal;var Ht=Ke.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(O.Overlay,{ref:o,className:h("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}));Ht.displayName=O.Overlay.displayName;var Te=Ke.forwardRef(({className:e,children:t,...o},r)=>(0,Mt.jsxs)(fr,{children:[(0,Mt.jsx)(Ht,{}),(0,Mt.jsxs)(O.Content,{ref:r,className:h("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-Mt-[-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,Mt.jsxs)(O.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,Mt.jsx)(Q.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Te.displayName=O.Content.displayName;var ke=({className:e,...t})=>(0,Mt.jsx)("div",{className:h("flex flex-col space-Mt-1.5 text-center sm:text-left",e),...t});ke.displayName="DialogHeader";var _e=({className:e,...t})=>(0,Mt.jsx)("div",{className:h("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});_e.displayName="DialogFooter";var Pe=Ke.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(O.Title,{ref:o,className:h("text-lg font-semibold leading-none tracking-tight",e),...t}));Pe.displayName=O.Title.displayName;var br=Ke.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(O.Description,{ref:o,className:h("text-sm text-muted-foreground",e),...t}));br.displayName=O.Description.displayName;var Vt=require("@radix-ui/react-slot"),Gt=U(require("react")),vr=(0,It.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"}}}),G=Gt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},i)=>(0,Mt.jsx)(e?Vt.Slot:"button",{className:h(vr({className:t,size:o,variant:r})),ref:i,...s}));G.displayName="Button";var $t=U(require("react"));var Y=$t.forwardRef(({className:e,type:t,...o},r)=>(0,Mt.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:r,...o}));Y.displayName="Input";var Wt=U(require("react")),me=Wt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)("textarea",{className:h("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}));me.displayName="Textarea";var S=U(require("@radix-ui/react-select")),xe=U(require("react")),se=S.Root;var De=S.Value,ee=xe.forwardRef(({children:e,className:t,...o},r)=>(0,Mt.jsxs)(S.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:r,...o,children:[e,(0,Mt.jsx)(S.Icon,{asChild:!0,children:(0,Mt.jsx)(Q.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ee.displayName=S.Trigger.displayName;var Kt=xe.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(S.ScrollUpButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Mt.jsx)(Q.ChevronUp,{className:"h-4 w-4"})}));Kt.displayName=S.ScrollUpButton.displayName;var _t=xe.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(S.ScrollDownButton,{className:h("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Mt.jsx)(Q.ChevronDown,{className:"h-4 w-4"})}));_t.displayName=S.ScrollDownButton.displayName;var te=xe.forwardRef(({children:e,className:t,position:o="popper",...r},s)=>(0,Mt.jsx)(S.Portal,{children:(0,Mt.jsxs)(S.Content,{className:h("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-Mt-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-Mt-1",t),position:o,ref:s,...r,children:[(0,Mt.jsx)(Kt,{}),(0,Mt.jsx)(S.Viewport,{className:h("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Mt.jsx)(_t,{})]})}));te.displayName=S.Content.displayName;var hr=xe.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(S.Label,{className:h("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));hr.displayName=S.Label.displayName;var W=xe.forwardRef(({children:e,className:t,...o},r)=>(0,Mt.jsxs)(S.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:r,...o,children:[(0,Mt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Mt.jsx)(S.ItemIndicator,{children:(0,Mt.jsx)(Q.Check,{className:"h-4 w-4"})})}),(0,Mt.jsx)(S.ItemText,{children:e})]}));W.displayName=S.Item.displayName;var yr=xe.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(S.Separator,{className:h("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));yr.displayName=S.Separator.displayName;var Jt=U(require("react")),pt=U(require("@radix-ui/react-label"));var xr=(0,It.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),T=Jt.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(pt.Root,{ref:o,className:h(xr(),e),...t}));T.displayName=pt.Root.displayName;var Ae=U(require("react")),Ve=U(require("@radix-ui/react-toggle-group"));var Zt=U(require("react")),ut=U(require("@radix-ui/react-toggle"));var gt=(0,It.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"}}),wr=Zt.forwardRef(({className:e,variant:t,size:o,...r},s)=>(0,Mt.jsx)(ut.Root,{ref:s,className:h(gt({variant:t,size:o,className:e})),...r}));wr.displayName=ut.Root.displayName;var eo=Ae.createContext({size:"default",variant:"default"}),Ee=Ae.forwardRef(({className:e,variant:t,size:o,children:r,...s},i)=>(0,Mt.jsx)(Ve.Root,{ref:i,className:h("flex items-center justify-center gap-1",e),...s,children:(0,Mt.jsx)(eo.Provider,{value:{variant:t,size:o},children:r})}));Ee.displayName=Ve.Root.displayName;var Le=Ae.forwardRef(({className:e,children:t,variant:o,size:r,...s},i)=>{let l=Ae.useContext(eo);return(0,Mt.jsx)(Ve.Item,{ref:i,className:h(gt({variant:l.variant||o,size:l.size||r}),e),...s,children:t})});Le.displayName=Ve.Item.displayName;var Sr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:Q.BookOpen},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:Q.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:Q.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:Q.Zap}],Nr=[{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"}],to=({isOpen:e,onClose:t,onAddTask:o,epics:r,sprints:s,assignees:i,defaultEpicId:l})=>{let[a,m]=(0,Je.useState)({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:"",sprint:"none",assignee:""});(0,Je.useEffect)(()=>{e&&l&&m(c=>({...c,epic:l}))},[e,l]),(0,Je.useEffect)(()=>{e&&m({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:l||"",sprint:"none",assignee:""})},[e]);let d=c=>{c.preventDefault(),a.name.trim()&&(o({name:a.name.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,storyPoints:a.storyPoints,epic:Number(a.epic),sprint:Number(a.sprint),assignee:a.assignee.trim()?{relationTo:"digital-colleagues",value:Number(a.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),m({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epic:l||"",sprint:"",assignee:""}),t())},n=(c,N)=>{m(C=>({...C,[c]:N}))};return(0,Mt.jsx)(He,{open:e,onOpenChange:t,children:(0,Mt.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Mt.jsx)(ke,{children:(0,Mt.jsx)(Pe,{children:"Add New Task"})}),(0,Mt.jsxs)("form",{onSubmit:d,className:"space-Mt-4",children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"name",children:"Task Title"}),(0,Mt.jsx)(Y,{id:"name",value:a.name,onChange:c=>n("name",c.target.value),placeholder:"Enter task title",required:!0})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"description",children:"Description"}),(0,Mt.jsx)(me,{id:"description",value:a.description,onChange:c=>n("description",c.target.value),placeholder:"Enter task description",rows:3})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Type"}),(0,Mt.jsx)(Ee,{type:"single",value:a.type||"",onValueChange:c=>c&&n("type",c),children:Sr.map(c=>{let N=c.icon;return(0,Mt.jsxs)(Le,{value:c.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[(0,Mt.jsx)(N,{className:"h-4 w-4"}),c.label]},c.value)})})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Priority"}),(0,Mt.jsx)(Ee,{type:"single",value:a.priority||"",onValueChange:c=>c&&n("priority",c),children:Nr.map(c=>(0,Mt.jsx)(Le,{value:c.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:c.label},c.value))})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"points",children:"Story Points"}),(0,Mt.jsx)(Y,{id:"points",type:"number",min:"1",max:"100",value:a.storyPoints,onChange:c=>n("storyPoints",parseInt(c.target.value)||1),placeholder:"Enter story points",required:!0})]}),!l&&(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"epic",children:"Epic"}),(0,Mt.jsxs)(se,{value:a.epic,onValueChange:c=>n("epic",c),children:[(0,Mt.jsx)(ee,{children:(0,Mt.jsx)(De,{placeholder:"Select an epic"})}),(0,Mt.jsx)(te,{children:r.map(c=>(0,Mt.jsx)(W,{value:c.id.toString(),children:(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("div",{className:`w-3 h-3 rounded-full ${c.color}`}),c.name]})},c.id))})]})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"sprint",children:"Sprint (Optional)"}),(0,Mt.jsxs)(se,{value:a.sprint,onValueChange:c=>n("sprint",c),children:[(0,Mt.jsx)(ee,{children:(0,Mt.jsx)(De,{placeholder:"Select a sprint"})}),(0,Mt.jsxs)(te,{children:[(0,Mt.jsx)(W,{value:"none",children:"No Sprint"}),s.map(c=>(0,Mt.jsx)(W,{value:c.id.toString(),children:(0,Mt.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"sprint",children:"Assignee"}),(0,Mt.jsxs)(se,{value:a.assignee,onValueChange:c=>n("assignee",c),children:[(0,Mt.jsx)(ee,{children:(0,Mt.jsx)(De,{placeholder:"Select an Assignee"})}),(0,Mt.jsxs)(te,{children:[(0,Mt.jsx)(W,{value:"none",children:"No Assignee"}),i.map(c=>(0,Mt.jsx)(W,{value:c.id.toString(),children:(0,Mt.jsx)("div",{className:"flex items-center gap-2",children:c.name})},c.id))]})]})]}),(0,Mt.jsxs)(_e,{children:[(0,Mt.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Mt.jsx)(G,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};var bt=({fieldName:e,value:t,label:o,multiline:r=!1,onSave:s,className:i="",disabled:l=!1})=>{let[a,m]=(0,Je.useState)(!1),[d,n]=(0,Je.useState)(""),c=()=>{l||(m(!0),n(t))},N=async()=>{d!==t&&await s(e,d),m(!1)},C=v=>{v.key==="Enter"&&!r||v.key==="Enter"&&v.ctrlKey&&r?N():v.key==="Escape"&&(m(!1),n(""))};return(0,Mt.jsxs)("div",{className:`space-Mt-2 ${i}`,children:[(0,Mt.jsx)(T,{children:o}),a?r?(0,Mt.jsx)(me,{value:d,onChange:v=>n(v.target.value),onBlur:N,onKeyDown:C,autoFocus:!0,rows:4,className:"resize-none"}):(0,Mt.jsx)(Y,{value:d,onChange:v=>n(v.target.value),onBlur:N,onKeyPress:C,autoFocus:!0,className:"text-lg font-medium"}):(0,Mt.jsxs)("div",{onClick:c,className:`${l?"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,Mt.jsx)("span",{className:r?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click to edit..."}),!l&&(0,Mt.jsx)(Q.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};var et=U(require("react")),ue=U(require("@radix-ui/react-avatar"));var vt=et.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ue.Root,{ref:o,className:h("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=ue.Root.displayName;var Cr=et.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ue.Image,{ref:o,className:h("aspect-square h-full w-full",e),...t}));Cr.displayName=ue.Image.displayName;var ht=et.forwardRef(({className:e,...t},o)=>(0,Mt.jsx)(ue.Fallback,{ref:o,className:h("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ht.displayName=ue.Fallback.displayName;var ao=({comments:e,onAddComment:t})=>{let[o,r]=(0,Je.useState)(""),s=l=>l.split(" ").map(a=>a[0]).join("").toUpperCase(),i=()=>{o.trim()&&(t(o),r(""))};return(0,Mt.jsxs)("div",{className:"space-Mt-4",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)(Q.MessageSquare,{className:"h-5 w-5"}),(0,Mt.jsx)(T,{className:"text-lg font-medium",children:"Comments"}),(0,Mt.jsx)(Z,{variant:"secondary",children:e.length})]}),(0,Mt.jsx)("div",{className:"space-Mt-4 max-h-60 overflow-Mt-auto",children:e.map(l=>(0,Mt.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,Mt.jsx)(vt,{className:"h-8 w-8 mt-1",children:(0,Mt.jsx)(ht,{className:"text-xs bg-muted text-muted-foreground",children:s(l.author)})}),(0,Mt.jsxs)("div",{className:"flex-1",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Mt.jsx)("span",{className:"font-medium text-sm",children:l.author}),(0,Mt.jsxs)("span",{className:"text-xs text-muted-foreground",children:[l.createdAt.toLocaleDateString()," Je ",l.createdAt.toLocaleTimeString()]})]}),(0,Mt.jsx)("p",{className:"text-sm text-muted-foreground",children:l.text})]})]},l.id))}),(0,Mt.jsxs)("div",{className:"flex gap-2",children:[(0,Mt.jsx)(me,{value:o,onChange:l=>r(l.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,Mt.jsx)(G,{onClick:i,disabled:!o.trim(),size:"sm",className:"self-end",children:(0,Mt.jsx)(Q.Send,{className:"h-4 w-4"})})]})]})};var rt=({label:e,value:t,onValueChange:o,options:r,showColor:s=!1,disabled:i=!1})=>{let[l,a]=(0,Je.useState)(!1),m=r.find(n=>n.value===t);return(0,Mt.jsxs)("div",{className:"space-Mt-1",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:e}),(0,Mt.jsxs)(se,{value:t,onValueChange:o,open:l,onOpenChange:n=>{i||a(n)},disabled:i,children:[(0,Mt.jsx)(ee,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Mt.jsxs)(Z,{variant:"secondary",className:`${i?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!i&&a(!l),children:[s&&m?.color&&(0,Mt.jsx)("div",{className:`w-2 h-2 rounded-full ${m.color} mr-1`}),m?.label||"Select..."]})}),(0,Mt.jsx)(te,{children:r.map(n=>(0,Mt.jsx)(W,{value:n.value,children:s&&n.color?(0,Mt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Mt.jsx)("div",{className:`w-3 h-3 rounded-full ${n.color}`}),n.label]}):n.label},n.value))})]})]})};var io=({label:e,value:t,onValueChange:o,options:r,placeholder:s="Search...",allowCustomValue:i=!1,disabled:l=!1})=>{let[a,m]=(0,Je.useState)(!1),[d,n]=(0,Je.useState)(""),c=r.find(f=>f.value===t),N=r.filter(f=>f.label.toLowerCase().includes(d.toLowerCase())),C=f=>{o(f),m(!1),n("")},v=()=>{i&&d.trim()&&!r.find(f=>f.value===d.trim())&&(o(d.trim()),m(!1),n(""))};return(0,Mt.jsxs)("div",{className:"space-Mt-1",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:e}),(0,Mt.jsxs)(se,{value:t,onValueChange:C,open:a,onOpenChange:f=>{l||m(f)},disabled:l,children:[(0,Mt.jsx)(ee,{className:"h-auto p-0 border-none bg-transparent hover:bg-muted/50 rounded-md",children:(0,Mt.jsx)(Z,{variant:"secondary",className:`${l?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted transition-colors`,onClick:()=>!l&&m(!a),children:c?.label||t||"Select..."})}),(0,Mt.jsxs)(te,{children:[(0,Mt.jsx)("div",{className:"p-2",children:(0,Mt.jsx)(Y,{placeholder:s,value:d,onChange:f=>n(f.target.value),onKeyDown:f=>{f.key==="Enter"&&i&&v()},className:"mb-2"})}),N.map(f=>(0,Mt.jsx)(W,{value:f.value,children:f.label},f.value)),i&&d.trim()&&!N.find(f=>f.value===d.trim())&&(0,Mt.jsxs)(W,{value:d.trim(),children:['Add "',d.trim(),'"']})]})]})]})};var Oe=e=>e?typeof e=="number"?e:typeof e=="object"&&e&&"id"in e?e.id:0:0;var Tr=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:Q.BookOpen},{value:"task",label:"Task",color:"bg-muted text-muted-foreground",icon:Q.AlertCircle},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:Q.Bug},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:Q.Zap}],kr=[{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 no=({task:e,epics:t,sprints:o,lastUpdated:r,onUpdateTask:s,onClose:i,onDelete:l,isUpdating:a=!1,isDeleting:m=!1,deleteState:d="idle",teamMembers:n})=>{let[c,N]=(0,Je.useState)(e.storyPoints),C=(0,Je.useRef)(null),[v,P]=(0,Je.useState)(n);(0,Je.useEffect)(()=>{P(n)},[n]);let f=(0,Je.useCallback)((b,M)=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{s(b,M)},500)},[s]);(0,Je.useEffect)(()=>{f("storyPoints",c?.toString()||"1")},[c]);let z=b=>b.split(" ").map(M=>M[0]).join("").toUpperCase(),$=()=>d==="loading"?(0,Mt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Mt.jsx)(Q.Loader2,{className:"h-3 w-3 animate-spin"}),"Deleting..."]}):d==="success"?(0,Mt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Mt.jsx)(Q.Check,{className:"h-3 w-3"}),"Deleted"]}):d==="error"?(0,Mt.jsxs)(G,{disabled:!0,variant:"destructive",className:"w-full h-8 text-xs gap-1",children:[(0,Mt.jsx)(Q.X,{className:"h-3 w-3"}),"Delete failed"]}):(0,Mt.jsxs)(G,{onClick:l,variant:"destructive",className:"w-full h-8 text-xs gap-1",disabled:a||m,children:[(0,Mt.jsx)(Q.Trash2,{className:"h-3 w-3"}),"Delete Task"]});return(0,Mt.jsxs)("div",{className:"flex flex-col h-full",children:[(0,Mt.jsxs)("div",{className:"space-Mt-4",style:{opacity:a?.6:1},children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Status"}),(0,Mt.jsx)(rt,{label:"",value:e.status,onValueChange:b=>s("status",b),options:[{value:"todo",label:"To Do"},{value:"in-progress",label:"In Progress"},{value:"done",label:"Done"}],disabled:a})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Type"}),(0,Mt.jsx)(Ee,{type:"single",value:e.type||"",onValueChange:b=>b&&s("type",b),className:"grid grid-cols-2 gap-1",disabled:a,children:Tr.map(b=>{let M=b.icon;return(0,Mt.jsxs)(Le,{value:b.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:a,children:[(0,Mt.jsx)(M,{className:"h-3 w-3"}),b.label]},b.value)})})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Priority"}),(0,Mt.jsx)(Ee,{type:"single",value:e.priority||"",onValueChange:b=>b&&s("priority",b),className:"grid grid-cols-3 gap-1",disabled:a,children:kr.map(b=>(0,Mt.jsx)(Le,{value:b.value,className:"text-xs h-8 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",size:"sm",disabled:a,children:b.label},b.value))})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Story Points"}),(0,Mt.jsx)("input",{type:"number",min:"1",max:"100",value:c||1,onChange:b=>{let M=Number(b.target.value);M<1?N(1):M>100?N(100):N(M)},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:a})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Epic"}),(0,Mt.jsx)(rt,{label:"",value:Oe(e.epic).toString(),onValueChange:b=>s("epic",b),options:(t||[]).map(b=>({value:b.id.toString(),label:b?.name,color:b.color})),showColor:!0,disabled:a})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Sprint"}),(0,Mt.jsx)(rt,{label:"",value:Oe(e.sprint).toString()||"none",onValueChange:b=>s("sprint",b==="none"?"":b),options:[{value:"none",label:"No Sprint"},...(o||[]).map(b=>({value:b.id.toString(),label:`${b?.name}`}))],disabled:a})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{className:"text-xs text-muted-foreground",children:"Assignee"}),(0,Mt.jsx)(io,{label:"",value:e.assignee?.value?.name,onValueChange:b=>s("assignee",b),options:v.map(b=>({value:`${typeof b.email=="string"?"users":"digital-colleagues"}:${b.id}`,label:b?.name||""})),placeholder:"Search team members...",allowCustomValue:!0,disabled:a})]})]}),(0,Mt.jsxs)("div",{className:"mt-auto pt-4 space-Mt-4",children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(G,{onClick:i,variant:"outline",className:"w-full h-8 text-xs",disabled:a||m,children:"Close"}),$()]}),(0,Mt.jsxs)("div",{className:"pt-4 border-t border-border space-Mt-2",children:[(0,Mt.jsx)("div",{className:"text-xs text-muted-foreground font-medium mb-2",children:"Information"}),(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Logged By"}),(0,Mt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Mt.jsx)(Q.User,{className:"h-3 w-3"}),(0,Mt.jsx)("span",{children:"System"})]})]}),(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Created"}),(0,Mt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Mt.jsx)(Q.Calendar,{className:"h-3 w-3"}),(0,Mt.jsx)("span",{children:new Date(e.createdAt)?.toLocaleDateString()})]})]}),(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Last Updated"}),(0,Mt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,Mt.jsx)(Q.Clock,{className:"h-3 w-3"}),(0,Mt.jsxs)("span",{children:[new Date(r).toLocaleDateString()," Je"," ",new Date(r).toLocaleTimeString()]})]})]})]})]})]})};var lo=({isOpen:e,onClose:t,initialTask:o,epics:r,sprints:s,onUpdateTask:i,onDeleteTask:l,onAddComment:a,colleagues:m})=>{let[d,n]=(0,Je.useState)(o),[c,N]=(0,Je.useState)(new Date),[C,v]=(0,Je.useState)("idle"),[P,f]=(0,Je.useState)("idle"),[z,$]=(0,Je.useState)([]),[b,M]=(0,Je.useState)(m);(0,Je.useEffect)(()=>{n(o)},[o]);let ie=async(x,ae)=>{if(ae!==d[x]){v("loading");try{await i(d.id.toString(),{[x]:ae}),N(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch(K){console.log("error",K),v("error"),setTimeout(()=>v("idle"),3e3)}}},J=async(x,ae)=>{if(ae!==d[x]){v("loading");try{await i(d.id.toString(),{[x]:ae}),N(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch(K){console.log("error",K),v("error"),setTimeout(()=>v("idle"),3e3)}}},ne=async x=>{if(a){v("loading");try{await a?.({content:x,taskId:d.id.toString()}),N(new Date),v("success"),setTimeout(()=>v("idle"),1500)}catch{v("error"),setTimeout(()=>v("idle"),3e3)}}},fe=async()=>{f("loading");try{await l(d.id.toString()),f("success"),setTimeout(()=>{t(),f("idle")},1e3)}catch{f("error"),setTimeout(()=>f("idle"),3e3)}},ce=C!=="loading"&&P!=="loading",be=()=>{ce&&t()},Ie=()=>C==="loading"?(0,Mt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,Mt.jsx)(Q.Loader2,{className:"h-4 w-4 animate-spin"}),(0,Mt.jsx)("span",{children:"Updating..."})]}):C==="success"?(0,Mt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-success",children:[(0,Mt.jsx)(Q.Check,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{children:"Updated successfully"})]}):C==="error"?(0,Mt.jsxs)("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[(0,Mt.jsx)(Q.X,{className:"h-4 w-4"}),(0,Mt.jsx)("span",{children:"Update failed"})]}):null;return(0,Mt.jsx)(He,{open:e,onOpenChange:be,children:(0,Mt.jsxs)(Te,{className:"max-w-3xl max-h-[80vh] overflow-Mt-auto p-4",children:[(0,Mt.jsxs)(ke,{children:[(0,Mt.jsx)(Pe,{className:"sr-only",children:d?.name}),(0,Mt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Mt.jsx)("div",{className:"flex-1",children:Ie()}),!ce&&(0,Mt.jsx)("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),(0,Mt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Mt.jsxs)("div",{className:"lg:col-span-2 space-Mt-4",children:[(0,Mt.jsx)(bt,{fieldName:"name",value:d.name||"",label:"",onSave:ie,className:"border-b border-border pb-3",disabled:C==="loading"}),(0,Mt.jsx)(bt,{fieldName:"description",value:d.description||"",label:"Description",multiline:!0,onSave:ie,disabled:C==="loading"}),(0,Mt.jsx)(ao,{comments:(d?.comments||[]).map(x=>({author:x.author.value.name||"",createdAt:new Date(x.timestamp),text:x.text,id:x.id||""})),onAddComment:ne})]}),(0,Mt.jsx)(no,{task:d,epics:r,sprints:s,lastUpdated:c,onUpdateTask:J,onClose:be,onDelete:fe,isUpdating:C==="loading",isDeleting:P==="loading",deleteState:P,teamMembers:b})]})]})})};var mo=({isOpen:e,onClose:t,onAddEpic:o})=>{let[r,s]=(0,Je.useState)({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString().split("T")[0],endDate:new Date().toISOString().split("T")[0],progress:0}),i=["bg-blue-500","bg-green-500","bg-purple-500","bg-orange-500","bg-red-500","bg-yellow-500","bg-pink-500","bg-indigo-500"],l=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}],a=[{value:1,label:"Planning"},{value:2,label:"Development"},{value:3,label:"Testing"},{value:4,label:"Done"}],m=n=>{n.preventDefault(),r.name.trim()&&(o({name:r.name.trim(),description:r.description.trim(),color:r.color,confidence:r.confidence,phase:r.phase,startDate:r.startDate,endDate:r.endDate}),s({name:"",description:"",color:"bg-blue-500",confidence:"medium",phase:1,startDate:new Date().toISOString(),endDate:new Date().toISOString(),progress:0}),t())},d=(n,c)=>{s(N=>({...N,[n]:c}))};return(0,Mt.jsx)(He,{open:e,onOpenChange:t,children:(0,Mt.jsxs)(Te,{className:"sm:max-w-md",children:[(0,Mt.jsx)(ke,{children:(0,Mt.jsx)(Pe,{children:"Add New Epic"})}),(0,Mt.jsxs)("form",{onSubmit:m,className:"space-Mt-4",children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"name",children:"Epic Name"}),(0,Mt.jsx)(Y,{id:"name",value:r.name,onChange:n=>d("name",n.target.value),placeholder:"Enter epic name",required:!0})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{htmlFor:"description",children:"Description"}),(0,Mt.jsx)(me,{id:"description",value:r.description,onChange:n=>d("description",n.target.value),placeholder:"Enter epic description (optional)",rows:3})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Color"}),(0,Mt.jsx)("div",{className:"flex gap-2 flex-wrap",children:i.map(n=>(0,Mt.jsx)("button",{type:"button",onClick:()=>d("color",n),className:`w-8 h-8 rounded-full ${n} ${r.color===n?"ring-2 ring-gray-400":""}`},n))})]}),(0,Mt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Confidence"}),(0,Mt.jsxs)(se,{value:r.confidence,onValueChange:n=>d("confidence",n),children:[(0,Mt.jsx)(ee,{children:(0,Mt.jsx)(De,{})}),(0,Mt.jsx)(te,{children:l.map(n=>(0,Mt.jsx)(W,{value:n.value,children:n.label},n.value))})]})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Phase"}),(0,Mt.jsxs)(se,{value:r.phase.toString(),onValueChange:n=>d("phase",parseInt(n)),children:[(0,Mt.jsx)(ee,{children:(0,Mt.jsx)(De,{})}),(0,Mt.jsx)(te,{children:a.map(n=>(0,Mt.jsx)(W,{value:n.value.toString(),children:n.label},n.value))})]})]})]}),(0,Mt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"Start Date"}),(0,Mt.jsx)(Y,{type:"date",value:r.startDate,onChange:n=>d("startDate",n.target.value)})]}),(0,Mt.jsxs)("div",{className:"space-Mt-2",children:[(0,Mt.jsx)(T,{children:"End Date"}),(0,Mt.jsx)(Y,{type:"date",value:r.endDate,onChange:n=>d("endDate",n.target.value)})]})]}),(0,Mt.jsxs)(_e,{children:[(0,Mt.jsx)(G,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),(0,Mt.jsx)(G,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Epic"})]})]})]})})};var uo=require("motion/react");function po(e,t){let[o,r]=(0,Je.useState)(()=>{if(typeof window>"Mt")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),s=i=>{try{r(i),typeof window<"Mt"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,Je.useEffect)(()=>{s(o)},[]),[o,s]}var st=require("react-icons/fa");function go({title:e,description:t,badge:o,primaryAction:r,secondaryAction:s,gradient:i,children:l,className:a}){let[m,d]=po(`hero-section-minimized-${e.replace(/\s+/Mt,"-").toLowerCase()}`,!s&&!t),n=!s&&!t||m;return(0,Mt.jsxs)(uo.motion.div,{initial:{opacity:0,Mt:20},animate:{opacity:1,Mt:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${a||""}`,children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Mt.jsx)(Z,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Mt.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Mt.jsxs)("div",{className:"flex items-center gap-3",children:[n&&r&&(0,Mt.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(s||t)&&(0,Mt.jsx)("button",{"aria-label":m?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!m),style:{lineHeight:0},children:m?(0,Mt.jsx)(st.FaChevronDown,{size:22}):(0,Mt.jsx)(st.FaChevronUp,{size:22})})]})]}),!n&&(0,Mt.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Mt.jsxs)("div",{className:"space-Mt-4",children:[(0,Mt.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,Mt.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Mt.jsx)(G,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),s&&(0,Mt.jsx)(G,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:s.onClick,children:s.label})]})]}),l&&(0,Mt.jsx)("div",{className:"hidden lg:block",children:l})]})]})}var Pr=({initialTasks:e=[],initialEpics:t=[],initialSprints:o=[],initialUsers:r=[],initialColleagues:s=[],initialProjects:i=[],onAddTask:l,onUpdateTask:a,onDeleteTask:m,onTaskClick:d,onAddEpic:n,onAddComment:c})=>{let[N,C]=(0,R.useState)([]),[v,P]=(0,R.useState)([]),[f,z]=(0,R.useState)([]),[$,b]=(0,R.useState)(!1),[M,ie]=(0,R.useState)(!1),[J,ne]=(0,R.useState)(null),[fe,ce]=(0,R.useState)(null),[be,Ie]=(0,R.useState)([]),[x,ae]=(0,R.useState)([]),[K,Fe]=(0,R.useState)(0),q=(0,R.useRef)(null),qe=(0,R.useRef)(null),$e=R.default.useMemo(()=>[...v.map(p=>p.id),0],[v]),ve=(0,R.useRef)(""),Ue=(0,R.useRef)(""),X=(0,R.useRef)(""),xt=(0,R.useRef)(""),Xe=p=>p.map(k=>`${k.id}-${new Date(k.createdAt).getTime()}-${new Date(k.updatedAt).getTime()}`).join("-");(0,R.useEffect)(()=>{let p=Xe(e);p!==ve.current&&(C(e),J&&ne(e.find(k=>k.id===J.id)||null),ve.current=p)},[e]),(0,R.useEffect)(()=>{let p=Xe(t);p!==Ue.current&&(P(t),Ue.current=p)},[t]),(0,R.useEffect)(()=>{let p=Xe(o);p!==X.current&&(z(o),X.current=p)},[o]),(0,R.useEffect)(()=>{let p=Xe(s.map(k=>({id:k.id,updatedAt:k.updatedAt,createdAt:k.createdAt})));p!==xt.current&&(ae(s),xt.current=p)},[s]),(0,R.useEffect)(()=>{let p=()=>{if(q.current){let j=q.current.offsetHeight;Fe(j)}};p();let k=new ResizeObserver(p);q.current&&k.observe(q.current);let E=()=>{setTimeout(p,100)};return window.addEventListener("storage",E),()=>{k.disconnect(),window.removeEventListener("storage",E)}},[]),(0,R.useEffect)(()=>{let p=setTimeout(()=>{q.current&&Fe(q.current.offsetHeight)},300);return()=>clearTimeout(p)},[$,M]);let fo=N.filter(p=>!0),bo=p=>fo.filter(k=>k.status===p),vo=p=>{let k={};return v.forEach(E=>{k[E.id]=p.filter(j=>Oe(j.epic)===E.id)}),k["no-epic"]=p.filter(E=>!Oe(E.epic)),k},wt=p=>{ce(p)},ho=p=>{fe&&(C(k=>k.map(E=>E.id===fe.id?{...E,status:p}:E)),a?.(fe.id.toString(),{status:p}),ce(null))},yo=p=>{let k={...p,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};C(E=>[...E,k]),l?.(p)},xo=async(p,k)=>{C(E=>E.map(j=>j.id===Number(p)?{...j,...k}:j)),a&&await a(p,k),J?.id===Number(p)&&ne(E=>({...E,...k}))},wo=async p=>{C(k=>k.filter(E=>E.id!==Number(p))),J?.id===Number(p)&&ne(null),m&&await m(p)},So=p=>{let k={...p,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};P(E=>[...E,k]),n?.(p)},St=p=>{ne(p),d?.(p)},No=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],Co=K>0?`calc(100vh - ${K+120}px)`:"calc(100vh - 12rem)";return(0,Mt.jsxs)("div",{ref:qe,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[(0,Mt.jsx)("div",{ref:q,className:"flex-shrink-0",children:(0,Mt.jsx)(go,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>b(!0)},secondaryAction:{label:"Add epic",onClick:()=>ie(!0)}})}),(0,Mt.jsx)("div",{className:"flex-1 min-h-0 mt-8",children:(0,Mt.jsx)("div",{className:"h-full",style:{height:K>0?`calc(100vh - ${K+120}px)`:"calc(100vh - 12rem)"},children:(0,Mt.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:No.map(p=>{let k=bo(p.status),E=vo(k);return(0,Mt.jsxs)(Bt,{title:p.title,status:p.status,taskCount:k.length,onDrop:ho,isCompact:p.status==="done",height:Co,children:[E["no-epic"].map(j=>(0,Mt.jsx)(mt,{epic:null,task:j,onDragStart:wt,onTaskClick:St,isCompact:p.status==="done"},j.id)),$e.map(j=>{let it=v.find(Ze=>Ze.id===j),nt=E[j]||[];return nt.length===0?null:(0,Mt.jsxs)("div",{className:"mb-6",children:[(0,Mt.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,Mt.jsx)("div",{className:`w-3 h-3 rounded-full ${it?.color}`}),(0,Mt.jsx)("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:it?.name||"No Epic"}),(0,Mt.jsx)(Z,{variant:"secondary",className:"text-xs",children:nt.length})]})," ",(0,Mt.jsx)("div",{className:"space-Mt-3",children:nt.map(Ze=>(0,Mt.jsx)(mt,{task:Ze,epic:it,onDragStart:wt,onTaskClick:St,isCompact:p.status==="done"},Ze.id))})]},j)})]},p.id)})})})}),(0,Mt.jsx)(to,{isOpen:$,onClose:()=>b(!1),onAddTask:yo,assignees:[...x,...be],epics:v,sprints:f}),(0,Mt.jsx)(mo,{isOpen:M,onClose:()=>ie(!1),onAddEpic:So}),J&&(0,Mt.jsx)(lo,{isOpen:!!J,onClose:()=>ne(null),initialTask:J,epics:v,sprints:f,onUpdateTask:xo,onDeleteTask:wo,colleagues:x,onAddComment:c})]})};0&&(module.exports={KanbanBoardView});
@@ -1 +1 @@
1
- import{a}from"../../chunk-CBRUFCI3.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-XWDRWOIG.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-6R36YTGY.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-Z22NSJMF.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-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 KanbanBoardView};
1
+ import{a}from"../../chunk-L5NPH5RX.mjs";import"../../chunk-KZCIHFTM.mjs";import"../../chunk-UM57PWI7.mjs";import"../../chunk-ZHBYZ4HE.mjs";import"../../chunk-AB43AQKL.mjs";import"../../chunk-KG7HG2VO.mjs";import"../../chunk-L3V5YDPH.mjs";import"../../chunk-QC2UWZWL.mjs";import"../../chunk-Z22NSJMF.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-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 KanbanBoardView};